@rockshin/tao-ui 0.0.48 → 0.0.51
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/components/affix/affix.js +20 -16
- package/dist/components/alert/alert.js +114 -99
- package/dist/components/app/app-modals.js +134 -96
- package/dist/components/app/app-notices.js +39 -23
- package/dist/components/auto-complete/auto-complete.js +21 -7
- package/dist/components/avatar/avatar.js +31 -11
- package/dist/components/badge/badge.css +1 -1
- package/dist/components/badge/badge.js +72 -257
- package/dist/components/border-beam/border-beam.js +21 -17
- package/dist/components/breadcrumb/breadcrumb.js +178 -159
- package/dist/components/button/button.css +9 -1
- package/dist/components/button/button.js +61 -53
- package/dist/components/calendar/calendar.js +6 -4
- package/dist/components/card/card.js +24 -8
- package/dist/components/carousel/carousel.d.ts +1 -1
- package/dist/components/carousel/carousel.js +105 -68
- package/dist/components/cascader/cascader.js +54 -19
- package/dist/components/checkbox/checkbox.css +13 -2
- package/dist/components/checkbox/checkbox.d.ts +2 -0
- package/dist/components/checkbox/checkbox.js +320 -229
- package/dist/components/collapse/collapse-panels.d.ts +1 -1
- package/dist/components/collapse/collapse-panels.js +122 -113
- package/dist/components/collapse/collapse.js +98 -63
- package/dist/components/color-picker/color-picker.js +539 -441
- package/dist/components/color-picker/color.js +1 -1
- package/dist/components/context-menu/context-menu.d.ts +1 -1
- package/dist/components/context-menu/context-menu.js +108 -68
- package/dist/components/date-picker/calendar/calendar-grid.js +42 -39
- package/dist/components/date-picker/calendar/month-grid.d.ts +8 -1
- package/dist/components/date-picker/calendar/month-grid.js +79 -37
- package/dist/components/date-picker/calendar/time-panel.d.ts +2 -1
- package/dist/components/date-picker/calendar/time-panel.js +94 -89
- package/dist/components/date-picker/calendar/year-grid.d.ts +8 -1
- package/dist/components/date-picker/calendar/year-grid.js +66 -35
- package/dist/components/date-picker/date-picker.css +24 -1
- package/dist/components/date-picker/date-picker.js +99 -53
- package/dist/components/date-picker/presets.d.ts +2 -1
- package/dist/components/date-picker/presets.js +27 -24
- package/dist/components/date-picker/range-picker.js +308 -153
- package/dist/components/descriptions/descriptions.js +7 -3
- package/dist/components/divider/divider.css +1 -1
- package/dist/components/divider/divider.js +1 -1
- package/dist/components/drawer/drawer.js +201 -369
- package/dist/components/dropdown/dropdown.d.ts +1 -1
- package/dist/components/dropdown/dropdown.js +183 -279
- package/dist/components/empty/empty.js +57 -78
- package/dist/components/float-button/float-button.d.ts +1 -0
- package/dist/components/float-button/float-button.js +47 -30
- package/dist/components/form/field-control.d.ts +4 -2
- package/dist/components/form/field-control.js +17 -9
- package/dist/components/form/form-context.d.ts +8 -2
- package/dist/components/form/form-context.js +2 -1
- package/dist/components/form/form-item.js +85 -63
- package/dist/components/form/use-form.d.ts +2 -1
- package/dist/components/form/use-form.js +2 -1
- package/dist/components/form-field/form-field-view.d.ts +3 -1
- package/dist/components/form-field/form-field-view.js +194 -141
- package/dist/components/form-section/form-section.d.ts +1 -1
- package/dist/components/form-section/form-section.js +52 -45
- package/dist/components/image/image.js +585 -477
- package/dist/components/input/base-input.js +8 -9
- package/dist/components/input/input-shared.d.ts +5 -2
- package/dist/components/input/input-shared.js +42 -18
- package/dist/components/input/input.css +1 -0
- package/dist/components/input/otp.js +236 -217
- package/dist/components/input/password.js +2 -1
- package/dist/components/input/search.js +8 -7
- package/dist/components/list/list-pagination.js +41 -36
- package/dist/components/list/list.js +141 -125
- package/dist/components/listy/listy.js +175 -106
- package/dist/components/masonry/masonry.js +108 -85
- package/dist/components/mentions/mentions.js +12 -3
- package/dist/components/menu/menu-render.d.ts +9 -3
- package/dist/components/menu/menu-render.js +99 -36
- package/dist/components/modal/confirm-dialog.js +10 -4
- package/dist/components/modal/confirm.js +3 -7
- package/dist/components/modal/index.js +9 -3
- package/dist/components/modal/modal.js +390 -365
- package/dist/components/pagination/pagination.js +105 -96
- package/dist/components/popconfirm/popconfirm.d.ts +1 -1
- package/dist/components/popconfirm/popconfirm.js +219 -168
- package/dist/components/popover/popover.js +330 -243
- package/dist/components/progress/progress.css +2 -2
- package/dist/components/progress/progress.js +232 -458
- package/dist/components/qr-code/qr-code.js +72 -66
- package/dist/components/radio/radio.css +15 -4
- package/dist/components/radio/radio.d.ts +2 -1
- package/dist/components/radio/radio.js +260 -198
- package/dist/components/rate/rate.js +173 -113
- package/dist/components/scroll-area/scroll-area.js +241 -211
- package/dist/components/segmented/segmented.js +73 -41
- package/dist/components/select/mobile-select.d.ts +2 -1
- package/dist/components/select/mobile-select.js +24 -13
- package/dist/components/select/select-searchable-list.d.ts +2 -1
- package/dist/components/select/select-searchable-list.js +2 -3
- package/dist/components/select/select.css +3 -2
- package/dist/components/select/select.js +49 -25
- package/dist/components/select/use-select-selection.d.ts +1 -1
- package/dist/components/select/use-select-selection.js +7 -4
- package/dist/components/skeleton/skeleton.js +56 -48
- package/dist/components/slider/slider.js +87 -212
- package/dist/components/sonner/sonner.js +109 -93
- package/dist/components/spinner/spinner.js +147 -138
- package/dist/components/splitter/splitter.js +222 -159
- package/dist/components/statistic/statistic.js +7 -6
- package/dist/components/steps/steps.js +88 -81
- package/dist/components/steps/use-display-steps.js +1 -1
- package/dist/components/switch/switch.js +89 -89
- package/dist/components/table/table-filter.js +66 -56
- package/dist/components/table/table-icons.d.ts +2 -1
- package/dist/components/table/table-icons.js +11 -9
- package/dist/components/table/table-model.js +1 -1
- package/dist/components/table/table.js +107 -83
- package/dist/components/table/use-table-data.d.ts +6 -3
- package/dist/components/table/use-table-data.js +166 -130
- package/dist/components/tabs/tabs.css +1 -1
- package/dist/components/tabs/tabs.js +236 -179
- package/dist/components/tag/tag.d.ts +2 -2
- package/dist/components/tag/tag.js +111 -108
- package/dist/components/textarea/textarea.js +22 -17
- package/dist/components/time-picker/time-picker.js +5 -3
- package/dist/components/timeline/timeline.css +6 -1
- package/dist/components/timeline/timeline.js +21 -11
- package/dist/components/tooltip/tooltip.d.ts +2 -2
- package/dist/components/tooltip/tooltip.js +123 -233
- package/dist/components/tour/tour.css +4 -0
- package/dist/components/tour/tour.js +400 -331
- package/dist/components/transfer/transfer-list.js +31 -12
- package/dist/components/transfer/transfer-parts.js +1 -1
- package/dist/components/transfer/transfer-types.d.ts +1 -0
- package/dist/components/transfer/transfer.css +5 -0
- package/dist/components/transfer/transfer.js +29 -14
- package/dist/components/tree/tree-keyboard.d.ts +1 -1
- package/dist/components/tree/tree-keyboard.js +5 -3
- package/dist/components/tree/tree.js +74 -59
- package/dist/components/tree-select/select-engine.d.ts +3 -2
- package/dist/components/tree-select/select-engine.js +18 -16
- package/dist/components/tree-select/tree-select.js +21 -5
- package/dist/components/upload/upload.css +8 -0
- package/dist/components/upload/upload.js +160 -72
- package/dist/components/watermark/watermark.js +36 -29
- package/dist/number-input/use-number-input.js +129 -90
- package/dist/number-input/validate.js +32 -5
- package/dist/provider/merge-locale.js +12 -9
- package/dist/provider/tao-provider.d.ts +3 -1
- package/dist/provider/tao-provider.js +123 -86
- package/package.json +4 -3
|
@@ -3,7 +3,7 @@ import { c } from "react-compiler-runtime";
|
|
|
3
3
|
import { FocusScope } from "@radix-ui/react-focus-scope";
|
|
4
4
|
import tour from "@rc-component/tour";
|
|
5
5
|
import { getPlacements } from "@rc-component/tour/es/placements";
|
|
6
|
-
import { useEffect, useId, useRef } from "react";
|
|
6
|
+
import { useEffect, useId, useLayoutEffect, useRef, useState } from "react";
|
|
7
7
|
import { TaoPortalScope, useTaoInternalConfig } from "../../provider/tao-provider.js";
|
|
8
8
|
import { cx } from "../../utils/semantic.js";
|
|
9
9
|
import { Button } from "../button/button.js";
|
|
@@ -12,61 +12,78 @@ import "./tour.css";
|
|
|
12
12
|
import { interopDefault } from "../../utils/interop-default.js";
|
|
13
13
|
const RcTourComponent = /*#__PURE__*/ interopDefault(tour);
|
|
14
14
|
function TourPanel(t0) {
|
|
15
|
-
const $ = c(
|
|
16
|
-
const { step, current, type, indicatorsRender, actionsRender, classes, styles,
|
|
15
|
+
const $ = c(108);
|
|
16
|
+
const { step, current, type, indicatorsRender, actionsRender, classes, styles, masked, disabledInteraction, stepActions } = t0;
|
|
17
17
|
const { locale, mode, compact, tokenStyle } = useTaoInternalConfig();
|
|
18
18
|
const titleId = useId();
|
|
19
19
|
const descriptionId = useId();
|
|
20
20
|
const panelRef = useRef(null);
|
|
21
|
-
const
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
21
|
+
const [hasTarget, setHasTarget] = useState(false);
|
|
22
|
+
let t1;
|
|
23
|
+
if ($[0] !== disabledInteraction || $[1] !== hasTarget || $[2] !== masked || $[3] !== step) {
|
|
24
|
+
t1 = ()=>{
|
|
25
|
+
if (!masked || disabledInteraction) return;
|
|
26
|
+
const target = "function" == typeof step.target ? step.target() : step.target;
|
|
27
|
+
const available = Boolean(target);
|
|
28
|
+
if (available !== hasTarget) setHasTarget(available);
|
|
29
29
|
};
|
|
30
|
-
$[0] =
|
|
31
|
-
$[1] =
|
|
32
|
-
$[2] =
|
|
33
|
-
|
|
34
|
-
|
|
30
|
+
$[0] = disabledInteraction;
|
|
31
|
+
$[1] = hasTarget;
|
|
32
|
+
$[2] = masked;
|
|
33
|
+
$[3] = step;
|
|
34
|
+
$[4] = t1;
|
|
35
|
+
} else t1 = $[4];
|
|
36
|
+
useLayoutEffect(t1);
|
|
37
|
+
const modal = masked && (disabledInteraction || !hasTarget);
|
|
38
|
+
const { total: t2, title, description, cover, nextButtonProps, prevButtonProps, closable: t3 } = step;
|
|
39
|
+
const total = void 0 === t2 ? 1 : t2;
|
|
40
|
+
const closable = void 0 === t3 ? true : t3;
|
|
35
41
|
let t4;
|
|
36
|
-
if ($[
|
|
42
|
+
if ($[5] !== classes || $[6] !== step.classNames) {
|
|
37
43
|
t4 = {
|
|
44
|
+
...classes,
|
|
45
|
+
...step.classNames
|
|
46
|
+
};
|
|
47
|
+
$[5] = classes;
|
|
48
|
+
$[6] = step.classNames;
|
|
49
|
+
$[7] = t4;
|
|
50
|
+
} else t4 = $[7];
|
|
51
|
+
const cn = t4;
|
|
52
|
+
let t5;
|
|
53
|
+
if ($[8] !== step.styles || $[9] !== styles) {
|
|
54
|
+
t5 = {
|
|
38
55
|
...styles,
|
|
39
56
|
...step.styles
|
|
40
57
|
};
|
|
41
|
-
$[
|
|
42
|
-
$[
|
|
43
|
-
$[
|
|
44
|
-
} else
|
|
45
|
-
const st =
|
|
58
|
+
$[8] = step.styles;
|
|
59
|
+
$[9] = styles;
|
|
60
|
+
$[10] = t5;
|
|
61
|
+
} else t5 = $[10];
|
|
62
|
+
const st = t5;
|
|
46
63
|
const primary = (step.type ?? type) === "primary";
|
|
47
64
|
const last = current === total - 1;
|
|
48
|
-
let
|
|
49
|
-
if ($[
|
|
50
|
-
|
|
51
|
-
$[
|
|
52
|
-
$[
|
|
53
|
-
} else
|
|
54
|
-
const closeProps =
|
|
65
|
+
let t6;
|
|
66
|
+
if ($[11] !== closable) {
|
|
67
|
+
t6 = closable && "object" == typeof closable ? closable : {};
|
|
68
|
+
$[11] = closable;
|
|
69
|
+
$[12] = t6;
|
|
70
|
+
} else t6 = $[12];
|
|
71
|
+
const closeProps = t6;
|
|
55
72
|
let closeAttrs;
|
|
56
73
|
let closeIcon;
|
|
57
|
-
if ($[
|
|
74
|
+
if ($[13] !== closeProps) {
|
|
58
75
|
({ closeIcon, ...closeAttrs } = closeProps);
|
|
59
|
-
$[
|
|
60
|
-
$[
|
|
61
|
-
$[
|
|
76
|
+
$[13] = closeProps;
|
|
77
|
+
$[14] = closeAttrs;
|
|
78
|
+
$[15] = closeIcon;
|
|
62
79
|
} else {
|
|
63
|
-
closeAttrs = $[
|
|
64
|
-
closeIcon = $[
|
|
80
|
+
closeAttrs = $[14];
|
|
81
|
+
closeIcon = $[15];
|
|
65
82
|
}
|
|
66
|
-
let t6;
|
|
67
83
|
let t7;
|
|
68
|
-
|
|
69
|
-
|
|
84
|
+
let t8;
|
|
85
|
+
if ($[16] !== compact || $[17] !== mode || $[18] !== tokenStyle) {
|
|
86
|
+
t7 = ()=>{
|
|
70
87
|
const popup = panelRef.current.parentElement;
|
|
71
88
|
popup.dataset.taoTourPopup = "";
|
|
72
89
|
popup.dataset.taoProvider = "";
|
|
@@ -76,132 +93,145 @@ function TourPanel(t0) {
|
|
|
76
93
|
else delete popup.dataset.taoDensity;
|
|
77
94
|
for (const [name, value] of Object.entries(tokenStyle ?? {}))popup.style.setProperty(name, String(value));
|
|
78
95
|
};
|
|
79
|
-
|
|
96
|
+
t8 = [
|
|
80
97
|
mode,
|
|
81
98
|
compact,
|
|
82
99
|
tokenStyle
|
|
83
100
|
];
|
|
84
|
-
$[
|
|
85
|
-
$[
|
|
86
|
-
$[
|
|
87
|
-
$[
|
|
88
|
-
$[
|
|
101
|
+
$[16] = compact;
|
|
102
|
+
$[17] = mode;
|
|
103
|
+
$[18] = tokenStyle;
|
|
104
|
+
$[19] = t7;
|
|
105
|
+
$[20] = t8;
|
|
89
106
|
} else {
|
|
90
|
-
|
|
91
|
-
|
|
107
|
+
t7 = $[19];
|
|
108
|
+
t8 = $[20];
|
|
92
109
|
}
|
|
93
|
-
useEffect(
|
|
94
|
-
let
|
|
95
|
-
if ($[
|
|
96
|
-
|
|
110
|
+
useEffect(t7, t8);
|
|
111
|
+
let t9;
|
|
112
|
+
if ($[21] !== current || $[22] !== locale || $[23] !== prevButtonProps || $[24] !== primary || $[25] !== step || $[26] !== stepActions) {
|
|
113
|
+
t9 = current > 0 && /*#__PURE__*/ jsx(Button, {
|
|
97
114
|
size: "small",
|
|
98
115
|
variant: primary ? "ghost" : "secondary",
|
|
99
116
|
...prevButtonProps,
|
|
100
117
|
onClick: (event)=>{
|
|
101
|
-
step.onPrev?.();
|
|
102
118
|
prevButtonProps?.onClick?.(event);
|
|
119
|
+
if (event.defaultPrevented) return;
|
|
120
|
+
stepActions?.onPrev?.();
|
|
121
|
+
step.onPrev?.();
|
|
103
122
|
},
|
|
104
123
|
children: prevButtonProps?.children ?? locale.previous
|
|
105
124
|
});
|
|
106
|
-
$[
|
|
107
|
-
$[
|
|
108
|
-
$[
|
|
109
|
-
$[
|
|
110
|
-
$[
|
|
111
|
-
$[
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
else step.onNext?.();
|
|
125
|
+
$[21] = current;
|
|
126
|
+
$[22] = locale;
|
|
127
|
+
$[23] = prevButtonProps;
|
|
128
|
+
$[24] = primary;
|
|
129
|
+
$[25] = step;
|
|
130
|
+
$[26] = stepActions;
|
|
131
|
+
$[27] = t9;
|
|
132
|
+
} else t9 = $[27];
|
|
133
|
+
const t10 = primary ? "secondary" : "primary";
|
|
134
|
+
let t11;
|
|
135
|
+
if ($[28] !== last || $[29] !== nextButtonProps || $[30] !== step || $[31] !== stepActions) {
|
|
136
|
+
t11 = (event_0)=>{
|
|
119
137
|
nextButtonProps?.onClick?.(event_0);
|
|
138
|
+
if (event_0.defaultPrevented) return;
|
|
139
|
+
if (last) {
|
|
140
|
+
stepActions?.onFinish?.();
|
|
141
|
+
step.onFinish?.();
|
|
142
|
+
} else {
|
|
143
|
+
stepActions?.onNext?.();
|
|
144
|
+
step.onNext?.();
|
|
145
|
+
}
|
|
120
146
|
};
|
|
121
|
-
$[
|
|
122
|
-
$[
|
|
123
|
-
$[
|
|
124
|
-
$[
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
147
|
+
$[28] = last;
|
|
148
|
+
$[29] = nextButtonProps;
|
|
149
|
+
$[30] = step;
|
|
150
|
+
$[31] = stepActions;
|
|
151
|
+
$[32] = t11;
|
|
152
|
+
} else t11 = $[32];
|
|
153
|
+
const t12 = nextButtonProps?.children ?? (last ? locale.done : locale.next);
|
|
154
|
+
let t13;
|
|
155
|
+
if ($[33] !== nextButtonProps || $[34] !== t10 || $[35] !== t11 || $[36] !== t12) {
|
|
156
|
+
t13 = /*#__PURE__*/ jsx(Button, {
|
|
130
157
|
size: "small",
|
|
131
|
-
variant:
|
|
158
|
+
variant: t10,
|
|
132
159
|
...nextButtonProps,
|
|
133
|
-
onClick:
|
|
134
|
-
children:
|
|
160
|
+
onClick: t11,
|
|
161
|
+
children: t12
|
|
135
162
|
});
|
|
136
|
-
$[
|
|
137
|
-
$[
|
|
138
|
-
$[
|
|
139
|
-
$[
|
|
140
|
-
$[
|
|
141
|
-
} else
|
|
142
|
-
let
|
|
143
|
-
if ($[
|
|
144
|
-
|
|
163
|
+
$[33] = nextButtonProps;
|
|
164
|
+
$[34] = t10;
|
|
165
|
+
$[35] = t11;
|
|
166
|
+
$[36] = t12;
|
|
167
|
+
$[37] = t13;
|
|
168
|
+
} else t13 = $[37];
|
|
169
|
+
let t14;
|
|
170
|
+
if ($[38] !== t13 || $[39] !== t9) {
|
|
171
|
+
t14 = /*#__PURE__*/ jsxs(Fragment, {
|
|
145
172
|
children: [
|
|
146
|
-
|
|
147
|
-
|
|
173
|
+
t9,
|
|
174
|
+
t13
|
|
148
175
|
]
|
|
149
176
|
});
|
|
150
|
-
$[
|
|
151
|
-
$[
|
|
152
|
-
$[
|
|
153
|
-
} else
|
|
154
|
-
const actions =
|
|
155
|
-
let
|
|
156
|
-
if ($[
|
|
157
|
-
|
|
177
|
+
$[38] = t13;
|
|
178
|
+
$[39] = t9;
|
|
179
|
+
$[40] = t14;
|
|
180
|
+
} else t14 = $[40];
|
|
181
|
+
const actions = t14;
|
|
182
|
+
let t15;
|
|
183
|
+
if ($[41] === Symbol.for("react.memo_cache_sentinel")) {
|
|
184
|
+
t15 = (event_1)=>{
|
|
158
185
|
event_1.preventDefault();
|
|
159
186
|
panelRef.current?.focus();
|
|
160
187
|
};
|
|
161
|
-
$[
|
|
162
|
-
} else
|
|
163
|
-
const
|
|
164
|
-
const
|
|
165
|
-
const
|
|
166
|
-
const
|
|
167
|
-
let
|
|
168
|
-
if ($[
|
|
169
|
-
|
|
188
|
+
$[41] = t15;
|
|
189
|
+
} else t15 = $[41];
|
|
190
|
+
const t16 = primary ? "primary" : "default";
|
|
191
|
+
const t17 = modal || void 0;
|
|
192
|
+
const t18 = null != title ? titleId : void 0;
|
|
193
|
+
const t19 = null != description ? descriptionId : void 0;
|
|
194
|
+
let t20;
|
|
195
|
+
if ($[42] !== closable || $[43] !== closeAttrs || $[44] !== closeIcon || $[45] !== cn.close || $[46] !== locale || $[47] !== st.close || $[48] !== step || $[49] !== stepActions) {
|
|
196
|
+
t20 = closable && /*#__PURE__*/ jsx("button", {
|
|
170
197
|
type: "button",
|
|
171
198
|
"data-tao-tour-close": "",
|
|
172
199
|
"aria-label": locale.close,
|
|
173
200
|
...closeAttrs,
|
|
174
201
|
className: cn.close,
|
|
175
202
|
style: st.close,
|
|
176
|
-
onClick:
|
|
203
|
+
onClick: ()=>{
|
|
204
|
+
stepActions?.onClose?.();
|
|
205
|
+
step.onClose?.();
|
|
206
|
+
},
|
|
177
207
|
children: closeIcon ?? step.closeIcon ?? /*#__PURE__*/ jsx(CloseIcon, {})
|
|
178
208
|
});
|
|
179
|
-
$[
|
|
180
|
-
$[
|
|
181
|
-
$[
|
|
182
|
-
$[
|
|
183
|
-
$[
|
|
184
|
-
$[
|
|
185
|
-
$[
|
|
186
|
-
$[
|
|
187
|
-
$[
|
|
188
|
-
} else
|
|
189
|
-
let
|
|
190
|
-
if ($[
|
|
191
|
-
|
|
209
|
+
$[42] = closable;
|
|
210
|
+
$[43] = closeAttrs;
|
|
211
|
+
$[44] = closeIcon;
|
|
212
|
+
$[45] = cn.close;
|
|
213
|
+
$[46] = locale;
|
|
214
|
+
$[47] = st.close;
|
|
215
|
+
$[48] = step;
|
|
216
|
+
$[49] = stepActions;
|
|
217
|
+
$[50] = t20;
|
|
218
|
+
} else t20 = $[50];
|
|
219
|
+
let t21;
|
|
220
|
+
if ($[51] !== cn.cover || $[52] !== cover || $[53] !== st.cover) {
|
|
221
|
+
t21 = null != cover && /*#__PURE__*/ jsx("div", {
|
|
192
222
|
"data-tao-tour-cover": "",
|
|
193
223
|
className: cn.cover,
|
|
194
224
|
style: st.cover,
|
|
195
225
|
children: cover
|
|
196
226
|
});
|
|
197
|
-
$[
|
|
198
|
-
$[
|
|
199
|
-
$[
|
|
200
|
-
$[
|
|
201
|
-
} else
|
|
202
|
-
let
|
|
203
|
-
if ($[
|
|
204
|
-
|
|
227
|
+
$[51] = cn.cover;
|
|
228
|
+
$[52] = cover;
|
|
229
|
+
$[53] = st.cover;
|
|
230
|
+
$[54] = t21;
|
|
231
|
+
} else t21 = $[54];
|
|
232
|
+
let t22;
|
|
233
|
+
if ($[55] !== cn.header || $[56] !== cn.title || $[57] !== st.header || $[58] !== st.title || $[59] !== title || $[60] !== titleId) {
|
|
234
|
+
t22 = null != title && /*#__PURE__*/ jsx("div", {
|
|
205
235
|
"data-tao-tour-header": "",
|
|
206
236
|
className: cn.header,
|
|
207
237
|
style: st.header,
|
|
@@ -213,32 +243,32 @@ function TourPanel(t0) {
|
|
|
213
243
|
children: title
|
|
214
244
|
})
|
|
215
245
|
});
|
|
216
|
-
$[
|
|
217
|
-
$[
|
|
218
|
-
$[
|
|
219
|
-
$[
|
|
220
|
-
$[
|
|
221
|
-
$[
|
|
222
|
-
$[
|
|
223
|
-
} else
|
|
224
|
-
let
|
|
225
|
-
if ($[
|
|
226
|
-
|
|
246
|
+
$[55] = cn.header;
|
|
247
|
+
$[56] = cn.title;
|
|
248
|
+
$[57] = st.header;
|
|
249
|
+
$[58] = st.title;
|
|
250
|
+
$[59] = title;
|
|
251
|
+
$[60] = titleId;
|
|
252
|
+
$[61] = t22;
|
|
253
|
+
} else t22 = $[61];
|
|
254
|
+
let t23;
|
|
255
|
+
if ($[62] !== cn.description || $[63] !== description || $[64] !== descriptionId || $[65] !== st.description) {
|
|
256
|
+
t23 = null != description && /*#__PURE__*/ jsx("div", {
|
|
227
257
|
id: descriptionId,
|
|
228
258
|
"data-tao-tour-description": "",
|
|
229
259
|
className: cn.description,
|
|
230
260
|
style: st.description,
|
|
231
261
|
children: description
|
|
232
262
|
});
|
|
233
|
-
$[
|
|
234
|
-
$[
|
|
235
|
-
$[
|
|
236
|
-
$[
|
|
237
|
-
$[
|
|
238
|
-
} else
|
|
239
|
-
let
|
|
240
|
-
if ($[
|
|
241
|
-
|
|
263
|
+
$[62] = cn.description;
|
|
264
|
+
$[63] = description;
|
|
265
|
+
$[64] = descriptionId;
|
|
266
|
+
$[65] = st.description;
|
|
267
|
+
$[66] = t23;
|
|
268
|
+
} else t23 = $[66];
|
|
269
|
+
let t24;
|
|
270
|
+
if ($[67] !== cn.indicator || $[68] !== cn.indicators || $[69] !== current || $[70] !== indicatorsRender || $[71] !== st.indicator || $[72] !== st.indicators || $[73] !== total) {
|
|
271
|
+
t24 = total > 1 && /*#__PURE__*/ jsx("div", {
|
|
242
272
|
"data-tao-tour-indicators": "",
|
|
243
273
|
className: cn.indicators,
|
|
244
274
|
style: st.indicators,
|
|
@@ -251,132 +281,135 @@ function TourPanel(t0) {
|
|
|
251
281
|
style: st.indicator
|
|
252
282
|
}, stepIndex))
|
|
253
283
|
});
|
|
254
|
-
$[
|
|
255
|
-
$[
|
|
256
|
-
$[
|
|
257
|
-
$[
|
|
258
|
-
$[
|
|
259
|
-
$[
|
|
260
|
-
$[
|
|
261
|
-
$[
|
|
262
|
-
} else
|
|
263
|
-
let
|
|
264
|
-
if ($[
|
|
265
|
-
|
|
284
|
+
$[67] = cn.indicator;
|
|
285
|
+
$[68] = cn.indicators;
|
|
286
|
+
$[69] = current;
|
|
287
|
+
$[70] = indicatorsRender;
|
|
288
|
+
$[71] = st.indicator;
|
|
289
|
+
$[72] = st.indicators;
|
|
290
|
+
$[73] = total;
|
|
291
|
+
$[74] = t24;
|
|
292
|
+
} else t24 = $[74];
|
|
293
|
+
let t25;
|
|
294
|
+
if ($[75] !== actions || $[76] !== actionsRender || $[77] !== current || $[78] !== total) {
|
|
295
|
+
t25 = actionsRender ? actionsRender(actions, {
|
|
266
296
|
current,
|
|
267
297
|
total
|
|
268
298
|
}) : actions;
|
|
269
|
-
$[
|
|
270
|
-
$[
|
|
271
|
-
$[
|
|
272
|
-
$[
|
|
273
|
-
$[
|
|
274
|
-
} else
|
|
275
|
-
let
|
|
276
|
-
if ($[
|
|
277
|
-
|
|
299
|
+
$[75] = actions;
|
|
300
|
+
$[76] = actionsRender;
|
|
301
|
+
$[77] = current;
|
|
302
|
+
$[78] = total;
|
|
303
|
+
$[79] = t25;
|
|
304
|
+
} else t25 = $[79];
|
|
305
|
+
let t26;
|
|
306
|
+
if ($[80] !== cn.actions || $[81] !== st.actions || $[82] !== t25) {
|
|
307
|
+
t26 = /*#__PURE__*/ jsx("div", {
|
|
278
308
|
"data-tao-tour-actions": "",
|
|
279
309
|
className: cn.actions,
|
|
280
310
|
style: st.actions,
|
|
281
|
-
children:
|
|
311
|
+
children: t25
|
|
282
312
|
});
|
|
283
|
-
$[
|
|
284
|
-
$[
|
|
285
|
-
$[
|
|
286
|
-
$[
|
|
287
|
-
} else
|
|
288
|
-
let
|
|
289
|
-
if ($[
|
|
290
|
-
|
|
313
|
+
$[80] = cn.actions;
|
|
314
|
+
$[81] = st.actions;
|
|
315
|
+
$[82] = t25;
|
|
316
|
+
$[83] = t26;
|
|
317
|
+
} else t26 = $[83];
|
|
318
|
+
let t27;
|
|
319
|
+
if ($[84] !== cn.footer || $[85] !== st.footer || $[86] !== t24 || $[87] !== t26) {
|
|
320
|
+
t27 = /*#__PURE__*/ jsxs("div", {
|
|
291
321
|
"data-tao-tour-footer": "",
|
|
292
322
|
className: cn.footer,
|
|
293
323
|
style: st.footer,
|
|
294
324
|
children: [
|
|
295
|
-
|
|
296
|
-
|
|
325
|
+
t24,
|
|
326
|
+
t26
|
|
297
327
|
]
|
|
298
328
|
});
|
|
299
|
-
$[
|
|
300
|
-
$[
|
|
301
|
-
$[
|
|
302
|
-
$[
|
|
303
|
-
$[
|
|
304
|
-
} else
|
|
305
|
-
let
|
|
306
|
-
if ($[
|
|
307
|
-
|
|
329
|
+
$[84] = cn.footer;
|
|
330
|
+
$[85] = st.footer;
|
|
331
|
+
$[86] = t24;
|
|
332
|
+
$[87] = t26;
|
|
333
|
+
$[88] = t27;
|
|
334
|
+
} else t27 = $[88];
|
|
335
|
+
let t28;
|
|
336
|
+
if ($[89] !== cn.section || $[90] !== st.section || $[91] !== t20 || $[92] !== t21 || $[93] !== t22 || $[94] !== t23 || $[95] !== t27) {
|
|
337
|
+
t28 = /*#__PURE__*/ jsxs("div", {
|
|
308
338
|
"data-tao-tour-section": "",
|
|
309
339
|
className: cn.section,
|
|
310
340
|
style: st.section,
|
|
311
341
|
children: [
|
|
312
|
-
t19,
|
|
313
342
|
t20,
|
|
314
343
|
t21,
|
|
315
344
|
t22,
|
|
316
|
-
|
|
345
|
+
t23,
|
|
346
|
+
t27
|
|
317
347
|
]
|
|
318
348
|
});
|
|
319
|
-
$[
|
|
320
|
-
$[
|
|
321
|
-
$[
|
|
322
|
-
$[
|
|
323
|
-
$[
|
|
324
|
-
$[
|
|
325
|
-
$[
|
|
326
|
-
$[
|
|
327
|
-
} else
|
|
328
|
-
let
|
|
329
|
-
if ($[
|
|
330
|
-
|
|
349
|
+
$[89] = cn.section;
|
|
350
|
+
$[90] = st.section;
|
|
351
|
+
$[91] = t20;
|
|
352
|
+
$[92] = t21;
|
|
353
|
+
$[93] = t22;
|
|
354
|
+
$[94] = t23;
|
|
355
|
+
$[95] = t27;
|
|
356
|
+
$[96] = t28;
|
|
357
|
+
} else t28 = $[96];
|
|
358
|
+
let t29;
|
|
359
|
+
if ($[97] !== cn.root || $[98] !== st.root || $[99] !== t16 || $[100] !== t17 || $[101] !== t18 || $[102] !== t19 || $[103] !== t28) {
|
|
360
|
+
t29 = /*#__PURE__*/ jsx("div", {
|
|
331
361
|
ref: panelRef,
|
|
332
362
|
"data-tao-tour": "",
|
|
333
|
-
"data-type":
|
|
363
|
+
"data-type": t16,
|
|
334
364
|
role: "dialog",
|
|
335
|
-
"aria-modal":
|
|
336
|
-
"aria-labelledby":
|
|
337
|
-
"aria-describedby":
|
|
365
|
+
"aria-modal": t17,
|
|
366
|
+
"aria-labelledby": t18,
|
|
367
|
+
"aria-describedby": t19,
|
|
338
368
|
tabIndex: -1,
|
|
339
369
|
className: cn.root,
|
|
340
370
|
style: st.root,
|
|
341
|
-
children:
|
|
371
|
+
children: t28
|
|
342
372
|
});
|
|
343
|
-
$[
|
|
344
|
-
$[
|
|
345
|
-
$[
|
|
346
|
-
$[
|
|
347
|
-
$[
|
|
348
|
-
$[
|
|
349
|
-
$[
|
|
350
|
-
$[
|
|
351
|
-
} else
|
|
352
|
-
let
|
|
353
|
-
if ($[
|
|
354
|
-
|
|
373
|
+
$[97] = cn.root;
|
|
374
|
+
$[98] = st.root;
|
|
375
|
+
$[99] = t16;
|
|
376
|
+
$[100] = t17;
|
|
377
|
+
$[101] = t18;
|
|
378
|
+
$[102] = t19;
|
|
379
|
+
$[103] = t28;
|
|
380
|
+
$[104] = t29;
|
|
381
|
+
} else t29 = $[104];
|
|
382
|
+
let t30;
|
|
383
|
+
if ($[105] !== modal || $[106] !== t29) {
|
|
384
|
+
t30 = /*#__PURE__*/ jsx(TaoPortalScope, {
|
|
355
385
|
asChild: true,
|
|
356
386
|
children: /*#__PURE__*/ jsx(FocusScope, {
|
|
357
387
|
asChild: true,
|
|
358
388
|
trapped: modal,
|
|
359
389
|
loop: modal,
|
|
360
|
-
onMountAutoFocus:
|
|
361
|
-
children:
|
|
390
|
+
onMountAutoFocus: t15,
|
|
391
|
+
children: t29
|
|
362
392
|
})
|
|
363
393
|
});
|
|
364
|
-
$[
|
|
365
|
-
$[
|
|
366
|
-
$[
|
|
367
|
-
} else
|
|
368
|
-
return
|
|
394
|
+
$[105] = modal;
|
|
395
|
+
$[106] = t29;
|
|
396
|
+
$[107] = t30;
|
|
397
|
+
} else t30 = $[107];
|
|
398
|
+
return t30;
|
|
369
399
|
}
|
|
370
400
|
function _temp(_, index) {
|
|
371
401
|
return index;
|
|
372
402
|
}
|
|
373
403
|
function Tour(props) {
|
|
374
|
-
const $ = c(
|
|
404
|
+
const $ = c(71);
|
|
375
405
|
const { tokenStyle } = useTaoInternalConfig();
|
|
376
406
|
let actionsRender;
|
|
377
407
|
let className;
|
|
378
408
|
let classNames;
|
|
409
|
+
let defaultOpen;
|
|
379
410
|
let indicatorsRender;
|
|
411
|
+
let onClose;
|
|
412
|
+
let open;
|
|
380
413
|
let rest;
|
|
381
414
|
let rootClassName;
|
|
382
415
|
let style;
|
|
@@ -387,72 +420,82 @@ function Tour(props) {
|
|
|
387
420
|
let type;
|
|
388
421
|
let zIndex;
|
|
389
422
|
if ($[0] !== props) {
|
|
390
|
-
({ steps: t0, type, indicatorsRender, actionsRender, classNames, styles, className, style, prefixCls: t1, rootClassName, keyboard: t2, zIndex, ...rest } = props);
|
|
423
|
+
({ steps: t0, type, indicatorsRender, actionsRender, classNames, styles, className, style, prefixCls: t1, rootClassName, keyboard: t2, zIndex, open, defaultOpen, onClose, ...rest } = props);
|
|
391
424
|
$[0] = props;
|
|
392
425
|
$[1] = actionsRender;
|
|
393
426
|
$[2] = className;
|
|
394
427
|
$[3] = classNames;
|
|
395
|
-
$[4] =
|
|
396
|
-
$[5] =
|
|
397
|
-
$[6] =
|
|
398
|
-
$[7] =
|
|
399
|
-
$[8] =
|
|
400
|
-
$[9] =
|
|
401
|
-
$[10] =
|
|
402
|
-
$[11] =
|
|
403
|
-
$[12] =
|
|
404
|
-
$[13] =
|
|
428
|
+
$[4] = defaultOpen;
|
|
429
|
+
$[5] = indicatorsRender;
|
|
430
|
+
$[6] = onClose;
|
|
431
|
+
$[7] = open;
|
|
432
|
+
$[8] = rest;
|
|
433
|
+
$[9] = rootClassName;
|
|
434
|
+
$[10] = style;
|
|
435
|
+
$[11] = styles;
|
|
436
|
+
$[12] = t0;
|
|
437
|
+
$[13] = t1;
|
|
438
|
+
$[14] = t2;
|
|
439
|
+
$[15] = type;
|
|
440
|
+
$[16] = zIndex;
|
|
405
441
|
} else {
|
|
406
442
|
actionsRender = $[1];
|
|
407
443
|
className = $[2];
|
|
408
444
|
classNames = $[3];
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
445
|
+
defaultOpen = $[4];
|
|
446
|
+
indicatorsRender = $[5];
|
|
447
|
+
onClose = $[6];
|
|
448
|
+
open = $[7];
|
|
449
|
+
rest = $[8];
|
|
450
|
+
rootClassName = $[9];
|
|
451
|
+
style = $[10];
|
|
452
|
+
styles = $[11];
|
|
453
|
+
t0 = $[12];
|
|
454
|
+
t1 = $[13];
|
|
455
|
+
t2 = $[14];
|
|
456
|
+
type = $[15];
|
|
457
|
+
zIndex = $[16];
|
|
419
458
|
}
|
|
420
459
|
let t3;
|
|
421
|
-
if ($[
|
|
460
|
+
if ($[17] !== t0) {
|
|
422
461
|
t3 = void 0 === t0 ? [] : t0;
|
|
423
|
-
$[
|
|
424
|
-
$[
|
|
425
|
-
} else t3 = $[
|
|
462
|
+
$[17] = t0;
|
|
463
|
+
$[18] = t3;
|
|
464
|
+
} else t3 = $[18];
|
|
426
465
|
const steps = t3;
|
|
427
466
|
const prefixCls = void 0 === t1 ? "tao-tour" : t1;
|
|
428
467
|
const keyboard = void 0 === t2 ? true : t2;
|
|
468
|
+
const [innerOpen, setInnerOpen] = useState(defaultOpen ?? true);
|
|
429
469
|
let t4;
|
|
430
|
-
if ($[
|
|
470
|
+
if ($[19] !== classNames || $[20] !== props) {
|
|
431
471
|
t4 = "function" == typeof classNames ? classNames({
|
|
432
472
|
props
|
|
433
473
|
}) : classNames;
|
|
434
|
-
$[
|
|
435
|
-
$[
|
|
436
|
-
$[
|
|
437
|
-
} else t4 = $[
|
|
474
|
+
$[19] = classNames;
|
|
475
|
+
$[20] = props;
|
|
476
|
+
$[21] = t4;
|
|
477
|
+
} else t4 = $[21];
|
|
438
478
|
const cn = t4;
|
|
439
479
|
let t5;
|
|
440
|
-
if ($[
|
|
480
|
+
if ($[22] !== props || $[23] !== styles) {
|
|
441
481
|
t5 = "function" == typeof styles ? styles({
|
|
442
482
|
props
|
|
443
483
|
}) : styles;
|
|
444
|
-
$[
|
|
445
|
-
$[
|
|
446
|
-
$[
|
|
447
|
-
} else t5 = $[
|
|
484
|
+
$[22] = props;
|
|
485
|
+
$[23] = styles;
|
|
486
|
+
$[24] = t5;
|
|
487
|
+
} else t5 = $[24];
|
|
448
488
|
const st = t5;
|
|
449
489
|
const layer = zIndex ?? "calc(var(--tao-z-index-base) + var(--tao-z-index-popup-base) + 170)";
|
|
450
490
|
let t6;
|
|
451
|
-
if ($[
|
|
491
|
+
if ($[25] !== className || $[26] !== layer || $[27] !== props.scrollIntoViewOptions || $[28] !== steps || $[29] !== style || $[30] !== tokenStyle) {
|
|
452
492
|
let t7;
|
|
453
|
-
if ($[
|
|
454
|
-
t7 = (
|
|
493
|
+
if ($[32] !== className || $[33] !== layer || $[34] !== props.scrollIntoViewOptions || $[35] !== style || $[36] !== tokenStyle) {
|
|
494
|
+
t7 = (t8)=>{
|
|
495
|
+
const { onClose: _close, onFinish: _finish, onNext: _next, onPrev: _prev, ...step } = t8;
|
|
496
|
+
return {
|
|
455
497
|
...step,
|
|
498
|
+
scrollIntoViewOptions: step.scrollIntoViewOptions ?? props.scrollIntoViewOptions,
|
|
456
499
|
style: {
|
|
457
500
|
...tokenStyle,
|
|
458
501
|
position: "absolute",
|
|
@@ -463,96 +506,122 @@ function Tour(props) {
|
|
|
463
506
|
...step.style
|
|
464
507
|
},
|
|
465
508
|
className: cx(className, step.className)
|
|
466
|
-
}
|
|
467
|
-
|
|
468
|
-
$[
|
|
469
|
-
$[
|
|
470
|
-
$[
|
|
471
|
-
$[
|
|
472
|
-
|
|
509
|
+
};
|
|
510
|
+
};
|
|
511
|
+
$[32] = className;
|
|
512
|
+
$[33] = layer;
|
|
513
|
+
$[34] = props.scrollIntoViewOptions;
|
|
514
|
+
$[35] = style;
|
|
515
|
+
$[36] = tokenStyle;
|
|
516
|
+
$[37] = t7;
|
|
517
|
+
} else t7 = $[37];
|
|
473
518
|
t6 = steps.map(t7);
|
|
474
|
-
$[
|
|
475
|
-
$[
|
|
476
|
-
$[
|
|
477
|
-
$[
|
|
478
|
-
$[
|
|
479
|
-
$[
|
|
480
|
-
|
|
519
|
+
$[25] = className;
|
|
520
|
+
$[26] = layer;
|
|
521
|
+
$[27] = props.scrollIntoViewOptions;
|
|
522
|
+
$[28] = steps;
|
|
523
|
+
$[29] = style;
|
|
524
|
+
$[30] = tokenStyle;
|
|
525
|
+
$[31] = t6;
|
|
526
|
+
} else t6 = $[31];
|
|
481
527
|
const mergedSteps = t6;
|
|
482
|
-
const t7 =
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
528
|
+
const t7 = open ?? innerOpen;
|
|
529
|
+
let t8;
|
|
530
|
+
if ($[38] !== onClose || $[39] !== open) {
|
|
531
|
+
t8 = (current)=>{
|
|
532
|
+
if (void 0 === open) setInnerOpen(false);
|
|
533
|
+
onClose?.(current);
|
|
488
534
|
};
|
|
489
|
-
$[
|
|
490
|
-
$[
|
|
491
|
-
|
|
492
|
-
|
|
535
|
+
$[38] = onClose;
|
|
536
|
+
$[39] = open;
|
|
537
|
+
$[40] = t8;
|
|
538
|
+
} else t8 = $[40];
|
|
539
|
+
const t9 = props.builtinPlacements ?? _temp3;
|
|
540
|
+
const t10 = cn?.mask;
|
|
493
541
|
let t11;
|
|
494
|
-
if ($[
|
|
495
|
-
t11 =
|
|
542
|
+
if ($[41] !== t10) {
|
|
543
|
+
t11 = cx("tao-tour-mask-layer", t10);
|
|
544
|
+
$[41] = t10;
|
|
545
|
+
$[42] = t11;
|
|
546
|
+
} else t11 = $[42];
|
|
547
|
+
let t12;
|
|
548
|
+
if ($[43] !== t11) {
|
|
549
|
+
t12 = {
|
|
550
|
+
mask: t11
|
|
551
|
+
};
|
|
552
|
+
$[43] = t11;
|
|
553
|
+
$[44] = t12;
|
|
554
|
+
} else t12 = $[44];
|
|
555
|
+
const t13 = st?.mask;
|
|
556
|
+
let t14;
|
|
557
|
+
if ($[45] !== layer || $[46] !== t13 || $[47] !== tokenStyle) {
|
|
558
|
+
t14 = {
|
|
496
559
|
mask: {
|
|
497
560
|
...tokenStyle,
|
|
498
561
|
zIndex: layer,
|
|
499
|
-
...
|
|
562
|
+
...t13
|
|
500
563
|
}
|
|
501
564
|
};
|
|
502
|
-
$[
|
|
503
|
-
$[
|
|
504
|
-
$[
|
|
505
|
-
$[
|
|
506
|
-
} else
|
|
507
|
-
let
|
|
508
|
-
if ($[
|
|
509
|
-
|
|
565
|
+
$[45] = layer;
|
|
566
|
+
$[46] = t13;
|
|
567
|
+
$[47] = tokenStyle;
|
|
568
|
+
$[48] = t14;
|
|
569
|
+
} else t14 = $[48];
|
|
570
|
+
let t15;
|
|
571
|
+
if ($[49] !== actionsRender || $[50] !== cn || $[51] !== indicatorsRender || $[52] !== props.disabledInteraction || $[53] !== props.mask || $[54] !== st || $[55] !== steps || $[56] !== type) {
|
|
572
|
+
t15 = (step_0, current_0)=>/*#__PURE__*/ jsx(TourPanel, {
|
|
510
573
|
step: step_0,
|
|
511
|
-
|
|
574
|
+
stepActions: steps[current_0],
|
|
575
|
+
current: current_0,
|
|
512
576
|
type: type,
|
|
513
577
|
classes: cn,
|
|
514
578
|
styles: st,
|
|
515
579
|
indicatorsRender: indicatorsRender,
|
|
516
580
|
actionsRender: actionsRender,
|
|
517
|
-
|
|
581
|
+
masked: (step_0.mask ?? props.mask) !== false,
|
|
582
|
+
disabledInteraction: props.disabledInteraction
|
|
518
583
|
});
|
|
519
|
-
$[
|
|
520
|
-
$[
|
|
521
|
-
$[
|
|
522
|
-
$[
|
|
523
|
-
$[
|
|
524
|
-
$[
|
|
525
|
-
$[
|
|
526
|
-
$[
|
|
527
|
-
$[
|
|
528
|
-
} else
|
|
529
|
-
let
|
|
530
|
-
if ($[
|
|
531
|
-
|
|
584
|
+
$[49] = actionsRender;
|
|
585
|
+
$[50] = cn;
|
|
586
|
+
$[51] = indicatorsRender;
|
|
587
|
+
$[52] = props.disabledInteraction;
|
|
588
|
+
$[53] = props.mask;
|
|
589
|
+
$[54] = st;
|
|
590
|
+
$[55] = steps;
|
|
591
|
+
$[56] = type;
|
|
592
|
+
$[57] = t15;
|
|
593
|
+
} else t15 = $[57];
|
|
594
|
+
let t16;
|
|
595
|
+
if ($[58] !== keyboard || $[59] !== mergedSteps || $[60] !== prefixCls || $[61] !== rest || $[62] !== rootClassName || $[63] !== t12 || $[64] !== t14 || $[65] !== t15 || $[66] !== t7 || $[67] !== t8 || $[68] !== t9 || $[69] !== zIndex) {
|
|
596
|
+
t16 = /*#__PURE__*/ jsx(RcTourComponent, {
|
|
532
597
|
...rest,
|
|
598
|
+
open: t7,
|
|
599
|
+
onClose: t8,
|
|
533
600
|
prefixCls: prefixCls,
|
|
534
601
|
steps: mergedSteps,
|
|
535
602
|
keyboard: keyboard,
|
|
536
603
|
zIndex: zIndex,
|
|
537
|
-
builtinPlacements:
|
|
604
|
+
builtinPlacements: t9,
|
|
538
605
|
rootClassName: rootClassName,
|
|
539
|
-
classNames:
|
|
540
|
-
styles:
|
|
541
|
-
renderPanel:
|
|
606
|
+
classNames: t12,
|
|
607
|
+
styles: t14,
|
|
608
|
+
renderPanel: t15
|
|
542
609
|
});
|
|
543
|
-
$[
|
|
544
|
-
$[
|
|
545
|
-
$[
|
|
546
|
-
$[
|
|
547
|
-
$[
|
|
548
|
-
$[
|
|
549
|
-
$[
|
|
550
|
-
$[
|
|
551
|
-
$[
|
|
552
|
-
$[
|
|
553
|
-
$[
|
|
554
|
-
|
|
555
|
-
|
|
610
|
+
$[58] = keyboard;
|
|
611
|
+
$[59] = mergedSteps;
|
|
612
|
+
$[60] = prefixCls;
|
|
613
|
+
$[61] = rest;
|
|
614
|
+
$[62] = rootClassName;
|
|
615
|
+
$[63] = t12;
|
|
616
|
+
$[64] = t14;
|
|
617
|
+
$[65] = t15;
|
|
618
|
+
$[66] = t7;
|
|
619
|
+
$[67] = t8;
|
|
620
|
+
$[68] = t9;
|
|
621
|
+
$[69] = zIndex;
|
|
622
|
+
$[70] = t16;
|
|
623
|
+
} else t16 = $[70];
|
|
624
|
+
return t16;
|
|
556
625
|
}
|
|
557
626
|
function _temp3(config) {
|
|
558
627
|
return Object.fromEntries(Object.entries(getPlacements(config?.arrowPointAtCenter)).map(_temp2));
|