@rockshin/tao-ui 0.0.41 → 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 +69 -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
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { c } from "react-compiler-runtime";
|
|
3
|
+
import { FocusScope, FocusScopeBranchProvider, useFocusScopeBranchRegistry } from "@radix-ui/react-focus-scope";
|
|
3
4
|
import { useEffect, useRef } from "react";
|
|
5
|
+
import { RemoveScroll } from "react-remove-scroll";
|
|
4
6
|
import { TaoPortalScope } from "../../provider/tao-provider.js";
|
|
5
7
|
import { resolveResponsiveValue, useBreakpoint } from "../../utils/breakpoint.js";
|
|
6
8
|
import { DialogContent } from "../../utils/dialog-content.js";
|
|
7
9
|
import { preventParentOutsideDismiss } from "../../utils/portal.js";
|
|
8
10
|
import { cx } from "../../utils/semantic.js";
|
|
9
11
|
import { Button } from "../button/button.js";
|
|
12
|
+
import { useWatermarkPanelRef } from "../watermark/watermark-context.js";
|
|
10
13
|
import "./modal.css";
|
|
11
14
|
import * as __rspack_external__radix_ui_react_dialog_dabd8325 from "@radix-ui/react-dialog";
|
|
15
|
+
const ModalBranchProvider = FocusScopeBranchProvider;
|
|
12
16
|
function Modal(t0) {
|
|
13
|
-
const $ = c(
|
|
14
|
-
const { open, onClose, title, footer, onOk, okText: t1, cancelText: t2, confirmLoading, okButtonProps, cancelButtonProps, width: t3, centered: t4, closable: t5, maskClosable: t6, keyboard: t7, afterClose, destroyOnHidden:
|
|
17
|
+
const $ = c(170);
|
|
18
|
+
const { open, onClose, title, footer, onOk, okText: t1, cancelText: t2, confirmLoading, okButtonProps, cancelButtonProps, width: t3, centered: t4, closable: t5, maskClosable: t6, keyboard: t7, getContainer, mask: t8, zIndex, scrollLock: t9, closeIcon, modalRender, wrapProps, transitionName, maskTransitionName, focusTriggerAfterClose, autoFocusButton, focusable, afterClose, destroyOnHidden: t10, children, classNames, styles: stylesProp, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, "aria-describedby": ariaDescribedBy } = t0;
|
|
15
19
|
const okText = void 0 === t1 ? "OK" : t1;
|
|
16
20
|
const cancelText = void 0 === t2 ? "Cancel" : t2;
|
|
17
21
|
const width = void 0 === t3 ? 520 : t3;
|
|
@@ -19,179 +23,189 @@ function Modal(t0) {
|
|
|
19
23
|
const closable = void 0 === t5 ? true : t5;
|
|
20
24
|
const maskClosable = void 0 === t6 ? true : t6;
|
|
21
25
|
const keyboard = void 0 === t7 ? true : t7;
|
|
22
|
-
const
|
|
26
|
+
const mask = void 0 === t8 ? true : t8;
|
|
27
|
+
const scrollLock = void 0 === t9 ? true : t9;
|
|
28
|
+
const destroyOnHidden = void 0 === t10 ? true : t10;
|
|
29
|
+
const watermarkRef = useWatermarkPanelRef();
|
|
30
|
+
const contentRef = useRef(null);
|
|
31
|
+
const { nodes: focusBranches, registry: focusRegistry } = useFocusScopeBranchRegistry();
|
|
32
|
+
const restoreFocusRef = useRef(null);
|
|
33
|
+
let t11;
|
|
34
|
+
if ($[0] !== watermarkRef) {
|
|
35
|
+
t11 = (node)=>{
|
|
36
|
+
contentRef.current = node;
|
|
37
|
+
watermarkRef(node);
|
|
38
|
+
};
|
|
39
|
+
$[0] = watermarkRef;
|
|
40
|
+
$[1] = t11;
|
|
41
|
+
} else t11 = $[1];
|
|
42
|
+
const setContentRef = t11;
|
|
23
43
|
const prevOpen = useRef(open);
|
|
24
|
-
let
|
|
25
|
-
let
|
|
26
|
-
if ($[
|
|
27
|
-
|
|
28
|
-
if (prevOpen.current && !open)
|
|
44
|
+
let t12;
|
|
45
|
+
let t13;
|
|
46
|
+
if ($[2] !== afterClose || $[3] !== closable || $[4] !== open) {
|
|
47
|
+
t12 = ()=>{
|
|
48
|
+
if (prevOpen.current && !open) {
|
|
49
|
+
afterClose?.();
|
|
50
|
+
if ("object" == typeof closable) closable.afterClose?.();
|
|
51
|
+
}
|
|
29
52
|
prevOpen.current = open;
|
|
30
53
|
};
|
|
31
|
-
|
|
54
|
+
t13 = [
|
|
32
55
|
open,
|
|
33
|
-
afterClose
|
|
56
|
+
afterClose,
|
|
57
|
+
closable
|
|
34
58
|
];
|
|
35
|
-
$[
|
|
36
|
-
$[
|
|
37
|
-
$[
|
|
38
|
-
$[
|
|
59
|
+
$[2] = afterClose;
|
|
60
|
+
$[3] = closable;
|
|
61
|
+
$[4] = open;
|
|
62
|
+
$[5] = t12;
|
|
63
|
+
$[6] = t13;
|
|
39
64
|
} else {
|
|
40
|
-
|
|
41
|
-
|
|
65
|
+
t12 = $[5];
|
|
66
|
+
t13 = $[6];
|
|
42
67
|
}
|
|
43
|
-
useEffect(
|
|
68
|
+
useEffect(t12, t13);
|
|
44
69
|
const screens = useBreakpoint();
|
|
45
|
-
let t11;
|
|
46
|
-
if ($[4] !== screens || $[5] !== width) {
|
|
47
|
-
t11 = resolveResponsiveValue(width, screens) ?? 520;
|
|
48
|
-
$[4] = screens;
|
|
49
|
-
$[5] = width;
|
|
50
|
-
$[6] = t11;
|
|
51
|
-
} else t11 = $[6];
|
|
52
|
-
const resolvedWidth = t11;
|
|
53
|
-
const t12 = "number" == typeof resolvedWidth ? `${resolvedWidth}px` : resolvedWidth;
|
|
54
|
-
const t13 = stylesProp?.root;
|
|
55
70
|
let t14;
|
|
56
|
-
if ($[7] !==
|
|
57
|
-
t14 =
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
};
|
|
61
|
-
$[7] = t12;
|
|
62
|
-
$[8] = t13;
|
|
71
|
+
if ($[7] !== screens || $[8] !== width) {
|
|
72
|
+
t14 = resolveResponsiveValue(width, screens) ?? 520;
|
|
73
|
+
$[7] = screens;
|
|
74
|
+
$[8] = width;
|
|
63
75
|
$[9] = t14;
|
|
64
76
|
} else t14 = $[9];
|
|
65
|
-
const
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
77
|
+
const resolvedWidth = t14;
|
|
78
|
+
const t15 = "number" == typeof resolvedWidth ? `${resolvedWidth}px` : resolvedWidth;
|
|
79
|
+
const t16 = stylesProp?.root;
|
|
80
|
+
const t17 = stylesProp?.container;
|
|
81
|
+
let t18;
|
|
82
|
+
if ($[10] !== t15 || $[11] !== t16 || $[12] !== t17) {
|
|
83
|
+
t18 = {
|
|
84
|
+
pointerEvents: "auto",
|
|
85
|
+
width: t15,
|
|
86
|
+
...t16,
|
|
87
|
+
...t17
|
|
88
|
+
};
|
|
89
|
+
$[10] = t15;
|
|
90
|
+
$[11] = t16;
|
|
91
|
+
$[12] = t17;
|
|
92
|
+
$[13] = t18;
|
|
93
|
+
} else t18 = $[13];
|
|
94
|
+
const contentStyle = t18;
|
|
95
|
+
let t19;
|
|
96
|
+
if ($[14] !== cancelButtonProps || $[15] !== cancelText || $[16] !== onClose) {
|
|
97
|
+
t19 = ()=>/*#__PURE__*/ jsx(Button, {
|
|
69
98
|
variant: "secondary",
|
|
70
99
|
onClick: onClose,
|
|
100
|
+
"data-tao-modal-action": "cancel",
|
|
71
101
|
...cancelButtonProps,
|
|
72
102
|
children: cancelText
|
|
73
103
|
});
|
|
74
|
-
$[
|
|
75
|
-
$[
|
|
76
|
-
$[
|
|
77
|
-
$[
|
|
78
|
-
} else
|
|
79
|
-
const CancelBtn =
|
|
80
|
-
let
|
|
81
|
-
if ($[
|
|
82
|
-
|
|
104
|
+
$[14] = cancelButtonProps;
|
|
105
|
+
$[15] = cancelText;
|
|
106
|
+
$[16] = onClose;
|
|
107
|
+
$[17] = t19;
|
|
108
|
+
} else t19 = $[17];
|
|
109
|
+
const CancelBtn = t19;
|
|
110
|
+
let t20;
|
|
111
|
+
if ($[18] !== confirmLoading || $[19] !== okButtonProps || $[20] !== okText || $[21] !== onOk) {
|
|
112
|
+
t20 = ()=>/*#__PURE__*/ jsx(Button, {
|
|
83
113
|
variant: "primary",
|
|
84
114
|
loading: confirmLoading,
|
|
85
115
|
onClick: onOk,
|
|
116
|
+
"data-tao-modal-action": "ok",
|
|
86
117
|
...okButtonProps,
|
|
87
118
|
children: okText
|
|
88
119
|
});
|
|
89
|
-
$[
|
|
90
|
-
$[
|
|
91
|
-
$[
|
|
92
|
-
$[
|
|
93
|
-
$[
|
|
94
|
-
} else
|
|
95
|
-
const OkBtn =
|
|
96
|
-
let
|
|
97
|
-
if ($[
|
|
98
|
-
|
|
99
|
-
$[
|
|
100
|
-
$[
|
|
101
|
-
} else
|
|
102
|
-
let
|
|
103
|
-
if ($[
|
|
104
|
-
|
|
105
|
-
$[
|
|
106
|
-
$[
|
|
107
|
-
} else
|
|
108
|
-
let
|
|
109
|
-
if ($[
|
|
110
|
-
|
|
120
|
+
$[18] = confirmLoading;
|
|
121
|
+
$[19] = okButtonProps;
|
|
122
|
+
$[20] = okText;
|
|
123
|
+
$[21] = onOk;
|
|
124
|
+
$[22] = t20;
|
|
125
|
+
} else t20 = $[22];
|
|
126
|
+
const OkBtn = t20;
|
|
127
|
+
let t21;
|
|
128
|
+
if ($[23] !== CancelBtn) {
|
|
129
|
+
t21 = /*#__PURE__*/ jsx(CancelBtn, {});
|
|
130
|
+
$[23] = CancelBtn;
|
|
131
|
+
$[24] = t21;
|
|
132
|
+
} else t21 = $[24];
|
|
133
|
+
let t22;
|
|
134
|
+
if ($[25] !== OkBtn) {
|
|
135
|
+
t22 = /*#__PURE__*/ jsx(OkBtn, {});
|
|
136
|
+
$[25] = OkBtn;
|
|
137
|
+
$[26] = t22;
|
|
138
|
+
} else t22 = $[26];
|
|
139
|
+
let t23;
|
|
140
|
+
if ($[27] !== t21 || $[28] !== t22) {
|
|
141
|
+
t23 = /*#__PURE__*/ jsxs(Fragment, {
|
|
111
142
|
children: [
|
|
112
|
-
|
|
113
|
-
|
|
143
|
+
t21,
|
|
144
|
+
t22
|
|
114
145
|
]
|
|
115
146
|
});
|
|
116
|
-
$[
|
|
117
|
-
$[
|
|
118
|
-
$[
|
|
119
|
-
} else
|
|
120
|
-
const defaultFooter =
|
|
147
|
+
$[27] = t21;
|
|
148
|
+
$[28] = t22;
|
|
149
|
+
$[29] = t23;
|
|
150
|
+
} else t23 = $[29];
|
|
151
|
+
const defaultFooter = t23;
|
|
121
152
|
let footerContent;
|
|
122
153
|
if (void 0 === footer) footerContent = defaultFooter;
|
|
123
154
|
else if ("function" == typeof footer) {
|
|
124
|
-
let
|
|
125
|
-
if ($[
|
|
126
|
-
|
|
155
|
+
let t24;
|
|
156
|
+
if ($[30] !== CancelBtn || $[31] !== OkBtn || $[32] !== defaultFooter || $[33] !== footer) {
|
|
157
|
+
t24 = footer(defaultFooter, {
|
|
127
158
|
OkBtn,
|
|
128
159
|
CancelBtn
|
|
129
160
|
});
|
|
130
|
-
$[
|
|
131
|
-
$[
|
|
132
|
-
$[
|
|
133
|
-
$[
|
|
134
|
-
$[
|
|
135
|
-
} else
|
|
136
|
-
footerContent =
|
|
161
|
+
$[30] = CancelBtn;
|
|
162
|
+
$[31] = OkBtn;
|
|
163
|
+
$[32] = defaultFooter;
|
|
164
|
+
$[33] = footer;
|
|
165
|
+
$[34] = t24;
|
|
166
|
+
} else t24 = $[34];
|
|
167
|
+
footerContent = t24;
|
|
137
168
|
} else footerContent = footer;
|
|
138
169
|
const keepAlive = !destroyOnHidden;
|
|
139
170
|
const forceMount = keepAlive ? true : void 0;
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
171
|
+
const closeOnMask = "object" == typeof mask ? mask.closable ?? maskClosable : maskClosable;
|
|
172
|
+
const showMask = "object" == typeof mask ? false !== mask.enabled : mask;
|
|
173
|
+
const closeConfig = "object" == typeof closable ? closable : void 0;
|
|
174
|
+
const mergedCloseIcon = closeConfig?.closeIcon !== void 0 ? closeConfig.closeIcon : closeIcon;
|
|
175
|
+
const showClose = closable && null !== mergedCloseIcon && false !== mergedCloseIcon;
|
|
176
|
+
const trapFocus = focusable?.trap ?? true;
|
|
177
|
+
const customInteraction = !scrollLock || !trapFocus;
|
|
178
|
+
let t24;
|
|
179
|
+
if ($[35] !== autoFocusButton || $[36] !== focusable) {
|
|
180
|
+
t24 = (event)=>{
|
|
181
|
+
restoreFocusRef.current = document.activeElement;
|
|
182
|
+
const button = focusable?.autoFocusButton !== void 0 ? focusable.autoFocusButton : autoFocusButton;
|
|
183
|
+
if (null === button) event.preventDefault();
|
|
184
|
+
else if (button) {
|
|
185
|
+
event.preventDefault();
|
|
186
|
+
contentRef.current?.querySelector(`[data-tao-modal-action="${button}"]`)?.focus();
|
|
187
|
+
}
|
|
144
188
|
};
|
|
145
|
-
$[
|
|
146
|
-
$[
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
t21 = (!keepAlive || open) && /*#__PURE__*/ jsx(__rspack_external__radix_ui_react_dialog_dabd8325.Overlay, {
|
|
151
|
-
forceMount: forceMount,
|
|
152
|
-
"data-tao-modal-overlay": "",
|
|
153
|
-
className: cx(classNames?.overlay),
|
|
154
|
-
style: stylesProp?.overlay,
|
|
155
|
-
onClick: maskClosable ? onClose : void 0
|
|
156
|
-
});
|
|
157
|
-
$[33] = classNames?.overlay;
|
|
158
|
-
$[34] = forceMount;
|
|
159
|
-
$[35] = keepAlive;
|
|
160
|
-
$[36] = maskClosable;
|
|
161
|
-
$[37] = onClose;
|
|
162
|
-
$[38] = open;
|
|
163
|
-
$[39] = stylesProp?.overlay;
|
|
164
|
-
$[40] = t21;
|
|
165
|
-
} else t21 = $[40];
|
|
166
|
-
const t22 = centered ? "" : void 0;
|
|
167
|
-
const t23 = open ? "" : void 0;
|
|
168
|
-
const t24 = classNames?.root;
|
|
189
|
+
$[35] = autoFocusButton;
|
|
190
|
+
$[36] = focusable;
|
|
191
|
+
$[37] = t24;
|
|
192
|
+
} else t24 = $[37];
|
|
193
|
+
const openAutoFocus = t24;
|
|
169
194
|
let t25;
|
|
170
|
-
if ($[
|
|
171
|
-
t25 =
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
let t26;
|
|
176
|
-
if ($[43] !== ariaLabel || $[44] !== ariaLabelledBy) {
|
|
177
|
-
t26 = ariaLabel || ariaLabelledBy ? {
|
|
178
|
-
"aria-labelledby": ariaLabelledBy
|
|
179
|
-
} : {};
|
|
180
|
-
$[43] = ariaLabel;
|
|
181
|
-
$[44] = ariaLabelledBy;
|
|
182
|
-
$[45] = t26;
|
|
183
|
-
} else t26 = $[45];
|
|
184
|
-
let t27;
|
|
185
|
-
if ($[46] !== keyboard) {
|
|
186
|
-
t27 = (e)=>{
|
|
187
|
-
if (!keyboard) e.preventDefault();
|
|
195
|
+
if ($[38] !== focusTriggerAfterClose || $[39] !== focusable?.focusTriggerAfterClose) {
|
|
196
|
+
t25 = (event_0)=>{
|
|
197
|
+
const restore = focusable?.focusTriggerAfterClose ?? focusTriggerAfterClose;
|
|
198
|
+
if (void 0 !== restore) event_0.preventDefault();
|
|
199
|
+
if (restore) restoreFocusRef.current?.focus();
|
|
188
200
|
};
|
|
189
|
-
$[
|
|
190
|
-
$[
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
201
|
+
$[38] = focusTriggerAfterClose;
|
|
202
|
+
$[39] = focusable?.focusTriggerAfterClose;
|
|
203
|
+
$[40] = t25;
|
|
204
|
+
} else t25 = $[40];
|
|
205
|
+
const closeAutoFocus = t25;
|
|
206
|
+
let t26;
|
|
207
|
+
if ($[41] !== classNames?.close || $[42] !== classNames?.header || $[43] !== classNames?.title || $[44] !== closeConfig || $[45] !== mergedCloseIcon || $[46] !== onClose || $[47] !== showClose || $[48] !== stylesProp?.close || $[49] !== stylesProp?.header || $[50] !== stylesProp?.title || $[51] !== title) {
|
|
208
|
+
t26 = (null != title || showClose) && /*#__PURE__*/ jsxs("div", {
|
|
195
209
|
"data-tao-modal-header": "",
|
|
196
210
|
className: cx(classNames?.header),
|
|
197
211
|
style: stylesProp?.header,
|
|
@@ -207,145 +221,424 @@ function Modal(t0) {
|
|
|
207
221
|
display: "none"
|
|
208
222
|
}
|
|
209
223
|
}),
|
|
210
|
-
|
|
224
|
+
showClose && /*#__PURE__*/ jsx("button", {
|
|
211
225
|
type: "button",
|
|
212
226
|
"data-tao-modal-close": "",
|
|
213
227
|
className: cx(classNames?.close),
|
|
214
228
|
style: stylesProp?.close,
|
|
215
|
-
onClick:
|
|
216
|
-
|
|
217
|
-
|
|
229
|
+
onClick: ()=>{
|
|
230
|
+
closeConfig?.onClose?.();
|
|
231
|
+
onClose?.();
|
|
232
|
+
},
|
|
233
|
+
disabled: closeConfig?.disabled,
|
|
234
|
+
"aria-label": closeConfig?.["aria-label"] ?? "Close",
|
|
235
|
+
children: mergedCloseIcon ?? /*#__PURE__*/ jsx(CloseIcon, {})
|
|
218
236
|
})
|
|
219
237
|
]
|
|
220
238
|
});
|
|
221
|
-
$[
|
|
222
|
-
$[
|
|
223
|
-
$[
|
|
224
|
-
$[
|
|
225
|
-
$[
|
|
226
|
-
$[
|
|
227
|
-
$[
|
|
228
|
-
$[
|
|
229
|
-
$[
|
|
230
|
-
$[
|
|
231
|
-
|
|
232
|
-
|
|
239
|
+
$[41] = classNames?.close;
|
|
240
|
+
$[42] = classNames?.header;
|
|
241
|
+
$[43] = classNames?.title;
|
|
242
|
+
$[44] = closeConfig;
|
|
243
|
+
$[45] = mergedCloseIcon;
|
|
244
|
+
$[46] = onClose;
|
|
245
|
+
$[47] = showClose;
|
|
246
|
+
$[48] = stylesProp?.close;
|
|
247
|
+
$[49] = stylesProp?.header;
|
|
248
|
+
$[50] = stylesProp?.title;
|
|
249
|
+
$[51] = title;
|
|
250
|
+
$[52] = t26;
|
|
251
|
+
} else t26 = $[52];
|
|
252
|
+
const t27 = classNames?.body;
|
|
253
|
+
let t28;
|
|
254
|
+
if ($[53] !== t27) {
|
|
255
|
+
t28 = cx(t27);
|
|
256
|
+
$[53] = t27;
|
|
257
|
+
$[54] = t28;
|
|
258
|
+
} else t28 = $[54];
|
|
259
|
+
const t29 = stylesProp?.body;
|
|
233
260
|
let t30;
|
|
234
|
-
if ($[
|
|
235
|
-
t30 =
|
|
236
|
-
$[58] = t29;
|
|
237
|
-
$[59] = t30;
|
|
238
|
-
} else t30 = $[59];
|
|
239
|
-
const t31 = stylesProp?.body;
|
|
240
|
-
let t32;
|
|
241
|
-
if ($[60] !== children || $[61] !== t30 || $[62] !== t31) {
|
|
242
|
-
t32 = /*#__PURE__*/ jsx("div", {
|
|
261
|
+
if ($[55] !== children || $[56] !== t28 || $[57] !== t29) {
|
|
262
|
+
t30 = /*#__PURE__*/ jsx("div", {
|
|
243
263
|
"data-tao-modal-body": "",
|
|
244
|
-
className:
|
|
245
|
-
style:
|
|
264
|
+
className: t28,
|
|
265
|
+
style: t29,
|
|
246
266
|
children: children
|
|
247
267
|
});
|
|
248
|
-
$[
|
|
249
|
-
$[
|
|
250
|
-
$[
|
|
251
|
-
$[
|
|
252
|
-
} else
|
|
253
|
-
let
|
|
254
|
-
if ($[
|
|
255
|
-
|
|
268
|
+
$[55] = children;
|
|
269
|
+
$[56] = t28;
|
|
270
|
+
$[57] = t29;
|
|
271
|
+
$[58] = t30;
|
|
272
|
+
} else t30 = $[58];
|
|
273
|
+
let t31;
|
|
274
|
+
if ($[59] !== classNames?.footer || $[60] !== footerContent || $[61] !== stylesProp?.footer) {
|
|
275
|
+
t31 = null != footerContent && /*#__PURE__*/ jsx("div", {
|
|
256
276
|
"data-tao-modal-footer": "",
|
|
257
277
|
className: cx(classNames?.footer),
|
|
258
278
|
style: stylesProp?.footer,
|
|
259
279
|
children: footerContent
|
|
260
280
|
});
|
|
261
|
-
$[
|
|
262
|
-
$[
|
|
263
|
-
$[
|
|
281
|
+
$[59] = classNames?.footer;
|
|
282
|
+
$[60] = footerContent;
|
|
283
|
+
$[61] = stylesProp?.footer;
|
|
284
|
+
$[62] = t31;
|
|
285
|
+
} else t31 = $[62];
|
|
286
|
+
let t32;
|
|
287
|
+
if ($[63] !== t26 || $[64] !== t30 || $[65] !== t31) {
|
|
288
|
+
t32 = /*#__PURE__*/ jsxs(Fragment, {
|
|
289
|
+
children: [
|
|
290
|
+
t26,
|
|
291
|
+
t30,
|
|
292
|
+
t31
|
|
293
|
+
]
|
|
294
|
+
});
|
|
295
|
+
$[63] = t26;
|
|
296
|
+
$[64] = t30;
|
|
297
|
+
$[65] = t31;
|
|
298
|
+
$[66] = t32;
|
|
299
|
+
} else t32 = $[66];
|
|
300
|
+
const contents = t32;
|
|
301
|
+
const t33 = classNames?.root;
|
|
302
|
+
const t34 = classNames?.container;
|
|
303
|
+
let t35;
|
|
304
|
+
if ($[67] !== t33 || $[68] !== t34 || $[69] !== transitionName) {
|
|
305
|
+
t35 = cx(t33, t34, transitionName);
|
|
264
306
|
$[67] = t33;
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
307
|
+
$[68] = t34;
|
|
308
|
+
$[69] = transitionName;
|
|
309
|
+
$[70] = t35;
|
|
310
|
+
} else t35 = $[70];
|
|
311
|
+
let t36;
|
|
312
|
+
if ($[71] !== ariaLabel || $[72] !== ariaLabelledBy) {
|
|
313
|
+
t36 = ariaLabel || ariaLabelledBy ? {
|
|
314
|
+
"aria-labelledby": ariaLabelledBy
|
|
315
|
+
} : {};
|
|
316
|
+
$[71] = ariaLabel;
|
|
317
|
+
$[72] = ariaLabelledBy;
|
|
318
|
+
$[73] = t36;
|
|
319
|
+
} else t36 = $[73];
|
|
320
|
+
let t37;
|
|
321
|
+
if ($[74] !== customInteraction || $[75] !== openAutoFocus) {
|
|
322
|
+
t37 = customInteraction ? _temp : openAutoFocus;
|
|
323
|
+
$[74] = customInteraction;
|
|
324
|
+
$[75] = openAutoFocus;
|
|
325
|
+
$[76] = t37;
|
|
326
|
+
} else t37 = $[76];
|
|
327
|
+
let t38;
|
|
328
|
+
if ($[77] !== closeAutoFocus || $[78] !== customInteraction) {
|
|
329
|
+
t38 = customInteraction ? _temp2 : closeAutoFocus;
|
|
330
|
+
$[77] = closeAutoFocus;
|
|
331
|
+
$[78] = customInteraction;
|
|
332
|
+
$[79] = t38;
|
|
333
|
+
} else t38 = $[79];
|
|
334
|
+
let t39;
|
|
335
|
+
if ($[80] !== keyboard) {
|
|
336
|
+
t39 = (event_3)=>{
|
|
337
|
+
if (!keyboard) event_3.preventDefault();
|
|
338
|
+
};
|
|
339
|
+
$[80] = keyboard;
|
|
340
|
+
$[81] = t39;
|
|
341
|
+
} else t39 = $[81];
|
|
342
|
+
let t40;
|
|
343
|
+
if ($[82] !== contents || $[83] !== customInteraction || $[84] !== focusRegistry) {
|
|
344
|
+
t40 = customInteraction ? /*#__PURE__*/ jsx(ModalBranchProvider, {
|
|
345
|
+
registry: focusRegistry,
|
|
346
|
+
children: contents
|
|
347
|
+
}) : contents;
|
|
348
|
+
$[82] = contents;
|
|
349
|
+
$[83] = customInteraction;
|
|
350
|
+
$[84] = focusRegistry;
|
|
351
|
+
$[85] = t40;
|
|
352
|
+
} else t40 = $[85];
|
|
353
|
+
let t41;
|
|
354
|
+
if ($[86] !== ariaDescribedBy || $[87] !== ariaLabel || $[88] !== contentStyle || $[89] !== forceMount || $[90] !== keepAlive || $[91] !== open || $[92] !== setContentRef || $[93] !== t35 || $[94] !== t36 || $[95] !== t37 || $[96] !== t38 || $[97] !== t39 || $[98] !== t40) {
|
|
355
|
+
t41 = /*#__PURE__*/ jsx(DialogContent, {
|
|
356
|
+
contentRef: setContentRef,
|
|
269
357
|
open: open,
|
|
270
358
|
keepAlive: keepAlive,
|
|
271
359
|
forceMount: forceMount,
|
|
272
360
|
"data-tao-modal": "",
|
|
273
361
|
style: contentStyle,
|
|
274
|
-
className:
|
|
362
|
+
className: t35,
|
|
363
|
+
"aria-modal": true,
|
|
275
364
|
"aria-label": ariaLabel,
|
|
276
|
-
...
|
|
365
|
+
...t36,
|
|
277
366
|
"aria-describedby": ariaDescribedBy,
|
|
278
|
-
|
|
367
|
+
onOpenAutoFocus: t37,
|
|
368
|
+
onCloseAutoFocus: t38,
|
|
369
|
+
onEscapeKeyDown: t39,
|
|
279
370
|
onPointerDownOutside: preventParentOutsideDismiss,
|
|
280
371
|
onInteractOutside: preventParentOutsideDismiss,
|
|
281
|
-
children:
|
|
282
|
-
t28,
|
|
283
|
-
t32,
|
|
284
|
-
t33
|
|
285
|
-
]
|
|
372
|
+
children: t40
|
|
286
373
|
});
|
|
287
|
-
$[
|
|
288
|
-
$[
|
|
289
|
-
$[
|
|
290
|
-
$[
|
|
291
|
-
$[
|
|
292
|
-
$[
|
|
293
|
-
$[
|
|
294
|
-
$[
|
|
295
|
-
$[
|
|
296
|
-
$[
|
|
297
|
-
$[
|
|
298
|
-
$[
|
|
299
|
-
$[
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
374
|
+
$[86] = ariaDescribedBy;
|
|
375
|
+
$[87] = ariaLabel;
|
|
376
|
+
$[88] = contentStyle;
|
|
377
|
+
$[89] = forceMount;
|
|
378
|
+
$[90] = keepAlive;
|
|
379
|
+
$[91] = open;
|
|
380
|
+
$[92] = setContentRef;
|
|
381
|
+
$[93] = t35;
|
|
382
|
+
$[94] = t36;
|
|
383
|
+
$[95] = t37;
|
|
384
|
+
$[96] = t38;
|
|
385
|
+
$[97] = t39;
|
|
386
|
+
$[98] = t40;
|
|
387
|
+
$[99] = t41;
|
|
388
|
+
} else t41 = $[99];
|
|
389
|
+
const content = t41;
|
|
390
|
+
let t42;
|
|
391
|
+
if ($[100] !== classNames?.mask || $[101] !== classNames?.overlay || $[102] !== closeOnMask || $[103] !== customInteraction || $[104] !== forceMount || $[105] !== keepAlive || $[106] !== mask || $[107] !== maskTransitionName || $[108] !== onClose || $[109] !== open || $[110] !== showMask || $[111] !== stylesProp?.mask || $[112] !== stylesProp?.overlay || $[113] !== zIndex) {
|
|
392
|
+
t42 = !customInteraction && (!keepAlive || open) && /*#__PURE__*/ jsx(__rspack_external__radix_ui_react_dialog_dabd8325.Overlay, {
|
|
393
|
+
forceMount: forceMount,
|
|
394
|
+
"data-tao-modal-overlay": "",
|
|
395
|
+
className: cx(classNames?.overlay, classNames?.mask, maskTransitionName),
|
|
396
|
+
style: {
|
|
397
|
+
zIndex,
|
|
398
|
+
...!showMask ? {
|
|
399
|
+
background: "transparent",
|
|
400
|
+
backdropFilter: "none",
|
|
401
|
+
pointerEvents: "none"
|
|
402
|
+
} : {},
|
|
403
|
+
..."object" == typeof mask && false === mask.blur ? {
|
|
404
|
+
backdropFilter: "none"
|
|
405
|
+
} : {},
|
|
406
|
+
...stylesProp?.overlay,
|
|
407
|
+
...stylesProp?.mask
|
|
408
|
+
},
|
|
409
|
+
onClick: closeOnMask ? onClose : void 0
|
|
410
|
+
});
|
|
411
|
+
$[100] = classNames?.mask;
|
|
412
|
+
$[101] = classNames?.overlay;
|
|
413
|
+
$[102] = closeOnMask;
|
|
414
|
+
$[103] = customInteraction;
|
|
415
|
+
$[104] = forceMount;
|
|
416
|
+
$[105] = keepAlive;
|
|
417
|
+
$[106] = mask;
|
|
418
|
+
$[107] = maskTransitionName;
|
|
419
|
+
$[108] = onClose;
|
|
420
|
+
$[109] = open;
|
|
421
|
+
$[110] = showMask;
|
|
422
|
+
$[111] = stylesProp?.mask;
|
|
423
|
+
$[112] = stylesProp?.overlay;
|
|
424
|
+
$[113] = zIndex;
|
|
425
|
+
$[114] = t42;
|
|
426
|
+
} else t42 = $[114];
|
|
427
|
+
let t43;
|
|
428
|
+
if ($[115] !== classNames?.mask || $[116] !== classNames?.overlay || $[117] !== closeOnMask || $[118] !== customInteraction || $[119] !== mask || $[120] !== maskTransitionName || $[121] !== onClose || $[122] !== open || $[123] !== showMask || $[124] !== stylesProp?.mask || $[125] !== stylesProp?.overlay || $[126] !== zIndex) {
|
|
429
|
+
t43 = customInteraction && showMask && open && /*#__PURE__*/ jsx("div", {
|
|
430
|
+
"data-tao-modal-overlay": "",
|
|
431
|
+
role: "presentation",
|
|
432
|
+
className: cx(classNames?.overlay, classNames?.mask, maskTransitionName),
|
|
433
|
+
style: {
|
|
434
|
+
zIndex,
|
|
435
|
+
..."object" == typeof mask && false === mask.blur ? {
|
|
436
|
+
backdropFilter: "none"
|
|
437
|
+
} : {},
|
|
438
|
+
...stylesProp?.overlay,
|
|
439
|
+
...stylesProp?.mask
|
|
440
|
+
},
|
|
441
|
+
onPointerDown: closeOnMask ? onClose : void 0
|
|
442
|
+
});
|
|
443
|
+
$[115] = classNames?.mask;
|
|
444
|
+
$[116] = classNames?.overlay;
|
|
445
|
+
$[117] = closeOnMask;
|
|
446
|
+
$[118] = customInteraction;
|
|
447
|
+
$[119] = mask;
|
|
448
|
+
$[120] = maskTransitionName;
|
|
449
|
+
$[121] = onClose;
|
|
450
|
+
$[122] = open;
|
|
451
|
+
$[123] = showMask;
|
|
452
|
+
$[124] = stylesProp?.mask;
|
|
453
|
+
$[125] = stylesProp?.overlay;
|
|
454
|
+
$[126] = zIndex;
|
|
455
|
+
$[127] = t43;
|
|
456
|
+
} else t43 = $[127];
|
|
457
|
+
const t44 = centered ? "" : void 0;
|
|
458
|
+
const t45 = open ? "" : void 0;
|
|
459
|
+
const t46 = classNames?.wrapper;
|
|
460
|
+
const t47 = wrapProps?.className;
|
|
461
|
+
let t48;
|
|
462
|
+
if ($[128] !== t46 || $[129] !== t47) {
|
|
463
|
+
t48 = cx(t46, t47);
|
|
464
|
+
$[128] = t46;
|
|
465
|
+
$[129] = t47;
|
|
466
|
+
$[130] = t48;
|
|
467
|
+
} else t48 = $[130];
|
|
468
|
+
const t49 = void 0 === zIndex ? void 0 : zIndex + 1;
|
|
469
|
+
const t50 = stylesProp?.wrapper;
|
|
470
|
+
const t51 = wrapProps?.style;
|
|
471
|
+
let t52;
|
|
472
|
+
if ($[131] !== t49 || $[132] !== t50 || $[133] !== t51) {
|
|
473
|
+
t52 = {
|
|
474
|
+
pointerEvents: "none",
|
|
475
|
+
zIndex: t49,
|
|
476
|
+
...t50,
|
|
477
|
+
...t51
|
|
478
|
+
};
|
|
479
|
+
$[131] = t49;
|
|
480
|
+
$[132] = t50;
|
|
481
|
+
$[133] = t51;
|
|
482
|
+
$[134] = t52;
|
|
483
|
+
} else t52 = $[134];
|
|
484
|
+
let t53;
|
|
485
|
+
if ($[135] !== closeAutoFocus || $[136] !== content || $[137] !== customInteraction || $[138] !== focusBranches || $[139] !== modalRender || $[140] !== open || $[141] !== openAutoFocus || $[142] !== scrollLock || $[143] !== trapFocus) {
|
|
486
|
+
t53 = customInteraction ? /*#__PURE__*/ jsx(ModalInteractionScope, {
|
|
487
|
+
open: open,
|
|
488
|
+
scrollLock: scrollLock,
|
|
489
|
+
trapFocus: trapFocus,
|
|
490
|
+
branches: focusBranches,
|
|
491
|
+
onOpenAutoFocus: openAutoFocus,
|
|
492
|
+
onCloseAutoFocus: closeAutoFocus,
|
|
493
|
+
children: modalRender ? modalRender(content) : content
|
|
494
|
+
}) : modalRender ? modalRender(content) : content;
|
|
495
|
+
$[135] = closeAutoFocus;
|
|
496
|
+
$[136] = content;
|
|
497
|
+
$[137] = customInteraction;
|
|
498
|
+
$[138] = focusBranches;
|
|
499
|
+
$[139] = modalRender;
|
|
500
|
+
$[140] = open;
|
|
501
|
+
$[141] = openAutoFocus;
|
|
502
|
+
$[142] = scrollLock;
|
|
503
|
+
$[143] = trapFocus;
|
|
504
|
+
$[144] = t53;
|
|
505
|
+
} else t53 = $[144];
|
|
506
|
+
let t54;
|
|
507
|
+
if ($[145] !== t44 || $[146] !== t45 || $[147] !== t48 || $[148] !== t52 || $[149] !== t53 || $[150] !== wrapProps) {
|
|
508
|
+
t54 = /*#__PURE__*/ jsx("div", {
|
|
509
|
+
...wrapProps,
|
|
510
|
+
role: "presentation",
|
|
304
511
|
"data-tao-modal-wrap": "",
|
|
305
|
-
"data-tao-centered":
|
|
306
|
-
"data-tao-open":
|
|
307
|
-
|
|
512
|
+
"data-tao-centered": t44,
|
|
513
|
+
"data-tao-open": t45,
|
|
514
|
+
className: t48,
|
|
515
|
+
style: t52,
|
|
516
|
+
children: t53
|
|
308
517
|
});
|
|
309
|
-
$[
|
|
310
|
-
$[
|
|
311
|
-
$[
|
|
312
|
-
$[
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
518
|
+
$[145] = t44;
|
|
519
|
+
$[146] = t45;
|
|
520
|
+
$[147] = t48;
|
|
521
|
+
$[148] = t52;
|
|
522
|
+
$[149] = t53;
|
|
523
|
+
$[150] = wrapProps;
|
|
524
|
+
$[151] = t54;
|
|
525
|
+
} else t54 = $[151];
|
|
526
|
+
let t55;
|
|
527
|
+
if ($[152] !== t42 || $[153] !== t43 || $[154] !== t54) {
|
|
528
|
+
t55 = /*#__PURE__*/ jsxs(TaoPortalScope, {
|
|
317
529
|
children: [
|
|
318
|
-
|
|
319
|
-
|
|
530
|
+
t42,
|
|
531
|
+
t43,
|
|
532
|
+
t54
|
|
320
533
|
]
|
|
321
534
|
});
|
|
322
|
-
$[
|
|
323
|
-
$[
|
|
324
|
-
$[
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
535
|
+
$[152] = t42;
|
|
536
|
+
$[153] = t43;
|
|
537
|
+
$[154] = t54;
|
|
538
|
+
$[155] = t55;
|
|
539
|
+
} else t55 = $[155];
|
|
540
|
+
const layer = t55;
|
|
541
|
+
let container;
|
|
542
|
+
if (getContainer && "u" > typeof document) {
|
|
543
|
+
let t56;
|
|
544
|
+
if ($[156] !== getContainer) {
|
|
545
|
+
t56 = "string" == typeof getContainer ? document.querySelector(getContainer) ?? void 0 : "function" == typeof getContainer ? getContainer() : getContainer;
|
|
546
|
+
$[156] = getContainer;
|
|
547
|
+
$[157] = t56;
|
|
548
|
+
} else t56 = $[157];
|
|
549
|
+
container = t56;
|
|
550
|
+
if (!container) throw new Error(`Modal getContainer did not resolve an element: ${getContainer}`);
|
|
551
|
+
}
|
|
552
|
+
const t56 = !customInteraction;
|
|
553
|
+
let t57;
|
|
554
|
+
if ($[158] !== onClose) {
|
|
555
|
+
t57 = (value)=>{
|
|
556
|
+
if (!value) onClose?.();
|
|
557
|
+
};
|
|
558
|
+
$[158] = onClose;
|
|
559
|
+
$[159] = t57;
|
|
560
|
+
} else t57 = $[159];
|
|
561
|
+
let t58;
|
|
562
|
+
if ($[160] !== container || $[161] !== forceMount || $[162] !== getContainer || $[163] !== layer) {
|
|
563
|
+
t58 = false === getContainer ? layer : /*#__PURE__*/ jsx(__rspack_external__radix_ui_react_dialog_dabd8325.Portal, {
|
|
329
564
|
forceMount: forceMount,
|
|
330
|
-
|
|
565
|
+
container: container,
|
|
566
|
+
children: layer
|
|
331
567
|
});
|
|
332
|
-
$[
|
|
333
|
-
$[
|
|
334
|
-
$[
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
568
|
+
$[160] = container;
|
|
569
|
+
$[161] = forceMount;
|
|
570
|
+
$[162] = getContainer;
|
|
571
|
+
$[163] = layer;
|
|
572
|
+
$[164] = t58;
|
|
573
|
+
} else t58 = $[164];
|
|
574
|
+
let t59;
|
|
575
|
+
if ($[165] !== open || $[166] !== t56 || $[167] !== t57 || $[168] !== t58) {
|
|
576
|
+
t59 = /*#__PURE__*/ jsx(__rspack_external__radix_ui_react_dialog_dabd8325.Root, {
|
|
339
577
|
open: open,
|
|
340
|
-
|
|
341
|
-
|
|
578
|
+
modal: t56,
|
|
579
|
+
onOpenChange: t57,
|
|
580
|
+
children: t58
|
|
342
581
|
});
|
|
343
|
-
$[
|
|
344
|
-
$[
|
|
345
|
-
$[
|
|
346
|
-
$[
|
|
347
|
-
|
|
348
|
-
|
|
582
|
+
$[165] = open;
|
|
583
|
+
$[166] = t56;
|
|
584
|
+
$[167] = t57;
|
|
585
|
+
$[168] = t58;
|
|
586
|
+
$[169] = t59;
|
|
587
|
+
} else t59 = $[169];
|
|
588
|
+
return t59;
|
|
589
|
+
}
|
|
590
|
+
function _temp2(event_2) {
|
|
591
|
+
return event_2.preventDefault();
|
|
592
|
+
}
|
|
593
|
+
function _temp(event_1) {
|
|
594
|
+
return event_1.preventDefault();
|
|
595
|
+
}
|
|
596
|
+
function ModalInteractionScope(t0) {
|
|
597
|
+
const $ = c(12);
|
|
598
|
+
const { open, scrollLock, trapFocus, branches, onOpenAutoFocus, onCloseAutoFocus, children } = t0;
|
|
599
|
+
const t1 = open && scrollLock;
|
|
600
|
+
const t2 = open && trapFocus;
|
|
601
|
+
let t3;
|
|
602
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
603
|
+
t3 = {
|
|
604
|
+
display: "contents"
|
|
605
|
+
};
|
|
606
|
+
$[0] = t3;
|
|
607
|
+
} else t3 = $[0];
|
|
608
|
+
let t4;
|
|
609
|
+
if ($[1] !== branches || $[2] !== children || $[3] !== onCloseAutoFocus || $[4] !== onOpenAutoFocus || $[5] !== t2 || $[6] !== trapFocus) {
|
|
610
|
+
t4 = /*#__PURE__*/ jsx(FocusScope, {
|
|
611
|
+
loop: trapFocus,
|
|
612
|
+
trapped: t2,
|
|
613
|
+
branches: branches,
|
|
614
|
+
onMountAutoFocus: onOpenAutoFocus,
|
|
615
|
+
onUnmountAutoFocus: onCloseAutoFocus,
|
|
616
|
+
style: t3,
|
|
617
|
+
children: children
|
|
618
|
+
});
|
|
619
|
+
$[1] = branches;
|
|
620
|
+
$[2] = children;
|
|
621
|
+
$[3] = onCloseAutoFocus;
|
|
622
|
+
$[4] = onOpenAutoFocus;
|
|
623
|
+
$[5] = t2;
|
|
624
|
+
$[6] = trapFocus;
|
|
625
|
+
$[7] = t4;
|
|
626
|
+
} else t4 = $[7];
|
|
627
|
+
let t5;
|
|
628
|
+
if ($[8] !== branches || $[9] !== t1 || $[10] !== t4) {
|
|
629
|
+
t5 = /*#__PURE__*/ jsx(RemoveScroll, {
|
|
630
|
+
enabled: t1,
|
|
631
|
+
allowPinchZoom: true,
|
|
632
|
+
shards: branches,
|
|
633
|
+
forwardProps: true,
|
|
634
|
+
children: t4
|
|
635
|
+
});
|
|
636
|
+
$[8] = branches;
|
|
637
|
+
$[9] = t1;
|
|
638
|
+
$[10] = t4;
|
|
639
|
+
$[11] = t5;
|
|
640
|
+
} else t5 = $[11];
|
|
641
|
+
return t5;
|
|
349
642
|
}
|
|
350
643
|
function CloseIcon() {
|
|
351
644
|
const $ = c(1);
|