@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
@@ -17,8 +17,12 @@ __nuri_require__.d(__webpack_exports__, {
17
17
  var jsx_runtime_ = __nuri_require__(612);
18
18
  // EXTERNAL MODULE: external {"root":"React","commonjs2":"react","commonjs":"react","amd":"react","module":"react"}
19
19
  var external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_ = __nuri_require__(1041);
20
+ // EXTERNAL MODULE: ./assets/icons/chevronDown.svg
21
+ var chevronDown = __nuri_require__(9436);
20
22
  // EXTERNAL MODULE: ./helpers/hooks/useTrack.ts
21
23
  var useTrack = __nuri_require__(4560);
24
+ // EXTERNAL MODULE: ./helpers/motion/stagger.ts
25
+ var stagger = __nuri_require__(4577);
22
26
  // EXTERNAL MODULE: ./helpers/utils/classNames.js
23
27
  var classNames = __nuri_require__(3274);
24
28
  // EXTERNAL MODULE: ./helpers/utils/getMergedProps.ts
@@ -122,6 +126,8 @@ var collapsible_menu_assign = undefined && undefined.__assign || function () {
122
126
 
123
127
 
124
128
 
129
+
130
+
125
131
  var Anchor = function Anchor(props) {
126
132
  return (0,jsx_runtime_.jsx)("a", collapsible_menu_assign({}, props));
127
133
  };
@@ -136,11 +142,14 @@ var CollapsibleMenu = /*#__PURE__*/(0,external_root_React_commonjs2_react_common
136
142
  onActiveKeyChange = _a.onActiveKeyChange,
137
143
  _b = _a.indent,
138
144
  indent = _b === void 0 ? 12 : _b,
145
+ chevron = _a.chevron,
139
146
  linkComponent = _a.linkComponent,
140
- _c = _a.as,
141
- Root = _c === void 0 ? 'nav' : _c,
142
- _d = _a["aria-label"],
143
- ariaLabel = _d === void 0 ? 'Collapsible menu' : _d,
147
+ _c = _a.pressEffect,
148
+ pressEffect = _c === void 0 ? true : _c,
149
+ _d = _a.as,
150
+ Root = _d === void 0 ? 'nav' : _d,
151
+ _e = _a["aria-label"],
152
+ ariaLabel = _e === void 0 ? 'Collapsible menu' : _e,
144
153
  track = _a.track,
145
154
  trackProps = _a.trackProps;
146
155
  var emit = (0,useTrack/* useTrack */.n)('CollapsibleMenu', {
@@ -149,6 +158,8 @@ var CollapsibleMenu = /*#__PURE__*/(0,external_root_React_commonjs2_react_common
149
158
  });
150
159
  var Link = linkComponent !== null && linkComponent !== void 0 ? linkComponent : Anchor;
151
160
  var rootClassName = (0,classNames/* classNames */.x)(className, 'collapsible-menu');
161
+ // 행은 메뉴 안에 깔린 칸이라 눌림은 딤만 쓴다(press form dim)
162
+ var pressClassName = pressEffect && 'motion-press-dim';
152
163
  var _hasActiveDescendant = function hasActiveDescendant(item) {
153
164
  var _a, _b;
154
165
  if (!activeKey) return false;
@@ -161,36 +172,44 @@ var CollapsibleMenu = /*#__PURE__*/(0,external_root_React_commonjs2_react_common
161
172
  onActiveKeyChange === null || onActiveKeyChange === void 0 ? void 0 : onActiveKeyChange(item.key);
162
173
  (_a = item.onSelect) === null || _a === void 0 ? void 0 : _a.call(item);
163
174
  };
164
- var renderItem = function renderItem(item, depth) {
175
+ var renderItem = function renderItem(item, depth, index) {
165
176
  var _a;
166
177
  var indentStyle = {
167
178
  paddingLeft: "".concat(depth * indent, "px")
168
179
  };
169
180
  var hasChildren = !!((_a = item.children) === null || _a === void 0 ? void 0 : _a.length);
170
181
  var isActive = activeKey === item.key;
182
+ // 하위 메뉴 행만 펼침(unfold) 순서를 받는다. 최상위 행은 열리는 컨테이너 안이 아니다
183
+ var unfoldClassName = depth > 0 && 'motion-unfold-item';
184
+ var unfoldStyle = depth > 0 ? (0,stagger/* staggerStyle */.L)(index) : undefined;
171
185
  if (hasChildren) {
172
- var triggerClassName = (0,classNames/* classNames */.x)('collapsible-menu-trigger', 'collapsible-menu-row', _hasActiveDescendant(item) && 'is-active');
186
+ var triggerClassName = (0,classNames/* classNames */.x)('collapsible-menu-trigger', 'collapsible-menu-row', pressClassName, unfoldClassName, _hasActiveDescendant(item) && 'is-active');
173
187
  return (0,jsx_runtime_.jsxs)(base_collapsible_menu, {
174
188
  defaultOpen: item.defaultOpen,
175
189
  open: item.open,
176
190
  onOpenChange: item.onOpenChange,
177
191
  disabled: item.disabled,
178
- children: [(0,jsx_runtime_.jsx)(base_collapsible_menu.Trigger, {
192
+ children: [(0,jsx_runtime_.jsxs)(base_collapsible_menu.Trigger, {
179
193
  className: triggerClassName,
194
+ style: unfoldStyle,
180
195
  disabled: item.disabled,
181
196
  onClick: item.onTriggerClick,
182
- children: (0,jsx_runtime_.jsx)("span", {
197
+ children: [(0,jsx_runtime_.jsx)("span", {
183
198
  className: 'collapsible-menu-left',
184
199
  style: indentStyle,
185
200
  children: item.item
186
- })
201
+ }), (0,jsx_runtime_.jsx)("span", {
202
+ className: 'collapsible-menu-chevron',
203
+ "aria-hidden": true,
204
+ children: chevron !== null && chevron !== void 0 ? chevron : (0,jsx_runtime_.jsx)(chevronDown/* default */.A, {})
205
+ })]
187
206
  }), (0,jsx_runtime_.jsx)(base_collapsible_menu.Content, {
188
207
  className: 'collapsible-menu-content',
189
208
  children: item.children ? renderList(item.children, depth + 1) : null
190
209
  })]
191
210
  });
192
211
  }
193
- var itemClassName = (0,classNames/* classNames */.x)('collapsible-menu-item', 'collapsible-menu-row', isActive && 'is-active');
212
+ var itemClassName = (0,classNames/* classNames */.x)('collapsible-menu-item', 'collapsible-menu-row', pressClassName, unfoldClassName, isActive && 'is-active');
194
213
  var left = (0,jsx_runtime_.jsx)("span", {
195
214
  className: 'collapsible-menu-left',
196
215
  style: indentStyle,
@@ -199,6 +218,7 @@ var CollapsibleMenu = /*#__PURE__*/(0,external_root_React_commonjs2_react_common
199
218
  if (item.href) {
200
219
  return (0,jsx_runtime_.jsx)(Link, {
201
220
  className: itemClassName,
221
+ style: unfoldStyle,
202
222
  href: item.href,
203
223
  "aria-current": isActive ? 'page' : undefined,
204
224
  "aria-disabled": item.disabled ? 'true' : undefined,
@@ -215,6 +235,7 @@ var CollapsibleMenu = /*#__PURE__*/(0,external_root_React_commonjs2_react_common
215
235
  return (0,jsx_runtime_.jsx)("button", {
216
236
  type: 'button',
217
237
  className: itemClassName,
238
+ style: unfoldStyle,
218
239
  disabled: item.disabled,
219
240
  onClick: function onClick() {
220
241
  return selectItem(item);
@@ -227,9 +248,9 @@ var CollapsibleMenu = /*#__PURE__*/(0,external_root_React_commonjs2_react_common
227
248
  return (0,jsx_runtime_.jsx)("ul", {
228
249
  className: 'collapsible-menu-list',
229
250
  role: 'list',
230
- children: targetItems.map(function (item) {
251
+ children: targetItems.map(function (item, index) {
231
252
  return (0,jsx_runtime_.jsx)("li", {
232
- children: renderItem(item, depth)
253
+ children: renderItem(item, depth, index)
233
254
  }, item.key);
234
255
  })
235
256
  });
@@ -274,7 +295,7 @@ var x = (y) => {
274
295
  var x = {}; __nuri_require__.d(x, y); return x
275
296
  }
276
297
  var y = (x) => (() => (x))
277
- module.exports = x({ ["createContext"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.createContext), ["forwardRef"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.forwardRef), ["useCallback"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.useCallback), ["useContext"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.useContext), ["useRef"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.useRef) });
298
+ module.exports = x({ ["createContext"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.createContext), ["createElement"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.createElement), ["forwardRef"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.forwardRef), ["useCallback"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.useCallback), ["useContext"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.useContext), ["useRef"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.useRef) });
278
299
 
279
300
  /***/ },
280
301
 
@@ -427,11 +448,15 @@ module.exports = x({ ["jsx"]: () => (__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime
427
448
  /******/ __nuri_require__.C(__webpack_chunk_3__);
428
449
  /******/ import * as __webpack_chunk_4__ from "./chunk-4917.js";
429
450
  /******/ __nuri_require__.C(__webpack_chunk_4__);
451
+ /******/ import * as __webpack_chunk_5__ from "./chunk-9436.js";
452
+ /******/ __nuri_require__.C(__webpack_chunk_5__);
453
+ /******/ import * as __webpack_chunk_6__ from "./chunk-4577.js";
454
+ /******/ __nuri_require__.C(__webpack_chunk_6__);
430
455
  /******/
431
456
  /******/ // startup
432
457
  /******/ // Load entry module and return exports
433
458
  /******/ // This entry module depends on other loaded chunks and execution need to be delayed
434
- /******/ var __webpack_exports__ = __nuri_require__.O(undefined, [3274,7335,4560,4917], () => (__nuri_require__(5932)))
459
+ /******/ var __webpack_exports__ = __nuri_require__.O(undefined, [3274,7335,4560,4917,9436,4577], () => (__nuri_require__(5932)))
435
460
  /******/ __webpack_exports__ = __nuri_require__.O(__webpack_exports__);
436
461
  /******/ const __webpack_exports__default = __webpack_exports__.A;
437
462
  /******/ export { __webpack_exports__default as default };
@@ -0,0 +1,43 @@
1
+ export declare const shape: readonly ["square", "circle", "squircle", "card"];
2
+ export declare const background: readonly ["none", "neutral", "primary"];
3
+ export declare const accessoryPosition: readonly ["top-left", "top-right", "bottom-left", "bottom-right"];
4
+ export declare const fit: readonly ["cover", "contain"];
5
+ /** 모양마다 쓸 수 있는 크기. 타입(AssetFrameProps)과 스토리가 이 표를 읽는다. circle 은 Avatar 의 크기와 같다 */
6
+ export declare const FRAME_SIZES: {
7
+ readonly square: readonly ["xs", "s", "m", "l", "xl"];
8
+ readonly circle: readonly ["s", "m", "l", "xl"];
9
+ readonly squircle: readonly ["s", "m", "l", "xl"];
10
+ readonly card: readonly ["m", "l", "xl"];
11
+ };
12
+ export declare const sizes: readonly ["xs", "s", "m", "l", "xl"];
13
+ export declare const assetFrameProps: {
14
+ shape: {
15
+ type: "className";
16
+ className: string;
17
+ values: readonly ["square", "circle", "squircle", "card"];
18
+ default: "square";
19
+ };
20
+ size: import("../../helpers/types/propsDef").ClassNamePropsType<readonly ["xs", "s", "m", "l", "xl"]>;
21
+ background: {
22
+ type: "className";
23
+ className: string;
24
+ values: readonly ["none", "neutral", "primary"];
25
+ default: "none";
26
+ };
27
+ };
28
+ export declare const assetAccessoryProps: {
29
+ accessoryPosition: {
30
+ type: "className";
31
+ className: string;
32
+ values: readonly ["top-left", "top-right", "bottom-left", "bottom-right"];
33
+ default: "bottom-right";
34
+ };
35
+ };
36
+ export declare const assetImageProps: {
37
+ fit: {
38
+ type: "className";
39
+ className: string;
40
+ values: readonly ["cover", "contain"];
41
+ default: "cover";
42
+ };
43
+ };
@@ -0,0 +1,38 @@
1
+ import { ComponentPropsWithRef, ReactNode } from 'react';
2
+ import { StyleProps } from '../../helpers/types/common-props';
3
+ import { IconProps } from '../icon/icon-type';
4
+ import { FRAME_SIZES, accessoryPosition, background, fit, shape } from './asset-props';
5
+ export type AssetShape = (typeof shape)[number];
6
+ export type AssetFrameSize<S extends AssetShape> = (typeof FRAME_SIZES)[S][number];
7
+ export interface BaseAssetFrameProps extends ComponentPropsWithRef<'span'> {
8
+ /** 틀 바깥 모서리에 겹치는 요소. 틀이 자르지 않는다 */
9
+ accessory?: ReactNode;
10
+ accessoryClassName?: string;
11
+ overlap?: boolean;
12
+ }
13
+ export interface BaseAssetImageProps extends Omit<ComponentPropsWithRef<'img'>, 'alt'> {
14
+ alt: string;
15
+ }
16
+ /** 크기는 틀이 정한다 */
17
+ export type AssetIconProps = Omit<IconProps, 'size'>;
18
+ /** 틀 가운데 놓는 짧은 글(이니셜) */
19
+ export interface AssetTextProps extends StyleProps {
20
+ children: string;
21
+ }
22
+ export interface AssetFrameCommonProps extends Omit<BaseAssetFrameProps, 'accessoryClassName'> {
23
+ background?: (typeof background)[number];
24
+ accessoryPosition?: (typeof accessoryPosition)[number];
25
+ }
26
+ /** shape 마다 고를 수 있는 size 가 다르다(FRAME_SIZES). 표에 없는 조합은 타입 오류다 */
27
+ export type AssetFrameProps = AssetFrameCommonProps & ({
28
+ shape?: 'square';
29
+ size?: AssetFrameSize<'square'>;
30
+ } | {
31
+ [S in Exclude<AssetShape, 'square'>]: {
32
+ shape: S;
33
+ size?: AssetFrameSize<S>;
34
+ };
35
+ }[Exclude<AssetShape, 'square'>]);
36
+ export interface AssetImageProps extends BaseAssetImageProps {
37
+ fit?: (typeof fit)[number];
38
+ }
@@ -0,0 +1,21 @@
1
+ import { AssetIconProps, AssetImageProps, AssetTextProps } from './asset-type';
2
+ declare const Asset: {
3
+ Frame: import("react").ForwardRefExoticComponent<(Omit<import("./asset-type").AssetFrameCommonProps & {
4
+ shape?: "square";
5
+ size?: import("./asset-type").AssetFrameSize<"square">;
6
+ }, "ref"> | Omit<import("./asset-type").AssetFrameCommonProps & {
7
+ shape: "circle";
8
+ size?: "s" | "m" | "l" | "xl" | undefined;
9
+ }, "ref"> | Omit<import("./asset-type").AssetFrameCommonProps & {
10
+ shape: "squircle";
11
+ size?: "s" | "m" | "l" | "xl" | undefined;
12
+ }, "ref"> | Omit<import("./asset-type").AssetFrameCommonProps & {
13
+ shape: "card";
14
+ size?: "m" | "l" | "xl" | undefined;
15
+ }, "ref">) & import("react").RefAttributes<HTMLSpanElement>>;
16
+ Icon: import("react").ForwardRefExoticComponent<Omit<AssetIconProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
17
+ Image: import("react").ForwardRefExoticComponent<Omit<AssetImageProps, "ref"> & import("react").RefAttributes<HTMLImageElement>>;
18
+ Text: import("react").ForwardRefExoticComponent<AssetTextProps & import("react").RefAttributes<HTMLElement>>;
19
+ };
20
+ export default Asset;
21
+ export type { AssetFrameProps, AssetFrameSize, AssetIconProps, AssetImageProps, AssetShape, AssetTextProps, } from './asset-type';
@@ -0,0 +1,65 @@
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<(Omit<import("./asset-type").AssetFrameCommonProps & {
12
+ shape?: "square";
13
+ size?: import("./asset-type").AssetFrameSize<"square">;
14
+ }, "ref"> | Omit<import("./asset-type").AssetFrameCommonProps & {
15
+ shape: "circle";
16
+ size?: "s" | "m" | "l" | "xl" | undefined;
17
+ }, "ref"> | Omit<import("./asset-type").AssetFrameCommonProps & {
18
+ shape: "squircle";
19
+ size?: "s" | "m" | "l" | "xl" | undefined;
20
+ }, "ref"> | Omit<import("./asset-type").AssetFrameCommonProps & {
21
+ shape: "card";
22
+ size?: "m" | "l" | "xl" | undefined;
23
+ }, "ref">) & import("react").RefAttributes<HTMLSpanElement>>;
24
+ argTypes: {
25
+ shape: {
26
+ control: {
27
+ type: "select";
28
+ };
29
+ options: readonly ["square", "circle", "squircle", "card"];
30
+ };
31
+ background: {
32
+ control: {
33
+ type: "select";
34
+ };
35
+ options: readonly ["none", "neutral", "primary"];
36
+ };
37
+ accessoryPosition: {
38
+ control: {
39
+ type: "select";
40
+ };
41
+ options: readonly ["top-left", "top-right", "bottom-left", "bottom-right"];
42
+ };
43
+ };
44
+ args: {
45
+ shape: "square";
46
+ size: "m";
47
+ background: "neutral";
48
+ };
49
+ };
50
+ export default meta;
51
+ type Story = StoryObj<typeof meta>;
52
+ /** 회색 바탕 square 틀에 아이콘 하나. */
53
+ export declare const Default: Story;
54
+ /** 모양마다 지원하는 크기를 한 줄씩 늘어놓았다. 같은 크기 이름이면 square·circle·squircle 은 같은 상자다. */
55
+ export declare const ShapesAndSizes: Story;
56
+ /** 바탕 세 가지. none 은 감싼 곳의 글자색을 물려받는다. */
57
+ export declare const Backgrounds: Story;
58
+ /** 사진은 틀 모양으로 잘린다. cover 는 채우고 contain 은 다 보이게 줄인다. */
59
+ export declare const ImageFit: Story;
60
+ /** 사진이 없을 때 이니셜. 글자 크기는 틀 크기를 따른다. */
61
+ export declare const Initials: Story;
62
+ /** 액세서리는 틀 밖 모서리에 걸친다. 네 자리를 본다. */
63
+ export declare const AccessoryPositions: Story;
64
+ /** overlap 을 준 틀끼리 옆으로 겹친다. */
65
+ export declare const Overlap: Story;
@@ -0,0 +1,7 @@
1
+ import { AssetIconProps, AssetTextProps, BaseAssetFrameProps, BaseAssetImageProps } from './asset-type';
2
+ declare const AssetRoot: import("react").ForwardRefExoticComponent<Omit<BaseAssetFrameProps, "ref"> & import("react").RefAttributes<HTMLSpanElement>> & {
3
+ Icon: import("react").ForwardRefExoticComponent<Omit<AssetIconProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
4
+ Image: import("react").ForwardRefExoticComponent<Omit<BaseAssetImageProps, "ref"> & import("react").RefAttributes<HTMLImageElement>>;
5
+ Text: import("react").ForwardRefExoticComponent<AssetTextProps & import("react").RefAttributes<HTMLElement>>;
6
+ };
7
+ export default AssetRoot;
@@ -1,3 +1,4 @@
1
+ /** 아바타는 circle 틀이라 크기도 그 표를 따른다 */
1
2
  export declare const sizes: readonly ["s", "m", "l", "xl"];
2
3
  export declare const avatarProps: {
3
4
  size: import("../../helpers/types/propsDef").ClassNamePropsType<readonly ["s", "m", "l", "xl"]>;
@@ -1,11 +1,13 @@
1
1
  import { ReactNode } from 'react';
2
- import { AsChildProps, StyleProps } from '../../helpers/types/common-props';
2
+ import { StyleProps } from '../../helpers/types/common-props';
3
3
  import { sizes } from './avatar-props';
4
- export interface BaseAvatarProps extends AsChildProps, StyleProps {
4
+ export interface BaseAvatarProps extends StyleProps {
5
+ size: (typeof sizes)[number];
5
6
  src?: string;
6
7
  alt?: string;
8
+ /** 틀 오른쪽 아래 액세서리 자리에 그릴 요소 */
9
+ badge?: ReactNode;
7
10
  }
8
- export interface AvatarProps extends Omit<BaseAvatarProps, 'asChild'> {
9
- size: (typeof sizes)[number];
11
+ export interface AvatarProps extends Omit<BaseAvatarProps, 'badge'> {
10
12
  badgeOption?: ReactNode | string;
11
13
  }
@@ -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("./avatar-type").AvatarProps & import("react").RefAttributes<HTMLDivElement>>;
5
12
  argTypes: {
6
13
  size: {
@@ -17,8 +24,11 @@ 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;
29
+ /** 크기별 아바타를 한 줄로 늘어놓았다. 크기마다 배지가 함께 줄어드는지 본다. */
21
30
  export declare const Sizes: Story;
22
31
  /** 이미지를 불러오지 못하면 기본 아바타 아이콘이 보인다. */
23
32
  export declare const Fallback: Story;
33
+ /** 배지 없이 이미지만 있는 l 크기 아바타다. */
24
34
  export declare const WithoutBadge: Story;
@@ -1,4 +1,5 @@
1
- import { ReactNode } from 'react';
1
+ import { ReactNode, Ref } from 'react';
2
+ import type { AttentionHandle } from '../../helpers/motion/motion-props';
2
3
  import { AsChildProps } from '../../helpers/types/common-props';
3
4
  import { direction } from '../tooltip/tooltip-props';
4
5
  import { sizes, variant } from './badge-props';
@@ -8,7 +9,12 @@ export interface CommonBadgeProps extends AsChildProps {
8
9
  }
9
10
  export interface BaseBadgeProps extends React.HTMLAttributes<HTMLDivElement>, CommonBadgeProps {
10
11
  }
11
- export interface OptionBadgeProps extends Pick<CommonBadgeProps, 'asChild' | 'className'> {
12
+ /** DOM ref 는 루트 요소 그대로라서 효과 메서드는 따로 받는다 */
13
+ export interface BadgeEffectProps {
14
+ /** shine·blink 를 부르는 ref. 쓰는 쪽이 값이 새로 생긴 순간에 부른다 */
15
+ effectRef?: Ref<AttentionHandle>;
16
+ }
17
+ export interface OptionBadgeProps extends Pick<CommonBadgeProps, 'asChild' | 'className'>, BadgeEffectProps {
12
18
  variant?: (typeof variant)[number];
13
19
  width?: number | string;
14
20
  size?: (typeof sizes)[number];
@@ -20,7 +26,7 @@ export interface OptionBadgeProps extends Pick<CommonBadgeProps, 'asChild' | 'cl
20
26
  delayDuration?: number;
21
27
  };
22
28
  }
23
- export interface IconTextBadgeProps extends Pick<CommonBadgeProps, 'asChild' | 'className'> {
29
+ export interface IconTextBadgeProps extends Pick<CommonBadgeProps, 'asChild' | 'className'>, BadgeEffectProps {
24
30
  variant?: (typeof variant)[number];
25
31
  width?: number | string;
26
32
  size?: (typeof sizes)[number];
@@ -33,7 +39,7 @@ export interface IconTextBadgeProps extends Pick<CommonBadgeProps, 'asChild' | '
33
39
  delayDuration?: number;
34
40
  };
35
41
  }
36
- export interface IconTextOptionBadgeProps extends Pick<CommonBadgeProps, 'className'> {
42
+ export interface IconTextOptionBadgeProps extends Pick<CommonBadgeProps, 'className'>, BadgeEffectProps {
37
43
  variant?: (typeof variant)[number];
38
44
  width?: number | string;
39
45
  size?: (typeof sizes)[number];
@@ -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("./badge-type").IconTextBadgeProps & import("react").RefAttributes<HTMLDivElement>>;
5
12
  argTypes: {
6
13
  variant: {
@@ -23,9 +30,17 @@ declare const meta: {
23
30
  };
24
31
  export default meta;
25
32
  type Story = StoryObj<typeof meta>;
33
+ /** 아이콘·텍스트·툴팁을 단 IconTextBadge 다. 마우스를 올리면 왼쪽에 툴팁이 뜬다. */
26
34
  export declare const Default: Story;
35
+ /** IconTextBadge 를 크기별로 늘어놓았다. 크기마다 높이와 글자 크기 차이를 본다. */
27
36
  export declare const IconText: Story;
37
+ /** OptionBadge 를 크기별로 늘어놓았다. 크기마다 높이와 글자 크기 차이를 본다. */
28
38
  export declare const Option: Story;
39
+ /** IconTextOptionBadge 를 크기별로 늘어놓았다. 오른쪽 부가 값(2.4K)이 크기마다 어떻게 맞춰지는지 본다. */
29
40
  export declare const IconTextOption: Story;
41
+ /** variant 마다 세 배지를 한 줄에 그렸다. 같은 variant 에서 세 배지의 색이 맞는지 본다. */
30
42
  export declare const Variants: Story;
43
+ /** 툴팁을 단 IconTextBadge 와 OptionBadge 다. 각각에 마우스를 올려 툴팁이 뜨는 방향을 본다. */
31
44
  export declare const WithTooltip: Story;
45
+ /** effectRef 의 shine·blink 를 버튼으로 부른다. 재생 중에 다시 누르면 처음부터 다시 재생한다 */
46
+ export declare const MotionAttention: Story;
@@ -1,13 +1,21 @@
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<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
5
12
  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;
6
13
  }, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
7
14
  decorators: ((Story: import("storybook/internal/csf").PartialStoryFn<import("@storybook/react-webpack5").ReactRenderer, {
8
- className?: string | undefined | undefined;
15
+ slot?: string | undefined | undefined;
9
16
  style?: import("react").CSSProperties | undefined;
10
- children?: import("react").ReactNode;
17
+ title?: string | undefined | undefined;
18
+ key?: import("react").Key | null | undefined;
11
19
  defaultChecked?: boolean | undefined | undefined;
12
20
  defaultValue?: string | number | readonly string[] | undefined;
13
21
  suppressContentEditableWarning?: boolean | undefined | undefined;
@@ -15,6 +23,7 @@ declare const meta: {
15
23
  accessKey?: string | undefined | undefined;
16
24
  autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
17
25
  autoFocus?: boolean | undefined | undefined;
26
+ className?: string | undefined | undefined;
18
27
  contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
19
28
  contextMenu?: string | undefined | undefined;
20
29
  dir?: string | undefined | undefined;
@@ -24,10 +33,8 @@ declare const meta: {
24
33
  id?: string | undefined | undefined;
25
34
  lang?: string | undefined | undefined;
26
35
  nonce?: string | undefined | undefined;
27
- slot?: string | undefined | undefined;
28
36
  spellCheck?: (boolean | "true" | "false") | undefined;
29
37
  tabIndex?: number | undefined | undefined;
30
- title?: string | undefined | undefined;
31
38
  translate?: "yes" | "no" | undefined | undefined;
32
39
  radioGroup?: string | undefined | undefined;
33
40
  role?: import("react").AriaRole | undefined;
@@ -110,6 +117,7 @@ declare const meta: {
110
117
  "aria-valuemin"?: number | undefined | undefined;
111
118
  "aria-valuenow"?: number | undefined | undefined;
112
119
  "aria-valuetext"?: string | undefined | undefined;
120
+ children?: import("react").ReactNode;
113
121
  dangerouslySetInnerHTML?: {
114
122
  __html: string | TrustedHTML;
115
123
  } | undefined | undefined;
@@ -271,7 +279,6 @@ declare const meta: {
271
279
  onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
272
280
  onTransitionEnd?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
273
281
  onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
274
- key?: import("react").Key | null | undefined;
275
282
  ref?: import("react").LegacyRef<HTMLDivElement> | undefined;
276
283
  }>) => import("react/jsx-runtime").JSX.Element)[];
277
284
  };
@@ -1,4 +1,5 @@
1
1
  import type { ComponentPropsWithRef, ComponentType, MouseEventHandler, ReactNode } from 'react';
2
+ import { AppearProps, HideOnScrollProps, PressEffectProps } from '../../helpers/motion/motion-props';
2
3
  import { StyleProps } from '../../helpers/types/common-props';
3
4
  import { IconName } from '../icon/icon-type';
4
5
  import { TrackProps } from '../logging/logging-type';
@@ -25,7 +26,7 @@ export interface BottomNavLinkProps {
25
26
  /** `track` 을 주면 누를 때 로그를 보낸다. 직접 만든 `linkComponent` 는 이 값을 `<a>` 에 넘긴다 */
26
27
  onClick?: MouseEventHandler<HTMLAnchorElement>;
27
28
  }
28
- export interface BottomNavProps extends StyleProps, TrackProps {
29
+ export interface BottomNavProps extends StyleProps, TrackProps, PressEffectProps, AppearProps, HideOnScrollProps {
29
30
  items: BottomNavItem[];
30
31
  /** 지금 화면의 탭 id. 주소에서 정하므로 탭 바가 스스로 바꾸지 않는다 */
31
32
  value?: string;
@@ -1,14 +1,20 @@
1
1
  import type { StoryObj } from '@storybook/react-webpack5';
2
+ import { BottomNavLinkProps } from './bottom-nav-type';
2
3
  declare const meta: {
3
4
  title: string;
4
5
  component: import("react").ForwardRefExoticComponent<import("./bottom-nav-type").BottomNavProps & import("react").RefAttributes<HTMLElement>>;
5
6
  parameters: {
6
7
  layout: string;
8
+ docs: {
9
+ description: {
10
+ component: string;
11
+ };
12
+ };
7
13
  };
8
14
  args: {
9
15
  label: string;
10
16
  value: string;
11
- linkComponent: (props: import("./bottom-nav-type").BottomNavLinkProps) => import("react/jsx-runtime").JSX.Element;
17
+ linkComponent: (props: BottomNavLinkProps) => import("react/jsx-runtime").JSX.Element;
12
18
  items: ({
13
19
  id: string;
14
20
  label: string;
@@ -52,4 +58,13 @@ declare const meta: {
52
58
  };
53
59
  export default meta;
54
60
  type Story = StoryObj<typeof meta>;
61
+ /** 화면 아래에 붙은 하단 내비게이션이다. 현재 탭 표시와 홈·내 정보 탭에 붙은 배지를 본다. */
55
62
  export declare const Default: Story;
63
+ /** 탭을 누르고 있으면 살짝 작아진다. 탭을 바꾸면 선택 캡슐이 옛 자리에서 새 자리로 옮겨 간다(indicate) */
64
+ export declare const MotionPress: Story;
65
+ /** pressEffect 를 끈 하단 내비게이션이다. 탭을 눌러 눌림 효과가 없는지 Default 와 비교한다. */
66
+ export declare const MotionPressOff: Story;
67
+ /** 아래로 스크롤하면 숨고 위로 스크롤하면 돌아온다 */
68
+ export declare const MotionHideOnScroll: Story;
69
+ /** 하단 내비게이션이 0.4초 뒤 slide 효과로 나타난다. 다시 재생 버튼으로 등장을 반복해 본다. */
70
+ export declare const MotionAppear: Story;
@@ -1,4 +1,5 @@
1
1
  import { ComponentPropsWithRef, ElementType, 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 './breadcrumb-props';
@@ -18,7 +19,7 @@ export interface BreadcrumbItem {
18
19
  /** 없으면 링크가 아닌 글자로 그린다. 마지막 항목은 href 가 있어도 현재 위치로 그린다. */
19
20
  href?: string;
20
21
  }
21
- export interface BreadcrumbProps extends StyleProps, TrackProps {
22
+ export interface BreadcrumbProps extends StyleProps, TrackProps, PressEffectProps {
22
23
  items: BreadcrumbItem[];
23
24
  size?: (typeof sizes)[number];
24
25
  /** 마지막(현재 위치) 항목이 아닌 항목을 클릭하면 그 id 로 불린다. */
@@ -2,6 +2,13 @@ import type { StoryObj } from '@storybook/react-webpack5';
2
2
  import { BreadcrumbItem } from './breadcrumb-type';
3
3
  declare const meta: {
4
4
  title: string;
5
+ parameters: {
6
+ docs: {
7
+ description: {
8
+ component: string;
9
+ };
10
+ };
11
+ };
5
12
  component: import("react").ForwardRefExoticComponent<import("./breadcrumb-type").BreadcrumbProps & import("react").RefAttributes<HTMLElement>>;
6
13
  argTypes: {
7
14
  size: {
@@ -17,9 +24,17 @@ 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;
29
+ /** 크기별 경로 표시다. 글자 크기와 구분자 간격 차이를 본다. */
21
30
  export declare const Sizes: Story;
31
+ /** 구분자를 `/` 로 바꾼 경로 표시다. */
22
32
  export declare const CustomSeparator: Story;
33
+ /** 가운데 그룹 항목에 링크가 없다. 링크 없는 항목이 링크 항목과 다르게 보이는지 본다. */
23
34
  export declare const WithoutHref: Story;
35
+ /** 홈 하나뿐인 경로 표시다. 구분자 없이 항목 하나만 보이는지 본다. */
24
36
  export declare const Single: Story;
37
+ /** 항목 이름이 아주 긴 경로 표시다. 폭이 모자랄 때 항목이 줄바꿈되거나 잘리는 모습을 본다. */
25
38
  export declare const LongLabels: Story;
39
+ /** 링크 항목을 누르고 있으면 줄어든다. 글자 항목과 현재 위치는 그대로다. 아래는 pressEffect={false} */
40
+ export declare const MotionPress: Story;