@nurihaus/web-design-system 3.12.0 → 3.13.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 (65) hide show
  1. package/dist/agreement.js +3 -3
  2. package/dist/ai/components.md +214 -17
  3. package/dist/ai/motion.md +111 -87
  4. package/dist/ai/patterns.md +52 -88
  5. package/dist/ai/tokens.md +21 -5
  6. package/dist/bottom-nav.js +6 -27
  7. package/dist/chunk-3372.js +99 -0
  8. package/dist/chunk-8982.js +8 -0
  9. package/dist/components/asset/asset.d.ts +5 -5
  10. package/dist/components/asset/asset.stories.d.ts +5 -5
  11. package/dist/components/bottom-nav/base-bottom-nav.d.ts +0 -3
  12. package/dist/components/bottom-nav/bottom-nav-type.d.ts +0 -1
  13. package/dist/components/bottom-nav/bottom-nav.stories.d.ts +1 -1
  14. package/dist/components/empty-state/empty-state.stories.d.ts +4 -4
  15. package/dist/components/icon/icon.stories.d.ts +1 -1
  16. package/dist/components/list/list-footer.stories.d.ts +3 -3
  17. package/dist/components/list/list-props.d.ts +4 -4
  18. package/dist/components/list/list-row.stories.d.ts +3 -3
  19. package/dist/components/list/list-type.d.ts +2 -2
  20. package/dist/components/member-card/base-member-card.d.ts +3 -0
  21. package/dist/components/member-card/member-card-props.d.ts +10 -0
  22. package/dist/components/member-card/member-card-type.d.ts +53 -0
  23. package/dist/components/member-card/member-card.d.ts +5 -0
  24. package/dist/components/member-card/member-card.stories.d.ts +43 -0
  25. package/dist/components/message/message.stories.d.ts +3 -3
  26. package/dist/components/notice/notice.stories.d.ts +1 -1
  27. package/dist/components/section-header/base-section-header.d.ts +4 -0
  28. package/dist/components/section-header/section-header-props.d.ts +2 -0
  29. package/dist/components/section-header/section-header-type.d.ts +21 -0
  30. package/dist/components/section-header/section-header.d.ts +5 -0
  31. package/dist/components/section-header/section-header.stories.d.ts +309 -0
  32. package/dist/components/skeleton/skeleton.stories.d.ts +2 -2
  33. package/dist/components/stat/base-stat.d.ts +5 -0
  34. package/dist/components/stat/stat-props.d.ts +7 -0
  35. package/dist/components/stat/stat-type.d.ts +24 -0
  36. package/dist/components/stat/stat.d.ts +5 -0
  37. package/dist/components/stat/stat.stories.d.ts +39 -0
  38. package/dist/components/tabs/tabs.stories.d.ts +1 -1
  39. package/dist/components/toast/toast.stories.d.ts +2 -2
  40. package/dist/components.css +526 -101
  41. package/dist/cta-button.js +3 -3
  42. package/dist/eslint/rules/single-top.js +1 -1
  43. package/dist/full-secure-keypad.js +3 -3
  44. package/dist/icon-button.js +3 -3
  45. package/dist/index.d.ts +6 -0
  46. package/dist/index.js +687 -83
  47. package/dist/list-footer.js +4 -4
  48. package/dist/list-group.js +4 -4
  49. package/dist/list-header.js +4 -4
  50. package/dist/list-row.js +7 -7
  51. package/dist/member-card.js +509 -0
  52. package/dist/modal-with-double-button.js +4 -4
  53. package/dist/notice.js +3 -3
  54. package/dist/overlay.js +4 -4
  55. package/dist/section-header.js +411 -0
  56. package/dist/stat.js +296 -0
  57. package/dist/styles.css +466 -99
  58. package/dist/text-button.js +27 -108
  59. package/dist/toast.js +4 -4
  60. package/dist/tokens/generated/motion.d.ts +8 -0
  61. package/dist/tokens/generated/primitive.d.ts +4 -0
  62. package/dist/tokens/generated/semantic-app.d.ts +8 -0
  63. package/dist/tokens.css +15 -6
  64. package/dist/tokens.js +21 -1
  65. package/package.json +13 -1
package/dist/stat.js ADDED
@@ -0,0 +1,296 @@
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
+ /***/ 1418
7
+ (__unused_webpack_module, __webpack_exports__, __nuri_require__) {
8
+
9
+
10
+ // EXPORTS
11
+ __nuri_require__.d(__webpack_exports__, {
12
+ A: () => (/* binding */ stat)
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/stat/base-stat.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
+ /** 이름–값 쌍이라 dl 이다 */
46
+ var BaseStat = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.forwardRef)(function (props, ref) {
47
+ var className = props.className,
48
+ restProps = __rest(props, ["className"]);
49
+ return (0,jsx_runtime_.jsx)("dl", __assign({
50
+ ref: ref,
51
+ className: (0,classNames/* classNames */.x)('nuri-theme base-stat', className)
52
+ }, restProps));
53
+ });
54
+ BaseStat.displayName = 'BaseStat';
55
+ /* harmony default export */ const base_stat = (BaseStat);
56
+ // EXTERNAL MODULE: ./helpers/props/common-props.ts
57
+ var common_props = __nuri_require__(7298);
58
+ ;// ./components/stat/stat-props.ts
59
+
60
+ /** 숫자 크기. m 은 2xl(수치 타일), l 은 3xl(화면의 주 수치 하나). 무드 규칙 3 이 허용한 둘뿐이다 */
61
+ var sizes = ['m', 'l'];
62
+ /** 증감의 뜻. positive 는 좋아짐(초록), negative 는 나빠짐(빨강), neutral 은 그대로(회색). 부호와 따로다 */
63
+ var tone = (/* unused pure expression or super */ null && (['positive', 'negative', 'neutral']));
64
+ var statProps = {
65
+ size: (0,common_props/* sizeProp */.lw)(sizes, 'm')
66
+ };
67
+ ;// ./components/stat/stat.tsx
68
+ var stat_assign = undefined && undefined.__assign || function () {
69
+ stat_assign = Object.assign || function (t) {
70
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
71
+ s = arguments[i];
72
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
73
+ }
74
+ return t;
75
+ };
76
+ return stat_assign.apply(this, arguments);
77
+ };
78
+ var stat_rest = undefined && undefined.__rest || function (s, e) {
79
+ var t = {};
80
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
81
+ if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
82
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
83
+ }
84
+ return t;
85
+ };
86
+
87
+
88
+
89
+
90
+
91
+
92
+ var TONE_CLASS = {
93
+ positive: 'tone-positive',
94
+ negative: 'tone-negative',
95
+ neutral: 'tone-neutral'
96
+ };
97
+ /** 수치 한 묶음. 작은 회색 라벨 위, 굵은 숫자 아래, 그 아래 증감과 기준 글. 면은 Card 가 갖는다 */
98
+ var Stat = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.forwardRef)(function (props, ref) {
99
+ var _a = (0,getMergedProps/* getMergedProps */.p)(props, statProps),
100
+ className = _a.className,
101
+ label = _a.label,
102
+ value = _a.value,
103
+ delta = _a.delta,
104
+ caption = _a.caption,
105
+ restProps = stat_rest(_a, ["className", "label", "value", "delta", "caption"]);
106
+ return (0,jsx_runtime_.jsxs)(base_stat, stat_assign({
107
+ ref: ref,
108
+ className: (0,classNames/* classNames */.x)(className, 'stat')
109
+ }, restProps, {
110
+ children: [(0,jsx_runtime_.jsx)("dt", {
111
+ className: 'stat-label',
112
+ children: label
113
+ }), (0,jsx_runtime_.jsx)("dd", {
114
+ className: 'stat-value',
115
+ children: value
116
+ }), delta || caption ? (0,jsx_runtime_.jsxs)("dd", {
117
+ className: 'stat-detail',
118
+ children: [delta ? (0,jsx_runtime_.jsx)("span", {
119
+ className: (0,classNames/* classNames */.x)('stat-delta', TONE_CLASS[delta.tone]),
120
+ children: delta.value
121
+ }) : null, delta && caption ? ' ' : null, caption]
122
+ }) : null]
123
+ }));
124
+ });
125
+ Stat.displayName = 'Stat';
126
+ /* harmony default export */ const stat = (Stat);
127
+
128
+ /***/ },
129
+
130
+ /***/ 1041
131
+ (module, __unused_webpack_exports, __nuri_require__) {
132
+
133
+ var x = (y) => {
134
+ var x = {}; __nuri_require__.d(x, y); return x
135
+ }
136
+ var y = (x) => (() => (x))
137
+ module.exports = x({ ["forwardRef"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.forwardRef) });
138
+
139
+ /***/ },
140
+
141
+ /***/ 612
142
+ (module, __unused_webpack_exports, __nuri_require__) {
143
+
144
+ var x = (y) => {
145
+ var x = {}; __nuri_require__.d(x, y); return x
146
+ }
147
+ var y = (x) => (() => (x))
148
+ module.exports = x({ ["jsx"]: () => (__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_179142b8__.jsx), ["jsxs"]: () => (__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_179142b8__.jsxs) });
149
+
150
+ /***/ }
151
+
152
+ /******/ });
153
+ /************************************************************************/
154
+ /******/ // The module cache
155
+ /******/ var __webpack_module_cache__ = {};
156
+ /******/
157
+ /******/ // The require function
158
+ /******/ function __nuri_require__(moduleId) {
159
+ /******/ // Check if module is in cache
160
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
161
+ /******/ if (cachedModule !== undefined) {
162
+ /******/ return cachedModule.exports;
163
+ /******/ }
164
+ /******/ // Create a new module (and put it into the cache)
165
+ /******/ var module = __webpack_module_cache__[moduleId] = {
166
+ /******/ // no module.id needed
167
+ /******/ // no module.loaded needed
168
+ /******/ exports: {}
169
+ /******/ };
170
+ /******/
171
+ /******/ // Execute the module function
172
+ /******/ __webpack_modules__[moduleId](module, module.exports, __nuri_require__);
173
+ /******/
174
+ /******/ // Return the exports of the module
175
+ /******/ return module.exports;
176
+ /******/ }
177
+ /******/
178
+ /******/ // expose the modules object (__webpack_modules__)
179
+ /******/ __nuri_require__.m = __webpack_modules__;
180
+ /******/
181
+ /************************************************************************/
182
+ /******/ /* webpack/runtime/chunk loaded */
183
+ /******/ (() => {
184
+ /******/ var deferred = [];
185
+ /******/ __nuri_require__.O = (result, chunkIds, fn, priority) => {
186
+ /******/ if(chunkIds) {
187
+ /******/ priority = priority || 0;
188
+ /******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];
189
+ /******/ deferred[i] = [chunkIds, fn, priority];
190
+ /******/ return;
191
+ /******/ }
192
+ /******/ var notFulfilled = Infinity;
193
+ /******/ for (var i = 0; i < deferred.length; i++) {
194
+ /******/ var [chunkIds, fn, priority] = deferred[i];
195
+ /******/ var fulfilled = true;
196
+ /******/ for (var j = 0; j < chunkIds.length; j++) {
197
+ /******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__nuri_require__.O).every((key) => (__nuri_require__.O[key](chunkIds[j])))) {
198
+ /******/ chunkIds.splice(j--, 1);
199
+ /******/ } else {
200
+ /******/ fulfilled = false;
201
+ /******/ if(priority < notFulfilled) notFulfilled = priority;
202
+ /******/ }
203
+ /******/ }
204
+ /******/ if(fulfilled) {
205
+ /******/ deferred.splice(i--, 1)
206
+ /******/ var r = fn();
207
+ /******/ if (r !== undefined) result = r;
208
+ /******/ }
209
+ /******/ }
210
+ /******/ return result;
211
+ /******/ };
212
+ /******/ })();
213
+ /******/
214
+ /******/ /* webpack/runtime/define property getters */
215
+ /******/ (() => {
216
+ /******/ // define getter functions for harmony exports
217
+ /******/ __nuri_require__.d = (exports, definition) => {
218
+ /******/ for(var key in definition) {
219
+ /******/ if(__nuri_require__.o(definition, key) && !__nuri_require__.o(exports, key)) {
220
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
221
+ /******/ }
222
+ /******/ }
223
+ /******/ };
224
+ /******/ })();
225
+ /******/
226
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
227
+ /******/ (() => {
228
+ /******/ __nuri_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
229
+ /******/ })();
230
+ /******/
231
+ /******/ /* webpack/runtime/export webpack runtime */
232
+ /******/ export { __nuri_require__ };
233
+ /******/
234
+ /******/ /* webpack/runtime/import chunk loading */
235
+ /******/ (() => {
236
+ /******/ // no baseURI
237
+ /******/
238
+ /******/ // object to store loaded and loading chunks
239
+ /******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
240
+ /******/ // [resolve, Promise] = chunk loading, 0 = chunk loaded
241
+ /******/ var installedChunks = {
242
+ /******/ 8805: 0
243
+ /******/ };
244
+ /******/
245
+ /******/ var installChunk = (data) => {
246
+ /******/ var {__webpack_esm_ids__, __webpack_esm_modules__, __webpack_esm_runtime__} = data;
247
+ /******/ // add "modules" to the modules object,
248
+ /******/ // then flag all "ids" as loaded and fire callback
249
+ /******/ var moduleId, chunkId, i = 0;
250
+ /******/ for(moduleId in __webpack_esm_modules__) {
251
+ /******/ if(__nuri_require__.o(__webpack_esm_modules__, moduleId)) {
252
+ /******/ __nuri_require__.m[moduleId] = __webpack_esm_modules__[moduleId];
253
+ /******/ }
254
+ /******/ }
255
+ /******/ if(__webpack_esm_runtime__) __webpack_esm_runtime__(__nuri_require__);
256
+ /******/ for(;i < __webpack_esm_ids__.length; i++) {
257
+ /******/ chunkId = __webpack_esm_ids__[i];
258
+ /******/ if(__nuri_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
259
+ /******/ installedChunks[chunkId][0]();
260
+ /******/ }
261
+ /******/ installedChunks[__webpack_esm_ids__[i]] = 0;
262
+ /******/ }
263
+ /******/ __nuri_require__.O();
264
+ /******/ }
265
+ /******/
266
+ /******/ // no chunk on demand loading
267
+ /******/
268
+ /******/ // no prefetching
269
+ /******/
270
+ /******/ // no preloaded
271
+ /******/
272
+ /******/ __nuri_require__.C = installChunk;
273
+ /******/
274
+ /******/ __nuri_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);
275
+ /******/ // no HMR
276
+ /******/
277
+ /******/ // no HMR manifest
278
+ /******/ })();
279
+ /******/
280
+ /************************************************************************/
281
+ /******/
282
+ /******/ import * as __webpack_chunk_1__ from "./chunk-3274.js";
283
+ /******/ __nuri_require__.C(__webpack_chunk_1__);
284
+ /******/ import * as __webpack_chunk_2__ from "./chunk-7335.js";
285
+ /******/ __nuri_require__.C(__webpack_chunk_2__);
286
+ /******/ import * as __webpack_chunk_3__ from "./chunk-7298.js";
287
+ /******/ __nuri_require__.C(__webpack_chunk_3__);
288
+ /******/
289
+ /******/ // startup
290
+ /******/ // Load entry module and return exports
291
+ /******/ // This entry module depends on other loaded chunks and execution need to be delayed
292
+ /******/ var __webpack_exports__ = __nuri_require__.O(undefined, [3274,7335,7298], () => (__nuri_require__(1418)))
293
+ /******/ __webpack_exports__ = __nuri_require__.O(__webpack_exports__);
294
+ /******/ const __webpack_exports__default = __webpack_exports__.A;
295
+ /******/ export { __webpack_exports__default as default };
296
+ /******/