@jobber/components 5.7.2 → 5.7.3
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-CFLVaKlb.js → AnimatedSwitcher-BPx2eF9_.js} +1 -1
- package/dist/{AnimatedSwitcher-C8ERpDY7.js → AnimatedSwitcher-vb3d8io8.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-y0u2ijkF.js → Autocomplete-CdZ7Plx-.js} +9 -9
- package/dist/{Autocomplete-C4uoRTT9.js → Autocomplete-D9lHTWu0.js} +9 -9
- package/dist/Avatar/index.cjs +2 -2
- package/dist/Avatar/index.mjs +2 -2
- package/dist/{Avatar-fQHt9v5z.js → Avatar-BMwB3Dj5.js} +1 -1
- package/dist/{Avatar-Co6eQ_hq.js → Avatar-rKzimFpT.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-BMOV8j3i.js → Banner-DiP_mZFA.js} +5 -5
- package/dist/{Banner-DR57fOUJ.js → Banner-TB0VPesD.js} +5 -5
- package/dist/{BannerIcon-CcEPYmpa.js → BannerIcon-Cih3AOSP.js} +1 -1
- package/dist/{BannerIcon-CBqONIDX.js → BannerIcon-Daj2LfKL.js} +1 -1
- package/dist/Button/index.cjs +3 -3
- package/dist/Button/index.mjs +3 -3
- package/dist/{Button-Dk57MT7t.js → Button-40o9k1UN.js} +2 -2
- package/dist/{Button-5NZGPGRp.js → Button-BgK3yaef.js} +2 -2
- package/dist/ButtonDismiss/index.cjs +4 -4
- package/dist/ButtonDismiss/index.mjs +4 -4
- package/dist/{ButtonDismiss-B32HVZaK.js → ButtonDismiss-ClK59rGr.js} +1 -1
- package/dist/{ButtonDismiss-BDjhpTVH.js → ButtonDismiss-CnkmYFGY.js} +1 -1
- package/dist/Card/index.cjs +14 -9
- package/dist/Card/index.mjs +14 -9
- package/dist/{Card-C2KRWc7V.js → Card-Dx1eSJhY.js} +3 -3
- package/dist/{Card-DXl9F7jP.js → Card-TY7r5-M0.js} +3 -3
- package/dist/Checkbox/index.cjs +5 -5
- package/dist/Checkbox/index.mjs +5 -5
- package/dist/{Checkbox-BbIDn-8c.js → Checkbox-CRrgFM3i.js} +3 -3
- package/dist/{Checkbox-B5H8oHVx.js → Checkbox-DN-KN4YW.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-CSfqOwU9.js → Chip-C-n-03ol.js} +6 -6
- package/dist/{Chip-Kiht7nox.js → Chip-DAPm2Qck.js} +6 -6
- package/dist/{ChipDismissible-BZQLcdTx.js → ChipDismissible-BhEUozMN.js} +3 -3
- package/dist/{ChipDismissible-Dvm6-BY0.js → ChipDismissible-DzQAEeGP.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-BNPp3s91.js} +2 -2
- package/dist/{Chips-B6PczwWw.js → Chips-CKh4DI3K.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-SB0isb0D.js → Combobox-CHZw_Jvf.js} +9 -9
- package/dist/{Combobox-DYnQXPP_.js → Combobox-ItCTl-z5.js} +9 -9
- package/dist/{ComboboxAction-Cz4FXd2j.js → ComboboxAction-CSOwvZry.js} +2 -2
- package/dist/{ComboboxAction-CRlhP9z6.js → ComboboxAction-DZRlt5Ie.js} +2 -2
- package/dist/{ComboboxActivator-CjGJj4tW.js → ComboboxActivator-B4zAMuNw.js} +4 -4
- package/dist/{ComboboxActivator-BPpiOe-0.js → ComboboxActivator-CtblPAlT.js} +4 -4
- package/dist/{ComboboxContent-Bq9yf2_X.js → ComboboxContent-WlzGnKfI.js} +7 -7
- package/dist/{ComboboxContent-DvYccsSh.js → ComboboxContent-Z5J59cDq.js} +7 -7
- package/dist/{ComboboxContentHeader-CqmkA0by.js → ComboboxContentHeader-B0KrHcXl.js} +2 -2
- package/dist/{ComboboxContentHeader-CfCFfJPq.js → ComboboxContentHeader-Cku37uVP.js} +2 -2
- package/dist/{ComboboxContentList-Cg2Li4fB.js → ComboboxContentList-1f-KKTFM.js} +6 -6
- package/dist/{ComboboxContentList-D8fiuD5T.js → ComboboxContentList-B9r4z1sO.js} +6 -6
- package/dist/{ComboboxContentSearch-BoTMA3yG.js → ComboboxContentSearch-Byo_lN3m.js} +1 -1
- package/dist/{ComboboxContentSearch-DYvJ9-oV.js → ComboboxContentSearch-Djm78cPr.js} +1 -1
- package/dist/{ComboboxLoadMore-CFqi-mB-.js → ComboboxLoadMore-CUzIaD8Z.js} +1 -1
- package/dist/{ComboboxLoadMore-CG3V-Zcv.js → ComboboxLoadMore-DUi-JVqX.js} +1 -1
- package/dist/{ComboboxOption-BvR0pSO7.js → ComboboxOption-Cs4Z2i4m.js} +3 -3
- package/dist/{ComboboxOption-BBzdKdAC.js → ComboboxOption-DOxxOHcy.js} +3 -3
- package/dist/{ComboboxProvider-Dc5Qbmus.js → ComboboxProvider-CJqjZc_Y.js} +1 -1
- package/dist/{ComboboxProvider-BGSQKp0S.js → ComboboxProvider-D6Kp2GYa.js} +1 -1
- package/dist/{ComboboxTrigger-DJPS2dpd.js → ComboboxTrigger-B4i7pwVq.js} +4 -4
- package/dist/{ComboboxTrigger-DuXuKIOY.js → ComboboxTrigger-DzkuNmij.js} +4 -4
- package/dist/ConfirmationModal/index.cjs +17 -17
- package/dist/ConfirmationModal/index.mjs +17 -17
- package/dist/{ConfirmationModal-jkKpP5p6.js → ConfirmationModal-B7fiGk-B.js} +4 -4
- package/dist/{ConfirmationModal-CU3PRUXC.js → ConfirmationModal-CEXDiqI8.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-Df5Ic73D.js → Countdown-BXL3gvfH.js} +1 -1
- package/dist/{Countdown-CHqE7Pbb.js → Countdown-D2MQjLjx.js} +1 -1
- package/dist/DataDump/index.cjs +17 -12
- package/dist/DataDump/index.mjs +17 -12
- package/dist/{DataDump-tRsfJ-52.js → DataDump-Bj4OJJbj.js} +3 -3
- package/dist/{DataDump-DDKUIIu1.js → DataDump-DCcGNhtj.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-BrH673bv.js → DataList-CD1gHhBZ.js} +21 -21
- package/dist/{DataList-Dbah0rGv.js → DataList-sChLd77Z.js} +21 -21
- package/dist/{DataList.utils-Dawo0aa-.js → DataList.utils-ByB4L-9j.js} +8 -8
- package/dist/{DataList.utils-sZJpYE6z.js → DataList.utils-CZVTFIQv.js} +8 -8
- package/dist/{DataListAction-BcJlUowI.js → DataListAction-Drm3wLrq.js} +3 -3
- package/dist/{DataListAction-Bs3FtpMo.js → DataListAction-q22zELAK.js} +3 -3
- package/dist/{DataListActions-BwCpgHQW.js → DataListActions-2xcew8ic.js} +6 -6
- package/dist/{DataListActions-Dd605_hq.js → DataListActions-DO1BqTnY.js} +6 -6
- package/dist/{DataListActionsMenu-F4cFv1ax.js → DataListActionsMenu-Bl5gAWMb.js} +5 -5
- package/dist/{DataListActionsMenu-CfzuNaI6.js → DataListActionsMenu-CydbVj2T.js} +5 -5
- package/dist/{DataListBulkActions-Ba0LawZK.js → DataListBulkActions-D4XSfeLI.js} +3 -3
- package/dist/{DataListBulkActions-Df0wTHhX.js → DataListBulkActions-DW7Ujaei.js} +3 -3
- package/dist/{DataListContext-keTgFNvv.js → DataListContext-CmYRd_fb.js} +1 -1
- package/dist/{DataListContext-BONiWdzX.js → DataListContext-Cqh8qf6b.js} +1 -1
- package/dist/{DataListEmptyState-ChYeFHb8.js → DataListEmptyState-BsMz-KDp.js} +4 -4
- package/dist/{DataListEmptyState-DDPZrh3Y.js → DataListEmptyState-CcsyFHmT.js} +4 -4
- package/dist/{DataListFilters-CK38fV5o.js → DataListFilters-DHEX06ZW.js} +5 -5
- package/dist/{DataListFilters-CAQViUiG.js → DataListFilters-j3w7bjN3.js} +5 -5
- package/dist/{DataListHeader-D4aG-ki3.js → DataListHeader-ClwZAKh5.js} +11 -11
- package/dist/{DataListHeader-xxRyvLOL.js → DataListHeader-CtJmHjTb.js} +11 -11
- package/dist/{DataListHeaderTile-5s8l2amv.js → DataListHeaderTile-Do-ib7oo.js} +5 -5
- package/dist/{DataListHeaderTile-CSEQQLSt.js → DataListHeaderTile-DvjccxXd.js} +5 -5
- package/dist/{DataListItem-BUS1gtDI.js → DataListItem-BNx1TdI1.js} +10 -10
- package/dist/{DataListItem-CJ56Y-tD.js → DataListItem-BnysqP4a.js} +10 -10
- package/dist/{DataListItemActions-Bzf4g9AC.js → DataListItemActions-BzvWBluR.js} +2 -2
- package/dist/{DataListItemActions-BRxyqEyb.js → DataListItemActions-CGrhK0JE.js} +2 -2
- package/dist/{DataListItemActionsOverflow-CZSZeCxJ.js → DataListItemActionsOverflow-Bl5BGXAD.js} +3 -3
- package/dist/{DataListItemActionsOverflow-BbKEXpyh.js → DataListItemActionsOverflow-YyU55jRS.js} +3 -3
- package/dist/{DataListItemClickable-CdKGwSEn.js → DataListItemClickable-d4odbtxu.js} +3 -3
- package/dist/{DataListItemClickable-_iWE_8_P.js → DataListItemClickable-iuk9vp4z.js} +3 -3
- package/dist/{DataListItems-CDTZUT6O.js → DataListItems-B5vFpcnZ.js} +3 -3
- package/dist/{DataListItems-BxFwkdon.js → DataListItems-DgyzL10i.js} +3 -3
- package/dist/{DataListLayout-BQ2GF_l4.js → DataListLayout-BFSJ6-x1.js} +3 -3
- package/dist/{DataListLayout-BWpH3-TP.js → DataListLayout-BzEc438i.js} +3 -3
- package/dist/{DataListLayoutActions-BM2mTAv0.js → DataListLayoutActions-CuZSeLcS.js} +4 -4
- package/dist/{DataListLayoutActions-BXjRjXGL.js → DataListLayoutActions-DeiIk-SR.js} +4 -4
- package/dist/{DataListLayoutContext-Ckfq35xV.js → DataListLayoutContext-CZCw1huK.js} +1 -1
- package/dist/{DataListLayoutContext-DIs5FEtJ.js → DataListLayoutContext-PX1zFxPY.js} +1 -1
- package/dist/{DataListLoadMore-C1WERP57.js → DataListLoadMore-3QWoe8-D.js} +5 -5
- package/dist/{DataListLoadMore-BaIw3k0i.js → DataListLoadMore-47VYaw6Y.js} +5 -5
- package/dist/{DataListLoadingState-CknX5EjV.js → DataListLoadingState-DFGwEHsG.js} +3 -3
- package/dist/{DataListLoadingState-CtkZX3-x.js → DataListLoadingState-xr29RUjq.js} +3 -3
- package/dist/{DataListOverflowFade-hKTuzcTz.js → DataListOverflowFade-BVlVZoui.js} +1 -1
- package/dist/{DataListOverflowFade-BYv_2Hdz.js → DataListOverflowFade-Cf0-AGWS.js} +1 -1
- package/dist/{DataListSearch-BbvPhIgx.js → DataListSearch-Br1eaQ8b.js} +6 -6
- package/dist/{DataListSearch-7bJ4YqtL.js → DataListSearch-TsK0cuAS.js} +6 -6
- package/dist/{DataListSort-DBfaSYUD.js → DataListSort-DnoyM5cP.js} +6 -6
- package/dist/{DataListSort-BPgDYDK5.js → DataListSort-tAn1cfzd.js} +6 -6
- package/dist/{DataListSortingOptions-BMDQM7SW.js → DataListSortingOptions-CeH9M6oT.js} +3 -3
- package/dist/{DataListSortingOptions-De1xI_mp.js → DataListSortingOptions-CsZ_rkvr.js} +3 -3
- package/dist/{DataListStatusBar-BYMj4Ztj.js → DataListStatusBar-DoTJSoM4.js} +2 -2
- package/dist/{DataListStatusBar-8eg_33Nn.js → DataListStatusBar-lboJqYXa.js} +2 -2
- package/dist/{DataListStickyHeader-G9CSKOI6.js → DataListStickyHeader-DL16qFub.js} +1 -1
- package/dist/{DataListStickyHeader-CeYJGWJM.js → DataListStickyHeader-xOJ3E_Sb.js} +1 -1
- package/dist/{DataListTags-Bmgao6_3.js → DataListTags-BCTg30De.js} +2 -2
- package/dist/{DataListTags-DS3j1kMd.js → DataListTags-CwMLZ5H5.js} +2 -2
- package/dist/{DataListTotalCount-CReeBPoi.js → DataListTotalCount-BS4IpQK8.js} +2 -2
- package/dist/{DataListTotalCount-BqD5VxXa.js → DataListTotalCount-e7NwiZw5.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-BD4ZSqdh.js → DataTable-BlZOXTDS.js} +6 -6
- package/dist/{DataTable-S5t82iBx.js → DataTable-DOh5wSpy.js} +6 -6
- package/dist/DatePicker/index.cjs +14 -14
- package/dist/DatePicker/index.mjs +14 -14
- package/dist/{DatePicker-DKFWn5AN.js → DatePicker-C2ek4uZp.js} +11 -11
- package/dist/{DatePicker-F4BiQr_B.js → DatePicker-CURi-cDm.js} +11 -11
- package/dist/{DayOfMonthSelect-CiIwOfrJ.js → DayOfMonthSelect-DUMhNPWV.js} +2 -2
- package/dist/{DayOfMonthSelect-MPLXu9bf.js → DayOfMonthSelect-DpvcOQ2n.js} +2 -2
- package/dist/DescriptionList/index.cjs +2 -2
- package/dist/DescriptionList/index.mjs +2 -2
- package/dist/{DescriptionList-Bw991yhF.js → DescriptionList-CLqc3gU6.js} +1 -1
- package/dist/{DescriptionList-CAg7eeK-.js → DescriptionList-ckWYj0jg.js} +1 -1
- package/dist/Disclosure/index.cjs +8 -8
- package/dist/Disclosure/index.mjs +8 -8
- package/dist/{Disclosure-C9IvObVH.js → Disclosure-Df04lR6H.js} +3 -3
- package/dist/{Disclosure-D0VszH38.js → Disclosure-DoR7KqYz.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-CorpeoUZ.js} +2 -2
- package/dist/{DrawerGrid-CheGYMEX.js → DrawerGrid-Dh2Inb8K.js} +2 -2
- package/dist/Emphasis/index.cjs +2 -2
- package/dist/Emphasis/index.mjs +2 -2
- package/dist/{Emphasis-lqZqdpMQ.js → Emphasis-Cx36B_k5.js} +1 -1
- package/dist/{Emphasis-oIeSg_ZX.js → Emphasis-Djq9yidY.js} +1 -1
- package/dist/FeatureSwitch/index.cjs +13 -13
- package/dist/FeatureSwitch/index.mjs +13 -13
- package/dist/{FeatureSwitch-Brmqf7oY.js → FeatureSwitch-CSSOgi9a.js} +7 -7
- package/dist/{FeatureSwitch-B0pRodlS.js → FeatureSwitch-CWw6agg4.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-qch5fQdo.js → Form-Byi7-dpe.js} +1 -1
- package/dist/{Form-CLDa30c5.js → Form-D7v60pU9.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-DSmh7bDr.js} +8 -37
- package/dist/{FormField-DyazCx_1.js → FormField-xu1KemLL.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-D6QmMBbv.js} +7 -7
- package/dist/{FormatFile-DJfGD-6I.js → FormatFile-Dd3pk-Sn.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-BSKWjJ4g.js} +3 -3
- package/dist/{Gallery-DQzNQEwo.js → Gallery-CLcIygVj.js} +3 -3
- package/dist/Glimmer/index.cjs +3 -3
- package/dist/Glimmer/index.mjs +3 -3
- package/dist/{Glimmer-D5M4ZxeS.js → Glimmer-7ZtKFyE_.js} +2 -2
- package/dist/{Glimmer-B8NHK9th.js → Glimmer-B_GPkCvV.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-lZjGqDQs.js → Grid-CWeKZnFM.js} +2 -2
- package/dist/{Grid-BC4zE12p.js → Grid-DtZ_suO7.js} +2 -2
- package/dist/Heading/index.cjs +2 -2
- package/dist/Heading/index.mjs +2 -2
- package/dist/{Heading-2zEW71bU.js → Heading-C4kphL4T.js} +1 -1
- package/dist/{Heading-lQiIuFIR.js → Heading-a9SUivb4.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-9FoPpuCC.js} +1 -1
- package/dist/{InlineLabel-BUCurIbZ.js → InlineLabel-Df0MUty-.js} +1 -1
- package/dist/InputAvatar/index.cjs +13 -13
- package/dist/InputAvatar/index.mjs +13 -13
- package/dist/{InputAvatar-B93Cf4nW.js → InputAvatar-0LOVGbKD.js} +5 -5
- package/dist/{InputAvatar-C-CNrAD0.js → InputAvatar-t1FUxwhO.js} +5 -5
- package/dist/InputDate/index.cjs +21 -20
- package/dist/InputDate/index.mjs +21 -20
- package/dist/{InputDate-MTM3tchG.js → InputDate-CtPfB2WY.js} +2 -2
- package/dist/{InputDate-bUo9T-xV.js → InputDate-Dqj_Cv8p.js} +2 -2
- package/dist/InputEmail/index.cjs +10 -9
- package/dist/InputEmail/index.mjs +10 -9
- package/dist/{InputEmail-BLYOE45H.js → InputEmail-B6uG5pVb.js} +1 -1
- package/dist/{InputEmail-BTgEgAx_.js → InputEmail-DvsW0x9u.js} +1 -1
- package/dist/InputFile/index.cjs +10 -10
- package/dist/InputFile/index.mjs +10 -10
- package/dist/{InputFile-DbLYX0RL.js → InputFile-CCRBVQru.js} +6 -6
- package/dist/{InputFile-Cyma-9Iq.js → InputFile-HtRJ3w1x.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-BjFBORBV.js} +1 -1
- package/dist/{InputNumber-Bnk85Qdy.js → InputNumber-Du0FganQ.js} +1 -1
- package/dist/InputPassword/index.cjs +10 -9
- package/dist/InputPassword/index.mjs +10 -9
- package/dist/{InputPassword-BjWK-SMW.js → InputPassword-BlM3npyG.js} +1 -1
- package/dist/{InputPassword-BO0c19ZO.js → InputPassword-Dw48VqJw.js} +1 -1
- package/dist/InputPhoneNumber/index.cjs +10 -9
- package/dist/InputPhoneNumber/index.mjs +10 -9
- package/dist/{InputPhoneNumber-CEiMpVwX.js → InputPhoneNumber-Cr4BqgYz.js} +2 -2
- package/dist/{InputPhoneNumber-B8bzNuaH.js → InputPhoneNumber-_kMDeUxU.js} +2 -2
- package/dist/InputText/index.cjs +11 -10
- package/dist/InputText/index.mjs +11 -10
- package/dist/{InputText-DZ8WgJrv.js → InputText-D8VPhSG7.js} +2 -2
- package/dist/{InputText-jF8xq1yr.js → InputText-DYXmWmRc.js} +2 -2
- package/dist/InputTime/index.cjs +14 -13
- package/dist/InputTime/index.mjs +14 -13
- package/dist/{InputTime-Ijro0VNk.js → InputTime-9_D4ODu4.js} +3 -3
- package/dist/{InputTime-B1Rli12p.js → InputTime-B6rxNz-L.js} +3 -3
- package/dist/InputValidation/index.cjs +4 -4
- package/dist/InputValidation/index.mjs +4 -4
- package/dist/{InputValidation-RoL8WPG-.js → InputValidation-BF4VzuG8.js} +2 -2
- package/dist/{InputValidation-DL_hYaKU.js → InputValidation-BFK1fDEo.js} +2 -2
- package/dist/{InternalChipDismissible-nxQvVFjp.js → InternalChipDismissible-BqwaAjja.js} +11 -11
- package/dist/{InternalChipDismissible-D86OzrE1.js → InternalChipDismissible-D_VtWQHt.js} +11 -11
- package/dist/LightBox/index.cjs +14 -14
- package/dist/LightBox/index.mjs +14 -14
- package/dist/{LightBox-DYkcTagy.js → LightBox-C_fevKfn.js} +7 -7
- package/dist/{LightBox-Pvgfboe8.js → LightBox-D-vDNkTe.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-Bzvf--EB.js} +10 -10
- package/dist/{List-B61Ps4o3.js → List-C7kwDx9B.js} +10 -10
- package/dist/Markdown/index.cjs +9 -9
- package/dist/Markdown/index.mjs +9 -9
- package/dist/{Markdown-DTUbQBbr.js → Markdown-BbfyrMMh.js} +7 -7
- package/dist/{Markdown-DdM6gIN_.js → Markdown-BozJiYmq.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-BxnFUP97.js +168 -0
- package/dist/Menu-CTLhz0sH.js +170 -0
- package/dist/Modal/index.cjs +9 -9
- package/dist/Modal/index.mjs +9 -9
- package/dist/{Modal-BAg8-RZS.js → Modal-Cf3LrFIv.js} +6 -6
- package/dist/{Modal-H4zzCkMM.js → Modal-DoK1I1st.js} +6 -6
- package/dist/MultiSelect/index.cjs +6 -6
- package/dist/MultiSelect/index.mjs +6 -6
- package/dist/{MultiSelect-5MgWeJnf.js → MultiSelect-BNfhc2yy.js} +3 -3
- package/dist/{MultiSelect-CXMoNVB4.js → MultiSelect-f7hSFCsT.js} +3 -3
- package/dist/{Option-CvrbFuE2.js → Option-7LXOC1OA.js} +1 -1
- package/dist/{Option-BqZ-KuAf.js → Option-DPemw8at.js} +1 -1
- package/dist/Page/index.cjs +25 -20
- package/dist/Page/index.mjs +25 -20
- package/dist/{Page-DbN0Soit.js → Page-CZYneGA-.js} +8 -8
- package/dist/{Page-VqptKnL9.js → Page-Cqor3JjT.js} +8 -8
- package/dist/Popover/index.cjs +6 -6
- package/dist/Popover/index.mjs +6 -6
- package/dist/{Popover-BU6JgebJ.js → Popover-Cyu7-8Yw.js} +2 -2
- package/dist/{Popover-DIaVQ9D1.js → Popover-McWbIZpn.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-FWIt_xNX.js} +1 -1
- package/dist/{RadioGroup-DcqHfbMr.js → RadioGroup-i3emHC2C.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-B04uvi8H.js → RecurringSelect-BeVxqBt6.js} +6 -6
- package/dist/{RecurringSelect-BRMWkWGx.js → RecurringSelect-CXkIiJ_k.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-BS0-FL1B.js} +2 -2
- package/dist/{StatusLabel-X1P9M-Uf.js → StatusLabel-Yt299vJ4.js} +2 -2
- package/dist/Switch/index.cjs +2 -2
- package/dist/Switch/index.mjs +2 -2
- package/dist/{Switch-C2zYmQCz.js → Switch-CrjlEcmN.js} +1 -1
- package/dist/{Switch-CxR0k9or.js → Switch-DO-6tBkQ.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-BNEdF55U.js → Tabs-B7vzpyDc.js} +1 -1
- package/dist/{Tabs-D1VIeNLX.js → Tabs-xuUxuZzm.js} +1 -1
- package/dist/Text/index.cjs +2 -2
- package/dist/Text/index.mjs +2 -2
- package/dist/{Text-ZNiN0cJV.js → Text-BFzvHq3G.js} +1 -1
- package/dist/{Text-C2XAkhfc.js → Text-rsDp1kZ4.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-DBPNFimU.js → Tooltip-B0trcXE9.js} +2 -2
- package/dist/{Tooltip-cF02I5I3.js → Tooltip-BiKQfi8h.js} +2 -2
- package/dist/Typography/index.cjs +1 -1
- package/dist/Typography/index.mjs +1 -1
- package/dist/{_baseAssignValue-CMAt3UhR.js → _baseAssignValue-BWL6z5ep.js} +1 -1
- package/dist/{_baseAssignValue-CnCvxC4c.js → _baseAssignValue-CYfoLyq4.js} +1 -1
- package/dist/{_baseEach-BZTpzMLN.js → _baseEach-BOP_Mv5c.js} +4 -4
- package/dist/{_baseEach-d1MASsIN.js → _baseEach-CldLG63Z.js} +4 -4
- package/dist/{_defineProperty-CiQj14Oi.js → _defineProperty-DXdS4fK8.js} +3 -3
- package/dist/{_defineProperty-B2KzC9Fx.js → _defineProperty-uX7HROij.js} +3 -3
- package/dist/{_getTag-CQF_pbAy.js → _getTag-DTZqIsID.js} +1 -1
- package/dist/{_getTag-DTkDs6kf.js → _getTag-XyjYhQwv.js} +1 -1
- package/dist/{_setToString-DAvdZChL.js → _setToString-CGVUo9zT.js} +3 -3
- package/dist/{_setToString-oANaJoqn.js → _setToString-CNWq8z6f.js} +3 -3
- package/dist/{debounce-CIgJ0zDw.js → debounce-D8WfY9H1.js} +3 -3
- package/dist/{debounce-BFOiFt5k.js → debounce-DAAf3zL9.js} +3 -3
- package/dist/{helpers-B8P4OU0k.js → helpers-D0m5RC6V.js} +1 -1
- package/dist/{helpers-HoPuZ7iP.js → helpers-Di4_gjqh.js} +1 -1
- package/dist/{index-DN6ehSy0.js → index-C_0wQNms.js} +1 -1
- package/dist/{index-j66Z75vE.js → index-CkHj92Xx.js} +1 -1
- package/dist/index.cjs +146 -145
- package/dist/index.mjs +146 -145
- package/dist/{isObjectLike-CtDU20ss.js → isObjectLike-CNGfZnhG.js} +1 -1
- package/dist/{isObjectLike-Df2lodes.js → isObjectLike-CSAlE5_b.js} +1 -1
- package/dist/{isSymbol-D7K5ON8L.js → isSymbol-B3AIQ_UC.js} +1 -1
- package/dist/{isSymbol-Dq_4lH3A.js → isSymbol-D9WQRQXa.js} +1 -1
- package/dist/{noop-CrQ5qq7s.js → noop-DfO6FlSv.js} +1 -1
- package/dist/{noop-CiNHwMe8.js → noop-Dp4iBeYO.js} +1 -1
- package/dist/styles.css +38 -78
- package/dist/{useActiveLayout-DVVSQ-0Z.js → useActiveLayout-BQssRuPJ.js} +2 -2
- package/dist/{useActiveLayout-BEWUzI6I.js → useActiveLayout-C15gDPpC.js} +2 -2
- package/dist/{useAssert-BNIHT9_e.js → useAssert-BYFOpAQ2.js} +2 -2
- package/dist/{useAssert-oQRdECre.js → useAssert-LkoMImw7.js} +2 -2
- package/dist/{useBatchSelect-BKLkKI__.js → useBatchSelect-BAx97RVe.js} +1 -1
- package/dist/{useBatchSelect-TIdF40FB.js → useBatchSelect-Bm3ZmS_F.js} +1 -1
- package/dist/useFormFieldFocus-DCnB26B0.js +60 -0
- package/dist/useFormFieldFocus-DxdBwh_q.js +57 -0
- package/dist/{useIsMounted-DqEM0Exv.js → useIsMounted--9X36-6F.js} +1 -1
- package/dist/{useIsMounted-Ct-pu3MO.js → useIsMounted-BsdKlPG6.js} +1 -1
- package/dist/{useResizeObserver-a3dVd6W_.js → useResizeObserver-CAlK0CPD.js} +3 -3
- package/dist/{useResizeObserver--Hq5NVxA.js → useResizeObserver-CKc_OMZG.js} +3 -3
- package/dist/{useResponsiveSizing-C8rE-xm1.js → useResponsiveSizing-C8UVAu4U.js} +1 -1
- package/dist/{useResponsiveSizing-DgdoYgkn.js → useResponsiveSizing-CLHTNl53.js} +1 -1
- package/dist/{useScrollToActive-Zo3p8qzn.js → useScrollToActive-B7eiCTBU.js} +9 -9
- package/dist/{useScrollToActive-Z1U5tdKe.js → useScrollToActive-D5KmnLXS.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-BiIKty6p.js → AnimatedPresence-BYdT244r.js} +0 -0
- /package/dist/{AnimatedPresence-COik-nM7.js → AnimatedPresence-CkHU8xB4.js} +0 -0
- /package/dist/{AtlantisContext-BjFNVjpc.js → AtlantisContext-8i6n1neA.js} +0 -0
- /package/dist/{AtlantisContext-BHNrWSl_.js → AtlantisContext-B47h5Rs_.js} +0 -0
- /package/dist/{Body-DBq17TyR.js → Body-BYO7y2Wl.js} +0 -0
- /package/dist/{Body-D6Suox7R.js → Body-Dl-PkPHk.js} +0 -0
- /package/dist/{Content-eXP_YDij.js → Content-BaM9bJLn.js} +0 -0
- /package/dist/{Content-Dlxr9tpp.js → Content-BbqDyP7w.js} +0 -0
- /package/dist/{DataList-B2Ro3dIJ.js → DataList-B2q2sv10.js} +0 -0
- /package/dist/{DataList-DXQuw1FY.js → DataList-F4lyB-7b.js} +0 -0
- /package/dist/{DataList.const-BbIX_2s8.js → DataList.const-BjUZMA4M.js} +0 -0
- /package/dist/{DataList.const-BVqcPkpX.js → DataList.const-CeEkGxd2.js} +0 -0
- /package/dist/{DataListLayoutContext-B3TnHSJa.js → DataListLayoutContext-BNtDnjK4.js} +0 -0
- /package/dist/{DataListLayoutContext-WnZdFL7X.js → DataListLayoutContext-D0vCQpmz.js} +0 -0
- /package/dist/{Divider-Fs_bTykP.js → Divider-03rgXd_Z.js} +0 -0
- /package/dist/{Divider-6oC4Q0YM.js → Divider-CBNASYLx.js} +0 -0
- /package/dist/{Flex-DcBMToCE.js → Flex-DwXuat5V.js} +0 -0
- /package/dist/{Flex-DShYjczf.js → Flex-QqfrWvce.js} +0 -0
- /package/dist/{FormatDate-CoH8Ysly.js → FormatDate-CfGBT1f0.js} +0 -0
- /package/dist/{FormatDate-BTFW38v7.js → FormatDate-Du9Ewmoe.js} +0 -0
- /package/dist/{FormatEmail-BG56E2de.js → FormatEmail-BRcZqVX-.js} +0 -0
- /package/dist/{FormatEmail-D-IIz05j.js → FormatEmail-C4jKrMpV.js} +0 -0
- /package/dist/{FormatRelativeDateTime-C40ktI6C.js → FormatRelativeDateTime-DQ9zedsV.js} +0 -0
- /package/dist/{FormatRelativeDateTime-os322I_-.js → FormatRelativeDateTime-U0--7_Ts.js} +0 -0
- /package/dist/{FormatTime-CYAXeQyx.js → FormatTime--lMKNdtS.js} +0 -0
- /package/dist/{FormatTime-CiFKBen8.js → FormatTime-BbuJ2LaC.js} +0 -0
- /package/dist/{Icon-B-DXIWN_.js → Icon-CpwvlgqQ.js} +0 -0
- /package/dist/{Icon-Chojdqvk.js → Icon-DuAFakqK.js} +0 -0
- /package/dist/{InputGroup-CNDPvKEL.js → InputGroup-BmHAqf2_.js} +0 -0
- /package/dist/{InputGroup-uAezD2h5.js → InputGroup-DMFqeD93.js} +0 -0
- /package/dist/{InternalGridCell-ycYw8c6D.js → InternalGridCell-BfEM9kgE.js} +0 -0
- /package/dist/{InternalGridCell-B0QXAuz0.js → InternalGridCell-BsEjOR7O.js} +0 -0
- /package/dist/{Link-BPTtv-w3.js → Link-CIeOViU5.js} +0 -0
- /package/dist/{Link-CzRXg-be.js → Link-DHErvbQR.js} +0 -0
- /package/dist/{ProgressBar-CodnunT_.js → ProgressBar-Dv5Afz5W.js} +0 -0
- /package/dist/{ProgressBar-CvCVmfHV.js → ProgressBar-efRZZ0Wd.js} +0 -0
- /package/dist/{Spinner-D89Y1GpK.js → Spinner-Bq_wUUSq.js} +0 -0
- /package/dist/{Spinner-DqVFL1_5.js → Spinner-Xt5PlGlB.js} +0 -0
- /package/dist/{StatusIndicator-Cxrzj94H.js → StatusIndicator-BWjO1QXD.js} +0 -0
- /package/dist/{StatusIndicator-DcesTtD0.js → StatusIndicator-DKNa57Wo.js} +0 -0
- /package/dist/{Typography-7M-AJU59.js → Typography-Bw8eGXh-.js} +0 -0
- /package/dist/{Typography-C3XvpGji.js → Typography-Di4zna-r.js} +0 -0
- /package/dist/{_commonjsHelpers-BU0995Qc.js → _commonjsHelpers-CeLi1ZFE.js} +0 -0
- /package/dist/{_commonjsHelpers-DjI7jxHZ.js → _commonjsHelpers-pBNrFnxS.js} +0 -0
- /package/dist/{_polyfill-node.process-BYckUdqD.js → _polyfill-node.process-CeEVbLhj.js} +0 -0
- /package/dist/{_polyfill-node.process-BUBN7HW7.js → _polyfill-node.process-IUYx4DDJ.js} +0 -0
- /package/dist/{tslib.es6-qFW5vQHH.js → tslib.es6-BXhreaZf.js} +0 -0
- /package/dist/{tslib.es6-CsjNWZPm.js → tslib.es6-CmZyntgP.js} +0 -0
- /package/dist/{useChildComponent-CqKW4yHr.js → useChildComponent-8mVjASuQ.js} +0 -0
- /package/dist/{useChildComponent-ChGLNo_F.js → useChildComponent-CIZehzqv.js} +0 -0
- /package/dist/{useFocusTrap-bfeaAEuz.js → useFocusTrap-BCCs9voq.js} +0 -0
- /package/dist/{useFocusTrap-Deb74Et2.js → useFocusTrap-DKmEIMuu.js} +0 -0
- /package/dist/{useInView-BgZqToTl.js → useInView-DZ5Jd5gR.js} +0 -0
- /package/dist/{useInView-L6iVJv8F.js → useInView-Dr6SiGmt.js} +0 -0
- /package/dist/{useOnKeyDown-Cfa02OWJ.js → useOnKeyDown-BEodsG_D.js} +0 -0
- /package/dist/{useOnKeyDown-BGuFHrnV.js → useOnKeyDown-CxyBom5c.js} +0 -0
- /package/dist/{useRefocusOnActivator-BKvAL2ta.js → useRefocusOnActivator-BcJI5yQO.js} +0 -0
- /package/dist/{useRefocusOnActivator-fgXCJQjp.js → useRefocusOnActivator-fza56d6h.js} +0 -0
- /package/dist/{useSafeLayoutEffect-Dn_O61gg.js → useSafeLayoutEffect-DFZjDLjh.js} +0 -0
- /package/dist/{useSafeLayoutEffect-DxhzMr-r.js → useSafeLayoutEffect-q1Pq2_Bv.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-CldLG63Z.js');
|
|
6
|
+
var _commonjsHelpers = require('./_commonjsHelpers-pBNrFnxS.js');
|
|
7
|
+
var _baseAssignValue = require('./_baseAssignValue-CYfoLyq4.js');
|
|
8
|
+
var _getTag = require('./_getTag-XyjYhQwv.js');
|
|
9
|
+
var Icon = require('./Icon-CpwvlgqQ.js');
|
|
10
|
+
var Text = require('./Text-BFzvHq3G.js');
|
|
11
|
+
var Heading = require('./Heading-a9SUivb4.js');
|
|
12
|
+
var Typography = require('./Typography-Bw8eGXh-.js');
|
|
13
|
+
var Markdown = require('./Markdown-BozJiYmq.js');
|
|
14
|
+
var Emphasis = require('./Emphasis-Djq9yidY.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-BOP_Mv5c.js';
|
|
4
|
+
import { g as getDefaultExportFromCjs } from './_commonjsHelpers-CeLi1ZFE.js';
|
|
5
|
+
import { _ as _baseAssignValue } from './_baseAssignValue-BWL6z5ep.js';
|
|
6
|
+
import { b as isArray_1 } from './_getTag-DTZqIsID.js';
|
|
7
|
+
import { I as Icon } from './Icon-DuAFakqK.js';
|
|
8
|
+
import { T as Text } from './Text-rsDp1kZ4.js';
|
|
9
|
+
import { H as Heading } from './Heading-C4kphL4T.js';
|
|
10
|
+
import { T as Typography } from './Typography-Di4zna-r.js';
|
|
11
|
+
import { M as Markdown } from './Markdown-BbfyrMMh.js';
|
|
12
|
+
import { E as Emphasis } from './Emphasis-Cx36B_k5.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-BozJiYmq.js');
|
|
4
4
|
require('react');
|
|
5
|
-
require('../Text-
|
|
6
|
-
require('../Typography-
|
|
5
|
+
require('../Text-BFzvHq3G.js');
|
|
6
|
+
require('../Typography-Bw8eGXh-.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-Djq9yidY.js');
|
|
9
|
+
require('../Heading-a9SUivb4.js');
|
|
10
|
+
require('../Content-BaM9bJLn.js');
|
|
11
|
+
require('../index-CkHj92Xx.js');
|
|
12
|
+
require('../_commonjsHelpers-pBNrFnxS.js');
|
|
13
|
+
require('../_polyfill-node.process-CeEVbLhj.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-BbfyrMMh.js';
|
|
2
2
|
import 'react';
|
|
3
|
-
import '../Text-
|
|
4
|
-
import '../Typography-
|
|
3
|
+
import '../Text-rsDp1kZ4.js';
|
|
4
|
+
import '../Typography-Di4zna-r.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-Cx36B_k5.js';
|
|
7
|
+
import '../Heading-C4kphL4T.js';
|
|
8
|
+
import '../Content-BbqDyP7w.js';
|
|
9
|
+
import '../index-C_0wQNms.js';
|
|
10
|
+
import '../_commonjsHelpers-CeLi1ZFE.js';
|
|
11
|
+
import '../_polyfill-node.process-IUYx4DDJ.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-rsDp1kZ4.js';
|
|
3
|
+
import { E as Emphasis } from './Emphasis-Cx36B_k5.js';
|
|
4
|
+
import { H as Heading } from './Heading-C4kphL4T.js';
|
|
5
|
+
import { C as Content } from './Content-BbqDyP7w.js';
|
|
6
|
+
import { P as PropTypes } from './index-C_0wQNms.js';
|
|
7
|
+
import { g as getDefaultExportFromCjs } from './_commonjsHelpers-CeLi1ZFE.js';
|
|
8
|
+
import { b as browser$1 } from './_polyfill-node.process-IUYx4DDJ.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-BFzvHq3G.js');
|
|
5
|
+
var Emphasis = require('./Emphasis-Djq9yidY.js');
|
|
6
|
+
var Heading = require('./Heading-a9SUivb4.js');
|
|
7
|
+
var Content = require('./Content-BaM9bJLn.js');
|
|
8
|
+
var index$3 = require('./index-CkHj92Xx.js');
|
|
9
|
+
var _commonjsHelpers = require('./_commonjsHelpers-pBNrFnxS.js');
|
|
10
|
+
var _polyfillNode_process = require('./_polyfill-node.process-CeEVbLhj.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-CTLhz0sH.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-CxyBom5c.js');
|
|
8
|
+
require('../useRefocusOnActivator-fza56d6h.js');
|
|
9
|
+
require('react-popper');
|
|
10
|
+
require('../useIsMounted-BsdKlPG6.js');
|
|
11
|
+
require('../useSafeLayoutEffect-DFZjDLjh.js');
|
|
12
|
+
require('react-dom');
|
|
13
|
+
require('../useFocusTrap-DKmEIMuu.js');
|
|
14
|
+
require('../Button-40o9k1UN.js');
|
|
11
15
|
require('react-router-dom');
|
|
12
|
-
require('../Icon-
|
|
16
|
+
require('../Icon-CpwvlgqQ.js');
|
|
13
17
|
require('@jobber/design');
|
|
14
|
-
require('../Typography-
|
|
18
|
+
require('../Typography-Bw8eGXh-.js');
|
|
19
|
+
require('../useFormFieldFocus-DCnB26B0.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-BxnFUP97.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-BEodsG_D.js';
|
|
6
|
+
import '../useRefocusOnActivator-BcJI5yQO.js';
|
|
7
|
+
import 'react-popper';
|
|
8
|
+
import '../useIsMounted--9X36-6F.js';
|
|
9
|
+
import '../useSafeLayoutEffect-q1Pq2_Bv.js';
|
|
10
|
+
import 'react-dom';
|
|
11
|
+
import '../useFocusTrap-BCCs9voq.js';
|
|
12
|
+
import '../Button-BgK3yaef.js';
|
|
9
13
|
import 'react-router-dom';
|
|
10
|
-
import '../Icon-
|
|
14
|
+
import '../Icon-DuAFakqK.js';
|
|
11
15
|
import '@jobber/design';
|
|
12
|
-
import '../Typography-
|
|
16
|
+
import '../Typography-Di4zna-r.js';
|
|
17
|
+
import '../useFormFieldFocus-DxdBwh_q.js';
|
|
@@ -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-BEodsG_D.js';
|
|
5
|
+
import { u as useRefocusOnActivator_2 } from './useRefocusOnActivator-BcJI5yQO.js';
|
|
6
|
+
import { usePopper } from 'react-popper';
|
|
7
|
+
import { u as useIsMounted_2 } from './useIsMounted--9X36-6F.js';
|
|
8
|
+
import ReactDOM from 'react-dom';
|
|
9
|
+
import { u as useFocusTrap_2 } from './useFocusTrap-BCCs9voq.js';
|
|
10
|
+
import { B as Button } from './Button-BgK3yaef.js';
|
|
11
|
+
import { T as Typography } from './Typography-Di4zna-r.js';
|
|
12
|
+
import { I as Icon } from './Icon-DuAFakqK.js';
|
|
13
|
+
import { f as formFieldFocusAttribute } from './useFormFieldFocus-DxdBwh_q.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 };
|
|
@@ -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-CxyBom5c.js');
|
|
7
|
+
var useRefocusOnActivator = require('./useRefocusOnActivator-fza56d6h.js');
|
|
8
|
+
var reactPopper = require('react-popper');
|
|
9
|
+
var useIsMounted = require('./useIsMounted-BsdKlPG6.js');
|
|
10
|
+
var ReactDOM = require('react-dom');
|
|
11
|
+
var useFocusTrap = require('./useFocusTrap-DKmEIMuu.js');
|
|
12
|
+
var Button = require('./Button-40o9k1UN.js');
|
|
13
|
+
var Typography = require('./Typography-Bw8eGXh-.js');
|
|
14
|
+
var Icon = require('./Icon-CpwvlgqQ.js');
|
|
15
|
+
var useFormFieldFocus = require('./useFormFieldFocus-DCnB26B0.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;
|
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-DoK1I1st.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-fza56d6h.js');
|
|
9
|
+
require('../useOnKeyDown-CxyBom5c.js');
|
|
10
|
+
require('../useFocusTrap-DKmEIMuu.js');
|
|
11
|
+
require('../Heading-a9SUivb4.js');
|
|
12
|
+
require('../Typography-Bw8eGXh-.js');
|
|
13
|
+
require('../Button-40o9k1UN.js');
|
|
14
14
|
require('react-router-dom');
|
|
15
|
-
require('../Icon-
|
|
15
|
+
require('../Icon-CpwvlgqQ.js');
|
|
16
16
|
require('@jobber/design');
|
|
17
|
-
require('../ButtonDismiss-
|
|
17
|
+
require('../ButtonDismiss-CnkmYFGY.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-Cf3LrFIv.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-BcJI5yQO.js';
|
|
7
|
+
import '../useOnKeyDown-BEodsG_D.js';
|
|
8
|
+
import '../useFocusTrap-BCCs9voq.js';
|
|
9
|
+
import '../Heading-C4kphL4T.js';
|
|
10
|
+
import '../Typography-Di4zna-r.js';
|
|
11
|
+
import '../Button-BgK3yaef.js';
|
|
12
12
|
import 'react-router-dom';
|
|
13
|
-
import '../Icon-
|
|
13
|
+
import '../Icon-DuAFakqK.js';
|
|
14
14
|
import '@jobber/design';
|
|
15
|
-
import '../ButtonDismiss-
|
|
15
|
+
import '../ButtonDismiss-ClK59rGr.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-BcJI5yQO.js';
|
|
6
|
+
import { u as useOnKeyDown_2 } from './useOnKeyDown-BEodsG_D.js';
|
|
7
|
+
import { u as useFocusTrap_2 } from './useFocusTrap-BCCs9voq.js';
|
|
8
|
+
import { H as Heading } from './Heading-C4kphL4T.js';
|
|
9
|
+
import { B as Button } from './Button-BgK3yaef.js';
|
|
10
|
+
import { B as ButtonDismiss } from './ButtonDismiss-ClK59rGr.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
|
|