@nurihaus/web-design-system 3.9.2 → 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 (210) hide show
  1. package/dist/.storybook/preview.d.ts +49 -0
  2. package/dist/ai/components.md +675 -105
  3. package/dist/ai/motion.md +156 -134
  4. package/dist/ai/tokens.md +295 -137
  5. package/dist/asset.js +328 -0
  6. package/dist/avatar.js +208 -33
  7. package/dist/bottom-nav.js +86 -6
  8. package/dist/breadcrumb.js +6 -3
  9. package/dist/card.js +5 -2
  10. package/dist/check-box.js +81 -45
  11. package/dist/chip-group.js +50 -12
  12. package/dist/chunk-1563.js +42 -18
  13. package/dist/chunk-1983.js +100 -0
  14. package/dist/chunk-3297.js +130 -0
  15. package/dist/chunk-3640.js +94 -0
  16. package/dist/chunk-3839.js +54 -0
  17. package/dist/chunk-4558.js +13 -2
  18. package/dist/chunk-4577.js +35 -0
  19. package/dist/chunk-5302.js +111 -0
  20. package/dist/{chunk-1657.js → chunk-5589.js} +41 -5
  21. package/dist/chunk-5670.js +122 -0
  22. package/dist/chunk-6302.js +10 -10
  23. package/dist/chunk-6706.js +64 -0
  24. package/dist/chunk-7302.js +66 -0
  25. package/dist/chunk-7460.js +204 -0
  26. package/dist/{chunk-6149.js → chunk-8377.js} +36 -2
  27. package/dist/chunk-8734.js +33 -0
  28. package/dist/chunk-8787.js +260 -0
  29. package/dist/chunk-8933.js +14 -2
  30. package/dist/chunk-910.js +82 -27
  31. package/dist/chunk-948.js +166 -0
  32. package/dist/collapsible-menu.js +39 -14
  33. package/dist/components/asset/asset-props.d.ts +43 -0
  34. package/dist/components/asset/asset-type.d.ts +38 -0
  35. package/dist/components/asset/asset.d.ts +21 -0
  36. package/dist/components/asset/asset.stories.d.ts +65 -0
  37. package/dist/components/asset/base-asset.d.ts +7 -0
  38. package/dist/components/avatar/avatar-props.d.ts +1 -0
  39. package/dist/components/avatar/avatar-type.d.ts +6 -4
  40. package/dist/components/avatar/avatar.stories.d.ts +10 -0
  41. package/dist/components/badge/badge-type.d.ts +10 -4
  42. package/dist/components/badge/badge.stories.d.ts +15 -0
  43. package/dist/components/bottom-bar/bottom-bar.stories.d.ts +12 -5
  44. package/dist/components/bottom-nav/bottom-nav-type.d.ts +2 -1
  45. package/dist/components/bottom-nav/bottom-nav.stories.d.ts +16 -1
  46. package/dist/components/breadcrumb/breadcrumb-type.d.ts +2 -1
  47. package/dist/components/breadcrumb/breadcrumb.stories.d.ts +15 -0
  48. package/dist/components/button/button-appearance.d.ts +50 -0
  49. package/dist/components/button/button-props.d.ts +12 -3
  50. package/dist/components/button/button-type.d.ts +14 -4
  51. package/dist/components/button/button.stories.d.ts +34 -3
  52. package/dist/components/button/cta-button.d.ts +1 -1
  53. package/dist/components/callout/callout.stories.d.ts +11 -0
  54. package/dist/components/card/card-type.d.ts +2 -1
  55. package/dist/components/card/card.stories.d.ts +9 -0
  56. package/dist/components/check-box/check-box-props.d.ts +8 -0
  57. package/dist/components/check-box/check-box-type.d.ts +7 -3
  58. package/dist/components/check-box/check-box.stories.d.ts +32 -1
  59. package/dist/components/chip-group/chip-group-props.d.ts +13 -1
  60. package/dist/components/chip-group/chip-group-type.d.ts +5 -1
  61. package/dist/components/chip-group/chip-group.stories.d.ts +30 -0
  62. package/dist/components/collapsible-menu/collapsible-menu-type.d.ts +6 -2
  63. package/dist/components/collapsible-menu/collapsible-menu.stories.d.ts +12 -0
  64. package/dist/components/description-list/description-list.stories.d.ts +7 -0
  65. package/dist/components/drawer/base-drawer.d.ts +2 -4
  66. package/dist/components/drawer/drawer-type.d.ts +17 -2
  67. package/dist/components/drawer/drawer.stories.d.ts +21 -0
  68. package/dist/components/drop-down/drop-down-type.d.ts +4 -2
  69. package/dist/components/drop-down/drop-down.stories.d.ts +16 -0
  70. package/dist/components/elements/text/text-props.d.ts +3 -3
  71. package/dist/components/elements/text/text-type.d.ts +3 -2
  72. package/dist/components/elements/text/text.stories.d.ts +13 -1
  73. package/dist/components/empty-state/empty-state.stories.d.ts +33 -8
  74. package/dist/components/icon/icon.stories.d.ts +11 -1
  75. package/dist/components/icon-button/icon-button-type.d.ts +2 -1
  76. package/dist/components/icon-button/icon-button.stories.d.ts +9 -0
  77. package/dist/components/list/list-group.stories.d.ts +7 -0
  78. package/dist/components/list/list-row.stories.d.ts +18 -8
  79. package/dist/components/list/list-type.d.ts +2 -1
  80. package/dist/components/loading/index.d.ts +4 -0
  81. package/dist/components/loading/inline-loading/base-inline-loading.d.ts +3 -2
  82. package/dist/components/loading/inline-loading/inline-loading-props.d.ts +3 -0
  83. package/dist/components/loading/inline-loading/inline-loading-type.d.ts +6 -6
  84. package/dist/components/loading/inline-loading/inline-loading.stories.d.ts +28 -2
  85. package/dist/components/loading/loading-dots/base-loading-dots.d.ts +4 -0
  86. package/dist/components/loading/loading-dots/loading-dots-props.d.ts +4 -0
  87. package/dist/components/loading/loading-dots/loading-dots-type.d.ts +6 -0
  88. package/dist/components/loading/loading-dots/loading-dots.d.ts +4 -0
  89. package/dist/components/loading/loading-dots/loading-dots.stories.d.ts +37 -0
  90. package/dist/components/loading/loading-props.d.ts +9 -0
  91. package/dist/components/loading/loading-type.d.ts +9 -0
  92. package/dist/components/loading/loading.stories.d.ts +15 -0
  93. package/dist/components/loading/overlay-loading/overlay-loading-type.d.ts +4 -0
  94. package/dist/components/loading/overlay-loading/overlay-loading.stories.d.ts +17 -0
  95. package/dist/components/loading/progress-bar/base-progress-bar.d.ts +3 -0
  96. package/dist/components/loading/progress-bar/progress-bar-props.d.ts +4 -0
  97. package/dist/components/loading/progress-bar/progress-bar-type.d.ts +19 -0
  98. package/dist/components/loading/progress-bar/progress-bar.d.ts +4 -0
  99. package/dist/components/loading/progress-bar/progress-bar.stories.d.ts +63 -0
  100. package/dist/components/loading/spinner/spinner-props.d.ts +4 -1
  101. package/dist/components/loading/spinner/spinner-type.d.ts +3 -1
  102. package/dist/components/loading/spinner/spinner.d.ts +2 -1
  103. package/dist/components/loading/spinner/spinner.stories.d.ts +30 -4
  104. package/dist/components/logging/logging.stories.d.ts +5 -0
  105. package/dist/components/media/media-thumbnail.stories.d.ts +9 -0
  106. package/dist/components/media/media-type.d.ts +2 -1
  107. package/dist/components/media/media-viewer.stories.d.ts +7 -0
  108. package/dist/components/message/message.stories.d.ts +15 -8
  109. package/dist/components/message-composer/message-composer-type.d.ts +2 -1
  110. package/dist/components/message-composer/message-composer.stories.d.ts +10 -0
  111. package/dist/components/modal/modal-type.d.ts +22 -3
  112. package/dist/components/modal/modal-with-double-button.stories.d.ts +15 -0
  113. package/dist/components/modal/modal.stories.d.ts +16 -0
  114. package/dist/components/motion/motion.stories.d.ts +7 -0
  115. package/dist/components/notice/notice-type.d.ts +1 -1
  116. package/dist/components/notice/notice.stories.d.ts +13 -6
  117. package/dist/components/overlay/overlay-context.d.ts +34 -0
  118. package/dist/components/overlay/overlay-provider.d.ts +6 -0
  119. package/dist/components/overlay/overlay-type.d.ts +45 -0
  120. package/dist/components/overlay/overlay.d.ts +4 -0
  121. package/dist/components/overlay/overlay.stories.d.ts +34 -0
  122. package/dist/components/overlay/use-dialog.d.ts +3 -0
  123. package/dist/components/overlay/use-toast.d.ts +3 -0
  124. package/dist/components/pagination/pagination-type.d.ts +2 -1
  125. package/dist/components/pagination/pagination.stories.d.ts +15 -0
  126. package/dist/components/radio/base-radio.d.ts +5 -2
  127. package/dist/components/radio/radio-type.d.ts +11 -3
  128. package/dist/components/radio/radio.stories.d.ts +20 -2
  129. package/dist/components/skeleton/base-skeleton.d.ts +7 -3
  130. package/dist/components/skeleton/skeleton-group-props.d.ts +4 -0
  131. package/dist/components/skeleton/skeleton-group-type.d.ts +47 -0
  132. package/dist/components/skeleton/skeleton-group.d.ts +4 -0
  133. package/dist/components/skeleton/skeleton-group.stories.d.ts +57 -0
  134. package/dist/components/skeleton/skeleton-type.d.ts +1 -0
  135. package/dist/components/skeleton/skeleton.stories.d.ts +17 -6
  136. package/dist/components/step-progress/step-progress-props.d.ts +10 -0
  137. package/dist/components/step-progress/step-progress-type.d.ts +22 -3
  138. package/dist/components/step-progress/step-progress.d.ts +1 -1
  139. package/dist/components/step-progress/step-progress.stories.d.ts +40 -0
  140. package/dist/components/switch/base-switch.d.ts +2 -4
  141. package/dist/components/switch/switch-type.d.ts +5 -2
  142. package/dist/components/switch/switch.stories.d.ts +22 -0
  143. package/dist/components/table/table-type.d.ts +2 -1
  144. package/dist/components/table/table.stories.d.ts +23 -0
  145. package/dist/components/tabs/tabs-type.d.ts +4 -1
  146. package/dist/components/tabs/tabs.stories.d.ts +17 -0
  147. package/dist/components/tag/tag-type.d.ts +2 -1
  148. package/dist/components/tag/tag.stories.d.ts +9 -0
  149. package/dist/components/text-area/base-text-area.d.ts +2 -1
  150. package/dist/components/text-area/text-area-type.d.ts +11 -3
  151. package/dist/components/text-area/text-area.stories.d.ts +15 -0
  152. package/dist/components/text-field/base-text-field.d.ts +12 -6
  153. package/dist/components/text-field/text-field-type.d.ts +37 -6
  154. package/dist/components/text-field/text-field.stories.d.ts +32 -5
  155. package/dist/components/toast/toast-type.d.ts +4 -1
  156. package/dist/components/toast/toast.stories.d.ts +21 -6
  157. package/dist/components/tooltip/tooltip-type.d.ts +4 -1
  158. package/dist/components/tooltip/tooltip.stories.d.ts +11 -0
  159. package/dist/components.css +1924 -697
  160. package/dist/cta-button.js +94 -33
  161. package/dist/data-table.js +5 -3
  162. package/dist/drawer.js +79 -13
  163. package/dist/drop-down.js +18 -10
  164. package/dist/helpers/hooks/useCloseOnBackEvent.d.ts +12 -0
  165. package/dist/helpers/hooks/useFieldClear.d.ts +21 -0
  166. package/dist/helpers/hooks/useReturnFocus.d.ts +9 -0
  167. package/dist/helpers/motion/appear.d.ts +3 -0
  168. package/dist/helpers/motion/effects.d.ts +9 -0
  169. package/dist/helpers/motion/motion-props.d.ts +35 -0
  170. package/dist/helpers/motion/stagger.d.ts +3 -0
  171. package/dist/helpers/motion/use-appear.d.ts +12 -0
  172. package/dist/helpers/motion/use-attention-handle.d.ts +7 -0
  173. package/dist/helpers/motion/use-confirm-spring.d.ts +7 -0
  174. package/dist/helpers/motion/use-effect-trigger.d.ts +11 -0
  175. package/dist/helpers/motion/use-hide-on-scroll.d.ts +12 -0
  176. package/dist/helpers/motion/use-presence-callbacks.d.ts +13 -0
  177. package/dist/icon-button.js +4 -2
  178. package/dist/icon-text-badge.js +27 -17
  179. package/dist/icon-text-option-badge.js +19 -13
  180. package/dist/index.d.ts +11 -4
  181. package/dist/index.js +3992 -967
  182. package/dist/list-row.js +5 -2
  183. package/dist/loading.js +200 -39
  184. package/dist/media-thumbnail.js +9 -5
  185. package/dist/message-composer.js +15 -11
  186. package/dist/modal-with-double-button.js +71 -53
  187. package/dist/modal.js +95 -29
  188. package/dist/notice.js +14 -8
  189. package/dist/option-badge.js +27 -17
  190. package/dist/overlay.js +1213 -0
  191. package/dist/pagination.js +11 -7
  192. package/dist/radio.js +117 -21
  193. package/dist/skeleton-group.js +445 -0
  194. package/dist/skeleton.js +24 -112
  195. package/dist/step-progress.js +125 -16
  196. package/dist/styles.css +2235 -777
  197. package/dist/switch.js +89 -17
  198. package/dist/tabs.js +77 -23
  199. package/dist/tag.js +4 -2
  200. package/dist/text-area.js +81 -31
  201. package/dist/text-field.js +160 -33
  202. package/dist/toast.js +98 -241
  203. package/dist/tokens/generated/motion.d.ts +21 -4
  204. package/dist/tokens/generated/semantic-admin.d.ts +103 -46
  205. package/dist/tokens/generated/semantic-app.d.ts +164 -16
  206. package/dist/tokens.css +578 -103
  207. package/dist/tokens.js +293 -71
  208. package/dist/tooltip.js +50 -22
  209. package/package.json +14 -1
  210. package/dist/chunk-5226.js +0 -79
@@ -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,8 +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
- className?: string | undefined | undefined;
28
+ slot?: string | undefined | undefined;
21
29
  style?: import("react").CSSProperties | undefined;
30
+ title: import("react").ReactNode;
31
+ key?: import("react").Key | null | undefined;
22
32
  defaultChecked?: boolean | undefined | undefined;
23
33
  defaultValue?: string | number | readonly string[] | undefined;
24
34
  suppressContentEditableWarning?: boolean | undefined | undefined;
@@ -26,6 +36,7 @@ declare const meta: {
26
36
  accessKey?: string | undefined | undefined;
27
37
  autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
28
38
  autoFocus?: boolean | undefined | undefined;
39
+ className?: string | undefined | undefined;
29
40
  contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
30
41
  contextMenu?: string | undefined | undefined;
31
42
  dir?: string | undefined | undefined;
@@ -35,10 +46,8 @@ declare const meta: {
35
46
  id?: string | undefined | undefined;
36
47
  lang?: string | undefined | undefined;
37
48
  nonce?: string | undefined | undefined;
38
- slot?: string | undefined | undefined;
39
49
  spellCheck?: (boolean | "true" | "false") | undefined;
40
50
  tabIndex?: number | undefined | undefined;
41
- title: import("react").ReactNode;
42
51
  translate?: "yes" | "no" | undefined | undefined;
43
52
  radioGroup?: string | undefined | undefined;
44
53
  role?: import("react").AriaRole | undefined;
@@ -282,11 +291,10 @@ declare const meta: {
282
291
  onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
283
292
  onTransitionEnd?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
284
293
  onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
285
- key?: import("react").Key | null | undefined;
286
294
  variant?: (typeof variant)[number] | undefined;
287
295
  icon: import("../..").IconName;
288
- description?: import("react").ReactNode;
289
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: ("link" | "circle" | "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")[];
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,15 +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
- asChild?: boolean | undefined;
10
- className?: string | undefined | undefined;
16
+ label: import("react").ReactNode;
17
+ slot?: string | undefined | undefined;
11
18
  style?: import("react").CSSProperties | undefined;
12
- children?: import("react").ReactNode;
19
+ title?: string | undefined | undefined;
20
+ track?: string | undefined;
21
+ key?: import("react").Key | null | undefined;
13
22
  defaultChecked?: boolean | undefined | undefined;
14
23
  defaultValue?: string | number | readonly string[] | undefined;
15
24
  suppressContentEditableWarning?: boolean | undefined | undefined;
@@ -17,6 +26,7 @@ declare const meta: {
17
26
  accessKey?: string | undefined | undefined;
18
27
  autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
19
28
  autoFocus?: boolean | undefined | undefined;
29
+ className?: string | undefined | undefined;
20
30
  contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
21
31
  contextMenu?: string | undefined | undefined;
22
32
  dir?: string | undefined | undefined;
@@ -26,10 +36,8 @@ declare const meta: {
26
36
  id?: string | undefined | undefined;
27
37
  lang?: string | undefined | undefined;
28
38
  nonce?: string | undefined | undefined;
29
- slot?: string | undefined | undefined;
30
39
  spellCheck?: (boolean | "true" | "false") | undefined;
31
40
  tabIndex?: number | undefined | undefined;
32
- title?: string | undefined | undefined;
33
41
  translate?: "yes" | "no" | undefined | undefined;
34
42
  radioGroup?: string | undefined | undefined;
35
43
  role?: import("react").AriaRole | undefined;
@@ -112,6 +120,7 @@ declare const meta: {
112
120
  "aria-valuemin"?: number | undefined | undefined;
113
121
  "aria-valuenow"?: number | undefined | undefined;
114
122
  "aria-valuetext"?: string | undefined | undefined;
123
+ children?: import("react").ReactNode;
115
124
  dangerouslySetInnerHTML?: {
116
125
  __html: string | TrustedHTML;
117
126
  } | undefined | undefined;
@@ -273,10 +282,9 @@ declare const meta: {
273
282
  onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
274
283
  onTransitionEnd?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
275
284
  onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
276
- label: import("react").ReactNode;
277
- track?: string | undefined;
278
- key?: import("react").Key | null | undefined;
285
+ asChild?: boolean | undefined;
279
286
  trackProps?: Record<string, string | number | boolean> | undefined;
287
+ pressEffect?: boolean | undefined;
280
288
  description?: import("react").ReactNode;
281
289
  chevron?: boolean | undefined;
282
290
  leading?: 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'>;
@@ -1,20 +1,46 @@
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("./inline-loading-type").InlineLoadingProps & import("react").RefAttributes<HTMLDivElement>>;
5
12
  argTypes: {
13
+ size: {
14
+ control: "inline-radio";
15
+ options: readonly ["s", "m", "l"];
16
+ };
17
+ variant: {
18
+ control: "inline-radio";
19
+ options: readonly ["neutral", "brand", "inverse"];
20
+ };
6
21
  justifyContent: {
7
22
  control: "inline-radio";
8
23
  options: readonly ["flex-start", "center", "flex-end", "space-between"];
9
24
  };
10
25
  };
11
26
  args: {
12
- size: number;
27
+ size: "m";
28
+ variant: "neutral";
13
29
  justifyContent: "flex-start";
30
+ delay: false;
14
31
  };
15
32
  };
16
33
  export default meta;
17
34
  type Story = StoryObj<typeof meta>;
35
+ /** 기본 글자 불러오는 중을 단 인라인 로딩이다. */
18
36
  export declare const Default: Story;
19
- export declare const Justify: Story;
37
+ /** 무엇을 기다리는지 글자로 쓴다. 글자는 링과 같은 색이다. */
38
+ export declare const WithLabel: Story;
39
+ /** 정말 좁은 자리라 글자를 뺐다. 화면 읽기 프로그램에는 불러오는 중이라고 알린다. */
40
+ export declare const WithoutLabel: Story;
41
+ /** s·m 은 가로로, l 은 세로로 놓인다. l 은 빈 영역 가운데를 채울 때 쓴다. */
20
42
  export declare const Sizes: Story;
43
+ /** neutral·brand 는 흰 바탕, inverse 는 어두운 바탕 위에 둔다. */
44
+ export declare const Variants: Story;
45
+ /** justifyContent 값별로 점선 상자 안에서 로딩 표시가 놓이는 자리를 본다. */
46
+ export declare const Justify: Story;
@@ -0,0 +1,4 @@
1
+ declare const BaseLoadingDots: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
2
+ 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;
3
+ }, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
4
+ export default BaseLoadingDots;
@@ -0,0 +1,4 @@
1
+ export declare const loadingDotsProps: {
2
+ size: import("../../../helpers/types/propsDef").ClassNamePropsType<readonly ["s", "m", "l"]>;
3
+ variant: import("../../../helpers/types/propsDef").PropDef<readonly ["neutral", "brand", "inverse"]>;
4
+ };
@@ -0,0 +1,6 @@
1
+ import { ComponentPropsWithRef } from 'react';
2
+ import { StyleProps } from '../../../helpers/types/common-props';
3
+ import { LoadingAppearanceProps } from '../loading-type';
4
+ export interface LoadingDotsProps extends StyleProps, LoadingAppearanceProps {
5
+ }
6
+ export type BaseLoadingDotsProps = ComponentPropsWithRef<'span'>;
@@ -0,0 +1,4 @@
1
+ import { LoadingDotsProps } from './loading-dots-type';
2
+ declare const LoadingDots: import("react").ForwardRefExoticComponent<LoadingDotsProps & import("react").RefAttributes<HTMLSpanElement>>;
3
+ export default LoadingDots;
4
+ export type { LoadingDotsProps } from './loading-dots-type';
@@ -0,0 +1,37 @@
1
+ import type { StoryObj } from '@storybook/react-webpack5';
2
+ declare const meta: {
3
+ title: string;
4
+ parameters: {
5
+ docs: {
6
+ description: {
7
+ component: string;
8
+ };
9
+ };
10
+ };
11
+ component: import("react").ForwardRefExoticComponent<import("./loading-dots-type").LoadingDotsProps & import("react").RefAttributes<HTMLSpanElement>>;
12
+ argTypes: {
13
+ size: {
14
+ control: "inline-radio";
15
+ options: readonly ["s", "m", "l"];
16
+ };
17
+ variant: {
18
+ control: "inline-radio";
19
+ options: readonly ["neutral", "brand", "inverse"];
20
+ };
21
+ };
22
+ args: {
23
+ size: "m";
24
+ variant: "neutral";
25
+ delay: false;
26
+ };
27
+ };
28
+ export default meta;
29
+ type Story = StoryObj<typeof meta>;
30
+ /** 기본 점 셋이다. */
31
+ export declare const Default: Story;
32
+ /** s·m·l 세 크기다. 점 지름과 간격이 함께 바뀐다. */
33
+ export declare const Sizes: Story;
34
+ /** neutral·brand 는 흰 바탕, inverse 는 어두운 바탕 위에 둔다. */
35
+ export declare const Variants: Story;
36
+ /** 문장 끝에 붙인 점이다. 글자 크기에 맞춰 s 를 쓴다. */
37
+ export declare const InText: Story;
@@ -0,0 +1,9 @@
1
+ import { PropDef } from '../../helpers/types/propsDef';
2
+ /** 로딩 가족이 모두 같은 이름으로 쓰는 축. px 은 styles/token/size.css 의 --loading-*, 색은 styles/loading.css 에 있다 */
3
+ export declare const loadingSizes: readonly ["s", "m", "l"];
4
+ export declare const loadingVariants: readonly ["neutral", "brand", "inverse"];
5
+ export declare const loadingVariantProp: (defaultValue: (typeof loadingVariants)[number]) => PropDef<typeof loadingVariants>;
6
+ export declare const loadingProps: {
7
+ size: import("../../helpers/types/propsDef").ClassNamePropsType<readonly ["s", "m", "l"]>;
8
+ variant: PropDef<readonly ["neutral", "brand", "inverse"]>;
9
+ };
@@ -0,0 +1,9 @@
1
+ import { loadingSizes, loadingVariants } from './loading-props';
2
+ /** 로딩 가족 공통 축. 이름과 뜻이 컴포넌트마다 같다 */
3
+ export interface LoadingAppearanceProps {
4
+ size?: (typeof loadingSizes)[number];
5
+ /** neutral 은 흰 바탕의 회색, brand 는 보라, inverse 는 보라·어두운 바탕 위의 흰색 */
6
+ variant?: (typeof loadingVariants)[number];
7
+ /** true(기본)면 300ms 안에 끝나는 로딩은 보이지 않는다. 자리와 role 은 바로 생긴다 */
8
+ delay?: boolean;
9
+ }
@@ -0,0 +1,15 @@
1
+ import type { StoryObj } from '@storybook/react-webpack5';
2
+ declare const meta: {
3
+ title: string;
4
+ parameters: {
5
+ docs: {
6
+ description: {
7
+ component: string;
8
+ };
9
+ };
10
+ };
11
+ };
12
+ export default meta;
13
+ type Story = StoryObj<typeof meta>;
14
+ /** 용도마다 하나씩 놓았다. 스토리에서는 바로 보이게 delay 를 껐다. */
15
+ export declare const ByPurpose: Story;
@@ -3,6 +3,10 @@ import { StyleProps } from '../../../helpers/types/common-props';
3
3
  export interface OverlayLoadingProps extends StyleProps {
4
4
  open?: boolean;
5
5
  message?: string;
6
+ /** 0~100. 주면 스피너 대신 진행 막대를 그린다(업로드처럼 얼마나 남았는지 알 때) */
7
+ progress?: number;
8
+ /** true(기본)면 300ms 안에 끝나면 보이지 않는다. 조작은 처음부터 막는다 */
9
+ delay?: boolean;
6
10
  backdropOpacity?: number;
7
11
  zIndex?: number;
8
12
  }