@jobber/components 4.85.4-CJS-to-ESM.2 → 4.85.4
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/.eslintrc.js +10 -0
- package/AnimatedPresence.d.ts +1 -0
- package/AnimatedPresence.js +17 -0
- package/AnimatedSwitcher.d.ts +1 -0
- package/AnimatedSwitcher.js +17 -0
- package/Autocomplete.d.ts +1 -0
- package/Autocomplete.js +17 -0
- package/Avatar.d.ts +1 -0
- package/Avatar.js +17 -0
- package/Banner.d.ts +1 -0
- package/Banner.js +17 -0
- package/Button.d.ts +1 -0
- package/Button.js +17 -0
- package/ButtonDismiss.d.ts +1 -0
- package/ButtonDismiss.js +17 -0
- package/Card.d.ts +1 -0
- package/Card.js +17 -0
- package/Checkbox.d.ts +1 -0
- package/Checkbox.js +17 -0
- package/Chip.d.ts +1 -0
- package/Chip.js +17 -0
- package/Chips.d.ts +1 -0
- package/Chips.js +17 -0
- package/Combobox.d.ts +1 -0
- package/Combobox.js +17 -0
- package/ConfirmationModal.d.ts +1 -0
- package/ConfirmationModal.js +17 -0
- package/Content.d.ts +1 -0
- package/Content.js +17 -0
- package/Countdown.d.ts +1 -0
- package/Countdown.js +17 -0
- package/DataDump.d.ts +1 -0
- package/DataDump.js +17 -0
- package/DataList.d.ts +1 -0
- package/DataList.js +17 -0
- package/DataTable.d.ts +1 -0
- package/DataTable.js +17 -0
- package/DatePicker.d.ts +1 -0
- package/DatePicker.js +17 -0
- package/DescriptionList.d.ts +1 -0
- package/DescriptionList.js +17 -0
- package/Disclosure.d.ts +1 -0
- package/Disclosure.js +17 -0
- package/Divider.d.ts +1 -0
- package/Divider.js +17 -0
- package/Drawer.d.ts +1 -0
- package/Drawer.js +17 -0
- package/Emphasis.d.ts +1 -0
- package/Emphasis.js +17 -0
- package/FeatureSwitch.d.ts +1 -0
- package/FeatureSwitch.js +17 -0
- package/Flex.d.ts +1 -0
- package/Flex.js +17 -0
- package/Form.d.ts +1 -0
- package/Form.js +17 -0
- package/FormField.d.ts +1 -0
- package/FormField.js +17 -0
- package/FormatDate.d.ts +1 -0
- package/FormatDate.js +17 -0
- package/FormatEmail.d.ts +1 -0
- package/FormatEmail.js +17 -0
- package/FormatFile.d.ts +1 -0
- package/FormatFile.js +17 -0
- package/FormatRelativeDateTime.d.ts +1 -0
- package/FormatRelativeDateTime.js +17 -0
- package/FormatTime.d.ts +1 -0
- package/FormatTime.js +17 -0
- package/Gallery.d.ts +1 -0
- package/Gallery.js +17 -0
- package/Glimmer.d.ts +1 -0
- package/Glimmer.js +17 -0
- package/Grid.d.ts +1 -0
- package/Grid.js +17 -0
- package/Heading.d.ts +1 -0
- package/Heading.js +17 -0
- package/Icon.d.ts +1 -0
- package/Icon.js +17 -0
- package/InlineLabel.d.ts +1 -0
- package/InlineLabel.js +17 -0
- package/InputAvatar.d.ts +1 -0
- package/InputAvatar.js +17 -0
- package/InputDate.d.ts +1 -0
- package/InputDate.js +17 -0
- package/InputEmail.d.ts +1 -0
- package/InputEmail.js +17 -0
- package/InputFile.d.ts +1 -0
- package/InputFile.js +17 -0
- package/InputGroup.d.ts +1 -0
- package/InputGroup.js +17 -0
- package/InputNumber.d.ts +1 -0
- package/InputNumber.js +17 -0
- package/InputPassword.d.ts +1 -0
- package/InputPassword.js +17 -0
- package/InputPhoneNumber.d.ts +1 -0
- package/InputPhoneNumber.js +17 -0
- package/InputText.d.ts +1 -0
- package/InputText.js +17 -0
- package/InputTime.d.ts +1 -0
- package/InputTime.js +17 -0
- package/InputValidation.d.ts +1 -0
- package/InputValidation.js +17 -0
- package/LightBox.d.ts +1 -0
- package/LightBox.js +17 -0
- package/Link.d.ts +1 -0
- package/Link.js +17 -0
- package/List.d.ts +1 -0
- package/List.js +17 -0
- package/Markdown.d.ts +1 -0
- package/Markdown.js +17 -0
- package/Menu.d.ts +1 -0
- package/Menu.js +17 -0
- package/Modal.d.ts +1 -0
- package/Modal.js +17 -0
- package/MultiSelect.d.ts +1 -0
- package/MultiSelect.js +17 -0
- package/Page.d.ts +1 -0
- package/Page.js +17 -0
- package/Popover.d.ts +1 -0
- package/Popover.js +17 -0
- package/ProgressBar.d.ts +1 -0
- package/ProgressBar.js +17 -0
- package/RadioGroup.d.ts +1 -0
- package/RadioGroup.js +17 -0
- package/RecurringSelect.d.ts +1 -0
- package/RecurringSelect.js +17 -0
- package/Select.d.ts +1 -0
- package/Select.js +17 -0
- package/Spinner.d.ts +1 -0
- package/Spinner.js +17 -0
- package/StatusIndicator.d.ts +1 -0
- package/StatusIndicator.js +17 -0
- package/StatusLabel.d.ts +1 -0
- package/StatusLabel.js +17 -0
- package/Switch.d.ts +1 -0
- package/Switch.js +17 -0
- package/Table.d.ts +1 -0
- package/Table.js +17 -0
- package/Tabs.d.ts +1 -0
- package/Tabs.js +17 -0
- package/Text.d.ts +1 -0
- package/Text.js +17 -0
- package/Toast.d.ts +1 -0
- package/Toast.js +17 -0
- package/Tooltip.d.ts +1 -0
- package/Tooltip.js +17 -0
- package/Typography.d.ts +1 -0
- package/Typography.js +17 -0
- package/dist/{AnimatedPresence.cjs → AnimatedPresence/index.js} +1 -1
- package/dist/{AnimatedSwitcher.cjs → AnimatedSwitcher/index.js} +2 -2
- package/dist/{Autocomplete-b35c7ff5.js → Autocomplete/index.js} +20 -7
- package/dist/{Avatar.cjs → Avatar/index.js} +3 -3
- package/dist/{Avatar-cccf72b9.js → Avatar-76a799fa.js} +1 -1
- package/dist/Banner/index.js +110 -0
- package/dist/{Button.cjs → Button/index.js} +4 -4
- package/dist/Button-b73a5e01.js +57 -0
- package/dist/{ButtonDismiss.cjs → ButtonDismiss/index.js} +5 -5
- package/dist/{ButtonDismiss-d7417429.js → ButtonDismiss-350af163.js} +1 -1
- package/dist/Card/colors.css.d.ts +89 -0
- package/dist/{Card.cjs → Card/index.js} +8 -8
- package/dist/{Card-27375ded.js → Card-e3144022.js} +4 -4
- package/dist/Checkbox/index.js +18 -0
- package/dist/{Checkbox-b6e46d80.js → Checkbox-787e2e47.js} +2 -2
- package/dist/{ChipDismissible-a8ecc894.js → Chip/index.js} +18 -3
- package/dist/Chip-3d1bfddc.js +89 -0
- package/dist/{Chips-a8f4c9f2.js → Chips/index.js} +31 -12
- package/dist/{Combobox.cjs → Combobox/index.js} +15 -15
- package/dist/{Combobox-d8d28b1e.js → Combobox-a24c8241.js} +15 -15
- package/dist/ConfirmationModal/index.js +31 -0
- package/dist/{ConfirmationModal-09ec5d02.js → ConfirmationModal-52e16873.js} +3 -3
- package/dist/Content/Spacing.css.d.ts +13 -0
- package/dist/{Content.cjs → Content/index.js} +2 -2
- package/dist/{Content-60a3452a.js → Content-e3f7b6fc.js} +1 -1
- package/dist/{Countdown-961d8a6e.js → Countdown/index.js} +2 -0
- package/dist/{DataDump-f427abfe.js → DataDump/index.js} +19 -3
- package/dist/{DataList-4b0f9e5d.js → DataList/index.js} +48 -33
- package/dist/{DataTable-aab7f6b9.js → DataTable/index.js} +59 -10
- package/dist/{DatePicker.cjs → DatePicker/index.js} +5 -5
- package/dist/{DatePicker-c091c0d2.js → DatePicker-64c5ab1a.js} +3 -3
- package/dist/{DescriptionList-74db99a5.js → DescriptionList/index.js} +6 -3
- package/dist/Disclosure/index.js +46 -0
- package/dist/{Divider-1e6ac1ec.js → Divider/index.js} +4 -2
- package/dist/Drawer/index.js +49 -0
- package/dist/{Emphasis.cjs → Emphasis/index.js} +3 -3
- package/dist/{Emphasis-84de1f3f.js → Emphasis-bda56d3b.js} +1 -1
- package/dist/{FeatureSwitch-ddaebf27.js → FeatureSwitch/index.js} +17 -9
- package/dist/{Flex.cjs → Flex/index.js} +2 -2
- package/dist/{Flex-ddf28839.js → Flex-d490c4db.js} +1 -1
- package/dist/{Form-927647ef.js → Form/index.js} +3 -1
- package/dist/FormField/index.js +24 -0
- package/dist/{FormField-fc30bb1a.js → FormField-6ff183f8.js} +6 -6
- package/dist/{FormatDate.cjs → FormatDate/index.js} +1 -1
- package/dist/{FormatEmail-298393bb.js → FormatEmail/index.js} +3 -1
- package/dist/FormatFile/index.js +36 -0
- package/dist/{FormatFile-d57b8dfa.js → FormatFile-f036902d.js} +8 -8
- package/dist/{FormatRelativeDateTime-6336002d.js → FormatRelativeDateTime/index.js} +2 -0
- package/dist/{FormatTime-20538519.js → FormatTime/index.js} +2 -0
- package/dist/Gallery/Gallery.css.d.ts +9 -0
- package/dist/{Gallery-8d4d79a2.js → Gallery/index.js} +31 -5
- package/dist/{Glimmer.cjs → Glimmer/index.js} +4 -4
- package/dist/Glimmer/style/Shape.css.d.ts +9 -0
- package/dist/Glimmer/style/Sizes.css.d.ts +10 -0
- package/dist/Glimmer/style/Timing.css.d.ts +6 -0
- package/dist/{Glimmer-3fcdae65.js → Glimmer-84dee1ed.js} +4 -4
- package/dist/Grid/GridAlign.css.d.ts +8 -0
- package/dist/{Grid-cce44c9d.js → Grid/index.js} +5 -3
- package/dist/Heading/index.js +14 -0
- package/dist/{Heading-a8a24775.js → Heading-1e8e4bd3.js} +1 -1
- package/dist/{Icon.cjs → Icon/index.js} +1 -1
- package/dist/{InlineLabel.cjs → InlineLabel/index.js} +3 -3
- package/dist/InlineLabel-a6557829.js +28 -0
- package/dist/{InputAvatar-95c98620.js → InputAvatar/index.js} +21 -7
- package/dist/{InputDate-c5f19423.js → InputDate/index.js} +20 -2
- package/dist/{InputEmail-4efba03d.js → InputEmail/index.js} +17 -1
- package/dist/InputFile/index.js +25 -0
- package/dist/{InputFile-921c050e.js → InputFile-bb945071.js} +5 -5
- package/dist/{InputGroup.cjs → InputGroup/index.js} +2 -2
- package/dist/InputNumber/index.js +25 -0
- package/dist/{InputNumber-df9cb825.js → InputNumber-d451b52e.js} +1 -1
- package/dist/{InputPassword-08d2dfa1.js → InputPassword/index.js} +17 -1
- package/dist/{InputPhoneNumber-cbb2ca7d.js → InputPhoneNumber/index.js} +17 -4
- package/dist/InputText/index.js +26 -0
- package/dist/{InputText-125769fd.js → InputText-55b6cb65.js} +1 -1
- package/dist/{InputTime-3c4bdff0.js → InputTime/index.js} +17 -2
- package/dist/{InputValidation.cjs → InputValidation/index.js} +5 -5
- package/dist/{InputValidation-4a61254d.js → InputValidation-05e839fa.js} +2 -2
- package/dist/{LightBox.cjs → LightBox/index.js} +6 -6
- package/dist/{LightBox-3d6e74ba.js → LightBox-a89d8863.js} +3 -3
- package/dist/{Link-fd7301ec.js → Link/index.js} +2 -0
- package/dist/{List-821f249d.js → List/index.js} +16 -10
- package/dist/Markdown/index.js +19 -0
- package/dist/{Markdown-36854bd5.js → Markdown-f7c55304.js} +4 -4
- package/dist/{Menu.cjs → Menu/index.js} +5 -5
- package/dist/{Menu-5ce3cf41.js → Menu-083fc4c4.js} +3 -3
- package/dist/Modal/Sizes.css.d.ts +6 -0
- package/dist/{Modal.cjs → Modal/index.js} +8 -8
- package/dist/{Modal-cda55f02.js → Modal-c336cac6.js} +5 -5
- package/dist/{MultiSelect-707000e1.js → MultiSelect/index.js} +12 -6
- package/dist/{Option-73515eec.js → Option-3c4d377e.js} +1 -1
- package/dist/{Page-fdb087db.js → Page/index.js} +21 -9
- package/dist/Popover/index.js +61 -0
- package/dist/ProgressBar/Sizes.css.d.ts +7 -0
- package/dist/{ProgressBar.cjs → ProgressBar/index.js} +2 -2
- package/dist/{ProgressBar-4ee648b7.js → ProgressBar-b68edc8f.js} +1 -1
- package/dist/{RadioGroup.cjs → RadioGroup/index.js} +4 -4
- package/dist/{RadioGroup-68edd1e3.js → RadioGroup-17b67ade.js} +2 -2
- package/dist/{RecurringSelect-e391af31.js → RecurringSelect/index.js} +27 -14
- package/dist/Select/index.js +26 -0
- package/dist/{Spinner.cjs → Spinner/index.js} +2 -2
- package/dist/Spinner-9d8fc7ff.js +24 -0
- package/dist/{StatusIndicator.cjs → StatusIndicator/index.js} +2 -2
- package/dist/{StatusIndicator-0c680acb.js → StatusIndicator-b179d06e.js} +1 -1
- package/dist/{StatusLabel-5bf96fdb.js → StatusLabel/index.js} +7 -4
- package/dist/{Switch.cjs → Switch/index.js} +3 -3
- package/dist/Switch-7d4aa7c3.js +56 -0
- package/dist/{Body-22878526.js → Table/index.js} +5 -3
- package/dist/{Tabs-d6c8b965.js → Tabs/index.js} +5 -3
- package/dist/{Text.cjs → Text/index.js} +3 -3
- package/dist/{Text-714f7d14.js → Text-259af966.js} +1 -1
- package/dist/{showToast-63be1cf0.js → Toast/index.js} +10 -5
- package/dist/{Tooltip.cjs → Tooltip/index.js} +2 -2
- package/dist/{Tooltip-2e477150.js → Tooltip-ef3d6ef4.js} +1 -1
- package/dist/Typography/css/Emphasis.css.d.ts +6 -0
- package/dist/Typography/css/FontFamilies.css.d.ts +6 -0
- package/dist/Typography/css/FontSizes.css.d.ts +12 -0
- package/dist/Typography/css/FontWeights.css.d.ts +10 -0
- package/dist/Typography/css/TextAlignment.css.d.ts +7 -0
- package/dist/Typography/css/TextCases.css.d.ts +7 -0
- package/dist/Typography/css/TextColors.css.d.ts +22 -0
- package/dist/Typography/css/Truncate.css.d.ts +5 -0
- package/dist/Typography/css/Typography.css.d.ts +5 -0
- package/dist/{Typography.cjs → Typography/index.js} +2 -2
- package/dist/Typography-c45bf216.js +62 -0
- package/package.json +7 -15
- package/rollup.config.js +131 -0
- package/dist/AnimatedPresence-bbccdaf7.js +0 -98
- package/dist/AnimatedPresence.js +0 -4
- package/dist/AnimatedSwitcher-3aff3d12.js +0 -90
- package/dist/AnimatedSwitcher.js +0 -5
- package/dist/Autocomplete-dc7a4b9e.js +0 -188
- package/dist/Autocomplete.cjs +0 -33
- package/dist/Autocomplete.js +0 -25
- package/dist/Avatar-229083ec.js +0 -70
- package/dist/Avatar.js +0 -7
- package/dist/Banner-18d94700.js +0 -105
- package/dist/Banner-5475a9ea.js +0 -98
- package/dist/Banner.cjs +0 -20
- package/dist/Banner.js +0 -12
- package/dist/Body-4fbe21ac.js +0 -50
- package/dist/Button-30154871.js +0 -50
- package/dist/Button-ec64869e.js +0 -57
- package/dist/Button.js +0 -8
- package/dist/ButtonDismiss-a11eef74.js +0 -8
- package/dist/ButtonDismiss.js +0 -9
- package/dist/Card-35bd61ce.js +0 -86
- package/dist/Card.js +0 -16
- package/dist/Checkbox-a91b14f7.js +0 -56
- package/dist/Checkbox.cjs +0 -18
- package/dist/Checkbox.js +0 -10
- package/dist/Chip-01343f8b.js +0 -81
- package/dist/Chip-24613c57.js +0 -89
- package/dist/Chip.cjs +0 -27
- package/dist/Chip.js +0 -17
- package/dist/ChipDismissible-1f2754bd.js +0 -19
- package/dist/Chips-7c44a2f9.js +0 -494
- package/dist/Chips.cjs +0 -46
- package/dist/Chips.js +0 -37
- package/dist/Combobox-44f0ec2a.js +0 -468
- package/dist/Combobox.js +0 -31
- package/dist/ConfirmationModal-64f82a31.js +0 -94
- package/dist/ConfirmationModal.cjs +0 -31
- package/dist/ConfirmationModal.js +0 -23
- package/dist/Content-c96e9299.js +0 -18
- package/dist/Content.js +0 -4
- package/dist/Countdown-ac081ced.js +0 -63
- package/dist/Countdown.cjs +0 -12
- package/dist/Countdown.js +0 -4
- package/dist/DataDump-6fae2727.js +0 -15
- package/dist/DataDump.cjs +0 -27
- package/dist/DataDump.js +0 -19
- package/dist/DataList-18f2d692.js +0 -1310
- package/dist/DataList.cjs +0 -52
- package/dist/DataList.js +0 -44
- package/dist/DataTable-0f6649e0.js +0 -245
- package/dist/DataTable.cjs +0 -65
- package/dist/DataTable.js +0 -36
- package/dist/DatePicker-5d0c0353.js +0 -125
- package/dist/DatePicker.js +0 -12
- package/dist/DescriptionList-2cb975a9.js +0 -15
- package/dist/DescriptionList.cjs +0 -13
- package/dist/DescriptionList.js +0 -5
- package/dist/Disclosure-00a9459b.js +0 -36
- package/dist/Disclosure-56309ff3.js +0 -42
- package/dist/Disclosure.cjs +0 -16
- package/dist/Disclosure.js +0 -8
- package/dist/Divider-589745c1.js +0 -20
- package/dist/Divider.cjs +0 -12
- package/dist/Divider.js +0 -4
- package/dist/Drawer.cjs +0 -21
- package/dist/Drawer.js +0 -12
- package/dist/DrawerGrid-0861e529.js +0 -33
- package/dist/DrawerGrid-b233d837.js +0 -41
- package/dist/Emphasis-2a640962.js +0 -13
- package/dist/Emphasis.js +0 -5
- package/dist/FeatureSwitch-e33e30a9.js +0 -55
- package/dist/FeatureSwitch.cjs +0 -26
- package/dist/FeatureSwitch.js +0 -18
- package/dist/Flex-041db5c8.js +0 -31
- package/dist/Flex.js +0 -4
- package/dist/Form-6a161b07.js +0 -48
- package/dist/Form.cjs +0 -12
- package/dist/Form.js +0 -4
- package/dist/FormField-f1f405d2.js +0 -246
- package/dist/FormField.cjs +0 -24
- package/dist/FormField.js +0 -16
- package/dist/FormatDate-720b39cf.js +0 -27
- package/dist/FormatDate.js +0 -2
- package/dist/FormatEmail-04ee4085.js +0 -14
- package/dist/FormatEmail.cjs +0 -12
- package/dist/FormatEmail.js +0 -4
- package/dist/FormatFile-648aea3e.js +0 -154
- package/dist/FormatFile.cjs +0 -36
- package/dist/FormatFile.js +0 -28
- package/dist/FormatRelativeDateTime-529dc36b.js +0 -64
- package/dist/FormatRelativeDateTime.cjs +0 -10
- package/dist/FormatRelativeDateTime.js +0 -2
- package/dist/FormatTime-764fd3c8.js +0 -28
- package/dist/FormatTime.cjs +0 -10
- package/dist/FormatTime.js +0 -2
- package/dist/Gallery-7760f21f.js +0 -66
- package/dist/Gallery.cjs +0 -39
- package/dist/Gallery.js +0 -31
- package/dist/Glimmer-6bf75ae0.js +0 -69
- package/dist/Glimmer.js +0 -6
- package/dist/Grid-c28e226d.js +0 -66
- package/dist/Grid.cjs +0 -14
- package/dist/Grid.js +0 -5
- package/dist/Heading-dfd4f1cf.js +0 -49
- package/dist/Heading.cjs +0 -14
- package/dist/Heading.js +0 -6
- package/dist/Icon-22723fe6.js +0 -34
- package/dist/Icon.js +0 -3
- package/dist/InlineLabel-20f9095e.js +0 -21
- package/dist/InlineLabel-5144fa06.js +0 -28
- package/dist/InlineLabel.js +0 -5
- package/dist/InputAvatar-3a10bdb1.js +0 -50
- package/dist/InputAvatar.cjs +0 -28
- package/dist/InputAvatar.js +0 -20
- package/dist/InputDate-c258f5cb.js +0 -32
- package/dist/InputDate.cjs +0 -29
- package/dist/InputDate.js +0 -21
- package/dist/InputEmail-812bdffe.js +0 -20
- package/dist/InputEmail.cjs +0 -26
- package/dist/InputEmail.js +0 -17
- package/dist/InputFile-d089b486.js +0 -181
- package/dist/InputFile.cjs +0 -25
- package/dist/InputFile.js +0 -16
- package/dist/InputGroup-436859cf.js +0 -26
- package/dist/InputGroup.js +0 -4
- package/dist/InputNumber-4bd38b8e.js +0 -56
- package/dist/InputNumber.cjs +0 -25
- package/dist/InputNumber.js +0 -17
- package/dist/InputPassword-6b937a91.js +0 -19
- package/dist/InputPassword.cjs +0 -25
- package/dist/InputPassword.js +0 -17
- package/dist/InputPhoneNumber-947bdb49.js +0 -97
- package/dist/InputPhoneNumber.cjs +0 -25
- package/dist/InputPhoneNumber.js +0 -17
- package/dist/InputText-2fd8f942.js +0 -96
- package/dist/InputText.cjs +0 -26
- package/dist/InputText.js +0 -18
- package/dist/InputTime-ef8af2d9.js +0 -187
- package/dist/InputTime.cjs +0 -27
- package/dist/InputTime.js +0 -19
- package/dist/InputValidation-fe42fc3f.js +0 -23
- package/dist/InputValidation.js +0 -9
- package/dist/LightBox-8cc72953.js +0 -109
- package/dist/LightBox.js +0 -16
- package/dist/Link-b41bc1d3.js +0 -7
- package/dist/Link.cjs +0 -10
- package/dist/Link.js +0 -2
- package/dist/List-4fe52f57.js +0 -77
- package/dist/List.cjs +0 -25
- package/dist/List.js +0 -16
- package/dist/Markdown-7b84fcdb.js +0 -55
- package/dist/Markdown.cjs +0 -19
- package/dist/Markdown.js +0 -11
- package/dist/Menu-fb0b2e9b.js +0 -132
- package/dist/Menu.js +0 -13
- package/dist/Modal-eeb52d66.js +0 -63
- package/dist/Modal.js +0 -17
- package/dist/MultiSelect-0af9c956.js +0 -169
- package/dist/MultiSelect.cjs +0 -19
- package/dist/MultiSelect.js +0 -11
- package/dist/Option-58d7cab6.js +0 -12
- package/dist/Page-0b334096.js +0 -59
- package/dist/Page.cjs +0 -30
- package/dist/Page.js +0 -22
- package/dist/Popover-798f548e.js +0 -47
- package/dist/Popover-968c63b2.js +0 -53
- package/dist/Popover.cjs +0 -20
- package/dist/Popover.js +0 -12
- package/dist/ProgressBar-022ef3f6.js +0 -36
- package/dist/ProgressBar.js +0 -4
- package/dist/RadioGroup-a089f132.js +0 -39
- package/dist/RadioGroup.js +0 -6
- package/dist/RecurringSelect-2de4014c.js +0 -208
- package/dist/RecurringSelect.cjs +0 -38
- package/dist/RecurringSelect.js +0 -22
- package/dist/Select.cjs +0 -26
- package/dist/Select.js +0 -17
- package/dist/Spinner-3480bc34.js +0 -24
- package/dist/Spinner-90081e20.js +0 -17
- package/dist/Spinner.js +0 -4
- package/dist/StatusIndicator-d6f9aefa.js +0 -12
- package/dist/StatusIndicator.js +0 -3
- package/dist/StatusLabel-66214fc7.js +0 -19
- package/dist/StatusLabel.cjs +0 -15
- package/dist/StatusLabel.js +0 -7
- package/dist/Switch-6c6c727b.js +0 -56
- package/dist/Switch-87706cde.js +0 -49
- package/dist/Switch.js +0 -5
- package/dist/Table.cjs +0 -20
- package/dist/Table.js +0 -5
- package/dist/Tabs-109f1f10.js +0 -70
- package/dist/Tabs.cjs +0 -14
- package/dist/Tabs.js +0 -5
- package/dist/Text-c92ddeb3.js +0 -25
- package/dist/Text.js +0 -5
- package/dist/Toast.cjs +0 -19
- package/dist/Toast.js +0 -11
- package/dist/Tooltip-a40fffbd.js +0 -104
- package/dist/Tooltip.js +0 -8
- package/dist/Typography-52ed1386.js +0 -55
- package/dist/Typography-fd88fcce.js +0 -62
- package/dist/Typography.js +0 -4
- package/dist/getAtlantisConfig-5b50057c.js +0 -11
- package/dist/index.cjs +0 -224
- package/dist/index.d.ts +0 -73
- package/dist/index.js +0 -112
- package/dist/showToast-ff666be8.js +0 -100
- package/dist/style-inject.es-a0e1a0ba.js +0 -28
- package/dist/tslib.es6-c563c1dd.js +0 -43
package/dist/Tabs-109f1f10.js
DELETED
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import React, { useState, useRef, useEffect } from 'react';
|
|
2
|
-
import classnames from 'classnames';
|
|
3
|
-
import { s as styleInject } from './style-inject.es-a0e1a0ba.js';
|
|
4
|
-
import { T as Typography } from './Typography-52ed1386.js';
|
|
5
|
-
|
|
6
|
-
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 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(var(--color-black--rgb), 0.25);\n}\n\n.qnY4S9sz-8g-:before {\n left: 0;\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 * 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(var(--space-larger) + var(--space-small));\n height: var(--tab--height);\n margin: 0;\n padding-left: var(--space-base);\n padding-left: var(--public-tab--inset);\n padding-right: var(--space-base);\n padding-right: var(--public-tab--inset);\n border: solid var(--border-base) var(--color-border);\n border-left-width: 0;\n outline: none;\n background: var(--color-surface);\n cursor: pointer;\n transition: all var(--timing-base);\n}\n\n.MO7CXQ8xJXo-:hover,\n.MO7CXQ8xJXo-:focus {\n background-color: var(--color-surface--hover);\n}\n\n.MO7CXQ8xJXo-:focus span {\n box-shadow: var(--shadow-focus);\n}\n\n.kqof65gyv7g- {\n border-top-color: var(--color-interactive);\n border-bottom-color: var(--color-surface);\n}\n\n.kqof65gyv7g-:focus {\n background-color: transparent;\n}\n\n.AimQioztR1U- {\n padding-top: var(--space-base);\n padding-top: var(--tab--inset);\n padding-bottom: var(--space-base);\n padding-bottom: var(--tab--inset);\n padding-left: var(--space-base);\n padding-left: var(--public-tab--inset);\n padding-right: var(--space-base);\n padding-right: var(--public-tab--inset);\n}\n";
|
|
7
|
-
var styles = {"tabs":"-kxlqXO5UN0-","overflow":"qI4lWMSNH40-","overflowRight":"xohIah5wcoE-","overflowLeft":"qnY4S9sz-8g-","tabRow":"wdW31G8Trag-","tab":"MO7CXQ8xJXo-","selected":"kqof65gyv7g-","tabContent":"AimQioztR1U-"};
|
|
8
|
-
styleInject(css_248z);
|
|
9
|
-
|
|
10
|
-
function Tabs({ children, defaultTab = 0, onTabChange }) {
|
|
11
|
-
const activeTabInitialValue = defaultTab < React.Children.count(children) ? defaultTab : 0;
|
|
12
|
-
const [activeTab, setActiveTab] = useState(activeTabInitialValue);
|
|
13
|
-
const [overflowRight, setOverflowRight] = useState(false);
|
|
14
|
-
const [overflowLeft, setOverflowLeft] = useState(false);
|
|
15
|
-
const tabRow = useRef();
|
|
16
|
-
const overflowClassNames = classnames(styles.overflow, {
|
|
17
|
-
[styles.overflowRight]: overflowRight,
|
|
18
|
-
[styles.overflowLeft]: overflowLeft,
|
|
19
|
-
});
|
|
20
|
-
const activateTab = (index) => {
|
|
21
|
-
return () => {
|
|
22
|
-
setActiveTab(index);
|
|
23
|
-
if (onTabChange) {
|
|
24
|
-
onTabChange(index);
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
const activeTabProps = React.Children.toArray(children)[activeTab].props;
|
|
29
|
-
const handleOverflowing = () => {
|
|
30
|
-
if (tabRow.current) {
|
|
31
|
-
const scrollWidth = tabRow.current.scrollWidth;
|
|
32
|
-
const clientWidth = tabRow.current.clientWidth;
|
|
33
|
-
const maxScroll = scrollWidth - clientWidth;
|
|
34
|
-
const scrollPos = tabRow.current.scrollLeft;
|
|
35
|
-
if (scrollWidth > clientWidth) {
|
|
36
|
-
setOverflowRight(scrollPos >= 0 && scrollPos != maxScroll);
|
|
37
|
-
setOverflowLeft(scrollPos > 0 && scrollPos < scrollWidth);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
useEffect(() => {
|
|
42
|
-
handleOverflowing();
|
|
43
|
-
tabRow.current &&
|
|
44
|
-
tabRow.current.addEventListener("scroll", handleOverflowing);
|
|
45
|
-
return () => {
|
|
46
|
-
window.removeEventListener("scroll", handleOverflowing);
|
|
47
|
-
};
|
|
48
|
-
});
|
|
49
|
-
return (React.createElement("div", { className: styles.tabs },
|
|
50
|
-
React.createElement("div", { className: overflowClassNames },
|
|
51
|
-
React.createElement("ul", { role: "tablist", className: styles.tabRow, ref: tabRow },
|
|
52
|
-
React.createElement("li", { role: "presentation" }, React.Children.map(children, (tab, index) => (React.createElement(InternalTab, { label: tab.props.label, selected: activeTab === index, activateTab: activateTab(index), onClick: tab.props.onClick })))))),
|
|
53
|
-
React.createElement("section", { role: "tabpanel", className: styles.tabContent, "aria-label": activeTabProps.label }, activeTabProps.children)));
|
|
54
|
-
}
|
|
55
|
-
function Tab({ label }) {
|
|
56
|
-
return React.createElement(React.Fragment, null, label);
|
|
57
|
-
}
|
|
58
|
-
function InternalTab({ label, selected, activateTab, onClick = () => {
|
|
59
|
-
return;
|
|
60
|
-
}, }) {
|
|
61
|
-
const className = classnames(styles.tab, { [styles.selected]: selected });
|
|
62
|
-
const color = selected ? "green" : "heading";
|
|
63
|
-
return (React.createElement("button", { type: "button", role: "tab", id: label, className: className, onClick: event => {
|
|
64
|
-
activateTab();
|
|
65
|
-
onClick(event);
|
|
66
|
-
} },
|
|
67
|
-
React.createElement(Typography, { element: "span", size: "base", textColor: color }, label)));
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
export { Tabs as T, Tab as a };
|
package/dist/Tabs.cjs
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var Tabs = require('./Tabs-d6c8b965.js');
|
|
6
|
-
require('react');
|
|
7
|
-
require('classnames');
|
|
8
|
-
require('./style-inject.es-9d2f5f4e.js');
|
|
9
|
-
require('./Typography-fd88fcce.js');
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
exports.Tab = Tabs.Tab;
|
|
14
|
-
exports.Tabs = Tabs.Tabs;
|
package/dist/Tabs.js
DELETED
package/dist/Text-c92ddeb3.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { T as Typography } from './Typography-52ed1386.js';
|
|
3
|
-
|
|
4
|
-
function Text({ variation = "default", size = "base", align = "start", children, maxLines = "unlimited", }) {
|
|
5
|
-
const textColors = {
|
|
6
|
-
default: "text",
|
|
7
|
-
subdued: "textSecondary",
|
|
8
|
-
success: "success",
|
|
9
|
-
error: "critical",
|
|
10
|
-
warn: "warning",
|
|
11
|
-
info: "informative",
|
|
12
|
-
disabled: "disabled",
|
|
13
|
-
};
|
|
14
|
-
const maxLineToNumber = {
|
|
15
|
-
single: 1,
|
|
16
|
-
small: 2,
|
|
17
|
-
base: 4,
|
|
18
|
-
large: 8,
|
|
19
|
-
larger: 16,
|
|
20
|
-
unlimited: undefined,
|
|
21
|
-
};
|
|
22
|
-
return (React.createElement(Typography, { textColor: textColors[variation], size: size, numberOfLines: maxLineToNumber[maxLines], align: align }, children));
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export { Text as T };
|
package/dist/Text.js
DELETED
package/dist/Toast.cjs
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var showToast = require('./showToast-63be1cf0.js');
|
|
6
|
-
require('react');
|
|
7
|
-
require('react-dom/client');
|
|
8
|
-
require('framer-motion');
|
|
9
|
-
require('./style-inject.es-9d2f5f4e.js');
|
|
10
|
-
require('./Icon-405a216c.js');
|
|
11
|
-
require('@jobber/design');
|
|
12
|
-
require('./Button-ec64869e.js');
|
|
13
|
-
require('classnames');
|
|
14
|
-
require('react-router-dom');
|
|
15
|
-
require('./Typography-fd88fcce.js');
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
exports.showToast = showToast.showToast;
|
package/dist/Toast.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export { s as showToast } from './showToast-ff666be8.js';
|
|
2
|
-
import 'react';
|
|
3
|
-
import 'react-dom/client';
|
|
4
|
-
import 'framer-motion';
|
|
5
|
-
import './style-inject.es-a0e1a0ba.js';
|
|
6
|
-
import './Icon-22723fe6.js';
|
|
7
|
-
import '@jobber/design';
|
|
8
|
-
import './Button-30154871.js';
|
|
9
|
-
import 'classnames';
|
|
10
|
-
import 'react-router-dom';
|
|
11
|
-
import './Typography-52ed1386.js';
|
package/dist/Tooltip-a40fffbd.js
DELETED
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
import React, { useRef, useState } from 'react';
|
|
2
|
-
import classnames from 'classnames';
|
|
3
|
-
import ReactDOM from 'react-dom';
|
|
4
|
-
import { motion } from 'framer-motion';
|
|
5
|
-
import { useSafeLayoutEffect } from '@jobber/hooks/useSafeLayoutEffect';
|
|
6
|
-
import { s as styleInject } from './style-inject.es-a0e1a0ba.js';
|
|
7
|
-
import { usePopper } from 'react-popper';
|
|
8
|
-
|
|
9
|
-
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: var(--elevation-tooltip);\n pointer-events: none;\n}\n\n.yAFP4gRKlTM- {\n display: inline-block;\n position: relative;\n max-width: calc(var(--base-unit) * 15);\n padding: calc(var(--space-base) - var(--space-smallest)) var(--space-base);\n border-radius: var(--radius-larger);\n background-color: var(--color-surface--reverse);\n background-color: var(--tooltip--surface);\n}\n\n.jobber-retheme .yAFP4gRKlTM- {\n border-radius: var(--radius-base);\n}\n\n.yAFP4gRKlTM- .j9KgRON7iTU-,\n.yAFP4gRKlTM- .j9KgRON7iTU-::after {\n width: var(--space-small);\n width: var(--tooltip--arrow-size);\n height: var(--space-small);\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: var(--color-surface--reverse);\n background-color: var(--tooltip--surface);\n -webkit-transform: rotate(45deg);\n transform: rotate(45deg);\n}\n\n.B6uh34-qEuA- {\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 * var(--space-smaller));\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: 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 * var(--space-smaller));\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: var(--color-text--reverse);\n font-size: var(--typography--fontSize-base);\n font-weight: 600;\n line-height: var(--typography--lineHeight-base);\n}\n";
|
|
10
|
-
var styles = {"shadowActivator":"q07bkGoq714-","tooltipWrapper":"dkCTRfc3vYk-","tooltip":"yAFP4gRKlTM-","arrow":"j9KgRON7iTU-","above":"B6uh34-qEuA-","below":"Wft7Ug-lXEc-","tooltipMessage":"TpdeLUuiQMg-"};
|
|
11
|
-
styleInject(css_248z);
|
|
12
|
-
|
|
13
|
-
function useTooltipPositioning() {
|
|
14
|
-
var _a, _b;
|
|
15
|
-
const shadowRef = useRef(null);
|
|
16
|
-
const [positionElement, setTooltipRef] = useState();
|
|
17
|
-
const [arrowElement, setArrowRef] = useState();
|
|
18
|
-
const popper = usePopper((_a = shadowRef.current) === null || _a === void 0 ? void 0 : _a.nextElementSibling, positionElement, {
|
|
19
|
-
placement: "top",
|
|
20
|
-
modifiers: [
|
|
21
|
-
{ name: "flip", options: { fallbackPlacements: ["bottom"] } },
|
|
22
|
-
{
|
|
23
|
-
name: "arrow",
|
|
24
|
-
options: { element: arrowElement },
|
|
25
|
-
},
|
|
26
|
-
],
|
|
27
|
-
});
|
|
28
|
-
return Object.assign(Object.assign({}, popper), { placement: (_b = popper.state) === null || _b === void 0 ? void 0 : _b.placement, shadowRef,
|
|
29
|
-
setArrowRef,
|
|
30
|
-
setTooltipRef });
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
const variation = {
|
|
34
|
-
startOrStop: { scale: 0.6, opacity: 0 },
|
|
35
|
-
done: { scale: 1, opacity: 1 },
|
|
36
|
-
};
|
|
37
|
-
function Tooltip({ message, children }) {
|
|
38
|
-
const [show, setShow] = useState(false);
|
|
39
|
-
const { attributes, placement, shadowRef, styles: popperStyles, setArrowRef, setTooltipRef, } = useTooltipPositioning();
|
|
40
|
-
initializeListeners();
|
|
41
|
-
const toolTipClassNames = classnames(styles.tooltipWrapper, placement === "bottom" && styles.below, placement === "top" && styles.above);
|
|
42
|
-
return (React.createElement(React.Fragment, null,
|
|
43
|
-
React.createElement("span", { className: styles.shadowActivator, ref: shadowRef }),
|
|
44
|
-
children,
|
|
45
|
-
React.createElement(TooltipPortal, null, show && Boolean(message) && (React.createElement("div", Object.assign({ className: toolTipClassNames, style: popperStyles.popper, ref: setTooltipRef, role: "tooltip" }, attributes.popper),
|
|
46
|
-
React.createElement(motion.div, { className: styles.tooltip, variants: variation, initial: "startOrStop", animate: "done", exit: "startOrStop", transition: {
|
|
47
|
-
damping: 50,
|
|
48
|
-
stiffness: 500,
|
|
49
|
-
} },
|
|
50
|
-
React.createElement("p", { className: styles.tooltipMessage }, message),
|
|
51
|
-
React.createElement("div", { ref: setArrowRef, style: popperStyles.arrow, className: styles.arrow })))))));
|
|
52
|
-
function initializeListeners() {
|
|
53
|
-
const showTooltip = () => {
|
|
54
|
-
setShow(true);
|
|
55
|
-
};
|
|
56
|
-
const hideTooltip = () => {
|
|
57
|
-
setShow(false);
|
|
58
|
-
};
|
|
59
|
-
const injectAttributes = () => {
|
|
60
|
-
var _a;
|
|
61
|
-
if ((_a = shadowRef === null || shadowRef === void 0 ? void 0 : shadowRef.current) === null || _a === void 0 ? void 0 : _a.nextElementSibling) {
|
|
62
|
-
const activator = shadowRef.current.nextElementSibling;
|
|
63
|
-
// Manually inject "aria-description" and "tabindex" to let the screen
|
|
64
|
-
// readers read the tooltip message.
|
|
65
|
-
// This is to avoid having to add those attribute as a prop on every
|
|
66
|
-
// component we have.
|
|
67
|
-
activator.setAttribute("aria-description", message);
|
|
68
|
-
activator.setAttribute("tabindex", "0"); // enable focus
|
|
69
|
-
}
|
|
70
|
-
};
|
|
71
|
-
const addListeners = () => {
|
|
72
|
-
var _a;
|
|
73
|
-
if ((_a = shadowRef === null || shadowRef === void 0 ? void 0 : shadowRef.current) === null || _a === void 0 ? void 0 : _a.nextElementSibling) {
|
|
74
|
-
const activator = shadowRef.current.nextElementSibling;
|
|
75
|
-
activator.addEventListener("mouseenter", showTooltip);
|
|
76
|
-
activator.addEventListener("mouseleave", hideTooltip);
|
|
77
|
-
activator.addEventListener("focus", showTooltip);
|
|
78
|
-
activator.addEventListener("blur", hideTooltip);
|
|
79
|
-
}
|
|
80
|
-
};
|
|
81
|
-
const removeListeners = () => {
|
|
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.removeEventListener("mouseenter", showTooltip);
|
|
86
|
-
activator.removeEventListener("mouseleave", hideTooltip);
|
|
87
|
-
activator.removeEventListener("focus", showTooltip);
|
|
88
|
-
activator.removeEventListener("blur", hideTooltip);
|
|
89
|
-
}
|
|
90
|
-
};
|
|
91
|
-
useSafeLayoutEffect(() => {
|
|
92
|
-
injectAttributes();
|
|
93
|
-
addListeners();
|
|
94
|
-
return () => {
|
|
95
|
-
removeListeners();
|
|
96
|
-
};
|
|
97
|
-
}, []);
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
function TooltipPortal({ children }) {
|
|
101
|
-
return ReactDOM.createPortal(children, document.body);
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
export { Tooltip as T };
|
package/dist/Tooltip.js
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import classnames from 'classnames';
|
|
3
|
-
import { s as styleInject } from './style-inject.es-a0e1a0ba.js';
|
|
4
|
-
|
|
5
|
-
var css_248z$8 = ".asDB9Ra2UpA- {\n margin: 0;\n padding: 0;\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";
|
|
6
|
-
var styles = {"base":"asDB9Ra2UpA-"};
|
|
7
|
-
styleInject(css_248z$8);
|
|
8
|
-
|
|
9
|
-
var css_248z$7 = "._7C4Ck1izBPs- {\n font-size: var(--typography--fontSize-extravagant);\n line-height: var(--typography--lineHeight-miniscule);\n}\n\n._8X-fSrUTxV8- {\n font-size: var(--typography--fontSize-jumbo);\n line-height: var(--typography--lineHeight-miniscule);\n}\n\n.n-SPJXPXLSA- {\n font-size: var(--typography--fontSize-largest);\n line-height: var(--typography--lineHeight-tightest);\n}\n\n.vCrvF55YQ9o- {\n font-size: var(--typography--fontSize-larger);\n line-height: var(--typography--lineHeight-tight);\n}\n\n.FBoaHWotSik- {\n font-size: var(--typography--fontSize-large);\n line-height: var(--typography--lineHeight-large);\n}\n\n.V6yPPLHLeuY- {\n font-size: var(--typography--fontSize-base);\n line-height: var(--typography--lineHeight-base);\n}\n\n.T5XC4DgJlxk- {\n font-size: var(--typography--fontSize-small);\n line-height: var(--typography--lineHeight-tighter);\n}\n\n.sycqXMMO-wc- {\n font-size: var(--typography--fontSize-smaller);\n line-height: var(--typography--lineHeight-tight);\n}\n";
|
|
10
|
-
var fontSizes = {"extravagant":"_7C4Ck1izBPs-","jumbo":"_8X-fSrUTxV8-","largest":"n-SPJXPXLSA-","larger":"vCrvF55YQ9o-","large":"FBoaHWotSik-","base":"V6yPPLHLeuY-","small":"T5XC4DgJlxk-","smaller":"sycqXMMO-wc-"};
|
|
11
|
-
styleInject(css_248z$7);
|
|
12
|
-
|
|
13
|
-
var css_248z$6 = ".lziyWzzvuno- {\n font-family: var(--typography--fontFamily-normal);\n font-weight: 400;\n}\n\n.PVKSijyipP8- {\n font-family: var(--typography--fontFamily-normal);\n font-weight: 500;\n}\n\n.-ch9Z4gIGDg- {\n font-family: var(--typography--fontFamily-normal);\n font-weight: 600;\n}\n\n.EEwS0f07RqQ- {\n font-family: var(--typography--fontFamily-normal);\n font-weight: 700;\n}\n\n.kA3NtPPWbP0- {\n font-family: var(--typography--fontFamily-display);\n font-weight: 800;\n}\n\n.jobber-retheme .kA3NtPPWbP0- {\n font-family: var(--typography--fontFamily-normal);\n}\n\n._3M58OLqp0JM- {\n font-family: var(--typography--fontFamily-display);\n font-weight: 900;\n}\n";
|
|
14
|
-
var fontWeights = {"regular":"lziyWzzvuno-","medium":"PVKSijyipP8-","semiBold":"-ch9Z4gIGDg-","bold":"EEwS0f07RqQ-","extraBold":"kA3NtPPWbP0-","black":"_3M58OLqp0JM-"};
|
|
15
|
-
styleInject(css_248z$6);
|
|
16
|
-
|
|
17
|
-
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";
|
|
18
|
-
var textCases = {"uppercase":"xE6cC62h5G0-","lowercase":"HlqJJ3Cl7dE-","capitalize":"Loe26JnDfco-"};
|
|
19
|
-
styleInject(css_248z$5);
|
|
20
|
-
|
|
21
|
-
var css_248z$4 = ".pkqoq2KXY9w- {\n color: var(--color-blue);\n}\n\n.ftVHRSii3ro- {\n color: var(--color-grey);\n}\n\n.FQbGABZWVzA- {\n color: var(--color-greyBlue--dark);\n}\n\n.zQaB9J0-vrs- {\n color: var(--color-greyBlue);\n}\n\n._4-xdzcqT-Us- {\n color: var(--color-green);\n}\n\n.Zp9E7ELPjPA- {\n color: var(--color-red);\n}\n\n.v-Fo4PwPxDI- {\n color: var(--color-yellow);\n}\n\n.YrGUIChAZC0- {\n color: var(--color-yellow--dark);\n}\n\n.r7JcIVoDcTY- {\n color: var(--color-lightBlue);\n}\n\n._6RXTyd198iM- {\n color: var(--color-white);\n}\n\n.fLix4jA-RkU- {\n color: var(--color-heading);\n}\n\n._1g0uMAwFAsk- {\n color: var(--color-text);\n}\n\n.oXqFAHwT6y4- {\n color: var(--color-text--secondary);\n}\n\n.rWkzi9HFNDU- {\n color: var(--color-critical);\n}\n\n.PQLYQKGCmPI- {\n color: var(--color-warning--onSurface);\n}\n\n.L6bBDJrx-m0- {\n color: var(--color-informative--onSurface);\n}\n\n.bJDJJKvmT90- {\n color: var(--color-success--onSurface);\n}\n\n._3g4iYm8XwkM- {\n color: var(--color-disabled);\n}\n";
|
|
22
|
-
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-"};
|
|
23
|
-
styleInject(css_248z$4);
|
|
24
|
-
|
|
25
|
-
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";
|
|
26
|
-
var emphasis = {"italic":"Jys1uy2pQXw-","highlight":"kd2u0dL-if0-"};
|
|
27
|
-
styleInject(css_248z$3);
|
|
28
|
-
|
|
29
|
-
var css_248z$2 = ".LUJEfdi3pws- {\n display: -webkit-box !important;\n}\n.LUJEfdi3pws- {\n -webkit-box-orient: vertical;\n overflow: hidden;\n}\n";
|
|
30
|
-
var truncate = {"textTruncate":"LUJEfdi3pws-"};
|
|
31
|
-
styleInject(css_248z$2);
|
|
32
|
-
|
|
33
|
-
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";
|
|
34
|
-
var alignment = {"start":"eDMsbRCP0kg-","center":"j34R9yIG--c-","end":"CeI75T5sHwM-"};
|
|
35
|
-
styleInject(css_248z$1);
|
|
36
|
-
|
|
37
|
-
var css_248z = ".mRpfVoMiIMM- {\n font-family: var(--typography--fontFamily-normal);\n}\n\n.TPtuWMdOsfw- {\n font-family: var(--typography--fontFamily-display);\n}\n";
|
|
38
|
-
var fontFamilies = {"base":"mRpfVoMiIMM-","display":"TPtuWMdOsfw-"};
|
|
39
|
-
styleInject(css_248z);
|
|
40
|
-
|
|
41
|
-
/* eslint-disable import/no-internal-modules */
|
|
42
|
-
function Typography({ id, children, element: Tag = "p", size, align, fontWeight = "regular", textCase, textColor, emphasisType, numberOfLines, fontFamily, }) {
|
|
43
|
-
const shouldTruncateText = numberOfLines && numberOfLines > 0;
|
|
44
|
-
const className = classnames(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` })));
|
|
45
|
-
let truncateLines;
|
|
46
|
-
if (shouldTruncateText) {
|
|
47
|
-
truncateLines = {
|
|
48
|
-
WebkitLineClamp: numberOfLines,
|
|
49
|
-
WebkitBoxOrient: "vertical",
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
return (React.createElement(Tag, { id: id, className: className, style: truncateLines }, children));
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export { Typography as T };
|
|
@@ -1,62 +0,0 @@
|
|
|
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: 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: var(--typography--fontSize-extravagant);\n line-height: var(--typography--lineHeight-miniscule);\n}\n\n._8X-fSrUTxV8- {\n font-size: var(--typography--fontSize-jumbo);\n line-height: var(--typography--lineHeight-miniscule);\n}\n\n.n-SPJXPXLSA- {\n font-size: var(--typography--fontSize-largest);\n line-height: var(--typography--lineHeight-tightest);\n}\n\n.vCrvF55YQ9o- {\n font-size: var(--typography--fontSize-larger);\n line-height: var(--typography--lineHeight-tight);\n}\n\n.FBoaHWotSik- {\n font-size: var(--typography--fontSize-large);\n line-height: var(--typography--lineHeight-large);\n}\n\n.V6yPPLHLeuY- {\n font-size: var(--typography--fontSize-base);\n line-height: var(--typography--lineHeight-base);\n}\n\n.T5XC4DgJlxk- {\n font-size: var(--typography--fontSize-small);\n line-height: var(--typography--lineHeight-tighter);\n}\n\n.sycqXMMO-wc- {\n font-size: var(--typography--fontSize-smaller);\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: var(--typography--fontFamily-normal);\n font-weight: 400;\n}\n\n.PVKSijyipP8- {\n font-family: var(--typography--fontFamily-normal);\n font-weight: 500;\n}\n\n.-ch9Z4gIGDg- {\n font-family: var(--typography--fontFamily-normal);\n font-weight: 600;\n}\n\n.EEwS0f07RqQ- {\n font-family: var(--typography--fontFamily-normal);\n font-weight: 700;\n}\n\n.kA3NtPPWbP0- {\n font-family: var(--typography--fontFamily-display);\n font-weight: 800;\n}\n\n.jobber-retheme .kA3NtPPWbP0- {\n font-family: var(--typography--fontFamily-normal);\n}\n\n._3M58OLqp0JM- {\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: var(--color-blue);\n}\n\n.ftVHRSii3ro- {\n color: var(--color-grey);\n}\n\n.FQbGABZWVzA- {\n color: var(--color-greyBlue--dark);\n}\n\n.zQaB9J0-vrs- {\n color: var(--color-greyBlue);\n}\n\n._4-xdzcqT-Us- {\n color: var(--color-green);\n}\n\n.Zp9E7ELPjPA- {\n color: var(--color-red);\n}\n\n.v-Fo4PwPxDI- {\n color: var(--color-yellow);\n}\n\n.YrGUIChAZC0- {\n color: var(--color-yellow--dark);\n}\n\n.r7JcIVoDcTY- {\n color: var(--color-lightBlue);\n}\n\n._6RXTyd198iM- {\n color: var(--color-white);\n}\n\n.fLix4jA-RkU- {\n color: var(--color-heading);\n}\n\n._1g0uMAwFAsk- {\n color: var(--color-text);\n}\n\n.oXqFAHwT6y4- {\n color: var(--color-text--secondary);\n}\n\n.rWkzi9HFNDU- {\n color: var(--color-critical);\n}\n\n.PQLYQKGCmPI- {\n color: var(--color-warning--onSurface);\n}\n\n.L6bBDJrx-m0- {\n color: var(--color-informative--onSurface);\n}\n\n.bJDJJKvmT90- {\n color: var(--color-success--onSurface);\n}\n\n._3g4iYm8XwkM- {\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: var(--typography--fontFamily-normal);\n}\n\n.TPtuWMdOsfw- {\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;
|
package/dist/Typography.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
// For retheme purposes only.
|
|
2
|
-
// This will be removed once the retheme is out of the experiment.
|
|
3
|
-
function getAtlantisConfig() {
|
|
4
|
-
let JOBBER_RETHEME = false;
|
|
5
|
-
if (typeof window !== "undefined") {
|
|
6
|
-
JOBBER_RETHEME = document.body.classList.contains("jobber-retheme");
|
|
7
|
-
}
|
|
8
|
-
return { JOBBER_RETHEME };
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export { getAtlantisConfig as g };
|