@nurihaus/web-design-system 3.9.1 → 3.9.3

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.
Files changed (214) hide show
  1. package/README.md +1 -1
  2. package/dist/.storybook/preview.d.ts +49 -0
  3. package/dist/ai/components.md +721 -111
  4. package/dist/ai/motion.md +156 -134
  5. package/dist/ai/tokens.md +295 -137
  6. package/dist/asset.js +328 -0
  7. package/dist/avatar.js +208 -33
  8. package/dist/bottom-nav.js +86 -6
  9. package/dist/breadcrumb.js +6 -3
  10. package/dist/card.js +5 -2
  11. package/dist/check-box.js +81 -45
  12. package/dist/chip-group.js +50 -12
  13. package/dist/chunk-1563.js +42 -18
  14. package/dist/chunk-1983.js +100 -0
  15. package/dist/chunk-3297.js +130 -0
  16. package/dist/chunk-3640.js +94 -0
  17. package/dist/chunk-3839.js +54 -0
  18. package/dist/chunk-4558.js +13 -2
  19. package/dist/chunk-4577.js +35 -0
  20. package/dist/chunk-5302.js +111 -0
  21. package/dist/{chunk-1657.js → chunk-5589.js} +41 -5
  22. package/dist/chunk-5670.js +122 -0
  23. package/dist/chunk-6302.js +10 -10
  24. package/dist/chunk-6706.js +64 -0
  25. package/dist/chunk-7302.js +66 -0
  26. package/dist/chunk-7460.js +204 -0
  27. package/dist/{chunk-6149.js → chunk-8377.js} +36 -2
  28. package/dist/chunk-8734.js +33 -0
  29. package/dist/chunk-8787.js +260 -0
  30. package/dist/chunk-8933.js +14 -2
  31. package/dist/chunk-910.js +82 -27
  32. package/dist/chunk-948.js +166 -0
  33. package/dist/collapsible-menu.js +109 -55
  34. package/dist/components/asset/asset-props.d.ts +43 -0
  35. package/dist/components/asset/asset-type.d.ts +38 -0
  36. package/dist/components/asset/asset.d.ts +21 -0
  37. package/dist/components/asset/asset.stories.d.ts +65 -0
  38. package/dist/components/asset/base-asset.d.ts +7 -0
  39. package/dist/components/avatar/avatar-props.d.ts +1 -0
  40. package/dist/components/avatar/avatar-type.d.ts +6 -4
  41. package/dist/components/avatar/avatar.stories.d.ts +10 -0
  42. package/dist/components/badge/badge-type.d.ts +10 -4
  43. package/dist/components/badge/badge.stories.d.ts +15 -0
  44. package/dist/components/bottom-bar/bottom-bar.stories.d.ts +14 -7
  45. package/dist/components/bottom-nav/bottom-nav-type.d.ts +2 -1
  46. package/dist/components/bottom-nav/bottom-nav.stories.d.ts +16 -1
  47. package/dist/components/breadcrumb/breadcrumb-type.d.ts +2 -1
  48. package/dist/components/breadcrumb/breadcrumb.stories.d.ts +15 -0
  49. package/dist/components/button/button-appearance.d.ts +50 -0
  50. package/dist/components/button/button-props.d.ts +12 -3
  51. package/dist/components/button/button-type.d.ts +14 -4
  52. package/dist/components/button/button.stories.d.ts +34 -3
  53. package/dist/components/button/cta-button.d.ts +1 -1
  54. package/dist/components/callout/callout.stories.d.ts +11 -0
  55. package/dist/components/card/card-type.d.ts +2 -1
  56. package/dist/components/card/card.stories.d.ts +9 -0
  57. package/dist/components/check-box/check-box-props.d.ts +8 -0
  58. package/dist/components/check-box/check-box-type.d.ts +7 -3
  59. package/dist/components/check-box/check-box.stories.d.ts +32 -1
  60. package/dist/components/chip-group/chip-group-props.d.ts +13 -1
  61. package/dist/components/chip-group/chip-group-type.d.ts +5 -1
  62. package/dist/components/chip-group/chip-group.stories.d.ts +30 -0
  63. package/dist/components/collapsible-menu/collapsible-menu-type.d.ts +28 -2
  64. package/dist/components/collapsible-menu/collapsible-menu.d.ts +1 -1
  65. package/dist/components/collapsible-menu/collapsible-menu.stories.d.ts +14 -0
  66. package/dist/components/description-list/description-list.stories.d.ts +7 -0
  67. package/dist/components/drawer/base-drawer.d.ts +2 -4
  68. package/dist/components/drawer/drawer-type.d.ts +17 -2
  69. package/dist/components/drawer/drawer.stories.d.ts +21 -0
  70. package/dist/components/drop-down/drop-down-type.d.ts +4 -2
  71. package/dist/components/drop-down/drop-down.stories.d.ts +16 -0
  72. package/dist/components/elements/text/text-props.d.ts +3 -3
  73. package/dist/components/elements/text/text-type.d.ts +3 -2
  74. package/dist/components/elements/text/text.stories.d.ts +13 -1
  75. package/dist/components/empty-state/empty-state.stories.d.ts +37 -12
  76. package/dist/components/icon/icon.stories.d.ts +11 -1
  77. package/dist/components/icon-button/icon-button-type.d.ts +2 -1
  78. package/dist/components/icon-button/icon-button.stories.d.ts +9 -0
  79. package/dist/components/list/list-group.stories.d.ts +7 -0
  80. package/dist/components/list/list-row.stories.d.ts +20 -10
  81. package/dist/components/list/list-type.d.ts +2 -1
  82. package/dist/components/loading/index.d.ts +4 -0
  83. package/dist/components/loading/inline-loading/base-inline-loading.d.ts +3 -2
  84. package/dist/components/loading/inline-loading/inline-loading-props.d.ts +3 -0
  85. package/dist/components/loading/inline-loading/inline-loading-type.d.ts +6 -6
  86. package/dist/components/loading/inline-loading/inline-loading.stories.d.ts +28 -2
  87. package/dist/components/loading/loading-dots/base-loading-dots.d.ts +4 -0
  88. package/dist/components/loading/loading-dots/loading-dots-props.d.ts +4 -0
  89. package/dist/components/loading/loading-dots/loading-dots-type.d.ts +6 -0
  90. package/dist/components/loading/loading-dots/loading-dots.d.ts +4 -0
  91. package/dist/components/loading/loading-dots/loading-dots.stories.d.ts +37 -0
  92. package/dist/components/loading/loading-props.d.ts +9 -0
  93. package/dist/components/loading/loading-type.d.ts +9 -0
  94. package/dist/components/loading/loading.stories.d.ts +15 -0
  95. package/dist/components/loading/overlay-loading/overlay-loading-type.d.ts +4 -0
  96. package/dist/components/loading/overlay-loading/overlay-loading.stories.d.ts +17 -0
  97. package/dist/components/loading/progress-bar/base-progress-bar.d.ts +3 -0
  98. package/dist/components/loading/progress-bar/progress-bar-props.d.ts +4 -0
  99. package/dist/components/loading/progress-bar/progress-bar-type.d.ts +19 -0
  100. package/dist/components/loading/progress-bar/progress-bar.d.ts +4 -0
  101. package/dist/components/loading/progress-bar/progress-bar.stories.d.ts +63 -0
  102. package/dist/components/loading/spinner/spinner-props.d.ts +4 -1
  103. package/dist/components/loading/spinner/spinner-type.d.ts +3 -1
  104. package/dist/components/loading/spinner/spinner.d.ts +2 -1
  105. package/dist/components/loading/spinner/spinner.stories.d.ts +30 -4
  106. package/dist/components/logging/logging.stories.d.ts +5 -0
  107. package/dist/components/media/media-thumbnail.stories.d.ts +9 -0
  108. package/dist/components/media/media-type.d.ts +2 -1
  109. package/dist/components/media/media-viewer.stories.d.ts +7 -0
  110. package/dist/components/message/message.stories.d.ts +19 -12
  111. package/dist/components/message-composer/message-composer-type.d.ts +2 -1
  112. package/dist/components/message-composer/message-composer.stories.d.ts +10 -0
  113. package/dist/components/modal/modal-type.d.ts +22 -3
  114. package/dist/components/modal/modal-with-double-button.stories.d.ts +15 -0
  115. package/dist/components/modal/modal.stories.d.ts +16 -0
  116. package/dist/components/motion/motion.stories.d.ts +7 -0
  117. package/dist/components/notice/notice-type.d.ts +1 -1
  118. package/dist/components/notice/notice.stories.d.ts +16 -9
  119. package/dist/components/overlay/overlay-context.d.ts +34 -0
  120. package/dist/components/overlay/overlay-provider.d.ts +6 -0
  121. package/dist/components/overlay/overlay-type.d.ts +45 -0
  122. package/dist/components/overlay/overlay.d.ts +4 -0
  123. package/dist/components/overlay/overlay.stories.d.ts +34 -0
  124. package/dist/components/overlay/use-dialog.d.ts +3 -0
  125. package/dist/components/overlay/use-toast.d.ts +3 -0
  126. package/dist/components/pagination/pagination-type.d.ts +2 -1
  127. package/dist/components/pagination/pagination.stories.d.ts +15 -0
  128. package/dist/components/radio/base-radio.d.ts +5 -2
  129. package/dist/components/radio/radio-type.d.ts +11 -3
  130. package/dist/components/radio/radio.stories.d.ts +20 -2
  131. package/dist/components/skeleton/base-skeleton.d.ts +7 -3
  132. package/dist/components/skeleton/skeleton-group-props.d.ts +4 -0
  133. package/dist/components/skeleton/skeleton-group-type.d.ts +47 -0
  134. package/dist/components/skeleton/skeleton-group.d.ts +4 -0
  135. package/dist/components/skeleton/skeleton-group.stories.d.ts +57 -0
  136. package/dist/components/skeleton/skeleton-type.d.ts +1 -0
  137. package/dist/components/skeleton/skeleton.stories.d.ts +20 -9
  138. package/dist/components/step-progress/step-progress-props.d.ts +10 -0
  139. package/dist/components/step-progress/step-progress-type.d.ts +22 -3
  140. package/dist/components/step-progress/step-progress.d.ts +1 -1
  141. package/dist/components/step-progress/step-progress.stories.d.ts +40 -0
  142. package/dist/components/switch/base-switch.d.ts +2 -4
  143. package/dist/components/switch/switch-type.d.ts +5 -2
  144. package/dist/components/switch/switch.stories.d.ts +22 -0
  145. package/dist/components/table/table-props.d.ts +9 -0
  146. package/dist/components/table/table-type.d.ts +7 -1
  147. package/dist/components/table/table.stories.d.ts +46 -0
  148. package/dist/components/tabs/tabs-type.d.ts +4 -1
  149. package/dist/components/tabs/tabs.stories.d.ts +17 -0
  150. package/dist/components/tag/tag-type.d.ts +2 -1
  151. package/dist/components/tag/tag.stories.d.ts +9 -0
  152. package/dist/components/text-area/base-text-area.d.ts +2 -1
  153. package/dist/components/text-area/text-area-type.d.ts +11 -3
  154. package/dist/components/text-area/text-area.stories.d.ts +15 -0
  155. package/dist/components/text-field/base-text-field.d.ts +12 -6
  156. package/dist/components/text-field/text-field-type.d.ts +37 -6
  157. package/dist/components/text-field/text-field.stories.d.ts +32 -5
  158. package/dist/components/toast/toast-type.d.ts +4 -1
  159. package/dist/components/toast/toast.stories.d.ts +28 -13
  160. package/dist/components/tooltip/tooltip-type.d.ts +4 -1
  161. package/dist/components/tooltip/tooltip.stories.d.ts +11 -0
  162. package/dist/components.css +2005 -672
  163. package/dist/cta-button.js +94 -33
  164. package/dist/data-table.js +38 -5
  165. package/dist/drawer.js +79 -13
  166. package/dist/drop-down.js +18 -10
  167. package/dist/helpers/hooks/useCloseOnBackEvent.d.ts +12 -0
  168. package/dist/helpers/hooks/useFieldClear.d.ts +21 -0
  169. package/dist/helpers/hooks/useReturnFocus.d.ts +9 -0
  170. package/dist/helpers/motion/appear.d.ts +3 -0
  171. package/dist/helpers/motion/effects.d.ts +9 -0
  172. package/dist/helpers/motion/motion-props.d.ts +35 -0
  173. package/dist/helpers/motion/stagger.d.ts +3 -0
  174. package/dist/helpers/motion/use-appear.d.ts +12 -0
  175. package/dist/helpers/motion/use-attention-handle.d.ts +7 -0
  176. package/dist/helpers/motion/use-confirm-spring.d.ts +7 -0
  177. package/dist/helpers/motion/use-effect-trigger.d.ts +11 -0
  178. package/dist/helpers/motion/use-hide-on-scroll.d.ts +12 -0
  179. package/dist/helpers/motion/use-presence-callbacks.d.ts +13 -0
  180. package/dist/icon-button.js +4 -2
  181. package/dist/icon-text-badge.js +27 -17
  182. package/dist/icon-text-option-badge.js +19 -13
  183. package/dist/index.d.ts +11 -4
  184. package/dist/index.js +4074 -989
  185. package/dist/list-row.js +5 -2
  186. package/dist/loading.js +200 -39
  187. package/dist/media-thumbnail.js +9 -5
  188. package/dist/message-composer.js +15 -11
  189. package/dist/modal-with-double-button.js +71 -53
  190. package/dist/modal.js +95 -29
  191. package/dist/notice.js +14 -8
  192. package/dist/option-badge.js +27 -17
  193. package/dist/overlay.js +1213 -0
  194. package/dist/pagination.js +11 -7
  195. package/dist/radio.js +117 -21
  196. package/dist/reset.css +4 -0
  197. package/dist/skeleton-group.js +445 -0
  198. package/dist/skeleton.js +24 -112
  199. package/dist/step-progress.js +125 -16
  200. package/dist/styles.css +2309 -756
  201. package/dist/switch.js +89 -17
  202. package/dist/tabs.js +77 -23
  203. package/dist/tag.js +4 -2
  204. package/dist/text-area.js +81 -31
  205. package/dist/text-field.js +160 -33
  206. package/dist/toast.js +98 -241
  207. package/dist/tokens/generated/motion.d.ts +21 -4
  208. package/dist/tokens/generated/semantic-admin.d.ts +103 -46
  209. package/dist/tokens/generated/semantic-app.d.ts +164 -16
  210. package/dist/tokens.css +578 -103
  211. package/dist/tokens.js +293 -71
  212. package/dist/tooltip.js +50 -22
  213. package/package.json +14 -1
  214. package/dist/chunk-5226.js +0 -79
@@ -1,13 +1,11 @@
1
1
  import { PropsWithChildren } from 'react';
2
- import { DrawerCloseProps, DrawerDescriptionProps, DrawerRootProps, DrawerTitleProps, DrawerTriggerProps } from './drawer-type';
2
+ import { DrawerCloseProps, DrawerContentProps, DrawerDescriptionProps, DrawerRootProps, DrawerTitleProps, DrawerTriggerProps } from './drawer-type';
3
3
  declare const DrawerRoot: {
4
4
  (props: PropsWithChildren<DrawerRootProps>): import("react/jsx-runtime").JSX.Element;
5
5
  displayName: string;
6
6
  } & {
7
7
  Trigger: import("react").ForwardRefExoticComponent<Omit<DrawerTriggerProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
8
- Content: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
9
- ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
10
- }, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
8
+ Content: import("react").ForwardRefExoticComponent<Omit<DrawerContentProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
11
9
  Title: import("react").ForwardRefExoticComponent<Omit<DrawerTitleProps, "ref"> & import("react").RefAttributes<HTMLHeadingElement>>;
12
10
  Description: import("react").ForwardRefExoticComponent<Omit<DrawerDescriptionProps, "ref"> & import("react").RefAttributes<HTMLParagraphElement>>;
13
11
  Close: import("react").ForwardRefExoticComponent<Omit<DrawerCloseProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
@@ -1,4 +1,5 @@
1
1
  import { ComponentPropsWithRef, ReactElement, ReactNode } from 'react';
2
+ import { EnterMotionProps, PresenceCallbackProps } from '../../helpers/motion/motion-props';
2
3
  import { AsChildProps, StyleProps } from '../../helpers/types/common-props';
3
4
  import { TrackProps } from '../logging/logging-type';
4
5
  import { sides, sizes } from './drawer-props';
@@ -9,14 +10,20 @@ export interface DrawerRootProps {
9
10
  }
10
11
  export interface DrawerTriggerProps extends ComponentPropsWithRef<'button'>, AsChildProps {
11
12
  }
12
- export type DrawerContentProps = ComponentPropsWithRef<'div'>;
13
+ export interface DrawerContentProps extends ComponentPropsWithRef<'div'> {
14
+ /** 패널을 그릴 요소. Radix `Dialog.Portal` 의 container. 없으면 document.body */
15
+ portalContainer?: HTMLElement;
16
+ /** 바깥 누름·Esc 로 닫히기 직전. `preventDefault()` 하면 열린 채로 남는다 */
17
+ onPointerDownOutside?: (event: Event) => void;
18
+ onEscapeKeyDown?: (event: KeyboardEvent) => void;
19
+ }
13
20
  export interface DrawerTitleProps extends ComponentPropsWithRef<'h2'>, AsChildProps {
14
21
  }
15
22
  export interface DrawerDescriptionProps extends ComponentPropsWithRef<'p'>, AsChildProps {
16
23
  }
17
24
  export interface DrawerCloseProps extends ComponentPropsWithRef<'button'>, AsChildProps {
18
25
  }
19
- export interface DrawerProps extends DrawerRootProps, StyleProps, TrackProps {
26
+ export interface DrawerProps extends DrawerRootProps, StyleProps, TrackProps, EnterMotionProps, PresenceCallbackProps {
20
27
  /** asChild 로 감싸 클릭하면 열리는 요소. 없으면 open·defaultOpen 으로만 연다 */
21
28
  trigger?: ReactElement;
22
29
  title: ReactNode;
@@ -26,4 +33,12 @@ export interface DrawerProps extends DrawerRootProps, StyleProps, TrackProps {
26
33
  side?: (typeof sides)[number];
27
34
  size?: (typeof sizes)[number];
28
35
  showCloseIcon?: boolean;
36
+ /** false 면 바깥을 눌러도 닫히지 않고 패널이 좌우로 흔들린다. 기본 true */
37
+ closeOnOverlayClick?: boolean;
38
+ /** false 면 Esc 로 닫히지 않는다. 기본 true */
39
+ closeOnEscape?: boolean;
40
+ /** 패널을 그릴 요소. 없으면 document.body */
41
+ portalContainer?: HTMLElement;
42
+ /** 열린 동안 history 항목을 하나 쌓아 브라우저·기기의 뒤로 가기가 페이지 대신 패널을 닫는다. 기본 true */
43
+ closeOnBackEvent?: boolean;
29
44
  }
@@ -1,6 +1,13 @@
1
1
  import type { StoryObj } from '@storybook/react-webpack5';
2
2
  declare const meta: {
3
3
  title: string;
4
+ parameters: {
5
+ docs: {
6
+ description: {
7
+ component: string;
8
+ };
9
+ };
10
+ };
4
11
  component: import("react").ForwardRefExoticComponent<import("./drawer-type").DrawerProps & import("react").RefAttributes<HTMLDivElement>>;
5
12
  argTypes: {
6
13
  side: {
@@ -24,11 +31,25 @@ declare const meta: {
24
31
  };
25
32
  export default meta;
26
33
  type Story = StoryObj<typeof meta>;
34
+ /** 열기 버튼을 누르면 상세 정보 서랍이 열린다. */
27
35
  export declare const Default: Story;
36
+ /** 방향별 열기 버튼이다. 버튼마다 서랍이 어느 쪽에서 나오는지 본다. */
28
37
  export declare const Sides: Story;
38
+ /** 크기별 열기 버튼이다. 서랍 폭 차이를 본다. */
29
39
  export declare const Sizes: Story;
40
+ /** 화면 아래에서 올라오는 서랍이다. */
30
41
  export declare const Bottom: Story;
42
+ /** 설명 문구와 취소·저장 버튼 줄을 단 서랍이다. 제목 아래 설명과 아래쪽 버튼 줄 배치를 본다. */
31
43
  export declare const WithDescriptionAndFooter: Story;
44
+ /** 닫기 아이콘이 없는 서랍이다. 바깥을 누르거나 Esc 로 닫히는지 본다. */
32
45
  export declare const WithoutCloseIcon: Story;
46
+ /** 본문이 40줄인 서랍이다. 본문만 스크롤되고 제목과 아래 버튼이 제자리에 있는지 본다. */
33
47
  export declare const LongContent: Story;
48
+ /** 바깥 버튼으로 열고 닫는 서랍이다. 서랍 안에서 닫아도 버튼 문구가 열기로 돌아오는지 본다. */
34
49
  export declare const Controlled: Story;
50
+ /** 같은 방향의 weak·strong 을 나란히 열어 본다. strong 은 스프링이라 끝에서 한 번 튄다. 퇴장은 둘이 같다. */
51
+ export declare const MotionStrength: Story;
52
+ /** 바깥을 눌러도 닫히지 않고 패널이 좌우로 흔들린다. Esc 도 막았다. 닫기는 X 나 버튼으로만 한다. */
53
+ export declare const MotionCloseOnOverlayClick: Story;
54
+ /** 열고 닫으면 애니메이션이 끝난 뒤 onEntered·onExited 가 불린다. */
55
+ export declare const MotionEnterExit: Story;
@@ -1,4 +1,5 @@
1
- import { ReactNode } from 'react';
1
+ import { CSSProperties, ReactNode } from 'react';
2
+ import { PressEffectProps } from '../../helpers/motion/motion-props';
2
3
  import { AsChildProps, StyleProps } from '../../helpers/types/common-props';
3
4
  import { TrackProps } from '../logging/logging-type';
4
5
  import { sizes } from './drop-down-props';
@@ -24,11 +25,12 @@ export interface DropDownContentProps extends AsChildProps, StyleProps {
24
25
  }
25
26
  export interface DropDownItemProps extends AsChildProps {
26
27
  className?: string;
28
+ style?: CSSProperties;
27
29
  value: string;
28
30
  disabled?: boolean;
29
31
  onClick?: () => void;
30
32
  }
31
- export interface DropDownProps extends StyleProps, TrackProps {
33
+ export interface DropDownProps extends StyleProps, TrackProps, PressEffectProps {
32
34
  size?: (typeof sizes)[number];
33
35
  defaultValue?: string;
34
36
  value?: string;
@@ -1,6 +1,13 @@
1
1
  import type { StoryObj } from '@storybook/react-webpack5';
2
2
  declare const meta: {
3
3
  title: string;
4
+ parameters: {
5
+ docs: {
6
+ description: {
7
+ component: string;
8
+ };
9
+ };
10
+ };
4
11
  component: import("react").ForwardRefExoticComponent<import("./drop-down-type").DropDownProps & import("react").RefAttributes<HTMLSpanElement>>;
5
12
  argTypes: {
6
13
  size: {
@@ -17,12 +24,21 @@ declare const meta: {
17
24
  };
18
25
  export default meta;
19
26
  type Story = StoryObj<typeof meta>;
27
+ /** 옵션이 많은 드롭다운이다. 펼쳤을 때 목록이 스크롤되는지 본다. */
20
28
  export declare const Default: Story;
21
29
  /** renderOption 을 쓰면 항목 선택과 닫기(close)를 직접 처리한다. */
22
30
  export declare const CustomOptionRender: Story;
31
+ /** 왼쪽과 오른쪽에 아이콘을 단 드롭다운이다. */
23
32
  export declare const WithIcons: Story;
33
+ /** 크기별 드롭다운이다. 높이와 글자 크기 차이를 본다. */
24
34
  export declare const Sizes: Story;
35
+ /** 두 번째 옵션이 골라진 채 시작하는 드롭다운이다. 고른 값이 버튼에 보이는지 본다. */
25
36
  export declare const Selected: Story;
37
+ /** disabled 드롭다운이다. 눌러도 펼쳐지지 않는다. */
26
38
  export declare const Disabled: Story;
27
39
  /** 세 번째 항목은 disabled 라 고를 수 없다. */
28
40
  export declare const Open: Story;
41
+ /** 열면 목록이 트리거 쪽에서 펼쳐지고 선택지가 위에서부터 30ms 간격으로 차례로 나타난다(unfold) */
42
+ export declare const MotionUnfold: Story;
43
+ /** pressEffect 를 켠 드롭다운과 끈 드롭다운이다. 선택지를 누르고 있으면 켠 쪽만 배경이 한 단계 진해진다. 크기는 줄지 않는다. 트리거는 어느 쪽도 눌림이 없다. */
44
+ export declare const MotionPress: Story;
@@ -1,7 +1,7 @@
1
- import { colors } from '../../../styles/token/colors';
2
1
  export declare const fontSize: readonly ["xsm", "sm", "base", "lg", "xl", "2xl", "3xl", "4xl", "5xl", "6xl"];
3
2
  export declare const weight: readonly ["regular", "medium", "semibold", "bold", "extrabold"];
4
- export declare const color: (keyof typeof colors)[];
3
+ export declare const semanticColor: readonly ["text-primary", "text-body", "text-secondary", "text-tertiary", "text-muted", "text-placeholder", "text-disabled", "text-inverse", "text-on-brand", "text-on-brand-subtle", "text-on-overlay", "text-on-disabled", "text-brand", "text-brand-active", "text-brand-emphasis", "text-brand-secondary", "text-danger", "text-error", "text-success", "text-warning"];
4
+ export declare const color: readonly ["text-primary", "text-body", "text-secondary", "text-tertiary", "text-muted", "text-placeholder", "text-disabled", "text-inverse", "text-on-brand", "text-on-brand-subtle", "text-on-overlay", "text-on-disabled", "text-brand", "text-brand-active", "text-brand-emphasis", "text-brand-secondary", "text-danger", "text-error", "text-success", "text-warning", ...("black" | "white" | "transparent" | "purple-50" | "purple-100" | "purple-200" | "purple-300" | "purple-400" | "purple-500" | "purple-600" | "purple-700" | "purple-800" | "purple-900" | "grey-scale-50" | "grey-scale-100" | "grey-scale-200" | "grey-scale-300" | "grey-scale-400" | "grey-scale-500" | "grey-scale-600" | "grey-scale-700" | "grey-scale-800" | "grey-scale-900" | "accent-red-50" | "accent-red-100" | "accent-red-200" | "accent-red-300" | "accent-red-400" | "accent-red-500" | "accent-red-600" | "accent-red-700" | "accent-red-800" | "accent-red-900" | "accent-pink-50" | "accent-pink-100" | "accent-pink-200" | "accent-pink-300" | "accent-pink-400" | "accent-pink-500" | "accent-pink-600" | "accent-pink-700" | "accent-pink-800" | "accent-pink-900" | "accent-magenta-50" | "accent-magenta-100" | "accent-magenta-200" | "accent-magenta-300" | "accent-magenta-400" | "accent-magenta-500" | "accent-magenta-600" | "accent-magenta-700" | "accent-magenta-800" | "accent-magenta-900" | "accent-blue-50" | "accent-blue-100" | "accent-blue-200" | "accent-blue-300" | "accent-blue-400" | "accent-blue-500" | "accent-blue-600" | "accent-blue-700" | "accent-blue-800" | "accent-blue-900" | "accent-mint-50" | "accent-mint-100" | "accent-mint-200" | "accent-mint-300" | "accent-mint-400" | "accent-mint-500" | "accent-mint-600" | "accent-mint-700" | "accent-mint-800" | "accent-mint-900" | "accent-green-50" | "accent-green-100" | "accent-green-200" | "accent-green-300" | "accent-green-400" | "accent-green-500" | "accent-green-600" | "accent-green-700" | "accent-green-800" | "accent-green-900" | "accent-yellow-50" | "accent-yellow-100" | "accent-yellow-200" | "accent-yellow-300" | "accent-yellow-400" | "accent-yellow-500" | "accent-yellow-600" | "accent-yellow-700" | "accent-yellow-800" | "accent-yellow-900" | "accent-orange-50" | "accent-orange-100" | "accent-orange-200" | "accent-orange-300" | "accent-orange-400" | "accent-orange-500" | "accent-orange-600" | "accent-orange-700" | "accent-orange-800" | "accent-orange-900")[]];
5
5
  export declare const textAlign: readonly ["left", "center"];
6
6
  export declare const textDecoration: readonly ["underline", "none", "line-through", "overline", "blink"];
7
7
  export declare const wordBreak: readonly ["normal", "break-all", "break-word", "keep-all"];
@@ -11,6 +11,6 @@ export declare const textProps: {
11
11
  color: {
12
12
  type: "className";
13
13
  className: string;
14
- values: ("black" | "white" | "transparent" | "purple-50" | "purple-100" | "purple-200" | "purple-300" | "purple-400" | "purple-500" | "purple-600" | "purple-700" | "purple-800" | "purple-900" | "grey-scale-50" | "grey-scale-100" | "grey-scale-200" | "grey-scale-300" | "grey-scale-400" | "grey-scale-500" | "grey-scale-600" | "grey-scale-700" | "grey-scale-800" | "grey-scale-900" | "accent-red-50" | "accent-red-100" | "accent-red-200" | "accent-red-300" | "accent-red-400" | "accent-red-500" | "accent-red-600" | "accent-red-700" | "accent-red-800" | "accent-red-900" | "accent-pink-50" | "accent-pink-100" | "accent-pink-200" | "accent-pink-300" | "accent-pink-400" | "accent-pink-500" | "accent-pink-600" | "accent-pink-700" | "accent-pink-800" | "accent-pink-900" | "accent-magenta-50" | "accent-magenta-100" | "accent-magenta-200" | "accent-magenta-300" | "accent-magenta-400" | "accent-magenta-500" | "accent-magenta-600" | "accent-magenta-700" | "accent-magenta-800" | "accent-magenta-900" | "accent-blue-50" | "accent-blue-100" | "accent-blue-200" | "accent-blue-300" | "accent-blue-400" | "accent-blue-500" | "accent-blue-600" | "accent-blue-700" | "accent-blue-800" | "accent-blue-900" | "accent-mint-50" | "accent-mint-100" | "accent-mint-200" | "accent-mint-300" | "accent-mint-400" | "accent-mint-500" | "accent-mint-600" | "accent-mint-700" | "accent-mint-800" | "accent-mint-900" | "accent-green-50" | "accent-green-100" | "accent-green-200" | "accent-green-300" | "accent-green-400" | "accent-green-500" | "accent-green-600" | "accent-green-700" | "accent-green-800" | "accent-green-900" | "accent-yellow-50" | "accent-yellow-100" | "accent-yellow-200" | "accent-yellow-300" | "accent-yellow-400" | "accent-yellow-500" | "accent-yellow-600" | "accent-yellow-700" | "accent-yellow-800" | "accent-yellow-900" | "accent-orange-50" | "accent-orange-100" | "accent-orange-200" | "accent-orange-300" | "accent-orange-400" | "accent-orange-500" | "accent-orange-600" | "accent-orange-700" | "accent-orange-800" | "accent-orange-900")[];
14
+ values: readonly ["text-primary", "text-body", "text-secondary", "text-tertiary", "text-muted", "text-placeholder", "text-disabled", "text-inverse", "text-on-brand", "text-on-brand-subtle", "text-on-overlay", "text-on-disabled", "text-brand", "text-brand-active", "text-brand-emphasis", "text-brand-secondary", "text-danger", "text-error", "text-success", "text-warning", ...("black" | "white" | "transparent" | "purple-50" | "purple-100" | "purple-200" | "purple-300" | "purple-400" | "purple-500" | "purple-600" | "purple-700" | "purple-800" | "purple-900" | "grey-scale-50" | "grey-scale-100" | "grey-scale-200" | "grey-scale-300" | "grey-scale-400" | "grey-scale-500" | "grey-scale-600" | "grey-scale-700" | "grey-scale-800" | "grey-scale-900" | "accent-red-50" | "accent-red-100" | "accent-red-200" | "accent-red-300" | "accent-red-400" | "accent-red-500" | "accent-red-600" | "accent-red-700" | "accent-red-800" | "accent-red-900" | "accent-pink-50" | "accent-pink-100" | "accent-pink-200" | "accent-pink-300" | "accent-pink-400" | "accent-pink-500" | "accent-pink-600" | "accent-pink-700" | "accent-pink-800" | "accent-pink-900" | "accent-magenta-50" | "accent-magenta-100" | "accent-magenta-200" | "accent-magenta-300" | "accent-magenta-400" | "accent-magenta-500" | "accent-magenta-600" | "accent-magenta-700" | "accent-magenta-800" | "accent-magenta-900" | "accent-blue-50" | "accent-blue-100" | "accent-blue-200" | "accent-blue-300" | "accent-blue-400" | "accent-blue-500" | "accent-blue-600" | "accent-blue-700" | "accent-blue-800" | "accent-blue-900" | "accent-mint-50" | "accent-mint-100" | "accent-mint-200" | "accent-mint-300" | "accent-mint-400" | "accent-mint-500" | "accent-mint-600" | "accent-mint-700" | "accent-mint-800" | "accent-mint-900" | "accent-green-50" | "accent-green-100" | "accent-green-200" | "accent-green-300" | "accent-green-400" | "accent-green-500" | "accent-green-600" | "accent-green-700" | "accent-green-800" | "accent-green-900" | "accent-yellow-50" | "accent-yellow-100" | "accent-yellow-200" | "accent-yellow-300" | "accent-yellow-400" | "accent-yellow-500" | "accent-yellow-600" | "accent-yellow-700" | "accent-yellow-800" | "accent-yellow-900" | "accent-orange-50" | "accent-orange-100" | "accent-orange-200" | "accent-orange-300" | "accent-orange-400" | "accent-orange-500" | "accent-orange-600" | "accent-orange-700" | "accent-orange-800" | "accent-orange-900")[]];
15
15
  };
16
16
  };
@@ -1,11 +1,12 @@
1
1
  import { CSSProperties, HTMLAttributes, ReactNode } from 'react';
2
2
  import { colors } from '../../../styles/token/colors';
3
- import { fontSize, weight } from './text-props';
3
+ import { fontSize, semanticColor, weight } from './text-props';
4
4
  export interface TextProps extends HTMLAttributes<HTMLElement> {
5
5
  text: ReactNode;
6
6
  size: (typeof fontSize)[number];
7
7
  weight: (typeof weight)[number];
8
- color?: keyof typeof colors;
8
+ /** 의미 이름(`text-primary` 등)은 다크를 따라간다. 원시 이름(`grey-scale-900` 등)은 라이트 값에 묶인다 */
9
+ color?: (typeof semanticColor)[number] | keyof typeof colors;
9
10
  textDecoration?: CSSProperties['textDecoration'];
10
11
  textAlign?: CSSProperties['textAlign'];
11
12
  wordBreak?: CSSProperties['wordBreak'];
@@ -1,6 +1,13 @@
1
1
  import type { StoryObj } from '@storybook/react-webpack5';
2
2
  declare const meta: {
3
3
  title: string;
4
+ parameters: {
5
+ docs: {
6
+ description: {
7
+ component: string;
8
+ };
9
+ };
10
+ };
4
11
  component: import("react").ForwardRefExoticComponent<import("./text-type").TextProps & import("react").RefAttributes<HTMLElement>>;
5
12
  argTypes: {
6
13
  size: {
@@ -31,7 +38,7 @@ declare const meta: {
31
38
  control: {
32
39
  type: "select";
33
40
  };
34
- options: ("black" | "white" | "transparent" | "purple-50" | "purple-100" | "purple-200" | "purple-300" | "purple-400" | "purple-500" | "purple-600" | "purple-700" | "purple-800" | "purple-900" | "grey-scale-50" | "grey-scale-100" | "grey-scale-200" | "grey-scale-300" | "grey-scale-400" | "grey-scale-500" | "grey-scale-600" | "grey-scale-700" | "grey-scale-800" | "grey-scale-900" | "accent-red-50" | "accent-red-100" | "accent-red-200" | "accent-red-300" | "accent-red-400" | "accent-red-500" | "accent-red-600" | "accent-red-700" | "accent-red-800" | "accent-red-900" | "accent-pink-50" | "accent-pink-100" | "accent-pink-200" | "accent-pink-300" | "accent-pink-400" | "accent-pink-500" | "accent-pink-600" | "accent-pink-700" | "accent-pink-800" | "accent-pink-900" | "accent-magenta-50" | "accent-magenta-100" | "accent-magenta-200" | "accent-magenta-300" | "accent-magenta-400" | "accent-magenta-500" | "accent-magenta-600" | "accent-magenta-700" | "accent-magenta-800" | "accent-magenta-900" | "accent-blue-50" | "accent-blue-100" | "accent-blue-200" | "accent-blue-300" | "accent-blue-400" | "accent-blue-500" | "accent-blue-600" | "accent-blue-700" | "accent-blue-800" | "accent-blue-900" | "accent-mint-50" | "accent-mint-100" | "accent-mint-200" | "accent-mint-300" | "accent-mint-400" | "accent-mint-500" | "accent-mint-600" | "accent-mint-700" | "accent-mint-800" | "accent-mint-900" | "accent-green-50" | "accent-green-100" | "accent-green-200" | "accent-green-300" | "accent-green-400" | "accent-green-500" | "accent-green-600" | "accent-green-700" | "accent-green-800" | "accent-green-900" | "accent-yellow-50" | "accent-yellow-100" | "accent-yellow-200" | "accent-yellow-300" | "accent-yellow-400" | "accent-yellow-500" | "accent-yellow-600" | "accent-yellow-700" | "accent-yellow-800" | "accent-yellow-900" | "accent-orange-50" | "accent-orange-100" | "accent-orange-200" | "accent-orange-300" | "accent-orange-400" | "accent-orange-500" | "accent-orange-600" | "accent-orange-700" | "accent-orange-800" | "accent-orange-900")[];
41
+ options: readonly ["text-primary", "text-body", "text-secondary", "text-tertiary", "text-muted", "text-placeholder", "text-disabled", "text-inverse", "text-on-brand", "text-on-brand-subtle", "text-on-overlay", "text-on-disabled", "text-brand", "text-brand-active", "text-brand-emphasis", "text-brand-secondary", "text-danger", "text-error", "text-success", "text-warning", ...("black" | "white" | "transparent" | "purple-50" | "purple-100" | "purple-200" | "purple-300" | "purple-400" | "purple-500" | "purple-600" | "purple-700" | "purple-800" | "purple-900" | "grey-scale-50" | "grey-scale-100" | "grey-scale-200" | "grey-scale-300" | "grey-scale-400" | "grey-scale-500" | "grey-scale-600" | "grey-scale-700" | "grey-scale-800" | "grey-scale-900" | "accent-red-50" | "accent-red-100" | "accent-red-200" | "accent-red-300" | "accent-red-400" | "accent-red-500" | "accent-red-600" | "accent-red-700" | "accent-red-800" | "accent-red-900" | "accent-pink-50" | "accent-pink-100" | "accent-pink-200" | "accent-pink-300" | "accent-pink-400" | "accent-pink-500" | "accent-pink-600" | "accent-pink-700" | "accent-pink-800" | "accent-pink-900" | "accent-magenta-50" | "accent-magenta-100" | "accent-magenta-200" | "accent-magenta-300" | "accent-magenta-400" | "accent-magenta-500" | "accent-magenta-600" | "accent-magenta-700" | "accent-magenta-800" | "accent-magenta-900" | "accent-blue-50" | "accent-blue-100" | "accent-blue-200" | "accent-blue-300" | "accent-blue-400" | "accent-blue-500" | "accent-blue-600" | "accent-blue-700" | "accent-blue-800" | "accent-blue-900" | "accent-mint-50" | "accent-mint-100" | "accent-mint-200" | "accent-mint-300" | "accent-mint-400" | "accent-mint-500" | "accent-mint-600" | "accent-mint-700" | "accent-mint-800" | "accent-mint-900" | "accent-green-50" | "accent-green-100" | "accent-green-200" | "accent-green-300" | "accent-green-400" | "accent-green-500" | "accent-green-600" | "accent-green-700" | "accent-green-800" | "accent-green-900" | "accent-yellow-50" | "accent-yellow-100" | "accent-yellow-200" | "accent-yellow-300" | "accent-yellow-400" | "accent-yellow-500" | "accent-yellow-600" | "accent-yellow-700" | "accent-yellow-800" | "accent-yellow-900" | "accent-orange-50" | "accent-orange-100" | "accent-orange-200" | "accent-orange-300" | "accent-orange-400" | "accent-orange-500" | "accent-orange-600" | "accent-orange-700" | "accent-orange-800" | "accent-orange-900")[]];
35
42
  };
36
43
  };
37
44
  args: {
@@ -42,8 +49,13 @@ declare const meta: {
42
49
  };
43
50
  export default meta;
44
51
  type Story = StoryObj<typeof meta>;
52
+ /** xl 크기 굵은 글씨의 기본 텍스트다. 컨트롤에서 props 를 바꿔 본다. */
45
53
  export declare const Default: Story;
54
+ /** 글자 크기 값별 텍스트다. */
46
55
  export declare const Sizes: Story;
56
+ /** 굵기 값별 텍스트다. */
47
57
  export declare const Weights: Story;
58
+ /** 색 토큰 다섯 개로 그린 텍스트다. */
48
59
  export declare const Colors: Story;
60
+ /** 정렬과 밑줄·취소선·윗줄 조합이다. 320px 틀 안에서 정렬 위치와 선 위치를 본다. */
49
61
  export declare const AlignAndDecoration: Story;
@@ -1,8 +1,16 @@
1
1
  import type { StoryObj } from '@storybook/react-webpack5';
2
2
  import { variant } from './empty-state-props';
3
+ import type { EmptyStateProps } from './empty-state-type';
3
4
  declare const meta: {
4
5
  title: string;
5
- component: import("react").ForwardRefExoticComponent<Omit<import("./empty-state-type").EmptyStateProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
6
+ parameters: {
7
+ docs: {
8
+ description: {
9
+ component: string;
10
+ };
11
+ };
12
+ };
13
+ component: import("react").ForwardRefExoticComponent<Omit<EmptyStateProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
6
14
  argTypes: {
7
15
  variant: {
8
16
  control: {
@@ -17,15 +25,10 @@ declare const meta: {
17
25
  description: string;
18
26
  };
19
27
  decorators: ((Story: import("storybook/internal/csf").PartialStoryFn<import("@storybook/react-webpack5").ReactRenderer, {
20
- title: import("react").ReactNode;
21
- description?: import("react").ReactNode;
22
- className?: string | undefined | undefined;
28
+ slot?: string | undefined | undefined;
23
29
  style?: import("react").CSSProperties | undefined;
30
+ title: import("react").ReactNode;
24
31
  key?: import("react").Key | null | undefined;
25
- color?: string | undefined | undefined;
26
- content?: string | undefined | undefined;
27
- translate?: "yes" | "no" | undefined | undefined;
28
- slot?: string | undefined | undefined;
29
32
  defaultChecked?: boolean | undefined | undefined;
30
33
  defaultValue?: string | number | readonly string[] | undefined;
31
34
  suppressContentEditableWarning?: boolean | undefined | undefined;
@@ -33,6 +36,7 @@ declare const meta: {
33
36
  accessKey?: string | undefined | undefined;
34
37
  autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
35
38
  autoFocus?: boolean | undefined | undefined;
39
+ className?: string | undefined | undefined;
36
40
  contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
37
41
  contextMenu?: string | undefined | undefined;
38
42
  dir?: string | undefined | undefined;
@@ -44,9 +48,11 @@ declare const meta: {
44
48
  nonce?: string | undefined | undefined;
45
49
  spellCheck?: (boolean | "true" | "false") | undefined;
46
50
  tabIndex?: number | undefined | undefined;
51
+ translate?: "yes" | "no" | undefined | undefined;
47
52
  radioGroup?: string | undefined | undefined;
48
53
  role?: import("react").AriaRole | undefined;
49
54
  about?: string | undefined | undefined;
55
+ content?: string | undefined | undefined;
50
56
  datatype?: string | undefined | undefined;
51
57
  inlist?: any;
52
58
  prefix?: string | undefined | undefined;
@@ -58,6 +64,7 @@ declare const meta: {
58
64
  vocab?: string | undefined | undefined;
59
65
  autoCorrect?: string | undefined | undefined;
60
66
  autoSave?: string | undefined | undefined;
67
+ color?: string | undefined | undefined;
61
68
  itemProp?: string | undefined | undefined;
62
69
  itemScope?: boolean | undefined | undefined;
63
70
  itemType?: string | undefined | undefined;
@@ -284,9 +291,10 @@ declare const meta: {
284
291
  onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
285
292
  onTransitionEnd?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
286
293
  onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
287
- action?: import("react").ReactNode;
288
- icon: import("../..").IconName;
289
294
  variant?: (typeof variant)[number] | undefined;
295
+ icon: import("../..").IconName;
296
+ action?: import("react").ReactNode;
297
+ description?: import("react").ReactNode;
290
298
  ref?: import("react").LegacyRef<HTMLDivElement> | undefined;
291
299
  }>) => import("react/jsx-runtime").JSX.Element)[];
292
300
  };
@@ -295,6 +303,23 @@ type Story = StoryObj<typeof meta>;
295
303
  export declare const Default: Story;
296
304
  export declare const Variants: Story;
297
305
  export declare const TitleOnly: Story;
298
- /** 불러오지 못했을 때 다시 시도 버튼을 둔다 */
299
- export declare const WithAction: Story;
306
+ /** 아홉 상황을 한눈에. 실사용은 아래 개별 스토리의 값을 그대로 쓴다 */
307
+ export declare const Situations: Story;
308
+ /** 목록이 아직 비었다. 아이콘은 그 목록의 것(제안 · 메시지 · 캠페인)으로 바꾼다 */
309
+ export declare const EmptyList: Story;
310
+ /** 검색어로 찾은 결과가 없다. 버튼 없음 */
311
+ export declare const NoSearchResult: Story;
312
+ /** 필터 조건에 맞는 것이 없다. 초기화 버튼 */
313
+ export declare const NoFilterResult: Story;
314
+ /** 불러오지 못했다. 회색 원 · 다시 시도 */
315
+ export declare const LoadFailed: Story;
316
+ /** 네트워크가 끊겼다. 회색 원 · 다시 시도 */
317
+ export declare const Offline: Story;
318
+ /** 권한이 없다. 회색 원 · 중립 선 버튼으로 돌아가기 */
319
+ export declare const NoPermission: Story;
320
+ /** 없는 주소. 회색 원 · 홈으로 */
321
+ export declare const NotFound: Story;
322
+ /** 아직 열리지 않은 화면. 회색 원 · 설명 · 버튼 없음 */
300
323
  export declare const ComingSoon: Story;
324
+ /** 할 일을 다 끝냈다. 연보라 원 · 버튼 없음 */
325
+ export declare const AllDone: Story;
@@ -1,13 +1,20 @@
1
1
  import type { StoryObj } from '@storybook/react-webpack5';
2
2
  declare const meta: {
3
3
  title: string;
4
+ parameters: {
5
+ docs: {
6
+ description: {
7
+ component: string;
8
+ };
9
+ };
10
+ };
4
11
  component: import("react").ForwardRefExoticComponent<Omit<import("./icon-type").IconProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
5
12
  argTypes: {
6
13
  name: {
7
14
  control: {
8
15
  type: "select";
9
16
  };
10
- options: ("x" | "link" | "circle" | "image" | "copy" | "play" | "house" | "megaphone-simple" | "chats-circle" | "user-circle" | "bell" | "caret-left" | "magnifying-glass" | "dots-three" | "gear-six" | "chat-circle" | "paper-plane-tilt" | "plus" | "camera" | "video-camera" | "upload-simple" | "calendar-blank" | "clock" | "map-pin" | "truck" | "ticket" | "qr-code" | "sparkle" | "gift" | "wallet" | "bank" | "credit-card" | "check-circle" | "check" | "warning" | "info" | "question" | "lock" | "pencil-simple" | "trash" | "share-network" | "eye" | "sliders-horizontal" | "heart" | "star" | "globe" | "sign-out" | "caret-right" | "arrow-right" | "instagram-logo" | "tiktok-logo" | "youtube-logo")[];
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" | "camera" | "video-camera" | "play" | "upload-simple" | "calendar-blank" | "clock" | "map-pin" | "truck" | "ticket" | "qr-code" | "sparkle" | "gift" | "wallet" | "bank" | "credit-card" | "check-circle" | "check" | "warning" | "info" | "question" | "lock" | "pencil-simple" | "trash" | "share-network" | "eye" | "sliders-horizontal" | "heart" | "star" | "globe" | "sign-out" | "caret-right" | "arrow-right" | "instagram-logo" | "tiktok-logo" | "youtube-logo")[];
11
18
  };
12
19
  weight: {
13
20
  control: {
@@ -28,6 +35,9 @@ declare const meta: {
28
35
  };
29
36
  export default meta;
30
37
  type Story = StoryObj<typeof meta>;
38
+ /** house 아이콘이다. 컨트롤에서 이름·굵기·크기를 바꿔 본다. */
31
39
  export declare const Default: Story;
40
+ /** 크기별 아이콘이다. */
32
41
  export declare const Sizes: Story;
42
+ /** 모든 아이콘을 보통과 채움(fill) 두 굵기로 나란히 그렸다. 쓸 아이콘 이름을 찾을 때 본다. */
33
43
  export declare const All: Story;
@@ -1,11 +1,12 @@
1
1
  import { ComponentPropsWithRef, ReactNode } from 'react';
2
+ import { PressEffectProps } from '../../helpers/motion/motion-props';
2
3
  import { AsChildProps } from '../../helpers/types/common-props';
3
4
  import { IconName } from '../icon/icon-type';
4
5
  import { TrackProps } from '../logging/logging-type';
5
6
  import { sizes, variant } from './icon-button-props';
6
7
  export interface BaseIconButtonProps extends ComponentPropsWithRef<'button'>, AsChildProps {
7
8
  }
8
- export interface IconButtonProps extends Omit<ComponentPropsWithRef<'button'>, 'children'>, AsChildProps, TrackProps {
9
+ export interface IconButtonProps extends Omit<ComponentPropsWithRef<'button'>, 'children'>, AsChildProps, TrackProps, PressEffectProps {
9
10
  icon: IconName;
10
11
  /** 버튼의 이름(aria-label). 아이콘만 있어 꼭 준다 */
11
12
  label: string;
@@ -1,6 +1,13 @@
1
1
  import type { StoryObj } from '@storybook/react-webpack5';
2
2
  declare const meta: {
3
3
  title: string;
4
+ parameters: {
5
+ docs: {
6
+ description: {
7
+ component: string;
8
+ };
9
+ };
10
+ };
4
11
  component: import("react").ForwardRefExoticComponent<Omit<import("./icon-button-type").IconButtonProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
5
12
  args: {
6
13
  icon: "caret-left";
@@ -29,3 +36,5 @@ export declare const Variants: Story;
29
36
  export declare const Disabled: Story;
30
37
  /** 다른 화면으로 가는 버튼은 링크를 감싼다 */
31
38
  export declare const AsLink: Story;
39
+ /** 누르고 있으면 줄어든다. 아래는 pressEffect={false} */
40
+ export declare const MotionPress: Story;
@@ -1,6 +1,13 @@
1
1
  import type { StoryObj } from '@storybook/react-webpack5';
2
2
  declare const meta: {
3
3
  title: string;
4
+ parameters: {
5
+ docs: {
6
+ description: {
7
+ component: string;
8
+ };
9
+ };
10
+ };
4
11
  component: import("react").ForwardRefExoticComponent<Omit<import("./list-type").ListGroupProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
5
12
  args: {
6
13
  label: string;
@@ -1,24 +1,24 @@
1
1
  import type { StoryObj } from '@storybook/react-webpack5';
2
2
  declare const meta: {
3
3
  title: string;
4
+ parameters: {
5
+ docs: {
6
+ description: {
7
+ component: string;
8
+ };
9
+ };
10
+ };
4
11
  component: import("react").ForwardRefExoticComponent<Omit<import("./list-type").ListRowProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
5
12
  args: {
6
13
  label: string;
7
14
  };
8
15
  decorators: ((Story: import("storybook/internal/csf").PartialStoryFn<import("@storybook/react-webpack5").ReactRenderer, {
9
- title?: string | undefined | undefined;
10
- description?: import("react").ReactNode;
11
- children?: import("react").ReactNode;
12
- className?: string | undefined | undefined;
16
+ label: import("react").ReactNode;
17
+ slot?: string | undefined | undefined;
13
18
  style?: import("react").CSSProperties | undefined;
19
+ title?: string | undefined | undefined;
14
20
  track?: string | undefined;
15
- trackProps?: Record<string, string | number | boolean> | undefined;
16
21
  key?: import("react").Key | null | undefined;
17
- color?: string | undefined | undefined;
18
- content?: string | undefined | undefined;
19
- translate?: "yes" | "no" | undefined | undefined;
20
- label: import("react").ReactNode;
21
- slot?: string | undefined | undefined;
22
22
  defaultChecked?: boolean | undefined | undefined;
23
23
  defaultValue?: string | number | readonly string[] | undefined;
24
24
  suppressContentEditableWarning?: boolean | undefined | undefined;
@@ -26,6 +26,7 @@ declare const meta: {
26
26
  accessKey?: string | undefined | undefined;
27
27
  autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
28
28
  autoFocus?: boolean | undefined | undefined;
29
+ className?: string | undefined | undefined;
29
30
  contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
30
31
  contextMenu?: string | undefined | undefined;
31
32
  dir?: string | undefined | undefined;
@@ -37,9 +38,11 @@ declare const meta: {
37
38
  nonce?: string | undefined | undefined;
38
39
  spellCheck?: (boolean | "true" | "false") | undefined;
39
40
  tabIndex?: number | undefined | undefined;
41
+ translate?: "yes" | "no" | undefined | undefined;
40
42
  radioGroup?: string | undefined | undefined;
41
43
  role?: import("react").AriaRole | undefined;
42
44
  about?: string | undefined | undefined;
45
+ content?: string | undefined | undefined;
43
46
  datatype?: string | undefined | undefined;
44
47
  inlist?: any;
45
48
  prefix?: string | undefined | undefined;
@@ -51,6 +54,7 @@ declare const meta: {
51
54
  vocab?: string | undefined | undefined;
52
55
  autoCorrect?: string | undefined | undefined;
53
56
  autoSave?: string | undefined | undefined;
57
+ color?: string | undefined | undefined;
54
58
  itemProp?: string | undefined | undefined;
55
59
  itemScope?: boolean | undefined | undefined;
56
60
  itemType?: string | undefined | undefined;
@@ -116,6 +120,7 @@ declare const meta: {
116
120
  "aria-valuemin"?: number | undefined | undefined;
117
121
  "aria-valuenow"?: number | undefined | undefined;
118
122
  "aria-valuetext"?: string | undefined | undefined;
123
+ children?: import("react").ReactNode;
119
124
  dangerouslySetInnerHTML?: {
120
125
  __html: string | TrustedHTML;
121
126
  } | undefined | undefined;
@@ -278,6 +283,9 @@ declare const meta: {
278
283
  onTransitionEnd?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
279
284
  onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
280
285
  asChild?: boolean | undefined;
286
+ trackProps?: Record<string, string | number | boolean> | undefined;
287
+ pressEffect?: boolean | undefined;
288
+ description?: import("react").ReactNode;
281
289
  chevron?: boolean | undefined;
282
290
  leading?: import("react").ReactNode;
283
291
  trailing?: import("react").ReactNode;
@@ -302,3 +310,5 @@ export declare const Link: Story;
302
310
  export declare const WithoutChevron: Story;
303
311
  /** 보기만 하는 행에 chevron 을 주면 화살표만 보인다 */
304
312
  export declare const StaticWithChevron: Story;
313
+ /** 누르고 있으면 배경이 어두워진다. 아래 줄은 pressEffect={false} */
314
+ export declare const MotionPress: Story;
@@ -1,4 +1,5 @@
1
1
  import { ComponentPropsWithRef, MouseEventHandler, ReactNode } from 'react';
2
+ import { PressEffectProps } from '../../helpers/motion/motion-props';
2
3
  import { AsChildProps } from '../../helpers/types/common-props';
3
4
  import { TrackProps } from '../logging/logging-type';
4
5
  export type ListRootProps = ComponentPropsWithRef<'div'>;
@@ -9,7 +10,7 @@ export interface ListGroupProps extends ComponentPropsWithRef<'div'> {
9
10
  /** 면 위의 작은 제목. 주면 그룹의 접근 가능한 이름이 된다 */
10
11
  label?: ReactNode;
11
12
  }
12
- export interface ListRowProps extends Omit<ComponentPropsWithRef<'div'>, 'onClick'>, AsChildProps, TrackProps {
13
+ export interface ListRowProps extends Omit<ComponentPropsWithRef<'div'>, 'onClick'>, AsChildProps, TrackProps, PressEffectProps {
13
14
  label: ReactNode;
14
15
  description?: ReactNode;
15
16
  /** 왼쪽. Icon(size m)이나 Avatar */
@@ -1,6 +1,10 @@
1
1
  export { default as Spinner } from './spinner/spinner';
2
2
  export { default as InlineLoading } from './inline-loading/inline-loading';
3
3
  export { default as OverlayLoading } from './overlay-loading/overlay-loading';
4
+ export { default as ProgressBar } from './progress-bar/progress-bar';
5
+ export { default as LoadingDots } from './loading-dots/loading-dots';
4
6
  export type { SpinnerProps } from './spinner/spinner-type';
5
7
  export type { InlineLoadingProps } from './inline-loading/inline-loading-type';
6
8
  export type { OverlayLoadingProps } from './overlay-loading/overlay-loading-type';
9
+ export type { ProgressBarProps } from './progress-bar/progress-bar-type';
10
+ export type { LoadingDotsProps } from './loading-dots/loading-dots-type';
@@ -1,3 +1,4 @@
1
- import { BaseInlineLoadingProps } from './inline-loading-type';
2
- declare const BaseInlineLoading: import("react").ForwardRefExoticComponent<Omit<BaseInlineLoadingProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
1
+ declare const BaseInlineLoading: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
2
+ ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
3
+ }, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
3
4
  export default BaseInlineLoading;
@@ -1,3 +1,4 @@
1
+ import { PropDef } from '../../../helpers/types/propsDef';
1
2
  export declare const justifyContent: readonly ["flex-start", "center", "flex-end", "space-between"];
2
3
  export declare const inlineLoadingProps: {
3
4
  justifyContent: {
@@ -6,4 +7,6 @@ export declare const inlineLoadingProps: {
6
7
  values: readonly ["flex-start", "center", "flex-end", "space-between"];
7
8
  default: "flex-start";
8
9
  };
10
+ size: import("../../../helpers/types/propsDef").ClassNamePropsType<readonly ["s", "m", "l"]>;
11
+ variant: PropDef<readonly ["neutral", "brand", "inverse"]>;
9
12
  };
@@ -1,10 +1,10 @@
1
- import { CSSProperties, ComponentPropsWithRef } from 'react';
1
+ import { ComponentPropsWithRef, ReactNode } from 'react';
2
2
  import { StyleProps } from '../../../helpers/types/common-props';
3
+ import { LoadingAppearanceProps } from '../loading-type';
3
4
  import { justifyContent } from './inline-loading-props';
4
- export interface InlineLoadingProps extends StyleProps {
5
- size: number;
5
+ export interface InlineLoadingProps extends StyleProps, LoadingAppearanceProps {
6
+ /** 스피너 옆 글자. 기본 '불러오는 중'. 무엇을 기다리는지 쓴다. false 면 링만 남기고 화면 읽기 프로그램에만 알린다 */
7
+ label?: ReactNode | false;
6
8
  justifyContent?: (typeof justifyContent)[number];
7
9
  }
8
- export interface BaseInlineLoadingProps extends ComponentPropsWithRef<'div'> {
9
- ringStyle?: CSSProperties;
10
- }
10
+ export type BaseInlineLoadingProps = ComponentPropsWithRef<'div'>;