@nurihaus/web-design-system 3.0.1 → 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 (175) hide show
  1. package/README.md +104 -5
  2. package/dist/.storybook/story-kit.d.ts +18 -0
  3. package/dist/ai/components.md +1036 -0
  4. package/dist/ai/tokens.md +344 -0
  5. package/dist/avatar.js +336 -0
  6. package/dist/breadcrumb.js +364 -0
  7. package/dist/check-box.js +360 -0
  8. package/dist/chunk-149.js +57 -0
  9. package/dist/chunk-298.js +34 -0
  10. package/dist/chunk-302.js +105 -0
  11. package/dist/chunk-309.js +36 -0
  12. package/dist/chunk-364.js +126 -0
  13. package/dist/chunk-387.js +56 -0
  14. package/dist/chunk-436.js +33 -0
  15. package/dist/chunk-558.js +200 -0
  16. package/dist/chunk-563.js +181 -0
  17. package/dist/chunk-657.js +143 -0
  18. package/dist/chunk-713.js +38 -0
  19. package/dist/chunk-739.js +68 -0
  20. package/dist/chunk-77.js +34 -0
  21. package/dist/chunk-777.js +117 -0
  22. package/dist/chunk-910.js +64 -0
  23. package/dist/chunk-917.js +35 -0
  24. package/dist/chunk-933.js +70 -0
  25. package/dist/chunk-976.js +29 -0
  26. package/dist/collapsible-menu.js +394 -0
  27. package/dist/components/avatar/avatar-props.d.ts +2 -6
  28. package/dist/components/avatar/avatar-type.d.ts +4 -5
  29. package/dist/components/avatar/avatar.d.ts +1 -0
  30. package/dist/components/avatar/avatar.stories.d.ts +17 -1
  31. package/dist/components/badge/badge-props.d.ts +17 -80
  32. package/dist/components/badge/badge-type.d.ts +38 -2
  33. package/dist/components/badge/badge.stories.d.ts +25 -2
  34. package/dist/components/badge/base-badge.d.ts +2 -1
  35. package/dist/components/badge/icon-text-badge.d.ts +3 -21
  36. package/dist/components/badge/icon-text-option-badge.d.ts +2 -15
  37. package/dist/components/badge/option-badge.d.ts +3 -20
  38. package/dist/components/breadcrumb/base-breadcrumb.d.ts +19 -0
  39. package/dist/components/breadcrumb/breadcrumb-props.d.ts +4 -0
  40. package/dist/components/breadcrumb/breadcrumb-type.d.ts +33 -0
  41. package/dist/components/breadcrumb/breadcrumb.d.ts +4 -0
  42. package/dist/components/breadcrumb/breadcrumb.stories.d.ts +25 -0
  43. package/dist/components/button/button-props.d.ts +2 -7
  44. package/dist/components/button/button-type.d.ts +11 -3
  45. package/dist/components/button/button.stories.d.ts +13 -10
  46. package/dist/components/button/cta-button.d.ts +3 -12
  47. package/dist/components/check-box/base-check-box.d.ts +9 -5
  48. package/dist/components/check-box/check-box-props.d.ts +2 -7
  49. package/dist/components/check-box/check-box-type.d.ts +11 -4
  50. package/dist/components/check-box/check-box.d.ts +3 -10
  51. package/dist/components/check-box/check-box.stories.d.ts +19 -4
  52. package/dist/components/collapsible-menu/base-collapsible-menu.d.ts +9 -5
  53. package/dist/components/collapsible-menu/collapsible-menu-props.d.ts +3 -12
  54. package/dist/components/collapsible-menu/collapsible-menu-type.d.ts +33 -9
  55. package/dist/components/collapsible-menu/collapsible-menu.d.ts +3 -23
  56. package/dist/components/collapsible-menu/collapsible-menu.stories.d.ts +20 -4
  57. package/dist/components/drawer/base-drawer.d.ts +15 -0
  58. package/dist/components/drawer/drawer-props.d.ts +11 -0
  59. package/dist/components/drawer/drawer-type.d.ts +28 -0
  60. package/dist/components/drawer/drawer.d.ts +4 -0
  61. package/dist/components/drawer/drawer.stories.d.ts +34 -0
  62. package/dist/components/drop-down/base-drop-down.d.ts +11 -3
  63. package/dist/components/drop-down/drop-down-props.d.ts +3 -12
  64. package/dist/components/drop-down/drop-down-type.d.ts +34 -15
  65. package/dist/components/drop-down/drop-down.d.ts +3 -32
  66. package/dist/components/drop-down/drop-down.stories.d.ts +23 -4
  67. package/dist/components/elements/text/base-text.d.ts +3 -0
  68. package/dist/components/elements/text/text-props.d.ts +16 -0
  69. package/dist/components/elements/text/text-type.d.ts +6 -2
  70. package/dist/components/elements/text/text.d.ts +2 -1
  71. package/dist/components/elements/text/text.stories.d.ts +43 -3
  72. package/dist/components/loading/index.d.ts +6 -6
  73. package/dist/components/loading/inline-loading/base-inline-loading.d.ts +3 -0
  74. package/dist/components/loading/inline-loading/inline-loading-props.d.ts +9 -0
  75. package/dist/components/loading/inline-loading/inline-loading-type.d.ts +8 -6
  76. package/dist/components/loading/inline-loading/inline-loading.d.ts +3 -2
  77. package/dist/components/loading/inline-loading/inline-loading.stories.d.ts +5 -9
  78. package/dist/components/loading/overlay-loading/base-overlay-loading.d.ts +3 -0
  79. package/dist/components/loading/overlay-loading/overlay-loading-props.d.ts +7 -0
  80. package/dist/components/loading/overlay-loading/overlay-loading-type.d.ts +6 -3
  81. package/dist/components/loading/overlay-loading/overlay-loading.d.ts +3 -3
  82. package/dist/components/loading/overlay-loading/overlay-loading.stories.d.ts +8 -8
  83. package/dist/components/loading/spinner/base-spinner.d.ts +4 -0
  84. package/dist/components/loading/spinner/spinner-props.d.ts +1 -0
  85. package/dist/components/loading/spinner/spinner-type.d.ts +4 -4
  86. package/dist/components/loading/spinner/spinner.d.ts +2 -2
  87. package/dist/components/loading/spinner/spinner.stories.d.ts +5 -12
  88. package/dist/components/modal/base-modal.d.ts +21 -6
  89. package/dist/components/modal/modal-props.d.ts +5 -7
  90. package/dist/components/modal/modal-type.d.ts +34 -10
  91. package/dist/components/modal/modal-with-double-button.d.ts +4 -16
  92. package/dist/components/modal/modal-with-double-button.stories.d.ts +22 -0
  93. package/dist/components/modal/modal.d.ts +4 -0
  94. package/dist/components/modal/modal.stories.d.ts +22 -4
  95. package/dist/components/pagination/base-pagination.d.ts +9 -0
  96. package/dist/components/pagination/pagination-props.d.ts +4 -0
  97. package/dist/components/pagination/pagination-type.d.ts +20 -0
  98. package/dist/components/pagination/pagination.d.ts +4 -0
  99. package/dist/components/pagination/pagination.stories.d.ts +25 -0
  100. package/dist/components/radio/base-radio.d.ts +9 -5
  101. package/dist/components/radio/radio-props.d.ts +1 -0
  102. package/dist/components/radio/radio-type.d.ts +6 -8
  103. package/dist/components/radio/radio.d.ts +2 -2
  104. package/dist/components/radio/radio.stories.d.ts +13 -4
  105. package/dist/components/skeleton/base-skeleton.d.ts +4 -0
  106. package/dist/components/skeleton/skeleton-props.d.ts +15 -0
  107. package/dist/components/skeleton/skeleton-type.d.ts +12 -0
  108. package/dist/components/skeleton/skeleton.d.ts +4 -0
  109. package/dist/components/skeleton/skeleton.stories.d.ts +327 -0
  110. package/dist/components/switch/base-switch.d.ts +11 -0
  111. package/dist/components/switch/switch-props.d.ts +4 -0
  112. package/dist/components/switch/switch-type.d.ts +19 -0
  113. package/dist/components/switch/switch.d.ts +4 -0
  114. package/dist/components/switch/switch.stories.d.ts +24 -0
  115. package/dist/components/table/base-table.d.ts +4 -5
  116. package/dist/components/table/data-table.d.ts +5 -22
  117. package/dist/components/table/table-type.d.ts +22 -1
  118. package/dist/components/table/table.stories.d.ts +19 -3
  119. package/dist/components/tabs/base-tabs.d.ts +7 -7
  120. package/dist/components/tabs/tabs-props.d.ts +1 -1
  121. package/dist/components/tabs/tabs-type.d.ts +9 -13
  122. package/dist/components/tabs/tabs.d.ts +3 -3
  123. package/dist/components/tabs/tabs.stories.d.ts +16 -10
  124. package/dist/components/text-area/base-text-area.d.ts +10 -0
  125. package/dist/components/text-area/text-area-props.d.ts +12 -0
  126. package/dist/components/text-area/text-area-type.d.ts +34 -0
  127. package/dist/components/text-area/text-area.d.ts +4 -0
  128. package/dist/components/text-area/text-area.stories.d.ts +32 -0
  129. package/dist/components/text-field/base-text-field.d.ts +5 -3
  130. package/dist/components/text-field/text-field-props.d.ts +3 -12
  131. package/dist/components/text-field/text-field-type.d.ts +14 -0
  132. package/dist/components/text-field/text-field.d.ts +3 -16
  133. package/dist/components/text-field/text-field.stories.d.ts +24 -0
  134. package/dist/components/toast/base-toast.d.ts +20 -0
  135. package/dist/components/toast/toast-props.d.ts +18 -0
  136. package/dist/components/toast/toast-type.d.ts +45 -0
  137. package/dist/components/toast/toast.d.ts +5 -0
  138. package/dist/components/toast/toast.stories.d.ts +310 -0
  139. package/dist/components/tooltip/base-tooltip.d.ts +13 -3
  140. package/dist/components/tooltip/tooltip-props.d.ts +3 -2
  141. package/dist/components/tooltip/tooltip-type.d.ts +17 -5
  142. package/dist/components/tooltip/tooltip.d.ts +4 -7
  143. package/dist/components/tooltip/tooltip.stories.d.ts +21 -4
  144. package/dist/components.css +3017 -0
  145. package/dist/cta-button.js +237 -0
  146. package/dist/data-table.js +386 -0
  147. package/dist/drawer.js +390 -0
  148. package/dist/drop-down.js +419 -0
  149. package/dist/helpers/hooks/useExternalState.d.ts +5 -0
  150. package/dist/helpers/props/common-props.d.ts +7 -0
  151. package/dist/helpers/types/common-props.d.ts +8 -0
  152. package/dist/icon-text-badge.js +294 -0
  153. package/dist/icon-text-option-badge.js +270 -0
  154. package/dist/index.d.ts +33 -1
  155. package/dist/index.js +4179 -10180
  156. package/dist/loading.js +383 -0
  157. package/dist/modal-with-double-button.js +332 -0
  158. package/dist/modal.js +288 -0
  159. package/dist/option-badge.js +293 -0
  160. package/dist/pagination.js +412 -0
  161. package/dist/radio.js +363 -0
  162. package/dist/reset.css +45 -0
  163. package/dist/skeleton.js +331 -0
  164. package/dist/styles.css +1386 -248
  165. package/dist/switch.js +349 -0
  166. package/dist/tabs.js +421 -0
  167. package/dist/text-area.js +374 -0
  168. package/dist/text-field.js +369 -0
  169. package/dist/text.js +233 -0
  170. package/dist/toast.js +496 -0
  171. package/dist/tokens.css +100 -0
  172. package/dist/tokens.js +4 -6
  173. package/dist/tooltip.js +360 -0
  174. package/package.json +123 -14
  175. package/dist/components/text-field/text-filed.stories.d.ts +0 -8
@@ -0,0 +1,419 @@
1
+ "use client";
2
+ import * as __WEBPACK_EXTERNAL_MODULE_radix_ui_3bc96d1b__ from "radix-ui";
3
+ import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
4
+ import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_179142b8__ from "react/jsx-runtime";
5
+ /******/ var __webpack_modules__ = ({
6
+
7
+ /***/ 9691
8
+ (__unused_webpack_module, __webpack_exports__, __nuri_require__) {
9
+
10
+
11
+ // EXPORTS
12
+ __nuri_require__.d(__webpack_exports__, {
13
+ A: () => (/* binding */ drop_down)
14
+ });
15
+
16
+ // EXTERNAL MODULE: external {"root":"jsx-runtime","commonjs2":"react/jsx-runtime","commonjs":"react/jsx-runtime","amd":"react/jsx-runtime","module":"react/jsx-runtime"}
17
+ var jsx_runtime_ = __nuri_require__(612);
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__(1041);
20
+ // EXTERNAL MODULE: ./assets/icons/chevronDown.svg
21
+ var chevronDown = __nuri_require__(9436);
22
+ // EXTERNAL MODULE: ./helpers/hooks/useExternalState.ts
23
+ var useExternalState = __nuri_require__(9387);
24
+ // EXTERNAL MODULE: ./helpers/utils/classNames.js
25
+ var classNames = __nuri_require__(3274);
26
+ // EXTERNAL MODULE: ./helpers/utils/getMergedProps.ts
27
+ var getMergedProps = __nuri_require__(7335);
28
+ // EXTERNAL MODULE: external {"root":"RadixUI","commonjs2":"radix-ui","commonjs":"radix-ui","amd":"radix-ui","module":"radix-ui"}
29
+ var external_root_RadixUI_commonjs2_radix_ui_commonjs_radix_ui_amd_radix_ui_module_radix_ui_ = __nuri_require__(0);
30
+ ;// ./components/drop-down/base-drop-down.tsx
31
+ var __assign = undefined && undefined.__assign || function () {
32
+ __assign = Object.assign || function (t) {
33
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
34
+ s = arguments[i];
35
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
36
+ }
37
+ return t;
38
+ };
39
+ return __assign.apply(this, arguments);
40
+ };
41
+ var __rest = undefined && undefined.__rest || function (s, e) {
42
+ var t = {};
43
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
44
+ if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
45
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
46
+ }
47
+ return t;
48
+ };
49
+
50
+
51
+
52
+
53
+ // Select.Root 는 DOM 을 그리지 않아 ref 를 받을 곳이 없다.
54
+ var DropDownRootBase = function DropDownRootBase(props) {
55
+ var children = props.children,
56
+ restProps = __rest(props, ["children"]);
57
+ return (0,jsx_runtime_.jsx)(external_root_RadixUI_commonjs2_radix_ui_commonjs_radix_ui_amd_radix_ui_module_radix_ui_.Select.Root, __assign({}, restProps, {
58
+ children: children
59
+ }));
60
+ };
61
+ DropDownRootBase.displayName = 'DropDownRoot';
62
+ var DropDownTrigger = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.forwardRef)(function (props, ref) {
63
+ var children = props.children,
64
+ className = props.className,
65
+ restProps = __rest(props, ["children", "className"]);
66
+ return (0,jsx_runtime_.jsx)(external_root_RadixUI_commonjs2_radix_ui_commonjs_radix_ui_amd_radix_ui_module_radix_ui_.Select.Trigger, __assign({
67
+ ref: ref,
68
+ className: (0,classNames/* classNames */.x)('nuri-theme base-drop-down trigger', className)
69
+ }, restProps, {
70
+ children: children
71
+ }));
72
+ });
73
+ DropDownTrigger.displayName = 'DropDownTrigger';
74
+ // ref 는 바깥 span 이 아니라 Radix 가 값을 그리는 Select.Value 에 준다.
75
+ var DropDownValue = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.forwardRef)(function (props, ref) {
76
+ var className = props.className,
77
+ asChild = props.asChild,
78
+ placeholder = props.placeholder;
79
+ return (0,jsx_runtime_.jsx)("span", {
80
+ className: (0,classNames/* classNames */.x)('nuri-theme base-drop-down value', className),
81
+ children: (0,jsx_runtime_.jsx)(external_root_RadixUI_commonjs2_radix_ui_commonjs_radix_ui_amd_radix_ui_module_radix_ui_.Select.Value, {
82
+ ref: ref,
83
+ asChild: asChild,
84
+ placeholder: (0,jsx_runtime_.jsx)("span", {
85
+ className: 'nuri-placeholder',
86
+ children: placeholder
87
+ })
88
+ })
89
+ });
90
+ });
91
+ DropDownValue.displayName = 'DropDownValue';
92
+ var DropDownContent = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.forwardRef)(function (props, ref) {
93
+ var children = props.children,
94
+ className = props.className,
95
+ _a = props.position,
96
+ position = _a === void 0 ? 'popper' : _a,
97
+ restProps = __rest(props, ["children", "className", "position"]);
98
+ return (0,jsx_runtime_.jsx)(external_root_RadixUI_commonjs2_radix_ui_commonjs_radix_ui_amd_radix_ui_module_radix_ui_.Select.Content, __assign({
99
+ ref: ref,
100
+ className: (0,classNames/* classNames */.x)('nuri-theme base-drop-down content', className),
101
+ position: position,
102
+ sideOffset: 4
103
+ }, restProps, {
104
+ children: (0,jsx_runtime_.jsx)(external_root_RadixUI_commonjs2_radix_ui_commonjs_radix_ui_amd_radix_ui_module_radix_ui_.Select.Viewport, {
105
+ children: children
106
+ })
107
+ }));
108
+ });
109
+ DropDownContent.displayName = 'DropDownContent';
110
+ var DropDownItem = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.forwardRef)(function (props, ref) {
111
+ var children = props.children,
112
+ className = props.className,
113
+ restProps = __rest(props, ["children", "className"]);
114
+ return (0,jsx_runtime_.jsx)(external_root_RadixUI_commonjs2_radix_ui_commonjs_radix_ui_amd_radix_ui_module_radix_ui_.Select.Item, __assign({
115
+ ref: ref,
116
+ className: (0,classNames/* classNames */.x)('nuri-theme base-drop-down item', className)
117
+ }, restProps, {
118
+ children: (0,jsx_runtime_.jsx)(external_root_RadixUI_commonjs2_radix_ui_commonjs_radix_ui_amd_radix_ui_module_radix_ui_.Select.ItemText, {
119
+ children: children
120
+ })
121
+ }));
122
+ });
123
+ DropDownItem.displayName = 'DropDownItem';
124
+ var DropDownRoot = Object.assign(DropDownRootBase, {
125
+ Trigger: DropDownTrigger,
126
+ Value: DropDownValue,
127
+ Content: DropDownContent,
128
+ Item: DropDownItem
129
+ });
130
+ /* harmony default export */ const base_drop_down = (DropDownRoot);
131
+ // EXTERNAL MODULE: ./helpers/props/common-props.ts
132
+ var common_props = __nuri_require__(7298);
133
+ ;// ./components/drop-down/drop-down-props.ts
134
+
135
+ var sizes = ['xs', 's', 'm', 'l', 'xl'];
136
+ var dropDownSingleProps = {
137
+ size: (0,common_props/* sizeProp */.lw)(sizes, 's'),
138
+ width: (0,common_props/* widthProp */.Iw)('fit-content')
139
+ };
140
+ ;// ./components/drop-down/drop-down.tsx
141
+ var drop_down_assign = undefined && undefined.__assign || function () {
142
+ drop_down_assign = Object.assign || function (t) {
143
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
144
+ s = arguments[i];
145
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
146
+ }
147
+ return t;
148
+ };
149
+ return drop_down_assign.apply(this, arguments);
150
+ };
151
+ var drop_down_rest = undefined && undefined.__rest || function (s, e) {
152
+ var t = {};
153
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
154
+ if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
155
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
156
+ }
157
+ return t;
158
+ };
159
+
160
+
161
+
162
+
163
+
164
+
165
+
166
+
167
+ var DropDown = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.forwardRef)(function (props, ref) {
168
+ var _a = (0,getMergedProps/* getMergedProps */.p)(props, dropDownSingleProps),
169
+ className = _a.className,
170
+ renderValue = _a.renderValue,
171
+ placeholder = _a.placeholder,
172
+ options = _a.options,
173
+ value = _a.value,
174
+ disabled = _a.disabled,
175
+ leftIcon = _a.leftIcon,
176
+ rightIcon = _a.rightIcon,
177
+ style = _a.style,
178
+ renderOption = _a.renderOption,
179
+ side = _a.side,
180
+ align = _a.align,
181
+ position = _a.position,
182
+ openProp = _a.open,
183
+ onOpenChangeProp = _a.onOpenChange,
184
+ defaultOpen = _a.defaultOpen,
185
+ restProps = drop_down_rest(_a, ["className", "renderValue", "placeholder", "options", "value", "disabled", "leftIcon", "rightIcon", "style", "renderOption", "side", "align", "position", "open", "onOpenChange", "defaultOpen"]);
186
+ var _b = (0,useExternalState/* useExternalState */.C)({
187
+ prop: openProp,
188
+ handler: onOpenChangeProp,
189
+ defaultProp: defaultOpen !== null && defaultOpen !== void 0 ? defaultOpen : false
190
+ }),
191
+ open = _b[0],
192
+ setOpen = _b[1];
193
+ var close = function close() {
194
+ return setOpen(false);
195
+ };
196
+ return (0,jsx_runtime_.jsxs)(base_drop_down, drop_down_assign({
197
+ value: value,
198
+ disabled: disabled,
199
+ open: open,
200
+ onOpenChange: setOpen
201
+ }, restProps, {
202
+ children: [(0,jsx_runtime_.jsxs)(base_drop_down.Trigger, {
203
+ className: (0,classNames/* classNames */.x)(className, 'drop-down-single-trigger'),
204
+ style: style,
205
+ children: [(0,jsx_runtime_.jsxs)("span", {
206
+ className: 'nuri-display-flex nuri-ai-center drop-down-single-label',
207
+ children: [leftIcon, (renderValue === null || renderValue === void 0 ? void 0 : renderValue(value)) || (0,jsx_runtime_.jsx)(base_drop_down.Value, {
208
+ ref: ref,
209
+ className: 'drop-down-single-value',
210
+ placeholder: placeholder
211
+ })]
212
+ }), rightIcon || (0,jsx_runtime_.jsx)(chevronDown/* default */.A, {
213
+ className: 'drop-down-single-icon rotate'
214
+ })]
215
+ }), (0,jsx_runtime_.jsx)(base_drop_down.Content, {
216
+ className: 'drop-down-single-content',
217
+ side: side,
218
+ align: align,
219
+ position: position,
220
+ style: style,
221
+ children: renderOption ? renderOption({
222
+ isOpen: open,
223
+ close: close
224
+ }) : options === null || options === void 0 ? void 0 : options.map(function (option) {
225
+ return (0,jsx_runtime_.jsx)(base_drop_down.Item, {
226
+ className: 'drop-down-single-item',
227
+ value: option.value,
228
+ disabled: option.disabled,
229
+ children: option.label
230
+ }, option.value);
231
+ })
232
+ })]
233
+ }));
234
+ });
235
+ DropDown.displayName = 'DropDown';
236
+ /* harmony default export */ const drop_down = (DropDown);
237
+
238
+ /***/ },
239
+
240
+ /***/ 0
241
+ (module, __unused_webpack_exports, __nuri_require__) {
242
+
243
+ var x = (y) => {
244
+ var x = {}; __nuri_require__.d(x, y); return x
245
+ }
246
+ var y = (x) => (() => (x))
247
+ module.exports = x({ ["Select"]: () => (__WEBPACK_EXTERNAL_MODULE_radix_ui_3bc96d1b__.Select) });
248
+
249
+ /***/ },
250
+
251
+ /***/ 1041
252
+ (module, __unused_webpack_exports, __nuri_require__) {
253
+
254
+ var x = (y) => {
255
+ var x = {}; __nuri_require__.d(x, y); return x
256
+ }
257
+ var y = (x) => (() => (x))
258
+ module.exports = x({ ["createElement"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.createElement), ["forwardRef"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.forwardRef), ["useEffect"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.useEffect), ["useRef"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.useRef), ["useState"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.useState) });
259
+
260
+ /***/ },
261
+
262
+ /***/ 612
263
+ (module, __unused_webpack_exports, __nuri_require__) {
264
+
265
+ var x = (y) => {
266
+ var x = {}; __nuri_require__.d(x, y); return x
267
+ }
268
+ var y = (x) => (() => (x))
269
+ module.exports = x({ ["jsx"]: () => (__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_179142b8__.jsx), ["jsxs"]: () => (__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_179142b8__.jsxs) });
270
+
271
+ /***/ }
272
+
273
+ /******/ });
274
+ /************************************************************************/
275
+ /******/ // The module cache
276
+ /******/ var __webpack_module_cache__ = {};
277
+ /******/
278
+ /******/ // The require function
279
+ /******/ function __nuri_require__(moduleId) {
280
+ /******/ // Check if module is in cache
281
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
282
+ /******/ if (cachedModule !== undefined) {
283
+ /******/ return cachedModule.exports;
284
+ /******/ }
285
+ /******/ // Create a new module (and put it into the cache)
286
+ /******/ var module = __webpack_module_cache__[moduleId] = {
287
+ /******/ // no module.id needed
288
+ /******/ // no module.loaded needed
289
+ /******/ exports: {}
290
+ /******/ };
291
+ /******/
292
+ /******/ // Execute the module function
293
+ /******/ __webpack_modules__[moduleId](module, module.exports, __nuri_require__);
294
+ /******/
295
+ /******/ // Return the exports of the module
296
+ /******/ return module.exports;
297
+ /******/ }
298
+ /******/
299
+ /******/ // expose the modules object (__webpack_modules__)
300
+ /******/ __nuri_require__.m = __webpack_modules__;
301
+ /******/
302
+ /************************************************************************/
303
+ /******/ /* webpack/runtime/chunk loaded */
304
+ /******/ (() => {
305
+ /******/ var deferred = [];
306
+ /******/ __nuri_require__.O = (result, chunkIds, fn, priority) => {
307
+ /******/ if(chunkIds) {
308
+ /******/ priority = priority || 0;
309
+ /******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];
310
+ /******/ deferred[i] = [chunkIds, fn, priority];
311
+ /******/ return;
312
+ /******/ }
313
+ /******/ var notFulfilled = Infinity;
314
+ /******/ for (var i = 0; i < deferred.length; i++) {
315
+ /******/ var [chunkIds, fn, priority] = deferred[i];
316
+ /******/ var fulfilled = true;
317
+ /******/ for (var j = 0; j < chunkIds.length; j++) {
318
+ /******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__nuri_require__.O).every((key) => (__nuri_require__.O[key](chunkIds[j])))) {
319
+ /******/ chunkIds.splice(j--, 1);
320
+ /******/ } else {
321
+ /******/ fulfilled = false;
322
+ /******/ if(priority < notFulfilled) notFulfilled = priority;
323
+ /******/ }
324
+ /******/ }
325
+ /******/ if(fulfilled) {
326
+ /******/ deferred.splice(i--, 1)
327
+ /******/ var r = fn();
328
+ /******/ if (r !== undefined) result = r;
329
+ /******/ }
330
+ /******/ }
331
+ /******/ return result;
332
+ /******/ };
333
+ /******/ })();
334
+ /******/
335
+ /******/ /* webpack/runtime/define property getters */
336
+ /******/ (() => {
337
+ /******/ // define getter functions for harmony exports
338
+ /******/ __nuri_require__.d = (exports, definition) => {
339
+ /******/ for(var key in definition) {
340
+ /******/ if(__nuri_require__.o(definition, key) && !__nuri_require__.o(exports, key)) {
341
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
342
+ /******/ }
343
+ /******/ }
344
+ /******/ };
345
+ /******/ })();
346
+ /******/
347
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
348
+ /******/ (() => {
349
+ /******/ __nuri_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
350
+ /******/ })();
351
+ /******/
352
+ /******/ /* webpack/runtime/export webpack runtime */
353
+ /******/ export { __nuri_require__ };
354
+ /******/
355
+ /******/ /* webpack/runtime/import chunk loading */
356
+ /******/ (() => {
357
+ /******/ // no baseURI
358
+ /******/
359
+ /******/ // object to store loaded and loading chunks
360
+ /******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
361
+ /******/ // [resolve, Promise] = chunk loading, 0 = chunk loaded
362
+ /******/ var installedChunks = {
363
+ /******/ 621: 0
364
+ /******/ };
365
+ /******/
366
+ /******/ var installChunk = (data) => {
367
+ /******/ var {__webpack_esm_ids__, __webpack_esm_modules__, __webpack_esm_runtime__} = data;
368
+ /******/ // add "modules" to the modules object,
369
+ /******/ // then flag all "ids" as loaded and fire callback
370
+ /******/ var moduleId, chunkId, i = 0;
371
+ /******/ for(moduleId in __webpack_esm_modules__) {
372
+ /******/ if(__nuri_require__.o(__webpack_esm_modules__, moduleId)) {
373
+ /******/ __nuri_require__.m[moduleId] = __webpack_esm_modules__[moduleId];
374
+ /******/ }
375
+ /******/ }
376
+ /******/ if(__webpack_esm_runtime__) __webpack_esm_runtime__(__nuri_require__);
377
+ /******/ for(;i < __webpack_esm_ids__.length; i++) {
378
+ /******/ chunkId = __webpack_esm_ids__[i];
379
+ /******/ if(__nuri_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
380
+ /******/ installedChunks[chunkId][0]();
381
+ /******/ }
382
+ /******/ installedChunks[__webpack_esm_ids__[i]] = 0;
383
+ /******/ }
384
+ /******/ __nuri_require__.O();
385
+ /******/ }
386
+ /******/
387
+ /******/ // no chunk on demand loading
388
+ /******/
389
+ /******/ // no prefetching
390
+ /******/
391
+ /******/ // no preloaded
392
+ /******/
393
+ /******/ __nuri_require__.C = installChunk;
394
+ /******/
395
+ /******/ __nuri_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);
396
+ /******/ // no HMR
397
+ /******/
398
+ /******/ // no HMR manifest
399
+ /******/ })();
400
+ /******/
401
+ /************************************************************************/
402
+ /******/
403
+ /******/ import * as __webpack_chunk_1__ from "./chunk-364.js";
404
+ /******/ __nuri_require__.C(__webpack_chunk_1__);
405
+ /******/ import * as __webpack_chunk_2__ from "./chunk-917.js";
406
+ /******/ __nuri_require__.C(__webpack_chunk_2__);
407
+ /******/ import * as __webpack_chunk_3__ from "./chunk-387.js";
408
+ /******/ __nuri_require__.C(__webpack_chunk_3__);
409
+ /******/ import * as __webpack_chunk_4__ from "./chunk-436.js";
410
+ /******/ __nuri_require__.C(__webpack_chunk_4__);
411
+ /******/
412
+ /******/ // startup
413
+ /******/ // Load entry module and return exports
414
+ /******/ // This entry module depends on other loaded chunks and execution need to be delayed
415
+ /******/ var __webpack_exports__ = __nuri_require__.O(undefined, [364,917,387,436], () => (__nuri_require__(9691)))
416
+ /******/ __webpack_exports__ = __nuri_require__.O(__webpack_exports__);
417
+ /******/ const __webpack_exports__default = __webpack_exports__.A;
418
+ /******/ export { __webpack_exports__default as default };
419
+ /******/
@@ -3,5 +3,10 @@ interface ExternalStateType<T> {
3
3
  handler?: (state: T) => void;
4
4
  defaultProp: T;
5
5
  }
6
+ /**
7
+ * Radix 의 useControllableState 를 옮긴 것. prop 이 있으면 controlled(값은 밖에서, 바뀌면 handler 만 부른다),
8
+ * 없으면 uncontrolled(안에서 들고 있고, 실제로 바뀐 뒤 useEffect 에서 handler 를 부른다).
9
+ * 어느 쪽이든 같은 값으로 다시 설정하면 handler 는 불리지 않는다.
10
+ */
6
11
  export declare const useExternalState: <T>({ prop, handler, defaultProp }: ExternalStateType<T>) => readonly [T, (handledValue: T | ((prevState: T) => T)) => void];
7
12
  export {};
@@ -0,0 +1,7 @@
1
+ import { CSSPropsTypeWithoutValues, ClassNamePropsType } from '../types/propsDef';
2
+ /** 모든 컴포넌트가 함께 쓰는 크기 이름. px 은 styles/token/size.css 에 있다. */
3
+ export declare const size: readonly ["xs", "s", "m", "l", "xl"];
4
+ export type Size = (typeof size)[number];
5
+ /** 컴포넌트는 다섯 이름 중 지원하는 것만 고른다. `size-{값}` 클래스가 붙는다. */
6
+ export declare const sizeProp: <T extends readonly Size[]>(values: T, defaultValue: T[number]) => ClassNamePropsType<T>;
7
+ export declare const widthProp: (defaultValue?: number | string) => CSSPropsTypeWithoutValues<number | string>;
@@ -0,0 +1,8 @@
1
+ import { CSSProperties } from 'react';
2
+ export interface AsChildProps {
3
+ asChild?: boolean;
4
+ }
5
+ export interface StyleProps {
6
+ className?: string;
7
+ style?: CSSProperties;
8
+ }