@jobber/components 5.3.8 → 5.4.1
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/dist/AnimatedPresence/index.cjs +1 -1
- package/dist/AnimatedPresence/index.mjs +1 -1
- package/dist/AnimatedSwitcher/index.cjs +2 -2
- package/dist/AnimatedSwitcher/index.mjs +2 -2
- package/dist/{AnimatedSwitcher-BSosl_sd.js → AnimatedSwitcher-BQk21Mx1.js} +1 -1
- package/dist/{AnimatedSwitcher-D1di2s3U.js → AnimatedSwitcher-C06zStKo.js} +1 -1
- package/dist/AtlantisContext/index.cjs +1 -1
- package/dist/AtlantisContext/index.mjs +1 -1
- package/dist/Autocomplete/index.cjs +19 -18
- package/dist/Autocomplete/index.mjs +19 -18
- package/dist/{Autocomplete-CXMGsqKG.js → Autocomplete-CkagTyRM.js} +9 -9
- package/dist/{Autocomplete-66iGU3R7.js → Autocomplete-nt_wbJ_f.js} +9 -9
- package/dist/Avatar/index.cjs +2 -2
- package/dist/Avatar/index.mjs +2 -2
- package/dist/{Avatar-V4PMZ0NJ.js → Avatar-BUctuTyn.js} +1 -1
- package/dist/{Avatar-CZ5wtIOm.js → Avatar-kODeIzA3.js} +1 -1
- package/dist/Banner/components/BannerIcon/index.cjs +2 -2
- package/dist/Banner/components/BannerIcon/index.mjs +2 -2
- package/dist/Banner/index.cjs +12 -12
- package/dist/Banner/index.mjs +12 -12
- package/dist/{Banner-C6fzYdmK.js → Banner-B2TbZmm_.js} +5 -5
- package/dist/{Banner-yRtzq2T3.js → Banner-D8ofqo6-.js} +5 -5
- package/dist/{BannerIcon-qtF11Kqw.js → BannerIcon-5W1vdrzM.js} +1 -1
- package/dist/{BannerIcon-JSxbDDHr.js → BannerIcon-C6Vh1_8c.js} +1 -1
- package/dist/Button/index.cjs +3 -3
- package/dist/Button/index.mjs +3 -3
- package/dist/{Button-TMPCBi5z.js → Button-CcUCisoB.js} +2 -2
- package/dist/{Button-Bjdb1YXG.js → Button-DYxeLbDP.js} +2 -2
- package/dist/ButtonDismiss/index.cjs +4 -4
- package/dist/ButtonDismiss/index.mjs +4 -4
- package/dist/{ButtonDismiss-uGQp_hpc.js → ButtonDismiss-BG1Waj3q.js} +1 -1
- package/dist/{ButtonDismiss-NesC7AI1.js → ButtonDismiss-Slx87Ng8.js} +1 -1
- package/dist/Card/index.cjs +14 -9
- package/dist/Card/index.mjs +14 -9
- package/dist/{Card-B75mPjgg.js → Card-HcBqd5bl.js} +3 -3
- package/dist/{Card-DnpvFNFf.js → Card-qRdHT4it.js} +3 -3
- package/dist/Checkbox/index.cjs +5 -5
- package/dist/Checkbox/index.mjs +5 -5
- package/dist/{Checkbox-Cl8Qx9Vd.js → Checkbox-BmIxzwJy.js} +4 -4
- package/dist/{Checkbox-DsXvXCv0.js → Checkbox-pBj01wYu.js} +4 -4
- package/dist/Chip/hooks/index.cjs +1 -1
- package/dist/Chip/hooks/index.mjs +1 -1
- package/dist/Chip/index.cjs +11 -11
- package/dist/Chip/index.mjs +11 -11
- package/dist/{Chip-DROLnlNN.js → Chip-BJcGRql9.js} +6 -6
- package/dist/{Chip-DkfZZWpt.js → Chip-CwyPp2kT.js} +6 -6
- package/dist/{ChipDismissible-ntaeeQCg.js → ChipDismissible-BPg1PGo7.js} +3 -3
- package/dist/{ChipDismissible-DeKm0cQf.js → ChipDismissible-BQbi1L1R.js} +3 -3
- package/dist/Chips/InternalChipDismissible/hooks/index.cjs +10 -10
- package/dist/Chips/InternalChipDismissible/hooks/index.mjs +10 -10
- package/dist/Chips/InternalChipDismissible/index.cjs +21 -21
- package/dist/Chips/InternalChipDismissible/index.mjs +21 -21
- package/dist/Chips/index.cjs +22 -22
- package/dist/Chips/index.mjs +22 -22
- package/dist/{Chips-4UaV-lKh.js → Chips-B5dBPw_v.js} +2 -2
- package/dist/{Chips-DP7SCJ-6.js → Chips-DrZX9GTo.js} +2 -2
- package/dist/Combobox/components/ComboboxAction/index.cjs +4 -4
- package/dist/Combobox/components/ComboboxAction/index.mjs +4 -4
- package/dist/Combobox/components/ComboboxActivator/index.cjs +13 -13
- package/dist/Combobox/components/ComboboxActivator/index.mjs +13 -13
- package/dist/Combobox/components/ComboboxContent/ComboboxContentHeader/index.cjs +4 -4
- package/dist/Combobox/components/ComboboxContent/ComboboxContentHeader/index.mjs +4 -4
- package/dist/Combobox/components/ComboboxContent/ComboboxContentList/index.cjs +14 -14
- package/dist/Combobox/components/ComboboxContent/ComboboxContentList/index.mjs +14 -14
- package/dist/Combobox/components/ComboboxContent/ComboboxContentSearch/index.cjs +2 -2
- package/dist/Combobox/components/ComboboxContent/ComboboxContentSearch/index.mjs +2 -2
- package/dist/Combobox/components/ComboboxContent/ComboboxLoadMore/index.cjs +2 -2
- package/dist/Combobox/components/ComboboxContent/ComboboxLoadMore/index.mjs +2 -2
- package/dist/Combobox/components/ComboboxContent/index.cjs +21 -21
- package/dist/Combobox/components/ComboboxContent/index.mjs +21 -21
- package/dist/Combobox/components/ComboboxOption/index.cjs +5 -5
- package/dist/Combobox/components/ComboboxOption/index.mjs +5 -5
- package/dist/Combobox/components/ComboboxTrigger/index.cjs +12 -12
- package/dist/Combobox/components/ComboboxTrigger/index.mjs +12 -12
- package/dist/Combobox/index.cjs +38 -38
- package/dist/Combobox/index.mjs +38 -38
- package/dist/{Combobox-NkRRDyzu.js → Combobox-6onsA50F.js} +9 -9
- package/dist/{Combobox-DKscCdCl.js → Combobox-BbymHKTR.js} +9 -9
- package/dist/{ComboboxAction-axl2mZXA.js → ComboboxAction-CduUot_a.js} +2 -2
- package/dist/{ComboboxAction-Dr-3NFmZ.js → ComboboxAction-DMd5mAk3.js} +2 -2
- package/dist/{ComboboxActivator-C1nzwkF2.js → ComboboxActivator-CL6BxucI.js} +4 -4
- package/dist/{ComboboxActivator-C9zqCPbY.js → ComboboxActivator-pHoLvGwH.js} +4 -4
- package/dist/{ComboboxContent-Crx3zxVj.js → ComboboxContent-Bc0W_Cla.js} +7 -7
- package/dist/{ComboboxContent-D6G_EuLc.js → ComboboxContent-DaZ-XI6w.js} +7 -7
- package/dist/{ComboboxContentHeader-D9_eld6M.js → ComboboxContentHeader-CJmGa_Ti.js} +2 -2
- package/dist/{ComboboxContentHeader-CG6vrltw.js → ComboboxContentHeader-DKe27GUG.js} +2 -2
- package/dist/{ComboboxContentList-Cz54C9JA.js → ComboboxContentList-Bwb2nb9B.js} +6 -6
- package/dist/{ComboboxContentList-ArAynhfP.js → ComboboxContentList-_42unXYX.js} +6 -6
- package/dist/{ComboboxContentSearch-CTkqaWDI.js → ComboboxContentSearch-CP5LE4sk.js} +1 -1
- package/dist/{ComboboxContentSearch-DOMWMecc.js → ComboboxContentSearch-D_9CLX17.js} +1 -1
- package/dist/{ComboboxLoadMore-Dr952wo9.js → ComboboxLoadMore-C-z9Xfev.js} +1 -1
- package/dist/{ComboboxLoadMore-CccFqxJ2.js → ComboboxLoadMore-Dm95yCd7.js} +1 -1
- package/dist/{ComboboxOption-BvK6lgtD.js → ComboboxOption-BoLCcplT.js} +3 -3
- package/dist/{ComboboxOption-BvIGHlAt.js → ComboboxOption-LANkFoQZ.js} +3 -3
- package/dist/{ComboboxProvider-CeU1qidM.js → ComboboxProvider-Cd2SKUt0.js} +1 -1
- package/dist/{ComboboxProvider-BKMSEKYM.js → ComboboxProvider-DCNIrWaj.js} +1 -1
- package/dist/{ComboboxTrigger-CfXL3EI0.js → ComboboxTrigger-3RPDo_Y3.js} +4 -4
- package/dist/{ComboboxTrigger-BOHgYnYt.js → ComboboxTrigger-D6UprKRw.js} +4 -4
- package/dist/ConfirmationModal/index.cjs +17 -17
- package/dist/ConfirmationModal/index.mjs +17 -17
- package/dist/{ConfirmationModal-Bh38D4u0.js → ConfirmationModal-098r-9nd.js} +4 -4
- package/dist/{ConfirmationModal-BN0oF-Qe.js → ConfirmationModal-D_vaLXA2.js} +4 -4
- package/dist/Content/index.cjs +1 -1
- package/dist/Content/index.mjs +1 -1
- package/dist/Countdown/index.cjs +3 -3
- package/dist/Countdown/index.mjs +3 -3
- package/dist/{Countdown-DMRqvOe9.js → Countdown-6_kuvtUK.js} +1 -1
- package/dist/{Countdown-DSwNjN4C.js → Countdown-DhVnIU6I.js} +1 -1
- package/dist/DataDump/index.cjs +17 -12
- package/dist/DataDump/index.mjs +17 -12
- package/dist/{DataDump-DDrbMFRh.js → DataDump-8avC5l3_.js} +3 -3
- package/dist/{DataDump-Dd5FrERQ.js → DataDump-BKBwR0LA.js} +3 -3
- package/dist/DataList/components/DataListAction/index.cjs +4 -4
- package/dist/DataList/components/DataListAction/index.mjs +4 -4
- package/dist/DataList/components/DataListActions/index.cjs +29 -29
- package/dist/DataList/components/DataListActions/index.mjs +29 -29
- package/dist/DataList/components/DataListActionsMenu/index.cjs +7 -7
- package/dist/DataList/components/DataListActionsMenu/index.mjs +7 -7
- package/dist/DataList/components/DataListBulkActions/index.cjs +31 -31
- package/dist/DataList/components/DataListBulkActions/index.mjs +31 -31
- package/dist/DataList/components/DataListEmptyState/index.cjs +9 -9
- package/dist/DataList/components/DataListEmptyState/index.mjs +9 -9
- package/dist/DataList/components/DataListFilters/components/DataListSort/index.cjs +40 -40
- package/dist/DataList/components/DataListFilters/components/DataListSort/index.mjs +40 -40
- package/dist/DataList/components/DataListFilters/index.cjs +52 -52
- package/dist/DataList/components/DataListFilters/index.mjs +52 -52
- package/dist/DataList/components/DataListHeader/index.cjs +38 -38
- package/dist/DataList/components/DataListHeader/index.mjs +38 -38
- package/dist/DataList/components/DataListHeaderTile/components/index.cjs +4 -4
- package/dist/DataList/components/DataListHeaderTile/components/index.mjs +4 -4
- package/dist/DataList/components/DataListHeaderTile/index.cjs +11 -11
- package/dist/DataList/components/DataListHeaderTile/index.mjs +11 -11
- package/dist/DataList/components/DataListItem/components/DataListItemClickable/index.cjs +6 -6
- package/dist/DataList/components/DataListItem/components/DataListItemClickable/index.mjs +6 -6
- package/dist/DataList/components/DataListItem/index.cjs +37 -37
- package/dist/DataList/components/DataListItem/index.mjs +37 -37
- package/dist/DataList/components/DataListItemActions/index.cjs +30 -30
- package/dist/DataList/components/DataListItemActions/index.mjs +30 -30
- package/dist/DataList/components/DataListItemActionsOverflow/index.cjs +12 -12
- package/dist/DataList/components/DataListItemActionsOverflow/index.mjs +12 -12
- package/dist/DataList/components/DataListItems/index.cjs +38 -38
- package/dist/DataList/components/DataListItems/index.mjs +38 -38
- package/dist/DataList/components/DataListLayout/index.cjs +41 -41
- package/dist/DataList/components/DataListLayout/index.mjs +41 -41
- package/dist/DataList/components/DataListLayoutActions/DataListLayoutContext/index.cjs +1 -1
- package/dist/DataList/components/DataListLayoutActions/DataListLayoutContext/index.mjs +1 -1
- package/dist/DataList/components/DataListLayoutActions/index.cjs +20 -20
- package/dist/DataList/components/DataListLayoutActions/index.mjs +20 -20
- package/dist/DataList/components/DataListLoadMore/index.cjs +10 -10
- package/dist/DataList/components/DataListLoadMore/index.mjs +10 -10
- package/dist/DataList/components/DataListLoadingState/index.cjs +10 -10
- package/dist/DataList/components/DataListLoadingState/index.mjs +10 -10
- package/dist/DataList/components/DataListOverflowFade/index.cjs +2 -2
- package/dist/DataList/components/DataListOverflowFade/index.mjs +2 -2
- package/dist/DataList/components/DataListSearch/index.cjs +20 -19
- package/dist/DataList/components/DataListSearch/index.mjs +20 -19
- package/dist/DataList/components/DataListStatusBar/index.cjs +20 -20
- package/dist/DataList/components/DataListStatusBar/index.mjs +20 -20
- package/dist/DataList/components/DataListStickyHeader/index.cjs +2 -2
- package/dist/DataList/components/DataListStickyHeader/index.mjs +2 -2
- package/dist/DataList/components/DataListTags/index.cjs +4 -4
- package/dist/DataList/components/DataListTags/index.mjs +4 -4
- package/dist/DataList/components/DataListTotalCount/index.cjs +6 -6
- package/dist/DataList/components/DataListTotalCount/index.mjs +6 -6
- package/dist/DataList/context/DataListContext/index.cjs +3 -3
- package/dist/DataList/context/DataListContext/index.mjs +3 -3
- package/dist/DataList/context/DataListLayoutContext/index.cjs +3 -3
- package/dist/DataList/context/DataListLayoutContext/index.mjs +3 -3
- package/dist/DataList/index.cjs +83 -82
- package/dist/DataList/index.mjs +83 -82
- package/dist/{DataList-BbiYr2dP.js → DataList-CkK4g5ax.js} +21 -21
- package/dist/{DataList-wX2DuKhq.js → DataList-D9hbZRBY.js} +21 -21
- package/dist/{DataList.utils-Cb-GdoYU.js → DataList.utils-B1aHk56k.js} +8 -8
- package/dist/{DataList.utils-CRacKUjZ.js → DataList.utils-CHyPQuOO.js} +8 -8
- package/dist/{DataListAction-tMWjxKrG.js → DataListAction-BRg30UUL.js} +3 -3
- package/dist/{DataListAction-BT1fMsld.js → DataListAction-BSEwmLEZ.js} +3 -3
- package/dist/{DataListActions-e0cCYa1F.js → DataListActions-B218QAfG.js} +6 -6
- package/dist/{DataListActions-CImYUMJ2.js → DataListActions-DBL8zisY.js} +6 -6
- package/dist/{DataListActionsMenu-WHwI-9wz.js → DataListActionsMenu-CuqeO8zI.js} +5 -5
- package/dist/{DataListActionsMenu-C_Y7Vae9.js → DataListActionsMenu-Dox3LuPW.js} +5 -5
- package/dist/{DataListBulkActions-Ab7e3aKj.js → DataListBulkActions-BZywbVs4.js} +3 -3
- package/dist/{DataListBulkActions-DYB4b7hy.js → DataListBulkActions-D3S3DU-K.js} +3 -3
- package/dist/{DataListContext-DX01M_8T.js → DataListContext-DqC9evnz.js} +1 -1
- package/dist/{DataListContext-C7-QxBxQ.js → DataListContext-Dqx3K0VG.js} +1 -1
- package/dist/{DataListEmptyState-Dg56HbKf.js → DataListEmptyState-DxGP0S0f.js} +4 -4
- package/dist/{DataListEmptyState-BqWty8Xi.js → DataListEmptyState-opAK_CJ6.js} +4 -4
- package/dist/{DataListFilters-ZLURMNX7.js → DataListFilters-C9q-XiJ9.js} +5 -5
- package/dist/{DataListFilters-x_p7y5Bq.js → DataListFilters-CGLW2Ptd.js} +5 -5
- package/dist/{DataListHeader-gWGC_38M.js → DataListHeader-BNL0fNTe.js} +11 -11
- package/dist/{DataListHeader-CLBValme.js → DataListHeader-DAeJu2wf.js} +11 -11
- package/dist/{DataListHeaderTile-5GD9s-HU.js → DataListHeaderTile-6R7wIcmW.js} +5 -5
- package/dist/{DataListHeaderTile-Dl9Fjsmx.js → DataListHeaderTile-BgF0_tKD.js} +5 -5
- package/dist/{DataListItem-ecoU1VIJ.js → DataListItem-CECtcG6b.js} +10 -10
- package/dist/{DataListItem-TEbtqDZ7.js → DataListItem-DyxkgNzo.js} +10 -10
- package/dist/{DataListItemActions-DLaQ3DUr.js → DataListItemActions-BI7V1ua5.js} +2 -2
- package/dist/{DataListItemActions-DXPiT1O-.js → DataListItemActions-CLS52U-6.js} +2 -2
- package/dist/{DataListItemActionsOverflow-CB3_zRZo.js → DataListItemActionsOverflow-DlykDvwS.js} +3 -3
- package/dist/{DataListItemActionsOverflow-CQ04NLlJ.js → DataListItemActionsOverflow-WrTVbYS6.js} +3 -3
- package/dist/{DataListItemClickable-_kkeGVqB.js → DataListItemClickable-15JzP0EK.js} +3 -3
- package/dist/{DataListItemClickable-BE93EKIh.js → DataListItemClickable-C3nqv2nH.js} +3 -3
- package/dist/{DataListItems-CAVm57Kx.js → DataListItems-9QTR0qra.js} +3 -3
- package/dist/{DataListItems-MyBtf2mt.js → DataListItems-D8vOuil5.js} +3 -3
- package/dist/{DataListLayout-G94xEaFE.js → DataListLayout-BKn7LeYM.js} +3 -3
- package/dist/{DataListLayout-Ck89POPc.js → DataListLayout-BSW_6y5q.js} +3 -3
- package/dist/{DataListLayoutActions-BTfv06tr.js → DataListLayoutActions-BKh7TaTm.js} +4 -4
- package/dist/{DataListLayoutActions-Bd8MlHHW.js → DataListLayoutActions-DLnTxmLv.js} +4 -4
- package/dist/{DataListLayoutContext-p3P_SVPf.js → DataListLayoutContext-3NnPV11m.js} +1 -1
- package/dist/{DataListLayoutContext-B_iBzD5w.js → DataListLayoutContext-Cr0mKZSq.js} +1 -1
- package/dist/{DataListLoadMore-BTQymdNT.js → DataListLoadMore-CspO0Cvf.js} +5 -5
- package/dist/{DataListLoadMore-DxZN9Uma.js → DataListLoadMore-DrmDkzVx.js} +5 -5
- package/dist/{DataListLoadingState-BylAjj2H.js → DataListLoadingState-7zlAccyV.js} +3 -3
- package/dist/{DataListLoadingState-pbqPgJtU.js → DataListLoadingState-D8CSCXDX.js} +3 -3
- package/dist/{DataListOverflowFade-q3lSMImU.js → DataListOverflowFade-CBsKxqpP.js} +1 -1
- package/dist/{DataListOverflowFade-0C5k9p_6.js → DataListOverflowFade-pDtPfsGC.js} +1 -1
- package/dist/{DataListSearch-CpWO10Fw.js → DataListSearch-BVOu55Ej.js} +6 -6
- package/dist/{DataListSearch-Ct_-r6Pq.js → DataListSearch-DLcP8oas.js} +6 -6
- package/dist/{DataListSort-bGvzleoP.js → DataListSort-DoElcY_I.js} +6 -6
- package/dist/{DataListSort-B4zRw5W9.js → DataListSort-NZA0LfLQ.js} +6 -6
- package/dist/{DataListSortingOptions-D8XnZ23w.js → DataListSortingOptions-BWmGrWho.js} +3 -3
- package/dist/{DataListSortingOptions-CzG2cIRy.js → DataListSortingOptions-DGiDYBjD.js} +3 -3
- package/dist/{DataListStatusBar-BmZY2B9W.js → DataListStatusBar-BSGO3sDQ.js} +2 -2
- package/dist/{DataListStatusBar-D8jGbeN0.js → DataListStatusBar-DUi4VOah.js} +2 -2
- package/dist/{DataListStickyHeader-BBl-LnnX.js → DataListStickyHeader-UmpvXoPJ.js} +1 -1
- package/dist/{DataListStickyHeader-DNWr3Pah.js → DataListStickyHeader-y2XMi49S.js} +1 -1
- package/dist/{DataListTags-BkU47jtt.js → DataListTags-DmJD1gmL.js} +2 -2
- package/dist/{DataListTags-DoROlBDW.js → DataListTags-cfCfW6Wb.js} +2 -2
- package/dist/{DataListTotalCount-C9kxrPpV.js → DataListTotalCount-BzApF3dE.js} +2 -2
- package/dist/{DataListTotalCount-C2kmv-Q-.js → DataListTotalCount-FqEKm84k.js} +2 -2
- package/dist/DataTable/index.cjs +19 -18
- package/dist/DataTable/index.mjs +19 -18
- package/dist/DataTable/test-utilities/index.cjs +6 -6
- package/dist/DataTable/test-utilities/index.mjs +6 -6
- package/dist/{DataTable-DoksrPxv.js → DataTable-BmSHcM2X.js} +6 -6
- package/dist/{DataTable-ubxvCzjm.js → DataTable-DCDON1kb.js} +6 -6
- package/dist/DatePicker/index.cjs +14 -14
- package/dist/DatePicker/index.mjs +14 -14
- package/dist/{DatePicker-BX6N-I9U.js → DatePicker-COwqkbUH.js} +11 -11
- package/dist/{DatePicker-CqtKgLfW.js → DatePicker-Rj2Cvbff.js} +11 -11
- package/dist/{DayOfMonthSelect-IVGZ8bXI.js → DayOfMonthSelect-5AOjKjWR.js} +2 -2
- package/dist/{DayOfMonthSelect-DXRQoUOr.js → DayOfMonthSelect-AXr9-NYO.js} +2 -2
- package/dist/DescriptionList/index.cjs +2 -2
- package/dist/DescriptionList/index.mjs +2 -2
- package/dist/{DescriptionList-DN1C08_j.js → DescriptionList-Ca9xro37.js} +1 -1
- package/dist/{DescriptionList-CYw8qRf8.js → DescriptionList-Cn1K-3zb.js} +1 -1
- package/dist/Disclosure/index.cjs +8 -8
- package/dist/Disclosure/index.mjs +8 -8
- package/dist/{Disclosure-CaWaw5sc.js → Disclosure-B-0mGLWv.js} +3 -3
- package/dist/{Disclosure-B9RpHpd_.js → Disclosure-DU-xSbuR.js} +3 -3
- package/dist/Divider/index.cjs +1 -1
- package/dist/Divider/index.mjs +1 -1
- package/dist/Drawer/index.cjs +6 -6
- package/dist/Drawer/index.mjs +6 -6
- package/dist/{DrawerGrid-Dm4eEN7V.js → DrawerGrid-BGuMyClP.js} +2 -2
- package/dist/{DrawerGrid-BIHQ8S4O.js → DrawerGrid-BRA9WZLS.js} +2 -2
- package/dist/Emphasis/index.cjs +2 -2
- package/dist/Emphasis/index.mjs +2 -2
- package/dist/{Emphasis-B7s_pXfF.js → Emphasis-BLl8oytx.js} +1 -1
- package/dist/{Emphasis-rqYK3scz.js → Emphasis-BdK8qXl1.js} +1 -1
- package/dist/FeatureSwitch/index.cjs +13 -13
- package/dist/FeatureSwitch/index.mjs +13 -13
- package/dist/{FeatureSwitch-CZ7zf98O.js → FeatureSwitch-BVngmaxd.js} +7 -7
- package/dist/{FeatureSwitch-BFQRDBPh.js → FeatureSwitch-DGP0XHTO.js} +7 -7
- package/dist/Flex/index.cjs +1 -1
- package/dist/Flex/index.mjs +1 -1
- package/dist/Form/index.cjs +2 -2
- package/dist/Form/index.mjs +2 -2
- package/dist/{Form-C-Gq2ns4.js → Form-CbJS9ASz.js} +1 -1
- package/dist/{Form-DdVpYYjE.js → Form-PWzwAMLp.js} +1 -1
- package/dist/FormField/hooks/useActiveElement.d.ts +1 -0
- package/dist/FormField/hooks/useFormFieldFocus.d.ts +3 -0
- package/dist/FormField/index.cjs +9 -8
- package/dist/FormField/index.mjs +9 -8
- package/dist/{FormField-YO8DQtt_.js → FormField-B6gtEPtt.js} +8 -37
- package/dist/{FormField-BpUiILdR.js → FormField-BHQLEzCU.js} +8 -37
- package/dist/FormatDate/index.cjs +1 -1
- package/dist/FormatDate/index.mjs +1 -1
- package/dist/FormatEmail/index.cjs +1 -1
- package/dist/FormatEmail/index.mjs +1 -1
- package/dist/FormatFile/index.cjs +21 -21
- package/dist/FormatFile/index.mjs +21 -21
- package/dist/{FormatFile-FYUtZWW5.js → FormatFile-C0dhBNz7.js} +7 -7
- package/dist/{FormatFile-BzgQ6Thq.js → FormatFile-DNQwGv9w.js} +7 -7
- package/dist/FormatRelativeDateTime/index.cjs +1 -1
- package/dist/FormatRelativeDateTime/index.mjs +1 -1
- package/dist/FormatTime/index.cjs +1 -1
- package/dist/FormatTime/index.mjs +1 -1
- package/dist/Gallery/index.cjs +28 -28
- package/dist/Gallery/index.mjs +28 -28
- package/dist/{Gallery-v5W2CBCN.js → Gallery-BDfA6efd.js} +3 -3
- package/dist/{Gallery-BKMFdOe7.js → Gallery-BT21eudl.js} +3 -3
- package/dist/Glimmer/index.cjs +3 -3
- package/dist/Glimmer/index.mjs +3 -3
- package/dist/{Glimmer-d2Ls3N7X.js → Glimmer-6P5ZENtk.js} +2 -2
- package/dist/{Glimmer-HLan4aE9.js → Glimmer-l_4rJ-gP.js} +2 -2
- package/dist/Grid/InternalGridCell/index.cjs +1 -1
- package/dist/Grid/InternalGridCell/index.mjs +1 -1
- package/dist/Grid/index.cjs +5 -5
- package/dist/Grid/index.mjs +5 -5
- package/dist/{Grid-DVjdEXDC.js → Grid-CbDR8shF.js} +2 -2
- package/dist/{Grid-DhyE7GQD.js → Grid-Ce_w6KUT.js} +2 -2
- package/dist/Heading/index.cjs +2 -2
- package/dist/Heading/index.mjs +2 -2
- package/dist/{Heading-CwuPVgr5.js → Heading-Bomfxc8C.js} +1 -1
- package/dist/{Heading-6-mTrGYn.js → Heading-Cv_fJEXA.js} +1 -1
- package/dist/Icon/index.cjs +1 -1
- package/dist/Icon/index.mjs +1 -1
- package/dist/InlineLabel/index.cjs +2 -2
- package/dist/InlineLabel/index.mjs +2 -2
- package/dist/{InlineLabel-BzuEDiYa.js → InlineLabel-B2G_aD3c.js} +2 -2
- package/dist/{InlineLabel-mhjO5ZQv.js → InlineLabel-CasZgQGX.js} +2 -2
- package/dist/InputAvatar/index.cjs +13 -13
- package/dist/InputAvatar/index.mjs +13 -13
- package/dist/{InputAvatar-BM6MgJcm.js → InputAvatar-B8Gh2kaB.js} +5 -5
- package/dist/{InputAvatar-DRWH0Xoz.js → InputAvatar-VRG-mXRO.js} +5 -5
- package/dist/InputDate/index.cjs +21 -20
- package/dist/InputDate/index.mjs +21 -20
- package/dist/{InputDate-ldE1N0Eb.js → InputDate-DWMoT-x-.js} +2 -2
- package/dist/{InputDate-DJMPcBrx.js → InputDate-sQ4VCRKi.js} +2 -2
- package/dist/InputEmail/index.cjs +10 -9
- package/dist/InputEmail/index.mjs +10 -9
- package/dist/{InputEmail-AEdusCM3.js → InputEmail-CiLGPqML.js} +1 -1
- package/dist/{InputEmail-KFiHXmfH.js → InputEmail-Cy1bO6Ay.js} +1 -1
- package/dist/InputFile/index.cjs +10 -10
- package/dist/InputFile/index.mjs +10 -10
- package/dist/{InputFile-DB4lktK_.js → InputFile-BFbjLict.js} +6 -6
- package/dist/{InputFile-tdxx2zAL.js → InputFile-CcZ8VBx8.js} +6 -6
- package/dist/InputGroup/index.cjs +1 -1
- package/dist/InputGroup/index.mjs +1 -1
- package/dist/InputNumber/index.cjs +10 -9
- package/dist/InputNumber/index.mjs +10 -9
- package/dist/{InputNumber-CK5DQeh9.js → InputNumber-Bk2hETgI.js} +1 -1
- package/dist/{InputNumber-Cr0dP1GY.js → InputNumber-DLGHR8Qt.js} +1 -1
- package/dist/InputPassword/index.cjs +10 -9
- package/dist/InputPassword/index.mjs +10 -9
- package/dist/{InputPassword-D40jAsie.js → InputPassword-BpBqZ8Js.js} +1 -1
- package/dist/{InputPassword-B7XKjMC0.js → InputPassword-JXkg7o9l.js} +1 -1
- package/dist/InputPhoneNumber/index.cjs +10 -9
- package/dist/InputPhoneNumber/index.mjs +10 -9
- package/dist/{InputPhoneNumber-CCgzHoQT.js → InputPhoneNumber-C0gHuYba.js} +2 -2
- package/dist/{InputPhoneNumber-DBmzcPwv.js → InputPhoneNumber-DH1pkgQE.js} +2 -2
- package/dist/InputText/index.cjs +11 -10
- package/dist/InputText/index.mjs +11 -10
- package/dist/{InputText-DuA6w6bp.js → InputText-D8U5hn-M.js} +2 -2
- package/dist/{InputText-BLZEr_S8.js → InputText-waONyOOj.js} +2 -2
- package/dist/InputTime/index.cjs +14 -13
- package/dist/InputTime/index.mjs +14 -13
- package/dist/{InputTime-BKFwJxu2.js → InputTime-DFQUG1en.js} +3 -3
- package/dist/{InputTime-BNGH8lcS.js → InputTime-DkNp6i_8.js} +3 -3
- package/dist/InputValidation/index.cjs +4 -4
- package/dist/InputValidation/index.mjs +4 -4
- package/dist/{InputValidation-DI6x2kui.js → InputValidation-BY7R422w.js} +2 -2
- package/dist/{InputValidation-Dk24wBG1.js → InputValidation-vABVp4T-.js} +2 -2
- package/dist/{InternalChipDismissible-8Hguwsfr.js → InternalChipDismissible-D0WqWGBN.js} +11 -11
- package/dist/{InternalChipDismissible-DVcspyqc.js → InternalChipDismissible-QtZ7HEHo.js} +11 -11
- package/dist/LightBox/index.cjs +14 -14
- package/dist/LightBox/index.mjs +14 -14
- package/dist/{LightBox-CF2mfqu5.js → LightBox-8lRRhQwb.js} +7 -7
- package/dist/{LightBox-BahuL5CD.js → LightBox-CXwMqdSk.js} +7 -7
- package/dist/Link/index.cjs +1 -1
- package/dist/Link/index.mjs +1 -1
- package/dist/List/index.cjs +17 -17
- package/dist/List/index.mjs +17 -17
- package/dist/{List-BaYZgdMw.js → List-CVJhi7fm.js} +10 -10
- package/dist/{List-fgYOEIKQ.js → List-nZCnwRgD.js} +10 -10
- package/dist/Markdown/index.cjs +9 -9
- package/dist/Markdown/index.mjs +9 -9
- package/dist/{Markdown-DB4vmyt5.js → Markdown-CdTWxGcg.js} +7 -7
- package/dist/{Markdown-BCIqKhfx.js → Markdown-Clla_B5H.js} +7 -7
- package/dist/Menu/Menu.d.ts +1 -5
- package/dist/Menu/index.cjs +12 -7
- package/dist/Menu/index.mjs +12 -7
- package/dist/Menu-hhjBdRlm.js +169 -0
- package/dist/Menu-xB_lfeB3.js +167 -0
- package/dist/Modal/index.cjs +9 -9
- package/dist/Modal/index.mjs +9 -9
- package/dist/{Modal-BrRObzVp.js → Modal-BMaZGyg5.js} +6 -6
- package/dist/{Modal-B3M5WO_v.js → Modal-Bw9yJMlJ.js} +6 -6
- package/dist/MultiSelect/index.cjs +6 -6
- package/dist/MultiSelect/index.mjs +6 -6
- package/dist/{MultiSelect-q-8xachK.js → MultiSelect-BQW7W0u1.js} +3 -3
- package/dist/{MultiSelect-lHRS3xrI.js → MultiSelect-cm6Hiaie.js} +3 -3
- package/dist/{Option-BSJCOkW4.js → Option-C_QxKJEW.js} +1 -1
- package/dist/{Option-Dsh8uzQA.js → Option-Cmc1FnSZ.js} +1 -1
- package/dist/Page/index.cjs +25 -20
- package/dist/Page/index.mjs +25 -20
- package/dist/{Page-DrEMf_Tk.js → Page-DNcT66BY.js} +8 -8
- package/dist/{Page-B0bq8Ca3.js → Page-quItOji7.js} +8 -8
- package/dist/Popover/index.cjs +6 -6
- package/dist/Popover/index.mjs +6 -6
- package/dist/{Popover-DwgJppv4.js → Popover-0WTvYzIS.js} +2 -2
- package/dist/{Popover-CB2YGe0S.js → Popover-DsXbqnoQ.js} +2 -2
- package/dist/ProgressBar/index.cjs +1 -1
- package/dist/ProgressBar/index.mjs +1 -1
- package/dist/RadioGroup/index.cjs +3 -3
- package/dist/RadioGroup/index.mjs +3 -3
- package/dist/{RadioGroup-D4AkFlzX.js → RadioGroup-BEFPYqUd.js} +1 -1
- package/dist/{RadioGroup-BDw6IOGf.js → RadioGroup-CjfW40pM.js} +1 -1
- package/dist/RecurringSelect/components/index.cjs +4 -4
- package/dist/RecurringSelect/components/index.mjs +4 -4
- package/dist/RecurringSelect/index.cjs +16 -15
- package/dist/RecurringSelect/index.mjs +16 -15
- package/dist/{RecurringSelect-B0BCP1dm.js → RecurringSelect-BbI_z1tz.js} +6 -6
- package/dist/{RecurringSelect-DJvUunJ7.js → RecurringSelect-DBDT3VSo.js} +6 -6
- package/dist/Select/index.cjs +10 -9
- package/dist/Select/index.mjs +10 -9
- package/dist/Spinner/index.cjs +1 -1
- package/dist/Spinner/index.mjs +1 -1
- package/dist/StatusIndicator/index.cjs +1 -1
- package/dist/StatusIndicator/index.mjs +1 -1
- package/dist/StatusLabel/index.cjs +3 -3
- package/dist/StatusLabel/index.mjs +3 -3
- package/dist/{StatusLabel-Bgl55qqX.js → StatusLabel-Bc29NxvI.js} +2 -2
- package/dist/{StatusLabel-DpGxTSR2.js → StatusLabel-Z3bP_uk6.js} +2 -2
- package/dist/Switch/index.cjs +2 -2
- package/dist/Switch/index.mjs +2 -2
- package/dist/{Switch-DlJI9t_g.js → Switch-DMRRjP2I.js} +1 -1
- package/dist/{Switch-C3yUH8HL.js → Switch-_HbcwwEs.js} +1 -1
- package/dist/Table/index.cjs +1 -1
- package/dist/Table/index.mjs +1 -1
- package/dist/Tabs/index.cjs +2 -2
- package/dist/Tabs/index.mjs +2 -2
- package/dist/{Tabs-CiqS3pW7.js → Tabs-BPIRQZV_.js} +1 -1
- package/dist/{Tabs-DFshoy6x.js → Tabs-QlK9CbP_.js} +1 -1
- package/dist/Text/index.cjs +2 -2
- package/dist/Text/index.mjs +2 -2
- package/dist/{Text-D2HgJ1es.js → Text-BUyNWFG_.js} +1 -1
- package/dist/{Text-6qi1GrIq.js → Text-DjjGujiC.js} +1 -1
- package/dist/Toast/index.cjs +3 -3
- package/dist/Toast/index.mjs +3 -3
- package/dist/Tooltip/index.cjs +3 -3
- package/dist/Tooltip/index.mjs +3 -3
- package/dist/{Tooltip-6YyPaLOr.js → Tooltip-B-Bt26yY.js} +2 -2
- package/dist/{Tooltip-DkrT3qhx.js → Tooltip-CbxDiuiK.js} +2 -2
- package/dist/Typography/css/TextCases.css.d.ts +1 -0
- package/dist/Typography/index.cjs +1 -1
- package/dist/Typography/index.mjs +1 -1
- package/dist/{Typography-DU-v_fu-.js → Typography-B89HQs_K.js} +1 -1
- package/dist/{Typography-DprtqbXU.js → Typography-D7uTtnuS.js} +1 -1
- package/dist/{_baseAssignValue-D-DOfBjo.js → _baseAssignValue-D1nQTdbc.js} +1 -1
- package/dist/{_baseAssignValue-C40GLTap.js → _baseAssignValue-DcX3aOaS.js} +1 -1
- package/dist/{_baseEach-CTtMh650.js → _baseEach-CaGPYt-5.js} +4 -4
- package/dist/{_baseEach-GXodrm6u.js → _baseEach-LJgzfE1B.js} +4 -4
- package/dist/{_defineProperty-D5mCEIE3.js → _defineProperty-C0gVyMXO.js} +3 -3
- package/dist/{_defineProperty-B9JS4gwM.js → _defineProperty-D4XY5ojv.js} +3 -3
- package/dist/{_getTag-4OBWTgkR.js → _getTag-BXNvpAcJ.js} +1 -1
- package/dist/{_getTag-DqlUEpfw.js → _getTag-BhkRtrtL.js} +1 -1
- package/dist/{_setToString-D5LwlokB.js → _setToString-COys9Lti.js} +3 -3
- package/dist/{_setToString-D7AUnAYM.js → _setToString-K1Va1_8m.js} +3 -3
- package/dist/{debounce-DpBY6Y74.js → debounce-CYRZ_34W.js} +3 -3
- package/dist/{debounce-eVVHkj9V.js → debounce-D9L_NtWb.js} +3 -3
- package/dist/{helpers-BaMU3om3.js → helpers-CRD4Urz-.js} +1 -1
- package/dist/{helpers-UE2GrFHx.js → helpers-XCN-9b-E.js} +1 -1
- package/dist/{index-CI-7cxgC.js → index-BlraAgf1.js} +1 -1
- package/dist/{index-7aLLJWAw.js → index-CLyvv20G.js} +1 -1
- package/dist/index.cjs +146 -145
- package/dist/index.mjs +146 -145
- package/dist/{isObjectLike-C2E9dNXw.js → isObjectLike-BO8lA4wb.js} +1 -1
- package/dist/{isObjectLike-CxakUwJW.js → isObjectLike-C1q80ak2.js} +1 -1
- package/dist/{isSymbol-VMwfWESs.js → isSymbol-BVPFaUw8.js} +1 -1
- package/dist/{isSymbol-DHxOiQvP.js → isSymbol-BhKcMs_1.js} +1 -1
- package/dist/{noop-Dy0d24FN.js → noop-Abw9dXST.js} +1 -1
- package/dist/{noop-DjNCsMG3.js → noop-lAzuHCiu.js} +1 -1
- package/dist/styles.css +378 -405
- package/dist/{useActiveLayout-B-R2hyQx.js → useActiveLayout-BFBibeZs.js} +2 -2
- package/dist/{useActiveLayout-B09qOgja.js → useActiveLayout-DS9qSPFV.js} +2 -2
- package/dist/{useAssert-BNS5yMaA.js → useAssert-BNi_d0o2.js} +2 -2
- package/dist/{useAssert-D2md9BwL.js → useAssert-c-FoMB7T.js} +2 -2
- package/dist/{useBatchSelect-D3w5302d.js → useBatchSelect-Byh2XLLU.js} +1 -1
- package/dist/{useBatchSelect-Cjx3BO4_.js → useBatchSelect-Z1Rg28ls.js} +1 -1
- package/dist/useFormFieldFocus-BmPPbO-e.js +60 -0
- package/dist/useFormFieldFocus-Bnt1vsIS.js +57 -0
- package/dist/{useIsMounted-DcXMPOwP.js → useIsMounted-Bd33slsf.js} +1 -1
- package/dist/{useIsMounted-C-iuFBhV.js → useIsMounted-D8XAjhll.js} +1 -1
- package/dist/{useResizeObserver-DGP1QA3C.js → useResizeObserver-DYarBxMp.js} +3 -3
- package/dist/{useResizeObserver-CB-drh-H.js → useResizeObserver-DyfGKgyY.js} +3 -3
- package/dist/{useResponsiveSizing-Dbpy5JSP.js → useResponsiveSizing-DiCANbq8.js} +1 -1
- package/dist/{useResponsiveSizing-C3dhsInh.js → useResponsiveSizing-Duxqhmht.js} +1 -1
- package/dist/{useScrollToActive-CeoErJXc.js → useScrollToActive-CPUR5Wvd.js} +9 -9
- package/dist/{useScrollToActive-BxiFPcUj.js → useScrollToActive-CSczp0XZ.js} +9 -9
- package/package.json +4 -4
- package/dist/Menu-AqB-Wq_3.js +0 -130
- package/dist/Menu-bEaZjYl5.js +0 -128
- /package/dist/{AnimatedPresence-BftfKlk2.js → AnimatedPresence-C1bn-Lsa.js} +0 -0
- /package/dist/{AnimatedPresence-CPOGEpI0.js → AnimatedPresence-Ddc7W_4b.js} +0 -0
- /package/dist/{AtlantisContext-D0nPZfZn.js → AtlantisContext-CBfTP2cK.js} +0 -0
- /package/dist/{AtlantisContext-hI0cHx8O.js → AtlantisContext-CTiiq98G.js} +0 -0
- /package/dist/{Body-C7o72A3_.js → Body-BnCSwoVW.js} +0 -0
- /package/dist/{Body-B5XM6rpj.js → Body-CU-SolEJ.js} +0 -0
- /package/dist/{Content-04xY4Rev.js → Content-OgtCK6Pd.js} +0 -0
- /package/dist/{Content-C3usRzve.js → Content-QXh29J09.js} +0 -0
- /package/dist/{DataList-DLYwj6i1.js → DataList-BYhWc9CR.js} +0 -0
- /package/dist/{DataList-DdLZnWqR.js → DataList-D8foiNnL.js} +0 -0
- /package/dist/{DataList.const-DqBFKF9G.js → DataList.const-CYgulUua.js} +0 -0
- /package/dist/{DataList.const-9Nw9_DNd.js → DataList.const-QAh22Cbm.js} +0 -0
- /package/dist/{DataListLayoutContext-CJywgB_2.js → DataListLayoutContext-DeYKislU.js} +0 -0
- /package/dist/{DataListLayoutContext-BBL8tWHL.js → DataListLayoutContext-Lli7XWhV.js} +0 -0
- /package/dist/{Divider-DiC6HZ_4.js → Divider-DDgpkZ8i.js} +0 -0
- /package/dist/{Divider-7ME8W5mB.js → Divider-E4iD5Wev.js} +0 -0
- /package/dist/{Flex-8MOip3Jm.js → Flex-CfrgVhPN.js} +0 -0
- /package/dist/{Flex-Cy07mmED.js → Flex-DsYPN87p.js} +0 -0
- /package/dist/{FormatDate-DqahKXMK.js → FormatDate-DPjl2GxX.js} +0 -0
- /package/dist/{FormatDate-CTUzF3Oo.js → FormatDate-lXZ_atxV.js} +0 -0
- /package/dist/{FormatEmail-BKLnTVgm.js → FormatEmail-C6-HjfYA.js} +0 -0
- /package/dist/{FormatEmail-CbWEmSml.js → FormatEmail-DToX4MzL.js} +0 -0
- /package/dist/{FormatRelativeDateTime-DdWx-hSi.js → FormatRelativeDateTime-BRhhl7lM.js} +0 -0
- /package/dist/{FormatRelativeDateTime-uppgqiOC.js → FormatRelativeDateTime-CHHH2fDp.js} +0 -0
- /package/dist/{FormatTime-CRMVDQ5w.js → FormatTime-Q_dP9BlW.js} +0 -0
- /package/dist/{FormatTime-C5Xqc3c2.js → FormatTime-eit-2TcO.js} +0 -0
- /package/dist/{Icon-DToqNtgb.js → Icon-ByeN2N4j.js} +0 -0
- /package/dist/{Icon-BABC7GCA.js → Icon-CxLh3sV5.js} +0 -0
- /package/dist/{InputGroup-CMNEshBX.js → InputGroup-C91g82sJ.js} +0 -0
- /package/dist/{InputGroup-B_FQuOPv.js → InputGroup-xY8jAOho.js} +0 -0
- /package/dist/{InternalGridCell-kHYlrf6I.js → InternalGridCell-CdLEerZ5.js} +0 -0
- /package/dist/{InternalGridCell-CBqKI0d0.js → InternalGridCell-HaOTgOB4.js} +0 -0
- /package/dist/{Link-B-rEGQgh.js → Link-DkKih6VQ.js} +0 -0
- /package/dist/{Link-UzmvyaeG.js → Link-X-0h28Ff.js} +0 -0
- /package/dist/{ProgressBar-DoaLcjkp.js → ProgressBar-CGAsvlGM.js} +0 -0
- /package/dist/{ProgressBar-Dr8O4EnR.js → ProgressBar-DV5KEPUg.js} +0 -0
- /package/dist/{Spinner-BqabpMRW.js → Spinner-8k3w2M3l.js} +0 -0
- /package/dist/{Spinner-juTCJQhz.js → Spinner-CVQaFopU.js} +0 -0
- /package/dist/{StatusIndicator-CqDvNVl5.js → StatusIndicator-BkSIph_P.js} +0 -0
- /package/dist/{StatusIndicator-DsH8yowH.js → StatusIndicator-cdYXXIE5.js} +0 -0
- /package/dist/{_commonjsHelpers-5E2fjcAW.js → _commonjsHelpers-DM1uXIwd.js} +0 -0
- /package/dist/{_commonjsHelpers-o0eFA8-x.js → _commonjsHelpers-yArcpwK5.js} +0 -0
- /package/dist/{_polyfill-node.process-DcolivrE.js → _polyfill-node.process-D-U-ZQmd.js} +0 -0
- /package/dist/{_polyfill-node.process-BQHuaIGb.js → _polyfill-node.process-DFLENVqw.js} +0 -0
- /package/dist/{tslib.es6-DgL278O_.js → tslib.es6-_w3f_AZk.js} +0 -0
- /package/dist/{tslib.es6-CAb4rsu-.js → tslib.es6-d1IXNIqz.js} +0 -0
- /package/dist/{useChildComponent-BxxPWjEX.js → useChildComponent-BDLzDqm1.js} +0 -0
- /package/dist/{useChildComponent-ByHinRcV.js → useChildComponent-DEP0X4sZ.js} +0 -0
- /package/dist/{useFocusTrap-UMYvVr-t.js → useFocusTrap-DD1lE_84.js} +0 -0
- /package/dist/{useFocusTrap-DH3q3E6Q.js → useFocusTrap-pp-WOxgx.js} +0 -0
- /package/dist/{useInView-BYBD_502.js → useInView-B33l1gpL.js} +0 -0
- /package/dist/{useInView-Am5OnqQq.js → useInView-BD7IeAYq.js} +0 -0
- /package/dist/{useOnKeyDown-DP-n369m.js → useOnKeyDown-9wUPziRK.js} +0 -0
- /package/dist/{useOnKeyDown-C18_84hX.js → useOnKeyDown-ULVBa2uf.js} +0 -0
- /package/dist/{useRefocusOnActivator-zcoExyQG.js → useRefocusOnActivator-Btdp0UjK.js} +0 -0
- /package/dist/{useRefocusOnActivator-DglpBGbZ.js → useRefocusOnActivator-CpBvvuoG.js} +0 -0
- /package/dist/{useSafeLayoutEffect-C1WkPGoj.js → useSafeLayoutEffect-DzsK4hpN.js} +0 -0
- /package/dist/{useSafeLayoutEffect-CaTU1pfk.js → useSafeLayoutEffect-ScSrs8an.js} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { u as useResponsiveSizing } from './useResponsiveSizing-
|
|
2
|
-
import { u as useDataListContext } from './DataListContext-
|
|
1
|
+
import { u as useResponsiveSizing } from './useResponsiveSizing-Duxqhmht.js';
|
|
2
|
+
import { u as useDataListContext } from './DataListContext-Dqx3K0VG.js';
|
|
3
3
|
|
|
4
4
|
function useActiveLayout() {
|
|
5
5
|
const { layoutBreakpoints, layouts } = useDataListContext();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var useResponsiveSizing = require('./useResponsiveSizing-
|
|
4
|
-
var DataListContext = require('./DataListContext-
|
|
3
|
+
var useResponsiveSizing = require('./useResponsiveSizing-DiCANbq8.js');
|
|
4
|
+
var DataListContext = require('./DataListContext-DqC9evnz.js');
|
|
5
5
|
|
|
6
6
|
function useActiveLayout() {
|
|
7
7
|
const { layoutBreakpoints, layouts } = DataListContext.useDataListContext();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var _commonjsHelpers = require('./_commonjsHelpers-
|
|
4
|
-
var _polyfillNode_process = require('./_polyfill-node.process-
|
|
3
|
+
var _commonjsHelpers = require('./_commonjsHelpers-DM1uXIwd.js');
|
|
4
|
+
var _polyfillNode_process = require('./_polyfill-node.process-D-U-ZQmd.js');
|
|
5
5
|
|
|
6
6
|
var useAssert$1 = {};
|
|
7
7
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as getAugmentedNamespace, c as commonjsGlobal } from './_commonjsHelpers-
|
|
2
|
-
import { _ as _polyfillNode_process } from './_polyfill-node.process-
|
|
1
|
+
import { a as getAugmentedNamespace, c as commonjsGlobal } from './_commonjsHelpers-yArcpwK5.js';
|
|
2
|
+
import { _ as _polyfillNode_process } from './_polyfill-node.process-DFLENVqw.js';
|
|
3
3
|
|
|
4
4
|
var useAssert$1 = {};
|
|
5
5
|
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var React = require('react');
|
|
4
|
+
|
|
5
|
+
function useActiveElement() {
|
|
6
|
+
const [active, setActive] = React.useState(document === null || document === void 0 ? void 0 : document.activeElement);
|
|
7
|
+
const handleFocusIn = () => {
|
|
8
|
+
setActive(document === null || document === void 0 ? void 0 : document.activeElement);
|
|
9
|
+
};
|
|
10
|
+
React.useEffect(() => {
|
|
11
|
+
document === null || document === void 0 ? void 0 : document.addEventListener("focusin", handleFocusIn);
|
|
12
|
+
return () => {
|
|
13
|
+
document === null || document === void 0 ? void 0 : document.removeEventListener("focusin", handleFocusIn);
|
|
14
|
+
};
|
|
15
|
+
}, []);
|
|
16
|
+
return active;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
const PORTAL_FOCUS_ATTRIBUTE_NAME = "data-atl-maintain-portal-focus";
|
|
20
|
+
const formFieldFocusAttribute = {
|
|
21
|
+
[PORTAL_FOCUS_ATTRIBUTE_NAME]: "true",
|
|
22
|
+
};
|
|
23
|
+
function useFormFieldFocus(props) {
|
|
24
|
+
var _a;
|
|
25
|
+
const [focused, setFocused] = React.useState(false);
|
|
26
|
+
const activeElement = useActiveElement();
|
|
27
|
+
const activeElementRef = React.useRef(activeElement);
|
|
28
|
+
React.useEffect(() => {
|
|
29
|
+
activeElementRef.current = activeElement;
|
|
30
|
+
}, [activeElement]);
|
|
31
|
+
function handleFocusIn() {
|
|
32
|
+
setFocused(true);
|
|
33
|
+
}
|
|
34
|
+
function handleFocusOut() {
|
|
35
|
+
setTimeout(() => {
|
|
36
|
+
var _a, _b, _c;
|
|
37
|
+
const focusedElementWithinWrapper = (_b = (_a = props.wrapperRef) === null || _a === void 0 ? void 0 : _a.current) === null || _b === void 0 ? void 0 : _b.contains(document.activeElement);
|
|
38
|
+
const focusException = (_c = activeElementRef.current) === null || _c === void 0 ? void 0 : _c.closest(`[${PORTAL_FOCUS_ATTRIBUTE_NAME}='true']`);
|
|
39
|
+
if (!focusedElementWithinWrapper && !focusException) {
|
|
40
|
+
setFocused(false);
|
|
41
|
+
}
|
|
42
|
+
}, 1);
|
|
43
|
+
}
|
|
44
|
+
React.useEffect(() => {
|
|
45
|
+
var _a, _b, _c, _d;
|
|
46
|
+
(_b = (_a = props.wrapperRef) === null || _a === void 0 ? void 0 : _a.current) === null || _b === void 0 ? void 0 : _b.addEventListener("focusin", handleFocusIn);
|
|
47
|
+
(_d = (_c = props.wrapperRef) === null || _c === void 0 ? void 0 : _c.current) === null || _d === void 0 ? void 0 : _d.addEventListener("focusout", handleFocusOut);
|
|
48
|
+
return () => {
|
|
49
|
+
var _a, _b, _c, _d;
|
|
50
|
+
(_b = (_a = props.wrapperRef) === null || _a === void 0 ? void 0 : _a.current) === null || _b === void 0 ? void 0 : _b.removeEventListener("focusin", handleFocusIn);
|
|
51
|
+
(_d = (_c = props.wrapperRef) === null || _c === void 0 ? void 0 : _c.current) === null || _d === void 0 ? void 0 : _d.removeEventListener("focusout", handleFocusOut);
|
|
52
|
+
};
|
|
53
|
+
}, [(_a = props.wrapperRef) === null || _a === void 0 ? void 0 : _a.current]);
|
|
54
|
+
return {
|
|
55
|
+
focused,
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
exports.formFieldFocusAttribute = formFieldFocusAttribute;
|
|
60
|
+
exports.useFormFieldFocus = useFormFieldFocus;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { useState, useEffect, useRef } from 'react';
|
|
2
|
+
|
|
3
|
+
function useActiveElement() {
|
|
4
|
+
const [active, setActive] = useState(document === null || document === void 0 ? void 0 : document.activeElement);
|
|
5
|
+
const handleFocusIn = () => {
|
|
6
|
+
setActive(document === null || document === void 0 ? void 0 : document.activeElement);
|
|
7
|
+
};
|
|
8
|
+
useEffect(() => {
|
|
9
|
+
document === null || document === void 0 ? void 0 : document.addEventListener("focusin", handleFocusIn);
|
|
10
|
+
return () => {
|
|
11
|
+
document === null || document === void 0 ? void 0 : document.removeEventListener("focusin", handleFocusIn);
|
|
12
|
+
};
|
|
13
|
+
}, []);
|
|
14
|
+
return active;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
const PORTAL_FOCUS_ATTRIBUTE_NAME = "data-atl-maintain-portal-focus";
|
|
18
|
+
const formFieldFocusAttribute = {
|
|
19
|
+
[PORTAL_FOCUS_ATTRIBUTE_NAME]: "true",
|
|
20
|
+
};
|
|
21
|
+
function useFormFieldFocus(props) {
|
|
22
|
+
var _a;
|
|
23
|
+
const [focused, setFocused] = useState(false);
|
|
24
|
+
const activeElement = useActiveElement();
|
|
25
|
+
const activeElementRef = useRef(activeElement);
|
|
26
|
+
useEffect(() => {
|
|
27
|
+
activeElementRef.current = activeElement;
|
|
28
|
+
}, [activeElement]);
|
|
29
|
+
function handleFocusIn() {
|
|
30
|
+
setFocused(true);
|
|
31
|
+
}
|
|
32
|
+
function handleFocusOut() {
|
|
33
|
+
setTimeout(() => {
|
|
34
|
+
var _a, _b, _c;
|
|
35
|
+
const focusedElementWithinWrapper = (_b = (_a = props.wrapperRef) === null || _a === void 0 ? void 0 : _a.current) === null || _b === void 0 ? void 0 : _b.contains(document.activeElement);
|
|
36
|
+
const focusException = (_c = activeElementRef.current) === null || _c === void 0 ? void 0 : _c.closest(`[${PORTAL_FOCUS_ATTRIBUTE_NAME}='true']`);
|
|
37
|
+
if (!focusedElementWithinWrapper && !focusException) {
|
|
38
|
+
setFocused(false);
|
|
39
|
+
}
|
|
40
|
+
}, 1);
|
|
41
|
+
}
|
|
42
|
+
useEffect(() => {
|
|
43
|
+
var _a, _b, _c, _d;
|
|
44
|
+
(_b = (_a = props.wrapperRef) === null || _a === void 0 ? void 0 : _a.current) === null || _b === void 0 ? void 0 : _b.addEventListener("focusin", handleFocusIn);
|
|
45
|
+
(_d = (_c = props.wrapperRef) === null || _c === void 0 ? void 0 : _c.current) === null || _d === void 0 ? void 0 : _d.addEventListener("focusout", handleFocusOut);
|
|
46
|
+
return () => {
|
|
47
|
+
var _a, _b, _c, _d;
|
|
48
|
+
(_b = (_a = props.wrapperRef) === null || _a === void 0 ? void 0 : _a.current) === null || _b === void 0 ? void 0 : _b.removeEventListener("focusin", handleFocusIn);
|
|
49
|
+
(_d = (_c = props.wrapperRef) === null || _c === void 0 ? void 0 : _c.current) === null || _d === void 0 ? void 0 : _d.removeEventListener("focusout", handleFocusOut);
|
|
50
|
+
};
|
|
51
|
+
}, [(_a = props.wrapperRef) === null || _a === void 0 ? void 0 : _a.current]);
|
|
52
|
+
return {
|
|
53
|
+
focused,
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export { formFieldFocusAttribute as f, useFormFieldFocus as u };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as getAugmentedNamespace, c as commonjsGlobal, g as getDefaultExportFromCjs } from './_commonjsHelpers-
|
|
1
|
+
import { a as getAugmentedNamespace, c as commonjsGlobal, g as getDefaultExportFromCjs } from './_commonjsHelpers-yArcpwK5.js';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { a as debounce_1 } from './debounce-
|
|
4
|
-
import { b as isObject_1 } from './isObjectLike-
|
|
3
|
+
import { a as debounce_1 } from './debounce-D9L_NtWb.js';
|
|
4
|
+
import { b as isObject_1 } from './isObjectLike-BO8lA4wb.js';
|
|
5
5
|
|
|
6
6
|
function _mergeNamespaces(n, m) {
|
|
7
7
|
m.forEach(function (e) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var _commonjsHelpers = require('./_commonjsHelpers-
|
|
3
|
+
var _commonjsHelpers = require('./_commonjsHelpers-DM1uXIwd.js');
|
|
4
4
|
var React = require('react');
|
|
5
|
-
var debounce$1 = require('./debounce-
|
|
6
|
-
var isObjectLike = require('./isObjectLike-
|
|
5
|
+
var debounce$1 = require('./debounce-CYRZ_34W.js');
|
|
6
|
+
var isObjectLike = require('./isObjectLike-C1q80ak2.js');
|
|
7
7
|
|
|
8
8
|
function _mergeNamespaces(n, m) {
|
|
9
9
|
m.forEach(function (e) {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var React = require('react');
|
|
4
|
-
var _commonjsHelpers = require('./_commonjsHelpers-
|
|
5
|
-
var _setToString = require('./_setToString-
|
|
6
|
-
var _defineProperty = require('./_defineProperty-
|
|
7
|
-
var _baseEach = require('./_baseEach-
|
|
8
|
-
var _getTag = require('./_getTag-
|
|
9
|
-
var isSymbol$1 = require('./isSymbol-
|
|
10
|
-
var isObjectLike = require('./isObjectLike-
|
|
11
|
-
var debounce = require('./debounce-
|
|
12
|
-
var Icon = require('./Icon-
|
|
4
|
+
var _commonjsHelpers = require('./_commonjsHelpers-DM1uXIwd.js');
|
|
5
|
+
var _setToString = require('./_setToString-COys9Lti.js');
|
|
6
|
+
var _defineProperty = require('./_defineProperty-C0gVyMXO.js');
|
|
7
|
+
var _baseEach = require('./_baseEach-CaGPYt-5.js');
|
|
8
|
+
var _getTag = require('./_getTag-BXNvpAcJ.js');
|
|
9
|
+
var isSymbol$1 = require('./isSymbol-BhKcMs_1.js');
|
|
10
|
+
var isObjectLike = require('./isObjectLike-C1q80ak2.js');
|
|
11
|
+
var debounce = require('./debounce-CYRZ_34W.js');
|
|
12
|
+
var Icon = require('./Icon-ByeN2N4j.js');
|
|
13
13
|
var reactPopper = require('react-popper');
|
|
14
14
|
|
|
15
15
|
var baseEach = _baseEach._baseEach,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import React, { useRef, useId, useState, useEffect } from 'react';
|
|
2
|
-
import { g as getDefaultExportFromCjs } from './_commonjsHelpers-
|
|
3
|
-
import { _ as _overRest, a as _setToString, b as _baseFlatten } from './_setToString-
|
|
4
|
-
import { b as _arrayMap, c as _baseGet, i as identity_1, e as eq_1, d as _isIndex } from './_defineProperty-
|
|
5
|
-
import { _ as _baseEach, a as _baseIteratee } from './_baseEach-
|
|
6
|
-
import { c as isArrayLike_1, g as _baseUnary, b as isArray_1 } from './_getTag-
|
|
7
|
-
import { i as isSymbol_1 } from './isSymbol-
|
|
8
|
-
import { b as isObject_1 } from './isObjectLike-
|
|
9
|
-
import { d as debounce } from './debounce-
|
|
10
|
-
import { I as Icon } from './Icon-
|
|
2
|
+
import { g as getDefaultExportFromCjs } from './_commonjsHelpers-yArcpwK5.js';
|
|
3
|
+
import { _ as _overRest, a as _setToString, b as _baseFlatten } from './_setToString-K1Va1_8m.js';
|
|
4
|
+
import { b as _arrayMap, c as _baseGet, i as identity_1, e as eq_1, d as _isIndex } from './_defineProperty-D4XY5ojv.js';
|
|
5
|
+
import { _ as _baseEach, a as _baseIteratee } from './_baseEach-LJgzfE1B.js';
|
|
6
|
+
import { c as isArrayLike_1, g as _baseUnary, b as isArray_1 } from './_getTag-BhkRtrtL.js';
|
|
7
|
+
import { i as isSymbol_1 } from './isSymbol-BVPFaUw8.js';
|
|
8
|
+
import { b as isObject_1 } from './isObjectLike-BO8lA4wb.js';
|
|
9
|
+
import { d as debounce } from './debounce-D9L_NtWb.js';
|
|
10
|
+
import { I as Icon } from './Icon-CxLh3sV5.js';
|
|
11
11
|
import { usePopper } from 'react-popper';
|
|
12
12
|
|
|
13
13
|
var baseEach = _baseEach,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jobber/components",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.4.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -402,9 +402,9 @@
|
|
|
402
402
|
"dist/*"
|
|
403
403
|
],
|
|
404
404
|
"dependencies": {
|
|
405
|
-
"@jobber/design": "^0.
|
|
405
|
+
"@jobber/design": "^0.59.0",
|
|
406
406
|
"@jobber/formatters": "^0.3.0",
|
|
407
|
-
"@jobber/hooks": "^2.9.
|
|
407
|
+
"@jobber/hooks": "^2.9.6",
|
|
408
408
|
"@popperjs/core": "^2.0.6",
|
|
409
409
|
"@std-proposal/temporal": "0.0.1",
|
|
410
410
|
"@tanstack/react-table": "8.5.13",
|
|
@@ -482,5 +482,5 @@
|
|
|
482
482
|
"> 1%",
|
|
483
483
|
"IE 10"
|
|
484
484
|
],
|
|
485
|
-
"gitHead": "
|
|
485
|
+
"gitHead": "c2a1e8367d831e492cbf7f194ccb05cdc7f705fa"
|
|
486
486
|
}
|
package/dist/Menu-AqB-Wq_3.js
DELETED
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var React = require('react');
|
|
4
|
-
var classnames = require('classnames');
|
|
5
|
-
var framerMotion = require('framer-motion');
|
|
6
|
-
var useOnKeyDown = require('./useOnKeyDown-DP-n369m.js');
|
|
7
|
-
var useRefocusOnActivator = require('./useRefocusOnActivator-zcoExyQG.js');
|
|
8
|
-
var useSafeLayoutEffect = require('./useSafeLayoutEffect-C1WkPGoj.js');
|
|
9
|
-
var Button = require('./Button-TMPCBi5z.js');
|
|
10
|
-
var Typography = require('./Typography-DU-v_fu-.js');
|
|
11
|
-
var Icon = require('./Icon-DToqNtgb.js');
|
|
12
|
-
|
|
13
|
-
var styles = {"wrapper":"dT6M9tp1sZc-","menu":"Qmxlsj0D3qM-","above":"QTisUfiHwL4-","below":"qsch1dlpOHc-","left":"_0xR9-oxWMOU-","right":"gaZwsdyoG0k-","section":"LaKFjYCLHZc-","sectionHeader":"_7HB7dWnqCi0-","action":"ZuceCiefKqw-","overlay":"eKnUAucwwWU-","fullWidth":"oaxefr58z-E-","screenReaderOnly":"vz9opIdwHFg-"};
|
|
14
|
-
|
|
15
|
-
const variation = {
|
|
16
|
-
overlayStartStop: { opacity: 0 },
|
|
17
|
-
startOrStop: (position) => {
|
|
18
|
-
let y = 10;
|
|
19
|
-
if (position === "below")
|
|
20
|
-
y *= -1;
|
|
21
|
-
if (window.innerWidth < 640)
|
|
22
|
-
y = 150;
|
|
23
|
-
return { opacity: 0, y };
|
|
24
|
-
},
|
|
25
|
-
done: { opacity: 1, y: 0 },
|
|
26
|
-
};
|
|
27
|
-
// eslint-disable-next-line max-statements
|
|
28
|
-
function Menu({ activator, items }) {
|
|
29
|
-
var _a;
|
|
30
|
-
const [visible, setVisible] = React.useState(false);
|
|
31
|
-
const fullWidth = ((_a = activator === null || activator === void 0 ? void 0 : activator.props) === null || _a === void 0 ? void 0 : _a.fullWidth) || false;
|
|
32
|
-
const [position, setPosition] = React.useState({
|
|
33
|
-
vertical: "below",
|
|
34
|
-
horizontal: "right",
|
|
35
|
-
});
|
|
36
|
-
const wrapperRef = React.createRef();
|
|
37
|
-
const buttonID = React.useId();
|
|
38
|
-
const menuID = React.useId();
|
|
39
|
-
useOnKeyDown.useOnKeyDown_2(handleKeyboardShortcut, ["Escape"]);
|
|
40
|
-
useSafeLayoutEffect.useSafeLayoutEffect_1(() => {
|
|
41
|
-
if (wrapperRef.current) {
|
|
42
|
-
const bounds = wrapperRef.current.getBoundingClientRect();
|
|
43
|
-
const newPosition = Object.assign({}, position);
|
|
44
|
-
if (bounds.top <= window.innerHeight / 2) {
|
|
45
|
-
newPosition.vertical = "below";
|
|
46
|
-
}
|
|
47
|
-
else {
|
|
48
|
-
newPosition.vertical = "above";
|
|
49
|
-
}
|
|
50
|
-
if (bounds.left <= window.innerWidth / 2) {
|
|
51
|
-
newPosition.horizontal = "right";
|
|
52
|
-
}
|
|
53
|
-
else {
|
|
54
|
-
newPosition.horizontal = "left";
|
|
55
|
-
}
|
|
56
|
-
setPosition(newPosition);
|
|
57
|
-
}
|
|
58
|
-
}, [visible, fullWidth]);
|
|
59
|
-
useRefocusOnActivator.useRefocusOnActivator_2(visible);
|
|
60
|
-
if (!activator) {
|
|
61
|
-
activator = (React.createElement(Button.Button, { fullWidth: true, label: "More Actions", icon: "more", type: "secondary" }));
|
|
62
|
-
}
|
|
63
|
-
const menuClasses = classnames(styles.menu, position.vertical === "above" && styles.above, position.vertical === "below" && styles.below, position.horizontal === "left" && styles.left, position.horizontal === "right" && styles.right);
|
|
64
|
-
const wrapperClasses = classnames(styles.wrapper, {
|
|
65
|
-
[styles.fullWidth]: fullWidth,
|
|
66
|
-
});
|
|
67
|
-
return (React.createElement("div", { className: wrapperClasses, ref: wrapperRef, onClick: handleParentClick },
|
|
68
|
-
React.cloneElement(activator, {
|
|
69
|
-
onClick: toggle(activator.props.onClick),
|
|
70
|
-
id: buttonID,
|
|
71
|
-
ariaControls: menuID,
|
|
72
|
-
ariaExpanded: visible,
|
|
73
|
-
ariaHaspopup: true,
|
|
74
|
-
}),
|
|
75
|
-
React.createElement(framerMotion.AnimatePresence, null, visible && (React.createElement(React.Fragment, null,
|
|
76
|
-
React.createElement(framerMotion.motion.div, { className: styles.overlay, onClick: toggle(), variants: variation, initial: "overlayStartStop", animate: "done", exit: "overlayStartStop", transition: {
|
|
77
|
-
type: "tween",
|
|
78
|
-
duration: 0.15,
|
|
79
|
-
} }),
|
|
80
|
-
React.createElement(framerMotion.motion.div, { className: menuClasses, role: "menu", "aria-labelledby": buttonID, id: menuID, onClick: hide, variants: variation, initial: "startOrStop", animate: "done", exit: "startOrStop", custom: position, transition: {
|
|
81
|
-
type: "tween",
|
|
82
|
-
duration: 0.25,
|
|
83
|
-
} }, items.map((item, key) => (React.createElement("div", { key: key, className: styles.section },
|
|
84
|
-
item.header && React.createElement(SectionHeader, { text: item.header }),
|
|
85
|
-
item.actions.map((action, index) => (React.createElement(Action, Object.assign({ sectionLabel: item.header, key: action.label, shouldFocus: key === 0 && index === 0 }, action)))))))))))));
|
|
86
|
-
function toggle(callbackPassthrough) {
|
|
87
|
-
return (event) => {
|
|
88
|
-
setVisible(!visible);
|
|
89
|
-
callbackPassthrough && callbackPassthrough(event);
|
|
90
|
-
};
|
|
91
|
-
}
|
|
92
|
-
function hide() {
|
|
93
|
-
setVisible(false);
|
|
94
|
-
}
|
|
95
|
-
function handleKeyboardShortcut(event) {
|
|
96
|
-
const { key } = event;
|
|
97
|
-
if (!visible)
|
|
98
|
-
return;
|
|
99
|
-
event.preventDefault();
|
|
100
|
-
event.stopPropagation();
|
|
101
|
-
key === "Escape" && hide();
|
|
102
|
-
}
|
|
103
|
-
function handleParentClick(event) {
|
|
104
|
-
// Since the menu is being rendered within the same parent as the activator,
|
|
105
|
-
// we need to stop the click event from bubbling up. If the Menu component
|
|
106
|
-
// gets added within a parent that has a click handler, any click on the
|
|
107
|
-
// menu will trigger the parent's click handler.
|
|
108
|
-
event.stopPropagation();
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
function SectionHeader({ text }) {
|
|
112
|
-
return (React.createElement("div", { className: styles.sectionHeader, "aria-hidden": true },
|
|
113
|
-
React.createElement(Typography.Typography, { element: "h6", size: "base", textColor: "textSecondary", fontWeight: "regular" }, text)));
|
|
114
|
-
}
|
|
115
|
-
function Action({ label, sectionLabel, icon, onClick, shouldFocus = false, }) {
|
|
116
|
-
const actionButtonRef = React.useRef();
|
|
117
|
-
React.useEffect(() => {
|
|
118
|
-
if (shouldFocus) {
|
|
119
|
-
// Focus on the next tick to allow useRefocusOnActivator to initialize
|
|
120
|
-
setTimeout(() => { var _a; return (_a = actionButtonRef.current) === null || _a === void 0 ? void 0 : _a.focus(); }, 0);
|
|
121
|
-
}
|
|
122
|
-
}, [shouldFocus]);
|
|
123
|
-
return (React.createElement("button", { role: "menuitem", type: "button", className: styles.action, key: label, onClick: onClick, ref: actionButtonRef },
|
|
124
|
-
icon && React.createElement(Icon.Icon, { name: icon }),
|
|
125
|
-
React.createElement(Typography.Typography, { element: "span", fontWeight: "semiBold", textColor: "textSecondary" },
|
|
126
|
-
sectionLabel && (React.createElement("span", { className: styles.screenReaderOnly }, sectionLabel)),
|
|
127
|
-
label)));
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
exports.Menu = Menu;
|
package/dist/Menu-bEaZjYl5.js
DELETED
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
import React, { useState, createRef, useId, useRef, useEffect } from 'react';
|
|
2
|
-
import classnames from 'classnames';
|
|
3
|
-
import { AnimatePresence, motion } from 'framer-motion';
|
|
4
|
-
import { u as useOnKeyDown_2 } from './useOnKeyDown-C18_84hX.js';
|
|
5
|
-
import { u as useRefocusOnActivator_2 } from './useRefocusOnActivator-DglpBGbZ.js';
|
|
6
|
-
import { u as useSafeLayoutEffect_1 } from './useSafeLayoutEffect-CaTU1pfk.js';
|
|
7
|
-
import { B as Button } from './Button-Bjdb1YXG.js';
|
|
8
|
-
import { T as Typography } from './Typography-DprtqbXU.js';
|
|
9
|
-
import { I as Icon } from './Icon-BABC7GCA.js';
|
|
10
|
-
|
|
11
|
-
var styles = {"wrapper":"dT6M9tp1sZc-","menu":"Qmxlsj0D3qM-","above":"QTisUfiHwL4-","below":"qsch1dlpOHc-","left":"_0xR9-oxWMOU-","right":"gaZwsdyoG0k-","section":"LaKFjYCLHZc-","sectionHeader":"_7HB7dWnqCi0-","action":"ZuceCiefKqw-","overlay":"eKnUAucwwWU-","fullWidth":"oaxefr58z-E-","screenReaderOnly":"vz9opIdwHFg-"};
|
|
12
|
-
|
|
13
|
-
const variation = {
|
|
14
|
-
overlayStartStop: { opacity: 0 },
|
|
15
|
-
startOrStop: (position) => {
|
|
16
|
-
let y = 10;
|
|
17
|
-
if (position === "below")
|
|
18
|
-
y *= -1;
|
|
19
|
-
if (window.innerWidth < 640)
|
|
20
|
-
y = 150;
|
|
21
|
-
return { opacity: 0, y };
|
|
22
|
-
},
|
|
23
|
-
done: { opacity: 1, y: 0 },
|
|
24
|
-
};
|
|
25
|
-
// eslint-disable-next-line max-statements
|
|
26
|
-
function Menu({ activator, items }) {
|
|
27
|
-
var _a;
|
|
28
|
-
const [visible, setVisible] = useState(false);
|
|
29
|
-
const fullWidth = ((_a = activator === null || activator === void 0 ? void 0 : activator.props) === null || _a === void 0 ? void 0 : _a.fullWidth) || false;
|
|
30
|
-
const [position, setPosition] = useState({
|
|
31
|
-
vertical: "below",
|
|
32
|
-
horizontal: "right",
|
|
33
|
-
});
|
|
34
|
-
const wrapperRef = createRef();
|
|
35
|
-
const buttonID = useId();
|
|
36
|
-
const menuID = useId();
|
|
37
|
-
useOnKeyDown_2(handleKeyboardShortcut, ["Escape"]);
|
|
38
|
-
useSafeLayoutEffect_1(() => {
|
|
39
|
-
if (wrapperRef.current) {
|
|
40
|
-
const bounds = wrapperRef.current.getBoundingClientRect();
|
|
41
|
-
const newPosition = Object.assign({}, position);
|
|
42
|
-
if (bounds.top <= window.innerHeight / 2) {
|
|
43
|
-
newPosition.vertical = "below";
|
|
44
|
-
}
|
|
45
|
-
else {
|
|
46
|
-
newPosition.vertical = "above";
|
|
47
|
-
}
|
|
48
|
-
if (bounds.left <= window.innerWidth / 2) {
|
|
49
|
-
newPosition.horizontal = "right";
|
|
50
|
-
}
|
|
51
|
-
else {
|
|
52
|
-
newPosition.horizontal = "left";
|
|
53
|
-
}
|
|
54
|
-
setPosition(newPosition);
|
|
55
|
-
}
|
|
56
|
-
}, [visible, fullWidth]);
|
|
57
|
-
useRefocusOnActivator_2(visible);
|
|
58
|
-
if (!activator) {
|
|
59
|
-
activator = (React.createElement(Button, { fullWidth: true, label: "More Actions", icon: "more", type: "secondary" }));
|
|
60
|
-
}
|
|
61
|
-
const menuClasses = classnames(styles.menu, position.vertical === "above" && styles.above, position.vertical === "below" && styles.below, position.horizontal === "left" && styles.left, position.horizontal === "right" && styles.right);
|
|
62
|
-
const wrapperClasses = classnames(styles.wrapper, {
|
|
63
|
-
[styles.fullWidth]: fullWidth,
|
|
64
|
-
});
|
|
65
|
-
return (React.createElement("div", { className: wrapperClasses, ref: wrapperRef, onClick: handleParentClick },
|
|
66
|
-
React.cloneElement(activator, {
|
|
67
|
-
onClick: toggle(activator.props.onClick),
|
|
68
|
-
id: buttonID,
|
|
69
|
-
ariaControls: menuID,
|
|
70
|
-
ariaExpanded: visible,
|
|
71
|
-
ariaHaspopup: true,
|
|
72
|
-
}),
|
|
73
|
-
React.createElement(AnimatePresence, null, visible && (React.createElement(React.Fragment, null,
|
|
74
|
-
React.createElement(motion.div, { className: styles.overlay, onClick: toggle(), variants: variation, initial: "overlayStartStop", animate: "done", exit: "overlayStartStop", transition: {
|
|
75
|
-
type: "tween",
|
|
76
|
-
duration: 0.15,
|
|
77
|
-
} }),
|
|
78
|
-
React.createElement(motion.div, { className: menuClasses, role: "menu", "aria-labelledby": buttonID, id: menuID, onClick: hide, variants: variation, initial: "startOrStop", animate: "done", exit: "startOrStop", custom: position, transition: {
|
|
79
|
-
type: "tween",
|
|
80
|
-
duration: 0.25,
|
|
81
|
-
} }, items.map((item, key) => (React.createElement("div", { key: key, className: styles.section },
|
|
82
|
-
item.header && React.createElement(SectionHeader, { text: item.header }),
|
|
83
|
-
item.actions.map((action, index) => (React.createElement(Action, Object.assign({ sectionLabel: item.header, key: action.label, shouldFocus: key === 0 && index === 0 }, action)))))))))))));
|
|
84
|
-
function toggle(callbackPassthrough) {
|
|
85
|
-
return (event) => {
|
|
86
|
-
setVisible(!visible);
|
|
87
|
-
callbackPassthrough && callbackPassthrough(event);
|
|
88
|
-
};
|
|
89
|
-
}
|
|
90
|
-
function hide() {
|
|
91
|
-
setVisible(false);
|
|
92
|
-
}
|
|
93
|
-
function handleKeyboardShortcut(event) {
|
|
94
|
-
const { key } = event;
|
|
95
|
-
if (!visible)
|
|
96
|
-
return;
|
|
97
|
-
event.preventDefault();
|
|
98
|
-
event.stopPropagation();
|
|
99
|
-
key === "Escape" && hide();
|
|
100
|
-
}
|
|
101
|
-
function handleParentClick(event) {
|
|
102
|
-
// Since the menu is being rendered within the same parent as the activator,
|
|
103
|
-
// we need to stop the click event from bubbling up. If the Menu component
|
|
104
|
-
// gets added within a parent that has a click handler, any click on the
|
|
105
|
-
// menu will trigger the parent's click handler.
|
|
106
|
-
event.stopPropagation();
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
function SectionHeader({ text }) {
|
|
110
|
-
return (React.createElement("div", { className: styles.sectionHeader, "aria-hidden": true },
|
|
111
|
-
React.createElement(Typography, { element: "h6", size: "base", textColor: "textSecondary", fontWeight: "regular" }, text)));
|
|
112
|
-
}
|
|
113
|
-
function Action({ label, sectionLabel, icon, onClick, shouldFocus = false, }) {
|
|
114
|
-
const actionButtonRef = useRef();
|
|
115
|
-
useEffect(() => {
|
|
116
|
-
if (shouldFocus) {
|
|
117
|
-
// Focus on the next tick to allow useRefocusOnActivator to initialize
|
|
118
|
-
setTimeout(() => { var _a; return (_a = actionButtonRef.current) === null || _a === void 0 ? void 0 : _a.focus(); }, 0);
|
|
119
|
-
}
|
|
120
|
-
}, [shouldFocus]);
|
|
121
|
-
return (React.createElement("button", { role: "menuitem", type: "button", className: styles.action, key: label, onClick: onClick, ref: actionButtonRef },
|
|
122
|
-
icon && React.createElement(Icon, { name: icon }),
|
|
123
|
-
React.createElement(Typography, { element: "span", fontWeight: "semiBold", textColor: "textSecondary" },
|
|
124
|
-
sectionLabel && (React.createElement("span", { className: styles.screenReaderOnly }, sectionLabel)),
|
|
125
|
-
label)));
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
export { Menu as M };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|