fone-design-system_v2 1.0.26 → 1.0.27
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/Breadcrumbs/Breadcrumbs.d.ts +2 -1
- package/dist/components/ui/Button/Button.d.ts +1 -0
- package/dist/components/ui/Select/Select.d.ts +2 -0
- package/dist/components/ui/VerticalTable/VerticalTable.d.ts +14 -5
- package/dist/components/ui/VerticalTable/VerticalTable.style.d.ts +5 -7
- package/dist/components/ui/VerticalTable/table/ResizeColumns.d.ts +5 -0
- package/dist/components/ui/VerticalTable/table/Row.d.ts +11 -0
- package/dist/components/ui/VerticalTable/table/Rows.d.ts +9 -0
- package/dist/components/ui/VerticalTable/table/TableContainer.d.ts +9 -0
- package/dist/components/ui/VerticalTable/table/td/CheckboxCell.d.ts +7 -0
- package/dist/components/ui/VerticalTable/table/td/DatePickerCell.d.ts +7 -0
- package/dist/components/ui/VerticalTable/table/td/DateRangePickerCell.d.ts +7 -0
- package/dist/components/ui/VerticalTable/table/td/InputCell.d.ts +8 -0
- package/dist/components/ui/VerticalTable/table/td/InputNumCell.d.ts +8 -0
- package/dist/components/ui/VerticalTable/table/td/ModalCell.d.ts +5 -0
- package/dist/components/ui/VerticalTable/table/td/SelectCell.d.ts +16 -0
- package/dist/components/ui/VerticalTable/table/td/Td.d.ts +33 -0
- package/dist/components/ui/VerticalTable/table/td/TextCell.d.ts +7 -0
- package/dist/components/ui/VerticalTable/table/th/Th.d.ts +8 -0
- package/dist/components/ui/VerticalTable/title/Buttons.d.ts +10 -0
- package/dist/components/ui/VerticalTable/title/Title.d.ts +5 -0
- package/dist/components/ui/VerticalTable/title/TitleContainer.d.ts +11 -0
- package/dist/fone-design-system.es.js +17213 -16476
- package/dist/fone-design-system.umd.js +222 -181
- package/dist/fone-design-system_v2.css +1 -1
- package/dist/images/search.svg +3 -0
- package/dist/index.d.ts +1 -0
- package/dist/styles.css +0 -4
- package/dist/styles.css.map +1 -1
- package/package.json +1 -1
- package/dist/components/ui/VerticalTable/td/CheckboxCell.d.ts +0 -0
- package/dist/components/ui/VerticalTable/td/DatePickerCell.d.ts +0 -0
- package/dist/components/ui/VerticalTable/td/DateRangePickerCell.d.ts +0 -0
- package/dist/components/ui/VerticalTable/td/InputCell.d.ts +0 -0
- package/dist/components/ui/VerticalTable/td/InputNumCell.d.ts +0 -0
- package/dist/components/ui/VerticalTable/td/ModalCell.d.ts +0 -0
- package/dist/components/ui/VerticalTable/td/SelectCell.d.ts +0 -3
|
@@ -17,9 +17,10 @@ export interface BreadcrumbsProps {
|
|
|
17
17
|
itemsAfterCollapse?: number;
|
|
18
18
|
/** 최대 표시 아이템 수를 초과할 경우 표시할 아이템 수 */
|
|
19
19
|
itemsBeforeCollapse?: number;
|
|
20
|
+
sx?: any;
|
|
20
21
|
}
|
|
21
22
|
/** 현재 페이지의 위치를 나타내는 브레드크럼 컴포넌트 */
|
|
22
23
|
export declare const Breadcrumbs: {
|
|
23
|
-
({ items, separator, maxItems, itemsAfterCollapse, itemsBeforeCollapse, ...props }: BreadcrumbsProps): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
({ items, separator, maxItems, itemsAfterCollapse, itemsBeforeCollapse, sx, ...props }: BreadcrumbsProps): import("react/jsx-runtime").JSX.Element;
|
|
24
25
|
displayName: string;
|
|
25
26
|
};
|
|
@@ -36,6 +36,7 @@ export interface ButtonProps extends Omit<MuiButtonProps<"button">, "color" | "s
|
|
|
36
36
|
variant?: "text" | "outlined" | "contained";
|
|
37
37
|
form?: string;
|
|
38
38
|
type?: "submit" | "button" | "reset";
|
|
39
|
+
iconOnly?: boolean | undefined;
|
|
39
40
|
}
|
|
40
41
|
declare const Button: React.ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
41
42
|
export default Button;
|
|
@@ -29,6 +29,8 @@ export interface SelectProps extends Omit<MSelectProps, any>, CustomSelectProps
|
|
|
29
29
|
center?: boolean;
|
|
30
30
|
/** 메뉴 아이템에 추가로 적용할 sx */
|
|
31
31
|
menuItemSx?: SxProps<Theme>;
|
|
32
|
+
/** SelectCell 등에서 폰트 크기 오버라이드 */
|
|
33
|
+
fontSize?: string;
|
|
32
34
|
}
|
|
33
35
|
declare const Select: React.ForwardRefExoticComponent<SelectProps & React.RefAttributes<HTMLDivElement>>;
|
|
34
36
|
export default Select;
|
|
@@ -3,18 +3,18 @@ import { ButtonProps } from '../Button';
|
|
|
3
3
|
type Buttons = {
|
|
4
4
|
title?: string;
|
|
5
5
|
onClick?: ButtonProps["onClick"];
|
|
6
|
-
variant?: ButtonProps["variant"];
|
|
6
|
+
variant?: ButtonProps["variant"] | string;
|
|
7
7
|
disabled?: ButtonProps["disabled"];
|
|
8
8
|
};
|
|
9
9
|
type ColSpan = {
|
|
10
10
|
span: number;
|
|
11
|
-
target: "th" | "td";
|
|
11
|
+
target: "th" | "td" | string;
|
|
12
12
|
};
|
|
13
13
|
type FieldRow = {
|
|
14
14
|
accessorKey: string;
|
|
15
15
|
title: string;
|
|
16
|
-
value?: string;
|
|
17
|
-
type?: "input" | "inputNum" | "inputEng" | "select" | "checkbox" | "checkboxN" | "datepicker" | "dateRangePicker" | "modal" | "button" | "date" | "text";
|
|
16
|
+
value?: string | React.ReactNode;
|
|
17
|
+
type?: "input" | "inputNum" | "inputEng" | "select" | "checkbox" | "checkboxN" | "datepicker" | "dateRangePicker" | "modal" | "button" | "date" | "text" | string;
|
|
18
18
|
required?: boolean;
|
|
19
19
|
textAlign?: "left" | "center" | "right";
|
|
20
20
|
buttons?: Buttons[];
|
|
@@ -24,16 +24,25 @@ type FieldRow = {
|
|
|
24
24
|
value: string;
|
|
25
25
|
}[];
|
|
26
26
|
onClick?: () => void;
|
|
27
|
+
startIcon?: {
|
|
28
|
+
icon: React.ReactNode;
|
|
29
|
+
onClick: () => void;
|
|
30
|
+
};
|
|
31
|
+
endIcon?: {
|
|
32
|
+
icon: React.ReactNode;
|
|
33
|
+
onClick: () => void;
|
|
34
|
+
};
|
|
27
35
|
};
|
|
28
36
|
export interface VerticalTableProps {
|
|
29
37
|
data: {
|
|
30
|
-
[key: string]:
|
|
38
|
+
[key: string]: any;
|
|
31
39
|
};
|
|
32
40
|
items: FieldRow[];
|
|
33
41
|
totalColumns: number;
|
|
34
42
|
colGroup?: string[];
|
|
35
43
|
title?: string;
|
|
36
44
|
onSave?: (e: any) => void;
|
|
45
|
+
onTableChange?: (data: any) => void;
|
|
37
46
|
}
|
|
38
47
|
declare const VerticalTable: React.ForwardRefExoticComponent<VerticalTableProps & React.RefAttributes<HTMLTableElement>>;
|
|
39
48
|
export default VerticalTable;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const
|
|
5
|
-
export declare const
|
|
6
|
-
export declare const Th: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/system').Theme>, React.DetailedHTMLProps<React.ThHTMLAttributes<HTMLTableHeaderCellElement>, HTMLTableHeaderCellElement>, {}>;
|
|
7
|
-
export declare const Td: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/system').Theme>, React.DetailedHTMLProps<React.TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>, {}>;
|
|
1
|
+
export declare const Container: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/system').Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
2
|
+
export declare const Content: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/system').Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
3
|
+
export declare const Table: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/system').Theme>, import('react').DetailedHTMLProps<import('react').TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>, {}>;
|
|
4
|
+
export declare const Th: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/system').Theme>, import('react').DetailedHTMLProps<import('react').ThHTMLAttributes<HTMLTableHeaderCellElement>, HTMLTableHeaderCellElement>, {}>;
|
|
5
|
+
export declare const Td: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/system').Theme>, import('react').DetailedHTMLProps<import('react').TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>, {}>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface RowProps {
|
|
3
|
+
formData: Record<string, any>;
|
|
4
|
+
setField: (key: string, value: any) => void;
|
|
5
|
+
row: any[];
|
|
6
|
+
rowIdx: React.Key | null | undefined;
|
|
7
|
+
getSpan: (kind: "th" | "td", key: string) => number;
|
|
8
|
+
colGroup?: string[];
|
|
9
|
+
}
|
|
10
|
+
declare const Row: ({ formData, setField, row, rowIdx, getSpan, colGroup, }: RowProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export default Row;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
interface RowsProps {
|
|
2
|
+
formData: Record<string, any>;
|
|
3
|
+
setField: (key: string, value: any) => void;
|
|
4
|
+
rows?: any[];
|
|
5
|
+
getSpan: (kind: "th" | "td", key: string) => number;
|
|
6
|
+
colGroup?: string[];
|
|
7
|
+
}
|
|
8
|
+
declare const Rows: ({ formData, setField, rows, getSpan, colGroup }: RowsProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default Rows;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
interface TableContainerProps {
|
|
2
|
+
formData: Record<string, any>;
|
|
3
|
+
setField: (key: string, value: any) => void;
|
|
4
|
+
rows?: any[];
|
|
5
|
+
getSpan: (kind: "th" | "td", key: string) => number;
|
|
6
|
+
colGroup?: string[];
|
|
7
|
+
}
|
|
8
|
+
declare const TableContainer: ({ formData, setField, rows, getSpan, colGroup, }: TableContainerProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default TableContainer;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
interface CheckboxCellProps {
|
|
2
|
+
formData?: Record<string, any>;
|
|
3
|
+
setField?: (key: string, value: any) => void;
|
|
4
|
+
accessorKey?: any;
|
|
5
|
+
}
|
|
6
|
+
declare const CheckboxCell: ({ formData, setField, accessorKey, }: CheckboxCellProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default CheckboxCell;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
interface DatePickerCellProps {
|
|
2
|
+
accessorKey: string;
|
|
3
|
+
formData: Record<string, any>;
|
|
4
|
+
setField: (key: string, value: any) => void;
|
|
5
|
+
}
|
|
6
|
+
declare const DatePickerCell: ({ accessorKey, formData, setField, }: DatePickerCellProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default DatePickerCell;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
interface DateRangePickerCellProps {
|
|
2
|
+
accessorKey: string;
|
|
3
|
+
formData: Record<string, any>;
|
|
4
|
+
setField: (key: string, value: any) => void;
|
|
5
|
+
}
|
|
6
|
+
declare const DateRangePickerCell: ({ accessorKey, formData, setField, }: DateRangePickerCellProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default DateRangePickerCell;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
interface InputCellProps {
|
|
2
|
+
accessorKey: string;
|
|
3
|
+
formData: Record<string, any>;
|
|
4
|
+
setField: (key: string, value: any) => void;
|
|
5
|
+
icon?: React.ReactNode;
|
|
6
|
+
}
|
|
7
|
+
declare const InputCell: ({ accessorKey, formData, setField, icon, }: InputCellProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default InputCell;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
interface InputNumCellProps {
|
|
2
|
+
accessorKey: string;
|
|
3
|
+
formData: Record<string, any>;
|
|
4
|
+
setField: (key: string, value: any) => void;
|
|
5
|
+
icon?: React.ReactNode;
|
|
6
|
+
}
|
|
7
|
+
declare const InputNumCell: ({ accessorKey, formData, setField, icon, }: InputNumCellProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default InputNumCell;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
interface SelectCellProps {
|
|
2
|
+
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
|
+
};
|
|
13
|
+
setField: (key: string, value: any) => void;
|
|
14
|
+
}
|
|
15
|
+
declare const SelectCell: ({ formData, cellItem, setField }: SelectCellProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export default SelectCell;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface TdProps {
|
|
3
|
+
value?: string;
|
|
4
|
+
vSpan?: number;
|
|
5
|
+
buttons?: {
|
|
6
|
+
title: string;
|
|
7
|
+
variant?: "contained" | "outlined";
|
|
8
|
+
disabled?: boolean;
|
|
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
|
+
};
|
|
29
|
+
formData: Record<string, any>;
|
|
30
|
+
setField: (key: string, value: any) => void;
|
|
31
|
+
}
|
|
32
|
+
declare const Td: ({ value, vSpan, buttons, cellItem, formData, setField, }: TdProps) => import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
export default Td;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
interface ButtonsProps {
|
|
2
|
+
onSave?: (e: any) => void;
|
|
3
|
+
formData: Record<string, any>;
|
|
4
|
+
items: {
|
|
5
|
+
accessorKey: string;
|
|
6
|
+
required?: boolean;
|
|
7
|
+
}[];
|
|
8
|
+
}
|
|
9
|
+
declare const Buttons: ({ onSave, formData, items }: ButtonsProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export default Buttons;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
interface TitleContainerProps {
|
|
2
|
+
title?: string;
|
|
3
|
+
onSave?: (e: any) => void;
|
|
4
|
+
formData: Record<string, any>;
|
|
5
|
+
items: {
|
|
6
|
+
accessorKey: string;
|
|
7
|
+
required?: boolean;
|
|
8
|
+
}[];
|
|
9
|
+
}
|
|
10
|
+
declare const TitleContainer: ({ title, onSave, formData, items, }: TitleContainerProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export default TitleContainer;
|