@jobber/components 4.85.6-CJS-to-ESM.10 → 4.85.6-CJS-to-ESM.18
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/README.md +1 -1
- package/dist/Autocomplete/Menu.d.ts +2 -2
- package/dist/Autocomplete/index.cjs +13 -11
- package/dist/Autocomplete/index.mjs +13 -11
- package/dist/{Autocomplete-D-ew7f4X.js → Autocomplete-8-k2GoOV.js} +15 -10
- package/dist/{Autocomplete-BQC-Sdt3.js → Autocomplete-jsdK_za9.js} +15 -10
- package/dist/Banner/components/BannerIcon/index.cjs +3 -2
- package/dist/Banner/components/BannerIcon/index.mjs +3 -2
- package/dist/Banner/index.cjs +5 -8
- package/dist/Banner/index.mjs +5 -8
- package/dist/{Banner-CNVBnTc5.js → Banner-B0FNQaEA.js} +6 -6
- package/dist/{Banner-FHgC_G51.js → Banner-DOTR15NP.js} +6 -6
- package/dist/{BannerIcon-CoUm6Udu.js → BannerIcon-BKSqafh9.js} +2 -2
- package/dist/{BannerIcon-Cf9MHBUn.js → BannerIcon-Bz2co5Sv.js} +2 -2
- package/dist/Card/index.cjs +7 -7
- package/dist/Card/index.mjs +7 -7
- package/dist/{Card-9IfVI62-.js → Card-DHndcTNY.js} +2 -2
- package/dist/{Card-DZXBxdQH.js → Card-pEq1vP48.js} +2 -2
- package/dist/Chip/index.cjs +6 -6
- package/dist/Chip/index.mjs +6 -6
- package/dist/{Chip-DiLsQCIb.js → Chip-BiaFSxjk.js} +4 -4
- package/dist/{Chip-D0QzrwiJ.js → Chip-BuyIFVpT.js} +4 -4
- package/dist/{ChipDismissible-B3wENmRd.js → ChipDismissible-D8Gb8gzT.js} +1 -1
- package/dist/{ChipDismissible-Cp2IIeHG.js → ChipDismissible-DcvzV_6e.js} +1 -1
- package/dist/Chips/InternalChipDismissible/hooks/index.cjs +10 -9
- package/dist/Chips/InternalChipDismissible/hooks/index.mjs +10 -9
- package/dist/Chips/InternalChipDismissible/index.cjs +15 -14
- package/dist/Chips/InternalChipDismissible/index.mjs +15 -14
- package/dist/Chips/index.cjs +17 -16
- package/dist/Chips/index.mjs +17 -16
- package/dist/{Chips-PfjfGMzi.js → Chips-CQfBbM7d.js} +1 -1
- package/dist/{Chips-DdqPhizu.js → Chips-Do5_RI3o.js} +1 -1
- package/dist/Combobox/components/ComboboxActivator/index.cjs +6 -6
- package/dist/Combobox/components/ComboboxActivator/index.mjs +6 -6
- package/dist/Combobox/components/ComboboxContent/ComboboxContentList/index.cjs +3 -4
- package/dist/Combobox/components/ComboboxContent/ComboboxContentList/index.mjs +3 -4
- package/dist/Combobox/components/ComboboxContent/ComboboxLoadMore/index.cjs +2 -3
- package/dist/Combobox/components/ComboboxContent/ComboboxLoadMore/index.mjs +2 -3
- package/dist/Combobox/components/ComboboxContent/index.cjs +7 -8
- package/dist/Combobox/components/ComboboxContent/index.mjs +7 -8
- package/dist/Combobox/components/ComboboxTrigger/index.cjs +6 -6
- package/dist/Combobox/components/ComboboxTrigger/index.mjs +6 -6
- package/dist/Combobox/index.cjs +20 -20
- package/dist/Combobox/index.mjs +20 -20
- package/dist/{Combobox-CdNIOoM7.js → Combobox-B2kJK7TG.js} +7 -7
- package/dist/{Combobox-AFaFbXGB.js → Combobox-DPyy1_bk.js} +7 -7
- package/dist/{ComboboxActivator-WZOTETIY.js → ComboboxActivator-DOxELvRH.js} +1 -1
- package/dist/{ComboboxActivator-DJ2P5u9W.js → ComboboxActivator-DilCFw07.js} +1 -1
- package/dist/{ComboboxContent-C-z0aRbs.js → ComboboxContent-CiWCweGr.js} +10 -8
- package/dist/{ComboboxContent-8VhYQzFe.js → ComboboxContent-CvQqX-Gw.js} +10 -8
- package/dist/{ComboboxContentList-uhhTfIEW.js → ComboboxContentList-CSXjDMA3.js} +1 -1
- package/dist/{ComboboxContentList-cNeR7J1A.js → ComboboxContentList-uE9QjdjF.js} +1 -1
- package/dist/{ComboboxLoadMore-D43j_nsT.js → ComboboxLoadMore-C4Koz19c.js} +2 -2
- package/dist/{ComboboxLoadMore-D-P718hH.js → ComboboxLoadMore-CPS9tg3q.js} +2 -2
- package/dist/{ComboboxTrigger-B2HsrHGT.js → ComboboxTrigger-CMGL21Bv.js} +1 -1
- package/dist/{ComboboxTrigger-BqzqeGhu.js → ComboboxTrigger-CrsdTqcy.js} +1 -1
- package/dist/ConfirmationModal/index.cjs +11 -11
- package/dist/ConfirmationModal/index.mjs +11 -11
- package/dist/{ConfirmationModal-FElMoU6X.js → ConfirmationModal-CIKLMFKU.js} +4 -4
- package/dist/{ConfirmationModal-BK3z4KhR.js → ConfirmationModal-QC9xwmYl.js} +4 -4
- package/dist/Countdown/index.cjs +3 -3
- package/dist/Countdown/index.mjs +3 -3
- package/dist/{Countdown-XLp-r4PS.js → Countdown-CByBb-NE.js} +1 -1
- package/dist/{Countdown-6Bkj7xkV.js → Countdown-Dd1_zBXU.js} +1 -1
- package/dist/DataDump/index.cjs +8 -8
- package/dist/DataDump/index.mjs +8 -8
- package/dist/{DataDump-B7FTpCgZ.js → DataDump-CAcnlevT.js} +1 -1
- package/dist/{DataDump-BFEXds02.js → DataDump-UiTJZrGH.js} +1 -1
- package/dist/DataList/components/DataListActions/index.cjs +21 -20
- package/dist/DataList/components/DataListActions/index.mjs +21 -20
- package/dist/DataList/components/DataListActionsMenu/DataListActionsMenu.d.ts +2 -2
- package/dist/DataList/components/DataListActionsMenu/index.cjs +5 -4
- package/dist/DataList/components/DataListActionsMenu/index.mjs +5 -4
- package/dist/DataList/components/DataListBulkActions/index.cjs +23 -22
- package/dist/DataList/components/DataListBulkActions/index.mjs +23 -22
- package/dist/DataList/components/DataListEmptyState/index.cjs +4 -4
- package/dist/DataList/components/DataListEmptyState/index.mjs +4 -4
- package/dist/DataList/components/DataListFilters/components/DataListSort/index.cjs +22 -22
- package/dist/DataList/components/DataListFilters/components/DataListSort/index.mjs +22 -22
- package/dist/DataList/components/DataListFilters/index.cjs +31 -31
- package/dist/DataList/components/DataListFilters/index.mjs +31 -31
- package/dist/DataList/components/DataListHeader/index.cjs +26 -25
- package/dist/DataList/components/DataListHeader/index.mjs +26 -25
- package/dist/DataList/components/DataListHeaderTile/components/index.cjs +3 -3
- package/dist/DataList/components/DataListHeaderTile/components/index.mjs +3 -3
- package/dist/DataList/components/DataListHeaderTile/index.cjs +8 -8
- package/dist/DataList/components/DataListHeaderTile/index.mjs +8 -8
- package/dist/DataList/components/DataListItem/components/DataListItemClickable/index.cjs +4 -4
- package/dist/DataList/components/DataListItem/components/DataListItemClickable/index.mjs +4 -4
- package/dist/DataList/components/DataListItem/index.cjs +26 -25
- package/dist/DataList/components/DataListItem/index.mjs +26 -25
- package/dist/DataList/components/DataListItemActions/index.cjs +22 -21
- package/dist/DataList/components/DataListItemActions/index.mjs +22 -21
- package/dist/DataList/components/DataListItemActionsOverflow/index.cjs +8 -7
- package/dist/DataList/components/DataListItemActionsOverflow/index.mjs +8 -7
- package/dist/DataList/components/DataListItems/index.cjs +27 -26
- package/dist/DataList/components/DataListItems/index.mjs +27 -26
- package/dist/DataList/components/DataListLayout/index.cjs +30 -29
- package/dist/DataList/components/DataListLayout/index.mjs +30 -29
- package/dist/DataList/components/DataListLayoutActions/index.cjs +13 -12
- package/dist/DataList/components/DataListLayoutActions/index.mjs +13 -12
- package/dist/DataList/components/DataListLoadMore/index.cjs +5 -5
- package/dist/DataList/components/DataListLoadMore/index.mjs +5 -5
- package/dist/DataList/components/DataListLoadingState/index.cjs +6 -6
- package/dist/DataList/components/DataListLoadingState/index.mjs +6 -6
- package/dist/DataList/components/DataListOverflowFade/index.cjs +2 -3
- package/dist/DataList/components/DataListOverflowFade/index.mjs +2 -3
- package/dist/DataList/components/DataListSearch/index.cjs +11 -10
- package/dist/DataList/components/DataListSearch/index.mjs +11 -10
- package/dist/DataList/components/DataListStatusBar/index.cjs +15 -14
- package/dist/DataList/components/DataListStatusBar/index.mjs +15 -14
- 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 +54 -53
- package/dist/DataList/index.mjs +54 -53
- package/dist/{DataList-B4kTh2zr.js → DataList-BKKxiGAf.js} +14 -14
- package/dist/{DataList-CBITWNb9.js → DataList-DmRrvWWO.js} +14 -14
- package/dist/{DataList.utils-CejvHT4T.js → DataList.utils-BEFoTHYf.js} +6 -6
- package/dist/{DataList.utils-Bav5KJwI.js → DataList.utils-CvqaiDfx.js} +6 -6
- package/dist/{DataListActions-zzneeG9a.js → DataListActions-B0ULCgD7.js} +4 -4
- package/dist/{DataListActions-d08eoEnt.js → DataListActions-EcfIMAbZ.js} +4 -4
- package/dist/{DataListActionsMenu-dkwTfAWI.js → DataListActionsMenu-BKvbADip.js} +13 -8
- package/dist/{DataListActionsMenu-CmvEFrMd.js → DataListActionsMenu-DI58_qwo.js} +13 -8
- package/dist/{DataListBulkActions-BFDTCNMX.js → DataListBulkActions-BFxRMNER.js} +3 -3
- package/dist/{DataListBulkActions-C36dV7il.js → DataListBulkActions-D274mBvo.js} +3 -3
- package/dist/{DataListContext-B4eBw_aH.js → DataListContext-CWEeA357.js} +1 -1
- package/dist/{DataListContext-9uw8XwzP.js → DataListContext-DHdRjGCC.js} +1 -1
- package/dist/{DataListEmptyState-Dfi_7w8p.js → DataListEmptyState-CkcEtNj8.js} +1 -1
- package/dist/{DataListEmptyState-Cgx3mGue.js → DataListEmptyState-MfrvVDjA.js} +1 -1
- package/dist/{DataListFilters-DeriK-B7.js → DataListFilters-C0Thu1RR.js} +5 -5
- package/dist/{DataListFilters-DVexyxzh.js → DataListFilters-grtTB_81.js} +5 -5
- package/dist/{DataListHeader-BD_phBYj.js → DataListHeader-CtWFlsOr.js} +6 -6
- package/dist/{DataListHeader-uOleqBzP.js → DataListHeader-DD1wVcDO.js} +6 -6
- package/dist/{DataListHeaderTile-CgsALV2i.js → DataListHeaderTile-BGJJJUKn.js} +6 -6
- package/dist/{DataListHeaderTile-SXhBbHve.js → DataListHeaderTile-CALjrDa1.js} +6 -6
- package/dist/{DataListItem-D3JjLIkO.js → DataListItem-B1nZvxes.js} +7 -7
- package/dist/{DataListItem-51-65HYy.js → DataListItem-CxvO71j0.js} +7 -7
- package/dist/{DataListItemActions-CFA57mEO.js → DataListItemActions-XgmTXWRv.js} +1 -1
- package/dist/{DataListItemActions-RI0WOpAQ.js → DataListItemActions-yBgp9sSm.js} +1 -1
- package/dist/{DataListItemActionsOverflow-B-j3iwTw.js → DataListItemActionsOverflow-BkqI86xr.js} +2 -2
- package/dist/{DataListItemActionsOverflow-DYZ8hCrV.js → DataListItemActionsOverflow-Dni9LOE7.js} +2 -2
- package/dist/{DataListItemClickable-DCUiBnug.js → DataListItemClickable-Bfr0skxD.js} +1 -1
- package/dist/{DataListItemClickable-CR2b2bRi.js → DataListItemClickable-Bh_KRsSg.js} +1 -1
- package/dist/{DataListItems-Cg1QExxM.js → DataListItems-By_IkdiW.js} +3 -3
- package/dist/{DataListItems-Dte1xEzQ.js → DataListItems-Uvrwp1hF.js} +3 -3
- package/dist/{DataListLayout-maiAhs0s.js → DataListLayout-CP3QyySF.js} +3 -3
- package/dist/{DataListLayout-D5PQeH9k.js → DataListLayout-gg0GhnSt.js} +3 -3
- package/dist/{DataListLayoutActions-CAweaHVJ.js → DataListLayoutActions-DLk3r0Hd.js} +3 -3
- package/dist/{DataListLayoutActions-DoYklZMT.js → DataListLayoutActions-hqwO-SN9.js} +3 -3
- package/dist/{DataListLayoutContext-DvTtBMxW.js → DataListLayoutContext-BiMbo7LQ.js} +1 -1
- package/dist/{DataListLayoutContext-CavOWAD3.js → DataListLayoutContext-D5Jhd_ZG.js} +1 -1
- package/dist/{DataListLoadMore-Dqhp89Ah.js → DataListLoadMore-CThHDPpZ.js} +3 -3
- package/dist/{DataListLoadMore-DsxYMADp.js → DataListLoadMore-DxjzKiW5.js} +3 -3
- package/dist/{DataListLoadingState-BCuBsDis.js → DataListLoadingState-DAW4sIgB.js} +2 -2
- package/dist/{DataListLoadingState-e5oFdg4F.js → DataListLoadingState-snxADZa4.js} +2 -2
- package/dist/{DataListOverflowFade-x7-jX4Yf.js → DataListOverflowFade-D4tQk-He.js} +3 -3
- package/dist/{DataListOverflowFade-Ivo0Wvz6.js → DataListOverflowFade-DiIVg2bq.js} +3 -3
- package/dist/{DataListSearch-Ghtq5uJW.js → DataListSearch-Bbs3SutZ.js} +3 -3
- package/dist/{DataListSearch-M8Xo23Rs.js → DataListSearch-BiP-m5sn.js} +3 -3
- package/dist/{DataListSort-9a8Nnymc.js → DataListSort-C-WYgyeH.js} +3 -3
- package/dist/{DataListSort-BWysfJYn.js → DataListSort-Cjbq230C.js} +3 -3
- package/dist/{DataListSortingOptions-eIIcKWpI.js → DataListSortingOptions-CiYaAQRn.js} +5 -5
- package/dist/{DataListSortingOptions-iSAuu-iH.js → DataListSortingOptions-DUSYMIdy.js} +5 -5
- package/dist/{DataListStatusBar-DJyeUWLV.js → DataListStatusBar-ROYWGgWC.js} +2 -2
- package/dist/{DataListStatusBar-B8G_rGJg.js → DataListStatusBar-egB26NQR.js} +2 -2
- package/dist/DataTable/index.cjs +6 -9
- package/dist/DataTable/index.mjs +6 -9
- package/dist/DataTable/test-utilities/index.cjs +2 -7
- package/dist/DataTable/test-utilities/index.mjs +2 -7
- package/dist/{DataTable-EvVsB6Ax.js → DataTable-B5_mYJPD.js} +5 -5
- package/dist/{DataTable-DMWG-f2X.js → DataTable-BItljhH_.js} +5 -5
- package/dist/DatePicker/index.cjs +10 -10
- package/dist/DatePicker/index.mjs +10 -10
- package/dist/{DatePicker-BxGSZhjs.js → DatePicker-B--hEa5q.js} +9 -9
- package/dist/{DatePicker-d4x9w1ed.js → DatePicker-BXc_7iz8.js} +9 -9
- package/dist/Disclosure/index.cjs +2 -6
- package/dist/Disclosure/index.mjs +2 -6
- package/dist/{Disclosure-C9P5TRF7.js → Disclosure--SjrHDtO.js} +3 -3
- package/dist/{Disclosure-CT3NlzDM.js → Disclosure-DT_sJrU2.js} +3 -3
- package/dist/Drawer/index.cjs +4 -3
- package/dist/Drawer/index.mjs +4 -3
- package/dist/{DrawerGrid-CFc2dsRt.js → DrawerGrid-2xbeZR-1.js} +1 -1
- package/dist/{DrawerGrid-QAt-4-eT.js → DrawerGrid-Vse0LLl-.js} +1 -1
- package/dist/FeatureSwitch/index.cjs +7 -7
- package/dist/FeatureSwitch/index.mjs +7 -7
- package/dist/{FeatureSwitch-r1QOEgOx.js → FeatureSwitch-AYbrKMIz.js} +2 -2
- package/dist/{FeatureSwitch-vqHipk5_.js → FeatureSwitch-Dr0rb0-r.js} +2 -2
- package/dist/FormField/index.cjs +2 -1
- package/dist/FormField/index.mjs +2 -1
- package/dist/{FormField-Br5alT0e.js → FormField-DH17txVO.js} +2 -52
- package/dist/{FormField-DO3HRP-l.js → FormField-Dg8dpwo0.js} +2 -52
- package/dist/FormatFile/index.cjs +12 -12
- package/dist/FormatFile/index.mjs +12 -12
- package/dist/{FormatFile-QR8UQza1.js → FormatFile-BDl7luBy.js} +1 -1
- package/dist/{FormatFile-Buag0uRk.js → FormatFile-D2PrvVt8.js} +1 -1
- package/dist/Gallery/index.cjs +18 -17
- package/dist/Gallery/index.mjs +18 -17
- package/dist/{Gallery-BNUXG2jX.js → Gallery-Bd9vDMD_.js} +2 -2
- package/dist/{Gallery-D1009DLm.js → Gallery-DccsPsrk.js} +2 -2
- package/dist/Grid/index.cjs +2 -4
- package/dist/Grid/index.mjs +2 -4
- package/dist/{Grid-vCIK3QgQ.js → Grid-jysLZFpW.js} +2 -2
- package/dist/{Grid-eMgwCKeb.js → Grid-sffWUKZN.js} +2 -2
- package/dist/Heading/index.cjs +3 -2
- package/dist/Heading/index.mjs +3 -2
- package/dist/{Heading-DaQSloBZ.js → Heading-BOPUeuqz.js} +2 -2
- package/dist/{Heading-qGWVOyZp.js → Heading-CuwWlvKk.js} +2 -2
- package/dist/InputAvatar/index.cjs +4 -4
- package/dist/InputAvatar/index.mjs +4 -4
- package/dist/{InputAvatar-Dqns8ejm.js → InputAvatar-BJ04uKY_.js} +1 -1
- package/dist/{InputAvatar-BDiAx8_I.js → InputAvatar-CWCL-eY-.js} +1 -1
- package/dist/InputDate/index.cjs +13 -12
- package/dist/InputDate/index.mjs +13 -12
- package/dist/{InputDate-C8VSSjkc.js → InputDate-Bv4oWH32.js} +2 -2
- package/dist/{InputDate-CQORRsm3.js → InputDate-DXkPCFCU.js} +2 -2
- package/dist/InputEmail/index.cjs +3 -2
- package/dist/InputEmail/index.mjs +3 -2
- package/dist/{InputEmail-CRz5OoCg.js → InputEmail-B16OBZb3.js} +1 -1
- package/dist/{InputEmail-Cg--thvv.js → InputEmail-DFLZRjVP.js} +1 -1
- package/dist/InputFile/index.cjs +3 -3
- package/dist/InputFile/index.mjs +3 -3
- package/dist/{InputFile-8IOQFsKj.js → InputFile-Cai_k8_x.js} +1 -1
- package/dist/{InputFile-BdAFzqGN.js → InputFile-DdLQVAFi.js} +1 -1
- package/dist/InputNumber/index.cjs +3 -2
- package/dist/InputNumber/index.mjs +3 -2
- package/dist/{InputNumber-D0SPZPd8.js → InputNumber-CeMfPt8x.js} +1 -1
- package/dist/{InputNumber-B0S4HLxl.js → InputNumber-GZIUwErN.js} +1 -1
- package/dist/InputPassword/index.cjs +3 -2
- package/dist/InputPassword/index.mjs +3 -2
- package/dist/{InputPassword-DB1rTPVY.js → InputPassword-BO_isPHD.js} +1 -1
- package/dist/{InputPassword-BsyRZxQ1.js → InputPassword-d5nJkaUs.js} +1 -1
- package/dist/InputPhoneNumber/index.cjs +3 -2
- package/dist/InputPhoneNumber/index.mjs +3 -2
- package/dist/{InputPhoneNumber-BtqNkIe-.js → InputPhoneNumber-BwFS2OXE.js} +1 -1
- package/dist/{InputPhoneNumber-CetjOIYY.js → InputPhoneNumber-D9LpLAD7.js} +1 -1
- package/dist/InputText/index.cjs +4 -3
- package/dist/InputText/index.mjs +4 -3
- package/dist/{InputText-DTlyh7n2.js → InputText-BKmC8LAf.js} +3 -3
- package/dist/{InputText-C2A27BcB.js → InputText-DSAkrYN7.js} +3 -3
- package/dist/InputTime/index.cjs +7 -6
- package/dist/InputTime/index.mjs +7 -6
- package/dist/{InputTime-BTt3gnKv.js → InputTime-CN4jHij3.js} +2 -2
- package/dist/{InputTime-BvFpYWDz.js → InputTime-oDZPKnum.js} +2 -2
- package/dist/{InternalChipDismissible-BeNRgOsk.js → InternalChipDismissible-8svc0yL9.js} +7 -6
- package/dist/{InternalChipDismissible-B9qWcqXd.js → InternalChipDismissible-aZWn6BCH.js} +7 -6
- package/dist/LightBox/LightBox.d.ts +2 -2
- package/dist/LightBox/index.cjs +9 -8
- package/dist/LightBox/index.mjs +9 -8
- package/dist/{LightBox-BvLxaS84.js → LightBox-BfhDSo_C.js} +14 -10
- package/dist/{LightBox-BLMkxvLm.js → LightBox-fU-igkT9.js} +14 -10
- package/dist/List/index.cjs +13 -13
- package/dist/List/index.d.ts +1 -1
- package/dist/List/index.mjs +13 -13
- package/dist/{List-CvkPjML6.js → List-C28TBgf2.js} +6 -6
- package/dist/{List-_qqJuU5U.js → List-CSPEr0rZ.js} +6 -6
- package/dist/Markdown/index.cjs +6 -6
- package/dist/Markdown/index.mjs +6 -6
- package/dist/{Markdown-DtM5ykGm.js → Markdown-CW95MoLL.js} +231 -6
- package/dist/{Markdown-tppGhvDj.js → Markdown-VZzPaEE-.js} +229 -4
- package/dist/Menu/index.cjs +4 -4
- package/dist/Menu/index.mjs +4 -4
- package/dist/{Menu-EuYGUgDp.js → Menu-DXO2Sfup.js} +6 -6
- package/dist/{Menu-B2CjGXpJ.js → Menu-DY0HEByr.js} +6 -6
- package/dist/Modal/Modal.d.ts +2 -2
- package/dist/Modal/index.cjs +7 -6
- package/dist/Modal/index.mjs +7 -6
- package/dist/{Modal-CExhhE-e.js → Modal-ChWyJGRz.js} +10 -8
- package/dist/{Modal-BBOC5oe3.js → Modal-OX7I9cE-.js} +10 -8
- package/dist/{Option-CD7Dainq.js → Option-BBKhsvIG.js} +1 -1
- package/dist/{Option-BOMPF4x6.js → Option-BFttG_KE.js} +1 -1
- package/dist/Page/index.cjs +11 -15
- package/dist/Page/index.mjs +11 -15
- package/dist/{Page-CcXoRUwS.js → Page-B295P6tD.js} +8 -8
- package/dist/{Page-CrzjHAS7.js → Page-BVHm_wzQ.js} +8 -8
- package/dist/Popover/index.cjs +2 -2
- package/dist/Popover/index.mjs +2 -2
- package/dist/{Popover-FRqq6zP7.js → Popover-C2BDJlSG.js} +7 -3
- package/dist/{Popover-wdJHwi6I.js → Popover-e_IRPKXO.js} +7 -3
- package/dist/RecurringSelect/index.cjs +5 -4
- package/dist/RecurringSelect/index.mjs +5 -4
- package/dist/{RecurringSelect-BwGMrXnr.js → RecurringSelect-DuWHmovn.js} +2 -2
- package/dist/{RecurringSelect-BseXz8Bd.js → RecurringSelect-oAggCXcK.js} +2 -2
- package/dist/Select/index.cjs +3 -2
- package/dist/Select/index.mjs +3 -2
- package/dist/Toast/index.cjs +1 -1
- package/dist/Toast/index.mjs +1 -1
- package/dist/Tooltip/index.cjs +3 -2
- package/dist/Tooltip/index.mjs +3 -2
- package/dist/{Tooltip-Cfg4l2JJ.js → Tooltip-C1ZxBdnM.js} +6 -4
- package/dist/{Tooltip-DSGn-Mt6.js → Tooltip-raq-Y4h1.js} +6 -4
- package/dist/{_baseAssignValue-DyNqou4j.js → _baseAssignValue-B9pfAxF4.js} +1 -1
- package/dist/{_baseAssignValue-B6tvMdT2.js → _baseAssignValue-Cq-EPFBb.js} +1 -1
- package/dist/{_baseEach-DfA25JZA.js → _baseEach-BGcp2OCD.js} +4 -4
- package/dist/{_baseEach--p319nr8.js → _baseEach-fQjYIaCA.js} +4 -4
- package/dist/_commonjsHelpers-BFTU3MAI.js +7 -0
- package/dist/_commonjsHelpers-BJu3ubxk.js +10 -0
- package/dist/{_defineProperty-9A76YTSY.js → _defineProperty-Byuf_NsU.js} +3 -3
- package/dist/{_defineProperty-DjLE4Bk3.js → _defineProperty-DVTdBF7D.js} +3 -3
- package/dist/{_getTag-Bd2IuclU.js → _getTag-CHBhnZgu.js} +1 -1
- package/dist/{_getTag-DV55KKyH.js → _getTag-Cs5UYNkF.js} +1 -1
- package/dist/{_setToString-B_OHprdS.js → _setToString-Cv5e34RO.js} +3 -3
- package/dist/{_setToString-QSHar2ai.js → _setToString-F-wwuS_Y.js} +3 -3
- package/dist/{debounce-CJA36ltI.js → debounce-B-pQrPa0.js} +3 -4
- package/dist/{debounce-D3te8_TG.js → debounce-asENWBkf.js} +4 -4
- package/dist/{helpers-B7JgOXZj.js → helpers-5vvADJkh.js} +1 -1
- package/dist/helpers-CFWATKJI.js +36 -0
- package/dist/{index-B88K44gK.js → index-B_N4vjnx.js} +1 -1
- package/dist/{index-CJnrkxgL.js → index-DKU_7-0J.js} +1 -1
- package/dist/index.cjs +98 -96
- package/dist/index.mjs +98 -96
- package/dist/{isObjectLike-CkQBn_-v.js → isObjectLike-91E0YOes.js} +1 -1
- package/dist/{isObjectLike-BUFV4ggG.js → isObjectLike-CsWGWxp9.js} +1 -1
- package/dist/{isSymbol-BB8mecpv.js → isSymbol-BEvcpX3s.js} +1 -1
- package/dist/{isSymbol-DS9vlqp3.js → isSymbol-CqL-NQwG.js} +1 -1
- package/dist/{noop-BHeBk22E.js → noop-DXH2P2oE.js} +1 -1
- package/dist/{noop-CJPLieIK.js → noop-D_wzwwIq.js} +1 -1
- package/dist/{showToast-D3Hf2bB3.js → showToast-688fQ_xY.js} +7 -9
- package/dist/{showToast-lt1f__20.js → showToast-C-7zLU7N.js} +7 -9
- package/dist/{useActiveLayout-BjGE_HD9.js → useActiveLayout-2lNXwkpk.js} +2 -2
- package/dist/{useActiveLayout-Bvo5EJVa.js → useActiveLayout-BJVlZKzf.js} +2 -2
- package/dist/useAtlantisConfig-BV9EaVeA.js +16 -0
- package/dist/useAtlantisConfig-Daa10dex.js +14 -0
- package/dist/{useBatchSelect-D2oSwHTp.js → useBatchSelect-B7U15920.js} +1 -1
- package/dist/{useBatchSelect-DnLpNm6-.js → useBatchSelect-DMD3JH4P.js} +1 -1
- package/dist/{useResponsiveSizing-DRjeJos_.js → useResponsiveSizing-BMCCsRh4.js} +3 -4
- package/dist/{useResponsiveSizing-CMuS7Or1.js → useResponsiveSizing-ChRsK6z5.js} +3 -4
- package/dist/{useScrollToActive-DMDRmhoI.js → useScrollToActive-BB-8euJF.js} +11 -84
- package/dist/{useScrollToActive-D-aHcMpx.js → useScrollToActive-BBA4TLy3.js} +11 -84
- package/dist/utils/useAtlantisConfig.d.ts +3 -0
- package/package.json +5 -5
- package/dist/_commonjsHelpers-B83fTs8d.js +0 -36
- package/dist/_commonjsHelpers-E-ZsRS8r.js +0 -32
- package/dist/_polyfill-node.process-Clw8ILH4.js +0 -258
- package/dist/_polyfill-node.process-CzATM2P1.js +0 -255
- package/dist/getAtlantisConfig-6FPWID0P.js +0 -11
- package/dist/getAtlantisConfig-mcMVqf6m.js +0 -13
- package/dist/helpers-y1-dsK59.js +0 -17
- package/dist/useAssert-BeGBODqQ.js +0 -57
- package/dist/useAssert-CvlH4Ru0.js +0 -59
- package/dist/useFocusTrap-BtnnoHG8.js +0 -104
- package/dist/useFocusTrap-CMLwEDMY.js +0 -106
- package/dist/useInView-Ct13SCWB.js +0 -70
- package/dist/useInView-Yth15M0p.js +0 -68
- package/dist/useOnKeyDown-B9JF2jLZ.js +0 -72
- package/dist/useOnKeyDown-BsUfDste.js +0 -70
- package/dist/useRefocusOnActivator-CMNWUYSe.js +0 -62
- package/dist/useRefocusOnActivator-DOJm9VWz.js +0 -64
- package/dist/useResizeObserver-BwGseyVc.js +0 -1234
- package/dist/useResizeObserver-ZgXMUTij.js +0 -1231
- package/dist/useSafeLayoutEffect-Qir6pm57.js +0 -44
- package/dist/useSafeLayoutEffect-yaw3NyzX.js +0 -42
- package/dist/utils/getAtlantisConfig.d.ts +0 -3
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { RefObject } from "react";
|
|
2
2
|
import { Option } from "./Option";
|
|
3
3
|
interface MenuProps {
|
|
4
4
|
readonly visible: boolean;
|
|
@@ -10,5 +10,5 @@ interface MenuProps {
|
|
|
10
10
|
readonly attachTo: RefObject<Element | null>;
|
|
11
11
|
onOptionSelect(chosenOption: Option): void;
|
|
12
12
|
}
|
|
13
|
-
export declare function Menu({ visible, options, selectedOption, onOptionSelect, attachTo, }: MenuProps):
|
|
13
|
+
export declare function Menu({ visible, options, selectedOption, onOptionSelect, attachTo, }: MenuProps): JSX.Element;
|
|
14
14
|
export {};
|
|
@@ -1,27 +1,29 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var Autocomplete = require('../Autocomplete-
|
|
3
|
+
var Autocomplete = require('../Autocomplete-8-k2GoOV.js');
|
|
4
4
|
require('../tslib.es6-ld72nsZq.js');
|
|
5
5
|
require('react');
|
|
6
|
-
require('../debounce-
|
|
7
|
-
require('../_commonjsHelpers-
|
|
8
|
-
require('../isObjectLike-
|
|
9
|
-
require('../isSymbol-
|
|
6
|
+
require('../debounce-B-pQrPa0.js');
|
|
7
|
+
require('../_commonjsHelpers-BJu3ubxk.js');
|
|
8
|
+
require('../isObjectLike-CsWGWxp9.js');
|
|
9
|
+
require('../isSymbol-CqL-NQwG.js');
|
|
10
10
|
require('../style-inject.es-XZHJH68X.js');
|
|
11
11
|
require('classnames');
|
|
12
12
|
require('react-dom');
|
|
13
13
|
require('react-popper');
|
|
14
|
-
require('
|
|
15
|
-
require('
|
|
14
|
+
require('@jobber/hooks/useOnKeyDown');
|
|
15
|
+
require('@jobber/hooks/useSafeLayoutEffect');
|
|
16
|
+
require('@jobber/hooks/useIsMounted');
|
|
16
17
|
require('../Text-L0uH5HlC.js');
|
|
17
18
|
require('../Typography-g6o6Nu4H.js');
|
|
18
19
|
require('../Icon-B9XNdA1T.js');
|
|
19
20
|
require('@jobber/design');
|
|
20
|
-
require('../Heading-
|
|
21
|
-
require('../
|
|
22
|
-
require('../InputText-
|
|
23
|
-
require('../FormField-
|
|
21
|
+
require('../Heading-BOPUeuqz.js');
|
|
22
|
+
require('../useAtlantisConfig-BV9EaVeA.js');
|
|
23
|
+
require('../InputText-DSAkrYN7.js');
|
|
24
|
+
require('../FormField-DH17txVO.js');
|
|
24
25
|
require('react-hook-form');
|
|
26
|
+
require('@jobber/hooks/useShowClear');
|
|
25
27
|
require('../Button-CdFKgOjt.js');
|
|
26
28
|
require('react-router-dom');
|
|
27
29
|
require('../InputValidation-BvFAMweO.js');
|
|
@@ -1,25 +1,27 @@
|
|
|
1
|
-
export { A as Autocomplete } from '../Autocomplete-
|
|
1
|
+
export { A as Autocomplete } from '../Autocomplete-jsdK_za9.js';
|
|
2
2
|
import '../tslib.es6-Df1SgIEn.js';
|
|
3
3
|
import 'react';
|
|
4
|
-
import '../debounce-
|
|
5
|
-
import '../_commonjsHelpers-
|
|
6
|
-
import '../isObjectLike-
|
|
7
|
-
import '../isSymbol-
|
|
4
|
+
import '../debounce-asENWBkf.js';
|
|
5
|
+
import '../_commonjsHelpers-BFTU3MAI.js';
|
|
6
|
+
import '../isObjectLike-91E0YOes.js';
|
|
7
|
+
import '../isSymbol-BEvcpX3s.js';
|
|
8
8
|
import '../style-inject.es-tgCJW-Cu.js';
|
|
9
9
|
import 'classnames';
|
|
10
10
|
import 'react-dom';
|
|
11
11
|
import 'react-popper';
|
|
12
|
-
import '
|
|
13
|
-
import '
|
|
12
|
+
import '@jobber/hooks/useOnKeyDown';
|
|
13
|
+
import '@jobber/hooks/useSafeLayoutEffect';
|
|
14
|
+
import '@jobber/hooks/useIsMounted';
|
|
14
15
|
import '../Text-B0MvS7fA.js';
|
|
15
16
|
import '../Typography-BLZqr2yE.js';
|
|
16
17
|
import '../Icon-CoHJokXb.js';
|
|
17
18
|
import '@jobber/design';
|
|
18
|
-
import '../Heading-
|
|
19
|
-
import '../
|
|
20
|
-
import '../InputText-
|
|
21
|
-
import '../FormField-
|
|
19
|
+
import '../Heading-CuwWlvKk.js';
|
|
20
|
+
import '../useAtlantisConfig-Daa10dex.js';
|
|
21
|
+
import '../InputText-BKmC8LAf.js';
|
|
22
|
+
import '../FormField-Dg8dpwo0.js';
|
|
22
23
|
import 'react-hook-form';
|
|
24
|
+
import '@jobber/hooks/useShowClear';
|
|
23
25
|
import '../Button-DCEN_VU9.js';
|
|
24
26
|
import 'react-router-dom';
|
|
25
27
|
import '../InputValidation-DDTInAPc.js';
|
|
@@ -2,17 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
var tslib_es6 = require('./tslib.es6-ld72nsZq.js');
|
|
4
4
|
var React = require('react');
|
|
5
|
-
var debounce = require('./debounce-
|
|
5
|
+
var debounce = require('./debounce-B-pQrPa0.js');
|
|
6
6
|
var styleInject_es = require('./style-inject.es-XZHJH68X.js');
|
|
7
7
|
var classnames = require('classnames');
|
|
8
8
|
var ReactDOM = require('react-dom');
|
|
9
9
|
var reactPopper = require('react-popper');
|
|
10
|
-
var useOnKeyDown = require('
|
|
11
|
-
var useSafeLayoutEffect = require('
|
|
10
|
+
var useOnKeyDown = require('@jobber/hooks/useOnKeyDown');
|
|
11
|
+
var useSafeLayoutEffect = require('@jobber/hooks/useSafeLayoutEffect');
|
|
12
|
+
var useIsMounted = require('@jobber/hooks/useIsMounted');
|
|
12
13
|
var Text = require('./Text-L0uH5HlC.js');
|
|
13
14
|
var Icon = require('./Icon-B9XNdA1T.js');
|
|
14
|
-
var Heading = require('./Heading-
|
|
15
|
-
var InputText = require('./InputText-
|
|
15
|
+
var Heading = require('./Heading-BOPUeuqz.js');
|
|
16
|
+
var InputText = require('./InputText-DSAkrYN7.js');
|
|
16
17
|
|
|
17
18
|
var css_248z = ".v0Cys9vQ-NE- {\n position: relative;\n width: 100%;\n}\n\n.CX-N-e0e6og- {\n display: none;\n position: absolute;\n z-index: calc(6 + 1001);\n z-index: calc(var(--elevation-menu) + var(--elevation-modal));\n width: 100%;\n /* Unfortunately this is how we define our line item picker height in jobber online.\n This is a concession to maintain visual parity. */\n max-height: 300px;\n box-shadow: 0px calc(16px / 16) calc(16px / 4) 0px\n rgba(0, 0, 0, 0.1),\n 0px calc(16px / 4) 12px 0px rgba(0, 0, 0, 0.05);\n box-shadow: var(--shadow-base);\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n border: calc(16px / 16) solid var(--color-color-border);\n border: var(--border-base) solid var(--color-color-border);\n border-radius: calc(16px / 8);\n border-radius: var(--radius-base);\n overflow: auto;\n scroll-behavior: smooth;\n background-color: rgba(255, 255, 255, 1);\n background-color: var(--color-surface);\n}\n\n.CX-N-e0e6og- h5 {\n padding: calc(16px / 2) 0 calc(16px / 4) calc(16px / 2);\n padding: var(--space-small) 0 var(--space-smaller) var(--space-small);\n border-bottom: calc(16px / 16) solid rgb(1, 41, 57);\n border-bottom: var(--border-base) solid var(--color-border--section);\n}\n\n.CX-N-e0e6og-._4PlUaegVpkk- {\n display: block;\n}\n\n.CX-N-e0e6og-._4PlUaegVpkk-:empty {\n display: none;\n}\n\n.ucQtG0iwqbo- {\n display: -ms-flexbox;\n display: flex;\n width: 100%;\n -ms-flex-direction: row;\n flex-direction: row;\n -ms-flex-wrap: nowrap;\n flex-wrap: nowrap;\n -ms-flex-pack: start;\n justify-content: flex-start;\n -ms-flex-line-pack: stretch;\n align-content: stretch;\n -ms-flex-align: center;\n align-items: center;\n padding: calc(16px / 2);\n padding: var(--space-small);\n border: none;\n text-align: left;\n list-style: none;\n background-color: transparent;\n cursor: pointer;\n transition: all 200ms;\n transition: all var(--timing-base);\n}\n\n.ucQtG0iwqbo-:hover,\n.ucQtG0iwqbo-:focus,\n.ucQtG0iwqbo-.r8HS-ma79QE- {\n background-color: rgb(244, 246, 250);\n background-color: var(--color-surface--hover);\n outline-color: rgb(147, 161, 169);\n outline-color: var(--color-focus);\n}\n\n.ucQtG0iwqbo-.ydwLX44YFZc-:not(:last-child) {\n border-bottom: calc(16px / 16) solid rgb(217, 223, 225);\n border-bottom: var(--border-base) solid var(--color-border);\n}\n\n.CX-N-e0e6og-:hover .ucQtG0iwqbo-.r8HS-ma79QE-:not(:hover) {\n background-color: transparent;\n outline-color: transparent;\n}\n\n.v0Cys9vQ-NE- .PvUgNoAUG7A-:not(:first-child) {\n padding-top: calc(16px / 2);\n padding-top: var(--space-small);\n}\n\n.ucQtG0iwqbo- .DAOOFUZ1BRM- {\n -ms-flex: 0 1 auto;\n flex: 0 1 auto;\n -ms-flex-item-align: auto;\n align-self: auto;\n width: calc(16px * 1.5);\n width: var(--space-large);\n}\n\n.ucQtG0iwqbo- .cjKJFup6hGY- {\n display: -ms-inline-flexbox;\n display: inline-flex;\n -ms-flex: 1 100%;\n flex: 1 100%;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n}\n\n.ucQtG0iwqbo- .hG5zNBuI2wA- {\n -ms-flex: 2;\n flex: 2;\n}\n\n.ucQtG0iwqbo- ._3CwjFCbhqi4- {\n -ms-flex: 1;\n flex: 1;\n -ms-flex-item-align: end;\n align-self: flex-end;\n text-align: right;\n}\n";
|
|
18
19
|
var styles = {"autocomplete":"v0Cys9vQ-NE-","options":"CX-N-e0e6og-","visible":"_4PlUaegVpkk-","option":"ucQtG0iwqbo-","active":"r8HS-ma79QE-","separator":"ydwLX44YFZc-","heading":"PvUgNoAUG7A-","icon":"DAOOFUZ1BRM-","text":"cjKJFup6hGY-","label":"hG5zNBuI2wA-","details":"_3CwjFCbhqi4-"};
|
|
@@ -23,6 +24,9 @@ var IndexChange;
|
|
|
23
24
|
IndexChange[IndexChange["Previous"] = -1] = "Previous";
|
|
24
25
|
IndexChange[IndexChange["Next"] = 1] = "Next";
|
|
25
26
|
})(IndexChange || (IndexChange = {}));
|
|
27
|
+
// Adding useIsMounted is what tipped this to 13 statements.
|
|
28
|
+
// Any additions beyond useIsMounted should probably see this component refactored a bit
|
|
29
|
+
// eslint-disable-next-line max-statements
|
|
26
30
|
function Menu({ visible, options, selectedOption, onOptionSelect, attachTo, }) {
|
|
27
31
|
const [highlightedIndex, setHighlightedIndex] = React.useState(0);
|
|
28
32
|
const { menuRef, setMenuRef, styles: popperStyles, attributes, targetWidth, } = useRepositionMenu(attachTo, visible);
|
|
@@ -32,6 +36,7 @@ function Menu({ visible, options, selectedOption, onOptionSelect, attachTo, }) {
|
|
|
32
36
|
const initialHighlight = options.some(detectGroups) ? 1 : 0;
|
|
33
37
|
setupKeyListeners();
|
|
34
38
|
React.useEffect(() => setHighlightedIndex(initialHighlight), [options]);
|
|
39
|
+
const mounted = useIsMounted.useIsMounted();
|
|
35
40
|
const menu = (React.createElement("div", Object.assign({ className: classnames(styles.options, { [styles.visible]: visible }), ref: setMenuRef, style: Object.assign(Object.assign({}, popperStyles.popper), { width: targetWidth }) }, attributes.popper), options.map((option, index) => {
|
|
36
41
|
const optionClass = classnames(styles.option, {
|
|
37
42
|
[styles.active]: index === highlightedIndex,
|
|
@@ -50,7 +55,7 @@ function Menu({ visible, options, selectedOption, onOptionSelect, attachTo, }) {
|
|
|
50
55
|
option.details !== undefined && (React.createElement("div", { className: styles.details },
|
|
51
56
|
React.createElement(Text.Text, null, option.details))))));
|
|
52
57
|
})));
|
|
53
|
-
return ReactDOM.createPortal(menu, document.body);
|
|
58
|
+
return mounted.current ? ReactDOM.createPortal(menu, document.body) : menu;
|
|
54
59
|
function setupKeyListeners() {
|
|
55
60
|
React.useEffect(() => {
|
|
56
61
|
var _a, _b;
|
|
@@ -60,19 +65,19 @@ function Menu({ visible, options, selectedOption, onOptionSelect, attachTo, }) {
|
|
|
60
65
|
inline: "start",
|
|
61
66
|
});
|
|
62
67
|
}, [highlightedIndex]);
|
|
63
|
-
useOnKeyDown.useOnKeyDown
|
|
68
|
+
useOnKeyDown.useOnKeyDown((event) => {
|
|
64
69
|
const indexChange = arrowKeyPress(event, IndexChange.Next);
|
|
65
70
|
if (indexChange) {
|
|
66
71
|
setHighlightedIndex(Math.min(options.length - 1, highlightedIndex + indexChange));
|
|
67
72
|
}
|
|
68
73
|
}, "ArrowDown");
|
|
69
|
-
useOnKeyDown.useOnKeyDown
|
|
74
|
+
useOnKeyDown.useOnKeyDown((event) => {
|
|
70
75
|
const indexChange = arrowKeyPress(event, IndexChange.Previous);
|
|
71
76
|
if (indexChange) {
|
|
72
77
|
setHighlightedIndex(Math.max(0, highlightedIndex + indexChange));
|
|
73
78
|
}
|
|
74
79
|
}, "ArrowUp");
|
|
75
|
-
useOnKeyDown.useOnKeyDown
|
|
80
|
+
useOnKeyDown.useOnKeyDown((event) => {
|
|
76
81
|
if (!visible)
|
|
77
82
|
return;
|
|
78
83
|
if (isGroup(options[highlightedIndex]))
|
|
@@ -108,7 +113,7 @@ function useRepositionMenu(attachTo, visible = false) {
|
|
|
108
113
|
{ name: "flip", options: { fallbackPlacements: ["top"] } },
|
|
109
114
|
],
|
|
110
115
|
});
|
|
111
|
-
useSafeLayoutEffect.useSafeLayoutEffect
|
|
116
|
+
useSafeLayoutEffect.useSafeLayoutEffect(() => {
|
|
112
117
|
var _a;
|
|
113
118
|
(_a = popper === null || popper === void 0 ? void 0 : popper.update) === null || _a === void 0 ? void 0 : _a.call(popper);
|
|
114
119
|
}, [visible]);
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { _ as __rest, a as __awaiter } from './tslib.es6-Df1SgIEn.js';
|
|
2
2
|
import React, { useState, useEffect, forwardRef, useRef } from 'react';
|
|
3
|
-
import { d as debounce } from './debounce-
|
|
3
|
+
import { d as debounce } from './debounce-asENWBkf.js';
|
|
4
4
|
import { s as styleInject } from './style-inject.es-tgCJW-Cu.js';
|
|
5
5
|
import classnames from 'classnames';
|
|
6
6
|
import { createPortal } from 'react-dom';
|
|
7
7
|
import { usePopper } from 'react-popper';
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
8
|
+
import { useOnKeyDown } from '@jobber/hooks/useOnKeyDown';
|
|
9
|
+
import { useSafeLayoutEffect } from '@jobber/hooks/useSafeLayoutEffect';
|
|
10
|
+
import { useIsMounted } from '@jobber/hooks/useIsMounted';
|
|
10
11
|
import { T as Text } from './Text-B0MvS7fA.js';
|
|
11
12
|
import { I as Icon } from './Icon-CoHJokXb.js';
|
|
12
|
-
import { H as Heading } from './Heading-
|
|
13
|
-
import { I as InputText } from './InputText-
|
|
13
|
+
import { H as Heading } from './Heading-CuwWlvKk.js';
|
|
14
|
+
import { I as InputText } from './InputText-BKmC8LAf.js';
|
|
14
15
|
|
|
15
16
|
var css_248z = ".v0Cys9vQ-NE- {\n position: relative;\n width: 100%;\n}\n\n.CX-N-e0e6og- {\n display: none;\n position: absolute;\n z-index: calc(6 + 1001);\n z-index: calc(var(--elevation-menu) + var(--elevation-modal));\n width: 100%;\n /* Unfortunately this is how we define our line item picker height in jobber online.\n This is a concession to maintain visual parity. */\n max-height: 300px;\n box-shadow: 0px calc(16px / 16) calc(16px / 4) 0px\n rgba(0, 0, 0, 0.1),\n 0px calc(16px / 4) 12px 0px rgba(0, 0, 0, 0.05);\n box-shadow: var(--shadow-base);\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n border: calc(16px / 16) solid var(--color-color-border);\n border: var(--border-base) solid var(--color-color-border);\n border-radius: calc(16px / 8);\n border-radius: var(--radius-base);\n overflow: auto;\n scroll-behavior: smooth;\n background-color: rgba(255, 255, 255, 1);\n background-color: var(--color-surface);\n}\n\n.CX-N-e0e6og- h5 {\n padding: calc(16px / 2) 0 calc(16px / 4) calc(16px / 2);\n padding: var(--space-small) 0 var(--space-smaller) var(--space-small);\n border-bottom: calc(16px / 16) solid rgb(1, 41, 57);\n border-bottom: var(--border-base) solid var(--color-border--section);\n}\n\n.CX-N-e0e6og-._4PlUaegVpkk- {\n display: block;\n}\n\n.CX-N-e0e6og-._4PlUaegVpkk-:empty {\n display: none;\n}\n\n.ucQtG0iwqbo- {\n display: -ms-flexbox;\n display: flex;\n width: 100%;\n -ms-flex-direction: row;\n flex-direction: row;\n -ms-flex-wrap: nowrap;\n flex-wrap: nowrap;\n -ms-flex-pack: start;\n justify-content: flex-start;\n -ms-flex-line-pack: stretch;\n align-content: stretch;\n -ms-flex-align: center;\n align-items: center;\n padding: calc(16px / 2);\n padding: var(--space-small);\n border: none;\n text-align: left;\n list-style: none;\n background-color: transparent;\n cursor: pointer;\n transition: all 200ms;\n transition: all var(--timing-base);\n}\n\n.ucQtG0iwqbo-:hover,\n.ucQtG0iwqbo-:focus,\n.ucQtG0iwqbo-.r8HS-ma79QE- {\n background-color: rgb(244, 246, 250);\n background-color: var(--color-surface--hover);\n outline-color: rgb(147, 161, 169);\n outline-color: var(--color-focus);\n}\n\n.ucQtG0iwqbo-.ydwLX44YFZc-:not(:last-child) {\n border-bottom: calc(16px / 16) solid rgb(217, 223, 225);\n border-bottom: var(--border-base) solid var(--color-border);\n}\n\n.CX-N-e0e6og-:hover .ucQtG0iwqbo-.r8HS-ma79QE-:not(:hover) {\n background-color: transparent;\n outline-color: transparent;\n}\n\n.v0Cys9vQ-NE- .PvUgNoAUG7A-:not(:first-child) {\n padding-top: calc(16px / 2);\n padding-top: var(--space-small);\n}\n\n.ucQtG0iwqbo- .DAOOFUZ1BRM- {\n -ms-flex: 0 1 auto;\n flex: 0 1 auto;\n -ms-flex-item-align: auto;\n align-self: auto;\n width: calc(16px * 1.5);\n width: var(--space-large);\n}\n\n.ucQtG0iwqbo- .cjKJFup6hGY- {\n display: -ms-inline-flexbox;\n display: inline-flex;\n -ms-flex: 1 100%;\n flex: 1 100%;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n}\n\n.ucQtG0iwqbo- .hG5zNBuI2wA- {\n -ms-flex: 2;\n flex: 2;\n}\n\n.ucQtG0iwqbo- ._3CwjFCbhqi4- {\n -ms-flex: 1;\n flex: 1;\n -ms-flex-item-align: end;\n align-self: flex-end;\n text-align: right;\n}\n";
|
|
16
17
|
var styles = {"autocomplete":"v0Cys9vQ-NE-","options":"CX-N-e0e6og-","visible":"_4PlUaegVpkk-","option":"ucQtG0iwqbo-","active":"r8HS-ma79QE-","separator":"ydwLX44YFZc-","heading":"PvUgNoAUG7A-","icon":"DAOOFUZ1BRM-","text":"cjKJFup6hGY-","label":"hG5zNBuI2wA-","details":"_3CwjFCbhqi4-"};
|
|
@@ -21,6 +22,9 @@ var IndexChange;
|
|
|
21
22
|
IndexChange[IndexChange["Previous"] = -1] = "Previous";
|
|
22
23
|
IndexChange[IndexChange["Next"] = 1] = "Next";
|
|
23
24
|
})(IndexChange || (IndexChange = {}));
|
|
25
|
+
// Adding useIsMounted is what tipped this to 13 statements.
|
|
26
|
+
// Any additions beyond useIsMounted should probably see this component refactored a bit
|
|
27
|
+
// eslint-disable-next-line max-statements
|
|
24
28
|
function Menu({ visible, options, selectedOption, onOptionSelect, attachTo, }) {
|
|
25
29
|
const [highlightedIndex, setHighlightedIndex] = useState(0);
|
|
26
30
|
const { menuRef, setMenuRef, styles: popperStyles, attributes, targetWidth, } = useRepositionMenu(attachTo, visible);
|
|
@@ -30,6 +34,7 @@ function Menu({ visible, options, selectedOption, onOptionSelect, attachTo, }) {
|
|
|
30
34
|
const initialHighlight = options.some(detectGroups) ? 1 : 0;
|
|
31
35
|
setupKeyListeners();
|
|
32
36
|
useEffect(() => setHighlightedIndex(initialHighlight), [options]);
|
|
37
|
+
const mounted = useIsMounted();
|
|
33
38
|
const menu = (React.createElement("div", Object.assign({ className: classnames(styles.options, { [styles.visible]: visible }), ref: setMenuRef, style: Object.assign(Object.assign({}, popperStyles.popper), { width: targetWidth }) }, attributes.popper), options.map((option, index) => {
|
|
34
39
|
const optionClass = classnames(styles.option, {
|
|
35
40
|
[styles.active]: index === highlightedIndex,
|
|
@@ -48,7 +53,7 @@ function Menu({ visible, options, selectedOption, onOptionSelect, attachTo, }) {
|
|
|
48
53
|
option.details !== undefined && (React.createElement("div", { className: styles.details },
|
|
49
54
|
React.createElement(Text, null, option.details))))));
|
|
50
55
|
})));
|
|
51
|
-
return createPortal(menu, document.body);
|
|
56
|
+
return mounted.current ? createPortal(menu, document.body) : menu;
|
|
52
57
|
function setupKeyListeners() {
|
|
53
58
|
useEffect(() => {
|
|
54
59
|
var _a, _b;
|
|
@@ -58,19 +63,19 @@ function Menu({ visible, options, selectedOption, onOptionSelect, attachTo, }) {
|
|
|
58
63
|
inline: "start",
|
|
59
64
|
});
|
|
60
65
|
}, [highlightedIndex]);
|
|
61
|
-
useOnKeyDown
|
|
66
|
+
useOnKeyDown((event) => {
|
|
62
67
|
const indexChange = arrowKeyPress(event, IndexChange.Next);
|
|
63
68
|
if (indexChange) {
|
|
64
69
|
setHighlightedIndex(Math.min(options.length - 1, highlightedIndex + indexChange));
|
|
65
70
|
}
|
|
66
71
|
}, "ArrowDown");
|
|
67
|
-
useOnKeyDown
|
|
72
|
+
useOnKeyDown((event) => {
|
|
68
73
|
const indexChange = arrowKeyPress(event, IndexChange.Previous);
|
|
69
74
|
if (indexChange) {
|
|
70
75
|
setHighlightedIndex(Math.max(0, highlightedIndex + indexChange));
|
|
71
76
|
}
|
|
72
77
|
}, "ArrowUp");
|
|
73
|
-
useOnKeyDown
|
|
78
|
+
useOnKeyDown((event) => {
|
|
74
79
|
if (!visible)
|
|
75
80
|
return;
|
|
76
81
|
if (isGroup(options[highlightedIndex]))
|
|
@@ -106,7 +111,7 @@ function useRepositionMenu(attachTo, visible = false) {
|
|
|
106
111
|
{ name: "flip", options: { fallbackPlacements: ["top"] } },
|
|
107
112
|
],
|
|
108
113
|
});
|
|
109
|
-
useSafeLayoutEffect
|
|
114
|
+
useSafeLayoutEffect(() => {
|
|
110
115
|
var _a;
|
|
111
116
|
(_a = popper === null || popper === void 0 ? void 0 : popper.update) === null || _a === void 0 ? void 0 : _a.call(popper);
|
|
112
117
|
}, [visible]);
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var BannerIcon = require('../../../BannerIcon-
|
|
3
|
+
var BannerIcon = require('../../../BannerIcon-BKSqafh9.js');
|
|
4
4
|
require('react');
|
|
5
5
|
require('classnames');
|
|
6
|
-
require('../../../
|
|
6
|
+
require('../../../useAtlantisConfig-BV9EaVeA.js');
|
|
7
|
+
require('@jobber/hooks/useSafeLayoutEffect');
|
|
7
8
|
require('../../../style-inject.es-XZHJH68X.js');
|
|
8
9
|
require('../../../Icon-B9XNdA1T.js');
|
|
9
10
|
require('@jobber/design');
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
export { B as BannerIcon } from '../../../BannerIcon-
|
|
1
|
+
export { B as BannerIcon } from '../../../BannerIcon-Bz2co5Sv.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'classnames';
|
|
4
|
-
import '../../../
|
|
4
|
+
import '../../../useAtlantisConfig-Daa10dex.js';
|
|
5
|
+
import '@jobber/hooks/useSafeLayoutEffect';
|
|
5
6
|
import '../../../style-inject.es-tgCJW-Cu.js';
|
|
6
7
|
import '../../../Icon-CoHJokXb.js';
|
|
7
8
|
import '@jobber/design';
|
package/dist/Banner/index.cjs
CHANGED
|
@@ -1,15 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var Banner = require('../Banner-
|
|
3
|
+
var Banner = require('../Banner-DOTR15NP.js');
|
|
4
4
|
require('react');
|
|
5
5
|
require('classnames');
|
|
6
|
-
require('
|
|
7
|
-
require('../
|
|
8
|
-
require('../
|
|
9
|
-
require('
|
|
10
|
-
require('../isSymbol-DS9vlqp3.js');
|
|
11
|
-
require('../BannerIcon-CoUm6Udu.js');
|
|
12
|
-
require('../getAtlantisConfig-mcMVqf6m.js');
|
|
6
|
+
require('@jobber/hooks/useResizeObserver');
|
|
7
|
+
require('../BannerIcon-BKSqafh9.js');
|
|
8
|
+
require('../useAtlantisConfig-BV9EaVeA.js');
|
|
9
|
+
require('@jobber/hooks/useSafeLayoutEffect');
|
|
13
10
|
require('../style-inject.es-XZHJH68X.js');
|
|
14
11
|
require('../Icon-B9XNdA1T.js');
|
|
15
12
|
require('@jobber/design');
|
package/dist/Banner/index.mjs
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
export { B as Banner } from '../Banner-
|
|
1
|
+
export { B as Banner } from '../Banner-B0FNQaEA.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'classnames';
|
|
4
|
-
import '
|
|
5
|
-
import '../
|
|
6
|
-
import '../
|
|
7
|
-
import '
|
|
8
|
-
import '../isSymbol-BB8mecpv.js';
|
|
9
|
-
import '../BannerIcon-Cf9MHBUn.js';
|
|
10
|
-
import '../getAtlantisConfig-6FPWID0P.js';
|
|
4
|
+
import '@jobber/hooks/useResizeObserver';
|
|
5
|
+
import '../BannerIcon-Bz2co5Sv.js';
|
|
6
|
+
import '../useAtlantisConfig-Daa10dex.js';
|
|
7
|
+
import '@jobber/hooks/useSafeLayoutEffect';
|
|
11
8
|
import '../style-inject.es-tgCJW-Cu.js';
|
|
12
9
|
import '../Icon-CoHJokXb.js';
|
|
13
10
|
import '@jobber/design';
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
2
|
import classnames from 'classnames';
|
|
3
|
-
import {
|
|
4
|
-
import { s as styles, B as BannerIcon } from './BannerIcon-
|
|
3
|
+
import { useResizeObserver } from '@jobber/hooks/useResizeObserver';
|
|
4
|
+
import { s as styles, B as BannerIcon } from './BannerIcon-Bz2co5Sv.js';
|
|
5
5
|
import { s as styleInject } from './style-inject.es-tgCJW-Cu.js';
|
|
6
6
|
import { I as Icon } from './Icon-CoHJokXb.js';
|
|
7
7
|
import { T as Text } from './Text-B0MvS7fA.js';
|
|
8
8
|
import { B as Button } from './Button-DCEN_VU9.js';
|
|
9
|
-
import {
|
|
9
|
+
import { u as useAtlantisConfig } from './useAtlantisConfig-Daa10dex.js';
|
|
10
10
|
|
|
11
11
|
var css_248z = ".wWW-2T7rCV0- {\n background-color: rgb(226, 241, 250);\n background-color: var(--color-informative--surface);\n}\n\n/* Our Banner \"surface\" colors should be lighter than they are so we're leaving the following alone for now */\n\n._7h8FUHIkVjg- {\n background-color: rgb(203, 223, 159);\n background-color: var(--color-green--lighter);\n}\n\n.d5fXcE1L0lc- {\n background-color: rgb(241, 231, 159);\n background-color: var(--color-yellow--lighter);\n}\n\n.oYaw-T3c0IU- {\n background-color: rgb(255, 206, 194);\n background-color: var(--color-red--lighter);\n}\n";
|
|
12
12
|
var types = {"notice":"wWW-2T7rCV0-","success":"_7h8FUHIkVjg-","warning":"d5fXcE1L0lc-","error":"oYaw-T3c0IU-"};
|
|
13
13
|
styleInject(css_248z);
|
|
14
14
|
|
|
15
15
|
function Banner({ children, type, primaryAction, dismissible = true, icon, onDismiss, }) {
|
|
16
|
-
const { JOBBER_RETHEME } =
|
|
16
|
+
const { JOBBER_RETHEME } = useAtlantisConfig();
|
|
17
17
|
const [showBanner, setShowBanner] = useState(true);
|
|
18
18
|
const bannerIcon = icon || getBannerIcon(type);
|
|
19
19
|
const bannerWidths = {
|
|
20
20
|
small: 320,
|
|
21
21
|
medium: 480,
|
|
22
22
|
};
|
|
23
|
-
const [bannerRef, { width: bannerWidth = bannerWidths.small }] = useResizeObserver
|
|
23
|
+
const [bannerRef, { width: bannerWidth = bannerWidths.small }] = useResizeObserver({
|
|
24
24
|
widths: bannerWidths,
|
|
25
25
|
});
|
|
26
26
|
const iconColors = {
|
|
@@ -56,7 +56,7 @@ function Banner({ children, type, primaryAction, dismissible = true, icon, onDis
|
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
function getBannerIcon(type) {
|
|
59
|
-
const { JOBBER_RETHEME } =
|
|
59
|
+
const { JOBBER_RETHEME } = useAtlantisConfig();
|
|
60
60
|
if (!JOBBER_RETHEME)
|
|
61
61
|
return;
|
|
62
62
|
switch (type) {
|
|
@@ -2,27 +2,27 @@
|
|
|
2
2
|
|
|
3
3
|
var React = require('react');
|
|
4
4
|
var classnames = require('classnames');
|
|
5
|
-
var
|
|
6
|
-
var BannerIcon = require('./BannerIcon-
|
|
5
|
+
var jobberHooks = require('@jobber/hooks/useResizeObserver');
|
|
6
|
+
var BannerIcon = require('./BannerIcon-BKSqafh9.js');
|
|
7
7
|
var styleInject_es = require('./style-inject.es-XZHJH68X.js');
|
|
8
8
|
var Icon = require('./Icon-B9XNdA1T.js');
|
|
9
9
|
var Text = require('./Text-L0uH5HlC.js');
|
|
10
10
|
var Button = require('./Button-CdFKgOjt.js');
|
|
11
|
-
var
|
|
11
|
+
var useAtlantisConfig = require('./useAtlantisConfig-BV9EaVeA.js');
|
|
12
12
|
|
|
13
13
|
var css_248z = ".wWW-2T7rCV0- {\n background-color: rgb(226, 241, 250);\n background-color: var(--color-informative--surface);\n}\n\n/* Our Banner \"surface\" colors should be lighter than they are so we're leaving the following alone for now */\n\n._7h8FUHIkVjg- {\n background-color: rgb(203, 223, 159);\n background-color: var(--color-green--lighter);\n}\n\n.d5fXcE1L0lc- {\n background-color: rgb(241, 231, 159);\n background-color: var(--color-yellow--lighter);\n}\n\n.oYaw-T3c0IU- {\n background-color: rgb(255, 206, 194);\n background-color: var(--color-red--lighter);\n}\n";
|
|
14
14
|
var types = {"notice":"wWW-2T7rCV0-","success":"_7h8FUHIkVjg-","warning":"d5fXcE1L0lc-","error":"oYaw-T3c0IU-"};
|
|
15
15
|
styleInject_es.styleInject(css_248z);
|
|
16
16
|
|
|
17
17
|
function Banner({ children, type, primaryAction, dismissible = true, icon, onDismiss, }) {
|
|
18
|
-
const { JOBBER_RETHEME } =
|
|
18
|
+
const { JOBBER_RETHEME } = useAtlantisConfig.useAtlantisConfig();
|
|
19
19
|
const [showBanner, setShowBanner] = React.useState(true);
|
|
20
20
|
const bannerIcon = icon || getBannerIcon(type);
|
|
21
21
|
const bannerWidths = {
|
|
22
22
|
small: 320,
|
|
23
23
|
medium: 480,
|
|
24
24
|
};
|
|
25
|
-
const [bannerRef, { width: bannerWidth = bannerWidths.small }] =
|
|
25
|
+
const [bannerRef, { width: bannerWidth = bannerWidths.small }] = jobberHooks.useResizeObserver({
|
|
26
26
|
widths: bannerWidths,
|
|
27
27
|
});
|
|
28
28
|
const iconColors = {
|
|
@@ -58,7 +58,7 @@ function Banner({ children, type, primaryAction, dismissible = true, icon, onDis
|
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
function getBannerIcon(type) {
|
|
61
|
-
const { JOBBER_RETHEME } =
|
|
61
|
+
const { JOBBER_RETHEME } = useAtlantisConfig.useAtlantisConfig();
|
|
62
62
|
if (!JOBBER_RETHEME)
|
|
63
63
|
return;
|
|
64
64
|
switch (type) {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var React = require('react');
|
|
4
4
|
var classnames = require('classnames');
|
|
5
|
-
var
|
|
5
|
+
var useAtlantisConfig = require('./useAtlantisConfig-BV9EaVeA.js');
|
|
6
6
|
var styleInject_es = require('./style-inject.es-XZHJH68X.js');
|
|
7
7
|
var Icon = require('./Icon-B9XNdA1T.js');
|
|
8
8
|
|
|
@@ -15,7 +15,7 @@ var iconStyles = {"success":"_5-B0X5vn0eA-","error":"r3hqur-vxwI-","warning":"-c
|
|
|
15
15
|
styleInject_es.styleInject(css_248z);
|
|
16
16
|
|
|
17
17
|
function BannerIcon({ icon, type }) {
|
|
18
|
-
const { JOBBER_RETHEME } =
|
|
18
|
+
const { JOBBER_RETHEME } = useAtlantisConfig.useAtlantisConfig();
|
|
19
19
|
if (JOBBER_RETHEME) {
|
|
20
20
|
return (React.createElement("span", { className: classnames(styles.iconWrapper, iconStyles[type]) },
|
|
21
21
|
React.createElement(Icon.Icon, { name: icon, color: "white", size: "small" })));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import classnames from 'classnames';
|
|
3
|
-
import {
|
|
3
|
+
import { u as useAtlantisConfig } from './useAtlantisConfig-Daa10dex.js';
|
|
4
4
|
import { s as styleInject } from './style-inject.es-tgCJW-Cu.js';
|
|
5
5
|
import { I as Icon } from './Icon-CoHJokXb.js';
|
|
6
6
|
|
|
@@ -13,7 +13,7 @@ var iconStyles = {"success":"_5-B0X5vn0eA-","error":"r3hqur-vxwI-","warning":"-c
|
|
|
13
13
|
styleInject(css_248z);
|
|
14
14
|
|
|
15
15
|
function BannerIcon({ icon, type }) {
|
|
16
|
-
const { JOBBER_RETHEME } =
|
|
16
|
+
const { JOBBER_RETHEME } = useAtlantisConfig();
|
|
17
17
|
if (JOBBER_RETHEME) {
|
|
18
18
|
return (React.createElement("span", { className: classnames(styles.iconWrapper, iconStyles[type]) },
|
|
19
19
|
React.createElement(Icon, { name: icon, color: "white", size: "small" })));
|
package/dist/Card/index.cjs
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var Card = require('../Card-
|
|
3
|
+
var Card = require('../Card-pEq1vP48.js');
|
|
4
4
|
require('react');
|
|
5
5
|
require('classnames');
|
|
6
6
|
require('../style-inject.es-XZHJH68X.js');
|
|
7
|
-
require('../Heading-
|
|
7
|
+
require('../Heading-BOPUeuqz.js');
|
|
8
8
|
require('../Typography-g6o6Nu4H.js');
|
|
9
|
-
require('../
|
|
9
|
+
require('../useAtlantisConfig-BV9EaVeA.js');
|
|
10
|
+
require('@jobber/hooks/useSafeLayoutEffect');
|
|
10
11
|
require('../Button-CdFKgOjt.js');
|
|
11
12
|
require('react-router-dom');
|
|
12
13
|
require('../Icon-B9XNdA1T.js');
|
|
13
14
|
require('@jobber/design');
|
|
14
|
-
require('../Menu-
|
|
15
|
+
require('../Menu-DY0HEByr.js');
|
|
15
16
|
require('framer-motion');
|
|
16
|
-
require('
|
|
17
|
-
require('
|
|
18
|
-
require('../useSafeLayoutEffect-Qir6pm57.js');
|
|
17
|
+
require('@jobber/hooks/useOnKeyDown');
|
|
18
|
+
require('@jobber/hooks/useRefocusOnActivator');
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
package/dist/Card/index.mjs
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
export { C as Card } from '../Card-
|
|
1
|
+
export { C as Card } from '../Card-DHndcTNY.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'classnames';
|
|
4
4
|
import '../style-inject.es-tgCJW-Cu.js';
|
|
5
|
-
import '../Heading-
|
|
5
|
+
import '../Heading-CuwWlvKk.js';
|
|
6
6
|
import '../Typography-BLZqr2yE.js';
|
|
7
|
-
import '../
|
|
7
|
+
import '../useAtlantisConfig-Daa10dex.js';
|
|
8
|
+
import '@jobber/hooks/useSafeLayoutEffect';
|
|
8
9
|
import '../Button-DCEN_VU9.js';
|
|
9
10
|
import 'react-router-dom';
|
|
10
11
|
import '../Icon-CoHJokXb.js';
|
|
11
12
|
import '@jobber/design';
|
|
12
|
-
import '../Menu-
|
|
13
|
+
import '../Menu-DXO2Sfup.js';
|
|
13
14
|
import 'framer-motion';
|
|
14
|
-
import '
|
|
15
|
-
import '
|
|
16
|
-
import '../useSafeLayoutEffect-yaw3NyzX.js';
|
|
15
|
+
import '@jobber/hooks/useOnKeyDown';
|
|
16
|
+
import '@jobber/hooks/useRefocusOnActivator';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React, { useRef } from 'react';
|
|
2
2
|
import classnames from 'classnames';
|
|
3
3
|
import { s as styleInject } from './style-inject.es-tgCJW-Cu.js';
|
|
4
|
-
import { H as Heading } from './Heading-
|
|
4
|
+
import { H as Heading } from './Heading-CuwWlvKk.js';
|
|
5
5
|
import { B as Button } from './Button-DCEN_VU9.js';
|
|
6
|
-
import { M as Menu } from './Menu-
|
|
6
|
+
import { M as Menu } from './Menu-DXO2Sfup.js';
|
|
7
7
|
|
|
8
8
|
var css_248z$1 = ":root {\n --card--accent-color: var(--color-grey);\n --card--base-padding: var(--space-base);\n --card--border: var(--border-base) solid var(--color-border);\n --card--header-background: var(--color-surface--background);\n}\n\n._2wxPdv7kELk- {\n display: block;\n width: 100%;\n border: calc(16px / 16) solid rgb(217, 223, 225);\n border: var(--card--border);\n border-radius: calc(16px / 8);\n border-radius: var(--radius-base);\n outline-color: rgb(147, 161, 169);\n outline-color: var(--color-focus);\n background-color: rgba(255, 255, 255, 1);\n background-color: var(--color-surface);\n}\n\n._2wxPdv7kELk-:active {\n outline: 0;\n}\n\n:root .jobber-retheme ._2wxPdv7kELk-:not(.tRfpysqqk8s-) {\n --card--header-background: transparent;\n}\n\n/* Adjust `Content` components public padding to match the cards */\n\n._2wxPdv7kELk- > * {\n --public-content--padding: var(--card--base-padding);\n}\n\n/* Remove the nested `Content` components public padding */\n\n._2wxPdv7kELk- > * > * {\n --public-content--padding: 0;\n}\n\n._5LfUFF9DYsk- {\n border-top-width: 0;\n}\n\n._5LfUFF9DYsk-::before {\n content: \" \";\n display: block;\n margin: 0 calc(-1 * (16px / 16));\n margin: 0 calc(-1 * calc(16px / 16));\n margin: 0 calc(-1 * var(--border-base));\n border-top: 0.375rem solid rgb(181, 181, 181);\n border-top: 0.375rem solid var(--card--accent-color);\n border-radius: calc(16px / 8) calc(16px / 8) 0 0;\n border-radius: var(--radius-base) var(--radius-base) 0 0;\n}\n\n.tRfpysqqk8s- {\n --card--border: none;\n\n box-shadow: 0px calc(16px / 16) calc(16px / 4) 0px\n rgba(0, 0, 0, 0.1),\n 0px calc(16px / 4) 12px 0px rgba(0, 0, 0, 0.05);\n\n box-shadow: var(--shadow-base);\n color: inherit;\n text-decoration: inherit;\n cursor: pointer;\n transition: all 100ms linear;\n transition: all var(--timing-quick) linear;\n}\n\n.tRfpysqqk8s-:hover,\n.tRfpysqqk8s-:focus {\n background-color: rgb(244, 246, 250);\n background-color: var(--color-surface--hover);\n}\n\n.fAPeD1InvAI- {\n display: -ms-flexbox;\n display: flex;\n padding: calc(16px * 1);\n padding: var(--card--base-padding);\n background-color: rgb(238, 240, 242);\n background-color: var(--card--header-background);\n -ms-flex-pack: justify;\n justify-content: space-between;\n -ms-flex-align: start;\n align-items: flex-start;\n gap: calc(16px / 2);\n gap: var(--space-small);\n}\n\n.jobber-retheme .fAPeD1InvAI- {\n padding-bottom: 0;\n}\n\n.jobber-retheme .fAPeD1InvAI- h3 {\n font-family: \"Inter\", Helvetica, Arial, sans-serif;\n font-family: var(--typography--fontFamily-normal);\n font-size: calc((16px * 1) * 1.5);\n font-size: calc(calc(16px * 1) * 1.5);\n font-size: var(--typography--fontSize-largest);\n}\n";
|
|
9
9
|
var styles = {"card":"_2wxPdv7kELk-","clickable":"tRfpysqqk8s-","accent":"_5LfUFF9DYsk-","header":"fAPeD1InvAI-"};
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
var React = require('react');
|
|
4
4
|
var classnames = require('classnames');
|
|
5
5
|
var styleInject_es = require('./style-inject.es-XZHJH68X.js');
|
|
6
|
-
var Heading = require('./Heading-
|
|
6
|
+
var Heading = require('./Heading-BOPUeuqz.js');
|
|
7
7
|
var Button = require('./Button-CdFKgOjt.js');
|
|
8
|
-
var Menu = require('./Menu-
|
|
8
|
+
var Menu = require('./Menu-DY0HEByr.js');
|
|
9
9
|
|
|
10
10
|
var css_248z$1 = ":root {\n --card--accent-color: var(--color-grey);\n --card--base-padding: var(--space-base);\n --card--border: var(--border-base) solid var(--color-border);\n --card--header-background: var(--color-surface--background);\n}\n\n._2wxPdv7kELk- {\n display: block;\n width: 100%;\n border: calc(16px / 16) solid rgb(217, 223, 225);\n border: var(--card--border);\n border-radius: calc(16px / 8);\n border-radius: var(--radius-base);\n outline-color: rgb(147, 161, 169);\n outline-color: var(--color-focus);\n background-color: rgba(255, 255, 255, 1);\n background-color: var(--color-surface);\n}\n\n._2wxPdv7kELk-:active {\n outline: 0;\n}\n\n:root .jobber-retheme ._2wxPdv7kELk-:not(.tRfpysqqk8s-) {\n --card--header-background: transparent;\n}\n\n/* Adjust `Content` components public padding to match the cards */\n\n._2wxPdv7kELk- > * {\n --public-content--padding: var(--card--base-padding);\n}\n\n/* Remove the nested `Content` components public padding */\n\n._2wxPdv7kELk- > * > * {\n --public-content--padding: 0;\n}\n\n._5LfUFF9DYsk- {\n border-top-width: 0;\n}\n\n._5LfUFF9DYsk-::before {\n content: \" \";\n display: block;\n margin: 0 calc(-1 * (16px / 16));\n margin: 0 calc(-1 * calc(16px / 16));\n margin: 0 calc(-1 * var(--border-base));\n border-top: 0.375rem solid rgb(181, 181, 181);\n border-top: 0.375rem solid var(--card--accent-color);\n border-radius: calc(16px / 8) calc(16px / 8) 0 0;\n border-radius: var(--radius-base) var(--radius-base) 0 0;\n}\n\n.tRfpysqqk8s- {\n --card--border: none;\n\n box-shadow: 0px calc(16px / 16) calc(16px / 4) 0px\n rgba(0, 0, 0, 0.1),\n 0px calc(16px / 4) 12px 0px rgba(0, 0, 0, 0.05);\n\n box-shadow: var(--shadow-base);\n color: inherit;\n text-decoration: inherit;\n cursor: pointer;\n transition: all 100ms linear;\n transition: all var(--timing-quick) linear;\n}\n\n.tRfpysqqk8s-:hover,\n.tRfpysqqk8s-:focus {\n background-color: rgb(244, 246, 250);\n background-color: var(--color-surface--hover);\n}\n\n.fAPeD1InvAI- {\n display: -ms-flexbox;\n display: flex;\n padding: calc(16px * 1);\n padding: var(--card--base-padding);\n background-color: rgb(238, 240, 242);\n background-color: var(--card--header-background);\n -ms-flex-pack: justify;\n justify-content: space-between;\n -ms-flex-align: start;\n align-items: flex-start;\n gap: calc(16px / 2);\n gap: var(--space-small);\n}\n\n.jobber-retheme .fAPeD1InvAI- {\n padding-bottom: 0;\n}\n\n.jobber-retheme .fAPeD1InvAI- h3 {\n font-family: \"Inter\", Helvetica, Arial, sans-serif;\n font-family: var(--typography--fontFamily-normal);\n font-size: calc((16px * 1) * 1.5);\n font-size: calc(calc(16px * 1) * 1.5);\n font-size: var(--typography--fontSize-largest);\n}\n";
|
|
11
11
|
var styles = {"card":"_2wxPdv7kELk-","clickable":"tRfpysqqk8s-","accent":"_5LfUFF9DYsk-","header":"fAPeD1InvAI-"};
|
package/dist/Chip/index.cjs
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var Chip = require('../Chip-
|
|
4
|
-
var ChipDismissible = require('../ChipDismissible-
|
|
3
|
+
var Chip = require('../Chip-BuyIFVpT.js');
|
|
4
|
+
var ChipDismissible = require('../ChipDismissible-DcvzV_6e.js');
|
|
5
5
|
require('react');
|
|
6
6
|
require('classnames');
|
|
7
|
-
require('
|
|
8
|
-
require('../_commonjsHelpers-B83fTs8d.js');
|
|
7
|
+
require('@jobber/hooks/useInView');
|
|
9
8
|
require('../style-inject.es-XZHJH68X.js');
|
|
10
9
|
require('../Avatar-AkaG8y0Q.js');
|
|
11
10
|
require('color');
|
|
@@ -13,10 +12,11 @@ require('../Icon-B9XNdA1T.js');
|
|
|
13
12
|
require('@jobber/design');
|
|
14
13
|
require('../useChildComponent-BUH0ttPi.js');
|
|
15
14
|
require('../Typography-g6o6Nu4H.js');
|
|
16
|
-
require('../Tooltip-
|
|
15
|
+
require('../Tooltip-raq-Y4h1.js');
|
|
17
16
|
require('react-dom');
|
|
18
17
|
require('framer-motion');
|
|
19
|
-
require('
|
|
18
|
+
require('@jobber/hooks/useSafeLayoutEffect');
|
|
19
|
+
require('@jobber/hooks/useIsMounted');
|
|
20
20
|
require('react-popper');
|
|
21
21
|
require('../tslib.es6-ld72nsZq.js');
|
|
22
22
|
|
package/dist/Chip/index.mjs
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
export { C as Chip } from '../Chip-
|
|
2
|
-
export { a as ChipDismissible, C as ChipSelectable } from '../ChipDismissible-
|
|
1
|
+
export { C as Chip } from '../Chip-BiaFSxjk.js';
|
|
2
|
+
export { a as ChipDismissible, C as ChipSelectable } from '../ChipDismissible-D8Gb8gzT.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'classnames';
|
|
5
|
-
import '
|
|
6
|
-
import '../_commonjsHelpers-E-ZsRS8r.js';
|
|
5
|
+
import '@jobber/hooks/useInView';
|
|
7
6
|
import '../style-inject.es-tgCJW-Cu.js';
|
|
8
7
|
import '../Avatar-CckTha1O.js';
|
|
9
8
|
import 'color';
|
|
@@ -11,9 +10,10 @@ import '../Icon-CoHJokXb.js';
|
|
|
11
10
|
import '@jobber/design';
|
|
12
11
|
import '../useChildComponent-D95jU7NM.js';
|
|
13
12
|
import '../Typography-BLZqr2yE.js';
|
|
14
|
-
import '../Tooltip-
|
|
13
|
+
import '../Tooltip-C1ZxBdnM.js';
|
|
15
14
|
import 'react-dom';
|
|
16
15
|
import 'framer-motion';
|
|
17
|
-
import '
|
|
16
|
+
import '@jobber/hooks/useSafeLayoutEffect';
|
|
17
|
+
import '@jobber/hooks/useIsMounted';
|
|
18
18
|
import 'react-popper';
|
|
19
19
|
import '../tslib.es6-Df1SgIEn.js';
|