@nurihaus/web-design-system 3.9.3 → 3.9.5

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 (273) hide show
  1. package/README.md +2 -0
  2. package/dist/.storybook/migration.d.ts +1 -0
  3. package/dist/.storybook/usage.d.ts +23 -0
  4. package/dist/agreement.js +1110 -0
  5. package/dist/ai/components.md +3506 -250
  6. package/dist/ai/motion.md +58 -6
  7. package/dist/ai/tokens.md +53 -25
  8. package/dist/alphabet-keypad.js +446 -0
  9. package/dist/asset.js +47 -5
  10. package/dist/avatar.js +50 -8
  11. package/dist/bar-chart.js +478 -0
  12. package/dist/board-row.js +379 -0
  13. package/dist/border.js +223 -0
  14. package/dist/bottom-cta.js +378 -0
  15. package/dist/bottom-info.js +253 -0
  16. package/dist/bottom-nav.js +12 -64
  17. package/dist/bottom-sheet.js +608 -0
  18. package/dist/check-box.js +29 -162
  19. package/dist/chip-group.js +2 -2
  20. package/dist/{chunk-5589.js → chunk-1657.js} +2 -34
  21. package/dist/{chunk-9387.js → chunk-1768.js} +2 -2
  22. package/dist/chunk-1983.js +37 -1
  23. package/dist/chunk-2046.js +73 -0
  24. package/dist/chunk-2060.js +34 -0
  25. package/dist/chunk-2308.js +184 -0
  26. package/dist/chunk-2777.js +1 -0
  27. package/dist/chunk-3091.js +54 -0
  28. package/dist/chunk-4109.js +115 -0
  29. package/dist/chunk-4205.js +47 -0
  30. package/dist/chunk-4324.js +109 -0
  31. package/dist/chunk-4328.js +69 -0
  32. package/dist/chunk-4558.js +5 -116
  33. package/dist/chunk-4917.js +1 -1
  34. package/dist/chunk-5670.js +1 -29
  35. package/dist/chunk-6096.js +183 -0
  36. package/dist/{chunk-8377.js → chunk-6149.js} +2 -36
  37. package/dist/chunk-6478.js +155 -0
  38. package/dist/chunk-6499.js +39 -0
  39. package/dist/chunk-6616.js +84 -0
  40. package/dist/chunk-674.js +133 -0
  41. package/dist/chunk-7024.js +152 -0
  42. package/dist/chunk-7232.js +122 -0
  43. package/dist/chunk-7298.js +1 -1
  44. package/dist/chunk-7589.js +40 -0
  45. package/dist/chunk-7593.js +85 -0
  46. package/dist/chunk-7653.js +16 -0
  47. package/dist/chunk-7737.js +21 -0
  48. package/dist/chunk-7739.js +1 -5
  49. package/dist/chunk-829.js +38 -0
  50. package/dist/chunk-8491.js +43 -0
  51. package/dist/chunk-8787.js +0 -180
  52. package/dist/chunk-8982.js +186 -0
  53. package/dist/chunk-910.js +1 -1
  54. package/dist/chunk-9497.js +11 -1
  55. package/dist/collapsible-menu.js +3 -3
  56. package/dist/components/agreement/agreement-props.d.ts +44 -0
  57. package/dist/components/agreement/agreement-type.d.ts +107 -0
  58. package/dist/components/agreement/agreement.d.ts +26 -0
  59. package/dist/components/agreement/agreement.stories.d.ts +72 -0
  60. package/dist/components/agreement/base-agreement.d.ts +40 -0
  61. package/dist/components/asset/asset-type.d.ts +34 -1
  62. package/dist/components/asset/asset.d.ts +4 -2
  63. package/dist/components/asset/asset.stories.d.ts +6 -0
  64. package/dist/components/asset/base-asset.d.ts +5 -1
  65. package/dist/components/bar-chart/bar-chart-fill.d.ts +6 -0
  66. package/dist/components/bar-chart/bar-chart-props.d.ts +17 -0
  67. package/dist/components/bar-chart/bar-chart-type.d.ts +52 -0
  68. package/dist/components/bar-chart/bar-chart.d.ts +4 -0
  69. package/dist/components/bar-chart/bar-chart.stories.d.ts +65 -0
  70. package/dist/components/bar-chart/base-bar-chart.d.ts +17 -0
  71. package/dist/components/board-row/base-board-row.d.ts +13 -0
  72. package/dist/components/board-row/board-row-props.d.ts +2 -0
  73. package/dist/components/board-row/board-row-type.d.ts +22 -0
  74. package/dist/components/board-row/board-row.d.ts +8 -0
  75. package/dist/components/board-row/board-row.stories.d.ts +32 -0
  76. package/dist/components/border/base-border.d.ts +4 -0
  77. package/dist/components/border/border-props.d.ts +10 -0
  78. package/dist/components/border/border-type.d.ts +7 -0
  79. package/dist/components/border/border.d.ts +5 -0
  80. package/dist/components/border/border.stories.d.ts +19 -0
  81. package/dist/components/bottom-bar/bottom-bar.stories.d.ts +5 -5
  82. package/dist/components/bottom-cta/base-bottom-cta.d.ts +4 -0
  83. package/dist/components/bottom-cta/bottom-cta-props.d.ts +10 -0
  84. package/dist/components/bottom-cta/bottom-cta-type.d.ts +39 -0
  85. package/dist/components/bottom-cta/bottom-cta.d.ts +35 -0
  86. package/dist/components/bottom-cta/bottom-cta.stories.d.ts +79 -0
  87. package/dist/components/bottom-info/base-bottom-info.d.ts +4 -0
  88. package/dist/components/bottom-info/bottom-info-props.d.ts +1 -0
  89. package/dist/components/bottom-info/bottom-info-type.d.ts +6 -0
  90. package/dist/components/bottom-info/bottom-info.d.ts +4 -0
  91. package/dist/components/bottom-info/bottom-info.stories.d.ts +22 -0
  92. package/dist/components/bottom-sheet/base-bottom-sheet.d.ts +17 -0
  93. package/dist/components/bottom-sheet/bottom-sheet-props.d.ts +1 -0
  94. package/dist/components/bottom-sheet/bottom-sheet-snap.d.ts +15 -0
  95. package/dist/components/bottom-sheet/bottom-sheet-type.d.ts +55 -0
  96. package/dist/components/bottom-sheet/bottom-sheet.d.ts +4 -0
  97. package/dist/components/bottom-sheet/bottom-sheet.stories.d.ts +47 -0
  98. package/dist/components/check-box/check-box-type.d.ts +3 -0
  99. package/dist/components/core/composer/index.d.ts +2 -0
  100. package/dist/components/elements/text/text-props.d.ts +1 -0
  101. package/dist/components/empty-state/empty-state-props.d.ts +5 -3
  102. package/dist/components/empty-state/empty-state-type.d.ts +17 -5
  103. package/dist/components/empty-state/empty-state.d.ts +8 -3
  104. package/dist/components/empty-state/empty-state.stories.d.ts +301 -9
  105. package/dist/components/grid-list/base-grid-list.d.ts +10 -0
  106. package/dist/components/grid-list/grid-list-props.d.ts +11 -0
  107. package/dist/components/grid-list/grid-list-type.d.ts +24 -0
  108. package/dist/components/grid-list/grid-list.d.ts +6 -0
  109. package/dist/components/grid-list/grid-list.stories.d.ts +30 -0
  110. package/dist/components/highlight/base-highlight.d.ts +14 -0
  111. package/dist/components/highlight/highlight-props.d.ts +2 -0
  112. package/dist/components/highlight/highlight-type.d.ts +42 -0
  113. package/dist/components/highlight/highlight.d.ts +4 -0
  114. package/dist/components/highlight/highlight.stories.d.ts +31 -0
  115. package/dist/components/icon/icon-paths.d.ts +16 -0
  116. package/dist/components/icon/icon.stories.d.ts +1 -1
  117. package/dist/components/icon-button/icon-button-type.d.ts +2 -0
  118. package/dist/components/icon-button/icon-button.stories.d.ts +2 -0
  119. package/dist/components/keypad/alphabet-keypad.d.ts +4 -0
  120. package/dist/components/keypad/alphabet-keypad.stories.d.ts +24 -0
  121. package/dist/components/keypad/base-keypad.d.ts +6 -0
  122. package/dist/components/keypad/full-secure-keypad.d.ts +4 -0
  123. package/dist/components/keypad/full-secure-keypad.stories.d.ts +26 -0
  124. package/dist/components/keypad/keypad-layout.d.ts +16 -0
  125. package/dist/components/keypad/keypad-props.d.ts +16 -0
  126. package/dist/components/keypad/keypad-type.d.ts +66 -0
  127. package/dist/components/keypad/number-keypad.d.ts +4 -0
  128. package/dist/components/keypad/number-keypad.stories.d.ts +26 -0
  129. package/dist/components/keypad/use-keypad-decoys.d.ts +10 -0
  130. package/dist/components/list/base-list.d.ts +3 -0
  131. package/dist/components/list/list-footer.d.ts +5 -0
  132. package/dist/components/list/list-footer.stories.d.ts +304 -0
  133. package/dist/components/list/list-group.d.ts +1 -1
  134. package/dist/components/list/list-group.stories.d.ts +2 -0
  135. package/dist/components/list/list-header.d.ts +5 -0
  136. package/dist/components/list/list-header.stories.d.ts +302 -0
  137. package/dist/components/list/list-props.d.ts +33 -1
  138. package/dist/components/list/list-row.d.ts +5 -4
  139. package/dist/components/list/list-row.stories.d.ts +22 -8
  140. package/dist/components/list/list-type.d.ts +44 -2
  141. package/dist/components/logging/logging-type.d.ts +1 -1
  142. package/dist/components/menu/base-menu.d.ts +21 -0
  143. package/dist/components/menu/menu-props.d.ts +2 -0
  144. package/dist/components/menu/menu-type.d.ts +70 -0
  145. package/dist/components/menu/menu.d.ts +8 -0
  146. package/dist/components/menu/menu.stories.d.ts +54 -0
  147. package/dist/components/message/message.stories.d.ts +9 -9
  148. package/dist/components/notice/notice.stories.d.ts +6 -6
  149. package/dist/components/numeric-spinner/base-numeric-spinner.d.ts +8 -0
  150. package/dist/components/numeric-spinner/numeric-spinner-props.d.ts +5 -0
  151. package/dist/components/numeric-spinner/numeric-spinner-type.d.ts +29 -0
  152. package/dist/components/numeric-spinner/numeric-spinner.d.ts +4 -0
  153. package/dist/components/numeric-spinner/numeric-spinner.stories.d.ts +36 -0
  154. package/dist/components/overlay/overlay-context.d.ts +10 -0
  155. package/dist/components/overlay/overlay-provider.d.ts +1 -1
  156. package/dist/components/overlay/overlay-type.d.ts +23 -0
  157. package/dist/components/overlay/overlay.d.ts +2 -1
  158. package/dist/components/overlay/overlay.stories.d.ts +3 -1
  159. package/dist/components/overlay/use-bottom-sheet.d.ts +3 -0
  160. package/dist/components/paragraph/base-paragraph.d.ts +14 -0
  161. package/dist/components/paragraph/paragraph-props.d.ts +25 -0
  162. package/dist/components/paragraph/paragraph-type.d.ts +33 -0
  163. package/dist/components/paragraph/paragraph.d.ts +9 -0
  164. package/dist/components/paragraph/paragraph.stories.d.ts +54 -0
  165. package/dist/components/post/base-post.d.ts +19 -0
  166. package/dist/components/post/post-props.d.ts +31 -0
  167. package/dist/components/post/post-type.d.ts +34 -0
  168. package/dist/components/post/post.d.ts +16 -0
  169. package/dist/components/post/post.stories.d.ts +35 -0
  170. package/dist/components/rating/base-rating.d.ts +11 -0
  171. package/dist/components/rating/rating-props.d.ts +11 -0
  172. package/dist/components/rating/rating-type.d.ts +46 -0
  173. package/dist/components/rating/rating.d.ts +4 -0
  174. package/dist/components/rating/rating.stories.d.ts +35 -0
  175. package/dist/components/search-field/base-search-field.d.ts +4 -0
  176. package/dist/components/search-field/search-field-props.d.ts +2 -0
  177. package/dist/components/search-field/search-field-type.d.ts +25 -0
  178. package/dist/components/search-field/search-field.d.ts +8 -0
  179. package/dist/components/search-field/search-field.stories.d.ts +39 -0
  180. package/dist/components/segmented-control/base-segmented-control.d.ts +8 -0
  181. package/dist/components/segmented-control/segmented-control-props.d.ts +5 -0
  182. package/dist/components/segmented-control/segmented-control-type.d.ts +31 -0
  183. package/dist/components/segmented-control/segmented-control.d.ts +4 -0
  184. package/dist/components/segmented-control/segmented-control.stories.d.ts +39 -0
  185. package/dist/components/skeleton/skeleton-group.stories.d.ts +1 -1
  186. package/dist/components/skeleton/skeleton.stories.d.ts +6 -6
  187. package/dist/components/slider/base-slider.d.ts +13 -0
  188. package/dist/components/slider/slider-props.d.ts +10 -0
  189. package/dist/components/slider/slider-type.d.ts +46 -0
  190. package/dist/components/slider/slider.d.ts +4 -0
  191. package/dist/components/slider/slider.stories.d.ts +38 -0
  192. package/dist/components/split-text-field/base-split-text-field.d.ts +4 -0
  193. package/dist/components/split-text-field/split-text-field-props.d.ts +23 -0
  194. package/dist/components/split-text-field/split-text-field-type.d.ts +46 -0
  195. package/dist/components/split-text-field/split-text-field.d.ts +7 -0
  196. package/dist/components/split-text-field/split-text-field.stories.d.ts +38 -0
  197. package/dist/components/table-row/base-table-row.d.ts +4 -0
  198. package/dist/components/table-row/table-row-props.d.ts +14 -0
  199. package/dist/components/table-row/table-row-type.d.ts +13 -0
  200. package/dist/components/table-row/table-row.d.ts +5 -0
  201. package/dist/components/table-row/table-row.stories.d.ts +24 -0
  202. package/dist/components/text-area/text-area-type.d.ts +3 -2
  203. package/dist/components/text-button/base-text-button.d.ts +3 -0
  204. package/dist/components/text-button/text-button-props.d.ts +19 -0
  205. package/dist/components/text-button/text-button-type.d.ts +17 -0
  206. package/dist/components/text-button/text-button.d.ts +5 -0
  207. package/dist/components/text-button/text-button.stories.d.ts +47 -0
  208. package/dist/components/text-field/text-field-type.d.ts +5 -3
  209. package/dist/components/toast/toast.stories.d.ts +5 -5
  210. package/dist/components/top/base-top.d.ts +4 -0
  211. package/dist/components/top/top-props.d.ts +12 -0
  212. package/dist/components/top/top-type.d.ts +20 -0
  213. package/dist/components/top/top.d.ts +5 -0
  214. package/dist/components/top/top.stories.d.ts +320 -0
  215. package/dist/components.css +2221 -116
  216. package/dist/cta-button.js +11 -9
  217. package/dist/drawer.js +18 -113
  218. package/dist/drop-down.js +4 -4
  219. package/dist/empty-state.js +16 -7
  220. package/dist/full-secure-keypad.js +524 -0
  221. package/dist/grid-list.js +378 -0
  222. package/dist/helpers/hooks/useIndicatorPosition.d.ts +7 -0
  223. package/dist/helpers/hooks/useKeyboardInset.d.ts +5 -0
  224. package/dist/helpers/hooks/useScrollStart.d.ts +9 -0
  225. package/dist/helpers/motion/use-reveal-children.d.ts +6 -0
  226. package/dist/helpers/types/propsDef.d.ts +4 -2
  227. package/dist/highlight.js +492 -0
  228. package/dist/icon-button.js +53 -96
  229. package/dist/icon-text-badge.js +5 -3
  230. package/dist/icon-text-option-badge.js +4 -2
  231. package/dist/index.d.ts +52 -4
  232. package/dist/index.js +11271 -4671
  233. package/dist/list-footer.js +339 -0
  234. package/dist/list-group.js +61 -18
  235. package/dist/list-header.js +293 -0
  236. package/dist/list-row.js +243 -26
  237. package/dist/loading.js +7 -5
  238. package/dist/media-thumbnail.js +6 -6
  239. package/dist/menu.js +527 -0
  240. package/dist/message-composer.js +2 -2
  241. package/dist/modal-with-double-button.js +17 -13
  242. package/dist/modal.js +9 -7
  243. package/dist/notice.js +14 -12
  244. package/dist/number-keypad.js +436 -0
  245. package/dist/numeric-spinner.js +396 -0
  246. package/dist/option-badge.js +5 -3
  247. package/dist/overlay.js +555 -21
  248. package/dist/pagination.js +2 -2
  249. package/dist/paragraph.js +286 -0
  250. package/dist/post.js +568 -0
  251. package/dist/radio.js +5 -3
  252. package/dist/rating.js +437 -0
  253. package/dist/scripts/usage-doc.d.mts +83 -0
  254. package/dist/search-field.js +523 -0
  255. package/dist/segmented-control.js +409 -0
  256. package/dist/skeleton-group.js +28 -151
  257. package/dist/skeleton.js +3 -1
  258. package/dist/slider.js +419 -0
  259. package/dist/split-text-field.js +498 -0
  260. package/dist/styles.css +1926 -159
  261. package/dist/switch.js +5 -3
  262. package/dist/table-row.js +284 -0
  263. package/dist/tabs.js +13 -69
  264. package/dist/text-area.js +26 -15
  265. package/dist/text-button.js +357 -0
  266. package/dist/text-field.js +56 -206
  267. package/dist/text.js +5 -7
  268. package/dist/toast.js +15 -13
  269. package/dist/tokens.css +66 -10
  270. package/dist/tooltip.js +2 -2
  271. package/dist/top.js +312 -0
  272. package/package.json +107 -2
  273. package/dist/chunk-3839.js +0 -54
@@ -0,0 +1,378 @@
1
+ "use client";
2
+ import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
3
+ import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_179142b8__ from "react/jsx-runtime";
4
+ /******/ var __webpack_modules__ = ({
5
+
6
+ /***/ 2109
7
+ (__unused_webpack_module, __webpack_exports__, __nuri_require__) {
8
+
9
+
10
+ // EXPORTS
11
+ __nuri_require__.d(__webpack_exports__, {
12
+ A: () => (/* binding */ grid_list)
13
+ });
14
+
15
+ // EXTERNAL MODULE: external {"root":"jsx-runtime","commonjs2":"react/jsx-runtime","commonjs":"react/jsx-runtime","amd":"react/jsx-runtime","module":"react/jsx-runtime"}
16
+ var jsx_runtime_ = __nuri_require__(612);
17
+ // EXTERNAL MODULE: external {"root":"React","commonjs2":"react","commonjs":"react","amd":"react","module":"react"}
18
+ var external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_ = __nuri_require__(1041);
19
+ // EXTERNAL MODULE: ./helpers/hooks/useTrack.ts
20
+ var useTrack = __nuri_require__(4560);
21
+ // EXTERNAL MODULE: ./helpers/motion/use-reveal-children.ts
22
+ var use_reveal_children = __nuri_require__(3091);
23
+ // EXTERNAL MODULE: ./helpers/utils/classNames.js
24
+ var classNames = __nuri_require__(3274);
25
+ // EXTERNAL MODULE: ./helpers/utils/getMergedProps.ts
26
+ var getMergedProps = __nuri_require__(7335);
27
+ // EXTERNAL MODULE: ./components/core/composer/index.tsx
28
+ var composer = __nuri_require__(2777);
29
+ ;// ./components/grid-list/base-grid-list.tsx
30
+ var __assign = undefined && undefined.__assign || function () {
31
+ __assign = Object.assign || function (t) {
32
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
33
+ s = arguments[i];
34
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
35
+ }
36
+ return t;
37
+ };
38
+ return __assign.apply(this, arguments);
39
+ };
40
+ var __rest = undefined && undefined.__rest || function (s, e) {
41
+ var t = {};
42
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
43
+ if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
44
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
45
+ }
46
+ return t;
47
+ };
48
+
49
+
50
+
51
+
52
+ var GridListRootBase = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.forwardRef)(function (props, ref) {
53
+ var className = props.className,
54
+ restProps = __rest(props, ["className"]);
55
+ return (
56
+ // 목록 스타일을 지우면 Safari 가 목록 의미를 버리므로 role 을 직접 단다
57
+ (0,jsx_runtime_.jsx)("ul", __assign({
58
+ ref: ref,
59
+ className: (0,classNames/* classNames */.x)('nuri-theme base-grid-list root', className),
60
+ role: 'list'
61
+ }, restProps))
62
+ );
63
+ });
64
+ GridListRootBase.displayName = 'GridListRoot';
65
+ var GridListItem = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.forwardRef)(function (props, ref) {
66
+ var className = props.className,
67
+ restProps = __rest(props, ["className"]);
68
+ return (0,jsx_runtime_.jsx)("li", __assign({
69
+ ref: ref,
70
+ className: (0,classNames/* classNames */.x)('nuri-theme base-grid-list item', className)
71
+ }, restProps));
72
+ });
73
+ GridListItem.displayName = 'GridListItem';
74
+ var GridListAction = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.forwardRef)(function (props, ref) {
75
+ var _a = props.asChild,
76
+ asChild = _a === void 0 ? false : _a,
77
+ className = props.className,
78
+ restProps = __rest(props, ["asChild", "className"]);
79
+ var Comp = asChild ? composer/* default */.A : 'div';
80
+ return (0,jsx_runtime_.jsx)(Comp, __assign({
81
+ ref: ref,
82
+ className: (0,classNames/* classNames */.x)('nuri-theme base-grid-list action', className)
83
+ }, restProps));
84
+ });
85
+ GridListAction.displayName = 'GridListAction';
86
+ var GridListRoot = Object.assign(GridListRootBase, {
87
+ Item: GridListItem,
88
+ Action: GridListAction
89
+ });
90
+ /* harmony default export */ const base_grid_list = (GridListRoot);
91
+ ;// ./components/grid-list/grid-list-props.ts
92
+ /** 한 줄에 놓는 칸 수 */
93
+ var column = [1, 2, 3];
94
+ var gridListProps = {
95
+ column: {
96
+ type: 'css',
97
+ key: '--grid-list-column',
98
+ values: column,
99
+ "default": 2
100
+ }
101
+ };
102
+ var gridListItemProps = {};
103
+ ;// ./components/grid-list/grid-list.tsx
104
+ var grid_list_assign = undefined && undefined.__assign || function () {
105
+ grid_list_assign = Object.assign || function (t) {
106
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
107
+ s = arguments[i];
108
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
109
+ }
110
+ return t;
111
+ };
112
+ return grid_list_assign.apply(this, arguments);
113
+ };
114
+ var grid_list_rest = undefined && undefined.__rest || function (s, e) {
115
+ var t = {};
116
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
117
+ if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
118
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
119
+ }
120
+ return t;
121
+ };
122
+
123
+
124
+
125
+
126
+
127
+
128
+
129
+
130
+ /** 그림과 글자로 된 칸을 격자로 놓는 목록. column 이 한 줄의 칸 수다 */
131
+ var GridListBase = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.forwardRef)(function (props, ref) {
132
+ var _a = (0,getMergedProps/* getMergedProps */.p)(props, gridListProps),
133
+ className = _a.className,
134
+ stagger = _a.stagger,
135
+ children = _a.children,
136
+ restProps = grid_list_rest(_a, ["className", "stagger", "children"]);
137
+ var items = (0,use_reveal_children/* useRevealChildren */.O)(children, stagger);
138
+ return (0,jsx_runtime_.jsx)(base_grid_list, grid_list_assign({
139
+ ref: ref,
140
+ className: (0,classNames/* classNames */.x)(className, 'grid-list')
141
+ }, restProps, {
142
+ children: items
143
+ }));
144
+ });
145
+ GridListBase.displayName = 'GridList';
146
+ /** 격자 한 칸. onClick 이면 칸 안이 button, asChild 면 넘긴 링크가 된다. 둘 다 없으면 보기만 한다 */
147
+ var grid_list_GridListItem = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.forwardRef)(function (props, ref) {
148
+ var _a = (0,getMergedProps/* getMergedProps */.p)(props, gridListItemProps),
149
+ className = _a.className,
150
+ image = _a.image,
151
+ children = _a.children,
152
+ asChild = _a.asChild,
153
+ onClick = _a.onClick,
154
+ _b = _a.pressEffect,
155
+ pressEffect = _b === void 0 ? true : _b,
156
+ track = _a.track,
157
+ trackProps = _a.trackProps,
158
+ restProps = grid_list_rest(_a, ["className", "image", "children", "asChild", "onClick", "pressEffect", "track", "trackProps"]);
159
+ var emit = (0,useTrack/* useTrack */.n)('GridListItem', {
160
+ track: track,
161
+ trackProps: trackProps
162
+ });
163
+ // asChild 면 링크가 자기 글자를 갖고 온다. 그 글자를 꺼내 그림과 함께 다시 채운다
164
+ var linkChild = asChild && /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.isValidElement)(children) ? children : null;
165
+ var text = linkChild ? linkChild.props.children : children;
166
+ var content = (0,jsx_runtime_.jsxs)(jsx_runtime_.Fragment, {
167
+ children: [(0,jsx_runtime_.jsx)("span", {
168
+ className: 'grid-list-item-image',
169
+ children: image
170
+ }), (0,jsx_runtime_.jsx)("span", {
171
+ className: 'grid-list-item-text',
172
+ children: text
173
+ })]
174
+ });
175
+ var buttonAction = onClick ? (0,jsx_runtime_.jsx)("button", {
176
+ type: 'button',
177
+ children: content
178
+ }) : null;
179
+ var actionElement = linkChild ? /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.cloneElement)(linkChild, undefined, content) : buttonAction;
180
+ return (0,jsx_runtime_.jsx)(base_grid_list.Item, grid_list_assign({
181
+ ref: ref,
182
+ className: (0,classNames/* classNames */.x)(className, 'grid-list-item')
183
+ }, restProps, {
184
+ children: (0,jsx_runtime_.jsx)(base_grid_list.Action
185
+ // 칸은 테두리가 닫힌 독립 물체라 눌림은 scale 이다(press form scale). 보기만 하는 칸은 받지 않는다
186
+ , {
187
+ // 칸은 테두리가 닫힌 독립 물체라 눌림은 scale 이다(press form scale). 보기만 하는 칸은 받지 않는다
188
+ className: (0,classNames/* classNames */.x)('grid-list-item-action', pressEffect && actionElement && 'motion-press'),
189
+ asChild: actionElement !== null,
190
+ onClick: actionElement ? function (event) {
191
+ emit(linkChild ? 'navigate' : 'click');
192
+ onClick === null || onClick === void 0 ? void 0 : onClick(event);
193
+ } : undefined,
194
+ children: actionElement !== null && actionElement !== void 0 ? actionElement : content
195
+ })
196
+ }));
197
+ });
198
+ grid_list_GridListItem.displayName = 'GridListItem';
199
+ var GridList = Object.assign(GridListBase, {
200
+ Item: grid_list_GridListItem
201
+ });
202
+ /* harmony default export */ const grid_list = (GridList);
203
+
204
+ /***/ },
205
+
206
+ /***/ 1041
207
+ (module, __unused_webpack_exports, __nuri_require__) {
208
+
209
+ var x = (y) => {
210
+ var x = {}; __nuri_require__.d(x, y); return x
211
+ }
212
+ var y = (x) => (() => (x))
213
+ module.exports = x({ ["Children"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.Children), ["cloneElement"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.cloneElement), ["createContext"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.createContext), ["forwardRef"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.forwardRef), ["isValidElement"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.isValidElement), ["useCallback"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.useCallback), ["useContext"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.useContext), ["useRef"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.useRef), ["useState"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.useState) });
214
+
215
+ /***/ },
216
+
217
+ /***/ 612
218
+ (module, __unused_webpack_exports, __nuri_require__) {
219
+
220
+ var x = (y) => {
221
+ var x = {}; __nuri_require__.d(x, y); return x
222
+ }
223
+ var y = (x) => (() => (x))
224
+ module.exports = x({ ["Fragment"]: () => (__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_179142b8__.Fragment), ["jsx"]: () => (__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_179142b8__.jsx), ["jsxs"]: () => (__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_179142b8__.jsxs) });
225
+
226
+ /***/ }
227
+
228
+ /******/ });
229
+ /************************************************************************/
230
+ /******/ // The module cache
231
+ /******/ var __webpack_module_cache__ = {};
232
+ /******/
233
+ /******/ // The require function
234
+ /******/ function __nuri_require__(moduleId) {
235
+ /******/ // Check if module is in cache
236
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
237
+ /******/ if (cachedModule !== undefined) {
238
+ /******/ return cachedModule.exports;
239
+ /******/ }
240
+ /******/ // Create a new module (and put it into the cache)
241
+ /******/ var module = __webpack_module_cache__[moduleId] = {
242
+ /******/ // no module.id needed
243
+ /******/ // no module.loaded needed
244
+ /******/ exports: {}
245
+ /******/ };
246
+ /******/
247
+ /******/ // Execute the module function
248
+ /******/ __webpack_modules__[moduleId](module, module.exports, __nuri_require__);
249
+ /******/
250
+ /******/ // Return the exports of the module
251
+ /******/ return module.exports;
252
+ /******/ }
253
+ /******/
254
+ /******/ // expose the modules object (__webpack_modules__)
255
+ /******/ __nuri_require__.m = __webpack_modules__;
256
+ /******/
257
+ /************************************************************************/
258
+ /******/ /* webpack/runtime/chunk loaded */
259
+ /******/ (() => {
260
+ /******/ var deferred = [];
261
+ /******/ __nuri_require__.O = (result, chunkIds, fn, priority) => {
262
+ /******/ if(chunkIds) {
263
+ /******/ priority = priority || 0;
264
+ /******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];
265
+ /******/ deferred[i] = [chunkIds, fn, priority];
266
+ /******/ return;
267
+ /******/ }
268
+ /******/ var notFulfilled = Infinity;
269
+ /******/ for (var i = 0; i < deferred.length; i++) {
270
+ /******/ var [chunkIds, fn, priority] = deferred[i];
271
+ /******/ var fulfilled = true;
272
+ /******/ for (var j = 0; j < chunkIds.length; j++) {
273
+ /******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__nuri_require__.O).every((key) => (__nuri_require__.O[key](chunkIds[j])))) {
274
+ /******/ chunkIds.splice(j--, 1);
275
+ /******/ } else {
276
+ /******/ fulfilled = false;
277
+ /******/ if(priority < notFulfilled) notFulfilled = priority;
278
+ /******/ }
279
+ /******/ }
280
+ /******/ if(fulfilled) {
281
+ /******/ deferred.splice(i--, 1)
282
+ /******/ var r = fn();
283
+ /******/ if (r !== undefined) result = r;
284
+ /******/ }
285
+ /******/ }
286
+ /******/ return result;
287
+ /******/ };
288
+ /******/ })();
289
+ /******/
290
+ /******/ /* webpack/runtime/define property getters */
291
+ /******/ (() => {
292
+ /******/ // define getter functions for harmony exports
293
+ /******/ __nuri_require__.d = (exports, definition) => {
294
+ /******/ for(var key in definition) {
295
+ /******/ if(__nuri_require__.o(definition, key) && !__nuri_require__.o(exports, key)) {
296
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
297
+ /******/ }
298
+ /******/ }
299
+ /******/ };
300
+ /******/ })();
301
+ /******/
302
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
303
+ /******/ (() => {
304
+ /******/ __nuri_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
305
+ /******/ })();
306
+ /******/
307
+ /******/ /* webpack/runtime/export webpack runtime */
308
+ /******/ export { __nuri_require__ };
309
+ /******/
310
+ /******/ /* webpack/runtime/import chunk loading */
311
+ /******/ (() => {
312
+ /******/ // no baseURI
313
+ /******/
314
+ /******/ // object to store loaded and loading chunks
315
+ /******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
316
+ /******/ // [resolve, Promise] = chunk loading, 0 = chunk loaded
317
+ /******/ var installedChunks = {
318
+ /******/ 9348: 0
319
+ /******/ };
320
+ /******/
321
+ /******/ var installChunk = (data) => {
322
+ /******/ var {__webpack_esm_ids__, __webpack_esm_modules__, __webpack_esm_runtime__} = data;
323
+ /******/ // add "modules" to the modules object,
324
+ /******/ // then flag all "ids" as loaded and fire callback
325
+ /******/ var moduleId, chunkId, i = 0;
326
+ /******/ for(moduleId in __webpack_esm_modules__) {
327
+ /******/ if(__nuri_require__.o(__webpack_esm_modules__, moduleId)) {
328
+ /******/ __nuri_require__.m[moduleId] = __webpack_esm_modules__[moduleId];
329
+ /******/ }
330
+ /******/ }
331
+ /******/ if(__webpack_esm_runtime__) __webpack_esm_runtime__(__nuri_require__);
332
+ /******/ for(;i < __webpack_esm_ids__.length; i++) {
333
+ /******/ chunkId = __webpack_esm_ids__[i];
334
+ /******/ if(__nuri_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
335
+ /******/ installedChunks[chunkId][0]();
336
+ /******/ }
337
+ /******/ installedChunks[__webpack_esm_ids__[i]] = 0;
338
+ /******/ }
339
+ /******/ __nuri_require__.O();
340
+ /******/ }
341
+ /******/
342
+ /******/ // no chunk on demand loading
343
+ /******/
344
+ /******/ // no prefetching
345
+ /******/
346
+ /******/ // no preloaded
347
+ /******/
348
+ /******/ __nuri_require__.C = installChunk;
349
+ /******/
350
+ /******/ __nuri_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);
351
+ /******/ // no HMR
352
+ /******/
353
+ /******/ // no HMR manifest
354
+ /******/ })();
355
+ /******/
356
+ /************************************************************************/
357
+ /******/
358
+ /******/ import * as __webpack_chunk_1__ from "./chunk-3274.js";
359
+ /******/ __nuri_require__.C(__webpack_chunk_1__);
360
+ /******/ import * as __webpack_chunk_2__ from "./chunk-7335.js";
361
+ /******/ __nuri_require__.C(__webpack_chunk_2__);
362
+ /******/ import * as __webpack_chunk_3__ from "./chunk-4560.js";
363
+ /******/ __nuri_require__.C(__webpack_chunk_3__);
364
+ /******/ import * as __webpack_chunk_4__ from "./chunk-2777.js";
365
+ /******/ __nuri_require__.C(__webpack_chunk_4__);
366
+ /******/ import * as __webpack_chunk_5__ from "./chunk-4577.js";
367
+ /******/ __nuri_require__.C(__webpack_chunk_5__);
368
+ /******/ import * as __webpack_chunk_6__ from "./chunk-3091.js";
369
+ /******/ __nuri_require__.C(__webpack_chunk_6__);
370
+ /******/
371
+ /******/ // startup
372
+ /******/ // Load entry module and return exports
373
+ /******/ // This entry module depends on other loaded chunks and execution need to be delayed
374
+ /******/ var __webpack_exports__ = __nuri_require__.O(undefined, [3274,7335,4560,2777,4577,3091], () => (__nuri_require__(2109)))
375
+ /******/ __webpack_exports__ = __nuri_require__.O(__webpack_exports__);
376
+ /******/ const __webpack_exports__default = __webpack_exports__.A;
377
+ /******/ export { __webpack_exports__default as default };
378
+ /******/
@@ -0,0 +1,7 @@
1
+ import { CSSProperties, RefObject } from 'react';
2
+ /**
3
+ * 고른 항목 아래로 옮겨 가는 인디케이터의 left·width. 인디케이터는 항목들과 같은 부모 안에 둔다.
4
+ * selector 는 그 부모 안에서 고른 항목 하나를 찾는다(예 `[role="tab"][data-state="active"]`).
5
+ * Radix 가 data-state 를 바꾸는 것을 보고 다시 잰다.
6
+ */
7
+ export declare const useIndicatorPosition: (indicatorRef: RefObject<HTMLElement | null>, selector: string) => CSSProperties;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * 화면 키보드가 가린 화면 아래 높이(px). `visualViewport` 가 없거나 꺼져 있으면 0 이다.
3
+ * 레이아웃 뷰포트(innerHeight)에서 보이는 뷰포트의 높이와 위 오프셋을 빼면 아래에 가려진 만큼이 남는다.
4
+ */
5
+ export declare const useKeyboardInset: (enabled?: boolean) => number;
@@ -0,0 +1,9 @@
1
+ import { RefObject } from 'react';
2
+ /**
3
+ * 가로로 넘친 목록이 처음에서 밀려났는지와 처음으로 되돌리는 함수. 밀려났을 때만 "처음으로" 화살표를 그린다.
4
+ * Tabs·SegmentedControl(fluid) 이 쓴다.
5
+ */
6
+ export declare const useScrollStart: (listRef: RefObject<HTMLElement | null>) => {
7
+ scrolled: boolean;
8
+ scrollToStart: () => void;
9
+ };
@@ -0,0 +1,6 @@
1
+ import { ReactNode } from 'react';
2
+ /**
3
+ * stagger 를 받은 목록이 자식 요소마다 .motion-reveal 과 순서(--i)를 단다. 자식은 className·style 을 자기 루트에 합치는 컴포넌트다.
4
+ * 첫 렌더에 있던 자식만 차례로 나타난다. 나중에 더해진 자식은 바로 보인다.
5
+ */
6
+ export declare const useRevealChildren: (children: ReactNode, stagger: boolean | number | undefined) => (string | number | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | Iterable<ReactNode>)[] | null | undefined;
@@ -1,4 +1,6 @@
1
1
  import { CSSProperties } from 'react';
2
+ /** 컴포넌트 CSS 가 var() 로 읽는 변수. 값은 단위 없이 그대로 들어간다(React 는 사용자 변수에 px 을 붙이지 않는다) */
3
+ export type CSSVariable = `--${string}`;
2
4
  export type ClassNamePropsType<T extends readonly any[] = readonly any[]> = {
3
5
  type: 'className';
4
6
  className: string;
@@ -7,13 +9,13 @@ export type ClassNamePropsType<T extends readonly any[] = readonly any[]> = {
7
9
  };
8
10
  export type CSSPropsTypeWithValues<T extends readonly any[] = readonly any[]> = {
9
11
  type: 'css';
10
- key: keyof CSSProperties;
12
+ key: keyof CSSProperties | CSSVariable;
11
13
  values: T;
12
14
  default?: T[number];
13
15
  };
14
16
  export type CSSPropsTypeWithoutValues<T extends string | number> = {
15
17
  type: 'css';
16
- key: keyof CSSProperties;
18
+ key: keyof CSSProperties | CSSVariable;
17
19
  default?: T;
18
20
  };
19
21
  export type StylePropsType<T extends readonly any[] = readonly any[]> = {