@nurihaus/web-design-system 3.9.1 → 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/README.md +1 -1
- package/dist/.storybook/preview.d.ts +49 -0
- package/dist/ai/components.md +721 -111
- 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 +109 -55
- 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 +14 -7
- 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 +28 -2
- package/dist/components/collapsible-menu/collapsible-menu.d.ts +1 -1
- package/dist/components/collapsible-menu/collapsible-menu.stories.d.ts +14 -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 +37 -12
- 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 +20 -10
- 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 +19 -12
- 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 +16 -9
- 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 +20 -9
- 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-props.d.ts +9 -0
- package/dist/components/table/table-type.d.ts +7 -1
- package/dist/components/table/table.stories.d.ts +46 -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 +28 -13
- package/dist/components/tooltip/tooltip-type.d.ts +4 -1
- package/dist/components/tooltip/tooltip.stories.d.ts +11 -0
- package/dist/components.css +2005 -672
- package/dist/cta-button.js +94 -33
- package/dist/data-table.js +38 -5
- 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 +4074 -989
- 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/reset.css +4 -0
- package/dist/skeleton-group.js +445 -0
- package/dist/skeleton.js +24 -112
- package/dist/step-progress.js +125 -16
- package/dist/styles.css +2309 -756
- 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
package/dist/list-row.js
CHANGED
|
@@ -70,9 +70,11 @@ var ListRow = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(fun
|
|
|
70
70
|
asChild = _a.asChild,
|
|
71
71
|
onClick = _a.onClick,
|
|
72
72
|
children = _a.children,
|
|
73
|
+
_b = _a.pressEffect,
|
|
74
|
+
pressEffect = _b === void 0 ? true : _b,
|
|
73
75
|
track = _a.track,
|
|
74
76
|
trackProps = _a.trackProps,
|
|
75
|
-
restProps = __rest(_a, ["className", "label", "description", "leading", "trailing", "chevron", "asChild", "onClick", "children", "track", "trackProps"]);
|
|
77
|
+
restProps = __rest(_a, ["className", "label", "description", "leading", "trailing", "chevron", "asChild", "onClick", "children", "pressEffect", "track", "trackProps"]);
|
|
76
78
|
var emit = (0,_helpers_hooks_useTrack__WEBPACK_IMPORTED_MODULE_2__/* .useTrack */ .n)('ListRow', {
|
|
77
79
|
track: track,
|
|
78
80
|
trackProps: trackProps
|
|
@@ -111,7 +113,8 @@ var ListRow = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(fun
|
|
|
111
113
|
var rowElement = link !== null && link !== void 0 ? link : buttonRow;
|
|
112
114
|
return (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_base_list__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .A.Row, __assign({
|
|
113
115
|
ref: ref,
|
|
114
|
-
|
|
116
|
+
// 폭이 꽉 찬 행이라 눌림은 딤만 쓴다(press form dim). 보기만 하는 행은 받지 않는다
|
|
117
|
+
className: (0,_helpers_utils_classNames__WEBPACK_IMPORTED_MODULE_3__/* .classNames */ .x)(className, 'list-row', pressEffect && rowElement && 'motion-press-dim'),
|
|
115
118
|
asChild: rowElement !== null,
|
|
116
119
|
// 링크 행은 다른 화면으로 옮기고 버튼 행은 그 자리에서 동작한다. 보기만 하는 행은 보내지 않는다
|
|
117
120
|
onClick: rowElement ? function (event) {
|
package/dist/loading.js
CHANGED
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import { Progress as __WEBPACK_EXTERNAL_MODULE_radix_ui_3bc96d1b_Progress__ } from "radix-ui";
|
|
2
3
|
import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
|
|
3
4
|
import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_179142b8__ from "react/jsx-runtime";
|
|
4
5
|
/******/ var __webpack_modules__ = ({
|
|
5
6
|
|
|
6
|
-
/***/
|
|
7
|
+
/***/ 8510
|
|
7
8
|
(__unused_webpack_module, __webpack_exports__, __nuri_require__) {
|
|
8
9
|
|
|
9
10
|
|
|
10
11
|
// EXPORTS
|
|
11
12
|
__nuri_require__.d(__webpack_exports__, {
|
|
12
13
|
Ou: () => (/* reexport */ inline_loading),
|
|
14
|
+
XC: () => (/* reexport */ loading_dots/* default */.A),
|
|
13
15
|
$V: () => (/* reexport */ overlay_loading),
|
|
16
|
+
z2: () => (/* reexport */ progress_bar),
|
|
14
17
|
y$: () => (/* reexport */ spinner/* default */.A)
|
|
15
18
|
});
|
|
16
19
|
|
|
@@ -48,35 +51,39 @@ var __rest = undefined && undefined.__rest || function (s, e) {
|
|
|
48
51
|
|
|
49
52
|
var BaseInlineLoading = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.forwardRef)(function (props, ref) {
|
|
50
53
|
var className = props.className,
|
|
51
|
-
|
|
52
|
-
restProps = __rest(props, ["className", "ringStyle"]);
|
|
54
|
+
restProps = __rest(props, ["className"]);
|
|
53
55
|
return (0,jsx_runtime_.jsx)("div", __assign({
|
|
54
56
|
ref: ref,
|
|
55
|
-
className: (0,classNames/* classNames */.x)('nuri-theme base-inline-loading', className)
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
style: ringStyle,
|
|
60
|
-
children: [0, 1, 2, 3].map(function (i) {
|
|
61
|
-
return (0,jsx_runtime_.jsx)("div", {
|
|
62
|
-
className: 'loading-indicator-single-ring'
|
|
63
|
-
}, i);
|
|
64
|
-
})
|
|
65
|
-
})
|
|
66
|
-
}));
|
|
57
|
+
className: (0,classNames/* classNames */.x)('nuri-theme base-inline-loading', className),
|
|
58
|
+
role: 'status',
|
|
59
|
+
"aria-live": 'polite'
|
|
60
|
+
}, restProps));
|
|
67
61
|
});
|
|
68
62
|
BaseInlineLoading.displayName = 'BaseInlineLoading';
|
|
69
63
|
/* harmony default export */ const base_inline_loading = (BaseInlineLoading);
|
|
64
|
+
// EXTERNAL MODULE: ./components/loading/loading-props.ts
|
|
65
|
+
var loading_props = __nuri_require__(8734);
|
|
70
66
|
;// ./components/loading/inline-loading/inline-loading-props.ts
|
|
67
|
+
var inline_loading_props_assign = undefined && undefined.__assign || function () {
|
|
68
|
+
inline_loading_props_assign = Object.assign || function (t) {
|
|
69
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
70
|
+
s = arguments[i];
|
|
71
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
72
|
+
}
|
|
73
|
+
return t;
|
|
74
|
+
};
|
|
75
|
+
return inline_loading_props_assign.apply(this, arguments);
|
|
76
|
+
};
|
|
77
|
+
|
|
71
78
|
var justifyContent = ['flex-start', 'center', 'flex-end', 'space-between'];
|
|
72
|
-
var inlineLoadingProps = {
|
|
79
|
+
var inlineLoadingProps = inline_loading_props_assign(inline_loading_props_assign({}, loading_props/* loadingProps */.Zf), {
|
|
73
80
|
justifyContent: {
|
|
74
81
|
type: 'css',
|
|
75
82
|
key: 'justifyContent',
|
|
76
83
|
values: justifyContent,
|
|
77
84
|
"default": 'flex-start'
|
|
78
85
|
}
|
|
79
|
-
};
|
|
86
|
+
});
|
|
80
87
|
;// ./components/loading/inline-loading/inline-loading.tsx
|
|
81
88
|
|
|
82
89
|
|
|
@@ -84,27 +91,130 @@ var inlineLoadingProps = {
|
|
|
84
91
|
|
|
85
92
|
|
|
86
93
|
|
|
94
|
+
|
|
95
|
+
var DEFAULT_LABEL = '불러오는 중';
|
|
96
|
+
// 링은 Spinner 를 그대로 쓴다. 크기·색 클래스는 루트에 붙고 Spinner 에도 같은 값을 넘긴다.
|
|
97
|
+
// 혼자 놓이는 로딩이라 글자가 기본이다. 링만 보이는 것은 다른 요소 안에 딸린 Spinner 의 모양이다.
|
|
87
98
|
var InlineLoading = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.forwardRef)(function (props, ref) {
|
|
88
|
-
var _a =
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
99
|
+
var _a = props.size,
|
|
100
|
+
size = _a === void 0 ? 'm' : _a,
|
|
101
|
+
_b = props.variant,
|
|
102
|
+
variant = _b === void 0 ? 'neutral' : _b,
|
|
103
|
+
_c = props.delay,
|
|
104
|
+
delay = _c === void 0 ? true : _c,
|
|
105
|
+
_d = props.label,
|
|
106
|
+
label = _d === void 0 ? DEFAULT_LABEL : _d;
|
|
107
|
+
var _e = (0,getMergedProps/* getMergedProps */.p)(props, inlineLoadingProps),
|
|
108
|
+
className = _e.className,
|
|
109
|
+
style = _e.style;
|
|
110
|
+
return (0,jsx_runtime_.jsxs)(base_inline_loading, {
|
|
97
111
|
ref: ref,
|
|
98
|
-
className: (0,classNames/* classNames */.x)(className, 'component-loading-inline'),
|
|
112
|
+
className: (0,classNames/* classNames */.x)(className, 'loading component-loading-inline', delay && 'loading-delay'),
|
|
99
113
|
"data-testid": 'loading-component',
|
|
100
114
|
style: style,
|
|
101
|
-
|
|
115
|
+
"aria-label": label === false ? DEFAULT_LABEL : undefined,
|
|
116
|
+
children: [(0,jsx_runtime_.jsx)(spinner/* default */.A, {
|
|
117
|
+
size: size,
|
|
118
|
+
variant: variant,
|
|
119
|
+
delay: false
|
|
120
|
+
}), label !== false && (0,jsx_runtime_.jsx)("span", {
|
|
121
|
+
className: 'inline-loading-label',
|
|
122
|
+
children: label
|
|
123
|
+
})]
|
|
102
124
|
});
|
|
103
125
|
});
|
|
104
126
|
InlineLoading.displayName = 'InlineLoading';
|
|
105
127
|
/* harmony default export */ const inline_loading = (InlineLoading);
|
|
106
128
|
// EXTERNAL MODULE: ./components/elements/text/text.tsx
|
|
107
129
|
var text_text = __nuri_require__(7739);
|
|
130
|
+
;// external {"root":"RadixUI","commonjs2":"radix-ui","commonjs":"radix-ui","amd":"radix-ui","module":"radix-ui"}
|
|
131
|
+
|
|
132
|
+
;// ./components/loading/progress-bar/base-progress-bar.tsx
|
|
133
|
+
var base_progress_bar_assign = undefined && undefined.__assign || function () {
|
|
134
|
+
base_progress_bar_assign = Object.assign || function (t) {
|
|
135
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
136
|
+
s = arguments[i];
|
|
137
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
138
|
+
}
|
|
139
|
+
return t;
|
|
140
|
+
};
|
|
141
|
+
return base_progress_bar_assign.apply(this, arguments);
|
|
142
|
+
};
|
|
143
|
+
var base_progress_bar_rest = undefined && undefined.__rest || function (s, e) {
|
|
144
|
+
var t = {};
|
|
145
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
146
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
147
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
148
|
+
}
|
|
149
|
+
return t;
|
|
150
|
+
};
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
var BaseProgressBar = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.forwardRef)(function (props, ref) {
|
|
156
|
+
var className = props.className,
|
|
157
|
+
indicatorStyle = props.indicatorStyle,
|
|
158
|
+
restProps = base_progress_bar_rest(props, ["className", "indicatorStyle"]);
|
|
159
|
+
return (0,jsx_runtime_.jsx)(__WEBPACK_EXTERNAL_MODULE_radix_ui_3bc96d1b_Progress__.Root, base_progress_bar_assign({
|
|
160
|
+
ref: ref,
|
|
161
|
+
className: (0,classNames/* classNames */.x)('nuri-theme base-progress-bar', className)
|
|
162
|
+
}, restProps, {
|
|
163
|
+
children: (0,jsx_runtime_.jsx)(__WEBPACK_EXTERNAL_MODULE_radix_ui_3bc96d1b_Progress__.Indicator, {
|
|
164
|
+
className: 'progress-bar-indicator',
|
|
165
|
+
style: indicatorStyle
|
|
166
|
+
})
|
|
167
|
+
}));
|
|
168
|
+
});
|
|
169
|
+
BaseProgressBar.displayName = 'BaseProgressBar';
|
|
170
|
+
/* harmony default export */ const base_progress_bar = (BaseProgressBar);
|
|
171
|
+
// EXTERNAL MODULE: ./helpers/props/common-props.ts
|
|
172
|
+
var common_props = __nuri_require__(7298);
|
|
173
|
+
;// ./components/loading/progress-bar/progress-bar-props.ts
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
// 막대는 채움 자체가 정보라 기본 색이 brand 다. 다른 로딩 표시는 neutral 이다.
|
|
177
|
+
var progressBarProps = {
|
|
178
|
+
size: (0,common_props/* sizeProp */.lw)(loading_props/* loadingSizes */.lV, 'm'),
|
|
179
|
+
variant: (0,loading_props/* loadingVariantProp */.pc)('brand')
|
|
180
|
+
};
|
|
181
|
+
;// ./components/loading/progress-bar/progress-bar.tsx
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
var ProgressBar = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.forwardRef)(function (props, ref) {
|
|
189
|
+
var _a = (0,getMergedProps/* getMergedProps */.p)(props, progressBarProps),
|
|
190
|
+
className = _a.className,
|
|
191
|
+
style = _a.style,
|
|
192
|
+
value = _a.value,
|
|
193
|
+
_b = _a.max,
|
|
194
|
+
max = _b === void 0 ? 100 : _b,
|
|
195
|
+
_c = _a.animated,
|
|
196
|
+
animated = _c === void 0 ? true : _c,
|
|
197
|
+
_d = _a.delay,
|
|
198
|
+
delay = _d === void 0 ? true : _d,
|
|
199
|
+
label = _a.label;
|
|
200
|
+
// Radix 는 범위 밖 값을 끝을 모르는 진행으로 바꾸므로 먼저 맞춘다
|
|
201
|
+
var clamped = value == null ? null : Math.min(Math.max(value, 0), max);
|
|
202
|
+
var indicatorStyle = {
|
|
203
|
+
'--progress-bar-ratio': (clamped !== null && clamped !== void 0 ? clamped : 0) / max
|
|
204
|
+
};
|
|
205
|
+
return (0,jsx_runtime_.jsx)(base_progress_bar, {
|
|
206
|
+
ref: ref,
|
|
207
|
+
className: (0,classNames/* classNames */.x)(className, 'loading', delay && 'loading-delay'),
|
|
208
|
+
style: style,
|
|
209
|
+
value: clamped,
|
|
210
|
+
max: max,
|
|
211
|
+
"aria-label": label,
|
|
212
|
+
"data-animated": animated || undefined,
|
|
213
|
+
indicatorStyle: indicatorStyle
|
|
214
|
+
});
|
|
215
|
+
});
|
|
216
|
+
ProgressBar.displayName = 'ProgressBar';
|
|
217
|
+
/* harmony default export */ const progress_bar = (ProgressBar);
|
|
108
218
|
;// ./components/loading/overlay-loading/base-overlay-loading.tsx
|
|
109
219
|
var base_overlay_loading_assign = undefined && undefined.__assign || function () {
|
|
110
220
|
base_overlay_loading_assign = Object.assign || function (t) {
|
|
@@ -167,6 +277,7 @@ var overlayLoadingProps = {
|
|
|
167
277
|
|
|
168
278
|
|
|
169
279
|
|
|
280
|
+
|
|
170
281
|
var OverlayLoading = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.forwardRef)(function (props, ref) {
|
|
171
282
|
var _a = (0,getMergedProps/* getMergedProps */.p)(props, overlayLoadingProps),
|
|
172
283
|
className = _a.className,
|
|
@@ -174,20 +285,30 @@ var OverlayLoading = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonj
|
|
|
174
285
|
_b = _a.open,
|
|
175
286
|
open = _b === void 0 ? true : _b,
|
|
176
287
|
message = _a.message,
|
|
177
|
-
|
|
178
|
-
|
|
288
|
+
progress = _a.progress,
|
|
289
|
+
_c = _a.delay,
|
|
290
|
+
delay = _c === void 0 ? true : _c,
|
|
291
|
+
_d = _a.backdropOpacity,
|
|
292
|
+
backdropOpacity = _d === void 0 ? 0.6 : _d;
|
|
179
293
|
if (!open) return null;
|
|
180
294
|
var backdropStyle = {
|
|
181
295
|
backgroundColor: "rgba(0,0,0,".concat(backdropOpacity, ")")
|
|
182
296
|
};
|
|
183
297
|
return (0,jsx_runtime_.jsxs)(base_overlay_loading, {
|
|
184
298
|
ref: ref,
|
|
185
|
-
className: (0,classNames/* classNames */.x)(className, 'page-loading-container'),
|
|
299
|
+
className: (0,classNames/* classNames */.x)(className, 'page-loading-container', delay && 'loading-delay'),
|
|
186
300
|
style: style,
|
|
187
301
|
backdropStyle: backdropStyle,
|
|
188
|
-
children: [(0,jsx_runtime_.jsx)(
|
|
189
|
-
|
|
190
|
-
|
|
302
|
+
children: [progress === undefined ? (0,jsx_runtime_.jsx)(spinner/* default */.A, {
|
|
303
|
+
size: 'l',
|
|
304
|
+
variant: 'inverse',
|
|
305
|
+
delay: false
|
|
306
|
+
}) : (0,jsx_runtime_.jsx)(progress_bar, {
|
|
307
|
+
className: 'page-loading-progress',
|
|
308
|
+
value: progress,
|
|
309
|
+
label: message !== null && message !== void 0 ? message : '진행률',
|
|
310
|
+
variant: 'inverse',
|
|
311
|
+
delay: false
|
|
191
312
|
}), message && (0,jsx_runtime_.jsx)("div", {
|
|
192
313
|
className: 'page-loading-text',
|
|
193
314
|
children: (0,jsx_runtime_.jsx)(text_text/* default */.A, {
|
|
@@ -202,12 +323,45 @@ var OverlayLoading = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonj
|
|
|
202
323
|
});
|
|
203
324
|
OverlayLoading.displayName = 'OverlayLoading';
|
|
204
325
|
/* harmony default export */ const overlay_loading = (OverlayLoading);
|
|
326
|
+
// EXTERNAL MODULE: ./components/loading/loading-dots/loading-dots.tsx + 2 modules
|
|
327
|
+
var loading_dots = __nuri_require__(5302);
|
|
205
328
|
;// ./components/loading/index.ts
|
|
206
329
|
// Components
|
|
207
330
|
|
|
208
331
|
|
|
209
332
|
|
|
210
333
|
|
|
334
|
+
|
|
335
|
+
|
|
336
|
+
/***/ },
|
|
337
|
+
|
|
338
|
+
/***/ 8734
|
|
339
|
+
(__unused_webpack_module, __webpack_exports__, __nuri_require__) {
|
|
340
|
+
|
|
341
|
+
/* harmony export */ __nuri_require__.d(__webpack_exports__, {
|
|
342
|
+
/* harmony export */ Zf: () => (/* binding */ loadingProps),
|
|
343
|
+
/* harmony export */ lV: () => (/* binding */ loadingSizes),
|
|
344
|
+
/* harmony export */ pc: () => (/* binding */ loadingVariantProp)
|
|
345
|
+
/* harmony export */ });
|
|
346
|
+
/* unused harmony export loadingVariants */
|
|
347
|
+
/* harmony import */ var _helpers_props_common_props__WEBPACK_IMPORTED_MODULE_0__ = __nuri_require__(7298);
|
|
348
|
+
|
|
349
|
+
/** 로딩 가족이 모두 같은 이름으로 쓰는 축. px 은 styles/token/size.css 의 --loading-*, 색은 styles/loading.css 에 있다 */
|
|
350
|
+
var loadingSizes = ['s', 'm', 'l'];
|
|
351
|
+
var loadingVariants = ['neutral', 'brand', 'inverse'];
|
|
352
|
+
var loadingVariantProp = function loadingVariantProp(defaultValue) {
|
|
353
|
+
return {
|
|
354
|
+
type: 'className',
|
|
355
|
+
className: 'variant',
|
|
356
|
+
values: loadingVariants,
|
|
357
|
+
"default": defaultValue
|
|
358
|
+
};
|
|
359
|
+
};
|
|
360
|
+
var loadingProps = {
|
|
361
|
+
size: (0,_helpers_props_common_props__WEBPACK_IMPORTED_MODULE_0__/* .sizeProp */ .lw)(loadingSizes, 'm'),
|
|
362
|
+
variant: loadingVariantProp('neutral')
|
|
363
|
+
};
|
|
364
|
+
|
|
211
365
|
/***/ },
|
|
212
366
|
|
|
213
367
|
/***/ 1041
|
|
@@ -322,7 +476,8 @@ module.exports = x({ ["jsx"]: () => (__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime
|
|
|
322
476
|
/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
|
|
323
477
|
/******/ // [resolve, Promise] = chunk loading, 0 = chunk loaded
|
|
324
478
|
/******/ var installedChunks = {
|
|
325
|
-
/******/ 4549: 0
|
|
479
|
+
/******/ 4549: 0,
|
|
480
|
+
/******/ 8734: 0
|
|
326
481
|
/******/ };
|
|
327
482
|
/******/
|
|
328
483
|
/******/ var installChunk = (data) => {
|
|
@@ -366,20 +521,26 @@ module.exports = x({ ["jsx"]: () => (__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime
|
|
|
366
521
|
/******/ __nuri_require__.C(__webpack_chunk_1__);
|
|
367
522
|
/******/ import * as __webpack_chunk_2__ from "./chunk-7335.js";
|
|
368
523
|
/******/ __nuri_require__.C(__webpack_chunk_2__);
|
|
369
|
-
/******/ import * as __webpack_chunk_3__ from "./chunk-
|
|
524
|
+
/******/ import * as __webpack_chunk_3__ from "./chunk-7298.js";
|
|
370
525
|
/******/ __nuri_require__.C(__webpack_chunk_3__);
|
|
371
526
|
/******/ import * as __webpack_chunk_4__ from "./chunk-4558.js";
|
|
372
527
|
/******/ __nuri_require__.C(__webpack_chunk_4__);
|
|
373
|
-
/******/ import * as __webpack_chunk_5__ from "./chunk-
|
|
528
|
+
/******/ import * as __webpack_chunk_5__ from "./chunk-5302.js";
|
|
374
529
|
/******/ __nuri_require__.C(__webpack_chunk_5__);
|
|
530
|
+
/******/ import * as __webpack_chunk_6__ from "./chunk-7739.js";
|
|
531
|
+
/******/ __nuri_require__.C(__webpack_chunk_6__);
|
|
532
|
+
/******/ import * as __webpack_chunk_7__ from "./chunk-6302.js";
|
|
533
|
+
/******/ __nuri_require__.C(__webpack_chunk_7__);
|
|
375
534
|
/******/
|
|
376
535
|
/******/ // startup
|
|
377
536
|
/******/ // Load entry module and return exports
|
|
378
537
|
/******/ // This entry module depends on other loaded chunks and execution need to be delayed
|
|
379
|
-
/******/ var __webpack_exports__ = __nuri_require__.O(undefined, [3274,7335,
|
|
538
|
+
/******/ var __webpack_exports__ = __nuri_require__.O(undefined, [3274,7335,7298,4558,5302,7739,6302], () => (__nuri_require__(8510)))
|
|
380
539
|
/******/ __webpack_exports__ = __nuri_require__.O(__webpack_exports__);
|
|
381
540
|
/******/ const __webpack_exports__InlineLoading = __webpack_exports__.Ou;
|
|
541
|
+
/******/ const __webpack_exports__LoadingDots = __webpack_exports__.XC;
|
|
382
542
|
/******/ const __webpack_exports__OverlayLoading = __webpack_exports__.$V;
|
|
543
|
+
/******/ const __webpack_exports__ProgressBar = __webpack_exports__.z2;
|
|
383
544
|
/******/ const __webpack_exports__Spinner = __webpack_exports__.y$;
|
|
384
|
-
/******/ export { __webpack_exports__InlineLoading as InlineLoading, __webpack_exports__OverlayLoading as OverlayLoading, __webpack_exports__Spinner as Spinner };
|
|
545
|
+
/******/ export { __webpack_exports__InlineLoading as InlineLoading, __webpack_exports__LoadingDots as LoadingDots, __webpack_exports__OverlayLoading as OverlayLoading, __webpack_exports__ProgressBar as ProgressBar, __webpack_exports__Spinner as Spinner };
|
|
385
546
|
/******/
|
package/dist/media-thumbnail.js
CHANGED
|
@@ -66,6 +66,8 @@ var MediaThumbnail = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonj
|
|
|
66
66
|
removeLabel = _a.removeLabel,
|
|
67
67
|
className = _a.className,
|
|
68
68
|
style = _a.style,
|
|
69
|
+
_c = _a.pressEffect,
|
|
70
|
+
pressEffect = _c === void 0 ? true : _c,
|
|
69
71
|
track = _a.track,
|
|
70
72
|
trackProps = _a.trackProps;
|
|
71
73
|
var emit = (0,useTrack/* useTrack */.n)('MediaThumbnail', {
|
|
@@ -86,7 +88,7 @@ var MediaThumbnail = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonj
|
|
|
86
88
|
return next && emit('open');
|
|
87
89
|
},
|
|
88
90
|
trigger: (0,jsx_runtime_.jsxs)(base_button/* default */.A, {
|
|
89
|
-
className: 'media-thumbnail-open',
|
|
91
|
+
className: (0,classNames/* classNames */.x)('media-thumbnail-open', pressEffect && 'motion-press'),
|
|
90
92
|
"aria-label": alt !== null && alt !== void 0 ? alt : viewLabel,
|
|
91
93
|
"aria-busy": loading || undefined,
|
|
92
94
|
disabled: loading || invalid,
|
|
@@ -395,17 +397,19 @@ module.exports = x({ ["Fragment"]: () => (__WEBPACK_EXTERNAL_MODULE_react_jsx_ru
|
|
|
395
397
|
/******/ __nuri_require__.C(__webpack_chunk_6__);
|
|
396
398
|
/******/ import * as __webpack_chunk_7__ from "./chunk-3547.js";
|
|
397
399
|
/******/ __nuri_require__.C(__webpack_chunk_7__);
|
|
398
|
-
/******/ import * as __webpack_chunk_8__ from "./chunk-
|
|
400
|
+
/******/ import * as __webpack_chunk_8__ from "./chunk-8933.js";
|
|
399
401
|
/******/ __nuri_require__.C(__webpack_chunk_8__);
|
|
400
|
-
/******/ import * as __webpack_chunk_9__ from "./chunk-
|
|
402
|
+
/******/ import * as __webpack_chunk_9__ from "./chunk-8734.js";
|
|
401
403
|
/******/ __nuri_require__.C(__webpack_chunk_9__);
|
|
402
|
-
/******/ import * as __webpack_chunk_10__ from "./chunk-
|
|
404
|
+
/******/ import * as __webpack_chunk_10__ from "./chunk-6302.js";
|
|
403
405
|
/******/ __nuri_require__.C(__webpack_chunk_10__);
|
|
406
|
+
/******/ import * as __webpack_chunk_11__ from "./chunk-6459.js";
|
|
407
|
+
/******/ __nuri_require__.C(__webpack_chunk_11__);
|
|
404
408
|
/******/
|
|
405
409
|
/******/ // startup
|
|
406
410
|
/******/ // Load entry module and return exports
|
|
407
411
|
/******/ // This entry module depends on other loaded chunks and execution need to be delayed
|
|
408
|
-
/******/ var __webpack_exports__ = __nuri_require__.O(undefined, [3274,7335,4560,7298,2777,7653,3547,6302,
|
|
412
|
+
/******/ var __webpack_exports__ = __nuri_require__.O(undefined, [3274,7335,4560,7298,2777,7653,3547,8933,8734,6302,6459], () => (__nuri_require__(946)))
|
|
409
413
|
/******/ __webpack_exports__ = __nuri_require__.O(__webpack_exports__);
|
|
410
414
|
/******/ const __webpack_exports__default = __webpack_exports__.A;
|
|
411
415
|
/******/ export { __webpack_exports__default as default };
|
package/dist/message-composer.js
CHANGED
|
@@ -143,23 +143,25 @@ var MessageComposer = /*#__PURE__*/(0,external_root_React_commonjs2_react_common
|
|
|
143
143
|
disabled = _a.disabled,
|
|
144
144
|
autoFocus = _a.autoFocus,
|
|
145
145
|
maxLength = _a.maxLength,
|
|
146
|
+
_b = _a.pressEffect,
|
|
147
|
+
pressEffect = _b === void 0 ? true : _b,
|
|
146
148
|
track = _a.track,
|
|
147
149
|
trackProps = _a.trackProps,
|
|
148
|
-
restProps = message_composer_rest(_a, ["className", "value", "defaultValue", "onValueChange", "onSend", "canSend", "loading", "placeholder", "label", "sendLabel", "leading", "attachments", "disabled", "autoFocus", "maxLength", "track", "trackProps"]);
|
|
149
|
-
var
|
|
150
|
+
restProps = message_composer_rest(_a, ["className", "value", "defaultValue", "onValueChange", "onSend", "canSend", "loading", "placeholder", "label", "sendLabel", "leading", "attachments", "disabled", "autoFocus", "maxLength", "pressEffect", "track", "trackProps"]);
|
|
151
|
+
var _c = (0,useExternalState/* useExternalState */.C)({
|
|
150
152
|
prop: valueProp,
|
|
151
153
|
handler: onValueChange,
|
|
152
154
|
defaultProp: defaultValue !== null && defaultValue !== void 0 ? defaultValue : ''
|
|
153
155
|
}),
|
|
154
|
-
value =
|
|
155
|
-
setValue =
|
|
156
|
+
value = _c[0],
|
|
157
|
+
setValue = _c[1];
|
|
156
158
|
var emit = (0,useTrack/* useTrack */.n)('MessageComposer', {
|
|
157
159
|
track: track,
|
|
158
160
|
trackProps: trackProps
|
|
159
161
|
});
|
|
160
|
-
var
|
|
161
|
-
rejecting =
|
|
162
|
-
setRejecting =
|
|
162
|
+
var _d = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.useState)(false),
|
|
163
|
+
rejecting = _d[0],
|
|
164
|
+
setRejecting = _d[1];
|
|
163
165
|
var blocked = disabled || !(canSend !== null && canSend !== void 0 ? canSend : value.trim() !== '');
|
|
164
166
|
var handleSend = function handleSend() {
|
|
165
167
|
if (loading) return;
|
|
@@ -191,7 +193,7 @@ var MessageComposer = /*#__PURE__*/(0,external_root_React_commonjs2_react_common
|
|
|
191
193
|
return setValue(e.target.value);
|
|
192
194
|
}
|
|
193
195
|
}), (0,jsx_runtime_.jsx)(base_message_composer.Send, {
|
|
194
|
-
className: 'message-composer-send',
|
|
196
|
+
className: (0,classNames/* classNames */.x)('message-composer-send', pressEffect && !loading && 'motion-press'),
|
|
195
197
|
"aria-label": sendLabel,
|
|
196
198
|
"aria-disabled": blocked || undefined,
|
|
197
199
|
"aria-busy": loading || undefined,
|
|
@@ -384,15 +386,17 @@ module.exports = x({ ["jsx"]: () => (__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime
|
|
|
384
386
|
/******/ __nuri_require__.C(__webpack_chunk_5__);
|
|
385
387
|
/******/ import * as __webpack_chunk_6__ from "./chunk-3547.js";
|
|
386
388
|
/******/ __nuri_require__.C(__webpack_chunk_6__);
|
|
387
|
-
/******/ import * as __webpack_chunk_7__ from "./chunk-
|
|
389
|
+
/******/ import * as __webpack_chunk_7__ from "./chunk-9387.js";
|
|
388
390
|
/******/ __nuri_require__.C(__webpack_chunk_7__);
|
|
389
|
-
/******/ import * as __webpack_chunk_8__ from "./chunk-
|
|
391
|
+
/******/ import * as __webpack_chunk_8__ from "./chunk-8734.js";
|
|
390
392
|
/******/ __nuri_require__.C(__webpack_chunk_8__);
|
|
393
|
+
/******/ import * as __webpack_chunk_9__ from "./chunk-6302.js";
|
|
394
|
+
/******/ __nuri_require__.C(__webpack_chunk_9__);
|
|
391
395
|
/******/
|
|
392
396
|
/******/ // startup
|
|
393
397
|
/******/ // Load entry module and return exports
|
|
394
398
|
/******/ // This entry module depends on other loaded chunks and execution need to be delayed
|
|
395
|
-
/******/ var __webpack_exports__ = __nuri_require__.O(undefined, [3274,7335,4560,7298,7653,3547,6302
|
|
399
|
+
/******/ var __webpack_exports__ = __nuri_require__.O(undefined, [3274,7335,4560,7298,7653,3547,9387,8734,6302], () => (__nuri_require__(2045)))
|
|
396
400
|
/******/ __webpack_exports__ = __nuri_require__.O(__webpack_exports__);
|
|
397
401
|
/******/ const __webpack_exports__default = __webpack_exports__.A;
|
|
398
402
|
/******/ export { __webpack_exports__default as default };
|