@nurihaus/web-design-system 3.0.3 → 3.1.1

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 (99) hide show
  1. package/dist/ai/components.md +305 -11
  2. package/dist/ai/tokens.md +38 -13
  3. package/dist/avatar.js +10 -9
  4. package/dist/breadcrumb.js +364 -0
  5. package/dist/check-box.js +16 -35
  6. package/dist/chunk-149.js +4 -4
  7. package/dist/chunk-298.js +1 -1
  8. package/dist/chunk-302.js +4 -4
  9. package/dist/chunk-309.js +1 -1
  10. package/dist/chunk-364.js +2 -2
  11. package/dist/chunk-387.js +23 -4
  12. package/dist/chunk-436.js +34 -0
  13. package/dist/chunk-558.js +6 -6
  14. package/dist/chunk-563.js +7 -7
  15. package/dist/chunk-657.js +143 -0
  16. package/dist/chunk-713.js +39 -0
  17. package/dist/chunk-739.js +6 -6
  18. package/dist/chunk-77.js +35 -0
  19. package/dist/chunk-777.js +2 -2
  20. package/dist/chunk-910.js +64 -0
  21. package/dist/chunk-917.js +1 -1
  22. package/dist/chunk-933.js +4 -4
  23. package/dist/chunk-976.js +2 -2
  24. package/dist/collapsible-menu.js +7 -7
  25. package/dist/components/breadcrumb/base-breadcrumb.d.ts +19 -0
  26. package/dist/components/breadcrumb/breadcrumb-props.d.ts +4 -0
  27. package/dist/components/breadcrumb/breadcrumb-type.d.ts +33 -0
  28. package/dist/components/breadcrumb/breadcrumb.d.ts +4 -0
  29. package/dist/components/breadcrumb/breadcrumb.stories.d.ts +25 -0
  30. package/dist/components/check-box/base-check-box.d.ts +1 -1
  31. package/dist/components/drawer/base-drawer.d.ts +15 -0
  32. package/dist/components/drawer/drawer-props.d.ts +11 -0
  33. package/dist/components/drawer/drawer-type.d.ts +28 -0
  34. package/dist/components/drawer/drawer.d.ts +4 -0
  35. package/dist/components/drawer/drawer.stories.d.ts +34 -0
  36. package/dist/components/drop-down/drop-down-props.d.ts +2 -2
  37. package/dist/components/drop-down/drop-down.stories.d.ts +1 -1
  38. package/dist/components/elements/text/text-props.d.ts +1 -1
  39. package/dist/components/elements/text/text.stories.d.ts +1 -1
  40. package/dist/components/modal/base-modal.d.ts +4 -1
  41. package/dist/components/modal/modal-props.d.ts +3 -0
  42. package/dist/components/modal/modal-type.d.ts +18 -4
  43. package/dist/components/modal/modal-with-double-button.stories.d.ts +22 -0
  44. package/dist/components/modal/modal.d.ts +4 -0
  45. package/dist/components/modal/modal.stories.d.ts +11 -6
  46. package/dist/components/pagination/base-pagination.d.ts +9 -0
  47. package/dist/components/pagination/pagination-props.d.ts +4 -0
  48. package/dist/components/pagination/pagination-type.d.ts +20 -0
  49. package/dist/components/pagination/pagination.d.ts +4 -0
  50. package/dist/components/pagination/pagination.stories.d.ts +25 -0
  51. package/dist/components/skeleton/base-skeleton.d.ts +4 -0
  52. package/dist/components/skeleton/skeleton-props.d.ts +15 -0
  53. package/dist/components/skeleton/skeleton-type.d.ts +12 -0
  54. package/dist/components/skeleton/skeleton.d.ts +4 -0
  55. package/dist/components/skeleton/skeleton.stories.d.ts +327 -0
  56. package/dist/components/switch/base-switch.d.ts +11 -0
  57. package/dist/components/switch/switch-props.d.ts +4 -0
  58. package/dist/components/switch/switch-type.d.ts +19 -0
  59. package/dist/components/switch/switch.d.ts +4 -0
  60. package/dist/components/switch/switch.stories.d.ts +24 -0
  61. package/dist/components/text-area/base-text-area.d.ts +10 -0
  62. package/dist/components/text-area/text-area-props.d.ts +12 -0
  63. package/dist/components/text-area/text-area-type.d.ts +34 -0
  64. package/dist/components/text-area/text-area.d.ts +4 -0
  65. package/dist/components/text-area/text-area.stories.d.ts +32 -0
  66. package/dist/components/text-field/text-field-props.d.ts +2 -2
  67. package/dist/components/text-field/text-field.stories.d.ts +1 -1
  68. package/dist/components/toast/base-toast.d.ts +20 -0
  69. package/dist/components/toast/toast-props.d.ts +18 -0
  70. package/dist/components/toast/toast-type.d.ts +45 -0
  71. package/dist/components/toast/toast.d.ts +5 -0
  72. package/dist/components/toast/toast.stories.d.ts +310 -0
  73. package/dist/components.css +1089 -56
  74. package/dist/cta-button.js +12 -11
  75. package/dist/data-table.js +6 -6
  76. package/dist/drawer.js +390 -0
  77. package/dist/drop-down.js +15 -29
  78. package/dist/helpers/hooks/useExternalState.d.ts +5 -0
  79. package/dist/icon-text-badge.js +11 -11
  80. package/dist/icon-text-option-badge.js +10 -10
  81. package/dist/index.d.ts +16 -0
  82. package/dist/index.js +2097 -477
  83. package/dist/loading.js +8 -8
  84. package/dist/modal-with-double-button.js +60 -255
  85. package/dist/modal.js +288 -0
  86. package/dist/option-badge.js +11 -11
  87. package/dist/pagination.js +412 -0
  88. package/dist/radio.js +10 -10
  89. package/dist/skeleton.js +331 -0
  90. package/dist/styles.css +921 -29
  91. package/dist/switch.js +349 -0
  92. package/dist/tabs.js +6 -6
  93. package/dist/text-area.js +374 -0
  94. package/dist/text-field.js +7 -7
  95. package/dist/text.js +8 -8
  96. package/dist/toast.js +497 -0
  97. package/dist/tokens.css +32 -5
  98. package/dist/tooltip.js +9 -9
  99. package/package.json +33 -1
@@ -0,0 +1,364 @@
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
+ /***/ 1986
7
+ (__unused_webpack_module, __webpack_exports__, __nuri_require__) {
8
+
9
+
10
+ // EXPORTS
11
+ __nuri_require__.d(__webpack_exports__, {
12
+ A: () => (/* binding */ breadcrumb)
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: ./assets/icons/chevronDown.svg
20
+ var chevronDown = __nuri_require__(9436);
21
+ // EXTERNAL MODULE: ./helpers/utils/classNames.js
22
+ var classNames = __nuri_require__(3274);
23
+ // EXTERNAL MODULE: ./helpers/utils/getMergedProps.ts
24
+ var getMergedProps = __nuri_require__(7335);
25
+ // EXTERNAL MODULE: ./components/core/composer/index.tsx
26
+ var composer = __nuri_require__(2777);
27
+ ;// ./components/breadcrumb/base-breadcrumb.tsx
28
+ var __assign = undefined && undefined.__assign || function () {
29
+ __assign = Object.assign || function (t) {
30
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
31
+ s = arguments[i];
32
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
33
+ }
34
+ return t;
35
+ };
36
+ return __assign.apply(this, arguments);
37
+ };
38
+ var __rest = undefined && undefined.__rest || function (s, e) {
39
+ var t = {};
40
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
41
+ if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
42
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
43
+ }
44
+ return t;
45
+ };
46
+
47
+
48
+
49
+
50
+ var BreadcrumbRootBase = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.forwardRef)(function (props, ref) {
51
+ var className = props.className,
52
+ restProps = __rest(props, ["className"]);
53
+ return (0,jsx_runtime_.jsx)("nav", __assign({
54
+ ref: ref,
55
+ className: (0,classNames/* classNames */.x)('nuri-theme base-breadcrumb', className),
56
+ "aria-label": 'breadcrumb'
57
+ }, restProps));
58
+ });
59
+ BreadcrumbRootBase.displayName = 'BreadcrumbRoot';
60
+ var BreadcrumbList = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.forwardRef)(function (props, ref) {
61
+ var className = props.className,
62
+ restProps = __rest(props, ["className"]);
63
+ return (0,jsx_runtime_.jsx)("ol", __assign({
64
+ ref: ref,
65
+ className: (0,classNames/* classNames */.x)('nuri-theme base-breadcrumb list', className)
66
+ }, restProps));
67
+ });
68
+ BreadcrumbList.displayName = 'BreadcrumbList';
69
+ var BreadcrumbItem = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.forwardRef)(function (props, ref) {
70
+ var className = props.className,
71
+ restProps = __rest(props, ["className"]);
72
+ return (0,jsx_runtime_.jsx)("li", __assign({
73
+ ref: ref,
74
+ className: (0,classNames/* classNames */.x)('nuri-theme base-breadcrumb item', className)
75
+ }, restProps));
76
+ });
77
+ BreadcrumbItem.displayName = 'BreadcrumbItem';
78
+ var BreadcrumbLink = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.forwardRef)(function (props, ref) {
79
+ var _a = props.asChild,
80
+ asChild = _a === void 0 ? false : _a,
81
+ className = props.className,
82
+ restProps = __rest(props, ["asChild", "className"]);
83
+ var Comp = asChild ? composer/* default */.A : 'a';
84
+ return (0,jsx_runtime_.jsx)(Comp, __assign({
85
+ ref: ref,
86
+ className: (0,classNames/* classNames */.x)('nuri-theme base-breadcrumb link', className)
87
+ }, restProps));
88
+ });
89
+ BreadcrumbLink.displayName = 'BreadcrumbLink';
90
+ var BreadcrumbPage = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.forwardRef)(function (props, ref) {
91
+ var className = props.className,
92
+ restProps = __rest(props, ["className"]);
93
+ return (0,jsx_runtime_.jsx)("span", __assign({
94
+ ref: ref,
95
+ className: (0,classNames/* classNames */.x)('nuri-theme base-breadcrumb page', className),
96
+ "aria-current": 'page'
97
+ }, restProps));
98
+ });
99
+ BreadcrumbPage.displayName = 'BreadcrumbPage';
100
+ var BreadcrumbSeparator = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.forwardRef)(function (props, ref) {
101
+ var className = props.className,
102
+ restProps = __rest(props, ["className"]);
103
+ return (0,jsx_runtime_.jsx)("li", __assign({
104
+ ref: ref,
105
+ className: (0,classNames/* classNames */.x)('nuri-theme base-breadcrumb separator', className),
106
+ role: 'presentation',
107
+ "aria-hidden": 'true'
108
+ }, restProps));
109
+ });
110
+ BreadcrumbSeparator.displayName = 'BreadcrumbSeparator';
111
+ var BreadcrumbRoot = Object.assign(BreadcrumbRootBase, {
112
+ List: BreadcrumbList,
113
+ Item: BreadcrumbItem,
114
+ Link: BreadcrumbLink,
115
+ Page: BreadcrumbPage,
116
+ Separator: BreadcrumbSeparator
117
+ });
118
+ /* harmony default export */ const base_breadcrumb = (BreadcrumbRoot);
119
+ // EXTERNAL MODULE: ./helpers/props/common-props.ts
120
+ var common_props = __nuri_require__(7298);
121
+ ;// ./components/breadcrumb/breadcrumb-props.ts
122
+
123
+ var sizes = ['xs', 's', 'm', 'l', 'xl'];
124
+ var breadcrumbProps = {
125
+ size: (0,common_props/* sizeProp */.lw)(sizes, 'm')
126
+ };
127
+ ;// ./components/breadcrumb/breadcrumb.tsx
128
+
129
+
130
+
131
+
132
+
133
+
134
+
135
+ var Breadcrumb = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.forwardRef)(function (props, ref) {
136
+ var _a = (0,getMergedProps/* getMergedProps */.p)(props, breadcrumbProps),
137
+ className = _a.className,
138
+ style = _a.style,
139
+ items = _a.items,
140
+ onItemClick = _a.onItemClick,
141
+ separator = _a.separator,
142
+ LinkComponent = _a.linkComponent;
143
+ var lastIndex = items.length - 1;
144
+ var separatorNode = separator !== null && separator !== void 0 ? separator : (0,jsx_runtime_.jsx)(chevronDown/* default */.A, {
145
+ className: 'breadcrumb-chevron'
146
+ });
147
+ return (0,jsx_runtime_.jsx)(base_breadcrumb, {
148
+ ref: ref,
149
+ className: (0,classNames/* classNames */.x)(className, 'breadcrumb'),
150
+ style: style,
151
+ children: (0,jsx_runtime_.jsx)(base_breadcrumb.List, {
152
+ className: 'breadcrumb-list',
153
+ children: items.map(function (item, index) {
154
+ var isLast = index === lastIndex;
155
+ return (0,jsx_runtime_.jsxs)(external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.Fragment, {
156
+ children: [(0,jsx_runtime_.jsx)(base_breadcrumb.Item, {
157
+ className: 'breadcrumb-item',
158
+ children: isLast ? (0,jsx_runtime_.jsx)(base_breadcrumb.Page, {
159
+ className: 'breadcrumb-page',
160
+ children: item.label
161
+ }) : item.href && LinkComponent ? (0,jsx_runtime_.jsx)(base_breadcrumb.Link, {
162
+ asChild: true,
163
+ className: 'breadcrumb-link',
164
+ onClick: function onClick() {
165
+ return onItemClick === null || onItemClick === void 0 ? void 0 : onItemClick(item.id);
166
+ },
167
+ children: (0,jsx_runtime_.jsx)(LinkComponent, {
168
+ href: item.href,
169
+ children: item.label
170
+ })
171
+ }) : item.href ? (0,jsx_runtime_.jsx)(base_breadcrumb.Link, {
172
+ className: 'breadcrumb-link',
173
+ href: item.href,
174
+ onClick: function onClick() {
175
+ return onItemClick === null || onItemClick === void 0 ? void 0 : onItemClick(item.id);
176
+ },
177
+ children: item.label
178
+ }) : (0,jsx_runtime_.jsx)("span", {
179
+ className: 'breadcrumb-text',
180
+ children: item.label
181
+ })
182
+ }), !isLast && (0,jsx_runtime_.jsx)(base_breadcrumb.Separator, {
183
+ className: 'breadcrumb-separator',
184
+ children: separatorNode
185
+ })]
186
+ }, item.id);
187
+ })
188
+ })
189
+ });
190
+ });
191
+ Breadcrumb.displayName = 'Breadcrumb';
192
+ /* harmony default export */ const breadcrumb = (Breadcrumb);
193
+
194
+ /***/ },
195
+
196
+ /***/ 1041
197
+ (module, __unused_webpack_exports, __nuri_require__) {
198
+
199
+ var x = (y) => {
200
+ var x = {}; __nuri_require__.d(x, y); return x
201
+ }
202
+ var y = (x) => (() => (x))
203
+ module.exports = x({ ["Children"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.Children), ["Fragment"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.Fragment), ["cloneElement"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.cloneElement), ["createElement"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.createElement), ["forwardRef"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.forwardRef), ["isValidElement"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.isValidElement) });
204
+
205
+ /***/ },
206
+
207
+ /***/ 612
208
+ (module, __unused_webpack_exports, __nuri_require__) {
209
+
210
+ var x = (y) => {
211
+ var x = {}; __nuri_require__.d(x, y); return x
212
+ }
213
+ var y = (x) => (() => (x))
214
+ module.exports = x({ ["jsx"]: () => (__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_179142b8__.jsx), ["jsxs"]: () => (__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_179142b8__.jsxs) });
215
+
216
+ /***/ }
217
+
218
+ /******/ });
219
+ /************************************************************************/
220
+ /******/ // The module cache
221
+ /******/ var __webpack_module_cache__ = {};
222
+ /******/
223
+ /******/ // The require function
224
+ /******/ function __nuri_require__(moduleId) {
225
+ /******/ // Check if module is in cache
226
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
227
+ /******/ if (cachedModule !== undefined) {
228
+ /******/ return cachedModule.exports;
229
+ /******/ }
230
+ /******/ // Create a new module (and put it into the cache)
231
+ /******/ var module = __webpack_module_cache__[moduleId] = {
232
+ /******/ // no module.id needed
233
+ /******/ // no module.loaded needed
234
+ /******/ exports: {}
235
+ /******/ };
236
+ /******/
237
+ /******/ // Execute the module function
238
+ /******/ __webpack_modules__[moduleId](module, module.exports, __nuri_require__);
239
+ /******/
240
+ /******/ // Return the exports of the module
241
+ /******/ return module.exports;
242
+ /******/ }
243
+ /******/
244
+ /******/ // expose the modules object (__webpack_modules__)
245
+ /******/ __nuri_require__.m = __webpack_modules__;
246
+ /******/
247
+ /************************************************************************/
248
+ /******/ /* webpack/runtime/chunk loaded */
249
+ /******/ (() => {
250
+ /******/ var deferred = [];
251
+ /******/ __nuri_require__.O = (result, chunkIds, fn, priority) => {
252
+ /******/ if(chunkIds) {
253
+ /******/ priority = priority || 0;
254
+ /******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];
255
+ /******/ deferred[i] = [chunkIds, fn, priority];
256
+ /******/ return;
257
+ /******/ }
258
+ /******/ var notFulfilled = Infinity;
259
+ /******/ for (var i = 0; i < deferred.length; i++) {
260
+ /******/ var [chunkIds, fn, priority] = deferred[i];
261
+ /******/ var fulfilled = true;
262
+ /******/ for (var j = 0; j < chunkIds.length; j++) {
263
+ /******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__nuri_require__.O).every((key) => (__nuri_require__.O[key](chunkIds[j])))) {
264
+ /******/ chunkIds.splice(j--, 1);
265
+ /******/ } else {
266
+ /******/ fulfilled = false;
267
+ /******/ if(priority < notFulfilled) notFulfilled = priority;
268
+ /******/ }
269
+ /******/ }
270
+ /******/ if(fulfilled) {
271
+ /******/ deferred.splice(i--, 1)
272
+ /******/ var r = fn();
273
+ /******/ if (r !== undefined) result = r;
274
+ /******/ }
275
+ /******/ }
276
+ /******/ return result;
277
+ /******/ };
278
+ /******/ })();
279
+ /******/
280
+ /******/ /* webpack/runtime/define property getters */
281
+ /******/ (() => {
282
+ /******/ // define getter functions for harmony exports
283
+ /******/ __nuri_require__.d = (exports, definition) => {
284
+ /******/ for(var key in definition) {
285
+ /******/ if(__nuri_require__.o(definition, key) && !__nuri_require__.o(exports, key)) {
286
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
287
+ /******/ }
288
+ /******/ }
289
+ /******/ };
290
+ /******/ })();
291
+ /******/
292
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
293
+ /******/ (() => {
294
+ /******/ __nuri_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
295
+ /******/ })();
296
+ /******/
297
+ /******/ /* webpack/runtime/export webpack runtime */
298
+ /******/ export { __nuri_require__ };
299
+ /******/
300
+ /******/ /* webpack/runtime/import chunk loading */
301
+ /******/ (() => {
302
+ /******/ // no baseURI
303
+ /******/
304
+ /******/ // object to store loaded and loading chunks
305
+ /******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
306
+ /******/ // [resolve, Promise] = chunk loading, 0 = chunk loaded
307
+ /******/ var installedChunks = {
308
+ /******/ 476: 0
309
+ /******/ };
310
+ /******/
311
+ /******/ var installChunk = (data) => {
312
+ /******/ var {__webpack_esm_ids__, __webpack_esm_modules__, __webpack_esm_runtime__} = data;
313
+ /******/ // add "modules" to the modules object,
314
+ /******/ // then flag all "ids" as loaded and fire callback
315
+ /******/ var moduleId, chunkId, i = 0;
316
+ /******/ for(moduleId in __webpack_esm_modules__) {
317
+ /******/ if(__nuri_require__.o(__webpack_esm_modules__, moduleId)) {
318
+ /******/ __nuri_require__.m[moduleId] = __webpack_esm_modules__[moduleId];
319
+ /******/ }
320
+ /******/ }
321
+ /******/ if(__webpack_esm_runtime__) __webpack_esm_runtime__(__nuri_require__);
322
+ /******/ for(;i < __webpack_esm_ids__.length; i++) {
323
+ /******/ chunkId = __webpack_esm_ids__[i];
324
+ /******/ if(__nuri_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
325
+ /******/ installedChunks[chunkId][0]();
326
+ /******/ }
327
+ /******/ installedChunks[__webpack_esm_ids__[i]] = 0;
328
+ /******/ }
329
+ /******/ __nuri_require__.O();
330
+ /******/ }
331
+ /******/
332
+ /******/ // no chunk on demand loading
333
+ /******/
334
+ /******/ // no prefetching
335
+ /******/
336
+ /******/ // no preloaded
337
+ /******/
338
+ /******/ __nuri_require__.C = installChunk;
339
+ /******/
340
+ /******/ __nuri_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);
341
+ /******/ // no HMR
342
+ /******/
343
+ /******/ // no HMR manifest
344
+ /******/ })();
345
+ /******/
346
+ /************************************************************************/
347
+ /******/
348
+ /******/ import * as __webpack_chunk_1__ from "./chunk-364.js";
349
+ /******/ __nuri_require__.C(__webpack_chunk_1__);
350
+ /******/ import * as __webpack_chunk_2__ from "./chunk-777.js";
351
+ /******/ __nuri_require__.C(__webpack_chunk_2__);
352
+ /******/ import * as __webpack_chunk_3__ from "./chunk-298.js";
353
+ /******/ __nuri_require__.C(__webpack_chunk_3__);
354
+ /******/ import * as __webpack_chunk_4__ from "./chunk-436.js";
355
+ /******/ __nuri_require__.C(__webpack_chunk_4__);
356
+ /******/
357
+ /******/ // startup
358
+ /******/ // Load entry module and return exports
359
+ /******/ // This entry module depends on other loaded chunks and execution need to be delayed
360
+ /******/ var __webpack_exports__ = __nuri_require__.O(undefined, [364,777,298,436], () => (__nuri_require__(1986)))
361
+ /******/ __webpack_exports__ = __nuri_require__.O(__webpack_exports__);
362
+ /******/ const __webpack_exports__default = __webpack_exports__.A;
363
+ /******/ export { __webpack_exports__default as default };
364
+ /******/
package/dist/check-box.js CHANGED
@@ -4,7 +4,7 @@ import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
4
4
  import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_179142b8__ from "react/jsx-runtime";
5
5
  /******/ var __webpack_modules__ = ({
6
6
 
7
- /***/ 393
7
+ /***/ 445
8
8
  (__unused_webpack_module, __webpack_exports__, __nuri_require__) {
9
9
 
10
10
 
@@ -16,34 +16,17 @@ __nuri_require__.d(__webpack_exports__, {
16
16
  // EXTERNAL MODULE: external {"root":"jsx-runtime","commonjs2":"react/jsx-runtime","commonjs":"react/jsx-runtime","amd":"react/jsx-runtime","module":"react/jsx-runtime"}
17
17
  var jsx_runtime_ = __nuri_require__(612);
18
18
  // EXTERNAL MODULE: external {"root":"React","commonjs2":"react","commonjs":"react","amd":"react","module":"react"}
19
- var external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_ = __nuri_require__(41);
20
- ;// ./assets/icons/check.svg
21
- var _path;
22
- function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
23
-
24
- var SvgCheck = function SvgCheck(props) {
25
- return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.createElement("svg", _extends({
26
- xmlns: "http://www.w3.org/2000/svg",
27
- width: 16,
28
- height: 16,
29
- fill: "none"
30
- }, props), _path || (_path = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.createElement("path", {
31
- stroke: "#fff",
32
- strokeLinecap: "round",
33
- strokeLinejoin: "round",
34
- strokeWidth: 1.5,
35
- d: "M2.667 8.8 5.714 12l7.62-8"
36
- })));
37
- };
38
- /* harmony default export */ const check = (SvgCheck);
19
+ var external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_ = __nuri_require__(1041);
20
+ // EXTERNAL MODULE: ./assets/icons/check.svg
21
+ var check = __nuri_require__(5077);
39
22
  // EXTERNAL MODULE: ./helpers/utils/classNames.js
40
- var classNames = __nuri_require__(274);
23
+ var classNames = __nuri_require__(3274);
41
24
  // EXTERNAL MODULE: ./helpers/utils/getMergedProps.ts
42
- var getMergedProps = __nuri_require__(335);
25
+ var getMergedProps = __nuri_require__(7335);
43
26
  // EXTERNAL MODULE: external {"root":"RadixUI","commonjs2":"radix-ui","commonjs":"radix-ui","amd":"radix-ui","module":"radix-ui"}
44
27
  var external_root_RadixUI_commonjs2_radix_ui_commonjs_radix_ui_amd_radix_ui_module_radix_ui_ = __nuri_require__(0);
45
28
  // EXTERNAL MODULE: ./components/core/composer/index.tsx
46
- var composer = __nuri_require__(777);
29
+ var composer = __nuri_require__(2777);
47
30
  ;// ./components/check-box/base-check-box.tsx
48
31
  var __assign = undefined && undefined.__assign || function () {
49
32
  __assign = Object.assign || function (t) {
@@ -69,7 +52,6 @@ var __rest = undefined && undefined.__rest || function (s, e) {
69
52
 
70
53
 
71
54
  var CheckBoxContext = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.createContext)({
72
- id: '',
73
55
  disabled: false
74
56
  });
75
57
  var CheckBoxRootBase = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.forwardRef)(function (props, ref) {
@@ -88,7 +70,6 @@ var CheckBoxRootBase = /*#__PURE__*/(0,external_root_React_commonjs2_react_commo
88
70
  onCheckedChange: onChange,
89
71
  children: (0,jsx_runtime_.jsx)(CheckBoxContext.Provider, {
90
72
  value: {
91
- id: id,
92
73
  disabled: disabled
93
74
  },
94
75
  children: children
@@ -96,19 +77,17 @@ var CheckBoxRootBase = /*#__PURE__*/(0,external_root_React_commonjs2_react_commo
96
77
  });
97
78
  });
98
79
  CheckBoxRootBase.displayName = 'CheckBoxRoot';
80
+ // 라벨은 버튼 안에 있어 클릭이 버튼으로 전파된다. label 요소(htmlFor)로 두면 라벨 활성화가 버튼을 한 번 더 눌러 되돌리므로 span 이다
99
81
  var CheckBoxLabel = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.forwardRef)(function (props, ref) {
100
82
  var children = props.children,
101
83
  asChild = props.asChild,
102
84
  preventChangeOnClick = props.preventChangeOnClick,
103
85
  className = props.className;
104
- var _a = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.useContext)(CheckBoxContext),
105
- id = _a.id,
106
- disabled = _a.disabled;
107
- var Comp = asChild ? composer/* default */.A : 'label';
86
+ var disabled = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.useContext)(CheckBoxContext).disabled;
87
+ var Comp = asChild ? composer/* default */.A : 'span';
108
88
  return (0,jsx_runtime_.jsx)(Comp, {
109
89
  ref: ref,
110
90
  className: (0,classNames/* classNames */.x)('nuri-theme base-check-box label', className),
111
- htmlFor: id,
112
91
  "data-disabled": disabled || undefined,
113
92
  onClick: function onClick(e) {
114
93
  if (preventChangeOnClick) {
@@ -139,7 +118,7 @@ var CheckBoxRoot = Object.assign(CheckBoxRootBase, {
139
118
  });
140
119
  /* harmony default export */ const base_check_box = (CheckBoxRoot);
141
120
  // EXTERNAL MODULE: ./helpers/props/common-props.ts
142
- var common_props = __nuri_require__(298);
121
+ var common_props = __nuri_require__(7298);
143
122
  ;// ./components/check-box/check-box-props.ts
144
123
 
145
124
  var sizes = ['s', 'm', 'l'];
@@ -187,7 +166,7 @@ var CheckBox = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_reac
187
166
  "data-disabled": restProps.disabled,
188
167
  children: (0,jsx_runtime_.jsx)(base_check_box.Indicator, {
189
168
  className: 'check-box-indicator',
190
- children: (0,jsx_runtime_.jsx)(check, {})
169
+ children: (0,jsx_runtime_.jsx)(check/* default */.A, {})
191
170
  })
192
171
  }), label && (0,jsx_runtime_.jsx)(base_check_box.Label, {
193
172
  children: label
@@ -210,7 +189,7 @@ module.exports = x({ ["Checkbox"]: () => (__WEBPACK_EXTERNAL_MODULE_radix_ui_3bc
210
189
 
211
190
  /***/ },
212
191
 
213
- /***/ 41
192
+ /***/ 1041
214
193
  (module, __unused_webpack_exports, __nuri_require__) {
215
194
 
216
195
  var x = (y) => {
@@ -368,11 +347,13 @@ module.exports = x({ ["jsx"]: () => (__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime
368
347
  /******/ __nuri_require__.C(__webpack_chunk_2__);
369
348
  /******/ import * as __webpack_chunk_3__ from "./chunk-298.js";
370
349
  /******/ __nuri_require__.C(__webpack_chunk_3__);
350
+ /******/ import * as __webpack_chunk_4__ from "./chunk-77.js";
351
+ /******/ __nuri_require__.C(__webpack_chunk_4__);
371
352
  /******/
372
353
  /******/ // startup
373
354
  /******/ // Load entry module and return exports
374
355
  /******/ // This entry module depends on other loaded chunks and execution need to be delayed
375
- /******/ var __webpack_exports__ = __nuri_require__.O(undefined, [364,777,298], () => (__nuri_require__(393)))
356
+ /******/ var __webpack_exports__ = __nuri_require__.O(undefined, [364,777,298,77], () => (__nuri_require__(445)))
376
357
  /******/ __webpack_exports__ = __nuri_require__.O(__webpack_exports__);
377
358
  /******/ const __webpack_exports__default = __webpack_exports__.A;
378
359
  /******/ export { __webpack_exports__default as default };
package/dist/chunk-149.js CHANGED
@@ -3,16 +3,16 @@ export const __webpack_esm_id__ = 149;
3
3
  export const __webpack_esm_ids__ = [149];
4
4
  export const __webpack_esm_modules__ = {
5
5
 
6
- /***/ 149
6
+ /***/ 6149
7
7
  (__unused_webpack_module, __webpack_exports__, __nuri_require__) {
8
8
 
9
9
  /* harmony export */ __nuri_require__.d(__webpack_exports__, {
10
10
  /* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
11
11
  /* harmony export */ });
12
12
  /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __nuri_require__(612);
13
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __nuri_require__(41);
14
- /* harmony import */ var _helpers_utils_classNames__WEBPACK_IMPORTED_MODULE_2__ = __nuri_require__(274);
15
- /* harmony import */ var _core_composer__WEBPACK_IMPORTED_MODULE_3__ = __nuri_require__(777);
13
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __nuri_require__(1041);
14
+ /* harmony import */ var _helpers_utils_classNames__WEBPACK_IMPORTED_MODULE_2__ = __nuri_require__(3274);
15
+ /* harmony import */ var _core_composer__WEBPACK_IMPORTED_MODULE_3__ = __nuri_require__(2777);
16
16
  var __assign = undefined && undefined.__assign || function () {
17
17
  __assign = Object.assign || function (t) {
18
18
  for (var s, i = 1, n = arguments.length; i < n; i++) {
package/dist/chunk-298.js CHANGED
@@ -3,7 +3,7 @@ export const __webpack_esm_id__ = 298;
3
3
  export const __webpack_esm_ids__ = [298,917];
4
4
  export const __webpack_esm_modules__ = {
5
5
 
6
- /***/ 298
6
+ /***/ 7298
7
7
  (__unused_webpack_module, __webpack_exports__, __nuri_require__) {
8
8
 
9
9
  /* harmony export */ __nuri_require__.d(__webpack_exports__, {
package/dist/chunk-302.js CHANGED
@@ -3,7 +3,7 @@ export const __webpack_esm_id__ = 302;
3
3
  export const __webpack_esm_ids__ = [302];
4
4
  export const __webpack_esm_modules__ = {
5
5
 
6
- /***/ 302
6
+ /***/ 6302
7
7
  (__unused_webpack_module, __webpack_exports__, __nuri_require__) {
8
8
 
9
9
 
@@ -15,11 +15,11 @@ __nuri_require__.d(__webpack_exports__, {
15
15
  // EXTERNAL MODULE: external {"root":"jsx-runtime","commonjs2":"react/jsx-runtime","commonjs":"react/jsx-runtime","amd":"react/jsx-runtime","module":"react/jsx-runtime"}
16
16
  var jsx_runtime_ = __nuri_require__(612);
17
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__(41);
18
+ var external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_ = __nuri_require__(1041);
19
19
  // EXTERNAL MODULE: ./helpers/utils/classNames.js
20
- var classNames = __nuri_require__(274);
20
+ var classNames = __nuri_require__(3274);
21
21
  // EXTERNAL MODULE: ./helpers/utils/getMergedProps.ts
22
- var getMergedProps = __nuri_require__(335);
22
+ var getMergedProps = __nuri_require__(7335);
23
23
  ;// ./components/loading/spinner/base-spinner.tsx
24
24
  var __assign = undefined && undefined.__assign || function () {
25
25
  __assign = Object.assign || function (t) {
package/dist/chunk-309.js CHANGED
@@ -3,7 +3,7 @@ export const __webpack_esm_id__ = 309;
3
3
  export const __webpack_esm_ids__ = [309];
4
4
  export const __webpack_esm_modules__ = {
5
5
 
6
- /***/ 690
6
+ /***/ 8690
7
7
  (__unused_webpack_module, __webpack_exports__, __nuri_require__) {
8
8
 
9
9
  /* harmony export */ __nuri_require__.d(__webpack_exports__, {
package/dist/chunk-364.js CHANGED
@@ -3,7 +3,7 @@ export const __webpack_esm_id__ = 364;
3
3
  export const __webpack_esm_ids__ = [364];
4
4
  export const __webpack_esm_modules__ = {
5
5
 
6
- /***/ 335
6
+ /***/ 7335
7
7
  (__unused_webpack_module, __webpack_exports__, __nuri_require__) {
8
8
 
9
9
  /* harmony export */ __nuri_require__.d(__webpack_exports__, {
@@ -58,7 +58,7 @@ function getMergedProps(props, propsWithTypes) {
58
58
 
59
59
  /***/ },
60
60
 
61
- /***/ 274
61
+ /***/ 3274
62
62
  (__unused_webpack___webpack_module__, __webpack_exports__, __nuri_require__) {
63
63
 
64
64
  /* harmony export */ __nuri_require__.d(__webpack_exports__, {
package/dist/chunk-387.js CHANGED
@@ -3,14 +3,19 @@ export const __webpack_esm_id__ = 387;
3
3
  export const __webpack_esm_ids__ = [387];
4
4
  export const __webpack_esm_modules__ = {
5
5
 
6
- /***/ 387
6
+ /***/ 9387
7
7
  (__unused_webpack_module, __webpack_exports__, __nuri_require__) {
8
8
 
9
9
  /* harmony export */ __nuri_require__.d(__webpack_exports__, {
10
10
  /* harmony export */ C: () => (/* binding */ useExternalState)
11
11
  /* harmony export */ });
12
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __nuri_require__(41);
12
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __nuri_require__(1041);
13
13
 
14
+ /**
15
+ * Radix 의 useControllableState 를 옮긴 것. prop 이 있으면 controlled(값은 밖에서, 바뀌면 handler 만 부른다),
16
+ * 없으면 uncontrolled(안에서 들고 있고, 실제로 바뀐 뒤 useEffect 에서 handler 를 부른다).
17
+ * 어느 쪽이든 같은 값으로 다시 설정하면 handler 는 불리지 않는다.
18
+ */
14
19
  var useExternalState = function useExternalState(_a) {
15
20
  var prop = _a.prop,
16
21
  handler = _a.handler,
@@ -20,11 +25,25 @@ var useExternalState = function useExternalState(_a) {
20
25
  setInnerState = _b[1];
21
26
  var isControlledByExternal = prop !== undefined;
22
27
  var value = isControlledByExternal ? prop : innerState;
28
+ // handler 가 렌더마다 새 함수여도 effect 가 다시 돌지 않게 ref 로 든다
29
+ var handlerRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(handler);
30
+ handlerRef.current = handler;
31
+ var prevInnerStateRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(innerState);
32
+ (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
33
+ var _a;
34
+ if (prevInnerStateRef.current !== innerState) {
35
+ prevInnerStateRef.current = innerState;
36
+ (_a = handlerRef.current) === null || _a === void 0 ? void 0 : _a.call(handlerRef, innerState);
37
+ }
38
+ }, [innerState]);
23
39
  var setValue = function setValue(handledValue) {
40
+ var _a;
24
41
  if (isControlledByExternal) {
25
42
  var setter = handledValue;
26
- var value_1 = typeof handledValue === 'function' ? setter(prop !== null && prop !== void 0 ? prop : defaultProp) : handledValue;
27
- handler === null || handler === void 0 ? void 0 : handler(value_1);
43
+ var next = typeof handledValue === 'function' ? setter(prop) : handledValue;
44
+ if (next !== prop) {
45
+ (_a = handlerRef.current) === null || _a === void 0 ? void 0 : _a.call(handlerRef, next);
46
+ }
28
47
  } else {
29
48
  setInnerState(handledValue);
30
49
  }
@@ -0,0 +1,34 @@
1
+ "use client";
2
+ export const __webpack_esm_id__ = 436;
3
+ export const __webpack_esm_ids__ = [436];
4
+ export const __webpack_esm_modules__ = {
5
+
6
+ /***/ 9436
7
+ (__unused_webpack_module, __webpack_exports__, __nuri_require__) {
8
+
9
+ /* harmony export */ __nuri_require__.d(__webpack_exports__, {
10
+ /* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
11
+ /* harmony export */ });
12
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __nuri_require__(1041);
13
+ var _path;
14
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
15
+
16
+ var SvgChevronDown = function SvgChevronDown(props) {
17
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("svg", _extends({
18
+ xmlns: "http://www.w3.org/2000/svg",
19
+ width: 18,
20
+ height: 18,
21
+ fill: "none",
22
+ viewBox: "0 0 18 18"
23
+ }, props), _path || (_path = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("path", {
24
+ fill: "currentColor",
25
+ fillRule: "evenodd",
26
+ d: "M9.398 12.398a.56.56 0 0 1-.796 0l-6-6a.563.563 0 0 1 .796-.796L9 11.204l5.602-5.602a.562.562 0 1 1 .796.796z",
27
+ clipRule: "evenodd"
28
+ })));
29
+ };
30
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (SvgChevronDown);
31
+
32
+ /***/ }
33
+
34
+ };