@ncds/ui-admin 0.0.26 → 0.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/cjs/src/components/badge/Badge.js +8 -1
- package/dist/cjs/src/components/button/Button.js +17 -4
- package/dist/cjs/src/components/button/ButtonGroup.js +20 -5
- package/dist/cjs/src/components/date-picker/RangeDatePickerWithButtons.js +4 -2
- package/dist/cjs/src/components/divider/Divider.js +6 -2
- package/dist/cjs/src/components/dot/Dot.js +41 -0
- package/dist/cjs/src/components/dot/index.js +16 -0
- package/dist/cjs/src/components/index.js +11 -0
- package/dist/cjs/src/components/modal/Modal.js +11 -8
- package/dist/cjs/src/components/select/Select.js +1 -9
- package/dist/cjs/src/components/tag/Tag.js +21 -9
- package/dist/esm/src/components/badge/Badge.js +8 -1
- package/dist/esm/src/components/button/Button.js +16 -3
- package/dist/esm/src/components/button/ButtonGroup.js +20 -5
- package/dist/esm/src/components/date-picker/RangeDatePickerWithButtons.js +4 -2
- package/dist/esm/src/components/divider/Divider.js +6 -2
- package/dist/esm/src/components/dot/Dot.js +34 -0
- package/dist/esm/src/components/dot/index.js +1 -0
- package/dist/esm/src/components/index.js +1 -0
- package/dist/esm/src/components/modal/Modal.js +11 -8
- package/dist/esm/src/components/select/Select.js +1 -9
- package/dist/esm/src/components/tag/Tag.js +21 -9
- package/dist/types/constant/color.d.ts +1 -0
- package/dist/types/src/components/badge/Badge.d.ts +3 -2
- package/dist/types/src/components/button/Button.d.ts +3 -13
- package/dist/types/src/components/button/ButtonGroup.d.ts +18 -29
- package/dist/types/src/components/date-picker/RangeDatePickerWithButtons.d.ts +3 -1
- package/dist/types/src/components/divider/Divider.d.ts +5 -0
- package/dist/types/src/components/dot/Dot.d.ts +23 -0
- package/dist/types/src/components/dot/index.d.ts +2 -0
- package/dist/types/src/components/index.d.ts +1 -0
- package/dist/types/src/components/modal/Modal.d.ts +6 -6
- package/dist/types/src/components/select/Select.d.ts +1 -1
- package/dist/types/src/components/tag/Tag.d.ts +5 -9
- package/dist/ui-admin/assets/styles/style.css +93 -52
- package/package.json +1 -1
|
@@ -83,12 +83,15 @@ Modal.Header = function (_a) {
|
|
|
83
83
|
hideCloseButton = _d === void 0 ? false : _d;
|
|
84
84
|
return _jsxs(_Fragment, {
|
|
85
85
|
children: [_jsxs("header", __assign({
|
|
86
|
-
className: classnames('ncua-modal__header', "ncua-modal__header--".concat(align)
|
|
86
|
+
className: classnames('ncua-modal__header', "ncua-modal__header--".concat(align), {
|
|
87
|
+
'ncua-modal__header--close-button': !hideCloseButton
|
|
88
|
+
})
|
|
87
89
|
}, {
|
|
88
90
|
children: [featuredIcon && _jsx(FeaturedIcon, {
|
|
89
91
|
name: featuredIcon.name,
|
|
90
92
|
color: featuredIcon.color,
|
|
91
|
-
theme: featuredIcon.theme
|
|
93
|
+
theme: featuredIcon.theme,
|
|
94
|
+
size: "sm"
|
|
92
95
|
}), _jsxs("div", __assign({
|
|
93
96
|
className: "ncua-modal__title"
|
|
94
97
|
}, {
|
|
@@ -129,14 +132,14 @@ Modal.Content = function (_a) {
|
|
|
129
132
|
*
|
|
130
133
|
* 1. Vertical layout (buttons stacked):
|
|
131
134
|
* <Modal.Actions layout="vertical" align="stretch">
|
|
132
|
-
* <Button label="Confirm" onClick={handleConfirm} hierarchy="primary" />
|
|
133
|
-
* <Button label="Cancel" onClick={handleCancel} hierarchy="secondary-gray" />
|
|
135
|
+
* <Button size="sm" label="Confirm" onClick={handleConfirm} hierarchy="primary" />
|
|
136
|
+
* <Button size="sm" label="Cancel" onClick={handleCancel} hierarchy="secondary-gray" />
|
|
134
137
|
* </Modal.Actions>
|
|
135
138
|
*
|
|
136
139
|
* 2. Horizontal layout (buttons side by side):
|
|
137
140
|
* <Modal.Actions layout="horizontal" align="stretch">
|
|
138
|
-
* <Button label="Confirm" onClick={handleConfirm} hierarchy="primary" />
|
|
139
|
-
* <Button label="Cancel" onClick={handleCancel} hierarchy="secondary-gray" />
|
|
141
|
+
* <Button size="sm" label="Confirm" onClick={handleConfirm} hierarchy="primary" />
|
|
142
|
+
* <Button size="sm" label="Cancel" onClick={handleCancel} hierarchy="secondary-gray" />
|
|
140
143
|
* </Modal.Actions>
|
|
141
144
|
*
|
|
142
145
|
* 3. Checkbox layout (checkbox on left, buttons on right):
|
|
@@ -146,8 +149,8 @@ Modal.Content = function (_a) {
|
|
|
146
149
|
* <a href="#">Settings</a>
|
|
147
150
|
* </>
|
|
148
151
|
* }>
|
|
149
|
-
* <Button label="Cancel" onClick={handleCancel} hierarchy="secondary-gray" />
|
|
150
|
-
* <Button label="Confirm" onClick={handleConfirm} hierarchy="primary" />
|
|
152
|
+
* <Button size="sm" label="Cancel" onClick={handleCancel} hierarchy="secondary-gray" />
|
|
153
|
+
* <Button size="sm" label="Confirm" onClick={handleConfirm} hierarchy="primary" />
|
|
151
154
|
* </Modal.Actions>
|
|
152
155
|
*/
|
|
153
156
|
Modal.Actions = function (_a) {
|
|
@@ -22,7 +22,7 @@ import classNames from 'classnames';
|
|
|
22
22
|
import { forwardRef } from 'react';
|
|
23
23
|
import { HintText } from '../shared/hintText/HintText';
|
|
24
24
|
/**
|
|
25
|
-
* 현재 icon
|
|
25
|
+
* 현재 icon 속성은 현재 디자인 시스템에 존재하지 않으니 사용하지 않는 것을 권장합니다.
|
|
26
26
|
*/
|
|
27
27
|
export var Select = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
28
28
|
var icon = _a.icon,
|
|
@@ -80,14 +80,6 @@ export var Select = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
80
80
|
children: item.label
|
|
81
81
|
}), "option-".concat(index));
|
|
82
82
|
}), children]
|
|
83
|
-
})), destructive && _jsx("div", __assign({
|
|
84
|
-
className: "ncua-select__destructive-icon"
|
|
85
|
-
}, {
|
|
86
|
-
children: _jsx(Icon, {
|
|
87
|
-
name: "info-circle",
|
|
88
|
-
width: 14,
|
|
89
|
-
height: 14
|
|
90
|
-
})
|
|
91
83
|
}))]
|
|
92
84
|
})), hintText && _jsx(HintText, __assign({
|
|
93
85
|
destructive: destructive,
|
|
@@ -12,6 +12,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
12
12
|
import Icon from '@ncds/ui-admin-icon';
|
|
13
13
|
import classNames from 'classnames';
|
|
14
14
|
import { COLOR } from '../../../constant/color';
|
|
15
|
+
import { Dot } from '../dot';
|
|
15
16
|
export var Tag = function (_a) {
|
|
16
17
|
var _b = _a.size,
|
|
17
18
|
size = _b === void 0 ? 'sm' : _b,
|
|
@@ -24,17 +25,28 @@ export var Tag = function (_a) {
|
|
|
24
25
|
sm: 14,
|
|
25
26
|
md: 16
|
|
26
27
|
};
|
|
28
|
+
var sideSlotRender = function (slot) {
|
|
29
|
+
var _a;
|
|
30
|
+
if (slot.type === 'icon') {
|
|
31
|
+
return _jsx(Icon, {
|
|
32
|
+
name: slot.icon,
|
|
33
|
+
width: iconSize[size],
|
|
34
|
+
height: iconSize[size],
|
|
35
|
+
color: slot.color
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
if (slot.type === 'dot') {
|
|
39
|
+
return _jsx(Dot, {
|
|
40
|
+
color: slot.color,
|
|
41
|
+
size: (_a = slot.size) !== null && _a !== void 0 ? _a : 'sm'
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
return slot.children;
|
|
45
|
+
};
|
|
27
46
|
return _jsxs("span", __assign({
|
|
28
|
-
className: classNames('ncua-tag', "ncua-tag--".concat(size)
|
|
29
|
-
'ncua-tag--dot': (icon === null || icon === void 0 ? void 0 : icon.name) === 'dot'
|
|
30
|
-
})
|
|
47
|
+
className: classNames('ncua-tag', "ncua-tag--".concat(size))
|
|
31
48
|
}, {
|
|
32
|
-
children: [icon && icon
|
|
33
|
-
name: icon.name,
|
|
34
|
-
width: iconSize[size],
|
|
35
|
-
height: iconSize[size],
|
|
36
|
-
color: icon.color
|
|
37
|
-
}), _jsx("span", __assign({
|
|
49
|
+
children: [icon && sideSlotRender(icon), _jsx("span", __assign({
|
|
38
50
|
className: "ncua-tag__text"
|
|
39
51
|
}, {
|
|
40
52
|
children: text
|
|
@@ -31,4 +31,5 @@ export declare const COLOR: {
|
|
|
31
31
|
'secondary-gray-blue-700': string;
|
|
32
32
|
};
|
|
33
33
|
export type ColorKeyType = keyof typeof COLOR;
|
|
34
|
+
export type ColorTone = 'neutral' | 'error' | 'warning' | 'success' | 'blue' | 'pink' | 'violet' | 'disabled';
|
|
34
35
|
//# sourceMappingURL=color.d.ts.map
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ColorTone } from '../../../constant/color';
|
|
2
2
|
import { Size } from '../../../constant/size';
|
|
3
|
+
import { SideSlotType } from '../../types/side-slot';
|
|
3
4
|
export type BadgeType = 'pill-outline' | 'pill-dark-color';
|
|
4
|
-
export type BadgeColor = 'neutral' | 'error' | 'warning' | 'success' | 'blue' | 'pink' | 'disabled'
|
|
5
|
+
export type BadgeColor = Extract<ColorTone, 'neutral' | 'error' | 'warning' | 'success' | 'blue' | 'pink' | 'disabled'>;
|
|
5
6
|
export type BadgeSize = Extract<Size, 'xs' | 'sm' | 'md'>;
|
|
6
7
|
export type BadgeProps = {
|
|
7
8
|
label: string;
|
|
@@ -1,19 +1,8 @@
|
|
|
1
1
|
import { ComponentProps, ReactNode } from 'react';
|
|
2
|
-
import { COLOR } from '../../../constant/color';
|
|
3
2
|
import { Size } from '../../../constant/size';
|
|
4
|
-
import {
|
|
3
|
+
import { SideSlotType } from '../../types/side-slot';
|
|
4
|
+
import { DotProps } from '../dot';
|
|
5
5
|
export type ButtonTheme = 'primary' | 'secondary' | 'secondary-gray' | 'tertiary-gray' | 'tertiary' | 'link' | 'destructive';
|
|
6
|
-
export type IconSlotType = {
|
|
7
|
-
type: 'icon';
|
|
8
|
-
icon: IconName;
|
|
9
|
-
color?: keyof typeof COLOR;
|
|
10
|
-
size?: number | string;
|
|
11
|
-
};
|
|
12
|
-
export type CustomSlotType = {
|
|
13
|
-
type: 'custom';
|
|
14
|
-
children: ReactNode;
|
|
15
|
-
};
|
|
16
|
-
export type SideSlotType = IconSlotType | CustomSlotType;
|
|
17
6
|
export type ButtonSize = Extract<Size, 'xxs' | 'xs' | 'sm' | 'md'>;
|
|
18
7
|
type CommonButtonProps<T extends keyof HTMLElementTagNameMap> = Omit<ComponentProps<T>, 'ref'> & {
|
|
19
8
|
label: string;
|
|
@@ -39,6 +28,7 @@ type AnchorElementProps = CommonButtonProps<'a'> & {
|
|
|
39
28
|
export type ButtonProps = ButtonElementProps | AnchorElementProps;
|
|
40
29
|
export declare const svgSize: Record<ButtonSize, number>;
|
|
41
30
|
export declare const iconOnlySvgSize: Record<ButtonSize, number>;
|
|
31
|
+
export declare const dotSize: Record<ButtonSize, DotProps['size']>;
|
|
42
32
|
export declare const Button: import("react").ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
43
33
|
export {};
|
|
44
34
|
//# sourceMappingURL=Button.d.ts.map
|
|
@@ -1,26 +1,15 @@
|
|
|
1
|
-
import { IconName } from '@ncds/ui-admin-icon';
|
|
2
1
|
import React, { ComponentProps } from 'react';
|
|
3
|
-
import { ColorKeyType } from '../../../constant/color';
|
|
4
2
|
import { Size } from '../../../constant/size';
|
|
5
|
-
|
|
3
|
+
import { SideSlotType } from 'ui-admin/src/types/side-slot';
|
|
4
|
+
export type ButtonGroupSize = Extract<Size, 'xs' | 'sm' | 'md' | 'lg'>;
|
|
6
5
|
interface SideCommon {
|
|
7
6
|
position?: 'leading' | 'trailing';
|
|
8
7
|
}
|
|
9
|
-
|
|
10
|
-
type: 'icon';
|
|
11
|
-
icon: IconName;
|
|
12
|
-
size?: number;
|
|
13
|
-
color?: ColorKeyType;
|
|
14
|
-
}
|
|
15
|
-
interface SideCustom {
|
|
16
|
-
type: 'custom';
|
|
17
|
-
children: React.ReactNode;
|
|
18
|
-
}
|
|
19
|
-
type SideSlotType = SideCommon & (SideIcon | SideCustom);
|
|
8
|
+
type SideSlot = SideCommon & SideSlotType;
|
|
20
9
|
interface ButtonGroupItemCommonProps {
|
|
21
10
|
label?: string;
|
|
22
11
|
size?: ButtonGroupSize;
|
|
23
|
-
icon?:
|
|
12
|
+
icon?: SideSlot;
|
|
24
13
|
children?: React.ReactNode;
|
|
25
14
|
onlyIcon?: boolean;
|
|
26
15
|
disabled?: boolean;
|
|
@@ -54,7 +43,7 @@ export declare const ButtonGroup: {
|
|
|
54
43
|
formNoValidate?: boolean | undefined;
|
|
55
44
|
formTarget?: string | undefined;
|
|
56
45
|
name?: string | undefined;
|
|
57
|
-
type
|
|
46
|
+
type: string | undefined;
|
|
58
47
|
value?: string | number | readonly string[] | undefined;
|
|
59
48
|
defaultChecked?: boolean | undefined;
|
|
60
49
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
@@ -68,7 +57,7 @@ export declare const ButtonGroup: {
|
|
|
68
57
|
contextMenu?: string | undefined;
|
|
69
58
|
dir?: string | undefined;
|
|
70
59
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
71
|
-
enterKeyHint?: "
|
|
60
|
+
enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined;
|
|
72
61
|
hidden?: boolean | undefined;
|
|
73
62
|
id?: string | undefined;
|
|
74
63
|
lang?: string | undefined;
|
|
@@ -103,13 +92,13 @@ export declare const ButtonGroup: {
|
|
|
103
92
|
results?: number | undefined;
|
|
104
93
|
security?: string | undefined;
|
|
105
94
|
unselectable?: "off" | "on" | undefined;
|
|
106
|
-
inputMode?: "
|
|
95
|
+
inputMode?: "none" | "search" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
107
96
|
is?: string | undefined;
|
|
108
97
|
exportparts?: string | undefined;
|
|
109
98
|
part?: string | undefined;
|
|
110
99
|
"aria-activedescendant"?: string | undefined;
|
|
111
100
|
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
112
|
-
"aria-autocomplete"?: "
|
|
101
|
+
"aria-autocomplete"?: "none" | "list" | "inline" | "both" | undefined;
|
|
113
102
|
"aria-braillelabel"?: string | undefined;
|
|
114
103
|
"aria-brailleroledescription"?: string | undefined;
|
|
115
104
|
"aria-busy"?: (boolean | "true" | "false") | undefined;
|
|
@@ -119,17 +108,17 @@ export declare const ButtonGroup: {
|
|
|
119
108
|
"aria-colindextext"?: string | undefined;
|
|
120
109
|
"aria-colspan"?: number | undefined;
|
|
121
110
|
"aria-controls"?: string | undefined;
|
|
122
|
-
"aria-current"?: boolean | "
|
|
111
|
+
"aria-current"?: boolean | "true" | "false" | "time" | "step" | "date" | "page" | "location" | undefined;
|
|
123
112
|
"aria-describedby"?: string | undefined;
|
|
124
113
|
"aria-description"?: string | undefined;
|
|
125
114
|
"aria-details"?: string | undefined;
|
|
126
115
|
"aria-disabled"?: (boolean | "true" | "false") | undefined;
|
|
127
|
-
"aria-dropeffect"?: "
|
|
116
|
+
"aria-dropeffect"?: "none" | "link" | "move" | "copy" | "execute" | "popup" | undefined;
|
|
128
117
|
"aria-errormessage"?: string | undefined;
|
|
129
118
|
"aria-expanded"?: (boolean | "true" | "false") | undefined;
|
|
130
119
|
"aria-flowto"?: string | undefined;
|
|
131
120
|
"aria-grabbed"?: (boolean | "true" | "false") | undefined;
|
|
132
|
-
"aria-haspopup"?: boolean | "
|
|
121
|
+
"aria-haspopup"?: boolean | "true" | "false" | "dialog" | "grid" | "listbox" | "menu" | "tree" | undefined;
|
|
133
122
|
"aria-hidden"?: (boolean | "true" | "false") | undefined;
|
|
134
123
|
"aria-invalid"?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
135
124
|
"aria-keyshortcuts"?: string | undefined;
|
|
@@ -333,7 +322,7 @@ export declare const ButtonGroup: {
|
|
|
333
322
|
media?: string | undefined;
|
|
334
323
|
ping?: string | undefined;
|
|
335
324
|
target?: React.HTMLAttributeAnchorTarget | undefined;
|
|
336
|
-
type
|
|
325
|
+
type: string | undefined;
|
|
337
326
|
referrerPolicy?: React.HTMLAttributeReferrerPolicy | undefined;
|
|
338
327
|
defaultChecked?: boolean | undefined;
|
|
339
328
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
@@ -347,7 +336,7 @@ export declare const ButtonGroup: {
|
|
|
347
336
|
contextMenu?: string | undefined;
|
|
348
337
|
dir?: string | undefined;
|
|
349
338
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
350
|
-
enterKeyHint?: "
|
|
339
|
+
enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined;
|
|
351
340
|
hidden?: boolean | undefined;
|
|
352
341
|
id?: string | undefined;
|
|
353
342
|
lang?: string | undefined;
|
|
@@ -382,13 +371,13 @@ export declare const ButtonGroup: {
|
|
|
382
371
|
results?: number | undefined;
|
|
383
372
|
security?: string | undefined;
|
|
384
373
|
unselectable?: "off" | "on" | undefined;
|
|
385
|
-
inputMode?: "
|
|
374
|
+
inputMode?: "none" | "search" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
386
375
|
is?: string | undefined;
|
|
387
376
|
exportparts?: string | undefined;
|
|
388
377
|
part?: string | undefined;
|
|
389
378
|
"aria-activedescendant"?: string | undefined;
|
|
390
379
|
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
391
|
-
"aria-autocomplete"?: "
|
|
380
|
+
"aria-autocomplete"?: "none" | "list" | "inline" | "both" | undefined;
|
|
392
381
|
"aria-braillelabel"?: string | undefined;
|
|
393
382
|
"aria-brailleroledescription"?: string | undefined;
|
|
394
383
|
"aria-busy"?: (boolean | "true" | "false") | undefined;
|
|
@@ -398,17 +387,17 @@ export declare const ButtonGroup: {
|
|
|
398
387
|
"aria-colindextext"?: string | undefined;
|
|
399
388
|
"aria-colspan"?: number | undefined;
|
|
400
389
|
"aria-controls"?: string | undefined;
|
|
401
|
-
"aria-current"?: boolean | "
|
|
390
|
+
"aria-current"?: boolean | "true" | "false" | "time" | "step" | "date" | "page" | "location" | undefined;
|
|
402
391
|
"aria-describedby"?: string | undefined;
|
|
403
392
|
"aria-description"?: string | undefined;
|
|
404
393
|
"aria-details"?: string | undefined;
|
|
405
394
|
"aria-disabled"?: (boolean | "true" | "false") | undefined;
|
|
406
|
-
"aria-dropeffect"?: "
|
|
395
|
+
"aria-dropeffect"?: "none" | "link" | "move" | "copy" | "execute" | "popup" | undefined;
|
|
407
396
|
"aria-errormessage"?: string | undefined;
|
|
408
397
|
"aria-expanded"?: (boolean | "true" | "false") | undefined;
|
|
409
398
|
"aria-flowto"?: string | undefined;
|
|
410
399
|
"aria-grabbed"?: (boolean | "true" | "false") | undefined;
|
|
411
|
-
"aria-haspopup"?: boolean | "
|
|
400
|
+
"aria-haspopup"?: boolean | "true" | "false" | "dialog" | "grid" | "listbox" | "menu" | "tree" | undefined;
|
|
412
401
|
"aria-hidden"?: (boolean | "true" | "false") | undefined;
|
|
413
402
|
"aria-invalid"?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
414
403
|
"aria-keyshortcuts"?: string | undefined;
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { Dispatch, SetStateAction } from 'react';
|
|
2
2
|
import { RangeDatePickerProps } from './RangeDatePicker';
|
|
3
|
+
import { ButtonGroupSize } from '../button';
|
|
3
4
|
import { PERIOD_ITEM } from '../../constant/date-picker';
|
|
4
5
|
export type PeriodKeyType = keyof typeof PERIOD_ITEM;
|
|
5
6
|
type RangeDatePickerWithButtonsProps = {
|
|
7
|
+
buttonGroupSize?: ButtonGroupSize;
|
|
6
8
|
currentButtonId: PeriodKeyType;
|
|
7
9
|
setCurrentButtonId: Dispatch<SetStateAction<PeriodKeyType>>;
|
|
8
10
|
periodKeys: PeriodKeyType[];
|
|
9
11
|
} & RangeDatePickerProps;
|
|
10
|
-
export declare const RangeDatePickerWithButtons: ({ currentButtonId, setCurrentButtonId, startDateOptions, endDateOptions, validationOption, periodKeys, onDateValidation, }: RangeDatePickerWithButtonsProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare const RangeDatePickerWithButtons: ({ buttonGroupSize, currentButtonId, setCurrentButtonId, startDateOptions, endDateOptions, validationOption, periodKeys, onDateValidation, }: RangeDatePickerWithButtonsProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
13
|
export {};
|
|
12
14
|
//# sourceMappingURL=RangeDatePickerWithButtons.d.ts.map
|
|
@@ -7,5 +7,10 @@ export interface DividerProps {
|
|
|
7
7
|
style?: DividerStyle;
|
|
8
8
|
children: ReactNode;
|
|
9
9
|
}
|
|
10
|
+
/**
|
|
11
|
+
* @param {DividerProps} props
|
|
12
|
+
* @param {ReactNode} props.children Button 컴포넌트는 xs로 ButtonGroup은 sm 사이즈로 추가하는 것이 권장됩니다.
|
|
13
|
+
* @returns {ReactNode}
|
|
14
|
+
*/
|
|
10
15
|
export declare const Divider: import("react").ForwardRefExoticComponent<DividerProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
11
16
|
//# sourceMappingURL=Divider.d.ts.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
import { Size } from '../../../constant/size';
|
|
3
|
+
import { ColorTone } from '../../../constant/color';
|
|
4
|
+
export type DotColor = ColorTone;
|
|
5
|
+
export type DotSize = Extract<Size, 'sm' | 'md' | 'lg'>;
|
|
6
|
+
export interface DotProps extends Omit<HTMLAttributes<HTMLSpanElement>, 'color'> {
|
|
7
|
+
/**
|
|
8
|
+
* The color of the dot
|
|
9
|
+
* @default 'success'
|
|
10
|
+
*/
|
|
11
|
+
color?: DotColor;
|
|
12
|
+
/**
|
|
13
|
+
* The size of the dot
|
|
14
|
+
* @default 'md'
|
|
15
|
+
*/
|
|
16
|
+
size?: DotSize;
|
|
17
|
+
/**
|
|
18
|
+
* Additional class names
|
|
19
|
+
*/
|
|
20
|
+
className?: string;
|
|
21
|
+
}
|
|
22
|
+
export declare const Dot: import("react").ForwardRefExoticComponent<DotProps & import("react").RefAttributes<HTMLSpanElement>>;
|
|
23
|
+
//# sourceMappingURL=Dot.d.ts.map
|
|
@@ -25,14 +25,14 @@ export declare const Modal: {
|
|
|
25
25
|
*
|
|
26
26
|
* 1. Vertical layout (buttons stacked):
|
|
27
27
|
* <Modal.Actions layout="vertical" align="stretch">
|
|
28
|
-
* <Button label="Confirm" onClick={handleConfirm} hierarchy="primary" />
|
|
29
|
-
* <Button label="Cancel" onClick={handleCancel} hierarchy="secondary-gray" />
|
|
28
|
+
* <Button size="sm" label="Confirm" onClick={handleConfirm} hierarchy="primary" />
|
|
29
|
+
* <Button size="sm" label="Cancel" onClick={handleCancel} hierarchy="secondary-gray" />
|
|
30
30
|
* </Modal.Actions>
|
|
31
31
|
*
|
|
32
32
|
* 2. Horizontal layout (buttons side by side):
|
|
33
33
|
* <Modal.Actions layout="horizontal" align="stretch">
|
|
34
|
-
* <Button label="Confirm" onClick={handleConfirm} hierarchy="primary" />
|
|
35
|
-
* <Button label="Cancel" onClick={handleCancel} hierarchy="secondary-gray" />
|
|
34
|
+
* <Button size="sm" label="Confirm" onClick={handleConfirm} hierarchy="primary" />
|
|
35
|
+
* <Button size="sm" label="Cancel" onClick={handleCancel} hierarchy="secondary-gray" />
|
|
36
36
|
* </Modal.Actions>
|
|
37
37
|
*
|
|
38
38
|
* 3. Checkbox layout (checkbox on left, buttons on right):
|
|
@@ -42,8 +42,8 @@ export declare const Modal: {
|
|
|
42
42
|
* <a href="#">Settings</a>
|
|
43
43
|
* </>
|
|
44
44
|
* }>
|
|
45
|
-
* <Button label="Cancel" onClick={handleCancel} hierarchy="secondary-gray" />
|
|
46
|
-
* <Button label="Confirm" onClick={handleConfirm} hierarchy="primary" />
|
|
45
|
+
* <Button size="sm" label="Cancel" onClick={handleCancel} hierarchy="secondary-gray" />
|
|
46
|
+
* <Button size="sm" label="Confirm" onClick={handleConfirm} hierarchy="primary" />
|
|
47
47
|
* </Modal.Actions>
|
|
48
48
|
*/
|
|
49
49
|
Actions({ children, layout, showDivider, align, checkboxContent, }: ModalActionsProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -25,7 +25,7 @@ export interface SelectProps extends PropsWithChildren<BaseSelectProps> {
|
|
|
25
25
|
type?: 'default' | 'simple';
|
|
26
26
|
}
|
|
27
27
|
/**
|
|
28
|
-
* 현재 icon
|
|
28
|
+
* 현재 icon 속성은 현재 디자인 시스템에 존재하지 않으니 사용하지 않는 것을 권장합니다.
|
|
29
29
|
*/
|
|
30
30
|
export declare const Select: import("react").ForwardRefExoticComponent<Omit<SelectProps, "ref"> & import("react").RefAttributes<HTMLSelectElement>>;
|
|
31
31
|
export {};
|
|
@@ -1,19 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { FC, MouseEventHandler } from 'react';
|
|
3
|
-
import { COLOR } from '../../../constant/color';
|
|
1
|
+
import { MouseEventHandler } from 'react';
|
|
4
2
|
import { Size } from '../../../constant/size';
|
|
5
|
-
|
|
6
|
-
name: IconName | 'dot';
|
|
7
|
-
color?: keyof typeof COLOR;
|
|
8
|
-
};
|
|
3
|
+
import { SideSlotType } from '../../types/side-slot';
|
|
9
4
|
interface TagProps {
|
|
10
5
|
size?: Extract<Size, 'sm' | 'md'>;
|
|
11
|
-
icon?:
|
|
6
|
+
icon?: SideSlotType;
|
|
12
7
|
text: string;
|
|
13
8
|
count?: string;
|
|
14
9
|
close?: boolean;
|
|
10
|
+
children?: React.ReactNode;
|
|
15
11
|
onButtonClick?: MouseEventHandler<HTMLButtonElement>;
|
|
16
12
|
}
|
|
17
|
-
export declare const Tag:
|
|
13
|
+
export declare const Tag: ({ size, icon, text, count, close, onButtonClick }: TagProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
14
|
export {};
|
|
19
15
|
//# sourceMappingURL=Tag.d.ts.map
|