@nurihaus/web-design-system 3.0.3 → 3.1.0

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 +8 -8
  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 +33 -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 +38 -0
  17. package/dist/chunk-739.js +6 -6
  18. package/dist/chunk-77.js +34 -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 +2090 -475
  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 +496 -0
  97. package/dist/tokens.css +32 -5
  98. package/dist/tooltip.js +9 -9
  99. package/package.json +33 -1
@@ -0,0 +1,331 @@
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
+ /***/ 1144
7
+ (__unused_webpack_module, __webpack_exports__, __nuri_require__) {
8
+
9
+
10
+ // EXPORTS
11
+ __nuri_require__.d(__webpack_exports__, {
12
+ A: () => (/* binding */ skeleton)
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/utils/classNames.js
20
+ var classNames = __nuri_require__(3274);
21
+ // EXTERNAL MODULE: ./helpers/utils/getMergedProps.ts
22
+ var getMergedProps = __nuri_require__(7335);
23
+ ;// ./components/skeleton/base-skeleton.tsx
24
+ var __assign = undefined && undefined.__assign || function () {
25
+ __assign = Object.assign || function (t) {
26
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
27
+ s = arguments[i];
28
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
29
+ }
30
+ return t;
31
+ };
32
+ return __assign.apply(this, arguments);
33
+ };
34
+ var __rest = undefined && undefined.__rest || function (s, e) {
35
+ var t = {};
36
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
37
+ if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
38
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
39
+ }
40
+ return t;
41
+ };
42
+
43
+
44
+
45
+ var BaseSkeleton = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.forwardRef)(function (props, ref) {
46
+ var className = props.className,
47
+ _a = props["aria-hidden"],
48
+ ariaHidden = _a === void 0 ? true : _a,
49
+ restProps = __rest(props, ["className", 'aria-hidden']);
50
+ return (0,jsx_runtime_.jsx)("span", __assign({
51
+ ref: ref,
52
+ className: (0,classNames/* classNames */.x)('nuri-theme base-skeleton', className),
53
+ "aria-hidden": ariaHidden,
54
+ "aria-busy": true
55
+ }, restProps));
56
+ });
57
+ BaseSkeleton.displayName = 'BaseSkeleton';
58
+ /* harmony default export */ const base_skeleton = (BaseSkeleton);
59
+ // EXTERNAL MODULE: ./helpers/props/common-props.ts
60
+ var common_props = __nuri_require__(7298);
61
+ ;// ./components/skeleton/skeleton-props.ts
62
+
63
+ var shapes = ['text', 'rect', 'circle'];
64
+ var skeletonProps = {
65
+ shape: {
66
+ type: 'className',
67
+ className: 'shape',
68
+ values: shapes,
69
+ "default": 'text'
70
+ },
71
+ width: (0,common_props/* widthProp */.Iw)('100%'),
72
+ height: {
73
+ type: 'css',
74
+ key: 'height'
75
+ }
76
+ };
77
+ ;// ./components/skeleton/skeleton.tsx
78
+ var skeleton_assign = undefined && undefined.__assign || function () {
79
+ skeleton_assign = Object.assign || function (t) {
80
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
81
+ s = arguments[i];
82
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
83
+ }
84
+ return t;
85
+ };
86
+ return skeleton_assign.apply(this, arguments);
87
+ };
88
+ var skeleton_rest = undefined && undefined.__rest || function (s, e) {
89
+ var t = {};
90
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
91
+ if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
92
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
93
+ }
94
+ return t;
95
+ };
96
+
97
+
98
+
99
+
100
+
101
+
102
+ var Skeleton = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.forwardRef)(function (props, ref) {
103
+ var shape = props.shape,
104
+ width = props.width,
105
+ height = props.height,
106
+ _a = props.lines,
107
+ lines = _a === void 0 ? 1 : _a,
108
+ _b = props.animated,
109
+ animated = _b === void 0 ? true : _b,
110
+ rest = skeleton_rest(props, ["shape", "width", "height", "lines", "animated"]);
111
+ var isCircle = shape === 'circle';
112
+ var _c = (0,getMergedProps/* getMergedProps */.p)(skeleton_assign(skeleton_assign({}, rest), {
113
+ shape: shape,
114
+ width: width,
115
+ // 원은 높이를 따로 주지 않으면 폭과 같다.
116
+ height: height !== null && height !== void 0 ? height : isCircle ? width !== null && width !== void 0 ? width : skeletonProps.width["default"] : undefined
117
+ }), skeletonProps),
118
+ className = _c.className,
119
+ restProps = skeleton_rest(_c, ["className"]);
120
+ var isMultiline = !isCircle && shape !== 'rect' && lines > 1;
121
+ return (0,jsx_runtime_.jsx)(base_skeleton, skeleton_assign({
122
+ ref: ref,
123
+ className: (0,classNames/* classNames */.x)(className, 'skeleton', animated && 'animated', isMultiline && 'multiline')
124
+ }, restProps, {
125
+ children: isMultiline && Array.from({
126
+ length: lines
127
+ }, function (_, index) {
128
+ return (0,jsx_runtime_.jsx)("span", {
129
+ className: 'skeleton-line'
130
+ }, index);
131
+ })
132
+ }));
133
+ });
134
+ Skeleton.displayName = 'Skeleton';
135
+ /* harmony default export */ const skeleton = (Skeleton);
136
+
137
+ /***/ },
138
+
139
+ /***/ 7298
140
+ (__unused_webpack_module, __webpack_exports__, __nuri_require__) {
141
+
142
+ /* harmony export */ __nuri_require__.d(__webpack_exports__, {
143
+ /* harmony export */ Iw: () => (/* binding */ widthProp)
144
+ /* harmony export */ });
145
+ /* unused harmony exports size, sizeProp */
146
+ /** 모든 컴포넌트가 함께 쓰는 크기 이름. px 은 styles/token/size.css 에 있다. */
147
+ var size = (/* unused pure expression or super */ null && (['xs', 's', 'm', 'l', 'xl']));
148
+ /** 컴포넌트는 다섯 이름 중 지원하는 것만 고른다. `size-{값}` 클래스가 붙는다. */
149
+ var sizeProp = function sizeProp(values, defaultValue) {
150
+ return {
151
+ type: 'className',
152
+ className: 'size',
153
+ values: values,
154
+ "default": defaultValue
155
+ };
156
+ };
157
+ var widthProp = function widthProp(defaultValue) {
158
+ return {
159
+ type: 'css',
160
+ key: 'width',
161
+ "default": defaultValue
162
+ };
163
+ };
164
+
165
+ /***/ },
166
+
167
+ /***/ 1041
168
+ (module, __unused_webpack_exports, __nuri_require__) {
169
+
170
+ var x = (y) => {
171
+ var x = {}; __nuri_require__.d(x, y); return x
172
+ }
173
+ var y = (x) => (() => (x))
174
+ module.exports = x({ ["forwardRef"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.forwardRef) });
175
+
176
+ /***/ },
177
+
178
+ /***/ 612
179
+ (module, __unused_webpack_exports, __nuri_require__) {
180
+
181
+ var x = (y) => {
182
+ var x = {}; __nuri_require__.d(x, y); return x
183
+ }
184
+ var y = (x) => (() => (x))
185
+ module.exports = x({ ["jsx"]: () => (__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_179142b8__.jsx) });
186
+
187
+ /***/ }
188
+
189
+ /******/ });
190
+ /************************************************************************/
191
+ /******/ // The module cache
192
+ /******/ var __webpack_module_cache__ = {};
193
+ /******/
194
+ /******/ // The require function
195
+ /******/ function __nuri_require__(moduleId) {
196
+ /******/ // Check if module is in cache
197
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
198
+ /******/ if (cachedModule !== undefined) {
199
+ /******/ return cachedModule.exports;
200
+ /******/ }
201
+ /******/ // Create a new module (and put it into the cache)
202
+ /******/ var module = __webpack_module_cache__[moduleId] = {
203
+ /******/ // no module.id needed
204
+ /******/ // no module.loaded needed
205
+ /******/ exports: {}
206
+ /******/ };
207
+ /******/
208
+ /******/ // Execute the module function
209
+ /******/ __webpack_modules__[moduleId](module, module.exports, __nuri_require__);
210
+ /******/
211
+ /******/ // Return the exports of the module
212
+ /******/ return module.exports;
213
+ /******/ }
214
+ /******/
215
+ /******/ // expose the modules object (__webpack_modules__)
216
+ /******/ __nuri_require__.m = __webpack_modules__;
217
+ /******/
218
+ /************************************************************************/
219
+ /******/ /* webpack/runtime/chunk loaded */
220
+ /******/ (() => {
221
+ /******/ var deferred = [];
222
+ /******/ __nuri_require__.O = (result, chunkIds, fn, priority) => {
223
+ /******/ if(chunkIds) {
224
+ /******/ priority = priority || 0;
225
+ /******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];
226
+ /******/ deferred[i] = [chunkIds, fn, priority];
227
+ /******/ return;
228
+ /******/ }
229
+ /******/ var notFulfilled = Infinity;
230
+ /******/ for (var i = 0; i < deferred.length; i++) {
231
+ /******/ var [chunkIds, fn, priority] = deferred[i];
232
+ /******/ var fulfilled = true;
233
+ /******/ for (var j = 0; j < chunkIds.length; j++) {
234
+ /******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__nuri_require__.O).every((key) => (__nuri_require__.O[key](chunkIds[j])))) {
235
+ /******/ chunkIds.splice(j--, 1);
236
+ /******/ } else {
237
+ /******/ fulfilled = false;
238
+ /******/ if(priority < notFulfilled) notFulfilled = priority;
239
+ /******/ }
240
+ /******/ }
241
+ /******/ if(fulfilled) {
242
+ /******/ deferred.splice(i--, 1)
243
+ /******/ var r = fn();
244
+ /******/ if (r !== undefined) result = r;
245
+ /******/ }
246
+ /******/ }
247
+ /******/ return result;
248
+ /******/ };
249
+ /******/ })();
250
+ /******/
251
+ /******/ /* webpack/runtime/define property getters */
252
+ /******/ (() => {
253
+ /******/ // define getter functions for harmony exports
254
+ /******/ __nuri_require__.d = (exports, definition) => {
255
+ /******/ for(var key in definition) {
256
+ /******/ if(__nuri_require__.o(definition, key) && !__nuri_require__.o(exports, key)) {
257
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
258
+ /******/ }
259
+ /******/ }
260
+ /******/ };
261
+ /******/ })();
262
+ /******/
263
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
264
+ /******/ (() => {
265
+ /******/ __nuri_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
266
+ /******/ })();
267
+ /******/
268
+ /******/ /* webpack/runtime/export webpack runtime */
269
+ /******/ export { __nuri_require__ };
270
+ /******/
271
+ /******/ /* webpack/runtime/import chunk loading */
272
+ /******/ (() => {
273
+ /******/ // no baseURI
274
+ /******/
275
+ /******/ // object to store loaded and loading chunks
276
+ /******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
277
+ /******/ // [resolve, Promise] = chunk loading, 0 = chunk loaded
278
+ /******/ var installedChunks = {
279
+ /******/ 74: 0,
280
+ /******/ 298: 0,
281
+ /******/ 917: 0
282
+ /******/ };
283
+ /******/
284
+ /******/ var installChunk = (data) => {
285
+ /******/ var {__webpack_esm_ids__, __webpack_esm_modules__, __webpack_esm_runtime__} = data;
286
+ /******/ // add "modules" to the modules object,
287
+ /******/ // then flag all "ids" as loaded and fire callback
288
+ /******/ var moduleId, chunkId, i = 0;
289
+ /******/ for(moduleId in __webpack_esm_modules__) {
290
+ /******/ if(__nuri_require__.o(__webpack_esm_modules__, moduleId)) {
291
+ /******/ __nuri_require__.m[moduleId] = __webpack_esm_modules__[moduleId];
292
+ /******/ }
293
+ /******/ }
294
+ /******/ if(__webpack_esm_runtime__) __webpack_esm_runtime__(__nuri_require__);
295
+ /******/ for(;i < __webpack_esm_ids__.length; i++) {
296
+ /******/ chunkId = __webpack_esm_ids__[i];
297
+ /******/ if(__nuri_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
298
+ /******/ installedChunks[chunkId][0]();
299
+ /******/ }
300
+ /******/ installedChunks[__webpack_esm_ids__[i]] = 0;
301
+ /******/ }
302
+ /******/ __nuri_require__.O();
303
+ /******/ }
304
+ /******/
305
+ /******/ // no chunk on demand loading
306
+ /******/
307
+ /******/ // no prefetching
308
+ /******/
309
+ /******/ // no preloaded
310
+ /******/
311
+ /******/ __nuri_require__.C = installChunk;
312
+ /******/
313
+ /******/ __nuri_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);
314
+ /******/ // no HMR
315
+ /******/
316
+ /******/ // no HMR manifest
317
+ /******/ })();
318
+ /******/
319
+ /************************************************************************/
320
+ /******/
321
+ /******/ import * as __webpack_chunk_1__ from "./chunk-364.js";
322
+ /******/ __nuri_require__.C(__webpack_chunk_1__);
323
+ /******/
324
+ /******/ // startup
325
+ /******/ // Load entry module and return exports
326
+ /******/ // This entry module depends on other loaded chunks and execution need to be delayed
327
+ /******/ var __webpack_exports__ = __nuri_require__.O(undefined, [364], () => (__nuri_require__(1144)))
328
+ /******/ __webpack_exports__ = __nuri_require__.O(__webpack_exports__);
329
+ /******/ const __webpack_exports__default = __webpack_exports__.A;
330
+ /******/ export { __webpack_exports__default as default };
331
+ /******/