@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
|
@@ -18,17 +18,39 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { useRef, useEffect } from "react";
|
|
21
|
-
import {
|
|
22
|
-
import { $ as $9bf71ea28793e738$export$2d6ec8fc375ceafa } from "./FocusScope-Qg8vUhZ_.mjs";
|
|
23
|
-
import { $ as $6a99195332edec8b$export$80f3e147d781571c } from "./focusSafely-BWGCG3W3.mjs";
|
|
24
|
-
import { $ as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./mergeProps-DSi85raC.mjs";
|
|
21
|
+
import { d as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, $ as $3ef42575df84b30b$export$9d1611c77c2fe928, a as $8ae05eaa5c114e9c$export$7f54fc3180508a52, c as $bdb11010cef70236$export$f680877a34711e37 } from "./mergeProps-DSi85raC.mjs";
|
|
25
22
|
import { a as $7215afc6de606d6b$export$de79e2c695e052f3 } from "./context-EpOG85wC.mjs";
|
|
26
|
-
import { e as $03deb23ff14920c4$export$4eaf04e54aa8eed6, $ as $f6c31cce2adf654f$export$45712eceda6fad21, a as $ea8dcbcb9ea1b556$export$9a302a45f65d0572, f as $ea8dcbcb9ea1b556$export$95185d699e05d4d7 } from "./usePress-
|
|
23
|
+
import { e as $03deb23ff14920c4$export$4eaf04e54aa8eed6, $ as $f6c31cce2adf654f$export$45712eceda6fad21, a as $ea8dcbcb9ea1b556$export$9a302a45f65d0572, f as $ea8dcbcb9ea1b556$export$95185d699e05d4d7 } from "./usePress-CqfuY_T7.mjs";
|
|
27
24
|
import { $ as $e9faafb641e167db$export$90fc3a17d93f704c } from "./useEvent-B0fsKtsf.mjs";
|
|
28
|
-
import { $ as $ef06256079686ba0$export$f8aeda7b10753fa1, a as $2f04cbc44ee30ce0$export$53a0910f038337bd, b as $2f04cbc44ee30ce0$export$c826860796309d1b } from "./scrollIntoView-
|
|
29
|
-
import {
|
|
25
|
+
import { $ as $ef06256079686ba0$export$f8aeda7b10753fa1, a as $2f04cbc44ee30ce0$export$53a0910f038337bd, b as $2f04cbc44ee30ce0$export$c826860796309d1b } from "./scrollIntoView-wURtlgJt.mjs";
|
|
26
|
+
import { flushSync } from "react-dom";
|
|
27
|
+
import { $ as $9bf71ea28793e738$export$2d6ec8fc375ceafa } from "./FocusScope-CUJV-jWH.mjs";
|
|
28
|
+
import { $ as $6a99195332edec8b$export$80f3e147d781571c } from "./focusSafely-CCOEuEpK.mjs";
|
|
29
|
+
import { $ as $507fabe10e71c6fb$export$630ff653c5ada6a9 } from "./useFocusVisible-Bb3k4_O_.mjs";
|
|
30
30
|
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-BZCcafjG.mjs";
|
|
31
|
-
import {
|
|
31
|
+
import { c as $c87311424ea30a05$export$9ac100e40613ea10, h as $c87311424ea30a05$export$e1865c3bedcd822b } from "./isVirtualEvent-B_Z4yzgm.mjs";
|
|
32
|
+
function $ca9b37712f007381$export$72ef708ab07251f1(effect, dependencies) {
|
|
33
|
+
const isInitialMount = useRef(true);
|
|
34
|
+
const lastDeps = useRef(null);
|
|
35
|
+
$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
|
|
36
|
+
isInitialMount.current = true;
|
|
37
|
+
return () => {
|
|
38
|
+
isInitialMount.current = false;
|
|
39
|
+
};
|
|
40
|
+
}, []);
|
|
41
|
+
$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
|
|
42
|
+
if (isInitialMount.current) isInitialMount.current = false;
|
|
43
|
+
else if (!lastDeps.current || dependencies.some((dep, i) => !Object.is(dep, lastDeps[i]))) effect();
|
|
44
|
+
lastDeps.current = dependencies;
|
|
45
|
+
}, dependencies);
|
|
46
|
+
}
|
|
47
|
+
const $5671b20cf9b562b2$export$447a38995de2c711 = "react-aria-clear-focus";
|
|
48
|
+
const $5671b20cf9b562b2$export$831c820ad60f9d12 = "react-aria-focus";
|
|
49
|
+
const $5671b20cf9b562b2$export$9db568f6321ad9dc = "react-aria-update-activedescendant";
|
|
50
|
+
function $21f1aa98acb08317$export$16792effe837dba3(e) {
|
|
51
|
+
if ($c87311424ea30a05$export$9ac100e40613ea10()) return e.metaKey;
|
|
52
|
+
return e.ctrlKey;
|
|
53
|
+
}
|
|
32
54
|
const $8a26561d2877236e$var$DEFAULT_THRESHOLD = 500;
|
|
33
55
|
function $8a26561d2877236e$export$c24ed0104d07eab9(props) {
|
|
34
56
|
let { isDisabled, onLongPressStart, onLongPressEnd, onLongPress, threshold = $8a26561d2877236e$var$DEFAULT_THRESHOLD, accessibilityDescription } = props;
|
|
@@ -83,10 +105,6 @@ function $8a26561d2877236e$export$c24ed0104d07eab9(props) {
|
|
|
83
105
|
function $feb5ffebff200149$export$d3e3bd3e26688c04(e) {
|
|
84
106
|
return $c87311424ea30a05$export$e1865c3bedcd822b() ? e.altKey : e.ctrlKey;
|
|
85
107
|
}
|
|
86
|
-
function $feb5ffebff200149$export$16792effe837dba3(e) {
|
|
87
|
-
if ($c87311424ea30a05$export$9ac100e40613ea10()) return e.metaKey;
|
|
88
|
-
return e.ctrlKey;
|
|
89
|
-
}
|
|
90
108
|
const $fb3050f43d946246$var$TYPEAHEAD_DEBOUNCE_WAIT_MS = 1e3;
|
|
91
109
|
function $fb3050f43d946246$export$e32c88dfddc6e1d8(options) {
|
|
92
110
|
let { keyboardDelegate, selectionManager, onTypeSelect } = options;
|
|
@@ -200,22 +218,24 @@ function $ae20dd8cbca75726$export$d6daf82dcd84e87c(options) {
|
|
|
200
218
|
break;
|
|
201
219
|
case "Home":
|
|
202
220
|
if (delegate.getFirstKey) {
|
|
221
|
+
if (manager.focusedKey === null && e.shiftKey) return;
|
|
203
222
|
e.preventDefault();
|
|
204
|
-
let firstKey = delegate.getFirstKey(manager.focusedKey, $
|
|
223
|
+
let firstKey = delegate.getFirstKey(manager.focusedKey, $21f1aa98acb08317$export$16792effe837dba3(e));
|
|
205
224
|
manager.setFocusedKey(firstKey);
|
|
206
225
|
if (firstKey != null) {
|
|
207
|
-
if ($
|
|
226
|
+
if ($21f1aa98acb08317$export$16792effe837dba3(e) && e.shiftKey && manager.selectionMode === "multiple") manager.extendSelection(firstKey);
|
|
208
227
|
else if (selectOnFocus) manager.replaceSelection(firstKey);
|
|
209
228
|
}
|
|
210
229
|
}
|
|
211
230
|
break;
|
|
212
231
|
case "End":
|
|
213
232
|
if (delegate.getLastKey) {
|
|
233
|
+
if (manager.focusedKey === null && e.shiftKey) return;
|
|
214
234
|
e.preventDefault();
|
|
215
|
-
let lastKey = delegate.getLastKey(manager.focusedKey, $
|
|
235
|
+
let lastKey = delegate.getLastKey(manager.focusedKey, $21f1aa98acb08317$export$16792effe837dba3(e));
|
|
216
236
|
manager.setFocusedKey(lastKey);
|
|
217
237
|
if (lastKey != null) {
|
|
218
|
-
if ($
|
|
238
|
+
if ($21f1aa98acb08317$export$16792effe837dba3(e) && e.shiftKey && manager.selectionMode === "multiple") manager.extendSelection(lastKey);
|
|
219
239
|
else if (selectOnFocus) manager.replaceSelection(lastKey);
|
|
220
240
|
}
|
|
221
241
|
}
|
|
@@ -239,7 +259,7 @@ function $ae20dd8cbca75726$export$d6daf82dcd84e87c(options) {
|
|
|
239
259
|
}
|
|
240
260
|
break;
|
|
241
261
|
case "a":
|
|
242
|
-
if ($
|
|
262
|
+
if ($21f1aa98acb08317$export$16792effe837dba3(e) && manager.selectionMode === "multiple" && disallowSelectAll !== true) {
|
|
243
263
|
e.preventDefault();
|
|
244
264
|
manager.selectAll();
|
|
245
265
|
}
|
|
@@ -319,6 +339,49 @@ function $ae20dd8cbca75726$export$d6daf82dcd84e87c(options) {
|
|
|
319
339
|
let onBlur = (e) => {
|
|
320
340
|
if (!e.currentTarget.contains(e.relatedTarget)) manager.setFocused(false);
|
|
321
341
|
};
|
|
342
|
+
let shouldVirtualFocusFirst = useRef(false);
|
|
343
|
+
$e9faafb641e167db$export$90fc3a17d93f704c(ref, $5671b20cf9b562b2$export$831c820ad60f9d12, !shouldUseVirtualFocus ? void 0 : (e) => {
|
|
344
|
+
let { detail } = e;
|
|
345
|
+
e.stopPropagation();
|
|
346
|
+
manager.setFocused(true);
|
|
347
|
+
if ((detail === null || detail === void 0 ? void 0 : detail.focusStrategy) === "first") shouldVirtualFocusFirst.current = true;
|
|
348
|
+
});
|
|
349
|
+
let updateActiveDescendant = $8ae05eaa5c114e9c$export$7f54fc3180508a52(() => {
|
|
350
|
+
var _delegate_getFirstKey;
|
|
351
|
+
var _delegate_getFirstKey1;
|
|
352
|
+
let keyToFocus = (_delegate_getFirstKey1 = (_delegate_getFirstKey = delegate.getFirstKey) === null || _delegate_getFirstKey === void 0 ? void 0 : _delegate_getFirstKey.call(delegate)) !== null && _delegate_getFirstKey1 !== void 0 ? _delegate_getFirstKey1 : null;
|
|
353
|
+
if (keyToFocus == null) {
|
|
354
|
+
var _ref_current;
|
|
355
|
+
(_ref_current = ref.current) === null || _ref_current === void 0 ? void 0 : _ref_current.dispatchEvent(new CustomEvent($5671b20cf9b562b2$export$9db568f6321ad9dc, {
|
|
356
|
+
cancelable: true,
|
|
357
|
+
bubbles: true
|
|
358
|
+
}));
|
|
359
|
+
if (manager.collection.size > 0) shouldVirtualFocusFirst.current = false;
|
|
360
|
+
} else {
|
|
361
|
+
manager.setFocusedKey(keyToFocus);
|
|
362
|
+
shouldVirtualFocusFirst.current = false;
|
|
363
|
+
}
|
|
364
|
+
});
|
|
365
|
+
$ca9b37712f007381$export$72ef708ab07251f1(() => {
|
|
366
|
+
if (shouldVirtualFocusFirst.current) updateActiveDescendant();
|
|
367
|
+
}, [
|
|
368
|
+
manager.collection,
|
|
369
|
+
updateActiveDescendant
|
|
370
|
+
]);
|
|
371
|
+
let resetFocusFirstFlag = $8ae05eaa5c114e9c$export$7f54fc3180508a52(() => {
|
|
372
|
+
if (manager.collection.size > 0) shouldVirtualFocusFirst.current = false;
|
|
373
|
+
});
|
|
374
|
+
$ca9b37712f007381$export$72ef708ab07251f1(() => {
|
|
375
|
+
resetFocusFirstFlag();
|
|
376
|
+
}, [
|
|
377
|
+
manager.focusedKey,
|
|
378
|
+
resetFocusFirstFlag
|
|
379
|
+
]);
|
|
380
|
+
$e9faafb641e167db$export$90fc3a17d93f704c(ref, $5671b20cf9b562b2$export$447a38995de2c711, !shouldUseVirtualFocus ? void 0 : (e) => {
|
|
381
|
+
e.stopPropagation();
|
|
382
|
+
manager.setFocused(false);
|
|
383
|
+
manager.setFocusedKey(null);
|
|
384
|
+
});
|
|
322
385
|
const autoFocusRef = useRef(autoFocus);
|
|
323
386
|
useEffect(() => {
|
|
324
387
|
if (autoFocusRef.current) {
|
|
@@ -378,6 +441,7 @@ function $ae20dd8cbca75726$export$d6daf82dcd84e87c(options) {
|
|
|
378
441
|
if (!disallowTypeAhead) handlers = $3ef42575df84b30b$export$9d1611c77c2fe928(typeSelectProps, handlers);
|
|
379
442
|
let tabIndex = void 0;
|
|
380
443
|
if (!shouldUseVirtualFocus) tabIndex = manager.focusedKey == null ? 0 : -1;
|
|
444
|
+
else tabIndex = -1;
|
|
381
445
|
return {
|
|
382
446
|
collectionProps: __spreadProps(__spreadValues({}, handlers), {
|
|
383
447
|
tabIndex
|
|
@@ -385,8 +449,9 @@ function $ae20dd8cbca75726$export$d6daf82dcd84e87c(options) {
|
|
|
385
449
|
};
|
|
386
450
|
}
|
|
387
451
|
function $880e95eb8b93ba9a$export$ecf600387e221c37(options) {
|
|
388
|
-
let { selectionManager: manager, key, ref, shouldSelectOnPressUp, shouldUseVirtualFocus, focus, isDisabled, onAction, allowsDifferentPressOrigin, linkBehavior = "action" } = options;
|
|
452
|
+
let { id, selectionManager: manager, key, ref, shouldSelectOnPressUp, shouldUseVirtualFocus, focus, isDisabled, onAction, allowsDifferentPressOrigin, linkBehavior = "action" } = options;
|
|
389
453
|
let router = $ea8dcbcb9ea1b556$export$9a302a45f65d0572();
|
|
454
|
+
id = $bdb11010cef70236$export$f680877a34711e37(id);
|
|
390
455
|
let onSelect = (e) => {
|
|
391
456
|
if (e.pointerType === "keyboard" && $feb5ffebff200149$export$d3e3bd3e26688c04(e)) manager.toggleSelection(key);
|
|
392
457
|
else {
|
|
@@ -403,16 +468,25 @@ function $880e95eb8b93ba9a$export$ecf600387e221c37(options) {
|
|
|
403
468
|
if (manager.isSelected(key) && !manager.disallowEmptySelection) manager.toggleSelection(key);
|
|
404
469
|
else manager.replaceSelection(key);
|
|
405
470
|
} else if (e && e.shiftKey) manager.extendSelection(key);
|
|
406
|
-
else if (manager.selectionBehavior === "toggle" || e && ($
|
|
471
|
+
else if (manager.selectionBehavior === "toggle" || e && ($21f1aa98acb08317$export$16792effe837dba3(e) || e.pointerType === "touch" || e.pointerType === "virtual"))
|
|
407
472
|
manager.toggleSelection(key);
|
|
408
473
|
else manager.replaceSelection(key);
|
|
409
474
|
}
|
|
410
475
|
};
|
|
411
476
|
useEffect(() => {
|
|
412
477
|
let isFocused = key === manager.focusedKey;
|
|
413
|
-
if (isFocused && manager.isFocused
|
|
414
|
-
if (
|
|
415
|
-
|
|
478
|
+
if (isFocused && manager.isFocused) {
|
|
479
|
+
if (!shouldUseVirtualFocus) {
|
|
480
|
+
if (focus) focus();
|
|
481
|
+
else if (document.activeElement !== ref.current && ref.current) $6a99195332edec8b$export$80f3e147d781571c(ref.current);
|
|
482
|
+
} else {
|
|
483
|
+
var _ref_current;
|
|
484
|
+
let updateActiveDescendant = new CustomEvent($5671b20cf9b562b2$export$9db568f6321ad9dc, {
|
|
485
|
+
cancelable: true,
|
|
486
|
+
bubbles: true
|
|
487
|
+
});
|
|
488
|
+
(_ref_current = ref.current) === null || _ref_current === void 0 ? void 0 : _ref_current.dispatchEvent(updateActiveDescendant);
|
|
489
|
+
}
|
|
416
490
|
}
|
|
417
491
|
}, [
|
|
418
492
|
ref,
|
|
@@ -466,9 +540,11 @@ function $880e95eb8b93ba9a$export$ecf600387e221c37(options) {
|
|
|
466
540
|
};
|
|
467
541
|
else {
|
|
468
542
|
itemPressProps.onPressUp = hasPrimaryAction ? void 0 : (e) => {
|
|
469
|
-
if (e.pointerType
|
|
543
|
+
if (e.pointerType === "mouse" && allowsSelection) onSelect(e);
|
|
544
|
+
};
|
|
545
|
+
itemPressProps.onPress = hasPrimaryAction ? performAction : (e) => {
|
|
546
|
+
if (e.pointerType !== "keyboard" && e.pointerType !== "mouse" && allowsSelection) onSelect(e);
|
|
470
547
|
};
|
|
471
|
-
itemPressProps.onPress = hasPrimaryAction ? performAction : void 0;
|
|
472
548
|
}
|
|
473
549
|
} else {
|
|
474
550
|
itemPressProps.onPressStart = (e) => {
|
|
@@ -513,7 +589,8 @@ function $880e95eb8b93ba9a$export$ecf600387e221c37(options) {
|
|
|
513
589
|
itemProps: $3ef42575df84b30b$export$9d1611c77c2fe928(itemProps, allowsSelection || hasPrimaryAction ? pressProps : {}, longPressEnabled ? longPressProps : {}, {
|
|
514
590
|
onDoubleClick,
|
|
515
591
|
onDragStartCapture,
|
|
516
|
-
onClick
|
|
592
|
+
onClick,
|
|
593
|
+
id
|
|
517
594
|
}),
|
|
518
595
|
isPressed,
|
|
519
596
|
isSelected: manager.isSelected(key),
|
|
@@ -18,7 +18,7 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { c as $c5a24bc478652b5f$export$1005530eda016c13 } from "./SelectionManager-DCO_d3m1.mjs";
|
|
21
|
-
import { a as $ae20dd8cbca75726$export$d6daf82dcd84e87c } from "./useSelectableItem-
|
|
21
|
+
import { a as $ae20dd8cbca75726$export$d6daf82dcd84e87c } from "./useSelectableItem-DeFiKyU1.mjs";
|
|
22
22
|
import { $ as $cc38e7bd3fc7b213$export$2bb74740c4e19def } from "./isScrollable-DwbLAiO0.mjs";
|
|
23
23
|
import { $ as $325a3faab7a68acd$export$a16aca283550c30d } from "./useCollator-B-keb3wA.mjs";
|
|
24
24
|
import { useMemo } from "react";
|
|
@@ -19,7 +19,7 @@ var __spreadValues = (a, b) => {
|
|
|
19
19
|
};
|
|
20
20
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
21
21
|
const SelectionManager = require("./SelectionManager-DuX6geJg.js");
|
|
22
|
-
const useSelectableItem = require("./useSelectableItem-
|
|
22
|
+
const useSelectableItem = require("./useSelectableItem-BEkjpB_K.js");
|
|
23
23
|
const isScrollable = require("./isScrollable-CE3Xdlg4.js");
|
|
24
24
|
const useCollator = require("./useCollator-DGrSWVh4.js");
|
|
25
25
|
const React = require("react");
|
|
@@ -18,14 +18,14 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { useEffect } from "react";
|
|
21
|
-
import { a as $431fbd86ca7dc216$export$f21a1ffae260145a } from "./isVirtualEvent-
|
|
21
|
+
import { a as $431fbd86ca7dc216$export$f21a1ffae260145a } from "./isVirtualEvent-B_Z4yzgm.mjs";
|
|
22
22
|
import { $ as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./mergeProps-DSi85raC.mjs";
|
|
23
23
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-EDDcM64A.mjs";
|
|
24
24
|
import { $ as $99facab73266f662$export$5add1d006293d136 } from "./useFormReset-DA1Lwdha.mjs";
|
|
25
25
|
import { $ as $458b0a5536c1a7cf$export$40bfa8c7b0832715 } from "./useControlledState-CFWhSD5C.mjs";
|
|
26
26
|
import { $ as $2baaea4c71418dea$export$294aa081a6c6f55d } from "./useField-B6VplZ_n.mjs";
|
|
27
|
-
import { $ as $e6afbd83fe6ebbd2$export$4c014de7c8940b4c } from "./useFocusable-
|
|
28
|
-
import { $ as $e5be200c675c3b3a$export$fc1a364ae1f3ff10, a as $e93e671b31057976$export$b8473d3665f3a75a } from "./useFormValidation-
|
|
27
|
+
import { $ as $e6afbd83fe6ebbd2$export$4c014de7c8940b4c } from "./useFocusable-DxcU91xN.mjs";
|
|
28
|
+
import { $ as $e5be200c675c3b3a$export$fc1a364ae1f3ff10, a as $e93e671b31057976$export$b8473d3665f3a75a } from "./useFormValidation-CCe1AoIX.mjs";
|
|
29
29
|
function $2d73ec29415bd339$export$712718f7aec83d5(props, ref) {
|
|
30
30
|
let { inputElementType = "input", isDisabled = false, isRequired = false, isReadOnly = false, type = "text", validationBehavior = "aria" } = props;
|
|
31
31
|
let [value, setValue] = $458b0a5536c1a7cf$export$40bfa8c7b0832715(props.value, props.defaultValue || "", props.onChange);
|
|
@@ -72,6 +72,7 @@ function $2d73ec29415bd339$export$712718f7aec83d5(props, ref) {
|
|
|
72
72
|
"aria-activedescendant": props["aria-activedescendant"],
|
|
73
73
|
"aria-autocomplete": props["aria-autocomplete"],
|
|
74
74
|
"aria-haspopup": props["aria-haspopup"],
|
|
75
|
+
"aria-controls": props["aria-controls"],
|
|
75
76
|
value,
|
|
76
77
|
onChange: (e) => setValue(e.target.value),
|
|
77
78
|
autoComplete: props.autoComplete,
|
|
@@ -81,6 +82,8 @@ function $2d73ec29415bd339$export$712718f7aec83d5(props, ref) {
|
|
|
81
82
|
name: props.name,
|
|
82
83
|
placeholder: props.placeholder,
|
|
83
84
|
inputMode: props.inputMode,
|
|
85
|
+
autoCorrect: props.autoCorrect,
|
|
86
|
+
spellCheck: props.spellCheck,
|
|
84
87
|
// Clipboard events
|
|
85
88
|
onCopy: props.onCopy,
|
|
86
89
|
onCut: props.onCut,
|
|
@@ -19,14 +19,14 @@ var __spreadValues = (a, b) => {
|
|
|
19
19
|
};
|
|
20
20
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
21
21
|
const React = require("react");
|
|
22
|
-
const isVirtualEvent = require("./isVirtualEvent-
|
|
22
|
+
const isVirtualEvent = require("./isVirtualEvent-C-tB2MCl.js");
|
|
23
23
|
const mergeProps = require("./mergeProps-DniMwM6P.js");
|
|
24
24
|
const filterDOMProps = require("./filterDOMProps-D3iOHP0H.js");
|
|
25
25
|
const useFormReset = require("./useFormReset-Bgj93eR3.js");
|
|
26
26
|
const useControlledState = require("./useControlledState-mnKBd6Uc.js");
|
|
27
27
|
const useField = require("./useField-BJW_bXVD.js");
|
|
28
|
-
const useFocusable = require("./useFocusable-
|
|
29
|
-
const useFormValidation = require("./useFormValidation-
|
|
28
|
+
const useFocusable = require("./useFocusable-BQyiwtXU.js");
|
|
29
|
+
const useFormValidation = require("./useFormValidation-BeqiYVJN.js");
|
|
30
30
|
function $2d73ec29415bd339$export$712718f7aec83d5(props, ref) {
|
|
31
31
|
let { inputElementType = "input", isDisabled = false, isRequired = false, isReadOnly = false, type = "text", validationBehavior = "aria" } = props;
|
|
32
32
|
let [value, setValue] = useControlledState.$458b0a5536c1a7cf$export$40bfa8c7b0832715(props.value, props.defaultValue || "", props.onChange);
|
|
@@ -73,6 +73,7 @@ function $2d73ec29415bd339$export$712718f7aec83d5(props, ref) {
|
|
|
73
73
|
"aria-activedescendant": props["aria-activedescendant"],
|
|
74
74
|
"aria-autocomplete": props["aria-autocomplete"],
|
|
75
75
|
"aria-haspopup": props["aria-haspopup"],
|
|
76
|
+
"aria-controls": props["aria-controls"],
|
|
76
77
|
value,
|
|
77
78
|
onChange: (e) => setValue(e.target.value),
|
|
78
79
|
autoComplete: props.autoComplete,
|
|
@@ -82,6 +83,8 @@ function $2d73ec29415bd339$export$712718f7aec83d5(props, ref) {
|
|
|
82
83
|
name: props.name,
|
|
83
84
|
placeholder: props.placeholder,
|
|
84
85
|
inputMode: props.inputMode,
|
|
86
|
+
autoCorrect: props.autoCorrect,
|
|
87
|
+
spellCheck: props.spellCheck,
|
|
85
88
|
// Clipboard events
|
|
86
89
|
onCopy: props.onCopy,
|
|
87
90
|
onCut: props.onCut,
|
|
@@ -20,8 +20,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
20
20
|
import { $ as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./mergeProps-DSi85raC.mjs";
|
|
21
21
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-EDDcM64A.mjs";
|
|
22
22
|
import { $ as $99facab73266f662$export$5add1d006293d136 } from "./useFormReset-DA1Lwdha.mjs";
|
|
23
|
-
import { $ as $e6afbd83fe6ebbd2$export$4c014de7c8940b4c } from "./useFocusable-
|
|
24
|
-
import { $ as $f6c31cce2adf654f$export$45712eceda6fad21 } from "./usePress-
|
|
23
|
+
import { $ as $e6afbd83fe6ebbd2$export$4c014de7c8940b4c } from "./useFocusable-DxcU91xN.mjs";
|
|
24
|
+
import { $ as $f6c31cce2adf654f$export$45712eceda6fad21 } from "./usePress-CqfuY_T7.mjs";
|
|
25
25
|
function $d2c8e2b0480f3f34$export$cbe85ee05b554577(props, state, ref) {
|
|
26
26
|
let { isDisabled = false, isReadOnly = false, value, name, children, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, validationState = "valid", isInvalid } = props;
|
|
27
27
|
let onChange = (e) => {
|
|
@@ -21,8 +21,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
21
21
|
const mergeProps = require("./mergeProps-DniMwM6P.js");
|
|
22
22
|
const filterDOMProps = require("./filterDOMProps-D3iOHP0H.js");
|
|
23
23
|
const useFormReset = require("./useFormReset-Bgj93eR3.js");
|
|
24
|
-
const useFocusable = require("./useFocusable-
|
|
25
|
-
const usePress = require("./usePress-
|
|
24
|
+
const useFocusable = require("./useFocusable-BQyiwtXU.js");
|
|
25
|
+
const usePress = require("./usePress-DTGD4Sub.js");
|
|
26
26
|
function $d2c8e2b0480f3f34$export$cbe85ee05b554577(props, state, ref) {
|
|
27
27
|
let { isDisabled = false, isReadOnly = false, value, name, children, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, validationState = "valid", isInvalid } = props;
|
|
28
28
|
let onChange = (e) => {
|
|
@@ -127,7 +127,7 @@ function useTriggerWidth(triggerRef) {
|
|
|
127
127
|
return triggerWidth;
|
|
128
128
|
}
|
|
129
129
|
export {
|
|
130
|
-
$
|
|
131
|
-
$
|
|
130
|
+
$f4b273590fab9f93$export$52210f68a14655d0 as $,
|
|
131
|
+
$9fc4852771d079eb$export$6e2c8f0811a474ce as a,
|
|
132
132
|
useTriggerWidth as u
|
|
133
133
|
};
|
|
@@ -32,11 +32,11 @@ var __objRest = (source, exclude) => {
|
|
|
32
32
|
import React__default, { useCallback, useEffect } from "react";
|
|
33
33
|
import { $ as $313b98861ee5dd6c$export$d6875122194c7b44 } from "./useLabels-5f58TiCH.mjs";
|
|
34
34
|
import { $ as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "./useLocalizedStringFormatter-BHXy3Wtu.mjs";
|
|
35
|
-
import { a as $5c3e21d68f1c4674$export$439d29a4e110a164 } from "./VisuallyHidden-
|
|
36
|
-
import { $ as $a11501f3d1d39e6c$export$ea8f71083e90600f, a as $49c51c25361d4cd2$export$ee0f7cc6afcd1c18, b as $5e3802645cc19319$export$1c3ebcada18427bf } from "./ariaHideOutside-
|
|
37
|
-
import { $ as $2a41e45df1593e64$export$d39e1813b3bdd0e1 } from "./useOverlayPosition-
|
|
35
|
+
import { a as $5c3e21d68f1c4674$export$439d29a4e110a164 } from "./VisuallyHidden-cQCgS6_a.mjs";
|
|
36
|
+
import { $ as $a11501f3d1d39e6c$export$ea8f71083e90600f, a as $49c51c25361d4cd2$export$ee0f7cc6afcd1c18, b as $5e3802645cc19319$export$1c3ebcada18427bf } from "./ariaHideOutside-CvJKAP9c.mjs";
|
|
37
|
+
import { $ as $2a41e45df1593e64$export$d39e1813b3bdd0e1 } from "./useOverlayPosition-CTTQ0gZN.mjs";
|
|
38
38
|
import { d as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, $ as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./mergeProps-DSi85raC.mjs";
|
|
39
|
-
import { getComponentToken, pxToRem
|
|
39
|
+
import { getResponsiveValue, getComponentToken, pxToRem } from "../utilities/css.mjs";
|
|
40
40
|
var $773d5888b972f1cf$exports = {};
|
|
41
41
|
$773d5888b972f1cf$exports = {
|
|
42
42
|
"dismiss": `تجاهل`
|
|
@@ -244,7 +244,7 @@ function $f2f8a6077418541e$export$542a6fd13ac93354(props, state) {
|
|
|
244
244
|
targetRef: triggerRef,
|
|
245
245
|
overlayRef: popoverRef,
|
|
246
246
|
isOpen: state.isOpen,
|
|
247
|
-
onClose: isNonModal ? state.close :
|
|
247
|
+
onClose: isNonModal ? state.close : null
|
|
248
248
|
}));
|
|
249
249
|
$49c51c25361d4cd2$export$ee0f7cc6afcd1c18({
|
|
250
250
|
isDisabled: isNonModal || !state.isOpen
|
|
@@ -340,19 +340,19 @@ function useSelectionCapture() {
|
|
|
340
340
|
}
|
|
341
341
|
export {
|
|
342
342
|
$f2f8a6077418541e$export$542a6fd13ac93354 as $,
|
|
343
|
-
|
|
343
|
+
DEFAULT_MAX_ITEMS_UNTIL_SCROLL as D,
|
|
344
344
|
ITEM_HEIGHT as I,
|
|
345
|
-
|
|
345
|
+
OVERLAY_OFFSET as O,
|
|
346
346
|
SELECT_ALL_KEY as S,
|
|
347
347
|
Y_PADDING_INSIDE_OVERLAY as Y,
|
|
348
348
|
$86ea4cb521eb2e37$export$2317d149ed6f78c4 as a,
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
349
|
+
DEFAULT_WIDTH as b,
|
|
350
|
+
DEFAULT_PLACEMENT as c,
|
|
351
|
+
OVERLAY_PADDING_FROM_CONTAINER as d,
|
|
352
352
|
isSelectAllIndeterminate as e,
|
|
353
|
-
|
|
353
|
+
getMenuPopoverMaxHeight as f,
|
|
354
354
|
getUnmergedPopoverStyles as g,
|
|
355
|
-
|
|
355
|
+
filterSelectedKeys as h,
|
|
356
356
|
isSelectAllSelected as i,
|
|
357
357
|
useSelectionCapture as u
|
|
358
358
|
};
|
|
@@ -33,9 +33,9 @@ var __objRest = (source, exclude) => {
|
|
|
33
33
|
const React = require("react");
|
|
34
34
|
const useLabels = require("./useLabels-KmwewLTv.js");
|
|
35
35
|
const useLocalizedStringFormatter = require("./useLocalizedStringFormatter-CaF1VsOH.js");
|
|
36
|
-
const VisuallyHidden = require("./VisuallyHidden-
|
|
37
|
-
const ariaHideOutside = require("./ariaHideOutside-
|
|
38
|
-
const useOverlayPosition = require("./useOverlayPosition-
|
|
36
|
+
const VisuallyHidden = require("./VisuallyHidden-DcUrMWfu.js");
|
|
37
|
+
const ariaHideOutside = require("./ariaHideOutside-DkYn-eBq.js");
|
|
38
|
+
const useOverlayPosition = require("./useOverlayPosition-DJGEWKwM.js");
|
|
39
39
|
const mergeProps = require("./mergeProps-DniMwM6P.js");
|
|
40
40
|
const utilities_css = require("../utilities/css.js");
|
|
41
41
|
var $773d5888b972f1cf$exports = {};
|
|
@@ -245,7 +245,7 @@ function $f2f8a6077418541e$export$542a6fd13ac93354(props, state) {
|
|
|
245
245
|
targetRef: triggerRef,
|
|
246
246
|
overlayRef: popoverRef,
|
|
247
247
|
isOpen: state.isOpen,
|
|
248
|
-
onClose: isNonModal ? state.close :
|
|
248
|
+
onClose: isNonModal ? state.close : null
|
|
249
249
|
}));
|
|
250
250
|
ariaHideOutside.$49c51c25361d4cd2$export$ee0f7cc6afcd1c18({
|
|
251
251
|
isDisabled: isNonModal || !state.isOpen
|
|
@@ -33,7 +33,6 @@ import { $ as $3ef42575df84b30b$export$9d1611c77c2fe928, d as $f0a04ccd8dbdd83b$
|
|
|
33
33
|
import { $ as $5dc95899b306f630$export$c9058316764c140e } from "./mergeRefs-CCV6itCY.mjs";
|
|
34
34
|
import { $ as $df56164dff5785e2$export$4338b53315abf666 } from "./useObjectRef-wU82Pkgx.mjs";
|
|
35
35
|
import React__default, { useMemo, useContext, useState, useRef, useCallback } from "react";
|
|
36
|
-
import ReactDOM from "react-dom";
|
|
37
36
|
const $64fa3d84918910a7$export$c62b8e45d58ddad9 = Symbol("default");
|
|
38
37
|
function $64fa3d84918910a7$export$2881499e37b75b9a({ values, children }) {
|
|
39
38
|
for (let [Context, value] of values)
|
|
@@ -132,55 +131,6 @@ function $64fa3d84918910a7$export$9d4c57ee4c6ffdd8() {
|
|
|
132
131
|
hasSlot
|
|
133
132
|
];
|
|
134
133
|
}
|
|
135
|
-
function $64fa3d84918910a7$export$6d3443f2c48bfc20(ref, isReady = true) {
|
|
136
|
-
let [isEntering, setEntering] = useState(true);
|
|
137
|
-
$64fa3d84918910a7$var$useAnimation(ref, isEntering && isReady, useCallback(() => setEntering(false), []));
|
|
138
|
-
return isEntering && isReady;
|
|
139
|
-
}
|
|
140
|
-
function $64fa3d84918910a7$export$45fda7c47f93fd48(ref, isOpen) {
|
|
141
|
-
let [isExiting, setExiting] = useState(false);
|
|
142
|
-
let [exitState, setExitState] = useState("idle");
|
|
143
|
-
if (!isOpen && ref.current && exitState === "idle") {
|
|
144
|
-
isExiting = true;
|
|
145
|
-
setExiting(true);
|
|
146
|
-
setExitState("exiting");
|
|
147
|
-
}
|
|
148
|
-
if (!ref.current && exitState === "exited") setExitState("idle");
|
|
149
|
-
$64fa3d84918910a7$var$useAnimation(ref, isExiting, useCallback(() => {
|
|
150
|
-
setExitState("exited");
|
|
151
|
-
setExiting(false);
|
|
152
|
-
}, []));
|
|
153
|
-
return isExiting;
|
|
154
|
-
}
|
|
155
|
-
function $64fa3d84918910a7$var$useAnimation(ref, isActive, onEnd) {
|
|
156
|
-
let prevAnimation = useRef(null);
|
|
157
|
-
if (isActive && ref.current)
|
|
158
|
-
prevAnimation.current = window.getComputedStyle(ref.current).animation;
|
|
159
|
-
$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
|
|
160
|
-
if (isActive && ref.current) {
|
|
161
|
-
let computedStyle = window.getComputedStyle(ref.current);
|
|
162
|
-
if (computedStyle.animationName && computedStyle.animationName !== "none" && computedStyle.animation !== prevAnimation.current) {
|
|
163
|
-
let onAnimationEnd = (e) => {
|
|
164
|
-
if (e.target === ref.current) {
|
|
165
|
-
element.removeEventListener("animationend", onAnimationEnd);
|
|
166
|
-
ReactDOM.flushSync(() => {
|
|
167
|
-
onEnd();
|
|
168
|
-
});
|
|
169
|
-
}
|
|
170
|
-
};
|
|
171
|
-
let element = ref.current;
|
|
172
|
-
element.addEventListener("animationend", onAnimationEnd);
|
|
173
|
-
return () => {
|
|
174
|
-
element.removeEventListener("animationend", onAnimationEnd);
|
|
175
|
-
};
|
|
176
|
-
} else onEnd();
|
|
177
|
-
}
|
|
178
|
-
}, [
|
|
179
|
-
ref,
|
|
180
|
-
isActive,
|
|
181
|
-
onEnd
|
|
182
|
-
]);
|
|
183
|
-
}
|
|
184
134
|
function $64fa3d84918910a7$export$ef03459518577ad4(props) {
|
|
185
135
|
const prefix = /^(data-.*)$/;
|
|
186
136
|
let filteredProps = {};
|
|
@@ -190,11 +140,9 @@ function $64fa3d84918910a7$export$ef03459518577ad4(props) {
|
|
|
190
140
|
export {
|
|
191
141
|
$64fa3d84918910a7$export$29f1550f4b0d4415 as $,
|
|
192
142
|
$64fa3d84918910a7$export$4d86445c2cf5e3 as a,
|
|
193
|
-
$64fa3d84918910a7$export$
|
|
194
|
-
$64fa3d84918910a7$export$
|
|
195
|
-
$64fa3d84918910a7$export$
|
|
196
|
-
$64fa3d84918910a7$export$
|
|
197
|
-
$64fa3d84918910a7$export$
|
|
198
|
-
$64fa3d84918910a7$export$9d4c57ee4c6ffdd8 as g,
|
|
199
|
-
$64fa3d84918910a7$export$ef03459518577ad4 as h
|
|
143
|
+
$64fa3d84918910a7$export$2881499e37b75b9a as b,
|
|
144
|
+
$64fa3d84918910a7$export$c62b8e45d58ddad9 as c,
|
|
145
|
+
$64fa3d84918910a7$export$fabf2dc03a41866e as d,
|
|
146
|
+
$64fa3d84918910a7$export$9d4c57ee4c6ffdd8 as e,
|
|
147
|
+
$64fa3d84918910a7$export$ef03459518577ad4 as f
|
|
200
148
|
};
|
|
@@ -34,7 +34,6 @@ const mergeProps = require("./mergeProps-DniMwM6P.js");
|
|
|
34
34
|
const mergeRefs = require("./mergeRefs-CQsNYO0P.js");
|
|
35
35
|
const useObjectRef = require("./useObjectRef-BOGMJ5vM.js");
|
|
36
36
|
const React = require("react");
|
|
37
|
-
const ReactDOM = require("react-dom");
|
|
38
37
|
const $64fa3d84918910a7$export$c62b8e45d58ddad9 = Symbol("default");
|
|
39
38
|
function $64fa3d84918910a7$export$2881499e37b75b9a({ values, children }) {
|
|
40
39
|
for (let [Context, value] of values)
|
|
@@ -133,55 +132,6 @@ function $64fa3d84918910a7$export$9d4c57ee4c6ffdd8() {
|
|
|
133
132
|
hasSlot
|
|
134
133
|
];
|
|
135
134
|
}
|
|
136
|
-
function $64fa3d84918910a7$export$6d3443f2c48bfc20(ref, isReady = true) {
|
|
137
|
-
let [isEntering, setEntering] = React.useState(true);
|
|
138
|
-
$64fa3d84918910a7$var$useAnimation(ref, isEntering && isReady, React.useCallback(() => setEntering(false), []));
|
|
139
|
-
return isEntering && isReady;
|
|
140
|
-
}
|
|
141
|
-
function $64fa3d84918910a7$export$45fda7c47f93fd48(ref, isOpen) {
|
|
142
|
-
let [isExiting, setExiting] = React.useState(false);
|
|
143
|
-
let [exitState, setExitState] = React.useState("idle");
|
|
144
|
-
if (!isOpen && ref.current && exitState === "idle") {
|
|
145
|
-
isExiting = true;
|
|
146
|
-
setExiting(true);
|
|
147
|
-
setExitState("exiting");
|
|
148
|
-
}
|
|
149
|
-
if (!ref.current && exitState === "exited") setExitState("idle");
|
|
150
|
-
$64fa3d84918910a7$var$useAnimation(ref, isExiting, React.useCallback(() => {
|
|
151
|
-
setExitState("exited");
|
|
152
|
-
setExiting(false);
|
|
153
|
-
}, []));
|
|
154
|
-
return isExiting;
|
|
155
|
-
}
|
|
156
|
-
function $64fa3d84918910a7$var$useAnimation(ref, isActive, onEnd) {
|
|
157
|
-
let prevAnimation = React.useRef(null);
|
|
158
|
-
if (isActive && ref.current)
|
|
159
|
-
prevAnimation.current = window.getComputedStyle(ref.current).animation;
|
|
160
|
-
mergeProps.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
|
|
161
|
-
if (isActive && ref.current) {
|
|
162
|
-
let computedStyle = window.getComputedStyle(ref.current);
|
|
163
|
-
if (computedStyle.animationName && computedStyle.animationName !== "none" && computedStyle.animation !== prevAnimation.current) {
|
|
164
|
-
let onAnimationEnd = (e) => {
|
|
165
|
-
if (e.target === ref.current) {
|
|
166
|
-
element.removeEventListener("animationend", onAnimationEnd);
|
|
167
|
-
ReactDOM.flushSync(() => {
|
|
168
|
-
onEnd();
|
|
169
|
-
});
|
|
170
|
-
}
|
|
171
|
-
};
|
|
172
|
-
let element = ref.current;
|
|
173
|
-
element.addEventListener("animationend", onAnimationEnd);
|
|
174
|
-
return () => {
|
|
175
|
-
element.removeEventListener("animationend", onAnimationEnd);
|
|
176
|
-
};
|
|
177
|
-
} else onEnd();
|
|
178
|
-
}
|
|
179
|
-
}, [
|
|
180
|
-
ref,
|
|
181
|
-
isActive,
|
|
182
|
-
onEnd
|
|
183
|
-
]);
|
|
184
|
-
}
|
|
185
135
|
function $64fa3d84918910a7$export$ef03459518577ad4(props) {
|
|
186
136
|
const prefix = /^(data-.*)$/;
|
|
187
137
|
let filteredProps = {};
|
|
@@ -190,9 +140,7 @@ function $64fa3d84918910a7$export$ef03459518577ad4(props) {
|
|
|
190
140
|
}
|
|
191
141
|
exports.$64fa3d84918910a7$export$2881499e37b75b9a = $64fa3d84918910a7$export$2881499e37b75b9a;
|
|
192
142
|
exports.$64fa3d84918910a7$export$29f1550f4b0d4415 = $64fa3d84918910a7$export$29f1550f4b0d4415;
|
|
193
|
-
exports.$64fa3d84918910a7$export$45fda7c47f93fd48 = $64fa3d84918910a7$export$45fda7c47f93fd48;
|
|
194
143
|
exports.$64fa3d84918910a7$export$4d86445c2cf5e3 = $64fa3d84918910a7$export$4d86445c2cf5e3;
|
|
195
|
-
exports.$64fa3d84918910a7$export$6d3443f2c48bfc20 = $64fa3d84918910a7$export$6d3443f2c48bfc20;
|
|
196
144
|
exports.$64fa3d84918910a7$export$9d4c57ee4c6ffdd8 = $64fa3d84918910a7$export$9d4c57ee4c6ffdd8;
|
|
197
145
|
exports.$64fa3d84918910a7$export$c62b8e45d58ddad9 = $64fa3d84918910a7$export$c62b8e45d58ddad9;
|
|
198
146
|
exports.$64fa3d84918910a7$export$ef03459518577ad4 = $64fa3d84918910a7$export$ef03459518577ad4;
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@easypost/easy-ui",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.69",
|
|
4
4
|
"sideEffects": [
|
|
5
5
|
"**/*.css"
|
|
6
6
|
],
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@easypost/easy-ui-icons": "1.0.0-alpha.
|
|
8
|
+
"@easypost/easy-ui-icons": "1.0.0-alpha.36",
|
|
9
9
|
"@easypost/easy-ui-tokens": "1.0.0-alpha.14",
|
|
10
10
|
"@react-aria/toast": "^3.0.0-beta.18",
|
|
11
|
-
"@react-aria/utils": "^3.
|
|
11
|
+
"@react-aria/utils": "^3.27.0",
|
|
12
12
|
"@react-stately/toast": "^3.0.0-beta.7",
|
|
13
13
|
"@react-types/shared": "^3.26.0",
|
|
14
14
|
"@types/react": "^18.3.1",
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
"overlayscrollbars": "^2.3.0",
|
|
18
18
|
"overlayscrollbars-react": "^0.5.6",
|
|
19
19
|
"react-aria": "^3.36.0",
|
|
20
|
-
"react-aria-components": "^1.
|
|
20
|
+
"react-aria-components": "^1.6.0",
|
|
21
21
|
"react-is": "^18.3.1",
|
|
22
|
-
"react-stately": "^3.
|
|
22
|
+
"react-stately": "^3.35.0",
|
|
23
23
|
"react-syntax-highlighter": "^15.6.1",
|
|
24
24
|
"react-transition-group": "^4.4.5",
|
|
25
25
|
"use-clipboard-copy": "^0.2.0"
|