@nurihaus/web-design-system 3.15.0 → 3.16.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 +84 -6
- package/dist/ai/migration.md +6 -0
- package/dist/ai/motion.md +118 -86
- package/dist/ai/patterns.md +25 -28
- package/dist/ai/tokens.md +36 -0
- package/dist/bottom-cta.js +38 -88
- package/dist/bottom-sheet.js +4 -4
- package/dist/chunk-3084.js +69 -0
- package/dist/chunk-5670.js +9 -2
- package/dist/chunk-7232.js +6 -0
- package/dist/chunk-7687.js +2 -2
- package/dist/chunk-8982.js +20 -0
- package/dist/components/asset/asset.d.ts +3 -3
- package/dist/components/asset/asset.stories.d.ts +3 -3
- package/dist/components/bottom-bar/bottom-bar.stories.d.ts +5 -5
- package/dist/components/elements/text/text-props.d.ts +2 -2
- package/dist/components/elements/text/text.stories.d.ts +1 -1
- package/dist/components/empty-state/empty-state.stories.d.ts +10 -10
- package/dist/components/icon/icon.stories.d.ts +1 -1
- package/dist/components/list/list-footer.stories.d.ts +8 -8
- package/dist/components/list/list-header.stories.d.ts +5 -5
- package/dist/components/list/list-row.stories.d.ts +9 -9
- package/dist/components/message/message.stories.d.ts +7 -7
- package/dist/components/notice/notice.stories.d.ts +6 -6
- package/dist/components/overlay/overlay.stories.d.ts +1 -1
- package/dist/components/result-screen/base-result-screen.d.ts +4 -0
- package/dist/components/result-screen/result-screen-props.d.ts +15 -0
- package/dist/components/result-screen/result-screen-type.d.ts +28 -0
- package/dist/components/result-screen/result-screen.d.ts +14 -0
- package/dist/components/result-screen/result-screen.stories.d.ts +57 -0
- package/dist/components/section-header/section-header.stories.d.ts +5 -5
- package/dist/components/skeleton/skeleton-group-type.d.ts +3 -0
- package/dist/components/skeleton/skeleton-group.stories.d.ts +1 -1
- package/dist/components/skeleton/skeleton-props.d.ts +7 -0
- package/dist/components/skeleton/skeleton-type.d.ts +3 -1
- package/dist/components/skeleton/skeleton.stories.d.ts +15 -6
- package/dist/components/toast/toast.stories.d.ts +5 -5
- package/dist/components/top/top.stories.d.ts +4 -4
- package/dist/components.css +291 -4
- package/dist/cta-button.js +5 -5
- package/dist/docs/patterns/mobile/result.stories.d.ts +1 -1
- package/dist/full-secure-keypad.js +5 -5
- package/dist/index.d.ts +2 -0
- package/dist/index.js +377 -66
- package/dist/modal-with-double-button.js +5 -5
- package/dist/notice.js +5 -5
- package/dist/overlay.js +12 -12
- package/dist/result-screen.js +572 -0
- package/dist/skeleton-group.js +13 -6
- package/dist/skeleton.js +2 -2
- package/dist/styles.css +274 -4
- package/dist/toast.js +5 -5
- package/dist/tokens/generated/colors.d.ts +6 -0
- package/dist/tokens/generated/motion.d.ts +20 -0
- package/dist/tokens/generated/primitive.d.ts +15 -0
- package/dist/tokens.css +35 -0
- package/dist/tokens.js +41 -0
- package/package.json +5 -1
|
@@ -14,7 +14,7 @@ declare const meta: {
|
|
|
14
14
|
control: {
|
|
15
15
|
type: "select";
|
|
16
16
|
};
|
|
17
|
-
options: ("
|
|
17
|
+
options: ("link" | "circle" | "image" | "x" | "copy" | "caret-right" | "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" | "eye-slash" | "sliders-horizontal" | "heart" | "star" | "globe" | "sign-out" | "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,9 +15,11 @@ 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
|
+
slot?: string | undefined | undefined;
|
|
19
19
|
style?: import("react").CSSProperties | undefined;
|
|
20
|
-
|
|
20
|
+
title?: string | undefined | undefined;
|
|
21
|
+
track?: string | undefined;
|
|
22
|
+
key?: import("react").Key | null | undefined;
|
|
21
23
|
defaultChecked?: boolean | undefined | undefined;
|
|
22
24
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
23
25
|
suppressContentEditableWarning?: boolean | undefined | undefined;
|
|
@@ -25,6 +27,7 @@ declare const meta: {
|
|
|
25
27
|
accessKey?: string | undefined | undefined;
|
|
26
28
|
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
|
|
27
29
|
autoFocus?: boolean | undefined | undefined;
|
|
30
|
+
className?: string | undefined | undefined;
|
|
28
31
|
contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
29
32
|
contextMenu?: string | undefined | undefined;
|
|
30
33
|
dir?: string | undefined | undefined;
|
|
@@ -34,10 +37,8 @@ declare const meta: {
|
|
|
34
37
|
id?: string | undefined | undefined;
|
|
35
38
|
lang?: string | undefined | undefined;
|
|
36
39
|
nonce?: string | undefined | undefined;
|
|
37
|
-
slot?: string | undefined | undefined;
|
|
38
40
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
39
41
|
tabIndex?: number | undefined | undefined;
|
|
40
|
-
title?: string | undefined | undefined;
|
|
41
42
|
translate?: "yes" | "no" | undefined | undefined;
|
|
42
43
|
radioGroup?: string | undefined | undefined;
|
|
43
44
|
role?: import("react").AriaRole | undefined;
|
|
@@ -120,6 +121,7 @@ declare const meta: {
|
|
|
120
121
|
"aria-valuemin"?: number | undefined | undefined;
|
|
121
122
|
"aria-valuenow"?: number | undefined | undefined;
|
|
122
123
|
"aria-valuetext"?: string | undefined | undefined;
|
|
124
|
+
children: import("react").ReactNode;
|
|
123
125
|
dangerouslySetInnerHTML?: {
|
|
124
126
|
__html: string | TrustedHTML;
|
|
125
127
|
} | undefined | undefined;
|
|
@@ -281,14 +283,12 @@ declare const meta: {
|
|
|
281
283
|
onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
|
|
282
284
|
onTransitionEnd?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
283
285
|
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
284
|
-
|
|
285
|
-
key?: import("react").Key | null | undefined;
|
|
286
|
-
loading?: boolean | undefined;
|
|
286
|
+
border?: (typeof footerBorder)[number] | undefined;
|
|
287
287
|
asChild?: boolean | undefined;
|
|
288
288
|
trackProps?: Record<string, string | number | boolean> | undefined;
|
|
289
289
|
pressEffect?: boolean | undefined;
|
|
290
|
-
border?: (typeof footerBorder)[number] | undefined;
|
|
291
290
|
icon?: import("../..").IconName | undefined;
|
|
291
|
+
loading?: boolean | undefined;
|
|
292
292
|
ref?: import("react").LegacyRef<HTMLDivElement> | undefined;
|
|
293
293
|
}>) => import("react/jsx-runtime").JSX.Element)[];
|
|
294
294
|
};
|
|
@@ -15,9 +15,10 @@ 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
|
+
slot?: string | undefined | undefined;
|
|
19
19
|
style?: import("react").CSSProperties | undefined;
|
|
20
|
-
|
|
20
|
+
title: import("react").ReactNode;
|
|
21
|
+
key?: import("react").Key | null | undefined;
|
|
21
22
|
defaultChecked?: boolean | undefined | undefined;
|
|
22
23
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
23
24
|
suppressContentEditableWarning?: boolean | undefined | undefined;
|
|
@@ -25,6 +26,7 @@ declare const meta: {
|
|
|
25
26
|
accessKey?: string | undefined | undefined;
|
|
26
27
|
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
|
|
27
28
|
autoFocus?: boolean | undefined | undefined;
|
|
29
|
+
className?: string | undefined | undefined;
|
|
28
30
|
contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
29
31
|
contextMenu?: string | undefined | undefined;
|
|
30
32
|
dir?: string | undefined | undefined;
|
|
@@ -34,10 +36,8 @@ declare const meta: {
|
|
|
34
36
|
id?: string | undefined | undefined;
|
|
35
37
|
lang?: string | undefined | undefined;
|
|
36
38
|
nonce?: string | undefined | undefined;
|
|
37
|
-
slot?: string | undefined | undefined;
|
|
38
39
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
39
40
|
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,6 +120,7 @@ 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;
|
|
123
124
|
dangerouslySetInnerHTML?: {
|
|
124
125
|
__html: string | TrustedHTML;
|
|
125
126
|
} | undefined | undefined;
|
|
@@ -281,7 +282,6 @@ declare const meta: {
|
|
|
281
282
|
onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
|
|
282
283
|
onTransitionEnd?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
283
284
|
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,10 +16,12 @@ 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
|
+
label: import("react").ReactNode;
|
|
20
|
+
slot?: string | undefined | undefined;
|
|
21
21
|
style?: import("react").CSSProperties | undefined;
|
|
22
|
-
|
|
22
|
+
title?: string | undefined | undefined;
|
|
23
|
+
track?: string | undefined;
|
|
24
|
+
key?: import("react").Key | null | undefined;
|
|
23
25
|
defaultChecked?: boolean | undefined | undefined;
|
|
24
26
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
25
27
|
suppressContentEditableWarning?: boolean | undefined | undefined;
|
|
@@ -27,6 +29,7 @@ declare const meta: {
|
|
|
27
29
|
accessKey?: string | undefined | undefined;
|
|
28
30
|
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
|
|
29
31
|
autoFocus?: boolean | undefined | undefined;
|
|
32
|
+
className?: string | undefined | undefined;
|
|
30
33
|
contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
31
34
|
contextMenu?: string | undefined | undefined;
|
|
32
35
|
dir?: string | undefined | undefined;
|
|
@@ -36,10 +39,8 @@ declare const meta: {
|
|
|
36
39
|
id?: string | undefined | undefined;
|
|
37
40
|
lang?: string | undefined | undefined;
|
|
38
41
|
nonce?: string | undefined | undefined;
|
|
39
|
-
slot?: string | undefined | undefined;
|
|
40
42
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
41
43
|
tabIndex?: number | undefined | undefined;
|
|
42
|
-
title?: string | undefined | undefined;
|
|
43
44
|
translate?: "yes" | "no" | undefined | undefined;
|
|
44
45
|
radioGroup?: string | undefined | undefined;
|
|
45
46
|
role?: import("react").AriaRole | undefined;
|
|
@@ -122,6 +123,7 @@ declare const meta: {
|
|
|
122
123
|
"aria-valuemin"?: number | undefined | undefined;
|
|
123
124
|
"aria-valuenow"?: number | undefined | undefined;
|
|
124
125
|
"aria-valuetext"?: string | undefined | undefined;
|
|
126
|
+
children?: import("react").ReactNode;
|
|
125
127
|
dangerouslySetInnerHTML?: {
|
|
126
128
|
__html: string | TrustedHTML;
|
|
127
129
|
} | undefined | undefined;
|
|
@@ -283,13 +285,11 @@ declare const meta: {
|
|
|
283
285
|
onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
|
|
284
286
|
onTransitionEnd?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
285
287
|
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
key?: import("react").Key | null | undefined;
|
|
288
|
+
border?: import("./list-type").ListRowBorder | undefined;
|
|
289
|
+
size?: import("./list-type").ListRowSize | undefined;
|
|
289
290
|
asChild?: boolean | undefined;
|
|
290
291
|
trackProps?: Record<string, string | number | boolean> | undefined;
|
|
291
292
|
pressEffect?: boolean | undefined;
|
|
292
|
-
border?: import("./list-type").ListRowBorder | undefined;
|
|
293
293
|
effectRef?: import("react").Ref<AttentionHandle> | undefined;
|
|
294
294
|
description?: import("react").ReactNode;
|
|
295
295
|
chevron?: boolean | undefined;
|
|
@@ -29,9 +29,11 @@ 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
|
+
slot?: string | undefined | undefined;
|
|
33
33
|
style?: import("react").CSSProperties | undefined;
|
|
34
|
-
|
|
34
|
+
time?: import("react").ReactNode;
|
|
35
|
+
title?: string | undefined | undefined;
|
|
36
|
+
key?: import("react").Key | null | undefined;
|
|
35
37
|
defaultChecked?: boolean | undefined | undefined;
|
|
36
38
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
37
39
|
suppressContentEditableWarning?: boolean | undefined | undefined;
|
|
@@ -39,6 +41,7 @@ declare const meta: {
|
|
|
39
41
|
accessKey?: string | undefined | undefined;
|
|
40
42
|
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
|
|
41
43
|
autoFocus?: boolean | undefined | undefined;
|
|
44
|
+
className?: string | undefined | undefined;
|
|
42
45
|
contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
43
46
|
contextMenu?: string | undefined | undefined;
|
|
44
47
|
dir?: string | undefined | undefined;
|
|
@@ -48,10 +51,8 @@ declare const meta: {
|
|
|
48
51
|
id?: string | undefined | undefined;
|
|
49
52
|
lang?: string | undefined | undefined;
|
|
50
53
|
nonce?: string | undefined | undefined;
|
|
51
|
-
slot?: string | undefined | undefined;
|
|
52
54
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
53
55
|
tabIndex?: number | undefined | undefined;
|
|
54
|
-
title?: string | undefined | undefined;
|
|
55
56
|
translate?: "yes" | "no" | undefined | undefined;
|
|
56
57
|
radioGroup?: string | undefined | undefined;
|
|
57
58
|
role?: import("react").AriaRole | undefined;
|
|
@@ -134,6 +135,7 @@ declare const meta: {
|
|
|
134
135
|
"aria-valuemin"?: number | undefined | undefined;
|
|
135
136
|
"aria-valuenow"?: number | undefined | undefined;
|
|
136
137
|
"aria-valuetext"?: string | undefined | undefined;
|
|
138
|
+
children?: import("react").ReactNode;
|
|
137
139
|
dangerouslySetInnerHTML?: {
|
|
138
140
|
__html: string | TrustedHTML;
|
|
139
141
|
} | undefined | undefined;
|
|
@@ -295,11 +297,9 @@ declare const meta: {
|
|
|
295
297
|
onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLLIElement> | undefined;
|
|
296
298
|
onTransitionEnd?: import("react").TransitionEventHandler<HTMLLIElement> | undefined;
|
|
297
299
|
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLLIElement> | undefined;
|
|
298
|
-
|
|
299
|
-
key?: import("react").Key | null | undefined;
|
|
300
|
+
motion?: (typeof motion)[number] | undefined;
|
|
300
301
|
name?: import("react").ReactNode;
|
|
301
302
|
value?: string | number | readonly string[] | undefined;
|
|
302
|
-
motion?: (typeof motion)[number] | undefined;
|
|
303
303
|
media?: import("react").ReactNode;
|
|
304
304
|
side?: (typeof side)[number] | undefined;
|
|
305
305
|
dateTime?: string | undefined;
|
|
@@ -34,9 +34,10 @@ declare const meta: {
|
|
|
34
34
|
children: string;
|
|
35
35
|
};
|
|
36
36
|
decorators: ((Story: import("storybook/internal/csf").PartialStoryFn<import("@storybook/react-webpack5").ReactRenderer, {
|
|
37
|
-
|
|
37
|
+
slot?: string | undefined | undefined;
|
|
38
38
|
style?: import("react").CSSProperties | undefined;
|
|
39
|
-
|
|
39
|
+
title?: import("react").ReactNode;
|
|
40
|
+
key?: import("react").Key | null | undefined;
|
|
40
41
|
defaultChecked?: boolean | undefined | undefined;
|
|
41
42
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
42
43
|
suppressContentEditableWarning?: boolean | undefined | undefined;
|
|
@@ -44,6 +45,7 @@ declare const meta: {
|
|
|
44
45
|
accessKey?: string | undefined | undefined;
|
|
45
46
|
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
|
|
46
47
|
autoFocus?: boolean | undefined | undefined;
|
|
48
|
+
className?: string | undefined | undefined;
|
|
47
49
|
contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
48
50
|
contextMenu?: string | undefined | undefined;
|
|
49
51
|
dir?: string | undefined | undefined;
|
|
@@ -53,10 +55,8 @@ declare const meta: {
|
|
|
53
55
|
id?: string | undefined | undefined;
|
|
54
56
|
lang?: string | undefined | undefined;
|
|
55
57
|
nonce?: string | undefined | undefined;
|
|
56
|
-
slot?: string | undefined | undefined;
|
|
57
58
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
58
59
|
tabIndex?: number | undefined | undefined;
|
|
59
|
-
title?: import("react").ReactNode;
|
|
60
60
|
translate?: "yes" | "no" | undefined | undefined;
|
|
61
61
|
radioGroup?: string | undefined | undefined;
|
|
62
62
|
role?: import("react").AriaRole | undefined;
|
|
@@ -139,6 +139,7 @@ declare const meta: {
|
|
|
139
139
|
"aria-valuemin"?: number | undefined | undefined;
|
|
140
140
|
"aria-valuenow"?: number | undefined | undefined;
|
|
141
141
|
"aria-valuetext"?: string | undefined | undefined;
|
|
142
|
+
children: import("react").ReactNode;
|
|
142
143
|
dangerouslySetInnerHTML?: {
|
|
143
144
|
__html: string | TrustedHTML;
|
|
144
145
|
} | undefined | undefined;
|
|
@@ -300,9 +301,8 @@ declare const meta: {
|
|
|
300
301
|
onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
|
|
301
302
|
onTransitionEnd?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
302
303
|
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
303
|
-
key?: import("react").Key | null | undefined;
|
|
304
|
-
variant?: (typeof variant)[number] | undefined;
|
|
305
304
|
motion?: (typeof motion)[number] | undefined;
|
|
305
|
+
variant?: (typeof variant)[number] | undefined;
|
|
306
306
|
action?: import("./notice-type").NoticeAction | undefined;
|
|
307
307
|
actionPlacement?: (typeof actionPlacement)[number] | undefined;
|
|
308
308
|
ref?: import("react").LegacyRef<HTMLDivElement> | undefined;
|
|
@@ -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
|
-
children: import("react").ReactNode;
|
|
22
21
|
label?: string | undefined;
|
|
22
|
+
children: import("react").ReactNode;
|
|
23
23
|
position?: typeof import("../toast/toast-props").positions[number] | undefined;
|
|
24
24
|
duration?: number | undefined;
|
|
25
25
|
}>) => import("react/jsx-runtime").JSX.Element)[];
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
declare const BaseResultScreen: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
2
|
+
ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
3
|
+
}, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
4
|
+
export default BaseResultScreen;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 결과의 종류 — 그림 타일의 색과 안의 그림을 정한다.
|
|
3
|
+
* success 끝냈다(체크) · security 계정 보안이 바뀌었다(잠기는 자물쇠) · neutral 축하할 일은 아닌 처리(회색 체크)
|
|
4
|
+
* · farewell 떠나보낸다(무표정한 얼굴) · failure 안 됐다(느낌표, 한 번 흔들림)
|
|
5
|
+
*/
|
|
6
|
+
export declare const variant: readonly ["success", "security", "neutral", "farewell", "failure"];
|
|
7
|
+
/** 제목 태그. 결과 화면의 제목이라 기본 h1 */
|
|
8
|
+
export declare const titleAs: readonly ["h1", "h2", "p"];
|
|
9
|
+
export declare const resultScreenProps: {
|
|
10
|
+
variant: {
|
|
11
|
+
type: "className";
|
|
12
|
+
className: string;
|
|
13
|
+
values: readonly ["success", "security", "neutral", "farewell", "failure"];
|
|
14
|
+
};
|
|
15
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ComponentPropsWithRef, ReactNode } from 'react';
|
|
2
|
+
import { titleAs, variant } from './result-screen-props';
|
|
3
|
+
export type BaseResultScreenProps = ComponentPropsWithRef<'div'>;
|
|
4
|
+
export interface ResultScreenCommonProps extends Omit<ComponentPropsWithRef<'div'>, 'title'> {
|
|
5
|
+
/** 제목 한 줄. 문구는 쓰는 쪽이 정한다 */
|
|
6
|
+
title: ReactNode;
|
|
7
|
+
/** 제목 태그. 기본 h1 — 화면의 제목이다 */
|
|
8
|
+
titleAs?: (typeof titleAs)[number];
|
|
9
|
+
/** 한두 줄 설명 */
|
|
10
|
+
description?: ReactNode;
|
|
11
|
+
/** 주 행동 버튼 하나(보통 CTAButton size="xl"). 화면 아래에 고정되고 마지막에 나타난다 */
|
|
12
|
+
action: ReactNode;
|
|
13
|
+
/** 보조 길 하나(보통 TextButton). 버튼 위에 둔다 */
|
|
14
|
+
secondary?: ReactNode;
|
|
15
|
+
/** 설명 아래 본문(요약 Card 등) */
|
|
16
|
+
children?: ReactNode;
|
|
17
|
+
}
|
|
18
|
+
/** 위 그림은 정해진 종류(variant)나 화면에만 있는 그림(figure) 중 하나다 */
|
|
19
|
+
export type ResultScreenFigureProps = {
|
|
20
|
+
/** 결과의 종류. 그림 타일의 색과 그림을 정한다 */
|
|
21
|
+
variant: (typeof variant)[number];
|
|
22
|
+
figure?: never;
|
|
23
|
+
} | {
|
|
24
|
+
/** 정해진 그림 대신 그대로 그린다(회원 카드 등). 틀과 차례는 같다 */
|
|
25
|
+
figure: ReactNode;
|
|
26
|
+
variant?: never;
|
|
27
|
+
};
|
|
28
|
+
export type ResultScreenProps = ResultScreenCommonProps & ResultScreenFigureProps;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { variant as variants } from './result-screen-props';
|
|
2
|
+
/**
|
|
3
|
+
* 신청·변경·탈퇴처럼 일을 마친 직후 결과를 한 번 알리는 화면 전체.
|
|
4
|
+
* 그림 → 제목 → 설명 → 하단 버튼 차례로 나타난다(motion result). 문구는 쓰는 쪽이 정한다
|
|
5
|
+
*/
|
|
6
|
+
declare const ResultScreen: import("react").ForwardRefExoticComponent<(Omit<import("./result-screen-type").ResultScreenCommonProps & {
|
|
7
|
+
variant: (typeof variants)[number];
|
|
8
|
+
figure?: never;
|
|
9
|
+
}, "ref"> | Omit<import("./result-screen-type").ResultScreenCommonProps & {
|
|
10
|
+
figure: import("react").ReactNode;
|
|
11
|
+
variant?: never;
|
|
12
|
+
}, "ref">) & import("react").RefAttributes<HTMLDivElement>>;
|
|
13
|
+
export default ResultScreen;
|
|
14
|
+
export type { ResultScreenProps } from './result-screen-type';
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react-webpack5';
|
|
2
|
+
import ResultScreen from './result-screen';
|
|
3
|
+
import { variant } from './result-screen-props';
|
|
4
|
+
declare const meta: {
|
|
5
|
+
title: string;
|
|
6
|
+
parameters: {
|
|
7
|
+
docs: {
|
|
8
|
+
description: {
|
|
9
|
+
component: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
layout: string;
|
|
13
|
+
};
|
|
14
|
+
component: import("react").ForwardRefExoticComponent<(Omit<import("./result-screen-type").ResultScreenCommonProps & {
|
|
15
|
+
variant: (typeof variant)[number];
|
|
16
|
+
figure?: never;
|
|
17
|
+
}, "ref"> | Omit<import("./result-screen-type").ResultScreenCommonProps & {
|
|
18
|
+
figure: import("react").ReactNode;
|
|
19
|
+
variant?: never;
|
|
20
|
+
}, "ref">) & import("react").RefAttributes<HTMLDivElement>>;
|
|
21
|
+
argTypes: {
|
|
22
|
+
variant: {
|
|
23
|
+
control: {
|
|
24
|
+
type: "select";
|
|
25
|
+
};
|
|
26
|
+
options: readonly ["success", "security", "neutral", "farewell", "failure"];
|
|
27
|
+
};
|
|
28
|
+
titleAs: {
|
|
29
|
+
control: {
|
|
30
|
+
type: "select";
|
|
31
|
+
};
|
|
32
|
+
options: readonly ["h1", "h2", "p"];
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
args: {
|
|
36
|
+
variant: "success";
|
|
37
|
+
title: string;
|
|
38
|
+
description: string;
|
|
39
|
+
action: import("react/jsx-runtime").JSX.Element;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
export default meta;
|
|
43
|
+
type Story = StoryObj<typeof ResultScreen>;
|
|
44
|
+
/** 기본 — 신청을 마쳤다(success) */
|
|
45
|
+
export declare const Default: Story;
|
|
46
|
+
/** 신청·제출·인증을 마쳤다. 보조 길 하나를 버튼 위에 둔다 */
|
|
47
|
+
export declare const Success: Story;
|
|
48
|
+
/** 비밀번호를 바꿨다. 자물쇠가 잠기고 체크 배지가 붙는다 */
|
|
49
|
+
export declare const Security: Story;
|
|
50
|
+
/** 해지·취소 — 회색 타일에 체크 */
|
|
51
|
+
export declare const Neutral: Story;
|
|
52
|
+
/** 탈퇴 — 회색 타일에 무표정한 얼굴. 입이 그어지고 세 번 깜빡이고 멈춘다 */
|
|
53
|
+
export declare const Farewell: Story;
|
|
54
|
+
/** 안 됐다 — 느낌표, 타일이 한 번 흔들린다. 루트가 role=alert */
|
|
55
|
+
export declare const Failure: Story;
|
|
56
|
+
/** 화면에만 있는 그림 — 틀과 차례는 같고 그림만 쓰는 쪽 것 */
|
|
57
|
+
export declare const Figure: Story;
|
|
@@ -23,8 +23,11 @@ declare const meta: {
|
|
|
23
23
|
more: import("react/jsx-runtime").JSX.Element;
|
|
24
24
|
};
|
|
25
25
|
decorators: ((Story: import("storybook/internal/csf").PartialStoryFn<import("@storybook/react-webpack5").ReactRenderer, {
|
|
26
|
-
|
|
26
|
+
slot?: string | undefined | undefined;
|
|
27
27
|
style?: import("react").CSSProperties | undefined;
|
|
28
|
+
title: import("react").ReactNode;
|
|
29
|
+
track?: string | undefined;
|
|
30
|
+
key?: import("react").Key | null | undefined;
|
|
28
31
|
defaultChecked?: boolean | undefined | undefined;
|
|
29
32
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
30
33
|
suppressContentEditableWarning?: boolean | undefined | undefined;
|
|
@@ -32,6 +35,7 @@ declare const meta: {
|
|
|
32
35
|
accessKey?: string | undefined | undefined;
|
|
33
36
|
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
|
|
34
37
|
autoFocus?: boolean | undefined | undefined;
|
|
38
|
+
className?: string | undefined | undefined;
|
|
35
39
|
contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
36
40
|
contextMenu?: string | undefined | undefined;
|
|
37
41
|
dir?: string | undefined | undefined;
|
|
@@ -41,10 +45,8 @@ declare const meta: {
|
|
|
41
45
|
id?: string | undefined | undefined;
|
|
42
46
|
lang?: string | undefined | undefined;
|
|
43
47
|
nonce?: string | undefined | undefined;
|
|
44
|
-
slot?: string | undefined | undefined;
|
|
45
48
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
46
49
|
tabIndex?: number | undefined | undefined;
|
|
47
|
-
title: import("react").ReactNode;
|
|
48
50
|
translate?: "yes" | "no" | undefined | undefined;
|
|
49
51
|
radioGroup?: string | undefined | undefined;
|
|
50
52
|
role?: import("react").AriaRole | undefined;
|
|
@@ -288,8 +290,6 @@ declare const meta: {
|
|
|
288
290
|
onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
|
|
289
291
|
onTransitionEnd?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
290
292
|
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
291
|
-
track?: string | undefined;
|
|
292
|
-
key?: import("react").Key | null | undefined;
|
|
293
293
|
trackProps?: Record<string, string | number | boolean> | undefined;
|
|
294
294
|
description?: import("react").ReactNode;
|
|
295
295
|
titleLevel?: import("./section-header-type").SectionHeaderTitleLevel | undefined;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { StyleProps } from '../../helpers/types/common-props';
|
|
2
2
|
import type { PrimitiveTokens } from '../../tokens/generated';
|
|
3
3
|
import type { patterns } from './skeleton-group-props';
|
|
4
|
+
import type { SkeletonProps } from './skeleton-type';
|
|
4
5
|
/** --spacing-* 의 이름. tokens/tokens.json 에서 생성된 primitive.spacing 의 키다 */
|
|
5
6
|
export type SpacingToken = keyof PrimitiveTokens['spacing'];
|
|
6
7
|
export type SkeletonPattern = (typeof patterns)[number];
|
|
@@ -32,6 +33,8 @@ interface SkeletonGroupCommonProps extends StyleProps {
|
|
|
32
33
|
repeat?: number;
|
|
33
34
|
/** 블록마다 Skeleton 의 shimmer 를 켠다. 기본 true */
|
|
34
35
|
animated?: boolean;
|
|
36
|
+
/** 블록마다 Skeleton 의 색. 기본 'strong' */
|
|
37
|
+
variant?: SkeletonProps['variant'];
|
|
35
38
|
/** 영역의 이름. 기본 '불러오는 중' */
|
|
36
39
|
'aria-label'?: string;
|
|
37
40
|
}
|
|
@@ -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
|
-
repeat?: number | undefined;
|
|
39
38
|
'aria-label'?: string | undefined;
|
|
39
|
+
repeat?: number | undefined;
|
|
40
40
|
animated?: boolean | undefined;
|
|
41
41
|
pattern?: SkeletonPattern | undefined;
|
|
42
42
|
}>) => import("react/jsx-runtime").JSX.Element)[];
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { CSSPropsTypeWithoutValues } from '../../helpers/types/propsDef';
|
|
2
2
|
export declare const shapes: readonly ["text", "rect", "circle"];
|
|
3
|
+
export declare const variants: readonly ["strong", "subtle"];
|
|
3
4
|
export declare const skeletonProps: {
|
|
4
5
|
shape: {
|
|
5
6
|
type: "className";
|
|
@@ -7,6 +8,12 @@ export declare const skeletonProps: {
|
|
|
7
8
|
values: readonly ["text", "rect", "circle"];
|
|
8
9
|
default: "text";
|
|
9
10
|
};
|
|
11
|
+
variant: {
|
|
12
|
+
type: "className";
|
|
13
|
+
className: string;
|
|
14
|
+
values: readonly ["strong", "subtle"];
|
|
15
|
+
default: "strong";
|
|
16
|
+
};
|
|
10
17
|
width: CSSPropsTypeWithoutValues<string | number>;
|
|
11
18
|
height: {
|
|
12
19
|
type: "css";
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { ComponentPropsWithRef } from 'react';
|
|
2
|
-
import { shapes } from './skeleton-props';
|
|
2
|
+
import { shapes, variants } from './skeleton-props';
|
|
3
3
|
export type BaseSkeletonProps = ComponentPropsWithRef<'span'>;
|
|
4
4
|
export type BaseSkeletonGroupProps = ComponentPropsWithRef<'div'>;
|
|
5
5
|
export interface SkeletonProps extends BaseSkeletonProps {
|
|
6
6
|
shape?: (typeof shapes)[number];
|
|
7
|
+
/** 뼈대 색. strong(기본)은 회색 뼈대, subtle 은 바탕에 거의 묻히는 옅은 뼈대 */
|
|
8
|
+
variant?: (typeof variants)[number];
|
|
7
9
|
width?: number | string;
|
|
8
10
|
/** circle 이면 비울 때 width 와 같다. */
|
|
9
11
|
height?: number | string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { StoryObj } from '@storybook/react-webpack5';
|
|
2
|
-
import { shapes } from './skeleton-props';
|
|
2
|
+
import { shapes, variants } from './skeleton-props';
|
|
3
3
|
declare const meta: {
|
|
4
4
|
title: string;
|
|
5
5
|
parameters: {
|
|
@@ -38,6 +38,12 @@ declare const meta: {
|
|
|
38
38
|
type: "boolean";
|
|
39
39
|
};
|
|
40
40
|
};
|
|
41
|
+
variant: {
|
|
42
|
+
control: {
|
|
43
|
+
type: "select";
|
|
44
|
+
};
|
|
45
|
+
options: readonly ["strong", "subtle"];
|
|
46
|
+
};
|
|
41
47
|
};
|
|
42
48
|
args: {
|
|
43
49
|
shape: "text";
|
|
@@ -45,9 +51,10 @@ declare const meta: {
|
|
|
45
51
|
animated: true;
|
|
46
52
|
};
|
|
47
53
|
decorators: ((Story: import("storybook/internal/csf").PartialStoryFn<import("@storybook/react-webpack5").ReactRenderer, {
|
|
48
|
-
|
|
54
|
+
slot?: string | undefined | undefined;
|
|
49
55
|
style?: import("react").CSSProperties | undefined;
|
|
50
|
-
|
|
56
|
+
title?: string | undefined | undefined;
|
|
57
|
+
key?: import("react").Key | null | undefined;
|
|
51
58
|
defaultChecked?: boolean | undefined | undefined;
|
|
52
59
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
53
60
|
suppressContentEditableWarning?: boolean | undefined | undefined;
|
|
@@ -55,6 +62,7 @@ declare const meta: {
|
|
|
55
62
|
accessKey?: string | undefined | undefined;
|
|
56
63
|
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
|
|
57
64
|
autoFocus?: boolean | undefined | undefined;
|
|
65
|
+
className?: string | undefined | undefined;
|
|
58
66
|
contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
59
67
|
contextMenu?: string | undefined | undefined;
|
|
60
68
|
dir?: string | undefined | undefined;
|
|
@@ -64,10 +72,8 @@ declare const meta: {
|
|
|
64
72
|
id?: string | undefined | undefined;
|
|
65
73
|
lang?: string | undefined | undefined;
|
|
66
74
|
nonce?: string | undefined | undefined;
|
|
67
|
-
slot?: string | undefined | undefined;
|
|
68
75
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
69
76
|
tabIndex?: number | undefined | undefined;
|
|
70
|
-
title?: string | undefined | undefined;
|
|
71
77
|
translate?: "yes" | "no" | undefined | undefined;
|
|
72
78
|
radioGroup?: string | undefined | undefined;
|
|
73
79
|
role?: import("react").AriaRole | undefined;
|
|
@@ -150,6 +156,7 @@ declare const meta: {
|
|
|
150
156
|
"aria-valuemin"?: number | undefined | undefined;
|
|
151
157
|
"aria-valuenow"?: number | undefined | undefined;
|
|
152
158
|
"aria-valuetext"?: string | undefined | undefined;
|
|
159
|
+
children?: import("react").ReactNode;
|
|
153
160
|
dangerouslySetInnerHTML?: {
|
|
154
161
|
__html: string | TrustedHTML;
|
|
155
162
|
} | undefined | undefined;
|
|
@@ -311,9 +318,9 @@ declare const meta: {
|
|
|
311
318
|
onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLSpanElement> | undefined;
|
|
312
319
|
onTransitionEnd?: import("react").TransitionEventHandler<HTMLSpanElement> | undefined;
|
|
313
320
|
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLSpanElement> | undefined;
|
|
314
|
-
key?: import("react").Key | null | undefined;
|
|
315
321
|
height?: number | string | undefined;
|
|
316
322
|
width?: number | string | undefined;
|
|
323
|
+
variant?: (typeof variants)[number] | undefined;
|
|
317
324
|
shape?: (typeof shapes)[number] | undefined;
|
|
318
325
|
lines?: number | undefined;
|
|
319
326
|
animated?: boolean | undefined;
|
|
@@ -328,6 +335,8 @@ export declare const Default: Story;
|
|
|
328
335
|
export declare const Shapes: Story;
|
|
329
336
|
/** text 는 lines 로 여러 줄을 그리고 마지막 줄이 짧다. */
|
|
330
337
|
export declare const Lines: Story;
|
|
338
|
+
/** variant 별 색이다. subtle 은 바탕에 거의 묻혀 화면이 바뀌는 느낌이 작다. 앱 웹뷰가 뜨는 동안 깔 때 쓴다. */
|
|
339
|
+
export declare const Variants: Story;
|
|
331
340
|
/** 200×120 사각형 스켈레톤이다. */
|
|
332
341
|
export declare const Rect: Story;
|
|
333
342
|
/** 지름 48px 원 스켈레톤이다. */
|
|
@@ -26,8 +26,11 @@ declare const meta: {
|
|
|
26
26
|
variant: "default";
|
|
27
27
|
};
|
|
28
28
|
decorators: ((Story: import("storybook/internal/csf").PartialStoryFn<import("@storybook/react-webpack5").ReactRenderer, {
|
|
29
|
-
|
|
29
|
+
slot?: string | undefined | undefined;
|
|
30
30
|
style?: import("react").CSSProperties | undefined;
|
|
31
|
+
title: import("react").ReactNode;
|
|
32
|
+
track?: string | undefined;
|
|
33
|
+
key?: import("react").Key | null | undefined;
|
|
31
34
|
defaultChecked?: boolean | undefined | undefined;
|
|
32
35
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
33
36
|
suppressContentEditableWarning?: boolean | undefined | undefined;
|
|
@@ -35,6 +38,7 @@ declare const meta: {
|
|
|
35
38
|
accessKey?: string | undefined | undefined;
|
|
36
39
|
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
|
|
37
40
|
autoFocus?: boolean | undefined | undefined;
|
|
41
|
+
className?: string | undefined;
|
|
38
42
|
contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
39
43
|
contextMenu?: string | undefined | undefined;
|
|
40
44
|
dir?: string | undefined | undefined;
|
|
@@ -44,10 +48,8 @@ declare const meta: {
|
|
|
44
48
|
id?: string | undefined | undefined;
|
|
45
49
|
lang?: string | undefined | undefined;
|
|
46
50
|
nonce?: string | undefined | undefined;
|
|
47
|
-
slot?: string | undefined | undefined;
|
|
48
51
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
49
52
|
tabIndex?: number | undefined | undefined;
|
|
50
|
-
title: import("react").ReactNode;
|
|
51
53
|
translate?: "yes" | "no" | undefined | undefined;
|
|
52
54
|
radioGroup?: string | undefined | undefined;
|
|
53
55
|
role?: import("react").AriaRole | undefined;
|
|
@@ -291,8 +293,6 @@ declare const meta: {
|
|
|
291
293
|
onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLLIElement> | undefined;
|
|
292
294
|
onTransitionEnd?: import("react").TransitionEventHandler<HTMLLIElement> | undefined;
|
|
293
295
|
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLLIElement> | undefined;
|
|
294
|
-
track?: string | undefined;
|
|
295
|
-
key?: import("react").Key | null | undefined;
|
|
296
296
|
value?: string | number | readonly string[] | undefined;
|
|
297
297
|
variant?: (typeof variants)[number] | undefined;
|
|
298
298
|
trackProps?: Record<string, string | number | boolean> | undefined;
|