@nurihaus/web-design-system 3.17.1 → 3.18.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 +76 -8
- package/dist/ai/migration.md +11 -0
- package/dist/ai/motion.md +2 -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/member-card.stories.d.ts +1 -1
- 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 +152 -12
- package/dist/index.d.ts +2 -0
- package/dist/index.js +183 -10
- 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/platform-badge.js +297 -0
- package/dist/styles.css +132 -12
- 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 +5 -1
|
@@ -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 {};
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -27,7 +27,7 @@ declare const meta: {
|
|
|
27
27
|
};
|
|
28
28
|
export default meta;
|
|
29
29
|
type Story = StoryObj<typeof meta>;
|
|
30
|
-
/** 세 칸 중 하나를 고른다. 누르면
|
|
30
|
+
/** 세 칸 중 하나를 고른다. 누르면 보라 판이 그 칸으로 옮겨 간다. */
|
|
31
31
|
export declare const Default: Story;
|
|
32
32
|
/** 두 크기. m 은 화면 위, s 는 카드·시트 안. */
|
|
33
33
|
export declare const Sizes: Story;
|
|
@@ -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)[];
|
|
@@ -51,9 +51,10 @@ declare const meta: {
|
|
|
51
51
|
animated: true;
|
|
52
52
|
};
|
|
53
53
|
decorators: ((Story: import("storybook/internal/csf").PartialStoryFn<import("@storybook/react-webpack5").ReactRenderer, {
|
|
54
|
-
|
|
54
|
+
slot?: string | undefined | undefined;
|
|
55
55
|
style?: import("react").CSSProperties | undefined;
|
|
56
|
-
|
|
56
|
+
title?: string | undefined | undefined;
|
|
57
|
+
key?: import("react").Key | null | undefined;
|
|
57
58
|
defaultChecked?: boolean | undefined | undefined;
|
|
58
59
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
59
60
|
suppressContentEditableWarning?: boolean | undefined | undefined;
|
|
@@ -61,6 +62,7 @@ declare const meta: {
|
|
|
61
62
|
accessKey?: string | undefined | undefined;
|
|
62
63
|
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
|
|
63
64
|
autoFocus?: boolean | undefined | undefined;
|
|
65
|
+
className?: string | undefined | undefined;
|
|
64
66
|
contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
65
67
|
contextMenu?: string | undefined | undefined;
|
|
66
68
|
dir?: string | undefined | undefined;
|
|
@@ -70,10 +72,8 @@ declare const meta: {
|
|
|
70
72
|
id?: string | undefined | undefined;
|
|
71
73
|
lang?: string | undefined | undefined;
|
|
72
74
|
nonce?: string | undefined | undefined;
|
|
73
|
-
slot?: string | undefined | undefined;
|
|
74
75
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
75
76
|
tabIndex?: number | undefined | undefined;
|
|
76
|
-
title?: string | undefined | undefined;
|
|
77
77
|
translate?: "yes" | "no" | undefined | undefined;
|
|
78
78
|
radioGroup?: string | undefined | undefined;
|
|
79
79
|
role?: import("react").AriaRole | undefined;
|
|
@@ -156,6 +156,7 @@ declare const meta: {
|
|
|
156
156
|
"aria-valuemin"?: number | undefined | undefined;
|
|
157
157
|
"aria-valuenow"?: number | undefined | undefined;
|
|
158
158
|
"aria-valuetext"?: string | undefined | undefined;
|
|
159
|
+
children?: import("react").ReactNode;
|
|
159
160
|
dangerouslySetInnerHTML?: {
|
|
160
161
|
__html: string | TrustedHTML;
|
|
161
162
|
} | undefined | undefined;
|
|
@@ -317,7 +318,6 @@ declare const meta: {
|
|
|
317
318
|
onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLSpanElement> | undefined;
|
|
318
319
|
onTransitionEnd?: import("react").TransitionEventHandler<HTMLSpanElement> | undefined;
|
|
319
320
|
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLSpanElement> | undefined;
|
|
320
|
-
key?: import("react").Key | null | undefined;
|
|
321
321
|
shape?: (typeof shapes)[number] | undefined;
|
|
322
322
|
height?: number | string | undefined;
|
|
323
323
|
width?: number | string | undefined;
|
|
@@ -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;
|
|
@@ -30,8 +30,10 @@ declare const meta: {
|
|
|
30
30
|
subtitleBottom: string;
|
|
31
31
|
};
|
|
32
32
|
decorators: ((Story: import("storybook/internal/csf").PartialStoryFn<import("@storybook/react-webpack5").ReactRenderer, {
|
|
33
|
-
|
|
33
|
+
slot?: string | undefined | undefined;
|
|
34
34
|
style?: import("react").CSSProperties | undefined;
|
|
35
|
+
title: import("react").ReactNode;
|
|
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: import("react").ReactNode;
|
|
55
56
|
translate?: "yes" | "no" | undefined | undefined;
|
|
56
57
|
radioGroup?: string | undefined | undefined;
|
|
57
58
|
role?: import("react").AriaRole | undefined;
|
|
@@ -295,7 +296,6 @@ declare const meta: {
|
|
|
295
296
|
onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLElement> | undefined;
|
|
296
297
|
onTransitionEnd?: import("react").TransitionEventHandler<HTMLElement> | undefined;
|
|
297
298
|
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLElement> | undefined;
|
|
298
|
-
key?: import("react").Key | null | undefined;
|
|
299
299
|
right?: import("react").ReactNode;
|
|
300
300
|
titleLevel?: import("./top-type").TopTitleLevel | undefined;
|
|
301
301
|
subtitleTop?: import("react").ReactNode;
|