@nurihaus/web-design-system 3.9.1 → 3.9.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (214) hide show
  1. package/README.md +1 -1
  2. package/dist/.storybook/preview.d.ts +49 -0
  3. package/dist/ai/components.md +721 -111
  4. package/dist/ai/motion.md +156 -134
  5. package/dist/ai/tokens.md +295 -137
  6. package/dist/asset.js +328 -0
  7. package/dist/avatar.js +208 -33
  8. package/dist/bottom-nav.js +86 -6
  9. package/dist/breadcrumb.js +6 -3
  10. package/dist/card.js +5 -2
  11. package/dist/check-box.js +81 -45
  12. package/dist/chip-group.js +50 -12
  13. package/dist/chunk-1563.js +42 -18
  14. package/dist/chunk-1983.js +100 -0
  15. package/dist/chunk-3297.js +130 -0
  16. package/dist/chunk-3640.js +94 -0
  17. package/dist/chunk-3839.js +54 -0
  18. package/dist/chunk-4558.js +13 -2
  19. package/dist/chunk-4577.js +35 -0
  20. package/dist/chunk-5302.js +111 -0
  21. package/dist/{chunk-1657.js → chunk-5589.js} +41 -5
  22. package/dist/chunk-5670.js +122 -0
  23. package/dist/chunk-6302.js +10 -10
  24. package/dist/chunk-6706.js +64 -0
  25. package/dist/chunk-7302.js +66 -0
  26. package/dist/chunk-7460.js +204 -0
  27. package/dist/{chunk-6149.js → chunk-8377.js} +36 -2
  28. package/dist/chunk-8734.js +33 -0
  29. package/dist/chunk-8787.js +260 -0
  30. package/dist/chunk-8933.js +14 -2
  31. package/dist/chunk-910.js +82 -27
  32. package/dist/chunk-948.js +166 -0
  33. package/dist/collapsible-menu.js +109 -55
  34. package/dist/components/asset/asset-props.d.ts +43 -0
  35. package/dist/components/asset/asset-type.d.ts +38 -0
  36. package/dist/components/asset/asset.d.ts +21 -0
  37. package/dist/components/asset/asset.stories.d.ts +65 -0
  38. package/dist/components/asset/base-asset.d.ts +7 -0
  39. package/dist/components/avatar/avatar-props.d.ts +1 -0
  40. package/dist/components/avatar/avatar-type.d.ts +6 -4
  41. package/dist/components/avatar/avatar.stories.d.ts +10 -0
  42. package/dist/components/badge/badge-type.d.ts +10 -4
  43. package/dist/components/badge/badge.stories.d.ts +15 -0
  44. package/dist/components/bottom-bar/bottom-bar.stories.d.ts +14 -7
  45. package/dist/components/bottom-nav/bottom-nav-type.d.ts +2 -1
  46. package/dist/components/bottom-nav/bottom-nav.stories.d.ts +16 -1
  47. package/dist/components/breadcrumb/breadcrumb-type.d.ts +2 -1
  48. package/dist/components/breadcrumb/breadcrumb.stories.d.ts +15 -0
  49. package/dist/components/button/button-appearance.d.ts +50 -0
  50. package/dist/components/button/button-props.d.ts +12 -3
  51. package/dist/components/button/button-type.d.ts +14 -4
  52. package/dist/components/button/button.stories.d.ts +34 -3
  53. package/dist/components/button/cta-button.d.ts +1 -1
  54. package/dist/components/callout/callout.stories.d.ts +11 -0
  55. package/dist/components/card/card-type.d.ts +2 -1
  56. package/dist/components/card/card.stories.d.ts +9 -0
  57. package/dist/components/check-box/check-box-props.d.ts +8 -0
  58. package/dist/components/check-box/check-box-type.d.ts +7 -3
  59. package/dist/components/check-box/check-box.stories.d.ts +32 -1
  60. package/dist/components/chip-group/chip-group-props.d.ts +13 -1
  61. package/dist/components/chip-group/chip-group-type.d.ts +5 -1
  62. package/dist/components/chip-group/chip-group.stories.d.ts +30 -0
  63. package/dist/components/collapsible-menu/collapsible-menu-type.d.ts +28 -2
  64. package/dist/components/collapsible-menu/collapsible-menu.d.ts +1 -1
  65. package/dist/components/collapsible-menu/collapsible-menu.stories.d.ts +14 -0
  66. package/dist/components/description-list/description-list.stories.d.ts +7 -0
  67. package/dist/components/drawer/base-drawer.d.ts +2 -4
  68. package/dist/components/drawer/drawer-type.d.ts +17 -2
  69. package/dist/components/drawer/drawer.stories.d.ts +21 -0
  70. package/dist/components/drop-down/drop-down-type.d.ts +4 -2
  71. package/dist/components/drop-down/drop-down.stories.d.ts +16 -0
  72. package/dist/components/elements/text/text-props.d.ts +3 -3
  73. package/dist/components/elements/text/text-type.d.ts +3 -2
  74. package/dist/components/elements/text/text.stories.d.ts +13 -1
  75. package/dist/components/empty-state/empty-state.stories.d.ts +37 -12
  76. package/dist/components/icon/icon.stories.d.ts +11 -1
  77. package/dist/components/icon-button/icon-button-type.d.ts +2 -1
  78. package/dist/components/icon-button/icon-button.stories.d.ts +9 -0
  79. package/dist/components/list/list-group.stories.d.ts +7 -0
  80. package/dist/components/list/list-row.stories.d.ts +20 -10
  81. package/dist/components/list/list-type.d.ts +2 -1
  82. package/dist/components/loading/index.d.ts +4 -0
  83. package/dist/components/loading/inline-loading/base-inline-loading.d.ts +3 -2
  84. package/dist/components/loading/inline-loading/inline-loading-props.d.ts +3 -0
  85. package/dist/components/loading/inline-loading/inline-loading-type.d.ts +6 -6
  86. package/dist/components/loading/inline-loading/inline-loading.stories.d.ts +28 -2
  87. package/dist/components/loading/loading-dots/base-loading-dots.d.ts +4 -0
  88. package/dist/components/loading/loading-dots/loading-dots-props.d.ts +4 -0
  89. package/dist/components/loading/loading-dots/loading-dots-type.d.ts +6 -0
  90. package/dist/components/loading/loading-dots/loading-dots.d.ts +4 -0
  91. package/dist/components/loading/loading-dots/loading-dots.stories.d.ts +37 -0
  92. package/dist/components/loading/loading-props.d.ts +9 -0
  93. package/dist/components/loading/loading-type.d.ts +9 -0
  94. package/dist/components/loading/loading.stories.d.ts +15 -0
  95. package/dist/components/loading/overlay-loading/overlay-loading-type.d.ts +4 -0
  96. package/dist/components/loading/overlay-loading/overlay-loading.stories.d.ts +17 -0
  97. package/dist/components/loading/progress-bar/base-progress-bar.d.ts +3 -0
  98. package/dist/components/loading/progress-bar/progress-bar-props.d.ts +4 -0
  99. package/dist/components/loading/progress-bar/progress-bar-type.d.ts +19 -0
  100. package/dist/components/loading/progress-bar/progress-bar.d.ts +4 -0
  101. package/dist/components/loading/progress-bar/progress-bar.stories.d.ts +63 -0
  102. package/dist/components/loading/spinner/spinner-props.d.ts +4 -1
  103. package/dist/components/loading/spinner/spinner-type.d.ts +3 -1
  104. package/dist/components/loading/spinner/spinner.d.ts +2 -1
  105. package/dist/components/loading/spinner/spinner.stories.d.ts +30 -4
  106. package/dist/components/logging/logging.stories.d.ts +5 -0
  107. package/dist/components/media/media-thumbnail.stories.d.ts +9 -0
  108. package/dist/components/media/media-type.d.ts +2 -1
  109. package/dist/components/media/media-viewer.stories.d.ts +7 -0
  110. package/dist/components/message/message.stories.d.ts +19 -12
  111. package/dist/components/message-composer/message-composer-type.d.ts +2 -1
  112. package/dist/components/message-composer/message-composer.stories.d.ts +10 -0
  113. package/dist/components/modal/modal-type.d.ts +22 -3
  114. package/dist/components/modal/modal-with-double-button.stories.d.ts +15 -0
  115. package/dist/components/modal/modal.stories.d.ts +16 -0
  116. package/dist/components/motion/motion.stories.d.ts +7 -0
  117. package/dist/components/notice/notice-type.d.ts +1 -1
  118. package/dist/components/notice/notice.stories.d.ts +16 -9
  119. package/dist/components/overlay/overlay-context.d.ts +34 -0
  120. package/dist/components/overlay/overlay-provider.d.ts +6 -0
  121. package/dist/components/overlay/overlay-type.d.ts +45 -0
  122. package/dist/components/overlay/overlay.d.ts +4 -0
  123. package/dist/components/overlay/overlay.stories.d.ts +34 -0
  124. package/dist/components/overlay/use-dialog.d.ts +3 -0
  125. package/dist/components/overlay/use-toast.d.ts +3 -0
  126. package/dist/components/pagination/pagination-type.d.ts +2 -1
  127. package/dist/components/pagination/pagination.stories.d.ts +15 -0
  128. package/dist/components/radio/base-radio.d.ts +5 -2
  129. package/dist/components/radio/radio-type.d.ts +11 -3
  130. package/dist/components/radio/radio.stories.d.ts +20 -2
  131. package/dist/components/skeleton/base-skeleton.d.ts +7 -3
  132. package/dist/components/skeleton/skeleton-group-props.d.ts +4 -0
  133. package/dist/components/skeleton/skeleton-group-type.d.ts +47 -0
  134. package/dist/components/skeleton/skeleton-group.d.ts +4 -0
  135. package/dist/components/skeleton/skeleton-group.stories.d.ts +57 -0
  136. package/dist/components/skeleton/skeleton-type.d.ts +1 -0
  137. package/dist/components/skeleton/skeleton.stories.d.ts +20 -9
  138. package/dist/components/step-progress/step-progress-props.d.ts +10 -0
  139. package/dist/components/step-progress/step-progress-type.d.ts +22 -3
  140. package/dist/components/step-progress/step-progress.d.ts +1 -1
  141. package/dist/components/step-progress/step-progress.stories.d.ts +40 -0
  142. package/dist/components/switch/base-switch.d.ts +2 -4
  143. package/dist/components/switch/switch-type.d.ts +5 -2
  144. package/dist/components/switch/switch.stories.d.ts +22 -0
  145. package/dist/components/table/table-props.d.ts +9 -0
  146. package/dist/components/table/table-type.d.ts +7 -1
  147. package/dist/components/table/table.stories.d.ts +46 -0
  148. package/dist/components/tabs/tabs-type.d.ts +4 -1
  149. package/dist/components/tabs/tabs.stories.d.ts +17 -0
  150. package/dist/components/tag/tag-type.d.ts +2 -1
  151. package/dist/components/tag/tag.stories.d.ts +9 -0
  152. package/dist/components/text-area/base-text-area.d.ts +2 -1
  153. package/dist/components/text-area/text-area-type.d.ts +11 -3
  154. package/dist/components/text-area/text-area.stories.d.ts +15 -0
  155. package/dist/components/text-field/base-text-field.d.ts +12 -6
  156. package/dist/components/text-field/text-field-type.d.ts +37 -6
  157. package/dist/components/text-field/text-field.stories.d.ts +32 -5
  158. package/dist/components/toast/toast-type.d.ts +4 -1
  159. package/dist/components/toast/toast.stories.d.ts +28 -13
  160. package/dist/components/tooltip/tooltip-type.d.ts +4 -1
  161. package/dist/components/tooltip/tooltip.stories.d.ts +11 -0
  162. package/dist/components.css +2005 -672
  163. package/dist/cta-button.js +94 -33
  164. package/dist/data-table.js +38 -5
  165. package/dist/drawer.js +79 -13
  166. package/dist/drop-down.js +18 -10
  167. package/dist/helpers/hooks/useCloseOnBackEvent.d.ts +12 -0
  168. package/dist/helpers/hooks/useFieldClear.d.ts +21 -0
  169. package/dist/helpers/hooks/useReturnFocus.d.ts +9 -0
  170. package/dist/helpers/motion/appear.d.ts +3 -0
  171. package/dist/helpers/motion/effects.d.ts +9 -0
  172. package/dist/helpers/motion/motion-props.d.ts +35 -0
  173. package/dist/helpers/motion/stagger.d.ts +3 -0
  174. package/dist/helpers/motion/use-appear.d.ts +12 -0
  175. package/dist/helpers/motion/use-attention-handle.d.ts +7 -0
  176. package/dist/helpers/motion/use-confirm-spring.d.ts +7 -0
  177. package/dist/helpers/motion/use-effect-trigger.d.ts +11 -0
  178. package/dist/helpers/motion/use-hide-on-scroll.d.ts +12 -0
  179. package/dist/helpers/motion/use-presence-callbacks.d.ts +13 -0
  180. package/dist/icon-button.js +4 -2
  181. package/dist/icon-text-badge.js +27 -17
  182. package/dist/icon-text-option-badge.js +19 -13
  183. package/dist/index.d.ts +11 -4
  184. package/dist/index.js +4074 -989
  185. package/dist/list-row.js +5 -2
  186. package/dist/loading.js +200 -39
  187. package/dist/media-thumbnail.js +9 -5
  188. package/dist/message-composer.js +15 -11
  189. package/dist/modal-with-double-button.js +71 -53
  190. package/dist/modal.js +95 -29
  191. package/dist/notice.js +14 -8
  192. package/dist/option-badge.js +27 -17
  193. package/dist/overlay.js +1213 -0
  194. package/dist/pagination.js +11 -7
  195. package/dist/radio.js +117 -21
  196. package/dist/reset.css +4 -0
  197. package/dist/skeleton-group.js +445 -0
  198. package/dist/skeleton.js +24 -112
  199. package/dist/step-progress.js +125 -16
  200. package/dist/styles.css +2309 -756
  201. package/dist/switch.js +89 -17
  202. package/dist/tabs.js +77 -23
  203. package/dist/tag.js +4 -2
  204. package/dist/text-area.js +81 -31
  205. package/dist/text-field.js +160 -33
  206. package/dist/toast.js +98 -241
  207. package/dist/tokens/generated/motion.d.ts +21 -4
  208. package/dist/tokens/generated/semantic-admin.d.ts +103 -46
  209. package/dist/tokens/generated/semantic-app.d.ts +164 -16
  210. package/dist/tokens.css +578 -103
  211. package/dist/tokens.js +293 -71
  212. package/dist/tooltip.js +50 -22
  213. package/package.json +14 -1
  214. package/dist/chunk-5226.js +0 -79
@@ -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
@@ -63,13 +67,15 @@ var CollapsibleMenuTrigger = /*#__PURE__*/(0,external_root_React_commonjs2_react
63
67
  className = props.className,
64
68
  asChild = props.asChild,
65
69
  disabled = props.disabled,
66
- style = props.style;
70
+ style = props.style,
71
+ onClick = props.onClick;
67
72
  return (0,jsx_runtime_.jsx)(external_root_RadixUI_commonjs2_radix_ui_commonjs_radix_ui_amd_radix_ui_module_radix_ui_.Collapsible.Trigger, {
68
73
  ref: ref,
69
74
  className: (0,classNames/* classNames */.x)('nuri-theme base-collapsible-menu trigger', className),
70
75
  asChild: asChild,
71
76
  disabled: disabled,
72
77
  style: style,
78
+ onClick: onClick,
73
79
  children: children
74
80
  });
75
81
  });
@@ -120,6 +126,8 @@ var collapsible_menu_assign = undefined && undefined.__assign || function () {
120
126
 
121
127
 
122
128
 
129
+
130
+
123
131
  var Anchor = function Anchor(props) {
124
132
  return (0,jsx_runtime_.jsx)("a", collapsible_menu_assign({}, props));
125
133
  };
@@ -129,11 +137,19 @@ var CollapsibleMenu = /*#__PURE__*/(0,external_root_React_commonjs2_react_common
129
137
  className = _a.className,
130
138
  style = _a.style,
131
139
  items = _a.items,
140
+ sections = _a.sections,
132
141
  activeKey = _a.activeKey,
133
142
  onActiveKeyChange = _a.onActiveKeyChange,
134
143
  _b = _a.indent,
135
144
  indent = _b === void 0 ? 12 : _b,
145
+ chevron = _a.chevron,
136
146
  linkComponent = _a.linkComponent,
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,
137
153
  track = _a.track,
138
154
  trackProps = _a.trackProps;
139
155
  var emit = (0,useTrack/* useTrack */.n)('CollapsibleMenu', {
@@ -142,6 +158,8 @@ var CollapsibleMenu = /*#__PURE__*/(0,external_root_React_commonjs2_react_common
142
158
  });
143
159
  var Link = linkComponent !== null && linkComponent !== void 0 ? linkComponent : Anchor;
144
160
  var rootClassName = (0,classNames/* classNames */.x)(className, 'collapsible-menu');
161
+ // 행은 메뉴 안에 깔린 칸이라 눌림은 딤만 쓴다(press form dim)
162
+ var pressClassName = pressEffect && 'motion-press-dim';
145
163
  var _hasActiveDescendant = function hasActiveDescendant(item) {
146
164
  var _a, _b;
147
165
  if (!activeKey) return false;
@@ -154,72 +172,104 @@ var CollapsibleMenu = /*#__PURE__*/(0,external_root_React_commonjs2_react_common
154
172
  onActiveKeyChange === null || onActiveKeyChange === void 0 ? void 0 : onActiveKeyChange(item.key);
155
173
  (_a = item.onSelect) === null || _a === void 0 ? void 0 : _a.call(item);
156
174
  };
157
- var _renderItems = function renderItems(targetItems, depth) {
175
+ var renderItem = function renderItem(item, depth, index) {
176
+ var _a;
158
177
  var indentStyle = {
159
178
  paddingLeft: "".concat(depth * indent, "px")
160
179
  };
161
- return targetItems.map(function (item) {
162
- var _a;
163
- var hasChildren = !!((_a = item.children) === null || _a === void 0 ? void 0 : _a.length);
164
- var isActive = activeKey === item.key;
165
- if (hasChildren) {
166
- var triggerClassName = (0,classNames/* classNames */.x)('collapsible-menu-trigger', 'collapsible-menu-row', _hasActiveDescendant(item) && 'is-active');
167
- return (0,jsx_runtime_.jsxs)(base_collapsible_menu, {
168
- defaultOpen: item.defaultOpen,
180
+ var hasChildren = !!((_a = item.children) === null || _a === void 0 ? void 0 : _a.length);
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;
185
+ if (hasChildren) {
186
+ var triggerClassName = (0,classNames/* classNames */.x)('collapsible-menu-trigger', 'collapsible-menu-row', pressClassName, unfoldClassName, _hasActiveDescendant(item) && 'is-active');
187
+ return (0,jsx_runtime_.jsxs)(base_collapsible_menu, {
188
+ defaultOpen: item.defaultOpen,
189
+ open: item.open,
190
+ onOpenChange: item.onOpenChange,
191
+ disabled: item.disabled,
192
+ children: [(0,jsx_runtime_.jsxs)(base_collapsible_menu.Trigger, {
193
+ className: triggerClassName,
194
+ style: unfoldStyle,
169
195
  disabled: item.disabled,
170
- children: [(0,jsx_runtime_.jsx)(base_collapsible_menu.Trigger, {
171
- className: triggerClassName,
172
- disabled: item.disabled,
173
- children: (0,jsx_runtime_.jsx)("span", {
174
- className: 'collapsible-menu-left',
175
- style: indentStyle,
176
- children: item.item
177
- })
178
- }), (0,jsx_runtime_.jsx)(base_collapsible_menu.Content, {
179
- className: 'collapsible-menu-content',
180
- children: item.children ? _renderItems(item.children, depth + 1) : null
196
+ onClick: item.onTriggerClick,
197
+ children: [(0,jsx_runtime_.jsx)("span", {
198
+ className: 'collapsible-menu-left',
199
+ style: indentStyle,
200
+ children: item.item
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, {})
181
205
  })]
182
- }, item.key);
183
- }
184
- var itemClassName = (0,classNames/* classNames */.x)('collapsible-menu-item', 'collapsible-menu-row', isActive && 'is-active');
185
- var left = (0,jsx_runtime_.jsx)("span", {
186
- className: 'collapsible-menu-left',
187
- style: indentStyle,
188
- children: item.item
206
+ }), (0,jsx_runtime_.jsx)(base_collapsible_menu.Content, {
207
+ className: 'collapsible-menu-content',
208
+ children: item.children ? renderList(item.children, depth + 1) : null
209
+ })]
189
210
  });
190
- if (item.href) {
191
- return (0,jsx_runtime_.jsx)(Link, {
192
- className: itemClassName,
193
- href: item.href,
194
- "aria-current": isActive ? 'page' : undefined,
195
- "aria-disabled": item.disabled ? 'true' : undefined,
196
- onClick: function onClick(e) {
197
- if (item.disabled) {
198
- e.preventDefault();
199
- return;
200
- }
201
- selectItem(item);
202
- },
203
- children: left
204
- }, item.key);
205
- }
206
- return (0,jsx_runtime_.jsx)("button", {
207
- type: 'button',
211
+ }
212
+ var itemClassName = (0,classNames/* classNames */.x)('collapsible-menu-item', 'collapsible-menu-row', pressClassName, unfoldClassName, isActive && 'is-active');
213
+ var left = (0,jsx_runtime_.jsx)("span", {
214
+ className: 'collapsible-menu-left',
215
+ style: indentStyle,
216
+ children: item.item
217
+ });
218
+ if (item.href) {
219
+ return (0,jsx_runtime_.jsx)(Link, {
208
220
  className: itemClassName,
209
- disabled: item.disabled,
210
- onClick: function onClick() {
211
- return selectItem(item);
221
+ style: unfoldStyle,
222
+ href: item.href,
223
+ "aria-current": isActive ? 'page' : undefined,
224
+ "aria-disabled": item.disabled ? 'true' : undefined,
225
+ onClick: function onClick(e) {
226
+ if (item.disabled) {
227
+ e.preventDefault();
228
+ return;
229
+ }
230
+ selectItem(item);
212
231
  },
213
232
  children: left
214
- }, item.key);
233
+ });
234
+ }
235
+ return (0,jsx_runtime_.jsx)("button", {
236
+ type: 'button',
237
+ className: itemClassName,
238
+ style: unfoldStyle,
239
+ disabled: item.disabled,
240
+ onClick: function onClick() {
241
+ return selectItem(item);
242
+ },
243
+ children: left
215
244
  });
216
245
  };
217
- return (0,jsx_runtime_.jsx)("nav", {
246
+ // reset.css 가 list-style 을 지우면 Safari 가 목록 의미를 버리므로 role 을 직접 단다.
247
+ var renderList = function renderList(targetItems, depth) {
248
+ return (0,jsx_runtime_.jsx)("ul", {
249
+ className: 'collapsible-menu-list',
250
+ role: 'list',
251
+ children: targetItems.map(function (item, index) {
252
+ return (0,jsx_runtime_.jsx)("li", {
253
+ children: renderItem(item, depth, index)
254
+ }, item.key);
255
+ })
256
+ });
257
+ };
258
+ var renderSection = function renderSection(section) {
259
+ return (0,jsx_runtime_.jsxs)("div", {
260
+ className: 'collapsible-menu-section',
261
+ children: [section.title ? (0,jsx_runtime_.jsx)("div", {
262
+ className: 'collapsible-menu-section-title',
263
+ children: section.title
264
+ }) : null, renderList(section.items, 0)]
265
+ }, section.key);
266
+ };
267
+ return (0,jsx_runtime_.jsxs)(Root, {
218
268
  ref: ref,
219
269
  className: rootClassName,
220
270
  style: style,
221
- "aria-label": 'Collapsible menu',
222
- children: _renderItems(items, 0)
271
+ "aria-label": Root === 'nav' ? ariaLabel : undefined,
272
+ children: [items.length ? renderList(items, 0) : null, sections === null || sections === void 0 ? void 0 : sections.map(renderSection)]
223
273
  });
224
274
  });
225
275
  CollapsibleMenu.displayName = 'CollapsibleMenu';
@@ -245,7 +295,7 @@ var x = (y) => {
245
295
  var x = {}; __nuri_require__.d(x, y); return x
246
296
  }
247
297
  var y = (x) => (() => (x))
248
- 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) });
249
299
 
250
300
  /***/ },
251
301
 
@@ -398,11 +448,15 @@ module.exports = x({ ["jsx"]: () => (__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime
398
448
  /******/ __nuri_require__.C(__webpack_chunk_3__);
399
449
  /******/ import * as __webpack_chunk_4__ from "./chunk-4917.js";
400
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__);
401
455
  /******/
402
456
  /******/ // startup
403
457
  /******/ // Load entry module and return exports
404
458
  /******/ // This entry module depends on other loaded chunks and execution need to be delayed
405
- /******/ 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)))
406
460
  /******/ __webpack_exports__ = __nuri_require__.O(__webpack_exports__);
407
461
  /******/ const __webpack_exports__default = __webpack_exports__.A;
408
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,19 +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
- title?: string | undefined | undefined;
9
- children?: import("react").ReactNode;
10
- className?: string | undefined | undefined;
15
+ slot?: string | undefined | undefined;
11
16
  style?: import("react").CSSProperties | undefined;
17
+ title?: string | undefined | undefined;
12
18
  key?: import("react").Key | null | undefined;
13
- color?: string | undefined | undefined;
14
- content?: string | undefined | undefined;
15
- translate?: "yes" | "no" | undefined | undefined;
16
- slot?: string | undefined | undefined;
17
19
  defaultChecked?: boolean | undefined | undefined;
18
20
  defaultValue?: string | number | readonly string[] | undefined;
19
21
  suppressContentEditableWarning?: boolean | undefined | undefined;
@@ -21,6 +23,7 @@ declare const meta: {
21
23
  accessKey?: string | undefined | undefined;
22
24
  autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
23
25
  autoFocus?: boolean | undefined | undefined;
26
+ className?: string | undefined | undefined;
24
27
  contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
25
28
  contextMenu?: string | undefined | undefined;
26
29
  dir?: string | undefined | undefined;
@@ -32,9 +35,11 @@ declare const meta: {
32
35
  nonce?: string | undefined | undefined;
33
36
  spellCheck?: (boolean | "true" | "false") | undefined;
34
37
  tabIndex?: number | undefined | undefined;
38
+ translate?: "yes" | "no" | undefined | undefined;
35
39
  radioGroup?: string | undefined | undefined;
36
40
  role?: import("react").AriaRole | undefined;
37
41
  about?: string | undefined | undefined;
42
+ content?: string | undefined | undefined;
38
43
  datatype?: string | undefined | undefined;
39
44
  inlist?: any;
40
45
  prefix?: string | undefined | undefined;
@@ -46,6 +51,7 @@ declare const meta: {
46
51
  vocab?: string | undefined | undefined;
47
52
  autoCorrect?: string | undefined | undefined;
48
53
  autoSave?: string | undefined | undefined;
54
+ color?: string | undefined | undefined;
49
55
  itemProp?: string | undefined | undefined;
50
56
  itemScope?: boolean | undefined | undefined;
51
57
  itemType?: string | undefined | undefined;
@@ -111,6 +117,7 @@ declare const meta: {
111
117
  "aria-valuemin"?: number | undefined | undefined;
112
118
  "aria-valuenow"?: number | undefined | undefined;
113
119
  "aria-valuetext"?: string | undefined | undefined;
120
+ children?: import("react").ReactNode;
114
121
  dangerouslySetInnerHTML?: {
115
122
  __html: string | TrustedHTML;
116
123
  } | undefined | undefined;
@@ -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;