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