maru_design2 2.21.1 → 2.22.0
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/CHANGELOG.md +28 -0
- package/dist/components/atoms/icon/iconmap.d.ts +4 -0
- package/dist/components/atoms/tooltip/Tooltip.d.ts +6 -1
- package/dist/components/molecules/dropdown/Dropdown.d.ts +50 -23
- package/dist/components/molecules/dropdown/menu/index.d.ts +31 -0
- package/dist/components/molecules/dropdown/toggleButton/Clear.d.ts +6 -0
- package/dist/components/molecules/dropdown/{toggles/Button.d.ts → toggleButton/index.d.ts} +12 -15
- package/dist/components/molecules/multiSelectDropdown/MultiSelectDropdown.d.ts +42 -16
- package/dist/components/molecules/multiSelectDropdown/menu/index.d.ts +12 -9
- package/dist/components/molecules/multiSelectDropdown/toggleButton/Arrow.d.ts +9 -0
- package/dist/components/molecules/multiSelectDropdown/toggleButton/Clear.d.ts +6 -0
- package/dist/components/molecules/multiSelectDropdown/toggleButton/index.d.ts +17 -0
- package/dist/components/molecules/table/types.d.ts +1 -2
- package/dist/enums/color.d.ts +1 -1
- package/dist/enums/gap.d.ts +2 -0
- package/dist/enums/type.d.ts +2 -2
- package/dist/hooks/useColor.d.ts +1 -1
- package/dist/index.js +584 -574
- package/package.json +1 -1
- package/dist/components/molecules/dropdown/Menu.d.ts +0 -19
- package/dist/components/molecules/dropdown/toggles/Clear.d.ts +0 -10
- package/dist/components/molecules/dropdown/toggles/Input.d.ts +0 -24
- package/dist/components/molecules/multiSelectDropdown/toggle/Arrow.d.ts +0 -7
- package/dist/components/molecules/multiSelectDropdown/toggle/index.d.ts +0 -12
- /package/dist/components/molecules/dropdown/{toggles → toggleButton}/Arrow.d.ts +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,33 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.22.0](https://github.com/42maru-ai/maru-design2/compare/v2.21.1...v2.22.0) (2025-02-06)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* :art: Dropdown - add msg, update style ([aaed6af](https://github.com/42maru-ai/maru-design2/commit/aaed6af0f3460e659fb8ead331dddaee3369fbae))
|
|
9
|
+
* :label: Table - update scrollIntoView type ([950a248](https://github.com/42maru-ai/maru-design2/commit/950a248d3584dc807b1a4686195977331c5fd23c))
|
|
10
|
+
* :lipstick: MultiSelectDropdown - update style ([0095981](https://github.com/42maru-ai/maru-design2/commit/009598170d2face8a2a7befee381914aa996c027))
|
|
11
|
+
* :sparkles: Dropdown - add menu bottom button [#76](https://github.com/42maru-ai/maru-design2/issues/76) ([e0a65d9](https://github.com/42maru-ai/maru-design2/commit/e0a65d974a314b450609b75aa7b77cfbca51b9da))
|
|
12
|
+
* :sparkles: Dropdown - add searchPlaceholder ([5469d2c](https://github.com/42maru-ai/maru-design2/commit/5469d2c6a2dd51607d49503aae79919008ac9905))
|
|
13
|
+
* :sparkles: Tooltip - add gap ([1ee621c](https://github.com/42maru-ai/maru-design2/commit/1ee621c38fee97bec234edee34d944e53027fbe7))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Bug Fixes
|
|
17
|
+
|
|
18
|
+
* :art: Tooltip - update padding, gap ([a2b4c8b](https://github.com/42maru-ai/maru-design2/commit/a2b4c8bc05159d0bc44276fb6ff802ead0f11159))
|
|
19
|
+
* :bento: Icon - add icons [#402](https://github.com/42maru-ai/maru-design2/issues/402) ([11059c5](https://github.com/42maru-ai/maru-design2/commit/11059c59127ddb94c1ffcb4eb437501e474f7901))
|
|
20
|
+
* :bug: Dropdown - add color to menu bottom button ([900077d](https://github.com/42maru-ai/maru-design2/commit/900077d8500efc378c202c572506cecdb93d7f29))
|
|
21
|
+
* :bug: Table - fix table hover render bug [#459](https://github.com/42maru-ai/maru-design2/issues/459) ([3fc17bb](https://github.com/42maru-ai/maru-design2/commit/3fc17bbf382aefef24660ca7776553f110e25778))
|
|
22
|
+
* :bug: Table - update header icon ([e9e09fc](https://github.com/42maru-ai/maru-design2/commit/e9e09fcc8246263868773867cbba4debbfd4d76c))
|
|
23
|
+
* :bug: Table - update header icon tooltip gap ([e91fcb0](https://github.com/42maru-ai/maru-design2/commit/e91fcb0e22604c3ff097c06b86ff749caba43be8))
|
|
24
|
+
* :coffin: MultiSelectDropdown - remove dead code ([89223f7](https://github.com/42maru-ai/maru-design2/commit/89223f7ce91a2fc6effb7b847ff36282d4636475))
|
|
25
|
+
* :lipstick: - update tooltip font weight [#464](https://github.com/42maru-ai/maru-design2/issues/464) ([0692ad2](https://github.com/42maru-ai/maru-design2/commit/0692ad2e52435bb8f065253d1210880288f04939))
|
|
26
|
+
* :lipstick: Colors - UPDATE positive color ([fba04e0](https://github.com/42maru-ai/maru-design2/commit/fba04e0432689f4c3a9de007a330571aeaf36014))
|
|
27
|
+
* :lipstick: Input - update end node ([b3e2930](https://github.com/42maru-ai/maru-design2/commit/b3e2930206c3f420c8cbfc1fe81f3f84983182f6))
|
|
28
|
+
* :lipstick: SearchInput - update active style, show clear ([0301368](https://github.com/42maru-ai/maru-design2/commit/0301368528473307b13514d15838a4dbf684fedc))
|
|
29
|
+
* :twisted_rightwards_arrows: Dropdown - merge develop & resolve conflicts ([90724df](https://github.com/42maru-ai/maru-design2/commit/90724df20e4374b871c4252ef6a6f9762bc5f578))
|
|
30
|
+
|
|
3
31
|
## [2.21.1](https://github.com/42maru-ai/maru-design2/compare/v2.21.0...v2.21.1) (2025-02-04)
|
|
4
32
|
|
|
5
33
|
|
|
@@ -155,6 +155,7 @@ export declare const ICONS: {
|
|
|
155
155
|
readonly Download01_s1313: "Download01_s1313";
|
|
156
156
|
readonly Download01_s1413: "Download01_s1413";
|
|
157
157
|
readonly Download01_s1613: "Download01_s1613";
|
|
158
|
+
readonly Downstream_s1310: "Downstream_s1310";
|
|
158
159
|
readonly Downstream_s1410: "Downstream_s1410";
|
|
159
160
|
readonly Downstream_s2410: "Downstream_s2410";
|
|
160
161
|
readonly Drag_s1613: "Drag_s1613";
|
|
@@ -229,9 +230,11 @@ export declare const ICONS: {
|
|
|
229
230
|
readonly MessageText_s1815: "MessageText_s1815";
|
|
230
231
|
readonly MessageX_s1615: "MessageX_s1615";
|
|
231
232
|
readonly Move_s1613: "Move_s1613";
|
|
233
|
+
readonly Network03_s1110: "Network03_s1110";
|
|
232
234
|
readonly Network03_s1410: "Network03_s1410";
|
|
233
235
|
readonly Network03_s2410: "Network03_s2410";
|
|
234
236
|
readonly Network03_s2415: "Network03_s2415";
|
|
237
|
+
readonly Network04_s1310: "Network04_s1310";
|
|
235
238
|
readonly Network04_s1410: "Network04_s1410";
|
|
236
239
|
readonly Network04_s2410: "Network04_s2410";
|
|
237
240
|
readonly Pause_s1615: "Pause_s1615";
|
|
@@ -322,6 +325,7 @@ export declare const ICONS: {
|
|
|
322
325
|
readonly XDiamondBg_s2415: "XDiamondBg_s2415";
|
|
323
326
|
readonly X_s1410: "X_s1410";
|
|
324
327
|
readonly X_s1613: "X_s1613";
|
|
328
|
+
readonly X_s1615: "X_s1615";
|
|
325
329
|
readonly X_s2420: "X_s2420";
|
|
326
330
|
readonly Zap_s1810: "Zap_s1810";
|
|
327
331
|
readonly Zap_s1812: "Zap_s1812";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TDirection } from '../../../enums/direction';
|
|
3
|
+
import { TTooltipGap } from '../../../enums/gap';
|
|
3
4
|
import './tooltip.scss';
|
|
4
5
|
export interface TooltipProps {
|
|
5
6
|
/**
|
|
@@ -20,5 +21,9 @@ export interface TooltipProps {
|
|
|
20
21
|
* 컴포넌트 createPortal 여부. (@v1 isOnDocument)
|
|
21
22
|
*/
|
|
22
23
|
portal?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* 대상와 툴팁 사이의 거리. ['6px', '4px', '0px']
|
|
26
|
+
*/
|
|
27
|
+
gap?: TTooltipGap;
|
|
23
28
|
}
|
|
24
|
-
export declare function Tooltip({ children, content, className, hidden, direction, portal, }: TooltipProps): import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
export declare function Tooltip({ children, content, className, hidden, direction, portal, gap, }: TooltipProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TColor } from '../../../enums/color';
|
|
3
|
-
import {
|
|
3
|
+
import { TDropdownType } from '../../../enums/type';
|
|
4
|
+
import { IconProps } from '../../atoms/icon';
|
|
4
5
|
import './dropdown.scss';
|
|
5
6
|
interface DropdownProps<T extends Record<string, any>> {
|
|
6
7
|
data: T[];
|
|
@@ -17,24 +18,25 @@ interface DropdownProps<T extends Record<string, any>> {
|
|
|
17
18
|
* 노출로 쓸 키
|
|
18
19
|
*/
|
|
19
20
|
displayKey: string;
|
|
21
|
+
className?: string;
|
|
20
22
|
/**
|
|
21
|
-
*
|
|
23
|
+
* 드롭다운 버튼의 placeholder
|
|
22
24
|
*/
|
|
23
|
-
|
|
24
|
-
|
|
25
|
+
placeholder?: string;
|
|
26
|
+
/**
|
|
27
|
+
* 메뉴 내 검색창의 placeholder
|
|
28
|
+
*/
|
|
29
|
+
searchPlaceholder?: string;
|
|
30
|
+
disabled?: boolean;
|
|
25
31
|
color?: TColor;
|
|
26
32
|
/**
|
|
27
|
-
*
|
|
33
|
+
* true로 하면 드롭다운으로 이벤트가 가지 않음
|
|
28
34
|
*/
|
|
29
|
-
|
|
35
|
+
stopPropagation?: boolean;
|
|
30
36
|
/**
|
|
31
|
-
*
|
|
37
|
+
* 데이터 타입 (@v1 isSearch)
|
|
32
38
|
*/
|
|
33
|
-
|
|
34
|
-
children: React.ReactNode;
|
|
35
|
-
rowId: string | number;
|
|
36
|
-
}) => JSX.Element;
|
|
37
|
-
disabled?: boolean;
|
|
39
|
+
type?: TDropdownType;
|
|
38
40
|
/**
|
|
39
41
|
* 에러났을때 메시지. (@v1 isValid, validMessage)
|
|
40
42
|
*/
|
|
@@ -48,19 +50,14 @@ interface DropdownProps<T extends Record<string, any>> {
|
|
|
48
50
|
* 초기화 함수 (@v1 hasClearBtn, onClear)
|
|
49
51
|
*/
|
|
50
52
|
onClear?: () => void;
|
|
51
|
-
placeholder?: string;
|
|
52
53
|
/**
|
|
53
|
-
*
|
|
54
|
+
* 데이터가 없을때의 문구
|
|
54
55
|
*/
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* 드롭다운 토글 끝점에 위치시킬 노드. (@v1 endNode)
|
|
58
|
-
*/
|
|
59
|
-
toggleEndNode?: React.ReactNode;
|
|
56
|
+
noDataMessage?: string;
|
|
60
57
|
/**
|
|
61
|
-
*
|
|
58
|
+
* 검색 결과가 없을때의 문구
|
|
62
59
|
*/
|
|
63
|
-
|
|
60
|
+
noResultMessage?: string;
|
|
64
61
|
/**
|
|
65
62
|
* 토글, 메뉴 가로 크기(px) (@v1 menuPosition.width)
|
|
66
63
|
*/
|
|
@@ -69,7 +66,37 @@ interface DropdownProps<T extends Record<string, any>> {
|
|
|
69
66
|
* 메뉴 세로 크기(px) (@v1 menuPosition.height)
|
|
70
67
|
*/
|
|
71
68
|
height?: number;
|
|
72
|
-
|
|
69
|
+
/**
|
|
70
|
+
* 드롭다운 토글 버튼 사용자 정의 노드. (@v1 toggleChildren)
|
|
71
|
+
*/
|
|
72
|
+
customButton?: React.ReactNode;
|
|
73
|
+
/**
|
|
74
|
+
* 메뉴 아이템 사용자 정의 노드. (@v1 CustomMenuFormat)
|
|
75
|
+
*/
|
|
76
|
+
customMenuItem?: ({ children, rowId, }: {
|
|
77
|
+
children: React.ReactNode;
|
|
78
|
+
rowId: string | number;
|
|
79
|
+
}) => JSX.Element;
|
|
80
|
+
/**
|
|
81
|
+
* 컴포넌트 위치의 기준이 될 엘리먼트 사용자 정의. (@v1 portalAnchor)
|
|
82
|
+
*/
|
|
83
|
+
anchorEl?: HTMLElement | null;
|
|
84
|
+
/**
|
|
85
|
+
* 토글 화살표의 위치를 컴포넌트 시작점에 위치시킬지 여부. (@v1 IsToggleArrowStart)
|
|
86
|
+
*/
|
|
87
|
+
startArrow?: boolean;
|
|
88
|
+
/**
|
|
89
|
+
* 드롭다운 토글 끝점에 위치시킬 노드. (@v1 endNode)
|
|
90
|
+
*/
|
|
91
|
+
toggleEndNode?: React.ReactNode;
|
|
92
|
+
/**
|
|
93
|
+
* 메뉴 맨 밑에 버튼
|
|
94
|
+
*/
|
|
95
|
+
menuBottomButton?: {
|
|
96
|
+
content: string;
|
|
97
|
+
startIcon?: IconProps;
|
|
98
|
+
onClick: () => void;
|
|
99
|
+
};
|
|
73
100
|
}
|
|
74
|
-
export declare function Dropdown<T extends Record<string, any>>({ data, selectedId, onSelect, idKey, displayKey,
|
|
101
|
+
export declare function Dropdown<T extends Record<string, any>>({ data, selectedId, onSelect, idKey, displayKey, className, placeholder, searchPlaceholder, disabled, color, stopPropagation, type, errorMessage, inlineLabel, label, onClear, noDataMessage, noResultMessage, width, height, customButton, customMenuItem, anchorEl, startArrow, toggleEndNode, menuBottomButton, }: DropdownProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
75
102
|
export {};
|
|
@@ -0,0 +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: CustomMenuItem, isSearch, parent, open, onClose, menuBottomButton, }: Props<T>): import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
export default DropdownMenu;
|
|
@@ -1,25 +1,22 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TColor } from '../../../../enums/color';
|
|
3
3
|
interface Props<T extends Record<string, any>> {
|
|
4
|
-
open: boolean;
|
|
5
|
-
selected: T | undefined;
|
|
6
4
|
displayKey: string;
|
|
7
|
-
color: TColor;
|
|
8
|
-
width?: number;
|
|
9
|
-
disabled?: boolean;
|
|
10
5
|
placeholder?: string;
|
|
11
|
-
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
color: TColor;
|
|
8
|
+
stopPropagation?: boolean;
|
|
12
9
|
inlineLabel?: string;
|
|
10
|
+
width?: number;
|
|
11
|
+
customButton?: React.ReactNode;
|
|
13
12
|
startArrow?: boolean;
|
|
14
13
|
toggleEndNode?: React.ReactNode;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
onKeyDown: (e: React.KeyboardEvent) => void;
|
|
22
|
-
stopPropagation?: boolean;
|
|
14
|
+
open: boolean;
|
|
15
|
+
selected: T | undefined;
|
|
16
|
+
errored?: boolean;
|
|
17
|
+
hasClearBtn: boolean;
|
|
18
|
+
onClear: () => void;
|
|
19
|
+
onClick: () => void;
|
|
23
20
|
}
|
|
24
|
-
declare function DropdownToggleButton<T extends Record<string, any>>({
|
|
21
|
+
declare function DropdownToggleButton<T extends Record<string, any>>({ displayKey, placeholder, disabled, color, stopPropagation, inlineLabel, width, customButton, startArrow, toggleEndNode, open, selected, errored, hasClearBtn, onClear, onClick, }: Props<T>): import("react/jsx-runtime").JSX.Element;
|
|
25
22
|
export default DropdownToggleButton;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TColor } from '../../../enums/color';
|
|
2
|
+
import { TDropdownType } from '../../../enums/type';
|
|
2
3
|
import './multi-select-dropdown.scss';
|
|
3
4
|
export interface MultiSelectDropdownProps<T extends Record<string, any>> {
|
|
4
5
|
data: T[];
|
|
@@ -15,36 +16,61 @@ export interface MultiSelectDropdownProps<T extends Record<string, any>> {
|
|
|
15
16
|
* 노출로 쓸 키
|
|
16
17
|
*/
|
|
17
18
|
displayKey: string;
|
|
18
|
-
content: string;
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* 드롭다운 버튼에 노출할 컨텐츠
|
|
21
21
|
*/
|
|
22
|
-
|
|
22
|
+
content: string;
|
|
23
23
|
className?: string;
|
|
24
|
-
|
|
24
|
+
/**
|
|
25
|
+
* 드롭다운 버튼의 placeholder
|
|
26
|
+
*/
|
|
25
27
|
placeholder?: string;
|
|
26
28
|
/**
|
|
27
|
-
*
|
|
28
|
-
|
|
29
|
+
* 메뉴 내 검색창의 placeholder
|
|
30
|
+
*/
|
|
31
|
+
searchPlaceholder?: string;
|
|
32
|
+
/**
|
|
33
|
+
* 전체 체크박스 옆에 노출할 라벨
|
|
34
|
+
*/
|
|
35
|
+
allCheckLabel?: string;
|
|
36
|
+
disabled?: boolean;
|
|
37
|
+
color?: TColor;
|
|
38
|
+
/**
|
|
39
|
+
* true로 하면 드롭다운으로 이벤트가 가지 않음
|
|
29
40
|
*/
|
|
30
|
-
|
|
41
|
+
stopPropagation?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* 데이터 타입
|
|
44
|
+
*/
|
|
45
|
+
type?: TDropdownType;
|
|
46
|
+
/**
|
|
47
|
+
* 에러났을때 메시지
|
|
48
|
+
*/
|
|
49
|
+
errorMessage?: string;
|
|
50
|
+
label?: string;
|
|
51
|
+
/**
|
|
52
|
+
* 초기화 함수
|
|
53
|
+
*/
|
|
54
|
+
onClear?: () => void;
|
|
31
55
|
/**
|
|
32
|
-
*
|
|
33
|
-
* type=input일때는 인풋박스에 노출되는 placeholder
|
|
56
|
+
* 데이터가 없을때의 문구
|
|
34
57
|
*/
|
|
35
|
-
|
|
58
|
+
noDataMessage?: string;
|
|
36
59
|
/**
|
|
37
|
-
*
|
|
60
|
+
* 검색 결과가 없을때의 문구
|
|
38
61
|
*/
|
|
39
62
|
noResultMessage?: string;
|
|
40
63
|
/**
|
|
41
|
-
* 토글, 메뉴 가로 크기(px)
|
|
64
|
+
* 토글, 메뉴 가로 크기(px)
|
|
42
65
|
*/
|
|
43
66
|
width?: number;
|
|
44
67
|
/**
|
|
45
|
-
* 메뉴 세로 크기(px)
|
|
68
|
+
* 메뉴 세로 크기(px)
|
|
46
69
|
*/
|
|
47
70
|
height?: number;
|
|
48
|
-
|
|
71
|
+
/**
|
|
72
|
+
* 컴포넌트 위치의 기준이 될 엘리먼트 사용자 정의. (@v1 portalAnchor)
|
|
73
|
+
*/
|
|
74
|
+
anchorEl?: HTMLElement | null;
|
|
49
75
|
}
|
|
50
|
-
export declare function MultiSelectDropdown<T extends Record<string, any>>({ data, selectedIds, onSelect, idKey, displayKey, content,
|
|
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,18 +1,21 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TColor } from '../../../../enums/color';
|
|
2
2
|
interface Props<T extends Record<string, any>> {
|
|
3
|
-
|
|
4
|
-
parent: HTMLElement;
|
|
3
|
+
data: T[];
|
|
5
4
|
selectedIds: string[];
|
|
5
|
+
onSelect: (ids: string[]) => void;
|
|
6
6
|
idKey: string;
|
|
7
7
|
displayKey: string;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
searchPlaceholder?: string;
|
|
9
|
+
allCheckLabel?: string;
|
|
10
|
+
color?: TColor;
|
|
11
|
+
noDataMessage?: string;
|
|
11
12
|
noResultMessage?: string;
|
|
12
13
|
width?: number;
|
|
13
14
|
height?: number;
|
|
14
|
-
|
|
15
|
-
|
|
15
|
+
isSearch: boolean;
|
|
16
|
+
parent: HTMLElement;
|
|
17
|
+
open: boolean;
|
|
18
|
+
onClose: () => void;
|
|
16
19
|
}
|
|
17
|
-
declare function DropdownMenu<T extends Record<string, any>>({
|
|
20
|
+
declare function DropdownMenu<T extends Record<string, any>>({ data, selectedIds, onSelect, idKey, displayKey, searchPlaceholder, allCheckLabel, color, noDataMessage, noResultMessage, width, height, isSearch, parent, open, onClose, }: Props<T>): import("react/jsx-runtime").JSX.Element;
|
|
18
21
|
export default DropdownMenu;
|
|
@@ -0,0 +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;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { TColor } from '../../../../enums/color';
|
|
2
|
+
interface Props {
|
|
3
|
+
content: string;
|
|
4
|
+
placeholder?: string;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
color: TColor;
|
|
7
|
+
stopPropagation?: boolean;
|
|
8
|
+
width?: number;
|
|
9
|
+
open: boolean;
|
|
10
|
+
selected: boolean;
|
|
11
|
+
errored?: boolean;
|
|
12
|
+
hasClearBtn: boolean;
|
|
13
|
+
onClear: () => void;
|
|
14
|
+
onClick: () => void;
|
|
15
|
+
}
|
|
16
|
+
declare function DropdownToggleButton({ content, placeholder, disabled, color, stopPropagation, width, open, selected, errored, hasClearBtn, onClear, onClick, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export default DropdownToggleButton;
|
|
@@ -92,12 +92,11 @@ export interface TableProps {
|
|
|
92
92
|
onRowClick?: (rowId: string) => void;
|
|
93
93
|
/**
|
|
94
94
|
* 선택된 행 스타일 지정, onRowClick과 조합해서 사용 가능 (@v1 focusedRowInfo)
|
|
95
|
-
* @scrollIntoView smooth / center / center
|
|
96
95
|
*/
|
|
97
96
|
selectedRow?: {
|
|
98
97
|
rowId: string;
|
|
99
98
|
className?: string;
|
|
100
|
-
scrollIntoView?: boolean;
|
|
99
|
+
scrollIntoView?: boolean | ScrollIntoViewOptions;
|
|
101
100
|
};
|
|
102
101
|
/**
|
|
103
102
|
* 하이라이팅할 행과 스타일 지정
|
package/dist/enums/color.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ export type TTheme = 'blue' | 'green' | 'navy';
|
|
|
2
2
|
declare const DColor: {
|
|
3
3
|
readonly primary: "var(--p)";
|
|
4
4
|
readonly secondary: "#8c8c8c";
|
|
5
|
-
readonly positive: "#
|
|
5
|
+
readonly positive: "#32a483";
|
|
6
6
|
readonly warning: "#ffb020";
|
|
7
7
|
readonly danger: "#e53e3e";
|
|
8
8
|
readonly success: "#308acc";
|
package/dist/enums/gap.d.ts
CHANGED
package/dist/enums/type.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare const INPUT_TYPES: readonly ["text", "password", "number"];
|
|
2
2
|
export type TInputType = (typeof INPUT_TYPES)[number];
|
|
3
|
-
export declare const
|
|
4
|
-
export type
|
|
3
|
+
export declare const DROPDOWN_TYPES: readonly ["button", "search"];
|
|
4
|
+
export type TDropdownType = (typeof DROPDOWN_TYPES)[number];
|
package/dist/hooks/useColor.d.ts
CHANGED