@nurihaus/web-design-system 3.26.0 → 3.27.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/agreement.js +6 -198
- package/dist/ai/components.md +696 -77
- package/dist/ai/migration.md +25 -0
- package/dist/ai/motion.md +10 -4
- package/dist/ai/patterns.md +1631 -663
- package/dist/ai/tokens.md +14 -8
- package/dist/check-box.js +24 -14
- package/dist/chip-group.js +23 -7
- package/dist/chunk-244.js +31 -0
- package/dist/chunk-2735.js +123 -0
- package/dist/chunk-4359.js +96 -0
- package/dist/{chunk-6096.js → chunk-4709.js} +17 -33
- package/dist/chunk-4955.js +115 -0
- package/dist/chunk-7024.js +3 -1
- package/dist/chunk-7187.js +35 -0
- package/dist/chunk-7829.js +10 -2
- package/dist/chunk-8144.js +106 -0
- package/dist/chunk-9350.js +23 -0
- package/dist/components/check-box/check-box-type.d.ts +2 -0
- package/dist/components/check-box/check-box.stories.d.ts +2 -0
- package/dist/components/chip-group/chip-group-props.d.ts +6 -3
- package/dist/components/chip-group/chip-group-type.d.ts +4 -1
- package/dist/components/chip-group/chip-group.stories.d.ts +6 -2
- package/dist/components/description-list/description-list-props.d.ts +15 -1
- package/dist/components/description-list/description-list-type.d.ts +11 -1
- package/dist/components/description-list/description-list.d.ts +1 -1
- package/dist/components/description-list/description-list.stories.d.ts +7 -0
- package/dist/components/drop-down/drop-down-type.d.ts +14 -2
- package/dist/components/drop-down/drop-down.stories.d.ts +3 -1
- package/dist/components/empty-state/empty-state-props.d.ts +3 -0
- package/dist/components/empty-state/empty-state-type.d.ts +8 -2
- package/dist/components/empty-state/empty-state.d.ts +3 -0
- package/dist/components/empty-state/empty-state.stories.d.ts +296 -4
- package/dist/components/form-field/base-form-field.d.ts +13 -0
- package/dist/components/form-field/form-field-context.d.ts +7 -0
- package/dist/components/form-field/form-field-props.d.ts +21 -0
- package/dist/components/form-field/form-field-type.d.ts +51 -0
- package/dist/components/form-field/form-field.d.ts +9 -0
- package/dist/components/form-field/form-field.stories.d.ts +335 -0
- package/dist/components/form-section/base-form-section.d.ts +4 -0
- package/dist/components/form-section/form-section-props.d.ts +2 -0
- package/dist/components/form-section/form-section-type.d.ts +16 -0
- package/dist/components/form-section/form-section.d.ts +5 -0
- package/dist/components/form-section/form-section.stories.d.ts +308 -0
- package/dist/components/icon/icon.stories.d.ts +1 -1
- package/dist/components/list/list-footer.stories.d.ts +1 -1
- package/dist/components/list/list-row.stories.d.ts +1 -1
- package/dist/components/member-card/member-card-type.d.ts +2 -0
- package/dist/components/member-card/member-card.stories.d.ts +1 -1
- package/dist/components/message/message.stories.d.ts +3 -3
- package/dist/components/modal/modal-props.d.ts +10 -3
- package/dist/components/modal/modal-type.d.ts +22 -4
- package/dist/components/modal/modal-with-double-button.stories.d.ts +16 -1
- package/dist/components/modal/modal.stories.d.ts +5 -1
- package/dist/components/notice/notice-type.d.ts +3 -0
- package/dist/components/notice/notice.stories.d.ts +279 -0
- package/dist/components/overlay/overlay-type.d.ts +1 -1
- package/dist/components/pagination/pagination-type.d.ts +10 -0
- package/dist/components/pagination/pagination.stories.d.ts +7 -1
- package/dist/components/radio/base-radio.d.ts +2 -2
- package/dist/components/radio/radio-props.d.ts +8 -2
- package/dist/components/radio/radio-type.d.ts +14 -3
- package/dist/components/radio/radio.stories.d.ts +11 -1
- package/dist/components/search-field/search-field-type.d.ts +19 -3
- package/dist/components/search-field/search-field.d.ts +1 -1
- package/dist/components/search-field/search-field.stories.d.ts +2 -0
- package/dist/components/segmented-control/segmented-control-props.d.ts +8 -0
- package/dist/components/segmented-control/segmented-control-type.d.ts +3 -1
- package/dist/components/segmented-control/segmented-control.stories.d.ts +8 -0
- package/dist/components/skeleton/skeleton.stories.d.ts +3 -3
- package/dist/components/stat/base-stat.d.ts +13 -4
- package/dist/components/stat/stat-group.d.ts +8 -0
- package/dist/components/stat/stat-group.stories.d.ts +27 -0
- package/dist/components/stat/stat-props.d.ts +5 -3
- package/dist/components/stat/stat-type.d.ts +40 -2
- package/dist/components/stat/stat.d.ts +1 -1
- package/dist/components/stat/stat.stories.d.ts +3 -1
- package/dist/components/table/base-table.d.ts +5 -1
- package/dist/components/table/data-table.d.ts +6 -1
- package/dist/components/table/table-props.d.ts +10 -0
- package/dist/components/table/table-type.d.ts +42 -6
- package/dist/components/table/table.stories.d.ts +101 -2
- package/dist/components/text-area/base-text-area.d.ts +2 -2
- package/dist/components/text-area/text-area-props.d.ts +8 -0
- package/dist/components/text-area/text-area-type.d.ts +12 -1
- package/dist/components/text-area/text-area.stories.d.ts +11 -1
- package/dist/components/text-button/text-button-type.d.ts +5 -0
- package/dist/components/text-button/text-button.stories.d.ts +2 -0
- package/dist/components/text-field/base-text-field.d.ts +2 -2
- package/dist/components/text-field/text-field-props.d.ts +8 -0
- package/dist/components/text-field/text-field-type.d.ts +13 -1
- package/dist/components/text-field/text-field.stories.d.ts +10 -2
- package/dist/components/toast/toast-props.d.ts +10 -2
- package/dist/components/toast/toast-type.d.ts +3 -1
- package/dist/components/toast/toast.stories.d.ts +18 -3
- package/dist/components.css +1598 -142
- package/dist/data-table.js +301 -50
- package/dist/description-list.js +221 -6
- package/dist/docs/patterns/desktop/admin-apply.stories.d.ts +16 -0
- package/dist/docs/patterns/desktop/admin-bulk.stories.d.ts +7 -4
- package/dist/docs/patterns/desktop/admin-dashboard.stories.d.ts +4 -2
- package/dist/docs/patterns/desktop/admin-detail.stories.d.ts +5 -0
- package/dist/docs/patterns/desktop/admin-feature-intro.stories.d.ts +18 -0
- package/dist/docs/patterns/desktop/admin-form.stories.d.ts +4 -2
- package/dist/docs/patterns/desktop/admin-list.stories.d.ts +5 -0
- package/dist/docs/patterns/desktop/admin-picker.stories.d.ts +18 -0
- package/dist/docs/patterns/desktop/admin-queue.stories.d.ts +23 -0
- package/dist/docs/patterns/desktop/admin-report.stories.d.ts +3 -2
- package/dist/docs/patterns/desktop/admin-review.stories.d.ts +6 -2
- package/dist/docs/patterns/desktop/admin-settings.stories.d.ts +6 -2
- package/dist/docs/patterns/desktop/admin-split.stories.d.ts +18 -0
- package/dist/docs/patterns/desktop/admin-states.stories.d.ts +5 -3
- package/dist/docs/patterns/desktop/admin-upload.stories.d.ts +18 -0
- package/dist/docs/patterns/desktop/admin-wallet.stories.d.ts +18 -0
- package/dist/docs/patterns/desktop/admin-wizard.stories.d.ts +6 -3
- package/dist/docs/patterns/mobile/form.stories.d.ts +1 -0
- package/dist/drop-down.js +64 -155
- package/dist/empty-state.js +26 -14
- package/dist/form-field.js +511 -0
- package/dist/form-section.js +298 -0
- package/dist/full-secure-keypad.js +4 -4
- package/dist/helpers/motion/use-attention-handle.d.ts +1 -1
- package/dist/helpers/motion/use-effect-trigger.d.ts +1 -1
- package/dist/icon-button.js +2 -1
- package/dist/icon-text-badge.js +4 -4
- package/dist/index.d.ts +6 -1
- package/dist/index.js +2213 -636
- package/dist/loading.js +6 -6
- package/dist/member-card.js +18 -13
- package/dist/modal-with-double-button.js +95 -44
- package/dist/modal.js +24 -6
- package/dist/notice.js +5 -4
- package/dist/option-badge.js +4 -4
- package/dist/overlay.js +134 -61
- package/dist/pagination.js +291 -57
- package/dist/radio.js +165 -37
- package/dist/search-field.js +188 -77
- package/dist/section-header.js +14 -7
- package/dist/segmented-control.js +9 -1
- package/dist/split-text-field.js +16 -14
- package/dist/stat-group.js +441 -0
- package/dist/stat.js +90 -75
- package/dist/styles.css +1357 -164
- package/dist/text-area.js +90 -53
- package/dist/text-button.js +14 -7
- package/dist/text-field.js +94 -62
- package/dist/toast.js +27 -15
- package/dist/tokens/generated/semantic-admin.d.ts +1 -0
- package/dist/tokens/generated/semantic-app.d.ts +2 -4
- package/dist/tokens.css +24 -9
- package/dist/tokens.js +3 -4
- package/package.json +13 -1
|
@@ -14,6 +14,10 @@ declare const meta: {
|
|
|
14
14
|
control: "inline-radio";
|
|
15
15
|
options: readonly ["xs", "s", "m", "l", "xl"];
|
|
16
16
|
};
|
|
17
|
+
variant: {
|
|
18
|
+
control: "inline-radio";
|
|
19
|
+
options: readonly ["outline", "fill"];
|
|
20
|
+
};
|
|
17
21
|
};
|
|
18
22
|
args: {
|
|
19
23
|
name: string;
|
|
@@ -25,6 +29,10 @@ export default meta;
|
|
|
25
29
|
type Story = StoryObj<typeof meta>;
|
|
26
30
|
/** 라벨, 자리 글자, 안내 문구를 단 기본 입력 상자다. */
|
|
27
31
|
export declare const Default: Story;
|
|
32
|
+
/** outline(기본)은 흰 바탕에 회색 선이다. 마우스를 올리면 연보라, 포커스하면 보라 2px 선이 된다. fill 은 선 없는 연회색 면이고 검색 상자와 회색 바탕 위에 쓴다. */
|
|
33
|
+
export declare const Variants: Story;
|
|
34
|
+
/** required 면 라벨 오른쪽 위에 빨간 점이 붙고 input 에 required 가 간다. 점은 낭독하지 않는다. */
|
|
35
|
+
export declare const Required: Story;
|
|
28
36
|
/** xs·s·m·l·xl 다섯 크기다. 높이와 좌우 여백·글자가 버튼과 같은 단계로 바뀐다. 아이콘도 크기에 맞춘다. */
|
|
29
37
|
export declare const Sizes: Story;
|
|
30
38
|
/** 좌우 아이콘은 무엇을 넣는 칸인지 알려 준다. 오른쪽에는 단위 같은 글자도 넣을 수 있다. */
|
|
@@ -33,7 +41,7 @@ export declare const WithIcons: Story;
|
|
|
33
41
|
export declare const InputTypes: Story;
|
|
34
42
|
/** helperText 는 회색 안내 문구다. isError 면 테두리와 문구가 빨개지고 input 에 aria-invalid 가 붙는다. */
|
|
35
43
|
export declare const HelperAndError: Story;
|
|
36
|
-
/**
|
|
44
|
+
/** showCount 와 maxLength 를 주면 상자 안 오른쪽에 글자 수가 보인다. 숫자는 낭독하지 않고 제한은 maxLength 가 맡는다. */
|
|
37
45
|
export declare const CharacterCount: Story;
|
|
38
46
|
/** format 은 값(raw)과 화면 글을 오간다. 숫자만 값으로 들고 화면에는 010-1234-5678 처럼 보인다. 아래 글은 실제 값이다. */
|
|
39
47
|
export declare const Format: Story;
|
|
@@ -45,7 +53,7 @@ export declare const PasswordToggle: Story;
|
|
|
45
53
|
export declare const PrefixSuffix: Story;
|
|
46
54
|
/** 폭은 width 로 정한다. 숫자는 px, 문자열은 그대로 쓴다. */
|
|
47
55
|
export declare const Widths: Story;
|
|
48
|
-
/** disabled 는 회색
|
|
56
|
+
/** disabled 는 회색 면에 흐린 글자로 입력할 수 없다. readOnly 는 회색 면이고 포커스해도 선이 굵어지지 않는다. */
|
|
49
57
|
export declare const DisabledAndReadOnly: Story;
|
|
50
58
|
/** 실제 화면처럼 카드 안에서 쓴 모습이다. 라벨, 입력, 안내 문구가 같은 간격으로 쌓인다. */
|
|
51
59
|
export declare const InForm: Story;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export declare const variants: readonly ["default", "secondary", "success", "warning", "error"];
|
|
2
|
-
export declare const positions: readonly ["top-right", "bottom-right", "bottom-center"];
|
|
2
|
+
export declare const positions: readonly ["top-right", "top-center", "bottom-right", "bottom-center"];
|
|
3
|
+
/** 토스트 판. filled 는 variant 색으로 칠한 판, card 는 흰 카드 위에 variant 색 아이콘만 둔다 */
|
|
4
|
+
export declare const surfaces: readonly ["filled", "card"];
|
|
3
5
|
export declare const toastProps: {
|
|
4
6
|
variant: {
|
|
5
7
|
type: "className";
|
|
@@ -7,12 +9,18 @@ export declare const toastProps: {
|
|
|
7
9
|
values: readonly ["default", "secondary", "success", "warning", "error"];
|
|
8
10
|
default: "default";
|
|
9
11
|
};
|
|
12
|
+
surface: {
|
|
13
|
+
type: "className";
|
|
14
|
+
className: string;
|
|
15
|
+
values: readonly ["filled", "card"];
|
|
16
|
+
default: "filled";
|
|
17
|
+
};
|
|
10
18
|
};
|
|
11
19
|
export declare const toastViewportProps: {
|
|
12
20
|
position: {
|
|
13
21
|
type: "className";
|
|
14
22
|
className: string;
|
|
15
|
-
values: readonly ["top-right", "bottom-right", "bottom-center"];
|
|
23
|
+
values: readonly ["top-right", "top-center", "bottom-right", "bottom-center"];
|
|
16
24
|
default: "bottom-right";
|
|
17
25
|
};
|
|
18
26
|
};
|
|
@@ -2,7 +2,7 @@ import { ComponentPropsWithRef, ReactNode } from 'react';
|
|
|
2
2
|
import { PresenceCallbackProps } from '../../helpers/motion/motion-props';
|
|
3
3
|
import { AsChildProps, StyleProps } from '../../helpers/types/common-props';
|
|
4
4
|
import { TrackProps } from '../logging/logging-type';
|
|
5
|
-
import { positions, variants } from './toast-props';
|
|
5
|
+
import { positions, surfaces, variants } from './toast-props';
|
|
6
6
|
export interface ToastProviderProps {
|
|
7
7
|
children: ReactNode;
|
|
8
8
|
/** 토스트가 떠 있는 시간(ms). Toast 의 duration 이 앞선다. 기본값은 Radix 의 5000 */
|
|
@@ -44,6 +44,8 @@ export interface ToastProps extends Omit<ToastRootProps, 'children' | keyof Styl
|
|
|
44
44
|
title: ReactNode;
|
|
45
45
|
description?: ReactNode;
|
|
46
46
|
variant?: (typeof variants)[number];
|
|
47
|
+
/** 판 모양. `filled`(기본) 는 variant 색 판, `card` 는 흰 카드에 variant 색 아이콘(success 체크 · warning·error 느낌표)과 검정 글자 */
|
|
48
|
+
surface?: (typeof surfaces)[number];
|
|
47
49
|
action?: ToastAction;
|
|
48
50
|
showClose?: boolean;
|
|
49
51
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { StoryObj } from '@storybook/react-webpack5';
|
|
2
|
-
import { variants } from './toast-props';
|
|
2
|
+
import { surfaces, variants } from './toast-props';
|
|
3
3
|
declare const meta: {
|
|
4
4
|
title: string;
|
|
5
5
|
parameters: {
|
|
@@ -17,6 +17,12 @@ declare const meta: {
|
|
|
17
17
|
};
|
|
18
18
|
options: readonly ["default", "secondary", "success", "warning", "error"];
|
|
19
19
|
};
|
|
20
|
+
surface: {
|
|
21
|
+
control: {
|
|
22
|
+
type: "select";
|
|
23
|
+
};
|
|
24
|
+
options: readonly ["filled", "card"];
|
|
25
|
+
};
|
|
20
26
|
};
|
|
21
27
|
args: {
|
|
22
28
|
onEntered: import("@vitest/spy").Mock<(...args: any[]) => any>;
|
|
@@ -31,6 +37,7 @@ declare const meta: {
|
|
|
31
37
|
title: import("react").ReactNode;
|
|
32
38
|
track?: string | undefined;
|
|
33
39
|
key?: import("react").Key | null | undefined;
|
|
40
|
+
value?: string | number | readonly string[] | undefined;
|
|
34
41
|
defaultChecked?: boolean | undefined | undefined;
|
|
35
42
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
36
43
|
suppressContentEditableWarning?: boolean | undefined | undefined;
|
|
@@ -293,7 +300,6 @@ declare const meta: {
|
|
|
293
300
|
onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLLIElement> | undefined;
|
|
294
301
|
onTransitionEnd?: import("react").TransitionEventHandler<HTMLLIElement> | undefined;
|
|
295
302
|
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLLIElement> | undefined;
|
|
296
|
-
value?: string | number | readonly string[] | undefined;
|
|
297
303
|
variant?: (typeof variants)[number] | undefined;
|
|
298
304
|
trackProps?: Record<string, string | number | boolean> | undefined;
|
|
299
305
|
open?: boolean | undefined;
|
|
@@ -301,10 +307,11 @@ declare const meta: {
|
|
|
301
307
|
onOpenChange?: ((open: boolean) => void) | undefined;
|
|
302
308
|
onEntered?: (() => void) | undefined;
|
|
303
309
|
onExited?: (() => void) | undefined;
|
|
310
|
+
description?: import("react").ReactNode;
|
|
304
311
|
action?: import("./toast-type").ToastAction | undefined;
|
|
305
312
|
onResume?: (() => void) | undefined;
|
|
306
313
|
duration?: number | undefined;
|
|
307
|
-
|
|
314
|
+
surface?: (typeof surfaces)[number] | undefined;
|
|
308
315
|
showClose?: boolean | undefined;
|
|
309
316
|
ref?: import("react").LegacyRef<HTMLLIElement> | undefined;
|
|
310
317
|
}>) => import("react/jsx-runtime").JSX.Element)[];
|
|
@@ -328,3 +335,11 @@ export declare const Positions: Story;
|
|
|
328
335
|
/** 아래에서 밀려 들어오고 흐려지며 나간다. 2초 뒤 스스로 닫히거나 옆으로 밀어 닫으면 onExited 가 찍힌다. */
|
|
329
336
|
export declare const MotionEnterExit: Story;
|
|
330
337
|
export declare const Mobile: Story;
|
|
338
|
+
/**
|
|
339
|
+
* 토스 토스트. 위 가운데 흰 카드에 색 아이콘(성공 초록 체크 · 실패 빨강 느낌표) + 해요체 한 줄, X 없음.
|
|
340
|
+
* `ToastProvider position="top-center"` + `surface="card"` + `showClose={false}`.
|
|
341
|
+
*/
|
|
342
|
+
export declare const Card: Story;
|
|
343
|
+
/** card 판의 모든 variant. default·secondary 는 아이콘이 없고 글만 있다. */
|
|
344
|
+
export declare const CardVariants: Story;
|
|
345
|
+
export declare const CardMobile: Story;
|