@nurihaus/web-design-system 3.17.1 → 3.19.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 +149 -8
- package/dist/ai/migration.md +11 -0
- package/dist/ai/motion.md +4 -0
- package/dist/ai/patterns.md +4 -4
- package/dist/ai/tokens.md +5 -0
- package/dist/asset.js +1 -1
- package/dist/avatar.js +16 -4
- package/dist/card.js +2 -1
- package/dist/components/asset/asset-props.d.ts +2 -2
- package/dist/components/asset/asset.stories.d.ts +4 -2
- package/dist/components/avatar/avatar-type.d.ts +2 -0
- package/dist/components/avatar/avatar.stories.d.ts +2 -0
- package/dist/components/bottom-bar/bottom-bar.stories.d.ts +5 -5
- package/dist/components/card/card-props.d.ts +3 -2
- package/dist/components/card/card.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 +6 -6
- package/dist/components/list/list-group.stories.d.ts +2 -0
- package/dist/components/list/list-header.stories.d.ts +5 -5
- package/dist/components/list/list-props.d.ts +10 -1
- package/dist/components/list/list-row.stories.d.ts +8 -8
- package/dist/components/list/list-type.d.ts +3 -1
- package/dist/components/media/media-props.d.ts +8 -0
- package/dist/components/media/media-thumbnail.stories.d.ts +2 -0
- package/dist/components/media/media-type.d.ts +12 -2
- package/dist/components/member-card/base-tier-ladder.d.ts +5 -0
- package/dist/components/member-card/member-card-type.d.ts +21 -1
- package/dist/components/member-card/member-card.stories.d.ts +1 -1
- package/dist/components/member-card/tier-ladder.d.ts +4 -0
- package/dist/components/member-card/tier-ladder.stories.d.ts +29 -0
- package/dist/components/message/message.stories.d.ts +6 -6
- package/dist/components/notice/notice.stories.d.ts +5 -5
- package/dist/components/overlay/overlay.stories.d.ts +1 -1
- package/dist/components/platform-badge/base-platform-badge.d.ts +5 -0
- package/dist/components/platform-badge/platform-badge-props.d.ts +12 -0
- package/dist/components/platform-badge/platform-badge-type.d.ts +12 -0
- package/dist/components/platform-badge/platform-badge.d.ts +5 -0
- package/dist/components/platform-badge/platform-badge.stories.d.ts +33 -0
- package/dist/components/section-header/section-header.stories.d.ts +5 -5
- package/dist/components/segmented-control/segmented-control.stories.d.ts +1 -1
- package/dist/components/skeleton/skeleton-group.stories.d.ts +1 -1
- package/dist/components/skeleton/skeleton.stories.d.ts +5 -5
- package/dist/components/toast/toast.stories.d.ts +5 -5
- package/dist/components/top/top.stories.d.ts +4 -4
- package/dist/components.css +266 -32
- package/dist/index.d.ts +4 -1
- package/dist/index.js +391 -28
- package/dist/list-footer.js +11 -2
- package/dist/list-group.js +11 -2
- package/dist/list-header.js +11 -2
- package/dist/list-row.js +11 -2
- package/dist/media-thumbnail.js +26 -2
- package/dist/member-card.js +29 -17
- package/dist/platform-badge.js +297 -0
- package/dist/styles.css +228 -32
- package/dist/tier-ladder.js +379 -0
- package/dist/tokens/generated/semantic-app.d.ts +2 -0
- package/dist/tokens.css +8 -0
- package/dist/tokens.js +3 -1
- package/package.json +9 -1
|
@@ -37,8 +37,11 @@ declare const meta: {
|
|
|
37
37
|
description: string;
|
|
38
38
|
};
|
|
39
39
|
decorators: ((Story: import("storybook/internal/csf").PartialStoryFn<import("@storybook/react-webpack5").ReactRenderer, {
|
|
40
|
-
|
|
40
|
+
figure?: never | undefined;
|
|
41
|
+
slot?: string | undefined | undefined;
|
|
41
42
|
style?: import("react").CSSProperties | undefined;
|
|
43
|
+
title: import("react").ReactNode;
|
|
44
|
+
key?: import("react").Key | null | undefined;
|
|
42
45
|
defaultChecked?: boolean | undefined | undefined;
|
|
43
46
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
44
47
|
suppressContentEditableWarning?: boolean | undefined | undefined;
|
|
@@ -46,6 +49,7 @@ declare const meta: {
|
|
|
46
49
|
accessKey?: string | undefined | undefined;
|
|
47
50
|
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
|
|
48
51
|
autoFocus?: boolean | undefined | undefined;
|
|
52
|
+
className?: string | undefined | undefined;
|
|
49
53
|
contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
50
54
|
contextMenu?: string | undefined | undefined;
|
|
51
55
|
dir?: string | undefined | undefined;
|
|
@@ -55,10 +59,8 @@ declare const meta: {
|
|
|
55
59
|
id?: string | undefined | undefined;
|
|
56
60
|
lang?: string | undefined | undefined;
|
|
57
61
|
nonce?: string | undefined | undefined;
|
|
58
|
-
slot?: string | undefined | undefined;
|
|
59
62
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
60
63
|
tabIndex?: number | undefined | undefined;
|
|
61
|
-
title: import("react").ReactNode;
|
|
62
64
|
translate?: "yes" | "no" | undefined | undefined;
|
|
63
65
|
radioGroup?: string | undefined | undefined;
|
|
64
66
|
role?: import("react").AriaRole | undefined;
|
|
@@ -302,8 +304,6 @@ declare const meta: {
|
|
|
302
304
|
onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
|
|
303
305
|
onTransitionEnd?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
304
306
|
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
305
|
-
figure?: never | undefined;
|
|
306
|
-
key?: import("react").Key | null | undefined;
|
|
307
307
|
variant?: (typeof variant)[number] | undefined;
|
|
308
308
|
icon: import("../..").IconName;
|
|
309
309
|
action?: import("react").ReactNode;
|
|
@@ -311,8 +311,11 @@ declare const meta: {
|
|
|
311
311
|
titleAs?: (typeof titleAs)[number] | undefined;
|
|
312
312
|
ref?: import("react").LegacyRef<HTMLDivElement> | undefined;
|
|
313
313
|
} | {
|
|
314
|
-
|
|
314
|
+
figure: import("react").ReactNode;
|
|
315
|
+
slot?: string | undefined | undefined;
|
|
315
316
|
style?: import("react").CSSProperties | undefined;
|
|
317
|
+
title: import("react").ReactNode;
|
|
318
|
+
key?: import("react").Key | null | undefined;
|
|
316
319
|
defaultChecked?: boolean | undefined | undefined;
|
|
317
320
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
318
321
|
suppressContentEditableWarning?: boolean | undefined | undefined;
|
|
@@ -320,6 +323,7 @@ declare const meta: {
|
|
|
320
323
|
accessKey?: string | undefined | undefined;
|
|
321
324
|
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
|
|
322
325
|
autoFocus?: boolean | undefined | undefined;
|
|
326
|
+
className?: string | undefined | undefined;
|
|
323
327
|
contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
324
328
|
contextMenu?: string | undefined | undefined;
|
|
325
329
|
dir?: string | undefined | undefined;
|
|
@@ -329,10 +333,8 @@ declare const meta: {
|
|
|
329
333
|
id?: string | undefined | undefined;
|
|
330
334
|
lang?: string | undefined | undefined;
|
|
331
335
|
nonce?: string | undefined | undefined;
|
|
332
|
-
slot?: string | undefined | undefined;
|
|
333
336
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
334
337
|
tabIndex?: number | undefined | undefined;
|
|
335
|
-
title: import("react").ReactNode;
|
|
336
338
|
translate?: "yes" | "no" | undefined | undefined;
|
|
337
339
|
radioGroup?: string | undefined | undefined;
|
|
338
340
|
role?: import("react").AriaRole | undefined;
|
|
@@ -576,8 +578,6 @@ declare const meta: {
|
|
|
576
578
|
onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
|
|
577
579
|
onTransitionEnd?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
578
580
|
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
579
|
-
figure: import("react").ReactNode;
|
|
580
|
-
key?: import("react").Key | null | undefined;
|
|
581
581
|
variant?: (typeof variant)[number] | undefined;
|
|
582
582
|
icon?: never | undefined;
|
|
583
583
|
action?: import("react").ReactNode;
|
|
@@ -14,7 +14,7 @@ declare const meta: {
|
|
|
14
14
|
control: {
|
|
15
15
|
type: "select";
|
|
16
16
|
};
|
|
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" | "
|
|
17
|
+
options: ("circle" | "link" | "image" | "x" | "copy" | "camera" | "house" | "megaphone-simple" | "chats-circle" | "user-circle" | "bell" | "caret-left" | "magnifying-glass" | "dots-three" | "gear-six" | "chat-circle" | "paper-plane-tilt" | "plus" | "minus" | "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-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,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,8 +283,6 @@ 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
|
-
track?: string | undefined;
|
|
285
|
-
key?: import("react").Key | null | undefined;
|
|
286
286
|
loading?: boolean | undefined;
|
|
287
287
|
border?: (typeof footerBorder)[number] | undefined;
|
|
288
288
|
asChild?: boolean | undefined;
|
|
@@ -19,5 +19,7 @@ type Story = StoryObj<typeof meta>;
|
|
|
19
19
|
export declare const Default: Story;
|
|
20
20
|
/** label 없이 면만 */
|
|
21
21
|
export declare const WithoutLabel: Story;
|
|
22
|
+
/** surface="none" 이면 면 없이 바탕에 바로 놓인다. 회색 시트 위에서도 같다 */
|
|
23
|
+
export declare const SurfaceNone: Story;
|
|
22
24
|
/** stagger 면 처음 그릴 때 행이 위에서부터 차례로 나타난다. 숫자는 행 사이 ms */
|
|
23
25
|
export declare const Stagger: Story;
|
|
@@ -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;
|
|
@@ -6,7 +6,16 @@ export declare const border: readonly ["indented", "full", "none"];
|
|
|
6
6
|
export declare const footerBorder: readonly ["full", "indented", "none"];
|
|
7
7
|
export declare const descriptionPosition: readonly ["top", "bottom"];
|
|
8
8
|
export declare const rightAlign: readonly ["center", "bottom"];
|
|
9
|
-
|
|
9
|
+
/** 행을 담는 면. base 는 흰 면, none 은 면 없이 바탕에 바로 놓는다(내 정보 탭 · 설정) */
|
|
10
|
+
export declare const groupSurface: readonly ["base", "none"];
|
|
11
|
+
export declare const listGroupProps: {
|
|
12
|
+
surface: {
|
|
13
|
+
type: "className";
|
|
14
|
+
className: string;
|
|
15
|
+
values: readonly ["base", "none"];
|
|
16
|
+
default: "base";
|
|
17
|
+
};
|
|
18
|
+
};
|
|
10
19
|
export declare const listRowProps: {
|
|
11
20
|
size: import("../../helpers/types/propsDef").ClassNamePropsType<readonly ["s", "m", "l"]>;
|
|
12
21
|
border: {
|
|
@@ -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,9 +285,7 @@ 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
|
-
track?: string | undefined;
|
|
288
|
-
key?: import("react").Key | null | undefined;
|
|
288
|
+
size?: import("./list-type").ListRowSize | undefined;
|
|
289
289
|
border?: import("./list-type").ListRowBorder | undefined;
|
|
290
290
|
asChild?: boolean | undefined;
|
|
291
291
|
trackProps?: Record<string, string | number | boolean> | undefined;
|
|
@@ -5,7 +5,7 @@ import { AsChildProps, StyleProps } from '../../helpers/types/common-props';
|
|
|
5
5
|
import type { IconName } from '../icon/icon-type';
|
|
6
6
|
import { TrackProps } from '../logging/logging-type';
|
|
7
7
|
import type { SkeletonGroupProps } from '../skeleton/skeleton-group-type';
|
|
8
|
-
import { border, descriptionPosition, footerBorder, rightAlign, sizes } from './list-props';
|
|
8
|
+
import { border, descriptionPosition, footerBorder, groupSurface, rightAlign, sizes } from './list-props';
|
|
9
9
|
export type ListRowSize = (typeof sizes)[number];
|
|
10
10
|
export type ListRowBorder = (typeof border)[number];
|
|
11
11
|
export type ListRootProps = ComponentPropsWithRef<'div'>;
|
|
@@ -18,6 +18,8 @@ export interface ListGroupProps extends ComponentPropsWithRef<'div'> {
|
|
|
18
18
|
label?: ReactNode;
|
|
19
19
|
/** 처음 그릴 때 행을 위에서부터 차례로 보인다. true 면 토큰 간격, 숫자면 행 사이 간격(ms) */
|
|
20
20
|
stagger?: boolean | number;
|
|
21
|
+
/** 행을 담는 면. 기본 base(흰 면), none 은 면·선 없이 바탕에 바로 놓는다 */
|
|
22
|
+
surface?: (typeof groupSurface)[number];
|
|
21
23
|
}
|
|
22
24
|
export interface ListRowProps extends Omit<ComponentPropsWithRef<'div'>, 'onClick'>, AsChildProps, TrackProps, PressEffectProps {
|
|
23
25
|
label: ReactNode;
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
export declare const sizes: readonly ["s", "m", "l"];
|
|
2
2
|
export declare const mediaTypes: readonly ["image", "video"];
|
|
3
|
+
/** 썸네일 위 딱지 색. brand 는 보라(대표), dark 는 반투명 검정(숨김 등 상태) */
|
|
4
|
+
export declare const badgeVariant: readonly ["brand", "dark"];
|
|
3
5
|
export declare const mediaThumbnailProps: {
|
|
4
6
|
size: import("../../helpers/types/propsDef").ClassNamePropsType<readonly ["s", "m", "l"]>;
|
|
7
|
+
badgeVariant: {
|
|
8
|
+
type: "className";
|
|
9
|
+
className: string;
|
|
10
|
+
values: readonly ["brand", "dark"];
|
|
11
|
+
default: "brand";
|
|
12
|
+
};
|
|
5
13
|
};
|
|
@@ -41,3 +41,5 @@ export declare const Removable: Story;
|
|
|
41
41
|
export declare const InBubble: Story;
|
|
42
42
|
/** 썸네일을 누르고 있으면 줄어든다. 아래는 pressEffect={false} */
|
|
43
43
|
export declare const MotionPress: Story;
|
|
44
|
+
/** 3열 그리드 칸을 fill 로 채우고 위 딱지 · 조회수 · 숨김을 얹는다(내 콘텐츠). */
|
|
45
|
+
export declare const Overlays: Story;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ComponentPropsWithRef, ReactElement } from 'react';
|
|
1
|
+
import { ComponentPropsWithRef, ReactElement, ReactNode } from 'react';
|
|
2
2
|
import { PressEffectProps } 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 { mediaTypes, sizes } from './media-props';
|
|
5
|
+
import { badgeVariant, mediaTypes, sizes } from './media-props';
|
|
6
6
|
export interface MediaViewerRootProps {
|
|
7
7
|
open?: boolean;
|
|
8
8
|
defaultOpen?: boolean;
|
|
@@ -45,5 +45,15 @@ export interface MediaThumbnailProps extends MediaSourceProps, StyleProps, Track
|
|
|
45
45
|
onRemove?: () => void;
|
|
46
46
|
/** 지우기 버튼의 aria-label (예: '삭제') */
|
|
47
47
|
removeLabel?: string;
|
|
48
|
+
/** 왼쪽 위 딱지 글자(예: '대표' · '숨김') */
|
|
49
|
+
badge?: ReactNode;
|
|
50
|
+
/** 딱지 색. 기본 brand(보라), dark 는 반투명 검정 */
|
|
51
|
+
badgeVariant?: (typeof badgeVariant)[number];
|
|
52
|
+
/** 왼쪽 아래 조회수(예: '412K'). 재생 표시와 함께 흰 글자로 얹는다 */
|
|
53
|
+
views?: ReactNode;
|
|
54
|
+
/** 숨긴 콘텐츠. 사진 위를 흐린 막으로 덮는다. 열리는 것은 그대로다 */
|
|
55
|
+
dimmed?: boolean;
|
|
56
|
+
/** 부모 칸 폭을 채우는 정사각. size 보다 앞선다(3열 그리드) */
|
|
57
|
+
fill?: boolean;
|
|
48
58
|
}
|
|
49
59
|
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { TierLadderRootProps, TierLadderStepProps } from './member-card-type';
|
|
2
|
+
declare const TierLadderRoot: import("react").ForwardRefExoticComponent<Omit<TierLadderRootProps, "ref"> & import("react").RefAttributes<HTMLDivElement>> & {
|
|
3
|
+
Step: import("react").ForwardRefExoticComponent<Omit<TierLadderStepProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
4
|
+
};
|
|
5
|
+
export default TierLadderRoot;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { HTMLAttributes, ReactNode, Ref } from 'react';
|
|
1
|
+
import { ComponentPropsWithRef, HTMLAttributes, ReactNode, Ref } from 'react';
|
|
2
2
|
import { AttentionHandle, PressEffectProps } from '../../helpers/motion/motion-props';
|
|
3
|
+
import { StyleProps } from '../../helpers/types/common-props';
|
|
3
4
|
import { TrackProps } from '../logging/logging-type';
|
|
4
5
|
import { channel, side, tier } from './member-card-props';
|
|
5
6
|
export type MemberCardTier = (typeof tier)[number];
|
|
@@ -56,3 +57,22 @@ export interface MemberCardProps extends Omit<HTMLAttributes<HTMLElement>, 'chil
|
|
|
56
57
|
/** effectRef.current.shine() 으로 보이는 면에 빛을 한 번 지나가게 한다 */
|
|
57
58
|
effectRef?: Ref<AttentionHandle>;
|
|
58
59
|
}
|
|
60
|
+
export interface TierLadderProps extends StyleProps, TrackProps, PressEffectProps {
|
|
61
|
+
/** 지금 보는(고른) 등급. 칸 이름이 굵고 진해진다. value·defaultValue 가 없으면 current, 그것도 없으면 starter */
|
|
62
|
+
value?: MemberCardTier;
|
|
63
|
+
defaultValue?: MemberCardTier;
|
|
64
|
+
onValueChange?: (tier: MemberCardTier) => void;
|
|
65
|
+
/** 내 등급. starter 부터 이 등급까지 칸이 그 등급 색으로 찬다. 없으면 모든 칸이 빈 회색 */
|
|
66
|
+
current?: MemberCardTier;
|
|
67
|
+
/** 'aria-label' 로 붙는다 (예: '티어') */
|
|
68
|
+
label: string;
|
|
69
|
+
/** 칸 아래 등급 이름. 준 등급만 바뀌고 나머지는 영어 이름(Starter·Nano·Micro·Mid·Macro·Mega) */
|
|
70
|
+
tierLabels?: Partial<Record<MemberCardTier, ReactNode>>;
|
|
71
|
+
}
|
|
72
|
+
export interface TierLadderRootProps extends Omit<ComponentPropsWithRef<'div'>, 'defaultValue' | 'dir' | 'onChange'> {
|
|
73
|
+
value: string;
|
|
74
|
+
onValueChange: (id: string) => void;
|
|
75
|
+
}
|
|
76
|
+
export interface TierLadderStepProps extends Omit<ComponentPropsWithRef<'button'>, 'value'> {
|
|
77
|
+
value: string;
|
|
78
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { TierLadderProps } from './member-card-type';
|
|
2
|
+
declare const TierLadder: import("react").ForwardRefExoticComponent<TierLadderProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
3
|
+
export default TierLadder;
|
|
4
|
+
export type { MemberCardTier, TierLadderProps } from './member-card-type';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react-webpack5';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
parameters: {
|
|
5
|
+
docs: {
|
|
6
|
+
description: {
|
|
7
|
+
component: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
component: import("react").ForwardRefExoticComponent<import("./member-card-type").TierLadderProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
12
|
+
args: {
|
|
13
|
+
label: string;
|
|
14
|
+
current: "micro";
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export default meta;
|
|
18
|
+
type Story = StoryObj<typeof meta>;
|
|
19
|
+
/** 내 등급은 micro. starter·nano·micro 칸이 차 있다. 다른 칸을 누르면 그 칸 이름이 굵어진다. */
|
|
20
|
+
export declare const Default: Story;
|
|
21
|
+
/** 고른 등급을 위 카드에 넘겨 미리 본다. */
|
|
22
|
+
export declare const WithMemberCard: Story;
|
|
23
|
+
/** current 가 없으면(등급 없음) 모든 칸이 비어 있다. mega 면 모두 찬다. */
|
|
24
|
+
export declare const Fill: Story;
|
|
25
|
+
/** 등급 이름은 영어가 기본이다. 번역은 쓰는 쪽이 tierLabels 로 넘긴다. */
|
|
26
|
+
export declare const TierLabels: Story;
|
|
27
|
+
/** 다크 테마. 빈 칸과 글자 색이 의미 토큰을 따라 바뀐다. */
|
|
28
|
+
export declare const Dark: Story;
|
|
29
|
+
export declare const Mobile: Story;
|
|
@@ -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,8 +297,6 @@ 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
|
-
time?: import("react").ReactNode;
|
|
299
|
-
key?: import("react").Key | null | undefined;
|
|
300
300
|
media?: import("react").ReactNode;
|
|
301
301
|
name?: import("react").ReactNode;
|
|
302
302
|
motion?: (typeof motion)[number] | 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,7 +301,6 @@ 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
304
|
motion?: (typeof motion)[number] | undefined;
|
|
305
305
|
variant?: (typeof variant)[number] | undefined;
|
|
306
306
|
action?: import("./notice-type").NoticeAction | 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,5 @@
|
|
|
1
|
+
/** 로고 하나를 담은 원이라 span 하나다 */
|
|
2
|
+
declare const BasePlatformBadge: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
3
|
+
ref?: ((instance: HTMLSpanElement | 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<HTMLSpanElement> | null | undefined;
|
|
4
|
+
}, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
5
|
+
export default BasePlatformBadge;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/** 원 지름. s 32px · m 36px. px 은 styles/token/size.css 의 --platform-badge-size-* */
|
|
2
|
+
export declare const sizes: readonly ["s", "m"];
|
|
3
|
+
/** 플랫폼. 바탕과 로고를 함께 고른다 */
|
|
4
|
+
export declare const platform: readonly ["tiktok", "instagram", "youtube"];
|
|
5
|
+
export declare const platformBadgeProps: {
|
|
6
|
+
size: import("../../helpers/types/propsDef").ClassNamePropsType<readonly ["s", "m"]>;
|
|
7
|
+
platform: {
|
|
8
|
+
type: "className";
|
|
9
|
+
className: string;
|
|
10
|
+
values: readonly ["tiktok", "instagram", "youtube"];
|
|
11
|
+
};
|
|
12
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ComponentPropsWithRef } from 'react';
|
|
2
|
+
import { platform, sizes } from './platform-badge-props';
|
|
3
|
+
export type PlatformBadgePlatform = (typeof platform)[number];
|
|
4
|
+
export type BasePlatformBadgeProps = ComponentPropsWithRef<'span'>;
|
|
5
|
+
export interface PlatformBadgeProps extends Omit<ComponentPropsWithRef<'span'>, 'children'> {
|
|
6
|
+
/** 플랫폼. 브랜드 바탕(TikTok 검정 · Instagram 그라디언트 · YouTube 빨강)과 흰 로고를 고른다 */
|
|
7
|
+
platform: PlatformBadgePlatform;
|
|
8
|
+
/** 원 지름. 기본 m(36px), s 는 32px */
|
|
9
|
+
size?: (typeof sizes)[number];
|
|
10
|
+
/** 낭독기가 읽는 이름. 기본은 플랫폼 이름('TikTok' · 'Instagram' · 'YouTube') */
|
|
11
|
+
label?: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { PlatformBadgeProps } from './platform-badge-type';
|
|
2
|
+
/** 플랫폼 브랜드 바탕 원 위 흰 로고. 어느 플랫폼인지 한눈에 구별한다 */
|
|
3
|
+
declare const PlatformBadge: import("react").ForwardRefExoticComponent<Omit<PlatformBadgeProps, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
4
|
+
export default PlatformBadge;
|
|
5
|
+
export type { PlatformBadgePlatform, PlatformBadgeProps } from './platform-badge-type';
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react-webpack5';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: import("react").ForwardRefExoticComponent<Omit<import("./platform-badge-type").PlatformBadgeProps, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
5
|
+
parameters: {
|
|
6
|
+
docs: {
|
|
7
|
+
description: {
|
|
8
|
+
component: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
argTypes: {
|
|
13
|
+
platform: {
|
|
14
|
+
control: "inline-radio";
|
|
15
|
+
options: readonly ["tiktok", "instagram", "youtube"];
|
|
16
|
+
};
|
|
17
|
+
size: {
|
|
18
|
+
control: "inline-radio";
|
|
19
|
+
options: readonly ["s", "m"];
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
args: {
|
|
23
|
+
platform: "instagram";
|
|
24
|
+
size: "m";
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
export default meta;
|
|
28
|
+
type Story = StoryObj<typeof meta>;
|
|
29
|
+
export declare const Default: Story;
|
|
30
|
+
/** 세 플랫폼. 바탕은 테마를 타지 않는다. */
|
|
31
|
+
export declare const Platforms: Story;
|
|
32
|
+
/** s 32px · m 36px. */
|
|
33
|
+
export declare const Sizes: Story;
|