Skip to content

Commit eba3b84

Browse files
committed
chore: Bump package version to 1.0.219 and add FormActions component
- Update package version in package.json to 1.0.219 - Add FormActions component to handle Save, Cancel, and Delete actions - Create types for FormActions component and export in types.ts - Refactor index.ts to include FormActions export
1 parent 630f544 commit eba3b84

File tree

5 files changed

+11
-7
lines changed

5 files changed

+11
-7
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@programmer_network/yail",
3-
"version": "1.0.218",
3+
"version": "1.0.219",
44
"description": "Programmer Network's official UI library for React",
55
"author": "Aleksandar Grbic - (https://programmer.network)",
66
"publishConfig": {

src/Components/FormActions/index.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,7 @@ import Dialog from "Components/Dialog";
66
import Icon from "Components/Icon";
77
import { Paragraph } from "Components/Typography";
88

9-
export interface IFormActionsProps {
10-
onSave: () => void;
11-
onCancel: () => void;
12-
onDelete?: () => void;
13-
dialogDeleteText?: string;
14-
}
9+
import { IFormActionsProps } from "./types";
1510

1611
const FormActions = ({
1712
onSave,

src/Components/FormActions/types.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
export interface IFormActionsProps {
2+
onSave: () => void;
3+
onCancel: () => void;
4+
onDelete?: () => void;
5+
dialogDeleteText?: string;
6+
}

src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ export { default as DraggableList } from "Components/DraggableList";
1919
export { default as Dropdown } from "Components/Dropdown";
2020
export { default as ElevatedCard } from "Components/ElevatedCard";
2121
export { default as Error } from "Components/Error";
22+
export { default as FormActions } from "Components/FormActions";
2223
export { default as Icon } from "Components/Icon";
2324
export { default as ImageCrop } from "Components/ImageCrop";
2425
export { default as ImageDialog } from "Components/ImageDialog";

src/types.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import * as DraggableListTypes from "./Components/DraggableList/types";
1717
import * as DropdownTypes from "./Components/Dropdown/types";
1818
import * as ElevatedCardTypes from "./Components/ElevatedCard/types";
1919
import * as ErrorTypes from "./Components/Error/types";
20+
import * as FormActionsTypes from "./Components/FormActions/types";
2021
import * as IconTypes from "./Components/Icon/types";
2122
import * as ImageCropTypes from "./Components/ImageCrop/types";
2223
import * as ImageDialogTypes from "./Components/ImageDialog/types";
@@ -55,6 +56,7 @@ export {
5556
DropdownTypes,
5657
ElevatedCardTypes,
5758
ErrorTypes,
59+
FormActionsTypes,
5860
IconTypes,
5961
ImageCropTypes,
6062
ImageDialogTypes,

0 commit comments

Comments
 (0)