@nurihaus/web-design-system 3.9.4 → 3.10.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/dist/ai/components.md +59 -15
- package/dist/ai/tokens.md +3 -3
- package/dist/chunk-6096.js +10 -3
- package/dist/chunk-7653.js +20 -0
- package/dist/{chunk-674.js → chunk-7687.js} +2 -56
- package/dist/{chunk-7460.js → chunk-7829.js} +39 -2
- package/dist/components/asset/asset.d.ts +5 -5
- package/dist/components/asset/asset.stories.d.ts +5 -5
- package/dist/components/bottom-bar/bottom-bar.stories.d.ts +5 -5
- package/dist/components/drawer/drawer-props.d.ts +7 -0
- package/dist/components/drawer/drawer-type.d.ts +6 -1
- package/dist/components/drawer/drawer.stories.d.ts +8 -0
- package/dist/components/empty-state/empty-state.stories.d.ts +12 -12
- package/dist/components/icon/icon-paths.d.ts +20 -0
- package/dist/components/icon/icon.stories.d.ts +1 -1
- package/dist/components/list/list-footer.stories.d.ts +7 -7
- package/dist/components/list/list-header.stories.d.ts +5 -5
- package/dist/components/list/list-row.stories.d.ts +16 -9
- package/dist/components/list/list-type.d.ts +10 -0
- package/dist/components/message/message.stories.d.ts +8 -8
- package/dist/components/notice/notice-props.d.ts +8 -0
- package/dist/components/notice/notice-type.d.ts +4 -2
- package/dist/components/notice/notice.stories.d.ts +15 -6
- package/dist/components/overlay/overlay.stories.d.ts +1 -1
- package/dist/components/skeleton/skeleton-group.stories.d.ts +1 -1
- package/dist/components/skeleton/skeleton.stories.d.ts +6 -6
- package/dist/components/text-area/text-area-type.d.ts +3 -2
- package/dist/components/text-field/text-field-type.d.ts +3 -2
- package/dist/components/toast/toast.stories.d.ts +7 -7
- package/dist/components/top/top.stories.d.ts +4 -4
- package/dist/components.css +87 -0
- package/dist/drawer.js +7 -0
- package/dist/index.js +248 -100
- package/dist/list-row.js +78 -175
- package/dist/notice.js +8 -0
- package/dist/overlay.js +28 -26
- package/dist/radio.js +2 -0
- package/dist/search-field.js +9 -2
- package/dist/skeleton-group.js +78 -25
- package/dist/skeleton.js +2 -1
- package/dist/styles.css +71 -1
- package/dist/text-area.js +19 -10
- package/dist/text-field.js +9 -2
- package/dist/toast.js +29 -27
- package/dist/tokens.css +1 -1
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@ import { ComponentPropsWithRef, ReactElement, ReactNode } from 'react';
|
|
|
2
2
|
import { EnterMotionProps, PresenceCallbackProps } from '../../helpers/motion/motion-props';
|
|
3
3
|
import { AsChildProps, StyleProps } from '../../helpers/types/common-props';
|
|
4
4
|
import { TrackProps } from '../logging/logging-type';
|
|
5
|
-
import { sides, sizes } from './drawer-props';
|
|
5
|
+
import { fits, sides, sizes } from './drawer-props';
|
|
6
6
|
export interface DrawerRootProps {
|
|
7
7
|
open?: boolean;
|
|
8
8
|
defaultOpen?: boolean;
|
|
@@ -32,6 +32,11 @@ export interface DrawerProps extends DrawerRootProps, StyleProps, TrackProps, En
|
|
|
32
32
|
footer?: ReactNode;
|
|
33
33
|
side?: (typeof sides)[number];
|
|
34
34
|
size?: (typeof sizes)[number];
|
|
35
|
+
/** side="bottom" 의 높이를 정하는 법. 기본 'size'. right·left 는 이미 화면 높이라 효과가 없다.
|
|
36
|
+
* 'size' — size(s 320 · m 400 · l 520) 고정 높이
|
|
37
|
+
* 'content' — 내용 높이. --sheet-max-height(92dvh)를 넘으면 본문만 스크롤하고 footer 는 아래에 남는다
|
|
38
|
+
* 'screen' — --sheet-max-height(92dvh) 고정. 본문이 높이를 다 써야 할 때 */
|
|
39
|
+
fit?: (typeof fits)[number];
|
|
35
40
|
showCloseIcon?: boolean;
|
|
36
41
|
/** false 면 바깥을 눌러도 닫히지 않고 패널이 좌우로 흔들린다. 기본 true */
|
|
37
42
|
closeOnOverlayClick?: boolean;
|
|
@@ -22,6 +22,12 @@ declare const meta: {
|
|
|
22
22
|
};
|
|
23
23
|
options: readonly ["s", "m", "l"];
|
|
24
24
|
};
|
|
25
|
+
fit: {
|
|
26
|
+
control: {
|
|
27
|
+
type: "select";
|
|
28
|
+
};
|
|
29
|
+
options: readonly ["size", "content", "screen"];
|
|
30
|
+
};
|
|
25
31
|
};
|
|
26
32
|
args: {
|
|
27
33
|
title: string;
|
|
@@ -37,6 +43,8 @@ export declare const Default: Story;
|
|
|
37
43
|
export declare const Sides: Story;
|
|
38
44
|
/** 크기별 열기 버튼이다. 서랍 폭 차이를 본다. */
|
|
39
45
|
export declare const Sizes: Story;
|
|
46
|
+
/** 아래 서랍의 높이 맞추기다. content 는 짧은 본문에 맞춰 낮고, screen 은 화면의 92% 를 쓴다. 버튼 줄은 늘 아래에 있다. */
|
|
47
|
+
export declare const Fits: Story;
|
|
40
48
|
/** 화면 아래에서 올라오는 서랍이다. */
|
|
41
49
|
export declare const Bottom: Story;
|
|
42
50
|
/** 설명 문구와 취소·저장 버튼 줄을 단 서랍이다. 제목 아래 설명과 아래쪽 버튼 줄 배치를 본다. */
|
|
@@ -37,11 +37,8 @@ declare const meta: {
|
|
|
37
37
|
description: string;
|
|
38
38
|
};
|
|
39
39
|
decorators: ((Story: import("storybook/internal/csf").PartialStoryFn<import("@storybook/react-webpack5").ReactRenderer, {
|
|
40
|
-
|
|
41
|
-
slot?: string | undefined | undefined;
|
|
40
|
+
className?: string | undefined | undefined;
|
|
42
41
|
style?: import("react").CSSProperties | undefined;
|
|
43
|
-
title: import("react").ReactNode;
|
|
44
|
-
key?: import("react").Key | null | undefined;
|
|
45
42
|
defaultChecked?: boolean | undefined | undefined;
|
|
46
43
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
47
44
|
suppressContentEditableWarning?: boolean | undefined | undefined;
|
|
@@ -49,7 +46,6 @@ declare const meta: {
|
|
|
49
46
|
accessKey?: string | undefined | undefined;
|
|
50
47
|
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
|
|
51
48
|
autoFocus?: boolean | undefined | undefined;
|
|
52
|
-
className?: string | undefined | undefined;
|
|
53
49
|
contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
54
50
|
contextMenu?: string | undefined | undefined;
|
|
55
51
|
dir?: string | undefined | undefined;
|
|
@@ -59,8 +55,10 @@ declare const meta: {
|
|
|
59
55
|
id?: string | undefined | undefined;
|
|
60
56
|
lang?: string | undefined | undefined;
|
|
61
57
|
nonce?: string | undefined | undefined;
|
|
58
|
+
slot?: string | undefined | undefined;
|
|
62
59
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
63
60
|
tabIndex?: number | undefined | undefined;
|
|
61
|
+
title: import("react").ReactNode;
|
|
64
62
|
translate?: "yes" | "no" | undefined | undefined;
|
|
65
63
|
radioGroup?: string | undefined | undefined;
|
|
66
64
|
role?: import("react").AriaRole | undefined;
|
|
@@ -304,18 +302,17 @@ declare const meta: {
|
|
|
304
302
|
onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
|
|
305
303
|
onTransitionEnd?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
306
304
|
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
307
|
-
|
|
305
|
+
figure?: never | undefined;
|
|
306
|
+
key?: import("react").Key | null | undefined;
|
|
308
307
|
variant?: (typeof variant)[number] | undefined;
|
|
308
|
+
icon: import("../..").IconName;
|
|
309
309
|
action?: import("react").ReactNode;
|
|
310
310
|
description?: import("react").ReactNode;
|
|
311
311
|
titleAs?: (typeof titleAs)[number] | undefined;
|
|
312
312
|
ref?: import("react").LegacyRef<HTMLDivElement> | undefined;
|
|
313
313
|
} | {
|
|
314
|
-
|
|
315
|
-
slot?: string | undefined | undefined;
|
|
314
|
+
className?: string | undefined | undefined;
|
|
316
315
|
style?: import("react").CSSProperties | undefined;
|
|
317
|
-
title: import("react").ReactNode;
|
|
318
|
-
key?: import("react").Key | null | undefined;
|
|
319
316
|
defaultChecked?: boolean | undefined | undefined;
|
|
320
317
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
321
318
|
suppressContentEditableWarning?: boolean | undefined | undefined;
|
|
@@ -323,7 +320,6 @@ declare const meta: {
|
|
|
323
320
|
accessKey?: string | undefined | undefined;
|
|
324
321
|
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
|
|
325
322
|
autoFocus?: boolean | undefined | undefined;
|
|
326
|
-
className?: string | undefined | undefined;
|
|
327
323
|
contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
328
324
|
contextMenu?: string | undefined | undefined;
|
|
329
325
|
dir?: string | undefined | undefined;
|
|
@@ -333,8 +329,10 @@ declare const meta: {
|
|
|
333
329
|
id?: string | undefined | undefined;
|
|
334
330
|
lang?: string | undefined | undefined;
|
|
335
331
|
nonce?: string | undefined | undefined;
|
|
332
|
+
slot?: string | undefined | undefined;
|
|
336
333
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
337
334
|
tabIndex?: number | undefined | undefined;
|
|
335
|
+
title: import("react").ReactNode;
|
|
338
336
|
translate?: "yes" | "no" | undefined | undefined;
|
|
339
337
|
radioGroup?: string | undefined | undefined;
|
|
340
338
|
role?: import("react").AriaRole | undefined;
|
|
@@ -578,8 +576,10 @@ declare const meta: {
|
|
|
578
576
|
onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
|
|
579
577
|
onTransitionEnd?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
580
578
|
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
581
|
-
|
|
579
|
+
figure: import("react").ReactNode;
|
|
580
|
+
key?: import("react").Key | null | undefined;
|
|
582
581
|
variant?: (typeof variant)[number] | undefined;
|
|
582
|
+
icon?: never | undefined;
|
|
583
583
|
action?: import("react").ReactNode;
|
|
584
584
|
description?: import("react").ReactNode;
|
|
585
585
|
titleAs?: (typeof titleAs)[number] | undefined;
|
|
@@ -203,6 +203,18 @@ export declare const iconPaths: {
|
|
|
203
203
|
readonly regular: readonly ["M221.66,133.66l-72,72a8,8,0,0,1-11.32-11.32L196.69,136H40a8,8,0,0,1,0-16H196.69L138.34,61.66a8,8,0,0,1,11.32-11.32l72,72A8,8,0,0,1,221.66,133.66Z"];
|
|
204
204
|
readonly fill: readonly ["M221.66,133.66l-72,72A8,8,0,0,1,136,200V136H40a8,8,0,0,1,0-16h96V56a8,8,0,0,1,13.66-5.66l72,72A8,8,0,0,1,221.66,133.66Z"];
|
|
205
205
|
};
|
|
206
|
+
readonly 'dots-six-vertical': {
|
|
207
|
+
readonly regular: readonly ["M104,60A12,12,0,1,1,92,48,12,12,0,0,1,104,60Zm60,12a12,12,0,1,0-12-12A12,12,0,0,0,164,72ZM92,116a12,12,0,1,0,12,12A12,12,0,0,0,92,116Zm72,0a12,12,0,1,0,12,12A12,12,0,0,0,164,116ZM92,184a12,12,0,1,0,12,12A12,12,0,0,0,92,184Zm72,0a12,12,0,1,0,12,12A12,12,0,0,0,164,184Z"];
|
|
208
|
+
readonly fill: readonly ["M192,16H64A16,16,0,0,0,48,32V224a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V32A16,16,0,0,0,192,16ZM100,200a12,12,0,1,1,12-12A12,12,0,0,1,100,200Zm0-60a12,12,0,1,1,12-12A12,12,0,0,1,100,140Zm0-60a12,12,0,1,1,12-12A12,12,0,0,1,100,80Zm56,120a12,12,0,1,1,12-12A12,12,0,0,1,156,200Zm0-60a12,12,0,1,1,12-12A12,12,0,0,1,156,140Zm0-60a12,12,0,1,1,12-12A12,12,0,0,1,156,80Z"];
|
|
209
|
+
};
|
|
210
|
+
readonly 'envelope-simple': {
|
|
211
|
+
readonly regular: readonly ["M224,48H32a8,8,0,0,0-8,8V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A8,8,0,0,0,224,48ZM203.43,64,128,133.15,52.57,64ZM216,192H40V74.19l82.59,75.71a8,8,0,0,0,10.82,0L216,74.19V192Z"];
|
|
212
|
+
readonly fill: readonly ["M224,48H32a8,8,0,0,0-8,8V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A8,8,0,0,0,224,48Zm-8,144H40V74.19l82.59,75.71a8,8,0,0,0,10.82,0L216,74.19V192Z"];
|
|
213
|
+
};
|
|
214
|
+
readonly phone: {
|
|
215
|
+
readonly regular: readonly ["M222.37,158.46l-47.11-21.11-.13-.06a16,16,0,0,0-15.17,1.4,8.12,8.12,0,0,0-.75.56L134.87,160c-15.42-7.49-31.34-23.29-38.83-38.51l20.78-24.71c.2-.25.39-.5.57-.77a16,16,0,0,0,1.32-15.06l0-.12L97.54,33.64a16,16,0,0,0-16.62-9.52A56.26,56.26,0,0,0,32,80c0,79.4,64.6,144,144,144a56.26,56.26,0,0,0,55.88-48.92A16,16,0,0,0,222.37,158.46ZM176,208A128.14,128.14,0,0,1,48,80,40.2,40.2,0,0,1,82.87,40a.61.61,0,0,0,0,.12l21,47L83.2,111.86a6.13,6.13,0,0,0-.57.77,16,16,0,0,0-1,15.7c9.06,18.53,27.73,37.06,46.46,46.11a16,16,0,0,0,15.75-1.14,8.44,8.44,0,0,0,.74-.56L168.89,152l47,21.05h0s.08,0,.11,0A40.21,40.21,0,0,1,176,208Z"];
|
|
216
|
+
readonly fill: readonly ["M231.88,175.08A56.26,56.26,0,0,1,176,224C96.6,224,32,159.4,32,80A56.26,56.26,0,0,1,80.92,24.12a16,16,0,0,1,16.62,9.52l21.12,47.15,0,.12A16,16,0,0,1,117.39,96c-.18.27-.37.52-.57.77L96,121.45c7.49,15.22,23.41,31,38.83,38.51l24.34-20.71a8.12,8.12,0,0,1,.75-.56,16,16,0,0,1,15.17-1.4l.13.06,47.11,21.11A16,16,0,0,1,231.88,175.08Z"];
|
|
217
|
+
};
|
|
206
218
|
readonly backspace: {
|
|
207
219
|
readonly regular: readonly ["M216,40H68.53a16.08,16.08,0,0,0-13.72,7.77L9.14,123.88a8,8,0,0,0,0,8.24l45.67,76.11A16.08,16.08,0,0,0,68.53,216H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM61.67,204.12,68.53,200h0ZM216,200H68.53l-43.2-72,43.2-72H216ZM106.34,146.34,124.69,128l-18.35-18.34a8,8,0,0,1,11.32-11.32L136,116.69l18.34-18.35a8,8,0,0,1,11.32,11.32L147.31,128l18.35,18.34a8,8,0,0,1-11.32,11.32L136,139.31l-18.34,18.35a8,8,0,0,1-11.32-11.32Z"];
|
|
208
220
|
readonly fill: readonly ["M216,40H68.53a16.12,16.12,0,0,0-13.72,7.77L9.14,123.88a8,8,0,0,0,0,8.24l45.67,76.11h0A16.11,16.11,0,0,0,68.53,216H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM165.66,146.34a8,8,0,0,1-11.32,11.32L136,139.31l-18.35,18.35a8,8,0,0,1-11.31-11.32L124.69,128l-18.35-18.34a8,8,0,1,1,11.31-11.32L136,116.69l18.34-18.35a8,8,0,0,1,11.32,11.32L147.31,128Z"];
|
|
@@ -223,4 +235,12 @@ export declare const iconPaths: {
|
|
|
223
235
|
readonly regular: readonly ["M164.44,121.34l-48-32A8,8,0,0,0,104,96v64a8,8,0,0,0,12.44,6.66l48-32a8,8,0,0,0,0-13.32ZM120,145.05V111l25.58,17ZM234.33,69.52a24,24,0,0,0-14.49-16.4C185.56,39.88,131,40,128,40s-57.56-.12-91.84,13.12a24,24,0,0,0-14.49,16.4C19.08,79.5,16,97.74,16,128s3.08,48.5,5.67,58.48a24,24,0,0,0,14.49,16.41C69,215.56,120.4,216,127.34,216h1.32c6.94,0,58.37-.44,91.18-13.11a24,24,0,0,0,14.49-16.41c2.59-10,5.67-28.22,5.67-58.48S236.92,79.5,234.33,69.52Zm-15.49,113a8,8,0,0,1-4.77,5.49c-31.65,12.22-85.48,12-86,12H128c-.54,0-54.33.2-86-12a8,8,0,0,1-4.77-5.49C34.8,173.39,32,156.57,32,128s2.8-45.39,5.16-54.47A8,8,0,0,1,41.93,68c30.52-11.79,81.66-12,85.85-12h.27c.54,0,54.38-.18,86,12a8,8,0,0,1,4.77,5.49C221.2,82.61,224,99.43,224,128S221.2,173.39,218.84,182.47Z"];
|
|
224
236
|
readonly fill: readonly ["M234.33,69.52a24,24,0,0,0-14.49-16.4C185.56,39.88,131,40,128,40s-57.56-.12-91.84,13.12a24,24,0,0,0-14.49,16.4C19.08,79.5,16,97.74,16,128s3.08,48.5,5.67,58.48a24,24,0,0,0,14.49,16.41C69,215.56,120.4,216,127.34,216h1.32c6.94,0,58.37-.44,91.18-13.11a24,24,0,0,0,14.49-16.41c2.59-10,5.67-28.22,5.67-58.48S236.92,79.5,234.33,69.52Zm-73.74,65-40,28A8,8,0,0,1,108,156V100a8,8,0,0,1,12.59-6.55l40,28a8,8,0,0,1,0,13.1Z"];
|
|
225
237
|
};
|
|
238
|
+
readonly 'whatsapp-logo': {
|
|
239
|
+
readonly regular: readonly ["M187.58,144.84l-32-16a8,8,0,0,0-8,.5l-14.69,9.8a40.55,40.55,0,0,1-16-16l9.8-14.69a8,8,0,0,0,.5-8l-16-32A8,8,0,0,0,104,64a40,40,0,0,0-40,40,88.1,88.1,0,0,0,88,88,40,40,0,0,0,40-40A8,8,0,0,0,187.58,144.84ZM152,176a72.08,72.08,0,0,1-72-72A24,24,0,0,1,99.29,80.46l11.48,23L101,118a8,8,0,0,0-.73,7.51,56.47,56.47,0,0,0,30.15,30.15A8,8,0,0,0,138,155l14.61-9.74,23,11.48A24,24,0,0,1,152,176ZM128,24A104,104,0,0,0,36.18,176.88L24.83,210.93a16,16,0,0,0,20.24,20.24l34.05-11.35A104,104,0,1,0,128,24Zm0,192a87.87,87.87,0,0,1-44.06-11.81,8,8,0,0,0-6.54-.67L40,216,52.47,178.6a8,8,0,0,0-.66-6.54A88,88,0,1,1,128,216Z"];
|
|
240
|
+
readonly fill: readonly ["M152.58,145.23l23,11.48A24,24,0,0,1,152,176a72.08,72.08,0,0,1-72-72A24,24,0,0,1,99.29,80.46l11.48,23L101,118a8,8,0,0,0-.73,7.51,56.47,56.47,0,0,0,30.15,30.15A8,8,0,0,0,138,155ZM232,128A104,104,0,0,1,79.12,219.82L45.07,231.17a16,16,0,0,1-20.24-20.24l11.35-34.05A104,104,0,1,1,232,128Zm-40,24a8,8,0,0,0-4.42-7.16l-32-16a8,8,0,0,0-8,.5l-14.69,9.8a40.55,40.55,0,0,1-16-16l9.8-14.69a8,8,0,0,0,.5-8l-16-32A8,8,0,0,0,104,64a40,40,0,0,0-40,40,88.1,88.1,0,0,0,88,88A40,40,0,0,0,192,152Z"];
|
|
241
|
+
};
|
|
242
|
+
readonly 'telegram-logo': {
|
|
243
|
+
readonly regular: readonly ["M228.88,26.19a9,9,0,0,0-9.16-1.57L17.06,103.93a14.22,14.22,0,0,0,2.43,27.21L72,141.45V200a15.92,15.92,0,0,0,10,14.83,15.91,15.91,0,0,0,17.51-3.73l25.32-26.26L165,220a15.88,15.88,0,0,0,10.51,4,16.3,16.3,0,0,0,5-.79,15.85,15.85,0,0,0,10.67-11.63L231.77,35A9,9,0,0,0,228.88,26.19Zm-61.14,36L78.15,126.35l-49.6-9.73ZM88,200V152.52l24.79,21.74Zm87.53,8L92.85,135.5l119-85.29Z"];
|
|
244
|
+
readonly fill: readonly ["M228.88,26.19a9,9,0,0,0-9.16-1.57L17.06,103.93a14.22,14.22,0,0,0,2.43,27.21L72,141.45V200a15.92,15.92,0,0,0,10,14.83,15.91,15.91,0,0,0,17.51-3.73l25.32-26.26L165,220a15.88,15.88,0,0,0,10.51,4,16.3,16.3,0,0,0,5-.79,15.85,15.85,0,0,0,10.67-11.63L231.77,35A9,9,0,0,0,228.88,26.19ZM175.53,208,92.85,135.5l119-85.29Z"];
|
|
245
|
+
};
|
|
226
246
|
};
|
|
@@ -14,7 +14,7 @@ declare const meta: {
|
|
|
14
14
|
control: {
|
|
15
15
|
type: "select";
|
|
16
16
|
};
|
|
17
|
-
options: ("
|
|
17
|
+
options: ("circle" | "link" | "image" | "x" | "copy" | "house" | "megaphone-simple" | "chats-circle" | "user-circle" | "bell" | "caret-left" | "magnifying-glass" | "dots-three" | "gear-six" | "chat-circle" | "paper-plane-tilt" | "plus" | "minus" | "camera" | "video-camera" | "play" | "upload-simple" | "calendar-blank" | "clock" | "map-pin" | "truck" | "ticket" | "qr-code" | "sparkle" | "gift" | "wallet" | "bank" | "credit-card" | "check-circle" | "check" | "warning" | "info" | "question" | "lock" | "pencil-simple" | "trash" | "share-network" | "eye" | "sliders-horizontal" | "heart" | "star" | "globe" | "sign-out" | "caret-right" | "caret-down" | "arrow-right" | "dots-six-vertical" | "envelope-simple" | "phone" | "backspace" | "arrow-fat-up" | "instagram-logo" | "tiktok-logo" | "youtube-logo" | "whatsapp-logo" | "telegram-logo")[];
|
|
18
18
|
};
|
|
19
19
|
weight: {
|
|
20
20
|
control: {
|
|
@@ -15,11 +15,9 @@ declare const meta: {
|
|
|
15
15
|
onClick: () => void;
|
|
16
16
|
};
|
|
17
17
|
decorators: ((Story: import("storybook/internal/csf").PartialStoryFn<import("@storybook/react-webpack5").ReactRenderer, {
|
|
18
|
-
|
|
18
|
+
className?: string | undefined | undefined;
|
|
19
19
|
style?: import("react").CSSProperties | undefined;
|
|
20
|
-
|
|
21
|
-
track?: string | undefined;
|
|
22
|
-
key?: import("react").Key | null | undefined;
|
|
20
|
+
children: import("react").ReactNode;
|
|
23
21
|
defaultChecked?: boolean | undefined | undefined;
|
|
24
22
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
25
23
|
suppressContentEditableWarning?: boolean | undefined | undefined;
|
|
@@ -27,7 +25,6 @@ declare const meta: {
|
|
|
27
25
|
accessKey?: string | undefined | undefined;
|
|
28
26
|
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
|
|
29
27
|
autoFocus?: boolean | undefined | undefined;
|
|
30
|
-
className?: string | undefined | undefined;
|
|
31
28
|
contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
32
29
|
contextMenu?: string | undefined | undefined;
|
|
33
30
|
dir?: string | undefined | undefined;
|
|
@@ -37,8 +34,10 @@ declare const meta: {
|
|
|
37
34
|
id?: string | undefined | undefined;
|
|
38
35
|
lang?: string | undefined | undefined;
|
|
39
36
|
nonce?: string | undefined | undefined;
|
|
37
|
+
slot?: string | undefined | undefined;
|
|
40
38
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
41
39
|
tabIndex?: number | undefined | undefined;
|
|
40
|
+
title?: string | undefined | undefined;
|
|
42
41
|
translate?: "yes" | "no" | undefined | undefined;
|
|
43
42
|
radioGroup?: string | undefined | undefined;
|
|
44
43
|
role?: import("react").AriaRole | undefined;
|
|
@@ -121,7 +120,6 @@ declare const meta: {
|
|
|
121
120
|
"aria-valuemin"?: number | undefined | undefined;
|
|
122
121
|
"aria-valuenow"?: number | undefined | undefined;
|
|
123
122
|
"aria-valuetext"?: string | undefined | undefined;
|
|
124
|
-
children: import("react").ReactNode;
|
|
125
123
|
dangerouslySetInnerHTML?: {
|
|
126
124
|
__html: string | TrustedHTML;
|
|
127
125
|
} | undefined | undefined;
|
|
@@ -283,12 +281,14 @@ declare const meta: {
|
|
|
283
281
|
onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
|
|
284
282
|
onTransitionEnd?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
285
283
|
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
286
|
-
|
|
284
|
+
track?: string | undefined;
|
|
285
|
+
key?: import("react").Key | null | undefined;
|
|
287
286
|
loading?: boolean | undefined;
|
|
288
287
|
asChild?: boolean | undefined;
|
|
289
288
|
trackProps?: Record<string, string | number | boolean> | undefined;
|
|
290
289
|
pressEffect?: boolean | undefined;
|
|
291
290
|
border?: (typeof footerBorder)[number] | undefined;
|
|
291
|
+
icon?: import("../..").IconName | undefined;
|
|
292
292
|
ref?: import("react").LegacyRef<HTMLDivElement> | undefined;
|
|
293
293
|
}>) => import("react/jsx-runtime").JSX.Element)[];
|
|
294
294
|
};
|
|
@@ -15,10 +15,9 @@ declare const meta: {
|
|
|
15
15
|
description: string;
|
|
16
16
|
};
|
|
17
17
|
decorators: ((Story: import("storybook/internal/csf").PartialStoryFn<import("@storybook/react-webpack5").ReactRenderer, {
|
|
18
|
-
|
|
18
|
+
className?: string | undefined | undefined;
|
|
19
19
|
style?: import("react").CSSProperties | undefined;
|
|
20
|
-
|
|
21
|
-
key?: import("react").Key | null | undefined;
|
|
20
|
+
children?: import("react").ReactNode;
|
|
22
21
|
defaultChecked?: boolean | undefined | undefined;
|
|
23
22
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
24
23
|
suppressContentEditableWarning?: boolean | undefined | undefined;
|
|
@@ -26,7 +25,6 @@ declare const meta: {
|
|
|
26
25
|
accessKey?: string | undefined | undefined;
|
|
27
26
|
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
|
|
28
27
|
autoFocus?: boolean | undefined | undefined;
|
|
29
|
-
className?: string | undefined | undefined;
|
|
30
28
|
contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
31
29
|
contextMenu?: string | undefined | undefined;
|
|
32
30
|
dir?: string | undefined | undefined;
|
|
@@ -36,8 +34,10 @@ declare const meta: {
|
|
|
36
34
|
id?: string | undefined | undefined;
|
|
37
35
|
lang?: string | undefined | undefined;
|
|
38
36
|
nonce?: string | undefined | undefined;
|
|
37
|
+
slot?: string | undefined | undefined;
|
|
39
38
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
40
39
|
tabIndex?: number | undefined | undefined;
|
|
40
|
+
title: import("react").ReactNode;
|
|
41
41
|
translate?: "yes" | "no" | undefined | undefined;
|
|
42
42
|
radioGroup?: string | undefined | undefined;
|
|
43
43
|
role?: import("react").AriaRole | undefined;
|
|
@@ -120,7 +120,6 @@ declare const meta: {
|
|
|
120
120
|
"aria-valuemin"?: number | undefined | undefined;
|
|
121
121
|
"aria-valuenow"?: number | undefined | undefined;
|
|
122
122
|
"aria-valuetext"?: string | undefined | undefined;
|
|
123
|
-
children?: import("react").ReactNode;
|
|
124
123
|
dangerouslySetInnerHTML?: {
|
|
125
124
|
__html: string | TrustedHTML;
|
|
126
125
|
} | undefined | undefined;
|
|
@@ -282,6 +281,7 @@ declare const meta: {
|
|
|
282
281
|
onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
|
|
283
282
|
onTransitionEnd?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
284
283
|
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
284
|
+
key?: import("react").Key | null | undefined;
|
|
285
285
|
right?: import("react").ReactNode;
|
|
286
286
|
description?: import("react").ReactNode;
|
|
287
287
|
descriptionPosition?: (typeof descriptionPosition)[number] | undefined;
|
|
@@ -16,12 +16,10 @@ declare const meta: {
|
|
|
16
16
|
label: string;
|
|
17
17
|
};
|
|
18
18
|
decorators: ((Story: import("storybook/internal/csf").PartialStoryFn<import("@storybook/react-webpack5").ReactRenderer, {
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
size?: import("./list-type").ListRowSize | undefined;
|
|
20
|
+
className?: string | undefined | undefined;
|
|
21
21
|
style?: import("react").CSSProperties | undefined;
|
|
22
|
-
|
|
23
|
-
track?: string | undefined;
|
|
24
|
-
key?: import("react").Key | null | undefined;
|
|
22
|
+
children?: import("react").ReactNode;
|
|
25
23
|
defaultChecked?: boolean | undefined | undefined;
|
|
26
24
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
27
25
|
suppressContentEditableWarning?: boolean | undefined | undefined;
|
|
@@ -29,7 +27,6 @@ declare const meta: {
|
|
|
29
27
|
accessKey?: string | undefined | undefined;
|
|
30
28
|
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
|
|
31
29
|
autoFocus?: boolean | undefined | undefined;
|
|
32
|
-
className?: string | undefined | undefined;
|
|
33
30
|
contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
34
31
|
contextMenu?: string | undefined | undefined;
|
|
35
32
|
dir?: string | undefined | undefined;
|
|
@@ -39,8 +36,10 @@ declare const meta: {
|
|
|
39
36
|
id?: string | undefined | undefined;
|
|
40
37
|
lang?: string | undefined | undefined;
|
|
41
38
|
nonce?: string | undefined | undefined;
|
|
39
|
+
slot?: string | undefined | undefined;
|
|
42
40
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
43
41
|
tabIndex?: number | undefined | undefined;
|
|
42
|
+
title?: string | undefined | undefined;
|
|
44
43
|
translate?: "yes" | "no" | undefined | undefined;
|
|
45
44
|
radioGroup?: string | undefined | undefined;
|
|
46
45
|
role?: import("react").AriaRole | undefined;
|
|
@@ -123,7 +122,6 @@ declare const meta: {
|
|
|
123
122
|
"aria-valuemin"?: number | undefined | undefined;
|
|
124
123
|
"aria-valuenow"?: number | undefined | undefined;
|
|
125
124
|
"aria-valuetext"?: string | undefined | undefined;
|
|
126
|
-
children?: import("react").ReactNode;
|
|
127
125
|
dangerouslySetInnerHTML?: {
|
|
128
126
|
__html: string | TrustedHTML;
|
|
129
127
|
} | undefined | undefined;
|
|
@@ -285,7 +283,9 @@ declare const meta: {
|
|
|
285
283
|
onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
|
|
286
284
|
onTransitionEnd?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
287
285
|
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
288
|
-
|
|
286
|
+
label: import("react").ReactNode;
|
|
287
|
+
track?: string | undefined;
|
|
288
|
+
key?: import("react").Key | null | undefined;
|
|
289
289
|
asChild?: boolean | undefined;
|
|
290
290
|
trackProps?: Record<string, string | number | boolean> | undefined;
|
|
291
291
|
pressEffect?: boolean | undefined;
|
|
@@ -295,6 +295,9 @@ declare const meta: {
|
|
|
295
295
|
chevron?: boolean | undefined;
|
|
296
296
|
leading?: import("react").ReactNode;
|
|
297
297
|
trailing?: import("react").ReactNode;
|
|
298
|
+
handle?: import("react").ReactNode;
|
|
299
|
+
highlighted?: boolean | undefined;
|
|
300
|
+
dragging?: boolean | undefined;
|
|
298
301
|
ref?: import("react").LegacyRef<HTMLDivElement> | undefined;
|
|
299
302
|
}>) => import("react/jsx-runtime").JSX.Element)[];
|
|
300
303
|
};
|
|
@@ -322,7 +325,11 @@ export declare const MotionPress: Story;
|
|
|
322
325
|
export declare const Sizes: Story;
|
|
323
326
|
/** border 는 이 줄과 다음 줄 사이의 선이다. 마지막 줄의 값은 보이지 않는다 */
|
|
324
327
|
export declare const Borders: Story;
|
|
325
|
-
/**
|
|
328
|
+
/** 끌기 핸들·강조·끄는 중. 첫 줄은 대표(highlighted), 둘째 줄은 끄는 중(dragging). 끌기 동작은 쓰는 쪽이 한다 */
|
|
329
|
+
export declare const Reorderable: Story;
|
|
330
|
+
/** ListRow.Loader 는 원과 두 줄 글의 스켈레톤을 행 자리에 그린다. 원·두 번째 줄은 끌 수 있다 */
|
|
326
331
|
export declare const Loader: Story;
|
|
332
|
+
/** 아이콘 없는 줄이면 leading={false}, label 만 있는 줄이면 description={false} */
|
|
333
|
+
export declare const LoaderWithoutLeading: Story;
|
|
327
334
|
/** effectRef 의 shine·blink 로 방금 바뀐 줄을 짚는다 */
|
|
328
335
|
export declare const MotionAttention: Story;
|
|
@@ -38,10 +38,20 @@ export interface ListRowProps extends Omit<ComponentPropsWithRef<'div'>, 'onClic
|
|
|
38
38
|
border?: ListRowBorder;
|
|
39
39
|
/** shine·blink 를 부르는 ref. 방금 바뀐 행을 쓰는 쪽이 짚는다 */
|
|
40
40
|
effectRef?: Ref<AttentionHandle>;
|
|
41
|
+
/** 줄 왼쪽 끝 끌기 핸들 칸. 누르는 영역(button·링크) 밖이라 안에 버튼을 둔다. 보통 `<IconButton icon='dots-six-vertical' size='s' label='순서 바꾸기' />`. 끌기 동작은 쓰는 쪽이 한다 */
|
|
42
|
+
handle?: ReactNode;
|
|
43
|
+
/** 강조 테두리. 대표 연락처·기본 배송지처럼 하나만 다른 줄. 이 줄 위·아래 구분선은 그리지 않는다. 기본 false */
|
|
44
|
+
highlighted?: boolean;
|
|
45
|
+
/** 끄는 중 모양(배경 surface-muted, 핸들 커서 grabbing). 기본 false */
|
|
46
|
+
dragging?: boolean;
|
|
41
47
|
}
|
|
42
48
|
export interface ListRowLoaderProps extends StyleProps, Pick<SkeletonGroupProps, 'animated' | 'aria-label'> {
|
|
43
49
|
size?: ListRowSize;
|
|
44
50
|
border?: ListRowBorder;
|
|
51
|
+
/** 앞 원(아이콘·아바타 자리). 아이콘 없는 줄이면 false. 기본 true */
|
|
52
|
+
leading?: boolean;
|
|
53
|
+
/** 두 번째 줄(description 자리). label 만 있는 줄이면 false 로 한 줄. 기본 true */
|
|
54
|
+
description?: boolean;
|
|
45
55
|
}
|
|
46
56
|
export interface ListHeaderProps extends Omit<ComponentPropsWithRef<'div'>, 'title'> {
|
|
47
57
|
/** 글자면 base semibold 로 그린다 */
|
|
@@ -29,13 +29,9 @@ declare const meta: {
|
|
|
29
29
|
time: string;
|
|
30
30
|
};
|
|
31
31
|
decorators: ((Story: import("storybook/internal/csf").PartialStoryFn<import("@storybook/react-webpack5").ReactRenderer, {
|
|
32
|
-
|
|
32
|
+
className?: string | undefined | undefined;
|
|
33
33
|
style?: import("react").CSSProperties | undefined;
|
|
34
|
-
|
|
35
|
-
title?: string | undefined | undefined;
|
|
36
|
-
key?: import("react").Key | null | undefined;
|
|
37
|
-
name?: import("react").ReactNode;
|
|
38
|
-
value?: string | number | readonly string[] | undefined;
|
|
34
|
+
children?: import("react").ReactNode;
|
|
39
35
|
defaultChecked?: boolean | undefined | undefined;
|
|
40
36
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
41
37
|
suppressContentEditableWarning?: boolean | undefined | undefined;
|
|
@@ -43,7 +39,6 @@ declare const meta: {
|
|
|
43
39
|
accessKey?: string | undefined | undefined;
|
|
44
40
|
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
|
|
45
41
|
autoFocus?: boolean | undefined | undefined;
|
|
46
|
-
className?: string | undefined | undefined;
|
|
47
42
|
contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
48
43
|
contextMenu?: string | undefined | undefined;
|
|
49
44
|
dir?: string | undefined | undefined;
|
|
@@ -53,8 +48,10 @@ declare const meta: {
|
|
|
53
48
|
id?: string | undefined | undefined;
|
|
54
49
|
lang?: string | undefined | undefined;
|
|
55
50
|
nonce?: string | undefined | undefined;
|
|
51
|
+
slot?: string | undefined | undefined;
|
|
56
52
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
57
53
|
tabIndex?: number | undefined | undefined;
|
|
54
|
+
title?: string | undefined | undefined;
|
|
58
55
|
translate?: "yes" | "no" | undefined | undefined;
|
|
59
56
|
radioGroup?: string | undefined | undefined;
|
|
60
57
|
role?: import("react").AriaRole | undefined;
|
|
@@ -137,7 +134,6 @@ declare const meta: {
|
|
|
137
134
|
"aria-valuemin"?: number | undefined | undefined;
|
|
138
135
|
"aria-valuenow"?: number | undefined | undefined;
|
|
139
136
|
"aria-valuetext"?: string | undefined | undefined;
|
|
140
|
-
children?: import("react").ReactNode;
|
|
141
137
|
dangerouslySetInnerHTML?: {
|
|
142
138
|
__html: string | TrustedHTML;
|
|
143
139
|
} | undefined | undefined;
|
|
@@ -299,6 +295,10 @@ declare const meta: {
|
|
|
299
295
|
onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLLIElement> | undefined;
|
|
300
296
|
onTransitionEnd?: import("react").TransitionEventHandler<HTMLLIElement> | undefined;
|
|
301
297
|
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLLIElement> | undefined;
|
|
298
|
+
time?: import("react").ReactNode;
|
|
299
|
+
key?: import("react").Key | null | undefined;
|
|
300
|
+
name?: import("react").ReactNode;
|
|
301
|
+
value?: string | number | readonly string[] | undefined;
|
|
302
302
|
motion?: (typeof motion)[number] | undefined;
|
|
303
303
|
media?: import("react").ReactNode;
|
|
304
304
|
dateTime?: string | undefined;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export declare const variant: readonly ["neutral", "success", "warning", "danger"];
|
|
2
2
|
/** 나타날 때 모션 세기. 주지 않으면 움직이지 않는다 (ADR 0008) */
|
|
3
3
|
export declare const motion: readonly ["weak", "strong"];
|
|
4
|
+
/** action 자리. below 는 본문 아래 줄, inline 은 본문 오른쪽 같은 줄 */
|
|
5
|
+
export declare const actionPlacement: readonly ["below", "inline"];
|
|
4
6
|
export declare const noticeProps: {
|
|
5
7
|
variant: {
|
|
6
8
|
type: "className";
|
|
@@ -13,4 +15,10 @@ export declare const noticeProps: {
|
|
|
13
15
|
className: string;
|
|
14
16
|
values: readonly ["weak", "strong"];
|
|
15
17
|
};
|
|
18
|
+
actionPlacement: {
|
|
19
|
+
type: "className";
|
|
20
|
+
className: string;
|
|
21
|
+
values: readonly ["below", "inline"];
|
|
22
|
+
default: "below";
|
|
23
|
+
};
|
|
16
24
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentPropsWithRef, ReactNode } from 'react';
|
|
2
2
|
import { TrackProps } from '../logging/logging-type';
|
|
3
|
-
import { motion, variant } from './notice-props';
|
|
3
|
+
import { actionPlacement, motion, variant } from './notice-props';
|
|
4
4
|
export type BaseNoticeProps = ComponentPropsWithRef<'div'>;
|
|
5
5
|
/** Toast 의 action 과 같은 모양. Notice 는 Radix Toast 가 아니라 altText 가 없다. track 은 버튼(CTAButton)이 보낸다 */
|
|
6
6
|
export interface NoticeAction extends TrackProps {
|
|
@@ -14,8 +14,10 @@ export interface NoticeProps extends Omit<ComponentPropsWithRef<'div'>, 'title'>
|
|
|
14
14
|
title?: ReactNode;
|
|
15
15
|
/** 본문 글 */
|
|
16
16
|
children: ReactNode;
|
|
17
|
-
/**
|
|
17
|
+
/** 작은 버튼(CTAButton xs·primary·outline) 하나. 자리는 actionPlacement 가 정한다 */
|
|
18
18
|
action?: NoticeAction;
|
|
19
|
+
/** action 자리. 'below'(기본) 는 본문 아래 줄, 'inline' 은 본문 오른쪽 같은 줄(마지막 줄에 맞춘다). action 이 없으면 효과가 없다 */
|
|
20
|
+
actionPlacement?: (typeof actionPlacement)[number];
|
|
19
21
|
/** 조건부로 나타나는 안내만 준다. 나타날 때 흐려졌다 선명해진다 */
|
|
20
22
|
motion?: (typeof motion)[number];
|
|
21
23
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { StoryObj } from '@storybook/react-webpack5';
|
|
2
|
-
import { motion, variant } from './notice-props';
|
|
2
|
+
import { actionPlacement, motion, variant } from './notice-props';
|
|
3
3
|
declare const meta: {
|
|
4
4
|
title: string;
|
|
5
5
|
parameters: {
|
|
@@ -23,15 +23,20 @@ declare const meta: {
|
|
|
23
23
|
};
|
|
24
24
|
options: readonly ["weak", "strong"];
|
|
25
25
|
};
|
|
26
|
+
actionPlacement: {
|
|
27
|
+
control: {
|
|
28
|
+
type: "select";
|
|
29
|
+
};
|
|
30
|
+
options: readonly ["below", "inline"];
|
|
31
|
+
};
|
|
26
32
|
};
|
|
27
33
|
args: {
|
|
28
34
|
children: string;
|
|
29
35
|
};
|
|
30
36
|
decorators: ((Story: import("storybook/internal/csf").PartialStoryFn<import("@storybook/react-webpack5").ReactRenderer, {
|
|
31
|
-
|
|
37
|
+
className?: string | undefined | undefined;
|
|
32
38
|
style?: import("react").CSSProperties | undefined;
|
|
33
|
-
|
|
34
|
-
key?: import("react").Key | null | undefined;
|
|
39
|
+
children: import("react").ReactNode;
|
|
35
40
|
defaultChecked?: boolean | undefined | undefined;
|
|
36
41
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
37
42
|
suppressContentEditableWarning?: boolean | undefined | undefined;
|
|
@@ -39,7 +44,6 @@ declare const meta: {
|
|
|
39
44
|
accessKey?: string | undefined | undefined;
|
|
40
45
|
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
|
|
41
46
|
autoFocus?: boolean | undefined | undefined;
|
|
42
|
-
className?: string | undefined | undefined;
|
|
43
47
|
contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
44
48
|
contextMenu?: string | undefined | undefined;
|
|
45
49
|
dir?: string | undefined | undefined;
|
|
@@ -49,8 +53,10 @@ declare const meta: {
|
|
|
49
53
|
id?: string | undefined | undefined;
|
|
50
54
|
lang?: string | undefined | undefined;
|
|
51
55
|
nonce?: string | undefined | undefined;
|
|
56
|
+
slot?: string | undefined | undefined;
|
|
52
57
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
53
58
|
tabIndex?: number | undefined | undefined;
|
|
59
|
+
title?: import("react").ReactNode;
|
|
54
60
|
translate?: "yes" | "no" | undefined | undefined;
|
|
55
61
|
radioGroup?: string | undefined | undefined;
|
|
56
62
|
role?: import("react").AriaRole | undefined;
|
|
@@ -133,7 +139,6 @@ declare const meta: {
|
|
|
133
139
|
"aria-valuemin"?: number | undefined | undefined;
|
|
134
140
|
"aria-valuenow"?: number | undefined | undefined;
|
|
135
141
|
"aria-valuetext"?: string | undefined | undefined;
|
|
136
|
-
children: import("react").ReactNode;
|
|
137
142
|
dangerouslySetInnerHTML?: {
|
|
138
143
|
__html: string | TrustedHTML;
|
|
139
144
|
} | undefined | undefined;
|
|
@@ -295,9 +300,11 @@ declare const meta: {
|
|
|
295
300
|
onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
|
|
296
301
|
onTransitionEnd?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
297
302
|
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
303
|
+
key?: import("react").Key | null | undefined;
|
|
298
304
|
variant?: (typeof variant)[number] | undefined;
|
|
299
305
|
motion?: (typeof motion)[number] | undefined;
|
|
300
306
|
action?: import("./notice-type").NoticeAction | undefined;
|
|
307
|
+
actionPlacement?: (typeof actionPlacement)[number] | undefined;
|
|
301
308
|
ref?: import("react").LegacyRef<HTMLDivElement> | undefined;
|
|
302
309
|
}>) => import("react/jsx-runtime").JSX.Element)[];
|
|
303
310
|
};
|
|
@@ -307,5 +314,7 @@ export declare const Default: Story;
|
|
|
307
314
|
export declare const Variants: Story;
|
|
308
315
|
export declare const WithTitle: Story;
|
|
309
316
|
export declare const WithAction: Story;
|
|
317
|
+
/** 짧은 안내와 버튼 하나를 같은 줄에 둔다. 본문이 길면 글만 줄바꿈되고 버튼은 마지막 줄 옆에 남는다 */
|
|
318
|
+
export declare const InlineAction: Story;
|
|
310
319
|
/** 버튼을 누르면 안내가 나타난다. weak·strong 을 견준다 */
|
|
311
320
|
export declare const Motion: Story;
|
|
@@ -18,8 +18,8 @@ declare const meta: {
|
|
|
18
18
|
};
|
|
19
19
|
decorators: ((Story: import("storybook/internal/csf").PartialStoryFn<import("@storybook/react-webpack5").ReactRenderer, {
|
|
20
20
|
portalContainer?: HTMLElement | undefined;
|
|
21
|
-
label?: string | undefined;
|
|
22
21
|
children: import("react").ReactNode;
|
|
22
|
+
label?: string | undefined;
|
|
23
23
|
position?: typeof import("../toast/toast-props").positions[number] | undefined;
|
|
24
24
|
duration?: number | undefined;
|
|
25
25
|
}>) => import("react/jsx-runtime").JSX.Element)[];
|
|
@@ -35,8 +35,8 @@ declare const meta: {
|
|
|
35
35
|
animated: true;
|
|
36
36
|
};
|
|
37
37
|
decorators: ((Story: import("storybook/internal/csf").PartialStoryFn<import("@storybook/react-webpack5").ReactRenderer, {
|
|
38
|
-
'aria-label'?: string | undefined;
|
|
39
38
|
repeat?: number | undefined;
|
|
39
|
+
'aria-label'?: string | undefined;
|
|
40
40
|
animated?: boolean | undefined;
|
|
41
41
|
pattern?: SkeletonPattern | undefined;
|
|
42
42
|
}>) => import("react/jsx-runtime").JSX.Element)[];
|
|
@@ -45,10 +45,9 @@ declare const meta: {
|
|
|
45
45
|
animated: true;
|
|
46
46
|
};
|
|
47
47
|
decorators: ((Story: import("storybook/internal/csf").PartialStoryFn<import("@storybook/react-webpack5").ReactRenderer, {
|
|
48
|
-
|
|
48
|
+
className?: string | undefined | undefined;
|
|
49
49
|
style?: import("react").CSSProperties | undefined;
|
|
50
|
-
|
|
51
|
-
key?: import("react").Key | null | undefined;
|
|
50
|
+
children?: import("react").ReactNode;
|
|
52
51
|
defaultChecked?: boolean | undefined | undefined;
|
|
53
52
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
54
53
|
suppressContentEditableWarning?: boolean | undefined | undefined;
|
|
@@ -56,7 +55,6 @@ declare const meta: {
|
|
|
56
55
|
accessKey?: string | undefined | undefined;
|
|
57
56
|
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
|
|
58
57
|
autoFocus?: boolean | undefined | undefined;
|
|
59
|
-
className?: string | undefined | undefined;
|
|
60
58
|
contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
61
59
|
contextMenu?: string | undefined | undefined;
|
|
62
60
|
dir?: string | undefined | undefined;
|
|
@@ -66,8 +64,10 @@ declare const meta: {
|
|
|
66
64
|
id?: string | undefined | undefined;
|
|
67
65
|
lang?: string | undefined | undefined;
|
|
68
66
|
nonce?: string | undefined | undefined;
|
|
67
|
+
slot?: string | undefined | undefined;
|
|
69
68
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
70
69
|
tabIndex?: number | undefined | undefined;
|
|
70
|
+
title?: string | undefined | undefined;
|
|
71
71
|
translate?: "yes" | "no" | undefined | undefined;
|
|
72
72
|
radioGroup?: string | undefined | undefined;
|
|
73
73
|
role?: import("react").AriaRole | undefined;
|
|
@@ -150,7 +150,6 @@ declare const meta: {
|
|
|
150
150
|
"aria-valuemin"?: number | undefined | undefined;
|
|
151
151
|
"aria-valuenow"?: number | undefined | undefined;
|
|
152
152
|
"aria-valuetext"?: string | undefined | undefined;
|
|
153
|
-
children?: import("react").ReactNode;
|
|
154
153
|
dangerouslySetInnerHTML?: {
|
|
155
154
|
__html: string | TrustedHTML;
|
|
156
155
|
} | undefined | undefined;
|
|
@@ -312,11 +311,12 @@ declare const meta: {
|
|
|
312
311
|
onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLSpanElement> | undefined;
|
|
313
312
|
onTransitionEnd?: import("react").TransitionEventHandler<HTMLSpanElement> | undefined;
|
|
314
313
|
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLSpanElement> | undefined;
|
|
314
|
+
key?: import("react").Key | null | undefined;
|
|
315
315
|
height?: number | string | undefined;
|
|
316
316
|
width?: number | string | undefined;
|
|
317
|
+
shape?: (typeof shapes)[number] | undefined;
|
|
317
318
|
animated?: boolean | undefined;
|
|
318
319
|
lines?: number | undefined;
|
|
319
|
-
shape?: (typeof shapes)[number] | undefined;
|
|
320
320
|
ref?: import("react").LegacyRef<HTMLSpanElement> | undefined;
|
|
321
321
|
}>) => import("react/jsx-runtime").JSX.Element)[];
|
|
322
322
|
};
|