@nurihaus/web-design-system 3.1.1 → 3.2.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 (39) hide show
  1. package/dist/ai/components.md +166 -2
  2. package/dist/ai/tokens.md +64 -15
  3. package/dist/bottom-nav.js +407 -0
  4. package/dist/chip-group.js +317 -0
  5. package/dist/chunk-653.js +296 -0
  6. package/dist/components/bottom-nav/base-bottom-nav.d.ts +10 -0
  7. package/dist/components/bottom-nav/bottom-nav-props.d.ts +1 -0
  8. package/dist/components/bottom-nav/bottom-nav-type.d.ts +36 -0
  9. package/dist/components/bottom-nav/bottom-nav.d.ts +4 -0
  10. package/dist/components/bottom-nav/bottom-nav.stories.d.ts +55 -0
  11. package/dist/components/chip-group/base-chip-group.d.ts +5 -0
  12. package/dist/components/chip-group/chip-group-props.d.ts +1 -0
  13. package/dist/components/chip-group/chip-group-type.d.ts +25 -0
  14. package/dist/components/chip-group/chip-group.d.ts +4 -0
  15. package/dist/components/chip-group/chip-group.stories.d.ts +27 -0
  16. package/dist/components/elements/text/text-props.d.ts +1 -1
  17. package/dist/components/elements/text/text.stories.d.ts +1 -1
  18. package/dist/components/icon/base-icon.d.ts +3 -0
  19. package/dist/components/icon/icon-paths.d.ts +202 -0
  20. package/dist/components/icon/icon-props.d.ts +6 -0
  21. package/dist/components/icon/icon-type.d.ts +14 -0
  22. package/dist/components/icon/icon.d.ts +4 -0
  23. package/dist/components/icon/icon.stories.d.ts +33 -0
  24. package/dist/components/step-progress/base-step-progress.d.ts +7 -0
  25. package/dist/components/step-progress/step-progress-props.d.ts +10 -0
  26. package/dist/components/step-progress/step-progress-type.d.ts +17 -0
  27. package/dist/components/step-progress/step-progress.d.ts +4 -0
  28. package/dist/components/step-progress/step-progress.stories.d.ts +29 -0
  29. package/dist/components.css +314 -0
  30. package/dist/icon.js +222 -0
  31. package/dist/index.d.ts +8 -0
  32. package/dist/index.js +854 -49
  33. package/dist/step-progress.js +310 -0
  34. package/dist/styles.css +332 -12
  35. package/dist/tokens/generated/semantic-admin.d.ts +24 -24
  36. package/dist/tokens/generated/semantic-app.d.ts +24 -24
  37. package/dist/tokens.css +64 -12
  38. package/dist/tokens.js +48 -48
  39. package/package.json +21 -3
@@ -0,0 +1,310 @@
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
+ /***/ 7131
7
+ (__unused_webpack_module, __webpack_exports__, __nuri_require__) {
8
+
9
+
10
+ // EXPORTS
11
+ __nuri_require__.d(__webpack_exports__, {
12
+ A: () => (/* binding */ step_progress)
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/step-progress/base-step-progress.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 StepProgressRootBase = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.forwardRef)(function (props, ref) {
46
+ var children = props.children,
47
+ className = props.className,
48
+ restProps = __rest(props, ["children", "className"]);
49
+ return (0,jsx_runtime_.jsx)("ol", __assign({
50
+ ref: ref,
51
+ className: (0,classNames/* classNames */.x)('nuri-theme base-step-progress root', className)
52
+ }, restProps, {
53
+ children: children
54
+ }));
55
+ });
56
+ StepProgressRootBase.displayName = 'StepProgressRoot';
57
+ var StepProgressStep = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.forwardRef)(function (props, ref) {
58
+ var children = props.children,
59
+ className = props.className,
60
+ state = props.state,
61
+ restProps = __rest(props, ["children", "className", "state"]);
62
+ return (0,jsx_runtime_.jsxs)("li", __assign({
63
+ ref: ref,
64
+ className: (0,classNames/* classNames */.x)('nuri-theme base-step-progress step', className),
65
+ "data-state": state,
66
+ "aria-current": state === 'current' ? 'step' : undefined
67
+ }, restProps, {
68
+ children: [(0,jsx_runtime_.jsx)("span", {
69
+ className: 'step-progress-bar',
70
+ "aria-hidden": 'true'
71
+ }), (0,jsx_runtime_.jsx)("span", {
72
+ className: 'step-progress-name',
73
+ children: children
74
+ })]
75
+ }));
76
+ });
77
+ StepProgressStep.displayName = 'StepProgressStep';
78
+ var StepProgressRoot = Object.assign(StepProgressRootBase, {
79
+ Step: StepProgressStep
80
+ });
81
+ /* harmony default export */ const base_step_progress = (StepProgressRoot);
82
+ ;// ./components/step-progress/step-progress-props.ts
83
+ /** all: 단계 이름을 모두 보인다. current: 지금 단계 이름만(카드 안처럼 좁을 때) */
84
+ var labelVisibility = ['all', 'current'];
85
+ var stepProgressProps = {
86
+ labelVisibility: {
87
+ type: 'className',
88
+ className: 'label-visibility',
89
+ values: labelVisibility,
90
+ "default": 'all'
91
+ }
92
+ };
93
+ ;// ./components/step-progress/step-progress.tsx
94
+ var step_progress_assign = undefined && undefined.__assign || function () {
95
+ step_progress_assign = Object.assign || function (t) {
96
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
97
+ s = arguments[i];
98
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
99
+ }
100
+ return t;
101
+ };
102
+ return step_progress_assign.apply(this, arguments);
103
+ };
104
+
105
+
106
+
107
+
108
+
109
+
110
+ var stateOf = function stateOf(index, current) {
111
+ if (index < current) return 'done';
112
+ if (index === current) return 'current';
113
+ return 'todo';
114
+ };
115
+ var StepProgress = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.forwardRef)(function (props, ref) {
116
+ var _a = (0,getMergedProps/* getMergedProps */.p)(props, stepProgressProps),
117
+ className = _a.className,
118
+ style = _a.style,
119
+ steps = _a.steps,
120
+ current = _a.current,
121
+ label = _a.label;
122
+ // 칸 수는 단계 수를 따른다
123
+ var layoutStyle = step_progress_assign(step_progress_assign({}, style), {
124
+ '--step-count': steps.length
125
+ });
126
+ return (0,jsx_runtime_.jsx)(base_step_progress, {
127
+ ref: ref,
128
+ className: (0,classNames/* classNames */.x)(className, 'step-progress'),
129
+ style: layoutStyle,
130
+ "aria-label": label,
131
+ children: steps.map(function (step, index) {
132
+ return (
133
+ // 단계는 순서 자체가 정체성이라 순번을 key 로 쓴다
134
+ (0,jsx_runtime_.jsx)(base_step_progress.Step, {
135
+ className: 'step-progress-step',
136
+ state: stateOf(index, current),
137
+ children: step
138
+ }, index)
139
+ );
140
+ })
141
+ });
142
+ });
143
+ StepProgress.displayName = 'StepProgress';
144
+ /* harmony default export */ const step_progress = (StepProgress);
145
+
146
+ /***/ },
147
+
148
+ /***/ 1041
149
+ (module, __unused_webpack_exports, __nuri_require__) {
150
+
151
+ var x = (y) => {
152
+ var x = {}; __nuri_require__.d(x, y); return x
153
+ }
154
+ var y = (x) => (() => (x))
155
+ module.exports = x({ ["forwardRef"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.forwardRef) });
156
+
157
+ /***/ },
158
+
159
+ /***/ 612
160
+ (module, __unused_webpack_exports, __nuri_require__) {
161
+
162
+ var x = (y) => {
163
+ var x = {}; __nuri_require__.d(x, y); return x
164
+ }
165
+ var y = (x) => (() => (x))
166
+ module.exports = x({ ["jsx"]: () => (__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_179142b8__.jsx), ["jsxs"]: () => (__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_179142b8__.jsxs) });
167
+
168
+ /***/ }
169
+
170
+ /******/ });
171
+ /************************************************************************/
172
+ /******/ // The module cache
173
+ /******/ var __webpack_module_cache__ = {};
174
+ /******/
175
+ /******/ // The require function
176
+ /******/ function __nuri_require__(moduleId) {
177
+ /******/ // Check if module is in cache
178
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
179
+ /******/ if (cachedModule !== undefined) {
180
+ /******/ return cachedModule.exports;
181
+ /******/ }
182
+ /******/ // Create a new module (and put it into the cache)
183
+ /******/ var module = __webpack_module_cache__[moduleId] = {
184
+ /******/ // no module.id needed
185
+ /******/ // no module.loaded needed
186
+ /******/ exports: {}
187
+ /******/ };
188
+ /******/
189
+ /******/ // Execute the module function
190
+ /******/ __webpack_modules__[moduleId](module, module.exports, __nuri_require__);
191
+ /******/
192
+ /******/ // Return the exports of the module
193
+ /******/ return module.exports;
194
+ /******/ }
195
+ /******/
196
+ /******/ // expose the modules object (__webpack_modules__)
197
+ /******/ __nuri_require__.m = __webpack_modules__;
198
+ /******/
199
+ /************************************************************************/
200
+ /******/ /* webpack/runtime/chunk loaded */
201
+ /******/ (() => {
202
+ /******/ var deferred = [];
203
+ /******/ __nuri_require__.O = (result, chunkIds, fn, priority) => {
204
+ /******/ if(chunkIds) {
205
+ /******/ priority = priority || 0;
206
+ /******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];
207
+ /******/ deferred[i] = [chunkIds, fn, priority];
208
+ /******/ return;
209
+ /******/ }
210
+ /******/ var notFulfilled = Infinity;
211
+ /******/ for (var i = 0; i < deferred.length; i++) {
212
+ /******/ var [chunkIds, fn, priority] = deferred[i];
213
+ /******/ var fulfilled = true;
214
+ /******/ for (var j = 0; j < chunkIds.length; j++) {
215
+ /******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__nuri_require__.O).every((key) => (__nuri_require__.O[key](chunkIds[j])))) {
216
+ /******/ chunkIds.splice(j--, 1);
217
+ /******/ } else {
218
+ /******/ fulfilled = false;
219
+ /******/ if(priority < notFulfilled) notFulfilled = priority;
220
+ /******/ }
221
+ /******/ }
222
+ /******/ if(fulfilled) {
223
+ /******/ deferred.splice(i--, 1)
224
+ /******/ var r = fn();
225
+ /******/ if (r !== undefined) result = r;
226
+ /******/ }
227
+ /******/ }
228
+ /******/ return result;
229
+ /******/ };
230
+ /******/ })();
231
+ /******/
232
+ /******/ /* webpack/runtime/define property getters */
233
+ /******/ (() => {
234
+ /******/ // define getter functions for harmony exports
235
+ /******/ __nuri_require__.d = (exports, definition) => {
236
+ /******/ for(var key in definition) {
237
+ /******/ if(__nuri_require__.o(definition, key) && !__nuri_require__.o(exports, key)) {
238
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
239
+ /******/ }
240
+ /******/ }
241
+ /******/ };
242
+ /******/ })();
243
+ /******/
244
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
245
+ /******/ (() => {
246
+ /******/ __nuri_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
247
+ /******/ })();
248
+ /******/
249
+ /******/ /* webpack/runtime/export webpack runtime */
250
+ /******/ export { __nuri_require__ };
251
+ /******/
252
+ /******/ /* webpack/runtime/import chunk loading */
253
+ /******/ (() => {
254
+ /******/ // no baseURI
255
+ /******/
256
+ /******/ // object to store loaded and loading chunks
257
+ /******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
258
+ /******/ // [resolve, Promise] = chunk loading, 0 = chunk loaded
259
+ /******/ var installedChunks = {
260
+ /******/ 347: 0
261
+ /******/ };
262
+ /******/
263
+ /******/ var installChunk = (data) => {
264
+ /******/ var {__webpack_esm_ids__, __webpack_esm_modules__, __webpack_esm_runtime__} = data;
265
+ /******/ // add "modules" to the modules object,
266
+ /******/ // then flag all "ids" as loaded and fire callback
267
+ /******/ var moduleId, chunkId, i = 0;
268
+ /******/ for(moduleId in __webpack_esm_modules__) {
269
+ /******/ if(__nuri_require__.o(__webpack_esm_modules__, moduleId)) {
270
+ /******/ __nuri_require__.m[moduleId] = __webpack_esm_modules__[moduleId];
271
+ /******/ }
272
+ /******/ }
273
+ /******/ if(__webpack_esm_runtime__) __webpack_esm_runtime__(__nuri_require__);
274
+ /******/ for(;i < __webpack_esm_ids__.length; i++) {
275
+ /******/ chunkId = __webpack_esm_ids__[i];
276
+ /******/ if(__nuri_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
277
+ /******/ installedChunks[chunkId][0]();
278
+ /******/ }
279
+ /******/ installedChunks[__webpack_esm_ids__[i]] = 0;
280
+ /******/ }
281
+ /******/ __nuri_require__.O();
282
+ /******/ }
283
+ /******/
284
+ /******/ // no chunk on demand loading
285
+ /******/
286
+ /******/ // no prefetching
287
+ /******/
288
+ /******/ // no preloaded
289
+ /******/
290
+ /******/ __nuri_require__.C = installChunk;
291
+ /******/
292
+ /******/ __nuri_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);
293
+ /******/ // no HMR
294
+ /******/
295
+ /******/ // no HMR manifest
296
+ /******/ })();
297
+ /******/
298
+ /************************************************************************/
299
+ /******/
300
+ /******/ import * as __webpack_chunk_1__ from "./chunk-364.js";
301
+ /******/ __nuri_require__.C(__webpack_chunk_1__);
302
+ /******/
303
+ /******/ // startup
304
+ /******/ // Load entry module and return exports
305
+ /******/ // This entry module depends on other loaded chunks and execution need to be delayed
306
+ /******/ var __webpack_exports__ = __nuri_require__.O(undefined, [364], () => (__nuri_require__(7131)))
307
+ /******/ __webpack_exports__ = __nuri_require__.O(__webpack_exports__);
308
+ /******/ const __webpack_exports__default = __webpack_exports__.A;
309
+ /******/ export { __webpack_exports__default as default };
310
+ /******/