@jobber/components 4.85.6-CJS-to-ESM.8 → 4.85.6-CJS-to-ESM.11
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/Autocomplete/Menu.d.ts +2 -2
- package/dist/Autocomplete/index.cjs +13 -11
- package/dist/Autocomplete/index.mjs +13 -11
- package/dist/{Autocomplete-CegS2xuv.js → Autocomplete-CaIBrj8e.js} +11 -6
- package/dist/{Autocomplete-CGkTziR6.js → Autocomplete-DJi7jdUw.js} +11 -6
- package/dist/Avatar/index.cjs +1 -1
- package/dist/Avatar/index.mjs +1 -1
- package/dist/{Avatar-Q2BQymsE.js → Avatar-AkaG8y0Q.js} +1 -1
- package/dist/{Avatar-DZCQBKMr.js → Avatar-CckTha1O.js} +1 -1
- package/dist/Banner/components/BannerIcon/index.cjs +4 -2
- package/dist/Banner/components/BannerIcon/index.mjs +4 -2
- package/dist/Banner/index.cjs +8 -6
- package/dist/Banner/index.mjs +8 -6
- package/dist/{Banner-DTAOjR6U.js → Banner-BlkdZtWM.js} +7 -7
- package/dist/{Banner-Dh-KKCEw.js → Banner-Dhp4UfBI.js} +7 -7
- package/dist/BannerIcon-BifD3IS3.js +27 -0
- package/dist/BannerIcon-Dyt3bQRR.js +24 -0
- package/dist/{Body-Dd2-HEDo.js → Body-D_wXn-LQ.js} +1 -1
- package/dist/{Body-DMRyfeGa.js → Body-_c6z1NDK.js} +1 -1
- package/dist/Button/index.cjs +2 -2
- package/dist/Button/index.mjs +2 -2
- package/dist/Button-CdFKgOjt.js +52 -0
- package/dist/Button-DCEN_VU9.js +50 -0
- package/dist/ButtonDismiss/index.cjs +3 -3
- package/dist/ButtonDismiss/index.mjs +3 -3
- package/dist/{ButtonDismiss-BuCG0_ee.js → ButtonDismiss-BPSS7oI4.js} +1 -1
- package/dist/{ButtonDismiss-CX5u1c_p.js → ButtonDismiss-CIT2CCBA.js} +1 -1
- package/dist/Card/index.cjs +8 -7
- package/dist/Card/index.mjs +8 -7
- package/dist/{Card-YPttFbjN.js → Card-BsiJi1g7.js} +4 -4
- package/dist/{Card-CLjbYhBt.js → Card-CHBaqzv3.js} +4 -4
- package/dist/Checkbox/index.cjs +3 -3
- package/dist/Checkbox/index.mjs +3 -3
- package/dist/{Checkbox-UO0UFaam.js → Checkbox-DRsOgqsP.js} +2 -2
- package/dist/{Checkbox-CehRIed9.js → Checkbox-fFiBs5HY.js} +2 -2
- package/dist/Chip/index.cjs +8 -6
- package/dist/Chip/index.mjs +8 -6
- package/dist/Chip-BsGl_WKW.js +70 -0
- package/dist/Chip-C3Slm72t.js +73 -0
- package/dist/{ChipDismissible-C8mWsLSv.js → ChipDismissible-CPP7NmO9.js} +1 -1
- package/dist/{ChipDismissible-BUPXp5_D.js → ChipDismissible-CekG0Sf1.js} +1 -1
- package/dist/Chips/InternalChipDismissible/index.cjs +12 -10
- package/dist/Chips/InternalChipDismissible/index.mjs +12 -10
- package/dist/Chips/index.cjs +13 -11
- package/dist/Chips/index.mjs +13 -11
- package/dist/{Chips-DWmRzR61.js → Chips-D2JzqFeF.js} +1 -1
- package/dist/{Chips-Cgig1xeD.js → Chips-Dnc6CcW9.js} +1 -1
- package/dist/Combobox/components/ComboboxAction/index.cjs +2 -2
- package/dist/Combobox/components/ComboboxAction/index.mjs +2 -2
- package/dist/Combobox/components/ComboboxActivator/index.cjs +9 -7
- package/dist/Combobox/components/ComboboxActivator/index.mjs +9 -7
- package/dist/Combobox/components/ComboboxContent/ComboboxContentHeader/index.cjs +3 -3
- package/dist/Combobox/components/ComboboxContent/ComboboxContentHeader/index.mjs +3 -3
- package/dist/Combobox/components/ComboboxContent/ComboboxContentList/index.cjs +9 -9
- package/dist/Combobox/components/ComboboxContent/ComboboxContentList/index.mjs +9 -9
- package/dist/Combobox/components/ComboboxContent/ComboboxContentSearch/index.cjs +1 -1
- package/dist/Combobox/components/ComboboxContent/ComboboxContentSearch/index.mjs +1 -1
- package/dist/Combobox/components/ComboboxContent/ComboboxLoadMore/index.cjs +1 -1
- package/dist/Combobox/components/ComboboxContent/ComboboxLoadMore/index.mjs +1 -1
- package/dist/Combobox/components/ComboboxContent/index.cjs +13 -13
- package/dist/Combobox/components/ComboboxContent/index.mjs +13 -13
- package/dist/Combobox/components/ComboboxOption/index.cjs +2 -2
- package/dist/Combobox/components/ComboboxOption/index.mjs +2 -2
- package/dist/Combobox/components/ComboboxTrigger/index.cjs +8 -6
- package/dist/Combobox/components/ComboboxTrigger/index.mjs +8 -6
- package/dist/Combobox/index.cjs +25 -23
- package/dist/Combobox/index.mjs +25 -23
- package/dist/{Combobox-CgidnZRz.js → Combobox-By7AP3Vp.js} +7 -7
- package/dist/{Combobox-D038vYPR.js → Combobox-Byj0Sh88.js} +7 -7
- package/dist/ComboboxAction-82KBbDVr.js +27 -0
- package/dist/ComboboxAction-B7IXde9k.js +25 -0
- package/dist/{ComboboxActivator-Dt5j0BvB.js → ComboboxActivator-Bgk02cBI.js} +2 -2
- package/dist/{ComboboxActivator-CchEsMah.js → ComboboxActivator-Ru4JCv7Z.js} +2 -2
- package/dist/{ComboboxContent-D-Uz7yqC.js → ComboboxContent-6RdfQlea.js} +7 -5
- package/dist/{ComboboxContent-CSb30jbJ.js → ComboboxContent-ChO63Ywk.js} +7 -5
- package/dist/{ComboboxContentHeader-6Jd87K2x.js → ComboboxContentHeader-Cec2Flq9.js} +3 -3
- package/dist/{ComboboxContentHeader-BGnTy3cb.js → ComboboxContentHeader-f2BBLU68.js} +3 -3
- package/dist/{ComboboxContentList-CcplzvJH.js → ComboboxContentList-cNeR7J1A.js} +6 -6
- package/dist/{ComboboxContentList-DuhvAHZH.js → ComboboxContentList-uhhTfIEW.js} +6 -6
- package/dist/ComboboxContentSearch-F-Mw0tok.js +35 -0
- package/dist/ComboboxContentSearch-u-EyPgPl.js +37 -0
- package/dist/{ComboboxLoadMore-CBXYoxXv.js → ComboboxLoadMore-D-P718hH.js} +1 -1
- package/dist/{ComboboxLoadMore-Bfg4pEkg.js → ComboboxLoadMore-D43j_nsT.js} +1 -1
- package/dist/{ComboboxOption-D_f4NcBM.js → ComboboxOption-CgeorSbe.js} +2 -2
- package/dist/{ComboboxOption-CWkyTkzU.js → ComboboxOption-D9gCE-eF.js} +2 -2
- package/dist/{ComboboxTrigger-Vnb9Z2jM.js → ComboboxTrigger-CeVUf-t7.js} +1 -1
- package/dist/{ComboboxTrigger-D0sdvd2z.js → ComboboxTrigger-h-heajaX.js} +1 -1
- package/dist/ConfirmationModal/index.cjs +14 -13
- package/dist/ConfirmationModal/index.mjs +14 -13
- package/dist/{ConfirmationModal-65n0fMJb.js → ConfirmationModal-BaTyl3Ux.js} +3 -3
- package/dist/{ConfirmationModal-BfiTCuPQ.js → ConfirmationModal-Br32nXDS.js} +3 -3
- package/dist/Content/index.cjs +1 -1
- package/dist/Content/index.mjs +1 -1
- package/dist/Content-4bZbek9l.js +20 -0
- package/dist/Content-CQOR6IRo.js +18 -0
- package/dist/DataDump/index.cjs +11 -10
- package/dist/DataDump/index.mjs +11 -10
- package/dist/{DataDump-VtVvKQ_7.js → DataDump-DVJK4FGN.js} +3 -3
- package/dist/{DataDump-drKZELB1.js → DataDump-Duov3PMc.js} +3 -3
- package/dist/DataList/components/DataListAction/index.cjs +2 -2
- package/dist/DataList/components/DataListAction/index.mjs +2 -2
- package/dist/DataList/components/DataListActions/index.cjs +18 -16
- package/dist/DataList/components/DataListActions/index.mjs +18 -16
- package/dist/DataList/components/DataListActionsMenu/DataListActionsMenu.d.ts +2 -2
- package/dist/DataList/components/DataListActionsMenu/index.cjs +3 -1
- package/dist/DataList/components/DataListActionsMenu/index.mjs +3 -1
- package/dist/DataList/components/DataListBulkActions/index.cjs +19 -17
- package/dist/DataList/components/DataListBulkActions/index.mjs +19 -17
- 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 +26 -24
- package/dist/DataList/components/DataListFilters/components/DataListSort/index.mjs +26 -24
- package/dist/DataList/components/DataListFilters/index.cjs +35 -33
- package/dist/DataList/components/DataListFilters/index.mjs +35 -33
- package/dist/DataList/components/DataListHeader/index.cjs +22 -20
- package/dist/DataList/components/DataListHeader/index.mjs +22 -20
- package/dist/DataList/components/DataListHeaderTile/components/index.cjs +1 -1
- package/dist/DataList/components/DataListHeaderTile/components/index.mjs +1 -1
- package/dist/DataList/components/DataListHeaderTile/index.cjs +4 -4
- package/dist/DataList/components/DataListHeaderTile/index.mjs +4 -4
- package/dist/DataList/components/DataListItem/components/DataListItemClickable/index.cjs +2 -2
- package/dist/DataList/components/DataListItem/components/DataListItemClickable/index.mjs +2 -2
- package/dist/DataList/components/DataListItem/index.cjs +23 -21
- package/dist/DataList/components/DataListItem/index.mjs +23 -21
- package/dist/DataList/components/DataListItemActions/index.cjs +19 -17
- package/dist/DataList/components/DataListItemActions/index.mjs +19 -17
- package/dist/DataList/components/DataListItemActionsOverflow/index.cjs +8 -6
- package/dist/DataList/components/DataListItemActionsOverflow/index.mjs +8 -6
- package/dist/DataList/components/DataListItems/index.cjs +24 -22
- package/dist/DataList/components/DataListItems/index.mjs +24 -22
- package/dist/DataList/components/DataListLayout/index.cjs +25 -23
- package/dist/DataList/components/DataListLayout/index.mjs +25 -23
- package/dist/DataList/components/DataListLayoutActions/index.cjs +11 -9
- package/dist/DataList/components/DataListLayoutActions/index.mjs +11 -9
- package/dist/DataList/components/DataListLoadMore/index.cjs +4 -4
- package/dist/DataList/components/DataListLoadMore/index.mjs +4 -4
- package/dist/DataList/components/DataListLoadingState/index.cjs +3 -3
- package/dist/DataList/components/DataListLoadingState/index.mjs +3 -3
- package/dist/DataList/components/DataListOverflowFade/index.cjs +1 -1
- package/dist/DataList/components/DataListOverflowFade/index.mjs +1 -1
- package/dist/DataList/components/DataListSearch/index.cjs +10 -9
- package/dist/DataList/components/DataListSearch/index.mjs +10 -9
- package/dist/DataList/components/DataListStatusBar/index.cjs +12 -10
- package/dist/DataList/components/DataListStatusBar/index.mjs +12 -10
- package/dist/DataList/components/DataListStickyHeader/index.cjs +1 -1
- package/dist/DataList/components/DataListStickyHeader/index.mjs +1 -1
- 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 +5 -5
- package/dist/DataList/components/DataListTotalCount/index.mjs +5 -5
- package/dist/DataList/index.cjs +60 -58
- package/dist/DataList/index.mjs +60 -58
- package/dist/DataList-DX1hwly9.js +9 -0
- package/dist/{DataList-DPpEcJ7E.js → DataList-DyBWKimq.js} +18 -18
- package/dist/DataList-Qb5Xash4.js +7 -0
- package/dist/{DataList-BXEIp06I.js → DataList-WZ7wbNmt.js} +18 -18
- package/dist/{DataList.utils-Hu_CbgBa.js → DataList.utils-B0CXCeKB.js} +6 -6
- package/dist/{DataList.utils-DKG6QNlw.js → DataList.utils-Ci2xEB-e.js} +6 -6
- package/dist/{DataListAction-Cx-q49La.js → DataListAction-CcD0IsaE.js} +2 -2
- package/dist/{DataListAction-OTsoLBqQ.js → DataListAction-DlfUBSOw.js} +2 -2
- package/dist/{DataListActions-Dq4iqPit.js → DataListActions-Bj4d4MC5.js} +5 -5
- package/dist/{DataListActions-DoWlqNRw.js → DataListActions-CjRmk5_2.js} +5 -5
- package/dist/{DataListActionsMenu-BOJ6GBFf.js → DataListActionsMenu-BTRYmLUG.js} +8 -3
- package/dist/{DataListActionsMenu-BtZsN7F7.js → DataListActionsMenu-DcnJbxnv.js} +8 -3
- package/dist/{DataListBulkActions-cHOa3844.js → DataListBulkActions-_8jhi38T.js} +2 -2
- package/dist/{DataListBulkActions-BQi84jaU.js → DataListBulkActions-_J96XomH.js} +2 -2
- package/dist/{DataListEmptyState-jByh7lVb.js → DataListEmptyState-Cgx3mGue.js} +3 -3
- package/dist/{DataListEmptyState-Ce11XP3B.js → DataListEmptyState-Dfi_7w8p.js} +3 -3
- package/dist/{DataListFilters-aXdgdu10.js → DataListFilters-3Lhc0qL7.js} +3 -3
- package/dist/{DataListFilters-Dxkng3G4.js → DataListFilters-BeZddx04.js} +3 -3
- package/dist/{DataListHeader-DGKYUSx5.js → DataListHeader-DGwwEAQ8.js} +6 -6
- package/dist/{DataListHeader-C9_gJyMZ.js → DataListHeader-qtn8Vp52.js} +6 -6
- package/dist/{DataListHeaderTile-DX2RRNWh.js → DataListHeaderTile-BGXmg254.js} +4 -4
- package/dist/{DataListHeaderTile-Cv6u2T9-.js → DataListHeaderTile-BSMTtxTF.js} +4 -4
- package/dist/{DataListItem-B0-w-qA7.js → DataListItem-BWkU4H2V.js} +6 -6
- package/dist/{DataListItem-B5ntnVm6.js → DataListItem-ChPyCbIP.js} +6 -6
- package/dist/{DataListItemActions-Dh8UGrxx.js → DataListItemActions-BlFfJCkE.js} +2 -2
- package/dist/{DataListItemActions-CPzwwAxE.js → DataListItemActions-CV1ybkOS.js} +2 -2
- package/dist/{DataListItemActionsOverflow-D-1j_VW1.js → DataListItemActionsOverflow-B218VAcU.js} +3 -3
- package/dist/{DataListItemActionsOverflow-BZOe6Q2X.js → DataListItemActionsOverflow-CybgGhn7.js} +3 -3
- package/dist/{DataListItemClickable-8iEm6BU0.js → DataListItemClickable-CR2b2bRi.js} +1 -1
- package/dist/{DataListItemClickable-BZ7u37GY.js → DataListItemClickable-DCUiBnug.js} +1 -1
- package/dist/{DataListItems-DV5BwVMj.js → DataListItems-B4VJLo10.js} +1 -1
- package/dist/{DataListItems-DmcrKmEN.js → DataListItems-uYNXfNgP.js} +1 -1
- package/dist/{DataListLayout-DKl7LNTC.js → DataListLayout-CKbzoR70.js} +1 -1
- package/dist/{DataListLayout-1ewedigR.js → DataListLayout-ntDs-Hgm.js} +1 -1
- package/dist/{DataListLayoutActions-KEz3AqEN.js → DataListLayoutActions-BSVlOg8b.js} +2 -2
- package/dist/{DataListLayoutActions-DUhQGPnj.js → DataListLayoutActions-DPI1yksu.js} +2 -2
- package/dist/{DataListLoadMore-CwPbyXxq.js → DataListLoadMore-Dqhp89Ah.js} +3 -3
- package/dist/{DataListLoadMore-6W_VbKwu.js → DataListLoadMore-DsxYMADp.js} +3 -3
- package/dist/{DataListLoadingState-Bvrt8fF7.js → DataListLoadingState-BCuBsDis.js} +2 -2
- package/dist/{DataListLoadingState-Cm3mAc4V.js → DataListLoadingState-e5oFdg4F.js} +2 -2
- package/dist/{DataListOverflowFade-DqAHrxFC.js → DataListOverflowFade-Ivo0Wvz6.js} +1 -1
- package/dist/{DataListOverflowFade-BZk4jUAc.js → DataListOverflowFade-x7-jX4Yf.js} +1 -1
- package/dist/{DataListSearch-BDCZ3DBO.js → DataListSearch-BCp4_hk8.js} +3 -3
- package/dist/{DataListSearch-ZRBp2aeL.js → DataListSearch-CUINBmW1.js} +3 -3
- package/dist/{DataListSort-BbKXOOi5.js → DataListSort-CBon_I1W.js} +2 -2
- package/dist/{DataListSort-L4Bvc5oo.js → DataListSort-D62r66iV.js} +2 -2
- package/dist/DataListSortingOptions-CJ4K-Jja.js +40 -0
- package/dist/DataListSortingOptions-DD4K6MA_.js +38 -0
- package/dist/{DataListStatusBar-y1l0GOU2.js → DataListStatusBar-C00g7bBB.js} +1 -1
- package/dist/{DataListStatusBar-6g_vMdKx.js → DataListStatusBar-DxEEl89z.js} +1 -1
- package/dist/DataListStickyHeader-Ap-sBN7l.js +26 -0
- package/dist/DataListStickyHeader-CaU6bPyq.js +28 -0
- package/dist/{DataListTags-D-U9a7Cf.js → DataListTags-5nw1idT0.js} +3 -3
- package/dist/{DataListTags-7zIefJMs.js → DataListTags-CBjvkCH0.js} +3 -3
- package/dist/{DataListTotalCount-w_KXphsd.js → DataListTotalCount-CJNpq3qT.js} +3 -3
- package/dist/{DataListTotalCount-DRtR9kSP.js → DataListTotalCount-DbXy8R2t.js} +3 -3
- package/dist/DataTable/index.cjs +10 -10
- package/dist/DataTable/index.mjs +10 -10
- package/dist/{DataTable-BZuUhqOS.js → DataTable-DMWG-f2X.js} +8 -8
- package/dist/{DataTable-CDcGHVhI.js → DataTable-EvVsB6Ax.js} +8 -8
- package/dist/DatePicker/index.cjs +3 -3
- package/dist/DatePicker/index.mjs +3 -3
- package/dist/{DatePicker-C_tgSO8D.js → DatePicker-BxGSZhjs.js} +3 -3
- package/dist/{DatePicker-C4MqESb9.js → DatePicker-d4x9w1ed.js} +3 -3
- package/dist/{DayOfMonthSelect-Bau8tFlz.js → DayOfMonthSelect-Cw0UdUV3.js} +7 -7
- package/dist/{DayOfMonthSelect-CbpdTLpP.js → DayOfMonthSelect-Dn723mVZ.js} +7 -7
- package/dist/DescriptionList/index.cjs +2 -2
- package/dist/DescriptionList/index.mjs +2 -2
- package/dist/{DescriptionList-BFFnA1WM.js → DescriptionList-DYVPB4S2.js} +2 -2
- package/dist/{DescriptionList-CvtHC4iy.js → DescriptionList-eeNSRnJh.js} +2 -2
- package/dist/Disclosure/index.cjs +2 -2
- package/dist/Disclosure/index.mjs +2 -2
- package/dist/Disclosure-C9P5TRF7.js +36 -0
- package/dist/Disclosure-CT3NlzDM.js +38 -0
- package/dist/Divider/index.cjs +1 -1
- package/dist/Divider/index.mjs +1 -1
- package/dist/{Divider-Dt_qE9xe.js → Divider-C9MO_-B0.js} +1 -1
- package/dist/{Divider-DOmpOAKU.js → Divider-Dszqbu3Y.js} +1 -1
- package/dist/Drawer/index.cjs +8 -6
- package/dist/Drawer/index.mjs +8 -6
- package/dist/DrawerGrid-C7bFa1GN.js +36 -0
- package/dist/DrawerGrid-vk6ERa51.js +33 -0
- package/dist/Emphasis/index.cjs +2 -2
- package/dist/Emphasis/index.mjs +2 -2
- package/dist/{Emphasis-QUXcR1kz.js → Emphasis-BplDyhht.js} +1 -1
- package/dist/{Emphasis-DDC_AArN.js → Emphasis-DP4J-a9v.js} +1 -1
- package/dist/FeatureSwitch/index.cjs +13 -12
- package/dist/FeatureSwitch/index.mjs +13 -12
- package/dist/{FeatureSwitch-DQILZG30.js → FeatureSwitch-5Plhp8bK.js} +8 -8
- package/dist/{FeatureSwitch-D1bfsSse.js → FeatureSwitch-RNZRIirq.js} +8 -8
- package/dist/Flex/index.cjs +1 -1
- package/dist/Flex/index.mjs +1 -1
- package/dist/{Flex-CBKf3epb.js → Flex-CLfxL4uP.js} +1 -1
- package/dist/{Flex-DXDpEzMI.js → Flex-KDIKEiWV.js} +1 -1
- package/dist/FormField/index.cjs +6 -6
- package/dist/FormField/index.mjs +6 -6
- package/dist/{FormField-gk3c6AkN.js → FormField-Br5alT0e.js} +6 -6
- package/dist/{FormField-BEjTkpb3.js → FormField-DO3HRP-l.js} +6 -6
- package/dist/FormatFile/index.cjs +17 -16
- package/dist/FormatFile/index.mjs +17 -16
- package/dist/{FormatFile-IAQXQH9b.js → FormatFile-CR4jItcl.js} +8 -8
- package/dist/{FormatFile-CLJdzinO.js → FormatFile-DKR99jOP.js} +8 -8
- package/dist/Gallery/index.cjs +20 -18
- package/dist/Gallery/index.mjs +20 -18
- package/dist/{Gallery-B5v8bbz5.js → Gallery-BAVTu9wr.js} +4 -4
- package/dist/{Gallery-Ch2uqtqb.js → Gallery-BzphW8_-.js} +4 -4
- package/dist/Glimmer/index.cjs +2 -2
- package/dist/Glimmer/index.mjs +2 -2
- package/dist/{Glimmer-Dz1E9Bo5.js → Glimmer-B2MoOE-s.js} +4 -4
- package/dist/{Glimmer-Cgcy2Ruw.js → Glimmer-D7ctwTzA.js} +4 -4
- package/dist/Grid/InternalGridCell/index.cjs +1 -1
- package/dist/Grid/InternalGridCell/index.mjs +1 -1
- package/dist/Grid/index.cjs +4 -4
- package/dist/Grid/index.mjs +4 -4
- package/dist/{Grid-cuC0E5S-.js → Grid-eMgwCKeb.js} +3 -3
- package/dist/{Grid-InsV4yVr.js → Grid-vCIK3QgQ.js} +3 -3
- package/dist/Heading/index.cjs +5 -3
- package/dist/Heading/index.mjs +5 -3
- package/dist/{Heading-UeMlAnTK.js → Heading-B4TyweCq.js} +3 -3
- package/dist/{Heading-BRqlPY1t.js → Heading-MZbPA1EN.js} +3 -3
- package/dist/InlineLabel/index.cjs +2 -2
- package/dist/InlineLabel/index.mjs +2 -2
- package/dist/InlineLabel-CBlGoG-0.js +21 -0
- package/dist/InlineLabel-nHCp9-lL.js +23 -0
- package/dist/InputAvatar/index.cjs +9 -9
- package/dist/InputAvatar/index.mjs +9 -9
- package/dist/{InputAvatar-CLARroYx.js → InputAvatar-BDiAx8_I.js} +5 -5
- package/dist/{InputAvatar-BCrhmSXG.js → InputAvatar-Dqns8ejm.js} +5 -5
- package/dist/InputDate/index.cjs +8 -8
- package/dist/InputDate/index.mjs +8 -8
- package/dist/{InputDate-BLiP9KkH.js → InputDate-C8VSSjkc.js} +2 -2
- package/dist/{InputDate-CxxRECJZ.js → InputDate-CQORRsm3.js} +2 -2
- package/dist/InputEmail/index.cjs +7 -7
- package/dist/InputEmail/index.mjs +7 -7
- package/dist/{InputEmail-CRoXkC6O.js → InputEmail-CRz5OoCg.js} +1 -1
- package/dist/{InputEmail-CR4eAJhF.js → InputEmail-Cg--thvv.js} +1 -1
- package/dist/InputFile/index.cjs +6 -6
- package/dist/InputFile/index.mjs +6 -6
- package/dist/{InputFile-Cd-ZAiaE.js → InputFile-8IOQFsKj.js} +5 -5
- package/dist/{InputFile-dGcVRsTb.js → InputFile-BdAFzqGN.js} +5 -5
- package/dist/InputNumber/index.cjs +7 -7
- package/dist/InputNumber/index.mjs +7 -7
- package/dist/{InputNumber-B_DPmLxw.js → InputNumber-B0S4HLxl.js} +1 -1
- package/dist/{InputNumber-CaVlLBY-.js → InputNumber-D0SPZPd8.js} +1 -1
- package/dist/InputPassword/index.cjs +7 -7
- package/dist/InputPassword/index.mjs +7 -7
- package/dist/{InputPassword-DkXjffQJ.js → InputPassword-BsyRZxQ1.js} +1 -1
- package/dist/{InputPassword-CHnNaVgH.js → InputPassword-DB1rTPVY.js} +1 -1
- package/dist/InputPhoneNumber/index.cjs +7 -7
- package/dist/InputPhoneNumber/index.mjs +7 -7
- package/dist/{InputPhoneNumber-DPOd0myW.js → InputPhoneNumber-BtqNkIe-.js} +2 -2
- package/dist/{InputPhoneNumber-7yEb0aqk.js → InputPhoneNumber-CetjOIYY.js} +2 -2
- package/dist/InputText/index.cjs +9 -8
- package/dist/InputText/index.mjs +9 -8
- package/dist/{InputText-ChjwzW5f.js → InputText-C8Coa_og.js} +2 -2
- package/dist/{InputText-uSLQbHTc.js → InputText-CjBbL76E.js} +2 -2
- package/dist/InputTime/index.cjs +7 -7
- package/dist/InputTime/index.mjs +7 -7
- package/dist/{InputTime-fznha1UM.js → InputTime-BTt3gnKv.js} +1 -1
- package/dist/{InputTime-Bee_jeCQ.js → InputTime-BvFpYWDz.js} +1 -1
- package/dist/InputValidation/index.cjs +3 -3
- package/dist/InputValidation/index.mjs +3 -3
- package/dist/{InputValidation-DjD6e82M.js → InputValidation-BvFAMweO.js} +2 -2
- package/dist/{InputValidation-CEqsURdl.js → InputValidation-DDTInAPc.js} +2 -2
- package/dist/{InternalChipDismissible-RHN8bbmz.js → InternalChipDismissible-CvkZplkA.js} +9 -9
- package/dist/{InternalChipDismissible-BIVRuhJk.js → InternalChipDismissible-D-x2dZe2.js} +9 -9
- package/dist/{InternalGridCell-DFrhM8oX.js → InternalGridCell-DVIsYmbG.js} +1 -1
- package/dist/{InternalGridCell-CBv95C-G.js → InternalGridCell-DqEJFv0E.js} +1 -1
- package/dist/LightBox/LightBox.d.ts +2 -2
- package/dist/LightBox/index.cjs +6 -4
- package/dist/LightBox/index.mjs +6 -4
- package/dist/{LightBox-d7uV7Z3g.js → LightBox-B9BO5e8I.js} +8 -4
- package/dist/{LightBox-DlT8VR-h.js → LightBox-CCRZ6-kc.js} +8 -4
- package/dist/List/index.cjs +11 -10
- package/dist/List/index.mjs +11 -10
- package/dist/{List-Cmwa_lQY.js → List-BP3NVn4U.js} +8 -8
- package/dist/{List-DpivlmHP.js → List-COz-PmkQ.js} +8 -8
- package/dist/Markdown/index.cjs +10 -9
- package/dist/Markdown/index.mjs +10 -9
- package/dist/{Markdown-vWd8z3u3.js → Markdown-BVfubkEn.js} +815 -787
- package/dist/{Markdown-C30HaonV.js → Markdown-DB57T8tj.js} +777 -749
- package/dist/Menu/index.cjs +5 -4
- package/dist/Menu/index.mjs +5 -4
- package/dist/{Menu-BZeIt9eb.js → Menu-Br_z6m1_.js} +4 -4
- package/dist/{Menu-CwVGTv_f.js → Menu-C57XI2sy.js} +4 -4
- package/dist/Modal/Modal.d.ts +2 -2
- package/dist/Modal/index.cjs +8 -6
- package/dist/Modal/index.mjs +8 -6
- package/dist/Modal-CqDimE_x.js +67 -0
- package/dist/Modal-GpNw_tLF.js +65 -0
- package/dist/MultiSelect/index.cjs +4 -4
- package/dist/MultiSelect/index.mjs +4 -4
- package/dist/{MultiSelect-BECw-AcT.js → MultiSelect-DmmfA45y.js} +4 -4
- package/dist/{MultiSelect-ougvKnVn.js → MultiSelect-EGNb_YdS.js} +4 -4
- package/dist/{Option-BpBHCzKH.js → Option-BOMPF4x6.js} +1 -1
- package/dist/{Option-D3yJJXpu.js → Option-CD7Dainq.js} +1 -1
- package/dist/Page/index.cjs +13 -13
- package/dist/Page/index.mjs +13 -13
- package/dist/{Page-CvSJQUiG.js → Page-BPYQHXu5.js} +8 -8
- package/dist/{Page-Chuyscyc.js → Page-DHn7vtJj.js} +8 -8
- package/dist/Popover/index.cjs +4 -4
- package/dist/Popover/index.mjs +4 -4
- package/dist/Popover-CuxXmTmQ.js +53 -0
- package/dist/Popover-Dky6Rm2_.js +51 -0
- package/dist/ProgressBar/index.cjs +1 -1
- package/dist/ProgressBar/index.mjs +1 -1
- package/dist/{ProgressBar-DjFTRxLD.js → ProgressBar-D6VOjCm4.js} +1 -1
- package/dist/{ProgressBar-D2wik11q.js → ProgressBar-DQUgUNrS.js} +1 -1
- package/dist/RadioGroup/index.cjs +3 -3
- package/dist/RadioGroup/index.mjs +3 -3
- package/dist/{RadioGroup-CYk3GUi5.js → RadioGroup-B49EfNAb.js} +2 -2
- package/dist/{RadioGroup-ChbzSn3n.js → RadioGroup-Bu8fGdqO.js} +2 -2
- package/dist/RecurringSelect/components/index.cjs +4 -4
- package/dist/RecurringSelect/components/index.mjs +4 -4
- package/dist/RecurringSelect/index.cjs +12 -12
- package/dist/RecurringSelect/index.mjs +12 -12
- package/dist/{RecurringSelect-DwYgJT0O.js → RecurringSelect-BseXz8Bd.js} +8 -8
- package/dist/{RecurringSelect-CCRpusS-.js → RecurringSelect-BwGMrXnr.js} +8 -8
- package/dist/Select/index.cjs +7 -7
- package/dist/Select/index.mjs +7 -7
- package/dist/Spinner/index.cjs +1 -1
- package/dist/Spinner/index.mjs +1 -1
- package/dist/Spinner-5gazZn3N.js +17 -0
- package/dist/Spinner-YuQ5bN78.js +19 -0
- package/dist/StatusIndicator/index.cjs +1 -1
- package/dist/StatusIndicator/index.mjs +1 -1
- package/dist/{StatusIndicator-D3WXwjvy.js → StatusIndicator-CwKO_J6U.js} +1 -1
- package/dist/{StatusIndicator-CS_DbTB7.js → StatusIndicator-D2zrrTVA.js} +1 -1
- package/dist/StatusLabel/index.cjs +3 -3
- package/dist/StatusLabel/index.mjs +3 -3
- package/dist/{StatusLabel-Ddyb7Ll8.js → StatusLabel-CJqEkyQZ.js} +3 -3
- package/dist/{StatusLabel-C6YFzbSI.js → StatusLabel-DV1tyvxr.js} +3 -3
- package/dist/Switch/index.cjs +2 -2
- package/dist/Switch/index.mjs +2 -2
- package/dist/Switch-B4rTIL_b.js +49 -0
- package/dist/Switch-D1umPMVR.js +51 -0
- 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-CXrfbGMA.js → Tabs-CtI2r8hf.js} +2 -2
- package/dist/{Tabs-CXm1hdlm.js → Tabs-srk0fYLi.js} +2 -2
- package/dist/Text/index.cjs +2 -2
- package/dist/Text/index.mjs +2 -2
- package/dist/{Text-ik451hdv.js → Text-B0MvS7fA.js} +1 -1
- package/dist/{Text-9V-wbsY9.js → Text-L0uH5HlC.js} +1 -1
- package/dist/Toast/index.cjs +3 -3
- package/dist/Toast/index.mjs +3 -3
- package/dist/Tooltip/index.cjs +4 -2
- package/dist/Tooltip/index.mjs +4 -2
- package/dist/{Tooltip-mn2jRxXD.js → Tooltip-BGoYIW4v.js} +6 -4
- package/dist/{Tooltip-BEW-a9OW.js → Tooltip-h7mlmKO8.js} +6 -4
- package/dist/Typography/index.cjs +1 -1
- package/dist/Typography/index.mjs +1 -1
- package/dist/Typography-BLZqr2yE.js +55 -0
- package/dist/Typography-g6o6Nu4H.js +57 -0
- package/dist/_polyfill-node.process-Clw8ILH4.js +258 -0
- package/dist/_polyfill-node.process-CzATM2P1.js +255 -0
- package/dist/{useSafeLayoutEffect-yaw3NyzX.js → index-JVBxhXV1.js} +1 -22
- package/dist/{useSafeLayoutEffect-Qir6pm57.js → index-t2DqzTGa.js} +1 -22
- package/dist/index.cjs +109 -108
- package/dist/index.mjs +109 -108
- package/dist/{showToast-BRHEdP_m.js → showToast-D3Hf2bB3.js} +3 -3
- package/dist/{showToast-DsIlFkCZ.js → showToast-lt1f__20.js} +3 -3
- package/dist/{useAssert-DJjF2xRH.js → useAssert-BeGBODqQ.js} +5 -3
- package/dist/{useAssert-Dj-7DdKE.js → useAssert-CvlH4Ru0.js} +4 -2
- package/dist/useAtlantisConfig-CYXIWWUG.js +16 -0
- package/dist/useAtlantisConfig-Dz-mOyhD.js +14 -0
- package/dist/useIsMounted-DaMtx554.js +68 -0
- package/dist/useIsMounted-Dr3u-G7D.js +70 -0
- package/dist/useSafeLayoutEffect-Biu-Q-_f.js +24 -0
- package/dist/useSafeLayoutEffect-s4dpytw-.js +26 -0
- package/dist/utils/useAtlantisConfig.d.ts +3 -0
- package/package.json +3 -2
- package/rollup.config.mjs +8 -1
- package/dist/BannerIcon-QB3lZddm.js +0 -24
- package/dist/BannerIcon-YIreWKuC.js +0 -27
- package/dist/Button-DrlSXAcB.js +0 -52
- package/dist/Button-cbdRUQwt.js +0 -50
- package/dist/Chip-C5yp1RB3.js +0 -73
- package/dist/Chip-D5VffuXt.js +0 -70
- package/dist/ComboboxAction-Cj5nDfpT.js +0 -25
- package/dist/ComboboxAction-DGvpl2U0.js +0 -27
- package/dist/ComboboxContentSearch-B8hsfo_D.js +0 -35
- package/dist/ComboboxContentSearch-UAyHetvM.js +0 -37
- package/dist/Content-B8Od1cqS.js +0 -20
- package/dist/Content-BknIp35w.js +0 -18
- package/dist/DataList-BL3zeA83.js +0 -9
- package/dist/DataList-D8rsiB6p.js +0 -7
- package/dist/DataListSortingOptions-Ciu5gWGt.js +0 -38
- package/dist/DataListSortingOptions-SfZWLgFS.js +0 -40
- package/dist/DataListStickyHeader-BKN9V51R.js +0 -28
- package/dist/DataListStickyHeader-CCG09E7V.js +0 -26
- package/dist/Disclosure-CriL84rH.js +0 -36
- package/dist/Disclosure-Df8W_BWF.js +0 -38
- package/dist/DrawerGrid-DCEepDVE.js +0 -36
- package/dist/DrawerGrid-Dc4c1d_a.js +0 -33
- package/dist/InlineLabel-D7DxCYuu.js +0 -23
- package/dist/InlineLabel-DUXOlhCE.js +0 -21
- package/dist/Modal-HA-goo8e.js +0 -65
- package/dist/Modal-KEpdF-eF.js +0 -63
- package/dist/Popover-Ci9tpAGb.js +0 -49
- package/dist/Popover-iG8cbNKh.js +0 -47
- package/dist/Spinner-BOhyUAA_.js +0 -17
- package/dist/Spinner-DT15aa_r.js +0 -19
- package/dist/Switch-DNA1j2X3.js +0 -51
- package/dist/Switch-i5tY1LhK.js +0 -49
- package/dist/Typography-CVUZmS-D.js +0 -55
- package/dist/Typography-D-jf-wVC.js +0 -57
- package/dist/getAtlantisConfig-6FPWID0P.js +0 -11
- package/dist/getAtlantisConfig-mcMVqf6m.js +0 -13
- package/dist/index-BoP83yS-.js +0 -8
- package/dist/index-Jb6tGBiW.js +0 -11
- package/dist/utils/getAtlantisConfig.d.ts +0 -3
|
@@ -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,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var Autocomplete = require('../Autocomplete-
|
|
3
|
+
var Autocomplete = require('../Autocomplete-CaIBrj8e.js');
|
|
4
4
|
require('../tslib.es6-ld72nsZq.js');
|
|
5
5
|
require('react');
|
|
6
6
|
require('../debounce-CJA36ltI.js');
|
|
@@ -12,21 +12,23 @@ require('classnames');
|
|
|
12
12
|
require('react-dom');
|
|
13
13
|
require('react-popper');
|
|
14
14
|
require('../useOnKeyDown-B9JF2jLZ.js');
|
|
15
|
-
require('../useSafeLayoutEffect-
|
|
16
|
-
require('../
|
|
17
|
-
require('../
|
|
15
|
+
require('../useSafeLayoutEffect-s4dpytw-.js');
|
|
16
|
+
require('../index-t2DqzTGa.js');
|
|
17
|
+
require('../useIsMounted-Dr3u-G7D.js');
|
|
18
|
+
require('../Text-L0uH5HlC.js');
|
|
19
|
+
require('../Typography-g6o6Nu4H.js');
|
|
18
20
|
require('../Icon-B9XNdA1T.js');
|
|
19
21
|
require('@jobber/design');
|
|
20
|
-
require('../Heading-
|
|
21
|
-
require('../
|
|
22
|
-
require('../InputText-
|
|
23
|
-
require('../FormField-
|
|
22
|
+
require('../Heading-MZbPA1EN.js');
|
|
23
|
+
require('../useAtlantisConfig-CYXIWWUG.js');
|
|
24
|
+
require('../InputText-CjBbL76E.js');
|
|
25
|
+
require('../FormField-Br5alT0e.js');
|
|
24
26
|
require('react-hook-form');
|
|
25
|
-
require('../Button-
|
|
27
|
+
require('../Button-CdFKgOjt.js');
|
|
26
28
|
require('react-router-dom');
|
|
27
|
-
require('../InputValidation-
|
|
29
|
+
require('../InputValidation-BvFAMweO.js');
|
|
28
30
|
require('framer-motion');
|
|
29
|
-
require('../Spinner-
|
|
31
|
+
require('../Spinner-YuQ5bN78.js');
|
|
30
32
|
|
|
31
33
|
|
|
32
34
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as Autocomplete } from '../Autocomplete-
|
|
1
|
+
export { A as Autocomplete } from '../Autocomplete-DJi7jdUw.js';
|
|
2
2
|
import '../tslib.es6-Df1SgIEn.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import '../debounce-D3te8_TG.js';
|
|
@@ -10,18 +10,20 @@ import 'classnames';
|
|
|
10
10
|
import 'react-dom';
|
|
11
11
|
import 'react-popper';
|
|
12
12
|
import '../useOnKeyDown-BsUfDste.js';
|
|
13
|
-
import '../useSafeLayoutEffect-
|
|
14
|
-
import '../
|
|
15
|
-
import '../
|
|
13
|
+
import '../useSafeLayoutEffect-Biu-Q-_f.js';
|
|
14
|
+
import '../index-JVBxhXV1.js';
|
|
15
|
+
import '../useIsMounted-DaMtx554.js';
|
|
16
|
+
import '../Text-B0MvS7fA.js';
|
|
17
|
+
import '../Typography-BLZqr2yE.js';
|
|
16
18
|
import '../Icon-CoHJokXb.js';
|
|
17
19
|
import '@jobber/design';
|
|
18
|
-
import '../Heading-
|
|
19
|
-
import '../
|
|
20
|
-
import '../InputText-
|
|
21
|
-
import '../FormField-
|
|
20
|
+
import '../Heading-B4TyweCq.js';
|
|
21
|
+
import '../useAtlantisConfig-Dz-mOyhD.js';
|
|
22
|
+
import '../InputText-C8Coa_og.js';
|
|
23
|
+
import '../FormField-DO3HRP-l.js';
|
|
22
24
|
import 'react-hook-form';
|
|
23
|
-
import '../Button-
|
|
25
|
+
import '../Button-DCEN_VU9.js';
|
|
24
26
|
import 'react-router-dom';
|
|
25
|
-
import '../InputValidation-
|
|
27
|
+
import '../InputValidation-DDTInAPc.js';
|
|
26
28
|
import 'framer-motion';
|
|
27
|
-
import '../Spinner-
|
|
29
|
+
import '../Spinner-5gazZn3N.js';
|
|
@@ -8,13 +8,14 @@ var classnames = require('classnames');
|
|
|
8
8
|
var ReactDOM = require('react-dom');
|
|
9
9
|
var reactPopper = require('react-popper');
|
|
10
10
|
var useOnKeyDown = require('./useOnKeyDown-B9JF2jLZ.js');
|
|
11
|
-
var useSafeLayoutEffect = require('./useSafeLayoutEffect-
|
|
12
|
-
var
|
|
11
|
+
var useSafeLayoutEffect = require('./useSafeLayoutEffect-s4dpytw-.js');
|
|
12
|
+
var useIsMounted = require('./useIsMounted-Dr3u-G7D.js');
|
|
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-MZbPA1EN.js');
|
|
16
|
+
var InputText = require('./InputText-CjBbL76E.js');
|
|
16
17
|
|
|
17
|
-
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(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: var(--shadow-base);\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n border: var(--border-base) solid var(--color-color-border);\n border-radius: var(--radius-base);\n overflow: auto;\n scroll-behavior: smooth;\n background-color: var(--color-surface);\n}\n\n.CX-N-e0e6og- h5 {\n padding: var(--space-small) 0 var(--space-smaller) var(--space-small);\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: var(--space-small);\n border: none;\n text-align: left;\n list-style: none;\n background-color: transparent;\n cursor: pointer;\n transition: all var(--timing-base);\n}\n\n.ucQtG0iwqbo-:hover,\n.ucQtG0iwqbo-:focus,\n.ucQtG0iwqbo-.r8HS-ma79QE- {\n background-color: var(--color-surface--hover);\n outline-color: var(--color-focus);\n}\n\n.ucQtG0iwqbo-.ydwLX44YFZc-:not(:last-child) {\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: 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: 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
|
+
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-"};
|
|
19
20
|
styleInject_es.styleInject(css_248z);
|
|
20
21
|
|
|
@@ -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.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;
|
|
@@ -6,13 +6,14 @@ import classnames from 'classnames';
|
|
|
6
6
|
import { createPortal } from 'react-dom';
|
|
7
7
|
import { usePopper } from 'react-popper';
|
|
8
8
|
import { u as useOnKeyDown } from './useOnKeyDown-BsUfDste.js';
|
|
9
|
-
import { u as useSafeLayoutEffect } from './useSafeLayoutEffect-
|
|
10
|
-
import {
|
|
9
|
+
import { u as useSafeLayoutEffect } from './useSafeLayoutEffect-Biu-Q-_f.js';
|
|
10
|
+
import { u as useIsMounted } from './useIsMounted-DaMtx554.js';
|
|
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-B4TyweCq.js';
|
|
14
|
+
import { I as InputText } from './InputText-C8Coa_og.js';
|
|
14
15
|
|
|
15
|
-
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(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: var(--shadow-base);\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n border: var(--border-base) solid var(--color-color-border);\n border-radius: var(--radius-base);\n overflow: auto;\n scroll-behavior: smooth;\n background-color: var(--color-surface);\n}\n\n.CX-N-e0e6og- h5 {\n padding: var(--space-small) 0 var(--space-smaller) var(--space-small);\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: var(--space-small);\n border: none;\n text-align: left;\n list-style: none;\n background-color: transparent;\n cursor: pointer;\n transition: all var(--timing-base);\n}\n\n.ucQtG0iwqbo-:hover,\n.ucQtG0iwqbo-:focus,\n.ucQtG0iwqbo-.r8HS-ma79QE- {\n background-color: var(--color-surface--hover);\n outline-color: var(--color-focus);\n}\n\n.ucQtG0iwqbo-.ydwLX44YFZc-:not(:last-child) {\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: 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: 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
|
+
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-"};
|
|
17
18
|
styleInject(css_248z);
|
|
18
19
|
|
|
@@ -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.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;
|
package/dist/Avatar/index.cjs
CHANGED
package/dist/Avatar/index.mjs
CHANGED
|
@@ -6,7 +6,7 @@ var styleInject_es = require('./style-inject.es-XZHJH68X.js');
|
|
|
6
6
|
var Color = require('color');
|
|
7
7
|
var Icon = require('./Icon-B9XNdA1T.js');
|
|
8
8
|
|
|
9
|
-
var css_248z = ":root {\n --avatar-size: calc(var(--base-unit) * 2);\n --avatar-border-size: var(--border-base);\n}\n\n.WniTNadEyPk- {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n -ms-flex-pack: center;\n justify-content: center;\n width: calc(
|
|
9
|
+
var css_248z = ":root {\n --avatar-size: calc(var(--base-unit) * 2);\n --avatar-border-size: var(--border-base);\n}\n\n.WniTNadEyPk- {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n -ms-flex-pack: center;\n justify-content: center;\n width: calc(16px * 2);\n width: var(--avatar-size);\n height: calc(16px * 2);\n height: var(--avatar-size);\n min-width: calc(16px * 2);\n min-width: var(--avatar-size);\n min-height: calc(16px * 2);\n min-height: var(--avatar-size);\n border-radius: 100%;\n border-radius: var(--radius-circle);\n color: rgb(1, 41, 57);\n color: var(--color-heading);\n font-size: calc(16px * 2);\n font-size: var(--avatar-size);\n -webkit-font-smoothing: antialiased;\n background: no-repeat center center rgba(101, 120, 132, 1);\n background: no-repeat center center var(--color-greyBlue);\n background-size: cover;\n}\n\n.WniTNadEyPk-:focus {\n box-shadow: 0px 0px 0px calc(16px / 8) rgba(255, 255, 255, 1),\n 0px 0px 0px calc(16px / 4) rgb(147, 161, 169);\n box-shadow: var(--shadow-focus);\n outline: none;\n}\n\n._8Pqn2uZpaZg- {\n --avatar-size: calc(var(--base-unit) * 4.5);\n --avatar-border-size: var(--border-thick);\n}\n\n.S-edTXYA-7E- {\n --avatar-size: calc(var(--base-unit) * 1.5);\n}\n\n.S1iBGElfOUA- {\n color: rgba(255, 255, 255, 1);\n color: var(--color-text--reverse);\n}\n\n.ErPhpHHpiBQ- {\n font-size: calc((16px * 2) / 2);\n font-size: calc(calc(16px * 2) / 2);\n font-size: calc(var(--avatar-size) / 2);\n text-transform: uppercase;\n}\n\n.aC-d-mngrIc- {\n font-size: calc((16px * 2) / 2.25);\n font-size: calc(calc(16px * 2) / 2.25);\n font-size: calc(var(--avatar-size) / 2.25);\n}\n\n.nR0S-GzjDnQ- {\n width: calc((16px * 2) - (calc(16px / 16) * 2));\n width: calc(calc(16px * 2) - (calc(16px / 16) * 2));\n width: calc(var(--avatar-size) - (var(--avatar-border-size) * 2));\n height: calc((16px * 2) - (calc(16px / 16) * 2));\n height: calc(calc(16px * 2) - (calc(16px / 16) * 2));\n height: calc(var(--avatar-size) - (var(--avatar-border-size) * 2));\n box-shadow: 0 0 0 calc(16px / 8) rgba(255, 255, 255, 1) inset;\n box-shadow: 0 0 0 var(--border-thick) var(--color-white) inset;\n border-style: solid;\n border-width: calc(16px / 16);\n border-width: var(--avatar-border-size);\n}\n";
|
|
10
10
|
var styles = {"avatar":"WniTNadEyPk-","large":"_8Pqn2uZpaZg-","small":"S-edTXYA-7E-","isDark":"S1iBGElfOUA-","initials":"ErPhpHHpiBQ-","smallInitials":"aC-d-mngrIc-","hasBorder":"nR0S-GzjDnQ-"};
|
|
11
11
|
styleInject_es.styleInject(css_248z);
|
|
12
12
|
|
|
@@ -4,7 +4,7 @@ import { s as styleInject } from './style-inject.es-tgCJW-Cu.js';
|
|
|
4
4
|
import Color from 'color';
|
|
5
5
|
import { I as Icon } from './Icon-CoHJokXb.js';
|
|
6
6
|
|
|
7
|
-
var css_248z = ":root {\n --avatar-size: calc(var(--base-unit) * 2);\n --avatar-border-size: var(--border-base);\n}\n\n.WniTNadEyPk- {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n -ms-flex-pack: center;\n justify-content: center;\n width: calc(
|
|
7
|
+
var css_248z = ":root {\n --avatar-size: calc(var(--base-unit) * 2);\n --avatar-border-size: var(--border-base);\n}\n\n.WniTNadEyPk- {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n -ms-flex-pack: center;\n justify-content: center;\n width: calc(16px * 2);\n width: var(--avatar-size);\n height: calc(16px * 2);\n height: var(--avatar-size);\n min-width: calc(16px * 2);\n min-width: var(--avatar-size);\n min-height: calc(16px * 2);\n min-height: var(--avatar-size);\n border-radius: 100%;\n border-radius: var(--radius-circle);\n color: rgb(1, 41, 57);\n color: var(--color-heading);\n font-size: calc(16px * 2);\n font-size: var(--avatar-size);\n -webkit-font-smoothing: antialiased;\n background: no-repeat center center rgba(101, 120, 132, 1);\n background: no-repeat center center var(--color-greyBlue);\n background-size: cover;\n}\n\n.WniTNadEyPk-:focus {\n box-shadow: 0px 0px 0px calc(16px / 8) rgba(255, 255, 255, 1),\n 0px 0px 0px calc(16px / 4) rgb(147, 161, 169);\n box-shadow: var(--shadow-focus);\n outline: none;\n}\n\n._8Pqn2uZpaZg- {\n --avatar-size: calc(var(--base-unit) * 4.5);\n --avatar-border-size: var(--border-thick);\n}\n\n.S-edTXYA-7E- {\n --avatar-size: calc(var(--base-unit) * 1.5);\n}\n\n.S1iBGElfOUA- {\n color: rgba(255, 255, 255, 1);\n color: var(--color-text--reverse);\n}\n\n.ErPhpHHpiBQ- {\n font-size: calc((16px * 2) / 2);\n font-size: calc(calc(16px * 2) / 2);\n font-size: calc(var(--avatar-size) / 2);\n text-transform: uppercase;\n}\n\n.aC-d-mngrIc- {\n font-size: calc((16px * 2) / 2.25);\n font-size: calc(calc(16px * 2) / 2.25);\n font-size: calc(var(--avatar-size) / 2.25);\n}\n\n.nR0S-GzjDnQ- {\n width: calc((16px * 2) - (calc(16px / 16) * 2));\n width: calc(calc(16px * 2) - (calc(16px / 16) * 2));\n width: calc(var(--avatar-size) - (var(--avatar-border-size) * 2));\n height: calc((16px * 2) - (calc(16px / 16) * 2));\n height: calc(calc(16px * 2) - (calc(16px / 16) * 2));\n height: calc(var(--avatar-size) - (var(--avatar-border-size) * 2));\n box-shadow: 0 0 0 calc(16px / 8) rgba(255, 255, 255, 1) inset;\n box-shadow: 0 0 0 var(--border-thick) var(--color-white) inset;\n border-style: solid;\n border-width: calc(16px / 16);\n border-width: var(--avatar-border-size);\n}\n";
|
|
8
8
|
var styles = {"avatar":"WniTNadEyPk-","large":"_8Pqn2uZpaZg-","small":"S-edTXYA-7E-","isDark":"S1iBGElfOUA-","initials":"ErPhpHHpiBQ-","smallInitials":"aC-d-mngrIc-","hasBorder":"nR0S-GzjDnQ-"};
|
|
9
9
|
styleInject(css_248z);
|
|
10
10
|
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var BannerIcon = require('../../../BannerIcon-
|
|
3
|
+
var BannerIcon = require('../../../BannerIcon-BifD3IS3.js');
|
|
4
4
|
require('react');
|
|
5
5
|
require('classnames');
|
|
6
|
-
require('../../../
|
|
6
|
+
require('../../../useAtlantisConfig-CYXIWWUG.js');
|
|
7
|
+
require('../../../useSafeLayoutEffect-s4dpytw-.js');
|
|
8
|
+
require('../../../index-t2DqzTGa.js');
|
|
7
9
|
require('../../../style-inject.es-XZHJH68X.js');
|
|
8
10
|
require('../../../Icon-B9XNdA1T.js');
|
|
9
11
|
require('@jobber/design');
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
export { B as BannerIcon } from '../../../BannerIcon-
|
|
1
|
+
export { B as BannerIcon } from '../../../BannerIcon-Dyt3bQRR.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'classnames';
|
|
4
|
-
import '../../../
|
|
4
|
+
import '../../../useAtlantisConfig-Dz-mOyhD.js';
|
|
5
|
+
import '../../../useSafeLayoutEffect-Biu-Q-_f.js';
|
|
6
|
+
import '../../../index-JVBxhXV1.js';
|
|
5
7
|
import '../../../style-inject.es-tgCJW-Cu.js';
|
|
6
8
|
import '../../../Icon-CoHJokXb.js';
|
|
7
9
|
import '@jobber/design';
|
package/dist/Banner/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var Banner = require('../Banner-
|
|
3
|
+
var Banner = require('../Banner-Dhp4UfBI.js');
|
|
4
4
|
require('react');
|
|
5
5
|
require('classnames');
|
|
6
6
|
require('../useResizeObserver-BwGseyVc.js');
|
|
@@ -8,14 +8,16 @@ require('../_commonjsHelpers-B83fTs8d.js');
|
|
|
8
8
|
require('../debounce-CJA36ltI.js');
|
|
9
9
|
require('../isObjectLike-BUFV4ggG.js');
|
|
10
10
|
require('../isSymbol-DS9vlqp3.js');
|
|
11
|
-
require('../BannerIcon-
|
|
12
|
-
require('../
|
|
11
|
+
require('../BannerIcon-BifD3IS3.js');
|
|
12
|
+
require('../useAtlantisConfig-CYXIWWUG.js');
|
|
13
|
+
require('../useSafeLayoutEffect-s4dpytw-.js');
|
|
14
|
+
require('../index-t2DqzTGa.js');
|
|
13
15
|
require('../style-inject.es-XZHJH68X.js');
|
|
14
16
|
require('../Icon-B9XNdA1T.js');
|
|
15
17
|
require('@jobber/design');
|
|
16
|
-
require('../Text-
|
|
17
|
-
require('../Typography-
|
|
18
|
-
require('../Button-
|
|
18
|
+
require('../Text-L0uH5HlC.js');
|
|
19
|
+
require('../Typography-g6o6Nu4H.js');
|
|
20
|
+
require('../Button-CdFKgOjt.js');
|
|
19
21
|
require('react-router-dom');
|
|
20
22
|
|
|
21
23
|
|
package/dist/Banner/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { B as Banner } from '../Banner-
|
|
1
|
+
export { B as Banner } from '../Banner-BlkdZtWM.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'classnames';
|
|
4
4
|
import '../useResizeObserver-ZgXMUTij.js';
|
|
@@ -6,12 +6,14 @@ import '../_commonjsHelpers-E-ZsRS8r.js';
|
|
|
6
6
|
import '../debounce-D3te8_TG.js';
|
|
7
7
|
import '../isObjectLike-CkQBn_-v.js';
|
|
8
8
|
import '../isSymbol-BB8mecpv.js';
|
|
9
|
-
import '../BannerIcon-
|
|
10
|
-
import '../
|
|
9
|
+
import '../BannerIcon-Dyt3bQRR.js';
|
|
10
|
+
import '../useAtlantisConfig-Dz-mOyhD.js';
|
|
11
|
+
import '../useSafeLayoutEffect-Biu-Q-_f.js';
|
|
12
|
+
import '../index-JVBxhXV1.js';
|
|
11
13
|
import '../style-inject.es-tgCJW-Cu.js';
|
|
12
14
|
import '../Icon-CoHJokXb.js';
|
|
13
15
|
import '@jobber/design';
|
|
14
|
-
import '../Text-
|
|
15
|
-
import '../Typography-
|
|
16
|
-
import '../Button-
|
|
16
|
+
import '../Text-B0MvS7fA.js';
|
|
17
|
+
import '../Typography-BLZqr2yE.js';
|
|
18
|
+
import '../Button-DCEN_VU9.js';
|
|
17
19
|
import 'react-router-dom';
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
2
|
import classnames from 'classnames';
|
|
3
3
|
import { u as useResizeObserver } from './useResizeObserver-ZgXMUTij.js';
|
|
4
|
-
import { s as styles, B as BannerIcon } from './BannerIcon-
|
|
4
|
+
import { s as styles, B as BannerIcon } from './BannerIcon-Dyt3bQRR.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
|
-
import { T as Text } from './Text-
|
|
8
|
-
import { B as Button } from './Button-
|
|
9
|
-
import {
|
|
7
|
+
import { T as Text } from './Text-B0MvS7fA.js';
|
|
8
|
+
import { B as Button } from './Button-DCEN_VU9.js';
|
|
9
|
+
import { u as useAtlantisConfig } from './useAtlantisConfig-Dz-mOyhD.js';
|
|
10
10
|
|
|
11
|
-
var css_248z = ".wWW-2T7rCV0- {\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: var(--color-green--lighter);\n}\n\n.d5fXcE1L0lc- {\n background-color: var(--color-yellow--lighter);\n}\n\n.oYaw-T3c0IU- {\n background-color: var(--color-red--lighter);\n}\n";
|
|
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 = {
|
|
@@ -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) {
|
|
@@ -3,19 +3,19 @@
|
|
|
3
3
|
var React = require('react');
|
|
4
4
|
var classnames = require('classnames');
|
|
5
5
|
var useResizeObserver = require('./useResizeObserver-BwGseyVc.js');
|
|
6
|
-
var BannerIcon = require('./BannerIcon-
|
|
6
|
+
var BannerIcon = require('./BannerIcon-BifD3IS3.js');
|
|
7
7
|
var styleInject_es = require('./style-inject.es-XZHJH68X.js');
|
|
8
8
|
var Icon = require('./Icon-B9XNdA1T.js');
|
|
9
|
-
var Text = require('./Text-
|
|
10
|
-
var Button = require('./Button-
|
|
11
|
-
var
|
|
9
|
+
var Text = require('./Text-L0uH5HlC.js');
|
|
10
|
+
var Button = require('./Button-CdFKgOjt.js');
|
|
11
|
+
var useAtlantisConfig = require('./useAtlantisConfig-CYXIWWUG.js');
|
|
12
12
|
|
|
13
|
-
var css_248z = ".wWW-2T7rCV0- {\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: var(--color-green--lighter);\n}\n\n.d5fXcE1L0lc- {\n background-color: var(--color-yellow--lighter);\n}\n\n.oYaw-T3c0IU- {\n background-color: var(--color-red--lighter);\n}\n";
|
|
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 = {
|
|
@@ -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) {
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var React = require('react');
|
|
4
|
+
var classnames = require('classnames');
|
|
5
|
+
var useAtlantisConfig = require('./useAtlantisConfig-CYXIWWUG.js');
|
|
6
|
+
var styleInject_es = require('./style-inject.es-XZHJH68X.js');
|
|
7
|
+
var Icon = require('./Icon-B9XNdA1T.js');
|
|
8
|
+
|
|
9
|
+
var css_248z$1 = ".meuT8gYQPJU- {\n display: -ms-flexbox;\n display: flex;\n position: relative;\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 padding: calc(16px * 1);\n padding: var(--space-base);\n color: rgb(66, 78, 86);\n color: var(--color-text);\n background-color: rgb(238, 240, 242);\n background-color: var(--color-surface--background);\n gap: calc(16px / 2);\n gap: var(--space-small);\n -ms-flex-align: center;\n align-items: center;\n}\n\n.jobber-retheme .meuT8gYQPJU- {\n padding: calc((16px * 1) - (16px / 4)) calc(16px * 1);\n padding: calc(calc(16px * 1) - calc(16px / 4)) calc(16px * 1);\n padding: calc(var(--space-base) - var(--space-smaller)) var(--space-base);\n border: calc(16px / 16) solid rgb(217, 223, 225);\n border: var(--border-base) solid var(--color-border);\n border-radius: calc(16px / 8);\n border-radius: var(--radius-base);\n background-color: rgba(255, 255, 255, 1);\n background-color: var(--color-surface);\n}\n\n.y4BapyZr-fo- > a {\n color: rgb(66, 78, 86);\n color: var(--color-text);\n}\n\n.y4BapyZr-fo- > a:hover {\n color: rgb(1, 41, 57);\n color: var(--color-blue);\n}\n\n._6v1woNSLEvc- {\n display: -ms-flexbox;\n display: flex;\n -ms-flex: 1 1 auto;\n flex: 1 1 auto;\n gap: calc(16px / 2);\n gap: var(--space-small);\n -ms-flex-wrap: nowrap;\n flex-wrap: nowrap;\n -ms-flex-pack: justify;\n justify-content: space-between;\n -ms-flex-align: start;\n align-items: flex-start;\n}\n\n@media (max-width: 489px) {\n\n._6v1woNSLEvc- {\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n}\n }\n\n@media (--small-screens-and-below) {\n\n._6v1woNSLEvc- {\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n}\n }\n\n.y4BapyZr-fo- {\n -ms-flex: 1;\n flex: 1;\n -ms-flex-item-align: center;\n align-self: center;\n}\n\n._6v1woNSLEvc- > *:last-child {\n margin-bottom: 0;\n}\n\n.bocgLmEhcTU- .y4BapyZr-fo- {\n -ms-flex: 1;\n flex: 1;\n}\n\n.rtNjEzmABX4- {\n display: -ms-flexbox;\n display: flex;\n -ms-flex: 0 0 auto;\n flex: 0 0 auto;\n}\n\n@media (max-width: 489px) {\n\n.rtNjEzmABX4- {\n width: 100%;\n margin-top: calc(16px / 2);\n margin-top: var(--space-small);\n}\n }\n\n@media (--small-screens-and-below) {\n\n.rtNjEzmABX4- {\n width: 100%;\n margin-top: calc(16px / 2);\n margin-top: var(--space-small);\n}\n }\n\n.lunQ5SOfyLg- {\n margin: calc((16px / 8) * -1) 0;\n margin: calc(calc(16px / 8) * -1) 0;\n margin: calc(var(--space-smallest) * -1) 0;\n padding: calc(16px / 8);\n padding: var(--space-smallest);\n border: none;\n background-color: transparent;\n cursor: pointer;\n -webkit-appearance: none;\n appearance: none;\n -ms-flex: 0;\n flex: 0;\n -ms-flex-item-align: start;\n align-self: flex-start;\n}\n\n.lunQ5SOfyLg-:hover {\n background: rgba(0, 0, 0, 0.025);\n}\n\n.lunQ5SOfyLg-:focus {\n box-shadow: 0px 0px 0px calc(16px / 8) rgba(255, 255, 255, 1),\n 0px 0px 0px calc(16px / 4) rgb(147, 161, 169);\n box-shadow: var(--shadow-focus);\n outline: none;\n background: rgba(0, 0, 0, 0.05);\n}\n\n.SG8xSJADp2k- {\n display: -ms-inline-flexbox;\n display: inline-flex;\n padding: calc(16px / 4);\n padding: var(--space-smaller);\n border-radius: 100%;\n border-radius: var(--radius-circle);\n background-color: rgb(238, 240, 242);\n background-color: var(--color-surface--background);\n}\n\n.jobber-retheme .bocgLmEhcTU- .SG8xSJADp2k- {\n -ms-flex-item-align: center;\n align-self: center;\n}\n";
|
|
10
|
+
var styles = {"banner":"meuT8gYQPJU-","bannerChildren":"y4BapyZr-fo-","bannerContent":"_6v1woNSLEvc-","medium":"bocgLmEhcTU-","bannerAction":"rtNjEzmABX4-","closeButton":"lunQ5SOfyLg-","iconWrapper":"SG8xSJADp2k-"};
|
|
11
|
+
styleInject_es.styleInject(css_248z$1);
|
|
12
|
+
|
|
13
|
+
var css_248z = "._5-B0X5vn0eA- {\n background-color: rgb(125, 176, 14);\n background-color: var(--color-success);\n}\n\n.r3hqur-vxwI- {\n background-color: rgb(201, 66, 33);\n background-color: var(--color-destructive);\n}\n\n.-c8TbjyV5YU- {\n background-color: rgb(221, 195, 15);\n background-color: var(--color-warning);\n}\n\n.bMc69fYWngM- {\n background-color: rgb(60, 162, 224);\n background-color: var(--color-informative);\n}\n";
|
|
14
|
+
var iconStyles = {"success":"_5-B0X5vn0eA-","error":"r3hqur-vxwI-","warning":"-c8TbjyV5YU-","notice":"bMc69fYWngM-"};
|
|
15
|
+
styleInject_es.styleInject(css_248z);
|
|
16
|
+
|
|
17
|
+
function BannerIcon({ icon, type }) {
|
|
18
|
+
const { JOBBER_RETHEME } = useAtlantisConfig.useAtlantisConfig();
|
|
19
|
+
if (JOBBER_RETHEME) {
|
|
20
|
+
return (React.createElement("span", { className: classnames(styles.iconWrapper, iconStyles[type]) },
|
|
21
|
+
React.createElement(Icon.Icon, { name: icon, color: "white", size: "small" })));
|
|
22
|
+
}
|
|
23
|
+
return React.createElement(Icon.Icon, { name: icon, color: "greyBlueDark" });
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
exports.BannerIcon = BannerIcon;
|
|
27
|
+
exports.styles = styles;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import classnames from 'classnames';
|
|
3
|
+
import { u as useAtlantisConfig } from './useAtlantisConfig-Dz-mOyhD.js';
|
|
4
|
+
import { s as styleInject } from './style-inject.es-tgCJW-Cu.js';
|
|
5
|
+
import { I as Icon } from './Icon-CoHJokXb.js';
|
|
6
|
+
|
|
7
|
+
var css_248z$1 = ".meuT8gYQPJU- {\n display: -ms-flexbox;\n display: flex;\n position: relative;\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 padding: calc(16px * 1);\n padding: var(--space-base);\n color: rgb(66, 78, 86);\n color: var(--color-text);\n background-color: rgb(238, 240, 242);\n background-color: var(--color-surface--background);\n gap: calc(16px / 2);\n gap: var(--space-small);\n -ms-flex-align: center;\n align-items: center;\n}\n\n.jobber-retheme .meuT8gYQPJU- {\n padding: calc((16px * 1) - (16px / 4)) calc(16px * 1);\n padding: calc(calc(16px * 1) - calc(16px / 4)) calc(16px * 1);\n padding: calc(var(--space-base) - var(--space-smaller)) var(--space-base);\n border: calc(16px / 16) solid rgb(217, 223, 225);\n border: var(--border-base) solid var(--color-border);\n border-radius: calc(16px / 8);\n border-radius: var(--radius-base);\n background-color: rgba(255, 255, 255, 1);\n background-color: var(--color-surface);\n}\n\n.y4BapyZr-fo- > a {\n color: rgb(66, 78, 86);\n color: var(--color-text);\n}\n\n.y4BapyZr-fo- > a:hover {\n color: rgb(1, 41, 57);\n color: var(--color-blue);\n}\n\n._6v1woNSLEvc- {\n display: -ms-flexbox;\n display: flex;\n -ms-flex: 1 1 auto;\n flex: 1 1 auto;\n gap: calc(16px / 2);\n gap: var(--space-small);\n -ms-flex-wrap: nowrap;\n flex-wrap: nowrap;\n -ms-flex-pack: justify;\n justify-content: space-between;\n -ms-flex-align: start;\n align-items: flex-start;\n}\n\n@media (max-width: 489px) {\n\n._6v1woNSLEvc- {\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n}\n }\n\n@media (--small-screens-and-below) {\n\n._6v1woNSLEvc- {\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n}\n }\n\n.y4BapyZr-fo- {\n -ms-flex: 1;\n flex: 1;\n -ms-flex-item-align: center;\n align-self: center;\n}\n\n._6v1woNSLEvc- > *:last-child {\n margin-bottom: 0;\n}\n\n.bocgLmEhcTU- .y4BapyZr-fo- {\n -ms-flex: 1;\n flex: 1;\n}\n\n.rtNjEzmABX4- {\n display: -ms-flexbox;\n display: flex;\n -ms-flex: 0 0 auto;\n flex: 0 0 auto;\n}\n\n@media (max-width: 489px) {\n\n.rtNjEzmABX4- {\n width: 100%;\n margin-top: calc(16px / 2);\n margin-top: var(--space-small);\n}\n }\n\n@media (--small-screens-and-below) {\n\n.rtNjEzmABX4- {\n width: 100%;\n margin-top: calc(16px / 2);\n margin-top: var(--space-small);\n}\n }\n\n.lunQ5SOfyLg- {\n margin: calc((16px / 8) * -1) 0;\n margin: calc(calc(16px / 8) * -1) 0;\n margin: calc(var(--space-smallest) * -1) 0;\n padding: calc(16px / 8);\n padding: var(--space-smallest);\n border: none;\n background-color: transparent;\n cursor: pointer;\n -webkit-appearance: none;\n appearance: none;\n -ms-flex: 0;\n flex: 0;\n -ms-flex-item-align: start;\n align-self: flex-start;\n}\n\n.lunQ5SOfyLg-:hover {\n background: rgba(0, 0, 0, 0.025);\n}\n\n.lunQ5SOfyLg-:focus {\n box-shadow: 0px 0px 0px calc(16px / 8) rgba(255, 255, 255, 1),\n 0px 0px 0px calc(16px / 4) rgb(147, 161, 169);\n box-shadow: var(--shadow-focus);\n outline: none;\n background: rgba(0, 0, 0, 0.05);\n}\n\n.SG8xSJADp2k- {\n display: -ms-inline-flexbox;\n display: inline-flex;\n padding: calc(16px / 4);\n padding: var(--space-smaller);\n border-radius: 100%;\n border-radius: var(--radius-circle);\n background-color: rgb(238, 240, 242);\n background-color: var(--color-surface--background);\n}\n\n.jobber-retheme .bocgLmEhcTU- .SG8xSJADp2k- {\n -ms-flex-item-align: center;\n align-self: center;\n}\n";
|
|
8
|
+
var styles = {"banner":"meuT8gYQPJU-","bannerChildren":"y4BapyZr-fo-","bannerContent":"_6v1woNSLEvc-","medium":"bocgLmEhcTU-","bannerAction":"rtNjEzmABX4-","closeButton":"lunQ5SOfyLg-","iconWrapper":"SG8xSJADp2k-"};
|
|
9
|
+
styleInject(css_248z$1);
|
|
10
|
+
|
|
11
|
+
var css_248z = "._5-B0X5vn0eA- {\n background-color: rgb(125, 176, 14);\n background-color: var(--color-success);\n}\n\n.r3hqur-vxwI- {\n background-color: rgb(201, 66, 33);\n background-color: var(--color-destructive);\n}\n\n.-c8TbjyV5YU- {\n background-color: rgb(221, 195, 15);\n background-color: var(--color-warning);\n}\n\n.bMc69fYWngM- {\n background-color: rgb(60, 162, 224);\n background-color: var(--color-informative);\n}\n";
|
|
12
|
+
var iconStyles = {"success":"_5-B0X5vn0eA-","error":"r3hqur-vxwI-","warning":"-c8TbjyV5YU-","notice":"bMc69fYWngM-"};
|
|
13
|
+
styleInject(css_248z);
|
|
14
|
+
|
|
15
|
+
function BannerIcon({ icon, type }) {
|
|
16
|
+
const { JOBBER_RETHEME } = useAtlantisConfig();
|
|
17
|
+
if (JOBBER_RETHEME) {
|
|
18
|
+
return (React.createElement("span", { className: classnames(styles.iconWrapper, iconStyles[type]) },
|
|
19
|
+
React.createElement(Icon, { name: icon, color: "white", size: "small" })));
|
|
20
|
+
}
|
|
21
|
+
return React.createElement(Icon, { name: icon, color: "greyBlueDark" });
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export { BannerIcon as B, styles as s };
|
|
@@ -3,7 +3,7 @@ import { formatCurrency } from '@jobber/formatters';
|
|
|
3
3
|
import { s as styleInject } from './style-inject.es-tgCJW-Cu.js';
|
|
4
4
|
import classnames from 'classnames';
|
|
5
5
|
|
|
6
|
-
var css_248z$1 = ".gFY9BLPF808- {\n --border-color: var(--color-border);\n --header-border-color: var(--color-border--section);\n --horizontal-inset: var(--space-base);\n position: relative;\n width: 100%;\n border-collapse: collapse;\n}\n\n.gFY9BLPF808-::after {\n content: \"\";\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n box-sizing: border-box;\n border: solid var(--border-base) var(--border-color);\n border-radius: var(--radius-base);\n pointer-events: none;\n}\n\n.NZbmlKVakYo-:not(:last-child) {\n border-bottom: solid var(--border-base) var(--border-color);\n}\n\n._72-uJqZ5jGE- .NZbmlKVakYo- {\n border-bottom: solid var(--border-base) var(--header-border-color);\n font-weight: bold;\n text-transform: uppercase;\n}\n\n.fEVdTCw9eOU- .NZbmlKVakYo- {\n border-top: solid var(--border-thicker) var(--border-color);\n}\n";
|
|
6
|
+
var css_248z$1 = ".gFY9BLPF808- {\n --border-color: var(--color-border);\n --header-border-color: var(--color-border--section);\n --horizontal-inset: var(--space-base);\n position: relative;\n width: 100%;\n border-collapse: collapse;\n}\n\n.gFY9BLPF808-::after {\n content: \"\";\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n box-sizing: border-box;\n border: solid calc(16px / 16) var(--border-color);\n border: solid var(--border-base) var(--border-color);\n border-radius: calc(16px / 8);\n border-radius: var(--radius-base);\n pointer-events: none;\n}\n\n.NZbmlKVakYo-:not(:last-child) {\n border-bottom: solid calc(16px / 16) var(--border-color);\n border-bottom: solid var(--border-base) var(--border-color);\n}\n\n._72-uJqZ5jGE- .NZbmlKVakYo- {\n border-bottom: solid calc(16px / 16) var(--header-border-color);\n border-bottom: solid var(--border-base) var(--header-border-color);\n font-weight: bold;\n text-transform: uppercase;\n}\n\n.fEVdTCw9eOU- .NZbmlKVakYo- {\n border-top: solid calc(16px / 4) var(--border-color);\n border-top: solid var(--border-thicker) var(--border-color);\n}\n";
|
|
7
7
|
var styles$1 = {"table":"gFY9BLPF808-","row":"NZbmlKVakYo-","header":"_72-uJqZ5jGE-","footer":"fEVdTCw9eOU-"};
|
|
8
8
|
styleInject(css_248z$1);
|
|
9
9
|
|
|
@@ -5,7 +5,7 @@ var formatters = require('@jobber/formatters');
|
|
|
5
5
|
var styleInject_es = require('./style-inject.es-XZHJH68X.js');
|
|
6
6
|
var classnames = require('classnames');
|
|
7
7
|
|
|
8
|
-
var css_248z$1 = ".gFY9BLPF808- {\n --border-color: var(--color-border);\n --header-border-color: var(--color-border--section);\n --horizontal-inset: var(--space-base);\n position: relative;\n width: 100%;\n border-collapse: collapse;\n}\n\n.gFY9BLPF808-::after {\n content: \"\";\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n box-sizing: border-box;\n border: solid var(--border-base) var(--border-color);\n border-radius: var(--radius-base);\n pointer-events: none;\n}\n\n.NZbmlKVakYo-:not(:last-child) {\n border-bottom: solid var(--border-base) var(--border-color);\n}\n\n._72-uJqZ5jGE- .NZbmlKVakYo- {\n border-bottom: solid var(--border-base) var(--header-border-color);\n font-weight: bold;\n text-transform: uppercase;\n}\n\n.fEVdTCw9eOU- .NZbmlKVakYo- {\n border-top: solid var(--border-thicker) var(--border-color);\n}\n";
|
|
8
|
+
var css_248z$1 = ".gFY9BLPF808- {\n --border-color: var(--color-border);\n --header-border-color: var(--color-border--section);\n --horizontal-inset: var(--space-base);\n position: relative;\n width: 100%;\n border-collapse: collapse;\n}\n\n.gFY9BLPF808-::after {\n content: \"\";\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n box-sizing: border-box;\n border: solid calc(16px / 16) var(--border-color);\n border: solid var(--border-base) var(--border-color);\n border-radius: calc(16px / 8);\n border-radius: var(--radius-base);\n pointer-events: none;\n}\n\n.NZbmlKVakYo-:not(:last-child) {\n border-bottom: solid calc(16px / 16) var(--border-color);\n border-bottom: solid var(--border-base) var(--border-color);\n}\n\n._72-uJqZ5jGE- .NZbmlKVakYo- {\n border-bottom: solid calc(16px / 16) var(--header-border-color);\n border-bottom: solid var(--border-base) var(--header-border-color);\n font-weight: bold;\n text-transform: uppercase;\n}\n\n.fEVdTCw9eOU- .NZbmlKVakYo- {\n border-top: solid calc(16px / 4) var(--border-color);\n border-top: solid var(--border-thicker) var(--border-color);\n}\n";
|
|
9
9
|
var styles$1 = {"table":"gFY9BLPF808-","row":"NZbmlKVakYo-","header":"_72-uJqZ5jGE-","footer":"fEVdTCw9eOU-"};
|
|
10
10
|
styleInject_es.styleInject(css_248z$1);
|
|
11
11
|
|
package/dist/Button/index.cjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var Button = require('../Button-
|
|
3
|
+
var Button = require('../Button-CdFKgOjt.js');
|
|
4
4
|
require('react');
|
|
5
5
|
require('classnames');
|
|
6
6
|
require('react-router-dom');
|
|
7
7
|
require('../style-inject.es-XZHJH68X.js');
|
|
8
8
|
require('../Icon-B9XNdA1T.js');
|
|
9
9
|
require('@jobber/design');
|
|
10
|
-
require('../Typography-
|
|
10
|
+
require('../Typography-g6o6Nu4H.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
package/dist/Button/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { B as Button } from '../Button-
|
|
1
|
+
export { B as Button } from '../Button-DCEN_VU9.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'classnames';
|
|
4
4
|
import 'react-router-dom';
|
|
5
5
|
import '../style-inject.es-tgCJW-Cu.js';
|
|
6
6
|
import '../Icon-CoHJokXb.js';
|
|
7
7
|
import '@jobber/design';
|
|
8
|
-
import '../Typography-
|
|
8
|
+
import '../Typography-BLZqr2yE.js';
|