fone-design-system_v2 1.0.27 → 1.0.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/ui/VerticalTable/VerticalTable.d.ts +4 -1
- package/dist/components/ui/VerticalTable/table/td/InputCell.d.ts +4 -1
- package/dist/components/ui/VerticalTable/table/td/InputNumCell.d.ts +3 -1
- package/dist/components/ui/VerticalTable/table/td/SelectCell.d.ts +2 -10
- package/dist/components/ui/VerticalTable/table/td/Td.d.ts +2 -20
- package/dist/components/ui/VerticalTable/table/td/TextCell.d.ts +1 -1
- package/dist/fone-design-system.es.js +2192 -2141
- package/dist/fone-design-system.umd.js +107 -107
- package/package.json +2 -2
|
@@ -10,7 +10,7 @@ type ColSpan = {
|
|
|
10
10
|
span: number;
|
|
11
11
|
target: "th" | "td" | string;
|
|
12
12
|
};
|
|
13
|
-
type FieldRow = {
|
|
13
|
+
export type FieldRow = {
|
|
14
14
|
accessorKey: string;
|
|
15
15
|
title: string;
|
|
16
16
|
value?: string | React.ReactNode;
|
|
@@ -32,6 +32,9 @@ type FieldRow = {
|
|
|
32
32
|
icon: React.ReactNode;
|
|
33
33
|
onClick: () => void;
|
|
34
34
|
};
|
|
35
|
+
disabled?: boolean;
|
|
36
|
+
readOnly?: boolean;
|
|
37
|
+
maxLength?: number;
|
|
35
38
|
};
|
|
36
39
|
export interface VerticalTableProps {
|
|
37
40
|
data: {
|
|
@@ -3,6 +3,9 @@ interface InputCellProps {
|
|
|
3
3
|
formData: Record<string, any>;
|
|
4
4
|
setField: (key: string, value: any) => void;
|
|
5
5
|
icon?: React.ReactNode;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
readOnly?: boolean;
|
|
8
|
+
maxLength?: number;
|
|
6
9
|
}
|
|
7
|
-
declare const InputCell: ({ accessorKey, formData, setField, icon, }: InputCellProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare const InputCell: ({ accessorKey, formData, setField, icon, disabled, readOnly, maxLength, }: InputCellProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
11
|
export default InputCell;
|
|
@@ -3,6 +3,8 @@ interface InputNumCellProps {
|
|
|
3
3
|
formData: Record<string, any>;
|
|
4
4
|
setField: (key: string, value: any) => void;
|
|
5
5
|
icon?: React.ReactNode;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
readOnly?: boolean;
|
|
6
8
|
}
|
|
7
|
-
declare const InputNumCell: ({ accessorKey, formData, setField, icon, }: InputNumCellProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare const InputNumCell: ({ accessorKey, formData, setField, icon, disabled, readOnly, }: InputNumCellProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
10
|
export default InputNumCell;
|
|
@@ -1,15 +1,7 @@
|
|
|
1
|
+
import { FieldRow } from '../../VerticalTable';
|
|
1
2
|
interface SelectCellProps {
|
|
2
3
|
formData: Record<string, any>;
|
|
3
|
-
cellItem:
|
|
4
|
-
accessorKey: string;
|
|
5
|
-
value?: string;
|
|
6
|
-
type?: "input" | "inputNum" | "inputEng" | "select" | "checkbox" | "checkboxN" | "datepicker" | "dateRangePicker" | "modal" | "button" | "date" | "text";
|
|
7
|
-
required?: boolean;
|
|
8
|
-
menuItems?: {
|
|
9
|
-
label: string;
|
|
10
|
-
value: string;
|
|
11
|
-
}[];
|
|
12
|
-
};
|
|
4
|
+
cellItem: FieldRow;
|
|
13
5
|
setField: (key: string, value: any) => void;
|
|
14
6
|
}
|
|
15
7
|
declare const SelectCell: ({ formData, cellItem, setField }: SelectCellProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FieldRow } from '../../VerticalTable';
|
|
2
2
|
interface TdProps {
|
|
3
3
|
value?: string;
|
|
4
4
|
vSpan?: number;
|
|
@@ -7,25 +7,7 @@ interface TdProps {
|
|
|
7
7
|
variant?: "contained" | "outlined";
|
|
8
8
|
disabled?: boolean;
|
|
9
9
|
}[];
|
|
10
|
-
cellItem:
|
|
11
|
-
accessorKey: string;
|
|
12
|
-
value: string;
|
|
13
|
-
type?: "input" | "inputNum" | "inputEng" | "select" | "checkbox" | "checkboxN" | "datepicker" | "dateRangePicker" | "modal" | "button" | "date" | "text";
|
|
14
|
-
required?: boolean;
|
|
15
|
-
menuItems?: {
|
|
16
|
-
label: string;
|
|
17
|
-
value: string;
|
|
18
|
-
}[];
|
|
19
|
-
onClick?: () => void;
|
|
20
|
-
startIcon?: {
|
|
21
|
-
icon: React.ReactNode;
|
|
22
|
-
onClick: () => void;
|
|
23
|
-
};
|
|
24
|
-
endIcon?: {
|
|
25
|
-
icon: React.ReactNode;
|
|
26
|
-
onClick: () => void;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
10
|
+
cellItem: FieldRow;
|
|
29
11
|
formData: Record<string, any>;
|
|
30
12
|
setField: (key: string, value: any) => void;
|
|
31
13
|
}
|