maru_design2 2.27.2 → 2.27.3

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.
Files changed (106) hide show
  1. package/.idea/MaruDesign2.iml +13 -0
  2. package/.idea/codeStyles/Project.xml +77 -0
  3. package/.idea/codeStyles/codeStyleConfig.xml +5 -0
  4. package/.idea/inspectionProfiles/Project_Default.xml +94 -0
  5. package/.idea/jsLinters/eslint.xml +6 -0
  6. package/.idea/material_theme_project_new.xml +12 -0
  7. package/.idea/modules.xml +8 -0
  8. package/.idea/prettier.xml +8 -0
  9. package/.idea/vcs.xml +6 -0
  10. package/.idea/watcherTasks.xml +4 -0
  11. package/CHANGELOG.md +901 -894
  12. package/dist/components/atoms/button/Button.d.ts +33 -33
  13. package/dist/components/atoms/button/index.d.ts +1 -1
  14. package/dist/components/atoms/checkbox/Checkbox.d.ts +21 -21
  15. package/dist/components/atoms/checkbox/index.d.ts +1 -1
  16. package/dist/components/atoms/chip/Chip.d.ts +29 -29
  17. package/dist/components/atoms/chip/index.d.ts +1 -1
  18. package/dist/components/atoms/code/Code.d.ts +7 -7
  19. package/dist/components/atoms/code/index.d.ts +1 -1
  20. package/dist/components/atoms/icon/Icon.d.ts +16 -16
  21. package/dist/components/atoms/icon/iconmap.d.ts +412 -412
  22. package/dist/components/atoms/icon/index.d.ts +2 -2
  23. package/dist/components/atoms/input/Input.d.ts +43 -43
  24. package/dist/components/atoms/input/index.d.ts +1 -1
  25. package/dist/components/atoms/popover/Popover.d.ts +19 -19
  26. package/dist/components/atoms/popover/index.d.ts +1 -1
  27. package/dist/components/atoms/radio/Radio.d.ts +14 -14
  28. package/dist/components/atoms/radio/index.d.ts +1 -1
  29. package/dist/components/atoms/skeleton/Contents.d.ts +1 -1
  30. package/dist/components/atoms/skeleton/Skeleton.d.ts +6 -6
  31. package/dist/components/atoms/skeleton/index.d.ts +1 -1
  32. package/dist/components/atoms/slider/Slider.d.ts +31 -31
  33. package/dist/components/atoms/slider/index.d.ts +1 -1
  34. package/dist/components/atoms/textarea/Textarea.d.ts +38 -38
  35. package/dist/components/atoms/textarea/index.d.ts +1 -1
  36. package/dist/components/atoms/toggle/Toggle.d.ts +20 -20
  37. package/dist/components/atoms/toggle/index.d.ts +1 -1
  38. package/dist/components/atoms/tooltip/Tooltip.d.ts +29 -29
  39. package/dist/components/atoms/tooltip/index.d.ts +1 -1
  40. package/dist/components/molecules/calendar/Calendar.d.ts +27 -27
  41. package/dist/components/molecules/calendar/DatePickerHeader.d.ts +3 -3
  42. package/dist/components/molecules/calendar/DatePickerWrapper.d.ts +9 -9
  43. package/dist/components/molecules/calendar/index.d.ts +1 -1
  44. package/dist/components/molecules/dropdown/Dropdown.d.ts +90 -90
  45. package/dist/components/molecules/dropdown/index.d.ts +1 -1
  46. package/dist/components/molecules/dropdown/menu/MenuItem.d.ts +16 -16
  47. package/dist/components/molecules/dropdown/menu/index.d.ts +31 -31
  48. package/dist/components/molecules/dropdown/toggleButton/Arrow.d.ts +9 -9
  49. package/dist/components/molecules/dropdown/toggleButton/Clear.d.ts +6 -6
  50. package/dist/components/molecules/dropdown/toggleButton/index.d.ts +19 -19
  51. package/dist/components/molecules/modal/Modal.d.ts +48 -48
  52. package/dist/components/molecules/modal/index.d.ts +1 -1
  53. package/dist/components/molecules/multiSelectDropdown/MultiSelectDropdown.d.ts +76 -76
  54. package/dist/components/molecules/multiSelectDropdown/index.d.ts +1 -1
  55. package/dist/components/molecules/multiSelectDropdown/menu/MenuItem.d.ts +12 -12
  56. package/dist/components/molecules/multiSelectDropdown/menu/index.d.ts +21 -21
  57. package/dist/components/molecules/multiSelectDropdown/toggleButton/Arrow.d.ts +9 -9
  58. package/dist/components/molecules/multiSelectDropdown/toggleButton/Clear.d.ts +6 -6
  59. package/dist/components/molecules/multiSelectDropdown/toggleButton/index.d.ts +17 -17
  60. package/dist/components/molecules/pagination/Pagination.d.ts +22 -22
  61. package/dist/components/molecules/pagination/index.d.ts +1 -1
  62. package/dist/components/molecules/searchInput/SearchInput.d.ts +34 -34
  63. package/dist/components/molecules/searchInput/filter/FilterPopover.d.ts +16 -16
  64. package/dist/components/molecules/searchInput/filter/index.d.ts +17 -17
  65. package/dist/components/molecules/searchInput/index.d.ts +1 -1
  66. package/dist/components/molecules/table/Colgroup.d.ts +9 -9
  67. package/dist/components/molecules/table/Table.d.ts +3 -3
  68. package/dist/components/molecules/table/body/BinButtonTd.d.ts +7 -7
  69. package/dist/components/molecules/table/body/ChartButtonTd.d.ts +8 -8
  70. package/dist/components/molecules/table/body/CheckboxTd.d.ts +6 -6
  71. package/dist/components/molecules/table/body/EmptyTr.d.ts +8 -8
  72. package/dist/components/molecules/table/body/KebabMenuTd.d.ts +7 -7
  73. package/dist/components/molecules/table/body/RadioTd.d.ts +6 -6
  74. package/dist/components/molecules/table/body/Tr.d.ts +7 -7
  75. package/dist/components/molecules/table/body/index.d.ts +7 -7
  76. package/dist/components/molecules/table/header/FilterButtonsTh.d.ts +7 -7
  77. package/dist/components/molecules/table/header/FilterTh.d.ts +8 -8
  78. package/dist/components/molecules/table/header/SortableColumn.d.ts +15 -15
  79. package/dist/components/molecules/table/header/index.d.ts +17 -17
  80. package/dist/components/molecules/table/index.d.ts +1 -1
  81. package/dist/components/molecules/table/types.d.ts +125 -125
  82. package/dist/components/molecules/toast/Details.d.ts +6 -6
  83. package/dist/components/molecules/toast/Toast.d.ts +31 -31
  84. package/dist/components/molecules/toast/ToastContext.d.ts +15 -15
  85. package/dist/components/molecules/toast/ToastStyle.d.ts +18 -18
  86. package/dist/components/molecules/toast/index.d.ts +1 -1
  87. package/dist/components/molecules/toast/types.d.ts +4 -4
  88. package/dist/components/styleProvider/StyleProvider.d.ts +10 -10
  89. package/dist/components/styleProvider/index.d.ts +1 -1
  90. package/dist/enums/color.d.ts +14 -14
  91. package/dist/enums/direction.d.ts +2 -2
  92. package/dist/enums/gap.d.ts +4 -4
  93. package/dist/enums/size.d.ts +8 -8
  94. package/dist/enums/type.d.ts +4 -4
  95. package/dist/enums/variant.d.ts +8 -8
  96. package/dist/hooks/useButtonState.d.ts +16 -16
  97. package/dist/hooks/useColor.d.ts +4 -4
  98. package/dist/hooks/useCombineRef.d.ts +11 -11
  99. package/dist/hooks/useCreatePortal.d.ts +7 -7
  100. package/dist/hooks/useId.d.ts +7 -7
  101. package/dist/index.d.ts +22 -22
  102. package/dist/index.js +72 -72
  103. package/dist/utils/copy.d.ts +6 -6
  104. package/dist/utils/format.d.ts +2 -2
  105. package/dist/utils/highlight.d.ts +1 -1
  106. package/package.json +74 -74
@@ -1,90 +1,90 @@
1
- import React from 'react';
2
- import { TColor } from '../../../enums/color';
3
- import { TDropdownType } from '../../../enums/type';
4
- import { IconProps } from '../../atoms/icon';
5
- import './dropdown.scss';
6
- interface DropdownProps<T extends Record<string, any>> {
7
- data: T[];
8
- /**
9
- * 선택된 아이디
10
- */
11
- selectedId: string | undefined;
12
- onSelect: (id?: string) => void;
13
- /**
14
- * 아이디로 쓸 키
15
- */
16
- idKey: string;
17
- /**
18
- * 노출로 쓸 키
19
- */
20
- displayKey: string;
21
- className?: string;
22
- /**
23
- * 드롭다운 버튼의 placeholder
24
- */
25
- placeholder?: string;
26
- /**
27
- * 메뉴 내 검색창의 placeholder
28
- */
29
- searchPlaceholder?: string;
30
- disabled?: boolean;
31
- color?: TColor;
32
- /**
33
- * true로 하면 드롭다운으로 이벤트가 가지 않음
34
- */
35
- stopPropagation?: boolean;
36
- /**
37
- * 데이터 타입 (@v1 isSearch)
38
- */
39
- type?: TDropdownType;
40
- /**
41
- * 에러났을때 메시지. (@v1 isValid, validMessage)
42
- */
43
- errorMessage?: string;
44
- label?: string;
45
- /**
46
- * 초기화 함수 (@v1 hasClearBtn, onClear)
47
- */
48
- onClear?: () => void;
49
- /**
50
- * 데이터가 없을때의 문구
51
- */
52
- noDataMessage?: string;
53
- /**
54
- * 검색 결과가 없을때의 문구
55
- */
56
- noResultMessage?: string;
57
- /**
58
- * 토글, 메뉴 가로 크기(px) (@v1 menuPosition.width)
59
- */
60
- width?: number;
61
- /**
62
- * 메뉴 세로 크기(px) (@v1 menuPosition.height)
63
- */
64
- height?: number;
65
- /**
66
- * 드롭다운 토글 버튼 사용자 정의 노드. (@v1 toggleChildren)
67
- */
68
- customButton?: React.ReactNode;
69
- /**
70
- * 메뉴 아이템 사용자 정의 노드. (@v1 CustomMenuFormat)
71
- */
72
- customMenuItem?: ({ children, rowId, }: {
73
- children: React.ReactNode;
74
- rowId: string | number;
75
- }) => JSX.Element;
76
- /**
77
- * 컴포넌트 위치의 기준이 될 엘리먼트 사용자 정의. (@v1 portalAnchor)
78
- */
79
- anchorEl?: HTMLElement | null;
80
- /**
81
- * 메뉴 맨 밑에 버튼
82
- */
83
- menuBottomButton?: {
84
- content: string;
85
- startIcon?: IconProps;
86
- onClick: () => void;
87
- };
88
- }
89
- export declare function Dropdown<T extends Record<string, any>>({ data, selectedId, onSelect, idKey, displayKey, className, placeholder, searchPlaceholder, disabled, color, stopPropagation, type, errorMessage, label, onClear, noDataMessage, noResultMessage, width, height, customButton, customMenuItem, anchorEl, menuBottomButton, }: DropdownProps<T>): import("react/jsx-runtime").JSX.Element;
90
- export {};
1
+ import React from 'react';
2
+ import { TColor } from '../../../enums/color';
3
+ import { TDropdownType } from '../../../enums/type';
4
+ import { IconProps } from '../../atoms/icon';
5
+ import './dropdown.scss';
6
+ interface DropdownProps<T extends Record<string, any>> {
7
+ data: T[];
8
+ /**
9
+ * 선택된 아이디
10
+ */
11
+ selectedId: string | undefined;
12
+ onSelect: (id?: string) => void;
13
+ /**
14
+ * 아이디로 쓸 키
15
+ */
16
+ idKey: string;
17
+ /**
18
+ * 노출로 쓸 키
19
+ */
20
+ displayKey: string;
21
+ className?: string;
22
+ /**
23
+ * 드롭다운 버튼의 placeholder
24
+ */
25
+ placeholder?: string;
26
+ /**
27
+ * 메뉴 내 검색창의 placeholder
28
+ */
29
+ searchPlaceholder?: string;
30
+ disabled?: boolean;
31
+ color?: TColor;
32
+ /**
33
+ * true로 하면 드롭다운으로 이벤트가 가지 않음
34
+ */
35
+ stopPropagation?: boolean;
36
+ /**
37
+ * 데이터 타입 (@v1 isSearch)
38
+ */
39
+ type?: TDropdownType;
40
+ /**
41
+ * 에러났을때 메시지. (@v1 isValid, validMessage)
42
+ */
43
+ errorMessage?: string;
44
+ label?: string;
45
+ /**
46
+ * 초기화 함수 (@v1 hasClearBtn, onClear)
47
+ */
48
+ onClear?: () => void;
49
+ /**
50
+ * 데이터가 없을때의 문구
51
+ */
52
+ noDataMessage?: string;
53
+ /**
54
+ * 검색 결과가 없을때의 문구
55
+ */
56
+ noResultMessage?: string;
57
+ /**
58
+ * 토글, 메뉴 가로 크기(px) (@v1 menuPosition.width)
59
+ */
60
+ width?: number;
61
+ /**
62
+ * 메뉴 세로 크기(px) (@v1 menuPosition.height)
63
+ */
64
+ height?: number;
65
+ /**
66
+ * 드롭다운 토글 버튼 사용자 정의 노드. (@v1 toggleChildren)
67
+ */
68
+ customButton?: React.ReactNode;
69
+ /**
70
+ * 메뉴 아이템 사용자 정의 노드. (@v1 CustomMenuFormat)
71
+ */
72
+ customMenuItem?: ({ children, rowId, }: {
73
+ children: React.ReactNode;
74
+ rowId: string | number;
75
+ }) => JSX.Element;
76
+ /**
77
+ * 컴포넌트 위치의 기준이 될 엘리먼트 사용자 정의. (@v1 portalAnchor)
78
+ */
79
+ anchorEl?: HTMLElement | null;
80
+ /**
81
+ * 메뉴 맨 밑에 버튼
82
+ */
83
+ menuBottomButton?: {
84
+ content: string;
85
+ startIcon?: IconProps;
86
+ onClick: () => void;
87
+ };
88
+ }
89
+ export declare function Dropdown<T extends Record<string, any>>({ data, selectedId, onSelect, idKey, displayKey, className, placeholder, searchPlaceholder, disabled, color, stopPropagation, type, errorMessage, label, onClear, noDataMessage, noResultMessage, width, height, customButton, customMenuItem, anchorEl, menuBottomButton, }: DropdownProps<T>): import("react/jsx-runtime").JSX.Element;
90
+ export {};
@@ -1 +1 @@
1
- export * from './Dropdown';
1
+ export * from './Dropdown';
@@ -1,16 +1,16 @@
1
- import React from 'react';
2
- interface Props<T extends Record<string, any>> {
3
- item: T;
4
- selectedId: string | undefined;
5
- onSelect: (id?: string) => void;
6
- idKey: string;
7
- displayKey: string;
8
- width?: number;
9
- customMenuItem?: ({ children, rowId, }: {
10
- children: React.ReactNode;
11
- rowId: string | number;
12
- }) => JSX.Element;
13
- onClose: () => void;
14
- }
15
- declare function MenuItem<T extends Record<string, any>>({ item, selectedId, onSelect, idKey, displayKey, width, customMenuItem: CustomMenuItem, onClose, }: Props<T>): import("react/jsx-runtime").JSX.Element;
16
- export default MenuItem;
1
+ import React from 'react';
2
+ interface Props<T extends Record<string, any>> {
3
+ item: T;
4
+ selectedId: string | undefined;
5
+ onSelect: (id?: string) => void;
6
+ idKey: string;
7
+ displayKey: string;
8
+ width?: number;
9
+ customMenuItem?: ({ children, rowId, }: {
10
+ children: React.ReactNode;
11
+ rowId: string | number;
12
+ }) => JSX.Element;
13
+ onClose: () => void;
14
+ }
15
+ declare function MenuItem<T extends Record<string, any>>({ item, selectedId, onSelect, idKey, displayKey, width, customMenuItem: CustomMenuItem, onClose, }: Props<T>): import("react/jsx-runtime").JSX.Element;
16
+ export default MenuItem;
@@ -1,31 +1,31 @@
1
- import React from 'react';
2
- import { TColor } from '../../../../enums/color';
3
- import { IconProps } from '../../../atoms/icon';
4
- interface Props<T extends Record<string, any>> {
5
- data: T[];
6
- selectedId: string | undefined;
7
- onSelect: (id?: string) => void;
8
- idKey: string;
9
- displayKey: string;
10
- color?: TColor;
11
- searchPlaceholder?: string;
12
- noDataMessage?: string;
13
- noResultMessage?: string;
14
- width?: number;
15
- height?: number;
16
- customMenuItem?: ({ children, rowId, }: {
17
- children: React.ReactNode;
18
- rowId: string | number;
19
- }) => JSX.Element;
20
- isSearch: boolean;
21
- parent: HTMLElement;
22
- open: boolean;
23
- onClose: () => void;
24
- menuBottomButton?: {
25
- content: string;
26
- startIcon?: IconProps;
27
- onClick: () => void;
28
- };
29
- }
30
- declare function DropdownMenu<T extends Record<string, any>>({ data, selectedId, onSelect, idKey, displayKey, color, searchPlaceholder, noDataMessage, noResultMessage, width, height, customMenuItem, isSearch, parent, open, onClose, menuBottomButton, }: Props<T>): import("react/jsx-runtime").JSX.Element;
31
- export default DropdownMenu;
1
+ import React from 'react';
2
+ import { TColor } from '../../../../enums/color';
3
+ import { IconProps } from '../../../atoms/icon';
4
+ interface Props<T extends Record<string, any>> {
5
+ data: T[];
6
+ selectedId: string | undefined;
7
+ onSelect: (id?: string) => void;
8
+ idKey: string;
9
+ displayKey: string;
10
+ color?: TColor;
11
+ searchPlaceholder?: string;
12
+ noDataMessage?: string;
13
+ noResultMessage?: string;
14
+ width?: number;
15
+ height?: number;
16
+ customMenuItem?: ({ children, rowId, }: {
17
+ children: React.ReactNode;
18
+ rowId: string | number;
19
+ }) => JSX.Element;
20
+ isSearch: boolean;
21
+ parent: HTMLElement;
22
+ open: boolean;
23
+ onClose: () => void;
24
+ menuBottomButton?: {
25
+ content: string;
26
+ startIcon?: IconProps;
27
+ onClick: () => void;
28
+ };
29
+ }
30
+ declare function DropdownMenu<T extends Record<string, any>>({ data, selectedId, onSelect, idKey, displayKey, color, searchPlaceholder, noDataMessage, noResultMessage, width, height, customMenuItem, isSearch, parent, open, onClose, menuBottomButton, }: Props<T>): import("react/jsx-runtime").JSX.Element;
31
+ export default DropdownMenu;
@@ -1,9 +1,9 @@
1
- import { TColor } from '../../../../enums/color';
2
- interface Props {
3
- open: boolean;
4
- focus: boolean;
5
- color: TColor;
6
- disabled?: boolean;
7
- }
8
- declare function Arrow({ open, focus, color, disabled }: Props): import("react/jsx-runtime").JSX.Element;
9
- export default Arrow;
1
+ import { TColor } from '../../../../enums/color';
2
+ interface Props {
3
+ open: boolean;
4
+ focus: boolean;
5
+ color: TColor;
6
+ disabled?: boolean;
7
+ }
8
+ declare function Arrow({ open, focus, color, disabled }: Props): import("react/jsx-runtime").JSX.Element;
9
+ export default Arrow;
@@ -1,6 +1,6 @@
1
- interface Props {
2
- focus: boolean;
3
- onClear: () => void;
4
- }
5
- declare function Clear({ focus, onClear }: Props): import("react/jsx-runtime").JSX.Element;
6
- export default Clear;
1
+ interface Props {
2
+ focus: boolean;
3
+ onClear: () => void;
4
+ }
5
+ declare function Clear({ focus, onClear }: Props): import("react/jsx-runtime").JSX.Element;
6
+ export default Clear;
@@ -1,19 +1,19 @@
1
- import React from 'react';
2
- import { TColor } from '../../../../enums/color';
3
- interface Props<T extends Record<string, any>> {
4
- displayKey: string;
5
- placeholder?: string;
6
- disabled?: boolean;
7
- color: TColor;
8
- stopPropagation?: boolean;
9
- width?: number;
10
- customButton?: React.ReactNode;
11
- open: boolean;
12
- selected: T | undefined;
13
- errored?: boolean;
14
- hasClearBtn: boolean;
15
- onClear: () => void;
16
- onClick: () => void;
17
- }
18
- declare function DropdownToggleButton<T extends Record<string, any>>({ displayKey, placeholder, disabled, color, stopPropagation, width, customButton, open, selected, errored, hasClearBtn, onClear, onClick, }: Props<T>): import("react/jsx-runtime").JSX.Element;
19
- export default DropdownToggleButton;
1
+ import React from 'react';
2
+ import { TColor } from '../../../../enums/color';
3
+ interface Props<T extends Record<string, any>> {
4
+ displayKey: string;
5
+ placeholder?: string;
6
+ disabled?: boolean;
7
+ color: TColor;
8
+ stopPropagation?: boolean;
9
+ width?: number;
10
+ customButton?: React.ReactNode;
11
+ open: boolean;
12
+ selected: T | undefined;
13
+ errored?: boolean;
14
+ hasClearBtn: boolean;
15
+ onClear: () => void;
16
+ onClick: () => void;
17
+ }
18
+ declare function DropdownToggleButton<T extends Record<string, any>>({ displayKey, placeholder, disabled, color, stopPropagation, width, customButton, open, selected, errored, hasClearBtn, onClear, onClick, }: Props<T>): import("react/jsx-runtime").JSX.Element;
19
+ export default DropdownToggleButton;
@@ -1,48 +1,48 @@
1
- import React from 'react';
2
- import { TColor } from '../../../enums/color';
3
- import { TModalSize } from '../../../enums/size';
4
- import './modal.scss';
5
- export interface ModalProps {
6
- children: React.ReactNode;
7
- onClose: () => void;
8
- open: boolean;
9
- /**
10
- * 배경 클릭 시 컴포넌트 닫히는지 여부. (@v1 backdropOff)
11
- */
12
- backdrop?: boolean;
13
- /**
14
- * 모달 취소버튼 설정
15
- */
16
- cancelButton?: {
17
- content: string;
18
- disabled?: boolean;
19
- };
20
- className?: string;
21
- /**
22
- * 엔터키 비활성화 여부. (@v1 disableEnterKeyDown)
23
- */
24
- disabledEnter?: boolean;
25
- /**
26
- * 모달 닫기 버튼 숨김 여부. (@v1 hasCloseButton)
27
- */
28
- hiddenCloseButton?: boolean;
29
- /**
30
- * 모달 확인버튼 설정 (@v1 confirmButton)
31
- */
32
- okButton?: {
33
- content: string;
34
- color?: TColor;
35
- disabled?: boolean;
36
- onClick?: () => void;
37
- };
38
- size?: TModalSize;
39
- /**
40
- * 모달 제목
41
- */
42
- title?: string;
43
- /**
44
- * 모달 제목 옆에 들어갈 내용
45
- */
46
- subTitle?: React.ReactNode;
47
- }
48
- export declare function Modal({ children, onClose, open, backdrop, cancelButton, className, disabledEnter, hiddenCloseButton, okButton, size, title, subTitle, }: ModalProps): import("react/jsx-runtime").JSX.Element;
1
+ import React from 'react';
2
+ import { TColor } from '../../../enums/color';
3
+ import { TModalSize } from '../../../enums/size';
4
+ import './modal.scss';
5
+ export interface ModalProps {
6
+ children: React.ReactNode;
7
+ onClose: () => void;
8
+ open: boolean;
9
+ /**
10
+ * 배경 클릭 시 컴포넌트 닫히는지 여부. (@v1 backdropOff)
11
+ */
12
+ backdrop?: boolean;
13
+ /**
14
+ * 모달 취소버튼 설정
15
+ */
16
+ cancelButton?: {
17
+ content: string;
18
+ disabled?: boolean;
19
+ };
20
+ className?: string;
21
+ /**
22
+ * 엔터키 비활성화 여부. (@v1 disableEnterKeyDown)
23
+ */
24
+ disabledEnter?: boolean;
25
+ /**
26
+ * 모달 닫기 버튼 숨김 여부. (@v1 hasCloseButton)
27
+ */
28
+ hiddenCloseButton?: boolean;
29
+ /**
30
+ * 모달 확인버튼 설정 (@v1 confirmButton)
31
+ */
32
+ okButton?: {
33
+ content: string;
34
+ color?: TColor;
35
+ disabled?: boolean;
36
+ onClick?: () => void;
37
+ };
38
+ size?: TModalSize;
39
+ /**
40
+ * 모달 제목
41
+ */
42
+ title?: string;
43
+ /**
44
+ * 모달 제목 옆에 들어갈 내용
45
+ */
46
+ subTitle?: React.ReactNode;
47
+ }
48
+ export declare function Modal({ children, onClose, open, backdrop, cancelButton, className, disabledEnter, hiddenCloseButton, okButton, size, title, subTitle, }: ModalProps): import("react/jsx-runtime").JSX.Element;
@@ -1 +1 @@
1
- export * from './Modal';
1
+ export * from './Modal';
@@ -1,76 +1,76 @@
1
- import { TColor } from '../../../enums/color';
2
- import { TDropdownType } from '../../../enums/type';
3
- import './multi-select-dropdown.scss';
4
- export interface MultiSelectDropdownProps<T extends Record<string, any>> {
5
- data: T[];
6
- /**
7
- * 선택된 아이디들
8
- */
9
- selectedIds: string[];
10
- onSelect: (ids: string[]) => void;
11
- /**
12
- * 아이디로 쓸 키
13
- */
14
- idKey: string;
15
- /**
16
- * 노출로 쓸 키
17
- */
18
- displayKey: string;
19
- /**
20
- * 드롭다운 버튼에 노출할 컨텐츠
21
- */
22
- content: string;
23
- className?: string;
24
- /**
25
- * 드롭다운 버튼의 placeholder
26
- */
27
- placeholder?: string;
28
- /**
29
- * 메뉴 내 검색창의 placeholder
30
- */
31
- searchPlaceholder?: string;
32
- /**
33
- * 전체 체크박스 옆에 노출할 라벨
34
- */
35
- allCheckLabel?: string;
36
- disabled?: boolean;
37
- color?: TColor;
38
- /**
39
- * true로 하면 드롭다운으로 이벤트가 가지 않음
40
- */
41
- stopPropagation?: boolean;
42
- /**
43
- * 데이터 타입
44
- */
45
- type?: TDropdownType;
46
- /**
47
- * 에러났을때 메시지
48
- */
49
- errorMessage?: string;
50
- label?: string;
51
- /**
52
- * 초기화 함수
53
- */
54
- onClear?: () => void;
55
- /**
56
- * 데이터가 없을때의 문구
57
- */
58
- noDataMessage?: string;
59
- /**
60
- * 검색 결과가 없을때의 문구
61
- */
62
- noResultMessage?: string;
63
- /**
64
- * 토글, 메뉴 가로 크기(px)
65
- */
66
- width?: number;
67
- /**
68
- * 메뉴 세로 크기(px)
69
- */
70
- height?: number;
71
- /**
72
- * 컴포넌트 위치의 기준이 될 엘리먼트 사용자 정의. (@v1 portalAnchor)
73
- */
74
- anchorEl?: HTMLElement | null;
75
- }
76
- export declare function MultiSelectDropdown<T extends Record<string, any>>({ data, selectedIds, onSelect, idKey, displayKey, content, className, placeholder, searchPlaceholder, disabled, color, stopPropagation, type, errorMessage, label, allCheckLabel, onClear, noDataMessage, noResultMessage, width, height, anchorEl, }: MultiSelectDropdownProps<T>): import("react/jsx-runtime").JSX.Element;
1
+ import { TColor } from '../../../enums/color';
2
+ import { TDropdownType } from '../../../enums/type';
3
+ import './multi-select-dropdown.scss';
4
+ export interface MultiSelectDropdownProps<T extends Record<string, any>> {
5
+ data: T[];
6
+ /**
7
+ * 선택된 아이디들
8
+ */
9
+ selectedIds: string[];
10
+ onSelect: (ids: string[]) => void;
11
+ /**
12
+ * 아이디로 쓸 키
13
+ */
14
+ idKey: string;
15
+ /**
16
+ * 노출로 쓸 키
17
+ */
18
+ displayKey: string;
19
+ /**
20
+ * 드롭다운 버튼에 노출할 컨텐츠
21
+ */
22
+ content: string;
23
+ className?: string;
24
+ /**
25
+ * 드롭다운 버튼의 placeholder
26
+ */
27
+ placeholder?: string;
28
+ /**
29
+ * 메뉴 내 검색창의 placeholder
30
+ */
31
+ searchPlaceholder?: string;
32
+ /**
33
+ * 전체 체크박스 옆에 노출할 라벨
34
+ */
35
+ allCheckLabel?: string;
36
+ disabled?: boolean;
37
+ color?: TColor;
38
+ /**
39
+ * true로 하면 드롭다운으로 이벤트가 가지 않음
40
+ */
41
+ stopPropagation?: boolean;
42
+ /**
43
+ * 데이터 타입
44
+ */
45
+ type?: TDropdownType;
46
+ /**
47
+ * 에러났을때 메시지
48
+ */
49
+ errorMessage?: string;
50
+ label?: string;
51
+ /**
52
+ * 초기화 함수
53
+ */
54
+ onClear?: () => void;
55
+ /**
56
+ * 데이터가 없을때의 문구
57
+ */
58
+ noDataMessage?: string;
59
+ /**
60
+ * 검색 결과가 없을때의 문구
61
+ */
62
+ noResultMessage?: string;
63
+ /**
64
+ * 토글, 메뉴 가로 크기(px)
65
+ */
66
+ width?: number;
67
+ /**
68
+ * 메뉴 세로 크기(px)
69
+ */
70
+ height?: number;
71
+ /**
72
+ * 컴포넌트 위치의 기준이 될 엘리먼트 사용자 정의. (@v1 portalAnchor)
73
+ */
74
+ anchorEl?: HTMLElement | null;
75
+ }
76
+ export declare function MultiSelectDropdown<T extends Record<string, any>>({ data, selectedIds, onSelect, idKey, displayKey, content, className, placeholder, searchPlaceholder, disabled, color, stopPropagation, type, errorMessage, label, allCheckLabel, onClear, noDataMessage, noResultMessage, width, height, anchorEl, }: MultiSelectDropdownProps<T>): import("react/jsx-runtime").JSX.Element;
@@ -1 +1 @@
1
- export * from './MultiSelectDropdown';
1
+ export * from './MultiSelectDropdown';
@@ -1,12 +1,12 @@
1
- import { TColor } from '../../../../enums/color';
2
- interface Props<T extends Record<string, any>> {
3
- item: T;
4
- selectedIds: string[];
5
- onSelect: (ids: string[]) => void;
6
- idKey: string;
7
- displayKey: string;
8
- color?: TColor;
9
- width?: number;
10
- }
11
- declare function MenuItem<T extends Record<string, any>>({ item, selectedIds, onSelect, idKey, displayKey, color, width, }: Props<T>): import("react/jsx-runtime").JSX.Element;
12
- export default MenuItem;
1
+ import { TColor } from '../../../../enums/color';
2
+ interface Props<T extends Record<string, any>> {
3
+ item: T;
4
+ selectedIds: string[];
5
+ onSelect: (ids: string[]) => void;
6
+ idKey: string;
7
+ displayKey: string;
8
+ color?: TColor;
9
+ width?: number;
10
+ }
11
+ declare function MenuItem<T extends Record<string, any>>({ item, selectedIds, onSelect, idKey, displayKey, color, width, }: Props<T>): import("react/jsx-runtime").JSX.Element;
12
+ export default MenuItem;