@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/step-progress.js
CHANGED
|
@@ -16,10 +16,14 @@ __nuri_require__.d(__webpack_exports__, {
|
|
|
16
16
|
var jsx_runtime_ = __nuri_require__(612);
|
|
17
17
|
// EXTERNAL MODULE: external {"root":"React","commonjs2":"react","commonjs":"react","amd":"react","module":"react"}
|
|
18
18
|
var external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_ = __nuri_require__(1041);
|
|
19
|
+
// EXTERNAL MODULE: ./helpers/motion/stagger.ts
|
|
20
|
+
var motion_stagger = __nuri_require__(4577);
|
|
19
21
|
// EXTERNAL MODULE: ./helpers/utils/classNames.js
|
|
20
22
|
var classNames = __nuri_require__(3274);
|
|
21
23
|
// EXTERNAL MODULE: ./helpers/utils/getMergedProps.ts
|
|
22
24
|
var getMergedProps = __nuri_require__(7335);
|
|
25
|
+
// EXTERNAL MODULE: ./components/icon/icon.tsx
|
|
26
|
+
var icon = __nuri_require__(3547);
|
|
23
27
|
;// ./components/step-progress/base-step-progress.tsx
|
|
24
28
|
var __assign = undefined && undefined.__assign || function () {
|
|
25
29
|
__assign = Object.assign || function (t) {
|
|
@@ -58,16 +62,24 @@ var StepProgressStep = /*#__PURE__*/(0,external_root_React_commonjs2_react_commo
|
|
|
58
62
|
var children = props.children,
|
|
59
63
|
className = props.className,
|
|
60
64
|
state = props.state,
|
|
61
|
-
|
|
65
|
+
marker = props.marker,
|
|
66
|
+
restProps = __rest(props, ["children", "className", "state", "marker"]);
|
|
62
67
|
return (0,jsx_runtime_.jsxs)("li", __assign({
|
|
63
68
|
ref: ref,
|
|
64
69
|
className: (0,classNames/* classNames */.x)('nuri-theme base-step-progress step', className),
|
|
65
70
|
"data-state": state,
|
|
66
71
|
"aria-current": state === 'current' ? 'step' : undefined
|
|
67
72
|
}, restProps, {
|
|
68
|
-
children: [(0,jsx_runtime_.jsx)("span", {
|
|
73
|
+
children: [marker !== undefined && (0,jsx_runtime_.jsx)("span", {
|
|
74
|
+
className: 'step-progress-marker',
|
|
75
|
+
"aria-hidden": 'true',
|
|
76
|
+
children: marker
|
|
77
|
+
}), (0,jsx_runtime_.jsx)("span", {
|
|
69
78
|
className: 'step-progress-bar',
|
|
70
|
-
"aria-hidden": 'true'
|
|
79
|
+
"aria-hidden": 'true',
|
|
80
|
+
children: (0,jsx_runtime_.jsx)("span", {
|
|
81
|
+
className: 'step-progress-fill'
|
|
82
|
+
})
|
|
71
83
|
}), (0,jsx_runtime_.jsx)("span", {
|
|
72
84
|
className: 'step-progress-name',
|
|
73
85
|
children: children
|
|
@@ -79,10 +91,23 @@ var StepProgressRoot = Object.assign(StepProgressRootBase, {
|
|
|
79
91
|
Step: StepProgressStep
|
|
80
92
|
});
|
|
81
93
|
/* harmony default export */ const base_step_progress = (StepProgressRoot);
|
|
94
|
+
// EXTERNAL MODULE: ./helpers/props/common-props.ts
|
|
95
|
+
var common_props = __nuri_require__(7298);
|
|
82
96
|
;// ./components/step-progress/step-progress-props.ts
|
|
97
|
+
|
|
83
98
|
/** all: 단계 이름을 모두 보인다. current: 지금 단계 이름만(카드 안처럼 좁을 때) */
|
|
84
99
|
var labelVisibility = ['all', 'current'];
|
|
100
|
+
/** bar: 단계마다 막대(기본). icon: 단계마다 둥근 표시를 이음선으로 잇는다 */
|
|
101
|
+
var variants = ['bar', 'icon'];
|
|
102
|
+
/** 막대 두께는 ProgressBar 와 같은 이름·값(--progress-thickness-*)이다 */
|
|
103
|
+
var sizes = ['s', 'm', 'l'];
|
|
85
104
|
var stepProgressProps = {
|
|
105
|
+
size: (0,common_props/* sizeProp */.lw)(sizes, 'm'),
|
|
106
|
+
variant: {
|
|
107
|
+
type: 'className',
|
|
108
|
+
className: 'variant',
|
|
109
|
+
values: variants
|
|
110
|
+
},
|
|
86
111
|
labelVisibility: {
|
|
87
112
|
type: 'className',
|
|
88
113
|
className: 'label-visibility',
|
|
@@ -91,6 +116,7 @@ var stepProgressProps = {
|
|
|
91
116
|
}
|
|
92
117
|
};
|
|
93
118
|
;// ./components/step-progress/step-progress.tsx
|
|
119
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
94
120
|
var step_progress_assign = undefined && undefined.__assign || function () {
|
|
95
121
|
step_progress_assign = Object.assign || function (t) {
|
|
96
122
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -101,6 +127,16 @@ var step_progress_assign = undefined && undefined.__assign || function () {
|
|
|
101
127
|
};
|
|
102
128
|
return step_progress_assign.apply(this, arguments);
|
|
103
129
|
};
|
|
130
|
+
var step_progress_rest = undefined && undefined.__rest || function (s, e) {
|
|
131
|
+
var t = {};
|
|
132
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
133
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
134
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
135
|
+
}
|
|
136
|
+
return t;
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
|
|
104
140
|
|
|
105
141
|
|
|
106
142
|
|
|
@@ -112,29 +148,94 @@ var stateOf = function stateOf(index, current) {
|
|
|
112
148
|
if (index === current) return 'current';
|
|
113
149
|
return 'todo';
|
|
114
150
|
};
|
|
151
|
+
// bar 는 닿은 단계(지금 포함)를 채우고, icon 의 이음선은 지나간 단계에서 다음 단계까지만 채운다
|
|
152
|
+
var FILL = {
|
|
153
|
+
bar: {
|
|
154
|
+
done: 1,
|
|
155
|
+
current: 1,
|
|
156
|
+
todo: 0
|
|
157
|
+
},
|
|
158
|
+
icon: {
|
|
159
|
+
done: 1,
|
|
160
|
+
current: 0,
|
|
161
|
+
todo: 0
|
|
162
|
+
}
|
|
163
|
+
};
|
|
164
|
+
var isStepItem = function isStepItem(step) {
|
|
165
|
+
return _typeof(step) === 'object' && step !== null && ! /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.isValidElement)(step) && 'label' in step;
|
|
166
|
+
};
|
|
167
|
+
var toStepItem = function toStepItem(step) {
|
|
168
|
+
return isStepItem(step) ? step : {
|
|
169
|
+
label: step
|
|
170
|
+
};
|
|
171
|
+
};
|
|
115
172
|
var StepProgress = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.forwardRef)(function (props, ref) {
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
173
|
+
// 단계마다 칠하는 방식이 variant 를 따르므로 클래스로 바꾸기 전에 값을 꺼내 둔다
|
|
174
|
+
var _a = props.variant,
|
|
175
|
+
variant = _a === void 0 ? 'bar' : _a,
|
|
176
|
+
rest = step_progress_rest(props, ["variant"]);
|
|
177
|
+
var _b = (0,getMergedProps/* getMergedProps */.p)(step_progress_assign(step_progress_assign({}, rest), {
|
|
178
|
+
variant: variant
|
|
179
|
+
}), stepProgressProps),
|
|
180
|
+
className = _b.className,
|
|
181
|
+
style = _b.style,
|
|
182
|
+
steps = _b.steps,
|
|
183
|
+
current = _b.current,
|
|
184
|
+
label = _b.label,
|
|
185
|
+
_c = _b.animated,
|
|
186
|
+
animated = _c === void 0 ? true : _c,
|
|
187
|
+
_d = _b.stagger,
|
|
188
|
+
stagger = _d === void 0 ? false : _d,
|
|
189
|
+
delay = _b.delay,
|
|
190
|
+
_e = _b.checkForFinish,
|
|
191
|
+
checkForFinish = _e === void 0 ? true : _e;
|
|
192
|
+
var items = steps.map(toStepItem);
|
|
193
|
+
// 첫 렌더에 있던 단계만 차례로 나타난다. 나중에 늘어난 단계는 바로 보인다
|
|
194
|
+
var revealCount = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.useState)(function () {
|
|
195
|
+
return animated && stagger !== false ? items.length : 0;
|
|
196
|
+
})[0];
|
|
197
|
+
// 막대 전환은 마운트 뒤에 켠다. 서버에서 그린 뒤 스타일시트가 늦게 붙으면 그 순간 전환이 돌아 막대가 움직인다
|
|
198
|
+
var _f = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.useState)(false),
|
|
199
|
+
mounted = _f[0],
|
|
200
|
+
setMounted = _f[1];
|
|
201
|
+
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.useEffect)(function () {
|
|
202
|
+
return setMounted(true);
|
|
203
|
+
}, []);
|
|
122
204
|
// 칸 수는 단계 수를 따른다
|
|
123
205
|
var layoutStyle = step_progress_assign(step_progress_assign({}, style), {
|
|
124
|
-
'--step-count':
|
|
206
|
+
'--step-count': items.length
|
|
125
207
|
});
|
|
208
|
+
var gap = typeof stagger === 'number' ? stagger : undefined;
|
|
209
|
+
var markerOf = function markerOf(item, index, state) {
|
|
210
|
+
var _a;
|
|
211
|
+
if (variant !== 'icon') return undefined;
|
|
212
|
+
if (state === 'done' && checkForFinish) return (0,jsx_runtime_.jsx)(icon/* default */.A, {
|
|
213
|
+
name: 'check'
|
|
214
|
+
});
|
|
215
|
+
return (_a = item.icon) !== null && _a !== void 0 ? _a : index + 1;
|
|
216
|
+
};
|
|
126
217
|
return (0,jsx_runtime_.jsx)(base_step_progress, {
|
|
127
218
|
ref: ref,
|
|
128
219
|
className: (0,classNames/* classNames */.x)(className, 'step-progress'),
|
|
129
220
|
style: layoutStyle,
|
|
130
221
|
"aria-label": label,
|
|
131
|
-
|
|
222
|
+
"data-animated": animated && mounted || undefined,
|
|
223
|
+
children: items.map(function (item, index) {
|
|
224
|
+
var state = stateOf(index, current);
|
|
225
|
+
var reveal = index < revealCount;
|
|
226
|
+
var stepStyle = step_progress_assign(step_progress_assign({}, reveal && (0,motion_stagger/* staggerStyle */.L)(index, gap, delay)), {
|
|
227
|
+
'--step-fill': FILL[variant][state]
|
|
228
|
+
});
|
|
132
229
|
return (
|
|
133
230
|
// 단계는 순서 자체가 정체성이라 순번을 key 로 쓴다
|
|
134
231
|
(0,jsx_runtime_.jsx)(base_step_progress.Step, {
|
|
135
|
-
className: 'step-progress-step',
|
|
136
|
-
|
|
137
|
-
|
|
232
|
+
className: (0,classNames/* classNames */.x)('step-progress-step', {
|
|
233
|
+
'motion-reveal': reveal
|
|
234
|
+
}),
|
|
235
|
+
style: stepStyle,
|
|
236
|
+
state: state,
|
|
237
|
+
marker: markerOf(item, index, state),
|
|
238
|
+
children: item.label
|
|
138
239
|
}, index)
|
|
139
240
|
);
|
|
140
241
|
})
|
|
@@ -152,7 +253,7 @@ var x = (y) => {
|
|
|
152
253
|
var x = {}; __nuri_require__.d(x, y); return x
|
|
153
254
|
}
|
|
154
255
|
var y = (x) => (() => (x))
|
|
155
|
-
module.exports = x({ ["forwardRef"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.forwardRef) });
|
|
256
|
+
module.exports = x({ ["forwardRef"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.forwardRef), ["isValidElement"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.isValidElement), ["useEffect"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.useEffect), ["useState"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.useState) });
|
|
156
257
|
|
|
157
258
|
/***/ },
|
|
158
259
|
|
|
@@ -301,11 +402,19 @@ module.exports = x({ ["jsx"]: () => (__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime
|
|
|
301
402
|
/******/ __nuri_require__.C(__webpack_chunk_1__);
|
|
302
403
|
/******/ import * as __webpack_chunk_2__ from "./chunk-7335.js";
|
|
303
404
|
/******/ __nuri_require__.C(__webpack_chunk_2__);
|
|
405
|
+
/******/ import * as __webpack_chunk_3__ from "./chunk-7298.js";
|
|
406
|
+
/******/ __nuri_require__.C(__webpack_chunk_3__);
|
|
407
|
+
/******/ import * as __webpack_chunk_4__ from "./chunk-7653.js";
|
|
408
|
+
/******/ __nuri_require__.C(__webpack_chunk_4__);
|
|
409
|
+
/******/ import * as __webpack_chunk_5__ from "./chunk-3547.js";
|
|
410
|
+
/******/ __nuri_require__.C(__webpack_chunk_5__);
|
|
411
|
+
/******/ import * as __webpack_chunk_6__ from "./chunk-4577.js";
|
|
412
|
+
/******/ __nuri_require__.C(__webpack_chunk_6__);
|
|
304
413
|
/******/
|
|
305
414
|
/******/ // startup
|
|
306
415
|
/******/ // Load entry module and return exports
|
|
307
416
|
/******/ // This entry module depends on other loaded chunks and execution need to be delayed
|
|
308
|
-
/******/ var __webpack_exports__ = __nuri_require__.O(undefined, [3274,7335], () => (__nuri_require__(7131)))
|
|
417
|
+
/******/ var __webpack_exports__ = __nuri_require__.O(undefined, [3274,7335,7298,7653,3547,4577], () => (__nuri_require__(7131)))
|
|
309
418
|
/******/ __webpack_exports__ = __nuri_require__.O(__webpack_exports__);
|
|
310
419
|
/******/ const __webpack_exports__default = __webpack_exports__.A;
|
|
311
420
|
/******/ export { __webpack_exports__default as default };
|