@rockshin/tao-ui 0.0.55 → 0.0.57
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/component-manifest.json +1 -1
- package/dist/components/form/use-form.d.ts +1 -1
- package/dist/components/form/use-form.js +20 -0
- package/dist/components/modal/modal.js +112 -35
- package/dist/components/select/select-tags.js +2 -1
- package/dist/components/select/select.css +3 -3
- package/dist/components/steps/steps.css +8 -0
- package/dist/components/steps/steps.d.ts +5 -1
- package/dist/components/steps/steps.js +125 -115
- package/package.json +1 -1
package/component-manifest.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type FormInstance as RcFormInstance
|
|
1
|
+
import { type NamePath, type FormInstance as RcFormInstance } from '@rc-component/form';
|
|
2
2
|
import { type Options } from 'scroll-into-view-if-needed';
|
|
3
3
|
export type FormScrollOptions = Options & {
|
|
4
4
|
focus?: boolean;
|
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
import { c } from "react-compiler-runtime";
|
|
2
2
|
import { useForm } from "@rc-component/form";
|
|
3
|
+
import { isEqual } from "@rc-component/util";
|
|
3
4
|
import { getDOM } from "@rc-component/util/es/Dom/findDOMNode";
|
|
4
5
|
import scroll_into_view_if_needed from "scroll-into-view-if-needed";
|
|
5
6
|
const use_form_scroll = scroll_into_view_if_needed;
|
|
7
|
+
const VALIDATION_STATE_KEYS = [
|
|
8
|
+
'errors',
|
|
9
|
+
'warnings',
|
|
10
|
+
'touched',
|
|
11
|
+
'validating'
|
|
12
|
+
];
|
|
6
13
|
const fieldRegistries = new WeakMap();
|
|
7
14
|
function getFieldRegistry(form) {
|
|
8
15
|
return fieldRegistries.get(form);
|
|
@@ -26,6 +33,13 @@ function use_form_useForm(form) {
|
|
|
26
33
|
const fields = new Map();
|
|
27
34
|
instance = {
|
|
28
35
|
...rcForm,
|
|
36
|
+
setFields (nextFields) {
|
|
37
|
+
const stale = nextFields.filter((field)=>"value" in field && VALIDATION_STATE_KEYS.every((key)=>!(key in field)) && !isEqual(field.value, rcForm.getFieldValue(field.name)));
|
|
38
|
+
rcForm.setFields(stale.length ? [
|
|
39
|
+
...stale.map(_temp),
|
|
40
|
+
...nextFields
|
|
41
|
+
] : nextFields);
|
|
42
|
+
},
|
|
29
43
|
scrollToField (name, t1) {
|
|
30
44
|
const options = void 0 === t1 ? {} : t1;
|
|
31
45
|
const targets = fields.get(fieldKey(name));
|
|
@@ -67,4 +81,10 @@ function use_form_useForm(form) {
|
|
|
67
81
|
} else t1 = $[3];
|
|
68
82
|
return t1;
|
|
69
83
|
}
|
|
84
|
+
function _temp(field_0) {
|
|
85
|
+
return {
|
|
86
|
+
name: field_0.name,
|
|
87
|
+
errors: []
|
|
88
|
+
};
|
|
89
|
+
}
|
|
70
90
|
export { fieldKey, getFieldRegistry, use_form_useForm as useForm };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { c } from "react-compiler-runtime";
|
|
3
3
|
import { FocusScope, FocusScopeBranchProvider, useFocusScopeBranchRegistry } from "@radix-ui/react-focus-scope";
|
|
4
|
-
import { createContext, useContext, useEffect, useRef } from "react";
|
|
4
|
+
import { createContext, forwardRef, memo, useContext, useEffect, useImperativeHandle, useLayoutEffect, useRef, useState } from "react";
|
|
5
5
|
import { RemoveScroll } from "react-remove-scroll";
|
|
6
6
|
import { TaoPortalScope, TaoProvider, useTaoConfig } from "../../provider/tao-provider.js";
|
|
7
7
|
import { resolveResponsiveValue, useBreakpoint } from "../../utils/breakpoint.js";
|
|
@@ -631,52 +631,129 @@ function _temp(event_3) {
|
|
|
631
631
|
return event_3.preventDefault();
|
|
632
632
|
}
|
|
633
633
|
function ModalInteractionScope(t0) {
|
|
634
|
-
const $ = c(
|
|
634
|
+
const $ = c(19);
|
|
635
635
|
const { open, scrollLock, trapFocus, branches, onOpenAutoFocus, onCloseAutoFocus, children } = t0;
|
|
636
|
-
const
|
|
637
|
-
|
|
638
|
-
let t3;
|
|
636
|
+
const [node, setNode] = useState(null);
|
|
637
|
+
let t1;
|
|
639
638
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
640
|
-
|
|
639
|
+
t1 = {};
|
|
640
|
+
$[0] = t1;
|
|
641
|
+
} else t1 = $[0];
|
|
642
|
+
const [scopeProps, setScopeProps] = useState(t1);
|
|
643
|
+
const t2 = open && scrollLock;
|
|
644
|
+
const t3 = open ? scopeProps : void 0;
|
|
645
|
+
let t4;
|
|
646
|
+
if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
|
|
647
|
+
t4 = {
|
|
641
648
|
display: "contents"
|
|
642
649
|
};
|
|
643
|
-
$[
|
|
644
|
-
} else
|
|
645
|
-
let
|
|
646
|
-
if ($[
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
branches: branches,
|
|
651
|
-
onMountAutoFocus: onOpenAutoFocus,
|
|
652
|
-
onUnmountAutoFocus: onCloseAutoFocus,
|
|
653
|
-
style: t3,
|
|
650
|
+
$[1] = t4;
|
|
651
|
+
} else t4 = $[1];
|
|
652
|
+
let t5;
|
|
653
|
+
if ($[2] !== children || $[3] !== t3) {
|
|
654
|
+
t5 = /*#__PURE__*/ jsx("div", {
|
|
655
|
+
...t3,
|
|
656
|
+
style: t4,
|
|
654
657
|
children: children
|
|
655
658
|
});
|
|
656
|
-
$[1] = branches;
|
|
657
659
|
$[2] = children;
|
|
658
|
-
$[3] =
|
|
659
|
-
$[4] =
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
t5 = /*#__PURE__*/ jsx(RemoveScroll, {
|
|
667
|
-
enabled: t1,
|
|
660
|
+
$[3] = t3;
|
|
661
|
+
$[4] = t5;
|
|
662
|
+
} else t5 = $[4];
|
|
663
|
+
let t6;
|
|
664
|
+
if ($[5] !== branches || $[6] !== t2 || $[7] !== t5) {
|
|
665
|
+
t6 = /*#__PURE__*/ jsx(RemoveScroll, {
|
|
666
|
+
ref: setNode,
|
|
667
|
+
enabled: t2,
|
|
668
668
|
allowPinchZoom: true,
|
|
669
669
|
shards: branches,
|
|
670
670
|
forwardProps: true,
|
|
671
|
-
children:
|
|
671
|
+
children: t5
|
|
672
|
+
});
|
|
673
|
+
$[5] = branches;
|
|
674
|
+
$[6] = t2;
|
|
675
|
+
$[7] = t5;
|
|
676
|
+
$[8] = t6;
|
|
677
|
+
} else t6 = $[8];
|
|
678
|
+
let t7;
|
|
679
|
+
if ($[9] !== branches || $[10] !== node || $[11] !== onCloseAutoFocus || $[12] !== onOpenAutoFocus || $[13] !== open || $[14] !== trapFocus) {
|
|
680
|
+
t7 = open && node && /*#__PURE__*/ jsx(FocusScope, {
|
|
681
|
+
asChild: true,
|
|
682
|
+
loop: trapFocus,
|
|
683
|
+
trapped: trapFocus,
|
|
684
|
+
branches: branches,
|
|
685
|
+
onMountAutoFocus: onOpenAutoFocus,
|
|
686
|
+
onUnmountAutoFocus: onCloseAutoFocus,
|
|
687
|
+
children: /*#__PURE__*/ jsx(modal_ModalScopeHost, {
|
|
688
|
+
node: node,
|
|
689
|
+
onPropsChange: setScopeProps
|
|
690
|
+
})
|
|
672
691
|
});
|
|
673
|
-
$[
|
|
674
|
-
$[
|
|
675
|
-
$[
|
|
676
|
-
$[
|
|
677
|
-
|
|
678
|
-
|
|
692
|
+
$[9] = branches;
|
|
693
|
+
$[10] = node;
|
|
694
|
+
$[11] = onCloseAutoFocus;
|
|
695
|
+
$[12] = onOpenAutoFocus;
|
|
696
|
+
$[13] = open;
|
|
697
|
+
$[14] = trapFocus;
|
|
698
|
+
$[15] = t7;
|
|
699
|
+
} else t7 = $[15];
|
|
700
|
+
let t8;
|
|
701
|
+
if ($[16] !== t6 || $[17] !== t7) {
|
|
702
|
+
t8 = /*#__PURE__*/ jsxs(Fragment, {
|
|
703
|
+
children: [
|
|
704
|
+
t6,
|
|
705
|
+
t7
|
|
706
|
+
]
|
|
707
|
+
});
|
|
708
|
+
$[16] = t6;
|
|
709
|
+
$[17] = t7;
|
|
710
|
+
$[18] = t8;
|
|
711
|
+
} else t8 = $[18];
|
|
712
|
+
return t8;
|
|
679
713
|
}
|
|
714
|
+
const modal_ModalScopeHost = /*#__PURE__*/ memo(/*#__PURE__*/ forwardRef(function(t0, ref) {
|
|
715
|
+
const $ = c(10);
|
|
716
|
+
let node;
|
|
717
|
+
let onPropsChange;
|
|
718
|
+
let props;
|
|
719
|
+
if ($[0] !== t0) {
|
|
720
|
+
({ node, onPropsChange, ...props } = t0);
|
|
721
|
+
$[0] = t0;
|
|
722
|
+
$[1] = node;
|
|
723
|
+
$[2] = onPropsChange;
|
|
724
|
+
$[3] = props;
|
|
725
|
+
} else {
|
|
726
|
+
node = $[1];
|
|
727
|
+
onPropsChange = $[2];
|
|
728
|
+
props = $[3];
|
|
729
|
+
}
|
|
730
|
+
let t1;
|
|
731
|
+
let t2;
|
|
732
|
+
if ($[4] !== node) {
|
|
733
|
+
t1 = ()=>node;
|
|
734
|
+
t2 = [
|
|
735
|
+
node
|
|
736
|
+
];
|
|
737
|
+
$[4] = node;
|
|
738
|
+
$[5] = t1;
|
|
739
|
+
$[6] = t2;
|
|
740
|
+
} else {
|
|
741
|
+
t1 = $[5];
|
|
742
|
+
t2 = $[6];
|
|
743
|
+
}
|
|
744
|
+
useImperativeHandle(ref, t1, t2);
|
|
745
|
+
let t3;
|
|
746
|
+
if ($[7] !== onPropsChange || $[8] !== props) {
|
|
747
|
+
t3 = ()=>{
|
|
748
|
+
onPropsChange(props);
|
|
749
|
+
};
|
|
750
|
+
$[7] = onPropsChange;
|
|
751
|
+
$[8] = props;
|
|
752
|
+
$[9] = t3;
|
|
753
|
+
} else t3 = $[9];
|
|
754
|
+
useLayoutEffect(t3);
|
|
755
|
+
return null;
|
|
756
|
+
}));
|
|
680
757
|
function CloseIcon() {
|
|
681
758
|
const $ = c(1);
|
|
682
759
|
let t0;
|
|
@@ -60,7 +60,8 @@ function SelectTags(t0) {
|
|
|
60
60
|
let t3;
|
|
61
61
|
if ($[6] !== maxTagTextLength) {
|
|
62
62
|
t3 = (option)=>{
|
|
63
|
-
|
|
63
|
+
if ("string" != typeof option.label && "number" != typeof option.label) return option.label;
|
|
64
|
+
const text = String(option.label);
|
|
64
65
|
return null != maxTagTextLength && text.length > maxTagTextLength ? `${text.slice(0, maxTagTextLength)}…` : option.label;
|
|
65
66
|
};
|
|
66
67
|
$[6] = maxTagTextLength;
|
|
@@ -342,6 +342,7 @@ legend[data-tao-select-group-label] {
|
|
|
342
342
|
padding-inline: var(--tao-padding-sm);
|
|
343
343
|
font-size: var(--tao-select-font-size);
|
|
344
344
|
font-family: var(--tao-font-family);
|
|
345
|
+
line-height: var(--tao-line-height);
|
|
345
346
|
color: var(--tao-color-text);
|
|
346
347
|
text-align: start;
|
|
347
348
|
border-radius: var(--tao-radius-sm);
|
|
@@ -354,7 +355,6 @@ legend[data-tao-select-group-label] {
|
|
|
354
355
|
border: 0;
|
|
355
356
|
outline: none;
|
|
356
357
|
align-items: center;
|
|
357
|
-
line-height: 1;
|
|
358
358
|
display: flex;
|
|
359
359
|
}
|
|
360
360
|
|
|
@@ -397,11 +397,11 @@ legend[data-tao-select-group-label] {
|
|
|
397
397
|
}
|
|
398
398
|
|
|
399
399
|
[data-tao-select-item-main] {
|
|
400
|
+
min-width: 0;
|
|
401
|
+
line-height: inherit;
|
|
400
402
|
flex-direction: column;
|
|
401
403
|
flex: 1;
|
|
402
404
|
justify-content: center;
|
|
403
|
-
min-width: 0;
|
|
404
|
-
line-height: 1;
|
|
405
405
|
display: flex;
|
|
406
406
|
}
|
|
407
407
|
|
|
@@ -369,6 +369,14 @@
|
|
|
369
369
|
color: var(--tao-steps-icon-text-active);
|
|
370
370
|
}
|
|
371
371
|
|
|
372
|
+
[data-tao-steps][data-tao-finish-icon-background]:is([data-tao-type="default"], [data-tao-type="navigation"], [data-tao-type="panel"]) [data-tao-step][data-tao-status="finish"]:not([data-tao-custom]) [data-tao-step-icon] {
|
|
373
|
+
background: var(--tao-steps-finish-icon-background);
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
[data-tao-steps][data-tao-finish-icon-color]:is([data-tao-type="default"], [data-tao-type="navigation"], [data-tao-type="panel"]) [data-tao-step][data-tao-status="finish"]:not([data-tao-custom]) [data-tao-step-icon] {
|
|
377
|
+
color: var(--tao-steps-finish-icon-color);
|
|
378
|
+
}
|
|
379
|
+
|
|
372
380
|
[data-tao-steps][data-tao-type="dot"] [data-tao-step]:not([data-tao-custom]) [data-tao-step-icon], [data-tao-steps][data-tao-type="inline"] [data-tao-step]:not([data-tao-custom]) [data-tao-step-icon] {
|
|
373
381
|
background: var(--tao-steps-dot-bg);
|
|
374
382
|
border-color: var(--tao-steps-dot-border);
|
|
@@ -82,6 +82,10 @@ export interface StepsProps {
|
|
|
82
82
|
ellipsis?: boolean;
|
|
83
83
|
/** Replace the icon node of every step. */
|
|
84
84
|
iconRender?: StepsIconRender;
|
|
85
|
+
/** Background of the built-in finished-step circle. */
|
|
86
|
+
finishIconBackground?: CSSProperties['backgroundColor'];
|
|
87
|
+
/** Color of the built-in finished-step check mark. */
|
|
88
|
+
finishIconColor?: CSSProperties['color'];
|
|
85
89
|
/** Fires with the absolute step index when a non-current step is activated. */
|
|
86
90
|
onChange?: (current: number) => void;
|
|
87
91
|
className?: string;
|
|
@@ -89,4 +93,4 @@ export interface StepsProps {
|
|
|
89
93
|
classNames?: SemanticClassNames<StepsSemanticPart>;
|
|
90
94
|
styles?: SemanticStyles<StepsSemanticPart>;
|
|
91
95
|
}
|
|
92
|
-
export declare function Steps({ items, current, initial, status, orientation, titlePlacement, responsive, size, variant, type, percent, maxCount, offset, ellipsis, iconRender, onChange, className, style, classNames, styles, }: StepsProps): import("react").JSX.Element;
|
|
96
|
+
export declare function Steps({ items, current, initial, status, orientation, titlePlacement, responsive, size, variant, type, percent, maxCount, offset, ellipsis, iconRender, finishIconBackground, finishIconColor, onChange, className, style, classNames, styles, }: StepsProps): import("react").JSX.Element;
|
|
@@ -117,8 +117,8 @@ function resolveStatuses(displaySteps, displayCurrent, currentStatus) {
|
|
|
117
117
|
});
|
|
118
118
|
}
|
|
119
119
|
function Steps(t0) {
|
|
120
|
-
const $ = c(
|
|
121
|
-
const { items, current: t1, initial: t2, status: t3, orientation, titlePlacement, responsive: t4, size, variant: t5, type, percent, maxCount, offset: t6, ellipsis: t7, iconRender, onChange, className, style, classNames, styles } = t0;
|
|
120
|
+
const $ = c(100);
|
|
121
|
+
const { items, current: t1, initial: t2, status: t3, orientation, titlePlacement, responsive: t4, size, variant: t5, type, percent, maxCount, offset: t6, ellipsis: t7, iconRender, finishIconBackground, finishIconColor, onChange, className, style, classNames, styles } = t0;
|
|
122
122
|
const current = void 0 === t1 ? 0 : t1;
|
|
123
123
|
const initial = void 0 === t2 ? 0 : t2;
|
|
124
124
|
const status = void 0 === t3 ? "process" : t3;
|
|
@@ -188,34 +188,40 @@ function Steps(t0) {
|
|
|
188
188
|
const t13 = String(isInline ? offset : 0);
|
|
189
189
|
const t14 = styles?.root;
|
|
190
190
|
let t15;
|
|
191
|
-
if ($[16] !==
|
|
191
|
+
if ($[16] !== finishIconBackground || $[17] !== finishIconColor || $[18] !== style || $[19] !== t13 || $[20] !== t14) {
|
|
192
192
|
t15 = {
|
|
193
193
|
"--tao-steps-items-offset": t13,
|
|
194
|
+
"--tao-steps-finish-icon-background": finishIconBackground,
|
|
195
|
+
"--tao-steps-finish-icon-color": finishIconColor,
|
|
194
196
|
...t14,
|
|
195
197
|
...style
|
|
196
198
|
};
|
|
197
|
-
$[16] =
|
|
198
|
-
$[17] =
|
|
199
|
-
$[18] =
|
|
200
|
-
$[19] =
|
|
201
|
-
|
|
199
|
+
$[16] = finishIconBackground;
|
|
200
|
+
$[17] = finishIconColor;
|
|
201
|
+
$[18] = style;
|
|
202
|
+
$[19] = t13;
|
|
203
|
+
$[20] = t14;
|
|
204
|
+
$[21] = t15;
|
|
205
|
+
} else t15 = $[21];
|
|
202
206
|
const rootStyle = t15;
|
|
203
|
-
const t16 =
|
|
204
|
-
const t17 =
|
|
205
|
-
const t18 =
|
|
206
|
-
const t19 =
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
$[22] =
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
207
|
+
const t16 = void 0 !== finishIconBackground || void 0;
|
|
208
|
+
const t17 = void 0 !== finishIconColor || void 0;
|
|
209
|
+
const t18 = ellipsis || void 0;
|
|
210
|
+
const t19 = canApplyMaxCount || void 0;
|
|
211
|
+
const t20 = void 0 !== mergedPercent || void 0;
|
|
212
|
+
const t21 = classNames?.root;
|
|
213
|
+
let t22;
|
|
214
|
+
if ($[22] !== className || $[23] !== t21) {
|
|
215
|
+
t22 = cx(t21, className);
|
|
216
|
+
$[22] = className;
|
|
217
|
+
$[23] = t21;
|
|
218
|
+
$[24] = t22;
|
|
219
|
+
} else t22 = $[24];
|
|
220
|
+
let t23;
|
|
221
|
+
if ($[25] !== classNames?.item || $[26] !== classNames?.itemContent || $[27] !== classNames?.itemHeader || $[28] !== classNames?.itemRail || $[29] !== classNames?.itemSection || $[30] !== classNames?.itemSubtitle || $[31] !== classNames?.itemTitle || $[32] !== classNames?.itemWrapper || $[33] !== contextDisabled || $[34] !== displayCurrent || $[35] !== displaySteps || $[36] !== handleStepClick || $[37] !== iconRender || $[38] !== initial || $[39] !== isDot || $[40] !== isInline || $[41] !== isPanel || $[42] !== mergedPercent || $[43] !== onChange || $[44] !== statuses || $[45] !== styles?.item || $[46] !== styles?.itemContent || $[47] !== styles?.itemHeader || $[48] !== styles?.itemRail || $[49] !== styles?.itemSection || $[50] !== styles?.itemSubtitle || $[51] !== styles?.itemTitle || $[52] !== styles?.itemWrapper) {
|
|
222
|
+
let t24;
|
|
223
|
+
if ($[54] !== classNames?.item || $[55] !== classNames?.itemContent || $[56] !== classNames?.itemHeader || $[57] !== classNames?.itemRail || $[58] !== classNames?.itemSection || $[59] !== classNames?.itemSubtitle || $[60] !== classNames?.itemTitle || $[61] !== classNames?.itemWrapper || $[62] !== contextDisabled || $[63] !== displayCurrent || $[64] !== displaySteps.length || $[65] !== handleStepClick || $[66] !== iconRender || $[67] !== initial || $[68] !== isDot || $[69] !== isInline || $[70] !== isPanel || $[71] !== mergedPercent || $[72] !== onChange || $[73] !== statuses || $[74] !== styles?.item || $[75] !== styles?.itemContent || $[76] !== styles?.itemHeader || $[77] !== styles?.itemRail || $[78] !== styles?.itemSection || $[79] !== styles?.itemSubtitle || $[80] !== styles?.itemTitle || $[81] !== styles?.itemWrapper) {
|
|
224
|
+
t24 = (displayStep, displayIndex_0)=>{
|
|
219
225
|
const { item, originIndex, ellipsis: isEllipsisStep } = displayStep;
|
|
220
226
|
const stepStatus = statuses[displayIndex_0];
|
|
221
227
|
const nextStatus = statuses[displayIndex_0 + 1];
|
|
@@ -369,107 +375,111 @@ function Steps(t0) {
|
|
|
369
375
|
}, itemKey);
|
|
370
376
|
return stepNode;
|
|
371
377
|
};
|
|
372
|
-
$[
|
|
373
|
-
$[
|
|
374
|
-
$[
|
|
375
|
-
$[
|
|
376
|
-
$[
|
|
377
|
-
$[
|
|
378
|
-
$[
|
|
379
|
-
$[
|
|
380
|
-
$[
|
|
381
|
-
$[
|
|
382
|
-
$[
|
|
383
|
-
$[
|
|
384
|
-
$[
|
|
385
|
-
$[
|
|
386
|
-
$[
|
|
387
|
-
$[
|
|
388
|
-
$[
|
|
389
|
-
$[
|
|
390
|
-
$[
|
|
391
|
-
$[
|
|
392
|
-
$[
|
|
393
|
-
$[
|
|
394
|
-
$[
|
|
395
|
-
$[
|
|
396
|
-
$[
|
|
397
|
-
$[
|
|
398
|
-
$[
|
|
399
|
-
$[
|
|
400
|
-
$[
|
|
401
|
-
} else
|
|
402
|
-
|
|
403
|
-
$[
|
|
404
|
-
$[
|
|
405
|
-
$[
|
|
406
|
-
$[
|
|
407
|
-
$[
|
|
408
|
-
$[
|
|
409
|
-
$[
|
|
410
|
-
$[
|
|
411
|
-
$[
|
|
412
|
-
$[
|
|
413
|
-
$[
|
|
414
|
-
$[
|
|
415
|
-
$[
|
|
416
|
-
$[
|
|
417
|
-
$[
|
|
418
|
-
$[
|
|
419
|
-
$[
|
|
420
|
-
$[
|
|
421
|
-
$[
|
|
422
|
-
$[
|
|
423
|
-
$[
|
|
424
|
-
$[
|
|
425
|
-
$[
|
|
426
|
-
$[
|
|
427
|
-
$[
|
|
428
|
-
$[
|
|
429
|
-
$[
|
|
430
|
-
$[
|
|
431
|
-
$[
|
|
432
|
-
} else
|
|
433
|
-
let
|
|
434
|
-
if ($[
|
|
435
|
-
|
|
378
|
+
$[54] = classNames?.item;
|
|
379
|
+
$[55] = classNames?.itemContent;
|
|
380
|
+
$[56] = classNames?.itemHeader;
|
|
381
|
+
$[57] = classNames?.itemRail;
|
|
382
|
+
$[58] = classNames?.itemSection;
|
|
383
|
+
$[59] = classNames?.itemSubtitle;
|
|
384
|
+
$[60] = classNames?.itemTitle;
|
|
385
|
+
$[61] = classNames?.itemWrapper;
|
|
386
|
+
$[62] = contextDisabled;
|
|
387
|
+
$[63] = displayCurrent;
|
|
388
|
+
$[64] = displaySteps.length;
|
|
389
|
+
$[65] = handleStepClick;
|
|
390
|
+
$[66] = iconRender;
|
|
391
|
+
$[67] = initial;
|
|
392
|
+
$[68] = isDot;
|
|
393
|
+
$[69] = isInline;
|
|
394
|
+
$[70] = isPanel;
|
|
395
|
+
$[71] = mergedPercent;
|
|
396
|
+
$[72] = onChange;
|
|
397
|
+
$[73] = statuses;
|
|
398
|
+
$[74] = styles?.item;
|
|
399
|
+
$[75] = styles?.itemContent;
|
|
400
|
+
$[76] = styles?.itemHeader;
|
|
401
|
+
$[77] = styles?.itemRail;
|
|
402
|
+
$[78] = styles?.itemSection;
|
|
403
|
+
$[79] = styles?.itemSubtitle;
|
|
404
|
+
$[80] = styles?.itemTitle;
|
|
405
|
+
$[81] = styles?.itemWrapper;
|
|
406
|
+
$[82] = t24;
|
|
407
|
+
} else t24 = $[82];
|
|
408
|
+
t23 = displaySteps.map(t24);
|
|
409
|
+
$[25] = classNames?.item;
|
|
410
|
+
$[26] = classNames?.itemContent;
|
|
411
|
+
$[27] = classNames?.itemHeader;
|
|
412
|
+
$[28] = classNames?.itemRail;
|
|
413
|
+
$[29] = classNames?.itemSection;
|
|
414
|
+
$[30] = classNames?.itemSubtitle;
|
|
415
|
+
$[31] = classNames?.itemTitle;
|
|
416
|
+
$[32] = classNames?.itemWrapper;
|
|
417
|
+
$[33] = contextDisabled;
|
|
418
|
+
$[34] = displayCurrent;
|
|
419
|
+
$[35] = displaySteps;
|
|
420
|
+
$[36] = handleStepClick;
|
|
421
|
+
$[37] = iconRender;
|
|
422
|
+
$[38] = initial;
|
|
423
|
+
$[39] = isDot;
|
|
424
|
+
$[40] = isInline;
|
|
425
|
+
$[41] = isPanel;
|
|
426
|
+
$[42] = mergedPercent;
|
|
427
|
+
$[43] = onChange;
|
|
428
|
+
$[44] = statuses;
|
|
429
|
+
$[45] = styles?.item;
|
|
430
|
+
$[46] = styles?.itemContent;
|
|
431
|
+
$[47] = styles?.itemHeader;
|
|
432
|
+
$[48] = styles?.itemRail;
|
|
433
|
+
$[49] = styles?.itemSection;
|
|
434
|
+
$[50] = styles?.itemSubtitle;
|
|
435
|
+
$[51] = styles?.itemTitle;
|
|
436
|
+
$[52] = styles?.itemWrapper;
|
|
437
|
+
$[53] = t23;
|
|
438
|
+
} else t23 = $[53];
|
|
439
|
+
let t24;
|
|
440
|
+
if ($[83] !== semanticValue || $[84] !== t23) {
|
|
441
|
+
t24 = /*#__PURE__*/ jsx(StepsSemanticContext.Provider, {
|
|
436
442
|
value: semanticValue,
|
|
437
|
-
children:
|
|
443
|
+
children: t23
|
|
438
444
|
});
|
|
439
|
-
$[
|
|
440
|
-
$[
|
|
441
|
-
$[
|
|
442
|
-
} else
|
|
443
|
-
let
|
|
444
|
-
if ($[
|
|
445
|
-
|
|
445
|
+
$[83] = semanticValue;
|
|
446
|
+
$[84] = t23;
|
|
447
|
+
$[85] = t24;
|
|
448
|
+
} else t24 = $[85];
|
|
449
|
+
let t25;
|
|
450
|
+
if ($[86] !== mergedOrientation || $[87] !== mergedTitlePlacement || $[88] !== mergedType || $[89] !== resolvedSize || $[90] !== rootStyle || $[91] !== t16 || $[92] !== t17 || $[93] !== t18 || $[94] !== t19 || $[95] !== t20 || $[96] !== t22 || $[97] !== t24 || $[98] !== variant) {
|
|
451
|
+
t25 = /*#__PURE__*/ jsx("div", {
|
|
446
452
|
"data-tao-steps": "",
|
|
453
|
+
"data-tao-finish-icon-background": t16,
|
|
454
|
+
"data-tao-finish-icon-color": t17,
|
|
447
455
|
"data-tao-orientation": mergedOrientation,
|
|
448
456
|
"data-tao-title-placement": mergedTitlePlacement,
|
|
449
457
|
"data-tao-type": mergedType,
|
|
450
458
|
"data-tao-variant": variant,
|
|
451
459
|
"data-tao-size": resolvedSize,
|
|
452
|
-
"data-tao-ellipsis":
|
|
453
|
-
"data-tao-max-count":
|
|
454
|
-
"data-tao-with-progress":
|
|
455
|
-
className:
|
|
460
|
+
"data-tao-ellipsis": t18,
|
|
461
|
+
"data-tao-max-count": t19,
|
|
462
|
+
"data-tao-with-progress": t20,
|
|
463
|
+
className: t22,
|
|
456
464
|
style: rootStyle,
|
|
457
|
-
children:
|
|
465
|
+
children: t24
|
|
458
466
|
});
|
|
459
|
-
$[
|
|
460
|
-
$[
|
|
461
|
-
$[
|
|
462
|
-
$[
|
|
463
|
-
$[
|
|
464
|
-
$[
|
|
465
|
-
$[
|
|
466
|
-
$[
|
|
467
|
-
$[
|
|
468
|
-
$[
|
|
469
|
-
$[
|
|
470
|
-
$[
|
|
471
|
-
|
|
472
|
-
|
|
467
|
+
$[86] = mergedOrientation;
|
|
468
|
+
$[87] = mergedTitlePlacement;
|
|
469
|
+
$[88] = mergedType;
|
|
470
|
+
$[89] = resolvedSize;
|
|
471
|
+
$[90] = rootStyle;
|
|
472
|
+
$[91] = t16;
|
|
473
|
+
$[92] = t17;
|
|
474
|
+
$[93] = t18;
|
|
475
|
+
$[94] = t19;
|
|
476
|
+
$[95] = t20;
|
|
477
|
+
$[96] = t22;
|
|
478
|
+
$[97] = t24;
|
|
479
|
+
$[98] = variant;
|
|
480
|
+
$[99] = t25;
|
|
481
|
+
} else t25 = $[99];
|
|
482
|
+
return t25;
|
|
473
483
|
}
|
|
474
484
|
function _temp(event_0) {
|
|
475
485
|
if (!event_0.defaultPrevented && event_0.target === event_0.currentTarget && ("Enter" === event_0.key || " " === event_0.key)) {
|