@konstructio/ui 0.0.11 → 0.0.12-alpha.1
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/{Combination-Cmu9JRkv.js → Combination-BQYb0Gw7.js} +72 -72
- package/dist/{Modal-L73dmnHv.js → Modal-W2GbkC_F.js} +238 -246
- package/dist/{chevron-up-CvquEaNg.js → chevron-up-DgLBQCKD.js} +1 -1
- package/dist/components/AlertDialog/AlertDialog.js +20 -23
- package/dist/components/AlertDialog/components/AlertDialogTrigger.js +3 -6
- package/dist/components/AlertDialog/components/index.js +1 -1
- package/dist/components/Autocomplete/Autocomplete.js +15 -17
- package/dist/components/Autocomplete/components/List/List.js +7 -7
- package/dist/components/Breadcrumb/Breadcrumb.js +68 -69
- package/dist/components/Breadcrumb/Breadcrumb.variants.js +16 -17
- package/dist/components/Breadcrumb/components/Item/Item.js +61 -0
- package/dist/components/Breadcrumb/components/Item/Item.variants.js +90 -0
- package/dist/components/Breadcrumb/components/index.js +4 -0
- package/dist/components/Breadcrumb/hooks/useBreadcrumb.js +2 -3
- package/dist/components/Button/Button.js +14 -16
- package/dist/components/Card/Card.js +10 -12
- package/dist/components/Checkbox/Checkbox.js +13 -15
- package/dist/components/Dropdown/Dropdown.js +4 -6
- package/dist/components/Dropdown/components/List/List.js +9 -10
- package/dist/components/Dropdown/components/ListItem/ListItem.js +20 -21
- package/dist/components/Dropdown/components/Wrapper.js +31 -34
- package/dist/components/Dropdown/contexts/dropdown.provider.js +4 -4
- package/dist/components/Dropdown/hooks/useDropdown.js +12 -14
- package/dist/components/Dropdown/hooks/useNavigationList.js +8 -10
- package/dist/components/Input/Input.js +12 -14
- package/dist/components/Modal/Modal.js +3 -3
- package/dist/components/Modal/components/Wrapper/Wrapper.js +7 -9
- package/dist/components/Modal/components/index.js +1 -1
- package/dist/components/Modal/contexts/Modal.provider.js +4 -4
- package/dist/components/NumberInput/NumberInput.js +9 -11
- package/dist/components/ProgressBar/ProgressBar.js +13 -16
- package/dist/components/Radio/Radio.js +55 -37
- package/dist/components/Radio/Radio.variants.js +69 -16
- package/dist/components/RadioCard/RadioCard.js +41 -0
- package/dist/components/RadioCard/RadioCard.variants.js +19 -0
- package/dist/components/RadioCardGroup/RadioCardGroup.js +47 -0
- package/dist/components/RadioCardGroup/RadioCardGroup.variants.js +21 -0
- package/dist/components/RadioGroup/RadioGroup.js +37 -27
- package/dist/components/RadioGroup/RadioGroup.variants.js +21 -0
- package/dist/components/Range/Range.js +20 -22
- package/dist/components/Sidebar/Sidebar.js +20 -22
- package/dist/components/Sidebar/Sidebar.variants.js +5 -4
- package/dist/components/Sidebar/components/Footer/Footer.js +9 -12
- package/dist/components/Sidebar/components/Logo/Logo.js +9 -12
- package/dist/components/Sidebar/components/Navigation/Navigation.js +12 -15
- package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.js +24 -26
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.js +21 -18
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.variants.js +25 -12
- package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.js +8 -11
- package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.js +11 -13
- package/dist/components/Sidebar/components/Wrapper/Wrapper.js +40 -37
- package/dist/components/Slider/Slider.js +18 -20
- package/dist/components/Switch/Switch.js +19 -21
- package/dist/components/TagSelect/TagSelect.js +19 -21
- package/dist/components/TextArea/TextArea.js +17 -19
- package/dist/components/Toast/Toast.js +52 -54
- package/dist/components/Tooltip/Tooltip.js +10 -12
- package/dist/components/index.js +50 -44
- package/dist/contexts/theme.provider.js +84 -14
- package/dist/{index-BaNV0qac.js → index-1GLoikpT.js} +6555 -6585
- package/dist/{AlertDialogTrigger-D4Tm_9M0.js → index-BVppSRDQ.js} +19 -21
- package/dist/{index-D68N8v8R.js → index-C5psggHV.js} +17 -17
- package/dist/{index-z-AJyzdv.js → index-CJsYodgi.js} +10 -10
- package/dist/{index-BedjZUuB.js → index-CoqDsznq.js} +1 -1
- package/dist/{index-BtibbG81.js → index-KEdwcThH.js} +1 -1
- package/dist/index.d.ts +522 -4
- package/dist/index.js +59 -53
- package/dist/package.json +1 -1
- package/dist/plugins/konstruct.js +3 -3
- package/dist/styles.css +1 -1
- package/dist/styles.js +1 -1
- package/dist/useBreadcrumb-CojbXFVD.js +1279 -0
- package/dist/{x-CRBgmX1Q.js → x-DU-Zw-L_.js} +1 -1
- package/package.json +1 -1
- package/dist/components/AlertDialog/AlertDialog.d.ts +0 -3
- package/dist/components/AlertDialog/AlertDialog.types.d.ts +0 -18
- package/dist/components/AlertDialog/AlertDialog.types.js +0 -1
- package/dist/components/AlertDialog/AlertDialog.variants.d.ts +0 -3
- package/dist/components/AlertDialog/components/AlertDialogTrigger.d.ts +0 -3
- package/dist/components/AlertDialog/components/AlertDialogTrigger.types.d.ts +0 -6
- package/dist/components/AlertDialog/components/AlertDialogTrigger.types.js +0 -1
- package/dist/components/AlertDialog/components/index.d.ts +0 -1
- package/dist/components/AlertDialog/hooks/index.d.ts +0 -1
- package/dist/components/AlertDialog/hooks/useAlertDialog.d.ts +0 -7
- package/dist/components/Autocomplete/Autocomplete.d.ts +0 -3
- package/dist/components/Autocomplete/Autocomplete.types.d.ts +0 -18
- package/dist/components/Autocomplete/Autocomplete.types.js +0 -1
- package/dist/components/Autocomplete/Autocomplete.variants.d.ts +0 -8
- package/dist/components/Autocomplete/components/List/List.d.ts +0 -3
- package/dist/components/Autocomplete/components/List/List.types.d.ts +0 -13
- package/dist/components/Autocomplete/components/List/List.types.js +0 -1
- package/dist/components/Autocomplete/components/List/List.variants.d.ts +0 -16
- package/dist/components/Autocomplete/components/index.d.ts +0 -1
- package/dist/components/Autocomplete/hooks/index.d.ts +0 -2
- package/dist/components/Autocomplete/hooks/useAutocomplete.d.ts +0 -17
- package/dist/components/Autocomplete/hooks/useNavigationList.d.ts +0 -10
- package/dist/components/Breadcrumb/Breadcrumb.d.ts +0 -3
- package/dist/components/Breadcrumb/Breadcrumb.types.d.ts +0 -11
- package/dist/components/Breadcrumb/Breadcrumb.types.js +0 -1
- package/dist/components/Breadcrumb/Breadcrumb.variants.d.ts +0 -12
- package/dist/components/Breadcrumb/hooks/useBreadcrumb.d.ts +0 -3
- package/dist/components/Button/Button.d.ts +0 -4
- package/dist/components/Button/Button.types.d.ts +0 -7
- package/dist/components/Button/Button.types.js +0 -1
- package/dist/components/Button/Button.variants.d.ts +0 -7
- package/dist/components/Card/Card.d.ts +0 -4
- package/dist/components/Card/Card.types.d.ts +0 -8
- package/dist/components/Card/Card.types.js +0 -1
- package/dist/components/Card/Card.variants.d.ts +0 -10
- package/dist/components/Checkbox/Checkbox.d.ts +0 -3
- package/dist/components/Checkbox/Checkbox.types.d.ts +0 -14
- package/dist/components/Checkbox/Checkbox.types.js +0 -1
- package/dist/components/Checkbox/Checkbox.variants.d.ts +0 -9
- package/dist/components/Dropdown/Dropdown.d.ts +0 -3
- package/dist/components/Dropdown/Dropdown.types.d.ts +0 -16
- package/dist/components/Dropdown/Dropdown.types.js +0 -1
- package/dist/components/Dropdown/Dropdown.variants.d.ts +0 -3
- package/dist/components/Dropdown/components/EmptyList.d.ts +0 -2
- package/dist/components/Dropdown/components/List/List.d.ts +0 -3
- package/dist/components/Dropdown/components/List/List.types.d.ts +0 -6
- package/dist/components/Dropdown/components/List/List.types.js +0 -1
- package/dist/components/Dropdown/components/List/List.variants.d.ts +0 -3
- package/dist/components/Dropdown/components/ListItem/ListItem.d.ts +0 -3
- package/dist/components/Dropdown/components/ListItem/ListItem.types.d.ts +0 -4
- package/dist/components/Dropdown/components/ListItem/ListItem.types.js +0 -1
- package/dist/components/Dropdown/components/ListItem/ListItem.variants.d.ts +0 -3
- package/dist/components/Dropdown/components/Wrapper.d.ts +0 -3
- package/dist/components/Dropdown/components/index.d.ts +0 -3
- package/dist/components/Dropdown/contexts/dropdown.context.d.ts +0 -8
- package/dist/components/Dropdown/contexts/dropdown.hook.d.ts +0 -2
- package/dist/components/Dropdown/contexts/dropdown.provider.d.ts +0 -5
- package/dist/components/Dropdown/contexts/index.d.ts +0 -2
- package/dist/components/Dropdown/hooks/useDropdown.d.ts +0 -11
- package/dist/components/Dropdown/hooks/useNavigationList.d.ts +0 -8
- package/dist/components/Input/Input.d.ts +0 -3
- package/dist/components/Input/Input.types.d.ts +0 -9
- package/dist/components/Input/Input.types.js +0 -1
- package/dist/components/Input/Input.variants.d.ts +0 -4
- package/dist/components/Modal/Modal.d.ts +0 -8
- package/dist/components/Modal/Modal.types.d.ts +0 -12
- package/dist/components/Modal/Modal.types.js +0 -1
- package/dist/components/Modal/components/Body/Body.d.ts +0 -3
- package/dist/components/Modal/components/Body/Body.types.d.ts +0 -5
- package/dist/components/Modal/components/Body/Body.types.js +0 -1
- package/dist/components/Modal/components/Footer/Footer.d.ts +0 -3
- package/dist/components/Modal/components/Footer/Footer.types.d.ts +0 -5
- package/dist/components/Modal/components/Footer/Footer.types.js +0 -1
- package/dist/components/Modal/components/Header/Header.d.ts +0 -3
- package/dist/components/Modal/components/Header/Header.types.d.ts +0 -5
- package/dist/components/Modal/components/Header/Header.types.js +0 -1
- package/dist/components/Modal/components/Wrapper/Wrapper.d.ts +0 -3
- package/dist/components/Modal/components/Wrapper/Wrapper.types.d.ts +0 -7
- package/dist/components/Modal/components/Wrapper/Wrapper.types.js +0 -1
- package/dist/components/Modal/components/Wrapper/Wrapper.variants.d.ts +0 -6
- package/dist/components/Modal/components/index.d.ts +0 -4
- package/dist/components/Modal/contexts/Modal.context.d.ts +0 -2
- package/dist/components/Modal/contexts/Modal.provider.d.ts +0 -4
- package/dist/components/Modal/contexts/Modal.types.d.ts +0 -9
- package/dist/components/Modal/contexts/Modal.types.js +0 -1
- package/dist/components/Modal/contexts/index.d.ts +0 -1
- package/dist/components/Modal/hooks/index.d.ts +0 -1
- package/dist/components/Modal/hooks/useModal.d.ts +0 -9
- package/dist/components/NumberInput/NumberInput.d.ts +0 -3
- package/dist/components/NumberInput/NumberInput.types.d.ts +0 -11
- package/dist/components/NumberInput/NumberInput.types.js +0 -1
- package/dist/components/NumberInput/NumberInput.variants.d.ts +0 -11
- package/dist/components/ProgressBar/ProgressBar.d.ts +0 -3
- package/dist/components/ProgressBar/ProgressBar.types.d.ts +0 -8
- package/dist/components/ProgressBar/ProgressBar.types.js +0 -1
- package/dist/components/ProgressBar/ProgressBar.variants.d.ts +0 -7
- package/dist/components/Radio/Radio.d.ts +0 -3
- package/dist/components/Radio/Radio.types.d.ts +0 -12
- package/dist/components/Radio/Radio.types.js +0 -1
- package/dist/components/Radio/Radio.variants.d.ts +0 -3
- package/dist/components/RadioGroup/RadioGroup.d.ts +0 -3
- package/dist/components/RadioGroup/RadioGroup.types.d.ts +0 -12
- package/dist/components/RadioGroup/RadioGroup.types.js +0 -1
- package/dist/components/Range/Range.d.ts +0 -3
- package/dist/components/Range/Range.types.d.ts +0 -13
- package/dist/components/Range/Range.types.js +0 -1
- package/dist/components/Range/Range.variants.d.ts +0 -14
- package/dist/components/Sidebar/Sidebar.d.ts +0 -5
- package/dist/components/Sidebar/Sidebar.types.d.ts +0 -17
- package/dist/components/Sidebar/Sidebar.types.js +0 -1
- package/dist/components/Sidebar/Sidebar.variants.d.ts +0 -6
- package/dist/components/Sidebar/components/Footer/Footer.d.ts +0 -3
- package/dist/components/Sidebar/components/Footer/Footer.types.d.ts +0 -6
- package/dist/components/Sidebar/components/Footer/Footer.types.js +0 -1
- package/dist/components/Sidebar/components/Footer/Footer.variants.d.ts +0 -3
- package/dist/components/Sidebar/components/Logo/Logo.d.ts +0 -3
- package/dist/components/Sidebar/components/Logo/Logo.types.d.ts +0 -6
- package/dist/components/Sidebar/components/Logo/Logo.types.js +0 -1
- package/dist/components/Sidebar/components/Logo/Logo.variants.d.ts +0 -3
- package/dist/components/Sidebar/components/Navigation/Navigation.d.ts +0 -4
- package/dist/components/Sidebar/components/Navigation/Navigation.types.d.ts +0 -16
- package/dist/components/Sidebar/components/Navigation/Navigation.types.js +0 -1
- package/dist/components/Sidebar/components/Navigation/Navigation.variants.d.ts +0 -3
- package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.d.ts +0 -3
- package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.types.d.ts +0 -7
- package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.types.js +0 -1
- package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.variants.d.ts +0 -3
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.d.ts +0 -3
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.types.d.ts +0 -15
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.types.js +0 -1
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.variants.d.ts +0 -3
- package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.d.ts +0 -3
- package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.types.d.ts +0 -5
- package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.types.js +0 -1
- package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.variants.d.ts +0 -3
- package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.d.ts +0 -3
- package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.types.d.ts +0 -7
- package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.types.js +0 -1
- package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.variants.d.ts +0 -3
- package/dist/components/Sidebar/components/Wrapper/Wrapper.d.ts +0 -3
- package/dist/components/Sidebar/components/index.d.ts +0 -15
- package/dist/components/Slider/Slider.d.ts +0 -3
- package/dist/components/Slider/Slider.types.d.ts +0 -13
- package/dist/components/Slider/Slider.types.js +0 -1
- package/dist/components/Slider/Slider.variants.d.ts +0 -11
- package/dist/components/Switch/Switch.d.ts +0 -3
- package/dist/components/Switch/Switch.types.d.ts +0 -10
- package/dist/components/Switch/Switch.types.js +0 -1
- package/dist/components/Switch/Switch.variants.d.ts +0 -6
- package/dist/components/Tag/Tag.d.ts +0 -3
- package/dist/components/Tag/Tag.types.d.ts +0 -4
- package/dist/components/Tag/Tag.types.js +0 -1
- package/dist/components/Tag/Tag.variants.d.ts +0 -3
- package/dist/components/TagSelect/TagSelect.d.ts +0 -3
- package/dist/components/TagSelect/TagSelect.types.d.ts +0 -9
- package/dist/components/TagSelect/TagSelect.types.js +0 -1
- package/dist/components/TagSelect/TagSelect.variants.d.ts +0 -9
- package/dist/components/TagSelect/hooks/useTagSelect.d.ts +0 -9
- package/dist/components/TextArea/TextArea.d.ts +0 -3
- package/dist/components/TextArea/TextArea.types.d.ts +0 -10
- package/dist/components/TextArea/TextArea.types.js +0 -1
- package/dist/components/TextArea/TextArea.variants.d.ts +0 -3
- package/dist/components/Toast/Toast.d.ts +0 -3
- package/dist/components/Toast/Toast.types.d.ts +0 -12
- package/dist/components/Toast/Toast.types.js +0 -1
- package/dist/components/Toast/Toast.variants.d.ts +0 -9
- package/dist/components/Tooltip/Tooltip.d.ts +0 -3
- package/dist/components/Tooltip/Tooltip.types.d.ts +0 -8
- package/dist/components/Tooltip/Tooltip.types.js +0 -1
- package/dist/components/Tooltip/Tooltip.variants.d.ts +0 -8
- package/dist/components/Tooltip/hooks/useTooltip.d.ts +0 -4
- package/dist/components/index.d.ts +0 -21
- package/dist/contexts/index.d.ts +0 -3
- package/dist/contexts/theme.context.d.ts +0 -6
- package/dist/contexts/theme.hook.d.ts +0 -7
- package/dist/contexts/theme.provider.d.ts +0 -6
- package/dist/hooks/index.d.ts +0 -1
- package/dist/hooks/useToggle.d.ts +0 -1
- package/dist/js.cookie-OLEfuq_g.js +0 -74
- package/dist/plugins/index.d.ts +0 -1
- package/dist/plugins/konstruct.d.ts +0 -4
- package/dist/plugins/utils/colors.d.ts +0 -328
- package/dist/styles.d.ts +0 -0
- package/dist/useBreadcrumb-DxYsZvj_.js +0 -1398
- package/dist/utils/index.d.ts +0 -4
|
@@ -1,20 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { R as
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
import { c as se, a as
|
|
10
|
-
import "./contexts/theme.context.js";
|
|
11
|
-
import { useTheme as Kr } from "./contexts/theme.hook.js";
|
|
12
|
-
import "./js.cookie-OLEfuq_g.js";
|
|
1
|
+
import { Body as Cr } from "./components/Modal/components/Body/Body.js";
|
|
2
|
+
import { Footer as Mr } from "./components/Modal/components/Footer/Footer.js";
|
|
3
|
+
import { Header as _r } from "./components/Modal/components/Header/Header.js";
|
|
4
|
+
import { jsx as M, jsxs as Q } from "react/jsx-runtime";
|
|
5
|
+
import { r as kr } from "./index-1GLoikpT.js";
|
|
6
|
+
import { R as Lr } from "./index-KEdwcThH.js";
|
|
7
|
+
import I, { createContext as Rr, forwardRef as We, useState as Z, useRef as ee, useCallback as R, useEffect as Wr, useMemo as Br, Fragment as Ur, PureComponent as Gr, Children as q, isValidElement as $ } from "react";
|
|
8
|
+
import { p as l } from "./index-C5psggHV.js";
|
|
9
|
+
import { c as se, a as Hr, u as jr, R as Vr } from "./Combination-BQYb0Gw7.js";
|
|
13
10
|
import { cn as Ae } from "./utils/index.js";
|
|
14
|
-
import { useModal as
|
|
15
|
-
import { modalVariants as
|
|
16
|
-
import { X as
|
|
17
|
-
|
|
11
|
+
import { useModal as Be } from "./components/Modal/hooks/useModal.js";
|
|
12
|
+
import { modalVariants as qr, buttonCloseVariants as $r } from "./components/Modal/components/Wrapper/Wrapper.variants.js";
|
|
13
|
+
import { X as Kr } from "./x-DU-Zw-L_.js";
|
|
14
|
+
import { useTheme as Xr } from "./contexts/theme.hook.js";
|
|
15
|
+
function Yr(e, r) {
|
|
18
16
|
if (e == null) return {};
|
|
19
17
|
var n = {};
|
|
20
18
|
for (var t in e) if ({}.hasOwnProperty.call(e, t)) {
|
|
@@ -32,7 +30,7 @@ function B() {
|
|
|
32
30
|
return e;
|
|
33
31
|
}, B.apply(null, arguments);
|
|
34
32
|
}
|
|
35
|
-
var ue = "data-focus-lock",
|
|
33
|
+
var ue = "data-focus-lock", Ue = "data-focus-lock-disabled", zr = "data-no-focus-lock", Jr = "data-autofocus-inside", Qr = "data-no-autofocus", re = {
|
|
36
34
|
width: "1px",
|
|
37
35
|
height: "0px",
|
|
38
36
|
padding: 0,
|
|
@@ -40,28 +38,26 @@ var ue = "data-focus-lock", Ge = "data-focus-lock-disabled", Qr = "data-no-focus
|
|
|
40
38
|
position: "fixed",
|
|
41
39
|
top: "1px",
|
|
42
40
|
left: "1px"
|
|
43
|
-
}
|
|
44
|
-
process.env.NODE_ENV !== "production" && Be.node;
|
|
45
|
-
var He = se({}, function(e) {
|
|
41
|
+
}, Ge = se({}, function(e) {
|
|
46
42
|
var r = e.target, n = e.currentTarget;
|
|
47
43
|
return {
|
|
48
44
|
target: r,
|
|
49
45
|
currentTarget: n
|
|
50
46
|
};
|
|
51
|
-
}),
|
|
47
|
+
}), He = se(), Zr = se(), en = Hr({
|
|
52
48
|
async: !0,
|
|
53
49
|
ssr: typeof document < "u"
|
|
54
|
-
}),
|
|
55
|
-
var t, o = Z(), u = o[0], i = o[1], c = ee(), v = ee(!1), f = ee(null), b = Z({}), s = b[1], a = r.children, m = r.disabled, d = m === void 0 ? !1 : m, p = r.noFocusGuards, F = p === void 0 ? !1 : p, E = r.persistentFocus, y = E === void 0 ? !1 : E, h = r.crossFrame, x = h === void 0 ? !0 : h, S = r.autoFocus, X = S === void 0 ? !0 : S,
|
|
50
|
+
}), rn = /* @__PURE__ */ Rr(void 0), nn = [], de = /* @__PURE__ */ We(function(r, n) {
|
|
51
|
+
var t, o = Z(), u = o[0], i = o[1], c = ee(), v = ee(!1), f = ee(null), b = Z({}), s = b[1], a = r.children, m = r.disabled, d = m === void 0 ? !1 : m, p = r.noFocusGuards, F = p === void 0 ? !1 : p, E = r.persistentFocus, y = E === void 0 ? !1 : E, h = r.crossFrame, x = h === void 0 ? !0 : h, S = r.autoFocus, X = S === void 0 ? !0 : S, lr = r.allowTextSelection, vr = r.group, mr = r.className, pr = r.whiteList, br = r.hasPositiveIndices, xe = r.shards, Y = xe === void 0 ? nn : xe, we = r.as, Ie = we === void 0 ? "div" : we, Ne = r.lockProps, yr = Ne === void 0 ? {} : Ne, hr = r.sideCar, Se = r.returnFocus, V = Se === void 0 ? !1 : Se, gr = r.focusOptions, z = r.onActivation, J = r.onDeactivation, Fr = Z({}), Er = Fr[0], Or = R(function(w) {
|
|
56
52
|
var D = w.captureFocusRestore;
|
|
57
53
|
if (!f.current) {
|
|
58
54
|
var C, P = (C = document) == null ? void 0 : C.activeElement;
|
|
59
55
|
f.current = P, P !== document.body && (f.current = D(P));
|
|
60
56
|
}
|
|
61
57
|
c.current && z && z(c.current), v.current = !0, s();
|
|
62
|
-
}, [z]),
|
|
58
|
+
}, [z]), xr = R(function() {
|
|
63
59
|
v.current = !1, J && J(c.current), s();
|
|
64
|
-
}, [J]),
|
|
60
|
+
}, [J]), wr = R(function(w) {
|
|
65
61
|
var D = f.current;
|
|
66
62
|
if (D) {
|
|
67
63
|
var C = (typeof D == "function" ? D() : D) || document.body, P = typeof V == "function" ? V(C) : V;
|
|
@@ -72,15 +68,15 @@ var He = se({}, function(e) {
|
|
|
72
68
|
}) : C.focus(Te);
|
|
73
69
|
}
|
|
74
70
|
}
|
|
75
|
-
}, [V]),
|
|
76
|
-
v.current &&
|
|
77
|
-
}, []),
|
|
71
|
+
}, [V]), Ir = R(function(w) {
|
|
72
|
+
v.current && Ge.useMedium(w);
|
|
73
|
+
}, []), Nr = He.useMedium, Sr = R(function(w) {
|
|
78
74
|
c.current !== w && (c.current = w, i(w));
|
|
79
75
|
}, []);
|
|
80
|
-
process.env.NODE_ENV !== "production" && (typeof
|
|
81
|
-
!c.current && typeof
|
|
76
|
+
process.env.NODE_ENV !== "production" && (typeof lr < "u" && console.warn("React-Focus-Lock: allowTextSelection is deprecated and enabled by default"), Wr(function() {
|
|
77
|
+
!c.current && typeof Ie != "string" && console.error("FocusLock: could not obtain ref to internal node");
|
|
82
78
|
}, []));
|
|
83
|
-
var
|
|
79
|
+
var Pr = B((t = {}, t[Ue] = d && "disabled", t[ue] = vr, t), yr), Pe = F !== !0, Tr = Pe && F !== "tail", Ar = jr([n, Sr]), Dr = Br(function() {
|
|
84
80
|
return {
|
|
85
81
|
observed: c,
|
|
86
82
|
shards: Y,
|
|
@@ -88,43 +84,43 @@ var He = se({}, function(e) {
|
|
|
88
84
|
active: v.current
|
|
89
85
|
};
|
|
90
86
|
}, [d, v.current, Y, u]);
|
|
91
|
-
return /* @__PURE__ */
|
|
92
|
-
/* @__PURE__ */
|
|
87
|
+
return /* @__PURE__ */ I.createElement(Ur, null, Pe && [
|
|
88
|
+
/* @__PURE__ */ I.createElement("div", {
|
|
93
89
|
key: "guard-first",
|
|
94
90
|
"data-focus-guard": !0,
|
|
95
91
|
tabIndex: d ? -1 : 0,
|
|
96
92
|
style: re
|
|
97
93
|
}),
|
|
98
|
-
|
|
94
|
+
br ? /* @__PURE__ */ I.createElement("div", {
|
|
99
95
|
key: "guard-nearest",
|
|
100
96
|
"data-focus-guard": !0,
|
|
101
97
|
tabIndex: d ? -1 : 1,
|
|
102
98
|
style: re
|
|
103
99
|
}) : null
|
|
104
|
-
], !d && /* @__PURE__ */
|
|
105
|
-
id:
|
|
106
|
-
sideCar:
|
|
100
|
+
], !d && /* @__PURE__ */ I.createElement(hr, {
|
|
101
|
+
id: Er,
|
|
102
|
+
sideCar: en,
|
|
107
103
|
observed: u,
|
|
108
104
|
disabled: d,
|
|
109
105
|
persistentFocus: y,
|
|
110
106
|
crossFrame: x,
|
|
111
107
|
autoFocus: X,
|
|
112
|
-
whiteList:
|
|
108
|
+
whiteList: pr,
|
|
113
109
|
shards: Y,
|
|
114
|
-
onActivation:
|
|
115
|
-
onDeactivation:
|
|
116
|
-
returnFocus:
|
|
117
|
-
focusOptions:
|
|
110
|
+
onActivation: Or,
|
|
111
|
+
onDeactivation: xr,
|
|
112
|
+
returnFocus: wr,
|
|
113
|
+
focusOptions: gr,
|
|
118
114
|
noFocusGuards: F
|
|
119
|
-
}), /* @__PURE__ */
|
|
120
|
-
ref:
|
|
121
|
-
},
|
|
122
|
-
className:
|
|
123
|
-
onBlur:
|
|
124
|
-
onFocus:
|
|
125
|
-
}), /* @__PURE__ */
|
|
126
|
-
value:
|
|
127
|
-
}, a)),
|
|
115
|
+
}), /* @__PURE__ */ I.createElement(Ie, B({
|
|
116
|
+
ref: Ar
|
|
117
|
+
}, Pr, {
|
|
118
|
+
className: mr,
|
|
119
|
+
onBlur: Nr,
|
|
120
|
+
onFocus: Ir
|
|
121
|
+
}), /* @__PURE__ */ I.createElement(rn.Provider, {
|
|
122
|
+
value: Dr
|
|
123
|
+
}, a)), Tr && /* @__PURE__ */ I.createElement("div", {
|
|
128
124
|
"data-focus-guard": !0,
|
|
129
125
|
tabIndex: d ? -1 : 0,
|
|
130
126
|
style: re
|
|
@@ -156,7 +152,7 @@ function ae(e, r) {
|
|
|
156
152
|
return n.__proto__ = t, n;
|
|
157
153
|
}, ae(e, r);
|
|
158
154
|
}
|
|
159
|
-
function
|
|
155
|
+
function tn(e, r) {
|
|
160
156
|
e.prototype = Object.create(r.prototype), e.prototype.constructor = e, ae(e, r);
|
|
161
157
|
}
|
|
162
158
|
function U(e) {
|
|
@@ -167,7 +163,7 @@ function U(e) {
|
|
|
167
163
|
return r && typeof Symbol == "function" && r.constructor === Symbol && r !== Symbol.prototype ? "symbol" : typeof r;
|
|
168
164
|
}, U(e);
|
|
169
165
|
}
|
|
170
|
-
function
|
|
166
|
+
function on(e, r) {
|
|
171
167
|
if (U(e) != "object" || !e) return e;
|
|
172
168
|
var n = e[Symbol.toPrimitive];
|
|
173
169
|
if (n !== void 0) {
|
|
@@ -177,19 +173,19 @@ function an(e, r) {
|
|
|
177
173
|
}
|
|
178
174
|
return (r === "string" ? String : Number)(e);
|
|
179
175
|
}
|
|
180
|
-
function
|
|
181
|
-
var r =
|
|
176
|
+
function un(e) {
|
|
177
|
+
var r = on(e, "string");
|
|
182
178
|
return U(r) == "symbol" ? r : r + "";
|
|
183
179
|
}
|
|
184
|
-
function
|
|
185
|
-
return (r =
|
|
180
|
+
function an(e, r, n) {
|
|
181
|
+
return (r = un(r)) in e ? Object.defineProperty(e, r, {
|
|
186
182
|
value: n,
|
|
187
183
|
enumerable: !0,
|
|
188
184
|
configurable: !0,
|
|
189
185
|
writable: !0
|
|
190
186
|
}) : e[r] = n, e;
|
|
191
187
|
}
|
|
192
|
-
function
|
|
188
|
+
function cn(e, r) {
|
|
193
189
|
if (process.env.NODE_ENV !== "production") {
|
|
194
190
|
if (typeof e != "function")
|
|
195
191
|
throw new Error("Expected reducePropsToState to be a function.");
|
|
@@ -209,7 +205,7 @@ function sn(e, r) {
|
|
|
209
205
|
})), r(i);
|
|
210
206
|
}
|
|
211
207
|
var v = /* @__PURE__ */ function(f) {
|
|
212
|
-
|
|
208
|
+
tn(b, f);
|
|
213
209
|
function b() {
|
|
214
210
|
return f.apply(this, arguments) || this;
|
|
215
211
|
}
|
|
@@ -225,10 +221,10 @@ function sn(e, r) {
|
|
|
225
221
|
var m = u.indexOf(this);
|
|
226
222
|
u.splice(m, 1), c();
|
|
227
223
|
}, s.render = function() {
|
|
228
|
-
return /* @__PURE__ */
|
|
224
|
+
return /* @__PURE__ */ I.createElement(o, this.props);
|
|
229
225
|
}, b;
|
|
230
|
-
}(
|
|
231
|
-
return
|
|
226
|
+
}(Gr);
|
|
227
|
+
return an(v, "displayName", "SideEffect(" + n(o) + ")"), v;
|
|
232
228
|
};
|
|
233
229
|
}
|
|
234
230
|
var O = function(e) {
|
|
@@ -237,59 +233,59 @@ var O = function(e) {
|
|
|
237
233
|
return r;
|
|
238
234
|
}, A = function(e) {
|
|
239
235
|
return Array.isArray(e) ? e : [e];
|
|
240
|
-
},
|
|
236
|
+
}, je = function(e) {
|
|
241
237
|
return Array.isArray(e) ? e[0] : e;
|
|
242
|
-
},
|
|
238
|
+
}, fn = function(e) {
|
|
243
239
|
if (e.nodeType !== Node.ELEMENT_NODE)
|
|
244
240
|
return !1;
|
|
245
241
|
var r = window.getComputedStyle(e, null);
|
|
246
242
|
return !r || !r.getPropertyValue ? !1 : r.getPropertyValue("display") === "none" || r.getPropertyValue("visibility") === "hidden";
|
|
247
|
-
},
|
|
243
|
+
}, Ve = function(e) {
|
|
248
244
|
return e.parentNode && e.parentNode.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? (
|
|
249
245
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
250
246
|
e.parentNode.host
|
|
251
247
|
) : e.parentNode;
|
|
252
|
-
},
|
|
248
|
+
}, qe = function(e) {
|
|
253
249
|
return e === document || e && e.nodeType === Node.DOCUMENT_NODE;
|
|
254
|
-
},
|
|
250
|
+
}, sn = function(e) {
|
|
255
251
|
return e.hasAttribute("inert");
|
|
256
|
-
},
|
|
257
|
-
return !e ||
|
|
258
|
-
},
|
|
252
|
+
}, dn = function(e, r) {
|
|
253
|
+
return !e || qe(e) || !fn(e) && !sn(e) && r(Ve(e));
|
|
254
|
+
}, $e = function(e, r) {
|
|
259
255
|
var n = e.get(r);
|
|
260
256
|
if (n !== void 0)
|
|
261
257
|
return n;
|
|
262
|
-
var t =
|
|
258
|
+
var t = dn(r, $e.bind(void 0, e));
|
|
263
259
|
return e.set(r, t), t;
|
|
264
|
-
},
|
|
265
|
-
return e &&
|
|
266
|
-
},
|
|
260
|
+
}, ln = function(e, r) {
|
|
261
|
+
return e && !qe(e) ? pn(e) ? r(Ve(e)) : !1 : !0;
|
|
262
|
+
}, Ke = function(e, r) {
|
|
267
263
|
var n = e.get(r);
|
|
268
264
|
if (n !== void 0)
|
|
269
265
|
return n;
|
|
270
|
-
var t =
|
|
266
|
+
var t = ln(r, Ke.bind(void 0, e));
|
|
271
267
|
return e.set(r, t), t;
|
|
272
|
-
},
|
|
268
|
+
}, Xe = function(e) {
|
|
273
269
|
return e.dataset;
|
|
274
|
-
},
|
|
270
|
+
}, vn = function(e) {
|
|
275
271
|
return e.tagName === "BUTTON";
|
|
276
|
-
},
|
|
272
|
+
}, Ye = function(e) {
|
|
277
273
|
return e.tagName === "INPUT";
|
|
278
|
-
},
|
|
279
|
-
return
|
|
280
|
-
},
|
|
281
|
-
return !((
|
|
282
|
-
},
|
|
283
|
-
var r = e.getAttribute(
|
|
274
|
+
}, ze = function(e) {
|
|
275
|
+
return Ye(e) && e.type === "radio";
|
|
276
|
+
}, mn = function(e) {
|
|
277
|
+
return !((Ye(e) || vn(e)) && (e.type === "hidden" || e.disabled));
|
|
278
|
+
}, pn = function(e) {
|
|
279
|
+
var r = e.getAttribute(Qr);
|
|
284
280
|
return ![!0, "true", ""].includes(r);
|
|
285
281
|
}, le = function(e) {
|
|
286
282
|
var r;
|
|
287
|
-
return !!(e && (!((r =
|
|
283
|
+
return !!(e && (!((r = Xe(e)) === null || r === void 0) && r.focusGuard));
|
|
288
284
|
}, ie = function(e) {
|
|
289
285
|
return !le(e);
|
|
290
|
-
},
|
|
286
|
+
}, bn = function(e) {
|
|
291
287
|
return !!e;
|
|
292
|
-
},
|
|
288
|
+
}, yn = function(e, r) {
|
|
293
289
|
var n = Math.max(0, e.tabIndex), t = Math.max(0, r.tabIndex), o = n - t, u = e.index - r.index;
|
|
294
290
|
if (o) {
|
|
295
291
|
if (!n)
|
|
@@ -298,11 +294,11 @@ var O = function(e) {
|
|
|
298
294
|
return -1;
|
|
299
295
|
}
|
|
300
296
|
return o || u;
|
|
301
|
-
},
|
|
297
|
+
}, hn = function(e) {
|
|
302
298
|
return e.tabIndex < 0 && !e.hasAttribute("tabindex") ? 0 : e.tabIndex;
|
|
303
299
|
}, ve = function(e, r, n) {
|
|
304
300
|
return O(e).map(function(t, o) {
|
|
305
|
-
var u =
|
|
301
|
+
var u = hn(t);
|
|
306
302
|
return {
|
|
307
303
|
node: t,
|
|
308
304
|
index: o,
|
|
@@ -310,8 +306,8 @@ var O = function(e) {
|
|
|
310
306
|
};
|
|
311
307
|
}).filter(function(t) {
|
|
312
308
|
return !r || t.tabIndex >= 0;
|
|
313
|
-
}).sort(
|
|
314
|
-
},
|
|
309
|
+
}).sort(yn);
|
|
310
|
+
}, gn = [
|
|
315
311
|
"button:enabled",
|
|
316
312
|
"select:enabled",
|
|
317
313
|
"textarea:enabled",
|
|
@@ -329,17 +325,17 @@ var O = function(e) {
|
|
|
329
325
|
"[tabindex]",
|
|
330
326
|
"[contenteditable]",
|
|
331
327
|
"[autofocus]"
|
|
332
|
-
], me =
|
|
328
|
+
], me = gn.join(","), Fn = "".concat(me, ", [data-focus-guard]"), Je = function(e, r) {
|
|
333
329
|
return O((e.shadowRoot || e).children).reduce(function(n, t) {
|
|
334
|
-
return n.concat(t.matches(r ?
|
|
330
|
+
return n.concat(t.matches(r ? Fn : me) ? [t] : [], Je(t));
|
|
335
331
|
}, []);
|
|
336
|
-
},
|
|
332
|
+
}, En = function(e, r) {
|
|
337
333
|
var n;
|
|
338
334
|
return e instanceof HTMLIFrameElement && (!((n = e.contentDocument) === null || n === void 0) && n.body) ? L([e.contentDocument.body], r) : [e];
|
|
339
335
|
}, L = function(e, r) {
|
|
340
336
|
return e.reduce(function(n, t) {
|
|
341
|
-
var o, u =
|
|
342
|
-
return
|
|
337
|
+
var o, u = Je(t, r), i = (o = []).concat.apply(o, u.map(function(c) {
|
|
338
|
+
return En(c, r);
|
|
343
339
|
}));
|
|
344
340
|
return n.concat(
|
|
345
341
|
// add all tabbables inside and within shadow DOMs in DOM order
|
|
@@ -350,8 +346,8 @@ var O = function(e) {
|
|
|
350
346
|
}) : []
|
|
351
347
|
);
|
|
352
348
|
}, []);
|
|
353
|
-
},
|
|
354
|
-
var r = e.querySelectorAll("[".concat(
|
|
349
|
+
}, On = function(e) {
|
|
350
|
+
var r = e.querySelectorAll("[".concat(Jr, "]"));
|
|
355
351
|
return O(r).map(function(n) {
|
|
356
352
|
return L([n]);
|
|
357
353
|
}).reduce(function(n, t) {
|
|
@@ -359,20 +355,20 @@ var O = function(e) {
|
|
|
359
355
|
}, []);
|
|
360
356
|
}, pe = function(e, r) {
|
|
361
357
|
return O(e).filter(function(n) {
|
|
362
|
-
return
|
|
358
|
+
return $e(r, n);
|
|
363
359
|
}).filter(function(n) {
|
|
364
|
-
return
|
|
360
|
+
return mn(n);
|
|
365
361
|
});
|
|
366
362
|
}, De = function(e, r) {
|
|
367
363
|
return r === void 0 && (r = /* @__PURE__ */ new Map()), O(e).filter(function(n) {
|
|
368
|
-
return
|
|
364
|
+
return Ke(r, n);
|
|
369
365
|
});
|
|
370
366
|
}, be = function(e, r, n) {
|
|
371
367
|
return ve(pe(L(e, n), r), !0, n);
|
|
372
368
|
}, G = function(e, r) {
|
|
373
369
|
return ve(pe(L(e), r), !1);
|
|
374
|
-
},
|
|
375
|
-
return pe(
|
|
370
|
+
}, xn = function(e, r) {
|
|
371
|
+
return pe(On(e), r);
|
|
376
372
|
}, T = function(e, r) {
|
|
377
373
|
return e.shadowRoot ? T(e.shadowRoot, r) : Object.getPrototypeOf(e).contains !== void 0 && Object.getPrototypeOf(e).contains.call(e, r) ? !0 : O(e.children).some(function(n) {
|
|
378
374
|
var t;
|
|
@@ -382,7 +378,7 @@ var O = function(e) {
|
|
|
382
378
|
}
|
|
383
379
|
return T(n, r);
|
|
384
380
|
});
|
|
385
|
-
},
|
|
381
|
+
}, wn = function(e) {
|
|
386
382
|
for (var r = /* @__PURE__ */ new Set(), n = e.length, t = 0; t < n; t += 1)
|
|
387
383
|
for (var o = t + 1; o < n; o += 1) {
|
|
388
384
|
var u = e[t].compareDocumentPosition(e[o]);
|
|
@@ -391,15 +387,15 @@ var O = function(e) {
|
|
|
391
387
|
return e.filter(function(i, c) {
|
|
392
388
|
return !r.has(c);
|
|
393
389
|
});
|
|
394
|
-
},
|
|
395
|
-
return e.parentNode ?
|
|
390
|
+
}, Qe = function(e) {
|
|
391
|
+
return e.parentNode ? Qe(e.parentNode) : e;
|
|
396
392
|
}, ye = function(e) {
|
|
397
393
|
var r = A(e);
|
|
398
394
|
return r.filter(Boolean).reduce(function(n, t) {
|
|
399
395
|
var o = t.getAttribute(ue);
|
|
400
|
-
return n.push.apply(n, o ?
|
|
396
|
+
return n.push.apply(n, o ? wn(O(Qe(t).querySelectorAll("[".concat(ue, '="').concat(o, '"]:not([').concat(Ue, '="disabled"])')))) : [t]), n;
|
|
401
397
|
}, []);
|
|
402
|
-
},
|
|
398
|
+
}, In = function(e) {
|
|
403
399
|
try {
|
|
404
400
|
return e();
|
|
405
401
|
} catch {
|
|
@@ -408,35 +404,35 @@ var O = function(e) {
|
|
|
408
404
|
}, H = function(e) {
|
|
409
405
|
if (e === void 0 && (e = document), !(!e || !e.activeElement)) {
|
|
410
406
|
var r = e.activeElement;
|
|
411
|
-
return r.shadowRoot ? H(r.shadowRoot) : r instanceof HTMLIFrameElement &&
|
|
407
|
+
return r.shadowRoot ? H(r.shadowRoot) : r instanceof HTMLIFrameElement && In(function() {
|
|
412
408
|
return r.contentWindow.document;
|
|
413
409
|
}) ? H(r.contentWindow.document) : r;
|
|
414
410
|
}
|
|
415
|
-
},
|
|
411
|
+
}, Nn = function(e, r) {
|
|
416
412
|
return e === r;
|
|
417
|
-
},
|
|
413
|
+
}, Sn = function(e, r) {
|
|
418
414
|
return !!O(e.querySelectorAll("iframe")).some(function(n) {
|
|
419
|
-
return
|
|
415
|
+
return Nn(n, r);
|
|
420
416
|
});
|
|
421
|
-
},
|
|
422
|
-
return r === void 0 && (r = H(
|
|
423
|
-
return T(n, r) ||
|
|
417
|
+
}, Ze = function(e, r) {
|
|
418
|
+
return r === void 0 && (r = H(je(e).ownerDocument)), !r || r.dataset && r.dataset.focusGuard ? !1 : ye(e).some(function(n) {
|
|
419
|
+
return T(n, r) || Sn(n, r);
|
|
424
420
|
});
|
|
425
|
-
},
|
|
421
|
+
}, Pn = function(e) {
|
|
426
422
|
e === void 0 && (e = document);
|
|
427
423
|
var r = H(e);
|
|
428
|
-
return r ? O(e.querySelectorAll("[".concat(
|
|
424
|
+
return r ? O(e.querySelectorAll("[".concat(zr, "]"))).some(function(n) {
|
|
429
425
|
return T(n, r);
|
|
430
426
|
}) : !1;
|
|
431
|
-
},
|
|
432
|
-
return r.filter(
|
|
427
|
+
}, Tn = function(e, r) {
|
|
428
|
+
return r.filter(ze).filter(function(n) {
|
|
433
429
|
return n.name === e.name;
|
|
434
430
|
}).filter(function(n) {
|
|
435
431
|
return n.checked;
|
|
436
432
|
})[0] || e;
|
|
437
433
|
}, he = function(e, r) {
|
|
438
|
-
return
|
|
439
|
-
},
|
|
434
|
+
return ze(e) && e.name ? Tn(e, r) : e;
|
|
435
|
+
}, An = function(e) {
|
|
440
436
|
var r = /* @__PURE__ */ new Set();
|
|
441
437
|
return e.forEach(function(n) {
|
|
442
438
|
return r.add(he(n, e));
|
|
@@ -445,9 +441,9 @@ var O = function(e) {
|
|
|
445
441
|
});
|
|
446
442
|
}, Ce = function(e) {
|
|
447
443
|
return e[0] && e.length > 1 ? he(e[0], e) : e[0];
|
|
448
|
-
},
|
|
444
|
+
}, Me = function(e, r) {
|
|
449
445
|
return e.indexOf(he(r, e));
|
|
450
|
-
}, ce = "NEW_FOCUS",
|
|
446
|
+
}, ce = "NEW_FOCUS", Dn = function(e, r, n, t, o) {
|
|
451
447
|
var u = e.length, i = e[0], c = e[u - 1], v = le(t);
|
|
452
448
|
if (!(t && e.indexOf(t) >= 0)) {
|
|
453
449
|
var f = t !== void 0 ? n.indexOf(t) : -1, b = o ? n.indexOf(o) : f, s = o ? e.indexOf(o) : -1;
|
|
@@ -455,10 +451,10 @@ var O = function(e) {
|
|
|
455
451
|
return s !== -1 ? s : ce;
|
|
456
452
|
if (s === -1)
|
|
457
453
|
return ce;
|
|
458
|
-
var a = f - b, m = n.indexOf(i), d = n.indexOf(c), p =
|
|
454
|
+
var a = f - b, m = n.indexOf(i), d = n.indexOf(c), p = An(n), F = t !== void 0 ? p.indexOf(t) : -1, E = F - (o ? p.indexOf(o) : f);
|
|
459
455
|
if (!a && s >= 0 || r.length === 0)
|
|
460
456
|
return s;
|
|
461
|
-
var y =
|
|
457
|
+
var y = Me(e, r[0]), h = Me(e, r[r.length - 1]);
|
|
462
458
|
if (f <= m && v && Math.abs(a) > 1)
|
|
463
459
|
return h;
|
|
464
460
|
if (f >= d && v && Math.abs(a) > 1)
|
|
@@ -472,9 +468,9 @@ var O = function(e) {
|
|
|
472
468
|
if (a)
|
|
473
469
|
return Math.abs(a) > 1 ? s : (u + s + a) % u;
|
|
474
470
|
}
|
|
475
|
-
},
|
|
471
|
+
}, Cn = function(e) {
|
|
476
472
|
return function(r) {
|
|
477
|
-
var n, t = (n =
|
|
473
|
+
var n, t = (n = Xe(r)) === null || n === void 0 ? void 0 : n.autofocus;
|
|
478
474
|
return (
|
|
479
475
|
// @ts-expect-error
|
|
480
476
|
r.autofocus || //
|
|
@@ -482,11 +478,11 @@ var O = function(e) {
|
|
|
482
478
|
e.indexOf(r) >= 0
|
|
483
479
|
);
|
|
484
480
|
};
|
|
485
|
-
},
|
|
481
|
+
}, _e = function(e, r, n) {
|
|
486
482
|
var t = e.map(function(u) {
|
|
487
483
|
var i = u.node;
|
|
488
484
|
return i;
|
|
489
|
-
}), o = De(t.filter(
|
|
485
|
+
}), o = De(t.filter(Cn(n)));
|
|
490
486
|
return o && o.length ? Ce(o) : Ce(De(r));
|
|
491
487
|
}, fe = function(e, r) {
|
|
492
488
|
return r === void 0 && (r = []), r.push(e), e.parentNode && fe(e.parentNode.host || e.parentNode, r), r;
|
|
@@ -497,7 +493,7 @@ var O = function(e) {
|
|
|
497
493
|
return u;
|
|
498
494
|
}
|
|
499
495
|
return !1;
|
|
500
|
-
},
|
|
496
|
+
}, er = function(e, r, n) {
|
|
501
497
|
var t = A(e), o = A(r), u = t[0], i = !1;
|
|
502
498
|
return o.filter(Boolean).forEach(function(c) {
|
|
503
499
|
i = ne(i || c, c) || i, n.filter(Boolean).forEach(function(v) {
|
|
@@ -507,17 +503,17 @@ var O = function(e) {
|
|
|
507
503
|
}), i;
|
|
508
504
|
}, ke = function(e, r) {
|
|
509
505
|
return e.reduce(function(n, t) {
|
|
510
|
-
return n.concat(
|
|
506
|
+
return n.concat(xn(t, r));
|
|
511
507
|
}, []);
|
|
512
|
-
},
|
|
508
|
+
}, Mn = function(e, r) {
|
|
513
509
|
var n = /* @__PURE__ */ new Map();
|
|
514
510
|
return r.forEach(function(t) {
|
|
515
511
|
return n.set(t.node, t);
|
|
516
512
|
}), e.map(function(t) {
|
|
517
513
|
return n.get(t);
|
|
518
|
-
}).filter(
|
|
519
|
-
},
|
|
520
|
-
var n = H(A(e).length > 0 ? document :
|
|
514
|
+
}).filter(bn);
|
|
515
|
+
}, _n = function(e, r) {
|
|
516
|
+
var n = H(A(e).length > 0 ? document : je(e).ownerDocument), t = ye(e).filter(ie), o = er(n || e, e, t), u = /* @__PURE__ */ new Map(), i = G(t, u), c = i.filter(function(d) {
|
|
521
517
|
var p = d.node;
|
|
522
518
|
return ie(p);
|
|
523
519
|
});
|
|
@@ -525,7 +521,7 @@ var O = function(e) {
|
|
|
525
521
|
var v = G([o], u).map(function(d) {
|
|
526
522
|
var p = d.node;
|
|
527
523
|
return p;
|
|
528
|
-
}), f =
|
|
524
|
+
}), f = Mn(v, c), b = f.map(function(d) {
|
|
529
525
|
var p = d.node;
|
|
530
526
|
return p;
|
|
531
527
|
}), s = f.filter(function(d) {
|
|
@@ -534,11 +530,11 @@ var O = function(e) {
|
|
|
534
530
|
}).map(function(d) {
|
|
535
531
|
var p = d.node;
|
|
536
532
|
return p;
|
|
537
|
-
}), a =
|
|
533
|
+
}), a = Dn(b, s, v, n, r);
|
|
538
534
|
if (a === ce) {
|
|
539
535
|
var m = (
|
|
540
536
|
// first try only tabbable, and the fallback to all focusable, as long as at least one element should be picked for focus
|
|
541
|
-
|
|
537
|
+
_e(i, s, ke(t, u)) || _e(i, b, ke(t, u))
|
|
542
538
|
);
|
|
543
539
|
if (m)
|
|
544
540
|
return { node: m };
|
|
@@ -547,8 +543,8 @@ var O = function(e) {
|
|
|
547
543
|
}
|
|
548
544
|
return a === void 0 ? a : f[a];
|
|
549
545
|
}
|
|
550
|
-
},
|
|
551
|
-
var r = ye(e).filter(ie), n =
|
|
546
|
+
}, kn = function(e) {
|
|
547
|
+
var r = ye(e).filter(ie), n = er(e, e, r), t = ve(L([n], !0), !0, !0), o = L(r, !1);
|
|
552
548
|
return t.map(function(u) {
|
|
553
549
|
var i = u.node, c = u.index;
|
|
554
550
|
return {
|
|
@@ -560,9 +556,9 @@ var O = function(e) {
|
|
|
560
556
|
});
|
|
561
557
|
}, ge = function(e, r) {
|
|
562
558
|
e && ("focus" in e && e.focus(r), "contentWindow" in e && e.contentWindow && e.contentWindow.focus());
|
|
563
|
-
}, te = 0, oe = !1,
|
|
559
|
+
}, te = 0, oe = !1, rr = function(e, r, n) {
|
|
564
560
|
n === void 0 && (n = {});
|
|
565
|
-
var t =
|
|
561
|
+
var t = _n(e, r);
|
|
566
562
|
if (!oe && t) {
|
|
567
563
|
if (te > 2) {
|
|
568
564
|
console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"), oe = !0, setTimeout(function() {
|
|
@@ -585,7 +581,7 @@ function W(e) {
|
|
|
585
581
|
return (r == null ? void 0 : r.deref()) || null;
|
|
586
582
|
};
|
|
587
583
|
}
|
|
588
|
-
var
|
|
584
|
+
var Ln = function(e) {
|
|
589
585
|
if (!e)
|
|
590
586
|
return null;
|
|
591
587
|
for (var r = [], n = e; n && n !== document.body; )
|
|
@@ -600,7 +596,7 @@ var Wn = function(e) {
|
|
|
600
596
|
stack: r,
|
|
601
597
|
ownerDocument: e.ownerDocument
|
|
602
598
|
};
|
|
603
|
-
},
|
|
599
|
+
}, Rn = function(e) {
|
|
604
600
|
var r, n, t, o, u;
|
|
605
601
|
if (e)
|
|
606
602
|
for (var i = e.stack, c = e.ownerDocument, v = /* @__PURE__ */ new Map(), f = 0, b = i; f < b.length; f++) {
|
|
@@ -628,12 +624,12 @@ var Wn = function(e) {
|
|
|
628
624
|
return E[0].node;
|
|
629
625
|
}
|
|
630
626
|
}
|
|
631
|
-
},
|
|
632
|
-
var r =
|
|
627
|
+
}, nr = function(e) {
|
|
628
|
+
var r = Ln(e);
|
|
633
629
|
return function() {
|
|
634
|
-
return
|
|
630
|
+
return Rn(r);
|
|
635
631
|
};
|
|
636
|
-
},
|
|
632
|
+
}, Wn = function(e, r, n) {
|
|
637
633
|
if (!e || !r)
|
|
638
634
|
return console.error("no element or scope given"), {};
|
|
639
635
|
var t = A(r);
|
|
@@ -652,64 +648,64 @@ var Wn = function(e) {
|
|
|
652
648
|
first: o[0],
|
|
653
649
|
last: o[o.length - 1]
|
|
654
650
|
};
|
|
655
|
-
},
|
|
651
|
+
}, Bn = function(e, r) {
|
|
656
652
|
var n = r ? be(A(e), /* @__PURE__ */ new Map()) : G(A(e), /* @__PURE__ */ new Map());
|
|
657
653
|
return {
|
|
658
654
|
first: n[0],
|
|
659
655
|
last: n[n.length - 1]
|
|
660
656
|
};
|
|
661
|
-
},
|
|
657
|
+
}, Un = function(e) {
|
|
662
658
|
return Object.assign({
|
|
663
659
|
scope: document.body,
|
|
664
660
|
cycle: !0,
|
|
665
661
|
onlyTabbable: !0
|
|
666
662
|
}, e);
|
|
667
|
-
},
|
|
663
|
+
}, tr = function(e, r, n) {
|
|
668
664
|
r === void 0 && (r = {});
|
|
669
|
-
var t =
|
|
665
|
+
var t = Un(r), o = Wn(e, t.scope, t.onlyTabbable);
|
|
670
666
|
if (o) {
|
|
671
667
|
var u = n(o, t.cycle);
|
|
672
668
|
u && ge(u.node, t.focusOptions);
|
|
673
669
|
}
|
|
674
|
-
},
|
|
675
|
-
r === void 0 && (r = {}),
|
|
670
|
+
}, Gn = function(e, r) {
|
|
671
|
+
r === void 0 && (r = {}), tr(e, r, function(n, t) {
|
|
676
672
|
var o = n.next, u = n.first;
|
|
677
673
|
return o || t && u;
|
|
678
674
|
});
|
|
679
|
-
},
|
|
680
|
-
r === void 0 && (r = {}),
|
|
675
|
+
}, Hn = function(e, r) {
|
|
676
|
+
r === void 0 && (r = {}), tr(e, r, function(n, t) {
|
|
681
677
|
var o = n.prev, u = n.last;
|
|
682
678
|
return o || t && u;
|
|
683
679
|
});
|
|
684
|
-
},
|
|
685
|
-
var t, o =
|
|
680
|
+
}, or = function(e, r, n) {
|
|
681
|
+
var t, o = Bn(e, (t = r.onlyTabbable) !== null && t !== void 0 ? t : !0), u = o[n];
|
|
686
682
|
u && ge(u.node, r.focusOptions);
|
|
687
|
-
},
|
|
688
|
-
r === void 0 && (r = {}),
|
|
689
|
-
},
|
|
690
|
-
r === void 0 && (r = {}),
|
|
683
|
+
}, jn = function(e, r) {
|
|
684
|
+
r === void 0 && (r = {}), or(e, r, "first");
|
|
685
|
+
}, Vn = function(e, r) {
|
|
686
|
+
r === void 0 && (r = {}), or(e, r, "last");
|
|
691
687
|
};
|
|
692
688
|
function Fe(e) {
|
|
693
689
|
setTimeout(e, 1);
|
|
694
690
|
}
|
|
695
|
-
var
|
|
691
|
+
var qn = function(r) {
|
|
696
692
|
return r && "current" in r ? r.current : r;
|
|
697
|
-
},
|
|
693
|
+
}, ur = function() {
|
|
698
694
|
return document && document.activeElement === document.body;
|
|
699
|
-
},
|
|
700
|
-
return
|
|
701
|
-
},
|
|
695
|
+
}, $n = function() {
|
|
696
|
+
return ur() || Pn();
|
|
697
|
+
}, _ = null, g = null, Le = function() {
|
|
702
698
|
return null;
|
|
703
|
-
}, k = null, j = !1, Ee = !1,
|
|
699
|
+
}, k = null, j = !1, Ee = !1, Kn = function() {
|
|
704
700
|
return !0;
|
|
705
|
-
},
|
|
706
|
-
return (
|
|
707
|
-
},
|
|
701
|
+
}, Xn = function(r) {
|
|
702
|
+
return (_.whiteList || Kn)(r);
|
|
703
|
+
}, Yn = function(r, n) {
|
|
708
704
|
k = {
|
|
709
705
|
observerNode: r,
|
|
710
706
|
portaledElement: n
|
|
711
707
|
};
|
|
712
|
-
},
|
|
708
|
+
}, zn = function(r) {
|
|
713
709
|
return k && k.portaledElement === r;
|
|
714
710
|
};
|
|
715
711
|
function Re(e, r, n, t) {
|
|
@@ -727,43 +723,43 @@ function Re(e, r, n, t) {
|
|
|
727
723
|
} while ((u += n) !== r);
|
|
728
724
|
o && (o.node.tabIndex = 0);
|
|
729
725
|
}
|
|
730
|
-
var
|
|
726
|
+
var Jn = function(r) {
|
|
731
727
|
return r ? !!j : j === "meanwhile";
|
|
732
|
-
},
|
|
728
|
+
}, Qn = function e(r, n, t) {
|
|
733
729
|
return n && (n.host === r && (!n.activeElement || t.contains(n.activeElement)) || n.parentNode && e(r, n.parentNode, t));
|
|
734
|
-
},
|
|
730
|
+
}, Zn = function(r, n) {
|
|
735
731
|
return n.some(function(t) {
|
|
736
|
-
return
|
|
732
|
+
return Qn(r, t, t);
|
|
737
733
|
});
|
|
738
|
-
},
|
|
734
|
+
}, ar = function(r) {
|
|
739
735
|
return G(r, /* @__PURE__ */ new Map());
|
|
740
|
-
},
|
|
741
|
-
return !
|
|
736
|
+
}, et = function(r) {
|
|
737
|
+
return !ar([r.parentNode]).some(function(n) {
|
|
742
738
|
return n.node === r;
|
|
743
739
|
});
|
|
744
740
|
}, K = function() {
|
|
745
741
|
var r = !1;
|
|
746
|
-
if (
|
|
747
|
-
var n =
|
|
748
|
-
if (
|
|
742
|
+
if (_) {
|
|
743
|
+
var n = _, t = n.observed, o = n.persistentFocus, u = n.autoFocus, i = n.shards, c = n.crossFrame, v = n.focusOptions, f = n.noFocusGuards, b = t || k && k.portaledElement;
|
|
744
|
+
if (ur() && g && g !== document.body && (!document.body.contains(g) || et(g))) {
|
|
749
745
|
var s = Le();
|
|
750
746
|
s && s.focus();
|
|
751
747
|
}
|
|
752
748
|
var a = document && document.activeElement;
|
|
753
749
|
if (b) {
|
|
754
|
-
var m = [b].concat(i.map(
|
|
755
|
-
if (!
|
|
750
|
+
var m = [b].concat(i.map(qn).filter(Boolean)), d = function() {
|
|
751
|
+
if (!Jn(c) || !f || !g || Ee)
|
|
756
752
|
return !1;
|
|
757
|
-
var h =
|
|
753
|
+
var h = ar(m), x = h.findIndex(function(S) {
|
|
758
754
|
var X = S.node;
|
|
759
755
|
return X === g;
|
|
760
756
|
});
|
|
761
757
|
return x === 0 || x === h.length - 1;
|
|
762
758
|
};
|
|
763
|
-
if ((!a ||
|
|
759
|
+
if ((!a || Xn(a)) && (o || d() || !$n() || !g && u) && (b && !(Ze(m) || a && Zn(a, m) || zn(a)) && (document && !g && a && !u ? (a.blur && a.blur(), document.body.focus()) : (r = rr(m, g, {
|
|
764
760
|
focusOptions: v
|
|
765
|
-
}), k = {})), g = document && document.activeElement, g !== document.body && (Le =
|
|
766
|
-
var p = document && document.activeElement, F =
|
|
761
|
+
}), k = {})), g = document && document.activeElement, g !== document.body && (Le = nr(g)), j = !1), document && a !== document.activeElement && document.querySelector("[data-focus-auto-guard]")) {
|
|
762
|
+
var p = document && document.activeElement, F = kn(m), E = F.map(function(y) {
|
|
767
763
|
var h = y.node;
|
|
768
764
|
return h;
|
|
769
765
|
}).indexOf(p);
|
|
@@ -778,86 +774,82 @@ var Zn = function(r) {
|
|
|
778
774
|
}
|
|
779
775
|
}
|
|
780
776
|
return r;
|
|
781
|
-
},
|
|
777
|
+
}, ir = function(r) {
|
|
782
778
|
K() && r && (r.stopPropagation(), r.preventDefault());
|
|
783
779
|
}, Oe = function() {
|
|
784
780
|
return Fe(K);
|
|
785
|
-
},
|
|
781
|
+
}, rt = function(r) {
|
|
786
782
|
var n = r.target, t = r.currentTarget;
|
|
787
|
-
t.contains(n) ||
|
|
788
|
-
},
|
|
783
|
+
t.contains(n) || Yn(t, n);
|
|
784
|
+
}, nt = function() {
|
|
789
785
|
return null;
|
|
790
|
-
}
|
|
791
|
-
process.env.NODE_ENV !== "production" && Be.node.isRequired;
|
|
792
|
-
var fr = function() {
|
|
786
|
+
}, cr = function() {
|
|
793
787
|
Ee = !0;
|
|
794
|
-
},
|
|
788
|
+
}, fr = function() {
|
|
795
789
|
Ee = !1, j = "just", Fe(function() {
|
|
796
790
|
j = "meanwhile";
|
|
797
791
|
});
|
|
798
|
-
},
|
|
799
|
-
document.addEventListener("focusin",
|
|
800
|
-
},
|
|
801
|
-
document.removeEventListener("focusin",
|
|
792
|
+
}, tt = function() {
|
|
793
|
+
document.addEventListener("focusin", ir), document.addEventListener("focusout", Oe), window.addEventListener("focus", cr), window.addEventListener("blur", fr);
|
|
794
|
+
}, ot = function() {
|
|
795
|
+
document.removeEventListener("focusin", ir), document.removeEventListener("focusout", Oe), window.removeEventListener("focus", cr), window.removeEventListener("blur", fr);
|
|
802
796
|
};
|
|
803
|
-
function
|
|
797
|
+
function ut(e) {
|
|
804
798
|
return e.filter(function(r) {
|
|
805
799
|
var n = r.disabled;
|
|
806
800
|
return !n;
|
|
807
801
|
});
|
|
808
802
|
}
|
|
809
|
-
var
|
|
810
|
-
moveFocusInside:
|
|
811
|
-
focusInside:
|
|
812
|
-
focusNextElement:
|
|
813
|
-
focusPrevElement:
|
|
814
|
-
focusFirstElement:
|
|
815
|
-
focusLastElement:
|
|
816
|
-
captureFocusRestore:
|
|
803
|
+
var sr = {
|
|
804
|
+
moveFocusInside: rr,
|
|
805
|
+
focusInside: Ze,
|
|
806
|
+
focusNextElement: Gn,
|
|
807
|
+
focusPrevElement: Hn,
|
|
808
|
+
focusFirstElement: jn,
|
|
809
|
+
focusLastElement: Vn,
|
|
810
|
+
captureFocusRestore: nr
|
|
817
811
|
};
|
|
818
|
-
function
|
|
812
|
+
function at(e) {
|
|
819
813
|
var r = e.slice(-1)[0];
|
|
820
|
-
r && !
|
|
821
|
-
var n =
|
|
822
|
-
|
|
814
|
+
r && !_ && tt();
|
|
815
|
+
var n = _, t = n && r && r.id === n.id;
|
|
816
|
+
_ = r, n && !t && (n.onDeactivation(), e.filter(function(o) {
|
|
823
817
|
var u = o.id;
|
|
824
818
|
return u === n.id;
|
|
825
|
-
}).length || n.returnFocus(!r)), r ? (g = null, (!t || n.observed !== r.observed) && r.onActivation(
|
|
819
|
+
}).length || n.returnFocus(!r)), r ? (g = null, (!t || n.observed !== r.observed) && r.onActivation(sr), K(), Fe(K)) : (ot(), g = null);
|
|
826
820
|
}
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
return e(
|
|
821
|
+
Ge.assignSyncMedium(rt);
|
|
822
|
+
He.assignMedium(Oe);
|
|
823
|
+
Zr.assignMedium(function(e) {
|
|
824
|
+
return e(sr);
|
|
831
825
|
});
|
|
832
|
-
const
|
|
833
|
-
var
|
|
834
|
-
return /* @__PURE__ */
|
|
835
|
-
sideCar:
|
|
826
|
+
const it = cn(ut, at)(nt);
|
|
827
|
+
var dr = /* @__PURE__ */ We(function(r, n) {
|
|
828
|
+
return /* @__PURE__ */ I.createElement(de, B({
|
|
829
|
+
sideCar: it,
|
|
836
830
|
ref: n
|
|
837
831
|
}, r));
|
|
838
|
-
}),
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
lr.propTypes = process.env.NODE_ENV !== "production" ? st : {};
|
|
842
|
-
const dt = ({
|
|
832
|
+
}), ct = de.propTypes || {}, ft = Yr(ct, ["sideCar"]);
|
|
833
|
+
dr.propTypes = process.env.NODE_ENV !== "production" ? ft : {};
|
|
834
|
+
const st = ({
|
|
843
835
|
children: e,
|
|
844
836
|
theme: r,
|
|
845
837
|
className: n,
|
|
846
838
|
buttonCloseClassName: t
|
|
847
839
|
}) => {
|
|
848
|
-
const { content: o, onClose: u, closeBtnRef: i } =
|
|
849
|
-
(a) => $(a) && a.type ===
|
|
840
|
+
const { content: o, onClose: u, closeBtnRef: i } = Be(), { theme: c } = Xr(), v = q.toArray(e).find(
|
|
841
|
+
(a) => $(a) && a.type === N.Header
|
|
850
842
|
), f = q.toArray(e).find(
|
|
851
|
-
(a) => $(a) && a.type ===
|
|
843
|
+
(a) => $(a) && a.type === N.Body
|
|
852
844
|
), b = q.toArray(e).find(
|
|
853
|
-
(a) => $(a) && a.type ===
|
|
845
|
+
(a) => $(a) && a.type === N.Footer
|
|
854
846
|
), s = q.toArray(e).filter(
|
|
855
|
-
(a) => !$(a) || ![
|
|
847
|
+
(a) => !$(a) || ![N.Header, N.Body, N.Footer].includes(
|
|
856
848
|
a.type
|
|
857
849
|
)
|
|
858
850
|
);
|
|
859
|
-
return /* @__PURE__ */
|
|
860
|
-
/* @__PURE__ */
|
|
851
|
+
return /* @__PURE__ */ M(dr, { returnFocus: !0, children: /* @__PURE__ */ M(Vr, { children: /* @__PURE__ */ Q("div", { className: "fixed inset-0 grid place-content-center", children: [
|
|
852
|
+
/* @__PURE__ */ M(
|
|
861
853
|
"div",
|
|
862
854
|
{
|
|
863
855
|
className: "absolute inset-0 bg-black opacity-75",
|
|
@@ -869,7 +861,7 @@ const dt = ({
|
|
|
869
861
|
"div",
|
|
870
862
|
{
|
|
871
863
|
className: Ae(
|
|
872
|
-
|
|
864
|
+
qr({
|
|
873
865
|
className: n,
|
|
874
866
|
theme: r ?? c
|
|
875
867
|
})
|
|
@@ -883,15 +875,15 @@ const dt = ({
|
|
|
883
875
|
{
|
|
884
876
|
ref: i,
|
|
885
877
|
className: Ae(
|
|
886
|
-
|
|
878
|
+
$r({
|
|
887
879
|
className: t,
|
|
888
880
|
theme: r ?? c
|
|
889
881
|
})
|
|
890
882
|
),
|
|
891
883
|
onClick: u,
|
|
892
884
|
children: [
|
|
893
|
-
/* @__PURE__ */
|
|
894
|
-
/* @__PURE__ */
|
|
885
|
+
/* @__PURE__ */ M(Kr, {}),
|
|
886
|
+
/* @__PURE__ */ M(Lr, { children: "Dismiss modal" })
|
|
895
887
|
]
|
|
896
888
|
}
|
|
897
889
|
),
|
|
@@ -901,14 +893,14 @@ const dt = ({
|
|
|
901
893
|
}
|
|
902
894
|
)
|
|
903
895
|
] }) }) });
|
|
904
|
-
},
|
|
905
|
-
const { isOpen: r } =
|
|
906
|
-
return r ?
|
|
896
|
+
}, N = ({ ...e }) => {
|
|
897
|
+
const { isOpen: r } = Be();
|
|
898
|
+
return r ? kr.createPortal(/* @__PURE__ */ M(st, { ...e }), document.body) : null;
|
|
907
899
|
};
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
900
|
+
N.Header = _r;
|
|
901
|
+
N.Body = Cr;
|
|
902
|
+
N.Footer = Mr;
|
|
911
903
|
export {
|
|
912
|
-
|
|
913
|
-
|
|
904
|
+
N as M,
|
|
905
|
+
st as W
|
|
914
906
|
};
|