@easypost/easy-ui 1.0.0-alpha.52 → 1.0.0-alpha.54
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 +17 -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 +30 -143
- package/PillGroup/index.mjs +19 -132
- 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/RadioButtonGroup/RadioButtonGroup.d.ts +103 -0
- package/RadioButtonGroup/RadioButtonGroup.d.ts.map +1 -0
- package/RadioButtonGroup/RadioButtonGroup.stories.d.ts +11 -0
- package/RadioButtonGroup/RadioButtonGroup.stories.d.ts.map +1 -0
- package/RadioButtonGroup/RadioButtonGroup.test.d.ts +2 -0
- package/RadioButtonGroup/RadioButtonGroup.test.d.ts.map +1 -0
- package/RadioButtonGroup/index.d.ts +2 -0
- package/RadioButtonGroup/index.d.ts.map +1 -0
- package/RadioButtonGroup/index.js +262 -0
- package/RadioButtonGroup/index.mjs +262 -0
- 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-C8CAs9Ya.js → Button-D_Bk7BuN.js} +18 -18
- package/__chunks__/{Button-B-PwoC5y.mjs → Button-Dy9idhgT.mjs} +18 -18
- package/__chunks__/{Card-UU3JcpMA.js → Card-9RlZlFEC.js} +12 -12
- package/__chunks__/{Card-BWhI0hJm.mjs → Card-mxjU9S-F.mjs} +12 -12
- package/__chunks__/{Checkbox-BZqZjAnI.mjs → Checkbox-BgumKMXU.mjs} +24 -23
- package/__chunks__/{Checkbox-CqRLbwPQ.js → Checkbox-CBB8jlZw.js} +25 -24
- package/__chunks__/{CodeSnippet-pRcbJYFv.mjs → CodeSnippet-BjUoaeh9.mjs} +2 -2
- package/__chunks__/{CodeSnippet-B1oVvl-o.js → CodeSnippet-DVrkwOg4.js} +2 -2
- package/__chunks__/{FocusScope-CjqREKhC.mjs → FocusScope-C194OB-4.mjs} +85 -3
- package/__chunks__/{FocusScope-CoZUVDQG.js → FocusScope-DJer9ahG.js} +96 -14
- package/__chunks__/{HelpMenu-c9NnR9pL.js → HelpMenu-DF2Bx-bn.js} +7 -7
- package/__chunks__/{HelpMenu-BqXmt7b0.mjs → HelpMenu-m1qJ4EyP.mjs} +7 -7
- package/__chunks__/{HorizontalGrid-DdZMHCh6.mjs → HorizontalGrid-BYR8Gr-h.mjs} +1 -1
- package/__chunks__/{HorizontalGrid-LK3oV1Xf.js → HorizontalGrid-DuHNRhon.js} +1 -1
- package/__chunks__/{HorizontalStack-CyOBQGUF.js → HorizontalStack-By6XdGZh.js} +1 -1
- package/__chunks__/{HorizontalStack-Cj64cYl-.mjs → HorizontalStack-DaZakHYj.mjs} +1 -1
- package/__chunks__/{Icon-BmhO04p4.mjs → Icon-3zFwhVjn.mjs} +2 -2
- package/__chunks__/{Icon-vgTkejl_.js → Icon-BB9QecRC.js} +2 -2
- package/__chunks__/{InputField-nGv1FZJR.js → InputField-CHAxJwME.js} +8 -8
- package/__chunks__/{InputField-w-orC_z_.mjs → InputField-CdEl4M4-.mjs} +7 -7
- package/__chunks__/{InputIcon-D5WHF9JB.mjs → InputIcon--PdoGQOO.mjs} +25 -25
- package/__chunks__/{InputIcon-eg1DDtXb.js → InputIcon-oj25h1MN.js} +25 -25
- package/__chunks__/KebabButton-3bAqpgLu.js +121 -0
- package/__chunks__/KebabButton-fmLpDchx.mjs +106 -0
- package/__chunks__/{Menu-ComLF8Lu.js → Menu--B0Fn4Ol.js} +19 -19
- package/__chunks__/{Menu-Bo7BjljK.mjs → Menu-B95QYBVQ.mjs} +19 -19
- package/__chunks__/{Notification-B344rGS6.mjs → Notification-D15awRNG.mjs} +18 -18
- package/__chunks__/{Notification-BZ3ybUEX.js → Notification-DTb3bJn4.js} +22 -22
- package/__chunks__/{Overlay-Dz_4R38U.mjs → Overlay-BtzIt9Ka.mjs} +1 -1
- package/__chunks__/{Overlay-DBi2SVGv.js → Overlay-CUtfbILq.js} +1 -1
- package/__chunks__/{SelectOverlay-Dlh7kgJP.mjs → SelectOverlay-D39ws5R2.mjs} +29 -28
- package/__chunks__/{SelectOverlay-DQgtS85D.js → SelectOverlay-_dx1vHML.js} +30 -29
- package/__chunks__/{SelectorErrorTooltip-BkPBRxMN.mjs → SelectorErrorTooltip-D8y5kImH.mjs} +4 -4
- package/__chunks__/{SelectorErrorTooltip-PmNc0Njc.js → SelectorErrorTooltip-DhV9YtiA.js} +4 -4
- package/__chunks__/{Spinner-DzWjiJW-.js → Spinner-CVcjgzNy.js} +5 -5
- package/__chunks__/{Spinner-7zBK2Xm-.mjs → Spinner-CfniY1TS.mjs} +5 -5
- package/__chunks__/{Stepper-CSyqKD6E.mjs → Stepper-D_2YRENa.mjs} +27 -27
- package/__chunks__/{Stepper-D_Eb3lcZ.js → Stepper-E2li7kd2.js} +27 -27
- package/__chunks__/{TabNav-ihtxj9yI.mjs → TabNav-BgwlyiLE.mjs} +1 -1
- package/__chunks__/{TabNav-bXzfdbir.js → TabNav-C7_HMIZx.js} +1 -1
- package/__chunks__/{Tabs-CJ0TRL3H.mjs → Tabs-CwxqTiAn.mjs} +18 -18
- package/__chunks__/{Tabs-CmmF0WMQ.js → Tabs-WKn9NKJy.js} +18 -18
- package/__chunks__/{Text-DN9QVNH4.js → Text-CoOcI-ZA.js} +34 -34
- package/__chunks__/{Text-CLXCmUFd.mjs → Text-Dfn-c0km.mjs} +34 -34
- package/__chunks__/{Toggle-D4oyHZCf.js → Toggle-DYTnMD3t.js} +15 -14
- package/__chunks__/{Toggle-DytN4mU6.mjs → Toggle-qa6gbH9Q.mjs} +14 -13
- package/__chunks__/{Tooltip-BFf05Sd7.js → Tooltip-6vJKVOnU.js} +11 -11
- package/__chunks__/{Tooltip-BHGCJiVl.mjs → Tooltip-DnLwtGUV.mjs} +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-CbamvYP6.js → VerticalStack-BUxIVmGp.js} +3 -3
- package/__chunks__/{VerticalStack-DOMDyLlK.mjs → VerticalStack-ac4iBcxE.mjs} +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-2fSu0FuJ.js} +5 -5
- package/__chunks__/{ariaHideOutside-CGNrOhSc.mjs → ariaHideOutside-Dhj8j6Mb.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-CfUEt_df.mjs} +3 -3
- package/__chunks__/{useDialog-DNGXm940.js → useDialog-CtMBWxF5.js} +3 -3
- package/__chunks__/{useEdgeInterceptors-CrrZ-iAb.js → useEdgeInterceptors-CQ1iontu.js} +5 -5
- package/__chunks__/{useEdgeInterceptors-D0TMU4bR.mjs → useEdgeInterceptors-DYwJNXXm.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-DhoFI49t.mjs → useHasTabbableChild-9rS-nuc-.mjs} +1 -1
- package/__chunks__/{useHasTabbableChild-BCSKoUR_.js → useHasTabbableChild-BY-g4H3y.js} +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-C0qCIU8l.js} +10 -8
- package/__chunks__/{useSelectableItem-Dn-hODEw.mjs → useSelectableItem-CHd6ksRw.mjs} +6 -4
- package/__chunks__/{useSelectableList-CjopKGbS.js → useSelectableList-CnP9hXkb.js} +1 -1
- package/__chunks__/{useSelectableList-DjrCndUM.mjs → useSelectableList-FvytdUu7.mjs} +1 -1
- package/__chunks__/{useToggle-qLiVQ6Y2.js → useToggle-DsYRac30.js} +2 -19
- package/__chunks__/{useToggle-V7BhKpNo.mjs → useToggle-YUgC8qn-.mjs} +3 -20
- package/__chunks__/useToggleState-CdbEMLRz.js +18 -0
- package/__chunks__/useToggleState-kFojjzgV.mjs +19 -0
- package/__chunks__/{useTriggerWidth-CI9YrWOP.mjs → useTriggerWidth-B3JINZlR.mjs} +4 -4
- package/__chunks__/{useTriggerWidth-Bj1hzfIg.js → useTriggerWidth-CcKoLR8z.js} +4 -4
- package/__chunks__/utils-DXO9zsKE.js +154 -0
- package/__chunks__/utils-Dm-0qf_-.mjs +155 -0
- package/package.json +2 -2
- package/style.css +1015 -968
- package/DataGrid/UnstyledPressButton.d.ts.map +0 -1
- /package/{DataGrid → UnstyledButton}/UnstyledPressButton.d.ts +0 -0
|
@@ -28,25 +28,25 @@ var __objRest = (source, exclude) => {
|
|
|
28
28
|
return target;
|
|
29
29
|
};
|
|
30
30
|
const React = require("react");
|
|
31
|
-
const UnstyledButton = require("./UnstyledButton-
|
|
32
|
-
const Icon = require("./Icon-
|
|
31
|
+
const UnstyledButton = require("./UnstyledButton-BfeN_d1h.js");
|
|
32
|
+
const Icon = require("./Icon-BB9QecRC.js");
|
|
33
33
|
const utilities_css = require("../utilities/css.js");
|
|
34
|
-
const Button$1 = "
|
|
35
|
-
const colorPrimary = "
|
|
36
|
-
const colorSecondary = "
|
|
37
|
-
const colorSuccess = "
|
|
38
|
-
const colorWarning = "
|
|
39
|
-
const colorNeutral = "
|
|
40
|
-
const colorSupport = "
|
|
41
|
-
const colorInverse = "
|
|
42
|
-
const variantFilled = "
|
|
43
|
-
const variantOutlined = "
|
|
44
|
-
const variantLink = "
|
|
45
|
-
const sizeMd = "
|
|
46
|
-
const sizeSm = "
|
|
47
|
-
const block = "
|
|
48
|
-
const iconAtStart = "
|
|
49
|
-
const iconAtEnd = "
|
|
34
|
+
const Button$1 = "_Button_yteu5_5";
|
|
35
|
+
const colorPrimary = "_colorPrimary_yteu5_20";
|
|
36
|
+
const colorSecondary = "_colorSecondary_yteu5_28";
|
|
37
|
+
const colorSuccess = "_colorSuccess_yteu5_36";
|
|
38
|
+
const colorWarning = "_colorWarning_yteu5_44";
|
|
39
|
+
const colorNeutral = "_colorNeutral_yteu5_52";
|
|
40
|
+
const colorSupport = "_colorSupport_yteu5_60";
|
|
41
|
+
const colorInverse = "_colorInverse_yteu5_66";
|
|
42
|
+
const variantFilled = "_variantFilled_yteu5_72";
|
|
43
|
+
const variantOutlined = "_variantOutlined_yteu5_99";
|
|
44
|
+
const variantLink = "_variantLink_yteu5_127";
|
|
45
|
+
const sizeMd = "_sizeMd_yteu5_151";
|
|
46
|
+
const sizeSm = "_sizeSm_yteu5_159";
|
|
47
|
+
const block = "_block_yteu5_176";
|
|
48
|
+
const iconAtStart = "_iconAtStart_yteu5_181";
|
|
49
|
+
const iconAtEnd = "_iconAtEnd_yteu5_185";
|
|
50
50
|
const styles = {
|
|
51
51
|
Button: Button$1,
|
|
52
52
|
colorPrimary,
|
|
@@ -27,25 +27,25 @@ var __objRest = (source, exclude) => {
|
|
|
27
27
|
return target;
|
|
28
28
|
};
|
|
29
29
|
import React__default, { forwardRef } from "react";
|
|
30
|
-
import { l as logWarningIfInvalidColorVariantCombination, U as UnstyledButton } from "./UnstyledButton-
|
|
31
|
-
import { I as Icon } from "./Icon-
|
|
30
|
+
import { l as logWarningIfInvalidColorVariantCombination, U as UnstyledButton } from "./UnstyledButton-0v6TRjMY.mjs";
|
|
31
|
+
import { I as Icon } from "./Icon-3zFwhVjn.mjs";
|
|
32
32
|
import { classNames, variationName } from "../utilities/css.mjs";
|
|
33
|
-
const Button$1 = "
|
|
34
|
-
const colorPrimary = "
|
|
35
|
-
const colorSecondary = "
|
|
36
|
-
const colorSuccess = "
|
|
37
|
-
const colorWarning = "
|
|
38
|
-
const colorNeutral = "
|
|
39
|
-
const colorSupport = "
|
|
40
|
-
const colorInverse = "
|
|
41
|
-
const variantFilled = "
|
|
42
|
-
const variantOutlined = "
|
|
43
|
-
const variantLink = "
|
|
44
|
-
const sizeMd = "
|
|
45
|
-
const sizeSm = "
|
|
46
|
-
const block = "
|
|
47
|
-
const iconAtStart = "
|
|
48
|
-
const iconAtEnd = "
|
|
33
|
+
const Button$1 = "_Button_yteu5_5";
|
|
34
|
+
const colorPrimary = "_colorPrimary_yteu5_20";
|
|
35
|
+
const colorSecondary = "_colorSecondary_yteu5_28";
|
|
36
|
+
const colorSuccess = "_colorSuccess_yteu5_36";
|
|
37
|
+
const colorWarning = "_colorWarning_yteu5_44";
|
|
38
|
+
const colorNeutral = "_colorNeutral_yteu5_52";
|
|
39
|
+
const colorSupport = "_colorSupport_yteu5_60";
|
|
40
|
+
const colorInverse = "_colorInverse_yteu5_66";
|
|
41
|
+
const variantFilled = "_variantFilled_yteu5_72";
|
|
42
|
+
const variantOutlined = "_variantOutlined_yteu5_99";
|
|
43
|
+
const variantLink = "_variantLink_yteu5_127";
|
|
44
|
+
const sizeMd = "_sizeMd_yteu5_151";
|
|
45
|
+
const sizeSm = "_sizeSm_yteu5_159";
|
|
46
|
+
const block = "_block_yteu5_176";
|
|
47
|
+
const iconAtStart = "_iconAtStart_yteu5_181";
|
|
48
|
+
const iconAtEnd = "_iconAtEnd_yteu5_185";
|
|
49
49
|
const styles = {
|
|
50
50
|
Button: Button$1,
|
|
51
51
|
colorPrimary,
|
|
@@ -158,18 +158,18 @@ function requirePick() {
|
|
|
158
158
|
}
|
|
159
159
|
var pickExports = requirePick();
|
|
160
160
|
const pick = /* @__PURE__ */ _commonjsHelpers.getDefaultExportFromCjs(pickExports);
|
|
161
|
-
const container = "
|
|
162
|
-
const area = "
|
|
163
|
-
const variantFlagged = "
|
|
164
|
-
const variantOutlined = "
|
|
165
|
-
const selected = "
|
|
166
|
-
const disabled = "
|
|
167
|
-
const statusDanger = "
|
|
168
|
-
const statusWarning = "
|
|
169
|
-
const statusSuccess = "
|
|
170
|
-
const statusNeutral = "
|
|
171
|
-
const statusPrimary = "
|
|
172
|
-
const statusSecondary = "
|
|
161
|
+
const container = "_container_ilavv_5";
|
|
162
|
+
const area = "_area_ilavv_25";
|
|
163
|
+
const variantFlagged = "_variantFlagged_ilavv_219";
|
|
164
|
+
const variantOutlined = "_variantOutlined_ilavv_226";
|
|
165
|
+
const selected = "_selected_ilavv_231";
|
|
166
|
+
const disabled = "_disabled_ilavv_235";
|
|
167
|
+
const statusDanger = "_statusDanger_ilavv_239";
|
|
168
|
+
const statusWarning = "_statusWarning_ilavv_243";
|
|
169
|
+
const statusSuccess = "_statusSuccess_ilavv_247";
|
|
170
|
+
const statusNeutral = "_statusNeutral_ilavv_251";
|
|
171
|
+
const statusPrimary = "_statusPrimary_ilavv_255";
|
|
172
|
+
const statusSecondary = "_statusSecondary_ilavv_259";
|
|
173
173
|
const styles = {
|
|
174
174
|
container,
|
|
175
175
|
area,
|
|
@@ -157,18 +157,18 @@ function requirePick() {
|
|
|
157
157
|
}
|
|
158
158
|
var pickExports = requirePick();
|
|
159
159
|
const pick = /* @__PURE__ */ getDefaultExportFromCjs(pickExports);
|
|
160
|
-
const container = "
|
|
161
|
-
const area = "
|
|
162
|
-
const variantFlagged = "
|
|
163
|
-
const variantOutlined = "
|
|
164
|
-
const selected = "
|
|
165
|
-
const disabled = "
|
|
166
|
-
const statusDanger = "
|
|
167
|
-
const statusWarning = "
|
|
168
|
-
const statusSuccess = "
|
|
169
|
-
const statusNeutral = "
|
|
170
|
-
const statusPrimary = "
|
|
171
|
-
const statusSecondary = "
|
|
160
|
+
const container = "_container_ilavv_5";
|
|
161
|
+
const area = "_area_ilavv_25";
|
|
162
|
+
const variantFlagged = "_variantFlagged_ilavv_219";
|
|
163
|
+
const variantOutlined = "_variantOutlined_ilavv_226";
|
|
164
|
+
const selected = "_selected_ilavv_231";
|
|
165
|
+
const disabled = "_disabled_ilavv_235";
|
|
166
|
+
const statusDanger = "_statusDanger_ilavv_239";
|
|
167
|
+
const statusWarning = "_statusWarning_ilavv_243";
|
|
168
|
+
const statusSuccess = "_statusSuccess_ilavv_247";
|
|
169
|
+
const statusNeutral = "_statusNeutral_ilavv_251";
|
|
170
|
+
const statusPrimary = "_statusPrimary_ilavv_255";
|
|
171
|
+
const statusSecondary = "_statusSecondary_ilavv_259";
|
|
172
172
|
const styles = {
|
|
173
173
|
container,
|
|
174
174
|
area,
|
|
@@ -33,14 +33,15 @@ import * as React from "react";
|
|
|
33
33
|
import React__default, { useEffect, forwardRef } from "react";
|
|
34
34
|
import { a as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./mergeProps-SJQ-f8LF.mjs";
|
|
35
35
|
import { $ as $5dc95899b306f630$export$c9058316764c140e } from "./mergeRefs-CCV6itCY.mjs";
|
|
36
|
-
import { I as Icon } from "./Icon-
|
|
37
|
-
import { S as SelectorErrorTooltip } from "./SelectorErrorTooltip-
|
|
38
|
-
import { T as Text } from "./Text-
|
|
36
|
+
import { I as Icon } from "./Icon-3zFwhVjn.mjs";
|
|
37
|
+
import { S as SelectorErrorTooltip } from "./SelectorErrorTooltip-D8y5kImH.mjs";
|
|
38
|
+
import { T as Text } from "./Text-Dfn-c0km.mjs";
|
|
39
39
|
import { classNames, variationName } from "../utilities/css.mjs";
|
|
40
|
-
import { $ as $
|
|
41
|
-
import { $ as $e5be200c675c3b3a$export$fc1a364ae1f3ff10, a as $e93e671b31057976$export$b8473d3665f3a75a, b as $e5be200c675c3b3a$export$a763b9476acd3eb } from "./useFormValidation-
|
|
42
|
-
import { $ as $f6c31cce2adf654f$export$45712eceda6fad21 } from "./usePress-
|
|
43
|
-
import { $ as $
|
|
40
|
+
import { $ as $3017fa7ffdddec74$export$8042c6c013fd5226 } from "./useToggleState-kFojjzgV.mjs";
|
|
41
|
+
import { $ as $e5be200c675c3b3a$export$fc1a364ae1f3ff10, a as $e93e671b31057976$export$b8473d3665f3a75a, b as $e5be200c675c3b3a$export$a763b9476acd3eb } from "./useFormValidation-DAScndBq.mjs";
|
|
42
|
+
import { $ as $f6c31cce2adf654f$export$45712eceda6fad21 } from "./usePress-CiUDlxr6.mjs";
|
|
43
|
+
import { $ as $d2c8e2b0480f3f34$export$cbe85ee05b554577 } from "./useToggle-YUgC8qn-.mjs";
|
|
44
|
+
import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "./useFocusRing-dRPhwlpK.mjs";
|
|
44
45
|
import { $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "./useHover-BOYR4wqI.mjs";
|
|
45
46
|
function $406796ff087fe49b$export$e375f10ce42261c5(props, state, inputRef) {
|
|
46
47
|
let validationState = $e5be200c675c3b3a$export$fc1a364ae1f3ff10(__spreadProps(__spreadValues({}, props), {
|
|
@@ -153,22 +154,22 @@ const Remove600 = (_a) => {
|
|
|
153
154
|
d: "M185.87-440.39v-79.22H774.7v79.22H185.87Z"
|
|
154
155
|
}));
|
|
155
156
|
};
|
|
156
|
-
const Checkbox$1 = "
|
|
157
|
-
const label = "
|
|
158
|
-
const box = "
|
|
159
|
-
const check = "
|
|
160
|
-
const focusVisible = "
|
|
161
|
-
const text = "
|
|
162
|
-
const indeterminateSvg = "
|
|
163
|
-
const nested = "
|
|
164
|
-
const sizeLg = "
|
|
165
|
-
const standalone = "
|
|
166
|
-
const invalid = "
|
|
167
|
-
const disabled = "
|
|
168
|
-
const indeterminate = "
|
|
169
|
-
const selected = "
|
|
170
|
-
const hovered = "
|
|
171
|
-
const readOnly = "
|
|
157
|
+
const Checkbox$1 = "_Checkbox_pvkke_5";
|
|
158
|
+
const label = "_label_pvkke_17";
|
|
159
|
+
const box = "_box_pvkke_41";
|
|
160
|
+
const check = "_check_pvkke_42";
|
|
161
|
+
const focusVisible = "_focusVisible_pvkke_57";
|
|
162
|
+
const text = "_text_pvkke_73";
|
|
163
|
+
const indeterminateSvg = "_indeterminateSvg_pvkke_78";
|
|
164
|
+
const nested = "_nested_pvkke_82";
|
|
165
|
+
const sizeLg = "_sizeLg_pvkke_86";
|
|
166
|
+
const standalone = "_standalone_pvkke_91";
|
|
167
|
+
const invalid = "_invalid_pvkke_96";
|
|
168
|
+
const disabled = "_disabled_pvkke_100";
|
|
169
|
+
const indeterminate = "_indeterminate_pvkke_78";
|
|
170
|
+
const selected = "_selected_pvkke_105";
|
|
171
|
+
const hovered = "_hovered_pvkke_121";
|
|
172
|
+
const readOnly = "_readOnly_pvkke_121";
|
|
172
173
|
const styles = {
|
|
173
174
|
Checkbox: Checkbox$1,
|
|
174
175
|
label,
|
|
@@ -33,14 +33,15 @@ var __objRest = (source, exclude) => {
|
|
|
33
33
|
const React = require("react");
|
|
34
34
|
const mergeProps = require("./mergeProps-DniMwM6P.js");
|
|
35
35
|
const mergeRefs = require("./mergeRefs-CQsNYO0P.js");
|
|
36
|
-
const Icon = require("./Icon-
|
|
37
|
-
const SelectorErrorTooltip = require("./SelectorErrorTooltip-
|
|
38
|
-
const Text = require("./Text-
|
|
36
|
+
const Icon = require("./Icon-BB9QecRC.js");
|
|
37
|
+
const SelectorErrorTooltip = require("./SelectorErrorTooltip-DhV9YtiA.js");
|
|
38
|
+
const Text = require("./Text-CoOcI-ZA.js");
|
|
39
39
|
const utilities_css = require("../utilities/css.js");
|
|
40
|
-
const
|
|
41
|
-
const useFormValidation = require("./useFormValidation-
|
|
42
|
-
const usePress = require("./usePress-
|
|
43
|
-
const
|
|
40
|
+
const useToggleState = require("./useToggleState-CdbEMLRz.js");
|
|
41
|
+
const useFormValidation = require("./useFormValidation-C2DoIczP.js");
|
|
42
|
+
const usePress = require("./usePress-BVH8whNd.js");
|
|
43
|
+
const useToggle = require("./useToggle-DsYRac30.js");
|
|
44
|
+
const useFocusRing = require("./useFocusRing-DFRFvht_.js");
|
|
44
45
|
const useHover = require("./useHover-BIKwjrCT.js");
|
|
45
46
|
function _interopNamespaceDefault(e) {
|
|
46
47
|
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
@@ -170,22 +171,22 @@ const Remove600 = (_a) => {
|
|
|
170
171
|
d: "M185.87-440.39v-79.22H774.7v79.22H185.87Z"
|
|
171
172
|
}));
|
|
172
173
|
};
|
|
173
|
-
const Checkbox$1 = "
|
|
174
|
-
const label = "
|
|
175
|
-
const box = "
|
|
176
|
-
const check = "
|
|
177
|
-
const focusVisible = "
|
|
178
|
-
const text = "
|
|
179
|
-
const indeterminateSvg = "
|
|
180
|
-
const nested = "
|
|
181
|
-
const sizeLg = "
|
|
182
|
-
const standalone = "
|
|
183
|
-
const invalid = "
|
|
184
|
-
const disabled = "
|
|
185
|
-
const indeterminate = "
|
|
186
|
-
const selected = "
|
|
187
|
-
const hovered = "
|
|
188
|
-
const readOnly = "
|
|
174
|
+
const Checkbox$1 = "_Checkbox_pvkke_5";
|
|
175
|
+
const label = "_label_pvkke_17";
|
|
176
|
+
const box = "_box_pvkke_41";
|
|
177
|
+
const check = "_check_pvkke_42";
|
|
178
|
+
const focusVisible = "_focusVisible_pvkke_57";
|
|
179
|
+
const text = "_text_pvkke_73";
|
|
180
|
+
const indeterminateSvg = "_indeterminateSvg_pvkke_78";
|
|
181
|
+
const nested = "_nested_pvkke_82";
|
|
182
|
+
const sizeLg = "_sizeLg_pvkke_86";
|
|
183
|
+
const standalone = "_standalone_pvkke_91";
|
|
184
|
+
const invalid = "_invalid_pvkke_96";
|
|
185
|
+
const disabled = "_disabled_pvkke_100";
|
|
186
|
+
const indeterminate = "_indeterminate_pvkke_78";
|
|
187
|
+
const selected = "_selected_pvkke_105";
|
|
188
|
+
const hovered = "_hovered_pvkke_121";
|
|
189
|
+
const readOnly = "_readOnly_pvkke_121";
|
|
189
190
|
const styles = {
|
|
190
191
|
Checkbox: Checkbox$1,
|
|
191
192
|
label,
|
|
@@ -208,7 +209,7 @@ const DEFAULT_SIZE = "md";
|
|
|
208
209
|
const Checkbox = React.forwardRef((props, outsideRef) => {
|
|
209
210
|
const _a = props, { children, errorText, isDisabled, isIndeterminate, isReadOnly, isNested, size = DEFAULT_SIZE, validationState, defaultSelected: _defaultSelected, isSelected: _isSelected, name: _name, onChange: _onChange, value: _value } = _a, restProps = __objRest(_a, ["children", "errorText", "isDisabled", "isIndeterminate", "isReadOnly", "isNested", "size", "validationState", "defaultSelected", "isSelected", "name", "onChange", "value"]);
|
|
210
211
|
const ref = React.useRef(null);
|
|
211
|
-
const state =
|
|
212
|
+
const state = useToggleState.$3017fa7ffdddec74$export$8042c6c013fd5226(props);
|
|
212
213
|
const { inputProps: inputPropsFromAria } = $406796ff087fe49b$export$e375f10ce42261c5(props, state, ref);
|
|
213
214
|
const { isFocusVisible, focusProps } = useFocusRing.$f7dceffc5ad7768b$export$4e328f61c538687f();
|
|
214
215
|
const { isHovered, hoverProps } = useHover.$6179b936705e76d3$export$ae780daf29e6d456(props);
|
|
@@ -19,7 +19,7 @@ var __spreadValues = (a, b) => {
|
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { $ as $5dc95899b306f630$export$c9058316764c140e } from "./mergeRefs-CCV6itCY.mjs";
|
|
21
21
|
import React__default, { useMemo, useEffect, createContext, useContext, forwardRef, useRef } from "react";
|
|
22
|
-
import { C as Card } from "./Card-
|
|
22
|
+
import { C as Card } from "./Card-mxjU9S-F.mjs";
|
|
23
23
|
import { c as commonjsGlobal, g as getDefaultExportFromCjs } from "./_commonjsHelpers-DWwsNxpa.mjs";
|
|
24
24
|
import { _ as _objectWithoutPropertiesLoose, a as _extends } from "./objectWithoutPropertiesLoose-ij10PUAf.mjs";
|
|
25
25
|
import { e as ezuiTokens } from "./tokens-BolVbjJp.mjs";
|
|
@@ -5671,7 +5671,7 @@ const useCodeBlock = () => {
|
|
|
5671
5671
|
}
|
|
5672
5672
|
return codeBlock;
|
|
5673
5673
|
};
|
|
5674
|
-
const CodeSnippet$1 = "
|
|
5674
|
+
const CodeSnippet$1 = "_CodeSnippet_srzck_5";
|
|
5675
5675
|
const styles = {
|
|
5676
5676
|
CodeSnippet: CodeSnippet$1
|
|
5677
5677
|
};
|
|
@@ -20,7 +20,7 @@ var __spreadValues = (a, b) => {
|
|
|
20
20
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
21
21
|
const mergeRefs = require("./mergeRefs-CQsNYO0P.js");
|
|
22
22
|
const React = require("react");
|
|
23
|
-
const Card = require("./Card-
|
|
23
|
+
const Card = require("./Card-9RlZlFEC.js");
|
|
24
24
|
const _commonjsHelpers = require("./_commonjsHelpers-Bc2YnDe1.js");
|
|
25
25
|
const objectWithoutPropertiesLoose = require("./objectWithoutPropertiesLoose-3GpnIKeG.js");
|
|
26
26
|
const tokens = require("./tokens-BmCk-Bk0.js");
|
|
@@ -5672,7 +5672,7 @@ const useCodeBlock = () => {
|
|
|
5672
5672
|
}
|
|
5673
5673
|
return codeBlock;
|
|
5674
5674
|
};
|
|
5675
|
-
const CodeSnippet$1 = "
|
|
5675
|
+
const CodeSnippet$1 = "_CodeSnippet_srzck_5";
|
|
5676
5676
|
const styles = {
|
|
5677
5677
|
CodeSnippet: CodeSnippet$1
|
|
5678
5678
|
};
|
|
@@ -34,8 +34,8 @@ var __yieldStar = (value) => {
|
|
|
34
34
|
throw x;
|
|
35
35
|
}, "return" in obj && method("return"), it;
|
|
36
36
|
};
|
|
37
|
-
import { $ as $6a99195332edec8b$export$80f3e147d781571c } from "./focusSafely-
|
|
38
|
-
import {
|
|
37
|
+
import { $ as $6a99195332edec8b$export$80f3e147d781571c } from "./focusSafely-DfpH-pE9.mjs";
|
|
38
|
+
import { a as $431fbd86ca7dc216$export$f21a1ffae260145a, $ as $431fbd86ca7dc216$export$b204af158042fbac } from "./isVirtualEvent-BPCuFO54.mjs";
|
|
39
39
|
import { b as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c } from "./mergeProps-SJQ-f8LF.mjs";
|
|
40
40
|
import React__default, { useRef, useContext, useMemo, useEffect } from "react";
|
|
41
41
|
function $645f2e67b85a24c9$var$isStyleVisible(element) {
|
|
@@ -544,6 +544,87 @@ function $9bf71ea28793e738$export$2d6ec8fc375ceafa(root, opts, scope) {
|
|
|
544
544
|
if (opts === null || opts === void 0 ? void 0 : opts.from) walker.currentNode = opts.from;
|
|
545
545
|
return walker;
|
|
546
546
|
}
|
|
547
|
+
function $9bf71ea28793e738$export$c5251b9e124bf29(ref, defaultOptions = {}) {
|
|
548
|
+
return {
|
|
549
|
+
focusNext(opts = {}) {
|
|
550
|
+
let root = ref.current;
|
|
551
|
+
if (!root) return null;
|
|
552
|
+
let { from, tabbable = defaultOptions.tabbable, wrap = defaultOptions.wrap, accept = defaultOptions.accept } = opts;
|
|
553
|
+
let node = from || $431fbd86ca7dc216$export$b204af158042fbac(root).activeElement;
|
|
554
|
+
let walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa(root, {
|
|
555
|
+
tabbable,
|
|
556
|
+
accept
|
|
557
|
+
});
|
|
558
|
+
if (root.contains(node)) walker.currentNode = node;
|
|
559
|
+
let nextNode = walker.nextNode();
|
|
560
|
+
if (!nextNode && wrap) {
|
|
561
|
+
walker.currentNode = root;
|
|
562
|
+
nextNode = walker.nextNode();
|
|
563
|
+
}
|
|
564
|
+
if (nextNode) $9bf71ea28793e738$var$focusElement(nextNode, true);
|
|
565
|
+
return nextNode;
|
|
566
|
+
},
|
|
567
|
+
focusPrevious(opts = defaultOptions) {
|
|
568
|
+
let root = ref.current;
|
|
569
|
+
if (!root) return null;
|
|
570
|
+
let { from, tabbable = defaultOptions.tabbable, wrap = defaultOptions.wrap, accept = defaultOptions.accept } = opts;
|
|
571
|
+
let node = from || $431fbd86ca7dc216$export$b204af158042fbac(root).activeElement;
|
|
572
|
+
let walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa(root, {
|
|
573
|
+
tabbable,
|
|
574
|
+
accept
|
|
575
|
+
});
|
|
576
|
+
if (root.contains(node)) walker.currentNode = node;
|
|
577
|
+
else {
|
|
578
|
+
let next = $9bf71ea28793e738$var$last(walker);
|
|
579
|
+
if (next) $9bf71ea28793e738$var$focusElement(next, true);
|
|
580
|
+
return next !== null && next !== void 0 ? next : null;
|
|
581
|
+
}
|
|
582
|
+
let previousNode = walker.previousNode();
|
|
583
|
+
if (!previousNode && wrap) {
|
|
584
|
+
walker.currentNode = root;
|
|
585
|
+
let lastNode = $9bf71ea28793e738$var$last(walker);
|
|
586
|
+
if (!lastNode)
|
|
587
|
+
return null;
|
|
588
|
+
previousNode = lastNode;
|
|
589
|
+
}
|
|
590
|
+
if (previousNode) $9bf71ea28793e738$var$focusElement(previousNode, true);
|
|
591
|
+
return previousNode !== null && previousNode !== void 0 ? previousNode : null;
|
|
592
|
+
},
|
|
593
|
+
focusFirst(opts = defaultOptions) {
|
|
594
|
+
let root = ref.current;
|
|
595
|
+
if (!root) return null;
|
|
596
|
+
let { tabbable = defaultOptions.tabbable, accept = defaultOptions.accept } = opts;
|
|
597
|
+
let walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa(root, {
|
|
598
|
+
tabbable,
|
|
599
|
+
accept
|
|
600
|
+
});
|
|
601
|
+
let nextNode = walker.nextNode();
|
|
602
|
+
if (nextNode) $9bf71ea28793e738$var$focusElement(nextNode, true);
|
|
603
|
+
return nextNode;
|
|
604
|
+
},
|
|
605
|
+
focusLast(opts = defaultOptions) {
|
|
606
|
+
let root = ref.current;
|
|
607
|
+
if (!root) return null;
|
|
608
|
+
let { tabbable = defaultOptions.tabbable, accept = defaultOptions.accept } = opts;
|
|
609
|
+
let walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa(root, {
|
|
610
|
+
tabbable,
|
|
611
|
+
accept
|
|
612
|
+
});
|
|
613
|
+
let next = $9bf71ea28793e738$var$last(walker);
|
|
614
|
+
if (next) $9bf71ea28793e738$var$focusElement(next, true);
|
|
615
|
+
return next !== null && next !== void 0 ? next : null;
|
|
616
|
+
}
|
|
617
|
+
};
|
|
618
|
+
}
|
|
619
|
+
function $9bf71ea28793e738$var$last(walker) {
|
|
620
|
+
let next = void 0;
|
|
621
|
+
let last;
|
|
622
|
+
do {
|
|
623
|
+
last = walker.lastChild();
|
|
624
|
+
if (last) next = last;
|
|
625
|
+
} while (last);
|
|
626
|
+
return next;
|
|
627
|
+
}
|
|
547
628
|
class $9bf71ea28793e738$var$Tree {
|
|
548
629
|
get size() {
|
|
549
630
|
return this.fastMap.size;
|
|
@@ -617,5 +698,6 @@ let $9bf71ea28793e738$export$d06fae2ee68b101e = new $9bf71ea28793e738$var$Tree()
|
|
|
617
698
|
export {
|
|
618
699
|
$9bf71ea28793e738$export$2d6ec8fc375ceafa as $,
|
|
619
700
|
$9bf71ea28793e738$export$20e40289641fbbb6 as a,
|
|
620
|
-
$9bf71ea28793e738$export$1258395f99bf9cbf as b
|
|
701
|
+
$9bf71ea28793e738$export$1258395f99bf9cbf as b,
|
|
702
|
+
$9bf71ea28793e738$export$c5251b9e124bf29 as c
|
|
621
703
|
};
|
|
@@ -35,12 +35,12 @@ var __yieldStar = (value) => {
|
|
|
35
35
|
throw x;
|
|
36
36
|
}, "return" in obj && method("return"), it;
|
|
37
37
|
};
|
|
38
|
-
const focusSafely = require("./focusSafely-
|
|
39
|
-
const
|
|
38
|
+
const focusSafely = require("./focusSafely-CZPj1Dug.js");
|
|
39
|
+
const isVirtualEvent = require("./isVirtualEvent-DwoP1rNI.js");
|
|
40
40
|
const mergeProps = require("./mergeProps-DniMwM6P.js");
|
|
41
41
|
const React = require("react");
|
|
42
42
|
function $645f2e67b85a24c9$var$isStyleVisible(element) {
|
|
43
|
-
const windowObject =
|
|
43
|
+
const windowObject = isVirtualEvent.$431fbd86ca7dc216$export$f21a1ffae260145a(element);
|
|
44
44
|
if (!(element instanceof windowObject.HTMLElement) && !(element instanceof windowObject.SVGElement)) return false;
|
|
45
45
|
let { display, visibility } = element.style;
|
|
46
46
|
let isVisible = display !== "none" && visibility !== "hidden" && visibility !== "collapse";
|
|
@@ -112,7 +112,7 @@ function $9bf71ea28793e738$export$20e40289641fbbb6(props) {
|
|
|
112
112
|
$9bf71ea28793e738$var$useRestoreFocus(scopeRef, restoreFocus, contain);
|
|
113
113
|
$9bf71ea28793e738$var$useAutoFocus(scopeRef, autoFocus);
|
|
114
114
|
React.useEffect(() => {
|
|
115
|
-
const activeElement =
|
|
115
|
+
const activeElement = isVirtualEvent.$431fbd86ca7dc216$export$b204af158042fbac(scopeRef.current ? scopeRef.current[0] : void 0).activeElement;
|
|
116
116
|
let scope = null;
|
|
117
117
|
if ($9bf71ea28793e738$var$isElementInScope(activeElement, scopeRef.current)) {
|
|
118
118
|
for (let node2 of $9bf71ea28793e738$export$d06fae2ee68b101e.traverse()) if (node2.scopeRef && $9bf71ea28793e738$var$isElementInScope(activeElement, node2.scopeRef.current)) scope = node2;
|
|
@@ -157,7 +157,7 @@ function $9bf71ea28793e738$var$createFocusManagerForScope(scopeRef) {
|
|
|
157
157
|
focusNext(opts = {}) {
|
|
158
158
|
let scope = scopeRef.current;
|
|
159
159
|
let { from, tabbable, wrap, accept } = opts;
|
|
160
|
-
let node = from ||
|
|
160
|
+
let node = from || isVirtualEvent.$431fbd86ca7dc216$export$b204af158042fbac(scope[0]).activeElement;
|
|
161
161
|
let sentinel = scope[0].previousElementSibling;
|
|
162
162
|
let scopeRoot = $9bf71ea28793e738$var$getScopeRoot(scope);
|
|
163
163
|
let walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa(scopeRoot, {
|
|
@@ -176,7 +176,7 @@ function $9bf71ea28793e738$var$createFocusManagerForScope(scopeRef) {
|
|
|
176
176
|
focusPrevious(opts = {}) {
|
|
177
177
|
let scope = scopeRef.current;
|
|
178
178
|
let { from, tabbable, wrap, accept } = opts;
|
|
179
|
-
let node = from ||
|
|
179
|
+
let node = from || isVirtualEvent.$431fbd86ca7dc216$export$b204af158042fbac(scope[0]).activeElement;
|
|
180
180
|
let sentinel = scope[scope.length - 1].nextElementSibling;
|
|
181
181
|
let scopeRoot = $9bf71ea28793e738$var$getScopeRoot(scope);
|
|
182
182
|
let walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa(scopeRoot, {
|
|
@@ -261,7 +261,7 @@ function $9bf71ea28793e738$var$useFocusContainment(scopeRef, contain) {
|
|
|
261
261
|
}
|
|
262
262
|
return;
|
|
263
263
|
}
|
|
264
|
-
const ownerDocument =
|
|
264
|
+
const ownerDocument = isVirtualEvent.$431fbd86ca7dc216$export$b204af158042fbac(scope ? scope[0] : void 0);
|
|
265
265
|
let onKeyDown = (e) => {
|
|
266
266
|
if (e.key !== "Tab" || e.altKey || e.ctrlKey || e.metaKey || !$9bf71ea28793e738$var$shouldContainFocus(scopeRef) || e.isComposing) return;
|
|
267
267
|
let focusedElement = ownerDocument.activeElement;
|
|
@@ -388,7 +388,7 @@ function $9bf71ea28793e738$var$useAutoFocus(scopeRef, autoFocus) {
|
|
|
388
388
|
React.useEffect(() => {
|
|
389
389
|
if (autoFocusRef.current) {
|
|
390
390
|
$9bf71ea28793e738$var$activeScope = scopeRef;
|
|
391
|
-
const ownerDocument =
|
|
391
|
+
const ownerDocument = isVirtualEvent.$431fbd86ca7dc216$export$b204af158042fbac(scopeRef.current ? scopeRef.current[0] : void 0);
|
|
392
392
|
if (!$9bf71ea28793e738$var$isElementInScope(ownerDocument.activeElement, $9bf71ea28793e738$var$activeScope.current) && scopeRef.current) $9bf71ea28793e738$var$focusFirstInScope(scopeRef.current);
|
|
393
393
|
}
|
|
394
394
|
autoFocusRef.current = false;
|
|
@@ -400,7 +400,7 @@ function $9bf71ea28793e738$var$useActiveScopeTracker(scopeRef, restore, contain)
|
|
|
400
400
|
mergeProps.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
|
|
401
401
|
if (restore || contain) return;
|
|
402
402
|
let scope = scopeRef.current;
|
|
403
|
-
const ownerDocument =
|
|
403
|
+
const ownerDocument = isVirtualEvent.$431fbd86ca7dc216$export$b204af158042fbac(scope ? scope[0] : void 0);
|
|
404
404
|
let onFocus = (e) => {
|
|
405
405
|
let target = e.target;
|
|
406
406
|
if ($9bf71ea28793e738$var$isElementInScope(target, scopeRef.current)) $9bf71ea28793e738$var$activeScope = scopeRef;
|
|
@@ -427,10 +427,10 @@ function $9bf71ea28793e738$var$shouldRestoreFocus(scopeRef) {
|
|
|
427
427
|
return (scope === null || scope === void 0 ? void 0 : scope.scopeRef) === scopeRef;
|
|
428
428
|
}
|
|
429
429
|
function $9bf71ea28793e738$var$useRestoreFocus(scopeRef, restoreFocus, contain) {
|
|
430
|
-
const nodeToRestoreRef = React.useRef(typeof document !== "undefined" ?
|
|
430
|
+
const nodeToRestoreRef = React.useRef(typeof document !== "undefined" ? isVirtualEvent.$431fbd86ca7dc216$export$b204af158042fbac(scopeRef.current ? scopeRef.current[0] : void 0).activeElement : null);
|
|
431
431
|
mergeProps.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
|
|
432
432
|
let scope = scopeRef.current;
|
|
433
|
-
const ownerDocument =
|
|
433
|
+
const ownerDocument = isVirtualEvent.$431fbd86ca7dc216$export$b204af158042fbac(scope ? scope[0] : void 0);
|
|
434
434
|
if (!restoreFocus || contain) return;
|
|
435
435
|
let onFocus = () => {
|
|
436
436
|
if ((!$9bf71ea28793e738$var$activeScope || $9bf71ea28793e738$var$isAncestorScope($9bf71ea28793e738$var$activeScope, scopeRef)) && $9bf71ea28793e738$var$isElementInScope(ownerDocument.activeElement, scopeRef.current)) $9bf71ea28793e738$var$activeScope = scopeRef;
|
|
@@ -446,7 +446,7 @@ function $9bf71ea28793e738$var$useRestoreFocus(scopeRef, restoreFocus, contain)
|
|
|
446
446
|
contain
|
|
447
447
|
]);
|
|
448
448
|
mergeProps.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
|
|
449
|
-
const ownerDocument =
|
|
449
|
+
const ownerDocument = isVirtualEvent.$431fbd86ca7dc216$export$b204af158042fbac(scopeRef.current ? scopeRef.current[0] : void 0);
|
|
450
450
|
if (!restoreFocus) return;
|
|
451
451
|
let onKeyDown = (e) => {
|
|
452
452
|
if (e.key !== "Tab" || e.altKey || e.ctrlKey || e.metaKey || !$9bf71ea28793e738$var$shouldContainFocus(scopeRef) || e.isComposing) return;
|
|
@@ -486,7 +486,7 @@ function $9bf71ea28793e738$var$useRestoreFocus(scopeRef, restoreFocus, contain)
|
|
|
486
486
|
contain
|
|
487
487
|
]);
|
|
488
488
|
mergeProps.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
|
|
489
|
-
const ownerDocument =
|
|
489
|
+
const ownerDocument = isVirtualEvent.$431fbd86ca7dc216$export$b204af158042fbac(scopeRef.current ? scopeRef.current[0] : void 0);
|
|
490
490
|
if (!restoreFocus) return;
|
|
491
491
|
let treeNode = $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode(scopeRef);
|
|
492
492
|
if (!treeNode) return;
|
|
@@ -534,7 +534,7 @@ function $9bf71ea28793e738$var$restoreFocusToElement(node) {
|
|
|
534
534
|
}
|
|
535
535
|
function $9bf71ea28793e738$export$2d6ec8fc375ceafa(root, opts, scope) {
|
|
536
536
|
let selector = (opts === null || opts === void 0 ? void 0 : opts.tabbable) ? $9bf71ea28793e738$var$TABBABLE_ELEMENT_SELECTOR : $9bf71ea28793e738$var$FOCUSABLE_ELEMENT_SELECTOR;
|
|
537
|
-
let walker =
|
|
537
|
+
let walker = isVirtualEvent.$431fbd86ca7dc216$export$b204af158042fbac(root).createTreeWalker(root, NodeFilter.SHOW_ELEMENT, {
|
|
538
538
|
acceptNode(node) {
|
|
539
539
|
var _opts_from;
|
|
540
540
|
if (opts === null || opts === void 0 ? void 0 : (_opts_from = opts.from) === null || _opts_from === void 0 ? void 0 : _opts_from.contains(node)) return NodeFilter.FILTER_REJECT;
|
|
@@ -545,6 +545,87 @@ function $9bf71ea28793e738$export$2d6ec8fc375ceafa(root, opts, scope) {
|
|
|
545
545
|
if (opts === null || opts === void 0 ? void 0 : opts.from) walker.currentNode = opts.from;
|
|
546
546
|
return walker;
|
|
547
547
|
}
|
|
548
|
+
function $9bf71ea28793e738$export$c5251b9e124bf29(ref, defaultOptions = {}) {
|
|
549
|
+
return {
|
|
550
|
+
focusNext(opts = {}) {
|
|
551
|
+
let root = ref.current;
|
|
552
|
+
if (!root) return null;
|
|
553
|
+
let { from, tabbable = defaultOptions.tabbable, wrap = defaultOptions.wrap, accept = defaultOptions.accept } = opts;
|
|
554
|
+
let node = from || isVirtualEvent.$431fbd86ca7dc216$export$b204af158042fbac(root).activeElement;
|
|
555
|
+
let walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa(root, {
|
|
556
|
+
tabbable,
|
|
557
|
+
accept
|
|
558
|
+
});
|
|
559
|
+
if (root.contains(node)) walker.currentNode = node;
|
|
560
|
+
let nextNode = walker.nextNode();
|
|
561
|
+
if (!nextNode && wrap) {
|
|
562
|
+
walker.currentNode = root;
|
|
563
|
+
nextNode = walker.nextNode();
|
|
564
|
+
}
|
|
565
|
+
if (nextNode) $9bf71ea28793e738$var$focusElement(nextNode, true);
|
|
566
|
+
return nextNode;
|
|
567
|
+
},
|
|
568
|
+
focusPrevious(opts = defaultOptions) {
|
|
569
|
+
let root = ref.current;
|
|
570
|
+
if (!root) return null;
|
|
571
|
+
let { from, tabbable = defaultOptions.tabbable, wrap = defaultOptions.wrap, accept = defaultOptions.accept } = opts;
|
|
572
|
+
let node = from || isVirtualEvent.$431fbd86ca7dc216$export$b204af158042fbac(root).activeElement;
|
|
573
|
+
let walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa(root, {
|
|
574
|
+
tabbable,
|
|
575
|
+
accept
|
|
576
|
+
});
|
|
577
|
+
if (root.contains(node)) walker.currentNode = node;
|
|
578
|
+
else {
|
|
579
|
+
let next = $9bf71ea28793e738$var$last(walker);
|
|
580
|
+
if (next) $9bf71ea28793e738$var$focusElement(next, true);
|
|
581
|
+
return next !== null && next !== void 0 ? next : null;
|
|
582
|
+
}
|
|
583
|
+
let previousNode = walker.previousNode();
|
|
584
|
+
if (!previousNode && wrap) {
|
|
585
|
+
walker.currentNode = root;
|
|
586
|
+
let lastNode = $9bf71ea28793e738$var$last(walker);
|
|
587
|
+
if (!lastNode)
|
|
588
|
+
return null;
|
|
589
|
+
previousNode = lastNode;
|
|
590
|
+
}
|
|
591
|
+
if (previousNode) $9bf71ea28793e738$var$focusElement(previousNode, true);
|
|
592
|
+
return previousNode !== null && previousNode !== void 0 ? previousNode : null;
|
|
593
|
+
},
|
|
594
|
+
focusFirst(opts = defaultOptions) {
|
|
595
|
+
let root = ref.current;
|
|
596
|
+
if (!root) return null;
|
|
597
|
+
let { tabbable = defaultOptions.tabbable, accept = defaultOptions.accept } = opts;
|
|
598
|
+
let walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa(root, {
|
|
599
|
+
tabbable,
|
|
600
|
+
accept
|
|
601
|
+
});
|
|
602
|
+
let nextNode = walker.nextNode();
|
|
603
|
+
if (nextNode) $9bf71ea28793e738$var$focusElement(nextNode, true);
|
|
604
|
+
return nextNode;
|
|
605
|
+
},
|
|
606
|
+
focusLast(opts = defaultOptions) {
|
|
607
|
+
let root = ref.current;
|
|
608
|
+
if (!root) return null;
|
|
609
|
+
let { tabbable = defaultOptions.tabbable, accept = defaultOptions.accept } = opts;
|
|
610
|
+
let walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa(root, {
|
|
611
|
+
tabbable,
|
|
612
|
+
accept
|
|
613
|
+
});
|
|
614
|
+
let next = $9bf71ea28793e738$var$last(walker);
|
|
615
|
+
if (next) $9bf71ea28793e738$var$focusElement(next, true);
|
|
616
|
+
return next !== null && next !== void 0 ? next : null;
|
|
617
|
+
}
|
|
618
|
+
};
|
|
619
|
+
}
|
|
620
|
+
function $9bf71ea28793e738$var$last(walker) {
|
|
621
|
+
let next = void 0;
|
|
622
|
+
let last;
|
|
623
|
+
do {
|
|
624
|
+
last = walker.lastChild();
|
|
625
|
+
if (last) next = last;
|
|
626
|
+
} while (last);
|
|
627
|
+
return next;
|
|
628
|
+
}
|
|
548
629
|
class $9bf71ea28793e738$var$Tree {
|
|
549
630
|
get size() {
|
|
550
631
|
return this.fastMap.size;
|
|
@@ -618,3 +699,4 @@ let $9bf71ea28793e738$export$d06fae2ee68b101e = new $9bf71ea28793e738$var$Tree()
|
|
|
618
699
|
exports.$9bf71ea28793e738$export$1258395f99bf9cbf = $9bf71ea28793e738$export$1258395f99bf9cbf;
|
|
619
700
|
exports.$9bf71ea28793e738$export$20e40289641fbbb6 = $9bf71ea28793e738$export$20e40289641fbbb6;
|
|
620
701
|
exports.$9bf71ea28793e738$export$2d6ec8fc375ceafa = $9bf71ea28793e738$export$2d6ec8fc375ceafa;
|
|
702
|
+
exports.$9bf71ea28793e738$export$c5251b9e124bf29 = $9bf71ea28793e738$export$c5251b9e124bf29;
|