@easypost/easy-ui 1.0.0-alpha.67 → 1.0.0-alpha.69
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 +13 -0
- package/Calendar/index.js +1 -1
- package/Calendar/index.mjs +1 -1
- package/Card/index.js +1 -1
- package/Card/index.mjs +1 -1
- package/CheckableCard/CheckableCard.d.ts +28 -0
- package/CheckableCard/CheckableCard.d.ts.map +1 -0
- package/CheckableCard/CheckableCard.stories.d.ts +7 -0
- package/CheckableCard/CheckableCard.stories.d.ts.map +1 -0
- package/CheckableCard/CheckableCard.test.d.ts +2 -0
- package/CheckableCard/CheckableCard.test.d.ts.map +1 -0
- package/CheckableCard/index.d.ts +2 -0
- package/CheckableCard/index.d.ts.map +1 -0
- package/CheckableCard/index.js +65 -0
- package/CheckableCard/index.mjs +65 -0
- 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/index.js +69 -69
- package/DataGrid/index.mjs +69 -69
- package/DatePicker/index.js +8 -8
- package/DatePicker/index.mjs +8 -8
- package/DateRangePicker/index.js +8 -8
- package/DateRangePicker/index.mjs +8 -8
- package/Drawer/index.js +21 -23
- package/Drawer/index.mjs +21 -23
- 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/ForgeLayout/index.js +42 -42
- package/ForgeLayout/index.mjs +43 -43
- 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/index.js +1 -1
- package/KebabButton/index.mjs +1 -1
- package/Menu/index.js +1 -1
- package/Menu/index.mjs +1 -1
- package/Modal/index.js +23 -23
- package/Modal/index.mjs +23 -23
- package/MultiSelect/index.js +37 -39
- package/MultiSelect/index.mjs +38 -40
- package/NexusLayout/index.js +31 -31
- package/NexusLayout/index.mjs +32 -32
- package/Notification/index.js +1 -1
- package/Notification/index.mjs +1 -1
- package/Pagination/index.js +9 -9
- package/Pagination/index.mjs +9 -9
- package/PillGroup/index.js +1 -1
- package/PillGroup/index.mjs +1 -1
- package/ProductLayout/index.js +26 -26
- package/ProductLayout/index.mjs +26 -26
- package/Provider/index.js +2 -2
- package/Provider/index.mjs +3 -3
- package/RadioButtonGroup/index.js +10 -12
- package/RadioButtonGroup/index.mjs +10 -12
- package/RadioGroup/index.js +1 -1
- package/RadioGroup/index.mjs +1 -1
- package/RangeCalendar/index.js +1 -1
- package/RangeCalendar/index.mjs +1 -1
- package/SearchNav/index.js +29 -29
- package/SearchNav/index.mjs +30 -30
- package/SectionCard/index.js +8 -8
- package/SectionCard/index.mjs +8 -8
- package/Select/index.js +5 -5
- package/Select/index.mjs +6 -6
- 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/SplitToggleCard.d.ts.map +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/Theme/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/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-BxncM-fm.js → Button-5ySni8Hh.js} +19 -19
- package/__chunks__/{Button-Y550ybuK.js → Button-BoPQ-Fx9.js} +6 -6
- package/__chunks__/{Button-BqogJAQ3.mjs → Button-DHEZ4A2s.mjs} +6 -6
- package/__chunks__/{Button-10mhxReQ.mjs → Button-pgrX3do0.mjs} +19 -19
- package/__chunks__/{Calendar-D0ysbR2X.mjs → Calendar-CRF4AZno.mjs} +1 -1
- package/__chunks__/{Calendar-SdcIIg8-.js → Calendar-CaPbfdfI.js} +1 -1
- package/__chunks__/{CalendarBase-Vw2pBuuE.js → CalendarBase-2ZQWqtoJ.js} +50 -39
- package/__chunks__/{CalendarBase-ncItGlBS.mjs → CalendarBase-C5U2z_dE.mjs} +50 -39
- package/__chunks__/{Card-B1cXTObc.mjs → Card-BDwEhe4v.mjs} +13 -13
- package/__chunks__/{Card-DaX-ZuLu.js → Card-BglJr0kt.js} +13 -13
- package/__chunks__/{Checkbox-DSYdN5fC.js → Checkbox-DZQ5HskZ.js} +23 -23
- package/__chunks__/{Checkbox-DdAWbHpa.mjs → Checkbox-ukdXVfAE.mjs} +23 -23
- package/__chunks__/{CodeSnippet-BbIqouQg.mjs → CodeSnippet-CNO4caRz.mjs} +4 -4
- package/__chunks__/{CodeSnippet-CPuuHMuI.js → CodeSnippet-DzSaE0NF.js} +4 -4
- package/__chunks__/{DatePickerBase-DVA3ya0P.mjs → DatePickerBase-DVa8mIxi.mjs} +28 -28
- package/__chunks__/{DatePickerBase-D8v7yMaR.js → DatePickerBase-Dn6y6xs8.js} +24 -24
- package/__chunks__/{Dialog-CFyC5TFs.js → Dialog-CuqmbMC4.js} +74 -15
- package/__chunks__/{Dialog-DnCSZh3s.mjs → Dialog-D9aIj4DH.mjs} +75 -16
- package/__chunks__/{FocusScope-Qg8vUhZ_.mjs → FocusScope-CUJV-jWH.mjs} +7 -4
- package/__chunks__/{FocusScope-DFE0IeGl.js → FocusScope-Djtxzznf.js} +7 -4
- package/__chunks__/{HelpMenu-CJK_EziM.js → HelpMenu-DCAISGya.js} +7 -7
- package/__chunks__/{HelpMenu-DeTGhGis.mjs → HelpMenu-o_hQKn4r.mjs} +7 -7
- package/__chunks__/{HorizontalGrid-BYnV-Dy9.js → HorizontalGrid-DbUUnstP.js} +1 -1
- package/__chunks__/{HorizontalGrid-N2NkjG0P.mjs → HorizontalGrid-RdSsoPeC.mjs} +2 -2
- package/__chunks__/{HorizontalStack-BjMnJAXd.mjs → HorizontalStack-WaIa_On_.mjs} +2 -2
- package/__chunks__/{HorizontalStack-DqPlOkSw.js → HorizontalStack-vmmevfre.js} +1 -1
- package/__chunks__/{Icon-SeXHAWa2.js → Icon-CYsmNchv.js} +2 -2
- package/__chunks__/{Icon-QpfeMf4x.mjs → Icon-CcUj4MVY.mjs} +3 -3
- package/__chunks__/{InputCaption-Bcjaxvqr.mjs → InputCaption-CxxltDAs.mjs} +2 -2
- package/__chunks__/{InputCaption-peDy98l4.js → InputCaption-bYqI7fXg.js} +2 -2
- package/__chunks__/{InputField-CmJ6SAKl.mjs → InputField-Ca7qeLiO.mjs} +6 -6
- package/__chunks__/{InputField-DvSIzId4.js → InputField-buf5D3ld.js} +6 -6
- package/__chunks__/{InputIcon-szDt09pM.js → InputIcon-Cyg4utaN.js} +31 -31
- package/__chunks__/{InputIcon-BNR3_LeL.mjs → InputIcon-DfLwYU9w.mjs} +31 -31
- package/__chunks__/{KebabButton-C4QJla9Y.js → KebabButton-BPEfCygq.js} +5 -5
- package/__chunks__/{KebabButton-BcKtZQv2.mjs → KebabButton-Bj7-5IMa.mjs} +5 -5
- package/__chunks__/{Menu-C45BBC1Y.js → Menu-BElR0RBK.js} +45 -32
- package/__chunks__/{Menu-CW11-o2X.mjs → Menu-i28maspp.mjs} +46 -33
- package/__chunks__/{Notification-CxrDF_Pg.js → Notification-DXHN4vv_.js} +17 -17
- package/__chunks__/{Notification-BJKPFSzJ.mjs → Notification-DiJldjM9.mjs} +17 -17
- package/__chunks__/{Overlay-Dmwy9VjC.js → Overlay-CwJbrICR.js} +1 -1
- package/__chunks__/{Overlay-BEmOdNIB.mjs → Overlay-zuiAML3I.mjs} +1 -1
- package/__chunks__/{PillGroup-BtvBL5fM.mjs → PillGroup-BRYeG6Od.mjs} +137 -53
- package/__chunks__/{PillGroup-BUMKmU-f.js → PillGroup-Cn8E8E4P.js} +135 -51
- package/__chunks__/{RadioGroup-DZXOUSXN.mjs → RadioGroup-CPEyf5hC.mjs} +21 -23
- package/__chunks__/{RadioGroup-C0py9A-2.js → RadioGroup-DJK8z1vF.js} +21 -23
- package/__chunks__/{RangeCalendar-DSEwJpHw.mjs → RangeCalendar-BPHbgsZ0.mjs} +1 -1
- package/__chunks__/{RangeCalendar-DBiN8Tu8.js → RangeCalendar-Bs9IeXPy.js} +1 -1
- package/__chunks__/{SelectOverlay-DBo4MARx.js → SelectOverlay-Db5VJkmw.js} +28 -28
- package/__chunks__/{SelectOverlay-Cy3-vsZK.mjs → SelectOverlay-PEm5Tl8A.mjs} +29 -29
- package/__chunks__/{SelectorErrorTooltip-fPBKPgvD.mjs → SelectorErrorTooltip-Boqc65Yy.mjs} +4 -4
- package/__chunks__/{SelectorErrorTooltip-DkECS0nt.js → SelectorErrorTooltip-DDNm75nL.js} +4 -4
- package/__chunks__/{Spinner-BjlaHcou.mjs → Spinner-CBomPNoI.mjs} +6 -7
- package/__chunks__/{Spinner-BadWfHqn.js → Spinner-m8qMSR1F.js} +5 -6
- package/__chunks__/{Stepper-BB_ESAbw.mjs → Stepper-BEPd-fky.mjs} +27 -27
- package/__chunks__/{Stepper-BqgzsSzg.js → Stepper-_2jbaW9J.js} +27 -27
- package/__chunks__/{TabNav-DnnHglAy.js → TabNav-Bf-77rib.js} +1 -1
- package/__chunks__/{TabNav-D77kh-Xx.mjs → TabNav-CGZ4r4PS.mjs} +1 -1
- package/__chunks__/{Tabs-C2FPFWA4.mjs → Tabs-CxYgTX5o.mjs} +19 -19
- package/__chunks__/{Tabs-Y2WlJlna.js → Tabs-tyZA8KaR.js} +19 -19
- package/__chunks__/{Text-V-yZP2s7.mjs → Text-BAiVIBZd.mjs} +34 -34
- package/__chunks__/{Text-Crcy_R7t.js → Text-hP_Y9mSJ.js} +34 -34
- package/__chunks__/{TextField-EkC5gsJ8.mjs → TextField-CCjc76fv.mjs} +1 -1
- package/__chunks__/{TextField-D847huaI.js → TextField-dE7TispK.js} +1 -1
- package/__chunks__/{Theme-CKTfAcvs.mjs → Theme-ByVPHaBx.mjs} +1 -1
- package/__chunks__/{Toggle-H4aOxdc8.mjs → Toggle-Crbwuw_5.mjs} +13 -13
- package/__chunks__/{Toggle-CQIvcPcu.js → Toggle-OHMRIrIs.js} +13 -13
- package/__chunks__/{Tooltip-DKFYEVdG.js → Tooltip-D3SlLoJf.js} +12 -12
- package/__chunks__/{Tooltip-CIS6DQEh.mjs → Tooltip-DGSCicRM.mjs} +12 -12
- package/__chunks__/{UnstyledButton-Ctqv-3bt.mjs → UnstyledButton-D_DzFe67.mjs} +2 -2
- package/__chunks__/{UnstyledButton-Dmq9K7Jv.js → UnstyledButton-yd6ZL2Yi.js} +2 -2
- package/__chunks__/{VerticalStack-DjuWiMXF.js → VerticalStack-C-yspCsz.js} +3 -3
- package/__chunks__/{VerticalStack-Djj29NqV.mjs → VerticalStack-CtaqI7n3.mjs} +4 -4
- package/__chunks__/{VisuallyHidden-CVfjb1YY.js → VisuallyHidden-DcUrMWfu.js} +1 -1
- package/__chunks__/{VisuallyHidden-BC5PXI9q.mjs → VisuallyHidden-cQCgS6_a.mjs} +1 -1
- package/__chunks__/{ariaHideOutside-CxWZQtI1.mjs → ariaHideOutside-CvJKAP9c.mjs} +4 -14
- package/__chunks__/{ariaHideOutside-B6WqGXJj.js → ariaHideOutside-DkYn-eBq.js} +4 -14
- package/__chunks__/{focusSafely-BWGCG3W3.mjs → focusSafely-CCOEuEpK.mjs} +2 -2
- package/__chunks__/{focusSafely-BvrXUhlW.js → focusSafely-wmTq_iKq.js} +2 -2
- package/__chunks__/{isVirtualEvent-BPCuFO54.mjs → isVirtualEvent-B_Z4yzgm.mjs} +7 -6
- package/__chunks__/{isVirtualEvent-DwoP1rNI.js → isVirtualEvent-C-tB2MCl.js} +1 -0
- package/__chunks__/{lodash-Cu2-TIbX.mjs → lodash-B19QVK6q.mjs} +8 -8
- package/__chunks__/{lodash-DfTCP3Dk.js → lodash-CS8bkZ7S.js} +8 -8
- package/__chunks__/{omit-jjOwwbdQ.js → omit-CC3uE8z5.js} +2 -4
- package/__chunks__/{omit-B_jU3Uog.mjs → omit-CYoLXTjq.mjs} +4 -6
- package/__chunks__/{overlayscrollbars-react-D154NPCl.js → overlayscrollbars-react-BFy4nomP.js} +1 -1
- package/__chunks__/{overlayscrollbars-react-0TIZYR5k.mjs → overlayscrollbars-react-BiRJpzDY.mjs} +1 -1
- package/__chunks__/{scrollIntoView-DkcUbB3D.js → scrollIntoView-BN4yt25y.js} +11 -7
- package/__chunks__/{scrollIntoView-CZM0k-rp.mjs → scrollIntoView-wURtlgJt.mjs} +11 -7
- package/__chunks__/{useButton-DZ0C3d-K.js → useButton-B_VJe1i5.js} +2 -2
- package/__chunks__/{useButton-BK6hwK02.mjs → useButton-CdgRb7pd.mjs} +2 -2
- package/__chunks__/{useDialog-h-MPfyGr.mjs → useDialog-Bxep5NaV.mjs} +2 -2
- package/__chunks__/{useDialog-wy_ru95P.js → useDialog-DJ-g6m8Y.js} +2 -2
- package/__chunks__/{useEdgeInterceptors-ClXj8z7M.js → useEdgeInterceptors--Trr_tJl.js} +5 -5
- package/__chunks__/{useEdgeInterceptors-CJs5WRkG.mjs → useEdgeInterceptors-BougedeY.mjs} +5 -5
- package/__chunks__/{useFocus-B4oRb1dU.js → useFocus-l6ZlVMHW.js} +2 -2
- package/__chunks__/{useFocus-BJ7JikEx.mjs → useFocus-lnK5BCt2.mjs} +2 -2
- package/__chunks__/{useFocusRing-YOWeCHgO.mjs → useFocusRing-KIEn23AD.mjs} +3 -3
- package/__chunks__/{useFocusRing-DFRFvht_.js → useFocusRing-f5StfjhA.js} +3 -3
- package/__chunks__/{useFocusVisible-ng1Hn25t.mjs → useFocusVisible-Bb3k4_O_.mjs} +1 -1
- package/__chunks__/{useFocusVisible-PBQuklI8.js → useFocusVisible-CiIrKjuz.js} +1 -1
- package/__chunks__/{useFocusWithin-B-vQAW9V.mjs → useFocusWithin-BGNdxo9d.mjs} +1 -1
- package/__chunks__/{useFocusWithin-C1ioGWec.js → useFocusWithin-C-45XiL1.js} +1 -1
- package/__chunks__/{useFocusable-8kJcp2yc.js → useFocusable-BQyiwtXU.js} +7 -3
- package/__chunks__/{useFocusable-CNor_Zjt.mjs → useFocusable-DxcU91xN.mjs} +7 -3
- package/__chunks__/{useFormValidation-DYz5WFze.js → useFormValidation-BeqiYVJN.js} +2 -2
- package/__chunks__/{useFormValidation-B3euLzzR.mjs → useFormValidation-CCe1AoIX.mjs} +3 -3
- package/__chunks__/{useHasTabbableChild-Cs10TUUE.js → useHasTabbableChild-CepF5tQS.js} +1 -1
- package/__chunks__/{useHasTabbableChild-BKgmY6ej.mjs → useHasTabbableChild-DOO1szWv.mjs} +1 -1
- package/__chunks__/{useHighlightSelectionDescription-Cebr-N8X.mjs → useHighlightSelectionDescription-B_YjQEPD.mjs} +2 -2
- package/__chunks__/{useHighlightSelectionDescription-CT5XKTz0.js → useHighlightSelectionDescription-nSfKxNPA.js} +2 -2
- package/__chunks__/{useLink-xdTgcuUM.mjs → useLink-BGK9UEQW.mjs} +2 -2
- package/__chunks__/{useLink-DSnaSTQf.js → useLink-CQhl3ZGL.js} +2 -2
- package/__chunks__/{useListBoxSection-BsSdeGKp.mjs → useListBoxSection-Dl15OiHe.mjs} +10 -8
- package/__chunks__/{useListBoxSection-BlFRlBZy.js → useListBoxSection-TdoNdwIM.js} +10 -8
- package/__chunks__/{useMenuTrigger-D4pQ727R.mjs → useMenuTrigger-DDKy3dcp.mjs} +2 -2
- package/__chunks__/{useMenuTrigger-qbIPy-fg.js → useMenuTrigger-DhSBxWW5.js} +2 -2
- package/__chunks__/{useMenuTriggerState-Cf_X36NC.mjs → useMenuTriggerState-BJJ3WdLH.mjs} +1 -1
- package/__chunks__/{useMenuTriggerState-Dai3rheB.js → useMenuTriggerState-DTZmPbSP.js} +1 -1
- package/__chunks__/{useModalOverlay-CkOujl0G.mjs → useModalOverlay-BeCxNyVY.mjs} +2 -2
- package/__chunks__/{useModalOverlay-BljLSPJ0.js → useModalOverlay-gSHY_FAb.js} +2 -2
- package/__chunks__/{useOverlayPosition-dua8TTSS.mjs → useOverlayPosition-CTTQ0gZN.mjs} +2 -2
- package/__chunks__/{useOverlayPosition-CMvGmqVL.js → useOverlayPosition-DJGEWKwM.js} +2 -2
- package/__chunks__/{useOverlayTrigger-BS8c6XEz.mjs → useOverlayTrigger-BvP35sYf.mjs} +1 -1
- package/__chunks__/{useOverlayTrigger-Dp7RXQ9B.js → useOverlayTrigger-CiUR_pLO.js} +1 -1
- package/__chunks__/{usePress-Db4pSZfY.mjs → usePress-CqfuY_T7.mjs} +14 -13
- package/__chunks__/{usePress-DNETV97g.js → usePress-DTGD4Sub.js} +14 -13
- package/__chunks__/{useSelectableItem-DpEX9QBc.js → useSelectableItem-BEkjpB_K.js} +101 -24
- package/__chunks__/{useSelectableItem-B8l2VAQ8.mjs → useSelectableItem-DeFiKyU1.mjs} +102 -25
- package/__chunks__/{useSelectableList-DsUuWr0P.mjs → useSelectableList-DPJUwWwV.mjs} +1 -1
- package/__chunks__/{useSelectableList-CzTJAukw.js → useSelectableList-Dk3TxzYJ.js} +1 -1
- package/__chunks__/{useTextField-Dd-YTxI4.mjs → useTextField-CspDdKaL.mjs} +6 -3
- package/__chunks__/{useTextField-CErFc3WZ.js → useTextField-DM-ZTn9j.js} +6 -3
- package/__chunks__/{useToggle-BDx-p-Zv.mjs → useToggle-CbrJW7jr.mjs} +2 -2
- package/__chunks__/{useToggle-BfpHeO2F.js → useToggle-Cu5EqIJD.js} +2 -2
- package/__chunks__/{useTriggerWidth-CAYuGPNq.mjs → useTriggerWidth-74VNM0k9.mjs} +2 -2
- package/__chunks__/{utilities-DpKIaDkW.mjs → utilities-CczOI9Hn.mjs} +12 -12
- package/__chunks__/{utilities-BDABIMDb.js → utilities-DIZYscJV.js} +4 -4
- package/__chunks__/{utils-Dt6xdGol.mjs → utils-BIfsWYLR.mjs} +5 -57
- package/__chunks__/{utils-eHk7b-OB.js → utils-BlKqJM2_.js} +0 -52
- package/package.json +5 -5
- package/style.css +1062 -1056
- package/utilities/useScrollbar.js +1 -1
- package/utilities/useScrollbar.mjs +1 -1
|
@@ -29,38 +29,39 @@ var __objRest = (source, exclude) => {
|
|
|
29
29
|
}
|
|
30
30
|
return target;
|
|
31
31
|
};
|
|
32
|
-
import React__default, { useState, useMemo, useRef, useEffect, cloneElement, useContext, useCallback, forwardRef
|
|
33
|
-
import { d as $f39a9eba43920ace$export$8dc98ba7eadeaa56, c as $f39a9eba43920ace$export$86427a43e3e48ebb, a as $d2b4bc8c273e7be6$export$24d547caef80ccd1, b as $d2b4bc8c273e7be6$export$353f5b6fc5456de1 } from "./Button-
|
|
34
|
-
import { $ as $64fa3d84918910a7$export$29f1550f4b0d4415, a as $64fa3d84918910a7$export$4d86445c2cf5e3,
|
|
32
|
+
import React__default, { useState, useMemo, useRef, useEffect, cloneElement, useContext, createContext, useCallback, forwardRef } from "react";
|
|
33
|
+
import { d as $f39a9eba43920ace$export$8dc98ba7eadeaa56, c as $f39a9eba43920ace$export$86427a43e3e48ebb, a as $d2b4bc8c273e7be6$export$24d547caef80ccd1, b as $d2b4bc8c273e7be6$export$353f5b6fc5456de1 } from "./Button-DHEZ4A2s.mjs";
|
|
34
|
+
import { $ as $64fa3d84918910a7$export$29f1550f4b0d4415, a as $64fa3d84918910a7$export$4d86445c2cf5e3, b as $64fa3d84918910a7$export$2881499e37b75b9a, e as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8 } from "./utils-BIfsWYLR.mjs";
|
|
35
35
|
import { createPortal } from "react-dom";
|
|
36
36
|
import { c as $bdb11010cef70236$export$f680877a34711e37, $ as $3ef42575df84b30b$export$9d1611c77c2fe928, b as $bdb11010cef70236$export$b4cc09c592e8fdb8, f as $ff5963eb1fccf552$export$e08e3b67e392101e, d as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, e as $b5e257d569688ac6$export$535bd6ca7f90a273 } from "./mergeProps-DSi85raC.mjs";
|
|
37
37
|
import { s as shimExports } from "./index-DCSYt1ke.mjs";
|
|
38
|
+
import { $ as $5dc95899b306f630$export$c9058316764c140e } from "./mergeRefs-CCV6itCY.mjs";
|
|
38
39
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-EDDcM64A.mjs";
|
|
39
40
|
import { $ as $df56164dff5785e2$export$4338b53315abf666 } from "./useObjectRef-wU82Pkgx.mjs";
|
|
40
|
-
import { $ as $293f70390ea03370$export$497855f14858aa34, b as $c132121280ec012d$export$50eacbbf140a3141, a as $af383d3bef1cfdc9$export$c3f9f39876e4bc7 } from "./useListBoxSection-BsSdeGKp.mjs";
|
|
41
|
-
import { $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "./useHover-BOYR4wqI.mjs";
|
|
42
|
-
import { $ as $e72dd72e1c76a225$export$2f645645f7bca764 } from "./useListState-AFrlkW73.mjs";
|
|
43
41
|
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-BZCcafjG.mjs";
|
|
44
42
|
import { $ as $325a3faab7a68acd$export$a16aca283550c30d } from "./useCollator-B-keb3wA.mjs";
|
|
45
|
-
import { $ as $982254629710d113$export$b95089534ab7c1fd, b as $2a25aae57d74318e$export$a05409b8bb224a5a } from "./useSelectableList-
|
|
46
|
-
import { $ as $
|
|
47
|
-
import { $ as $
|
|
43
|
+
import { $ as $982254629710d113$export$b95089534ab7c1fd, b as $2a25aae57d74318e$export$a05409b8bb224a5a } from "./useSelectableList-DPJUwWwV.mjs";
|
|
44
|
+
import { b as $c132121280ec012d$export$50eacbbf140a3141, a as $af383d3bef1cfdc9$export$c3f9f39876e4bc7, $ as $293f70390ea03370$export$497855f14858aa34 } from "./useListBoxSection-Dl15OiHe.mjs";
|
|
45
|
+
import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "./useFocusRing-KIEn23AD.mjs";
|
|
46
|
+
import { $ as $9bf71ea28793e738$export$2d6ec8fc375ceafa, c as $9bf71ea28793e738$export$20e40289641fbbb6 } from "./FocusScope-CUJV-jWH.mjs";
|
|
47
|
+
import { $ as $e72dd72e1c76a225$export$2f645645f7bca764 } from "./useListState-AFrlkW73.mjs";
|
|
48
|
+
import { $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "./useHover-BOYR4wqI.mjs";
|
|
48
49
|
import { $ as $2baaea4c71418dea$export$294aa081a6c6f55d } from "./useField-B6VplZ_n.mjs";
|
|
49
|
-
import { $ as $9ab94262bd0047c7$export$420e68273165f4ec } from "./useFocusWithin-
|
|
50
|
-
import { $ as $5b9b5b5723db6ae1$export$be42ebdab07ae4c2, a as $92599c3fd427b763$export$137e594ef3218a10 } from "./useHighlightSelectionDescription-
|
|
51
|
-
import { $ as $83013635b024ae3d$export$eac1895992b9f3d6 } from "./useHasTabbableChild-
|
|
52
|
-
import { g as $ea8dcbcb9ea1b556$export$bdc77b0c0a3a85d6 } from "./usePress-
|
|
53
|
-
import { b as $2f04cbc44ee30ce0$export$c826860796309d1b, $ as $ef06256079686ba0$export$f8aeda7b10753fa1 } from "./scrollIntoView-
|
|
50
|
+
import { $ as $9ab94262bd0047c7$export$420e68273165f4ec } from "./useFocusWithin-BGNdxo9d.mjs";
|
|
51
|
+
import { $ as $5b9b5b5723db6ae1$export$be42ebdab07ae4c2, a as $92599c3fd427b763$export$137e594ef3218a10 } from "./useHighlightSelectionDescription-B_YjQEPD.mjs";
|
|
52
|
+
import { $ as $83013635b024ae3d$export$eac1895992b9f3d6 } from "./useHasTabbableChild-DOO1szWv.mjs";
|
|
53
|
+
import { g as $ea8dcbcb9ea1b556$export$bdc77b0c0a3a85d6 } from "./usePress-CqfuY_T7.mjs";
|
|
54
|
+
import { b as $2f04cbc44ee30ce0$export$c826860796309d1b, $ as $ef06256079686ba0$export$f8aeda7b10753fa1 } from "./scrollIntoView-wURtlgJt.mjs";
|
|
54
55
|
import { $ as $62d8ded9296f3872$export$cfa2225e87938781 } from "./getScrollParent-B5CCP-yO.mjs";
|
|
55
|
-
import { $ as $6a99195332edec8b$export$80f3e147d781571c } from "./focusSafely-
|
|
56
|
+
import { $ as $6a99195332edec8b$export$80f3e147d781571c } from "./focusSafely-CCOEuEpK.mjs";
|
|
56
57
|
import { d as $c5a24bc478652b5f$export$7475b2c64539e4cf } from "./SelectionManager-DCO_d3m1.mjs";
|
|
57
|
-
import { b as $507fabe10e71c6fb$export$b9b3dfddab17db27, e as $507fabe10e71c6fb$export$98e20ec92f614cfe } from "./useFocusVisible-
|
|
58
|
-
import { $ as $880e95eb8b93ba9a$export$ecf600387e221c37 } from "./useSelectableItem-
|
|
58
|
+
import { b as $507fabe10e71c6fb$export$b9b3dfddab17db27, e as $507fabe10e71c6fb$export$98e20ec92f614cfe } from "./useFocusVisible-Bb3k4_O_.mjs";
|
|
59
|
+
import { $ as $880e95eb8b93ba9a$export$ecf600387e221c37 } from "./useSelectableItem-DeFiKyU1.mjs";
|
|
59
60
|
import { $ as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "./useLocalizedStringFormatter-BHXy3Wtu.mjs";
|
|
60
61
|
import { C as Close } from "./Close-Cq6Q6MN6.mjs";
|
|
61
|
-
import { I as Icon } from "./Icon-
|
|
62
|
-
import { T as Text } from "./Text-
|
|
63
|
-
import {
|
|
62
|
+
import { I as Icon } from "./Icon-CcUj4MVY.mjs";
|
|
63
|
+
import { T as Text } from "./Text-BAiVIBZd.mjs";
|
|
64
|
+
import { getComponentToken, getResponsiveDesignToken } from "../utilities/css.mjs";
|
|
64
65
|
function $0d86e9c8f07f9a7b$export$762f73dccccd255d(options) {
|
|
65
66
|
let { initialItems = [], initialSelectedKeys, getKey = (item) => {
|
|
66
67
|
var _item_id;
|
|
@@ -780,8 +781,10 @@ function $fc6126c82a4601f1$export$3f568fff7dff2f03(props, state, ref) {
|
|
|
780
781
|
}, state, ref), { rowProps, gridCellProps } = _a, states = __objRest(_a, ["rowProps", "gridCellProps"]);
|
|
781
782
|
delete rowProps.onKeyDownCapture;
|
|
782
783
|
let _b = states, { descriptionProps: _ } = _b, stateWithoutDescription = __objRest(_b, ["descriptionProps"]);
|
|
784
|
+
let isDisabled = state.disabledKeys.has(item.key) || item.props.isDisabled;
|
|
783
785
|
let onKeyDown = (e) => {
|
|
784
786
|
if (e.key === "Delete" || e.key === "Backspace") {
|
|
787
|
+
if (isDisabled) return;
|
|
785
788
|
e.preventDefault();
|
|
786
789
|
if (state.selectionManager.isSelected(item.key)) onRemove === null || onRemove === void 0 ? void 0 : onRemove(new Set(state.selectionManager.selectedKeys));
|
|
787
790
|
else onRemove === null || onRemove === void 0 ? void 0 : onRemove(/* @__PURE__ */ new Set([
|
|
@@ -793,14 +796,17 @@ function $fc6126c82a4601f1$export$3f568fff7dff2f03(props, state, ref) {
|
|
|
793
796
|
if (modality === "virtual" && typeof window !== "undefined" && "ontouchstart" in window) modality = "pointer";
|
|
794
797
|
let description = onRemove && (modality === "keyboard" || modality === "virtual") ? stringFormatter.format("removeDescription") : "";
|
|
795
798
|
let descProps = $ef06256079686ba0$export$f8aeda7b10753fa1(description);
|
|
796
|
-
let
|
|
799
|
+
let isItemFocused = item.key === state.selectionManager.focusedKey;
|
|
800
|
+
let isFocused = state.selectionManager.focusedKey != null;
|
|
801
|
+
let tabIndex = -1;
|
|
802
|
+
if (!isDisabled && (isItemFocused || !isFocused)) tabIndex = 0;
|
|
797
803
|
let domProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(item.props);
|
|
798
804
|
let linkProps = $ea8dcbcb9ea1b556$export$bdc77b0c0a3a85d6(item.props);
|
|
799
805
|
return __spreadProps(__spreadValues({
|
|
800
806
|
removeButtonProps: {
|
|
801
807
|
"aria-label": stringFormatter.format("removeButtonLabel"),
|
|
802
808
|
"aria-labelledby": `${buttonId} ${rowProps.id}`,
|
|
803
|
-
isDisabled
|
|
809
|
+
isDisabled,
|
|
804
810
|
id: buttonId,
|
|
805
811
|
onPress: () => onRemove ? onRemove(/* @__PURE__ */ new Set([
|
|
806
812
|
item.key
|
|
@@ -808,7 +814,7 @@ function $fc6126c82a4601f1$export$3f568fff7dff2f03(props, state, ref) {
|
|
|
808
814
|
excludeFromTabOrder: true
|
|
809
815
|
},
|
|
810
816
|
rowProps: $3ef42575df84b30b$export$9d1611c77c2fe928(rowProps, domProps, linkProps, {
|
|
811
|
-
tabIndex
|
|
817
|
+
tabIndex,
|
|
812
818
|
onKeyDown: onRemove ? onKeyDown : void 0,
|
|
813
819
|
"aria-describedby": descProps["aria-describedby"]
|
|
814
820
|
}),
|
|
@@ -947,6 +953,78 @@ class $23b9f4fcf0fe224b$export$408d25a4e12db025 {
|
|
|
947
953
|
this.lastKey = lastKey;
|
|
948
954
|
this.frozen = !isSSR;
|
|
949
955
|
}
|
|
956
|
+
// TODO: this is pretty specific to menu, will need to check if it is generic enough
|
|
957
|
+
// Will need to handle varying levels I assume but will revisit after I get searchable menu working for base menu
|
|
958
|
+
// TODO: an alternative is to simply walk the collection and add all item nodes that match the filter and any sections/separators we encounter
|
|
959
|
+
// to an array, then walk that new array and fix all the next/Prev keys while adding them to the new collection
|
|
960
|
+
filter(filterFn) {
|
|
961
|
+
let newCollection = new $23b9f4fcf0fe224b$export$408d25a4e12db025();
|
|
962
|
+
let lastNode = null;
|
|
963
|
+
for (let node of this) {
|
|
964
|
+
if (node.type === "section" && node.hasChildNodes) {
|
|
965
|
+
let clonedSection = node.clone();
|
|
966
|
+
let lastChildInSection = null;
|
|
967
|
+
for (let child of this.getChildren(node.key)) if (filterFn(child.textValue) || child.type === "header") {
|
|
968
|
+
let clonedChild = child.clone();
|
|
969
|
+
if (lastChildInSection == null) clonedSection.firstChildKey = clonedChild.key;
|
|
970
|
+
if (newCollection.firstKey == null) newCollection.firstKey = clonedSection.key;
|
|
971
|
+
if (lastChildInSection && lastChildInSection.parentKey === clonedChild.parentKey) {
|
|
972
|
+
lastChildInSection.nextKey = clonedChild.key;
|
|
973
|
+
clonedChild.prevKey = lastChildInSection.key;
|
|
974
|
+
} else clonedChild.prevKey = null;
|
|
975
|
+
clonedChild.nextKey = null;
|
|
976
|
+
newCollection.addNode(clonedChild);
|
|
977
|
+
lastChildInSection = clonedChild;
|
|
978
|
+
}
|
|
979
|
+
if (lastChildInSection) {
|
|
980
|
+
if (lastChildInSection.type !== "header") {
|
|
981
|
+
clonedSection.lastChildKey = lastChildInSection.key;
|
|
982
|
+
if (lastNode == null) clonedSection.prevKey = null;
|
|
983
|
+
else if (lastNode.type === "section" || lastNode.type === "separator") {
|
|
984
|
+
lastNode.nextKey = clonedSection.key;
|
|
985
|
+
clonedSection.prevKey = lastNode.key;
|
|
986
|
+
}
|
|
987
|
+
clonedSection.nextKey = null;
|
|
988
|
+
lastNode = clonedSection;
|
|
989
|
+
newCollection.addNode(clonedSection);
|
|
990
|
+
} else {
|
|
991
|
+
if (newCollection.firstKey === clonedSection.key) newCollection.firstKey = null;
|
|
992
|
+
newCollection.removeNode(lastChildInSection.key);
|
|
993
|
+
}
|
|
994
|
+
}
|
|
995
|
+
} else if (node.type === "separator") {
|
|
996
|
+
let clonedSeparator = node.clone();
|
|
997
|
+
clonedSeparator.nextKey = null;
|
|
998
|
+
if ((lastNode === null || lastNode === void 0 ? void 0 : lastNode.type) === "section") {
|
|
999
|
+
lastNode.nextKey = clonedSeparator.key;
|
|
1000
|
+
clonedSeparator.prevKey = lastNode.key;
|
|
1001
|
+
lastNode = clonedSeparator;
|
|
1002
|
+
newCollection.addNode(clonedSeparator);
|
|
1003
|
+
}
|
|
1004
|
+
} else if (filterFn(node.textValue)) {
|
|
1005
|
+
let clonedNode = node.clone();
|
|
1006
|
+
if (newCollection.firstKey == null) newCollection.firstKey = clonedNode.key;
|
|
1007
|
+
if (lastNode != null && lastNode.type !== "section" && lastNode.type !== "separator" && lastNode.parentKey === clonedNode.parentKey) {
|
|
1008
|
+
lastNode.nextKey = clonedNode.key;
|
|
1009
|
+
clonedNode.prevKey = lastNode.key;
|
|
1010
|
+
} else clonedNode.prevKey = null;
|
|
1011
|
+
clonedNode.nextKey = null;
|
|
1012
|
+
newCollection.addNode(clonedNode);
|
|
1013
|
+
lastNode = clonedNode;
|
|
1014
|
+
}
|
|
1015
|
+
}
|
|
1016
|
+
if ((lastNode === null || lastNode === void 0 ? void 0 : lastNode.type) === "separator" && lastNode.nextKey === null) {
|
|
1017
|
+
let lastSection;
|
|
1018
|
+
if (lastNode.prevKey != null) {
|
|
1019
|
+
lastSection = newCollection.getItem(lastNode.prevKey);
|
|
1020
|
+
lastSection.nextKey = null;
|
|
1021
|
+
}
|
|
1022
|
+
newCollection.removeNode(lastNode.key);
|
|
1023
|
+
lastNode = lastSection;
|
|
1024
|
+
}
|
|
1025
|
+
newCollection.lastKey = (lastNode === null || lastNode === void 0 ? void 0 : lastNode.key) || null;
|
|
1026
|
+
return newCollection;
|
|
1027
|
+
}
|
|
950
1028
|
constructor() {
|
|
951
1029
|
this.keyMap = /* @__PURE__ */ new Map();
|
|
952
1030
|
this.firstKey = null;
|
|
@@ -1413,6 +1491,18 @@ function $e1995378a142960e$var$CollectionRoot({ children }) {
|
|
|
1413
1491
|
value: doc
|
|
1414
1492
|
}, wrappedChildren) : /* @__PURE__ */ createPortal(wrappedChildren, doc);
|
|
1415
1493
|
}
|
|
1494
|
+
const $01b77f81d0f07f68$export$75b6ee27786ba447 = /* @__PURE__ */ createContext({});
|
|
1495
|
+
const $01b77f81d0f07f68$export$b04be29aa201d4f5 = /* @__PURE__ */ $f39a9eba43920ace$export$86427a43e3e48ebb(function Label(props, ref) {
|
|
1496
|
+
[props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $01b77f81d0f07f68$export$75b6ee27786ba447);
|
|
1497
|
+
let _a = props, { elementType: ElementType = "label" } = _a, labelProps = __objRest(_a, ["elementType"]);
|
|
1498
|
+
return /* @__PURE__ */ React__default.createElement(ElementType, __spreadProps(__spreadValues({
|
|
1499
|
+
className: "react-aria-Label"
|
|
1500
|
+
}, labelProps), {
|
|
1501
|
+
ref
|
|
1502
|
+
}));
|
|
1503
|
+
});
|
|
1504
|
+
const $514c0188e459b4c0$export$9afb8bc826b033ea = /* @__PURE__ */ createContext({});
|
|
1505
|
+
const $d2f53cda644affe3$export$65d2a03b8800d6e3 = /* @__PURE__ */ createContext(null);
|
|
1416
1506
|
const $7135fc7d473fd974$export$d40e14dec8b060a8 = /* @__PURE__ */ createContext(null);
|
|
1417
1507
|
const $7135fc7d473fd974$export$a164736487e3f0ae = {
|
|
1418
1508
|
CollectionRoot({ collection, renderDropIndicator }) {
|
|
@@ -1454,25 +1544,12 @@ function $7135fc7d473fd974$export$90e00781bc59d8f9(focusedKey) {
|
|
|
1454
1544
|
focusedKey
|
|
1455
1545
|
]);
|
|
1456
1546
|
}
|
|
1457
|
-
const $01b77f81d0f07f68$export$75b6ee27786ba447 = /* @__PURE__ */ createContext({});
|
|
1458
|
-
function $01b77f81d0f07f68$var$Label(props, ref) {
|
|
1459
|
-
[props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $01b77f81d0f07f68$export$75b6ee27786ba447);
|
|
1460
|
-
let _a = props, { elementType: ElementType = "label" } = _a, labelProps = __objRest(_a, ["elementType"]);
|
|
1461
|
-
return /* @__PURE__ */ React__default.createElement(ElementType, __spreadProps(__spreadValues({
|
|
1462
|
-
className: "react-aria-Label"
|
|
1463
|
-
}, labelProps), {
|
|
1464
|
-
ref
|
|
1465
|
-
}));
|
|
1466
|
-
}
|
|
1467
|
-
const $01b77f81d0f07f68$export$b04be29aa201d4f5 = /* @__PURE__ */ $f39a9eba43920ace$export$86427a43e3e48ebb($01b77f81d0f07f68$var$Label);
|
|
1468
|
-
const $514c0188e459b4c0$export$9afb8bc826b033ea = /* @__PURE__ */ createContext({});
|
|
1469
1547
|
const $612b8eb6cb90e02d$export$d188a835a7bc5783 = /* @__PURE__ */ createContext({});
|
|
1470
1548
|
const $612b8eb6cb90e02d$export$f55761759794cf55 = /* @__PURE__ */ createContext(null);
|
|
1471
|
-
|
|
1549
|
+
const $612b8eb6cb90e02d$export$62ed72bc21f6b8a6 = /* @__PURE__ */ forwardRef(function DropIndicator(props, ref) {
|
|
1472
1550
|
let { render } = useContext($612b8eb6cb90e02d$export$f55761759794cf55);
|
|
1473
1551
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, render(props, ref));
|
|
1474
|
-
}
|
|
1475
|
-
const $612b8eb6cb90e02d$export$62ed72bc21f6b8a6 = /* @__PURE__ */ forwardRef($612b8eb6cb90e02d$var$DropIndicator);
|
|
1552
|
+
});
|
|
1476
1553
|
function $612b8eb6cb90e02d$export$971707d8a129a1f7(dragAndDropHooks, dropState) {
|
|
1477
1554
|
var _dragAndDropHooks_isVirtualDragging;
|
|
1478
1555
|
let renderDropIndicator = dragAndDropHooks === null || dragAndDropHooks === void 0 ? void 0 : dragAndDropHooks.renderDropIndicator;
|
|
@@ -1512,7 +1589,7 @@ const $72a5793c14baf454$export$e0e4026c12a8bdbb = /* @__PURE__ */ createContext(
|
|
|
1512
1589
|
const $431f98aba6844401$export$6615d83f6de245ce = /* @__PURE__ */ createContext({});
|
|
1513
1590
|
const $eed445e0843c11d0$export$7ff8f37d2d81a48d = /* @__PURE__ */ createContext(null);
|
|
1514
1591
|
const $eed445e0843c11d0$export$7c5906fe4f1f2af2 = /* @__PURE__ */ createContext(null);
|
|
1515
|
-
|
|
1592
|
+
const $eed445e0843c11d0$export$41f133550aa26f48 = /* @__PURE__ */ forwardRef(function ListBox(props, ref) {
|
|
1516
1593
|
[props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $eed445e0843c11d0$export$7ff8f37d2d81a48d);
|
|
1517
1594
|
let state = useContext($eed445e0843c11d0$export$7c5906fe4f1f2af2);
|
|
1518
1595
|
if (state) return /* @__PURE__ */ React__default.createElement($eed445e0843c11d0$var$ListBoxInner, {
|
|
@@ -1527,7 +1604,7 @@ function $eed445e0843c11d0$var$ListBox(props, ref) {
|
|
|
1527
1604
|
listBoxRef: ref,
|
|
1528
1605
|
collection
|
|
1529
1606
|
}));
|
|
1530
|
-
}
|
|
1607
|
+
});
|
|
1531
1608
|
function $eed445e0843c11d0$var$StandaloneListBox({ props, listBoxRef, collection }) {
|
|
1532
1609
|
props = __spreadProps(__spreadValues({}, props), {
|
|
1533
1610
|
collection,
|
|
@@ -1535,16 +1612,25 @@ function $eed445e0843c11d0$var$StandaloneListBox({ props, listBoxRef, collection
|
|
|
1535
1612
|
items: null
|
|
1536
1613
|
});
|
|
1537
1614
|
let { layoutDelegate } = useContext($7135fc7d473fd974$export$4feb769f8ddf26c5);
|
|
1615
|
+
let { filterFn, collectionProps, collectionRef } = useContext($d2f53cda644affe3$export$65d2a03b8800d6e3) || {};
|
|
1616
|
+
listBoxRef = $df56164dff5785e2$export$4338b53315abf666(useMemo(() => $5dc95899b306f630$export$c9058316764c140e(listBoxRef, collectionRef !== void 0 ? collectionRef : null), [
|
|
1617
|
+
collectionRef,
|
|
1618
|
+
listBoxRef
|
|
1619
|
+
]));
|
|
1620
|
+
let filteredCollection = useMemo(() => filterFn ? collection.filter(filterFn) : collection, [
|
|
1621
|
+
collection,
|
|
1622
|
+
filterFn
|
|
1623
|
+
]);
|
|
1538
1624
|
let state = $e72dd72e1c76a225$export$2f645645f7bca764(__spreadProps(__spreadValues({}, props), {
|
|
1625
|
+
collection: filteredCollection,
|
|
1539
1626
|
layoutDelegate
|
|
1540
1627
|
}));
|
|
1541
1628
|
return /* @__PURE__ */ React__default.createElement($eed445e0843c11d0$var$ListBoxInner, {
|
|
1542
1629
|
state,
|
|
1543
|
-
props,
|
|
1630
|
+
props: __spreadValues(__spreadValues({}, props), collectionProps),
|
|
1544
1631
|
listBoxRef
|
|
1545
1632
|
});
|
|
1546
1633
|
}
|
|
1547
|
-
const $eed445e0843c11d0$export$41f133550aa26f48 = /* @__PURE__ */ forwardRef($eed445e0843c11d0$var$ListBox);
|
|
1548
1634
|
function $eed445e0843c11d0$var$ListBoxInner({ state, props, listBoxRef }) {
|
|
1549
1635
|
let { dragAndDropHooks, layout = "stack", orientation = "vertical" } = props;
|
|
1550
1636
|
let { collection, selectionManager } = state;
|
|
@@ -1696,7 +1782,7 @@ function $eed445e0843c11d0$var$ListBoxInner({ state, props, listBoxRef }) {
|
|
|
1696
1782
|
$7135fc7d473fd974$export$d40e14dec8b060a8,
|
|
1697
1783
|
{
|
|
1698
1784
|
name: "ListBoxSection",
|
|
1699
|
-
render: $eed445e0843c11d0$var$
|
|
1785
|
+
render: $eed445e0843c11d0$var$ListBoxSectionInner
|
|
1700
1786
|
}
|
|
1701
1787
|
]
|
|
1702
1788
|
]
|
|
@@ -1707,7 +1793,7 @@ function $eed445e0843c11d0$var$ListBoxInner({ state, props, listBoxRef }) {
|
|
|
1707
1793
|
renderDropIndicator: $612b8eb6cb90e02d$export$971707d8a129a1f7(dragAndDropHooks, dropState)
|
|
1708
1794
|
})), emptyState, dragPreview));
|
|
1709
1795
|
}
|
|
1710
|
-
function $eed445e0843c11d0$var$
|
|
1796
|
+
function $eed445e0843c11d0$var$ListBoxSectionInner(props, ref, section, className = "react-aria-ListBoxSection") {
|
|
1711
1797
|
let state = useContext($eed445e0843c11d0$export$7c5906fe4f1f2af2);
|
|
1712
1798
|
let { dragAndDropHooks, dropState } = useContext($612b8eb6cb90e02d$export$d188a835a7bc5783);
|
|
1713
1799
|
let { CollectionBranch } = useContext($7135fc7d473fd974$export$4feb769f8ddf26c5);
|
|
@@ -1836,7 +1922,7 @@ function $eed445e0843c11d0$var$ListBoxDropIndicator(props, ref) {
|
|
|
1836
1922
|
const $eed445e0843c11d0$var$ListBoxDropIndicatorForwardRef = /* @__PURE__ */ forwardRef($eed445e0843c11d0$var$ListBoxDropIndicator);
|
|
1837
1923
|
const $eaf9e70818b436db$export$5b07b5dd2cbd96e3 = /* @__PURE__ */ createContext(null);
|
|
1838
1924
|
const $eaf9e70818b436db$export$e755ce3685dd0ca9 = /* @__PURE__ */ createContext(null);
|
|
1839
|
-
|
|
1925
|
+
const $eaf9e70818b436db$export$67ea30858aaf75e3 = /* @__PURE__ */ forwardRef(function TagGroup(props, ref) {
|
|
1840
1926
|
[props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $eaf9e70818b436db$export$5b07b5dd2cbd96e3);
|
|
1841
1927
|
return /* @__PURE__ */ React__default.createElement($e1995378a142960e$export$bf788dd355e3a401, {
|
|
1842
1928
|
content: props.children
|
|
@@ -1845,7 +1931,7 @@ function $eaf9e70818b436db$var$TagGroup(props, ref) {
|
|
|
1845
1931
|
forwardedRef: ref,
|
|
1846
1932
|
collection
|
|
1847
1933
|
}));
|
|
1848
|
-
}
|
|
1934
|
+
});
|
|
1849
1935
|
function $eaf9e70818b436db$var$TagGroupInner({ props, forwardedRef: ref, collection }) {
|
|
1850
1936
|
let tagListRef = useRef(null);
|
|
1851
1937
|
let [labelRef, label] = $64fa3d84918910a7$export$9d4c57ee4c6ffdd8();
|
|
@@ -1898,14 +1984,13 @@ function $eaf9e70818b436db$var$TagGroupInner({ props, forwardedRef: ref, collect
|
|
|
1898
1984
|
]
|
|
1899
1985
|
}, props.children));
|
|
1900
1986
|
}
|
|
1901
|
-
const $eaf9e70818b436db$export$
|
|
1902
|
-
function $eaf9e70818b436db$var$TagList(props, ref) {
|
|
1987
|
+
const $eaf9e70818b436db$export$f9fef0f55402315b = /* @__PURE__ */ forwardRef(function TagList(props, ref) {
|
|
1903
1988
|
let state = useContext($eed445e0843c11d0$export$7c5906fe4f1f2af2);
|
|
1904
1989
|
return state ? /* @__PURE__ */ React__default.createElement($eaf9e70818b436db$var$TagListInner, {
|
|
1905
1990
|
props,
|
|
1906
1991
|
forwardedRef: ref
|
|
1907
1992
|
}) : /* @__PURE__ */ React__default.createElement($e1995378a142960e$export$fb8073518f34e6ec, props);
|
|
1908
|
-
}
|
|
1993
|
+
});
|
|
1909
1994
|
function $eaf9e70818b436db$var$TagListInner({ props, forwardedRef }) {
|
|
1910
1995
|
let state = useContext($eed445e0843c11d0$export$7c5906fe4f1f2af2);
|
|
1911
1996
|
let { CollectionRoot } = useContext($7135fc7d473fd974$export$4feb769f8ddf26c5);
|
|
@@ -1936,7 +2021,6 @@ function $eaf9e70818b436db$var$TagListInner({ props, forwardedRef }) {
|
|
|
1936
2021
|
persistedKeys
|
|
1937
2022
|
}));
|
|
1938
2023
|
}
|
|
1939
|
-
const $eaf9e70818b436db$export$f9fef0f55402315b = /* @__PURE__ */ forwardRef($eaf9e70818b436db$var$TagList);
|
|
1940
2024
|
const $eaf9e70818b436db$export$3288d34c523a1192 = /* @__PURE__ */ $e1995378a142960e$export$18af5c7a9e9b3664("item", (props, forwardedRef, item) => {
|
|
1941
2025
|
let state = useContext($eed445e0843c11d0$export$7c5906fe4f1f2af2);
|
|
1942
2026
|
let ref = $df56164dff5785e2$export$4338b53315abf666(forwardedRef);
|
|
@@ -2000,9 +2084,9 @@ const $eaf9e70818b436db$export$3288d34c523a1192 = /* @__PURE__ */ $e1995378a1429
|
|
|
2000
2084
|
]
|
|
2001
2085
|
}, renderProps.children)));
|
|
2002
2086
|
});
|
|
2003
|
-
const Pill$1 = "
|
|
2004
|
-
const remove = "
|
|
2005
|
-
const list = "
|
|
2087
|
+
const Pill$1 = "_Pill_hxqth_5";
|
|
2088
|
+
const remove = "_remove_hxqth_14";
|
|
2089
|
+
const list = "_list_hxqth_26";
|
|
2006
2090
|
const styles = {
|
|
2007
2091
|
Pill: Pill$1,
|
|
2008
2092
|
remove,
|