@nurihaus/web-design-system 3.0.3 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ai/components.md +305 -11
- package/dist/ai/tokens.md +38 -13
- package/dist/avatar.js +8 -8
- package/dist/breadcrumb.js +364 -0
- package/dist/check-box.js +16 -35
- package/dist/chunk-149.js +4 -4
- package/dist/chunk-298.js +1 -1
- package/dist/chunk-302.js +4 -4
- package/dist/chunk-309.js +1 -1
- package/dist/chunk-364.js +2 -2
- package/dist/chunk-387.js +23 -4
- package/dist/chunk-436.js +33 -0
- package/dist/chunk-558.js +6 -6
- package/dist/chunk-563.js +7 -7
- package/dist/chunk-657.js +143 -0
- package/dist/chunk-713.js +38 -0
- package/dist/chunk-739.js +6 -6
- package/dist/chunk-77.js +34 -0
- package/dist/chunk-777.js +2 -2
- package/dist/chunk-910.js +64 -0
- package/dist/chunk-917.js +1 -1
- package/dist/chunk-933.js +4 -4
- package/dist/chunk-976.js +2 -2
- package/dist/collapsible-menu.js +7 -7
- package/dist/components/breadcrumb/base-breadcrumb.d.ts +19 -0
- package/dist/components/breadcrumb/breadcrumb-props.d.ts +4 -0
- package/dist/components/breadcrumb/breadcrumb-type.d.ts +33 -0
- package/dist/components/breadcrumb/breadcrumb.d.ts +4 -0
- package/dist/components/breadcrumb/breadcrumb.stories.d.ts +25 -0
- package/dist/components/check-box/base-check-box.d.ts +1 -1
- package/dist/components/drawer/base-drawer.d.ts +15 -0
- package/dist/components/drawer/drawer-props.d.ts +11 -0
- package/dist/components/drawer/drawer-type.d.ts +28 -0
- package/dist/components/drawer/drawer.d.ts +4 -0
- package/dist/components/drawer/drawer.stories.d.ts +34 -0
- package/dist/components/drop-down/drop-down-props.d.ts +2 -2
- package/dist/components/drop-down/drop-down.stories.d.ts +1 -1
- package/dist/components/elements/text/text-props.d.ts +1 -1
- package/dist/components/elements/text/text.stories.d.ts +1 -1
- package/dist/components/modal/base-modal.d.ts +4 -1
- package/dist/components/modal/modal-props.d.ts +3 -0
- package/dist/components/modal/modal-type.d.ts +18 -4
- package/dist/components/modal/modal-with-double-button.stories.d.ts +22 -0
- package/dist/components/modal/modal.d.ts +4 -0
- package/dist/components/modal/modal.stories.d.ts +11 -6
- package/dist/components/pagination/base-pagination.d.ts +9 -0
- package/dist/components/pagination/pagination-props.d.ts +4 -0
- package/dist/components/pagination/pagination-type.d.ts +20 -0
- package/dist/components/pagination/pagination.d.ts +4 -0
- package/dist/components/pagination/pagination.stories.d.ts +25 -0
- package/dist/components/skeleton/base-skeleton.d.ts +4 -0
- package/dist/components/skeleton/skeleton-props.d.ts +15 -0
- package/dist/components/skeleton/skeleton-type.d.ts +12 -0
- package/dist/components/skeleton/skeleton.d.ts +4 -0
- package/dist/components/skeleton/skeleton.stories.d.ts +327 -0
- package/dist/components/switch/base-switch.d.ts +11 -0
- package/dist/components/switch/switch-props.d.ts +4 -0
- package/dist/components/switch/switch-type.d.ts +19 -0
- package/dist/components/switch/switch.d.ts +4 -0
- package/dist/components/switch/switch.stories.d.ts +24 -0
- package/dist/components/text-area/base-text-area.d.ts +10 -0
- package/dist/components/text-area/text-area-props.d.ts +12 -0
- package/dist/components/text-area/text-area-type.d.ts +34 -0
- package/dist/components/text-area/text-area.d.ts +4 -0
- package/dist/components/text-area/text-area.stories.d.ts +32 -0
- package/dist/components/text-field/text-field-props.d.ts +2 -2
- package/dist/components/text-field/text-field.stories.d.ts +1 -1
- package/dist/components/toast/base-toast.d.ts +20 -0
- package/dist/components/toast/toast-props.d.ts +18 -0
- package/dist/components/toast/toast-type.d.ts +45 -0
- package/dist/components/toast/toast.d.ts +5 -0
- package/dist/components/toast/toast.stories.d.ts +310 -0
- package/dist/components.css +1089 -56
- package/dist/cta-button.js +12 -11
- package/dist/data-table.js +6 -6
- package/dist/drawer.js +390 -0
- package/dist/drop-down.js +15 -29
- package/dist/helpers/hooks/useExternalState.d.ts +5 -0
- package/dist/icon-text-badge.js +11 -11
- package/dist/icon-text-option-badge.js +10 -10
- package/dist/index.d.ts +16 -0
- package/dist/index.js +2090 -475
- package/dist/loading.js +8 -8
- package/dist/modal-with-double-button.js +60 -255
- package/dist/modal.js +288 -0
- package/dist/option-badge.js +11 -11
- package/dist/pagination.js +412 -0
- package/dist/radio.js +10 -10
- package/dist/skeleton.js +331 -0
- package/dist/styles.css +921 -29
- package/dist/switch.js +349 -0
- package/dist/tabs.js +6 -6
- package/dist/text-area.js +374 -0
- package/dist/text-field.js +7 -7
- package/dist/text.js +8 -8
- package/dist/toast.js +496 -0
- package/dist/tokens.css +32 -5
- package/dist/tooltip.js +9 -9
- package/package.json +33 -1
package/dist/cta-button.js
CHANGED
|
@@ -10,12 +10,12 @@ import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_179142b8__ from "react/j
|
|
|
10
10
|
/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
11
11
|
/* harmony export */ });
|
|
12
12
|
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __nuri_require__(612);
|
|
13
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __nuri_require__(
|
|
14
|
-
/* harmony import */ var _helpers_utils_classNames__WEBPACK_IMPORTED_MODULE_2__ = __nuri_require__(
|
|
15
|
-
/* harmony import */ var _helpers_utils_getMergedProps__WEBPACK_IMPORTED_MODULE_3__ = __nuri_require__(
|
|
16
|
-
/* harmony import */ var _loading_spinner_spinner__WEBPACK_IMPORTED_MODULE_4__ = __nuri_require__(
|
|
17
|
-
/* harmony import */ var _base_button__WEBPACK_IMPORTED_MODULE_5__ = __nuri_require__(
|
|
18
|
-
/* harmony import */ var _button_props__WEBPACK_IMPORTED_MODULE_6__ = __nuri_require__(
|
|
13
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __nuri_require__(1041);
|
|
14
|
+
/* harmony import */ var _helpers_utils_classNames__WEBPACK_IMPORTED_MODULE_2__ = __nuri_require__(3274);
|
|
15
|
+
/* harmony import */ var _helpers_utils_getMergedProps__WEBPACK_IMPORTED_MODULE_3__ = __nuri_require__(7335);
|
|
16
|
+
/* harmony import */ var _loading_spinner_spinner__WEBPACK_IMPORTED_MODULE_4__ = __nuri_require__(6302);
|
|
17
|
+
/* harmony import */ var _base_button__WEBPACK_IMPORTED_MODULE_5__ = __nuri_require__(8933);
|
|
18
|
+
/* harmony import */ var _button_props__WEBPACK_IMPORTED_MODULE_6__ = __nuri_require__(9976);
|
|
19
19
|
var __assign = undefined && undefined.__assign || function () {
|
|
20
20
|
__assign = Object.assign || function (t) {
|
|
21
21
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -61,7 +61,7 @@ CTAButton.displayName = 'CTAButton';
|
|
|
61
61
|
|
|
62
62
|
/***/ },
|
|
63
63
|
|
|
64
|
-
/***/
|
|
64
|
+
/***/ 1041
|
|
65
65
|
(module, __unused_webpack_exports, __nuri_require__) {
|
|
66
66
|
|
|
67
67
|
var x = (y) => {
|
|
@@ -173,7 +173,8 @@ module.exports = x({ ["jsx"]: () => (__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime
|
|
|
173
173
|
/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
|
|
174
174
|
/******/ // [resolve, Promise] = chunk loading, 0 = chunk loaded
|
|
175
175
|
/******/ var installedChunks = {
|
|
176
|
-
/******/ 440: 0
|
|
176
|
+
/******/ 440: 0,
|
|
177
|
+
/******/ 910: 0
|
|
177
178
|
/******/ };
|
|
178
179
|
/******/
|
|
179
180
|
/******/ var installChunk = (data) => {
|
|
@@ -219,9 +220,9 @@ module.exports = x({ ["jsx"]: () => (__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime
|
|
|
219
220
|
/******/ __nuri_require__.C(__webpack_chunk_2__);
|
|
220
221
|
/******/ import * as __webpack_chunk_3__ from "./chunk-298.js";
|
|
221
222
|
/******/ __nuri_require__.C(__webpack_chunk_3__);
|
|
222
|
-
/******/ import * as __webpack_chunk_4__ from "./chunk-
|
|
223
|
+
/******/ import * as __webpack_chunk_4__ from "./chunk-933.js";
|
|
223
224
|
/******/ __nuri_require__.C(__webpack_chunk_4__);
|
|
224
|
-
/******/ import * as __webpack_chunk_5__ from "./chunk-
|
|
225
|
+
/******/ import * as __webpack_chunk_5__ from "./chunk-302.js";
|
|
225
226
|
/******/ __nuri_require__.C(__webpack_chunk_5__);
|
|
226
227
|
/******/ import * as __webpack_chunk_6__ from "./chunk-976.js";
|
|
227
228
|
/******/ __nuri_require__.C(__webpack_chunk_6__);
|
|
@@ -229,7 +230,7 @@ module.exports = x({ ["jsx"]: () => (__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime
|
|
|
229
230
|
/******/ // startup
|
|
230
231
|
/******/ // Load entry module and return exports
|
|
231
232
|
/******/ // This entry module depends on other loaded chunks and execution need to be delayed
|
|
232
|
-
/******/ var __webpack_exports__ = __nuri_require__.O(undefined, [364,777,298,302,
|
|
233
|
+
/******/ var __webpack_exports__ = __nuri_require__.O(undefined, [364,777,298,933,302,976], () => (__nuri_require__(910)))
|
|
233
234
|
/******/ __webpack_exports__ = __nuri_require__.O(__webpack_exports__);
|
|
234
235
|
/******/ const __webpack_exports__default = __webpack_exports__.A;
|
|
235
236
|
/******/ export { __webpack_exports__default as default };
|
package/dist/data-table.js
CHANGED
|
@@ -3,7 +3,7 @@ import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
|
|
|
3
3
|
import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_179142b8__ from "react/jsx-runtime";
|
|
4
4
|
/******/ var __webpack_modules__ = ({
|
|
5
5
|
|
|
6
|
-
/***/
|
|
6
|
+
/***/ 3785
|
|
7
7
|
(__unused_webpack_module, __webpack_exports__, __nuri_require__) {
|
|
8
8
|
|
|
9
9
|
|
|
@@ -15,11 +15,11 @@ __nuri_require__.d(__webpack_exports__, {
|
|
|
15
15
|
// EXTERNAL MODULE: external {"root":"jsx-runtime","commonjs2":"react/jsx-runtime","commonjs":"react/jsx-runtime","amd":"react/jsx-runtime","module":"react/jsx-runtime"}
|
|
16
16
|
var jsx_runtime_ = __nuri_require__(612);
|
|
17
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__(
|
|
18
|
+
var external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_ = __nuri_require__(1041);
|
|
19
19
|
// EXTERNAL MODULE: ./helpers/utils/classNames.js
|
|
20
|
-
var classNames = __nuri_require__(
|
|
20
|
+
var classNames = __nuri_require__(3274);
|
|
21
21
|
// EXTERNAL MODULE: ./helpers/utils/getMergedProps.ts
|
|
22
|
-
var getMergedProps = __nuri_require__(
|
|
22
|
+
var getMergedProps = __nuri_require__(7335);
|
|
23
23
|
;// ./components/table/base-table.tsx
|
|
24
24
|
var __assign = undefined && undefined.__assign || function () {
|
|
25
25
|
__assign = Object.assign || function (t) {
|
|
@@ -221,7 +221,7 @@ var DataTable = DataTableBase;
|
|
|
221
221
|
|
|
222
222
|
/***/ },
|
|
223
223
|
|
|
224
|
-
/***/
|
|
224
|
+
/***/ 1041
|
|
225
225
|
(module, __unused_webpack_exports, __nuri_require__) {
|
|
226
226
|
|
|
227
227
|
var x = (y) => {
|
|
@@ -379,7 +379,7 @@ module.exports = x({ ["jsx"]: () => (__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime
|
|
|
379
379
|
/******/ // startup
|
|
380
380
|
/******/ // Load entry module and return exports
|
|
381
381
|
/******/ // This entry module depends on other loaded chunks and execution need to be delayed
|
|
382
|
-
/******/ var __webpack_exports__ = __nuri_require__.O(undefined, [364], () => (__nuri_require__(
|
|
382
|
+
/******/ var __webpack_exports__ = __nuri_require__.O(undefined, [364], () => (__nuri_require__(3785)))
|
|
383
383
|
/******/ __webpack_exports__ = __nuri_require__.O(__webpack_exports__);
|
|
384
384
|
/******/ const __webpack_exports__default = __webpack_exports__.A;
|
|
385
385
|
/******/ export { __webpack_exports__default as default };
|
package/dist/drawer.js
ADDED
|
@@ -0,0 +1,390 @@
|
|
|
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
|
+
/***/ 6622
|
|
8
|
+
(__unused_webpack_module, __webpack_exports__, __nuri_require__) {
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
// EXPORTS
|
|
12
|
+
__nuri_require__.d(__webpack_exports__, {
|
|
13
|
+
A: () => (/* binding */ drawer)
|
|
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/multifly.svg
|
|
21
|
+
var multifly = __nuri_require__(6713);
|
|
22
|
+
// EXTERNAL MODULE: ./helpers/utils/classNames.js
|
|
23
|
+
var classNames = __nuri_require__(3274);
|
|
24
|
+
// EXTERNAL MODULE: ./helpers/utils/getMergedProps.ts
|
|
25
|
+
var getMergedProps = __nuri_require__(7335);
|
|
26
|
+
// EXTERNAL MODULE: external {"root":"RadixUI","commonjs2":"radix-ui","commonjs":"radix-ui","amd":"radix-ui","module":"radix-ui"}
|
|
27
|
+
var external_root_RadixUI_commonjs2_radix_ui_commonjs_radix_ui_amd_radix_ui_module_radix_ui_ = __nuri_require__(0);
|
|
28
|
+
;// ./components/drawer/base-drawer.tsx
|
|
29
|
+
var __assign = undefined && undefined.__assign || function () {
|
|
30
|
+
__assign = Object.assign || function (t) {
|
|
31
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
32
|
+
s = arguments[i];
|
|
33
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
34
|
+
}
|
|
35
|
+
return t;
|
|
36
|
+
};
|
|
37
|
+
return __assign.apply(this, arguments);
|
|
38
|
+
};
|
|
39
|
+
var __rest = undefined && undefined.__rest || function (s, e) {
|
|
40
|
+
var t = {};
|
|
41
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
42
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
43
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
44
|
+
}
|
|
45
|
+
return t;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
// Dialog.Root 는 DOM 을 그리지 않아 ref 를 받을 곳이 없다.
|
|
52
|
+
var DrawerRootBase = function DrawerRootBase(props) {
|
|
53
|
+
var children = props.children,
|
|
54
|
+
open = props.open,
|
|
55
|
+
defaultOpen = props.defaultOpen,
|
|
56
|
+
onOpenChange = props.onOpenChange;
|
|
57
|
+
return (0,jsx_runtime_.jsx)(external_root_RadixUI_commonjs2_radix_ui_commonjs_radix_ui_amd_radix_ui_module_radix_ui_.Dialog.Root, {
|
|
58
|
+
open: open,
|
|
59
|
+
defaultOpen: defaultOpen,
|
|
60
|
+
onOpenChange: onOpenChange,
|
|
61
|
+
children: children
|
|
62
|
+
});
|
|
63
|
+
};
|
|
64
|
+
DrawerRootBase.displayName = 'DrawerRoot';
|
|
65
|
+
var DrawerTrigger = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.forwardRef)(function (props, ref) {
|
|
66
|
+
var className = props.className,
|
|
67
|
+
restProps = __rest(props, ["className"]);
|
|
68
|
+
return (0,jsx_runtime_.jsx)(external_root_RadixUI_commonjs2_radix_ui_commonjs_radix_ui_amd_radix_ui_module_radix_ui_.Dialog.Trigger, __assign({
|
|
69
|
+
ref: ref,
|
|
70
|
+
className: (0,classNames/* classNames */.x)('nuri-theme base-drawer trigger', className)
|
|
71
|
+
}, restProps));
|
|
72
|
+
});
|
|
73
|
+
DrawerTrigger.displayName = 'DrawerTrigger';
|
|
74
|
+
// Portal 과 Overlay 를 같이 그린다. 패널(Dialog.Content)이 ref 를 받는다.
|
|
75
|
+
var DrawerContent = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.forwardRef)(function (props, ref) {
|
|
76
|
+
var className = props.className,
|
|
77
|
+
restProps = __rest(props, ["className"]);
|
|
78
|
+
return (0,jsx_runtime_.jsxs)(external_root_RadixUI_commonjs2_radix_ui_commonjs_radix_ui_amd_radix_ui_module_radix_ui_.Dialog.Portal, {
|
|
79
|
+
children: [(0,jsx_runtime_.jsx)(external_root_RadixUI_commonjs2_radix_ui_commonjs_radix_ui_amd_radix_ui_module_radix_ui_.Dialog.Overlay, {
|
|
80
|
+
className: 'nuri-theme base-drawer overlay'
|
|
81
|
+
}), (0,jsx_runtime_.jsx)(external_root_RadixUI_commonjs2_radix_ui_commonjs_radix_ui_amd_radix_ui_module_radix_ui_.Dialog.Content, __assign({
|
|
82
|
+
ref: ref,
|
|
83
|
+
className: (0,classNames/* classNames */.x)('nuri-theme base-drawer content', className)
|
|
84
|
+
}, restProps))]
|
|
85
|
+
});
|
|
86
|
+
});
|
|
87
|
+
DrawerContent.displayName = 'DrawerContent';
|
|
88
|
+
var DrawerTitle = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.forwardRef)(function (props, ref) {
|
|
89
|
+
var className = props.className,
|
|
90
|
+
restProps = __rest(props, ["className"]);
|
|
91
|
+
return (0,jsx_runtime_.jsx)(external_root_RadixUI_commonjs2_radix_ui_commonjs_radix_ui_amd_radix_ui_module_radix_ui_.Dialog.Title, __assign({
|
|
92
|
+
ref: ref,
|
|
93
|
+
className: (0,classNames/* classNames */.x)('nuri-theme base-drawer title', className)
|
|
94
|
+
}, restProps));
|
|
95
|
+
});
|
|
96
|
+
DrawerTitle.displayName = 'DrawerTitle';
|
|
97
|
+
var DrawerDescription = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.forwardRef)(function (props, ref) {
|
|
98
|
+
var className = props.className,
|
|
99
|
+
restProps = __rest(props, ["className"]);
|
|
100
|
+
return (0,jsx_runtime_.jsx)(external_root_RadixUI_commonjs2_radix_ui_commonjs_radix_ui_amd_radix_ui_module_radix_ui_.Dialog.Description, __assign({
|
|
101
|
+
ref: ref,
|
|
102
|
+
className: (0,classNames/* classNames */.x)('nuri-theme base-drawer description', className)
|
|
103
|
+
}, restProps));
|
|
104
|
+
});
|
|
105
|
+
DrawerDescription.displayName = 'DrawerDescription';
|
|
106
|
+
var DrawerClose = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.forwardRef)(function (props, ref) {
|
|
107
|
+
var className = props.className,
|
|
108
|
+
restProps = __rest(props, ["className"]);
|
|
109
|
+
return (0,jsx_runtime_.jsx)(external_root_RadixUI_commonjs2_radix_ui_commonjs_radix_ui_amd_radix_ui_module_radix_ui_.Dialog.Close, __assign({
|
|
110
|
+
ref: ref,
|
|
111
|
+
className: (0,classNames/* classNames */.x)('nuri-theme base-drawer close', className)
|
|
112
|
+
}, restProps));
|
|
113
|
+
});
|
|
114
|
+
DrawerClose.displayName = 'DrawerClose';
|
|
115
|
+
var DrawerRoot = Object.assign(DrawerRootBase, {
|
|
116
|
+
Trigger: DrawerTrigger,
|
|
117
|
+
Content: DrawerContent,
|
|
118
|
+
Title: DrawerTitle,
|
|
119
|
+
Description: DrawerDescription,
|
|
120
|
+
Close: DrawerClose
|
|
121
|
+
});
|
|
122
|
+
/* harmony default export */ const base_drawer = (DrawerRoot);
|
|
123
|
+
// EXTERNAL MODULE: ./helpers/props/common-props.ts
|
|
124
|
+
var common_props = __nuri_require__(7298);
|
|
125
|
+
;// ./components/drawer/drawer-props.ts
|
|
126
|
+
|
|
127
|
+
var sizes = ['s', 'm', 'l'];
|
|
128
|
+
var sides = ['right', 'left', 'bottom'];
|
|
129
|
+
var drawerContentProps = {
|
|
130
|
+
size: (0,common_props/* sizeProp */.lw)(sizes, 'm'),
|
|
131
|
+
side: {
|
|
132
|
+
type: 'className',
|
|
133
|
+
className: 'side',
|
|
134
|
+
values: sides,
|
|
135
|
+
"default": 'right'
|
|
136
|
+
}
|
|
137
|
+
};
|
|
138
|
+
;// ./components/drawer/drawer.tsx
|
|
139
|
+
var drawer_assign = undefined && undefined.__assign || function () {
|
|
140
|
+
drawer_assign = Object.assign || function (t) {
|
|
141
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
142
|
+
s = arguments[i];
|
|
143
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
144
|
+
}
|
|
145
|
+
return t;
|
|
146
|
+
};
|
|
147
|
+
return drawer_assign.apply(this, arguments);
|
|
148
|
+
};
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
// ref 는 패널(Dialog.Content) div 에 붙는다. Root 는 DOM 을 그리지 않는다.
|
|
157
|
+
var Drawer = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.forwardRef)(function (props, ref) {
|
|
158
|
+
var _a = (0,getMergedProps/* getMergedProps */.p)(props, drawerContentProps),
|
|
159
|
+
trigger = _a.trigger,
|
|
160
|
+
title = _a.title,
|
|
161
|
+
description = _a.description,
|
|
162
|
+
children = _a.children,
|
|
163
|
+
footer = _a.footer,
|
|
164
|
+
_b = _a.showCloseIcon,
|
|
165
|
+
showCloseIcon = _b === void 0 ? true : _b,
|
|
166
|
+
open = _a.open,
|
|
167
|
+
defaultOpen = _a.defaultOpen,
|
|
168
|
+
onOpenChange = _a.onOpenChange,
|
|
169
|
+
className = _a.className,
|
|
170
|
+
style = _a.style;
|
|
171
|
+
return (0,jsx_runtime_.jsxs)(base_drawer, {
|
|
172
|
+
open: open,
|
|
173
|
+
defaultOpen: defaultOpen,
|
|
174
|
+
onOpenChange: onOpenChange,
|
|
175
|
+
children: [trigger && (0,jsx_runtime_.jsx)(base_drawer.Trigger, {
|
|
176
|
+
asChild: true,
|
|
177
|
+
children: trigger
|
|
178
|
+
}), (0,jsx_runtime_.jsxs)(base_drawer.Content, drawer_assign({
|
|
179
|
+
ref: ref,
|
|
180
|
+
className: (0,classNames/* classNames */.x)(className, 'drawer'),
|
|
181
|
+
style: style
|
|
182
|
+
}, description ? {} : {
|
|
183
|
+
'aria-describedby': undefined
|
|
184
|
+
}, {
|
|
185
|
+
children: [(0,jsx_runtime_.jsxs)("div", {
|
|
186
|
+
className: 'drawer-header',
|
|
187
|
+
children: [(0,jsx_runtime_.jsx)(base_drawer.Title, {
|
|
188
|
+
className: 'drawer-title',
|
|
189
|
+
children: title
|
|
190
|
+
}), showCloseIcon && (0,jsx_runtime_.jsx)(base_drawer.Close, {
|
|
191
|
+
className: 'drawer-close',
|
|
192
|
+
"aria-label": "\uB2EB\uAE30",
|
|
193
|
+
children: (0,jsx_runtime_.jsx)(multifly/* default */.A, {})
|
|
194
|
+
})]
|
|
195
|
+
}), description && (0,jsx_runtime_.jsx)(base_drawer.Description, {
|
|
196
|
+
className: 'drawer-description',
|
|
197
|
+
children: description
|
|
198
|
+
}), (0,jsx_runtime_.jsx)("div", {
|
|
199
|
+
className: 'drawer-body',
|
|
200
|
+
children: children
|
|
201
|
+
}), footer && (0,jsx_runtime_.jsx)("div", {
|
|
202
|
+
className: 'drawer-footer',
|
|
203
|
+
children: footer
|
|
204
|
+
})]
|
|
205
|
+
}))]
|
|
206
|
+
});
|
|
207
|
+
});
|
|
208
|
+
Drawer.displayName = 'Drawer';
|
|
209
|
+
/* harmony default export */ const drawer = (Drawer);
|
|
210
|
+
|
|
211
|
+
/***/ },
|
|
212
|
+
|
|
213
|
+
/***/ 0
|
|
214
|
+
(module, __unused_webpack_exports, __nuri_require__) {
|
|
215
|
+
|
|
216
|
+
var x = (y) => {
|
|
217
|
+
var x = {}; __nuri_require__.d(x, y); return x
|
|
218
|
+
}
|
|
219
|
+
var y = (x) => (() => (x))
|
|
220
|
+
module.exports = x({ ["Dialog"]: () => (__WEBPACK_EXTERNAL_MODULE_radix_ui_3bc96d1b__.Dialog) });
|
|
221
|
+
|
|
222
|
+
/***/ },
|
|
223
|
+
|
|
224
|
+
/***/ 1041
|
|
225
|
+
(module, __unused_webpack_exports, __nuri_require__) {
|
|
226
|
+
|
|
227
|
+
var x = (y) => {
|
|
228
|
+
var x = {}; __nuri_require__.d(x, y); return x
|
|
229
|
+
}
|
|
230
|
+
var y = (x) => (() => (x))
|
|
231
|
+
module.exports = x({ ["createElement"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.createElement), ["forwardRef"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.forwardRef) });
|
|
232
|
+
|
|
233
|
+
/***/ },
|
|
234
|
+
|
|
235
|
+
/***/ 612
|
|
236
|
+
(module, __unused_webpack_exports, __nuri_require__) {
|
|
237
|
+
|
|
238
|
+
var x = (y) => {
|
|
239
|
+
var x = {}; __nuri_require__.d(x, y); return x
|
|
240
|
+
}
|
|
241
|
+
var y = (x) => (() => (x))
|
|
242
|
+
module.exports = x({ ["jsx"]: () => (__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_179142b8__.jsx), ["jsxs"]: () => (__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_179142b8__.jsxs) });
|
|
243
|
+
|
|
244
|
+
/***/ }
|
|
245
|
+
|
|
246
|
+
/******/ });
|
|
247
|
+
/************************************************************************/
|
|
248
|
+
/******/ // The module cache
|
|
249
|
+
/******/ var __webpack_module_cache__ = {};
|
|
250
|
+
/******/
|
|
251
|
+
/******/ // The require function
|
|
252
|
+
/******/ function __nuri_require__(moduleId) {
|
|
253
|
+
/******/ // Check if module is in cache
|
|
254
|
+
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
|
255
|
+
/******/ if (cachedModule !== undefined) {
|
|
256
|
+
/******/ return cachedModule.exports;
|
|
257
|
+
/******/ }
|
|
258
|
+
/******/ // Create a new module (and put it into the cache)
|
|
259
|
+
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
260
|
+
/******/ // no module.id needed
|
|
261
|
+
/******/ // no module.loaded needed
|
|
262
|
+
/******/ exports: {}
|
|
263
|
+
/******/ };
|
|
264
|
+
/******/
|
|
265
|
+
/******/ // Execute the module function
|
|
266
|
+
/******/ __webpack_modules__[moduleId](module, module.exports, __nuri_require__);
|
|
267
|
+
/******/
|
|
268
|
+
/******/ // Return the exports of the module
|
|
269
|
+
/******/ return module.exports;
|
|
270
|
+
/******/ }
|
|
271
|
+
/******/
|
|
272
|
+
/******/ // expose the modules object (__webpack_modules__)
|
|
273
|
+
/******/ __nuri_require__.m = __webpack_modules__;
|
|
274
|
+
/******/
|
|
275
|
+
/************************************************************************/
|
|
276
|
+
/******/ /* webpack/runtime/chunk loaded */
|
|
277
|
+
/******/ (() => {
|
|
278
|
+
/******/ var deferred = [];
|
|
279
|
+
/******/ __nuri_require__.O = (result, chunkIds, fn, priority) => {
|
|
280
|
+
/******/ if(chunkIds) {
|
|
281
|
+
/******/ priority = priority || 0;
|
|
282
|
+
/******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];
|
|
283
|
+
/******/ deferred[i] = [chunkIds, fn, priority];
|
|
284
|
+
/******/ return;
|
|
285
|
+
/******/ }
|
|
286
|
+
/******/ var notFulfilled = Infinity;
|
|
287
|
+
/******/ for (var i = 0; i < deferred.length; i++) {
|
|
288
|
+
/******/ var [chunkIds, fn, priority] = deferred[i];
|
|
289
|
+
/******/ var fulfilled = true;
|
|
290
|
+
/******/ for (var j = 0; j < chunkIds.length; j++) {
|
|
291
|
+
/******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__nuri_require__.O).every((key) => (__nuri_require__.O[key](chunkIds[j])))) {
|
|
292
|
+
/******/ chunkIds.splice(j--, 1);
|
|
293
|
+
/******/ } else {
|
|
294
|
+
/******/ fulfilled = false;
|
|
295
|
+
/******/ if(priority < notFulfilled) notFulfilled = priority;
|
|
296
|
+
/******/ }
|
|
297
|
+
/******/ }
|
|
298
|
+
/******/ if(fulfilled) {
|
|
299
|
+
/******/ deferred.splice(i--, 1)
|
|
300
|
+
/******/ var r = fn();
|
|
301
|
+
/******/ if (r !== undefined) result = r;
|
|
302
|
+
/******/ }
|
|
303
|
+
/******/ }
|
|
304
|
+
/******/ return result;
|
|
305
|
+
/******/ };
|
|
306
|
+
/******/ })();
|
|
307
|
+
/******/
|
|
308
|
+
/******/ /* webpack/runtime/define property getters */
|
|
309
|
+
/******/ (() => {
|
|
310
|
+
/******/ // define getter functions for harmony exports
|
|
311
|
+
/******/ __nuri_require__.d = (exports, definition) => {
|
|
312
|
+
/******/ for(var key in definition) {
|
|
313
|
+
/******/ if(__nuri_require__.o(definition, key) && !__nuri_require__.o(exports, key)) {
|
|
314
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
315
|
+
/******/ }
|
|
316
|
+
/******/ }
|
|
317
|
+
/******/ };
|
|
318
|
+
/******/ })();
|
|
319
|
+
/******/
|
|
320
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
321
|
+
/******/ (() => {
|
|
322
|
+
/******/ __nuri_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
|
323
|
+
/******/ })();
|
|
324
|
+
/******/
|
|
325
|
+
/******/ /* webpack/runtime/export webpack runtime */
|
|
326
|
+
/******/ export { __nuri_require__ };
|
|
327
|
+
/******/
|
|
328
|
+
/******/ /* webpack/runtime/import chunk loading */
|
|
329
|
+
/******/ (() => {
|
|
330
|
+
/******/ // no baseURI
|
|
331
|
+
/******/
|
|
332
|
+
/******/ // object to store loaded and loading chunks
|
|
333
|
+
/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
|
|
334
|
+
/******/ // [resolve, Promise] = chunk loading, 0 = chunk loaded
|
|
335
|
+
/******/ var installedChunks = {
|
|
336
|
+
/******/ 248: 0
|
|
337
|
+
/******/ };
|
|
338
|
+
/******/
|
|
339
|
+
/******/ var installChunk = (data) => {
|
|
340
|
+
/******/ var {__webpack_esm_ids__, __webpack_esm_modules__, __webpack_esm_runtime__} = data;
|
|
341
|
+
/******/ // add "modules" to the modules object,
|
|
342
|
+
/******/ // then flag all "ids" as loaded and fire callback
|
|
343
|
+
/******/ var moduleId, chunkId, i = 0;
|
|
344
|
+
/******/ for(moduleId in __webpack_esm_modules__) {
|
|
345
|
+
/******/ if(__nuri_require__.o(__webpack_esm_modules__, moduleId)) {
|
|
346
|
+
/******/ __nuri_require__.m[moduleId] = __webpack_esm_modules__[moduleId];
|
|
347
|
+
/******/ }
|
|
348
|
+
/******/ }
|
|
349
|
+
/******/ if(__webpack_esm_runtime__) __webpack_esm_runtime__(__nuri_require__);
|
|
350
|
+
/******/ for(;i < __webpack_esm_ids__.length; i++) {
|
|
351
|
+
/******/ chunkId = __webpack_esm_ids__[i];
|
|
352
|
+
/******/ if(__nuri_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
|
|
353
|
+
/******/ installedChunks[chunkId][0]();
|
|
354
|
+
/******/ }
|
|
355
|
+
/******/ installedChunks[__webpack_esm_ids__[i]] = 0;
|
|
356
|
+
/******/ }
|
|
357
|
+
/******/ __nuri_require__.O();
|
|
358
|
+
/******/ }
|
|
359
|
+
/******/
|
|
360
|
+
/******/ // no chunk on demand loading
|
|
361
|
+
/******/
|
|
362
|
+
/******/ // no prefetching
|
|
363
|
+
/******/
|
|
364
|
+
/******/ // no preloaded
|
|
365
|
+
/******/
|
|
366
|
+
/******/ __nuri_require__.C = installChunk;
|
|
367
|
+
/******/
|
|
368
|
+
/******/ __nuri_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);
|
|
369
|
+
/******/ // no HMR
|
|
370
|
+
/******/
|
|
371
|
+
/******/ // no HMR manifest
|
|
372
|
+
/******/ })();
|
|
373
|
+
/******/
|
|
374
|
+
/************************************************************************/
|
|
375
|
+
/******/
|
|
376
|
+
/******/ import * as __webpack_chunk_1__ from "./chunk-364.js";
|
|
377
|
+
/******/ __nuri_require__.C(__webpack_chunk_1__);
|
|
378
|
+
/******/ import * as __webpack_chunk_2__ from "./chunk-298.js";
|
|
379
|
+
/******/ __nuri_require__.C(__webpack_chunk_2__);
|
|
380
|
+
/******/ import * as __webpack_chunk_3__ from "./chunk-713.js";
|
|
381
|
+
/******/ __nuri_require__.C(__webpack_chunk_3__);
|
|
382
|
+
/******/
|
|
383
|
+
/******/ // startup
|
|
384
|
+
/******/ // Load entry module and return exports
|
|
385
|
+
/******/ // This entry module depends on other loaded chunks and execution need to be delayed
|
|
386
|
+
/******/ var __webpack_exports__ = __nuri_require__.O(undefined, [364,298,713], () => (__nuri_require__(6622)))
|
|
387
|
+
/******/ __webpack_exports__ = __nuri_require__.O(__webpack_exports__);
|
|
388
|
+
/******/ const __webpack_exports__default = __webpack_exports__.A;
|
|
389
|
+
/******/ export { __webpack_exports__default as default };
|
|
390
|
+
/******/
|
package/dist/drop-down.js
CHANGED
|
@@ -4,7 +4,7 @@ import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
|
|
|
4
4
|
import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_179142b8__ from "react/jsx-runtime";
|
|
5
5
|
/******/ var __webpack_modules__ = ({
|
|
6
6
|
|
|
7
|
-
/***/
|
|
7
|
+
/***/ 9691
|
|
8
8
|
(__unused_webpack_module, __webpack_exports__, __nuri_require__) {
|
|
9
9
|
|
|
10
10
|
|
|
@@ -16,31 +16,15 @@ __nuri_require__.d(__webpack_exports__, {
|
|
|
16
16
|
// EXTERNAL MODULE: external {"root":"jsx-runtime","commonjs2":"react/jsx-runtime","commonjs":"react/jsx-runtime","amd":"react/jsx-runtime","module":"react/jsx-runtime"}
|
|
17
17
|
var jsx_runtime_ = __nuri_require__(612);
|
|
18
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__(
|
|
20
|
-
|
|
21
|
-
var
|
|
22
|
-
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
23
|
-
|
|
24
|
-
var SvgChevronDown = function SvgChevronDown(props) {
|
|
25
|
-
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.createElement("svg", _extends({
|
|
26
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
27
|
-
width: 18,
|
|
28
|
-
height: 18,
|
|
29
|
-
fill: "none"
|
|
30
|
-
}, props), _path || (_path = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.createElement("path", {
|
|
31
|
-
fill: "currentColor",
|
|
32
|
-
fillRule: "evenodd",
|
|
33
|
-
d: "M9.398 12.398a.56.56 0 0 1-.796 0l-6-6a.563.563 0 0 1 .796-.796L9 11.204l5.602-5.602a.562.562 0 1 1 .796.796z",
|
|
34
|
-
clipRule: "evenodd"
|
|
35
|
-
})));
|
|
36
|
-
};
|
|
37
|
-
/* harmony default export */ const chevronDown = (SvgChevronDown);
|
|
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);
|
|
38
22
|
// EXTERNAL MODULE: ./helpers/hooks/useExternalState.ts
|
|
39
|
-
var useExternalState = __nuri_require__(
|
|
23
|
+
var useExternalState = __nuri_require__(9387);
|
|
40
24
|
// EXTERNAL MODULE: ./helpers/utils/classNames.js
|
|
41
|
-
var classNames = __nuri_require__(
|
|
25
|
+
var classNames = __nuri_require__(3274);
|
|
42
26
|
// EXTERNAL MODULE: ./helpers/utils/getMergedProps.ts
|
|
43
|
-
var getMergedProps = __nuri_require__(
|
|
27
|
+
var getMergedProps = __nuri_require__(7335);
|
|
44
28
|
// EXTERNAL MODULE: external {"root":"RadixUI","commonjs2":"radix-ui","commonjs":"radix-ui","amd":"radix-ui","module":"radix-ui"}
|
|
45
29
|
var external_root_RadixUI_commonjs2_radix_ui_commonjs_radix_ui_amd_radix_ui_module_radix_ui_ = __nuri_require__(0);
|
|
46
30
|
;// ./components/drop-down/base-drop-down.tsx
|
|
@@ -145,10 +129,10 @@ var DropDownRoot = Object.assign(DropDownRootBase, {
|
|
|
145
129
|
});
|
|
146
130
|
/* harmony default export */ const base_drop_down = (DropDownRoot);
|
|
147
131
|
// EXTERNAL MODULE: ./helpers/props/common-props.ts
|
|
148
|
-
var common_props = __nuri_require__(
|
|
132
|
+
var common_props = __nuri_require__(7298);
|
|
149
133
|
;// ./components/drop-down/drop-down-props.ts
|
|
150
134
|
|
|
151
|
-
var sizes = ['s', 'm'];
|
|
135
|
+
var sizes = ['xs', 's', 'm', 'l', 'xl'];
|
|
152
136
|
var dropDownSingleProps = {
|
|
153
137
|
size: (0,common_props/* sizeProp */.lw)(sizes, 's'),
|
|
154
138
|
width: (0,common_props/* widthProp */.Iw)('fit-content')
|
|
@@ -225,7 +209,7 @@ var DropDown = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_reac
|
|
|
225
209
|
className: 'drop-down-single-value',
|
|
226
210
|
placeholder: placeholder
|
|
227
211
|
})]
|
|
228
|
-
}), rightIcon || (0,jsx_runtime_.jsx)(chevronDown, {
|
|
212
|
+
}), rightIcon || (0,jsx_runtime_.jsx)(chevronDown/* default */.A, {
|
|
229
213
|
className: 'drop-down-single-icon rotate'
|
|
230
214
|
})]
|
|
231
215
|
}), (0,jsx_runtime_.jsx)(base_drop_down.Content, {
|
|
@@ -264,14 +248,14 @@ module.exports = x({ ["Select"]: () => (__WEBPACK_EXTERNAL_MODULE_radix_ui_3bc96
|
|
|
264
248
|
|
|
265
249
|
/***/ },
|
|
266
250
|
|
|
267
|
-
/***/
|
|
251
|
+
/***/ 1041
|
|
268
252
|
(module, __unused_webpack_exports, __nuri_require__) {
|
|
269
253
|
|
|
270
254
|
var x = (y) => {
|
|
271
255
|
var x = {}; __nuri_require__.d(x, y); return x
|
|
272
256
|
}
|
|
273
257
|
var y = (x) => (() => (x))
|
|
274
|
-
module.exports = x({ ["createElement"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.createElement), ["forwardRef"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.forwardRef), ["useState"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.useState) });
|
|
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) });
|
|
275
259
|
|
|
276
260
|
/***/ },
|
|
277
261
|
|
|
@@ -422,11 +406,13 @@ module.exports = x({ ["jsx"]: () => (__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime
|
|
|
422
406
|
/******/ __nuri_require__.C(__webpack_chunk_2__);
|
|
423
407
|
/******/ import * as __webpack_chunk_3__ from "./chunk-387.js";
|
|
424
408
|
/******/ __nuri_require__.C(__webpack_chunk_3__);
|
|
409
|
+
/******/ import * as __webpack_chunk_4__ from "./chunk-436.js";
|
|
410
|
+
/******/ __nuri_require__.C(__webpack_chunk_4__);
|
|
425
411
|
/******/
|
|
426
412
|
/******/ // startup
|
|
427
413
|
/******/ // Load entry module and return exports
|
|
428
414
|
/******/ // This entry module depends on other loaded chunks and execution need to be delayed
|
|
429
|
-
/******/ var __webpack_exports__ = __nuri_require__.O(undefined, [364,917,387], () => (__nuri_require__(
|
|
415
|
+
/******/ var __webpack_exports__ = __nuri_require__.O(undefined, [364,917,387,436], () => (__nuri_require__(9691)))
|
|
430
416
|
/******/ __webpack_exports__ = __nuri_require__.O(__webpack_exports__);
|
|
431
417
|
/******/ const __webpack_exports__default = __webpack_exports__.A;
|
|
432
418
|
/******/ export { __webpack_exports__default as default };
|
|
@@ -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 {};
|
package/dist/icon-text-badge.js
CHANGED
|
@@ -4,14 +4,14 @@ import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
|
|
|
4
4
|
import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_179142b8__ from "react/jsx-runtime";
|
|
5
5
|
/******/ var __webpack_modules__ = ({
|
|
6
6
|
|
|
7
|
-
/***/
|
|
7
|
+
/***/ 1538
|
|
8
8
|
(__unused_webpack_module, __webpack_exports__, __nuri_require__) {
|
|
9
9
|
|
|
10
10
|
/* harmony export */ __nuri_require__.d(__webpack_exports__, {
|
|
11
11
|
/* harmony export */ wf: () => (/* binding */ iconTextBadgeProps)
|
|
12
12
|
/* harmony export */ });
|
|
13
13
|
/* unused harmony exports variant, sizes, iconTextOptionBadgeProps, optionBadgeProps */
|
|
14
|
-
/* harmony import */ var _helpers_props_common_props__WEBPACK_IMPORTED_MODULE_0__ = __nuri_require__(
|
|
14
|
+
/* harmony import */ var _helpers_props_common_props__WEBPACK_IMPORTED_MODULE_0__ = __nuri_require__(7298);
|
|
15
15
|
var __assign = undefined && undefined.__assign || function () {
|
|
16
16
|
__assign = Object.assign || function (t) {
|
|
17
17
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -41,19 +41,19 @@ var optionBadgeProps = __assign({}, commonBadgeProps);
|
|
|
41
41
|
|
|
42
42
|
/***/ },
|
|
43
43
|
|
|
44
|
-
/***/
|
|
44
|
+
/***/ 6477
|
|
45
45
|
(__unused_webpack_module, __webpack_exports__, __nuri_require__) {
|
|
46
46
|
|
|
47
47
|
/* harmony export */ __nuri_require__.d(__webpack_exports__, {
|
|
48
48
|
/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
49
49
|
/* harmony export */ });
|
|
50
50
|
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __nuri_require__(612);
|
|
51
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __nuri_require__(
|
|
52
|
-
/* harmony import */ var _helpers_utils_classNames__WEBPACK_IMPORTED_MODULE_2__ = __nuri_require__(
|
|
53
|
-
/* harmony import */ var _helpers_utils_getMergedProps__WEBPACK_IMPORTED_MODULE_3__ = __nuri_require__(
|
|
54
|
-
/* harmony import */ var _tooltip_tooltip__WEBPACK_IMPORTED_MODULE_4__ = __nuri_require__(
|
|
55
|
-
/* harmony import */ var _badge_props__WEBPACK_IMPORTED_MODULE_5__ = __nuri_require__(
|
|
56
|
-
/* harmony import */ var _base_badge__WEBPACK_IMPORTED_MODULE_6__ = __nuri_require__(
|
|
51
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __nuri_require__(1041);
|
|
52
|
+
/* harmony import */ var _helpers_utils_classNames__WEBPACK_IMPORTED_MODULE_2__ = __nuri_require__(3274);
|
|
53
|
+
/* harmony import */ var _helpers_utils_getMergedProps__WEBPACK_IMPORTED_MODULE_3__ = __nuri_require__(7335);
|
|
54
|
+
/* harmony import */ var _tooltip_tooltip__WEBPACK_IMPORTED_MODULE_4__ = __nuri_require__(1563);
|
|
55
|
+
/* harmony import */ var _badge_props__WEBPACK_IMPORTED_MODULE_5__ = __nuri_require__(1538);
|
|
56
|
+
/* harmony import */ var _base_badge__WEBPACK_IMPORTED_MODULE_6__ = __nuri_require__(6149);
|
|
57
57
|
var __assign = undefined && undefined.__assign || function () {
|
|
58
58
|
__assign = Object.assign || function (t) {
|
|
59
59
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -119,7 +119,7 @@ module.exports = x({ ["Tooltip"]: () => (__WEBPACK_EXTERNAL_MODULE_radix_ui_3bc9
|
|
|
119
119
|
|
|
120
120
|
/***/ },
|
|
121
121
|
|
|
122
|
-
/***/
|
|
122
|
+
/***/ 1041
|
|
123
123
|
(module, __unused_webpack_exports, __nuri_require__) {
|
|
124
124
|
|
|
125
125
|
var x = (y) => {
|
|
@@ -287,7 +287,7 @@ module.exports = x({ ["Fragment"]: () => (__WEBPACK_EXTERNAL_MODULE_react_jsx_ru
|
|
|
287
287
|
/******/ // startup
|
|
288
288
|
/******/ // Load entry module and return exports
|
|
289
289
|
/******/ // This entry module depends on other loaded chunks and execution need to be delayed
|
|
290
|
-
/******/ var __webpack_exports__ = __nuri_require__.O(undefined, [364,777,917,149,309,563], () => (__nuri_require__(
|
|
290
|
+
/******/ var __webpack_exports__ = __nuri_require__.O(undefined, [364,777,917,149,309,563], () => (__nuri_require__(6477)))
|
|
291
291
|
/******/ __webpack_exports__ = __nuri_require__.O(__webpack_exports__);
|
|
292
292
|
/******/ const __webpack_exports__default = __webpack_exports__.A;
|
|
293
293
|
/******/ export { __webpack_exports__default as default };
|