@easypost/easy-ui 1.0.0-alpha.51 → 1.0.0-alpha.53
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/Badge/index.js +14 -14
- package/Badge/index.mjs +14 -14
- package/Banner/index.js +5 -5
- package/Banner/index.mjs +5 -5
- package/Button/index.js +1 -1
- package/Button/index.mjs +1 -1
- package/CHANGELOG.md +18 -0
- package/Calendar/index.js +21 -21
- package/Calendar/index.mjs +20 -20
- package/Card/index.js +1 -1
- package/Card/index.mjs +1 -1
- package/Checkbox/index.js +1 -1
- package/Checkbox/index.mjs +1 -1
- package/CodeBlock/index.js +15 -15
- package/CodeBlock/index.mjs +15 -15
- package/CodeSnippet/index.js +1 -1
- package/CodeSnippet/index.mjs +1 -1
- package/DataGrid/ActionsCellContent.d.ts.map +1 -1
- package/DataGrid/index.js +77 -150
- package/DataGrid/index.mjs +74 -131
- package/Drawer/index.js +21 -21
- package/Drawer/index.mjs +21 -21
- package/DropdownButton/index.js +13 -13
- package/DropdownButton/index.mjs +13 -13
- package/EmptyStateCard/index.js +8 -8
- package/EmptyStateCard/index.mjs +8 -8
- package/FocusedProductLayout/index.js +23 -23
- package/FocusedProductLayout/index.mjs +23 -23
- package/FormLayout/index.js +5 -5
- package/FormLayout/index.mjs +5 -5
- package/HorizontalGrid/index.js +1 -1
- package/HorizontalGrid/index.mjs +1 -1
- package/HorizontalStack/index.js +1 -1
- package/HorizontalStack/index.mjs +1 -1
- package/Icon/index.js +1 -1
- package/Icon/index.mjs +1 -1
- package/IconButton/index.js +13 -13
- package/IconButton/index.mjs +13 -13
- package/InputField/index.js +1 -1
- package/InputField/index.mjs +1 -1
- package/KebabButton/KebabButton.d.ts +19 -0
- package/KebabButton/KebabButton.d.ts.map +1 -0
- package/KebabButton/KebabButton.stories.d.ts +7 -0
- package/KebabButton/KebabButton.stories.d.ts.map +1 -0
- package/KebabButton/KebabButton.test.d.ts +2 -0
- package/KebabButton/KebabButton.test.d.ts.map +1 -0
- package/KebabButton/index.d.ts +2 -0
- package/KebabButton/index.d.ts.map +1 -0
- package/KebabButton/index.js +4 -0
- package/KebabButton/index.mjs +4 -0
- package/Menu/index.js +1 -1
- package/Menu/index.mjs +1 -1
- package/Modal/index.js +22 -22
- package/Modal/index.mjs +22 -22
- package/NexusLayout/index.js +31 -31
- package/NexusLayout/index.mjs +31 -31
- package/Notification/index.js +1 -1
- package/Notification/index.mjs +1 -1
- package/Pagination/index.js +8 -8
- package/Pagination/index.mjs +8 -8
- package/PillGroup/index.js +16 -16
- package/PillGroup/index.mjs +16 -16
- package/ProductLayout/index.js +25 -25
- package/ProductLayout/index.mjs +25 -25
- package/Provider/index.js +2 -2
- package/Provider/index.mjs +2 -2
- package/RadioGroup/index.js +21 -21
- package/RadioGroup/index.mjs +21 -21
- package/SearchNav/index.js +30 -30
- package/SearchNav/index.mjs +30 -30
- package/SectionCard/index.js +7 -7
- package/SectionCard/index.mjs +7 -7
- package/Select/index.js +5 -5
- package/Select/index.mjs +5 -5
- package/SelectorErrorTooltip/index.js +1 -1
- package/SelectorErrorTooltip/index.mjs +1 -1
- package/Spinner/index.js +1 -1
- package/Spinner/index.mjs +1 -1
- package/SplitToggleCard/index.js +4 -4
- package/SplitToggleCard/index.mjs +4 -4
- package/Stepper/index.js +1 -1
- package/Stepper/index.mjs +1 -1
- package/TabNav/index.js +1 -1
- package/TabNav/index.mjs +1 -1
- package/TabPanels/index.js +4 -4
- package/TabPanels/index.mjs +4 -4
- package/Tabs/index.js +1 -1
- package/Tabs/index.mjs +1 -1
- package/Text/index.js +1 -1
- package/Text/index.mjs +1 -1
- package/TextField/index.js +1 -1
- package/TextField/index.mjs +1 -1
- package/Textarea/index.js +1 -1
- package/Textarea/index.mjs +1 -1
- package/Toggle/index.js +1 -1
- package/Toggle/index.mjs +1 -1
- package/ToggleCard/index.js +2 -2
- package/ToggleCard/index.mjs +2 -2
- package/Tooltip/index.js +1 -1
- package/Tooltip/index.mjs +1 -1
- package/UnstyledButton/UnstyledPressButton.d.ts.map +1 -0
- package/UnstyledButton/index.js +1 -1
- package/UnstyledButton/index.mjs +1 -1
- package/VerticalNav/index.js +25 -25
- package/VerticalNav/index.mjs +25 -25
- package/VerticalStack/index.js +1 -1
- package/VerticalStack/index.mjs +1 -1
- package/__chunks__/{Button-CmD64QHM.js → Button-BLXBu8Ta.js} +18 -18
- package/__chunks__/{Button-MAW230DJ.mjs → Button-KmjMp6fw.mjs} +18 -18
- package/__chunks__/{Card-R59fzj3D.js → Card-Bn_WwYcR.js} +12 -12
- package/__chunks__/{Card-DGfYl_59.mjs → Card-YKZzjRiK.mjs} +12 -12
- package/__chunks__/{Checkbox-Ba17R9Me.mjs → Checkbox--LkvUfIF.mjs} +23 -23
- package/__chunks__/{Checkbox-CmWLfIf5.js → Checkbox-CLLYuQFM.js} +23 -23
- package/__chunks__/{CodeSnippet-DnRi1zYt.js → CodeSnippet-D5b8WTPo.js} +2 -2
- package/__chunks__/{CodeSnippet-Cg2yqHEL.mjs → CodeSnippet-daiUE0ZZ.mjs} +2 -2
- package/__chunks__/{FocusScope-CoZUVDQG.js → FocusScope-D5T6fKI9.js} +14 -14
- package/__chunks__/{FocusScope-CjqREKhC.mjs → FocusScope-OD0PXxQI.mjs} +2 -2
- package/__chunks__/{HelpMenu-C6YpBA_k.mjs → HelpMenu-CvYzKDPL.mjs} +7 -7
- package/__chunks__/{HelpMenu-LqjnU6B5.js → HelpMenu-dUbPE3b6.js} +7 -7
- package/__chunks__/{HorizontalGrid-Cq1Kn_YA.mjs → HorizontalGrid-BZ6IHKxE.mjs} +1 -1
- package/__chunks__/{HorizontalGrid-CaRVABQC.js → HorizontalGrid-ijPB5iDF.js} +1 -1
- package/__chunks__/{HorizontalStack-BCdQy_30.js → HorizontalStack-BhYVqGNF.js} +1 -1
- package/__chunks__/{HorizontalStack-BR78qm70.mjs → HorizontalStack-CVOKWs2C.mjs} +1 -1
- package/__chunks__/{Icon-Zte0ahKA.js → Icon-DTlCtPmb.js} +2 -2
- package/__chunks__/{Icon-CsV8dQQm.mjs → Icon-ML4td6nu.mjs} +2 -2
- package/__chunks__/{InputField-0nt-c6A-.mjs → InputField-BGuPTA6X.mjs} +7 -7
- package/__chunks__/{InputField-DnmD_5dk.js → InputField-BVj42bl6.js} +8 -8
- package/__chunks__/{InputIcon-WvKiG8-J.mjs → InputIcon-Ds8RTUHn.mjs} +25 -25
- package/__chunks__/{InputIcon-CO8cC16W.js → InputIcon-cgR2J0CY.js} +25 -25
- package/__chunks__/KebabButton-Dwul0lCB.js +121 -0
- package/__chunks__/KebabButton-KJLOsFVT.mjs +106 -0
- package/__chunks__/{Menu-JWYDsIM8.mjs → Menu-_F51cSwS.mjs} +19 -19
- package/__chunks__/{Menu-DywMr2qv.js → Menu-aW3etzMU.js} +19 -19
- package/__chunks__/{Notification-CjXnveJm.mjs → Notification-B_EYEB85.mjs} +18 -18
- package/__chunks__/{Notification-DzT477jX.js → Notification-FLiv_7Pz.js} +22 -22
- package/__chunks__/{Overlay-Dz_4R38U.mjs → Overlay-8RgU2lAl.mjs} +1 -1
- package/__chunks__/{Overlay-DBi2SVGv.js → Overlay-B-di_dfG.js} +1 -1
- package/__chunks__/{SelectOverlay-C1_4dzMC.js → SelectOverlay-BXUOr3V4.js} +30 -29
- package/__chunks__/{SelectOverlay-00AM3v2y.mjs → SelectOverlay-CE6xQN1A.mjs} +29 -28
- package/__chunks__/{SelectorErrorTooltip-Bc-Sd0bp.js → SelectorErrorTooltip-CVmgS1ea.js} +4 -4
- package/__chunks__/{SelectorErrorTooltip-0nsfBmcs.mjs → SelectorErrorTooltip-Kb6OHby6.mjs} +4 -4
- package/__chunks__/{Spinner-BdZBA8PL.js → Spinner-B824MsLf.js} +5 -5
- package/__chunks__/{Spinner-BKREfd3i.mjs → Spinner-B_gLJGR4.mjs} +5 -5
- package/__chunks__/{Stepper-CQpiq4EU.js → Stepper-BsXgQ8uM.js} +27 -27
- package/__chunks__/{Stepper-d2Ervejf.mjs → Stepper-jvJMb2AN.mjs} +27 -27
- package/__chunks__/{TabNav-BFg_oRV3.js → TabNav-7zvsNpDC.js} +1 -1
- package/__chunks__/{TabNav-BTQ_qSQL.mjs → TabNav-DZMmlU0F.mjs} +1 -1
- package/__chunks__/{Tabs-CGUaAlMI.js → Tabs-Bno4dYlh.js} +18 -18
- package/__chunks__/{Tabs-D6dblFwF.mjs → Tabs-S7stbA0f.mjs} +18 -18
- package/__chunks__/{Text-WpS48dIg.mjs → Text-7pwgbag-.mjs} +34 -34
- package/__chunks__/{Text-Bq6ipzm3.js → Text-CT2y5c8a.js} +34 -34
- package/__chunks__/{Toggle-CNNb1-5k.js → Toggle-DTGHrByH.js} +13 -13
- package/__chunks__/{Toggle-BQzlDTjD.mjs → Toggle-DnXlXQfM.mjs} +13 -13
- package/__chunks__/{Tooltip-De2H3lpF.mjs → Tooltip-CtI3y9PC.mjs} +11 -11
- package/__chunks__/{Tooltip-Dp7uYQ-L.js → Tooltip-D3oH4aIj.js} +11 -11
- package/__chunks__/{UnstyledButton-DcvMv4SL.mjs → UnstyledButton-0v6TRjMY.mjs} +1 -1
- package/__chunks__/{UnstyledButton-DVpiY5Qh.js → UnstyledButton-BfeN_d1h.js} +1 -1
- package/__chunks__/{VerticalStack-CByiLhy3.mjs → VerticalStack-BHv8i_jQ.mjs} +3 -3
- package/__chunks__/{VerticalStack-Dz0-4vfW.js → VerticalStack-BiBVFfHt.js} +3 -3
- package/__chunks__/{VisuallyHidden-CBNzWIG8.mjs → VisuallyHidden-BsBkcHpw.mjs} +1 -1
- package/__chunks__/{VisuallyHidden-zJSJlhfQ.js → VisuallyHidden-CVfjb1YY.js} +1 -1
- package/__chunks__/{ariaHideOutside-qn3-pnlW.js → ariaHideOutside-BYYnLsgt.js} +5 -5
- package/__chunks__/{ariaHideOutside-CGNrOhSc.mjs → ariaHideOutside-CGNwwQAc.mjs} +3 -3
- package/__chunks__/focusSafely-CZPj1Dug.js +14 -0
- package/__chunks__/focusSafely-DfpH-pE9.mjs +15 -0
- package/__chunks__/isVirtualEvent-BPCuFO54.mjs +74 -0
- package/__chunks__/isVirtualEvent-DwoP1rNI.js +73 -0
- package/__chunks__/{focusSafely-MxnwWbsu.mjs → runAfterTransition-B7Bfhj0D.mjs} +2 -13
- package/__chunks__/{focusSafely-BpCL6rxl.js → runAfterTransition-DtSqibrj.js} +0 -11
- package/__chunks__/{useButton-COCB0O4M.mjs → useButton-C6QFpa4j.mjs} +2 -2
- package/__chunks__/{useButton-hrdBTa5u.js → useButton-DVdJNlul.js} +2 -2
- package/__chunks__/{useDialog-47nl4w_8.mjs → useDialog-BThBdiel.mjs} +3 -3
- package/__chunks__/{useDialog-DNGXm940.js → useDialog-DIiUusMk.js} +3 -3
- package/__chunks__/{useEdgeInterceptors-D8jJYqF3.js → useEdgeInterceptors-CegFcI5C.js} +5 -5
- package/__chunks__/{useEdgeInterceptors-DNVZfje3.mjs → useEdgeInterceptors-Cg-US2Aq.mjs} +5 -5
- package/__chunks__/{useFocus-Dk6g6k91.js → useFocus-B4oRb1dU.js} +3 -2
- package/__chunks__/{useFocus-DOcjAFnP.mjs → useFocus-By3Cx-xz.mjs} +2 -1
- package/__chunks__/{useFocusRing-CKgGPgoX.js → useFocusRing-DFRFvht_.js} +3 -3
- package/__chunks__/{useFocusRing-Cj5zef_6.mjs → useFocusRing-dRPhwlpK.mjs} +3 -3
- package/__chunks__/{useFocusVisible-DXAxI2Xj.mjs → useFocusVisible-BbEmluTm.mjs} +4 -75
- package/__chunks__/{useFocusVisible-DAg8LS6j.js → useFocusVisible-PBQuklI8.js} +13 -84
- package/__chunks__/{useFocusWithin-CxvNMoRn.js → useFocusWithin-C1ioGWec.js} +1 -1
- package/__chunks__/{useFocusWithin-Bg5BTlgA.mjs → useFocusWithin-krnNAgDY.mjs} +1 -1
- package/__chunks__/{useFocusable-Uo_zjP6s.mjs → useFocusable-B0naYTNU.mjs} +2 -2
- package/__chunks__/{useFocusable-By9yXfUQ.js → useFocusable-D0hhxIk-.js} +2 -2
- package/__chunks__/{useFormValidation-DOUyT2Mb.js → useFormValidation-C2DoIczP.js} +1 -1
- package/__chunks__/{useFormValidation-C_CD-7QE.mjs → useFormValidation-DAScndBq.mjs} +1 -1
- package/__chunks__/{useHasTabbableChild-BCSKoUR_.js → useHasTabbableChild-4Ga1outX.js} +1 -1
- package/__chunks__/{useHasTabbableChild-DhoFI49t.mjs → useHasTabbableChild-DU6tKe-i.mjs} +1 -1
- package/__chunks__/{useHighlightSelectionDescription-P7rP7hnM.js → useHighlightSelectionDescription-CG5W6CIQ.js} +1 -1
- package/__chunks__/{useHighlightSelectionDescription-BGSwVQtc.mjs → useHighlightSelectionDescription-CPtYsCSQ.mjs} +1 -1
- package/__chunks__/{useModal-sVKQd6HX.mjs → useModal-DajWXu6g.mjs} +1 -1
- package/__chunks__/{useModal-BV6_Azqp.js → useModal-QwDRNW96.js} +2 -2
- package/__chunks__/{usePress-DjyN_yP2.js → usePress-BVH8whNd.js} +26 -26
- package/__chunks__/{usePress-CA-sH9oY.mjs → usePress-CiUDlxr6.mjs} +2 -2
- package/__chunks__/{useSelectableItem-Bgjo4Ulj.js → useSelectableItem-CJ5_OAlc.js} +10 -8
- package/__chunks__/{useSelectableItem-Dn-hODEw.mjs → useSelectableItem-SVHzvSUI.mjs} +6 -4
- package/__chunks__/{useSelectableList-DjrCndUM.mjs → useSelectableList-C-_LjaIN.mjs} +1 -1
- package/__chunks__/{useSelectableList-CjopKGbS.js → useSelectableList-ICLJNy5q.js} +1 -1
- package/__chunks__/{useToggle-V7BhKpNo.mjs → useToggle-B8pvlPQG.mjs} +2 -2
- package/__chunks__/{useToggle-qLiVQ6Y2.js → useToggle-CE4Qgz03.js} +2 -2
- package/__chunks__/{useTriggerWidth-CI9YrWOP.mjs → useTriggerWidth-BhAxDRD1.mjs} +4 -4
- package/__chunks__/{useTriggerWidth-Bj1hzfIg.js → useTriggerWidth-CCmtSs-d.js} +4 -4
- package/package.json +2 -2
- package/style.css +970 -968
- package/DataGrid/UnstyledPressButton.d.ts.map +0 -1
- /package/{DataGrid → UnstyledButton}/UnstyledPressButton.d.ts +0 -0
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
const $431fbd86ca7dc216$export$b204af158042fbac = (el) => {
|
|
2
|
+
var _el_ownerDocument;
|
|
3
|
+
return (_el_ownerDocument = el === null || el === void 0 ? void 0 : el.ownerDocument) !== null && _el_ownerDocument !== void 0 ? _el_ownerDocument : document;
|
|
4
|
+
};
|
|
5
|
+
const $431fbd86ca7dc216$export$f21a1ffae260145a = (el) => {
|
|
6
|
+
if (el && "window" in el && el.window === el) return el;
|
|
7
|
+
const doc = $431fbd86ca7dc216$export$b204af158042fbac(el);
|
|
8
|
+
return doc.defaultView || window;
|
|
9
|
+
};
|
|
10
|
+
function $c87311424ea30a05$var$testUserAgent(re) {
|
|
11
|
+
var _window_navigator_userAgentData;
|
|
12
|
+
if (typeof window === "undefined" || window.navigator == null) return false;
|
|
13
|
+
return ((_window_navigator_userAgentData = window.navigator["userAgentData"]) === null || _window_navigator_userAgentData === void 0 ? void 0 : _window_navigator_userAgentData.brands.some((brand) => re.test(brand.brand))) || re.test(window.navigator.userAgent);
|
|
14
|
+
}
|
|
15
|
+
function $c87311424ea30a05$var$testPlatform(re) {
|
|
16
|
+
var _window_navigator_userAgentData;
|
|
17
|
+
return typeof window !== "undefined" && window.navigator != null ? re.test(((_window_navigator_userAgentData = window.navigator["userAgentData"]) === null || _window_navigator_userAgentData === void 0 ? void 0 : _window_navigator_userAgentData.platform) || window.navigator.platform) : false;
|
|
18
|
+
}
|
|
19
|
+
function $c87311424ea30a05$var$cached(fn) {
|
|
20
|
+
let res = null;
|
|
21
|
+
return () => {
|
|
22
|
+
if (res == null) res = fn();
|
|
23
|
+
return res;
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
const $c87311424ea30a05$export$9ac100e40613ea10 = $c87311424ea30a05$var$cached(function() {
|
|
27
|
+
return $c87311424ea30a05$var$testPlatform(/^Mac/i);
|
|
28
|
+
});
|
|
29
|
+
const $c87311424ea30a05$export$186c6964ca17d99 = $c87311424ea30a05$var$cached(function() {
|
|
30
|
+
return $c87311424ea30a05$var$testPlatform(/^iPhone/i);
|
|
31
|
+
});
|
|
32
|
+
const $c87311424ea30a05$export$7bef049ce92e4224 = $c87311424ea30a05$var$cached(function() {
|
|
33
|
+
return $c87311424ea30a05$var$testPlatform(/^iPad/i) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
|
|
34
|
+
$c87311424ea30a05$export$9ac100e40613ea10() && navigator.maxTouchPoints > 1;
|
|
35
|
+
});
|
|
36
|
+
const $c87311424ea30a05$export$fedb369cb70207f1 = $c87311424ea30a05$var$cached(function() {
|
|
37
|
+
return $c87311424ea30a05$export$186c6964ca17d99() || $c87311424ea30a05$export$7bef049ce92e4224();
|
|
38
|
+
});
|
|
39
|
+
const $c87311424ea30a05$export$e1865c3bedcd822b = $c87311424ea30a05$var$cached(function() {
|
|
40
|
+
return $c87311424ea30a05$export$9ac100e40613ea10() || $c87311424ea30a05$export$fedb369cb70207f1();
|
|
41
|
+
});
|
|
42
|
+
const $c87311424ea30a05$export$78551043582a6a98 = $c87311424ea30a05$var$cached(function() {
|
|
43
|
+
return $c87311424ea30a05$var$testUserAgent(/AppleWebKit/i) && !$c87311424ea30a05$export$6446a186d09e379e();
|
|
44
|
+
});
|
|
45
|
+
const $c87311424ea30a05$export$6446a186d09e379e = $c87311424ea30a05$var$cached(function() {
|
|
46
|
+
return $c87311424ea30a05$var$testUserAgent(/Chrome/i);
|
|
47
|
+
});
|
|
48
|
+
const $c87311424ea30a05$export$a11b0059900ceec8 = $c87311424ea30a05$var$cached(function() {
|
|
49
|
+
return $c87311424ea30a05$var$testUserAgent(/Android/i);
|
|
50
|
+
});
|
|
51
|
+
const $c87311424ea30a05$export$b7d78993b74f766d = $c87311424ea30a05$var$cached(function() {
|
|
52
|
+
return $c87311424ea30a05$var$testUserAgent(/Firefox/i);
|
|
53
|
+
});
|
|
54
|
+
function $6a7db85432448f7f$export$60278871457622de(event) {
|
|
55
|
+
if (event.mozInputSource === 0 && event.isTrusted) return true;
|
|
56
|
+
if ($c87311424ea30a05$export$a11b0059900ceec8() && event.pointerType) return event.type === "click" && event.buttons === 1;
|
|
57
|
+
return event.detail === 0 && !event.pointerType;
|
|
58
|
+
}
|
|
59
|
+
function $6a7db85432448f7f$export$29bf1b5f2c56cf63(event) {
|
|
60
|
+
return !$c87311424ea30a05$export$a11b0059900ceec8() && event.width === 0 && event.height === 0 || event.width === 1 && event.height === 1 && event.pressure === 0 && event.detail === 0 && event.pointerType === "mouse";
|
|
61
|
+
}
|
|
62
|
+
export {
|
|
63
|
+
$431fbd86ca7dc216$export$b204af158042fbac as $,
|
|
64
|
+
$431fbd86ca7dc216$export$f21a1ffae260145a as a,
|
|
65
|
+
$6a7db85432448f7f$export$60278871457622de as b,
|
|
66
|
+
$c87311424ea30a05$export$9ac100e40613ea10 as c,
|
|
67
|
+
$c87311424ea30a05$export$78551043582a6a98 as d,
|
|
68
|
+
$c87311424ea30a05$export$fedb369cb70207f1 as e,
|
|
69
|
+
$c87311424ea30a05$export$e1865c3bedcd822b as f,
|
|
70
|
+
$c87311424ea30a05$export$b7d78993b74f766d as g,
|
|
71
|
+
$c87311424ea30a05$export$7bef049ce92e4224 as h,
|
|
72
|
+
$6a7db85432448f7f$export$29bf1b5f2c56cf63 as i,
|
|
73
|
+
$c87311424ea30a05$export$a11b0059900ceec8 as j
|
|
74
|
+
};
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const $431fbd86ca7dc216$export$b204af158042fbac = (el) => {
|
|
3
|
+
var _el_ownerDocument;
|
|
4
|
+
return (_el_ownerDocument = el === null || el === void 0 ? void 0 : el.ownerDocument) !== null && _el_ownerDocument !== void 0 ? _el_ownerDocument : document;
|
|
5
|
+
};
|
|
6
|
+
const $431fbd86ca7dc216$export$f21a1ffae260145a = (el) => {
|
|
7
|
+
if (el && "window" in el && el.window === el) return el;
|
|
8
|
+
const doc = $431fbd86ca7dc216$export$b204af158042fbac(el);
|
|
9
|
+
return doc.defaultView || window;
|
|
10
|
+
};
|
|
11
|
+
function $c87311424ea30a05$var$testUserAgent(re) {
|
|
12
|
+
var _window_navigator_userAgentData;
|
|
13
|
+
if (typeof window === "undefined" || window.navigator == null) return false;
|
|
14
|
+
return ((_window_navigator_userAgentData = window.navigator["userAgentData"]) === null || _window_navigator_userAgentData === void 0 ? void 0 : _window_navigator_userAgentData.brands.some((brand) => re.test(brand.brand))) || re.test(window.navigator.userAgent);
|
|
15
|
+
}
|
|
16
|
+
function $c87311424ea30a05$var$testPlatform(re) {
|
|
17
|
+
var _window_navigator_userAgentData;
|
|
18
|
+
return typeof window !== "undefined" && window.navigator != null ? re.test(((_window_navigator_userAgentData = window.navigator["userAgentData"]) === null || _window_navigator_userAgentData === void 0 ? void 0 : _window_navigator_userAgentData.platform) || window.navigator.platform) : false;
|
|
19
|
+
}
|
|
20
|
+
function $c87311424ea30a05$var$cached(fn) {
|
|
21
|
+
let res = null;
|
|
22
|
+
return () => {
|
|
23
|
+
if (res == null) res = fn();
|
|
24
|
+
return res;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
const $c87311424ea30a05$export$9ac100e40613ea10 = $c87311424ea30a05$var$cached(function() {
|
|
28
|
+
return $c87311424ea30a05$var$testPlatform(/^Mac/i);
|
|
29
|
+
});
|
|
30
|
+
const $c87311424ea30a05$export$186c6964ca17d99 = $c87311424ea30a05$var$cached(function() {
|
|
31
|
+
return $c87311424ea30a05$var$testPlatform(/^iPhone/i);
|
|
32
|
+
});
|
|
33
|
+
const $c87311424ea30a05$export$7bef049ce92e4224 = $c87311424ea30a05$var$cached(function() {
|
|
34
|
+
return $c87311424ea30a05$var$testPlatform(/^iPad/i) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
|
|
35
|
+
$c87311424ea30a05$export$9ac100e40613ea10() && navigator.maxTouchPoints > 1;
|
|
36
|
+
});
|
|
37
|
+
const $c87311424ea30a05$export$fedb369cb70207f1 = $c87311424ea30a05$var$cached(function() {
|
|
38
|
+
return $c87311424ea30a05$export$186c6964ca17d99() || $c87311424ea30a05$export$7bef049ce92e4224();
|
|
39
|
+
});
|
|
40
|
+
const $c87311424ea30a05$export$e1865c3bedcd822b = $c87311424ea30a05$var$cached(function() {
|
|
41
|
+
return $c87311424ea30a05$export$9ac100e40613ea10() || $c87311424ea30a05$export$fedb369cb70207f1();
|
|
42
|
+
});
|
|
43
|
+
const $c87311424ea30a05$export$78551043582a6a98 = $c87311424ea30a05$var$cached(function() {
|
|
44
|
+
return $c87311424ea30a05$var$testUserAgent(/AppleWebKit/i) && !$c87311424ea30a05$export$6446a186d09e379e();
|
|
45
|
+
});
|
|
46
|
+
const $c87311424ea30a05$export$6446a186d09e379e = $c87311424ea30a05$var$cached(function() {
|
|
47
|
+
return $c87311424ea30a05$var$testUserAgent(/Chrome/i);
|
|
48
|
+
});
|
|
49
|
+
const $c87311424ea30a05$export$a11b0059900ceec8 = $c87311424ea30a05$var$cached(function() {
|
|
50
|
+
return $c87311424ea30a05$var$testUserAgent(/Android/i);
|
|
51
|
+
});
|
|
52
|
+
const $c87311424ea30a05$export$b7d78993b74f766d = $c87311424ea30a05$var$cached(function() {
|
|
53
|
+
return $c87311424ea30a05$var$testUserAgent(/Firefox/i);
|
|
54
|
+
});
|
|
55
|
+
function $6a7db85432448f7f$export$60278871457622de(event) {
|
|
56
|
+
if (event.mozInputSource === 0 && event.isTrusted) return true;
|
|
57
|
+
if ($c87311424ea30a05$export$a11b0059900ceec8() && event.pointerType) return event.type === "click" && event.buttons === 1;
|
|
58
|
+
return event.detail === 0 && !event.pointerType;
|
|
59
|
+
}
|
|
60
|
+
function $6a7db85432448f7f$export$29bf1b5f2c56cf63(event) {
|
|
61
|
+
return !$c87311424ea30a05$export$a11b0059900ceec8() && event.width === 0 && event.height === 0 || event.width === 1 && event.height === 1 && event.pressure === 0 && event.detail === 0 && event.pointerType === "mouse";
|
|
62
|
+
}
|
|
63
|
+
exports.$431fbd86ca7dc216$export$b204af158042fbac = $431fbd86ca7dc216$export$b204af158042fbac;
|
|
64
|
+
exports.$431fbd86ca7dc216$export$f21a1ffae260145a = $431fbd86ca7dc216$export$f21a1ffae260145a;
|
|
65
|
+
exports.$6a7db85432448f7f$export$29bf1b5f2c56cf63 = $6a7db85432448f7f$export$29bf1b5f2c56cf63;
|
|
66
|
+
exports.$6a7db85432448f7f$export$60278871457622de = $6a7db85432448f7f$export$60278871457622de;
|
|
67
|
+
exports.$c87311424ea30a05$export$78551043582a6a98 = $c87311424ea30a05$export$78551043582a6a98;
|
|
68
|
+
exports.$c87311424ea30a05$export$7bef049ce92e4224 = $c87311424ea30a05$export$7bef049ce92e4224;
|
|
69
|
+
exports.$c87311424ea30a05$export$9ac100e40613ea10 = $c87311424ea30a05$export$9ac100e40613ea10;
|
|
70
|
+
exports.$c87311424ea30a05$export$a11b0059900ceec8 = $c87311424ea30a05$export$a11b0059900ceec8;
|
|
71
|
+
exports.$c87311424ea30a05$export$b7d78993b74f766d = $c87311424ea30a05$export$b7d78993b74f766d;
|
|
72
|
+
exports.$c87311424ea30a05$export$e1865c3bedcd822b = $c87311424ea30a05$export$e1865c3bedcd822b;
|
|
73
|
+
exports.$c87311424ea30a05$export$fedb369cb70207f1 = $c87311424ea30a05$export$fedb369cb70207f1;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { a as $431fbd86ca7dc216$export$b204af158042fbac, f as $507fabe10e71c6fb$export$630ff653c5ada6a9 } from "./useFocusVisible-DXAxI2Xj.mjs";
|
|
2
1
|
function $7215afc6de606d6b$export$de79e2c695e052f3(element) {
|
|
3
2
|
if ($7215afc6de606d6b$var$supportsPreventScroll()) element.focus({
|
|
4
3
|
preventScroll: true
|
|
@@ -97,17 +96,7 @@ function $bbed8b41f857bcc0$export$24490316f764c430(fn) {
|
|
|
97
96
|
else $bbed8b41f857bcc0$var$transitionCallbacks.add(fn);
|
|
98
97
|
});
|
|
99
98
|
}
|
|
100
|
-
function $6a99195332edec8b$export$80f3e147d781571c(element) {
|
|
101
|
-
const ownerDocument = $431fbd86ca7dc216$export$b204af158042fbac(element);
|
|
102
|
-
if ($507fabe10e71c6fb$export$630ff653c5ada6a9() === "virtual") {
|
|
103
|
-
let lastFocusedElement = ownerDocument.activeElement;
|
|
104
|
-
$bbed8b41f857bcc0$export$24490316f764c430(() => {
|
|
105
|
-
if (ownerDocument.activeElement === lastFocusedElement && element.isConnected) $7215afc6de606d6b$export$de79e2c695e052f3(element);
|
|
106
|
-
});
|
|
107
|
-
} else $7215afc6de606d6b$export$de79e2c695e052f3(element);
|
|
108
|
-
}
|
|
109
99
|
export {
|
|
110
|
-
$
|
|
111
|
-
$7215afc6de606d6b$export$de79e2c695e052f3 as a
|
|
112
|
-
$bbed8b41f857bcc0$export$24490316f764c430 as b
|
|
100
|
+
$bbed8b41f857bcc0$export$24490316f764c430 as $,
|
|
101
|
+
$7215afc6de606d6b$export$de79e2c695e052f3 as a
|
|
113
102
|
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const useFocusVisible = require("./useFocusVisible-DAg8LS6j.js");
|
|
3
2
|
function $7215afc6de606d6b$export$de79e2c695e052f3(element) {
|
|
4
3
|
if ($7215afc6de606d6b$var$supportsPreventScroll()) element.focus({
|
|
5
4
|
preventScroll: true
|
|
@@ -98,15 +97,5 @@ function $bbed8b41f857bcc0$export$24490316f764c430(fn) {
|
|
|
98
97
|
else $bbed8b41f857bcc0$var$transitionCallbacks.add(fn);
|
|
99
98
|
});
|
|
100
99
|
}
|
|
101
|
-
function $6a99195332edec8b$export$80f3e147d781571c(element) {
|
|
102
|
-
const ownerDocument = useFocusVisible.$431fbd86ca7dc216$export$b204af158042fbac(element);
|
|
103
|
-
if (useFocusVisible.$507fabe10e71c6fb$export$630ff653c5ada6a9() === "virtual") {
|
|
104
|
-
let lastFocusedElement = ownerDocument.activeElement;
|
|
105
|
-
$bbed8b41f857bcc0$export$24490316f764c430(() => {
|
|
106
|
-
if (ownerDocument.activeElement === lastFocusedElement && element.isConnected) $7215afc6de606d6b$export$de79e2c695e052f3(element);
|
|
107
|
-
});
|
|
108
|
-
} else $7215afc6de606d6b$export$de79e2c695e052f3(element);
|
|
109
|
-
}
|
|
110
|
-
exports.$6a99195332edec8b$export$80f3e147d781571c = $6a99195332edec8b$export$80f3e147d781571c;
|
|
111
100
|
exports.$7215afc6de606d6b$export$de79e2c695e052f3 = $7215afc6de606d6b$export$de79e2c695e052f3;
|
|
112
101
|
exports.$bbed8b41f857bcc0$export$24490316f764c430 = $bbed8b41f857bcc0$export$24490316f764c430;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./mergeProps-SJQ-f8LF.mjs";
|
|
2
2
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-EDDcM64A.mjs";
|
|
3
|
-
import { $ as $e6afbd83fe6ebbd2$export$4c014de7c8940b4c } from "./useFocusable-
|
|
4
|
-
import { $ as $f6c31cce2adf654f$export$45712eceda6fad21 } from "./usePress-
|
|
3
|
+
import { $ as $e6afbd83fe6ebbd2$export$4c014de7c8940b4c } from "./useFocusable-B0naYTNU.mjs";
|
|
4
|
+
import { $ as $f6c31cce2adf654f$export$45712eceda6fad21 } from "./usePress-CiUDlxr6.mjs";
|
|
5
5
|
function $701a24aa0da5b062$export$ea18c227d4417cc3(props, ref) {
|
|
6
6
|
let {
|
|
7
7
|
elementType = "button",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const mergeProps = require("./mergeProps-DniMwM6P.js");
|
|
3
3
|
const filterDOMProps = require("./filterDOMProps-D3iOHP0H.js");
|
|
4
|
-
const useFocusable = require("./useFocusable-
|
|
5
|
-
const usePress = require("./usePress-
|
|
4
|
+
const useFocusable = require("./useFocusable-D0hhxIk-.js");
|
|
5
|
+
const usePress = require("./usePress-BVH8whNd.js");
|
|
6
6
|
function $701a24aa0da5b062$export$ea18c227d4417cc3(props, ref) {
|
|
7
7
|
let {
|
|
8
8
|
elementType = "button",
|
|
@@ -17,12 +17,12 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
import { $ as $a11501f3d1d39e6c$export$ea8f71083e90600f, a as $49c51c25361d4cd2$export$ee0f7cc6afcd1c18, b as $5e3802645cc19319$export$1c3ebcada18427bf } from "./ariaHideOutside-
|
|
21
|
-
import { $ as $337b884510726a0d$export$14c98a7594375490 } from "./Overlay-
|
|
20
|
+
import { $ as $a11501f3d1d39e6c$export$ea8f71083e90600f, a as $49c51c25361d4cd2$export$ee0f7cc6afcd1c18, b as $5e3802645cc19319$export$1c3ebcada18427bf } from "./ariaHideOutside-CGNwwQAc.mjs";
|
|
21
|
+
import { $ as $337b884510726a0d$export$14c98a7594375490 } from "./Overlay-8RgU2lAl.mjs";
|
|
22
22
|
import { a as $3ef42575df84b30b$export$9d1611c77c2fe928, $ as $bdb11010cef70236$export$b4cc09c592e8fdb8 } from "./mergeProps-SJQ-f8LF.mjs";
|
|
23
23
|
import { useEffect, useRef } from "react";
|
|
24
24
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-EDDcM64A.mjs";
|
|
25
|
-
import { $ as $6a99195332edec8b$export$80f3e147d781571c } from "./focusSafely-
|
|
25
|
+
import { $ as $6a99195332edec8b$export$80f3e147d781571c } from "./focusSafely-DfpH-pE9.mjs";
|
|
26
26
|
function $8ac8429251c45e4b$export$dbc0f175b25fb0fb(props, state, ref) {
|
|
27
27
|
let { overlayProps, underlayProps } = $a11501f3d1d39e6c$export$ea8f71083e90600f(__spreadProps(__spreadValues({}, props), {
|
|
28
28
|
isOpen: state.isOpen,
|
|
@@ -18,12 +18,12 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
return a;
|
|
19
19
|
};
|
|
20
20
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
21
|
-
const ariaHideOutside = require("./ariaHideOutside-
|
|
22
|
-
const Overlay = require("./Overlay-
|
|
21
|
+
const ariaHideOutside = require("./ariaHideOutside-BYYnLsgt.js");
|
|
22
|
+
const Overlay = require("./Overlay-B-di_dfG.js");
|
|
23
23
|
const mergeProps = require("./mergeProps-DniMwM6P.js");
|
|
24
24
|
const React = require("react");
|
|
25
25
|
const filterDOMProps = require("./filterDOMProps-D3iOHP0H.js");
|
|
26
|
-
const focusSafely = require("./focusSafely-
|
|
26
|
+
const focusSafely = require("./focusSafely-CZPj1Dug.js");
|
|
27
27
|
function $8ac8429251c45e4b$export$dbc0f175b25fb0fb(props, state, ref) {
|
|
28
28
|
let { overlayProps, underlayProps } = ariaHideOutside.$a11501f3d1d39e6c$export$ea8f71083e90600f(__spreadProps(__spreadValues({}, props), {
|
|
29
29
|
isOpen: state.isOpen,
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
const React = require("react");
|
|
3
3
|
const useIntersectionDetection = require("./useIntersectionDetection-DI5n4zwA.js");
|
|
4
4
|
const utilities_css = require("../utilities/css.js");
|
|
5
|
-
const interceptor = "
|
|
6
|
-
const top = "
|
|
7
|
-
const bottom = "
|
|
8
|
-
const left = "
|
|
9
|
-
const right = "
|
|
5
|
+
const interceptor = "_interceptor_jvcvw_5";
|
|
6
|
+
const top = "_top_jvcvw_13";
|
|
7
|
+
const bottom = "_bottom_jvcvw_14";
|
|
8
|
+
const left = "_left_jvcvw_18";
|
|
9
|
+
const right = "_right_jvcvw_19";
|
|
10
10
|
const styles = {
|
|
11
11
|
interceptor,
|
|
12
12
|
top,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React__default, { useRef, useCallback } from "react";
|
|
2
2
|
import { u as useIntersectionDetection } from "./useIntersectionDetection-BvUmtDgl.mjs";
|
|
3
3
|
import { classNames } from "../utilities/css.mjs";
|
|
4
|
-
const interceptor = "
|
|
5
|
-
const top = "
|
|
6
|
-
const bottom = "
|
|
7
|
-
const left = "
|
|
8
|
-
const right = "
|
|
4
|
+
const interceptor = "_interceptor_jvcvw_5";
|
|
5
|
+
const top = "_top_jvcvw_13";
|
|
6
|
+
const bottom = "_bottom_jvcvw_14";
|
|
7
|
+
const left = "_left_jvcvw_18";
|
|
8
|
+
const right = "_right_jvcvw_19";
|
|
9
9
|
const styles = {
|
|
10
10
|
interceptor,
|
|
11
11
|
top,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const useFocusVisible = require("./useFocusVisible-
|
|
2
|
+
const useFocusVisible = require("./useFocusVisible-PBQuklI8.js");
|
|
3
3
|
const React = require("react");
|
|
4
|
+
const isVirtualEvent = require("./isVirtualEvent-DwoP1rNI.js");
|
|
4
5
|
function $a1ea59d68270f0dd$export$f8168d8dd8fd66e6(props) {
|
|
5
6
|
let { isDisabled, onFocus: onFocusProp, onBlur: onBlurProp, onFocusChange } = props;
|
|
6
7
|
const onBlur = React.useCallback((e) => {
|
|
@@ -15,7 +16,7 @@ function $a1ea59d68270f0dd$export$f8168d8dd8fd66e6(props) {
|
|
|
15
16
|
]);
|
|
16
17
|
const onSyntheticFocus = useFocusVisible.$8a9cb279dc87e130$export$715c682d09d639cc(onBlur);
|
|
17
18
|
const onFocus = React.useCallback((e) => {
|
|
18
|
-
const ownerDocument =
|
|
19
|
+
const ownerDocument = isVirtualEvent.$431fbd86ca7dc216$export$b204af158042fbac(e.target);
|
|
19
20
|
if (e.target === e.currentTarget && ownerDocument.activeElement === e.target) {
|
|
20
21
|
if (onFocusProp) onFocusProp(e);
|
|
21
22
|
if (onFocusChange) onFocusChange(true);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as $8a9cb279dc87e130$export$715c682d09d639cc } from "./useFocusVisible-BbEmluTm.mjs";
|
|
2
2
|
import { useCallback } from "react";
|
|
3
|
+
import { $ as $431fbd86ca7dc216$export$b204af158042fbac } from "./isVirtualEvent-BPCuFO54.mjs";
|
|
3
4
|
function $a1ea59d68270f0dd$export$f8168d8dd8fd66e6(props) {
|
|
4
5
|
let { isDisabled, onFocus: onFocusProp, onBlur: onBlurProp, onFocusChange } = props;
|
|
5
6
|
const onBlur = useCallback((e) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const useFocus = require("./useFocus-
|
|
3
|
-
const useFocusVisible = require("./useFocusVisible-
|
|
4
|
-
const useFocusWithin = require("./useFocusWithin-
|
|
2
|
+
const useFocus = require("./useFocus-B4oRb1dU.js");
|
|
3
|
+
const useFocusVisible = require("./useFocusVisible-PBQuklI8.js");
|
|
4
|
+
const useFocusWithin = require("./useFocusWithin-C1ioGWec.js");
|
|
5
5
|
const React = require("react");
|
|
6
6
|
function $f7dceffc5ad7768b$export$4e328f61c538687f(props = {}) {
|
|
7
7
|
let { autoFocus = false, isTextInput, within } = props;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { $ as $a1ea59d68270f0dd$export$f8168d8dd8fd66e6 } from "./useFocus-
|
|
2
|
-
import { b as $507fabe10e71c6fb$export$b9b3dfddab17db27, c as $507fabe10e71c6fb$export$ec71b4b83ac08ec3 } from "./useFocusVisible-
|
|
3
|
-
import { $ as $9ab94262bd0047c7$export$420e68273165f4ec } from "./useFocusWithin-
|
|
1
|
+
import { $ as $a1ea59d68270f0dd$export$f8168d8dd8fd66e6 } from "./useFocus-By3Cx-xz.mjs";
|
|
2
|
+
import { b as $507fabe10e71c6fb$export$b9b3dfddab17db27, c as $507fabe10e71c6fb$export$ec71b4b83ac08ec3 } from "./useFocusVisible-BbEmluTm.mjs";
|
|
3
|
+
import { $ as $9ab94262bd0047c7$export$420e68273165f4ec } from "./useFocusWithin-krnNAgDY.mjs";
|
|
4
4
|
import { useRef, useState, useCallback } from "react";
|
|
5
5
|
function $f7dceffc5ad7768b$export$4e328f61c538687f(props = {}) {
|
|
6
6
|
let { autoFocus = false, isTextInput, within } = props;
|
|
@@ -1,66 +1,6 @@
|
|
|
1
1
|
import { useRef, useCallback, useEffect, useState } from "react";
|
|
2
2
|
import { b as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, c as $8ae05eaa5c114e9c$export$7f54fc3180508a52, e as $b5e257d569688ac6$export$535bd6ca7f90a273 } from "./mergeProps-SJQ-f8LF.mjs";
|
|
3
|
-
|
|
4
|
-
var _el_ownerDocument;
|
|
5
|
-
return (_el_ownerDocument = el === null || el === void 0 ? void 0 : el.ownerDocument) !== null && _el_ownerDocument !== void 0 ? _el_ownerDocument : document;
|
|
6
|
-
};
|
|
7
|
-
const $431fbd86ca7dc216$export$f21a1ffae260145a = (el) => {
|
|
8
|
-
if (el && "window" in el && el.window === el) return el;
|
|
9
|
-
const doc = $431fbd86ca7dc216$export$b204af158042fbac(el);
|
|
10
|
-
return doc.defaultView || window;
|
|
11
|
-
};
|
|
12
|
-
function $c87311424ea30a05$var$testUserAgent(re) {
|
|
13
|
-
var _window_navigator_userAgentData;
|
|
14
|
-
if (typeof window === "undefined" || window.navigator == null) return false;
|
|
15
|
-
return ((_window_navigator_userAgentData = window.navigator["userAgentData"]) === null || _window_navigator_userAgentData === void 0 ? void 0 : _window_navigator_userAgentData.brands.some((brand) => re.test(brand.brand))) || re.test(window.navigator.userAgent);
|
|
16
|
-
}
|
|
17
|
-
function $c87311424ea30a05$var$testPlatform(re) {
|
|
18
|
-
var _window_navigator_userAgentData;
|
|
19
|
-
return typeof window !== "undefined" && window.navigator != null ? re.test(((_window_navigator_userAgentData = window.navigator["userAgentData"]) === null || _window_navigator_userAgentData === void 0 ? void 0 : _window_navigator_userAgentData.platform) || window.navigator.platform) : false;
|
|
20
|
-
}
|
|
21
|
-
function $c87311424ea30a05$var$cached(fn) {
|
|
22
|
-
let res = null;
|
|
23
|
-
return () => {
|
|
24
|
-
if (res == null) res = fn();
|
|
25
|
-
return res;
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
const $c87311424ea30a05$export$9ac100e40613ea10 = $c87311424ea30a05$var$cached(function() {
|
|
29
|
-
return $c87311424ea30a05$var$testPlatform(/^Mac/i);
|
|
30
|
-
});
|
|
31
|
-
const $c87311424ea30a05$export$186c6964ca17d99 = $c87311424ea30a05$var$cached(function() {
|
|
32
|
-
return $c87311424ea30a05$var$testPlatform(/^iPhone/i);
|
|
33
|
-
});
|
|
34
|
-
const $c87311424ea30a05$export$7bef049ce92e4224 = $c87311424ea30a05$var$cached(function() {
|
|
35
|
-
return $c87311424ea30a05$var$testPlatform(/^iPad/i) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
|
|
36
|
-
$c87311424ea30a05$export$9ac100e40613ea10() && navigator.maxTouchPoints > 1;
|
|
37
|
-
});
|
|
38
|
-
const $c87311424ea30a05$export$fedb369cb70207f1 = $c87311424ea30a05$var$cached(function() {
|
|
39
|
-
return $c87311424ea30a05$export$186c6964ca17d99() || $c87311424ea30a05$export$7bef049ce92e4224();
|
|
40
|
-
});
|
|
41
|
-
const $c87311424ea30a05$export$e1865c3bedcd822b = $c87311424ea30a05$var$cached(function() {
|
|
42
|
-
return $c87311424ea30a05$export$9ac100e40613ea10() || $c87311424ea30a05$export$fedb369cb70207f1();
|
|
43
|
-
});
|
|
44
|
-
const $c87311424ea30a05$export$78551043582a6a98 = $c87311424ea30a05$var$cached(function() {
|
|
45
|
-
return $c87311424ea30a05$var$testUserAgent(/AppleWebKit/i) && !$c87311424ea30a05$export$6446a186d09e379e();
|
|
46
|
-
});
|
|
47
|
-
const $c87311424ea30a05$export$6446a186d09e379e = $c87311424ea30a05$var$cached(function() {
|
|
48
|
-
return $c87311424ea30a05$var$testUserAgent(/Chrome/i);
|
|
49
|
-
});
|
|
50
|
-
const $c87311424ea30a05$export$a11b0059900ceec8 = $c87311424ea30a05$var$cached(function() {
|
|
51
|
-
return $c87311424ea30a05$var$testUserAgent(/Android/i);
|
|
52
|
-
});
|
|
53
|
-
const $c87311424ea30a05$export$b7d78993b74f766d = $c87311424ea30a05$var$cached(function() {
|
|
54
|
-
return $c87311424ea30a05$var$testUserAgent(/Firefox/i);
|
|
55
|
-
});
|
|
56
|
-
function $6a7db85432448f7f$export$60278871457622de(event) {
|
|
57
|
-
if (event.mozInputSource === 0 && event.isTrusted) return true;
|
|
58
|
-
if ($c87311424ea30a05$export$a11b0059900ceec8() && event.pointerType) return event.type === "click" && event.buttons === 1;
|
|
59
|
-
return event.detail === 0 && !event.pointerType;
|
|
60
|
-
}
|
|
61
|
-
function $6a7db85432448f7f$export$29bf1b5f2c56cf63(event) {
|
|
62
|
-
return !$c87311424ea30a05$export$a11b0059900ceec8() && event.width === 0 && event.height === 0 || event.width === 1 && event.height === 1 && event.pressure === 0 && event.detail === 0 && event.pointerType === "mouse";
|
|
63
|
-
}
|
|
3
|
+
import { $ as $431fbd86ca7dc216$export$b204af158042fbac, a as $431fbd86ca7dc216$export$f21a1ffae260145a, b as $6a7db85432448f7f$export$60278871457622de, c as $c87311424ea30a05$export$9ac100e40613ea10 } from "./isVirtualEvent-BPCuFO54.mjs";
|
|
64
4
|
class $8a9cb279dc87e130$export$905e7fc544a71f36 {
|
|
65
5
|
isDefaultPrevented() {
|
|
66
6
|
return this.nativeEvent.defaultPrevented;
|
|
@@ -323,21 +263,10 @@ function $507fabe10e71c6fb$export$ec71b4b83ac08ec3(fn, deps, opts) {
|
|
|
323
263
|
}, deps);
|
|
324
264
|
}
|
|
325
265
|
export {
|
|
326
|
-
$
|
|
327
|
-
$
|
|
266
|
+
$507fabe10e71c6fb$export$630ff653c5ada6a9 as $,
|
|
267
|
+
$8a9cb279dc87e130$export$715c682d09d639cc as a,
|
|
328
268
|
$507fabe10e71c6fb$export$b9b3dfddab17db27 as b,
|
|
329
269
|
$507fabe10e71c6fb$export$ec71b4b83ac08ec3 as c,
|
|
330
270
|
$507fabe10e71c6fb$export$8397ddfc504fdb9a as d,
|
|
331
|
-
$
|
|
332
|
-
$507fabe10e71c6fb$export$630ff653c5ada6a9 as f,
|
|
333
|
-
$c87311424ea30a05$export$78551043582a6a98 as g,
|
|
334
|
-
$c87311424ea30a05$export$fedb369cb70207f1 as h,
|
|
335
|
-
$c87311424ea30a05$export$e1865c3bedcd822b as i,
|
|
336
|
-
$c87311424ea30a05$export$9ac100e40613ea10 as j,
|
|
337
|
-
$c87311424ea30a05$export$b7d78993b74f766d as k,
|
|
338
|
-
$c87311424ea30a05$export$7bef049ce92e4224 as l,
|
|
339
|
-
$6a7db85432448f7f$export$29bf1b5f2c56cf63 as m,
|
|
340
|
-
$6a7db85432448f7f$export$60278871457622de as n,
|
|
341
|
-
$507fabe10e71c6fb$export$98e20ec92f614cfe as o,
|
|
342
|
-
$c87311424ea30a05$export$a11b0059900ceec8 as p
|
|
271
|
+
$507fabe10e71c6fb$export$98e20ec92f614cfe as e
|
|
343
272
|
};
|
|
@@ -1,67 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const React = require("react");
|
|
3
3
|
const mergeProps = require("./mergeProps-DniMwM6P.js");
|
|
4
|
-
const
|
|
5
|
-
var _el_ownerDocument;
|
|
6
|
-
return (_el_ownerDocument = el === null || el === void 0 ? void 0 : el.ownerDocument) !== null && _el_ownerDocument !== void 0 ? _el_ownerDocument : document;
|
|
7
|
-
};
|
|
8
|
-
const $431fbd86ca7dc216$export$f21a1ffae260145a = (el) => {
|
|
9
|
-
if (el && "window" in el && el.window === el) return el;
|
|
10
|
-
const doc = $431fbd86ca7dc216$export$b204af158042fbac(el);
|
|
11
|
-
return doc.defaultView || window;
|
|
12
|
-
};
|
|
13
|
-
function $c87311424ea30a05$var$testUserAgent(re) {
|
|
14
|
-
var _window_navigator_userAgentData;
|
|
15
|
-
if (typeof window === "undefined" || window.navigator == null) return false;
|
|
16
|
-
return ((_window_navigator_userAgentData = window.navigator["userAgentData"]) === null || _window_navigator_userAgentData === void 0 ? void 0 : _window_navigator_userAgentData.brands.some((brand) => re.test(brand.brand))) || re.test(window.navigator.userAgent);
|
|
17
|
-
}
|
|
18
|
-
function $c87311424ea30a05$var$testPlatform(re) {
|
|
19
|
-
var _window_navigator_userAgentData;
|
|
20
|
-
return typeof window !== "undefined" && window.navigator != null ? re.test(((_window_navigator_userAgentData = window.navigator["userAgentData"]) === null || _window_navigator_userAgentData === void 0 ? void 0 : _window_navigator_userAgentData.platform) || window.navigator.platform) : false;
|
|
21
|
-
}
|
|
22
|
-
function $c87311424ea30a05$var$cached(fn) {
|
|
23
|
-
let res = null;
|
|
24
|
-
return () => {
|
|
25
|
-
if (res == null) res = fn();
|
|
26
|
-
return res;
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
const $c87311424ea30a05$export$9ac100e40613ea10 = $c87311424ea30a05$var$cached(function() {
|
|
30
|
-
return $c87311424ea30a05$var$testPlatform(/^Mac/i);
|
|
31
|
-
});
|
|
32
|
-
const $c87311424ea30a05$export$186c6964ca17d99 = $c87311424ea30a05$var$cached(function() {
|
|
33
|
-
return $c87311424ea30a05$var$testPlatform(/^iPhone/i);
|
|
34
|
-
});
|
|
35
|
-
const $c87311424ea30a05$export$7bef049ce92e4224 = $c87311424ea30a05$var$cached(function() {
|
|
36
|
-
return $c87311424ea30a05$var$testPlatform(/^iPad/i) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
|
|
37
|
-
$c87311424ea30a05$export$9ac100e40613ea10() && navigator.maxTouchPoints > 1;
|
|
38
|
-
});
|
|
39
|
-
const $c87311424ea30a05$export$fedb369cb70207f1 = $c87311424ea30a05$var$cached(function() {
|
|
40
|
-
return $c87311424ea30a05$export$186c6964ca17d99() || $c87311424ea30a05$export$7bef049ce92e4224();
|
|
41
|
-
});
|
|
42
|
-
const $c87311424ea30a05$export$e1865c3bedcd822b = $c87311424ea30a05$var$cached(function() {
|
|
43
|
-
return $c87311424ea30a05$export$9ac100e40613ea10() || $c87311424ea30a05$export$fedb369cb70207f1();
|
|
44
|
-
});
|
|
45
|
-
const $c87311424ea30a05$export$78551043582a6a98 = $c87311424ea30a05$var$cached(function() {
|
|
46
|
-
return $c87311424ea30a05$var$testUserAgent(/AppleWebKit/i) && !$c87311424ea30a05$export$6446a186d09e379e();
|
|
47
|
-
});
|
|
48
|
-
const $c87311424ea30a05$export$6446a186d09e379e = $c87311424ea30a05$var$cached(function() {
|
|
49
|
-
return $c87311424ea30a05$var$testUserAgent(/Chrome/i);
|
|
50
|
-
});
|
|
51
|
-
const $c87311424ea30a05$export$a11b0059900ceec8 = $c87311424ea30a05$var$cached(function() {
|
|
52
|
-
return $c87311424ea30a05$var$testUserAgent(/Android/i);
|
|
53
|
-
});
|
|
54
|
-
const $c87311424ea30a05$export$b7d78993b74f766d = $c87311424ea30a05$var$cached(function() {
|
|
55
|
-
return $c87311424ea30a05$var$testUserAgent(/Firefox/i);
|
|
56
|
-
});
|
|
57
|
-
function $6a7db85432448f7f$export$60278871457622de(event) {
|
|
58
|
-
if (event.mozInputSource === 0 && event.isTrusted) return true;
|
|
59
|
-
if ($c87311424ea30a05$export$a11b0059900ceec8() && event.pointerType) return event.type === "click" && event.buttons === 1;
|
|
60
|
-
return event.detail === 0 && !event.pointerType;
|
|
61
|
-
}
|
|
62
|
-
function $6a7db85432448f7f$export$29bf1b5f2c56cf63(event) {
|
|
63
|
-
return !$c87311424ea30a05$export$a11b0059900ceec8() && event.width === 0 && event.height === 0 || event.width === 1 && event.height === 1 && event.pressure === 0 && event.detail === 0 && event.pointerType === "mouse";
|
|
64
|
-
}
|
|
4
|
+
const isVirtualEvent = require("./isVirtualEvent-DwoP1rNI.js");
|
|
65
5
|
class $8a9cb279dc87e130$export$905e7fc544a71f36 {
|
|
66
6
|
isDefaultPrevented() {
|
|
67
7
|
return this.nativeEvent.defaultPrevented;
|
|
@@ -164,7 +104,7 @@ function $507fabe10e71c6fb$var$triggerChangeHandlers(modality, e) {
|
|
|
164
104
|
for (let handler of $507fabe10e71c6fb$var$changeHandlers) handler(modality, e);
|
|
165
105
|
}
|
|
166
106
|
function $507fabe10e71c6fb$var$isValidKey(e) {
|
|
167
|
-
return !(e.metaKey ||
|
|
107
|
+
return !(e.metaKey || !isVirtualEvent.$c87311424ea30a05$export$9ac100e40613ea10() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
|
|
168
108
|
}
|
|
169
109
|
function $507fabe10e71c6fb$var$handleKeyboardEvent(e) {
|
|
170
110
|
$507fabe10e71c6fb$var$hasEventBeforeFocus = true;
|
|
@@ -181,7 +121,7 @@ function $507fabe10e71c6fb$var$handlePointerEvent(e) {
|
|
|
181
121
|
}
|
|
182
122
|
}
|
|
183
123
|
function $507fabe10e71c6fb$var$handleClickEvent(e) {
|
|
184
|
-
if (
|
|
124
|
+
if (isVirtualEvent.$6a7db85432448f7f$export$60278871457622de(e)) {
|
|
185
125
|
$507fabe10e71c6fb$var$hasEventBeforeFocus = true;
|
|
186
126
|
$507fabe10e71c6fb$var$currentModality = "virtual";
|
|
187
127
|
}
|
|
@@ -200,9 +140,9 @@ function $507fabe10e71c6fb$var$handleWindowBlur() {
|
|
|
200
140
|
$507fabe10e71c6fb$var$hasBlurredWindowRecently = true;
|
|
201
141
|
}
|
|
202
142
|
function $507fabe10e71c6fb$var$setupGlobalFocusEvents(element) {
|
|
203
|
-
if (typeof window === "undefined" || $507fabe10e71c6fb$export$d90243b58daecda7.get(
|
|
204
|
-
const windowObject =
|
|
205
|
-
const documentObject =
|
|
143
|
+
if (typeof window === "undefined" || $507fabe10e71c6fb$export$d90243b58daecda7.get(isVirtualEvent.$431fbd86ca7dc216$export$f21a1ffae260145a(element))) return;
|
|
144
|
+
const windowObject = isVirtualEvent.$431fbd86ca7dc216$export$f21a1ffae260145a(element);
|
|
145
|
+
const documentObject = isVirtualEvent.$431fbd86ca7dc216$export$b204af158042fbac(element);
|
|
206
146
|
let focus = windowObject.HTMLElement.prototype.focus;
|
|
207
147
|
windowObject.HTMLElement.prototype.focus = function() {
|
|
208
148
|
$507fabe10e71c6fb$var$hasEventBeforeFocus = true;
|
|
@@ -232,8 +172,8 @@ function $507fabe10e71c6fb$var$setupGlobalFocusEvents(element) {
|
|
|
232
172
|
});
|
|
233
173
|
}
|
|
234
174
|
const $507fabe10e71c6fb$var$tearDownWindowFocusTracking = (element, loadListener) => {
|
|
235
|
-
const windowObject =
|
|
236
|
-
const documentObject =
|
|
175
|
+
const windowObject = isVirtualEvent.$431fbd86ca7dc216$export$f21a1ffae260145a(element);
|
|
176
|
+
const documentObject = isVirtualEvent.$431fbd86ca7dc216$export$b204af158042fbac(element);
|
|
237
177
|
if (loadListener) documentObject.removeEventListener("DOMContentLoaded", loadListener);
|
|
238
178
|
if (!$507fabe10e71c6fb$export$d90243b58daecda7.has(windowObject)) return;
|
|
239
179
|
windowObject.HTMLElement.prototype.focus = $507fabe10e71c6fb$export$d90243b58daecda7.get(windowObject).focus;
|
|
@@ -254,7 +194,7 @@ const $507fabe10e71c6fb$var$tearDownWindowFocusTracking = (element, loadListener
|
|
|
254
194
|
$507fabe10e71c6fb$export$d90243b58daecda7.delete(windowObject);
|
|
255
195
|
};
|
|
256
196
|
function $507fabe10e71c6fb$export$2f1888112f558a7d(element) {
|
|
257
|
-
const documentObject =
|
|
197
|
+
const documentObject = isVirtualEvent.$431fbd86ca7dc216$export$b204af158042fbac(element);
|
|
258
198
|
let loadListener;
|
|
259
199
|
if (documentObject.readyState !== "loading") $507fabe10e71c6fb$var$setupGlobalFocusEvents(element);
|
|
260
200
|
else {
|
|
@@ -303,10 +243,10 @@ const $507fabe10e71c6fb$var$nonTextInputTypes = /* @__PURE__ */ new Set([
|
|
|
303
243
|
]);
|
|
304
244
|
function $507fabe10e71c6fb$var$isKeyboardFocusEvent(isTextInput, modality, e) {
|
|
305
245
|
var _e_target;
|
|
306
|
-
const IHTMLInputElement = typeof window !== "undefined" ?
|
|
307
|
-
const IHTMLTextAreaElement = typeof window !== "undefined" ?
|
|
308
|
-
const IHTMLElement = typeof window !== "undefined" ?
|
|
309
|
-
const IKeyboardEvent = typeof window !== "undefined" ?
|
|
246
|
+
const IHTMLInputElement = typeof window !== "undefined" ? isVirtualEvent.$431fbd86ca7dc216$export$f21a1ffae260145a(e === null || e === void 0 ? void 0 : e.target).HTMLInputElement : HTMLInputElement;
|
|
247
|
+
const IHTMLTextAreaElement = typeof window !== "undefined" ? isVirtualEvent.$431fbd86ca7dc216$export$f21a1ffae260145a(e === null || e === void 0 ? void 0 : e.target).HTMLTextAreaElement : HTMLTextAreaElement;
|
|
248
|
+
const IHTMLElement = typeof window !== "undefined" ? isVirtualEvent.$431fbd86ca7dc216$export$f21a1ffae260145a(e === null || e === void 0 ? void 0 : e.target).HTMLElement : HTMLElement;
|
|
249
|
+
const IKeyboardEvent = typeof window !== "undefined" ? isVirtualEvent.$431fbd86ca7dc216$export$f21a1ffae260145a(e === null || e === void 0 ? void 0 : e.target).KeyboardEvent : KeyboardEvent;
|
|
310
250
|
isTextInput = isTextInput || (e === null || e === void 0 ? void 0 : e.target) instanceof IHTMLInputElement && !$507fabe10e71c6fb$var$nonTextInputTypes.has(e === null || e === void 0 ? void 0 : (_e_target = e.target) === null || _e_target === void 0 ? void 0 : _e_target.type) || (e === null || e === void 0 ? void 0 : e.target) instanceof IHTMLTextAreaElement || (e === null || e === void 0 ? void 0 : e.target) instanceof IHTMLElement && (e === null || e === void 0 ? void 0 : e.target.isContentEditable);
|
|
311
251
|
return !(isTextInput && modality === "keyboard" && e instanceof IKeyboardEvent && !$507fabe10e71c6fb$var$FOCUS_VISIBLE_INPUT_KEYS[e.key]);
|
|
312
252
|
}
|
|
@@ -323,20 +263,9 @@ function $507fabe10e71c6fb$export$ec71b4b83ac08ec3(fn, deps, opts) {
|
|
|
323
263
|
};
|
|
324
264
|
}, deps);
|
|
325
265
|
}
|
|
326
|
-
exports.$431fbd86ca7dc216$export$b204af158042fbac = $431fbd86ca7dc216$export$b204af158042fbac;
|
|
327
|
-
exports.$431fbd86ca7dc216$export$f21a1ffae260145a = $431fbd86ca7dc216$export$f21a1ffae260145a;
|
|
328
266
|
exports.$507fabe10e71c6fb$export$630ff653c5ada6a9 = $507fabe10e71c6fb$export$630ff653c5ada6a9;
|
|
329
267
|
exports.$507fabe10e71c6fb$export$8397ddfc504fdb9a = $507fabe10e71c6fb$export$8397ddfc504fdb9a;
|
|
330
268
|
exports.$507fabe10e71c6fb$export$98e20ec92f614cfe = $507fabe10e71c6fb$export$98e20ec92f614cfe;
|
|
331
269
|
exports.$507fabe10e71c6fb$export$b9b3dfddab17db27 = $507fabe10e71c6fb$export$b9b3dfddab17db27;
|
|
332
270
|
exports.$507fabe10e71c6fb$export$ec71b4b83ac08ec3 = $507fabe10e71c6fb$export$ec71b4b83ac08ec3;
|
|
333
|
-
exports.$6a7db85432448f7f$export$29bf1b5f2c56cf63 = $6a7db85432448f7f$export$29bf1b5f2c56cf63;
|
|
334
|
-
exports.$6a7db85432448f7f$export$60278871457622de = $6a7db85432448f7f$export$60278871457622de;
|
|
335
271
|
exports.$8a9cb279dc87e130$export$715c682d09d639cc = $8a9cb279dc87e130$export$715c682d09d639cc;
|
|
336
|
-
exports.$c87311424ea30a05$export$78551043582a6a98 = $c87311424ea30a05$export$78551043582a6a98;
|
|
337
|
-
exports.$c87311424ea30a05$export$7bef049ce92e4224 = $c87311424ea30a05$export$7bef049ce92e4224;
|
|
338
|
-
exports.$c87311424ea30a05$export$9ac100e40613ea10 = $c87311424ea30a05$export$9ac100e40613ea10;
|
|
339
|
-
exports.$c87311424ea30a05$export$a11b0059900ceec8 = $c87311424ea30a05$export$a11b0059900ceec8;
|
|
340
|
-
exports.$c87311424ea30a05$export$b7d78993b74f766d = $c87311424ea30a05$export$b7d78993b74f766d;
|
|
341
|
-
exports.$c87311424ea30a05$export$e1865c3bedcd822b = $c87311424ea30a05$export$e1865c3bedcd822b;
|
|
342
|
-
exports.$c87311424ea30a05$export$fedb369cb70207f1 = $c87311424ea30a05$export$fedb369cb70207f1;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const useFocusVisible = require("./useFocusVisible-
|
|
2
|
+
const useFocusVisible = require("./useFocusVisible-PBQuklI8.js");
|
|
3
3
|
const React = require("react");
|
|
4
4
|
function $9ab94262bd0047c7$export$420e68273165f4ec(props) {
|
|
5
5
|
let { isDisabled, onBlurWithin, onFocusWithin, onFocusWithinChange } = props;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as $8a9cb279dc87e130$export$715c682d09d639cc } from "./useFocusVisible-BbEmluTm.mjs";
|
|
2
2
|
import { useRef, useCallback } from "react";
|
|
3
3
|
function $9ab94262bd0047c7$export$420e68273165f4ec(props) {
|
|
4
4
|
let { isDisabled, onBlurWithin, onFocusWithin, onFocusWithinChange } = props;
|
|
@@ -29,11 +29,11 @@ var __objRest = (source, exclude) => {
|
|
|
29
29
|
}
|
|
30
30
|
return target;
|
|
31
31
|
};
|
|
32
|
-
import { $ as $6a99195332edec8b$export$80f3e147d781571c } from "./focusSafely-
|
|
32
|
+
import { $ as $6a99195332edec8b$export$80f3e147d781571c } from "./focusSafely-DfpH-pE9.mjs";
|
|
33
33
|
import { a as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./mergeProps-SJQ-f8LF.mjs";
|
|
34
34
|
import { $ as $e7801be82b4b2a53$export$4debdb1a3f0fa79e } from "./useSyncRef-Cp332icp.mjs";
|
|
35
35
|
import React__default, { useRef, useEffect, useContext } from "react";
|
|
36
|
-
import { $ as $a1ea59d68270f0dd$export$f8168d8dd8fd66e6 } from "./useFocus-
|
|
36
|
+
import { $ as $a1ea59d68270f0dd$export$f8168d8dd8fd66e6 } from "./useFocus-By3Cx-xz.mjs";
|
|
37
37
|
function $93925083ecbb358c$export$48d1ea6320830260(handler) {
|
|
38
38
|
if (!handler) return void 0;
|
|
39
39
|
let shouldStopPropagation = true;
|