@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
package/PillGroup/index.js
CHANGED
|
@@ -32,34 +32,34 @@ var __objRest = (source, exclude) => {
|
|
|
32
32
|
};
|
|
33
33
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
34
34
|
const React = require("react");
|
|
35
|
-
const
|
|
36
|
-
const mergeRefs = require("../__chunks__/mergeRefs-CQsNYO0P.js");
|
|
37
|
-
const ReactDOM = require("react-dom");
|
|
35
|
+
const utils = require("../__chunks__/utils-DXO9zsKE.js");
|
|
38
36
|
const LiveAnnouncer = require("../__chunks__/LiveAnnouncer-CWnuIRMW.js");
|
|
37
|
+
const ReactDOM = require("react-dom");
|
|
38
|
+
const mergeProps = require("../__chunks__/mergeProps-DniMwM6P.js");
|
|
39
39
|
const filterDOMProps = require("../__chunks__/filterDOMProps-D3iOHP0H.js");
|
|
40
|
-
const useButton = require("../__chunks__/useButton-
|
|
41
|
-
const useFocusRing = require("../__chunks__/useFocusRing-
|
|
40
|
+
const useButton = require("../__chunks__/useButton-DVdJNlul.js");
|
|
41
|
+
const useFocusRing = require("../__chunks__/useFocusRing-DFRFvht_.js");
|
|
42
42
|
const useHover = require("../__chunks__/useHover-BIKwjrCT.js");
|
|
43
43
|
const index = require("../__chunks__/index-CTw89HMx.js");
|
|
44
44
|
const useListState = require("../__chunks__/useListState-I5rva0Fq.js");
|
|
45
|
-
const useSelectableList = require("../__chunks__/useSelectableList-
|
|
45
|
+
const useSelectableList = require("../__chunks__/useSelectableList-CnP9hXkb.js");
|
|
46
46
|
const useField = require("../__chunks__/useField-BJW_bXVD.js");
|
|
47
|
-
const useFocusWithin = require("../__chunks__/useFocusWithin-
|
|
48
|
-
const useHighlightSelectionDescription = require("../__chunks__/useHighlightSelectionDescription-
|
|
49
|
-
const useHasTabbableChild = require("../__chunks__/useHasTabbableChild-
|
|
47
|
+
const useFocusWithin = require("../__chunks__/useFocusWithin-C1ioGWec.js");
|
|
48
|
+
const useHighlightSelectionDescription = require("../__chunks__/useHighlightSelectionDescription-CG5W6CIQ.js");
|
|
49
|
+
const useHasTabbableChild = require("../__chunks__/useHasTabbableChild-BY-g4H3y.js");
|
|
50
50
|
const context = require("../__chunks__/context-D3NeXov7.js");
|
|
51
|
-
const usePress = require("../__chunks__/usePress-
|
|
51
|
+
const usePress = require("../__chunks__/usePress-BVH8whNd.js");
|
|
52
52
|
const scrollIntoView = require("../__chunks__/scrollIntoView-DkcUbB3D.js");
|
|
53
53
|
const getScrollParent = require("../__chunks__/getScrollParent-DNz2ReWu.js");
|
|
54
|
-
const FocusScope = require("../__chunks__/FocusScope-
|
|
55
|
-
const focusSafely = require("../__chunks__/focusSafely-
|
|
54
|
+
const FocusScope = require("../__chunks__/FocusScope-DJer9ahG.js");
|
|
55
|
+
const focusSafely = require("../__chunks__/focusSafely-CZPj1Dug.js");
|
|
56
56
|
const SelectionManager = require("../__chunks__/SelectionManager-DuX6geJg.js");
|
|
57
|
-
const useFocusVisible = require("../__chunks__/useFocusVisible-
|
|
58
|
-
const useSelectableItem = require("../__chunks__/useSelectableItem-
|
|
57
|
+
const useFocusVisible = require("../__chunks__/useFocusVisible-PBQuklI8.js");
|
|
58
|
+
const useSelectableItem = require("../__chunks__/useSelectableItem-C0qCIU8l.js");
|
|
59
59
|
const useLocalizedStringFormatter = require("../__chunks__/useLocalizedStringFormatter-D74_5d4h.js");
|
|
60
60
|
const Close = require("../__chunks__/Close-BQ2IlPyf.js");
|
|
61
|
-
const Icon = require("../__chunks__/Icon-
|
|
62
|
-
const Text = require("../__chunks__/Text-
|
|
61
|
+
const Icon = require("../__chunks__/Icon-BB9QecRC.js");
|
|
62
|
+
const Text = require("../__chunks__/Text-CoOcI-ZA.js");
|
|
63
63
|
const utilities_css = require("../utilities/css.js");
|
|
64
64
|
function $0d86e9c8f07f9a7b$export$762f73dccccd255d(options) {
|
|
65
65
|
let { initialItems = [], initialSelectedKeys, getKey = (item) => {
|
|
@@ -246,21 +246,6 @@ function $0d86e9c8f07f9a7b$var$move(state, indices, toIndex) {
|
|
|
246
246
|
items: copy
|
|
247
247
|
});
|
|
248
248
|
}
|
|
249
|
-
function $df56164dff5785e2$export$4338b53315abf666(forwardedRef) {
|
|
250
|
-
const objRef = React.useRef(null);
|
|
251
|
-
return React.useMemo(() => ({
|
|
252
|
-
get current() {
|
|
253
|
-
return objRef.current;
|
|
254
|
-
},
|
|
255
|
-
set current(value) {
|
|
256
|
-
objRef.current = value;
|
|
257
|
-
if (typeof forwardedRef === "function") forwardedRef(value);
|
|
258
|
-
else if (forwardedRef) forwardedRef.current = value;
|
|
259
|
-
}
|
|
260
|
-
}), [
|
|
261
|
-
forwardedRef
|
|
262
|
-
]);
|
|
263
|
-
}
|
|
264
249
|
const $ce9b18daab526bbd$export$5b9bb410392e3991 = /* @__PURE__ */ new WeakMap();
|
|
265
250
|
function $ce9b18daab526bbd$export$f45c25170b9a99c2(state, key) {
|
|
266
251
|
var _listMap_get;
|
|
@@ -1502,107 +1487,9 @@ function $7135fc7d473fd974$export$90e00781bc59d8f9(focusedKey) {
|
|
|
1502
1487
|
focusedKey
|
|
1503
1488
|
]);
|
|
1504
1489
|
}
|
|
1505
|
-
const $64fa3d84918910a7$export$c62b8e45d58ddad9 = Symbol("default");
|
|
1506
|
-
function $64fa3d84918910a7$export$2881499e37b75b9a({ values, children }) {
|
|
1507
|
-
for (let [Context, value] of values)
|
|
1508
|
-
children = /* @__PURE__ */ React.createElement(Context.Provider, {
|
|
1509
|
-
value
|
|
1510
|
-
}, children);
|
|
1511
|
-
return children;
|
|
1512
|
-
}
|
|
1513
|
-
function $64fa3d84918910a7$export$4d86445c2cf5e3(props) {
|
|
1514
|
-
let { className, style, children, defaultClassName, defaultChildren, defaultStyle, values } = props;
|
|
1515
|
-
return React.useMemo(() => {
|
|
1516
|
-
let computedClassName;
|
|
1517
|
-
let computedStyle;
|
|
1518
|
-
let computedChildren;
|
|
1519
|
-
if (typeof className === "function") computedClassName = className(__spreadProps(__spreadValues({}, values), {
|
|
1520
|
-
defaultClassName
|
|
1521
|
-
}));
|
|
1522
|
-
else computedClassName = className;
|
|
1523
|
-
if (typeof style === "function") computedStyle = style(__spreadProps(__spreadValues({}, values), {
|
|
1524
|
-
defaultStyle: defaultStyle || {}
|
|
1525
|
-
}));
|
|
1526
|
-
else computedStyle = style;
|
|
1527
|
-
if (typeof children === "function") computedChildren = children(__spreadProps(__spreadValues({}, values), {
|
|
1528
|
-
defaultChildren
|
|
1529
|
-
}));
|
|
1530
|
-
else if (children == null) computedChildren = defaultChildren;
|
|
1531
|
-
else computedChildren = children;
|
|
1532
|
-
return {
|
|
1533
|
-
className: computedClassName !== null && computedClassName !== void 0 ? computedClassName : defaultClassName,
|
|
1534
|
-
style: computedStyle || defaultStyle ? __spreadValues(__spreadValues({}, defaultStyle), computedStyle) : void 0,
|
|
1535
|
-
children: computedChildren !== null && computedChildren !== void 0 ? computedChildren : defaultChildren,
|
|
1536
|
-
"data-rac": ""
|
|
1537
|
-
};
|
|
1538
|
-
}, [
|
|
1539
|
-
className,
|
|
1540
|
-
style,
|
|
1541
|
-
children,
|
|
1542
|
-
defaultClassName,
|
|
1543
|
-
defaultChildren,
|
|
1544
|
-
defaultStyle,
|
|
1545
|
-
values
|
|
1546
|
-
]);
|
|
1547
|
-
}
|
|
1548
|
-
function $64fa3d84918910a7$export$fabf2dc03a41866e(context2, slot) {
|
|
1549
|
-
let ctx = React.useContext(context2);
|
|
1550
|
-
if (slot === null)
|
|
1551
|
-
return null;
|
|
1552
|
-
if (ctx && typeof ctx === "object" && "slots" in ctx && ctx.slots) {
|
|
1553
|
-
let availableSlots = new Intl.ListFormat().format(Object.keys(ctx.slots).map((p) => `"${p}"`));
|
|
1554
|
-
if (!slot && !ctx.slots[$64fa3d84918910a7$export$c62b8e45d58ddad9]) throw new Error(`A slot prop is required. Valid slot names are ${availableSlots}.`);
|
|
1555
|
-
let slotKey = slot || $64fa3d84918910a7$export$c62b8e45d58ddad9;
|
|
1556
|
-
if (!ctx.slots[slotKey])
|
|
1557
|
-
throw new Error(`Invalid slot "${slot}". Valid slot names are ${availableSlots}.`);
|
|
1558
|
-
return ctx.slots[slotKey];
|
|
1559
|
-
}
|
|
1560
|
-
return ctx;
|
|
1561
|
-
}
|
|
1562
|
-
function $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, context2) {
|
|
1563
|
-
let ctx = $64fa3d84918910a7$export$fabf2dc03a41866e(context2, props.slot) || {};
|
|
1564
|
-
let _a = ctx, { ref: contextRef } = _a, contextProps = __objRest(_a, ["ref"]);
|
|
1565
|
-
let mergedRef = $df56164dff5785e2$export$4338b53315abf666(React.useMemo(() => mergeRefs.$5dc95899b306f630$export$c9058316764c140e(ref, contextRef), [
|
|
1566
|
-
ref,
|
|
1567
|
-
contextRef
|
|
1568
|
-
]));
|
|
1569
|
-
let mergedProps = mergeProps.$3ef42575df84b30b$export$9d1611c77c2fe928(contextProps, props);
|
|
1570
|
-
if ("style" in contextProps && contextProps.style && "style" in props && props.style) {
|
|
1571
|
-
if (typeof contextProps.style === "function" || typeof props.style === "function")
|
|
1572
|
-
mergedProps.style = (renderProps) => {
|
|
1573
|
-
let contextStyle = typeof contextProps.style === "function" ? contextProps.style(renderProps) : contextProps.style;
|
|
1574
|
-
let defaultStyle = __spreadValues(__spreadValues({}, renderProps.defaultStyle), contextStyle);
|
|
1575
|
-
let style = typeof props.style === "function" ? props.style(__spreadProps(__spreadValues({}, renderProps), {
|
|
1576
|
-
defaultStyle
|
|
1577
|
-
})) : props.style;
|
|
1578
|
-
return __spreadValues(__spreadValues({}, defaultStyle), style);
|
|
1579
|
-
};
|
|
1580
|
-
else
|
|
1581
|
-
mergedProps.style = __spreadValues(__spreadValues({}, contextProps.style), props.style);
|
|
1582
|
-
}
|
|
1583
|
-
return [
|
|
1584
|
-
mergedProps,
|
|
1585
|
-
mergedRef
|
|
1586
|
-
];
|
|
1587
|
-
}
|
|
1588
|
-
function $64fa3d84918910a7$export$9d4c57ee4c6ffdd8() {
|
|
1589
|
-
let [hasSlot, setHasSlot] = React.useState(true);
|
|
1590
|
-
let hasRun = React.useRef(false);
|
|
1591
|
-
let ref = React.useCallback((el) => {
|
|
1592
|
-
hasRun.current = true;
|
|
1593
|
-
setHasSlot(!!el);
|
|
1594
|
-
}, []);
|
|
1595
|
-
mergeProps.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
|
|
1596
|
-
if (!hasRun.current) setHasSlot(false);
|
|
1597
|
-
}, []);
|
|
1598
|
-
return [
|
|
1599
|
-
ref,
|
|
1600
|
-
hasSlot
|
|
1601
|
-
];
|
|
1602
|
-
}
|
|
1603
1490
|
const $01b77f81d0f07f68$export$75b6ee27786ba447 = /* @__PURE__ */ React.createContext({});
|
|
1604
1491
|
function $01b77f81d0f07f68$var$Label(props, ref) {
|
|
1605
|
-
[props, ref] =
|
|
1492
|
+
[props, ref] = utils.$64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $01b77f81d0f07f68$export$75b6ee27786ba447);
|
|
1606
1493
|
let _a = props, { elementType: ElementType = "label" } = _a, labelProps = __objRest(_a, ["elementType"]);
|
|
1607
1494
|
return /* @__PURE__ */ React.createElement(ElementType, __spreadProps(__spreadValues({
|
|
1608
1495
|
className: "react-aria-Label"
|
|
@@ -1624,7 +1511,7 @@ const $d2b4bc8c273e7be6$var$additionalButtonHTMLAttributes = /* @__PURE__ */ new
|
|
|
1624
1511
|
]);
|
|
1625
1512
|
const $d2b4bc8c273e7be6$export$24d547caef80ccd1 = /* @__PURE__ */ React.createContext({});
|
|
1626
1513
|
function $d2b4bc8c273e7be6$var$Button(props, ref) {
|
|
1627
|
-
[props, ref] =
|
|
1514
|
+
[props, ref] = utils.$64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $d2b4bc8c273e7be6$export$24d547caef80ccd1);
|
|
1628
1515
|
props = $d2b4bc8c273e7be6$var$disablePendingProps(props);
|
|
1629
1516
|
let ctx = props;
|
|
1630
1517
|
let { isPending } = ctx;
|
|
@@ -1641,7 +1528,7 @@ function $d2b4bc8c273e7be6$var$Button(props, ref) {
|
|
|
1641
1528
|
isDisabled: props.isDisabled || false,
|
|
1642
1529
|
isPending: isPending !== null && isPending !== void 0 ? isPending : false
|
|
1643
1530
|
};
|
|
1644
|
-
let renderProps =
|
|
1531
|
+
let renderProps = utils.$64fa3d84918910a7$export$4d86445c2cf5e3(__spreadProps(__spreadValues({}, props), {
|
|
1645
1532
|
values: renderValues,
|
|
1646
1533
|
defaultClassName: "react-aria-Button"
|
|
1647
1534
|
}));
|
|
@@ -1706,7 +1593,7 @@ const $eed445e0843c11d0$export$7c5906fe4f1f2af2 = /* @__PURE__ */ React.createCo
|
|
|
1706
1593
|
const $eaf9e70818b436db$export$5b07b5dd2cbd96e3 = /* @__PURE__ */ React.createContext(null);
|
|
1707
1594
|
const $eaf9e70818b436db$export$e755ce3685dd0ca9 = /* @__PURE__ */ React.createContext(null);
|
|
1708
1595
|
function $eaf9e70818b436db$var$TagGroup(props, ref) {
|
|
1709
|
-
[props, ref] =
|
|
1596
|
+
[props, ref] = utils.$64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $eaf9e70818b436db$export$5b07b5dd2cbd96e3);
|
|
1710
1597
|
return /* @__PURE__ */ React.createElement($e1995378a142960e$export$bf788dd355e3a401, {
|
|
1711
1598
|
content: props.children
|
|
1712
1599
|
}, (collection) => /* @__PURE__ */ React.createElement($eaf9e70818b436db$var$TagGroupInner, {
|
|
@@ -1717,7 +1604,7 @@ function $eaf9e70818b436db$var$TagGroup(props, ref) {
|
|
|
1717
1604
|
}
|
|
1718
1605
|
function $eaf9e70818b436db$var$TagGroupInner({ props, forwardedRef: ref, collection }) {
|
|
1719
1606
|
let tagListRef = React.useRef(null);
|
|
1720
|
-
let [labelRef, label] =
|
|
1607
|
+
let [labelRef, label] = utils.$64fa3d84918910a7$export$9d4c57ee4c6ffdd8();
|
|
1721
1608
|
let state = useListState.$e72dd72e1c76a225$export$2f645645f7bca764(__spreadProps(__spreadValues({}, props), {
|
|
1722
1609
|
children: void 0,
|
|
1723
1610
|
collection
|
|
@@ -1736,7 +1623,7 @@ function $eaf9e70818b436db$var$TagGroupInner({ props, forwardedRef: ref, collect
|
|
|
1736
1623
|
slot: props.slot || void 0,
|
|
1737
1624
|
className: (_props_className = props.className) !== null && _props_className !== void 0 ? _props_className : "react-aria-TagGroup",
|
|
1738
1625
|
style: props.style
|
|
1739
|
-
}), /* @__PURE__ */ React.createElement(
|
|
1626
|
+
}), /* @__PURE__ */ React.createElement(utils.$64fa3d84918910a7$export$2881499e37b75b9a, {
|
|
1740
1627
|
values: [
|
|
1741
1628
|
[
|
|
1742
1629
|
$01b77f81d0f07f68$export$75b6ee27786ba447,
|
|
@@ -1778,7 +1665,7 @@ function $eaf9e70818b436db$var$TagList(props, ref) {
|
|
|
1778
1665
|
function $eaf9e70818b436db$var$TagListInner({ props, forwardedRef }) {
|
|
1779
1666
|
let state = React.useContext($eed445e0843c11d0$export$7c5906fe4f1f2af2);
|
|
1780
1667
|
let { CollectionRoot } = React.useContext($7135fc7d473fd974$export$4feb769f8ddf26c5);
|
|
1781
|
-
let [gridProps, ref] =
|
|
1668
|
+
let [gridProps, ref] = utils.$64fa3d84918910a7$export$29f1550f4b0d4415(props, forwardedRef, $eaf9e70818b436db$export$e755ce3685dd0ca9);
|
|
1782
1669
|
delete gridProps.items;
|
|
1783
1670
|
delete gridProps.renderEmptyState;
|
|
1784
1671
|
let { focusProps, isFocused, isFocusVisible } = useFocusRing.$f7dceffc5ad7768b$export$4e328f61c538687f();
|
|
@@ -1788,7 +1675,7 @@ function $eaf9e70818b436db$var$TagListInner({ props, forwardedRef }) {
|
|
|
1788
1675
|
isFocusVisible,
|
|
1789
1676
|
state
|
|
1790
1677
|
};
|
|
1791
|
-
let renderProps =
|
|
1678
|
+
let renderProps = utils.$64fa3d84918910a7$export$4d86445c2cf5e3({
|
|
1792
1679
|
className: props.className,
|
|
1793
1680
|
style: props.style,
|
|
1794
1681
|
defaultClassName: "react-aria-TagList",
|
|
@@ -1808,7 +1695,7 @@ function $eaf9e70818b436db$var$TagListInner({ props, forwardedRef }) {
|
|
|
1808
1695
|
const $eaf9e70818b436db$export$f9fef0f55402315b = /* @__PURE__ */ React.forwardRef($eaf9e70818b436db$var$TagList);
|
|
1809
1696
|
const $eaf9e70818b436db$export$3288d34c523a1192 = /* @__PURE__ */ $e1995378a142960e$export$18af5c7a9e9b3664("item", (props, forwardedRef, item) => {
|
|
1810
1697
|
let state = React.useContext($eed445e0843c11d0$export$7c5906fe4f1f2af2);
|
|
1811
|
-
let ref =
|
|
1698
|
+
let ref = utils.$df56164dff5785e2$export$4338b53315abf666(forwardedRef);
|
|
1812
1699
|
let { focusProps, isFocusVisible } = useFocusRing.$f7dceffc5ad7768b$export$4e328f61c538687f({
|
|
1813
1700
|
within: true
|
|
1814
1701
|
});
|
|
@@ -1821,7 +1708,7 @@ const $eaf9e70818b436db$export$3288d34c523a1192 = /* @__PURE__ */ $e1995378a1429
|
|
|
1821
1708
|
onHoverChange: item.props.onHoverChange,
|
|
1822
1709
|
onHoverEnd: item.props.onHoverEnd
|
|
1823
1710
|
});
|
|
1824
|
-
let renderProps =
|
|
1711
|
+
let renderProps = utils.$64fa3d84918910a7$export$4d86445c2cf5e3(__spreadProps(__spreadValues({}, props), {
|
|
1825
1712
|
id: void 0,
|
|
1826
1713
|
children: item.rendered,
|
|
1827
1714
|
defaultClassName: "react-aria-Tag",
|
|
@@ -1852,7 +1739,7 @@ const $eaf9e70818b436db$export$3288d34c523a1192 = /* @__PURE__ */ $e1995378a1429
|
|
|
1852
1739
|
style: {
|
|
1853
1740
|
display: "contents"
|
|
1854
1741
|
}
|
|
1855
|
-
}), /* @__PURE__ */ React.createElement(
|
|
1742
|
+
}), /* @__PURE__ */ React.createElement(utils.$64fa3d84918910a7$export$2881499e37b75b9a, {
|
|
1856
1743
|
values: [
|
|
1857
1744
|
[
|
|
1858
1745
|
$d2b4bc8c273e7be6$export$24d547caef80ccd1,
|
|
@@ -1869,9 +1756,9 @@ const $eaf9e70818b436db$export$3288d34c523a1192 = /* @__PURE__ */ $e1995378a1429
|
|
|
1869
1756
|
]
|
|
1870
1757
|
}, renderProps.children)));
|
|
1871
1758
|
});
|
|
1872
|
-
const Pill$1 = "
|
|
1873
|
-
const remove = "
|
|
1874
|
-
const list = "
|
|
1759
|
+
const Pill$1 = "_Pill_1gw4x_5";
|
|
1760
|
+
const remove = "_remove_1gw4x_14";
|
|
1761
|
+
const list = "_list_1gw4x_26";
|
|
1875
1762
|
const styles = {
|
|
1876
1763
|
Pill: Pill$1,
|
|
1877
1764
|
remove,
|
package/PillGroup/index.mjs
CHANGED
|
@@ -30,34 +30,34 @@ var __objRest = (source, exclude) => {
|
|
|
30
30
|
return target;
|
|
31
31
|
};
|
|
32
32
|
import React__default, { useState, useMemo, useRef, useEffect, cloneElement, forwardRef, useContext, createContext, useCallback } from "react";
|
|
33
|
-
import {
|
|
34
|
-
import { $ as $5dc95899b306f630$export$c9058316764c140e } from "../__chunks__/mergeRefs-CCV6itCY.mjs";
|
|
35
|
-
import { createPortal } from "react-dom";
|
|
33
|
+
import { $ as $64fa3d84918910a7$export$29f1550f4b0d4415, a as $64fa3d84918910a7$export$4d86445c2cf5e3, b as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, c as $64fa3d84918910a7$export$2881499e37b75b9a, d as $df56164dff5785e2$export$4338b53315abf666 } from "../__chunks__/utils-Dm-0qf_-.mjs";
|
|
36
34
|
import { a as $319e236875307eab$export$a9b970dcc4ae71a9 } from "../__chunks__/LiveAnnouncer-UhhG0KqR.mjs";
|
|
35
|
+
import { createPortal } from "react-dom";
|
|
36
|
+
import { d as $bdb11010cef70236$export$f680877a34711e37, a as $3ef42575df84b30b$export$9d1611c77c2fe928, $ as $bdb11010cef70236$export$b4cc09c592e8fdb8, f as $ff5963eb1fccf552$export$e08e3b67e392101e, e as $b5e257d569688ac6$export$535bd6ca7f90a273, b as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c } from "../__chunks__/mergeProps-SJQ-f8LF.mjs";
|
|
37
37
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "../__chunks__/filterDOMProps-EDDcM64A.mjs";
|
|
38
|
-
import { $ as $701a24aa0da5b062$export$ea18c227d4417cc3 } from "../__chunks__/useButton-
|
|
39
|
-
import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "../__chunks__/useFocusRing-
|
|
38
|
+
import { $ as $701a24aa0da5b062$export$ea18c227d4417cc3 } from "../__chunks__/useButton-C6QFpa4j.mjs";
|
|
39
|
+
import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "../__chunks__/useFocusRing-dRPhwlpK.mjs";
|
|
40
40
|
import { $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "../__chunks__/useHover-BOYR4wqI.mjs";
|
|
41
41
|
import { s as shimExports } from "../__chunks__/index-DCSYt1ke.mjs";
|
|
42
42
|
import { $ as $e72dd72e1c76a225$export$2f645645f7bca764 } from "../__chunks__/useListState-CH1PXfc5.mjs";
|
|
43
|
-
import { $ as $982254629710d113$export$b95089534ab7c1fd, b as $2a25aae57d74318e$export$a05409b8bb224a5a } from "../__chunks__/useSelectableList-
|
|
43
|
+
import { $ as $982254629710d113$export$b95089534ab7c1fd, b as $2a25aae57d74318e$export$a05409b8bb224a5a } from "../__chunks__/useSelectableList-FvytdUu7.mjs";
|
|
44
44
|
import { $ as $2baaea4c71418dea$export$294aa081a6c6f55d } from "../__chunks__/useField-DPD-La1H.mjs";
|
|
45
|
-
import { $ as $9ab94262bd0047c7$export$420e68273165f4ec } from "../__chunks__/useFocusWithin-
|
|
46
|
-
import { $ as $5b9b5b5723db6ae1$export$be42ebdab07ae4c2, a as $92599c3fd427b763$export$137e594ef3218a10 } from "../__chunks__/useHighlightSelectionDescription-
|
|
47
|
-
import { $ as $83013635b024ae3d$export$eac1895992b9f3d6 } from "../__chunks__/useHasTabbableChild-
|
|
45
|
+
import { $ as $9ab94262bd0047c7$export$420e68273165f4ec } from "../__chunks__/useFocusWithin-krnNAgDY.mjs";
|
|
46
|
+
import { $ as $5b9b5b5723db6ae1$export$be42ebdab07ae4c2, a as $92599c3fd427b763$export$137e594ef3218a10 } from "../__chunks__/useHighlightSelectionDescription-CPtYsCSQ.mjs";
|
|
47
|
+
import { $ as $83013635b024ae3d$export$eac1895992b9f3d6 } from "../__chunks__/useHasTabbableChild-9rS-nuc-.mjs";
|
|
48
48
|
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "../__chunks__/context-D3I6RuRU.mjs";
|
|
49
|
-
import { g as $ea8dcbcb9ea1b556$export$bdc77b0c0a3a85d6 } from "../__chunks__/usePress-
|
|
49
|
+
import { g as $ea8dcbcb9ea1b556$export$bdc77b0c0a3a85d6 } from "../__chunks__/usePress-CiUDlxr6.mjs";
|
|
50
50
|
import { b as $2f04cbc44ee30ce0$export$c826860796309d1b, $ as $ef06256079686ba0$export$f8aeda7b10753fa1 } from "../__chunks__/scrollIntoView-C4vMSOYx.mjs";
|
|
51
51
|
import { $ as $62d8ded9296f3872$export$cfa2225e87938781 } from "../__chunks__/getScrollParent-B5CCP-yO.mjs";
|
|
52
|
-
import { $ as $9bf71ea28793e738$export$2d6ec8fc375ceafa } from "../__chunks__/FocusScope-
|
|
53
|
-
import { $ as $6a99195332edec8b$export$80f3e147d781571c } from "../__chunks__/focusSafely-
|
|
52
|
+
import { $ as $9bf71ea28793e738$export$2d6ec8fc375ceafa } from "../__chunks__/FocusScope-C194OB-4.mjs";
|
|
53
|
+
import { $ as $6a99195332edec8b$export$80f3e147d781571c } from "../__chunks__/focusSafely-DfpH-pE9.mjs";
|
|
54
54
|
import { c as $c5a24bc478652b5f$export$7475b2c64539e4cf } from "../__chunks__/SelectionManager-IO4G_cI2.mjs";
|
|
55
|
-
import { b as $507fabe10e71c6fb$export$b9b3dfddab17db27,
|
|
56
|
-
import { a as $880e95eb8b93ba9a$export$ecf600387e221c37 } from "../__chunks__/useSelectableItem-
|
|
55
|
+
import { b as $507fabe10e71c6fb$export$b9b3dfddab17db27, e as $507fabe10e71c6fb$export$98e20ec92f614cfe } from "../__chunks__/useFocusVisible-BbEmluTm.mjs";
|
|
56
|
+
import { a as $880e95eb8b93ba9a$export$ecf600387e221c37 } from "../__chunks__/useSelectableItem-CHd6ksRw.mjs";
|
|
57
57
|
import { $ as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "../__chunks__/useLocalizedStringFormatter-DJWWtB78.mjs";
|
|
58
58
|
import { C as Close } from "../__chunks__/Close-Cq6Q6MN6.mjs";
|
|
59
|
-
import { I as Icon } from "../__chunks__/Icon-
|
|
60
|
-
import { T as Text } from "../__chunks__/Text-
|
|
59
|
+
import { I as Icon } from "../__chunks__/Icon-3zFwhVjn.mjs";
|
|
60
|
+
import { T as Text } from "../__chunks__/Text-Dfn-c0km.mjs";
|
|
61
61
|
import { getResponsiveDesignToken, getComponentToken } from "../utilities/css.mjs";
|
|
62
62
|
function $0d86e9c8f07f9a7b$export$762f73dccccd255d(options) {
|
|
63
63
|
let { initialItems = [], initialSelectedKeys, getKey = (item) => {
|
|
@@ -244,21 +244,6 @@ function $0d86e9c8f07f9a7b$var$move(state, indices, toIndex) {
|
|
|
244
244
|
items: copy
|
|
245
245
|
});
|
|
246
246
|
}
|
|
247
|
-
function $df56164dff5785e2$export$4338b53315abf666(forwardedRef) {
|
|
248
|
-
const objRef = useRef(null);
|
|
249
|
-
return useMemo(() => ({
|
|
250
|
-
get current() {
|
|
251
|
-
return objRef.current;
|
|
252
|
-
},
|
|
253
|
-
set current(value) {
|
|
254
|
-
objRef.current = value;
|
|
255
|
-
if (typeof forwardedRef === "function") forwardedRef(value);
|
|
256
|
-
else if (forwardedRef) forwardedRef.current = value;
|
|
257
|
-
}
|
|
258
|
-
}), [
|
|
259
|
-
forwardedRef
|
|
260
|
-
]);
|
|
261
|
-
}
|
|
262
247
|
const $ce9b18daab526bbd$export$5b9bb410392e3991 = /* @__PURE__ */ new WeakMap();
|
|
263
248
|
function $ce9b18daab526bbd$export$f45c25170b9a99c2(state, key) {
|
|
264
249
|
var _listMap_get;
|
|
@@ -1500,104 +1485,6 @@ function $7135fc7d473fd974$export$90e00781bc59d8f9(focusedKey) {
|
|
|
1500
1485
|
focusedKey
|
|
1501
1486
|
]);
|
|
1502
1487
|
}
|
|
1503
|
-
const $64fa3d84918910a7$export$c62b8e45d58ddad9 = Symbol("default");
|
|
1504
|
-
function $64fa3d84918910a7$export$2881499e37b75b9a({ values, children }) {
|
|
1505
|
-
for (let [Context, value] of values)
|
|
1506
|
-
children = /* @__PURE__ */ React__default.createElement(Context.Provider, {
|
|
1507
|
-
value
|
|
1508
|
-
}, children);
|
|
1509
|
-
return children;
|
|
1510
|
-
}
|
|
1511
|
-
function $64fa3d84918910a7$export$4d86445c2cf5e3(props) {
|
|
1512
|
-
let { className, style, children, defaultClassName, defaultChildren, defaultStyle, values } = props;
|
|
1513
|
-
return useMemo(() => {
|
|
1514
|
-
let computedClassName;
|
|
1515
|
-
let computedStyle;
|
|
1516
|
-
let computedChildren;
|
|
1517
|
-
if (typeof className === "function") computedClassName = className(__spreadProps(__spreadValues({}, values), {
|
|
1518
|
-
defaultClassName
|
|
1519
|
-
}));
|
|
1520
|
-
else computedClassName = className;
|
|
1521
|
-
if (typeof style === "function") computedStyle = style(__spreadProps(__spreadValues({}, values), {
|
|
1522
|
-
defaultStyle: defaultStyle || {}
|
|
1523
|
-
}));
|
|
1524
|
-
else computedStyle = style;
|
|
1525
|
-
if (typeof children === "function") computedChildren = children(__spreadProps(__spreadValues({}, values), {
|
|
1526
|
-
defaultChildren
|
|
1527
|
-
}));
|
|
1528
|
-
else if (children == null) computedChildren = defaultChildren;
|
|
1529
|
-
else computedChildren = children;
|
|
1530
|
-
return {
|
|
1531
|
-
className: computedClassName !== null && computedClassName !== void 0 ? computedClassName : defaultClassName,
|
|
1532
|
-
style: computedStyle || defaultStyle ? __spreadValues(__spreadValues({}, defaultStyle), computedStyle) : void 0,
|
|
1533
|
-
children: computedChildren !== null && computedChildren !== void 0 ? computedChildren : defaultChildren,
|
|
1534
|
-
"data-rac": ""
|
|
1535
|
-
};
|
|
1536
|
-
}, [
|
|
1537
|
-
className,
|
|
1538
|
-
style,
|
|
1539
|
-
children,
|
|
1540
|
-
defaultClassName,
|
|
1541
|
-
defaultChildren,
|
|
1542
|
-
defaultStyle,
|
|
1543
|
-
values
|
|
1544
|
-
]);
|
|
1545
|
-
}
|
|
1546
|
-
function $64fa3d84918910a7$export$fabf2dc03a41866e(context, slot) {
|
|
1547
|
-
let ctx = useContext(context);
|
|
1548
|
-
if (slot === null)
|
|
1549
|
-
return null;
|
|
1550
|
-
if (ctx && typeof ctx === "object" && "slots" in ctx && ctx.slots) {
|
|
1551
|
-
let availableSlots = new Intl.ListFormat().format(Object.keys(ctx.slots).map((p) => `"${p}"`));
|
|
1552
|
-
if (!slot && !ctx.slots[$64fa3d84918910a7$export$c62b8e45d58ddad9]) throw new Error(`A slot prop is required. Valid slot names are ${availableSlots}.`);
|
|
1553
|
-
let slotKey = slot || $64fa3d84918910a7$export$c62b8e45d58ddad9;
|
|
1554
|
-
if (!ctx.slots[slotKey])
|
|
1555
|
-
throw new Error(`Invalid slot "${slot}". Valid slot names are ${availableSlots}.`);
|
|
1556
|
-
return ctx.slots[slotKey];
|
|
1557
|
-
}
|
|
1558
|
-
return ctx;
|
|
1559
|
-
}
|
|
1560
|
-
function $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, context) {
|
|
1561
|
-
let ctx = $64fa3d84918910a7$export$fabf2dc03a41866e(context, props.slot) || {};
|
|
1562
|
-
let _a = ctx, { ref: contextRef } = _a, contextProps = __objRest(_a, ["ref"]);
|
|
1563
|
-
let mergedRef = $df56164dff5785e2$export$4338b53315abf666(useMemo(() => $5dc95899b306f630$export$c9058316764c140e(ref, contextRef), [
|
|
1564
|
-
ref,
|
|
1565
|
-
contextRef
|
|
1566
|
-
]));
|
|
1567
|
-
let mergedProps = $3ef42575df84b30b$export$9d1611c77c2fe928(contextProps, props);
|
|
1568
|
-
if ("style" in contextProps && contextProps.style && "style" in props && props.style) {
|
|
1569
|
-
if (typeof contextProps.style === "function" || typeof props.style === "function")
|
|
1570
|
-
mergedProps.style = (renderProps) => {
|
|
1571
|
-
let contextStyle = typeof contextProps.style === "function" ? contextProps.style(renderProps) : contextProps.style;
|
|
1572
|
-
let defaultStyle = __spreadValues(__spreadValues({}, renderProps.defaultStyle), contextStyle);
|
|
1573
|
-
let style = typeof props.style === "function" ? props.style(__spreadProps(__spreadValues({}, renderProps), {
|
|
1574
|
-
defaultStyle
|
|
1575
|
-
})) : props.style;
|
|
1576
|
-
return __spreadValues(__spreadValues({}, defaultStyle), style);
|
|
1577
|
-
};
|
|
1578
|
-
else
|
|
1579
|
-
mergedProps.style = __spreadValues(__spreadValues({}, contextProps.style), props.style);
|
|
1580
|
-
}
|
|
1581
|
-
return [
|
|
1582
|
-
mergedProps,
|
|
1583
|
-
mergedRef
|
|
1584
|
-
];
|
|
1585
|
-
}
|
|
1586
|
-
function $64fa3d84918910a7$export$9d4c57ee4c6ffdd8() {
|
|
1587
|
-
let [hasSlot, setHasSlot] = useState(true);
|
|
1588
|
-
let hasRun = useRef(false);
|
|
1589
|
-
let ref = useCallback((el) => {
|
|
1590
|
-
hasRun.current = true;
|
|
1591
|
-
setHasSlot(!!el);
|
|
1592
|
-
}, []);
|
|
1593
|
-
$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
|
|
1594
|
-
if (!hasRun.current) setHasSlot(false);
|
|
1595
|
-
}, []);
|
|
1596
|
-
return [
|
|
1597
|
-
ref,
|
|
1598
|
-
hasSlot
|
|
1599
|
-
];
|
|
1600
|
-
}
|
|
1601
1488
|
const $01b77f81d0f07f68$export$75b6ee27786ba447 = /* @__PURE__ */ createContext({});
|
|
1602
1489
|
function $01b77f81d0f07f68$var$Label(props, ref) {
|
|
1603
1490
|
[props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $01b77f81d0f07f68$export$75b6ee27786ba447);
|
|
@@ -1867,9 +1754,9 @@ const $eaf9e70818b436db$export$3288d34c523a1192 = /* @__PURE__ */ $e1995378a1429
|
|
|
1867
1754
|
]
|
|
1868
1755
|
}, renderProps.children)));
|
|
1869
1756
|
});
|
|
1870
|
-
const Pill$1 = "
|
|
1871
|
-
const remove = "
|
|
1872
|
-
const list = "
|
|
1757
|
+
const Pill$1 = "_Pill_1gw4x_5";
|
|
1758
|
+
const remove = "_remove_1gw4x_14";
|
|
1759
|
+
const list = "_list_1gw4x_26";
|
|
1873
1760
|
const styles = {
|
|
1874
1761
|
Pill: Pill$1,
|
|
1875
1762
|
remove,
|
package/ProductLayout/index.js
CHANGED
|
@@ -33,20 +33,20 @@ var __objRest = (source, exclude) => {
|
|
|
33
33
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
34
34
|
const React = require("react");
|
|
35
35
|
const Menu = require("../__chunks__/Menu-OacI_98l.js");
|
|
36
|
-
const Button = require("../__chunks__/Button-
|
|
37
|
-
const Icon = require("../__chunks__/Icon-
|
|
38
|
-
const Text = require("../__chunks__/Text-
|
|
39
|
-
const UnstyledButton = require("../__chunks__/UnstyledButton-
|
|
36
|
+
const Button = require("../__chunks__/Button-D_Bk7BuN.js");
|
|
37
|
+
const Icon = require("../__chunks__/Icon-BB9QecRC.js");
|
|
38
|
+
const Text = require("../__chunks__/Text-CoOcI-ZA.js");
|
|
39
|
+
const UnstyledButton = require("../__chunks__/UnstyledButton-BfeN_d1h.js");
|
|
40
40
|
const utilities_css = require("../utilities/css.js");
|
|
41
|
-
const HelpMenu = require("../__chunks__/HelpMenu-
|
|
41
|
+
const HelpMenu = require("../__chunks__/HelpMenu-DF2Bx-bn.js");
|
|
42
42
|
const tokens = require("../__chunks__/tokens-BmCk-Bk0.js");
|
|
43
|
-
const useDialog = require("../__chunks__/useDialog-
|
|
44
|
-
const Overlay = require("../__chunks__/Overlay-
|
|
45
|
-
const TabNav = require("../__chunks__/TabNav-
|
|
43
|
+
const useDialog = require("../__chunks__/useDialog-CtMBWxF5.js");
|
|
44
|
+
const Overlay = require("../__chunks__/Overlay-CUtfbILq.js");
|
|
45
|
+
const TabNav = require("../__chunks__/TabNav-C7_HMIZx.js");
|
|
46
46
|
const useCloseOnScroll = require("../__chunks__/useCloseOnScroll-CLFhBFoo.js");
|
|
47
|
-
const ariaHideOutside = require("../__chunks__/ariaHideOutside-
|
|
48
|
-
const ProductLayout$1 = "
|
|
49
|
-
const body = "
|
|
47
|
+
const ariaHideOutside = require("../__chunks__/ariaHideOutside-2fSu0FuJ.js");
|
|
48
|
+
const ProductLayout$1 = "_ProductLayout_1newx_5";
|
|
49
|
+
const body = "_body_1newx_11";
|
|
50
50
|
const styles$4 = {
|
|
51
51
|
ProductLayout: ProductLayout$1,
|
|
52
52
|
body
|
|
@@ -58,8 +58,8 @@ function ProductLayoutContent(props) {
|
|
|
58
58
|
}, children);
|
|
59
59
|
}
|
|
60
60
|
const productLayoutMediaQuery = `(min-width: ${tokens.ezuiTokens["breakpoint.lg"]})`;
|
|
61
|
-
const largeScreen$1 = "
|
|
62
|
-
const smallScreen$1 = "
|
|
61
|
+
const largeScreen$1 = "_largeScreen_4qqoo_5";
|
|
62
|
+
const smallScreen$1 = "_smallScreen_4qqoo_14";
|
|
63
63
|
const styles$3 = {
|
|
64
64
|
largeScreen: largeScreen$1,
|
|
65
65
|
smallScreen: smallScreen$1
|
|
@@ -91,14 +91,14 @@ const useProductLayout = () => {
|
|
|
91
91
|
}
|
|
92
92
|
return productLayoutContext;
|
|
93
93
|
};
|
|
94
|
-
const ProductLayoutHeader$1 = "
|
|
95
|
-
const largeScreen = "
|
|
96
|
-
const smallScreen = "
|
|
97
|
-
const smallScreenTopBar = "
|
|
98
|
-
const logoMenu = "
|
|
99
|
-
const logoMenuBtn = "
|
|
100
|
-
const divider = "
|
|
101
|
-
const actions = "
|
|
94
|
+
const ProductLayoutHeader$1 = "_ProductLayoutHeader_i1crx_5";
|
|
95
|
+
const largeScreen = "_largeScreen_i1crx_9";
|
|
96
|
+
const smallScreen = "_smallScreen_i1crx_14";
|
|
97
|
+
const smallScreenTopBar = "_smallScreenTopBar_i1crx_19";
|
|
98
|
+
const logoMenu = "_logoMenu_i1crx_24";
|
|
99
|
+
const logoMenuBtn = "_logoMenuBtn_i1crx_30";
|
|
100
|
+
const divider = "_divider_i1crx_35";
|
|
101
|
+
const actions = "_actions_i1crx_41";
|
|
102
102
|
const styles$2 = {
|
|
103
103
|
ProductLayoutHeader: ProductLayoutHeader$1,
|
|
104
104
|
largeScreen,
|
|
@@ -171,9 +171,9 @@ function ActionDivider() {
|
|
|
171
171
|
className: styles$2.divider
|
|
172
172
|
});
|
|
173
173
|
}
|
|
174
|
-
const ProductLayoutSidebar$1 = "
|
|
175
|
-
const open = "
|
|
176
|
-
const overlay = "
|
|
174
|
+
const ProductLayoutSidebar$1 = "_ProductLayoutSidebar_17l96_5";
|
|
175
|
+
const open = "_open_17l96_43";
|
|
176
|
+
const overlay = "_overlay_17l96_49";
|
|
177
177
|
const styles$1 = {
|
|
178
178
|
ProductLayoutSidebar: ProductLayoutSidebar$1,
|
|
179
179
|
open,
|
|
@@ -237,7 +237,7 @@ function DialogSidebarOverlay(props) {
|
|
|
237
237
|
ref
|
|
238
238
|
}, modalProps), children)));
|
|
239
239
|
}
|
|
240
|
-
const ProductLayoutTabbedContent$1 = "
|
|
240
|
+
const ProductLayoutTabbedContent$1 = "_ProductLayoutTabbedContent_tn7dk_5";
|
|
241
241
|
const styles = {
|
|
242
242
|
ProductLayoutTabbedContent: ProductLayoutTabbedContent$1
|
|
243
243
|
};
|
package/ProductLayout/index.mjs
CHANGED
|
@@ -31,20 +31,20 @@ var __objRest = (source, exclude) => {
|
|
|
31
31
|
};
|
|
32
32
|
import React__default, { useEffect, createContext, useContext, useCallback, useRef, useMemo } from "react";
|
|
33
33
|
import { M as Menu } from "../__chunks__/Menu-qMqvSorL.mjs";
|
|
34
|
-
import { B as Button } from "../__chunks__/Button-
|
|
35
|
-
import { I as Icon } from "../__chunks__/Icon-
|
|
36
|
-
import { T as Text } from "../__chunks__/Text-
|
|
37
|
-
import { U as UnstyledButton } from "../__chunks__/UnstyledButton-
|
|
34
|
+
import { B as Button } from "../__chunks__/Button-Dy9idhgT.mjs";
|
|
35
|
+
import { I as Icon } from "../__chunks__/Icon-3zFwhVjn.mjs";
|
|
36
|
+
import { T as Text } from "../__chunks__/Text-Dfn-c0km.mjs";
|
|
37
|
+
import { U as UnstyledButton } from "../__chunks__/UnstyledButton-0v6TRjMY.mjs";
|
|
38
38
|
import { classNames } from "../utilities/css.mjs";
|
|
39
|
-
import { H as HelpMenu } from "../__chunks__/HelpMenu-
|
|
39
|
+
import { H as HelpMenu } from "../__chunks__/HelpMenu-m1qJ4EyP.mjs";
|
|
40
40
|
import { e as ezuiTokens } from "../__chunks__/tokens-BolVbjJp.mjs";
|
|
41
|
-
import { a as $40df3f8667284809$export$d55e7ee900f34e93, $ as $8ac8429251c45e4b$export$dbc0f175b25fb0fb } from "../__chunks__/useDialog-
|
|
42
|
-
import { a as $337b884510726a0d$export$c6fdb837b070b4ff } from "../__chunks__/Overlay-
|
|
43
|
-
import { T as TabNav } from "../__chunks__/TabNav-
|
|
41
|
+
import { a as $40df3f8667284809$export$d55e7ee900f34e93, $ as $8ac8429251c45e4b$export$dbc0f175b25fb0fb } from "../__chunks__/useDialog-CfUEt_df.mjs";
|
|
42
|
+
import { a as $337b884510726a0d$export$c6fdb837b070b4ff } from "../__chunks__/Overlay-BtzIt9Ka.mjs";
|
|
43
|
+
import { T as TabNav } from "../__chunks__/TabNav-BgwlyiLE.mjs";
|
|
44
44
|
import { a as $fc909762b330b746$export$61c6a8c84e605fb6 } from "../__chunks__/useCloseOnScroll-DxZ3orlK.mjs";
|
|
45
|
-
import { c as $628037886ba31236$export$f9d5c8beee7d008d } from "../__chunks__/ariaHideOutside-
|
|
46
|
-
const ProductLayout$1 = "
|
|
47
|
-
const body = "
|
|
45
|
+
import { c as $628037886ba31236$export$f9d5c8beee7d008d } from "../__chunks__/ariaHideOutside-Dhj8j6Mb.mjs";
|
|
46
|
+
const ProductLayout$1 = "_ProductLayout_1newx_5";
|
|
47
|
+
const body = "_body_1newx_11";
|
|
48
48
|
const styles$4 = {
|
|
49
49
|
ProductLayout: ProductLayout$1,
|
|
50
50
|
body
|
|
@@ -56,8 +56,8 @@ function ProductLayoutContent(props) {
|
|
|
56
56
|
}, children);
|
|
57
57
|
}
|
|
58
58
|
const productLayoutMediaQuery = `(min-width: ${ezuiTokens["breakpoint.lg"]})`;
|
|
59
|
-
const largeScreen$1 = "
|
|
60
|
-
const smallScreen$1 = "
|
|
59
|
+
const largeScreen$1 = "_largeScreen_4qqoo_5";
|
|
60
|
+
const smallScreen$1 = "_smallScreen_4qqoo_14";
|
|
61
61
|
const styles$3 = {
|
|
62
62
|
largeScreen: largeScreen$1,
|
|
63
63
|
smallScreen: smallScreen$1
|
|
@@ -89,14 +89,14 @@ const useProductLayout = () => {
|
|
|
89
89
|
}
|
|
90
90
|
return productLayoutContext;
|
|
91
91
|
};
|
|
92
|
-
const ProductLayoutHeader$1 = "
|
|
93
|
-
const largeScreen = "
|
|
94
|
-
const smallScreen = "
|
|
95
|
-
const smallScreenTopBar = "
|
|
96
|
-
const logoMenu = "
|
|
97
|
-
const logoMenuBtn = "
|
|
98
|
-
const divider = "
|
|
99
|
-
const actions = "
|
|
92
|
+
const ProductLayoutHeader$1 = "_ProductLayoutHeader_i1crx_5";
|
|
93
|
+
const largeScreen = "_largeScreen_i1crx_9";
|
|
94
|
+
const smallScreen = "_smallScreen_i1crx_14";
|
|
95
|
+
const smallScreenTopBar = "_smallScreenTopBar_i1crx_19";
|
|
96
|
+
const logoMenu = "_logoMenu_i1crx_24";
|
|
97
|
+
const logoMenuBtn = "_logoMenuBtn_i1crx_30";
|
|
98
|
+
const divider = "_divider_i1crx_35";
|
|
99
|
+
const actions = "_actions_i1crx_41";
|
|
100
100
|
const styles$2 = {
|
|
101
101
|
ProductLayoutHeader: ProductLayoutHeader$1,
|
|
102
102
|
largeScreen,
|
|
@@ -169,9 +169,9 @@ function ActionDivider() {
|
|
|
169
169
|
className: styles$2.divider
|
|
170
170
|
});
|
|
171
171
|
}
|
|
172
|
-
const ProductLayoutSidebar$1 = "
|
|
173
|
-
const open = "
|
|
174
|
-
const overlay = "
|
|
172
|
+
const ProductLayoutSidebar$1 = "_ProductLayoutSidebar_17l96_5";
|
|
173
|
+
const open = "_open_17l96_43";
|
|
174
|
+
const overlay = "_overlay_17l96_49";
|
|
175
175
|
const styles$1 = {
|
|
176
176
|
ProductLayoutSidebar: ProductLayoutSidebar$1,
|
|
177
177
|
open,
|
|
@@ -235,7 +235,7 @@ function DialogSidebarOverlay(props) {
|
|
|
235
235
|
ref
|
|
236
236
|
}, modalProps), children)));
|
|
237
237
|
}
|
|
238
|
-
const ProductLayoutTabbedContent$1 = "
|
|
238
|
+
const ProductLayoutTabbedContent$1 = "_ProductLayoutTabbedContent_tn7dk_5";
|
|
239
239
|
const styles = {
|
|
240
240
|
ProductLayoutTabbedContent: ProductLayoutTabbedContent$1
|
|
241
241
|
};
|