@nurihaus/web-design-system 3.9.2 → 3.9.3
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/.storybook/preview.d.ts +49 -0
- package/dist/ai/components.md +675 -105
- package/dist/ai/motion.md +156 -134
- package/dist/ai/tokens.md +295 -137
- package/dist/asset.js +328 -0
- package/dist/avatar.js +208 -33
- package/dist/bottom-nav.js +86 -6
- package/dist/breadcrumb.js +6 -3
- package/dist/card.js +5 -2
- package/dist/check-box.js +81 -45
- package/dist/chip-group.js +50 -12
- package/dist/chunk-1563.js +42 -18
- package/dist/chunk-1983.js +100 -0
- package/dist/chunk-3297.js +130 -0
- package/dist/chunk-3640.js +94 -0
- package/dist/chunk-3839.js +54 -0
- package/dist/chunk-4558.js +13 -2
- package/dist/chunk-4577.js +35 -0
- package/dist/chunk-5302.js +111 -0
- package/dist/{chunk-1657.js → chunk-5589.js} +41 -5
- package/dist/chunk-5670.js +122 -0
- package/dist/chunk-6302.js +10 -10
- package/dist/chunk-6706.js +64 -0
- package/dist/chunk-7302.js +66 -0
- package/dist/chunk-7460.js +204 -0
- package/dist/{chunk-6149.js → chunk-8377.js} +36 -2
- package/dist/chunk-8734.js +33 -0
- package/dist/chunk-8787.js +260 -0
- package/dist/chunk-8933.js +14 -2
- package/dist/chunk-910.js +82 -27
- package/dist/chunk-948.js +166 -0
- package/dist/collapsible-menu.js +39 -14
- package/dist/components/asset/asset-props.d.ts +43 -0
- package/dist/components/asset/asset-type.d.ts +38 -0
- package/dist/components/asset/asset.d.ts +21 -0
- package/dist/components/asset/asset.stories.d.ts +65 -0
- package/dist/components/asset/base-asset.d.ts +7 -0
- package/dist/components/avatar/avatar-props.d.ts +1 -0
- package/dist/components/avatar/avatar-type.d.ts +6 -4
- package/dist/components/avatar/avatar.stories.d.ts +10 -0
- package/dist/components/badge/badge-type.d.ts +10 -4
- package/dist/components/badge/badge.stories.d.ts +15 -0
- package/dist/components/bottom-bar/bottom-bar.stories.d.ts +12 -5
- package/dist/components/bottom-nav/bottom-nav-type.d.ts +2 -1
- package/dist/components/bottom-nav/bottom-nav.stories.d.ts +16 -1
- package/dist/components/breadcrumb/breadcrumb-type.d.ts +2 -1
- package/dist/components/breadcrumb/breadcrumb.stories.d.ts +15 -0
- package/dist/components/button/button-appearance.d.ts +50 -0
- package/dist/components/button/button-props.d.ts +12 -3
- package/dist/components/button/button-type.d.ts +14 -4
- package/dist/components/button/button.stories.d.ts +34 -3
- package/dist/components/button/cta-button.d.ts +1 -1
- package/dist/components/callout/callout.stories.d.ts +11 -0
- package/dist/components/card/card-type.d.ts +2 -1
- package/dist/components/card/card.stories.d.ts +9 -0
- package/dist/components/check-box/check-box-props.d.ts +8 -0
- package/dist/components/check-box/check-box-type.d.ts +7 -3
- package/dist/components/check-box/check-box.stories.d.ts +32 -1
- package/dist/components/chip-group/chip-group-props.d.ts +13 -1
- package/dist/components/chip-group/chip-group-type.d.ts +5 -1
- package/dist/components/chip-group/chip-group.stories.d.ts +30 -0
- package/dist/components/collapsible-menu/collapsible-menu-type.d.ts +6 -2
- package/dist/components/collapsible-menu/collapsible-menu.stories.d.ts +12 -0
- package/dist/components/description-list/description-list.stories.d.ts +7 -0
- package/dist/components/drawer/base-drawer.d.ts +2 -4
- package/dist/components/drawer/drawer-type.d.ts +17 -2
- package/dist/components/drawer/drawer.stories.d.ts +21 -0
- package/dist/components/drop-down/drop-down-type.d.ts +4 -2
- package/dist/components/drop-down/drop-down.stories.d.ts +16 -0
- package/dist/components/elements/text/text-props.d.ts +3 -3
- package/dist/components/elements/text/text-type.d.ts +3 -2
- package/dist/components/elements/text/text.stories.d.ts +13 -1
- package/dist/components/empty-state/empty-state.stories.d.ts +33 -8
- package/dist/components/icon/icon.stories.d.ts +11 -1
- package/dist/components/icon-button/icon-button-type.d.ts +2 -1
- package/dist/components/icon-button/icon-button.stories.d.ts +9 -0
- package/dist/components/list/list-group.stories.d.ts +7 -0
- package/dist/components/list/list-row.stories.d.ts +18 -8
- package/dist/components/list/list-type.d.ts +2 -1
- package/dist/components/loading/index.d.ts +4 -0
- package/dist/components/loading/inline-loading/base-inline-loading.d.ts +3 -2
- package/dist/components/loading/inline-loading/inline-loading-props.d.ts +3 -0
- package/dist/components/loading/inline-loading/inline-loading-type.d.ts +6 -6
- package/dist/components/loading/inline-loading/inline-loading.stories.d.ts +28 -2
- package/dist/components/loading/loading-dots/base-loading-dots.d.ts +4 -0
- package/dist/components/loading/loading-dots/loading-dots-props.d.ts +4 -0
- package/dist/components/loading/loading-dots/loading-dots-type.d.ts +6 -0
- package/dist/components/loading/loading-dots/loading-dots.d.ts +4 -0
- package/dist/components/loading/loading-dots/loading-dots.stories.d.ts +37 -0
- package/dist/components/loading/loading-props.d.ts +9 -0
- package/dist/components/loading/loading-type.d.ts +9 -0
- package/dist/components/loading/loading.stories.d.ts +15 -0
- package/dist/components/loading/overlay-loading/overlay-loading-type.d.ts +4 -0
- package/dist/components/loading/overlay-loading/overlay-loading.stories.d.ts +17 -0
- package/dist/components/loading/progress-bar/base-progress-bar.d.ts +3 -0
- package/dist/components/loading/progress-bar/progress-bar-props.d.ts +4 -0
- package/dist/components/loading/progress-bar/progress-bar-type.d.ts +19 -0
- package/dist/components/loading/progress-bar/progress-bar.d.ts +4 -0
- package/dist/components/loading/progress-bar/progress-bar.stories.d.ts +63 -0
- package/dist/components/loading/spinner/spinner-props.d.ts +4 -1
- package/dist/components/loading/spinner/spinner-type.d.ts +3 -1
- package/dist/components/loading/spinner/spinner.d.ts +2 -1
- package/dist/components/loading/spinner/spinner.stories.d.ts +30 -4
- package/dist/components/logging/logging.stories.d.ts +5 -0
- package/dist/components/media/media-thumbnail.stories.d.ts +9 -0
- package/dist/components/media/media-type.d.ts +2 -1
- package/dist/components/media/media-viewer.stories.d.ts +7 -0
- package/dist/components/message/message.stories.d.ts +15 -8
- package/dist/components/message-composer/message-composer-type.d.ts +2 -1
- package/dist/components/message-composer/message-composer.stories.d.ts +10 -0
- package/dist/components/modal/modal-type.d.ts +22 -3
- package/dist/components/modal/modal-with-double-button.stories.d.ts +15 -0
- package/dist/components/modal/modal.stories.d.ts +16 -0
- package/dist/components/motion/motion.stories.d.ts +7 -0
- package/dist/components/notice/notice-type.d.ts +1 -1
- package/dist/components/notice/notice.stories.d.ts +13 -6
- package/dist/components/overlay/overlay-context.d.ts +34 -0
- package/dist/components/overlay/overlay-provider.d.ts +6 -0
- package/dist/components/overlay/overlay-type.d.ts +45 -0
- package/dist/components/overlay/overlay.d.ts +4 -0
- package/dist/components/overlay/overlay.stories.d.ts +34 -0
- package/dist/components/overlay/use-dialog.d.ts +3 -0
- package/dist/components/overlay/use-toast.d.ts +3 -0
- package/dist/components/pagination/pagination-type.d.ts +2 -1
- package/dist/components/pagination/pagination.stories.d.ts +15 -0
- package/dist/components/radio/base-radio.d.ts +5 -2
- package/dist/components/radio/radio-type.d.ts +11 -3
- package/dist/components/radio/radio.stories.d.ts +20 -2
- package/dist/components/skeleton/base-skeleton.d.ts +7 -3
- package/dist/components/skeleton/skeleton-group-props.d.ts +4 -0
- package/dist/components/skeleton/skeleton-group-type.d.ts +47 -0
- package/dist/components/skeleton/skeleton-group.d.ts +4 -0
- package/dist/components/skeleton/skeleton-group.stories.d.ts +57 -0
- package/dist/components/skeleton/skeleton-type.d.ts +1 -0
- package/dist/components/skeleton/skeleton.stories.d.ts +17 -6
- package/dist/components/step-progress/step-progress-props.d.ts +10 -0
- package/dist/components/step-progress/step-progress-type.d.ts +22 -3
- package/dist/components/step-progress/step-progress.d.ts +1 -1
- package/dist/components/step-progress/step-progress.stories.d.ts +40 -0
- package/dist/components/switch/base-switch.d.ts +2 -4
- package/dist/components/switch/switch-type.d.ts +5 -2
- package/dist/components/switch/switch.stories.d.ts +22 -0
- package/dist/components/table/table-type.d.ts +2 -1
- package/dist/components/table/table.stories.d.ts +23 -0
- package/dist/components/tabs/tabs-type.d.ts +4 -1
- package/dist/components/tabs/tabs.stories.d.ts +17 -0
- package/dist/components/tag/tag-type.d.ts +2 -1
- package/dist/components/tag/tag.stories.d.ts +9 -0
- package/dist/components/text-area/base-text-area.d.ts +2 -1
- package/dist/components/text-area/text-area-type.d.ts +11 -3
- package/dist/components/text-area/text-area.stories.d.ts +15 -0
- package/dist/components/text-field/base-text-field.d.ts +12 -6
- package/dist/components/text-field/text-field-type.d.ts +37 -6
- package/dist/components/text-field/text-field.stories.d.ts +32 -5
- package/dist/components/toast/toast-type.d.ts +4 -1
- package/dist/components/toast/toast.stories.d.ts +21 -6
- package/dist/components/tooltip/tooltip-type.d.ts +4 -1
- package/dist/components/tooltip/tooltip.stories.d.ts +11 -0
- package/dist/components.css +1924 -697
- package/dist/cta-button.js +94 -33
- package/dist/data-table.js +5 -3
- package/dist/drawer.js +79 -13
- package/dist/drop-down.js +18 -10
- package/dist/helpers/hooks/useCloseOnBackEvent.d.ts +12 -0
- package/dist/helpers/hooks/useFieldClear.d.ts +21 -0
- package/dist/helpers/hooks/useReturnFocus.d.ts +9 -0
- package/dist/helpers/motion/appear.d.ts +3 -0
- package/dist/helpers/motion/effects.d.ts +9 -0
- package/dist/helpers/motion/motion-props.d.ts +35 -0
- package/dist/helpers/motion/stagger.d.ts +3 -0
- package/dist/helpers/motion/use-appear.d.ts +12 -0
- package/dist/helpers/motion/use-attention-handle.d.ts +7 -0
- package/dist/helpers/motion/use-confirm-spring.d.ts +7 -0
- package/dist/helpers/motion/use-effect-trigger.d.ts +11 -0
- package/dist/helpers/motion/use-hide-on-scroll.d.ts +12 -0
- package/dist/helpers/motion/use-presence-callbacks.d.ts +13 -0
- package/dist/icon-button.js +4 -2
- package/dist/icon-text-badge.js +27 -17
- package/dist/icon-text-option-badge.js +19 -13
- package/dist/index.d.ts +11 -4
- package/dist/index.js +3992 -967
- package/dist/list-row.js +5 -2
- package/dist/loading.js +200 -39
- package/dist/media-thumbnail.js +9 -5
- package/dist/message-composer.js +15 -11
- package/dist/modal-with-double-button.js +71 -53
- package/dist/modal.js +95 -29
- package/dist/notice.js +14 -8
- package/dist/option-badge.js +27 -17
- package/dist/overlay.js +1213 -0
- package/dist/pagination.js +11 -7
- package/dist/radio.js +117 -21
- package/dist/skeleton-group.js +445 -0
- package/dist/skeleton.js +24 -112
- package/dist/step-progress.js +125 -16
- package/dist/styles.css +2235 -777
- package/dist/switch.js +89 -17
- package/dist/tabs.js +77 -23
- package/dist/tag.js +4 -2
- package/dist/text-area.js +81 -31
- package/dist/text-field.js +160 -33
- package/dist/toast.js +98 -241
- package/dist/tokens/generated/motion.d.ts +21 -4
- package/dist/tokens/generated/semantic-admin.d.ts +103 -46
- package/dist/tokens/generated/semantic-app.d.ts +164 -16
- package/dist/tokens.css +578 -103
- package/dist/tokens.js +293 -71
- package/dist/tooltip.js +50 -22
- package/package.json +14 -1
- package/dist/chunk-5226.js +0 -79
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
export const __webpack_esm_id__ = 5670;
|
|
3
|
+
export const __webpack_esm_ids__ = [4917,5670,7298];
|
|
4
|
+
export const __webpack_esm_modules__ = {
|
|
5
|
+
|
|
6
|
+
/***/ 2241
|
|
7
|
+
(__unused_webpack_module, __webpack_exports__, __nuri_require__) {
|
|
8
|
+
|
|
9
|
+
/* harmony export */ __nuri_require__.d(__webpack_exports__, {
|
|
10
|
+
/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
11
|
+
/* harmony export */ });
|
|
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__(1041);
|
|
14
|
+
/* harmony import */ var _helpers_utils_classNames__WEBPACK_IMPORTED_MODULE_2__ = __nuri_require__(3274);
|
|
15
|
+
var __assign = undefined && undefined.__assign || function () {
|
|
16
|
+
__assign = Object.assign || function (t) {
|
|
17
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
18
|
+
s = arguments[i];
|
|
19
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
};
|
|
23
|
+
return __assign.apply(this, arguments);
|
|
24
|
+
};
|
|
25
|
+
var __rest = undefined && undefined.__rest || function (s, e) {
|
|
26
|
+
var t = {};
|
|
27
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
28
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
29
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
30
|
+
}
|
|
31
|
+
return t;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
var BaseSkeleton = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(function (props, ref) {
|
|
37
|
+
var className = props.className,
|
|
38
|
+
_a = props["aria-hidden"],
|
|
39
|
+
ariaHidden = _a === void 0 ? true : _a,
|
|
40
|
+
restProps = __rest(props, ["className", 'aria-hidden']);
|
|
41
|
+
return (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span", __assign({
|
|
42
|
+
ref: ref,
|
|
43
|
+
className: (0,_helpers_utils_classNames__WEBPACK_IMPORTED_MODULE_2__/* .classNames */ .x)('nuri-theme base-skeleton', className),
|
|
44
|
+
"aria-hidden": ariaHidden,
|
|
45
|
+
"aria-busy": true
|
|
46
|
+
}, restProps));
|
|
47
|
+
});
|
|
48
|
+
BaseSkeleton.displayName = 'BaseSkeleton';
|
|
49
|
+
// 뼈대 여러 개를 담는 영역. 뼈대는 낭독기에 숨으므로 불러오는 중이라는 알림은 여기서 한 번 한다
|
|
50
|
+
var BaseSkeletonGroup = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(function (props, ref) {
|
|
51
|
+
var className = props.className,
|
|
52
|
+
restProps = __rest(props, ["className"]);
|
|
53
|
+
return (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", __assign({
|
|
54
|
+
ref: ref,
|
|
55
|
+
className: (0,_helpers_utils_classNames__WEBPACK_IMPORTED_MODULE_2__/* .classNames */ .x)('nuri-theme base-skeleton group', className),
|
|
56
|
+
role: 'status',
|
|
57
|
+
"aria-busy": true
|
|
58
|
+
}, restProps));
|
|
59
|
+
});
|
|
60
|
+
BaseSkeletonGroup.displayName = 'BaseSkeletonGroup';
|
|
61
|
+
var BaseSkeletonRoot = Object.assign(BaseSkeleton, {
|
|
62
|
+
Group: BaseSkeletonGroup
|
|
63
|
+
});
|
|
64
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (BaseSkeletonRoot);
|
|
65
|
+
|
|
66
|
+
/***/ },
|
|
67
|
+
|
|
68
|
+
/***/ 1542
|
|
69
|
+
(__unused_webpack_module, __webpack_exports__, __nuri_require__) {
|
|
70
|
+
|
|
71
|
+
/* harmony export */ __nuri_require__.d(__webpack_exports__, {
|
|
72
|
+
/* harmony export */ Q: () => (/* binding */ skeletonProps)
|
|
73
|
+
/* harmony export */ });
|
|
74
|
+
/* unused harmony export shapes */
|
|
75
|
+
/* harmony import */ var _helpers_props_common_props__WEBPACK_IMPORTED_MODULE_0__ = __nuri_require__(7298);
|
|
76
|
+
|
|
77
|
+
var shapes = ['text', 'rect', 'circle'];
|
|
78
|
+
var skeletonProps = {
|
|
79
|
+
shape: {
|
|
80
|
+
type: 'className',
|
|
81
|
+
className: 'shape',
|
|
82
|
+
values: shapes,
|
|
83
|
+
"default": 'text'
|
|
84
|
+
},
|
|
85
|
+
width: (0,_helpers_props_common_props__WEBPACK_IMPORTED_MODULE_0__/* .widthProp */ .Iw)('100%'),
|
|
86
|
+
height: {
|
|
87
|
+
type: 'css',
|
|
88
|
+
key: 'height'
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
/***/ },
|
|
93
|
+
|
|
94
|
+
/***/ 7298
|
|
95
|
+
(__unused_webpack_module, __webpack_exports__, __nuri_require__) {
|
|
96
|
+
|
|
97
|
+
/* harmony export */ __nuri_require__.d(__webpack_exports__, {
|
|
98
|
+
/* harmony export */ Iw: () => (/* binding */ widthProp)
|
|
99
|
+
/* harmony export */ });
|
|
100
|
+
/* unused harmony exports size, sizeProp */
|
|
101
|
+
/** 모든 컴포넌트가 함께 쓰는 크기 이름. px 은 styles/token/size.css 에 있다. */
|
|
102
|
+
var size = (/* unused pure expression or super */ null && (['xs', 's', 'm', 'l', 'xl']));
|
|
103
|
+
/** 컴포넌트는 다섯 이름 중 지원하는 것만 고른다. `size-{값}` 클래스가 붙는다. */
|
|
104
|
+
var sizeProp = function sizeProp(values, defaultValue) {
|
|
105
|
+
return {
|
|
106
|
+
type: 'className',
|
|
107
|
+
className: 'size',
|
|
108
|
+
values: values,
|
|
109
|
+
"default": defaultValue
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
var widthProp = function widthProp(defaultValue) {
|
|
113
|
+
return {
|
|
114
|
+
type: 'css',
|
|
115
|
+
key: 'width',
|
|
116
|
+
"default": defaultValue
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
/***/ }
|
|
121
|
+
|
|
122
|
+
};
|
package/dist/chunk-6302.js
CHANGED
|
@@ -49,20 +49,18 @@ var BaseSpinner = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_r
|
|
|
49
49
|
ref: ref,
|
|
50
50
|
className: (0,classNames/* classNames */.x)('nuri-theme base-spinner', className)
|
|
51
51
|
}, restProps, {
|
|
52
|
-
children: (0,jsx_runtime_.jsx)("
|
|
53
|
-
className: 'loading-indicator-ring'
|
|
54
|
-
children: [0, 1, 2, 3].map(function (i) {
|
|
55
|
-
return (0,jsx_runtime_.jsx)("div", {
|
|
56
|
-
className: 'loading-indicator-single-ring'
|
|
57
|
-
}, i);
|
|
58
|
-
})
|
|
52
|
+
children: (0,jsx_runtime_.jsx)("span", {
|
|
53
|
+
className: 'loading-indicator-ring'
|
|
59
54
|
})
|
|
60
55
|
}));
|
|
61
56
|
});
|
|
62
57
|
BaseSpinner.displayName = 'BaseSpinner';
|
|
63
58
|
/* harmony default export */ const base_spinner = (BaseSpinner);
|
|
59
|
+
// EXTERNAL MODULE: ./components/loading/loading-props.ts
|
|
60
|
+
var loading_props = __nuri_require__(8734);
|
|
64
61
|
;// ./components/loading/spinner/spinner-props.ts
|
|
65
|
-
|
|
62
|
+
|
|
63
|
+
var spinnerProps = loading_props/* loadingProps */.Zf;
|
|
66
64
|
;// ./components/loading/spinner/spinner.tsx
|
|
67
65
|
var spinner_assign = undefined && undefined.__assign || function () {
|
|
68
66
|
spinner_assign = Object.assign || function (t) {
|
|
@@ -91,10 +89,12 @@ var spinner_rest = undefined && undefined.__rest || function (s, e) {
|
|
|
91
89
|
var Spinner = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.forwardRef)(function (props, ref) {
|
|
92
90
|
var _a = (0,getMergedProps/* getMergedProps */.p)(props, spinnerProps),
|
|
93
91
|
className = _a.className,
|
|
94
|
-
|
|
92
|
+
_b = _a.delay,
|
|
93
|
+
delay = _b === void 0 ? true : _b,
|
|
94
|
+
restProps = spinner_rest(_a, ["className", "delay"]);
|
|
95
95
|
return (0,jsx_runtime_.jsx)(base_spinner, spinner_assign({
|
|
96
96
|
ref: ref,
|
|
97
|
-
className: (0,classNames/* classNames */.x)(className, 'component-loading-container')
|
|
97
|
+
className: (0,classNames/* classNames */.x)(className, 'loading component-loading-container', delay && 'loading-delay')
|
|
98
98
|
}, restProps));
|
|
99
99
|
});
|
|
100
100
|
Spinner.displayName = 'Spinner';
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
export const __webpack_esm_id__ = 6706;
|
|
3
|
+
export const __webpack_esm_ids__ = [6706];
|
|
4
|
+
export const __webpack_esm_modules__ = {
|
|
5
|
+
|
|
6
|
+
/***/ 6706
|
|
7
|
+
(__unused_webpack_module, __webpack_exports__, __nuri_require__) {
|
|
8
|
+
|
|
9
|
+
/* harmony export */ __nuri_require__.d(__webpack_exports__, {
|
|
10
|
+
/* harmony export */ r: () => (/* binding */ usePresenceCallbacks)
|
|
11
|
+
/* harmony export */ });
|
|
12
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __nuri_require__(1041);
|
|
13
|
+
|
|
14
|
+
var prefersReducedMotion = function prefersReducedMotion() {
|
|
15
|
+
return typeof window !== 'undefined' && typeof window.matchMedia === 'function' && window.matchMedia('(prefers-reduced-motion: reduce)').matches;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Radix Content 에 onAnimationEnd 를 달면 motion-enter-* 가 끝날 때 onEntered, motion-exit-* 가 끝날 때 onExited 를 부른다.
|
|
19
|
+
* 열고 닫을 때마다 한 번씩만 부른다.
|
|
20
|
+
*/
|
|
21
|
+
var usePresenceCallbacks = function usePresenceCallbacks(_a) {
|
|
22
|
+
var open = _a.open,
|
|
23
|
+
onEntered = _a.onEntered,
|
|
24
|
+
onExited = _a.onExited;
|
|
25
|
+
var callbacksRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)({
|
|
26
|
+
onEntered: onEntered,
|
|
27
|
+
onExited: onExited
|
|
28
|
+
});
|
|
29
|
+
callbacksRef.current = {
|
|
30
|
+
onEntered: onEntered,
|
|
31
|
+
onExited: onExited
|
|
32
|
+
};
|
|
33
|
+
var pendingRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);
|
|
34
|
+
// 마운트 전은 닫힌 것으로 본다. 처음부터 열려 있으면 등장 애니메이션이 돌기 때문이다
|
|
35
|
+
var prevOpenRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(false);
|
|
36
|
+
var settle = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (transition) {
|
|
37
|
+
var _a;
|
|
38
|
+
if (pendingRef.current !== transition) return;
|
|
39
|
+
pendingRef.current = null;
|
|
40
|
+
var _b = callbacksRef.current,
|
|
41
|
+
entered = _b.onEntered,
|
|
42
|
+
exited = _b.onExited;
|
|
43
|
+
(_a = transition === 'enter' ? entered : exited) === null || _a === void 0 ? void 0 : _a();
|
|
44
|
+
}, []);
|
|
45
|
+
(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
|
|
46
|
+
if (prevOpenRef.current === open) return;
|
|
47
|
+
prevOpenRef.current = open;
|
|
48
|
+
var transition = open ? 'enter' : 'exit';
|
|
49
|
+
pendingRef.current = transition;
|
|
50
|
+
// reduced-motion 이면 애니메이션 시간이 0 이라 animationend 가 오지 않을 수 있다
|
|
51
|
+
if (prefersReducedMotion()) settle(transition);
|
|
52
|
+
}, [open, settle]);
|
|
53
|
+
var onAnimationEnd = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (event) {
|
|
54
|
+
if (event.target !== event.currentTarget) return;
|
|
55
|
+
if (event.animationName.startsWith('motion-enter-')) settle('enter');else if (event.animationName.startsWith('motion-exit-')) settle('exit');
|
|
56
|
+
}, [settle]);
|
|
57
|
+
return {
|
|
58
|
+
onAnimationEnd: onAnimationEnd
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
/***/ }
|
|
63
|
+
|
|
64
|
+
};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
export const __webpack_esm_id__ = 7302;
|
|
3
|
+
export const __webpack_esm_ids__ = [7302];
|
|
4
|
+
export const __webpack_esm_modules__ = {
|
|
5
|
+
|
|
6
|
+
/***/ 7302
|
|
7
|
+
(__unused_webpack_module, __webpack_exports__, __nuri_require__) {
|
|
8
|
+
|
|
9
|
+
/* harmony export */ __nuri_require__.d(__webpack_exports__, {
|
|
10
|
+
/* harmony export */ h: () => (/* binding */ useFieldClear)
|
|
11
|
+
/* harmony export */ });
|
|
12
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __nuri_require__(1041);
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* 입력 상자 안 지우기 버튼(X)의 몫. 포커스가 상자 안에 있는지(버튼으로 옮겨가도 안이다)와
|
|
16
|
+
* 포인터가 버튼 위에 있는지를 들고, 지우기는 진짜 입력처럼 input 이벤트를 쏴서
|
|
17
|
+
* controlled·uncontrolled 어느 쪽이든 평소의 onChange 로 '' 가 가게 한다.
|
|
18
|
+
*/
|
|
19
|
+
var useFieldClear = function useFieldClear(onClear) {
|
|
20
|
+
var fieldRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);
|
|
21
|
+
var _a = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false),
|
|
22
|
+
focusWithin = _a[0],
|
|
23
|
+
setFocusWithin = _a[1];
|
|
24
|
+
var _b = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false),
|
|
25
|
+
pointerOnClear = _b[0],
|
|
26
|
+
setPointerOnClear = _b[1];
|
|
27
|
+
var clear = function clear() {
|
|
28
|
+
var _a, _b;
|
|
29
|
+
var field = fieldRef.current;
|
|
30
|
+
if (!field) return;
|
|
31
|
+
// React 가 인스턴스에 단 value setter 를 건너뛰어야 다음 input 이벤트를 값 변경으로 본다
|
|
32
|
+
var prototype = field instanceof HTMLTextAreaElement ? HTMLTextAreaElement.prototype : HTMLInputElement.prototype;
|
|
33
|
+
(_b = (_a = Object.getOwnPropertyDescriptor(prototype, 'value')) === null || _a === void 0 ? void 0 : _a.set) === null || _b === void 0 ? void 0 : _b.call(field, '');
|
|
34
|
+
field.dispatchEvent(new Event('input', {
|
|
35
|
+
bubbles: true
|
|
36
|
+
}));
|
|
37
|
+
field.focus();
|
|
38
|
+
setPointerOnClear(false);
|
|
39
|
+
onClear === null || onClear === void 0 ? void 0 : onClear();
|
|
40
|
+
};
|
|
41
|
+
return {
|
|
42
|
+
fieldRef: fieldRef,
|
|
43
|
+
engaged: focusWithin || pointerOnClear,
|
|
44
|
+
wrapperProps: {
|
|
45
|
+
onFocus: function onFocus() {
|
|
46
|
+
return setFocusWithin(true);
|
|
47
|
+
},
|
|
48
|
+
onBlur: function onBlur(e) {
|
|
49
|
+
if (!e.currentTarget.contains(e.relatedTarget)) setFocusWithin(false);
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
clearProps: {
|
|
53
|
+
onPointerEnter: function onPointerEnter() {
|
|
54
|
+
return setPointerOnClear(true);
|
|
55
|
+
},
|
|
56
|
+
onPointerLeave: function onPointerLeave() {
|
|
57
|
+
return setPointerOnClear(false);
|
|
58
|
+
},
|
|
59
|
+
onClick: clear
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
/***/ }
|
|
65
|
+
|
|
66
|
+
};
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
export const __webpack_esm_id__ = 7460;
|
|
3
|
+
export const __webpack_esm_ids__ = [7460];
|
|
4
|
+
export const __webpack_esm_modules__ = {
|
|
5
|
+
|
|
6
|
+
/***/ 6386
|
|
7
|
+
(__unused_webpack_module, __webpack_exports__, __nuri_require__) {
|
|
8
|
+
|
|
9
|
+
/* harmony export */ __nuri_require__.d(__webpack_exports__, {
|
|
10
|
+
/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
11
|
+
/* harmony export */ });
|
|
12
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __nuri_require__(1041);
|
|
13
|
+
var _path, _path2;
|
|
14
|
+
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); }
|
|
15
|
+
|
|
16
|
+
var SvgExclamation = function SvgExclamation(props) {
|
|
17
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("svg", _extends({
|
|
18
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
19
|
+
width: 16,
|
|
20
|
+
height: 16,
|
|
21
|
+
fill: "none",
|
|
22
|
+
viewBox: "0 0 16 16"
|
|
23
|
+
}, props), _path || (_path = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("path", {
|
|
24
|
+
stroke: "#fff",
|
|
25
|
+
strokeLinecap: "round",
|
|
26
|
+
strokeWidth: 1.5,
|
|
27
|
+
d: "M8 3.5V9"
|
|
28
|
+
})), _path2 || (_path2 = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("path", {
|
|
29
|
+
stroke: "#fff",
|
|
30
|
+
strokeLinecap: "round",
|
|
31
|
+
strokeWidth: 2,
|
|
32
|
+
d: "M8 12h.01"
|
|
33
|
+
})));
|
|
34
|
+
};
|
|
35
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (SvgExclamation);
|
|
36
|
+
|
|
37
|
+
/***/ },
|
|
38
|
+
|
|
39
|
+
/***/ 7413
|
|
40
|
+
(__unused_webpack_module, __webpack_exports__, __nuri_require__) {
|
|
41
|
+
|
|
42
|
+
/* harmony export */ __nuri_require__.d(__webpack_exports__, {
|
|
43
|
+
/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__),
|
|
44
|
+
/* harmony export */ t: () => (/* binding */ ToastProvider)
|
|
45
|
+
/* harmony export */ });
|
|
46
|
+
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __nuri_require__(612);
|
|
47
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __nuri_require__(1041);
|
|
48
|
+
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_2__ = __nuri_require__(4377);
|
|
49
|
+
/* harmony import */ var radix_ui__WEBPACK_IMPORTED_MODULE_3__ = __nuri_require__(0);
|
|
50
|
+
/* harmony import */ var _helpers_utils_classNames__WEBPACK_IMPORTED_MODULE_4__ = __nuri_require__(3274);
|
|
51
|
+
/* harmony import */ var _helpers_utils_getMergedProps__WEBPACK_IMPORTED_MODULE_5__ = __nuri_require__(7335);
|
|
52
|
+
/* harmony import */ var _toast_props__WEBPACK_IMPORTED_MODULE_6__ = __nuri_require__(5618);
|
|
53
|
+
var __assign = undefined && undefined.__assign || function () {
|
|
54
|
+
__assign = Object.assign || function (t) {
|
|
55
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
56
|
+
s = arguments[i];
|
|
57
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
58
|
+
}
|
|
59
|
+
return t;
|
|
60
|
+
};
|
|
61
|
+
return __assign.apply(this, arguments);
|
|
62
|
+
};
|
|
63
|
+
var __rest = undefined && undefined.__rest || function (s, e) {
|
|
64
|
+
var t = {};
|
|
65
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
66
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
67
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
68
|
+
}
|
|
69
|
+
return t;
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
// Toast.Provider 는 DOM 을 그리지 않는다. Viewport(ol) 가 토스트가 쌓이는 자리다.
|
|
79
|
+
var ToastViewport = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(function (props, ref) {
|
|
80
|
+
var className = props.className,
|
|
81
|
+
position = props.position,
|
|
82
|
+
restProps = __rest(props, ["className", "position"]);
|
|
83
|
+
var positionClassName = (0,_helpers_utils_getMergedProps__WEBPACK_IMPORTED_MODULE_5__/* .getMergedProps */ .p)({
|
|
84
|
+
position: position
|
|
85
|
+
}, _toast_props__WEBPACK_IMPORTED_MODULE_6__/* .toastViewportProps */ .Cc).className;
|
|
86
|
+
return (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(radix_ui__WEBPACK_IMPORTED_MODULE_3__.Toast.Viewport, __assign({
|
|
87
|
+
ref: ref,
|
|
88
|
+
className: (0,_helpers_utils_classNames__WEBPACK_IMPORTED_MODULE_4__/* .classNames */ .x)('nuri-theme base-toast viewport', positionClassName, className)
|
|
89
|
+
}, restProps));
|
|
90
|
+
});
|
|
91
|
+
ToastViewport.displayName = 'ToastViewport';
|
|
92
|
+
// Radix Toast 는 Provider 없이 쓰면 오류를 낸다. 쓰는 쪽이 앱 루트에 한 번 둔다.
|
|
93
|
+
// radix-ui 는 peerDependency 라 진입점(`/toast`, 루트)이 달라도 Radix context 하나를 같이 쓴다.
|
|
94
|
+
var ToastProvider = function ToastProvider(props) {
|
|
95
|
+
var children = props.children,
|
|
96
|
+
duration = props.duration,
|
|
97
|
+
position = props.position,
|
|
98
|
+
_a = props.label,
|
|
99
|
+
label = _a === void 0 ? '알림' : _a,
|
|
100
|
+
portalContainer = props.portalContainer;
|
|
101
|
+
// Radix 가 {hotkey} 자리를 F8 로 바꾼다
|
|
102
|
+
var viewport = (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(ToastViewport, {
|
|
103
|
+
position: position,
|
|
104
|
+
label: "".concat(label, " ({hotkey})")
|
|
105
|
+
});
|
|
106
|
+
return (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(radix_ui__WEBPACK_IMPORTED_MODULE_3__.Toast.Provider, {
|
|
107
|
+
duration: duration,
|
|
108
|
+
label: label,
|
|
109
|
+
children: [children, portalContainer ? /*#__PURE__*/(0,react_dom__WEBPACK_IMPORTED_MODULE_2__.createPortal)(viewport, portalContainer) : viewport]
|
|
110
|
+
});
|
|
111
|
+
};
|
|
112
|
+
ToastProvider.displayName = 'ToastProvider';
|
|
113
|
+
var ToastRootBase = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(function (props, ref) {
|
|
114
|
+
var children = props.children,
|
|
115
|
+
className = props.className,
|
|
116
|
+
restProps = __rest(props, ["children", "className"]);
|
|
117
|
+
return (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(radix_ui__WEBPACK_IMPORTED_MODULE_3__.Toast.Root, __assign({
|
|
118
|
+
ref: ref,
|
|
119
|
+
className: (0,_helpers_utils_classNames__WEBPACK_IMPORTED_MODULE_4__/* .classNames */ .x)('nuri-theme base-toast', className)
|
|
120
|
+
}, restProps, {
|
|
121
|
+
children: children
|
|
122
|
+
}));
|
|
123
|
+
});
|
|
124
|
+
ToastRootBase.displayName = 'ToastRoot';
|
|
125
|
+
var ToastTitle = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(function (props, ref) {
|
|
126
|
+
var className = props.className,
|
|
127
|
+
restProps = __rest(props, ["className"]);
|
|
128
|
+
return (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(radix_ui__WEBPACK_IMPORTED_MODULE_3__.Toast.Title, __assign({
|
|
129
|
+
ref: ref,
|
|
130
|
+
className: (0,_helpers_utils_classNames__WEBPACK_IMPORTED_MODULE_4__/* .classNames */ .x)('nuri-theme base-toast title', className)
|
|
131
|
+
}, restProps));
|
|
132
|
+
});
|
|
133
|
+
ToastTitle.displayName = 'ToastTitle';
|
|
134
|
+
var ToastDescription = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(function (props, ref) {
|
|
135
|
+
var className = props.className,
|
|
136
|
+
restProps = __rest(props, ["className"]);
|
|
137
|
+
return (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(radix_ui__WEBPACK_IMPORTED_MODULE_3__.Toast.Description, __assign({
|
|
138
|
+
ref: ref,
|
|
139
|
+
className: (0,_helpers_utils_classNames__WEBPACK_IMPORTED_MODULE_4__/* .classNames */ .x)('nuri-theme base-toast description', className)
|
|
140
|
+
}, restProps));
|
|
141
|
+
});
|
|
142
|
+
ToastDescription.displayName = 'ToastDescription';
|
|
143
|
+
// 누르면 Radix 가 토스트를 닫는다(onOpenChange(false)).
|
|
144
|
+
var ToastAction = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(function (props, ref) {
|
|
145
|
+
var className = props.className,
|
|
146
|
+
restProps = __rest(props, ["className"]);
|
|
147
|
+
return (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(radix_ui__WEBPACK_IMPORTED_MODULE_3__.Toast.Action, __assign({
|
|
148
|
+
ref: ref,
|
|
149
|
+
className: (0,_helpers_utils_classNames__WEBPACK_IMPORTED_MODULE_4__/* .classNames */ .x)('nuri-theme base-toast action', className),
|
|
150
|
+
type: 'button'
|
|
151
|
+
}, restProps));
|
|
152
|
+
});
|
|
153
|
+
ToastAction.displayName = 'ToastAction';
|
|
154
|
+
var ToastClose = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(function (props, ref) {
|
|
155
|
+
var className = props.className,
|
|
156
|
+
restProps = __rest(props, ["className"]);
|
|
157
|
+
return (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(radix_ui__WEBPACK_IMPORTED_MODULE_3__.Toast.Close, __assign({
|
|
158
|
+
ref: ref,
|
|
159
|
+
className: (0,_helpers_utils_classNames__WEBPACK_IMPORTED_MODULE_4__/* .classNames */ .x)('nuri-theme base-toast close', className),
|
|
160
|
+
type: 'button'
|
|
161
|
+
}, restProps));
|
|
162
|
+
});
|
|
163
|
+
ToastClose.displayName = 'ToastClose';
|
|
164
|
+
var ToastRoot = Object.assign(ToastRootBase, {
|
|
165
|
+
Viewport: ToastViewport,
|
|
166
|
+
Title: ToastTitle,
|
|
167
|
+
Description: ToastDescription,
|
|
168
|
+
Action: ToastAction,
|
|
169
|
+
Close: ToastClose
|
|
170
|
+
});
|
|
171
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ToastRoot);
|
|
172
|
+
|
|
173
|
+
/***/ },
|
|
174
|
+
|
|
175
|
+
/***/ 5618
|
|
176
|
+
(__unused_webpack_module, __webpack_exports__, __nuri_require__) {
|
|
177
|
+
|
|
178
|
+
/* harmony export */ __nuri_require__.d(__webpack_exports__, {
|
|
179
|
+
/* harmony export */ Cc: () => (/* binding */ toastViewportProps),
|
|
180
|
+
/* harmony export */ Eg: () => (/* binding */ toastProps)
|
|
181
|
+
/* harmony export */ });
|
|
182
|
+
/* unused harmony exports variants, positions */
|
|
183
|
+
var variants = ['default', 'secondary', 'success', 'warning', 'error'];
|
|
184
|
+
var positions = ['top-right', 'bottom-right', 'bottom-center'];
|
|
185
|
+
var toastProps = {
|
|
186
|
+
variant: {
|
|
187
|
+
type: 'className',
|
|
188
|
+
className: 'variant',
|
|
189
|
+
values: variants,
|
|
190
|
+
"default": 'default'
|
|
191
|
+
}
|
|
192
|
+
};
|
|
193
|
+
var toastViewportProps = {
|
|
194
|
+
position: {
|
|
195
|
+
type: 'className',
|
|
196
|
+
className: 'position',
|
|
197
|
+
values: positions,
|
|
198
|
+
"default": 'bottom-right'
|
|
199
|
+
}
|
|
200
|
+
};
|
|
201
|
+
|
|
202
|
+
/***/ }
|
|
203
|
+
|
|
204
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export const __webpack_esm_id__ =
|
|
3
|
-
export const __webpack_esm_ids__ = [
|
|
2
|
+
export const __webpack_esm_id__ = 8377;
|
|
3
|
+
export const __webpack_esm_ids__ = [8377];
|
|
4
4
|
export const __webpack_esm_modules__ = {
|
|
5
5
|
|
|
6
6
|
/***/ 6149
|
|
@@ -52,6 +52,40 @@ var BaseBadge = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(f
|
|
|
52
52
|
BaseBadge.displayName = 'BaseBadge';
|
|
53
53
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (BaseBadge);
|
|
54
54
|
|
|
55
|
+
/***/ },
|
|
56
|
+
|
|
57
|
+
/***/ 7589
|
|
58
|
+
(__unused_webpack_module, __webpack_exports__, __nuri_require__) {
|
|
59
|
+
|
|
60
|
+
/* harmony export */ __nuri_require__.d(__webpack_exports__, {
|
|
61
|
+
/* harmony export */ _: () => (/* binding */ useAttentionHandle)
|
|
62
|
+
/* harmony export */ });
|
|
63
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __nuri_require__(1041);
|
|
64
|
+
/* harmony import */ var _use_effect_trigger__WEBPACK_IMPORTED_MODULE_1__ = __nuri_require__(3640);
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
/** effectRef 에 shine·blink 를 걸고, 효과를 받을 루트에 펼칠 data-effect·onAnimationEnd 를 돌려준다 */
|
|
68
|
+
var useAttentionHandle = function useAttentionHandle(effectRef) {
|
|
69
|
+
var _a = (0,_use_effect_trigger__WEBPACK_IMPORTED_MODULE_1__/* .useEffectTrigger */ .H)(),
|
|
70
|
+
effect = _a.effect,
|
|
71
|
+
trigger = _a.trigger,
|
|
72
|
+
onAnimationEnd = _a.onAnimationEnd;
|
|
73
|
+
(0,react__WEBPACK_IMPORTED_MODULE_0__.useImperativeHandle)(effectRef, function () {
|
|
74
|
+
return {
|
|
75
|
+
shine: function shine(times) {
|
|
76
|
+
return trigger('shine', times);
|
|
77
|
+
},
|
|
78
|
+
blink: function blink(times) {
|
|
79
|
+
return trigger('blink', times);
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
}, [trigger]);
|
|
83
|
+
return {
|
|
84
|
+
'data-effect': effect,
|
|
85
|
+
onAnimationEnd: onAnimationEnd
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
|
|
55
89
|
/***/ }
|
|
56
90
|
|
|
57
91
|
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
export const __webpack_esm_id__ = 8734;
|
|
3
|
+
export const __webpack_esm_ids__ = [8734];
|
|
4
|
+
export const __webpack_esm_modules__ = {
|
|
5
|
+
|
|
6
|
+
/***/ 8734
|
|
7
|
+
(__unused_webpack_module, __webpack_exports__, __nuri_require__) {
|
|
8
|
+
|
|
9
|
+
/* harmony export */ __nuri_require__.d(__webpack_exports__, {
|
|
10
|
+
/* harmony export */ Zf: () => (/* binding */ loadingProps)
|
|
11
|
+
/* harmony export */ });
|
|
12
|
+
/* unused harmony exports loadingSizes, loadingVariants, loadingVariantProp */
|
|
13
|
+
/* harmony import */ var _helpers_props_common_props__WEBPACK_IMPORTED_MODULE_0__ = __nuri_require__(7298);
|
|
14
|
+
|
|
15
|
+
/** 로딩 가족이 모두 같은 이름으로 쓰는 축. px 은 styles/token/size.css 의 --loading-*, 색은 styles/loading.css 에 있다 */
|
|
16
|
+
var loadingSizes = ['s', 'm', 'l'];
|
|
17
|
+
var loadingVariants = ['neutral', 'brand', 'inverse'];
|
|
18
|
+
var loadingVariantProp = function loadingVariantProp(defaultValue) {
|
|
19
|
+
return {
|
|
20
|
+
type: 'className',
|
|
21
|
+
className: 'variant',
|
|
22
|
+
values: loadingVariants,
|
|
23
|
+
"default": defaultValue
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
var loadingProps = {
|
|
27
|
+
size: (0,_helpers_props_common_props__WEBPACK_IMPORTED_MODULE_0__/* .sizeProp */ .lw)(loadingSizes, 'm'),
|
|
28
|
+
variant: loadingVariantProp('neutral')
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
/***/ }
|
|
32
|
+
|
|
33
|
+
};
|