@jobber/components 4.85.6-CJS-to-ESM.7 → 4.85.6-CJS-to-ESM.10
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 +4 -0
- package/dist/Autocomplete/index.cjs +9 -9
- package/dist/Autocomplete/index.mjs +9 -9
- package/dist/{Autocomplete-CGkTziR6.js → Autocomplete-BQC-Sdt3.js} +4 -4
- package/dist/{Autocomplete-CegS2xuv.js → Autocomplete-D-ew7f4X.js} +4 -4
- 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 +1 -1
- package/dist/Banner/components/BannerIcon/index.mjs +1 -1
- package/dist/Banner/index.cjs +5 -5
- package/dist/Banner/index.mjs +5 -5
- package/dist/{Banner-DTAOjR6U.js → Banner-CNVBnTc5.js} +4 -4
- package/dist/{Banner-Dh-KKCEw.js → Banner-FHgC_G51.js} +4 -4
- package/dist/BannerIcon-Cf9MHBUn.js +24 -0
- package/dist/BannerIcon-CoUm6Udu.js +27 -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 +5 -5
- package/dist/Card/index.mjs +5 -5
- package/dist/{Card-YPttFbjN.js → Card-9IfVI62-.js} +4 -4
- package/dist/{Card-CLjbYhBt.js → Card-DZXBxdQH.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 +5 -5
- package/dist/Chip/index.mjs +5 -5
- package/dist/Chip-D0QzrwiJ.js +73 -0
- package/dist/Chip-DiLsQCIb.js +70 -0
- package/dist/{ChipDismissible-BUPXp5_D.js → ChipDismissible-B3wENmRd.js} +1 -1
- package/dist/{ChipDismissible-C8mWsLSv.js → ChipDismissible-Cp2IIeHG.js} +1 -1
- package/dist/Chips/InternalChipDismissible/index.cjs +9 -9
- package/dist/Chips/InternalChipDismissible/index.mjs +9 -9
- package/dist/Chips/index.cjs +10 -10
- package/dist/Chips/index.mjs +10 -10
- package/dist/{Chips-DWmRzR61.js → Chips-DdqPhizu.js} +1 -1
- package/dist/{Chips-Cgig1xeD.js → Chips-PfjfGMzi.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 +6 -6
- package/dist/Combobox/components/ComboboxActivator/index.mjs +6 -6
- 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 +5 -5
- package/dist/Combobox/components/ComboboxTrigger/index.mjs +5 -5
- package/dist/Combobox/index.cjs +22 -22
- package/dist/Combobox/index.mjs +22 -22
- package/dist/{Combobox-CgidnZRz.js → Combobox-AFaFbXGB.js} +7 -7
- package/dist/{Combobox-D038vYPR.js → Combobox-CdNIOoM7.js} +7 -7
- package/dist/ComboboxAction-82KBbDVr.js +27 -0
- package/dist/ComboboxAction-B7IXde9k.js +25 -0
- package/dist/{ComboboxActivator-CchEsMah.js → ComboboxActivator-DJ2P5u9W.js} +2 -2
- package/dist/{ComboboxActivator-Dt5j0BvB.js → ComboboxActivator-WZOTETIY.js} +2 -2
- package/dist/{ComboboxContent-D-Uz7yqC.js → ComboboxContent-8VhYQzFe.js} +4 -4
- package/dist/{ComboboxContent-CSb30jbJ.js → ComboboxContent-C-z0aRbs.js} +4 -4
- 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-D0sdvd2z.js → ComboboxTrigger-B2HsrHGT.js} +1 -1
- package/dist/{ComboboxTrigger-Vnb9Z2jM.js → ComboboxTrigger-BqzqeGhu.js} +1 -1
- package/dist/ConfirmationModal/index.cjs +11 -12
- package/dist/ConfirmationModal/index.mjs +11 -12
- package/dist/{ConfirmationModal-65n0fMJb.js → ConfirmationModal-BK3z4KhR.js} +3 -3
- package/dist/{ConfirmationModal-BfiTCuPQ.js → ConfirmationModal-FElMoU6X.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 +8 -8
- package/dist/DataDump/index.mjs +8 -8
- package/dist/{DataDump-VtVvKQ_7.js → DataDump-B7FTpCgZ.js} +3 -3
- package/dist/{DataDump-drKZELB1.js → DataDump-BFEXds02.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 +14 -14
- package/dist/DataList/components/DataListActions/index.mjs +14 -14
- package/dist/DataList/components/DataListActionsMenu/index.cjs +1 -1
- package/dist/DataList/components/DataListActionsMenu/index.mjs +1 -1
- package/dist/DataList/components/DataListBulkActions/index.cjs +15 -15
- package/dist/DataList/components/DataListBulkActions/index.mjs +15 -15
- 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 +23 -23
- package/dist/DataList/components/DataListFilters/components/DataListSort/index.mjs +23 -23
- 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 +18 -18
- package/dist/DataList/components/DataListHeader/index.mjs +18 -18
- 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 +19 -19
- package/dist/DataList/components/DataListItem/index.mjs +19 -19
- package/dist/DataList/components/DataListItemActions/index.cjs +15 -15
- package/dist/DataList/components/DataListItemActions/index.mjs +15 -15
- package/dist/DataList/components/DataListItemActionsOverflow/index.cjs +5 -5
- package/dist/DataList/components/DataListItemActionsOverflow/index.mjs +5 -5
- package/dist/DataList/components/DataListItems/index.cjs +20 -20
- package/dist/DataList/components/DataListItems/index.mjs +20 -20
- package/dist/DataList/components/DataListLayout/index.cjs +21 -21
- package/dist/DataList/components/DataListLayout/index.mjs +21 -21
- package/dist/DataList/components/DataListLayoutActions/index.cjs +8 -8
- package/dist/DataList/components/DataListLayoutActions/index.mjs +8 -8
- 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 +8 -8
- package/dist/DataList/components/DataListSearch/index.mjs +8 -8
- package/dist/DataList/components/DataListStatusBar/index.cjs +9 -9
- package/dist/DataList/components/DataListStatusBar/index.mjs +9 -9
- 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 +56 -56
- package/dist/DataList/index.mjs +56 -56
- package/dist/{DataList-BXEIp06I.js → DataList-B4kTh2zr.js} +18 -18
- package/dist/{DataList-DPpEcJ7E.js → DataList-CBITWNb9.js} +18 -18
- package/dist/DataList-DX1hwly9.js +9 -0
- package/dist/DataList-Qb5Xash4.js +7 -0
- package/dist/{DataList.utils-DKG6QNlw.js → DataList.utils-Bav5KJwI.js} +4 -4
- package/dist/{DataList.utils-Hu_CbgBa.js → DataList.utils-CejvHT4T.js} +4 -4
- 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-d08eoEnt.js} +5 -5
- package/dist/{DataListActions-DoWlqNRw.js → DataListActions-zzneeG9a.js} +5 -5
- package/dist/{DataListActionsMenu-BtZsN7F7.js → DataListActionsMenu-CmvEFrMd.js} +1 -1
- package/dist/{DataListActionsMenu-BOJ6GBFf.js → DataListActionsMenu-dkwTfAWI.js} +1 -1
- package/dist/{DataListBulkActions-BQi84jaU.js → DataListBulkActions-BFDTCNMX.js} +2 -2
- package/dist/{DataListBulkActions-cHOa3844.js → DataListBulkActions-C36dV7il.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-Dxkng3G4.js → DataListFilters-DVexyxzh.js} +3 -3
- package/dist/{DataListFilters-aXdgdu10.js → DataListFilters-DeriK-B7.js} +3 -3
- package/dist/{DataListHeader-DGKYUSx5.js → DataListHeader-BD_phBYj.js} +6 -6
- package/dist/{DataListHeader-C9_gJyMZ.js → DataListHeader-uOleqBzP.js} +6 -6
- package/dist/{DataListHeaderTile-Cv6u2T9-.js → DataListHeaderTile-CgsALV2i.js} +4 -4
- package/dist/{DataListHeaderTile-DX2RRNWh.js → DataListHeaderTile-SXhBbHve.js} +4 -4
- package/dist/{DataListItem-B0-w-qA7.js → DataListItem-51-65HYy.js} +6 -6
- package/dist/{DataListItem-B5ntnVm6.js → DataListItem-D3JjLIkO.js} +6 -6
- package/dist/{DataListItemActions-Dh8UGrxx.js → DataListItemActions-CFA57mEO.js} +2 -2
- package/dist/{DataListItemActions-CPzwwAxE.js → DataListItemActions-RI0WOpAQ.js} +2 -2
- package/dist/{DataListItemActionsOverflow-D-1j_VW1.js → DataListItemActionsOverflow-B-j3iwTw.js} +3 -3
- package/dist/{DataListItemActionsOverflow-BZOe6Q2X.js → DataListItemActionsOverflow-DYZ8hCrV.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-Cg1QExxM.js} +1 -1
- package/dist/{DataListItems-DmcrKmEN.js → DataListItems-Dte1xEzQ.js} +1 -1
- package/dist/{DataListLayout-DKl7LNTC.js → DataListLayout-D5PQeH9k.js} +1 -1
- package/dist/{DataListLayout-1ewedigR.js → DataListLayout-maiAhs0s.js} +1 -1
- package/dist/{DataListLayoutActions-DUhQGPnj.js → DataListLayoutActions-CAweaHVJ.js} +2 -2
- package/dist/{DataListLayoutActions-KEz3AqEN.js → DataListLayoutActions-DoYklZMT.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-Ghtq5uJW.js} +3 -3
- package/dist/{DataListSearch-ZRBp2aeL.js → DataListSearch-M8Xo23Rs.js} +3 -3
- package/dist/{DataListSort-BbKXOOi5.js → DataListSort-9a8Nnymc.js} +2 -2
- package/dist/{DataListSort-L4Bvc5oo.js → DataListSort-BWysfJYn.js} +2 -2
- package/dist/{DataListSortingOptions-SfZWLgFS.js → DataListSortingOptions-eIIcKWpI.js} +1 -1
- package/dist/{DataListSortingOptions-Ciu5gWGt.js → DataListSortingOptions-iSAuu-iH.js} +1 -1
- package/dist/{DataListStatusBar-6g_vMdKx.js → DataListStatusBar-B8G_rGJg.js} +1 -1
- package/dist/{DataListStatusBar-y1l0GOU2.js → DataListStatusBar-DJyeUWLV.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 +5 -5
- package/dist/Drawer/index.mjs +5 -5
- package/dist/DrawerGrid-CFc2dsRt.js +33 -0
- package/dist/DrawerGrid-QAt-4-eT.js +36 -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 +10 -11
- package/dist/FeatureSwitch/index.mjs +10 -11
- package/dist/{FeatureSwitch-DQILZG30.js → FeatureSwitch-r1QOEgOx.js} +8 -8
- package/dist/{FeatureSwitch-D1bfsSse.js → FeatureSwitch-vqHipk5_.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 +14 -15
- package/dist/FormatFile/index.mjs +14 -15
- package/dist/{FormatFile-CLJdzinO.js → FormatFile-Buag0uRk.js} +8 -8
- package/dist/{FormatFile-IAQXQH9b.js → FormatFile-QR8UQza1.js} +8 -8
- package/dist/Gallery/index.cjs +16 -17
- package/dist/Gallery/index.mjs +16 -17
- package/dist/{Gallery-B5v8bbz5.js → Gallery-BNUXG2jX.js} +4 -4
- package/dist/{Gallery-Ch2uqtqb.js → Gallery-D1009DLm.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 +2 -2
- package/dist/Heading/index.mjs +2 -2
- package/dist/{Heading-BRqlPY1t.js → Heading-DaQSloBZ.js} +1 -1
- package/dist/{Heading-UeMlAnTK.js → Heading-qGWVOyZp.js} +1 -1
- 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 +7 -7
- package/dist/InputText/index.mjs +7 -7
- package/dist/{InputText-uSLQbHTc.js → InputText-C2A27BcB.js} +1 -1
- package/dist/{InputText-ChjwzW5f.js → InputText-DTlyh7n2.js} +1 -1
- 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-BIVRuhJk.js → InternalChipDismissible-B9qWcqXd.js} +9 -9
- package/dist/{InternalChipDismissible-RHN8bbmz.js → InternalChipDismissible-BeNRgOsk.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/index.cjs +4 -4
- package/dist/LightBox/index.mjs +4 -4
- package/dist/{LightBox-d7uV7Z3g.js → LightBox-BLMkxvLm.js} +3 -3
- package/dist/{LightBox-DlT8VR-h.js → LightBox-BvLxaS84.js} +3 -3
- package/dist/List/index.cjs +8 -9
- package/dist/List/index.mjs +8 -9
- package/dist/{List-DpivlmHP.js → List-CvkPjML6.js} +8 -8
- package/dist/{List-Cmwa_lQY.js → List-_qqJuU5U.js} +8 -8
- package/dist/Markdown/index.cjs +7 -8
- package/dist/Markdown/index.mjs +7 -8
- package/dist/{Markdown-vWd8z3u3.js → Markdown-DtM5ykGm.js} +815 -787
- package/dist/{Markdown-C30HaonV.js → Markdown-tppGhvDj.js} +777 -749
- package/dist/Menu/index.cjs +3 -3
- package/dist/Menu/index.mjs +3 -3
- package/dist/{Menu-BZeIt9eb.js → Menu-B2CjGXpJ.js} +3 -3
- package/dist/{Menu-CwVGTv_f.js → Menu-EuYGUgDp.js} +3 -3
- package/dist/Modal/index.cjs +5 -5
- package/dist/Modal/index.mjs +5 -5
- package/dist/Modal-BBOC5oe3.js +63 -0
- package/dist/Modal-CExhhE-e.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 +10 -11
- package/dist/Page/index.mjs +10 -11
- package/dist/{Page-Chuyscyc.js → Page-CcXoRUwS.js} +8 -8
- package/dist/{Page-CvSJQUiG.js → Page-CrzjHAS7.js} +8 -8
- package/dist/Popover/index.cjs +4 -4
- package/dist/Popover/index.mjs +4 -4
- package/dist/Popover-FRqq6zP7.js +49 -0
- package/dist/Popover-wdJHwi6I.js +47 -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 +1 -1
- package/dist/Tooltip/index.mjs +1 -1
- package/dist/{Tooltip-mn2jRxXD.js → Tooltip-Cfg4l2JJ.js} +1 -1
- package/dist/{Tooltip-BEW-a9OW.js → Tooltip-DSGn-Mt6.js} +1 -1
- 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/index.cjs +105 -106
- package/dist/index.mjs +105 -106
- 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/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/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/index-BoP83yS-.js +0 -8
- package/dist/index-Jb6tGBiW.js +0 -11
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var ButtonDismiss = require('../ButtonDismiss-
|
|
3
|
+
var ButtonDismiss = require('../ButtonDismiss-CIT2CCBA.js');
|
|
4
4
|
require('react');
|
|
5
|
-
require('../Button-
|
|
5
|
+
require('../Button-CdFKgOjt.js');
|
|
6
6
|
require('classnames');
|
|
7
7
|
require('react-router-dom');
|
|
8
8
|
require('../style-inject.es-XZHJH68X.js');
|
|
9
9
|
require('../Icon-B9XNdA1T.js');
|
|
10
10
|
require('@jobber/design');
|
|
11
|
-
require('../Typography-
|
|
11
|
+
require('../Typography-g6o6Nu4H.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { B as ButtonDismiss } from '../ButtonDismiss-
|
|
1
|
+
export { B as ButtonDismiss } from '../ButtonDismiss-BPSS7oI4.js';
|
|
2
2
|
import 'react';
|
|
3
|
-
import '../Button-
|
|
3
|
+
import '../Button-DCEN_VU9.js';
|
|
4
4
|
import 'classnames';
|
|
5
5
|
import 'react-router-dom';
|
|
6
6
|
import '../style-inject.es-tgCJW-Cu.js';
|
|
7
7
|
import '../Icon-CoHJokXb.js';
|
|
8
8
|
import '@jobber/design';
|
|
9
|
-
import '../Typography-
|
|
9
|
+
import '../Typography-BLZqr2yE.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { B as Button } from './Button-
|
|
2
|
+
import { B as Button } from './Button-DCEN_VU9.js';
|
|
3
3
|
|
|
4
4
|
function ButtonDismiss({ onClick, ariaLabel }) {
|
|
5
5
|
return (React.createElement(Button, { ariaLabel: ariaLabel, icon: "remove", onClick: onClick, type: "tertiary", variation: "subtle" }));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var React = require('react');
|
|
4
|
-
var Button = require('./Button-
|
|
4
|
+
var Button = require('./Button-CdFKgOjt.js');
|
|
5
5
|
|
|
6
6
|
function ButtonDismiss({ onClick, ariaLabel }) {
|
|
7
7
|
return (React.createElement(Button.Button, { ariaLabel: ariaLabel, icon: "remove", onClick: onClick, type: "tertiary", variation: "subtle" }));
|
package/dist/Card/index.cjs
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var Card = require('../Card-
|
|
3
|
+
var Card = require('../Card-DZXBxdQH.js');
|
|
4
4
|
require('react');
|
|
5
5
|
require('classnames');
|
|
6
6
|
require('../style-inject.es-XZHJH68X.js');
|
|
7
|
-
require('../Heading-
|
|
8
|
-
require('../Typography-
|
|
7
|
+
require('../Heading-DaQSloBZ.js');
|
|
8
|
+
require('../Typography-g6o6Nu4H.js');
|
|
9
9
|
require('../getAtlantisConfig-mcMVqf6m.js');
|
|
10
|
-
require('../Button-
|
|
10
|
+
require('../Button-CdFKgOjt.js');
|
|
11
11
|
require('react-router-dom');
|
|
12
12
|
require('../Icon-B9XNdA1T.js');
|
|
13
13
|
require('@jobber/design');
|
|
14
|
-
require('../Menu-
|
|
14
|
+
require('../Menu-B2CjGXpJ.js');
|
|
15
15
|
require('framer-motion');
|
|
16
16
|
require('../useOnKeyDown-B9JF2jLZ.js');
|
|
17
17
|
require('../useRefocusOnActivator-DOJm9VWz.js');
|
package/dist/Card/index.mjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
export { C as Card } from '../Card-
|
|
1
|
+
export { C as Card } from '../Card-9IfVI62-.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'classnames';
|
|
4
4
|
import '../style-inject.es-tgCJW-Cu.js';
|
|
5
|
-
import '../Heading-
|
|
6
|
-
import '../Typography-
|
|
5
|
+
import '../Heading-qGWVOyZp.js';
|
|
6
|
+
import '../Typography-BLZqr2yE.js';
|
|
7
7
|
import '../getAtlantisConfig-6FPWID0P.js';
|
|
8
|
-
import '../Button-
|
|
8
|
+
import '../Button-DCEN_VU9.js';
|
|
9
9
|
import 'react-router-dom';
|
|
10
10
|
import '../Icon-CoHJokXb.js';
|
|
11
11
|
import '@jobber/design';
|
|
12
|
-
import '../Menu-
|
|
12
|
+
import '../Menu-EuYGUgDp.js';
|
|
13
13
|
import 'framer-motion';
|
|
14
14
|
import '../useOnKeyDown-BsUfDste.js';
|
|
15
15
|
import '../useRefocusOnActivator-CMNWUYSe.js';
|
|
@@ -1,11 +1,11 @@
|
|
|
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-
|
|
5
|
-
import { B as Button } from './Button-
|
|
6
|
-
import { M as Menu } from './Menu-
|
|
4
|
+
import { H as Heading } from './Heading-qGWVOyZp.js';
|
|
5
|
+
import { B as Button } from './Button-DCEN_VU9.js';
|
|
6
|
+
import { M as Menu } from './Menu-EuYGUgDp.js';
|
|
7
7
|
|
|
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:
|
|
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-"};
|
|
10
10
|
styleInject(css_248z$1);
|
|
11
11
|
|
|
@@ -3,11 +3,11 @@
|
|
|
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-
|
|
7
|
-
var Button = require('./Button-
|
|
8
|
-
var Menu = require('./Menu-
|
|
6
|
+
var Heading = require('./Heading-DaQSloBZ.js');
|
|
7
|
+
var Button = require('./Button-CdFKgOjt.js');
|
|
8
|
+
var Menu = require('./Menu-B2CjGXpJ.js');
|
|
9
9
|
|
|
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:
|
|
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-"};
|
|
12
12
|
styleInject_es.styleInject(css_248z$1);
|
|
13
13
|
|
package/dist/Checkbox/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var Checkbox = require('../Checkbox-
|
|
3
|
+
var Checkbox = require('../Checkbox-fFiBs5HY.js');
|
|
4
4
|
require('../tslib.es6-ld72nsZq.js');
|
|
5
5
|
require('react');
|
|
6
6
|
require('classnames');
|
|
@@ -8,8 +8,8 @@ require('react-hook-form');
|
|
|
8
8
|
require('../style-inject.es-XZHJH68X.js');
|
|
9
9
|
require('../Icon-B9XNdA1T.js');
|
|
10
10
|
require('@jobber/design');
|
|
11
|
-
require('../Text-
|
|
12
|
-
require('../Typography-
|
|
11
|
+
require('../Text-L0uH5HlC.js');
|
|
12
|
+
require('../Typography-g6o6Nu4H.js');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
package/dist/Checkbox/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { C as Checkbox } from '../Checkbox-
|
|
1
|
+
export { C as Checkbox } from '../Checkbox-DRsOgqsP.js';
|
|
2
2
|
import '../tslib.es6-Df1SgIEn.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'classnames';
|
|
@@ -6,5 +6,5 @@ import 'react-hook-form';
|
|
|
6
6
|
import '../style-inject.es-tgCJW-Cu.js';
|
|
7
7
|
import '../Icon-CoHJokXb.js';
|
|
8
8
|
import '@jobber/design';
|
|
9
|
-
import '../Text-
|
|
10
|
-
import '../Typography-
|
|
9
|
+
import '../Text-B0MvS7fA.js';
|
|
10
|
+
import '../Typography-BLZqr2yE.js';
|
|
@@ -4,9 +4,9 @@ import classnames from 'classnames';
|
|
|
4
4
|
import { useFormContext, useForm, Controller } from 'react-hook-form';
|
|
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-
|
|
7
|
+
import { T as Text } from './Text-B0MvS7fA.js';
|
|
8
8
|
|
|
9
|
-
var css_248z = ".d-2MyyzKGN0- {\n --checkbox-size: var(--space-base);\n display: inline-block;\n}\n\n.jobber-retheme .d-2MyyzKGN0- {\n --checkbox-size: calc(var(--space-base) + var(--space-smaller));\n}\n\n.OFHQaLxY8zI- {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: start;\n align-items: flex-start;\n -webkit-user-select: none;\n -ms-user-select: none;\n user-select: none;\n cursor: pointer;\n}\n\n.HRrf3AZlpHc- {\n cursor: not-allowed;\n}\n\n.kMH5B1jwh-Y- {\n position: relative;\n}\n\n.rup0RBe4DNU- {\n /* Hide checkbox on UI but not screen readers and still allow focus state */\n position: absolute;\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip: rect(0 0 0 0);\n -webkit-clip-path: inset(100%);\n clip-path: inset(100%);\n white-space: nowrap;\n}\n\n.lOQVnJA7zPM- {\n display: -ms-flexbox;\n display: flex;\n width: var(--checkbox-size);\n height: var(--checkbox-size);\n box-sizing: border-box;\n border: var(--border-thick) solid var(--color-interactive);\n border-radius: var(--radius-base);\n background-color: var(--color-surface);\n transition: all var(--timing-quick) ease-out;\n -ms-flex-pack: center;\n justify-content: center;\n -ms-flex-align: center;\n align-items: center;\n}\n\n.HRrf3AZlpHc- .lOQVnJA7zPM- {\n border-color: var(--color-disabled--secondary);\n}\n\n.jobber-retheme .lOQVnJA7zPM- {\n border-color: var(--color-border);\n border-radius: var(--radius-small);\n}\n\n.rup0RBe4DNU-.Njn2CQDXwVA- + .lOQVnJA7zPM-,\n.rup0RBe4DNU-:checked + .lOQVnJA7zPM- {\n border-color: var(--color-interactive);\n background-color: var(--color-interactive);\n}\n\n.rup0RBe4DNU-:focus-visible + .lOQVnJA7zPM- {\n box-shadow: var(--shadow-focus);\n}\n\n.jobber-retheme .lOQVnJA7zPM-:hover,\n.jobber-retheme .d-2MyyzKGN0-:hover .lOQVnJA7zPM- {\n border-color: var(--color-interactive);\n}\n\n.HRrf3AZlpHc- p {\n color: var(--color-disabled);\n}\n\n.HRrf3AZlpHc- .lOQVnJA7zPM- > * {\n opacity: 0;\n}\n\n.HRrf3AZlpHc- .rup0RBe4DNU-.Njn2CQDXwVA- + .lOQVnJA7zPM-,\n.HRrf3AZlpHc- .rup0RBe4DNU-:checked + .lOQVnJA7zPM- {\n border-color: var(--color-disabled--secondary);\n background-color: var(--color-disabled--secondary);\n}\n\n.HRrf3AZlpHc- .rup0RBe4DNU-.Njn2CQDXwVA- + .lOQVnJA7zPM- > *,\n.HRrf3AZlpHc- .rup0RBe4DNU-:checked + .lOQVnJA7zPM- > * {\n opacity: 1;\n}\n\n.eHENKCs5umc- {\n margin: 0 var(--space-small);\n}\n\n.jobber-retheme .eHENKCs5umc- {\n margin-top: var(--space-smallest);\n}\n\n.fSEH0cAO9cI- {\n margin-bottom: var(--space-small);\n padding-left: calc(var(--checkbox-size) + var(--space-small));\n}\n";
|
|
9
|
+
var css_248z = ".d-2MyyzKGN0- {\n --checkbox-size: var(--space-base);\n display: inline-block;\n}\n\n.jobber-retheme .d-2MyyzKGN0- {\n --checkbox-size: calc(var(--space-base) + var(--space-smaller));\n}\n\n.OFHQaLxY8zI- {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: start;\n align-items: flex-start;\n -webkit-user-select: none;\n -ms-user-select: none;\n user-select: none;\n cursor: pointer;\n}\n\n.HRrf3AZlpHc- {\n cursor: not-allowed;\n}\n\n.kMH5B1jwh-Y- {\n position: relative;\n}\n\n.rup0RBe4DNU- {\n /* Hide checkbox on UI but not screen readers and still allow focus state */\n position: absolute;\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip: rect(0 0 0 0);\n -webkit-clip-path: inset(100%);\n clip-path: inset(100%);\n white-space: nowrap;\n}\n\n.lOQVnJA7zPM- {\n display: -ms-flexbox;\n display: flex;\n width: var(--checkbox-size);\n height: var(--checkbox-size);\n box-sizing: border-box;\n border: calc(16px / 8) solid rgb(125, 176, 14);\n border: var(--border-thick) solid var(--color-interactive);\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 transition: all 100ms ease-out;\n transition: all var(--timing-quick) ease-out;\n -ms-flex-pack: center;\n justify-content: center;\n -ms-flex-align: center;\n align-items: center;\n}\n\n.HRrf3AZlpHc- .lOQVnJA7zPM- {\n border-color: rgb(225, 225, 225);\n border-color: var(--color-disabled--secondary);\n}\n\n.jobber-retheme .lOQVnJA7zPM- {\n border-color: rgb(217, 223, 225);\n border-color: var(--color-border);\n border-radius: calc(16px / 16);\n border-radius: var(--radius-small);\n}\n\n.rup0RBe4DNU-.Njn2CQDXwVA- + .lOQVnJA7zPM-,\n.rup0RBe4DNU-:checked + .lOQVnJA7zPM- {\n border-color: rgb(125, 176, 14);\n border-color: var(--color-interactive);\n background-color: rgb(125, 176, 14);\n background-color: var(--color-interactive);\n}\n\n.rup0RBe4DNU-:focus-visible + .lOQVnJA7zPM- {\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}\n\n.jobber-retheme .lOQVnJA7zPM-:hover,\n.jobber-retheme .d-2MyyzKGN0-:hover .lOQVnJA7zPM- {\n border-color: rgb(125, 176, 14);\n border-color: var(--color-interactive);\n}\n\n.HRrf3AZlpHc- p {\n color: rgb(181, 181, 181);\n color: var(--color-disabled);\n}\n\n.HRrf3AZlpHc- .lOQVnJA7zPM- > * {\n opacity: 0;\n}\n\n.HRrf3AZlpHc- .rup0RBe4DNU-.Njn2CQDXwVA- + .lOQVnJA7zPM-,\n.HRrf3AZlpHc- .rup0RBe4DNU-:checked + .lOQVnJA7zPM- {\n border-color: rgb(225, 225, 225);\n border-color: var(--color-disabled--secondary);\n background-color: rgb(225, 225, 225);\n background-color: var(--color-disabled--secondary);\n}\n\n.HRrf3AZlpHc- .rup0RBe4DNU-.Njn2CQDXwVA- + .lOQVnJA7zPM- > *,\n.HRrf3AZlpHc- .rup0RBe4DNU-:checked + .lOQVnJA7zPM- > * {\n opacity: 1;\n}\n\n.eHENKCs5umc- {\n margin: 0 calc(16px / 2);\n margin: 0 var(--space-small);\n}\n\n.jobber-retheme .eHENKCs5umc- {\n margin-top: calc(16px / 8);\n margin-top: var(--space-smallest);\n}\n\n.fSEH0cAO9cI- {\n margin-bottom: calc(16px / 2);\n margin-bottom: var(--space-small);\n padding-left: calc(var(--checkbox-size) + (16px / 2));\n padding-left: calc(var(--checkbox-size) + calc(16px / 2));\n padding-left: calc(var(--checkbox-size) + var(--space-small));\n}\n";
|
|
10
10
|
var styles = {"checkbox":"d-2MyyzKGN0-","wrapper":"OFHQaLxY8zI-","disabled":"HRrf3AZlpHc-","checkHolder":"kMH5B1jwh-Y-","input":"rup0RBe4DNU-","checkBox":"lOQVnJA7zPM-","indeterminate":"Njn2CQDXwVA-","label":"eHENKCs5umc-","description":"fSEH0cAO9cI-"};
|
|
11
11
|
styleInject(css_248z);
|
|
12
12
|
|
|
@@ -6,9 +6,9 @@ var classnames = require('classnames');
|
|
|
6
6
|
var reactHookForm = require('react-hook-form');
|
|
7
7
|
var styleInject_es = require('./style-inject.es-XZHJH68X.js');
|
|
8
8
|
var Icon = require('./Icon-B9XNdA1T.js');
|
|
9
|
-
var Text = require('./Text-
|
|
9
|
+
var Text = require('./Text-L0uH5HlC.js');
|
|
10
10
|
|
|
11
|
-
var css_248z = ".d-2MyyzKGN0- {\n --checkbox-size: var(--space-base);\n display: inline-block;\n}\n\n.jobber-retheme .d-2MyyzKGN0- {\n --checkbox-size: calc(var(--space-base) + var(--space-smaller));\n}\n\n.OFHQaLxY8zI- {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: start;\n align-items: flex-start;\n -webkit-user-select: none;\n -ms-user-select: none;\n user-select: none;\n cursor: pointer;\n}\n\n.HRrf3AZlpHc- {\n cursor: not-allowed;\n}\n\n.kMH5B1jwh-Y- {\n position: relative;\n}\n\n.rup0RBe4DNU- {\n /* Hide checkbox on UI but not screen readers and still allow focus state */\n position: absolute;\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip: rect(0 0 0 0);\n -webkit-clip-path: inset(100%);\n clip-path: inset(100%);\n white-space: nowrap;\n}\n\n.lOQVnJA7zPM- {\n display: -ms-flexbox;\n display: flex;\n width: var(--checkbox-size);\n height: var(--checkbox-size);\n box-sizing: border-box;\n border: var(--border-thick) solid var(--color-interactive);\n border-radius: var(--radius-base);\n background-color: var(--color-surface);\n transition: all var(--timing-quick) ease-out;\n -ms-flex-pack: center;\n justify-content: center;\n -ms-flex-align: center;\n align-items: center;\n}\n\n.HRrf3AZlpHc- .lOQVnJA7zPM- {\n border-color: var(--color-disabled--secondary);\n}\n\n.jobber-retheme .lOQVnJA7zPM- {\n border-color: var(--color-border);\n border-radius: var(--radius-small);\n}\n\n.rup0RBe4DNU-.Njn2CQDXwVA- + .lOQVnJA7zPM-,\n.rup0RBe4DNU-:checked + .lOQVnJA7zPM- {\n border-color: var(--color-interactive);\n background-color: var(--color-interactive);\n}\n\n.rup0RBe4DNU-:focus-visible + .lOQVnJA7zPM- {\n box-shadow: var(--shadow-focus);\n}\n\n.jobber-retheme .lOQVnJA7zPM-:hover,\n.jobber-retheme .d-2MyyzKGN0-:hover .lOQVnJA7zPM- {\n border-color: var(--color-interactive);\n}\n\n.HRrf3AZlpHc- p {\n color: var(--color-disabled);\n}\n\n.HRrf3AZlpHc- .lOQVnJA7zPM- > * {\n opacity: 0;\n}\n\n.HRrf3AZlpHc- .rup0RBe4DNU-.Njn2CQDXwVA- + .lOQVnJA7zPM-,\n.HRrf3AZlpHc- .rup0RBe4DNU-:checked + .lOQVnJA7zPM- {\n border-color: var(--color-disabled--secondary);\n background-color: var(--color-disabled--secondary);\n}\n\n.HRrf3AZlpHc- .rup0RBe4DNU-.Njn2CQDXwVA- + .lOQVnJA7zPM- > *,\n.HRrf3AZlpHc- .rup0RBe4DNU-:checked + .lOQVnJA7zPM- > * {\n opacity: 1;\n}\n\n.eHENKCs5umc- {\n margin: 0 var(--space-small);\n}\n\n.jobber-retheme .eHENKCs5umc- {\n margin-top: var(--space-smallest);\n}\n\n.fSEH0cAO9cI- {\n margin-bottom: var(--space-small);\n padding-left: calc(var(--checkbox-size) + var(--space-small));\n}\n";
|
|
11
|
+
var css_248z = ".d-2MyyzKGN0- {\n --checkbox-size: var(--space-base);\n display: inline-block;\n}\n\n.jobber-retheme .d-2MyyzKGN0- {\n --checkbox-size: calc(var(--space-base) + var(--space-smaller));\n}\n\n.OFHQaLxY8zI- {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: start;\n align-items: flex-start;\n -webkit-user-select: none;\n -ms-user-select: none;\n user-select: none;\n cursor: pointer;\n}\n\n.HRrf3AZlpHc- {\n cursor: not-allowed;\n}\n\n.kMH5B1jwh-Y- {\n position: relative;\n}\n\n.rup0RBe4DNU- {\n /* Hide checkbox on UI but not screen readers and still allow focus state */\n position: absolute;\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip: rect(0 0 0 0);\n -webkit-clip-path: inset(100%);\n clip-path: inset(100%);\n white-space: nowrap;\n}\n\n.lOQVnJA7zPM- {\n display: -ms-flexbox;\n display: flex;\n width: var(--checkbox-size);\n height: var(--checkbox-size);\n box-sizing: border-box;\n border: calc(16px / 8) solid rgb(125, 176, 14);\n border: var(--border-thick) solid var(--color-interactive);\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 transition: all 100ms ease-out;\n transition: all var(--timing-quick) ease-out;\n -ms-flex-pack: center;\n justify-content: center;\n -ms-flex-align: center;\n align-items: center;\n}\n\n.HRrf3AZlpHc- .lOQVnJA7zPM- {\n border-color: rgb(225, 225, 225);\n border-color: var(--color-disabled--secondary);\n}\n\n.jobber-retheme .lOQVnJA7zPM- {\n border-color: rgb(217, 223, 225);\n border-color: var(--color-border);\n border-radius: calc(16px / 16);\n border-radius: var(--radius-small);\n}\n\n.rup0RBe4DNU-.Njn2CQDXwVA- + .lOQVnJA7zPM-,\n.rup0RBe4DNU-:checked + .lOQVnJA7zPM- {\n border-color: rgb(125, 176, 14);\n border-color: var(--color-interactive);\n background-color: rgb(125, 176, 14);\n background-color: var(--color-interactive);\n}\n\n.rup0RBe4DNU-:focus-visible + .lOQVnJA7zPM- {\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}\n\n.jobber-retheme .lOQVnJA7zPM-:hover,\n.jobber-retheme .d-2MyyzKGN0-:hover .lOQVnJA7zPM- {\n border-color: rgb(125, 176, 14);\n border-color: var(--color-interactive);\n}\n\n.HRrf3AZlpHc- p {\n color: rgb(181, 181, 181);\n color: var(--color-disabled);\n}\n\n.HRrf3AZlpHc- .lOQVnJA7zPM- > * {\n opacity: 0;\n}\n\n.HRrf3AZlpHc- .rup0RBe4DNU-.Njn2CQDXwVA- + .lOQVnJA7zPM-,\n.HRrf3AZlpHc- .rup0RBe4DNU-:checked + .lOQVnJA7zPM- {\n border-color: rgb(225, 225, 225);\n border-color: var(--color-disabled--secondary);\n background-color: rgb(225, 225, 225);\n background-color: var(--color-disabled--secondary);\n}\n\n.HRrf3AZlpHc- .rup0RBe4DNU-.Njn2CQDXwVA- + .lOQVnJA7zPM- > *,\n.HRrf3AZlpHc- .rup0RBe4DNU-:checked + .lOQVnJA7zPM- > * {\n opacity: 1;\n}\n\n.eHENKCs5umc- {\n margin: 0 calc(16px / 2);\n margin: 0 var(--space-small);\n}\n\n.jobber-retheme .eHENKCs5umc- {\n margin-top: calc(16px / 8);\n margin-top: var(--space-smallest);\n}\n\n.fSEH0cAO9cI- {\n margin-bottom: calc(16px / 2);\n margin-bottom: var(--space-small);\n padding-left: calc(var(--checkbox-size) + (16px / 2));\n padding-left: calc(var(--checkbox-size) + calc(16px / 2));\n padding-left: calc(var(--checkbox-size) + var(--space-small));\n}\n";
|
|
12
12
|
var styles = {"checkbox":"d-2MyyzKGN0-","wrapper":"OFHQaLxY8zI-","disabled":"HRrf3AZlpHc-","checkHolder":"kMH5B1jwh-Y-","input":"rup0RBe4DNU-","checkBox":"lOQVnJA7zPM-","indeterminate":"Njn2CQDXwVA-","label":"eHENKCs5umc-","description":"fSEH0cAO9cI-"};
|
|
13
13
|
styleInject_es.styleInject(css_248z);
|
|
14
14
|
|
package/dist/Chip/index.cjs
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var Chip = require('../Chip-
|
|
4
|
-
var ChipDismissible = require('../ChipDismissible-
|
|
3
|
+
var Chip = require('../Chip-D0QzrwiJ.js');
|
|
4
|
+
var ChipDismissible = require('../ChipDismissible-Cp2IIeHG.js');
|
|
5
5
|
require('react');
|
|
6
6
|
require('classnames');
|
|
7
7
|
require('../useInView-Ct13SCWB.js');
|
|
8
8
|
require('../_commonjsHelpers-B83fTs8d.js');
|
|
9
9
|
require('../style-inject.es-XZHJH68X.js');
|
|
10
|
-
require('../Avatar-
|
|
10
|
+
require('../Avatar-AkaG8y0Q.js');
|
|
11
11
|
require('color');
|
|
12
12
|
require('../Icon-B9XNdA1T.js');
|
|
13
13
|
require('@jobber/design');
|
|
14
14
|
require('../useChildComponent-BUH0ttPi.js');
|
|
15
|
-
require('../Typography-
|
|
16
|
-
require('../Tooltip-
|
|
15
|
+
require('../Typography-g6o6Nu4H.js');
|
|
16
|
+
require('../Tooltip-DSGn-Mt6.js');
|
|
17
17
|
require('react-dom');
|
|
18
18
|
require('framer-motion');
|
|
19
19
|
require('../useSafeLayoutEffect-Qir6pm57.js');
|
package/dist/Chip/index.mjs
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
export { C as Chip } from '../Chip-
|
|
2
|
-
export { a as ChipDismissible, C as ChipSelectable } from '../ChipDismissible-
|
|
1
|
+
export { C as Chip } from '../Chip-DiLsQCIb.js';
|
|
2
|
+
export { a as ChipDismissible, C as ChipSelectable } from '../ChipDismissible-B3wENmRd.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'classnames';
|
|
5
5
|
import '../useInView-Yth15M0p.js';
|
|
6
6
|
import '../_commonjsHelpers-E-ZsRS8r.js';
|
|
7
7
|
import '../style-inject.es-tgCJW-Cu.js';
|
|
8
|
-
import '../Avatar-
|
|
8
|
+
import '../Avatar-CckTha1O.js';
|
|
9
9
|
import 'color';
|
|
10
10
|
import '../Icon-CoHJokXb.js';
|
|
11
11
|
import '@jobber/design';
|
|
12
12
|
import '../useChildComponent-D95jU7NM.js';
|
|
13
|
-
import '../Typography-
|
|
14
|
-
import '../Tooltip-
|
|
13
|
+
import '../Typography-BLZqr2yE.js';
|
|
14
|
+
import '../Tooltip-Cfg4l2JJ.js';
|
|
15
15
|
import 'react-dom';
|
|
16
16
|
import 'framer-motion';
|
|
17
17
|
import '../useSafeLayoutEffect-yaw3NyzX.js';
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var React = require('react');
|
|
4
|
+
var classnames = require('classnames');
|
|
5
|
+
var useInView = require('./useInView-Ct13SCWB.js');
|
|
6
|
+
var styleInject_es = require('./style-inject.es-XZHJH68X.js');
|
|
7
|
+
var Avatar = require('./Avatar-AkaG8y0Q.js');
|
|
8
|
+
var Icon = require('./Icon-B9XNdA1T.js');
|
|
9
|
+
var useChildComponent = require('./useChildComponent-BUH0ttPi.js');
|
|
10
|
+
var Typography = require('./Typography-g6o6Nu4H.js');
|
|
11
|
+
var Tooltip = require('./Tooltip-DSGn-Mt6.js');
|
|
12
|
+
|
|
13
|
+
var css_248z = ":root {\n --chip--gradient-color-variation: var(--chip-base-bg);\n --chip--gradient-color-variation--hover: var(--chip-base--hover);\n}\n\n.af7U8MvcbHE- {\n --chip-height: 40px;\n --chip-radius: 20px;\n --chip-base-bg: var(--color-surface--background);\n --chip-base--hover: var(--color-surface--background--hover);\n display: -ms-flexbox;\n display: flex;\n position: relative;\n height: 40px;\n height: var(--chip-height);\n min-width: 0;\n padding: calc(16px / 2) 16px;\n padding: var(--space-small) var(--base-unit);\n border: calc(16px / 16) solid transparent;\n border: var(--border-base) solid transparent;\n border-radius: 20px;\n border-radius: var(--chip-radius);\n color: rgb(1, 41, 57);\n color: var(--color-heading);\n text-align: left;\n cursor: pointer;\n transition: all 200ms;\n transition: all var(--timing-base);\n -ms-flex-align: center;\n align-items: center;\n}\n\n.af7U8MvcbHE-:focus,\n.af7U8MvcbHE-:focus-visible {\n outline: none;\n}\n\n.af7U8MvcbHE-:focus-visible {\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}\n\n.af7U8MvcbHE- .e905AYK4SCc- {\n margin-left: calc(-1 * (16px / 2));\n margin-left: calc(-1 * calc(16px / 2));\n margin-left: calc(-1 * var(--space-small));\n margin-right: calc(16px / 2);\n margin-right: var(--space-small);\n}\n\n.af7U8MvcbHE- .ySADfZ0FckM- {\n margin-left: calc(16px / 2);\n margin-left: var(--space-small);\n margin-right: calc(-1 * (16px / 2));\n margin-right: calc(-1 * calc(16px / 2));\n margin-right: calc(-1 * var(--space-small));\n}\n\n.af7U8MvcbHE- .e905AYK4SCc-,\n.af7U8MvcbHE- .ySADfZ0FckM- {\n display: -ms-flexbox;\n display: flex;\n width: calc(16px * 1.5);\n width: var(--space-large);\n height: calc(16px * 1.5);\n height: var(--space-large);\n -ms-flex-negative: 0;\n flex-shrink: 0;\n border-radius: 100%;\n border-radius: var(--radius-circle);\n background-color: rgba(255, 255, 255, 1);\n background-color: var(--color-surface);\n -ms-flex-align: center;\n align-items: center;\n -ms-flex-pack: center;\n justify-content: center;\n}\n\n.af7U8MvcbHE- .e905AYK4SCc-.usdkmQ9Sxbk-,\n.af7U8MvcbHE- .ySADfZ0FckM-.usdkmQ9Sxbk- {\n display: none;\n}\n\n.af7U8MvcbHE- .dg1-Izy1eQA- {\n width: calc(16px / 16);\n width: var(--space-minuscule);\n height: 16px;\n height: var(--base-unit);\n margin: 0 calc(16px / 2);\n margin: 0 var(--space-small);\n background-color: rgb(77, 105, 116);\n background-color: var(--color-text--secondary);\n}\n\n.af7U8MvcbHE- .-lz0EYLTDgg- {\n border-radius: 100%;\n border-radius: var(--radius-circle);\n background-color: rgba(255, 255, 255, 1);\n background-color: var(--color-surface);\n}\n\n.wSI5L-5rODg- {\n border: calc(16px / 16) solid transparent;\n border: var(--border-base) solid transparent;\n color: rgb(1, 41, 57);\n color: var(--color-heading);\n background-color: var(--chip-base-bg);\n --chip--gradient-color-variation: var(--chip-base-bg);\n}\n\n.wSI5L-5rODg-:hover,\n.wSI5L-5rODg-:focus-visible {\n background-color: var(--chip-base--hover);\n --chip--gradient-color-variation--hover: var(--chip-base--hover);\n}\n\n.SmUxkzpIC84-,\n.SmUxkzpIC84-:hover,\n.SmUxkzpIC84-:focus-visible,\n.Mux23dmZSuw-.SmUxkzpIC84-,\n.Mux23dmZSuw-.SmUxkzpIC84-:hover,\n.Mux23dmZSuw-.SmUxkzpIC84-:focus-visible {\n border: calc(16px / 16) solid rgb(201, 66, 33);\n border: var(--border-base) solid var(--color-critical);\n background-color: rgb(255, 226, 219);\n background-color: var(--color-critical--surface);\n --chip--gradient-color-variation: var(--color-critical--surface);\n --chip--gradient-color-variation--hover: var(--color-critical--surface);\n}\n\n.SmUxkzpIC84-:hover,\n.SmUxkzpIC84-:focus-visible,\n.Mux23dmZSuw-.SmUxkzpIC84-:hover,\n.Mux23dmZSuw-.SmUxkzpIC84-:focus-visible {\n background-color: rgb(193, 201, 206);\n background-color: var(--color-surface--background--hover);\n --chip--gradient-color-variation: var(--color-surface--background--hover);\n --chip--gradient-color-variation--hover: var(\n --color-surface--background--hover\n );\n}\n\n.Mux23dmZSuw- {\n border: calc(16px / 16) solid rgb(217, 223, 225);\n border: var(--border-base) solid var(--color-border);\n background-color: rgba(255, 255, 255, 1);\n background-color: var(--color-surface);\n --chip--gradient-color-variation: var(--color-surface);\n}\n\n/* CAUTION: Order is important here since\n* there is are different styles for subtle:focus and subtle:hover\n* and we want hover to take priority\n*/\n\n.Mux23dmZSuw-:focus-visible {\n --chip--gradient-color-variation--hover: var(--color-surface);\n}\n\n.Mux23dmZSuw-:hover {\n border: calc(16px / 16) solid var(--chip-base-bg);\n border: var(--border-base) solid var(--chip-base-bg);\n background-color: var(--chip-base-bg);\n --chip--gradient-color-variation--hover: var(--chip-base-bg);\n}\n\n.SmUxkzpIC84-.MbRItb9vKhc-,\n.SmUxkzpIC84-.MbRItb9vKhc-:hover,\n.SmUxkzpIC84-.MbRItb9vKhc-:focus-visible {\n background-color: rgb(225, 225, 225);\n background-color: var(--color-disabled--secondary);\n cursor: auto;\n}\n\n.MbRItb9vKhc-,\n.MbRItb9vKhc-:hover,\n.MbRItb9vKhc-:focus-visible {\n border: calc(16px / 16) solid rgb(225, 225, 225);\n border: var(--border-base) solid var(--color-disabled--secondary);\n color: rgb(181, 181, 181);\n color: var(--color-disabled);\n background-color: rgb(225, 225, 225);\n background-color: var(--color-disabled--secondary);\n cursor: auto;\n --chip--gradient-color-variation: var(--color-disabled--secondary);\n --chip--gradient-color-variation--hover: var(--color-disabled--secondary);\n}\n\n.MbRItb9vKhc- .dg1-Izy1eQA- {\n background-color: rgb(181, 181, 181);\n background-color: var(--color-disabled);\n}\n\n.af7U8MvcbHE-.MbRItb9vKhc- .ySADfZ0FckM- {\n background-color: rgb(225, 225, 225);\n background-color: var(--color-disabled--secondary);\n}\n\n.af7U8MvcbHE-.MbRItb9vKhc- .ySADfZ0FckM- path {\n fill: rgb(181, 181, 181);\n fill: var(--color-disabled);\n}\n\n.tJhURjR2Vec- {\n display: -ms-flexbox;\n display: flex;\n position: relative;\n overflow: hidden;\n -ms-flex-wrap: nowrap;\n flex-wrap: nowrap;\n}\n\n.tJhURjR2Vec- > * {\n -ms-flex: 0 0 auto;\n flex: 0 0 auto;\n}\n\n.tJhURjR2Vec- > p {\n overflow: hidden;\n white-space: nowrap;\n}\n\n.G3QXY0rNcK0- {\n position: absolute;\n top: 0;\n right: 0;\n width: calc(16px * 1);\n width: var(--space-base);\n height: 100%;\n background: linear-gradient(\n to left,\n var(--chip-base-bg) 5%,\n rgba(255, 255, 255, 0)\n );\n background: linear-gradient(\n to left,\n var(--chip--gradient-color-variation) 5%,\n rgba(255, 255, 255, 0)\n );\n}\n\n.af7U8MvcbHE-:focus-visible .G3QXY0rNcK0-,\n.af7U8MvcbHE-:hover .G3QXY0rNcK0- {\n background: linear-gradient(\n to left,\n var(--chip-base--hover) 5%,\n rgba(255, 255, 255, 0)\n );\n background: linear-gradient(\n to left,\n var(--chip--gradient-color-variation--hover) 5%,\n rgba(255, 255, 255, 0)\n );\n}\n\n.MUKEW6c2nNA- {\n display: inline-block;\n width: 1px;\n}\n";
|
|
14
|
+
var styles = {"chip":"af7U8MvcbHE-","prefix":"e905AYK4SCc-","suffix":"ySADfZ0FckM-","empty":"usdkmQ9Sxbk-","chipBar":"dg1-Izy1eQA-","selected":"-lz0EYLTDgg-","base":"wSI5L-5rODg-","invalid":"SmUxkzpIC84-","subtle":"Mux23dmZSuw-","disabled":"MbRItb9vKhc-","chipContent":"tJhURjR2Vec-","truncateGradient":"G3QXY0rNcK0-","chipLabelRef":"MUKEW6c2nNA-"};
|
|
15
|
+
styleInject_es.styleInject(css_248z);
|
|
16
|
+
|
|
17
|
+
function ChipPrefix({ children }) {
|
|
18
|
+
const singleChild = useChildComponent.useChildComponent(children, d => d.type === Avatar.Avatar || d.type === Icon.Icon);
|
|
19
|
+
return (React.createElement("span", { className: classnames(styles.prefix, !singleChild && styles.empty) }, singleChild));
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
function ChipSuffix({ children, className }) {
|
|
23
|
+
var _a;
|
|
24
|
+
let singleChild = useChildComponent.useChildComponent(children, d => d.type === Icon.Icon);
|
|
25
|
+
if (!allowedSuffixIcons.includes((_a = singleChild === null || singleChild === void 0 ? void 0 : singleChild.props) === null || _a === void 0 ? void 0 : _a.name)) {
|
|
26
|
+
singleChild = undefined;
|
|
27
|
+
}
|
|
28
|
+
return (React.createElement("span", { className: classnames(styles.suffix, className, !singleChild && styles.empty) }, singleChild));
|
|
29
|
+
}
|
|
30
|
+
const allowedSuffixIcons = ["cross", "add", "checkmark", "arrowDown"];
|
|
31
|
+
|
|
32
|
+
const Chip = ({ ariaLabel, disabled, heading, invalid, label, value, onClick, onKeyDown, children, role = "button", tabIndex = 0, variation = "base", }) => {
|
|
33
|
+
const classes = classnames(styles.chip, {
|
|
34
|
+
[styles.invalid]: invalid,
|
|
35
|
+
[styles.base]: variation === "base",
|
|
36
|
+
[styles.subtle]: variation === "subtle",
|
|
37
|
+
[styles.disabled]: disabled,
|
|
38
|
+
});
|
|
39
|
+
const prefix = useChildComponent.useChildComponent(children, d => d.type === Chip.Prefix);
|
|
40
|
+
const suffix = useChildComponent.useChildComponent(children, d => d.type === Chip.Suffix);
|
|
41
|
+
const [labelRef, labelFullyVisible] = useInView.useInView.useInView();
|
|
42
|
+
const [headingRef, headingFullyVisible] = useInView.useInView.useInView();
|
|
43
|
+
const tooltipMessage = getTooltipMessage(labelFullyVisible, headingFullyVisible, label, heading);
|
|
44
|
+
return (React.createElement(Tooltip.Tooltip, { message: tooltipMessage },
|
|
45
|
+
React.createElement("button", { className: classes, onClick: (ev) => onClick && onClick(value, ev), tabIndex: tabIndex, onKeyDown: onKeyDown, "aria-label": ariaLabel || label, disabled: disabled, role: role, type: "button" },
|
|
46
|
+
prefix,
|
|
47
|
+
React.createElement("div", { className: styles.chipContent },
|
|
48
|
+
heading && (React.createElement(React.Fragment, null,
|
|
49
|
+
React.createElement(Typography.Typography, { size: "base", fontWeight: "medium" },
|
|
50
|
+
heading,
|
|
51
|
+
React.createElement("span", { ref: headingRef, className: styles.chipLabelRef })),
|
|
52
|
+
label && React.createElement("span", { className: styles.chipBar }))),
|
|
53
|
+
React.createElement(Typography.Typography, { size: "base" },
|
|
54
|
+
label,
|
|
55
|
+
React.createElement("span", { ref: labelRef, className: styles.chipLabelRef })),
|
|
56
|
+
!labelFullyVisible && (React.createElement("div", { className: styles.truncateGradient, "data-testid": "ATL-Chip-Truncation-Gradient" }))),
|
|
57
|
+
suffix)));
|
|
58
|
+
};
|
|
59
|
+
function getTooltipMessage(labelFullyVisible, headingFullyVisible, label, heading) {
|
|
60
|
+
let message = "";
|
|
61
|
+
if (heading && !headingFullyVisible) {
|
|
62
|
+
message = `${heading} | ${label}`;
|
|
63
|
+
}
|
|
64
|
+
else if (!labelFullyVisible) {
|
|
65
|
+
message = label;
|
|
66
|
+
}
|
|
67
|
+
return message;
|
|
68
|
+
}
|
|
69
|
+
Chip.Prefix = ChipPrefix;
|
|
70
|
+
Chip.Suffix = ChipSuffix;
|
|
71
|
+
|
|
72
|
+
exports.Chip = Chip;
|
|
73
|
+
exports.styles = styles;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import classnames from 'classnames';
|
|
3
|
+
import { u as useInView } from './useInView-Yth15M0p.js';
|
|
4
|
+
import { s as styleInject } from './style-inject.es-tgCJW-Cu.js';
|
|
5
|
+
import { A as Avatar } from './Avatar-CckTha1O.js';
|
|
6
|
+
import { I as Icon } from './Icon-CoHJokXb.js';
|
|
7
|
+
import { u as useChildComponent } from './useChildComponent-D95jU7NM.js';
|
|
8
|
+
import { T as Typography } from './Typography-BLZqr2yE.js';
|
|
9
|
+
import { T as Tooltip } from './Tooltip-Cfg4l2JJ.js';
|
|
10
|
+
|
|
11
|
+
var css_248z = ":root {\n --chip--gradient-color-variation: var(--chip-base-bg);\n --chip--gradient-color-variation--hover: var(--chip-base--hover);\n}\n\n.af7U8MvcbHE- {\n --chip-height: 40px;\n --chip-radius: 20px;\n --chip-base-bg: var(--color-surface--background);\n --chip-base--hover: var(--color-surface--background--hover);\n display: -ms-flexbox;\n display: flex;\n position: relative;\n height: 40px;\n height: var(--chip-height);\n min-width: 0;\n padding: calc(16px / 2) 16px;\n padding: var(--space-small) var(--base-unit);\n border: calc(16px / 16) solid transparent;\n border: var(--border-base) solid transparent;\n border-radius: 20px;\n border-radius: var(--chip-radius);\n color: rgb(1, 41, 57);\n color: var(--color-heading);\n text-align: left;\n cursor: pointer;\n transition: all 200ms;\n transition: all var(--timing-base);\n -ms-flex-align: center;\n align-items: center;\n}\n\n.af7U8MvcbHE-:focus,\n.af7U8MvcbHE-:focus-visible {\n outline: none;\n}\n\n.af7U8MvcbHE-:focus-visible {\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}\n\n.af7U8MvcbHE- .e905AYK4SCc- {\n margin-left: calc(-1 * (16px / 2));\n margin-left: calc(-1 * calc(16px / 2));\n margin-left: calc(-1 * var(--space-small));\n margin-right: calc(16px / 2);\n margin-right: var(--space-small);\n}\n\n.af7U8MvcbHE- .ySADfZ0FckM- {\n margin-left: calc(16px / 2);\n margin-left: var(--space-small);\n margin-right: calc(-1 * (16px / 2));\n margin-right: calc(-1 * calc(16px / 2));\n margin-right: calc(-1 * var(--space-small));\n}\n\n.af7U8MvcbHE- .e905AYK4SCc-,\n.af7U8MvcbHE- .ySADfZ0FckM- {\n display: -ms-flexbox;\n display: flex;\n width: calc(16px * 1.5);\n width: var(--space-large);\n height: calc(16px * 1.5);\n height: var(--space-large);\n -ms-flex-negative: 0;\n flex-shrink: 0;\n border-radius: 100%;\n border-radius: var(--radius-circle);\n background-color: rgba(255, 255, 255, 1);\n background-color: var(--color-surface);\n -ms-flex-align: center;\n align-items: center;\n -ms-flex-pack: center;\n justify-content: center;\n}\n\n.af7U8MvcbHE- .e905AYK4SCc-.usdkmQ9Sxbk-,\n.af7U8MvcbHE- .ySADfZ0FckM-.usdkmQ9Sxbk- {\n display: none;\n}\n\n.af7U8MvcbHE- .dg1-Izy1eQA- {\n width: calc(16px / 16);\n width: var(--space-minuscule);\n height: 16px;\n height: var(--base-unit);\n margin: 0 calc(16px / 2);\n margin: 0 var(--space-small);\n background-color: rgb(77, 105, 116);\n background-color: var(--color-text--secondary);\n}\n\n.af7U8MvcbHE- .-lz0EYLTDgg- {\n border-radius: 100%;\n border-radius: var(--radius-circle);\n background-color: rgba(255, 255, 255, 1);\n background-color: var(--color-surface);\n}\n\n.wSI5L-5rODg- {\n border: calc(16px / 16) solid transparent;\n border: var(--border-base) solid transparent;\n color: rgb(1, 41, 57);\n color: var(--color-heading);\n background-color: var(--chip-base-bg);\n --chip--gradient-color-variation: var(--chip-base-bg);\n}\n\n.wSI5L-5rODg-:hover,\n.wSI5L-5rODg-:focus-visible {\n background-color: var(--chip-base--hover);\n --chip--gradient-color-variation--hover: var(--chip-base--hover);\n}\n\n.SmUxkzpIC84-,\n.SmUxkzpIC84-:hover,\n.SmUxkzpIC84-:focus-visible,\n.Mux23dmZSuw-.SmUxkzpIC84-,\n.Mux23dmZSuw-.SmUxkzpIC84-:hover,\n.Mux23dmZSuw-.SmUxkzpIC84-:focus-visible {\n border: calc(16px / 16) solid rgb(201, 66, 33);\n border: var(--border-base) solid var(--color-critical);\n background-color: rgb(255, 226, 219);\n background-color: var(--color-critical--surface);\n --chip--gradient-color-variation: var(--color-critical--surface);\n --chip--gradient-color-variation--hover: var(--color-critical--surface);\n}\n\n.SmUxkzpIC84-:hover,\n.SmUxkzpIC84-:focus-visible,\n.Mux23dmZSuw-.SmUxkzpIC84-:hover,\n.Mux23dmZSuw-.SmUxkzpIC84-:focus-visible {\n background-color: rgb(193, 201, 206);\n background-color: var(--color-surface--background--hover);\n --chip--gradient-color-variation: var(--color-surface--background--hover);\n --chip--gradient-color-variation--hover: var(\n --color-surface--background--hover\n );\n}\n\n.Mux23dmZSuw- {\n border: calc(16px / 16) solid rgb(217, 223, 225);\n border: var(--border-base) solid var(--color-border);\n background-color: rgba(255, 255, 255, 1);\n background-color: var(--color-surface);\n --chip--gradient-color-variation: var(--color-surface);\n}\n\n/* CAUTION: Order is important here since\n* there is are different styles for subtle:focus and subtle:hover\n* and we want hover to take priority\n*/\n\n.Mux23dmZSuw-:focus-visible {\n --chip--gradient-color-variation--hover: var(--color-surface);\n}\n\n.Mux23dmZSuw-:hover {\n border: calc(16px / 16) solid var(--chip-base-bg);\n border: var(--border-base) solid var(--chip-base-bg);\n background-color: var(--chip-base-bg);\n --chip--gradient-color-variation--hover: var(--chip-base-bg);\n}\n\n.SmUxkzpIC84-.MbRItb9vKhc-,\n.SmUxkzpIC84-.MbRItb9vKhc-:hover,\n.SmUxkzpIC84-.MbRItb9vKhc-:focus-visible {\n background-color: rgb(225, 225, 225);\n background-color: var(--color-disabled--secondary);\n cursor: auto;\n}\n\n.MbRItb9vKhc-,\n.MbRItb9vKhc-:hover,\n.MbRItb9vKhc-:focus-visible {\n border: calc(16px / 16) solid rgb(225, 225, 225);\n border: var(--border-base) solid var(--color-disabled--secondary);\n color: rgb(181, 181, 181);\n color: var(--color-disabled);\n background-color: rgb(225, 225, 225);\n background-color: var(--color-disabled--secondary);\n cursor: auto;\n --chip--gradient-color-variation: var(--color-disabled--secondary);\n --chip--gradient-color-variation--hover: var(--color-disabled--secondary);\n}\n\n.MbRItb9vKhc- .dg1-Izy1eQA- {\n background-color: rgb(181, 181, 181);\n background-color: var(--color-disabled);\n}\n\n.af7U8MvcbHE-.MbRItb9vKhc- .ySADfZ0FckM- {\n background-color: rgb(225, 225, 225);\n background-color: var(--color-disabled--secondary);\n}\n\n.af7U8MvcbHE-.MbRItb9vKhc- .ySADfZ0FckM- path {\n fill: rgb(181, 181, 181);\n fill: var(--color-disabled);\n}\n\n.tJhURjR2Vec- {\n display: -ms-flexbox;\n display: flex;\n position: relative;\n overflow: hidden;\n -ms-flex-wrap: nowrap;\n flex-wrap: nowrap;\n}\n\n.tJhURjR2Vec- > * {\n -ms-flex: 0 0 auto;\n flex: 0 0 auto;\n}\n\n.tJhURjR2Vec- > p {\n overflow: hidden;\n white-space: nowrap;\n}\n\n.G3QXY0rNcK0- {\n position: absolute;\n top: 0;\n right: 0;\n width: calc(16px * 1);\n width: var(--space-base);\n height: 100%;\n background: linear-gradient(\n to left,\n var(--chip-base-bg) 5%,\n rgba(255, 255, 255, 0)\n );\n background: linear-gradient(\n to left,\n var(--chip--gradient-color-variation) 5%,\n rgba(255, 255, 255, 0)\n );\n}\n\n.af7U8MvcbHE-:focus-visible .G3QXY0rNcK0-,\n.af7U8MvcbHE-:hover .G3QXY0rNcK0- {\n background: linear-gradient(\n to left,\n var(--chip-base--hover) 5%,\n rgba(255, 255, 255, 0)\n );\n background: linear-gradient(\n to left,\n var(--chip--gradient-color-variation--hover) 5%,\n rgba(255, 255, 255, 0)\n );\n}\n\n.MUKEW6c2nNA- {\n display: inline-block;\n width: 1px;\n}\n";
|
|
12
|
+
var styles = {"chip":"af7U8MvcbHE-","prefix":"e905AYK4SCc-","suffix":"ySADfZ0FckM-","empty":"usdkmQ9Sxbk-","chipBar":"dg1-Izy1eQA-","selected":"-lz0EYLTDgg-","base":"wSI5L-5rODg-","invalid":"SmUxkzpIC84-","subtle":"Mux23dmZSuw-","disabled":"MbRItb9vKhc-","chipContent":"tJhURjR2Vec-","truncateGradient":"G3QXY0rNcK0-","chipLabelRef":"MUKEW6c2nNA-"};
|
|
13
|
+
styleInject(css_248z);
|
|
14
|
+
|
|
15
|
+
function ChipPrefix({ children }) {
|
|
16
|
+
const singleChild = useChildComponent(children, d => d.type === Avatar || d.type === Icon);
|
|
17
|
+
return (React.createElement("span", { className: classnames(styles.prefix, !singleChild && styles.empty) }, singleChild));
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
function ChipSuffix({ children, className }) {
|
|
21
|
+
var _a;
|
|
22
|
+
let singleChild = useChildComponent(children, d => d.type === Icon);
|
|
23
|
+
if (!allowedSuffixIcons.includes((_a = singleChild === null || singleChild === void 0 ? void 0 : singleChild.props) === null || _a === void 0 ? void 0 : _a.name)) {
|
|
24
|
+
singleChild = undefined;
|
|
25
|
+
}
|
|
26
|
+
return (React.createElement("span", { className: classnames(styles.suffix, className, !singleChild && styles.empty) }, singleChild));
|
|
27
|
+
}
|
|
28
|
+
const allowedSuffixIcons = ["cross", "add", "checkmark", "arrowDown"];
|
|
29
|
+
|
|
30
|
+
const Chip = ({ ariaLabel, disabled, heading, invalid, label, value, onClick, onKeyDown, children, role = "button", tabIndex = 0, variation = "base", }) => {
|
|
31
|
+
const classes = classnames(styles.chip, {
|
|
32
|
+
[styles.invalid]: invalid,
|
|
33
|
+
[styles.base]: variation === "base",
|
|
34
|
+
[styles.subtle]: variation === "subtle",
|
|
35
|
+
[styles.disabled]: disabled,
|
|
36
|
+
});
|
|
37
|
+
const prefix = useChildComponent(children, d => d.type === Chip.Prefix);
|
|
38
|
+
const suffix = useChildComponent(children, d => d.type === Chip.Suffix);
|
|
39
|
+
const [labelRef, labelFullyVisible] = useInView.useInView();
|
|
40
|
+
const [headingRef, headingFullyVisible] = useInView.useInView();
|
|
41
|
+
const tooltipMessage = getTooltipMessage(labelFullyVisible, headingFullyVisible, label, heading);
|
|
42
|
+
return (React.createElement(Tooltip, { message: tooltipMessage },
|
|
43
|
+
React.createElement("button", { className: classes, onClick: (ev) => onClick && onClick(value, ev), tabIndex: tabIndex, onKeyDown: onKeyDown, "aria-label": ariaLabel || label, disabled: disabled, role: role, type: "button" },
|
|
44
|
+
prefix,
|
|
45
|
+
React.createElement("div", { className: styles.chipContent },
|
|
46
|
+
heading && (React.createElement(React.Fragment, null,
|
|
47
|
+
React.createElement(Typography, { size: "base", fontWeight: "medium" },
|
|
48
|
+
heading,
|
|
49
|
+
React.createElement("span", { ref: headingRef, className: styles.chipLabelRef })),
|
|
50
|
+
label && React.createElement("span", { className: styles.chipBar }))),
|
|
51
|
+
React.createElement(Typography, { size: "base" },
|
|
52
|
+
label,
|
|
53
|
+
React.createElement("span", { ref: labelRef, className: styles.chipLabelRef })),
|
|
54
|
+
!labelFullyVisible && (React.createElement("div", { className: styles.truncateGradient, "data-testid": "ATL-Chip-Truncation-Gradient" }))),
|
|
55
|
+
suffix)));
|
|
56
|
+
};
|
|
57
|
+
function getTooltipMessage(labelFullyVisible, headingFullyVisible, label, heading) {
|
|
58
|
+
let message = "";
|
|
59
|
+
if (heading && !headingFullyVisible) {
|
|
60
|
+
message = `${heading} | ${label}`;
|
|
61
|
+
}
|
|
62
|
+
else if (!labelFullyVisible) {
|
|
63
|
+
message = label;
|
|
64
|
+
}
|
|
65
|
+
return message;
|
|
66
|
+
}
|
|
67
|
+
Chip.Prefix = ChipPrefix;
|
|
68
|
+
Chip.Suffix = ChipSuffix;
|
|
69
|
+
|
|
70
|
+
export { Chip as C, styles as s };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { _ as __rest } from './tslib.es6-Df1SgIEn.js';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { I as Icon } from './Icon-CoHJokXb.js';
|
|
4
|
-
import { C as Chip, s as styles } from './Chip-
|
|
4
|
+
import { C as Chip, s as styles } from './Chip-DiLsQCIb.js';
|
|
5
5
|
|
|
6
6
|
function ChipSelectable(_a) {
|
|
7
7
|
var { selected } = _a, rest = __rest(_a, ["selected"]);
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var tslib_es6 = require('./tslib.es6-ld72nsZq.js');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var Icon = require('./Icon-B9XNdA1T.js');
|
|
6
|
-
var Chip = require('./Chip-
|
|
6
|
+
var Chip = require('./Chip-D0QzrwiJ.js');
|
|
7
7
|
|
|
8
8
|
function ChipSelectable(_a) {
|
|
9
9
|
var { selected } = _a, rest = tslib_es6.__rest(_a, ["selected"]);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var InternalChipDismissible = require('../../InternalChipDismissible-
|
|
3
|
+
var InternalChipDismissible = require('../../InternalChipDismissible-B9qWcqXd.js');
|
|
4
4
|
require('react');
|
|
5
5
|
require('../../style-inject.es-XZHJH68X.js');
|
|
6
6
|
require('../../useScrollToActive-DMDRmhoI.js');
|
|
@@ -16,16 +16,16 @@ require('../../Icon-B9XNdA1T.js');
|
|
|
16
16
|
require('@jobber/design');
|
|
17
17
|
require('react-popper');
|
|
18
18
|
require('classnames');
|
|
19
|
-
require('../../Text-
|
|
20
|
-
require('../../Typography-
|
|
21
|
-
require('../../Button-
|
|
19
|
+
require('../../Text-L0uH5HlC.js');
|
|
20
|
+
require('../../Typography-g6o6Nu4H.js');
|
|
21
|
+
require('../../Button-CdFKgOjt.js');
|
|
22
22
|
require('react-router-dom');
|
|
23
|
-
require('../../Spinner-
|
|
24
|
-
require('../../useAssert-
|
|
25
|
-
require('../../
|
|
26
|
-
require('../../Avatar-
|
|
23
|
+
require('../../Spinner-YuQ5bN78.js');
|
|
24
|
+
require('../../useAssert-CvlH4Ru0.js');
|
|
25
|
+
require('../../_polyfill-node.process-Clw8ILH4.js');
|
|
26
|
+
require('../../Avatar-AkaG8y0Q.js');
|
|
27
27
|
require('color');
|
|
28
|
-
require('../../Tooltip-
|
|
28
|
+
require('../../Tooltip-DSGn-Mt6.js');
|
|
29
29
|
require('react-dom');
|
|
30
30
|
require('framer-motion');
|
|
31
31
|
require('../../useSafeLayoutEffect-Qir6pm57.js');
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { I as InternalChipDismissible } from '../../InternalChipDismissible-
|
|
1
|
+
export { I as InternalChipDismissible } from '../../InternalChipDismissible-BeNRgOsk.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import '../../style-inject.es-tgCJW-Cu.js';
|
|
4
4
|
import '../../useScrollToActive-D-aHcMpx.js';
|
|
@@ -14,16 +14,16 @@ import '../../Icon-CoHJokXb.js';
|
|
|
14
14
|
import '@jobber/design';
|
|
15
15
|
import 'react-popper';
|
|
16
16
|
import 'classnames';
|
|
17
|
-
import '../../Text-
|
|
18
|
-
import '../../Typography-
|
|
19
|
-
import '../../Button-
|
|
17
|
+
import '../../Text-B0MvS7fA.js';
|
|
18
|
+
import '../../Typography-BLZqr2yE.js';
|
|
19
|
+
import '../../Button-DCEN_VU9.js';
|
|
20
20
|
import 'react-router-dom';
|
|
21
|
-
import '../../Spinner-
|
|
22
|
-
import '../../useAssert-
|
|
23
|
-
import '../../
|
|
24
|
-
import '../../Avatar-
|
|
21
|
+
import '../../Spinner-5gazZn3N.js';
|
|
22
|
+
import '../../useAssert-BeGBODqQ.js';
|
|
23
|
+
import '../../_polyfill-node.process-CzATM2P1.js';
|
|
24
|
+
import '../../Avatar-CckTha1O.js';
|
|
25
25
|
import 'color';
|
|
26
|
-
import '../../Tooltip-
|
|
26
|
+
import '../../Tooltip-Cfg4l2JJ.js';
|
|
27
27
|
import 'react-dom';
|
|
28
28
|
import 'framer-motion';
|
|
29
29
|
import '../../useSafeLayoutEffect-yaw3NyzX.js';
|
package/dist/Chips/index.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var React = require('react');
|
|
4
|
-
var InternalChipDismissible = require('../InternalChipDismissible-
|
|
5
|
-
var Chips = require('../Chips-
|
|
6
|
-
var useAssert = require('../useAssert-
|
|
4
|
+
var InternalChipDismissible = require('../InternalChipDismissible-B9qWcqXd.js');
|
|
5
|
+
var Chips = require('../Chips-PfjfGMzi.js');
|
|
6
|
+
var useAssert = require('../useAssert-CvlH4Ru0.js');
|
|
7
7
|
require('../style-inject.es-XZHJH68X.js');
|
|
8
8
|
require('../useScrollToActive-DMDRmhoI.js');
|
|
9
9
|
require('../_commonjsHelpers-B83fTs8d.js');
|
|
@@ -18,18 +18,18 @@ require('../Icon-B9XNdA1T.js');
|
|
|
18
18
|
require('@jobber/design');
|
|
19
19
|
require('react-popper');
|
|
20
20
|
require('classnames');
|
|
21
|
-
require('../Text-
|
|
22
|
-
require('../Typography-
|
|
23
|
-
require('../Button-
|
|
21
|
+
require('../Text-L0uH5HlC.js');
|
|
22
|
+
require('../Typography-g6o6Nu4H.js');
|
|
23
|
+
require('../Button-CdFKgOjt.js');
|
|
24
24
|
require('react-router-dom');
|
|
25
|
-
require('../Spinner-
|
|
26
|
-
require('../Avatar-
|
|
25
|
+
require('../Spinner-YuQ5bN78.js');
|
|
26
|
+
require('../Avatar-AkaG8y0Q.js');
|
|
27
27
|
require('color');
|
|
28
|
-
require('../Tooltip-
|
|
28
|
+
require('../Tooltip-DSGn-Mt6.js');
|
|
29
29
|
require('react-dom');
|
|
30
30
|
require('framer-motion');
|
|
31
31
|
require('../useSafeLayoutEffect-Qir6pm57.js');
|
|
32
|
-
require('../
|
|
32
|
+
require('../_polyfill-node.process-Clw8ILH4.js');
|
|
33
33
|
|
|
34
34
|
function ChipDismissible({ label, disabled, invalid, prefix, onClick, onRequestRemove, }) {
|
|
35
35
|
return (React.createElement(InternalChipDismissible.InternalChip, { label: label, disabled: disabled, invalid: invalid, prefix: prefix, onClick: onClick, suffix: React.createElement(InternalChipDismissible.InternalChipButton, { icon: "remove", label: label, invalid: invalid, disabled: disabled, onClick: onRequestRemove }) }));
|