@nurihaus/web-design-system 3.7.0 → 3.9.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 (143) hide show
  1. package/README.md +15 -4
  2. package/dist/ai/components.md +658 -12
  3. package/dist/ai/motion.md +431 -0
  4. package/dist/ai/tokens.md +93 -4
  5. package/dist/avatar.js +5 -3
  6. package/dist/bottom-bar.js +261 -0
  7. package/dist/bottom-nav.js +10 -57
  8. package/dist/breadcrumb.js +7 -5
  9. package/dist/callout.js +5 -3
  10. package/dist/card.js +278 -0
  11. package/dist/check-box.js +7 -5
  12. package/dist/chip-group.js +6 -4
  13. package/dist/chunk-1176.js +24 -0
  14. package/dist/chunk-3274.js +71 -0
  15. package/dist/chunk-345.js +72 -0
  16. package/dist/chunk-3547.js +56 -0
  17. package/dist/chunk-6459.js +107 -0
  18. package/dist/{chunk-6364.js → chunk-7335.js} +2 -67
  19. package/dist/chunk-7653.js +4 -0
  20. package/dist/chunk-910.js +26 -13
  21. package/dist/chunk-9497.js +66 -0
  22. package/dist/collapsible-menu.js +6 -4
  23. package/dist/components/badge/badge-props.d.ts +4 -4
  24. package/dist/components/badge/badge.stories.d.ts +1 -1
  25. package/dist/components/bottom-bar/base-bottom-bar.d.ts +4 -0
  26. package/dist/components/bottom-bar/bottom-bar-props.d.ts +1 -0
  27. package/dist/components/bottom-bar/bottom-bar-type.d.ts +3 -0
  28. package/dist/components/bottom-bar/bottom-bar.d.ts +6 -0
  29. package/dist/components/bottom-bar/bottom-bar.stories.d.ts +282 -0
  30. package/dist/components/button/button-type.d.ts +3 -1
  31. package/dist/components/button/button.stories.d.ts +1 -0
  32. package/dist/components/card/base-card.d.ts +3 -0
  33. package/dist/components/card/card-props.d.ts +9 -0
  34. package/dist/components/card/card-type.d.ts +8 -0
  35. package/dist/components/card/card.d.ts +5 -0
  36. package/dist/components/card/card.stories.d.ts +24 -0
  37. package/dist/components/description-list/base-description-list.d.ts +4 -0
  38. package/dist/components/description-list/description-list-props.d.ts +1 -0
  39. package/dist/components/description-list/description-list-type.d.ts +13 -0
  40. package/dist/components/description-list/description-list.d.ts +5 -0
  41. package/dist/components/description-list/description-list.stories.d.ts +20 -0
  42. package/dist/components/empty-state/base-empty-state.d.ts +4 -0
  43. package/dist/components/empty-state/empty-state-props.d.ts +10 -0
  44. package/dist/components/empty-state/empty-state-type.d.ts +14 -0
  45. package/dist/components/empty-state/empty-state.d.ts +5 -0
  46. package/dist/components/empty-state/empty-state.stories.d.ts +300 -0
  47. package/dist/components/icon/icon-paths.d.ts +4 -0
  48. package/dist/components/icon/icon.stories.d.ts +1 -1
  49. package/dist/components/icon-button/base-icon-button.d.ts +3 -0
  50. package/dist/components/icon-button/icon-button-props.d.ts +12 -0
  51. package/dist/components/icon-button/icon-button-type.d.ts +16 -0
  52. package/dist/components/icon-button/icon-button.d.ts +5 -0
  53. package/dist/components/icon-button/icon-button.stories.d.ts +31 -0
  54. package/dist/components/list/base-list.d.ts +7 -0
  55. package/dist/components/list/list-group.d.ts +5 -0
  56. package/dist/components/list/list-group.stories.d.ts +14 -0
  57. package/dist/components/list/list-props.d.ts +2 -0
  58. package/dist/components/list/list-row.d.ts +5 -0
  59. package/dist/components/list/list-row.stories.d.ts +304 -0
  60. package/dist/components/list/list-type.d.ts +25 -0
  61. package/dist/components/media/base-media.d.ts +16 -0
  62. package/dist/components/media/media-props.d.ts +5 -0
  63. package/dist/components/media/media-thumbnail.d.ts +4 -0
  64. package/dist/components/media/media-thumbnail.stories.d.ts +34 -0
  65. package/dist/components/media/media-type.d.ts +43 -0
  66. package/dist/components/media/media-viewer.d.ts +4 -0
  67. package/dist/components/media/media-viewer.stories.d.ts +24 -0
  68. package/dist/components/message/base-message.d.ts +11 -0
  69. package/dist/components/message/message-event.d.ts +6 -0
  70. package/dist/components/message/message-props.d.ts +17 -0
  71. package/dist/components/message/message-thread.d.ts +6 -0
  72. package/dist/components/message/message-type.d.ts +21 -0
  73. package/dist/components/message/message.d.ts +5 -0
  74. package/dist/components/message/message.stories.d.ts +313 -0
  75. package/dist/components/message-composer/base-message-composer.d.ts +11 -0
  76. package/dist/components/message-composer/message-composer-props.d.ts +1 -0
  77. package/dist/components/message-composer/message-composer-type.d.ts +31 -0
  78. package/dist/components/message-composer/message-composer.d.ts +5 -0
  79. package/dist/components/message-composer/message-composer.stories.d.ts +46 -0
  80. package/dist/components/motion/motion-provider.d.ts +5 -0
  81. package/dist/components/motion/motion-type.d.ts +6 -0
  82. package/dist/components/motion/motion.d.ts +2 -0
  83. package/dist/components/motion/motion.stories.d.ts +23 -0
  84. package/dist/components/notice/base-notice.d.ts +4 -0
  85. package/dist/components/notice/notice-props.d.ts +16 -0
  86. package/dist/components/notice/notice-type.d.ts +21 -0
  87. package/dist/components/notice/notice.d.ts +5 -0
  88. package/dist/components/notice/notice.stories.d.ts +304 -0
  89. package/dist/components/radio/base-radio.d.ts +2 -1
  90. package/dist/components/radio/radio-props.d.ts +9 -1
  91. package/dist/components/radio/radio-type.d.ts +9 -0
  92. package/dist/components/radio/radio.stories.d.ts +10 -0
  93. package/dist/components/tag/base-tag.d.ts +8 -0
  94. package/dist/components/tag/tag-props.d.ts +1 -0
  95. package/dist/components/tag/tag-type.d.ts +20 -0
  96. package/dist/components/tag/tag.d.ts +4 -0
  97. package/dist/components/tag/tag.stories.d.ts +14 -0
  98. package/dist/components.css +1330 -171
  99. package/dist/cta-button.js +38 -21
  100. package/dist/data-table.js +5 -3
  101. package/dist/description-list.js +274 -0
  102. package/dist/drawer.js +7 -5
  103. package/dist/drop-down.js +8 -6
  104. package/dist/empty-state.js +300 -0
  105. package/dist/helpers/utils/fillLinkChild.d.ts +6 -0
  106. package/dist/icon-button.js +338 -0
  107. package/dist/icon-text-badge.js +11 -9
  108. package/dist/icon-text-option-badge.js +8 -6
  109. package/dist/icon.js +7 -4
  110. package/dist/index.d.ts +30 -2
  111. package/dist/index.js +2482 -223
  112. package/dist/list-group.js +253 -0
  113. package/dist/list-row.js +308 -0
  114. package/dist/loading.js +6 -4
  115. package/dist/media-thumbnail.js +412 -0
  116. package/dist/media-viewer.js +274 -0
  117. package/dist/message-composer.js +399 -0
  118. package/dist/message-event.js +216 -0
  119. package/dist/message-thread.js +216 -0
  120. package/dist/message.js +271 -0
  121. package/dist/modal-with-double-button.js +15 -11
  122. package/dist/modal.js +9 -7
  123. package/dist/motion.js +52 -0
  124. package/dist/notice.js +346 -0
  125. package/dist/option-badge.js +11 -9
  126. package/dist/pagination.js +8 -6
  127. package/dist/radio.js +114 -30
  128. package/dist/skeleton.js +4 -2
  129. package/dist/step-progress.js +4 -2
  130. package/dist/styles.css +1215 -130
  131. package/dist/switch.js +6 -4
  132. package/dist/tabs.js +5 -3
  133. package/dist/tag.js +311 -0
  134. package/dist/text-area.js +8 -6
  135. package/dist/text-field.js +8 -6
  136. package/dist/text.js +5 -3
  137. package/dist/toast.js +15 -11
  138. package/dist/tokens/generated/index.d.ts +1 -0
  139. package/dist/tokens/generated/motion.d.ts +153 -0
  140. package/dist/tokens.css +122 -2
  141. package/dist/tokens.js +156 -1
  142. package/dist/tooltip.js +6 -4
  143. package/package.json +67 -1
@@ -0,0 +1,300 @@
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
+ /***/ 5589
7
+ (__unused_webpack_module, __webpack_exports__, __nuri_require__) {
8
+
9
+
10
+ // EXPORTS
11
+ __nuri_require__.d(__webpack_exports__, {
12
+ A: () => (/* binding */ empty_state)
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
+ // EXTERNAL MODULE: ./components/icon/icon.tsx
24
+ var icon_icon = __nuri_require__(3547);
25
+ ;// ./components/empty-state/base-empty-state.tsx
26
+ var __assign = undefined && undefined.__assign || function () {
27
+ __assign = Object.assign || function (t) {
28
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
29
+ s = arguments[i];
30
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
31
+ }
32
+ return t;
33
+ };
34
+ return __assign.apply(this, arguments);
35
+ };
36
+ var __rest = undefined && undefined.__rest || function (s, e) {
37
+ var t = {};
38
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
39
+ if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
40
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
41
+ }
42
+ return t;
43
+ };
44
+
45
+
46
+
47
+ var BaseEmptyState = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.forwardRef)(function (props, ref) {
48
+ var className = props.className,
49
+ restProps = __rest(props, ["className"]);
50
+ return (0,jsx_runtime_.jsx)("div", __assign({
51
+ ref: ref,
52
+ className: (0,classNames/* classNames */.x)('nuri-theme base-empty-state', className)
53
+ }, restProps));
54
+ });
55
+ BaseEmptyState.displayName = 'BaseEmptyState';
56
+ /* harmony default export */ const base_empty_state = (BaseEmptyState);
57
+ ;// ./components/empty-state/empty-state-props.ts
58
+ /** 아이콘 원의 색. default 는 연보라, neutral 은 회색(오류·준비 중처럼 힘을 뺄 때) */
59
+ var variant = ['default', 'neutral'];
60
+ var emptyStateProps = {
61
+ variant: {
62
+ type: 'className',
63
+ className: 'variant',
64
+ values: variant,
65
+ "default": 'default'
66
+ }
67
+ };
68
+ ;// ./components/empty-state/empty-state.tsx
69
+ var empty_state_assign = undefined && undefined.__assign || function () {
70
+ empty_state_assign = Object.assign || function (t) {
71
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
72
+ s = arguments[i];
73
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
74
+ }
75
+ return t;
76
+ };
77
+ return empty_state_assign.apply(this, arguments);
78
+ };
79
+ var empty_state_rest = undefined && undefined.__rest || function (s, e) {
80
+ var t = {};
81
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
82
+ if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
83
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
84
+ }
85
+ return t;
86
+ };
87
+
88
+
89
+
90
+
91
+
92
+
93
+
94
+ /** 빈 목록·오류 뒤 다시 시도·찾을 수 없음·준비 중 화면 */
95
+ var EmptyState = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.forwardRef)(function (props, ref) {
96
+ var _a = (0,getMergedProps/* getMergedProps */.p)(props, emptyStateProps),
97
+ className = _a.className,
98
+ icon = _a.icon,
99
+ title = _a.title,
100
+ description = _a.description,
101
+ action = _a.action,
102
+ restProps = empty_state_rest(_a, ["className", "icon", "title", "description", "action"]);
103
+ return (0,jsx_runtime_.jsxs)(base_empty_state, empty_state_assign({
104
+ ref: ref,
105
+ className: (0,classNames/* classNames */.x)(className, 'empty-state')
106
+ }, restProps, {
107
+ children: [(0,jsx_runtime_.jsx)("span", {
108
+ className: 'empty-state-icon',
109
+ children: (0,jsx_runtime_.jsx)(icon_icon/* default */.A, {
110
+ name: icon,
111
+ size: 'xl'
112
+ })
113
+ }), (0,jsx_runtime_.jsx)("p", {
114
+ className: 'empty-state-title',
115
+ children: title
116
+ }), description && (0,jsx_runtime_.jsx)("p", {
117
+ className: 'empty-state-description',
118
+ children: description
119
+ }), action && (0,jsx_runtime_.jsx)("div", {
120
+ className: 'empty-state-action',
121
+ children: action
122
+ })]
123
+ }));
124
+ });
125
+ EmptyState.displayName = 'EmptyState';
126
+ /* harmony default export */ const empty_state = (EmptyState);
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
+ /******/ 62: 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
+ /******/ import * as __webpack_chunk_4__ from "./chunk-7653.js";
289
+ /******/ __nuri_require__.C(__webpack_chunk_4__);
290
+ /******/ import * as __webpack_chunk_5__ from "./chunk-3547.js";
291
+ /******/ __nuri_require__.C(__webpack_chunk_5__);
292
+ /******/
293
+ /******/ // startup
294
+ /******/ // Load entry module and return exports
295
+ /******/ // This entry module depends on other loaded chunks and execution need to be delayed
296
+ /******/ var __webpack_exports__ = __nuri_require__.O(undefined, [3274,7335,7298,7653,3547], () => (__nuri_require__(5589)))
297
+ /******/ __webpack_exports__ = __nuri_require__.O(__webpack_exports__);
298
+ /******/ const __webpack_exports__default = __webpack_exports__.A;
299
+ /******/ export { __webpack_exports__default as default };
300
+ /******/
@@ -0,0 +1,6 @@
1
+ import { ReactNode } from 'react';
2
+ /**
3
+ * asChild 로 받은 요소 하나(`<a>`·라우터 Link)에 컴포넌트의 내용을 채운다.
4
+ * 요소가 아니면 null — 쓰는 쪽은 null 이면 자기 기본 요소를 그린다.
5
+ */
6
+ export declare const fillLinkChild: (asChild: boolean | undefined, children: ReactNode, content: ReactNode) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | null;
@@ -0,0 +1,338 @@
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
+ /***/ 8173
7
+ (__unused_webpack_module, __webpack_exports__, __nuri_require__) {
8
+
9
+
10
+ // EXPORTS
11
+ __nuri_require__.d(__webpack_exports__, {
12
+ A: () => (/* binding */ icon_button)
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/utils/classNames.js
22
+ var classNames = __nuri_require__(3274);
23
+ // EXTERNAL MODULE: ./helpers/utils/fillLinkChild.ts
24
+ var fillLinkChild = __nuri_require__(1176);
25
+ // EXTERNAL MODULE: ./helpers/utils/getMergedProps.ts
26
+ var getMergedProps = __nuri_require__(7335);
27
+ // EXTERNAL MODULE: ./components/icon/icon.tsx
28
+ var icon_icon = __nuri_require__(3547);
29
+ // EXTERNAL MODULE: ./components/core/composer/index.tsx
30
+ var composer = __nuri_require__(2777);
31
+ ;// ./components/icon-button/base-icon-button.tsx
32
+ var __assign = undefined && undefined.__assign || function () {
33
+ __assign = Object.assign || function (t) {
34
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
35
+ s = arguments[i];
36
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
37
+ }
38
+ return t;
39
+ };
40
+ return __assign.apply(this, arguments);
41
+ };
42
+ var __rest = undefined && undefined.__rest || function (s, e) {
43
+ var t = {};
44
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
45
+ if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
46
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
47
+ }
48
+ return t;
49
+ };
50
+
51
+
52
+
53
+
54
+ var BaseIconButton = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.forwardRef)(function (props, ref) {
55
+ var _a = props.asChild,
56
+ asChild = _a === void 0 ? false : _a,
57
+ className = props.className,
58
+ disabled = props.disabled,
59
+ restProps = __rest(props, ["asChild", "className", "disabled"]);
60
+ var Comp = asChild ? composer/* default */.A : 'button';
61
+ return (0,jsx_runtime_.jsx)(Comp, __assign({
62
+ ref: ref,
63
+ className: (0,classNames/* classNames */.x)('nuri-theme base-icon-button', className),
64
+ type: asChild ? undefined : 'button',
65
+ disabled: disabled,
66
+ "data-disabled": disabled || undefined
67
+ }, restProps));
68
+ });
69
+ BaseIconButton.displayName = 'BaseIconButton';
70
+ /* harmony default export */ const base_icon_button = (BaseIconButton);
71
+ // EXTERNAL MODULE: ./helpers/props/common-props.ts
72
+ var common_props = __nuri_require__(7298);
73
+ ;// ./components/icon-button/icon-button-props.ts
74
+
75
+ var variant = ['ghost', 'secondary', 'primary'];
76
+ var sizes = ['s', 'm', 'l'];
77
+ // 아이콘 크기도 이 값으로 고르므로 기본 크기를 한 곳에 둔다
78
+ var defaultSize = 'm';
79
+ var iconButtonProps = {
80
+ variant: {
81
+ type: 'className',
82
+ className: 'variant',
83
+ values: variant,
84
+ "default": 'ghost'
85
+ },
86
+ size: (0,common_props/* sizeProp */.lw)(sizes, defaultSize)
87
+ };
88
+ ;// ./components/icon-button/icon-button.tsx
89
+ var icon_button_assign = undefined && undefined.__assign || function () {
90
+ icon_button_assign = Object.assign || function (t) {
91
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
92
+ s = arguments[i];
93
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
94
+ }
95
+ return t;
96
+ };
97
+ return icon_button_assign.apply(this, arguments);
98
+ };
99
+ var icon_button_rest = undefined && undefined.__rest || function (s, e) {
100
+ var t = {};
101
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
102
+ if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
103
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
104
+ }
105
+ return t;
106
+ };
107
+
108
+
109
+
110
+
111
+
112
+
113
+
114
+
115
+
116
+ // 버튼 크기마다 아이콘 크기. 버튼 지름은 size.css 의 --icon-button-size-*
117
+ var ICON_SIZE = {
118
+ s: 's',
119
+ m: 'l',
120
+ l: 'xl'
121
+ };
122
+ /** 아이콘 하나뿐인 버튼. 누르는 자리는 늘 터치 44 이상이다 */
123
+ var IconButton = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.forwardRef)(function (props, ref) {
124
+ var _a;
125
+ var _b = (0,getMergedProps/* getMergedProps */.p)(props, iconButtonProps),
126
+ className = _b.className,
127
+ icon = _b.icon,
128
+ label = _b.label,
129
+ asChild = _b.asChild,
130
+ children = _b.children,
131
+ _onClick = _b.onClick,
132
+ track = _b.track,
133
+ trackProps = _b.trackProps,
134
+ restProps = icon_button_rest(_b, ["className", "icon", "label", "asChild", "children", "onClick", "track", "trackProps"]);
135
+ var emit = (0,useTrack/* useTrack */.n)('IconButton', {
136
+ track: track,
137
+ trackProps: trackProps
138
+ });
139
+ var content = (0,jsx_runtime_.jsx)(icon_icon/* default */.A, {
140
+ name: icon,
141
+ size: ICON_SIZE[(_a = props.size) !== null && _a !== void 0 ? _a : defaultSize]
142
+ });
143
+ var link = (0,fillLinkChild/* fillLinkChild */.Q)(asChild, children, content);
144
+ return (0,jsx_runtime_.jsx)(base_icon_button, icon_button_assign({
145
+ ref: ref,
146
+ className: (0,classNames/* classNames */.x)(className, 'icon-button'),
147
+ "aria-label": label,
148
+ asChild: link !== null,
149
+ onClick: function onClick(event) {
150
+ emit('click');
151
+ _onClick === null || _onClick === void 0 ? void 0 : _onClick(event);
152
+ }
153
+ }, restProps, {
154
+ children: link !== null && link !== void 0 ? link : content
155
+ }));
156
+ });
157
+ IconButton.displayName = 'IconButton';
158
+ /* harmony default export */ const icon_button = (IconButton);
159
+
160
+ /***/ },
161
+
162
+ /***/ 1041
163
+ (module, __unused_webpack_exports, __nuri_require__) {
164
+
165
+ var x = (y) => {
166
+ var x = {}; __nuri_require__.d(x, y); return x
167
+ }
168
+ var y = (x) => (() => (x))
169
+ 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) });
170
+
171
+ /***/ },
172
+
173
+ /***/ 612
174
+ (module, __unused_webpack_exports, __nuri_require__) {
175
+
176
+ var x = (y) => {
177
+ var x = {}; __nuri_require__.d(x, y); return x
178
+ }
179
+ var y = (x) => (() => (x))
180
+ module.exports = x({ ["jsx"]: () => (__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_179142b8__.jsx) });
181
+
182
+ /***/ }
183
+
184
+ /******/ });
185
+ /************************************************************************/
186
+ /******/ // The module cache
187
+ /******/ var __webpack_module_cache__ = {};
188
+ /******/
189
+ /******/ // The require function
190
+ /******/ function __nuri_require__(moduleId) {
191
+ /******/ // Check if module is in cache
192
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
193
+ /******/ if (cachedModule !== undefined) {
194
+ /******/ return cachedModule.exports;
195
+ /******/ }
196
+ /******/ // Create a new module (and put it into the cache)
197
+ /******/ var module = __webpack_module_cache__[moduleId] = {
198
+ /******/ // no module.id needed
199
+ /******/ // no module.loaded needed
200
+ /******/ exports: {}
201
+ /******/ };
202
+ /******/
203
+ /******/ // Execute the module function
204
+ /******/ __webpack_modules__[moduleId](module, module.exports, __nuri_require__);
205
+ /******/
206
+ /******/ // Return the exports of the module
207
+ /******/ return module.exports;
208
+ /******/ }
209
+ /******/
210
+ /******/ // expose the modules object (__webpack_modules__)
211
+ /******/ __nuri_require__.m = __webpack_modules__;
212
+ /******/
213
+ /************************************************************************/
214
+ /******/ /* webpack/runtime/chunk loaded */
215
+ /******/ (() => {
216
+ /******/ var deferred = [];
217
+ /******/ __nuri_require__.O = (result, chunkIds, fn, priority) => {
218
+ /******/ if(chunkIds) {
219
+ /******/ priority = priority || 0;
220
+ /******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];
221
+ /******/ deferred[i] = [chunkIds, fn, priority];
222
+ /******/ return;
223
+ /******/ }
224
+ /******/ var notFulfilled = Infinity;
225
+ /******/ for (var i = 0; i < deferred.length; i++) {
226
+ /******/ var [chunkIds, fn, priority] = deferred[i];
227
+ /******/ var fulfilled = true;
228
+ /******/ for (var j = 0; j < chunkIds.length; j++) {
229
+ /******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__nuri_require__.O).every((key) => (__nuri_require__.O[key](chunkIds[j])))) {
230
+ /******/ chunkIds.splice(j--, 1);
231
+ /******/ } else {
232
+ /******/ fulfilled = false;
233
+ /******/ if(priority < notFulfilled) notFulfilled = priority;
234
+ /******/ }
235
+ /******/ }
236
+ /******/ if(fulfilled) {
237
+ /******/ deferred.splice(i--, 1)
238
+ /******/ var r = fn();
239
+ /******/ if (r !== undefined) result = r;
240
+ /******/ }
241
+ /******/ }
242
+ /******/ return result;
243
+ /******/ };
244
+ /******/ })();
245
+ /******/
246
+ /******/ /* webpack/runtime/define property getters */
247
+ /******/ (() => {
248
+ /******/ // define getter functions for harmony exports
249
+ /******/ __nuri_require__.d = (exports, definition) => {
250
+ /******/ for(var key in definition) {
251
+ /******/ if(__nuri_require__.o(definition, key) && !__nuri_require__.o(exports, key)) {
252
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
253
+ /******/ }
254
+ /******/ }
255
+ /******/ };
256
+ /******/ })();
257
+ /******/
258
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
259
+ /******/ (() => {
260
+ /******/ __nuri_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
261
+ /******/ })();
262
+ /******/
263
+ /******/ /* webpack/runtime/export webpack runtime */
264
+ /******/ export { __nuri_require__ };
265
+ /******/
266
+ /******/ /* webpack/runtime/import chunk loading */
267
+ /******/ (() => {
268
+ /******/ // no baseURI
269
+ /******/
270
+ /******/ // object to store loaded and loading chunks
271
+ /******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
272
+ /******/ // [resolve, Promise] = chunk loading, 0 = chunk loaded
273
+ /******/ var installedChunks = {
274
+ /******/ 1541: 0
275
+ /******/ };
276
+ /******/
277
+ /******/ var installChunk = (data) => {
278
+ /******/ var {__webpack_esm_ids__, __webpack_esm_modules__, __webpack_esm_runtime__} = data;
279
+ /******/ // add "modules" to the modules object,
280
+ /******/ // then flag all "ids" as loaded and fire callback
281
+ /******/ var moduleId, chunkId, i = 0;
282
+ /******/ for(moduleId in __webpack_esm_modules__) {
283
+ /******/ if(__nuri_require__.o(__webpack_esm_modules__, moduleId)) {
284
+ /******/ __nuri_require__.m[moduleId] = __webpack_esm_modules__[moduleId];
285
+ /******/ }
286
+ /******/ }
287
+ /******/ if(__webpack_esm_runtime__) __webpack_esm_runtime__(__nuri_require__);
288
+ /******/ for(;i < __webpack_esm_ids__.length; i++) {
289
+ /******/ chunkId = __webpack_esm_ids__[i];
290
+ /******/ if(__nuri_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
291
+ /******/ installedChunks[chunkId][0]();
292
+ /******/ }
293
+ /******/ installedChunks[__webpack_esm_ids__[i]] = 0;
294
+ /******/ }
295
+ /******/ __nuri_require__.O();
296
+ /******/ }
297
+ /******/
298
+ /******/ // no chunk on demand loading
299
+ /******/
300
+ /******/ // no prefetching
301
+ /******/
302
+ /******/ // no preloaded
303
+ /******/
304
+ /******/ __nuri_require__.C = installChunk;
305
+ /******/
306
+ /******/ __nuri_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);
307
+ /******/ // no HMR
308
+ /******/
309
+ /******/ // no HMR manifest
310
+ /******/ })();
311
+ /******/
312
+ /************************************************************************/
313
+ /******/
314
+ /******/ import * as __webpack_chunk_1__ from "./chunk-3274.js";
315
+ /******/ __nuri_require__.C(__webpack_chunk_1__);
316
+ /******/ import * as __webpack_chunk_2__ from "./chunk-7335.js";
317
+ /******/ __nuri_require__.C(__webpack_chunk_2__);
318
+ /******/ import * as __webpack_chunk_3__ from "./chunk-4560.js";
319
+ /******/ __nuri_require__.C(__webpack_chunk_3__);
320
+ /******/ import * as __webpack_chunk_4__ from "./chunk-7298.js";
321
+ /******/ __nuri_require__.C(__webpack_chunk_4__);
322
+ /******/ import * as __webpack_chunk_5__ from "./chunk-2777.js";
323
+ /******/ __nuri_require__.C(__webpack_chunk_5__);
324
+ /******/ import * as __webpack_chunk_6__ from "./chunk-7653.js";
325
+ /******/ __nuri_require__.C(__webpack_chunk_6__);
326
+ /******/ import * as __webpack_chunk_7__ from "./chunk-3547.js";
327
+ /******/ __nuri_require__.C(__webpack_chunk_7__);
328
+ /******/ import * as __webpack_chunk_8__ from "./chunk-1176.js";
329
+ /******/ __nuri_require__.C(__webpack_chunk_8__);
330
+ /******/
331
+ /******/ // startup
332
+ /******/ // Load entry module and return exports
333
+ /******/ // This entry module depends on other loaded chunks and execution need to be delayed
334
+ /******/ var __webpack_exports__ = __nuri_require__.O(undefined, [3274,7335,4560,7298,2777,7653,3547,1176], () => (__nuri_require__(8173)))
335
+ /******/ __webpack_exports__ = __nuri_require__.O(__webpack_exports__);
336
+ /******/ const __webpack_exports__default = __webpack_exports__.A;
337
+ /******/ export { __webpack_exports__default as default };
338
+ /******/