@jobber/components 4.85.6-CJS-to-ESM.4 → 4.85.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/README.md +0 -4
- package/dist/AnimatedPresence/{index.cjs → index.js} +3 -1
- package/dist/{AnimatedPresence-DFaAEYUa.js → AnimatedPresence-20a02aaa.js} +7 -3
- package/dist/AnimatedSwitcher/index.js +13 -0
- package/dist/{AnimatedSwitcher-UmlTf067.js → AnimatedSwitcher-3d45ec5d.js} +8 -4
- package/dist/Autocomplete/index.js +209 -0
- package/dist/Avatar/index.js +15 -0
- package/dist/Avatar-76a799fa.js +78 -0
- package/dist/Banner/index.js +110 -0
- package/dist/Button/index.js +16 -0
- package/dist/Button-b73a5e01.js +57 -0
- package/dist/ButtonDismiss/index.js +17 -0
- package/dist/ButtonDismiss-350af163.js +14 -0
- package/dist/Card/index.js +24 -0
- package/dist/{Card-BeL8rCSY.js → Card-e3144022.js} +25 -20
- package/dist/Checkbox/index.js +18 -0
- package/dist/Checkbox-787e2e47.js +63 -0
- package/dist/Chip/index.js +41 -0
- package/dist/Chip-3d1bfddc.js +89 -0
- package/dist/Chips/index.js +524 -0
- package/dist/Combobox/index.js +40 -0
- package/dist/Combobox-a24c8241.js +479 -0
- package/dist/ConfirmationModal/index.js +31 -0
- package/dist/{ConfirmationModal-Bg7ftIT2.js → ConfirmationModal-52e16873.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 +1335 -0
- package/dist/DataTable/index.js +301 -0
- package/dist/DatePicker/index.js +20 -0
- package/dist/DatePicker-64c5ab1a.js +134 -0
- package/dist/DescriptionList/index.js +24 -0
- package/dist/Disclosure/index.js +46 -0
- package/dist/{Divider-Dt_qE9xe.js → Divider/index.js} +11 -4
- package/dist/Drawer/index.js +49 -0
- package/dist/Emphasis/index.js +13 -0
- package/dist/Emphasis-bda56d3b.js +19 -0
- package/dist/FeatureSwitch/index.js +70 -0
- package/dist/Flex/index.js +12 -0
- package/dist/{Flex-CBKf3epb.js → Flex-d490c4db.js} +8 -3
- package/dist/{Form-ChkdN1bx.js → Form/index.js} +9 -3
- package/dist/FormField/index.js +24 -0
- package/dist/FormField-6ff183f8.js +253 -0
- package/dist/FormatDate/{index.cjs → index.js} +3 -1
- package/dist/{FormatDate-BzJETLja.js → FormatDate-70ea5b43.js} +5 -1
- package/dist/FormatEmail/index.js +23 -0
- package/dist/FormatFile/index.js +36 -0
- package/dist/FormatFile-f036902d.js +162 -0
- package/dist/{FormatRelativeDateTime-COgItrYT.js → FormatRelativeDateTime/index.js} +11 -5
- package/dist/{FormatTime-CfcVslez.js → FormatTime/index.js} +7 -1
- package/dist/Gallery/index.js +99 -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 +14 -0
- package/dist/{Heading-suKDLmO4.js → Heading-1e8e4bd3.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-a6557829.js +28 -0
- package/dist/InputAvatar/index.js +70 -0
- package/dist/InputDate/index.js +57 -0
- package/dist/InputEmail/index.js +43 -0
- package/dist/InputFile/index.js +25 -0
- package/dist/InputFile-bb945071.js +190 -0
- package/dist/InputGroup/index.js +12 -0
- package/dist/{InputGroup-Bljb97cw.js → InputGroup-8d4fd4eb.js} +10 -5
- package/dist/InputNumber/index.js +25 -0
- package/dist/{InputNumber-B0sa7sL7.js → InputNumber-d451b52e.js} +6 -2
- package/dist/InputPassword/index.js +41 -0
- package/dist/{InputPhoneNumber-Bv3OG77a.js → InputPhoneNumber/index.js} +25 -8
- package/dist/InputText/index.js +26 -0
- package/dist/{InputText--fuxI6yf.js → InputText-55b6cb65.js} +8 -4
- package/dist/{InputTime-BcgwlVsy.js → InputTime/index.js} +25 -5
- package/dist/InputValidation/index.js +17 -0
- package/dist/InputValidation-05e839fa.js +29 -0
- package/dist/LightBox/index.js +24 -0
- package/dist/LightBox-a89d8863.js +117 -0
- package/dist/Link/index.js +15 -0
- package/dist/List/index.d.ts +1 -1
- package/dist/List/index.js +93 -0
- package/dist/Markdown/index.js +19 -0
- package/dist/Markdown-f7c55304.js +62 -0
- package/dist/Menu/index.js +21 -0
- package/dist/Menu-083fc4c4.js +139 -0
- package/dist/Modal/index.js +25 -0
- package/dist/Modal-c336cac6.js +71 -0
- package/dist/{MultiSelect-D_-_TiTD.js → MultiSelect/index.js} +27 -16
- package/dist/Option-3c4d377e.js +19 -0
- package/dist/Page/index.js +78 -0
- package/dist/Popover/index.js +61 -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-17b67ade.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-b179d06e.js +18 -0
- package/dist/StatusLabel/index.js +29 -0
- package/dist/Switch/index.js +13 -0
- package/dist/Switch-7d4aa7c3.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-D9gsHxbp.js → Text-259af966.js} +6 -2
- package/dist/Toast/index.js +111 -0
- package/dist/Tooltip/index.js +16 -0
- package/dist/{Tooltip-BEW-a9OW.js → Tooltip-ef3d6ef4.js} +18 -12
- package/dist/Typography/index.js +12 -0
- package/dist/Typography-c45bf216.js +62 -0
- package/dist/tslib.es6-754e2961.js +46 -0
- package/package.json +9 -382
- package/{rollup.config.mjs → rollup.config.js} +19 -27
- package/dist/AnimatedPresence/index.mjs +0 -4
- package/dist/AnimatedPresence-D73apgLB.js +0 -98
- package/dist/AnimatedSwitcher/index.cjs +0 -11
- package/dist/AnimatedSwitcher/index.mjs +0 -5
- package/dist/AnimatedSwitcher-B4fUExeN.js +0 -90
- package/dist/Autocomplete/index.cjs +0 -33
- package/dist/Autocomplete/index.mjs +0 -27
- package/dist/Autocomplete-1iO7JRX2.js +0 -190
- package/dist/Autocomplete-CfntbJ6I.js +0 -188
- package/dist/Avatar/index.cjs +0 -13
- package/dist/Avatar/index.mjs +0 -7
- package/dist/Avatar-DZCQBKMr.js +0 -70
- package/dist/Avatar-Q2BQymsE.js +0 -72
- 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-9-5fXphG.js +0 -82
- package/dist/Banner-QqoLHMka.js +0 -84
- package/dist/BannerIcon-QB3lZddm.js +0 -24
- package/dist/BannerIcon-YIreWKuC.js +0 -27
- package/dist/Body-DMRyfeGa.js +0 -59
- package/dist/Body-Dd2-HEDo.js +0 -50
- package/dist/Button/index.cjs +0 -14
- package/dist/Button/index.mjs +0 -8
- package/dist/Button-CWVwgwhn.js +0 -50
- package/dist/Button-D3mW3Hcg.js +0 -52
- package/dist/ButtonDismiss/index.cjs +0 -15
- package/dist/ButtonDismiss/index.mjs +0 -9
- package/dist/ButtonDismiss-GLptCaNc.js +0 -8
- package/dist/ButtonDismiss-l6Kunmen.js +0 -10
- package/dist/Card/index.cjs +0 -22
- package/dist/Card/index.mjs +0 -16
- package/dist/Card-DQB6rhwZ.js +0 -86
- package/dist/Checkbox/index.cjs +0 -16
- package/dist/Checkbox/index.mjs +0 -10
- package/dist/Checkbox-C78HDAVJ.js +0 -58
- package/dist/Checkbox-qsepteuE.js +0 -56
- package/dist/Chip/hooks/index.cjs +0 -8
- package/dist/Chip/hooks/index.mjs +0 -2
- package/dist/Chip/index.cjs +0 -27
- package/dist/Chip/index.mjs +0 -19
- package/dist/Chip-Cvuqhi_q.js +0 -70
- package/dist/Chip-DSy6Xm8R.js +0 -73
- package/dist/ChipDismissible-BtVU1TDW.js +0 -22
- package/dist/ChipDismissible-C8X7PyuZ.js +0 -19
- 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-DKCvpzfp.js +0 -91
- package/dist/Chips-PXZl-nIG.js +0 -93
- package/dist/Combobox/components/ComboboxAction/index.cjs +0 -13
- package/dist/Combobox/components/ComboboxAction/index.mjs +0 -7
- package/dist/Combobox/components/ComboboxActivator/index.cjs +0 -28
- package/dist/Combobox/components/ComboboxActivator/index.mjs +0 -22
- package/dist/Combobox/components/ComboboxContent/ComboboxContentHeader/index.cjs +0 -15
- package/dist/Combobox/components/ComboboxContent/ComboboxContentHeader/index.mjs +0 -9
- package/dist/Combobox/components/ComboboxContent/ComboboxContentList/index.cjs +0 -26
- package/dist/Combobox/components/ComboboxContent/ComboboxContentList/index.mjs +0 -20
- package/dist/Combobox/components/ComboboxContent/ComboboxContentSearch/index.cjs +0 -11
- package/dist/Combobox/components/ComboboxContent/ComboboxContentSearch/index.mjs +0 -5
- package/dist/Combobox/components/ComboboxContent/ComboboxLoadMore/index.cjs +0 -11
- package/dist/Combobox/components/ComboboxContent/ComboboxLoadMore/index.mjs +0 -5
- package/dist/Combobox/components/ComboboxContent/index.cjs +0 -36
- package/dist/Combobox/components/ComboboxContent/index.mjs +0 -30
- package/dist/Combobox/components/ComboboxOption/index.cjs +0 -15
- package/dist/Combobox/components/ComboboxOption/index.mjs +0 -9
- package/dist/Combobox/components/ComboboxTrigger/index.cjs +0 -26
- package/dist/Combobox/components/ComboboxTrigger/index.mjs +0 -20
- package/dist/Combobox/index.cjs +0 -53
- package/dist/Combobox/index.mjs +0 -46
- package/dist/Combobox-CL1tRKd3.js +0 -122
- package/dist/Combobox-D44taKUg.js +0 -120
- package/dist/ComboboxAction-B3RwsCtx.js +0 -27
- package/dist/ComboboxAction-BzEwYtPm.js +0 -25
- package/dist/ComboboxActivator-D41tfwAg.js +0 -26
- package/dist/ComboboxActivator-DT29yQ2v.js +0 -28
- package/dist/ComboboxContent-BRgUJ7J4.js +0 -144
- package/dist/ComboboxContent-C3MIJd9a.js +0 -146
- package/dist/ComboboxContentHeader-CJ0if4JI.js +0 -32
- package/dist/ComboboxContentHeader-DFLlxg-X.js +0 -30
- package/dist/ComboboxContentList-B_KlRjj7.js +0 -78
- package/dist/ComboboxContentList-wTyr0j1u.js +0 -80
- package/dist/ComboboxContentSearch-B8hsfo_D.js +0 -35
- package/dist/ComboboxContentSearch-UAyHetvM.js +0 -37
- package/dist/ComboboxLoadMore-Bfg4pEkg.js +0 -19
- package/dist/ComboboxLoadMore-CBXYoxXv.js +0 -17
- package/dist/ComboboxOption-CWkyTkzU.js +0 -25
- package/dist/ComboboxOption-D_f4NcBM.js +0 -23
- package/dist/ComboboxProvider-BwxfVgmL.js +0 -13
- package/dist/ComboboxProvider-Dm_tfmkr.js +0 -10
- package/dist/ComboboxTrigger-DdG9k28y.js +0 -22
- package/dist/ComboboxTrigger-zTO01W3n.js +0 -24
- package/dist/ConfirmationModal/index.cjs +0 -32
- package/dist/ConfirmationModal/index.mjs +0 -26
- package/dist/ConfirmationModal-CrH9KKYd.js +0 -94
- package/dist/Content/index.cjs +0 -10
- package/dist/Content/index.mjs +0 -4
- package/dist/Content-B8Od1cqS.js +0 -20
- package/dist/Content-BknIp35w.js +0 -18
- package/dist/Countdown/index.cjs +0 -11
- package/dist/Countdown/index.mjs +0 -5
- package/dist/Countdown-6Bkj7xkV.js +0 -659
- package/dist/Countdown-XLp-r4PS.js +0 -657
- package/dist/DataDump/index.cjs +0 -25
- package/dist/DataDump/index.mjs +0 -19
- package/dist/DataDump-BQOPiKBi.js +0 -15
- package/dist/DataDump-DFesmG7X.js +0 -17
- package/dist/DataList/components/DataListAction/index.cjs +0 -14
- package/dist/DataList/components/DataListAction/index.mjs +0 -8
- 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 -16
- package/dist/DataList/components/DataListActionsMenu/index.mjs +0 -10
- 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 -21
- package/dist/DataList/components/DataListEmptyState/index.mjs +0 -14
- 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 -13
- package/dist/DataList/components/DataListHeaderTile/components/index.mjs +0 -7
- package/dist/DataList/components/DataListHeaderTile/index.cjs +0 -21
- package/dist/DataList/components/DataListHeaderTile/index.mjs +0 -15
- package/dist/DataList/components/DataListItem/components/DataListItemClickable/index.cjs +0 -15
- package/dist/DataList/components/DataListItem/components/DataListItemClickable/index.mjs +0 -9
- 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 -22
- package/dist/DataList/components/DataListLoadMore/index.mjs +0 -15
- package/dist/DataList/components/DataListLoadingState/index.cjs +0 -22
- package/dist/DataList/components/DataListLoadingState/index.mjs +0 -14
- package/dist/DataList/components/DataListOverflowFade/index.cjs +0 -13
- package/dist/DataList/components/DataListOverflowFade/index.mjs +0 -6
- package/dist/DataList/components/DataListSearch/index.cjs +0 -34
- package/dist/DataList/components/DataListSearch/index.mjs +0 -26
- 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 -12
- package/dist/DataList/components/DataListStickyHeader/index.mjs +0 -6
- package/dist/DataList/components/DataListTags/index.cjs +0 -13
- package/dist/DataList/components/DataListTags/index.mjs +0 -7
- package/dist/DataList/components/DataListTotalCount/index.cjs +0 -16
- package/dist/DataList/components/DataListTotalCount/index.mjs +0 -9
- 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-BL3zeA83.js +0 -9
- package/dist/DataList-D67E3-Ka.js +0 -139
- package/dist/DataList-D8rsiB6p.js +0 -7
- package/dist/DataList-DqrdT8B4.js +0 -141
- package/dist/DataList.const-Wz370ukq.js +0 -25
- package/dist/DataList.const-YbvF2-QB.js +0 -38
- package/dist/DataList.utils-DTLgRGnD.js +0 -168
- package/dist/DataList.utils-DoGRceLK.js +0 -161
- package/dist/DataListAction-CMZbwbN5.js +0 -40
- package/dist/DataListAction-CzSLV230.js +0 -42
- package/dist/DataListActions-CeuvLm4e.js +0 -45
- package/dist/DataListActions-DiFKUVOd.js +0 -43
- package/dist/DataListActionsMenu-BOJ6GBFf.js +0 -55
- package/dist/DataListActionsMenu-BtZsN7F7.js +0 -53
- package/dist/DataListBulkActions-BBh5Yg_B.js +0 -29
- package/dist/DataListBulkActions-DWmugOCQ.js +0 -32
- package/dist/DataListContext-9uw8XwzP.js +0 -25
- package/dist/DataListContext-B4eBw_aH.js +0 -29
- package/dist/DataListEmptyState-B7Yug5IF.js +0 -56
- package/dist/DataListEmptyState-bCN6CJ0x.js +0 -53
- package/dist/DataListFilters-BjCiSdX2.js +0 -43
- package/dist/DataListFilters-C8PRbG6B.js +0 -46
- package/dist/DataListHeader-1UOL7n9h.js +0 -93
- package/dist/DataListHeader-Baxtt1sP.js +0 -95
- package/dist/DataListHeaderTile-Bmb-3jk4.js +0 -86
- package/dist/DataListHeaderTile-CawTnwxZ.js +0 -84
- package/dist/DataListItem-B2PBp6pr.js +0 -112
- package/dist/DataListItem-CVmLNaR9.js +0 -114
- package/dist/DataListItemActions-BDMYnI5D.js +0 -35
- package/dist/DataListItemActions-BNZ702t2.js +0 -32
- package/dist/DataListItemActionsOverflow-Cv89cyOn.js +0 -33
- package/dist/DataListItemActionsOverflow-jnHamzf7.js +0 -35
- package/dist/DataListItemClickable-8iEm6BU0.js +0 -45
- package/dist/DataListItemClickable-BZ7u37GY.js +0 -47
- package/dist/DataListItems-C2afygvC.js +0 -21
- package/dist/DataListItems-DWx1TECw.js +0 -19
- package/dist/DataListLayout-DMY8Io7b.js +0 -19
- package/dist/DataListLayout-KiPC1zwI.js +0 -21
- package/dist/DataListLayoutActions-AijXG655.js +0 -41
- package/dist/DataListLayoutActions-DrTY5Ejw.js +0 -39
- package/dist/DataListLayoutContext-CavOWAD3.js +0 -14
- package/dist/DataListLayoutContext-D3REliDa.js +0 -8
- package/dist/DataListLayoutContext-DT0mtKzt.js +0 -11
- package/dist/DataListLayoutContext-DvTtBMxW.js +0 -18
- package/dist/DataListLoadMore-BgEh97cj.js +0 -37
- package/dist/DataListLoadMore-RU8ynOhk.js +0 -34
- package/dist/DataListLoadingState-Bvrt8fF7.js +0 -25
- package/dist/DataListLoadingState-Cm3mAc4V.js +0 -29
- package/dist/DataListOverflowFade-BZk4jUAc.js +0 -28
- package/dist/DataListOverflowFade-DqAHrxFC.js +0 -25
- package/dist/DataListSearch-2s_UETky.js +0 -62
- package/dist/DataListSearch-P9-j_TtT.js +0 -66
- package/dist/DataListSort-BPIPnVXL.js +0 -94
- package/dist/DataListSort-D1Ng8x7t.js +0 -92
- package/dist/DataListSortingOptions-Ciu5gWGt.js +0 -38
- package/dist/DataListSortingOptions-SfZWLgFS.js +0 -40
- package/dist/DataListStatusBar-D-j7Wk18.js +0 -25
- package/dist/DataListStatusBar-wvLYlUTP.js +0 -22
- package/dist/DataListStickyHeader-BKN9V51R.js +0 -28
- package/dist/DataListStickyHeader-CCG09E7V.js +0 -26
- package/dist/DataListTags-C5inHFOR.js +0 -67
- package/dist/DataListTags-CHZr9DW3.js +0 -65
- package/dist/DataListTotalCount-B9K3hGqp.js +0 -30
- package/dist/DataListTotalCount-Dzzm_buN.js +0 -27
- package/dist/DataTable/index.cjs +0 -37
- package/dist/DataTable/index.mjs +0 -26
- package/dist/DataTable/test-utilities/index.cjs +0 -246
- package/dist/DataTable/test-utilities/index.mjs +0 -238
- package/dist/DataTable-CMTFBvO6.js +0 -247
- package/dist/DataTable-D0MIpeXc.js +0 -245
- package/dist/DatePicker/index.cjs +0 -24
- package/dist/DatePicker/index.mjs +0 -18
- package/dist/DatePicker-B2LXoRjW.js +0 -1279
- package/dist/DatePicker-BuD8xaKB.js +0 -1282
- package/dist/DayOfMonthSelect--s7Ry-jx.js +0 -141
- package/dist/DayOfMonthSelect-UlE6seGW.js +0 -148
- package/dist/DescriptionList/index.cjs +0 -11
- package/dist/DescriptionList/index.mjs +0 -5
- package/dist/DescriptionList-CBeTDl49.js +0 -15
- package/dist/DescriptionList-DBENvQT5.js +0 -17
- package/dist/Disclosure/index.cjs +0 -18
- package/dist/Disclosure/index.mjs +0 -12
- package/dist/Disclosure-CWNmDoE_.js +0 -38
- package/dist/Disclosure-CXQ8I0Xh.js +0 -36
- package/dist/Divider/index.cjs +0 -10
- package/dist/Divider/index.mjs +0 -4
- package/dist/Divider-DOmpOAKU.js +0 -20
- package/dist/Drawer/index.cjs +0 -19
- package/dist/Drawer/index.mjs +0 -12
- package/dist/DrawerGrid-Bg9ydPFR.js +0 -33
- package/dist/DrawerGrid-DM3WKmX6.js +0 -36
- package/dist/Emphasis/index.cjs +0 -11
- package/dist/Emphasis/index.mjs +0 -5
- package/dist/Emphasis-B3vf8Ek9.js +0 -15
- package/dist/Emphasis-xxFrrT2i.js +0 -13
- package/dist/FeatureSwitch/index.cjs +0 -27
- package/dist/FeatureSwitch/index.mjs +0 -21
- package/dist/FeatureSwitch-C6OjQJWH.js +0 -57
- package/dist/FeatureSwitch-Dt8VXcE6.js +0 -55
- package/dist/Flex/index.cjs +0 -10
- package/dist/Flex/index.mjs +0 -4
- package/dist/Flex-DXDpEzMI.js +0 -31
- package/dist/Form/index.cjs +0 -10
- package/dist/Form/index.mjs +0 -4
- package/dist/Form-Dd9YKBh-.js +0 -48
- package/dist/FormField/index.cjs +0 -21
- package/dist/FormField/index.mjs +0 -15
- package/dist/FormField-D2Dlrypi.js +0 -296
- package/dist/FormField-hCrwUWca.js +0 -298
- package/dist/FormatDate/index.mjs +0 -2
- package/dist/FormatDate-Dxs33-Xj.js +0 -27
- package/dist/FormatEmail/index.cjs +0 -10
- package/dist/FormatEmail/index.mjs +0 -4
- package/dist/FormatEmail-BH1qM7Va.js +0 -16
- package/dist/FormatEmail-_Ytrq7mn.js +0 -14
- package/dist/FormatFile/index.cjs +0 -37
- package/dist/FormatFile/index.mjs +0 -31
- package/dist/FormatFile-BEsZX9CU.js +0 -154
- package/dist/FormatFile-BhY6M5LN.js +0 -156
- package/dist/FormatRelativeDateTime/index.cjs +0 -8
- package/dist/FormatRelativeDateTime/index.mjs +0 -2
- package/dist/FormatRelativeDateTime-DTnQraIq.js +0 -64
- package/dist/FormatTime/index.cjs +0 -8
- package/dist/FormatTime/index.mjs +0 -2
- package/dist/FormatTime-BGr7_DaA.js +0 -28
- package/dist/Gallery/index.cjs +0 -42
- package/dist/Gallery/index.mjs +0 -36
- package/dist/Gallery-BfEW11YL.js +0 -66
- package/dist/Gallery-kWVZNTYq.js +0 -68
- package/dist/Glimmer/index.cjs +0 -13
- package/dist/Glimmer/index.mjs +0 -6
- package/dist/Glimmer-Cgcy2Ruw.js +0 -72
- package/dist/Glimmer-Dz1E9Bo5.js +0 -69
- package/dist/Grid/InternalGridCell/index.cjs +0 -10
- package/dist/Grid/InternalGridCell/index.mjs +0 -3
- package/dist/Grid/index.cjs +0 -15
- package/dist/Grid/index.mjs +0 -8
- package/dist/Grid-InsV4yVr.js +0 -34
- package/dist/Grid-cuC0E5S-.js +0 -37
- package/dist/Heading/index.cjs +0 -12
- package/dist/Heading/index.mjs +0 -6
- package/dist/Heading-CL3UujY7.js +0 -49
- package/dist/Icon/index.cjs +0 -9
- package/dist/Icon/index.mjs +0 -3
- package/dist/Icon-B9XNdA1T.js +0 -36
- package/dist/Icon-CoHJokXb.js +0 -34
- package/dist/InlineLabel/index.cjs +0 -11
- package/dist/InlineLabel/index.mjs +0 -5
- package/dist/InlineLabel-BPjH1ASc.js +0 -23
- package/dist/InlineLabel-x3msDD5R.js +0 -21
- package/dist/InputAvatar/index.cjs +0 -27
- package/dist/InputAvatar/index.mjs +0 -21
- package/dist/InputAvatar-B2dB8FZL.js +0 -52
- package/dist/InputAvatar-CuzV_xzx.js +0 -50
- package/dist/InputDate/index.cjs +0 -32
- package/dist/InputDate/index.mjs +0 -26
- package/dist/InputDate-C9ydz9Nu.js +0 -33
- package/dist/InputDate-DEsSVsNk.js +0 -31
- package/dist/InputEmail/index.cjs +0 -23
- package/dist/InputEmail/index.mjs +0 -16
- package/dist/InputEmail-58nfESu9.js +0 -20
- package/dist/InputEmail-C_90uNvB.js +0 -23
- package/dist/InputFile/index.cjs +0 -24
- package/dist/InputFile/index.mjs +0 -17
- package/dist/InputFile-TLVjerUe.js +0 -1614
- package/dist/InputFile-cOKwdZIS.js +0 -1611
- package/dist/InputGroup/index.cjs +0 -10
- package/dist/InputGroup/index.mjs +0 -4
- package/dist/InputGroup-CCJ2rycA.js +0 -26
- package/dist/InputNumber/index.cjs +0 -22
- package/dist/InputNumber/index.mjs +0 -16
- package/dist/InputNumber-9zWSTnld.js +0 -56
- package/dist/InputPassword/index.cjs +0 -22
- package/dist/InputPassword/index.mjs +0 -16
- package/dist/InputPassword--RuWqNxH.js +0 -21
- package/dist/InputPassword-D6CEA3YM.js +0 -19
- package/dist/InputPhoneNumber/index.cjs +0 -22
- package/dist/InputPhoneNumber/index.mjs +0 -16
- package/dist/InputPhoneNumber-j8Cr2jkb.js +0 -97
- package/dist/InputText/index.cjs +0 -23
- package/dist/InputText/index.mjs +0 -17
- package/dist/InputText-CCmzDC9W.js +0 -96
- package/dist/InputTime/index.cjs +0 -27
- package/dist/InputTime/index.mjs +0 -21
- package/dist/InputTime-DBtpOhbX.js +0 -187
- package/dist/InputValidation/index.cjs +0 -15
- package/dist/InputValidation/index.mjs +0 -9
- package/dist/InputValidation-BmgvSw0e.js +0 -23
- package/dist/InputValidation-DIwnbDDv.js +0 -25
- package/dist/InternalChipDismissible-BuafNVqR.js +0 -157
- package/dist/InternalChipDismissible-D9MobrPl.js +0 -162
- package/dist/InternalGridCell-CBv95C-G.js +0 -37
- package/dist/InternalGridCell-DFrhM8oX.js +0 -40
- package/dist/LightBox/index.cjs +0 -25
- package/dist/LightBox/index.mjs +0 -19
- package/dist/LightBox-D4a2D7do.js +0 -109
- package/dist/LightBox-D57afhgq.js +0 -111
- package/dist/Link/index.cjs +0 -8
- package/dist/Link/index.mjs +0 -2
- package/dist/Link-Bnzn51lp.js +0 -9
- package/dist/Link-CTWzdpyV.js +0 -7
- package/dist/List/index.cjs +0 -30
- package/dist/List/index.mjs +0 -23
- package/dist/List-Cspxky2V.js +0 -196
- package/dist/List-DJE2WMjK.js +0 -193
- package/dist/Markdown/index.cjs +0 -20
- package/dist/Markdown/index.mjs +0 -14
- package/dist/Markdown-C-Kz7FGt.js +0 -18983
- package/dist/Markdown-D4Q_2pBV.js +0 -18985
- package/dist/Menu/index.cjs +0 -19
- package/dist/Menu/index.mjs +0 -13
- package/dist/Menu-6YnPYEq0.js +0 -132
- package/dist/Menu-D3mhNOYC.js +0 -134
- package/dist/Modal/index.cjs +0 -23
- package/dist/Modal/index.mjs +0 -17
- package/dist/Modal-DYsKMdiT.js +0 -65
- package/dist/Modal-u49JU_yq.js +0 -63
- package/dist/MultiSelect/index.cjs +0 -17
- package/dist/MultiSelect/index.mjs +0 -11
- package/dist/MultiSelect-ByY6NzAS.js +0 -169
- package/dist/Option-CK6AzE_2.js +0 -12
- package/dist/Option-CbvjqSHC.js +0 -15
- package/dist/Page/index.cjs +0 -34
- package/dist/Page/index.mjs +0 -28
- package/dist/Page-CNNOg5qF.js +0 -61
- package/dist/Page-Dj0S56-I.js +0 -59
- package/dist/Popover/index.cjs +0 -18
- package/dist/Popover/index.mjs +0 -12
- package/dist/Popover-DYWEx-xf.js +0 -49
- package/dist/Popover-EUC6wuNn.js +0 -47
- package/dist/ProgressBar/index.cjs +0 -10
- package/dist/ProgressBar/index.mjs +0 -4
- package/dist/ProgressBar-D2wik11q.js +0 -38
- package/dist/ProgressBar-DjFTRxLD.js +0 -36
- package/dist/RadioGroup/index.cjs +0 -13
- package/dist/RadioGroup/index.mjs +0 -6
- package/dist/RadioGroup-CL8tcJwY.js +0 -42
- package/dist/RadioGroup-CvoMZUNQ.js +0 -39
- package/dist/RecurringSelect/components/index.cjs +0 -16
- package/dist/RecurringSelect/components/index.mjs +0 -7
- package/dist/RecurringSelect/index.cjs +0 -36
- package/dist/RecurringSelect/index.mjs +0 -22
- package/dist/RecurringSelect-D2F9hWJb.js +0 -74
- package/dist/RecurringSelect-QdDavgCT.js +0 -76
- package/dist/Select/index.cjs +0 -23
- package/dist/Select/index.mjs +0 -16
- package/dist/Spinner/index.cjs +0 -10
- package/dist/Spinner/index.mjs +0 -4
- package/dist/Spinner-BOhyUAA_.js +0 -17
- package/dist/Spinner-DT15aa_r.js +0 -19
- package/dist/StatusIndicator/index.cjs +0 -9
- package/dist/StatusIndicator/index.mjs +0 -3
- package/dist/StatusIndicator-DMcPLJ2i.js +0 -14
- package/dist/StatusIndicator-DcXKG260.js +0 -12
- package/dist/StatusLabel/index.cjs +0 -13
- package/dist/StatusLabel/index.mjs +0 -7
- package/dist/StatusLabel-8RoVevu0.js +0 -21
- package/dist/StatusLabel-BJsnaMk6.js +0 -19
- package/dist/Switch/index.cjs +0 -11
- package/dist/Switch/index.mjs +0 -5
- package/dist/Switch-CQA6xnNA.js +0 -49
- package/dist/Switch-CWis2Tw3.js +0 -51
- package/dist/Table/index.cjs +0 -18
- package/dist/Table/index.mjs +0 -5
- package/dist/Tabs/index.cjs +0 -12
- package/dist/Tabs/index.mjs +0 -5
- package/dist/Tabs-D8_NCGQa.js +0 -70
- package/dist/Tabs-DsTn5FwP.js +0 -73
- package/dist/Text/index.cjs +0 -11
- package/dist/Text/index.mjs +0 -5
- package/dist/Text-DEviM1Tv.js +0 -25
- package/dist/Toast/index.cjs +0 -17
- package/dist/Toast/index.mjs +0 -11
- package/dist/Tooltip/index.cjs +0 -14
- package/dist/Tooltip/index.mjs +0 -8
- package/dist/Tooltip-mn2jRxXD.js +0 -104
- package/dist/Typography/index.cjs +0 -10
- package/dist/Typography/index.mjs +0 -4
- package/dist/Typography-Dx8KtnBw.js +0 -57
- package/dist/Typography-G8pA_xwj.js +0 -55
- package/dist/_baseAssignValue-B6tvMdT2.js +0 -31
- package/dist/_baseAssignValue-TwbvXiTB.js +0 -29
- package/dist/_baseEach--p319nr8.js +0 -1073
- package/dist/_baseEach-DPBHJoX6.js +0 -1069
- package/dist/_commonjsHelpers-B83fTs8d.js +0 -36
- package/dist/_commonjsHelpers-E-ZsRS8r.js +0 -32
- package/dist/_defineProperty-Bai9NpfZ.js +0 -1306
- package/dist/_defineProperty-DjLE4Bk3.js +0 -1326
- package/dist/_getTag-Bcit8gs_.js +0 -718
- package/dist/_getTag-Bd2IuclU.js +0 -733
- package/dist/_setToString-DwIrtHSk.js +0 -230
- package/dist/_setToString-QSHar2ai.js +0 -234
- package/dist/debounce-CJA36ltI.js +0 -332
- package/dist/debounce-D3te8_TG.js +0 -329
- package/dist/getAtlantisConfig-6FPWID0P.js +0 -11
- package/dist/helpers-B7JgOXZj.js +0 -15
- package/dist/helpers-y1-dsK59.js +0 -17
- package/dist/index-B88K44gK.js +0 -1186
- package/dist/index-BoP83yS-.js +0 -8
- package/dist/index-CJnrkxgL.js +0 -1189
- package/dist/index-Jb6tGBiW.js +0 -11
- package/dist/index.cjs +0 -273
- package/dist/index.d.mts +0 -73
- package/dist/index.d.ts +0 -73
- package/dist/index.mjs +0 -163
- package/dist/isObjectLike-BUFV4ggG.js +0 -197
- package/dist/isObjectLike-CkQBn_-v.js +0 -190
- package/dist/isSymbol-BB8mecpv.js +0 -33
- package/dist/isSymbol-DS9vlqp3.js +0 -35
- package/dist/noop-BHeBk22E.js +0 -26
- package/dist/noop-CJPLieIK.js +0 -24
- package/dist/showToast-CSU2xysR.js +0 -102
- package/dist/showToast-lrVl7hOm.js +0 -104
- package/dist/style-inject.es-tgCJW-Cu.js +0 -28
- package/dist/tslib.es6-Df1SgIEn.js +0 -97
- package/dist/tslib.es6-ld72nsZq.js +0 -102
- package/dist/useActiveLayout-BjGE_HD9.js +0 -16
- package/dist/useActiveLayout-Bvo5EJVa.js +0 -14
- package/dist/useAssert-DJjF2xRH.js +0 -55
- package/dist/useAssert-Dj-7DdKE.js +0 -57
- package/dist/useBatchSelect-D2oSwHTp.js +0 -38
- package/dist/useBatchSelect-DnLpNm6-.js +0 -36
- package/dist/useChildComponent-BUH0ttPi.js +0 -17
- package/dist/useChildComponent-D95jU7NM.js +0 -15
- package/dist/useFocusTrap-BtnnoHG8.js +0 -104
- package/dist/useFocusTrap-CMLwEDMY.js +0 -106
- package/dist/useInView-Ct13SCWB.js +0 -70
- package/dist/useInView-Yth15M0p.js +0 -68
- package/dist/useOnKeyDown-B9JF2jLZ.js +0 -72
- package/dist/useOnKeyDown-BsUfDste.js +0 -70
- package/dist/useRefocusOnActivator-CMNWUYSe.js +0 -62
- package/dist/useRefocusOnActivator-DOJm9VWz.js +0 -64
- package/dist/useResizeObserver-BwGseyVc.js +0 -1234
- package/dist/useResizeObserver-ZgXMUTij.js +0 -1231
- package/dist/useResponsiveSizing-CMuS7Or1.js +0 -46
- package/dist/useResponsiveSizing-DRjeJos_.js +0 -44
- package/dist/useSafeLayoutEffect-Qir6pm57.js +0 -44
- package/dist/useSafeLayoutEffect-yaw3NyzX.js +0 -42
- package/dist/useScrollToActive-BkZ3BYNd.js +0 -621
- package/dist/useScrollToActive-DMDRmhoI.js +0 -627
- /package/{.eslintrc.cjs → .eslintrc.js} +0 -0
- /package/dist/{getAtlantisConfig-mcMVqf6m.js → getAtlantisConfig-0f3e8af2.js} +0 -0
- /package/dist/{style-inject.es-XZHJH68X.js → style-inject.es-9d2f5f4e.js} +0 -0
|
@@ -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-c45bf216.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-259af966.js');
|
|
6
|
+
require('react');
|
|
7
|
+
require('../Typography-c45bf216.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-c45bf216.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-b73a5e01.js');
|
|
11
|
+
var Typography = require('../Typography-c45bf216.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,16 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var Tooltip = require('../Tooltip-ef3d6ef4.js');
|
|
6
|
+
require('react');
|
|
7
|
+
require('classnames');
|
|
8
|
+
require('react-dom');
|
|
9
|
+
require('framer-motion');
|
|
10
|
+
require('@jobber/hooks/useSafeLayoutEffect');
|
|
11
|
+
require('../style-inject.es-9d2f5f4e.js');
|
|
12
|
+
require('react-popper');
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
exports.Tooltip = Tooltip.Tooltip;
|
|
@@ -4,11 +4,17 @@ var React = require('react');
|
|
|
4
4
|
var classnames = require('classnames');
|
|
5
5
|
var ReactDOM = require('react-dom');
|
|
6
6
|
var framerMotion = require('framer-motion');
|
|
7
|
-
var useSafeLayoutEffect = require('
|
|
8
|
-
var styleInject_es = require('./style-inject.es-
|
|
7
|
+
var useSafeLayoutEffect = require('@jobber/hooks/useSafeLayoutEffect');
|
|
8
|
+
var styleInject_es = require('./style-inject.es-9d2f5f4e.js');
|
|
9
9
|
var reactPopper = require('react-popper');
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
12
|
+
|
|
13
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
14
|
+
var classnames__default = /*#__PURE__*/_interopDefaultLegacy(classnames);
|
|
15
|
+
var ReactDOM__default = /*#__PURE__*/_interopDefaultLegacy(ReactDOM);
|
|
16
|
+
|
|
17
|
+
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";
|
|
12
18
|
var styles = {"shadowActivator":"q07bkGoq714-","tooltipWrapper":"dkCTRfc3vYk-","tooltip":"yAFP4gRKlTM-","arrow":"j9KgRON7iTU-","above":"B6uh34-qEuA-","below":"Wft7Ug-lXEc-","tooltipMessage":"TpdeLUuiQMg-"};
|
|
13
19
|
styleInject_es.styleInject(css_248z);
|
|
14
20
|
|
|
@@ -40,17 +46,17 @@ function Tooltip({ message, children }) {
|
|
|
40
46
|
const [show, setShow] = React.useState(false);
|
|
41
47
|
const { attributes, placement, shadowRef, styles: popperStyles, setArrowRef, setTooltipRef, } = useTooltipPositioning();
|
|
42
48
|
initializeListeners();
|
|
43
|
-
const toolTipClassNames =
|
|
44
|
-
return (
|
|
45
|
-
|
|
49
|
+
const toolTipClassNames = classnames__default["default"](styles.tooltipWrapper, placement === "bottom" && styles.below, placement === "top" && styles.above);
|
|
50
|
+
return (React__default["default"].createElement(React__default["default"].Fragment, null,
|
|
51
|
+
React__default["default"].createElement("span", { className: styles.shadowActivator, ref: shadowRef }),
|
|
46
52
|
children,
|
|
47
|
-
|
|
48
|
-
|
|
53
|
+
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),
|
|
54
|
+
React__default["default"].createElement(framerMotion.motion.div, { className: styles.tooltip, variants: variation, initial: "startOrStop", animate: "done", exit: "startOrStop", transition: {
|
|
49
55
|
damping: 50,
|
|
50
56
|
stiffness: 500,
|
|
51
57
|
} },
|
|
52
|
-
|
|
53
|
-
|
|
58
|
+
React__default["default"].createElement("p", { className: styles.tooltipMessage }, message),
|
|
59
|
+
React__default["default"].createElement("div", { ref: setArrowRef, style: popperStyles.arrow, className: styles.arrow })))))));
|
|
54
60
|
function initializeListeners() {
|
|
55
61
|
const showTooltip = () => {
|
|
56
62
|
setShow(true);
|
|
@@ -90,7 +96,7 @@ function Tooltip({ message, children }) {
|
|
|
90
96
|
activator.removeEventListener("blur", hideTooltip);
|
|
91
97
|
}
|
|
92
98
|
};
|
|
93
|
-
useSafeLayoutEffect.useSafeLayoutEffect
|
|
99
|
+
useSafeLayoutEffect.useSafeLayoutEffect(() => {
|
|
94
100
|
injectAttributes();
|
|
95
101
|
addListeners();
|
|
96
102
|
return () => {
|
|
@@ -100,7 +106,7 @@ function Tooltip({ message, children }) {
|
|
|
100
106
|
}
|
|
101
107
|
}
|
|
102
108
|
function TooltipPortal({ children }) {
|
|
103
|
-
return
|
|
109
|
+
return ReactDOM__default["default"].createPortal(children, document.body);
|
|
104
110
|
}
|
|
105
111
|
|
|
106
112
|
exports.Tooltip = Tooltip;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var Typography = require('../Typography-c45bf216.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.rWkzi9HFNDU- {\n color: rgb(201, 66, 33);\n color: var(--color-critical);\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-","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,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;
|