@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
|
@@ -1,208 +0,0 @@
|
|
|
1
|
-
import React, { useId } from 'react';
|
|
2
|
-
import { s as styleInject } from './style-inject.es-a0e1a0ba.js';
|
|
3
|
-
import { R as RadioGroup, a as RadioOption } from './RadioGroup-a089f132.js';
|
|
4
|
-
import { T as Text } from './Text-c92ddeb3.js';
|
|
5
|
-
import 'classnames';
|
|
6
|
-
import './Typography-52ed1386.js';
|
|
7
|
-
import { S as Select, a as SelectOption } from './Option-58d7cab6.js';
|
|
8
|
-
import { I as InputNumber } from './InputNumber-4bd38b8e.js';
|
|
9
|
-
import { I as InputGroup } from './InputGroup-436859cf.js';
|
|
10
|
-
import { C as Content } from './Content-c96e9299.js';
|
|
11
|
-
|
|
12
|
-
var css_248z$5 = ".NfsRidfuJts- {\n display: grid;\n width: 100%;\n padding: var(--space-smaller);\n border: var(--border-base) solid var(--color-border);\n border-radius: var(--radius-large);\n grid-template-columns: repeat(7, 1fr);\n grid-row-gap: var(--space-smaller);\n row-gap: var(--space-smaller);\n -webkit-column-gap: var(--space-smaller);\n -moz-column-gap: var(--space-smaller);\n grid-column-gap: var(--space-smaller);\n column-gap: var(--space-smaller);\n}\n";
|
|
13
|
-
var styles$4 = {"container":"NfsRidfuJts-"};
|
|
14
|
-
styleInject(css_248z$5);
|
|
15
|
-
|
|
16
|
-
var css_248z$4 = ".GXNuQVAsUqs- {\n position: relative;\n}\n\n/* kept present but hidden for accessibility */\n\n.PtlN3SI-Atc- {\n clip: rect(1px, 1px, 1px, 1px);\n -webkit-clip-path: inset(50%);\n clip-path: inset(50%);\n position: absolute;\n width: 1px;\n height: 1px;\n margin: -1px;\n padding: 0;\n overflow: hidden;\n}\n\n.VPZ0Os9TY5k- {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-pack: center;\n justify-content: center;\n -ms-flex-align: center;\n align-items: center;\n padding: var(--space-smaller);\n border-radius: var(--radius-large);\n text-align: center;\n -webkit-user-select: none;\n -ms-user-select: none;\n user-select: none;\n background: var(--color-surface);\n transition: var(--timing-base);\n}\n\n@supports (aspect-ratio: 1/1) {\n .VPZ0Os9TY5k- {\n /*\n * disabling property-no-unknown here as this is a real property\n * that stylelint just doesn't know about. We may be able to remove\n * this when we update our stylelint to not care about IE11.\n */\n /* stylelint-disable-next-line property-no-unknown */\n aspect-ratio: 1/1;\n }\n}\n\n.VPZ0Os9TY5k-:hover {\n background: var(--color-surface--hover);\n}\n\n.PtlN3SI-Atc-:focus + .VPZ0Os9TY5k- {\n box-shadow: var(--shadow-focus);\n background: var(--color-surface--hover);\n}\n\n.PtlN3SI-Atc-:checked + .VPZ0Os9TY5k- {\n color: var(--color-text--reverse);\n background: var(--color-interactive);\n}\n\n.PtlN3SI-Atc-:disabled + .VPZ0Os9TY5k- {\n color: var(--color-disabled);\n background: var(--color-surface--background);\n cursor: default;\n}\n\n.PtlN3SI-Atc-:enabled + .VPZ0Os9TY5k- {\n cursor: pointer;\n}\n\n.PtlN3SI-Atc-:checked:focus + .VPZ0Os9TY5k- {\n background: var(--color-interactive--hover);\n}\n\n.PtlN3SI-Atc-:checked + .VPZ0Os9TY5k-:hover {\n background: var(--color-interactive--hover);\n}\n\n.PtlN3SI-Atc-:disabled:checked + .VPZ0Os9TY5k- {\n color: var(--color-disabled--secondary);\n background: var(--color-disabled);\n}\n";
|
|
17
|
-
var checkboxStyles = {"checkboxWrapper":"GXNuQVAsUqs-","dayCheckboxInput":"PtlN3SI-Atc-","dayCheckbox":"VPZ0Os9TY5k-"};
|
|
18
|
-
styleInject(css_248z$4);
|
|
19
|
-
|
|
20
|
-
var WeekDay;
|
|
21
|
-
(function (WeekDay) {
|
|
22
|
-
WeekDay[WeekDay["Sunday"] = 0] = "Sunday";
|
|
23
|
-
WeekDay[WeekDay["Monday"] = 1] = "Monday";
|
|
24
|
-
WeekDay[WeekDay["Tuesday"] = 2] = "Tuesday";
|
|
25
|
-
WeekDay[WeekDay["Wednesday"] = 3] = "Wednesday";
|
|
26
|
-
WeekDay[WeekDay["Thursday"] = 4] = "Thursday";
|
|
27
|
-
WeekDay[WeekDay["Friday"] = 5] = "Friday";
|
|
28
|
-
WeekDay[WeekDay["Saturday"] = 6] = "Saturday";
|
|
29
|
-
})(WeekDay || (WeekDay = {}));
|
|
30
|
-
var DurationPeriod;
|
|
31
|
-
(function (DurationPeriod) {
|
|
32
|
-
DurationPeriod["Day"] = "Day";
|
|
33
|
-
DurationPeriod["Week"] = "Week";
|
|
34
|
-
DurationPeriod["DayOfMonth"] = "DayOfMonth";
|
|
35
|
-
DurationPeriod["WeekDayOfMonth"] = "WeekDayOfMonth";
|
|
36
|
-
DurationPeriod["Year"] = "Year";
|
|
37
|
-
DurationPeriod["Visit"] = "Visit";
|
|
38
|
-
})(DurationPeriod || (DurationPeriod = {}));
|
|
39
|
-
const typeInitialStateMap = {
|
|
40
|
-
[DurationPeriod.Day]: {
|
|
41
|
-
type: DurationPeriod.Day,
|
|
42
|
-
},
|
|
43
|
-
[DurationPeriod.Week]: {
|
|
44
|
-
type: DurationPeriod.Week,
|
|
45
|
-
weekDays: new Set(),
|
|
46
|
-
},
|
|
47
|
-
[DurationPeriod.DayOfMonth]: {
|
|
48
|
-
type: DurationPeriod.DayOfMonth,
|
|
49
|
-
date: new Set(),
|
|
50
|
-
},
|
|
51
|
-
[DurationPeriod.WeekDayOfMonth]: {
|
|
52
|
-
type: DurationPeriod.WeekDayOfMonth,
|
|
53
|
-
dayOfWeek: [
|
|
54
|
-
new Set(),
|
|
55
|
-
new Set(),
|
|
56
|
-
new Set(),
|
|
57
|
-
new Set(),
|
|
58
|
-
],
|
|
59
|
-
},
|
|
60
|
-
[DurationPeriod.Year]: {
|
|
61
|
-
type: DurationPeriod.Year,
|
|
62
|
-
},
|
|
63
|
-
};
|
|
64
|
-
const isMonthly = (rule) => rule.type === DurationPeriod.WeekDayOfMonth ||
|
|
65
|
-
rule.type === DurationPeriod.DayOfMonth;
|
|
66
|
-
|
|
67
|
-
const weekDays = [0, 1, 2, 3, 4, 5, 6];
|
|
68
|
-
function WeeklySelect({ onChange, selectedDays, disabled, }) {
|
|
69
|
-
const onChangeWeekDays = (event) => {
|
|
70
|
-
const day = Number(event.currentTarget.value);
|
|
71
|
-
const next = new Set(Array.from(selectedDays));
|
|
72
|
-
if (selectedDays.has(day)) {
|
|
73
|
-
next.delete(day);
|
|
74
|
-
}
|
|
75
|
-
else {
|
|
76
|
-
next.add(day);
|
|
77
|
-
}
|
|
78
|
-
onChange(next);
|
|
79
|
-
};
|
|
80
|
-
return (React.createElement("div", { className: styles$4.container }, weekDays.map(weekDay => {
|
|
81
|
-
const isSelected = selectedDays.has(weekDay);
|
|
82
|
-
const inputId = useId();
|
|
83
|
-
return (React.createElement("div", { key: `${weekDay}`, className: checkboxStyles.checkboxWrapper },
|
|
84
|
-
React.createElement("input", { className: checkboxStyles.dayCheckboxInput, disabled: disabled, type: "checkbox", onChange: onChangeWeekDays, id: `weekly-select-${weekDay}${inputId}`, "aria-checked": isSelected, checked: isSelected, value: weekDay }),
|
|
85
|
-
React.createElement("label", { className: checkboxStyles.dayCheckbox, htmlFor: `weekly-select-${weekDay}${inputId}` }, `${WeekDay[weekDay].substr(0, 1).toUpperCase()}`)));
|
|
86
|
-
})));
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
var css_248z$3 = ".PW6L4PJe5TY- div[role=\"radiogroup\"] {\n -ms-flex-direction: row;\n flex-direction: row;\n}\n\n.PW6L4PJe5TY- label {\n margin-right: var(--space-base);\n}\n";
|
|
90
|
-
var styles$3 = {"radioContainer":"PW6L4PJe5TY-"};
|
|
91
|
-
styleInject(css_248z$3);
|
|
92
|
-
|
|
93
|
-
function MonthlySelect({ disabled, onChange, selectedMonthOption, }) {
|
|
94
|
-
return (React.createElement("div", { className: styles$3.radioContainer },
|
|
95
|
-
React.createElement(RadioGroup, { ariaLabel: "Monthly Frequency Selector", onChange: onChange, value: selectedMonthOption },
|
|
96
|
-
React.createElement(RadioOption, { disabled: disabled, value: DurationPeriod.DayOfMonth, label: "Day of month" }),
|
|
97
|
-
React.createElement(RadioOption, { disabled: disabled, value: DurationPeriod.WeekDayOfMonth, label: "Day of week" }))));
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
var css_248z$2 = ".pqYw6oCVwO8- {\n display: grid;\n grid-template-columns: var(--space-largest) 1fr;\n -ms-flex-align: center;\n align-items: center;\n grid-gap: var(--space-small);\n gap: var(--space-small);\n margin-bottom: calc(-1 * var(--border-base));\n}\n\n.xtCFaHyTmfI- div:nth-of-type(1) :last-child {\n border-top-right-radius: var(--radius-large);\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 0;\n border-top-left-radius: var(--radius-large);\n}\n\n.xtCFaHyTmfI- div:nth-of-type(2) :last-child {\n border-radius: 0;\n}\n\n.xtCFaHyTmfI- div:nth-of-type(3) :last-child {\n border-radius: 0;\n}\n\n.xtCFaHyTmfI- div:nth-of-type(4) :last-child {\n border-top-right-radius: 0;\n border-bottom-right-radius: var(--radius-large);\n border-bottom-left-radius: var(--radius-large);\n border-top-left-radius: 0;\n}\n";
|
|
101
|
-
var styles$2 = {"container":"pqYw6oCVwO8-","parentContainer":"xtCFaHyTmfI-"};
|
|
102
|
-
styleInject(css_248z$2);
|
|
103
|
-
|
|
104
|
-
function MonthlyDayOfWeekSelect({ disabled, selectedWeeks, onChange, }) {
|
|
105
|
-
const orderString = ["1st", "2nd", "3rd", "4th"];
|
|
106
|
-
return (React.createElement("div", { className: styles$2.parentContainer }, selectedWeeks.map((week, index) => {
|
|
107
|
-
const onChangeWeek = (weekDay) => {
|
|
108
|
-
const next = [...selectedWeeks];
|
|
109
|
-
next.splice(index, 1, weekDay);
|
|
110
|
-
onChange(next);
|
|
111
|
-
};
|
|
112
|
-
return (React.createElement("div", { className: styles$2.container, key: `${index}${week}` },
|
|
113
|
-
React.createElement(Text, null, `${orderString[index]}`),
|
|
114
|
-
React.createElement("div", null,
|
|
115
|
-
React.createElement(WeeklySelect, { disabled: disabled, selectedDays: week, onChange: onChangeWeek }))));
|
|
116
|
-
})));
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
var css_248z$1 = ".dBbFx0Vu16U- {\n display: grid;\n width: 100%;\n padding: var(--space-smaller);\n border: var(--border-base) solid var(--color-border);\n border-radius: var(--radius-large);\n grid-template-areas:\n \". . . . . . .\"\n \". . . . . . .\"\n \". . . . . . .\"\n \". . . . . . .\"\n \". . . lastday lastday lastday lastday\";\n grid-row-gap: var(--space-smaller);\n row-gap: var(--space-smaller);\n -webkit-column-gap: var(--space-smaller);\n -moz-column-gap: var(--space-smaller);\n grid-column-gap: var(--space-smaller);\n column-gap: var(--space-smaller);\n}\n\n.dBbFx0Vu16U- :last-child {\n grid-area: lastday;\n}\n\n.dBbFx0Vu16U- div:nth-child(n + 1):nth-last-child(-n + 1) label {\n height: 100%;\n}\n\n@supports (aspect-ratio: unset) {\n .dBbFx0Vu16U- div:nth-child(n + 1):nth-last-child(-n + 1) label {\n /*\n * disabling property-no-unknown here as this is a real property\n * that stylelint just doesn't know about. We may be able to remove\n * this when we update our stylelint to not care about IE11.\n */\n /* stylelint-disable-next-line property-no-unknown */\n aspect-ratio: unset;\n }\n}\n";
|
|
120
|
-
var styles$1 = {"container":"dBbFx0Vu16U-"};
|
|
121
|
-
styleInject(css_248z$1);
|
|
122
|
-
|
|
123
|
-
const daysInMonth = [...Array.from({ length: 31 }, (_, i) => i + 1), "LAST"];
|
|
124
|
-
function DayOfMonthSelect({ selectedDays, disabled, onChange, }) {
|
|
125
|
-
return (React.createElement("div", { className: styles$1.container }, daysInMonth.map(day => {
|
|
126
|
-
const isSelected = selectedDays.has(day);
|
|
127
|
-
const inputId = useId();
|
|
128
|
-
return (React.createElement("div", { key: `${day}`, className: checkboxStyles.checkboxWrapper },
|
|
129
|
-
React.createElement("input", { className: checkboxStyles.dayCheckboxInput, disabled: disabled, type: "checkbox", id: `${day}-${inputId}`, onChange: handleChangeDayOfMonth, "aria-checked": isSelected, checked: isSelected, value: day }),
|
|
130
|
-
React.createElement("label", { className: checkboxStyles.dayCheckbox, htmlFor: `${day}-${inputId}` }, `${day === "LAST" ? "Last day" : day}`)));
|
|
131
|
-
})));
|
|
132
|
-
function handleChangeDayOfMonth(event) {
|
|
133
|
-
const day = event.currentTarget.value === "LAST"
|
|
134
|
-
? event.currentTarget.value
|
|
135
|
-
: +event.currentTarget.value;
|
|
136
|
-
const next = new Set(selectedDays);
|
|
137
|
-
if (selectedDays.has(day)) {
|
|
138
|
-
next.delete(day);
|
|
139
|
-
}
|
|
140
|
-
else {
|
|
141
|
-
next.add(day);
|
|
142
|
-
}
|
|
143
|
-
onChange(next);
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
function CurrentRecurrenceComponent({ recurrenceRule, disabled = false, onChange, }) {
|
|
148
|
-
switch (recurrenceRule.type) {
|
|
149
|
-
case DurationPeriod.Week: {
|
|
150
|
-
const onChangeWeekDays = (next) => {
|
|
151
|
-
onChange(Object.assign(Object.assign({}, recurrenceRule), { weekDays: next }));
|
|
152
|
-
};
|
|
153
|
-
return (React.createElement(WeeklySelect, { disabled: disabled, selectedDays: recurrenceRule.weekDays, onChange: onChangeWeekDays }));
|
|
154
|
-
}
|
|
155
|
-
case DurationPeriod.WeekDayOfMonth: {
|
|
156
|
-
const onChangeWeekDayOfMonth = (next) => {
|
|
157
|
-
onChange(Object.assign(Object.assign({}, recurrenceRule), { dayOfWeek: next }));
|
|
158
|
-
};
|
|
159
|
-
return (React.createElement(MonthlyDayOfWeekSelect, { disabled: disabled, onChange: onChangeWeekDayOfMonth, selectedWeeks: recurrenceRule.dayOfWeek }));
|
|
160
|
-
}
|
|
161
|
-
case DurationPeriod.DayOfMonth: {
|
|
162
|
-
const onChangeDayOfMonth = (next) => {
|
|
163
|
-
onChange(Object.assign(Object.assign({}, recurrenceRule), { date: next }));
|
|
164
|
-
};
|
|
165
|
-
return (React.createElement(DayOfMonthSelect, { disabled: disabled, selectedDays: recurrenceRule.date, onChange: onChangeDayOfMonth }));
|
|
166
|
-
}
|
|
167
|
-
default:
|
|
168
|
-
return React.createElement(React.Fragment, null);
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
var css_248z = ".ANBCH37jH0k- {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n gap: var(--space-base);\n}\n\n.ZV0GgII8eWQ- {\n width: 100%;\n}\n";
|
|
173
|
-
var styles = {"container":"ANBCH37jH0k-","fullWidthWrapper":"ZV0GgII8eWQ-"};
|
|
174
|
-
styleInject(css_248z);
|
|
175
|
-
|
|
176
|
-
function RecurringSelect({ value, disabled = false, onChange, }) {
|
|
177
|
-
const disabledTextVariation = disabled ? "disabled" : undefined;
|
|
178
|
-
// we must dynamically populate the select option based on which is selected
|
|
179
|
-
// because there is no single "month" option, it must always be one of these two
|
|
180
|
-
const monthlySelectOptionValue = value.type === DurationPeriod.WeekDayOfMonth
|
|
181
|
-
? DurationPeriod.WeekDayOfMonth
|
|
182
|
-
: DurationPeriod.DayOfMonth;
|
|
183
|
-
const hasExtraFrequencyDescriptor = value.type === DurationPeriod.WeekDayOfMonth ||
|
|
184
|
-
value.type === DurationPeriod.DayOfMonth ||
|
|
185
|
-
value.type === DurationPeriod.Week;
|
|
186
|
-
return (React.createElement(Content, null,
|
|
187
|
-
React.createElement("div", { className: styles.container },
|
|
188
|
-
React.createElement(Text, { variation: disabledTextVariation }, "Every"),
|
|
189
|
-
React.createElement("div", { className: styles.fullWidthWrapper },
|
|
190
|
-
React.createElement(InputGroup, { flowDirection: "horizontal" },
|
|
191
|
-
React.createElement(InputNumber, { disabled: disabled, name: "schedule-recurrence-interval", value: value.interval, min: 1, maxLength: 3, onChange: onChangeInterval }),
|
|
192
|
-
React.createElement(Select, { disabled: disabled, value: value.type, onChange: onChangeType, name: "schedule-recurrence-type" },
|
|
193
|
-
React.createElement(SelectOption, { value: DurationPeriod.Day }, "Day(s)"),
|
|
194
|
-
React.createElement(SelectOption, { value: DurationPeriod.Week }, "Week(s)"),
|
|
195
|
-
React.createElement(SelectOption, { value: monthlySelectOptionValue }, "Month(s)"),
|
|
196
|
-
React.createElement(SelectOption, { value: DurationPeriod.Year }, "Year(s)")))),
|
|
197
|
-
hasExtraFrequencyDescriptor && (React.createElement(Text, { variation: disabledTextVariation }, "on"))),
|
|
198
|
-
isMonthly(value) && (React.createElement(MonthlySelect, { disabled: disabled, onChange: onChangeType, selectedMonthOption: value.type })),
|
|
199
|
-
React.createElement(CurrentRecurrenceComponent, { disabled: disabled, recurrenceRule: value, onChange: onChange })));
|
|
200
|
-
function onChangeInterval(interval) {
|
|
201
|
-
onChange(Object.assign(Object.assign({}, value), { interval }));
|
|
202
|
-
}
|
|
203
|
-
function onChangeType(type) {
|
|
204
|
-
onChange(Object.assign({ interval: value.interval }, typeInitialStateMap[type]));
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
export { DurationPeriod as D, RecurringSelect as R, WeekDay as W };
|
package/dist/RecurringSelect.cjs
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var RecurringSelect = require('./RecurringSelect-e391af31.js');
|
|
6
|
-
require('react');
|
|
7
|
-
require('./style-inject.es-9d2f5f4e.js');
|
|
8
|
-
require('./RadioGroup-68edd1e3.js');
|
|
9
|
-
require('./Text-714f7d14.js');
|
|
10
|
-
require('./Typography-fd88fcce.js');
|
|
11
|
-
require('classnames');
|
|
12
|
-
require('./Option-73515eec.js');
|
|
13
|
-
require('./FormField-fc30bb1a.js');
|
|
14
|
-
require('./tslib.es6-754e2961.js');
|
|
15
|
-
require('react-hook-form');
|
|
16
|
-
require('@jobber/hooks/useShowClear');
|
|
17
|
-
require('./Button-ec64869e.js');
|
|
18
|
-
require('react-router-dom');
|
|
19
|
-
require('./Icon-405a216c.js');
|
|
20
|
-
require('@jobber/design');
|
|
21
|
-
require('./InputValidation-4a61254d.js');
|
|
22
|
-
require('framer-motion');
|
|
23
|
-
require('./Spinner-3480bc34.js');
|
|
24
|
-
require('./InputNumber-df9cb825.js');
|
|
25
|
-
require('./InputGroup-8d4fd4eb.js');
|
|
26
|
-
require('./Content-60a3452a.js');
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
Object.defineProperty(exports, 'DurationPeriod', {
|
|
31
|
-
enumerable: true,
|
|
32
|
-
get: function () { return RecurringSelect.DurationPeriod; }
|
|
33
|
-
});
|
|
34
|
-
exports.RecurringSelect = RecurringSelect.RecurringSelect;
|
|
35
|
-
Object.defineProperty(exports, 'WeekDay', {
|
|
36
|
-
enumerable: true,
|
|
37
|
-
get: function () { return RecurringSelect.WeekDay; }
|
|
38
|
-
});
|
package/dist/RecurringSelect.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export { D as DurationPeriod, R as RecurringSelect, W as WeekDay } from './RecurringSelect-2de4014c.js';
|
|
2
|
-
import 'react';
|
|
3
|
-
import './style-inject.es-a0e1a0ba.js';
|
|
4
|
-
import './RadioGroup-a089f132.js';
|
|
5
|
-
import './Text-c92ddeb3.js';
|
|
6
|
-
import './Typography-52ed1386.js';
|
|
7
|
-
import 'classnames';
|
|
8
|
-
import './Option-58d7cab6.js';
|
|
9
|
-
import './FormField-f1f405d2.js';
|
|
10
|
-
import './tslib.es6-c563c1dd.js';
|
|
11
|
-
import 'react-hook-form';
|
|
12
|
-
import '@jobber/hooks/useShowClear';
|
|
13
|
-
import './Button-30154871.js';
|
|
14
|
-
import 'react-router-dom';
|
|
15
|
-
import './Icon-22723fe6.js';
|
|
16
|
-
import '@jobber/design';
|
|
17
|
-
import './InputValidation-fe42fc3f.js';
|
|
18
|
-
import 'framer-motion';
|
|
19
|
-
import './Spinner-90081e20.js';
|
|
20
|
-
import './InputNumber-4bd38b8e.js';
|
|
21
|
-
import './InputGroup-436859cf.js';
|
|
22
|
-
import './Content-c96e9299.js';
|
package/dist/Select.cjs
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var Option = require('./Option-73515eec.js');
|
|
6
|
-
require('react');
|
|
7
|
-
require('./FormField-fc30bb1a.js');
|
|
8
|
-
require('./tslib.es6-754e2961.js');
|
|
9
|
-
require('react-hook-form');
|
|
10
|
-
require('./style-inject.es-9d2f5f4e.js');
|
|
11
|
-
require('classnames');
|
|
12
|
-
require('@jobber/hooks/useShowClear');
|
|
13
|
-
require('./Button-ec64869e.js');
|
|
14
|
-
require('react-router-dom');
|
|
15
|
-
require('./Icon-405a216c.js');
|
|
16
|
-
require('@jobber/design');
|
|
17
|
-
require('./Typography-fd88fcce.js');
|
|
18
|
-
require('./Text-714f7d14.js');
|
|
19
|
-
require('./InputValidation-4a61254d.js');
|
|
20
|
-
require('framer-motion');
|
|
21
|
-
require('./Spinner-3480bc34.js');
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
exports.Option = Option.SelectOption;
|
|
26
|
-
exports.Select = Option.Select;
|
package/dist/Select.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export { a as Option, S as Select } from './Option-58d7cab6.js';
|
|
2
|
-
import 'react';
|
|
3
|
-
import './FormField-f1f405d2.js';
|
|
4
|
-
import './tslib.es6-c563c1dd.js';
|
|
5
|
-
import 'react-hook-form';
|
|
6
|
-
import './style-inject.es-a0e1a0ba.js';
|
|
7
|
-
import 'classnames';
|
|
8
|
-
import '@jobber/hooks/useShowClear';
|
|
9
|
-
import './Button-30154871.js';
|
|
10
|
-
import 'react-router-dom';
|
|
11
|
-
import './Icon-22723fe6.js';
|
|
12
|
-
import '@jobber/design';
|
|
13
|
-
import './Typography-52ed1386.js';
|
|
14
|
-
import './Text-c92ddeb3.js';
|
|
15
|
-
import './InputValidation-fe42fc3f.js';
|
|
16
|
-
import 'framer-motion';
|
|
17
|
-
import './Spinner-90081e20.js';
|
package/dist/Spinner-3480bc34.js
DELETED
|
@@ -1,24 +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 = ".uoU-LfjFDv0- {\n width: var(--space-larger);\n height: var(--space-larger);\n box-shadow: 0px 0px 4px 2px rgba(1, 41, 57, 0.4);\n border: solid var(--color-blue--light);\n border-top-color: var(--color-white);\n border-width: calc(var(--space-small) * 0.75);\n border-radius: var(--radius-circle);\n background-color: var(--color-blue--lightest);\n -webkit-animation-duration: calc(var(--timing-slowest) * 2);\n animation-duration: calc(var(--timing-slowest) * 2);\n -webkit-animation-iteration-count: infinite;\n animation-iteration-count: infinite;\n -webkit-animation-name: _1aCKd5q9u34-;\n animation-name: _1aCKd5q9u34-;\n -webkit-animation-timing-function: linear;\n animation-timing-function: linear;\n will-change: transform;\n}\n\n@-webkit-keyframes _1aCKd5q9u34- {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n\n 100% {\n -webkit-transform: rotate(359deg);\n transform: rotate(359deg);\n }\n}\n\n@keyframes _1aCKd5q9u34- {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n\n 100% {\n -webkit-transform: rotate(359deg);\n transform: rotate(359deg);\n }\n}\n\n.cLRQwkSqnhA- {\n width: var(--space-base);\n height: var(--space-base);\n border-width: var(--space-smaller);\n}\n\n.h6O4vDPCWOQ- {\n display: inline-block;\n margin-top: calc(var(--space-smaller) * -1);\n vertical-align: middle;\n}\n";
|
|
13
|
-
var styles = {"spinner":"uoU-LfjFDv0-","animationSpin":"_1aCKd5q9u34-","small":"cLRQwkSqnhA-","inline":"h6O4vDPCWOQ-"};
|
|
14
|
-
styleInject_es.styleInject(css_248z);
|
|
15
|
-
|
|
16
|
-
function Spinner({ size = "base", inline }) {
|
|
17
|
-
const spinnerStyles = classnames__default["default"](styles.spinner, {
|
|
18
|
-
[styles.small]: size === "small",
|
|
19
|
-
[styles.inline]: inline,
|
|
20
|
-
});
|
|
21
|
-
return (React__default["default"].createElement("div", { className: spinnerStyles, role: "alert", "aria-busy": true, "aria-label": "loading" }));
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
exports.Spinner = Spinner;
|
package/dist/Spinner-90081e20.js
DELETED
|
@@ -1,17 +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 = ".uoU-LfjFDv0- {\n width: var(--space-larger);\n height: var(--space-larger);\n box-shadow: 0px 0px 4px 2px rgba(1, 41, 57, 0.4);\n border: solid var(--color-blue--light);\n border-top-color: var(--color-white);\n border-width: calc(var(--space-small) * 0.75);\n border-radius: var(--radius-circle);\n background-color: var(--color-blue--lightest);\n -webkit-animation-duration: calc(var(--timing-slowest) * 2);\n animation-duration: calc(var(--timing-slowest) * 2);\n -webkit-animation-iteration-count: infinite;\n animation-iteration-count: infinite;\n -webkit-animation-name: _1aCKd5q9u34-;\n animation-name: _1aCKd5q9u34-;\n -webkit-animation-timing-function: linear;\n animation-timing-function: linear;\n will-change: transform;\n}\n\n@-webkit-keyframes _1aCKd5q9u34- {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n\n 100% {\n -webkit-transform: rotate(359deg);\n transform: rotate(359deg);\n }\n}\n\n@keyframes _1aCKd5q9u34- {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n\n 100% {\n -webkit-transform: rotate(359deg);\n transform: rotate(359deg);\n }\n}\n\n.cLRQwkSqnhA- {\n width: var(--space-base);\n height: var(--space-base);\n border-width: var(--space-smaller);\n}\n\n.h6O4vDPCWOQ- {\n display: inline-block;\n margin-top: calc(var(--space-smaller) * -1);\n vertical-align: middle;\n}\n";
|
|
6
|
-
var styles = {"spinner":"uoU-LfjFDv0-","animationSpin":"_1aCKd5q9u34-","small":"cLRQwkSqnhA-","inline":"h6O4vDPCWOQ-"};
|
|
7
|
-
styleInject(css_248z);
|
|
8
|
-
|
|
9
|
-
function Spinner({ size = "base", inline }) {
|
|
10
|
-
const spinnerStyles = classnames(styles.spinner, {
|
|
11
|
-
[styles.small]: size === "small",
|
|
12
|
-
[styles.inline]: inline,
|
|
13
|
-
});
|
|
14
|
-
return (React.createElement("div", { className: spinnerStyles, role: "alert", "aria-busy": true, "aria-label": "loading" }));
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export { Spinner as S };
|
package/dist/Spinner.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { s as styleInject } from './style-inject.es-a0e1a0ba.js';
|
|
3
|
-
|
|
4
|
-
var css_248z = ".ob7nhx1U-HQ- {\n display: inline-block;\n width: var(--statusLabel-icon-diameter);\n height: var(--statusLabel-icon-diameter);\n border-radius: 3px;\n background-color: var(--color-success);\n -ms-flex-negative: 0;\n flex-shrink: 0;\n}\n";
|
|
5
|
-
var styles = {"statusIndicator":"ob7nhx1U-HQ-"};
|
|
6
|
-
styleInject(css_248z);
|
|
7
|
-
|
|
8
|
-
function StatusIndicator({ status }) {
|
|
9
|
-
return (React.createElement("span", { style: { backgroundColor: `var(--color-${status})` }, className: styles.statusIndicator, "data-testid": `ATL-Status-Indicator-${status}` }));
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export { StatusIndicator as S };
|
package/dist/StatusIndicator.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import classnames from 'classnames';
|
|
3
|
-
import { s as styleInject } from './style-inject.es-a0e1a0ba.js';
|
|
4
|
-
import { T as Text } from './Text-c92ddeb3.js';
|
|
5
|
-
import { S as StatusIndicator } from './StatusIndicator-d6f9aefa.js';
|
|
6
|
-
|
|
7
|
-
var css_248z = ":root {\n --statusLabel-icon-diameter: 10px;\n}\n\n.MB0ycTR4PHg- {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: row;\n flex-direction: row;\n -ms-flex-wrap: nowrap;\n flex-wrap: nowrap;\n gap: var(--space-small);\n width: -webkit-fit-content;\n width: -moz-fit-content;\n width: fit-content;\n}\n\n._0kNfkSPBETw- {\n -ms-flex-direction: row-reverse;\n flex-direction: row-reverse;\n}\n\n.fNl6zDhsox0- {\n display: -ms-inline-flexbox;\n display: inline-flex;\n padding-top: var(--space-minuscule);\n}\n";
|
|
8
|
-
var styles = {"statusLabelRow":"MB0ycTR4PHg-","labelTextEndAligned":"_0kNfkSPBETw-","statusIndicator":"fNl6zDhsox0-"};
|
|
9
|
-
styleInject(css_248z);
|
|
10
|
-
|
|
11
|
-
function StatusLabel({ label, alignment = "start", status = "inactive", }) {
|
|
12
|
-
const containerClassNames = classnames(styles.statusLabelRow, alignment === "end" && styles.labelTextEndAligned);
|
|
13
|
-
return (React.createElement("div", { role: "status", className: containerClassNames },
|
|
14
|
-
React.createElement("div", { className: styles.statusIndicator },
|
|
15
|
-
React.createElement(StatusIndicator, { status: status })),
|
|
16
|
-
React.createElement(Text, { size: "small", align: alignment }, label)));
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export { StatusLabel as S };
|
package/dist/StatusLabel.cjs
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var StatusLabel = require('./StatusLabel-5bf96fdb.js');
|
|
6
|
-
require('react');
|
|
7
|
-
require('classnames');
|
|
8
|
-
require('./style-inject.es-9d2f5f4e.js');
|
|
9
|
-
require('./Text-714f7d14.js');
|
|
10
|
-
require('./Typography-fd88fcce.js');
|
|
11
|
-
require('./StatusIndicator-0c680acb.js');
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
exports.StatusLabel = StatusLabel.StatusLabel;
|
package/dist/StatusLabel.js
DELETED
package/dist/Switch-6c6c727b.js
DELETED
|
@@ -1,56 +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
|
-
var Typography = require('./Typography-fd88fcce.js');
|
|
7
|
-
|
|
8
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
9
|
-
|
|
10
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
11
|
-
var classnames__default = /*#__PURE__*/_interopDefaultLegacy(classnames);
|
|
12
|
-
|
|
13
|
-
var css_248z = ":root {\n --switch--pipSize: calc(var(--space-base) * 1.875);\n --switch--labelWidth: calc(var(--switch--pipSize) * 1.3);\n --switch--borderOffset: calc(var(--border-base) * 2);\n}\n\n:root .jobber-retheme {\n --switch--pipSize: var(--space-base);\n}\n\n.NaSI2jsLI0c-,\n.NaSI2jsLI0c- * {\n box-sizing: border-box;\n transition: all var(--timing-base);\n}\n\n.NaSI2jsLI0c- {\n display: -ms-inline-flexbox;\n display: inline-flex;\n width: calc(((var(--space-base) * 1.875) * 1.3) + (var(--space-base) * 1.875));\n width: calc(calc(calc(var(--space-base) * 1.875) * 1.3) + calc(var(--space-base) * 1.875));\n width: calc(var(--switch--labelWidth) + var(--switch--pipSize));\n padding: 0;\n border: var(--border-base) solid var(--color-border);\n border-radius: calc(var(--space-base) * 1.875);\n border-radius: var(--switch--pipSize);\n overflow: hidden;\n line-height: normal;\n background-color: var(--color-surface--background);\n cursor: pointer;\n -webkit-appearance: none;\n appearance: none;\n}\n\n.jobber-retheme .NaSI2jsLI0c- {\n width: var(--space-largest);\n height: var(--space-large);\n border-color: var(--color-border);\n border-width: var(--border-thick);\n background-color: var(--color-surface);\n -ms-flex-align: center;\n align-items: center;\n}\n\n.NaSI2jsLI0c-:focus-visible {\n box-shadow: var(--shadow-focus);\n outline: none;\n}\n\n.jobber-retheme .NaSI2jsLI0c-:hover,\n.jobber-retheme .NaSI2jsLI0c-:focus-visible {\n border-color: var(--color-interactive);\n}\n\n.HbAoDMJhkwY-,\n.jobber-retheme .HbAoDMJhkwY- {\n border-color: var(--color-interactive);\n background-color: var(--color-interactive);\n}\n\n.cc259FtdxeE- {\n display: -ms-flexbox;\n display: flex;\n position: relative;\n margin-left: calc(-1 * ((var(--space-base) * 1.875) * 1.3));\n margin-left: calc(-1 * calc(calc(var(--space-base) * 1.875) * 1.3));\n margin-left: calc(-1 * var(--switch--labelWidth));\n pointer-events: none;\n -ms-flex: 1 1 100%;\n flex: 1 1 100%;\n -ms-flex-align: center;\n align-items: center;\n}\n\n.jobber-retheme .cc259FtdxeE- {\n margin-left: -37px;\n}\n\n.HbAoDMJhkwY- .cc259FtdxeE- {\n margin-left: calc(-1 * (var(--border-base) * 2));\n margin-left: calc(-1 * calc(var(--border-base) * 2));\n margin-left: calc(-1 * var(--switch--borderOffset));\n}\n\n.jobber-retheme .HbAoDMJhkwY- .cc259FtdxeE- {\n margin-left: -13px;\n}\n\n.YZ-HIehHOBA- {\n display: -ms-flexbox;\n display: flex;\n position: relative;\n min-width: calc((var(--space-base) * 1.875) * 1.3);\n min-width: calc(calc(var(--space-base) * 1.875) * 1.3);\n min-width: var(--switch--labelWidth);\n margin-top: var(--space-minuscule);\n -webkit-user-select: none;\n -ms-user-select: none;\n user-select: none;\n pointer-events: none;\n -ms-flex-align: center;\n align-items: center;\n -ms-flex-pack: center;\n justify-content: center;\n}\n\n.YZ-HIehHOBA-:first-of-type {\n padding-left: var(--space-small);\n}\n\n.YZ-HIehHOBA-:last-of-type {\n padding-right: var(--space-small);\n}\n\n.jobber-retheme .YZ-HIehHOBA- {\n opacity: 0;\n}\n\n._2hxova2FHpM- {\n -ms-flex: 0 0 auto;\n flex: 0 0 auto;\n width: calc(var(--space-base) * 1.875);\n width: var(--switch--pipSize);\n height: calc(var(--space-base) * 1.875);\n height: var(--switch--pipSize);\n border: var(--border-base) solid var(--color-border);\n border-radius: var(--radius-circle);\n background-color: var(--color-surface);\n transition: all var(--timing-quick) ease-out;\n}\n\n.jobber-retheme ._2hxova2FHpM- {\n border: none;\n background-color: var(--color-interactive--subtle);\n}\n\n.HbAoDMJhkwY- ._2hxova2FHpM- {\n border-color: var(--color-green);\n}\n\n.jobber-retheme .HbAoDMJhkwY- ._2hxova2FHpM- {\n background-color: var(--color-surface);\n}\n\n/* Moving this up overwrites disabled styling */\n\n/* stylelint-disable-next-line no-descending-specificity */\n\n._6hWvJHjyLlk- ._2hxova2FHpM- {\n border-color: var(--color-disabled--secondary);\n}\n\n.jobber-retheme ._6hWvJHjyLlk- ._2hxova2FHpM- {\n background-color: var(--color-disabled);\n}\n\n._6hWvJHjyLlk- {\n border-color: var(--color-disabled--secondary);\n background-color: var(--color-surface--background);\n cursor: not-allowed;\n}\n\n.jobber-retheme ._6hWvJHjyLlk- {\n border-color: var(--color-disabled);\n background-color: var(--color-surface);\n cursor: not-allowed;\n}\n\n.jobber-retheme .HbAoDMJhkwY-._6hWvJHjyLlk- {\n background-color: var(--color-disabled);\n}\n\n.jobber-retheme .HbAoDMJhkwY-._6hWvJHjyLlk- ._2hxova2FHpM- {\n background-color: var(--color-surface);\n}\n\n.jobber-retheme ._6hWvJHjyLlk-:hover {\n border-color: var(--color-disabled);\n}\n";
|
|
14
|
-
var styles = {"track":"NaSI2jsLI0c-","isChecked":"HbAoDMJhkwY-","toggle":"cc259FtdxeE-","label":"YZ-HIehHOBA-","pip":"_2hxova2FHpM-","disabled":"_6hWvJHjyLlk-"};
|
|
15
|
-
styleInject_es.styleInject(css_248z);
|
|
16
|
-
|
|
17
|
-
function Switch({ value: providedValue, ariaLabel, name, disabled, onChange, }) {
|
|
18
|
-
const [statefulValue, setValue] = React.useState(false);
|
|
19
|
-
const value = providedValue != undefined ? providedValue : statefulValue;
|
|
20
|
-
const toggleSwitch = () => {
|
|
21
|
-
if (disabled) {
|
|
22
|
-
return;
|
|
23
|
-
}
|
|
24
|
-
const newValue = !value;
|
|
25
|
-
onChange && onChange(newValue);
|
|
26
|
-
if (providedValue == undefined) {
|
|
27
|
-
setValue(newValue);
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
const className = classnames__default["default"](styles.track, {
|
|
31
|
-
[styles.isChecked]: value,
|
|
32
|
-
[styles.disabled]: disabled,
|
|
33
|
-
});
|
|
34
|
-
return (React__default["default"].createElement(React__default["default"].Fragment, null,
|
|
35
|
-
React__default["default"].createElement("button", { id: name, type: "button", role: "switch", "aria-checked": value, "aria-label": ariaLabel, className: className, onClick: toggleSwitch, disabled: disabled },
|
|
36
|
-
React__default["default"].createElement("span", { className: styles.toggle },
|
|
37
|
-
React__default["default"].createElement(Label, { as: "On", disabled: disabled }),
|
|
38
|
-
React__default["default"].createElement("span", { className: styles.pip }),
|
|
39
|
-
React__default["default"].createElement(Label, { as: "Off", disabled: disabled }))),
|
|
40
|
-
React__default["default"].createElement("input", { name: name, type: "hidden", value: String(value) })));
|
|
41
|
-
}
|
|
42
|
-
function Label({ as, disabled }) {
|
|
43
|
-
const getTextColor = () => {
|
|
44
|
-
if (disabled) {
|
|
45
|
-
return "grey";
|
|
46
|
-
}
|
|
47
|
-
else if (as === "On") {
|
|
48
|
-
return "white";
|
|
49
|
-
}
|
|
50
|
-
return "greyBlue";
|
|
51
|
-
};
|
|
52
|
-
return (React__default["default"].createElement("span", { className: styles.label },
|
|
53
|
-
React__default["default"].createElement(Typography.Typography, { element: "span", textColor: getTextColor(), size: "small", fontWeight: "bold", textCase: "uppercase" }, as)));
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
exports.Switch = Switch;
|
package/dist/Switch-87706cde.js
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import React, { useState } 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 --switch--pipSize: calc(var(--space-base) * 1.875);\n --switch--labelWidth: calc(var(--switch--pipSize) * 1.3);\n --switch--borderOffset: calc(var(--border-base) * 2);\n}\n\n:root .jobber-retheme {\n --switch--pipSize: var(--space-base);\n}\n\n.NaSI2jsLI0c-,\n.NaSI2jsLI0c- * {\n box-sizing: border-box;\n transition: all var(--timing-base);\n}\n\n.NaSI2jsLI0c- {\n display: -ms-inline-flexbox;\n display: inline-flex;\n width: calc(((var(--space-base) * 1.875) * 1.3) + (var(--space-base) * 1.875));\n width: calc(calc(calc(var(--space-base) * 1.875) * 1.3) + calc(var(--space-base) * 1.875));\n width: calc(var(--switch--labelWidth) + var(--switch--pipSize));\n padding: 0;\n border: var(--border-base) solid var(--color-border);\n border-radius: calc(var(--space-base) * 1.875);\n border-radius: var(--switch--pipSize);\n overflow: hidden;\n line-height: normal;\n background-color: var(--color-surface--background);\n cursor: pointer;\n -webkit-appearance: none;\n appearance: none;\n}\n\n.jobber-retheme .NaSI2jsLI0c- {\n width: var(--space-largest);\n height: var(--space-large);\n border-color: var(--color-border);\n border-width: var(--border-thick);\n background-color: var(--color-surface);\n -ms-flex-align: center;\n align-items: center;\n}\n\n.NaSI2jsLI0c-:focus-visible {\n box-shadow: var(--shadow-focus);\n outline: none;\n}\n\n.jobber-retheme .NaSI2jsLI0c-:hover,\n.jobber-retheme .NaSI2jsLI0c-:focus-visible {\n border-color: var(--color-interactive);\n}\n\n.HbAoDMJhkwY-,\n.jobber-retheme .HbAoDMJhkwY- {\n border-color: var(--color-interactive);\n background-color: var(--color-interactive);\n}\n\n.cc259FtdxeE- {\n display: -ms-flexbox;\n display: flex;\n position: relative;\n margin-left: calc(-1 * ((var(--space-base) * 1.875) * 1.3));\n margin-left: calc(-1 * calc(calc(var(--space-base) * 1.875) * 1.3));\n margin-left: calc(-1 * var(--switch--labelWidth));\n pointer-events: none;\n -ms-flex: 1 1 100%;\n flex: 1 1 100%;\n -ms-flex-align: center;\n align-items: center;\n}\n\n.jobber-retheme .cc259FtdxeE- {\n margin-left: -37px;\n}\n\n.HbAoDMJhkwY- .cc259FtdxeE- {\n margin-left: calc(-1 * (var(--border-base) * 2));\n margin-left: calc(-1 * calc(var(--border-base) * 2));\n margin-left: calc(-1 * var(--switch--borderOffset));\n}\n\n.jobber-retheme .HbAoDMJhkwY- .cc259FtdxeE- {\n margin-left: -13px;\n}\n\n.YZ-HIehHOBA- {\n display: -ms-flexbox;\n display: flex;\n position: relative;\n min-width: calc((var(--space-base) * 1.875) * 1.3);\n min-width: calc(calc(var(--space-base) * 1.875) * 1.3);\n min-width: var(--switch--labelWidth);\n margin-top: var(--space-minuscule);\n -webkit-user-select: none;\n -ms-user-select: none;\n user-select: none;\n pointer-events: none;\n -ms-flex-align: center;\n align-items: center;\n -ms-flex-pack: center;\n justify-content: center;\n}\n\n.YZ-HIehHOBA-:first-of-type {\n padding-left: var(--space-small);\n}\n\n.YZ-HIehHOBA-:last-of-type {\n padding-right: var(--space-small);\n}\n\n.jobber-retheme .YZ-HIehHOBA- {\n opacity: 0;\n}\n\n._2hxova2FHpM- {\n -ms-flex: 0 0 auto;\n flex: 0 0 auto;\n width: calc(var(--space-base) * 1.875);\n width: var(--switch--pipSize);\n height: calc(var(--space-base) * 1.875);\n height: var(--switch--pipSize);\n border: var(--border-base) solid var(--color-border);\n border-radius: var(--radius-circle);\n background-color: var(--color-surface);\n transition: all var(--timing-quick) ease-out;\n}\n\n.jobber-retheme ._2hxova2FHpM- {\n border: none;\n background-color: var(--color-interactive--subtle);\n}\n\n.HbAoDMJhkwY- ._2hxova2FHpM- {\n border-color: var(--color-green);\n}\n\n.jobber-retheme .HbAoDMJhkwY- ._2hxova2FHpM- {\n background-color: var(--color-surface);\n}\n\n/* Moving this up overwrites disabled styling */\n\n/* stylelint-disable-next-line no-descending-specificity */\n\n._6hWvJHjyLlk- ._2hxova2FHpM- {\n border-color: var(--color-disabled--secondary);\n}\n\n.jobber-retheme ._6hWvJHjyLlk- ._2hxova2FHpM- {\n background-color: var(--color-disabled);\n}\n\n._6hWvJHjyLlk- {\n border-color: var(--color-disabled--secondary);\n background-color: var(--color-surface--background);\n cursor: not-allowed;\n}\n\n.jobber-retheme ._6hWvJHjyLlk- {\n border-color: var(--color-disabled);\n background-color: var(--color-surface);\n cursor: not-allowed;\n}\n\n.jobber-retheme .HbAoDMJhkwY-._6hWvJHjyLlk- {\n background-color: var(--color-disabled);\n}\n\n.jobber-retheme .HbAoDMJhkwY-._6hWvJHjyLlk- ._2hxova2FHpM- {\n background-color: var(--color-surface);\n}\n\n.jobber-retheme ._6hWvJHjyLlk-:hover {\n border-color: var(--color-disabled);\n}\n";
|
|
7
|
-
var styles = {"track":"NaSI2jsLI0c-","isChecked":"HbAoDMJhkwY-","toggle":"cc259FtdxeE-","label":"YZ-HIehHOBA-","pip":"_2hxova2FHpM-","disabled":"_6hWvJHjyLlk-"};
|
|
8
|
-
styleInject(css_248z);
|
|
9
|
-
|
|
10
|
-
function Switch({ value: providedValue, ariaLabel, name, disabled, onChange, }) {
|
|
11
|
-
const [statefulValue, setValue] = useState(false);
|
|
12
|
-
const value = providedValue != undefined ? providedValue : statefulValue;
|
|
13
|
-
const toggleSwitch = () => {
|
|
14
|
-
if (disabled) {
|
|
15
|
-
return;
|
|
16
|
-
}
|
|
17
|
-
const newValue = !value;
|
|
18
|
-
onChange && onChange(newValue);
|
|
19
|
-
if (providedValue == undefined) {
|
|
20
|
-
setValue(newValue);
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
const className = classnames(styles.track, {
|
|
24
|
-
[styles.isChecked]: value,
|
|
25
|
-
[styles.disabled]: disabled,
|
|
26
|
-
});
|
|
27
|
-
return (React.createElement(React.Fragment, null,
|
|
28
|
-
React.createElement("button", { id: name, type: "button", role: "switch", "aria-checked": value, "aria-label": ariaLabel, className: className, onClick: toggleSwitch, disabled: disabled },
|
|
29
|
-
React.createElement("span", { className: styles.toggle },
|
|
30
|
-
React.createElement(Label, { as: "On", disabled: disabled }),
|
|
31
|
-
React.createElement("span", { className: styles.pip }),
|
|
32
|
-
React.createElement(Label, { as: "Off", disabled: disabled }))),
|
|
33
|
-
React.createElement("input", { name: name, type: "hidden", value: String(value) })));
|
|
34
|
-
}
|
|
35
|
-
function Label({ as, disabled }) {
|
|
36
|
-
const getTextColor = () => {
|
|
37
|
-
if (disabled) {
|
|
38
|
-
return "grey";
|
|
39
|
-
}
|
|
40
|
-
else if (as === "On") {
|
|
41
|
-
return "white";
|
|
42
|
-
}
|
|
43
|
-
return "greyBlue";
|
|
44
|
-
};
|
|
45
|
-
return (React.createElement("span", { className: styles.label },
|
|
46
|
-
React.createElement(Typography, { element: "span", textColor: getTextColor(), size: "small", fontWeight: "bold", textCase: "uppercase" }, as)));
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export { Switch as S };
|
package/dist/Switch.js
DELETED
package/dist/Table.cjs
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var Body = require('./Body-22878526.js');
|
|
6
|
-
require('react');
|
|
7
|
-
require('@jobber/formatters');
|
|
8
|
-
require('./style-inject.es-9d2f5f4e.js');
|
|
9
|
-
require('classnames');
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
exports.Body = Body.Body;
|
|
14
|
-
exports.Cell = Body.Cell;
|
|
15
|
-
exports.CellCurrency = Body.CellCurrency;
|
|
16
|
-
exports.CellNumeric = Body.CellNumeric;
|
|
17
|
-
exports.Footer = Body.Footer;
|
|
18
|
-
exports.Header = Body.Header;
|
|
19
|
-
exports.Row = Body.Row;
|
|
20
|
-
exports.Table = Body.Table;
|
package/dist/Table.js
DELETED