@jobber/components 5.7.2 → 5.7.4-MIKEanima.2
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-C8ERpDY7.js → AnimatedSwitcher-DfKoKfKx.js} +6 -3
- package/dist/{AnimatedSwitcher-CFLVaKlb.js → AnimatedSwitcher-DgOb9LC4.js} +6 -3
- 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-y0u2ijkF.js → Autocomplete-CFowTjM0.js} +9 -9
- package/dist/{Autocomplete-C4uoRTT9.js → Autocomplete-COVz5xfV.js} +9 -9
- package/dist/Avatar/index.cjs +2 -2
- package/dist/Avatar/index.mjs +2 -2
- package/dist/{Avatar-Co6eQ_hq.js → Avatar-Bb-jfrDW.js} +1 -1
- package/dist/{Avatar-fQHt9v5z.js → Avatar-C3z9dH0s.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-DR57fOUJ.js → Banner-BWoA-4AA.js} +5 -5
- package/dist/{Banner-BMOV8j3i.js → Banner-D85fSMxg.js} +5 -5
- package/dist/{BannerIcon-CBqONIDX.js → BannerIcon-D_L2L3Lo.js} +1 -1
- package/dist/{BannerIcon-CcEPYmpa.js → BannerIcon-nfK7LFXV.js} +1 -1
- package/dist/Button/index.cjs +3 -3
- package/dist/Button/index.mjs +3 -3
- package/dist/{Button-5NZGPGRp.js → Button-D1Eyu5Sn.js} +2 -2
- package/dist/{Button-Dk57MT7t.js → Button-QvLjUH8E.js} +2 -2
- package/dist/ButtonDismiss/index.cjs +4 -4
- package/dist/ButtonDismiss/index.mjs +4 -4
- package/dist/{ButtonDismiss-BDjhpTVH.js → ButtonDismiss-CFRlhhxu.js} +1 -1
- package/dist/{ButtonDismiss-B32HVZaK.js → ButtonDismiss-hURnh71d.js} +1 -1
- package/dist/Card/index.cjs +14 -9
- package/dist/Card/index.mjs +14 -9
- package/dist/{Card-C2KRWc7V.js → Card-BmD1hKGj.js} +3 -3
- package/dist/{Card-DXl9F7jP.js → Card-Dh2v5Go3.js} +3 -3
- package/dist/Checkbox/index.cjs +5 -5
- package/dist/Checkbox/index.mjs +5 -5
- package/dist/{Checkbox-B5H8oHVx.js → Checkbox-D1ynw7Ko.js} +3 -3
- package/dist/{Checkbox-BbIDn-8c.js → Checkbox-D_5H-J_8.js} +3 -3
- 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-Kiht7nox.js → Chip-Bm5AGan5.js} +6 -6
- package/dist/{Chip-CSfqOwU9.js → Chip-BzyuO4M-.js} +6 -6
- package/dist/{ChipDismissible-BZQLcdTx.js → ChipDismissible-CcUxUnkz.js} +3 -3
- package/dist/{ChipDismissible-Dvm6-BY0.js → ChipDismissible-Dlujf2rU.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-DtBkf31V.js → Chips--yE6Z528.js} +2 -2
- package/dist/{Chips-B6PczwWw.js → Chips-XnpeIBPh.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-DYnQXPP_.js → Combobox-Cn4x1_Bs.js} +9 -9
- package/dist/{Combobox-SB0isb0D.js → Combobox-l9sspCDq.js} +9 -9
- package/dist/{ComboboxAction-CRlhP9z6.js → ComboboxAction-BgCLXQUU.js} +2 -2
- package/dist/{ComboboxAction-Cz4FXd2j.js → ComboboxAction-Jyi7ORTJ.js} +2 -2
- package/dist/{ComboboxActivator-CjGJj4tW.js → ComboboxActivator-ClXK0yNd.js} +4 -4
- package/dist/{ComboboxActivator-BPpiOe-0.js → ComboboxActivator-SzuP5tLK.js} +4 -4
- package/dist/{ComboboxContent-Bq9yf2_X.js → ComboboxContent-BXiPMwtN.js} +7 -7
- package/dist/{ComboboxContent-DvYccsSh.js → ComboboxContent-HTOg1I5Z.js} +7 -7
- package/dist/{ComboboxContentHeader-CqmkA0by.js → ComboboxContentHeader-D4cccHSt.js} +2 -2
- package/dist/{ComboboxContentHeader-CfCFfJPq.js → ComboboxContentHeader-DAKl1FlH.js} +2 -2
- package/dist/{ComboboxContentList-D8fiuD5T.js → ComboboxContentList-DDBGxIC3.js} +6 -6
- package/dist/{ComboboxContentList-Cg2Li4fB.js → ComboboxContentList-Dt9p31cT.js} +6 -6
- package/dist/{ComboboxContentSearch-BoTMA3yG.js → ComboboxContentSearch-DaOWlmHJ.js} +1 -1
- package/dist/{ComboboxContentSearch-DYvJ9-oV.js → ComboboxContentSearch-eJ2wcfUD.js} +1 -1
- package/dist/{ComboboxLoadMore-CFqi-mB-.js → ComboboxLoadMore-DkvUdGMb.js} +1 -1
- package/dist/{ComboboxLoadMore-CG3V-Zcv.js → ComboboxLoadMore-Pj5__rse.js} +1 -1
- package/dist/{ComboboxOption-BvR0pSO7.js → ComboboxOption-BrDCxXiH.js} +3 -3
- package/dist/{ComboboxOption-BBzdKdAC.js → ComboboxOption-FfcEx-JD.js} +3 -3
- package/dist/{ComboboxProvider-Dc5Qbmus.js → ComboboxProvider-BCrc1ysl.js} +1 -1
- package/dist/{ComboboxProvider-BGSQKp0S.js → ComboboxProvider-CcWx91jE.js} +1 -1
- package/dist/{ComboboxTrigger-DJPS2dpd.js → ComboboxTrigger-D2Ve5EvF.js} +4 -4
- package/dist/{ComboboxTrigger-DuXuKIOY.js → ComboboxTrigger-DlKsaBDu.js} +4 -4
- package/dist/ConfirmationModal/index.cjs +17 -17
- package/dist/ConfirmationModal/index.mjs +17 -17
- package/dist/{ConfirmationModal-CU3PRUXC.js → ConfirmationModal-QA_zWd6f.js} +4 -4
- package/dist/{ConfirmationModal-jkKpP5p6.js → ConfirmationModal-hcZVdemk.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-CHqE7Pbb.js → Countdown-Ck64T8BV.js} +1 -1
- package/dist/{Countdown-Df5Ic73D.js → Countdown-DjpI4rIM.js} +1 -1
- package/dist/DataDump/index.cjs +17 -12
- package/dist/DataDump/index.mjs +17 -12
- package/dist/{DataDump-DDKUIIu1.js → DataDump-95DKMhfy.js} +3 -3
- package/dist/{DataDump-tRsfJ-52.js → DataDump-DFZ5_JLY.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-Dbah0rGv.js → DataList-Bi73YaO4.js} +21 -21
- package/dist/{DataList-BrH673bv.js → DataList-ehQ8kCi0.js} +21 -21
- package/dist/{DataList.utils-sZJpYE6z.js → DataList.utils-DQaZyW4B.js} +8 -8
- package/dist/{DataList.utils-Dawo0aa-.js → DataList.utils-D_vVE9lP.js} +8 -8
- package/dist/{DataListAction-Bs3FtpMo.js → DataListAction-BrMfRyZ5.js} +3 -3
- package/dist/{DataListAction-BcJlUowI.js → DataListAction-kzuwcEov.js} +3 -3
- package/dist/{DataListActions-BwCpgHQW.js → DataListActions-BTsW9JOE.js} +6 -6
- package/dist/{DataListActions-Dd605_hq.js → DataListActions-C_74Ho2a.js} +6 -6
- package/dist/{DataListActionsMenu-CfzuNaI6.js → DataListActionsMenu-BCZDWBPi.js} +5 -5
- package/dist/{DataListActionsMenu-F4cFv1ax.js → DataListActionsMenu-DLDAiP9i.js} +5 -5
- package/dist/{DataListBulkActions-Ba0LawZK.js → DataListBulkActions-BAQ8MxWY.js} +3 -3
- package/dist/{DataListBulkActions-Df0wTHhX.js → DataListBulkActions-DT0WMMFz.js} +3 -3
- package/dist/{DataListContext-BONiWdzX.js → DataListContext-BOqS_7x7.js} +1 -1
- package/dist/{DataListContext-keTgFNvv.js → DataListContext-BzVt05n6.js} +1 -1
- package/dist/{DataListEmptyState-ChYeFHb8.js → DataListEmptyState-C9yYNHBl.js} +4 -4
- package/dist/{DataListEmptyState-DDPZrh3Y.js → DataListEmptyState-FxsMPsiw.js} +4 -4
- package/dist/{DataListFilters-CAQViUiG.js → DataListFilters-CXXi640w.js} +5 -5
- package/dist/{DataListFilters-CK38fV5o.js → DataListFilters-D5-aTsrq.js} +5 -5
- package/dist/{DataListHeader-xxRyvLOL.js → DataListHeader-BAbB_U9w.js} +11 -11
- package/dist/{DataListHeader-D4aG-ki3.js → DataListHeader-Dcv0VoUk.js} +11 -11
- package/dist/{DataListHeaderTile-5s8l2amv.js → DataListHeaderTile-BSl8LSai.js} +5 -5
- package/dist/{DataListHeaderTile-CSEQQLSt.js → DataListHeaderTile-c0PNQU6y.js} +5 -5
- package/dist/{DataListItem-BUS1gtDI.js → DataListItem-DxNP0Cww.js} +10 -10
- package/dist/{DataListItem-CJ56Y-tD.js → DataListItem-E8BiBdfo.js} +10 -10
- package/dist/{DataListItemActions-BRxyqEyb.js → DataListItemActions-DviZnvmg.js} +2 -2
- package/dist/{DataListItemActions-Bzf4g9AC.js → DataListItemActions-o7oSLCww.js} +2 -2
- package/dist/{DataListItemActionsOverflow-CZSZeCxJ.js → DataListItemActionsOverflow-CvyNNZ56.js} +3 -3
- package/dist/{DataListItemActionsOverflow-BbKEXpyh.js → DataListItemActionsOverflow-NeI3mV3w.js} +3 -3
- package/dist/{DataListItemClickable-CdKGwSEn.js → DataListItemClickable-7Be1jKnS.js} +3 -3
- package/dist/{DataListItemClickable-_iWE_8_P.js → DataListItemClickable-lDTpFwZL.js} +3 -3
- package/dist/{DataListItems-CDTZUT6O.js → DataListItems-CK26IVy9.js} +3 -3
- package/dist/{DataListItems-BxFwkdon.js → DataListItems-DF1qK8_J.js} +3 -3
- package/dist/{DataListLayout-BQ2GF_l4.js → DataListLayout-AuAAfpMF.js} +3 -3
- package/dist/{DataListLayout-BWpH3-TP.js → DataListLayout-Cp16995g.js} +3 -3
- package/dist/{DataListLayoutActions-BXjRjXGL.js → DataListLayoutActions-D34zuQYL.js} +4 -4
- package/dist/{DataListLayoutActions-BM2mTAv0.js → DataListLayoutActions-DVR6gh2Y.js} +4 -4
- package/dist/{DataListLayoutContext-DIs5FEtJ.js → DataListLayoutContext-CM64Wx65.js} +1 -1
- package/dist/{DataListLayoutContext-Ckfq35xV.js → DataListLayoutContext-DCFfjFGu.js} +1 -1
- package/dist/{DataListLoadMore-BaIw3k0i.js → DataListLoadMore-BEzAczt0.js} +5 -5
- package/dist/{DataListLoadMore-C1WERP57.js → DataListLoadMore-ReslpJ7P.js} +5 -5
- package/dist/{DataListLoadingState-CtkZX3-x.js → DataListLoadingState-Bas7JYgM.js} +3 -3
- package/dist/{DataListLoadingState-CknX5EjV.js → DataListLoadingState-guqe0nt0.js} +3 -3
- package/dist/{DataListOverflowFade-BYv_2Hdz.js → DataListOverflowFade-Bb3zTU1g.js} +1 -1
- package/dist/{DataListOverflowFade-hKTuzcTz.js → DataListOverflowFade-CiLvmnJ3.js} +1 -1
- package/dist/{DataListSearch-7bJ4YqtL.js → DataListSearch-BhcyhnAY.js} +6 -6
- package/dist/{DataListSearch-BbvPhIgx.js → DataListSearch-C-4V419K.js} +6 -6
- package/dist/{DataListSort-DBfaSYUD.js → DataListSort-DmKMhJUU.js} +6 -6
- package/dist/{DataListSort-BPgDYDK5.js → DataListSort-SAaZy3K9.js} +6 -6
- package/dist/{DataListSortingOptions-De1xI_mp.js → DataListSortingOptions-Bu-9Wb_J.js} +3 -3
- package/dist/{DataListSortingOptions-BMDQM7SW.js → DataListSortingOptions-CrMJEWkb.js} +3 -3
- package/dist/{DataListStatusBar-8eg_33Nn.js → DataListStatusBar-CkfetY7j.js} +2 -2
- package/dist/{DataListStatusBar-BYMj4Ztj.js → DataListStatusBar-ohCiPikh.js} +2 -2
- package/dist/{DataListStickyHeader-CeYJGWJM.js → DataListStickyHeader-Dip6CGoT.js} +1 -1
- package/dist/{DataListStickyHeader-G9CSKOI6.js → DataListStickyHeader-DqQ4iNbT.js} +1 -1
- package/dist/{DataListTags-DS3j1kMd.js → DataListTags-B4cv-roN.js} +2 -2
- package/dist/{DataListTags-Bmgao6_3.js → DataListTags-GYhoqVVZ.js} +2 -2
- package/dist/{DataListTotalCount-CReeBPoi.js → DataListTotalCount-D4MUwd76.js} +2 -2
- package/dist/{DataListTotalCount-BqD5VxXa.js → DataListTotalCount-zL5SFR7e.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-S5t82iBx.js → DataTable-CCiIosg2.js} +6 -6
- package/dist/{DataTable-BD4ZSqdh.js → DataTable-CibdmPUQ.js} +6 -6
- package/dist/DatePicker/index.cjs +14 -14
- package/dist/DatePicker/index.mjs +14 -14
- package/dist/{DatePicker-DKFWn5AN.js → DatePicker-BSHzQlO5.js} +11 -11
- package/dist/{DatePicker-F4BiQr_B.js → DatePicker-DmBIzy-q.js} +11 -11
- package/dist/{DayOfMonthSelect-CiIwOfrJ.js → DayOfMonthSelect-CrIHNA_g.js} +2 -2
- package/dist/{DayOfMonthSelect-MPLXu9bf.js → DayOfMonthSelect-_fjP5Zdc.js} +2 -2
- package/dist/DescriptionList/index.cjs +2 -2
- package/dist/DescriptionList/index.mjs +2 -2
- package/dist/{DescriptionList-CAg7eeK-.js → DescriptionList-BYWeAnVy.js} +1 -1
- package/dist/{DescriptionList-Bw991yhF.js → DescriptionList-XMwMFtaV.js} +1 -1
- package/dist/Disclosure/index.cjs +8 -8
- package/dist/Disclosure/index.mjs +8 -8
- package/dist/{Disclosure-C9IvObVH.js → Disclosure-CIY6H3gb.js} +3 -3
- package/dist/{Disclosure-D0VszH38.js → Disclosure-DSNRs4cy.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-C7RARTpO.js → DrawerGrid-BXxYmmGD.js} +2 -2
- package/dist/{DrawerGrid-CheGYMEX.js → DrawerGrid-COvnMYW8.js} +2 -2
- package/dist/Emphasis/index.cjs +2 -2
- package/dist/Emphasis/index.mjs +2 -2
- package/dist/{Emphasis-lqZqdpMQ.js → Emphasis-C7YRiaHg.js} +1 -1
- package/dist/{Emphasis-oIeSg_ZX.js → Emphasis-DEyToA8Q.js} +1 -1
- package/dist/FeatureSwitch/index.cjs +13 -13
- package/dist/FeatureSwitch/index.mjs +13 -13
- package/dist/{FeatureSwitch-B0pRodlS.js → FeatureSwitch-3Mjjj4FX.js} +7 -7
- package/dist/{FeatureSwitch-Brmqf7oY.js → FeatureSwitch-DhOBfYz-.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-CLDa30c5.js → Form-4dgEEtRW.js} +1 -1
- package/dist/{Form-qch5fQdo.js → Form-COPHNmE9.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-B3Ugyr_g.js → FormField-Btot3I_F.js} +8 -37
- package/dist/{FormField-DyazCx_1.js → FormField-WOLanF4Y.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-CWjzsMMi.js → FormatFile-BDLDCS4U.js} +7 -7
- package/dist/{FormatFile-DJfGD-6I.js → FormatFile-BOF-royQ.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-CWAdqNDs.js → Gallery-ClCu7r8e.js} +3 -3
- package/dist/{Gallery-DQzNQEwo.js → Gallery-t7S2jrvv.js} +3 -3
- package/dist/Glimmer/index.cjs +3 -3
- package/dist/Glimmer/index.mjs +3 -3
- package/dist/{Glimmer-D5M4ZxeS.js → Glimmer-BVlQbNrs.js} +2 -2
- package/dist/{Glimmer-B8NHK9th.js → Glimmer-CDyY7D3O.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-BC4zE12p.js → Grid-BARd2S_x.js} +2 -2
- package/dist/{Grid-lZjGqDQs.js → Grid-DSh1BzHC.js} +2 -2
- package/dist/Heading/index.cjs +2 -2
- package/dist/Heading/index.mjs +2 -2
- package/dist/{Heading-2zEW71bU.js → Heading-BryDkWa-.js} +1 -1
- package/dist/{Heading-lQiIuFIR.js → Heading-DkaeKjfo.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-x42jm7do.js → InlineLabel-0EautVpq.js} +1 -1
- package/dist/{InlineLabel-BUCurIbZ.js → InlineLabel-BAUkFv3q.js} +1 -1
- package/dist/InputAvatar/index.cjs +13 -13
- package/dist/InputAvatar/index.mjs +13 -13
- package/dist/{InputAvatar-C-CNrAD0.js → InputAvatar-DIbfNw1m.js} +5 -5
- package/dist/{InputAvatar-B93Cf4nW.js → InputAvatar-RHm-u5gS.js} +5 -5
- package/dist/InputDate/index.cjs +21 -20
- package/dist/InputDate/index.mjs +21 -20
- package/dist/{InputDate-bUo9T-xV.js → InputDate-2h6Lyl92.js} +2 -2
- package/dist/{InputDate-MTM3tchG.js → InputDate-Bf-eJoJd.js} +2 -2
- package/dist/InputEmail/index.cjs +10 -9
- package/dist/InputEmail/index.mjs +10 -9
- package/dist/{InputEmail-BTgEgAx_.js → InputEmail-Cmj0nvxo.js} +1 -1
- package/dist/{InputEmail-BLYOE45H.js → InputEmail-DCuQ7YxX.js} +1 -1
- package/dist/InputFile/index.cjs +10 -10
- package/dist/InputFile/index.mjs +10 -10
- package/dist/{InputFile-Cyma-9Iq.js → InputFile-BIJcEYrb.js} +6 -6
- package/dist/{InputFile-DbLYX0RL.js → InputFile-C_j-512X.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-B7DwZlCv.js → InputNumber-CChmYhE8.js} +1 -1
- package/dist/{InputNumber-Bnk85Qdy.js → InputNumber-CtpBE-e6.js} +1 -1
- package/dist/InputPassword/index.cjs +10 -9
- package/dist/InputPassword/index.mjs +10 -9
- package/dist/{InputPassword-BO0c19ZO.js → InputPassword-BRkP3fAU.js} +1 -1
- package/dist/{InputPassword-BjWK-SMW.js → InputPassword-CNIb27Lr.js} +1 -1
- package/dist/InputPhoneNumber/index.cjs +10 -9
- package/dist/InputPhoneNumber/index.mjs +10 -9
- package/dist/{InputPhoneNumber-CEiMpVwX.js → InputPhoneNumber-CUfw-R8_.js} +2 -2
- package/dist/{InputPhoneNumber-B8bzNuaH.js → InputPhoneNumber-F0h6Wcfx.js} +2 -2
- package/dist/InputText/index.cjs +11 -10
- package/dist/InputText/index.mjs +11 -10
- package/dist/{InputText-jF8xq1yr.js → InputText-1foIWpar.js} +2 -2
- package/dist/{InputText-DZ8WgJrv.js → InputText-CMycHrx_.js} +2 -2
- package/dist/InputTime/index.cjs +14 -13
- package/dist/InputTime/index.mjs +14 -13
- package/dist/{InputTime-B1Rli12p.js → InputTime-DDAhME4p.js} +3 -3
- package/dist/{InputTime-Ijro0VNk.js → InputTime-Z5Xjsze2.js} +3 -3
- package/dist/InputValidation/index.cjs +4 -4
- package/dist/InputValidation/index.mjs +4 -4
- package/dist/{InputValidation-RoL8WPG-.js → InputValidation-C_QMeKXC.js} +2 -2
- package/dist/{InputValidation-DL_hYaKU.js → InputValidation-CyExBgN8.js} +2 -2
- package/dist/{InternalChipDismissible-nxQvVFjp.js → InternalChipDismissible-BCu7r13J.js} +11 -11
- package/dist/{InternalChipDismissible-D86OzrE1.js → InternalChipDismissible-CYGCdRgL.js} +11 -11
- package/dist/LightBox/index.cjs +14 -14
- package/dist/LightBox/index.mjs +14 -14
- package/dist/{LightBox-DYkcTagy.js → LightBox-20AdPST3.js} +7 -7
- package/dist/{LightBox-Pvgfboe8.js → LightBox-COuI89K-.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-kHeWVr6W.js → List-BCTeqFBt.js} +10 -10
- package/dist/{List-B61Ps4o3.js → List-CQ6xQwpn.js} +10 -10
- package/dist/Markdown/index.cjs +9 -9
- package/dist/Markdown/index.mjs +9 -9
- package/dist/{Markdown-DTUbQBbr.js → Markdown-DH4NM7Tn.js} +7 -7
- package/dist/{Markdown-DdM6gIN_.js → Markdown-h_fVmU4_.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-BlmUC9_o.js +170 -0
- package/dist/Menu-Bqh5jv-b.js +168 -0
- package/dist/Modal/index.cjs +9 -9
- package/dist/Modal/index.mjs +9 -9
- package/dist/{Modal-BAg8-RZS.js → Modal-BiPCpSqf.js} +6 -6
- package/dist/{Modal-H4zzCkMM.js → Modal-CWg20itK.js} +6 -6
- package/dist/MultiSelect/index.cjs +6 -6
- package/dist/MultiSelect/index.mjs +6 -6
- package/dist/{MultiSelect-5MgWeJnf.js → MultiSelect-BZz_hmLB.js} +3 -3
- package/dist/{MultiSelect-CXMoNVB4.js → MultiSelect-CPgLPsB5.js} +3 -3
- package/dist/{Option-CvrbFuE2.js → Option-B-6Cys07.js} +1 -1
- package/dist/{Option-BqZ-KuAf.js → Option-D9MGMFHg.js} +1 -1
- package/dist/Page/index.cjs +25 -20
- package/dist/Page/index.mjs +25 -20
- package/dist/{Page-VqptKnL9.js → Page-BLeYONzx.js} +8 -8
- package/dist/{Page-DbN0Soit.js → Page-ZjxtP65m.js} +8 -8
- package/dist/Popover/index.cjs +6 -6
- package/dist/Popover/index.mjs +6 -6
- package/dist/{Popover-DIaVQ9D1.js → Popover-BwiOAAeZ.js} +2 -2
- package/dist/{Popover-BU6JgebJ.js → Popover-wsbaXWin.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-i-U2NrLk.js → RadioGroup-9Jw8_uUj.js} +1 -1
- package/dist/{RadioGroup-DcqHfbMr.js → RadioGroup-gscIjMKb.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-BRMWkWGx.js → RecurringSelect-CGL2h9Sm.js} +6 -6
- package/dist/{RecurringSelect-B04uvi8H.js → RecurringSelect-CGZAYneE.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-CMsb9lm-.js → StatusLabel-D7W7bYhK.js} +2 -2
- package/dist/{StatusLabel-X1P9M-Uf.js → StatusLabel-nJ9hfvic.js} +2 -2
- package/dist/Switch/index.cjs +2 -2
- package/dist/Switch/index.mjs +2 -2
- package/dist/{Switch-CxR0k9or.js → Switch-IwxqEhTY.js} +1 -1
- package/dist/{Switch-C2zYmQCz.js → Switch-wBPSFqlP.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-D1VIeNLX.js → Tabs-DnD5P9fH.js} +1 -1
- package/dist/{Tabs-BNEdF55U.js → Tabs-bkyz0_1m.js} +1 -1
- package/dist/Text/index.cjs +2 -2
- package/dist/Text/index.mjs +2 -2
- package/dist/{Text-C2XAkhfc.js → Text-C93E2N-I.js} +1 -1
- package/dist/{Text-ZNiN0cJV.js → Text-peFVgwAt.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-cF02I5I3.js → Tooltip-ChYQ6ADQ.js} +2 -2
- package/dist/{Tooltip-DBPNFimU.js → Tooltip-DaUkDE1D.js} +2 -2
- package/dist/Typography/index.cjs +1 -1
- package/dist/Typography/index.mjs +1 -1
- package/dist/{_baseAssignValue-CnCvxC4c.js → _baseAssignValue-C5_5qSli.js} +1 -1
- package/dist/{_baseAssignValue-CMAt3UhR.js → _baseAssignValue-tQwq2FyT.js} +1 -1
- package/dist/{_baseEach-d1MASsIN.js → _baseEach-D0-1cImZ.js} +4 -4
- package/dist/{_baseEach-BZTpzMLN.js → _baseEach-DUnBkKe_.js} +4 -4
- package/dist/{_defineProperty-B2KzC9Fx.js → _defineProperty-CtuJHqUz.js} +3 -3
- package/dist/{_defineProperty-CiQj14Oi.js → _defineProperty-ZhZt61bm.js} +3 -3
- package/dist/{_getTag-DTkDs6kf.js → _getTag-BLIMYIyB.js} +1 -1
- package/dist/{_getTag-CQF_pbAy.js → _getTag-DUWVkCao.js} +1 -1
- package/dist/{_setToString-oANaJoqn.js → _setToString-BEHXSOqD.js} +3 -3
- package/dist/{_setToString-DAvdZChL.js → _setToString-Bf6pn8Ih.js} +3 -3
- package/dist/{debounce-CIgJ0zDw.js → debounce-DuE2pDnO.js} +3 -3
- package/dist/{debounce-BFOiFt5k.js → debounce-Qoe6LMLR.js} +3 -3
- package/dist/{helpers-HoPuZ7iP.js → helpers-B202dCpZ.js} +1 -1
- package/dist/{helpers-B8P4OU0k.js → helpers-B2fEcowC.js} +1 -1
- package/dist/{index-j66Z75vE.js → index-BtX7VXfB.js} +1 -1
- package/dist/{index-DN6ehSy0.js → index-DP8YfvV9.js} +1 -1
- package/dist/index.cjs +146 -145
- package/dist/index.mjs +146 -145
- package/dist/{isObjectLike-CtDU20ss.js → isObjectLike-4JG7JK5O.js} +1 -1
- package/dist/{isObjectLike-Df2lodes.js → isObjectLike-C40llj8e.js} +1 -1
- package/dist/{isSymbol-D7K5ON8L.js → isSymbol-DQNoizon.js} +1 -1
- package/dist/{isSymbol-Dq_4lH3A.js → isSymbol-kyvMlF37.js} +1 -1
- package/dist/{noop-CrQ5qq7s.js → noop-Dgi56H4w.js} +1 -1
- package/dist/{noop-CiNHwMe8.js → noop-FDAdYP64.js} +1 -1
- package/dist/styles.css +38 -78
- package/dist/{useActiveLayout-BEWUzI6I.js → useActiveLayout-BCelKE9X.js} +2 -2
- package/dist/{useActiveLayout-DVVSQ-0Z.js → useActiveLayout-BEBDzEd2.js} +2 -2
- package/dist/{useAssert-BNIHT9_e.js → useAssert-DqNeLgwZ.js} +2 -2
- package/dist/{useAssert-oQRdECre.js → useAssert-fUuXRr8u.js} +2 -2
- package/dist/{useBatchSelect-BKLkKI__.js → useBatchSelect-Cd9441bd.js} +1 -1
- package/dist/{useBatchSelect-TIdF40FB.js → useBatchSelect-Dxj7hY53.js} +1 -1
- package/dist/useFormFieldFocus-1k4H2xgN.js +60 -0
- package/dist/useFormFieldFocus-BA4qdwgn.js +57 -0
- package/dist/{useIsMounted-Ct-pu3MO.js → useIsMounted-CuUi54dy.js} +1 -1
- package/dist/{useIsMounted-DqEM0Exv.js → useIsMounted-dlJDdvKW.js} +1 -1
- package/dist/{useResizeObserver--Hq5NVxA.js → useResizeObserver-BaBojkhm.js} +3 -3
- package/dist/{useResizeObserver-a3dVd6W_.js → useResizeObserver-DsnruijN.js} +3 -3
- package/dist/{useResponsiveSizing-C8rE-xm1.js → useResponsiveSizing-Be5_9I3M.js} +1 -1
- package/dist/{useResponsiveSizing-DgdoYgkn.js → useResponsiveSizing-CVGrXnMe.js} +1 -1
- package/dist/{useScrollToActive-Zo3p8qzn.js → useScrollToActive-DGw6Mxa1.js} +9 -9
- package/dist/{useScrollToActive-Z1U5tdKe.js → useScrollToActive-Djpg3bQ8.js} +9 -9
- package/package.json +3 -3
- package/dist/Menu-DEYnk7a3.js +0 -130
- package/dist/Menu-_C77zmA-.js +0 -128
- /package/dist/{AnimatedPresence-COik-nM7.js → AnimatedPresence-R6GAVTzs.js} +0 -0
- /package/dist/{AnimatedPresence-BiIKty6p.js → AnimatedPresence-TY8fU5iJ.js} +0 -0
- /package/dist/{AtlantisContext-BHNrWSl_.js → AtlantisContext-B5o79aUl.js} +0 -0
- /package/dist/{AtlantisContext-BjFNVjpc.js → AtlantisContext-CHM29_iw.js} +0 -0
- /package/dist/{Body-DBq17TyR.js → Body-DA1xpbgw.js} +0 -0
- /package/dist/{Body-D6Suox7R.js → Body-J3JGg27f.js} +0 -0
- /package/dist/{Content-Dlxr9tpp.js → Content-CDqIzHHr.js} +0 -0
- /package/dist/{Content-eXP_YDij.js → Content-DuR0rm04.js} +0 -0
- /package/dist/{DataList-B2Ro3dIJ.js → DataList-SYLvOI-t.js} +0 -0
- /package/dist/{DataList-DXQuw1FY.js → DataList-dQJ1CqHE.js} +0 -0
- /package/dist/{DataList.const-BbIX_2s8.js → DataList.const-DaCHUZir.js} +0 -0
- /package/dist/{DataList.const-BVqcPkpX.js → DataList.const-f2n2jPop.js} +0 -0
- /package/dist/{DataListLayoutContext-WnZdFL7X.js → DataListLayoutContext-Gl8UE2uZ.js} +0 -0
- /package/dist/{DataListLayoutContext-B3TnHSJa.js → DataListLayoutContext-vFYr0KCA.js} +0 -0
- /package/dist/{Divider-Fs_bTykP.js → Divider-DZ9TN017.js} +0 -0
- /package/dist/{Divider-6oC4Q0YM.js → Divider-nZE0vI6Y.js} +0 -0
- /package/dist/{Flex-DShYjczf.js → Flex-BmOkRW8R.js} +0 -0
- /package/dist/{Flex-DcBMToCE.js → Flex-u3rSadUz.js} +0 -0
- /package/dist/{FormatDate-BTFW38v7.js → FormatDate-0Oe6qWk_.js} +0 -0
- /package/dist/{FormatDate-CoH8Ysly.js → FormatDate-CAHGv5qN.js} +0 -0
- /package/dist/{FormatEmail-BG56E2de.js → FormatEmail-CK8gXw01.js} +0 -0
- /package/dist/{FormatEmail-D-IIz05j.js → FormatEmail-gUi7aakU.js} +0 -0
- /package/dist/{FormatRelativeDateTime-os322I_-.js → FormatRelativeDateTime-BMAcbnRq.js} +0 -0
- /package/dist/{FormatRelativeDateTime-C40ktI6C.js → FormatRelativeDateTime-DxUHUPN8.js} +0 -0
- /package/dist/{FormatTime-CiFKBen8.js → FormatTime-B_UWwxWP.js} +0 -0
- /package/dist/{FormatTime-CYAXeQyx.js → FormatTime-j34a-81f.js} +0 -0
- /package/dist/{Icon-Chojdqvk.js → Icon-BDfk62i_.js} +0 -0
- /package/dist/{Icon-B-DXIWN_.js → Icon-Cnl8JGKx.js} +0 -0
- /package/dist/{InputGroup-CNDPvKEL.js → InputGroup-DDG1vqRZ.js} +0 -0
- /package/dist/{InputGroup-uAezD2h5.js → InputGroup-DrM_BCfl.js} +0 -0
- /package/dist/{InternalGridCell-B0QXAuz0.js → InternalGridCell-BLvOlk08.js} +0 -0
- /package/dist/{InternalGridCell-ycYw8c6D.js → InternalGridCell-DRQcIGl6.js} +0 -0
- /package/dist/{Link-BPTtv-w3.js → Link-B-GBBCzn.js} +0 -0
- /package/dist/{Link-CzRXg-be.js → Link-BhGC1MOl.js} +0 -0
- /package/dist/{ProgressBar-CodnunT_.js → ProgressBar-BgICXu64.js} +0 -0
- /package/dist/{ProgressBar-CvCVmfHV.js → ProgressBar-CmyqJRM5.js} +0 -0
- /package/dist/{Spinner-D89Y1GpK.js → Spinner-B-1BYehF.js} +0 -0
- /package/dist/{Spinner-DqVFL1_5.js → Spinner-BJYWf2H6.js} +0 -0
- /package/dist/{StatusIndicator-Cxrzj94H.js → StatusIndicator-11MgO_SA.js} +0 -0
- /package/dist/{StatusIndicator-DcesTtD0.js → StatusIndicator-DfpOnQMC.js} +0 -0
- /package/dist/{Typography-7M-AJU59.js → Typography-BRM4J_HF.js} +0 -0
- /package/dist/{Typography-C3XvpGji.js → Typography-nicMpjd_.js} +0 -0
- /package/dist/{_commonjsHelpers-DjI7jxHZ.js → _commonjsHelpers-Bu8xvWPt.js} +0 -0
- /package/dist/{_commonjsHelpers-BU0995Qc.js → _commonjsHelpers-DLzF73KS.js} +0 -0
- /package/dist/{_polyfill-node.process-BYckUdqD.js → _polyfill-node.process-DqV0dxt5.js} +0 -0
- /package/dist/{_polyfill-node.process-BUBN7HW7.js → _polyfill-node.process-Dwr3SBWd.js} +0 -0
- /package/dist/{tslib.es6-CsjNWZPm.js → tslib.es6-Batd1zyj.js} +0 -0
- /package/dist/{tslib.es6-qFW5vQHH.js → tslib.es6-DGY_GTkA.js} +0 -0
- /package/dist/{useChildComponent-CqKW4yHr.js → useChildComponent-CBRYxBnP.js} +0 -0
- /package/dist/{useChildComponent-ChGLNo_F.js → useChildComponent-DVSxaq2W.js} +0 -0
- /package/dist/{useFocusTrap-Deb74Et2.js → useFocusTrap-C-5L8t2O.js} +0 -0
- /package/dist/{useFocusTrap-bfeaAEuz.js → useFocusTrap-CS0nwIHU.js} +0 -0
- /package/dist/{useInView-BgZqToTl.js → useInView-MkxEWyT0.js} +0 -0
- /package/dist/{useInView-L6iVJv8F.js → useInView-XC8qlT51.js} +0 -0
- /package/dist/{useOnKeyDown-BGuFHrnV.js → useOnKeyDown-C6ltagTI.js} +0 -0
- /package/dist/{useOnKeyDown-Cfa02OWJ.js → useOnKeyDown-CYug9OqU.js} +0 -0
- /package/dist/{useRefocusOnActivator-fgXCJQjp.js → useRefocusOnActivator-2m00T6oF.js} +0 -0
- /package/dist/{useRefocusOnActivator-BKvAL2ta.js → useRefocusOnActivator-iwGnR0Vw.js} +0 -0
- /package/dist/{useSafeLayoutEffect-DxhzMr-r.js → useSafeLayoutEffect-CbMaKY2e.js} +0 -0
- /package/dist/{useSafeLayoutEffect-Dn_O61gg.js → useSafeLayoutEffect-QSRcKzt8.js} +0 -0
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
var React = require('react');
|
|
4
4
|
var classnames = require('classnames');
|
|
5
|
-
var _baseEach = require('./_baseEach-
|
|
6
|
-
var _commonjsHelpers = require('./_commonjsHelpers-
|
|
7
|
-
var _baseAssignValue = require('./_baseAssignValue-
|
|
8
|
-
var _getTag = require('./_getTag-
|
|
9
|
-
var Icon = require('./Icon-
|
|
10
|
-
var Text = require('./Text-
|
|
11
|
-
var Heading = require('./Heading-
|
|
12
|
-
var Typography = require('./Typography-
|
|
13
|
-
var Markdown = require('./Markdown-
|
|
14
|
-
var Emphasis = require('./Emphasis-
|
|
5
|
+
var _baseEach = require('./_baseEach-D0-1cImZ.js');
|
|
6
|
+
var _commonjsHelpers = require('./_commonjsHelpers-Bu8xvWPt.js');
|
|
7
|
+
var _baseAssignValue = require('./_baseAssignValue-C5_5qSli.js');
|
|
8
|
+
var _getTag = require('./_getTag-BLIMYIyB.js');
|
|
9
|
+
var Icon = require('./Icon-Cnl8JGKx.js');
|
|
10
|
+
var Text = require('./Text-peFVgwAt.js');
|
|
11
|
+
var Heading = require('./Heading-DkaeKjfo.js');
|
|
12
|
+
var Typography = require('./Typography-BRM4J_HF.js');
|
|
13
|
+
var Markdown = require('./Markdown-h_fVmU4_.js');
|
|
14
|
+
var Emphasis = require('./Emphasis-DEyToA8Q.js');
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* A specialized version of `baseAggregator` for arrays.
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import classnames from 'classnames';
|
|
3
|
-
import { _ as _baseEach, a as _baseIteratee, g as get } from './_baseEach-
|
|
4
|
-
import { g as getDefaultExportFromCjs } from './_commonjsHelpers-
|
|
5
|
-
import { _ as _baseAssignValue } from './_baseAssignValue-
|
|
6
|
-
import { b as isArray_1 } from './_getTag-
|
|
7
|
-
import { I as Icon } from './Icon-
|
|
8
|
-
import { T as Text } from './Text-
|
|
9
|
-
import { H as Heading } from './Heading-
|
|
10
|
-
import { T as Typography } from './Typography-
|
|
11
|
-
import { M as Markdown } from './Markdown-
|
|
12
|
-
import { E as Emphasis } from './Emphasis-
|
|
3
|
+
import { _ as _baseEach, a as _baseIteratee, g as get } from './_baseEach-DUnBkKe_.js';
|
|
4
|
+
import { g as getDefaultExportFromCjs } from './_commonjsHelpers-DLzF73KS.js';
|
|
5
|
+
import { _ as _baseAssignValue } from './_baseAssignValue-tQwq2FyT.js';
|
|
6
|
+
import { b as isArray_1 } from './_getTag-DUWVkCao.js';
|
|
7
|
+
import { I as Icon } from './Icon-BDfk62i_.js';
|
|
8
|
+
import { T as Text } from './Text-C93E2N-I.js';
|
|
9
|
+
import { H as Heading } from './Heading-BryDkWa-.js';
|
|
10
|
+
import { T as Typography } from './Typography-nicMpjd_.js';
|
|
11
|
+
import { M as Markdown } from './Markdown-DH4NM7Tn.js';
|
|
12
|
+
import { E as Emphasis } from './Emphasis-C7YRiaHg.js';
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* A specialized version of `baseAggregator` for arrays.
|
package/dist/Markdown/index.cjs
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var Markdown = require('../Markdown-
|
|
3
|
+
var Markdown = require('../Markdown-h_fVmU4_.js');
|
|
4
4
|
require('react');
|
|
5
|
-
require('../Text-
|
|
6
|
-
require('../Typography-
|
|
5
|
+
require('../Text-peFVgwAt.js');
|
|
6
|
+
require('../Typography-BRM4J_HF.js');
|
|
7
7
|
require('classnames');
|
|
8
|
-
require('../Emphasis-
|
|
9
|
-
require('../Heading-
|
|
10
|
-
require('../Content-
|
|
11
|
-
require('../index-
|
|
12
|
-
require('../_commonjsHelpers-
|
|
13
|
-
require('../_polyfill-node.process-
|
|
8
|
+
require('../Emphasis-DEyToA8Q.js');
|
|
9
|
+
require('../Heading-DkaeKjfo.js');
|
|
10
|
+
require('../Content-DuR0rm04.js');
|
|
11
|
+
require('../index-BtX7VXfB.js');
|
|
12
|
+
require('../_commonjsHelpers-Bu8xvWPt.js');
|
|
13
|
+
require('../_polyfill-node.process-DqV0dxt5.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
package/dist/Markdown/index.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { M as Markdown } from '../Markdown-
|
|
1
|
+
export { M as Markdown } from '../Markdown-DH4NM7Tn.js';
|
|
2
2
|
import 'react';
|
|
3
|
-
import '../Text-
|
|
4
|
-
import '../Typography-
|
|
3
|
+
import '../Text-C93E2N-I.js';
|
|
4
|
+
import '../Typography-nicMpjd_.js';
|
|
5
5
|
import 'classnames';
|
|
6
|
-
import '../Emphasis-
|
|
7
|
-
import '../Heading-
|
|
8
|
-
import '../Content-
|
|
9
|
-
import '../index-
|
|
10
|
-
import '../_commonjsHelpers-
|
|
11
|
-
import '../_polyfill-node.process-
|
|
6
|
+
import '../Emphasis-C7YRiaHg.js';
|
|
7
|
+
import '../Heading-BryDkWa-.js';
|
|
8
|
+
import '../Content-CDqIzHHr.js';
|
|
9
|
+
import '../index-DP8YfvV9.js';
|
|
10
|
+
import '../_commonjsHelpers-DLzF73KS.js';
|
|
11
|
+
import '../_polyfill-node.process-Dwr3SBWd.js';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { T as Text } from './Text-
|
|
3
|
-
import { E as Emphasis } from './Emphasis-
|
|
4
|
-
import { H as Heading } from './Heading-
|
|
5
|
-
import { C as Content } from './Content-
|
|
6
|
-
import { P as PropTypes } from './index-
|
|
7
|
-
import { g as getDefaultExportFromCjs } from './_commonjsHelpers-
|
|
8
|
-
import { b as browser$1 } from './_polyfill-node.process-
|
|
2
|
+
import { T as Text } from './Text-C93E2N-I.js';
|
|
3
|
+
import { E as Emphasis } from './Emphasis-C7YRiaHg.js';
|
|
4
|
+
import { H as Heading } from './Heading-BryDkWa-.js';
|
|
5
|
+
import { C as Content } from './Content-CDqIzHHr.js';
|
|
6
|
+
import { P as PropTypes } from './index-DP8YfvV9.js';
|
|
7
|
+
import { g as getDefaultExportFromCjs } from './_commonjsHelpers-DLzF73KS.js';
|
|
8
|
+
import { b as browser$1 } from './_polyfill-node.process-Dwr3SBWd.js';
|
|
9
9
|
|
|
10
10
|
const protocols = ['http', 'https', 'mailto', 'tel'];
|
|
11
11
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var React = require('react');
|
|
4
|
-
var Text = require('./Text-
|
|
5
|
-
var Emphasis = require('./Emphasis-
|
|
6
|
-
var Heading = require('./Heading-
|
|
7
|
-
var Content = require('./Content-
|
|
8
|
-
var index$3 = require('./index-
|
|
9
|
-
var _commonjsHelpers = require('./_commonjsHelpers-
|
|
10
|
-
var _polyfillNode_process = require('./_polyfill-node.process-
|
|
4
|
+
var Text = require('./Text-peFVgwAt.js');
|
|
5
|
+
var Emphasis = require('./Emphasis-DEyToA8Q.js');
|
|
6
|
+
var Heading = require('./Heading-DkaeKjfo.js');
|
|
7
|
+
var Content = require('./Content-DuR0rm04.js');
|
|
8
|
+
var index$3 = require('./index-BtX7VXfB.js');
|
|
9
|
+
var _commonjsHelpers = require('./_commonjsHelpers-Bu8xvWPt.js');
|
|
10
|
+
var _polyfillNode_process = require('./_polyfill-node.process-DqV0dxt5.js');
|
|
11
11
|
|
|
12
12
|
const protocols = ['http', 'https', 'mailto', 'tel'];
|
|
13
13
|
|
package/dist/Menu/Menu.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ export interface SectionProps {
|
|
|
18
18
|
/**
|
|
19
19
|
* List of actions.
|
|
20
20
|
*/
|
|
21
|
-
actions:
|
|
21
|
+
actions: ActionProps[];
|
|
22
22
|
}
|
|
23
23
|
export declare function Menu({ activator, items }: MenuProps): JSX.Element;
|
|
24
24
|
export interface ActionProps {
|
|
@@ -38,8 +38,4 @@ export interface ActionProps {
|
|
|
38
38
|
* Callback when an action gets clicked
|
|
39
39
|
*/
|
|
40
40
|
onClick?(event: React.MouseEvent<HTMLButtonElement>): void;
|
|
41
|
-
/**
|
|
42
|
-
* Focus on the action when rendered
|
|
43
|
-
*/
|
|
44
|
-
readonly shouldFocus?: boolean;
|
|
45
41
|
}
|
package/dist/Menu/index.cjs
CHANGED
|
@@ -1,17 +1,22 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var Menu = require('../Menu-
|
|
3
|
+
var Menu = require('../Menu-BlmUC9_o.js');
|
|
4
4
|
require('react');
|
|
5
5
|
require('classnames');
|
|
6
6
|
require('framer-motion');
|
|
7
|
-
require('../useOnKeyDown-
|
|
8
|
-
require('../useRefocusOnActivator-
|
|
9
|
-
require('
|
|
10
|
-
require('../
|
|
7
|
+
require('../useOnKeyDown-C6ltagTI.js');
|
|
8
|
+
require('../useRefocusOnActivator-2m00T6oF.js');
|
|
9
|
+
require('react-popper');
|
|
10
|
+
require('../useIsMounted-CuUi54dy.js');
|
|
11
|
+
require('../useSafeLayoutEffect-QSRcKzt8.js');
|
|
12
|
+
require('react-dom');
|
|
13
|
+
require('../useFocusTrap-C-5L8t2O.js');
|
|
14
|
+
require('../Button-QvLjUH8E.js');
|
|
11
15
|
require('react-router-dom');
|
|
12
|
-
require('../Icon-
|
|
16
|
+
require('../Icon-Cnl8JGKx.js');
|
|
13
17
|
require('@jobber/design');
|
|
14
|
-
require('../Typography-
|
|
18
|
+
require('../Typography-BRM4J_HF.js');
|
|
19
|
+
require('../useFormFieldFocus-1k4H2xgN.js');
|
|
15
20
|
|
|
16
21
|
|
|
17
22
|
|
package/dist/Menu/index.mjs
CHANGED
|
@@ -1,12 +1,17 @@
|
|
|
1
|
-
export { M as Menu } from '../Menu-
|
|
1
|
+
export { M as Menu } from '../Menu-Bqh5jv-b.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'classnames';
|
|
4
4
|
import 'framer-motion';
|
|
5
|
-
import '../useOnKeyDown-
|
|
6
|
-
import '../useRefocusOnActivator-
|
|
7
|
-
import '
|
|
8
|
-
import '../
|
|
5
|
+
import '../useOnKeyDown-CYug9OqU.js';
|
|
6
|
+
import '../useRefocusOnActivator-iwGnR0Vw.js';
|
|
7
|
+
import 'react-popper';
|
|
8
|
+
import '../useIsMounted-dlJDdvKW.js';
|
|
9
|
+
import '../useSafeLayoutEffect-CbMaKY2e.js';
|
|
10
|
+
import 'react-dom';
|
|
11
|
+
import '../useFocusTrap-CS0nwIHU.js';
|
|
12
|
+
import '../Button-D1Eyu5Sn.js';
|
|
9
13
|
import 'react-router-dom';
|
|
10
|
-
import '../Icon-
|
|
14
|
+
import '../Icon-BDfk62i_.js';
|
|
11
15
|
import '@jobber/design';
|
|
12
|
-
import '../Typography-
|
|
16
|
+
import '../Typography-nicMpjd_.js';
|
|
17
|
+
import '../useFormFieldFocus-BA4qdwgn.js';
|
|
@@ -0,0 +1,170 @@
|
|
|
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-C6ltagTI.js');
|
|
7
|
+
var useRefocusOnActivator = require('./useRefocusOnActivator-2m00T6oF.js');
|
|
8
|
+
var reactPopper = require('react-popper');
|
|
9
|
+
var useIsMounted = require('./useIsMounted-CuUi54dy.js');
|
|
10
|
+
var ReactDOM = require('react-dom');
|
|
11
|
+
var useFocusTrap = require('./useFocusTrap-C-5L8t2O.js');
|
|
12
|
+
var Button = require('./Button-QvLjUH8E.js');
|
|
13
|
+
var Typography = require('./Typography-BRM4J_HF.js');
|
|
14
|
+
var Icon = require('./Icon-Cnl8JGKx.js');
|
|
15
|
+
var useFormFieldFocus = require('./useFormFieldFocus-1k4H2xgN.js');
|
|
16
|
+
|
|
17
|
+
var useWindowDimensions$1 = {};
|
|
18
|
+
|
|
19
|
+
Object.defineProperty(useWindowDimensions$1, "__esModule", { value: true });
|
|
20
|
+
var useWindowDimensions_2 = useWindowDimensions$1.useWindowDimensions = void 0;
|
|
21
|
+
const react_1 = React;
|
|
22
|
+
function getWindowDimensions() {
|
|
23
|
+
if (!(globalThis === null || globalThis === void 0 ? void 0 : globalThis.document)) {
|
|
24
|
+
return {
|
|
25
|
+
width: 0,
|
|
26
|
+
height: 0,
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
const { innerWidth: width, innerHeight: height } = window;
|
|
30
|
+
return {
|
|
31
|
+
width,
|
|
32
|
+
height,
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
function useWindowDimensions() {
|
|
36
|
+
const [windowDimensions, setWindowDimensions] = (0, react_1.useState)(getWindowDimensions());
|
|
37
|
+
(0, react_1.useEffect)(() => {
|
|
38
|
+
function handleResize() {
|
|
39
|
+
setWindowDimensions(getWindowDimensions());
|
|
40
|
+
}
|
|
41
|
+
window === null || window === void 0 ? void 0 : window.addEventListener("resize", handleResize);
|
|
42
|
+
return () => window === null || window === void 0 ? void 0 : window.removeEventListener("resize", handleResize);
|
|
43
|
+
}, []);
|
|
44
|
+
return windowDimensions;
|
|
45
|
+
}
|
|
46
|
+
useWindowDimensions_2 = useWindowDimensions$1.useWindowDimensions = useWindowDimensions;
|
|
47
|
+
|
|
48
|
+
var styles = {"wrapper":"dT6M9tp1sZc-","popperContainer":"_9pvjsJS6vsg-","shadowRef":"G7Nzd9sctos-","menu":"Qmxlsj0D3qM-","section":"LaKFjYCLHZc-","sectionHeader":"_7HB7dWnqCi0-","action":"ZuceCiefKqw-","overlay":"eKnUAucwwWU-","fullWidth":"oaxefr58z-E-","screenReaderOnly":"vz9opIdwHFg-"};
|
|
49
|
+
|
|
50
|
+
const SMALL_SCREEN_BREAKPOINT = 490;
|
|
51
|
+
const MENU_OFFSET = 6;
|
|
52
|
+
const variation = {
|
|
53
|
+
overlayStartStop: { opacity: 0 },
|
|
54
|
+
startOrStop: (placement) => {
|
|
55
|
+
let y = 10;
|
|
56
|
+
if (placement === null || placement === void 0 ? void 0 : placement.includes("bottom"))
|
|
57
|
+
y *= -1;
|
|
58
|
+
if (window.innerWidth < SMALL_SCREEN_BREAKPOINT)
|
|
59
|
+
y = 150;
|
|
60
|
+
return { opacity: 0, y };
|
|
61
|
+
},
|
|
62
|
+
done: { opacity: 1, y: 0 },
|
|
63
|
+
};
|
|
64
|
+
// eslint-disable-next-line max-statements
|
|
65
|
+
function Menu({ activator, items }) {
|
|
66
|
+
var _a, _b;
|
|
67
|
+
const [visible, setVisible] = React.useState(false);
|
|
68
|
+
const shadowRef = React.useRef(null);
|
|
69
|
+
const { width } = useWindowDimensions_2();
|
|
70
|
+
const buttonID = React.useId();
|
|
71
|
+
const menuID = React.useId();
|
|
72
|
+
const fullWidth = ((_a = activator === null || activator === void 0 ? void 0 : activator.props) === null || _a === void 0 ? void 0 : _a.fullWidth) || false;
|
|
73
|
+
const wrapperClasses = classnames(styles.wrapper, {
|
|
74
|
+
[styles.fullWidth]: fullWidth,
|
|
75
|
+
});
|
|
76
|
+
useOnKeyDown.useOnKeyDown_2(handleKeyboardShortcut, ["Escape"]);
|
|
77
|
+
// useRefocusOnActivator must come before useFocusTrap for them both to work
|
|
78
|
+
useRefocusOnActivator.useRefocusOnActivator_2(visible);
|
|
79
|
+
const menuRef = useFocusTrap.useFocusTrap_2(visible);
|
|
80
|
+
const [popperElement, setPopperElement] = React.useState(null);
|
|
81
|
+
const { styles: popperStyles, attributes, state, } = reactPopper.usePopper((_b = shadowRef.current) === null || _b === void 0 ? void 0 : _b.nextElementSibling, popperElement, {
|
|
82
|
+
placement: "bottom-start",
|
|
83
|
+
strategy: "fixed",
|
|
84
|
+
modifiers: [
|
|
85
|
+
{
|
|
86
|
+
name: "flip",
|
|
87
|
+
options: {
|
|
88
|
+
flipVariations: true,
|
|
89
|
+
},
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
name: "offset",
|
|
93
|
+
options: {
|
|
94
|
+
offset: [0, MENU_OFFSET],
|
|
95
|
+
},
|
|
96
|
+
},
|
|
97
|
+
],
|
|
98
|
+
});
|
|
99
|
+
const positionAttributes = width >= SMALL_SCREEN_BREAKPOINT
|
|
100
|
+
? Object.assign(Object.assign({}, attributes.popper), { style: popperStyles.popper }) : {};
|
|
101
|
+
if (!activator) {
|
|
102
|
+
activator = (React.createElement(Button.Button, { fullWidth: true, label: "More Actions", icon: "more", type: "secondary" }));
|
|
103
|
+
}
|
|
104
|
+
return (React.createElement("div", { className: wrapperClasses, onClick: handleParentClick },
|
|
105
|
+
React.createElement("span", { ref: shadowRef, className: styles.shadowRef }),
|
|
106
|
+
React.cloneElement(activator, {
|
|
107
|
+
onClick: toggle(activator.props.onClick),
|
|
108
|
+
id: buttonID,
|
|
109
|
+
ariaControls: menuID,
|
|
110
|
+
ariaExpanded: visible,
|
|
111
|
+
ariaHaspopup: true,
|
|
112
|
+
}),
|
|
113
|
+
React.createElement(MenuPortal, null,
|
|
114
|
+
React.createElement(framerMotion.AnimatePresence, null, visible && (React.createElement(React.Fragment, null,
|
|
115
|
+
React.createElement(framerMotion.motion.div, { className: styles.overlay, onClick: toggle(), variants: variation, initial: "overlayStartStop", animate: "done", exit: "overlayStartStop", transition: {
|
|
116
|
+
type: "tween",
|
|
117
|
+
duration: 0.15,
|
|
118
|
+
} }),
|
|
119
|
+
React.createElement("div", Object.assign({ ref: setPopperElement, className: styles.popperContainer }, positionAttributes, useFormFieldFocus.formFieldFocusAttribute), items.length > 0 && (React.createElement(framerMotion.motion.div, { className: styles.menu, role: "menu", "aria-labelledby": buttonID, id: menuID, onClick: hide, variants: variation, initial: "startOrStop", animate: "done", exit: "startOrStop", custom: state === null || state === void 0 ? void 0 : state.placement, ref: menuRef, transition: {
|
|
120
|
+
type: "tween",
|
|
121
|
+
duration: 0.25,
|
|
122
|
+
} }, items.map((item, key) => (React.createElement("div", { key: key, className: styles.section },
|
|
123
|
+
item.header && React.createElement(SectionHeader, { text: item.header }),
|
|
124
|
+
item.actions.map(action => (React.createElement(Action, Object.assign({ sectionLabel: item.header, key: action.label }, action))))))))))))))));
|
|
125
|
+
function toggle(callbackPassthrough) {
|
|
126
|
+
return (event) => {
|
|
127
|
+
setVisible(!visible);
|
|
128
|
+
callbackPassthrough && callbackPassthrough(event);
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
function hide() {
|
|
132
|
+
setVisible(false);
|
|
133
|
+
}
|
|
134
|
+
function handleKeyboardShortcut(event) {
|
|
135
|
+
const { key } = event;
|
|
136
|
+
if (!visible)
|
|
137
|
+
return;
|
|
138
|
+
event.preventDefault();
|
|
139
|
+
event.stopPropagation();
|
|
140
|
+
key === "Escape" && hide();
|
|
141
|
+
}
|
|
142
|
+
function handleParentClick(event) {
|
|
143
|
+
// Since the menu is being rendered within the same parent as the activator,
|
|
144
|
+
// we need to stop the click event from bubbling up. If the Menu component
|
|
145
|
+
// gets added within a parent that has a click handler, any click on the
|
|
146
|
+
// menu will trigger the parent's click handler.
|
|
147
|
+
event.stopPropagation();
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
function SectionHeader({ text }) {
|
|
151
|
+
return (React.createElement("div", { className: styles.sectionHeader, "aria-hidden": true },
|
|
152
|
+
React.createElement(Typography.Typography, { element: "h6", size: "base", textColor: "textSecondary", fontWeight: "regular", textCase: "none" }, text)));
|
|
153
|
+
}
|
|
154
|
+
function Action({ label, sectionLabel, icon, onClick }) {
|
|
155
|
+
const actionButtonRef = React.useRef();
|
|
156
|
+
return (React.createElement("button", { role: "menuitem", type: "button", className: styles.action, key: label, onClick: onClick, ref: actionButtonRef },
|
|
157
|
+
icon && React.createElement(Icon.Icon, { name: icon }),
|
|
158
|
+
React.createElement(Typography.Typography, { element: "span", fontWeight: "semiBold", textColor: "textSecondary" },
|
|
159
|
+
sectionLabel && (React.createElement("span", { className: styles.screenReaderOnly }, sectionLabel)),
|
|
160
|
+
label)));
|
|
161
|
+
}
|
|
162
|
+
function MenuPortal({ children }) {
|
|
163
|
+
const mounted = useIsMounted.useIsMounted_2();
|
|
164
|
+
if (!(mounted === null || mounted === void 0 ? void 0 : mounted.current)) {
|
|
165
|
+
return null;
|
|
166
|
+
}
|
|
167
|
+
return ReactDOM.createPortal(children, document.body);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
exports.Menu = Menu;
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
import React, { useState, useRef, useId } from 'react';
|
|
2
|
+
import classnames from 'classnames';
|
|
3
|
+
import { AnimatePresence, motion } from 'framer-motion';
|
|
4
|
+
import { u as useOnKeyDown_2 } from './useOnKeyDown-CYug9OqU.js';
|
|
5
|
+
import { u as useRefocusOnActivator_2 } from './useRefocusOnActivator-iwGnR0Vw.js';
|
|
6
|
+
import { usePopper } from 'react-popper';
|
|
7
|
+
import { u as useIsMounted_2 } from './useIsMounted-dlJDdvKW.js';
|
|
8
|
+
import ReactDOM from 'react-dom';
|
|
9
|
+
import { u as useFocusTrap_2 } from './useFocusTrap-CS0nwIHU.js';
|
|
10
|
+
import { B as Button } from './Button-D1Eyu5Sn.js';
|
|
11
|
+
import { T as Typography } from './Typography-nicMpjd_.js';
|
|
12
|
+
import { I as Icon } from './Icon-BDfk62i_.js';
|
|
13
|
+
import { f as formFieldFocusAttribute } from './useFormFieldFocus-BA4qdwgn.js';
|
|
14
|
+
|
|
15
|
+
var useWindowDimensions$1 = {};
|
|
16
|
+
|
|
17
|
+
Object.defineProperty(useWindowDimensions$1, "__esModule", { value: true });
|
|
18
|
+
var useWindowDimensions_2 = useWindowDimensions$1.useWindowDimensions = void 0;
|
|
19
|
+
const react_1 = React;
|
|
20
|
+
function getWindowDimensions() {
|
|
21
|
+
if (!(globalThis === null || globalThis === void 0 ? void 0 : globalThis.document)) {
|
|
22
|
+
return {
|
|
23
|
+
width: 0,
|
|
24
|
+
height: 0,
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
const { innerWidth: width, innerHeight: height } = window;
|
|
28
|
+
return {
|
|
29
|
+
width,
|
|
30
|
+
height,
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
function useWindowDimensions() {
|
|
34
|
+
const [windowDimensions, setWindowDimensions] = (0, react_1.useState)(getWindowDimensions());
|
|
35
|
+
(0, react_1.useEffect)(() => {
|
|
36
|
+
function handleResize() {
|
|
37
|
+
setWindowDimensions(getWindowDimensions());
|
|
38
|
+
}
|
|
39
|
+
window === null || window === void 0 ? void 0 : window.addEventListener("resize", handleResize);
|
|
40
|
+
return () => window === null || window === void 0 ? void 0 : window.removeEventListener("resize", handleResize);
|
|
41
|
+
}, []);
|
|
42
|
+
return windowDimensions;
|
|
43
|
+
}
|
|
44
|
+
useWindowDimensions_2 = useWindowDimensions$1.useWindowDimensions = useWindowDimensions;
|
|
45
|
+
|
|
46
|
+
var styles = {"wrapper":"dT6M9tp1sZc-","popperContainer":"_9pvjsJS6vsg-","shadowRef":"G7Nzd9sctos-","menu":"Qmxlsj0D3qM-","section":"LaKFjYCLHZc-","sectionHeader":"_7HB7dWnqCi0-","action":"ZuceCiefKqw-","overlay":"eKnUAucwwWU-","fullWidth":"oaxefr58z-E-","screenReaderOnly":"vz9opIdwHFg-"};
|
|
47
|
+
|
|
48
|
+
const SMALL_SCREEN_BREAKPOINT = 490;
|
|
49
|
+
const MENU_OFFSET = 6;
|
|
50
|
+
const variation = {
|
|
51
|
+
overlayStartStop: { opacity: 0 },
|
|
52
|
+
startOrStop: (placement) => {
|
|
53
|
+
let y = 10;
|
|
54
|
+
if (placement === null || placement === void 0 ? void 0 : placement.includes("bottom"))
|
|
55
|
+
y *= -1;
|
|
56
|
+
if (window.innerWidth < SMALL_SCREEN_BREAKPOINT)
|
|
57
|
+
y = 150;
|
|
58
|
+
return { opacity: 0, y };
|
|
59
|
+
},
|
|
60
|
+
done: { opacity: 1, y: 0 },
|
|
61
|
+
};
|
|
62
|
+
// eslint-disable-next-line max-statements
|
|
63
|
+
function Menu({ activator, items }) {
|
|
64
|
+
var _a, _b;
|
|
65
|
+
const [visible, setVisible] = useState(false);
|
|
66
|
+
const shadowRef = useRef(null);
|
|
67
|
+
const { width } = useWindowDimensions_2();
|
|
68
|
+
const buttonID = useId();
|
|
69
|
+
const menuID = useId();
|
|
70
|
+
const fullWidth = ((_a = activator === null || activator === void 0 ? void 0 : activator.props) === null || _a === void 0 ? void 0 : _a.fullWidth) || false;
|
|
71
|
+
const wrapperClasses = classnames(styles.wrapper, {
|
|
72
|
+
[styles.fullWidth]: fullWidth,
|
|
73
|
+
});
|
|
74
|
+
useOnKeyDown_2(handleKeyboardShortcut, ["Escape"]);
|
|
75
|
+
// useRefocusOnActivator must come before useFocusTrap for them both to work
|
|
76
|
+
useRefocusOnActivator_2(visible);
|
|
77
|
+
const menuRef = useFocusTrap_2(visible);
|
|
78
|
+
const [popperElement, setPopperElement] = useState(null);
|
|
79
|
+
const { styles: popperStyles, attributes, state, } = usePopper((_b = shadowRef.current) === null || _b === void 0 ? void 0 : _b.nextElementSibling, popperElement, {
|
|
80
|
+
placement: "bottom-start",
|
|
81
|
+
strategy: "fixed",
|
|
82
|
+
modifiers: [
|
|
83
|
+
{
|
|
84
|
+
name: "flip",
|
|
85
|
+
options: {
|
|
86
|
+
flipVariations: true,
|
|
87
|
+
},
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
name: "offset",
|
|
91
|
+
options: {
|
|
92
|
+
offset: [0, MENU_OFFSET],
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
],
|
|
96
|
+
});
|
|
97
|
+
const positionAttributes = width >= SMALL_SCREEN_BREAKPOINT
|
|
98
|
+
? Object.assign(Object.assign({}, attributes.popper), { style: popperStyles.popper }) : {};
|
|
99
|
+
if (!activator) {
|
|
100
|
+
activator = (React.createElement(Button, { fullWidth: true, label: "More Actions", icon: "more", type: "secondary" }));
|
|
101
|
+
}
|
|
102
|
+
return (React.createElement("div", { className: wrapperClasses, onClick: handleParentClick },
|
|
103
|
+
React.createElement("span", { ref: shadowRef, className: styles.shadowRef }),
|
|
104
|
+
React.cloneElement(activator, {
|
|
105
|
+
onClick: toggle(activator.props.onClick),
|
|
106
|
+
id: buttonID,
|
|
107
|
+
ariaControls: menuID,
|
|
108
|
+
ariaExpanded: visible,
|
|
109
|
+
ariaHaspopup: true,
|
|
110
|
+
}),
|
|
111
|
+
React.createElement(MenuPortal, null,
|
|
112
|
+
React.createElement(AnimatePresence, null, visible && (React.createElement(React.Fragment, null,
|
|
113
|
+
React.createElement(motion.div, { className: styles.overlay, onClick: toggle(), variants: variation, initial: "overlayStartStop", animate: "done", exit: "overlayStartStop", transition: {
|
|
114
|
+
type: "tween",
|
|
115
|
+
duration: 0.15,
|
|
116
|
+
} }),
|
|
117
|
+
React.createElement("div", Object.assign({ ref: setPopperElement, className: styles.popperContainer }, positionAttributes, formFieldFocusAttribute), items.length > 0 && (React.createElement(motion.div, { className: styles.menu, role: "menu", "aria-labelledby": buttonID, id: menuID, onClick: hide, variants: variation, initial: "startOrStop", animate: "done", exit: "startOrStop", custom: state === null || state === void 0 ? void 0 : state.placement, ref: menuRef, transition: {
|
|
118
|
+
type: "tween",
|
|
119
|
+
duration: 0.25,
|
|
120
|
+
} }, items.map((item, key) => (React.createElement("div", { key: key, className: styles.section },
|
|
121
|
+
item.header && React.createElement(SectionHeader, { text: item.header }),
|
|
122
|
+
item.actions.map(action => (React.createElement(Action, Object.assign({ sectionLabel: item.header, key: action.label }, action))))))))))))))));
|
|
123
|
+
function toggle(callbackPassthrough) {
|
|
124
|
+
return (event) => {
|
|
125
|
+
setVisible(!visible);
|
|
126
|
+
callbackPassthrough && callbackPassthrough(event);
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
function hide() {
|
|
130
|
+
setVisible(false);
|
|
131
|
+
}
|
|
132
|
+
function handleKeyboardShortcut(event) {
|
|
133
|
+
const { key } = event;
|
|
134
|
+
if (!visible)
|
|
135
|
+
return;
|
|
136
|
+
event.preventDefault();
|
|
137
|
+
event.stopPropagation();
|
|
138
|
+
key === "Escape" && hide();
|
|
139
|
+
}
|
|
140
|
+
function handleParentClick(event) {
|
|
141
|
+
// Since the menu is being rendered within the same parent as the activator,
|
|
142
|
+
// we need to stop the click event from bubbling up. If the Menu component
|
|
143
|
+
// gets added within a parent that has a click handler, any click on the
|
|
144
|
+
// menu will trigger the parent's click handler.
|
|
145
|
+
event.stopPropagation();
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
function SectionHeader({ text }) {
|
|
149
|
+
return (React.createElement("div", { className: styles.sectionHeader, "aria-hidden": true },
|
|
150
|
+
React.createElement(Typography, { element: "h6", size: "base", textColor: "textSecondary", fontWeight: "regular", textCase: "none" }, text)));
|
|
151
|
+
}
|
|
152
|
+
function Action({ label, sectionLabel, icon, onClick }) {
|
|
153
|
+
const actionButtonRef = useRef();
|
|
154
|
+
return (React.createElement("button", { role: "menuitem", type: "button", className: styles.action, key: label, onClick: onClick, ref: actionButtonRef },
|
|
155
|
+
icon && React.createElement(Icon, { name: icon }),
|
|
156
|
+
React.createElement(Typography, { element: "span", fontWeight: "semiBold", textColor: "textSecondary" },
|
|
157
|
+
sectionLabel && (React.createElement("span", { className: styles.screenReaderOnly }, sectionLabel)),
|
|
158
|
+
label)));
|
|
159
|
+
}
|
|
160
|
+
function MenuPortal({ children }) {
|
|
161
|
+
const mounted = useIsMounted_2();
|
|
162
|
+
if (!(mounted === null || mounted === void 0 ? void 0 : mounted.current)) {
|
|
163
|
+
return null;
|
|
164
|
+
}
|
|
165
|
+
return ReactDOM.createPortal(children, document.body);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
export { Menu as M };
|
package/dist/Modal/index.cjs
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var Modal = require('../Modal-
|
|
3
|
+
var Modal = require('../Modal-CWg20itK.js');
|
|
4
4
|
require('react');
|
|
5
5
|
require('react-dom');
|
|
6
6
|
require('classnames');
|
|
7
7
|
require('framer-motion');
|
|
8
|
-
require('../useRefocusOnActivator-
|
|
9
|
-
require('../useOnKeyDown-
|
|
10
|
-
require('../useFocusTrap-
|
|
11
|
-
require('../Heading-
|
|
12
|
-
require('../Typography-
|
|
13
|
-
require('../Button-
|
|
8
|
+
require('../useRefocusOnActivator-2m00T6oF.js');
|
|
9
|
+
require('../useOnKeyDown-C6ltagTI.js');
|
|
10
|
+
require('../useFocusTrap-C-5L8t2O.js');
|
|
11
|
+
require('../Heading-DkaeKjfo.js');
|
|
12
|
+
require('../Typography-BRM4J_HF.js');
|
|
13
|
+
require('../Button-QvLjUH8E.js');
|
|
14
14
|
require('react-router-dom');
|
|
15
|
-
require('../Icon-
|
|
15
|
+
require('../Icon-Cnl8JGKx.js');
|
|
16
16
|
require('@jobber/design');
|
|
17
|
-
require('../ButtonDismiss-
|
|
17
|
+
require('../ButtonDismiss-CFRlhhxu.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
package/dist/Modal/index.mjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
export { M as Modal } from '../Modal-
|
|
1
|
+
export { M as Modal } from '../Modal-BiPCpSqf.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'react-dom';
|
|
4
4
|
import 'classnames';
|
|
5
5
|
import 'framer-motion';
|
|
6
|
-
import '../useRefocusOnActivator-
|
|
7
|
-
import '../useOnKeyDown-
|
|
8
|
-
import '../useFocusTrap-
|
|
9
|
-
import '../Heading-
|
|
10
|
-
import '../Typography-
|
|
11
|
-
import '../Button-
|
|
6
|
+
import '../useRefocusOnActivator-iwGnR0Vw.js';
|
|
7
|
+
import '../useOnKeyDown-CYug9OqU.js';
|
|
8
|
+
import '../useFocusTrap-CS0nwIHU.js';
|
|
9
|
+
import '../Heading-BryDkWa-.js';
|
|
10
|
+
import '../Typography-nicMpjd_.js';
|
|
11
|
+
import '../Button-D1Eyu5Sn.js';
|
|
12
12
|
import 'react-router-dom';
|
|
13
|
-
import '../Icon-
|
|
13
|
+
import '../Icon-BDfk62i_.js';
|
|
14
14
|
import '@jobber/design';
|
|
15
|
-
import '../ButtonDismiss-
|
|
15
|
+
import '../ButtonDismiss-hURnh71d.js';
|
|
@@ -2,12 +2,12 @@ import React from 'react';
|
|
|
2
2
|
import ReactDOM from 'react-dom';
|
|
3
3
|
import classnames from 'classnames';
|
|
4
4
|
import { AnimatePresence, motion } from 'framer-motion';
|
|
5
|
-
import { u as useRefocusOnActivator_2 } from './useRefocusOnActivator-
|
|
6
|
-
import { u as useOnKeyDown_2 } from './useOnKeyDown-
|
|
7
|
-
import { u as useFocusTrap_2 } from './useFocusTrap-
|
|
8
|
-
import { H as Heading } from './Heading-
|
|
9
|
-
import { B as Button } from './Button-
|
|
10
|
-
import { B as ButtonDismiss } from './ButtonDismiss-
|
|
5
|
+
import { u as useRefocusOnActivator_2 } from './useRefocusOnActivator-iwGnR0Vw.js';
|
|
6
|
+
import { u as useOnKeyDown_2 } from './useOnKeyDown-CYug9OqU.js';
|
|
7
|
+
import { u as useFocusTrap_2 } from './useFocusTrap-CS0nwIHU.js';
|
|
8
|
+
import { H as Heading } from './Heading-BryDkWa-.js';
|
|
9
|
+
import { B as Button } from './Button-D1Eyu5Sn.js';
|
|
10
|
+
import { B as ButtonDismiss } from './ButtonDismiss-hURnh71d.js';
|
|
11
11
|
|
|
12
12
|
var styles = {"container":"QGRLFHPoV5E-","overlay":"_4WzGOMUGj5I-","modal":"WLId2NJBQcQ-","header":"wjrPpIUNNrk-","closeButton":"rKvigUnOyYE-","actionBar":"_62c8HLZFwvs-","leftAction":"Xl1Ptn-P9Ew-","rightAction":"p2s7GtpoZz0-"};
|
|
13
13
|
|