@jobber/components 4.90.5 → 4.90.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AnimatedPresence/{index.cjs → index.js} +3 -1
- package/dist/{AnimatedPresence-BWePg1sL.js → AnimatedPresence-20a02aaa.js} +7 -3
- package/dist/AnimatedSwitcher/index.js +13 -0
- package/dist/{AnimatedSwitcher-D_Qj_hx5.js → AnimatedSwitcher-3d45ec5d.js} +8 -4
- package/dist/AtlantisContext/{index.cjs → index.js} +3 -1
- package/dist/Autocomplete/index.js +214 -0
- package/dist/Avatar/index.js +15 -0
- package/dist/Avatar-76a799fa.js +78 -0
- package/dist/Banner/index.js +111 -0
- package/dist/Button/index.js +16 -0
- package/dist/Button-6b922fc1.js +57 -0
- package/dist/ButtonDismiss/index.js +17 -0
- package/dist/ButtonDismiss-a3ba1de2.js +14 -0
- package/dist/Card/index.js +24 -0
- package/dist/Card-01d6ba19.js +93 -0
- package/dist/Checkbox/index.js +18 -0
- package/dist/Checkbox-e481a4b1.js +63 -0
- package/dist/Chip/index.js +42 -0
- package/dist/Chip-76f18555.js +89 -0
- package/dist/Chips/index.js +525 -0
- package/dist/Combobox/index.js +41 -0
- package/dist/Combobox-6d864202.js +481 -0
- package/dist/ConfirmationModal/index.js +32 -0
- package/dist/{ConfirmationModal-AtuPSZb4.js → ConfirmationModal-b44e302f.js} +12 -8
- package/dist/Content/index.js +12 -0
- package/dist/Content-e3f7b6fc.js +24 -0
- package/dist/Countdown/index.js +72 -0
- package/dist/DataDump/index.js +37 -0
- package/dist/DataList/index.js +1346 -0
- package/dist/DataTable/index.js +301 -0
- package/dist/DatePicker/index.js +21 -0
- package/dist/DatePicker-305a5b82.js +144 -0
- package/dist/DescriptionList/index.js +24 -0
- package/dist/Disclosure/index.js +46 -0
- package/dist/Divider/index.js +29 -0
- package/dist/Drawer/index.js +50 -0
- package/dist/Emphasis/index.js +13 -0
- package/dist/Emphasis-a77d8ee9.js +19 -0
- package/dist/FeatureSwitch/index.js +71 -0
- package/dist/Flex/index.js +12 -0
- package/dist/Flex-d490c4db.js +38 -0
- package/dist/{Form-5myjIaNx.js → Form/index.js} +9 -3
- package/dist/FormField/index.js +24 -0
- package/dist/FormField-f6fadff2.js +253 -0
- package/dist/FormatDate/{index.cjs → index.js} +3 -1
- package/dist/{FormatDate-CcycFjAL.js → FormatDate-70ea5b43.js} +5 -1
- package/dist/FormatEmail/index.js +23 -0
- package/dist/FormatFile/index.js +37 -0
- package/dist/FormatFile-32228107.js +162 -0
- package/dist/{FormatRelativeDateTime-hdrEQWhy.js → FormatRelativeDateTime/index.js} +11 -5
- package/dist/{FormatTime-DrHluWW3.js → FormatTime/index.js} +7 -1
- package/dist/Gallery/index.js +101 -0
- package/dist/Glimmer/index.js +15 -0
- package/dist/Glimmer-84dee1ed.js +77 -0
- package/dist/Grid/index.js +76 -0
- package/dist/Heading/index.js +15 -0
- package/dist/{Heading-Y2BrFvzY.js → Heading-23d382a1.js} +7 -3
- package/dist/Icon/index.js +11 -0
- package/dist/Icon-405a216c.js +40 -0
- package/dist/InlineLabel/index.js +13 -0
- package/dist/InlineLabel-c8fc28f0.js +28 -0
- package/dist/InputAvatar/index.js +70 -0
- package/dist/{InputDate-kNxwMqkc.js → InputDate/index.js} +31 -6
- package/dist/InputEmail/index.js +43 -0
- package/dist/InputFile/index.js +25 -0
- package/dist/InputFile-20b9074a.js +190 -0
- package/dist/InputGroup/index.js +12 -0
- package/dist/InputGroup-8d4fd4eb.js +33 -0
- package/dist/InputNumber/index.js +25 -0
- package/dist/{InputNumber-CW4ttUb0.js → InputNumber-e15cc1a3.js} +6 -2
- package/dist/InputPassword/index.js +41 -0
- package/dist/{InputPhoneNumber-DHO2lp-T.js → InputPhoneNumber/index.js} +27 -7
- package/dist/InputText/index.js +26 -0
- package/dist/{InputText-C_iZe7xf.js → InputText-130b0440.js} +8 -4
- package/dist/{InputTime-DemVybcJ.js → InputTime/index.js} +25 -5
- package/dist/InputValidation/index.js +17 -0
- package/dist/InputValidation-a92bb519.js +29 -0
- package/dist/LightBox/index.js +25 -0
- package/dist/LightBox-7efe8932.js +121 -0
- package/dist/Link/index.js +15 -0
- package/dist/List/index.js +94 -0
- package/dist/Markdown/index.js +20 -0
- package/dist/Markdown-0f24de70.js +62 -0
- package/dist/Menu/index.js +21 -0
- package/dist/Menu-d6dd673e.js +139 -0
- package/dist/Modal/index.js +26 -0
- package/dist/Modal-067becad.js +73 -0
- package/dist/MultiSelect/index.js +182 -0
- package/dist/Option-a1dbc08a.js +19 -0
- package/dist/Page/index.js +78 -0
- package/dist/Popover/index.js +65 -0
- package/dist/ProgressBar/index.js +12 -0
- package/dist/ProgressBar-b68edc8f.js +43 -0
- package/dist/RadioGroup/index.js +15 -0
- package/dist/RadioGroup-678f4932.js +46 -0
- package/dist/RecurringSelect/index.js +227 -0
- package/dist/Select/index.js +26 -0
- package/dist/Spinner/index.js +12 -0
- package/dist/Spinner-9d8fc7ff.js +24 -0
- package/dist/StatusIndicator/index.js +11 -0
- package/dist/StatusIndicator-7b5258ea.js +18 -0
- package/dist/StatusLabel/index.js +28 -0
- package/dist/Switch/index.js +13 -0
- package/dist/Switch-eac89586.js +56 -0
- package/dist/Table/index.js +66 -0
- package/dist/Tabs/index.js +80 -0
- package/dist/Text/index.js +13 -0
- package/dist/{Text-BKFV1Z0j.js → Text-fbeaaca6.js} +6 -2
- package/dist/Toast/index.js +111 -0
- package/dist/Tooltip/index.js +17 -0
- package/dist/Tooltip-b9de6e57.js +114 -0
- package/dist/Typography/index.js +12 -0
- package/dist/Typography-e2a23b7e.js +62 -0
- package/dist/style-inject.es-9d2f5f4e.js +30 -0
- package/dist/tslib.es6-754e2961.js +46 -0
- package/dist/{useAtlantisConfig-Ckfr55qY.js → useAtlantisConfig-ed0bee66.js} +2 -2
- package/package.json +8 -394
- package/{rollup.config.mjs → rollup.config.js} +17 -50
- package/dist/AnimatedPresence/index.mjs +0 -4
- package/dist/AnimatedPresence-CzXm0q2a.js +0 -98
- package/dist/AnimatedSwitcher/index.cjs +0 -11
- package/dist/AnimatedSwitcher/index.mjs +0 -5
- package/dist/AnimatedSwitcher--j45gdP1.js +0 -90
- package/dist/AtlantisContext/index.mjs +0 -2
- package/dist/AtlantisContext-B0Zo5l8l.js +0 -18
- package/dist/Autocomplete/index.cjs +0 -33
- package/dist/Autocomplete/index.mjs +0 -27
- package/dist/Autocomplete-DQ9t1vLy.js +0 -190
- package/dist/Autocomplete-W9xb3p2A.js +0 -192
- package/dist/Avatar/index.cjs +0 -12
- package/dist/Avatar/index.mjs +0 -6
- package/dist/Avatar-BPd8t6BU.js +0 -67
- package/dist/Avatar-DTFS2kFm.js +0 -69
- package/dist/Banner/components/BannerIcon/index.cjs +0 -13
- package/dist/Banner/components/BannerIcon/index.mjs +0 -7
- package/dist/Banner/index.cjs +0 -23
- package/dist/Banner/index.mjs +0 -17
- package/dist/Banner-Dpwk3NK9.js +0 -79
- package/dist/Banner-DzeDUJLs.js +0 -81
- package/dist/BannerIcon-Co45J70u.js +0 -19
- package/dist/BannerIcon-CzBZbMVi.js +0 -22
- package/dist/Body-4eoS-dUC.js +0 -45
- package/dist/Body-CwY_QyVF.js +0 -54
- package/dist/Button/index.cjs +0 -13
- package/dist/Button/index.mjs +0 -7
- package/dist/Button-BH4Hhr2S.js +0 -47
- package/dist/Button-BPYGeGx2.js +0 -49
- package/dist/ButtonDismiss/index.cjs +0 -14
- package/dist/ButtonDismiss/index.mjs +0 -8
- package/dist/ButtonDismiss-BajTLHia.js +0 -10
- package/dist/ButtonDismiss-Dwe1QljB.js +0 -8
- package/dist/Card/index.cjs +0 -21
- package/dist/Card/index.mjs +0 -15
- package/dist/Card-DG7RIZdT.js +0 -83
- package/dist/Card-DWjfc534.js +0 -81
- package/dist/Checkbox/index.cjs +0 -15
- package/dist/Checkbox/index.mjs +0 -9
- package/dist/Checkbox-BDVwj5E8.js +0 -53
- package/dist/Checkbox-DDDvFfUJ.js +0 -55
- package/dist/Chip/hooks/index.cjs +0 -8
- package/dist/Chip/hooks/index.mjs +0 -2
- package/dist/Chip/index.cjs +0 -26
- package/dist/Chip/index.mjs +0 -18
- package/dist/Chip-Br7-JkgN.js +0 -70
- package/dist/Chip-CGMUQ-V-.js +0 -67
- package/dist/ChipDismissible-DETPCXth.js +0 -19
- package/dist/ChipDismissible-DyMHTSQ9.js +0 -22
- package/dist/Chips/InternalChipDismissible/hooks/index.cjs +0 -23
- package/dist/Chips/InternalChipDismissible/hooks/index.mjs +0 -13
- package/dist/Chips/InternalChipDismissible/index.cjs +0 -35
- package/dist/Chips/InternalChipDismissible/index.mjs +0 -29
- package/dist/Chips/index.cjs +0 -48
- package/dist/Chips/index.mjs +0 -44
- package/dist/Chips-B1RCrN1F.js +0 -93
- package/dist/Chips-DXbRgMUE.js +0 -91
- package/dist/Combobox/components/ComboboxAction/index.cjs +0 -12
- package/dist/Combobox/components/ComboboxAction/index.mjs +0 -6
- package/dist/Combobox/components/ComboboxActivator/index.cjs +0 -27
- package/dist/Combobox/components/ComboboxActivator/index.mjs +0 -21
- package/dist/Combobox/components/ComboboxContent/ComboboxContentHeader/index.cjs +0 -14
- package/dist/Combobox/components/ComboboxContent/ComboboxContentHeader/index.mjs +0 -8
- package/dist/Combobox/components/ComboboxContent/ComboboxContentList/index.cjs +0 -24
- package/dist/Combobox/components/ComboboxContent/ComboboxContentList/index.mjs +0 -18
- package/dist/Combobox/components/ComboboxContent/ComboboxContentSearch/index.cjs +0 -10
- package/dist/Combobox/components/ComboboxContent/ComboboxContentSearch/index.mjs +0 -4
- package/dist/Combobox/components/ComboboxContent/ComboboxLoadMore/index.cjs +0 -9
- package/dist/Combobox/components/ComboboxContent/ComboboxLoadMore/index.mjs +0 -3
- package/dist/Combobox/components/ComboboxContent/index.cjs +0 -34
- package/dist/Combobox/components/ComboboxContent/index.mjs +0 -28
- package/dist/Combobox/components/ComboboxOption/index.cjs +0 -14
- package/dist/Combobox/components/ComboboxOption/index.mjs +0 -8
- package/dist/Combobox/components/ComboboxTrigger/index.cjs +0 -25
- package/dist/Combobox/components/ComboboxTrigger/index.mjs +0 -19
- package/dist/Combobox/index.cjs +0 -53
- package/dist/Combobox/index.mjs +0 -46
- package/dist/Combobox-D0Qo3yYu.js +0 -117
- package/dist/Combobox-DxPzrwcK.js +0 -119
- package/dist/ComboboxAction-Ct0ao84E.js +0 -24
- package/dist/ComboboxAction-I7TT2mVE.js +0 -22
- package/dist/ComboboxActivator-BOGk012k.js +0 -26
- package/dist/ComboboxActivator-uU5VaZqF.js +0 -28
- package/dist/ComboboxContent-miRfjhNV.js +0 -145
- package/dist/ComboboxContent-u1C3PXKH.js +0 -143
- package/dist/ComboboxContentHeader-BF43vAXl.js +0 -27
- package/dist/ComboboxContentHeader-Cirx9k9L.js +0 -29
- package/dist/ComboboxContentList-DFv7m0NQ.js +0 -77
- package/dist/ComboboxContentList-nxCsc_XU.js +0 -75
- package/dist/ComboboxContentSearch-C2RHQNXR.js +0 -34
- package/dist/ComboboxContentSearch-DX-BiYTa.js +0 -32
- package/dist/ComboboxLoadMore-CUK0n3WY.js +0 -16
- package/dist/ComboboxLoadMore-t_s_eVDp.js +0 -14
- package/dist/ComboboxOption-BMg1O_Br.js +0 -20
- package/dist/ComboboxOption-DSzlMoup.js +0 -22
- package/dist/ComboboxProvider-GdvooWYJ.js +0 -10
- package/dist/ComboboxProvider-ku2HdEkO.js +0 -13
- package/dist/ComboboxTrigger-1KuifQvl.js +0 -24
- package/dist/ComboboxTrigger-CvcB6ptJ.js +0 -22
- package/dist/ConfirmationModal/index.cjs +0 -31
- package/dist/ConfirmationModal/index.mjs +0 -25
- package/dist/ConfirmationModal-DrQ-Nm1m.js +0 -94
- package/dist/Content/index.cjs +0 -9
- package/dist/Content/index.mjs +0 -3
- package/dist/Content-CobtdYug.js +0 -13
- package/dist/Content-D5eJgx6J.js +0 -15
- package/dist/Countdown/index.cjs +0 -11
- package/dist/Countdown/index.mjs +0 -5
- package/dist/Countdown-CXuL7Gh7.js +0 -659
- package/dist/Countdown-CnIjUABD.js +0 -657
- package/dist/DataDump/index.cjs +0 -24
- package/dist/DataDump/index.mjs +0 -18
- package/dist/DataDump-CXh_x55J.js +0 -15
- package/dist/DataDump-R0kwoLVp.js +0 -17
- package/dist/DataList/components/DataListAction/index.cjs +0 -13
- package/dist/DataList/components/DataListAction/index.mjs +0 -7
- package/dist/DataList/components/DataListActions/index.cjs +0 -43
- package/dist/DataList/components/DataListActions/index.mjs +0 -37
- package/dist/DataList/components/DataListActionsMenu/index.cjs +0 -17
- package/dist/DataList/components/DataListActionsMenu/index.mjs +0 -11
- package/dist/DataList/components/DataListBulkActions/index.cjs +0 -46
- package/dist/DataList/components/DataListBulkActions/index.mjs +0 -39
- package/dist/DataList/components/DataListEmptyState/index.cjs +0 -20
- package/dist/DataList/components/DataListEmptyState/index.mjs +0 -13
- package/dist/DataList/components/DataListFilters/components/DataListSort/index.cjs +0 -54
- package/dist/DataList/components/DataListFilters/components/DataListSort/index.mjs +0 -48
- package/dist/DataList/components/DataListFilters/index.cjs +0 -68
- package/dist/DataList/components/DataListFilters/index.mjs +0 -61
- package/dist/DataList/components/DataListHeader/index.cjs +0 -53
- package/dist/DataList/components/DataListHeader/index.mjs +0 -47
- package/dist/DataList/components/DataListHeaderTile/components/index.cjs +0 -12
- package/dist/DataList/components/DataListHeaderTile/components/index.mjs +0 -6
- package/dist/DataList/components/DataListHeaderTile/index.cjs +0 -20
- package/dist/DataList/components/DataListHeaderTile/index.mjs +0 -14
- package/dist/DataList/components/DataListItem/components/DataListItemClickable/index.cjs +0 -14
- package/dist/DataList/components/DataListItem/components/DataListItemClickable/index.mjs +0 -8
- package/dist/DataList/components/DataListItem/index.cjs +0 -52
- package/dist/DataList/components/DataListItem/index.mjs +0 -46
- package/dist/DataList/components/DataListItemActions/index.cjs +0 -45
- package/dist/DataList/components/DataListItemActions/index.mjs +0 -38
- package/dist/DataList/components/DataListItemActionsOverflow/index.cjs +0 -25
- package/dist/DataList/components/DataListItemActionsOverflow/index.mjs +0 -19
- package/dist/DataList/components/DataListItems/index.cjs +0 -53
- package/dist/DataList/components/DataListItems/index.mjs +0 -47
- package/dist/DataList/components/DataListLayout/index.cjs +0 -56
- package/dist/DataList/components/DataListLayout/index.mjs +0 -50
- package/dist/DataList/components/DataListLayoutActions/DataListLayoutContext/index.cjs +0 -9
- package/dist/DataList/components/DataListLayoutActions/DataListLayoutContext/index.mjs +0 -2
- package/dist/DataList/components/DataListLayoutActions/index.cjs +0 -33
- package/dist/DataList/components/DataListLayoutActions/index.mjs +0 -27
- package/dist/DataList/components/DataListLoadMore/index.cjs +0 -21
- package/dist/DataList/components/DataListLoadMore/index.mjs +0 -14
- package/dist/DataList/components/DataListLoadingState/index.cjs +0 -21
- package/dist/DataList/components/DataListLoadingState/index.mjs +0 -13
- package/dist/DataList/components/DataListOverflowFade/index.cjs +0 -11
- package/dist/DataList/components/DataListOverflowFade/index.mjs +0 -4
- package/dist/DataList/components/DataListSearch/index.cjs +0 -33
- package/dist/DataList/components/DataListSearch/index.mjs +0 -25
- package/dist/DataList/components/DataListStatusBar/index.cjs +0 -32
- package/dist/DataList/components/DataListStatusBar/index.mjs +0 -25
- package/dist/DataList/components/DataListStickyHeader/index.cjs +0 -11
- package/dist/DataList/components/DataListStickyHeader/index.mjs +0 -5
- package/dist/DataList/components/DataListTags/index.cjs +0 -12
- package/dist/DataList/components/DataListTags/index.mjs +0 -6
- package/dist/DataList/components/DataListTotalCount/index.cjs +0 -15
- package/dist/DataList/components/DataListTotalCount/index.mjs +0 -8
- package/dist/DataList/context/DataListContext/index.cjs +0 -12
- package/dist/DataList/context/DataListContext/index.mjs +0 -4
- package/dist/DataList/context/DataListLayoutContext/index.cjs +0 -12
- package/dist/DataList/context/DataListLayoutContext/index.mjs +0 -4
- package/dist/DataList/index.cjs +0 -98
- package/dist/DataList/index.mjs +0 -92
- package/dist/DataList-BRPBlIVp.js +0 -3
- package/dist/DataList-C_diEjjb.js +0 -5
- package/dist/DataList-DyUX97mL.js +0 -141
- package/dist/DataList-DzXNiSs1.js +0 -139
- package/dist/DataList.const-Bqcfo3vs.js +0 -38
- package/dist/DataList.const-z084v3KH.js +0 -25
- package/dist/DataList.utils-BjG-otvz.js +0 -168
- package/dist/DataList.utils-RcG6TvB4.js +0 -161
- package/dist/DataListAction-3U8gJcpE.js +0 -37
- package/dist/DataListAction-BN0qp_ae.js +0 -39
- package/dist/DataListActions-D1r_3WQD.js +0 -43
- package/dist/DataListActions-DV-03b5h.js +0 -45
- package/dist/DataListActionsMenu-Cg-ZZ0LI.js +0 -55
- package/dist/DataListActionsMenu-D9iOGk3i.js +0 -57
- package/dist/DataListBulkActions-BEFyOkWd.js +0 -29
- package/dist/DataListBulkActions-C2E5e2oE.js +0 -26
- package/dist/DataListContext-DTtBXteA.js +0 -25
- package/dist/DataListContext-qFN5DiHI.js +0 -29
- package/dist/DataListEmptyState-DTsqkHng.js +0 -50
- package/dist/DataListEmptyState-DfaWzs71.js +0 -53
- package/dist/DataListFilters-35MxtHUo.js +0 -43
- package/dist/DataListFilters-BjC9kPSD.js +0 -46
- package/dist/DataListHeader-CI-p6m7K.js +0 -93
- package/dist/DataListHeader-D5iNjhk1.js +0 -95
- package/dist/DataListHeaderTile-DwHOJPOJ.js +0 -81
- package/dist/DataListHeaderTile-K_UG9NgG.js +0 -79
- package/dist/DataListItem-BpD1kRWd.js +0 -112
- package/dist/DataListItem-CK9nQ-II.js +0 -114
- package/dist/DataListItemActions-B7Pbbv7U.js +0 -29
- package/dist/DataListItemActions-DDdszYpl.js +0 -32
- package/dist/DataListItemActionsOverflow-CmBtR4CV.js +0 -33
- package/dist/DataListItemActionsOverflow-D83sgU_z.js +0 -35
- package/dist/DataListItemClickable-BBVDmF_w.js +0 -45
- package/dist/DataListItemClickable-DluGOyKl.js +0 -47
- package/dist/DataListItems-DHSJSPeG.js +0 -21
- package/dist/DataListItems-hAiXRicl.js +0 -19
- package/dist/DataListLayout-CVVR8T7f.js +0 -21
- package/dist/DataListLayout-CiKR3P98.js +0 -19
- package/dist/DataListLayoutActions-BiR49Hjb.js +0 -36
- package/dist/DataListLayoutActions-CUWi8Fxy.js +0 -38
- package/dist/DataListLayoutContext-B3szPGTf.js +0 -8
- package/dist/DataListLayoutContext-CjAT05BI.js +0 -11
- package/dist/DataListLayoutContext-lF5Zk-jV.js +0 -18
- package/dist/DataListLayoutContext-p48sRC9i.js +0 -14
- package/dist/DataListLoadMore-CixukWAA.js +0 -31
- package/dist/DataListLoadMore-Cu32AbMo.js +0 -34
- package/dist/DataListLoadingState-CBsAzSFk.js +0 -22
- package/dist/DataListLoadingState-DFRSjdMI.js +0 -26
- package/dist/DataListOverflowFade-BGAt4dqm.js +0 -25
- package/dist/DataListOverflowFade-DU0y9j-T.js +0 -22
- package/dist/DataListSearch-C1PpW3kQ.js +0 -59
- package/dist/DataListSearch-uEaN0YJ7.js +0 -63
- package/dist/DataListSort-BrRFvXG5.js +0 -92
- package/dist/DataListSort-Dx6POURf.js +0 -94
- package/dist/DataListSortingOptions-BndDkYtw.js +0 -37
- package/dist/DataListSortingOptions-wYjmZSp4.js +0 -35
- package/dist/DataListStatusBar-B_NpGiAA.js +0 -22
- package/dist/DataListStatusBar-VdGpFaWQ.js +0 -25
- package/dist/DataListStickyHeader-CScdFohW.js +0 -25
- package/dist/DataListStickyHeader-YssmrZlM.js +0 -23
- package/dist/DataListTags-B4e8t5VV.js +0 -62
- package/dist/DataListTags-xHDVW7r1.js +0 -64
- package/dist/DataListTotalCount-FvMJCJV4.js +0 -27
- package/dist/DataListTotalCount-TVna906A.js +0 -24
- package/dist/DataTable/index.cjs +0 -36
- package/dist/DataTable/index.mjs +0 -25
- package/dist/DataTable/test-utilities/index.cjs +0 -246
- package/dist/DataTable/test-utilities/index.mjs +0 -238
- package/dist/DataTable-BhmuLCau.js +0 -236
- package/dist/DataTable-DRXABYeP.js +0 -238
- package/dist/DatePicker/index.cjs +0 -26
- package/dist/DatePicker/index.mjs +0 -20
- package/dist/DatePicker-BzXdyAsQ.js +0 -8554
- package/dist/DatePicker-CZnbHBrf.js +0 -8551
- package/dist/DayOfMonthSelect-GTME6B8V.js +0 -130
- package/dist/DayOfMonthSelect-Rxeaskdx.js +0 -137
- package/dist/DescriptionList/index.cjs +0 -10
- package/dist/DescriptionList/index.mjs +0 -4
- package/dist/DescriptionList-CMHhotQz.js +0 -12
- package/dist/DescriptionList-D4V2AGoH.js +0 -14
- package/dist/Disclosure/index.cjs +0 -17
- package/dist/Disclosure/index.mjs +0 -11
- package/dist/Disclosure-B_Ndy93n.js +0 -33
- package/dist/Disclosure-iwknokMb.js +0 -35
- package/dist/Divider/index.cjs +0 -9
- package/dist/Divider/index.mjs +0 -3
- package/dist/Divider-CQwVNie1.js +0 -17
- package/dist/Divider-aDM-8IiX.js +0 -19
- package/dist/Drawer/index.cjs +0 -19
- package/dist/Drawer/index.mjs +0 -12
- package/dist/DrawerGrid-Cy6jFIEj.js +0 -28
- package/dist/DrawerGrid-D-xjQAGo.js +0 -31
- package/dist/Emphasis/index.cjs +0 -10
- package/dist/Emphasis/index.mjs +0 -4
- package/dist/Emphasis-DIJAlzt-.js +0 -13
- package/dist/Emphasis-ZgoNe2R5.js +0 -15
- package/dist/FeatureSwitch/index.cjs +0 -26
- package/dist/FeatureSwitch/index.mjs +0 -20
- package/dist/FeatureSwitch-BKO31OVK.js +0 -52
- package/dist/FeatureSwitch-C4S0awPY.js +0 -54
- package/dist/Flex/index.cjs +0 -9
- package/dist/Flex/index.mjs +0 -3
- package/dist/Flex-Bfl-vL64.js +0 -28
- package/dist/Flex-Dh0WNozY.js +0 -30
- package/dist/Form/index.cjs +0 -10
- package/dist/Form/index.mjs +0 -4
- package/dist/Form-fdEPa2Di.js +0 -48
- package/dist/FormField/index.cjs +0 -20
- package/dist/FormField/index.mjs +0 -14
- package/dist/FormField-DY5JDjdc.js +0 -261
- package/dist/FormField-RMjW742D.js +0 -263
- package/dist/FormatDate/index.mjs +0 -2
- package/dist/FormatDate-YUbeta27.js +0 -27
- package/dist/FormatEmail/index.cjs +0 -9
- package/dist/FormatEmail/index.mjs +0 -3
- package/dist/FormatEmail-B7cAlIQY.js +0 -11
- package/dist/FormatEmail-DJLlhpQr.js +0 -13
- package/dist/FormatFile/index.cjs +0 -36
- package/dist/FormatFile/index.mjs +0 -30
- package/dist/FormatFile-BAZqq1p8.js +0 -149
- package/dist/FormatFile-CRPcqK86.js +0 -147
- package/dist/FormatRelativeDateTime/index.cjs +0 -8
- package/dist/FormatRelativeDateTime/index.mjs +0 -2
- package/dist/FormatRelativeDateTime-Ca1DyZ7Z.js +0 -64
- package/dist/FormatTime/index.cjs +0 -8
- package/dist/FormatTime/index.mjs +0 -2
- package/dist/FormatTime-DcIV5E6n.js +0 -29
- package/dist/Gallery/index.cjs +0 -42
- package/dist/Gallery/index.mjs +0 -36
- package/dist/Gallery-D9AVJQTM.js +0 -65
- package/dist/Gallery-Duiow0xg.js +0 -63
- package/dist/Glimmer/index.cjs +0 -12
- package/dist/Glimmer/index.mjs +0 -5
- package/dist/Glimmer-CG9tFCHs.js +0 -63
- package/dist/Glimmer-IWgpoHGI.js +0 -60
- package/dist/Grid/InternalGridCell/index.cjs +0 -9
- package/dist/Grid/InternalGridCell/index.mjs +0 -2
- package/dist/Grid/index.cjs +0 -14
- package/dist/Grid/index.mjs +0 -7
- package/dist/Grid-DzRYkCwi.js +0 -29
- package/dist/Grid-VQ3fN1ko.js +0 -32
- package/dist/Heading/index.cjs +0 -12
- package/dist/Heading/index.mjs +0 -6
- package/dist/Heading-D_ylbFzI.js +0 -49
- package/dist/Icon/index.cjs +0 -9
- package/dist/Icon/index.mjs +0 -3
- package/dist/Icon-C05AQvkv.js +0 -36
- package/dist/Icon-Dic5myD3.js +0 -34
- package/dist/InlineLabel/index.cjs +0 -10
- package/dist/InlineLabel/index.mjs +0 -4
- package/dist/InlineLabel-A3tenwf6.js +0 -20
- package/dist/InlineLabel-BLt0Q3bb.js +0 -18
- package/dist/InputAvatar/index.cjs +0 -26
- package/dist/InputAvatar/index.mjs +0 -20
- package/dist/InputAvatar-BdLo0JDy.js +0 -49
- package/dist/InputAvatar-Dqd68eBU.js +0 -47
- package/dist/InputDate/index.cjs +0 -34
- package/dist/InputDate/index.mjs +0 -28
- package/dist/InputDate-CEk7YABR.js +0 -48
- package/dist/InputEmail/index.cjs +0 -22
- package/dist/InputEmail/index.mjs +0 -15
- package/dist/InputEmail-C-EyDCxm.js +0 -20
- package/dist/InputEmail-wUgCu5JW.js +0 -23
- package/dist/InputFile/index.cjs +0 -23
- package/dist/InputFile/index.mjs +0 -16
- package/dist/InputFile-B4DD55KU.js +0 -1608
- package/dist/InputFile-D5DGGfOB.js +0 -1611
- package/dist/InputGroup/index.cjs +0 -9
- package/dist/InputGroup/index.mjs +0 -3
- package/dist/InputGroup-DeQx7ud8.js +0 -25
- package/dist/InputGroup-hh3QBfdL.js +0 -23
- package/dist/InputNumber/index.cjs +0 -21
- package/dist/InputNumber/index.mjs +0 -15
- package/dist/InputNumber-BveQrPyO.js +0 -56
- package/dist/InputPassword/index.cjs +0 -21
- package/dist/InputPassword/index.mjs +0 -15
- package/dist/InputPassword-C8V7VR78.js +0 -21
- package/dist/InputPassword-Dw7Go90j.js +0 -19
- package/dist/InputPhoneNumber/index.cjs +0 -21
- package/dist/InputPhoneNumber/index.mjs +0 -15
- package/dist/InputPhoneNumber-DVscxVqU.js +0 -94
- package/dist/InputText/index.cjs +0 -22
- package/dist/InputText/index.mjs +0 -16
- package/dist/InputText-COr1oIHK.js +0 -96
- package/dist/InputTime/index.cjs +0 -26
- package/dist/InputTime/index.mjs +0 -20
- package/dist/InputTime-_Oc4Hp9L.js +0 -190
- package/dist/InputValidation/index.cjs +0 -14
- package/dist/InputValidation/index.mjs +0 -8
- package/dist/InputValidation-BiJTp0aC.js +0 -22
- package/dist/InputValidation-CCkTBcxQ.js +0 -20
- package/dist/InternalChipDismissible-D8UrPjJC.js +0 -152
- package/dist/InternalChipDismissible-DUluzwH6.js +0 -157
- package/dist/InternalGridCell-Bi4IFFO8.js +0 -37
- package/dist/InternalGridCell-CE9IQZwO.js +0 -34
- package/dist/LightBox/index.cjs +0 -26
- package/dist/LightBox/index.mjs +0 -20
- package/dist/LightBox-CIWrYTaA.js +0 -110
- package/dist/LightBox-D-gmMO7L.js +0 -112
- package/dist/Link/index.cjs +0 -8
- package/dist/Link/index.mjs +0 -2
- package/dist/Link-_423xhjb.js +0 -7
- package/dist/Link-j486eamd.js +0 -9
- package/dist/List/index.cjs +0 -29
- package/dist/List/index.mjs +0 -22
- package/dist/List-BcQDY2Rj.js +0 -186
- package/dist/List-Dgwp7JmK.js +0 -189
- package/dist/Markdown/index.cjs +0 -19
- package/dist/Markdown/index.mjs +0 -13
- package/dist/Markdown-BfxzpIEM.js +0 -19011
- package/dist/Markdown-BhG7kPFl.js +0 -19013
- package/dist/Menu/index.cjs +0 -18
- package/dist/Menu/index.mjs +0 -12
- package/dist/Menu-CuPp5MtV.js +0 -129
- package/dist/Menu-DNImsnBT.js +0 -131
- package/dist/Modal/index.cjs +0 -23
- package/dist/Modal/index.mjs +0 -17
- package/dist/Modal-Cgz6UlsK.js +0 -62
- package/dist/Modal-DQHFlXp5.js +0 -60
- package/dist/MultiSelect/index.cjs +0 -16
- package/dist/MultiSelect/index.mjs +0 -10
- package/dist/MultiSelect-BxtKPK3-.js +0 -166
- package/dist/MultiSelect-DFR0vsTw.js +0 -164
- package/dist/Option-C87IriRr.js +0 -12
- package/dist/Option-X8lh2w6I.js +0 -15
- package/dist/Page/index.cjs +0 -32
- package/dist/Page/index.mjs +0 -26
- package/dist/Page-BgG3_7DX.js +0 -56
- package/dist/Page-BowBp8rI.js +0 -58
- package/dist/Popover/index.cjs +0 -17
- package/dist/Popover/index.mjs +0 -11
- package/dist/Popover-BwG9WBGX.js +0 -50
- package/dist/Popover-o9pOjTMP.js +0 -48
- package/dist/ProgressBar/index.cjs +0 -9
- package/dist/ProgressBar/index.mjs +0 -3
- package/dist/ProgressBar-CUTebo_k.js +0 -33
- package/dist/ProgressBar-OBLHnKRF.js +0 -31
- package/dist/RadioGroup/index.cjs +0 -12
- package/dist/RadioGroup/index.mjs +0 -5
- package/dist/RadioGroup-CxguJ9E7.js +0 -39
- package/dist/RadioGroup-Dt9_WguN.js +0 -36
- package/dist/RecurringSelect/components/index.cjs +0 -15
- package/dist/RecurringSelect/components/index.mjs +0 -6
- package/dist/RecurringSelect/index.cjs +0 -35
- package/dist/RecurringSelect/index.mjs +0 -21
- package/dist/RecurringSelect-BB2D2awE.js +0 -69
- package/dist/RecurringSelect-Dqle4F6a.js +0 -71
- package/dist/Select/index.cjs +0 -22
- package/dist/Select/index.mjs +0 -15
- package/dist/Spinner/index.cjs +0 -9
- package/dist/Spinner/index.mjs +0 -3
- package/dist/Spinner-CjTb3xIl.js +0 -16
- package/dist/Spinner-DGO8_Jsa.js +0 -14
- package/dist/StatusIndicator/index.cjs +0 -8
- package/dist/StatusIndicator/index.mjs +0 -2
- package/dist/StatusIndicator-CNH13isn.js +0 -11
- package/dist/StatusIndicator-DaWtSIUm.js +0 -9
- package/dist/StatusLabel/index.cjs +0 -11
- package/dist/StatusLabel/index.mjs +0 -5
- package/dist/StatusLabel-DuJzG65D.js +0 -18
- package/dist/StatusLabel-YebFZkcB.js +0 -16
- package/dist/Switch/index.cjs +0 -10
- package/dist/Switch/index.mjs +0 -4
- package/dist/Switch-CUBASre6.js +0 -46
- package/dist/Switch-KKEqlvTp.js +0 -48
- package/dist/Table/index.cjs +0 -17
- package/dist/Table/index.mjs +0 -4
- package/dist/Tabs/index.cjs +0 -11
- package/dist/Tabs/index.mjs +0 -4
- package/dist/Tabs-AoDyVJHh.js +0 -70
- package/dist/Tabs-CmCuGGLm.js +0 -67
- package/dist/Text/index.cjs +0 -10
- package/dist/Text/index.mjs +0 -4
- package/dist/Text-CfxmOdM-.js +0 -25
- package/dist/Toast/index.cjs +0 -16
- package/dist/Toast/index.mjs +0 -10
- package/dist/Tooltip/index.cjs +0 -14
- package/dist/Tooltip/index.mjs +0 -8
- package/dist/Tooltip-BrnUcSMD.js +0 -103
- package/dist/Tooltip-PbQMMMXT.js +0 -105
- package/dist/Typography/index.cjs +0 -9
- package/dist/Typography/index.mjs +0 -3
- package/dist/Typography-BiJhpsiL.js +0 -38
- package/dist/Typography-DscVWtp8.js +0 -36
- package/dist/_baseAssignValue-Byqm0l-g.js +0 -29
- package/dist/_baseAssignValue-ph7A7Tyf.js +0 -31
- package/dist/_baseEach-2sgXrDWN.js +0 -1073
- package/dist/_baseEach-DbUzYrtE.js +0 -1069
- package/dist/_commonjsHelpers-BHq9dk6I.js +0 -36
- package/dist/_commonjsHelpers-Dw5gAsMR.js +0 -32
- package/dist/_defineProperty-PEG-eSOB.js +0 -1326
- package/dist/_defineProperty-fDNRMxz-.js +0 -1306
- package/dist/_getTag-BBi2mXSK.js +0 -718
- package/dist/_getTag-CtczKdF2.js +0 -733
- package/dist/_polyfill-node.process-7AsFqJce.js +0 -258
- package/dist/_polyfill-node.process-B3Zw2Wh0.js +0 -255
- package/dist/_setToString-BEt-Msu3.js +0 -230
- package/dist/_setToString-BXD3rooF.js +0 -234
- package/dist/debounce-DHeCta_M.js +0 -329
- package/dist/debounce-DtVkjvKH.js +0 -332
- package/dist/helpers-BX_7EKw7.js +0 -15
- package/dist/helpers-BpmnB4Qy.js +0 -17
- package/dist/index-BE4KkyL_.js +0 -1186
- package/dist/index-dKBcvdAq.js +0 -1189
- package/dist/index.cjs +0 -275
- package/dist/index.d.mts +0 -74
- package/dist/index.d.ts +0 -74
- package/dist/index.mjs +0 -162
- package/dist/isObjectLike-53d8VfgU.js +0 -190
- package/dist/isObjectLike-zrq0mtNG.js +0 -197
- package/dist/isSymbol-B7o505jx.js +0 -35
- package/dist/isSymbol-Co3-vUC1.js +0 -33
- package/dist/noop-B8ZS2J9q.js +0 -24
- package/dist/noop-mF8IIYWw.js +0 -26
- package/dist/showToast-C4Fxtv_O.js +0 -97
- package/dist/showToast-Ckq11MSy.js +0 -99
- package/dist/styles.css +0 -8762
- package/dist/tslib.es6-5nrZ19JS.js +0 -97
- package/dist/tslib.es6-BBH1pS30.js +0 -102
- package/dist/useActiveLayout-BSipZn9t.js +0 -16
- package/dist/useActiveLayout-BqE7ZQY7.js +0 -14
- package/dist/useAssert-BTe43jaI.js +0 -27
- package/dist/useAssert-CSmf3rDf.js +0 -27
- package/dist/useAtlantisConfig-DC3Ppo_R.js +0 -14
- package/dist/useBatchSelect-KPnTra4u.js +0 -36
- package/dist/useBatchSelect-rQ55uZ7U.js +0 -38
- package/dist/useChildComponent-CwlKwCml.js +0 -15
- package/dist/useChildComponent-D7PbyArU.js +0 -17
- package/dist/useFocusTrap-B-xOQ79p.js +0 -74
- package/dist/useFocusTrap-D0gOZaSx.js +0 -74
- package/dist/useInView-CjeNEvX0.js +0 -25
- package/dist/useInView-DGjydyXL.js +0 -25
- package/dist/useIsMounted-BxDu0lnY.js +0 -47
- package/dist/useIsMounted-DfJrPzyU.js +0 -47
- package/dist/useOnKeyDown-07RktdgP.js +0 -40
- package/dist/useOnKeyDown-W2x-4HSi.js +0 -40
- package/dist/useRefocusOnActivator-BAub7L-i.js +0 -32
- package/dist/useRefocusOnActivator-BnM3unqN.js +0 -32
- package/dist/useResizeObserver-B4Vfml7U.js +0 -1192
- package/dist/useResizeObserver-DzMx2b66.js +0 -1189
- package/dist/useResponsiveSizing-DB6K2Viw.js +0 -51
- package/dist/useResponsiveSizing-DVb-nBuX.js +0 -49
- package/dist/useSafeLayoutEffect-BW_VIS6-.js +0 -12
- package/dist/useSafeLayoutEffect-juh5vdFE.js +0 -14
- package/dist/useScrollToActive-CQdgd_Dw.js +0 -591
- package/dist/useScrollToActive-DP9nvfrv.js +0 -597
- /package/{.eslintrc.cjs → .eslintrc.js} +0 -0
- /package/dist/{AtlantisContext-AiJSmYGH.js → AtlantisContext-64608897.js} +0 -0
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var React = require('react');
|
|
6
|
+
var styleInject_es = require('../style-inject.es-9d2f5f4e.js');
|
|
7
|
+
var classnames = require('classnames');
|
|
8
|
+
var formatters = require('@jobber/formatters');
|
|
9
|
+
|
|
10
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
11
|
+
|
|
12
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
13
|
+
var classnames__default = /*#__PURE__*/_interopDefaultLegacy(classnames);
|
|
14
|
+
|
|
15
|
+
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";
|
|
16
|
+
var styles$1 = {"table":"gFY9BLPF808-","row":"NZbmlKVakYo-","header":"_72-uJqZ5jGE-","footer":"fEVdTCw9eOU-"};
|
|
17
|
+
styleInject_es.styleInject(css_248z$1);
|
|
18
|
+
|
|
19
|
+
function Table({ children }) {
|
|
20
|
+
return React__default["default"].createElement("table", { className: styles$1.table }, children);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
function Row({ children }) {
|
|
24
|
+
return React__default["default"].createElement("tr", { className: styles$1.row }, children);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
var css_248z = ".xibCW9zSMXU- {\n padding: var(--horizontal-inset) calc(var(--horizontal-inset) / 2);\n text-align: left;\n}\n\n.SD8FBgvYMQg- {\n text-align: left;\n}\n\n._5VZpkU0Gu40- {\n text-align: center;\n}\n\n.DNPkTtpA-8g- {\n text-align: right;\n}\n\n._5EfJs7A9kEg- {\n -webkit-font-feature-settings: \"tnum\";\n font-feature-settings: \"tnum\";\n}\n\n.xibCW9zSMXU-:first-child {\n padding-left: var(--horizontal-inset);\n}\n\n.xibCW9zSMXU-:last-child {\n padding-right: var(--horizontal-inset);\n}\n";
|
|
28
|
+
var styles = {"cell":"xibCW9zSMXU-","left":"SD8FBgvYMQg-","center":"_5VZpkU0Gu40-","right":"DNPkTtpA-8g-","numeric":"_5EfJs7A9kEg-"};
|
|
29
|
+
styleInject_es.styleInject(css_248z);
|
|
30
|
+
|
|
31
|
+
function Cell({ children, align = "left" }) {
|
|
32
|
+
const className = classnames__default["default"](styles.cell, styles[align]);
|
|
33
|
+
return React__default["default"].createElement("td", { className: className }, children);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
function CellNumeric({ value }) {
|
|
37
|
+
return (React__default["default"].createElement(Cell, { align: "right" },
|
|
38
|
+
React__default["default"].createElement("span", { className: styles.numeric }, value.toString())));
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
function CellCurrency({ value, currency = undefined, }) {
|
|
42
|
+
return React__default["default"].createElement(CellNumeric, { value: formatters.formatCurrency(value, currency) });
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
function Header({ children }) {
|
|
46
|
+
return (React__default["default"].createElement("thead", { className: styles$1.header },
|
|
47
|
+
React__default["default"].createElement(Row, null, children)));
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
function Footer({ children }) {
|
|
51
|
+
return (React__default["default"].createElement("tfoot", { className: styles$1.footer },
|
|
52
|
+
React__default["default"].createElement(Row, null, children)));
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
function Body({ children }) {
|
|
56
|
+
return React__default["default"].createElement("tbody", null, children);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
exports.Body = Body;
|
|
60
|
+
exports.Cell = Cell;
|
|
61
|
+
exports.CellCurrency = CellCurrency;
|
|
62
|
+
exports.CellNumeric = CellNumeric;
|
|
63
|
+
exports.Footer = Footer;
|
|
64
|
+
exports.Header = Header;
|
|
65
|
+
exports.Row = Row;
|
|
66
|
+
exports.Table = Table;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var React = require('react');
|
|
6
|
+
var classnames = require('classnames');
|
|
7
|
+
var styleInject_es = require('../style-inject.es-9d2f5f4e.js');
|
|
8
|
+
var Typography = require('../Typography-e2a23b7e.js');
|
|
9
|
+
|
|
10
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
11
|
+
|
|
12
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
13
|
+
var classnames__default = /*#__PURE__*/_interopDefaultLegacy(classnames);
|
|
14
|
+
|
|
15
|
+
var css_248z = ":root {\n --tab--height: calc(var(--space-larger) + var(--space-small));\n --tab--inset: var(--space-base);\n --public-tab--inset: var(--tab--inset);\n}\n\n.-kxlqXO5UN0- {\n display: block;\n width: 100%;\n}\n\n.qI4lWMSNH40- {\n position: relative;\n border-bottom: solid calc(16px / 16) rgb(217, 223, 225);\n border-bottom: solid var(--border-base) var(--color-border);\n}\n\n.xohIah5wcoE-:after,\n.qnY4S9sz-8g-:before {\n content: \"\";\n position: absolute;\n top: 0;\n bottom: 0;\n width: 24px;\n}\n\n.xohIah5wcoE-:after {\n right: 0;\n box-shadow: inset -16px 0 16px -16px rgba(0, 0, 0, 0.25);\n box-shadow: inset -16px 0 16px -16px rgba(var(--color-black--rgb), 0.25);\n}\n\n.qnY4S9sz-8g-:before {\n left: 0;\n box-shadow: inset 16px 0 16px -16px rgba(0, 0, 0, 0.25);\n box-shadow: inset 16px 0 16px -16px rgba(var(--color-black--rgb), 0.25);\n}\n\n.wdW31G8Trag- {\n display: -ms-flexbox;\n display: flex;\n margin: 0;\n margin-bottom: calc(-1 * (16px / 16));\n margin-bottom: calc(-1 * calc(16px / 16));\n margin-bottom: calc(-1 * var(--border-base));\n overflow-x: auto;\n -webkit-overflow-scrolling: touch;\n}\n\nul.wdW31G8Trag- {\n -webkit-padding-start: 0;\n padding-left: 0;\n}\n\n.wdW31G8Trag- li {\n display: -ms-flexbox;\n display: flex;\n list-style: none;\n}\n\n.MO7CXQ8xJXo- {\n -ms-flex: 0 0 auto;\n flex: 0 0 auto;\n height: calc((16px * 2) + (16px / 2));\n height: calc(calc(16px * 2) + calc(16px / 2));\n height: var(--tab--height);\n margin: 0;\n padding-left: calc(16px * 1);\n padding-left: var(--public-tab--inset);\n padding-right: calc(16px * 1);\n padding-right: var(--public-tab--inset);\n border: solid calc(16px / 16) rgb(217, 223, 225);\n border: solid var(--border-base) var(--color-border);\n border-left-width: 0;\n outline: none;\n background: rgba(255, 255, 255, 1);\n background: var(--color-surface);\n cursor: pointer;\n transition: all 200ms;\n transition: all var(--timing-base);\n}\n\n.MO7CXQ8xJXo-:hover,\n.MO7CXQ8xJXo-:focus {\n background-color: rgb(244, 246, 250);\n background-color: var(--color-surface--hover);\n}\n\n.MO7CXQ8xJXo-:focus span {\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.kqof65gyv7g- {\n border-top-color: rgb(125, 176, 14);\n border-top-color: var(--color-interactive);\n border-bottom-color: rgba(255, 255, 255, 1);\n border-bottom-color: var(--color-surface);\n}\n\n.kqof65gyv7g-:focus {\n background-color: transparent;\n}\n\n.AimQioztR1U- {\n padding-top: calc(16px * 1);\n padding-top: var(--tab--inset);\n padding-bottom: calc(16px * 1);\n padding-bottom: var(--tab--inset);\n padding-left: calc(16px * 1);\n padding-left: var(--public-tab--inset);\n padding-right: calc(16px * 1);\n padding-right: var(--public-tab--inset);\n}\n";
|
|
16
|
+
var styles = {"tabs":"-kxlqXO5UN0-","overflow":"qI4lWMSNH40-","overflowRight":"xohIah5wcoE-","overflowLeft":"qnY4S9sz-8g-","tabRow":"wdW31G8Trag-","tab":"MO7CXQ8xJXo-","selected":"kqof65gyv7g-","tabContent":"AimQioztR1U-"};
|
|
17
|
+
styleInject_es.styleInject(css_248z);
|
|
18
|
+
|
|
19
|
+
function Tabs({ children, defaultTab = 0, onTabChange }) {
|
|
20
|
+
const activeTabInitialValue = defaultTab < React__default["default"].Children.count(children) ? defaultTab : 0;
|
|
21
|
+
const [activeTab, setActiveTab] = React.useState(activeTabInitialValue);
|
|
22
|
+
const [overflowRight, setOverflowRight] = React.useState(false);
|
|
23
|
+
const [overflowLeft, setOverflowLeft] = React.useState(false);
|
|
24
|
+
const tabRow = React.useRef();
|
|
25
|
+
const overflowClassNames = classnames__default["default"](styles.overflow, {
|
|
26
|
+
[styles.overflowRight]: overflowRight,
|
|
27
|
+
[styles.overflowLeft]: overflowLeft,
|
|
28
|
+
});
|
|
29
|
+
const activateTab = (index) => {
|
|
30
|
+
return () => {
|
|
31
|
+
setActiveTab(index);
|
|
32
|
+
if (onTabChange) {
|
|
33
|
+
onTabChange(index);
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
const activeTabProps = React__default["default"].Children.toArray(children)[activeTab].props;
|
|
38
|
+
const handleOverflowing = () => {
|
|
39
|
+
if (tabRow.current) {
|
|
40
|
+
const scrollWidth = tabRow.current.scrollWidth;
|
|
41
|
+
const clientWidth = tabRow.current.clientWidth;
|
|
42
|
+
const maxScroll = scrollWidth - clientWidth;
|
|
43
|
+
const scrollPos = tabRow.current.scrollLeft;
|
|
44
|
+
if (scrollWidth > clientWidth) {
|
|
45
|
+
setOverflowRight(scrollPos >= 0 && scrollPos != maxScroll);
|
|
46
|
+
setOverflowLeft(scrollPos > 0 && scrollPos < scrollWidth);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
React.useEffect(() => {
|
|
51
|
+
handleOverflowing();
|
|
52
|
+
tabRow.current &&
|
|
53
|
+
tabRow.current.addEventListener("scroll", handleOverflowing);
|
|
54
|
+
return () => {
|
|
55
|
+
window.removeEventListener("scroll", handleOverflowing);
|
|
56
|
+
};
|
|
57
|
+
});
|
|
58
|
+
return (React__default["default"].createElement("div", { className: styles.tabs },
|
|
59
|
+
React__default["default"].createElement("div", { className: overflowClassNames },
|
|
60
|
+
React__default["default"].createElement("ul", { role: "tablist", className: styles.tabRow, ref: tabRow },
|
|
61
|
+
React__default["default"].createElement("li", { role: "presentation" }, React__default["default"].Children.map(children, (tab, index) => (React__default["default"].createElement(InternalTab, { label: tab.props.label, selected: activeTab === index, activateTab: activateTab(index), onClick: tab.props.onClick })))))),
|
|
62
|
+
React__default["default"].createElement("section", { role: "tabpanel", className: styles.tabContent, "aria-label": activeTabProps.label }, activeTabProps.children)));
|
|
63
|
+
}
|
|
64
|
+
function Tab({ label }) {
|
|
65
|
+
return React__default["default"].createElement(React__default["default"].Fragment, null, label);
|
|
66
|
+
}
|
|
67
|
+
function InternalTab({ label, selected, activateTab, onClick = () => {
|
|
68
|
+
return;
|
|
69
|
+
}, }) {
|
|
70
|
+
const className = classnames__default["default"](styles.tab, { [styles.selected]: selected });
|
|
71
|
+
const color = selected ? "green" : "heading";
|
|
72
|
+
return (React__default["default"].createElement("button", { type: "button", role: "tab", id: label, className: className, onClick: event => {
|
|
73
|
+
activateTab();
|
|
74
|
+
onClick(event);
|
|
75
|
+
} },
|
|
76
|
+
React__default["default"].createElement(Typography.Typography, { element: "span", size: "base", textColor: color }, label)));
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
exports.Tab = Tab;
|
|
80
|
+
exports.Tabs = Tabs;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var Text = require('../Text-fbeaaca6.js');
|
|
6
|
+
require('react');
|
|
7
|
+
require('../Typography-e2a23b7e.js');
|
|
8
|
+
require('classnames');
|
|
9
|
+
require('../style-inject.es-9d2f5f4e.js');
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
exports.Text = Text.Text;
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var React = require('react');
|
|
4
|
-
var Typography = require('./Typography-
|
|
4
|
+
var Typography = require('./Typography-e2a23b7e.js');
|
|
5
|
+
|
|
6
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
7
|
+
|
|
8
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
5
9
|
|
|
6
10
|
function Text({ variation = "default", size = "base", align = "start", children, maxLines = "unlimited", }) {
|
|
7
11
|
const textColors = {
|
|
@@ -21,7 +25,7 @@ function Text({ variation = "default", size = "base", align = "start", children,
|
|
|
21
25
|
larger: 16,
|
|
22
26
|
unlimited: undefined,
|
|
23
27
|
};
|
|
24
|
-
return (
|
|
28
|
+
return (React__default["default"].createElement(Typography.Typography, { textColor: textColors[variation], size: size, numberOfLines: maxLineToNumber[maxLines], align: align }, children));
|
|
25
29
|
}
|
|
26
30
|
|
|
27
31
|
exports.Text = Text;
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var React = require('react');
|
|
6
|
+
var client = require('react-dom/client');
|
|
7
|
+
var framerMotion = require('framer-motion');
|
|
8
|
+
var styleInject_es = require('../style-inject.es-9d2f5f4e.js');
|
|
9
|
+
var Icon = require('../Icon-405a216c.js');
|
|
10
|
+
var Button = require('../Button-6b922fc1.js');
|
|
11
|
+
var Typography = require('../Typography-e2a23b7e.js');
|
|
12
|
+
require('@jobber/design');
|
|
13
|
+
require('classnames');
|
|
14
|
+
require('react-router-dom');
|
|
15
|
+
|
|
16
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
17
|
+
|
|
18
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
19
|
+
|
|
20
|
+
var css_248z = ".FVK4VwhLaVQ- {\n position: relative;\n z-index: 1003;\n z-index: var(--elevation-toast);\n}\n\n.MUXYGaC7Msg- {\n display: -ms-flexbox;\n display: flex;\n position: fixed;\n right: 0;\n bottom: calc(16px * 1.5);\n bottom: var(--space-large);\n left: 0;\n z-index: 1003;\n z-index: var(--elevation-toast);\n width: 100%;\n box-sizing: border-box;\n -ms-flex-direction: column;\n flex-direction: column;\n -ms-flex-align: center;\n align-items: center;\n padding: 0 calc(16px * 1.5);\n padding: 0 var(--space-large);\n color: rgba(255, 255, 255, 1);\n color: var(--color-text--reverse);\n font-size: calc(16px * 1);\n font-size: var(--typography--fontSize-large);\n pointer-events: none;\n}\n\n.yCRa7jHH33M- {\n box-shadow: 0px calc(16px * 1) calc(16px * 1) 0px\n rgba(0, 0, 0, 0.075),\n 0px 0px calc(16px / 2) 0px rgba(0, 0, 0, 0.05);\n box-shadow: var(--shadow-high);\n overflow: hidden;\n pointer-events: all;\n}\n\n.yCRa7jHH33M- + .yCRa7jHH33M- {\n margin-top: calc(16px * 1);\n margin-top: var(--space-base);\n}\n\n.KiJL-VNZ3Sg- {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n padding: calc((16px / 2) / 1.25) calc(16px * 1);\n padding: calc(calc(16px / 2) / 1.25) calc(16px * 1);\n padding: calc(var(--space-small) / 1.25) var(--space-base);\n border-radius: calc(16px / 8);\n border-radius: var(--radius-base);\n background: rgb(1, 41, 57);\n background: var(--color-surface--reverse);\n}\n\n.xtRB59TMHcU- {\n margin-right: calc(16px * 1);\n margin-right: var(--space-base);\n}\n\n.cExoS0APILs- {\n margin-left: calc(16px * 1);\n margin-left: var(--space-base);\n}\n\n.jobber-retheme .cExoS0APILs- svg path {\n fill: rgb(147, 161, 169);\n fill: var(--color-greyBlue--light);\n}\n\n.jobber-retheme .cExoS0APILs-:hover svg path {\n fill: rgba(101, 120, 132, 1);\n fill: var(--color-greyBlue);\n}\n\n.-T38wWbQUNs- {\n margin-left: calc(16px / 2);\n margin-left: var(--space-small);\n}\n";
|
|
21
|
+
var styles = {"wrapper":"FVK4VwhLaVQ-","container":"MUXYGaC7Msg-","toast":"yCRa7jHH33M-","slice":"KiJL-VNZ3Sg-","icon":"xtRB59TMHcU-","button":"cExoS0APILs-","action":"-T38wWbQUNs-"};
|
|
22
|
+
styleInject_es.styleInject(css_248z);
|
|
23
|
+
|
|
24
|
+
function Toast({ message, variation = "success", action, actionLabel, }) {
|
|
25
|
+
const [visible, setVisible] = React.useState(true);
|
|
26
|
+
const icon = getIcon();
|
|
27
|
+
let timer;
|
|
28
|
+
React.useEffect(() => startTimer(), []);
|
|
29
|
+
return (React__default["default"].createElement(framerMotion.AnimatePresence, null, visible && (React__default["default"].createElement(framerMotion.motion.div, { className: styles.toast, initial: { opacity: 0, scale: 0.8 }, animate: { opacity: 1, scale: 1 }, onMouseEnter: () => stopTimer(), onMouseLeave: () => startTimer(), exit: {
|
|
30
|
+
opacity: 0,
|
|
31
|
+
scale: 0.8,
|
|
32
|
+
height: 0,
|
|
33
|
+
transition: { duration: 0.4 },
|
|
34
|
+
} },
|
|
35
|
+
React__default["default"].createElement("div", { className: styles.slice },
|
|
36
|
+
React__default["default"].createElement("div", { className: styles.icon },
|
|
37
|
+
React__default["default"].createElement(Icon.Icon, { color: icon.color, name: icon.name })),
|
|
38
|
+
React__default["default"].createElement(Typography.Typography, { element: "span", size: "large" }, message),
|
|
39
|
+
action && (React__default["default"].createElement(Button.Button, { label: `${actionLabel}`, onClick: action, type: "tertiary" })),
|
|
40
|
+
React__default["default"].createElement("div", { className: styles.button },
|
|
41
|
+
React__default["default"].createElement(Button.Button, { icon: "remove", ariaLabel: "Hide Notification", onClick: handleToastClose, type: "tertiary", variation: "subtle" })))))));
|
|
42
|
+
function startTimer() {
|
|
43
|
+
timer = setTimeout(() => handleToastClose(), getTimeout());
|
|
44
|
+
}
|
|
45
|
+
function stopTimer() {
|
|
46
|
+
clearTimeout(timer);
|
|
47
|
+
}
|
|
48
|
+
function handleToastClose() {
|
|
49
|
+
setVisible(false);
|
|
50
|
+
}
|
|
51
|
+
function getTimeout() {
|
|
52
|
+
const min = 5000;
|
|
53
|
+
const max = 10000;
|
|
54
|
+
const time = message.length * 200;
|
|
55
|
+
if (time < min)
|
|
56
|
+
return min;
|
|
57
|
+
if (time > max)
|
|
58
|
+
return max;
|
|
59
|
+
return time;
|
|
60
|
+
}
|
|
61
|
+
function getIcon() {
|
|
62
|
+
switch (variation) {
|
|
63
|
+
case "info":
|
|
64
|
+
return { name: "knot", color: "lightBlue" };
|
|
65
|
+
case "error":
|
|
66
|
+
return { name: "alert", color: "red" };
|
|
67
|
+
default:
|
|
68
|
+
return { name: "checkmark", color: "green" };
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
const targetId = "atlantis-toast-element";
|
|
74
|
+
let target = document.querySelector(`#${targetId}`);
|
|
75
|
+
if (!target) {
|
|
76
|
+
target = document.createElement("div");
|
|
77
|
+
target.id = targetId;
|
|
78
|
+
target.classList.add(styles.wrapper);
|
|
79
|
+
document.body.appendChild(target);
|
|
80
|
+
}
|
|
81
|
+
const root = client.createRoot(target);
|
|
82
|
+
function showToast(props) {
|
|
83
|
+
// Ensure target and body is still there when rendering the toast. This is due
|
|
84
|
+
// to an issue with ReactDOM createRoot assuming document is always there and
|
|
85
|
+
// Jest taking the document down.
|
|
86
|
+
if (document.body.contains(target)) {
|
|
87
|
+
root.render(React__default["default"].createElement(ToasterOven, Object.assign({}, props)));
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
const ToastContainer = React.forwardRef(ToastInternal);
|
|
91
|
+
function ToasterOven(props) {
|
|
92
|
+
const toastRef = React.useRef();
|
|
93
|
+
React.useEffect(() => toastRef.current.add(props));
|
|
94
|
+
return React__default["default"].createElement(ToastContainer, { ref: toastRef });
|
|
95
|
+
}
|
|
96
|
+
function ToastInternal(_, ref) {
|
|
97
|
+
const [toastKey, setToastKey] = React.useState(0);
|
|
98
|
+
const [toasts, setToasts] = React.useState([]);
|
|
99
|
+
React.useImperativeHandle(ref, () => ({
|
|
100
|
+
add: props => {
|
|
101
|
+
setToastKey(toastKey + 1);
|
|
102
|
+
setToasts([
|
|
103
|
+
Object.assign(Object.assign({}, props), { id: toastKey }),
|
|
104
|
+
...toasts,
|
|
105
|
+
]);
|
|
106
|
+
},
|
|
107
|
+
}));
|
|
108
|
+
return (React__default["default"].createElement("div", { className: styles.container }, toasts.map(toast => (React__default["default"].createElement(Toast, Object.assign({}, toast, { key: toast.id }))))));
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
exports.showToast = showToast;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var Tooltip = require('../Tooltip-b9de6e57.js');
|
|
6
|
+
require('react');
|
|
7
|
+
require('classnames');
|
|
8
|
+
require('react-dom');
|
|
9
|
+
require('framer-motion');
|
|
10
|
+
require('@jobber/hooks/useSafeLayoutEffect');
|
|
11
|
+
require('@jobber/hooks/useIsMounted');
|
|
12
|
+
require('../style-inject.es-9d2f5f4e.js');
|
|
13
|
+
require('react-popper');
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
exports.Tooltip = Tooltip.Tooltip;
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var React = require('react');
|
|
4
|
+
var classnames = require('classnames');
|
|
5
|
+
var ReactDOM = require('react-dom');
|
|
6
|
+
var framerMotion = require('framer-motion');
|
|
7
|
+
var useSafeLayoutEffect = require('@jobber/hooks/useSafeLayoutEffect');
|
|
8
|
+
var useIsMounted = require('@jobber/hooks/useIsMounted');
|
|
9
|
+
var styleInject_es = require('./style-inject.es-9d2f5f4e.js');
|
|
10
|
+
var reactPopper = require('react-popper');
|
|
11
|
+
|
|
12
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
13
|
+
|
|
14
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
15
|
+
var classnames__default = /*#__PURE__*/_interopDefaultLegacy(classnames);
|
|
16
|
+
var ReactDOM__default = /*#__PURE__*/_interopDefaultLegacy(ReactDOM);
|
|
17
|
+
|
|
18
|
+
var css_248z = ":root {\n --tooltip--arrow-size: var(--space-small);\n --tooltip--offset: calc(-1 * var(--space-smaller));\n --tooltip--surface: var(--color-surface--reverse);\n}\n\n.q07bkGoq714- {\n display: none;\n}\n\n.dkCTRfc3vYk- {\n display: inline-block;\n position: absolute;\n z-index: 1002;\n z-index: var(--elevation-tooltip);\n pointer-events: none;\n}\n\n.yAFP4gRKlTM- {\n display: inline-block;\n position: relative;\n max-width: calc(16px * 15);\n max-width: calc(var(--base-unit) * 15);\n padding: calc((16px * 1) - (16px / 8)) calc(16px * 1);\n padding: calc(calc(16px * 1) - calc(16px / 8)) calc(16px * 1);\n padding: calc(var(--space-base) - var(--space-smallest)) var(--space-base);\n border-radius: calc(16px / 2);\n border-radius: var(--radius-larger);\n background-color: rgb(1, 41, 57);\n background-color: var(--tooltip--surface);\n}\n\n.jobber-retheme .yAFP4gRKlTM- {\n border-radius: calc(16px / 8);\n border-radius: var(--radius-base);\n}\n\n.yAFP4gRKlTM- .j9KgRON7iTU-,\n.yAFP4gRKlTM- .j9KgRON7iTU-::after {\n width: calc(16px / 2);\n width: var(--tooltip--arrow-size);\n height: calc(16px / 2);\n height: var(--tooltip--arrow-size);\n background-color: transparent;\n}\n\n.yAFP4gRKlTM- .j9KgRON7iTU-::after {\n content: \"\";\n display: block;\n position: absolute;\n background-color: rgb(1, 41, 57);\n background-color: var(--tooltip--surface);\n -webkit-transform: rotate(45deg);\n transform: rotate(45deg);\n}\n\n.B6uh34-qEuA- {\n padding-bottom: calc(16px / 2);\n padding-bottom: var(--space-small);\n}\n\n.B6uh34-qEuA- .yAFP4gRKlTM- {\n -webkit-transform-origin: bottom center;\n transform-origin: bottom center;\n}\n\n.B6uh34-qEuA- .yAFP4gRKlTM- .j9KgRON7iTU- {\n bottom: calc(-1 * (16px / 4));\n bottom: calc(-1 * calc(16px / 4));\n bottom: var(--tooltip--offset);\n}\n\n.B6uh34-qEuA- .yAFP4gRKlTM- .j9KgRON7iTU-::after {\n border-top-width: 0;\n border-left-width: 0;\n}\n\n.Wft7Ug-lXEc- {\n padding-top: calc(16px / 2);\n padding-top: var(--space-small);\n}\n\n.Wft7Ug-lXEc- .yAFP4gRKlTM- {\n -webkit-transform-origin: top center;\n transform-origin: top center;\n}\n\n.Wft7Ug-lXEc- .yAFP4gRKlTM- .j9KgRON7iTU- {\n top: calc(-1 * (16px / 4));\n top: calc(-1 * calc(16px / 4));\n top: var(--tooltip--offset);\n}\n\n.Wft7Ug-lXEc- .yAFP4gRKlTM- .j9KgRON7iTU-::after {\n border-bottom-width: 0;\n border-right-width: 0;\n}\n\n.TpdeLUuiQMg- {\n margin: 0;\n color: rgba(255, 255, 255, 1);\n color: var(--color-text--reverse);\n font-size: calc((16px * 1) * 0.875);\n font-size: calc(calc(16px * 1) * 0.875);\n font-size: var(--typography--fontSize-base);\n font-weight: 600;\n line-height: 1.25;\n line-height: var(--typography--lineHeight-base);\n}\n";
|
|
19
|
+
var styles = {"shadowActivator":"q07bkGoq714-","tooltipWrapper":"dkCTRfc3vYk-","tooltip":"yAFP4gRKlTM-","arrow":"j9KgRON7iTU-","above":"B6uh34-qEuA-","below":"Wft7Ug-lXEc-","tooltipMessage":"TpdeLUuiQMg-"};
|
|
20
|
+
styleInject_es.styleInject(css_248z);
|
|
21
|
+
|
|
22
|
+
function useTooltipPositioning() {
|
|
23
|
+
var _a, _b;
|
|
24
|
+
const shadowRef = React.useRef(null);
|
|
25
|
+
const [positionElement, setTooltipRef] = React.useState();
|
|
26
|
+
const [arrowElement, setArrowRef] = React.useState();
|
|
27
|
+
const popper = reactPopper.usePopper((_a = shadowRef.current) === null || _a === void 0 ? void 0 : _a.nextElementSibling, positionElement, {
|
|
28
|
+
placement: "top",
|
|
29
|
+
modifiers: [
|
|
30
|
+
{ name: "flip", options: { fallbackPlacements: ["bottom"] } },
|
|
31
|
+
{
|
|
32
|
+
name: "arrow",
|
|
33
|
+
options: { element: arrowElement },
|
|
34
|
+
},
|
|
35
|
+
],
|
|
36
|
+
});
|
|
37
|
+
return Object.assign(Object.assign({}, popper), { placement: (_b = popper.state) === null || _b === void 0 ? void 0 : _b.placement, shadowRef,
|
|
38
|
+
setArrowRef,
|
|
39
|
+
setTooltipRef });
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
const variation = {
|
|
43
|
+
startOrStop: { scale: 0.6, opacity: 0 },
|
|
44
|
+
done: { scale: 1, opacity: 1 },
|
|
45
|
+
};
|
|
46
|
+
function Tooltip({ message, children }) {
|
|
47
|
+
const [show, setShow] = React.useState(false);
|
|
48
|
+
const mounted = useIsMounted.useIsMounted();
|
|
49
|
+
const { attributes, placement, shadowRef, styles: popperStyles, setArrowRef, setTooltipRef, } = useTooltipPositioning();
|
|
50
|
+
initializeListeners();
|
|
51
|
+
const toolTipClassNames = classnames__default["default"](styles.tooltipWrapper, placement === "bottom" && styles.below, placement === "top" && styles.above);
|
|
52
|
+
return (React__default["default"].createElement(React__default["default"].Fragment, null,
|
|
53
|
+
React__default["default"].createElement("span", { className: styles.shadowActivator, ref: shadowRef }),
|
|
54
|
+
children,
|
|
55
|
+
mounted.current ? (React__default["default"].createElement(TooltipPortal, null, show && Boolean(message) && (React__default["default"].createElement("div", Object.assign({ className: toolTipClassNames, style: popperStyles.popper, ref: setTooltipRef, role: "tooltip" }, attributes.popper),
|
|
56
|
+
React__default["default"].createElement(framerMotion.motion.div, { className: styles.tooltip, variants: variation, initial: "startOrStop", animate: "done", exit: "startOrStop", transition: {
|
|
57
|
+
damping: 50,
|
|
58
|
+
stiffness: 500,
|
|
59
|
+
} },
|
|
60
|
+
React__default["default"].createElement("p", { className: styles.tooltipMessage }, message),
|
|
61
|
+
React__default["default"].createElement("div", { ref: setArrowRef, style: popperStyles.arrow, className: styles.arrow })))))) : null));
|
|
62
|
+
function initializeListeners() {
|
|
63
|
+
const showTooltip = () => {
|
|
64
|
+
setShow(true);
|
|
65
|
+
};
|
|
66
|
+
const hideTooltip = () => {
|
|
67
|
+
setShow(false);
|
|
68
|
+
};
|
|
69
|
+
const injectAttributes = () => {
|
|
70
|
+
var _a;
|
|
71
|
+
if ((_a = shadowRef === null || shadowRef === void 0 ? void 0 : shadowRef.current) === null || _a === void 0 ? void 0 : _a.nextElementSibling) {
|
|
72
|
+
const activator = shadowRef.current.nextElementSibling;
|
|
73
|
+
// Manually inject "aria-description" and "tabindex" to let the screen
|
|
74
|
+
// readers read the tooltip message.
|
|
75
|
+
// This is to avoid having to add those attribute as a prop on every
|
|
76
|
+
// component we have.
|
|
77
|
+
activator.setAttribute("aria-description", message);
|
|
78
|
+
activator.setAttribute("tabindex", "0"); // enable focus
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
const addListeners = () => {
|
|
82
|
+
var _a;
|
|
83
|
+
if ((_a = shadowRef === null || shadowRef === void 0 ? void 0 : shadowRef.current) === null || _a === void 0 ? void 0 : _a.nextElementSibling) {
|
|
84
|
+
const activator = shadowRef.current.nextElementSibling;
|
|
85
|
+
activator.addEventListener("mouseenter", showTooltip);
|
|
86
|
+
activator.addEventListener("mouseleave", hideTooltip);
|
|
87
|
+
activator.addEventListener("focus", showTooltip);
|
|
88
|
+
activator.addEventListener("blur", hideTooltip);
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
const removeListeners = () => {
|
|
92
|
+
var _a;
|
|
93
|
+
if ((_a = shadowRef === null || shadowRef === void 0 ? void 0 : shadowRef.current) === null || _a === void 0 ? void 0 : _a.nextElementSibling) {
|
|
94
|
+
const activator = shadowRef.current.nextElementSibling;
|
|
95
|
+
activator.removeEventListener("mouseenter", showTooltip);
|
|
96
|
+
activator.removeEventListener("mouseleave", hideTooltip);
|
|
97
|
+
activator.removeEventListener("focus", showTooltip);
|
|
98
|
+
activator.removeEventListener("blur", hideTooltip);
|
|
99
|
+
}
|
|
100
|
+
};
|
|
101
|
+
useSafeLayoutEffect.useSafeLayoutEffect(() => {
|
|
102
|
+
injectAttributes();
|
|
103
|
+
addListeners();
|
|
104
|
+
return () => {
|
|
105
|
+
removeListeners();
|
|
106
|
+
};
|
|
107
|
+
}, []);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
function TooltipPortal({ children }) {
|
|
111
|
+
return ReactDOM__default["default"].createPortal(children, document.body);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
exports.Tooltip = Tooltip;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var Typography = require('../Typography-e2a23b7e.js');
|
|
6
|
+
require('react');
|
|
7
|
+
require('classnames');
|
|
8
|
+
require('../style-inject.es-9d2f5f4e.js');
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
exports.Typography = Typography.Typography;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var React = require('react');
|
|
4
|
+
var classnames = require('classnames');
|
|
5
|
+
var styleInject_es = require('./style-inject.es-9d2f5f4e.js');
|
|
6
|
+
|
|
7
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
|
+
|
|
9
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
10
|
+
var classnames__default = /*#__PURE__*/_interopDefaultLegacy(classnames);
|
|
11
|
+
|
|
12
|
+
var css_248z$8 = ".asDB9Ra2UpA- {\n margin: 0;\n padding: 0;\n font-family: \"Inter\", Helvetica, Arial, sans-serif;\n font-family: var(--typography--fontFamily-normal);\n /* Wrap really long words or URL's */\n word-wrap: break-word;\n overflow-wrap: break-word;\n word-wrap: break-word;\n}\n";
|
|
13
|
+
var styles = {"base":"asDB9Ra2UpA-"};
|
|
14
|
+
styleInject_es.styleInject(css_248z$8);
|
|
15
|
+
|
|
16
|
+
var css_248z$7 = "._7C4Ck1izBPs- {\n font-size: calc(\n (16px * 1) * 3\n );\n font-size: calc(\n calc(16px * 1) * 3\n );\n font-size: var(--typography--fontSize-extravagant);\n line-height: 1.08;\n line-height: var(--typography--lineHeight-miniscule);\n}\n\n._8X-fSrUTxV8- {\n font-size: calc((16px * 1) * 2.25);\n font-size: calc(calc(16px * 1) * 2.25);\n font-size: var(--typography--fontSize-jumbo);\n line-height: 1.08;\n line-height: var(--typography--lineHeight-miniscule);\n}\n\n.n-SPJXPXLSA- {\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 line-height: 1.12;\n line-height: var(--typography--lineHeight-tightest);\n}\n\n.vCrvF55YQ9o- {\n font-size: calc((16px * 1) * 1.25);\n font-size: calc(calc(16px * 1) * 1.25);\n font-size: var(--typography--fontSize-larger);\n line-height: 1.2;\n line-height: var(--typography--lineHeight-tight);\n}\n\n.FBoaHWotSik- {\n font-size: calc(16px * 1);\n font-size: var(--typography--fontSize-large);\n line-height: 1.34;\n line-height: var(--typography--lineHeight-large);\n}\n\n.V6yPPLHLeuY- {\n font-size: calc((16px * 1) * 0.875);\n font-size: calc(calc(16px * 1) * 0.875);\n font-size: var(--typography--fontSize-base);\n line-height: 1.25;\n line-height: var(--typography--lineHeight-base);\n}\n\n.T5XC4DgJlxk- {\n font-size: calc((16px * 1) * 0.75);\n font-size: calc(calc(16px * 1) * 0.75);\n font-size: var(--typography--fontSize-small);\n line-height: 1.143;\n line-height: var(--typography--lineHeight-tighter);\n}\n\n.sycqXMMO-wc- {\n font-size: calc(\n (16px * 1) * 0.625\n );\n font-size: calc(\n calc(16px * 1) * 0.625\n );\n font-size: var(--typography--fontSize-smaller);\n line-height: 1.2;\n line-height: var(--typography--lineHeight-tight);\n}\n";
|
|
17
|
+
var fontSizes = {"extravagant":"_7C4Ck1izBPs-","jumbo":"_8X-fSrUTxV8-","largest":"n-SPJXPXLSA-","larger":"vCrvF55YQ9o-","large":"FBoaHWotSik-","base":"V6yPPLHLeuY-","small":"T5XC4DgJlxk-","smaller":"sycqXMMO-wc-"};
|
|
18
|
+
styleInject_es.styleInject(css_248z$7);
|
|
19
|
+
|
|
20
|
+
var css_248z$6 = ".lziyWzzvuno- {\n font-family: \"Inter\", Helvetica, Arial, sans-serif;\n font-family: var(--typography--fontFamily-normal);\n font-weight: 400;\n}\n\n.PVKSijyipP8- {\n font-family: \"Inter\", Helvetica, Arial, sans-serif;\n font-family: var(--typography--fontFamily-normal);\n font-weight: 500;\n}\n\n.-ch9Z4gIGDg- {\n font-family: \"Inter\", Helvetica, Arial, sans-serif;\n font-family: var(--typography--fontFamily-normal);\n font-weight: 600;\n}\n\n.EEwS0f07RqQ- {\n font-family: \"Inter\", Helvetica, Arial, sans-serif;\n font-family: var(--typography--fontFamily-normal);\n font-weight: 700;\n}\n\n.kA3NtPPWbP0- {\n font-family: \"Jobber Pro\", \"Poppins\", Helvetica, Arial,\n sans-serif;\n font-family: var(--typography--fontFamily-display);\n font-weight: 800;\n}\n\n.jobber-retheme .kA3NtPPWbP0- {\n font-family: \"Inter\", Helvetica, Arial, sans-serif;\n font-family: var(--typography--fontFamily-normal);\n}\n\n._3M58OLqp0JM- {\n font-family: \"Jobber Pro\", \"Poppins\", Helvetica, Arial,\n sans-serif;\n font-family: var(--typography--fontFamily-display);\n font-weight: 900;\n}\n";
|
|
21
|
+
var fontWeights = {"regular":"lziyWzzvuno-","medium":"PVKSijyipP8-","semiBold":"-ch9Z4gIGDg-","bold":"EEwS0f07RqQ-","extraBold":"kA3NtPPWbP0-","black":"_3M58OLqp0JM-"};
|
|
22
|
+
styleInject_es.styleInject(css_248z$6);
|
|
23
|
+
|
|
24
|
+
var css_248z$5 = ".xE6cC62h5G0- {\n text-transform: uppercase;\n}\n\n.HlqJJ3Cl7dE- {\n text-transform: lowercase;\n}\n\n.Loe26JnDfco- {\n text-transform: capitalize;\n}\n";
|
|
25
|
+
var textCases = {"uppercase":"xE6cC62h5G0-","lowercase":"HlqJJ3Cl7dE-","capitalize":"Loe26JnDfco-"};
|
|
26
|
+
styleInject_es.styleInject(css_248z$5);
|
|
27
|
+
|
|
28
|
+
var css_248z$4 = ".pkqoq2KXY9w- {\n color: rgb(1, 41, 57);\n color: var(--color-blue);\n}\n\n.ftVHRSii3ro- {\n color: rgb(181, 181, 181);\n color: var(--color-grey);\n}\n\n.FQbGABZWVzA- {\n color: rgb(66, 78, 86);\n color: var(--color-greyBlue--dark);\n}\n\n.zQaB9J0-vrs- {\n color: rgba(101, 120, 132, 1);\n color: var(--color-greyBlue);\n}\n\n._4-xdzcqT-Us- {\n color: rgb(125, 176, 14);\n color: var(--color-green);\n}\n\n.Zp9E7ELPjPA- {\n color: rgb(201, 66, 33);\n color: var(--color-red);\n}\n\n.v-Fo4PwPxDI- {\n color: rgb(221, 195, 15);\n color: var(--color-yellow);\n}\n\n.YrGUIChAZC0- {\n color: rgb(144, 127, 10);\n color: var(--color-yellow--dark);\n}\n\n.r7JcIVoDcTY- {\n color: rgb(60, 162, 224);\n color: var(--color-lightBlue);\n}\n\n._6RXTyd198iM- {\n color: rgba(255, 255, 255, 1);\n color: var(--color-white);\n}\n\n.fLix4jA-RkU- {\n color: rgb(1, 41, 57);\n color: var(--color-heading);\n}\n\n._1g0uMAwFAsk- {\n color: rgb(66, 78, 86);\n color: var(--color-text);\n}\n\n.oXqFAHwT6y4- {\n color: rgb(77, 105, 116);\n color: var(--color-text--secondary);\n}\n\n.gPhKMwPfrsw- {\n color: rgb(1, 27, 37);\n color: var(--color-inactive--onSurface);\n}\n\n.rWkzi9HFNDU- {\n color: rgb(128, 25, 0);\n color: var(--color-critical--onSurface);\n}\n\n.PQLYQKGCmPI- {\n color: rgb(144, 127, 10);\n color: var(--color-warning--onSurface);\n}\n\n.L6bBDJrx-m0- {\n color: rgb(39, 105, 146);\n color: var(--color-informative--onSurface);\n}\n\n.bJDJJKvmT90- {\n color: rgb(81, 114, 9);\n color: var(--color-success--onSurface);\n}\n\n._3g4iYm8XwkM- {\n color: rgb(181, 181, 181);\n color: var(--color-disabled);\n}\n";
|
|
29
|
+
var textColors = {"blue":"pkqoq2KXY9w-","grey":"ftVHRSii3ro-","greyBlueDark":"FQbGABZWVzA-","greyBlue":"zQaB9J0-vrs-","green":"_4-xdzcqT-Us-","red":"Zp9E7ELPjPA-","yellow":"v-Fo4PwPxDI-","yellowDark":"YrGUIChAZC0-","lightBlue":"r7JcIVoDcTY-","white":"_6RXTyd198iM-","heading":"fLix4jA-RkU-","text":"_1g0uMAwFAsk-","textSecondary":"oXqFAHwT6y4-","inactive":"gPhKMwPfrsw-","critical":"rWkzi9HFNDU-","warning":"PQLYQKGCmPI-","informative":"L6bBDJrx-m0-","success":"bJDJJKvmT90-","disabled":"_3g4iYm8XwkM-"};
|
|
30
|
+
styleInject_es.styleInject(css_248z$4);
|
|
31
|
+
|
|
32
|
+
var css_248z$3 = ".Jys1uy2pQXw- {\n font-style: italic;\n}\n\n.kd2u0dL-if0- {\n display: inline;\n font-family: inherit;\n font-style: normal;\n font-weight: inherit;\n background-image: url(\"data:image/svg+xml,%3Csvg viewBox='0 0 84 8' fill='none' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.5 6.50004C14.6667 4.50004 49.3 0.900038 82.5 2.50004' stroke='%2384EA00' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E\");\n background-position: center bottom;\n background-repeat: no-repeat;\n background-size: 100% 20%;\n}\n";
|
|
33
|
+
var emphasis = {"italic":"Jys1uy2pQXw-","highlight":"kd2u0dL-if0-"};
|
|
34
|
+
styleInject_es.styleInject(css_248z$3);
|
|
35
|
+
|
|
36
|
+
var css_248z$2 = ".LUJEfdi3pws- {\n display: -webkit-box !important;\n}\n.LUJEfdi3pws- {\n -webkit-box-orient: vertical;\n overflow: hidden;\n}\n";
|
|
37
|
+
var truncate = {"textTruncate":"LUJEfdi3pws-"};
|
|
38
|
+
styleInject_es.styleInject(css_248z$2);
|
|
39
|
+
|
|
40
|
+
var css_248z$1 = ".eDMsbRCP0kg- {\n text-align: left;\n}\n\n.j34R9yIG--c- {\n text-align: center;\n}\n\n.CeI75T5sHwM- {\n text-align: right;\n}\n";
|
|
41
|
+
var alignment = {"start":"eDMsbRCP0kg-","center":"j34R9yIG--c-","end":"CeI75T5sHwM-"};
|
|
42
|
+
styleInject_es.styleInject(css_248z$1);
|
|
43
|
+
|
|
44
|
+
var css_248z = ".mRpfVoMiIMM- {\n font-family: \"Inter\", Helvetica, Arial, sans-serif;\n font-family: var(--typography--fontFamily-normal);\n}\n\n.TPtuWMdOsfw- {\n font-family: \"Jobber Pro\", \"Poppins\", Helvetica, Arial,\n sans-serif;\n font-family: var(--typography--fontFamily-display);\n}\n";
|
|
45
|
+
var fontFamilies = {"base":"mRpfVoMiIMM-","display":"TPtuWMdOsfw-"};
|
|
46
|
+
styleInject_es.styleInject(css_248z);
|
|
47
|
+
|
|
48
|
+
/* eslint-disable import/no-internal-modules */
|
|
49
|
+
function Typography({ id, children, element: Tag = "p", size, align, fontWeight = "regular", textCase, textColor, emphasisType, numberOfLines, fontFamily, }) {
|
|
50
|
+
const shouldTruncateText = numberOfLines && numberOfLines > 0;
|
|
51
|
+
const className = classnames__default["default"](styles.base, fontWeights[fontWeight], size && fontSizes[size], textCase && textCases[textCase], textColor && textColors[textColor], emphasisType && emphasis[emphasisType], fontFamily && fontFamilies[fontFamily], shouldTruncateText && truncate.textTruncate, Object.assign({}, (align && { [alignment[align]]: align !== `start` })));
|
|
52
|
+
let truncateLines;
|
|
53
|
+
if (shouldTruncateText) {
|
|
54
|
+
truncateLines = {
|
|
55
|
+
WebkitLineClamp: numberOfLines,
|
|
56
|
+
WebkitBoxOrient: "vertical",
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
return (React__default["default"].createElement(Tag, { id: id, className: className, style: truncateLines }, children));
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
exports.Typography = Typography;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
function styleInject(css, ref) {
|
|
4
|
+
if ( ref === void 0 ) ref = {};
|
|
5
|
+
var insertAt = ref.insertAt;
|
|
6
|
+
|
|
7
|
+
if (!css || typeof document === 'undefined') { return; }
|
|
8
|
+
|
|
9
|
+
var head = document.head || document.getElementsByTagName('head')[0];
|
|
10
|
+
var style = document.createElement('style');
|
|
11
|
+
style.type = 'text/css';
|
|
12
|
+
|
|
13
|
+
if (insertAt === 'top') {
|
|
14
|
+
if (head.firstChild) {
|
|
15
|
+
head.insertBefore(style, head.firstChild);
|
|
16
|
+
} else {
|
|
17
|
+
head.appendChild(style);
|
|
18
|
+
}
|
|
19
|
+
} else {
|
|
20
|
+
head.appendChild(style);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
if (style.styleSheet) {
|
|
24
|
+
style.styleSheet.cssText = css;
|
|
25
|
+
} else {
|
|
26
|
+
style.appendChild(document.createTextNode(css));
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
exports.styleInject = styleInject;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/******************************************************************************
|
|
4
|
+
Copyright (c) Microsoft Corporation.
|
|
5
|
+
|
|
6
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
7
|
+
purpose with or without fee is hereby granted.
|
|
8
|
+
|
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
10
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
11
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
12
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
13
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
14
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
15
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
16
|
+
***************************************************************************** */
|
|
17
|
+
|
|
18
|
+
function __rest(s, e) {
|
|
19
|
+
var t = {};
|
|
20
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
21
|
+
t[p] = s[p];
|
|
22
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
23
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
24
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
25
|
+
t[p[i]] = s[p[i]];
|
|
26
|
+
}
|
|
27
|
+
return t;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
|
31
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
32
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
33
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
34
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
35
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
36
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
41
|
+
var e = new Error(message);
|
|
42
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
exports.__awaiter = __awaiter;
|
|
46
|
+
exports.__rest = __rest;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var useSafeLayoutEffect = require('
|
|
3
|
+
var useSafeLayoutEffect = require('@jobber/hooks/useSafeLayoutEffect');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
|
|
6
6
|
// For retheme purposes only.
|
|
7
7
|
// This will be removed once the retheme is out of the experiment.
|
|
8
8
|
function useAtlantisConfig() {
|
|
9
9
|
const [JOBBER_RETHEME, setJOBBER_RETHEME] = React.useState(false);
|
|
10
|
-
useSafeLayoutEffect.
|
|
10
|
+
useSafeLayoutEffect.useSafeLayoutEffect(() => {
|
|
11
11
|
setJOBBER_RETHEME(document.body.classList.contains("jobber-retheme"));
|
|
12
12
|
}, []);
|
|
13
13
|
return { JOBBER_RETHEME };
|