@jobber/components 4.85.4-CJS-to-ESM.1 → 4.85.4-CJS-to-ESM.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/dist/AnimatedPresence/index.js +12 -0
- package/dist/AnimatedPresence/index.mjs +4 -0
- package/dist/AnimatedPresence-20a02aaa.js +104 -0
- package/dist/AnimatedPresence-bbccdaf7.js +98 -0
- package/dist/AnimatedSwitcher/index.js +13 -0
- package/dist/AnimatedSwitcher/index.mjs +5 -0
- package/dist/AnimatedSwitcher-3aff3d12.js +90 -0
- package/dist/AnimatedSwitcher-3d45ec5d.js +96 -0
- package/dist/Autocomplete/index.js +33 -0
- package/dist/Autocomplete/index.mjs +25 -0
- package/dist/Autocomplete-6ca7a7e5.js +188 -0
- package/dist/Autocomplete-6df9f7c0.js +196 -0
- package/dist/Avatar/index.js +15 -0
- package/dist/Avatar/index.mjs +7 -0
- package/dist/Avatar-6ffee4bd.js +70 -0
- package/dist/Avatar-76a799fa.js +78 -0
- package/dist/Banner/components/BannerIcon/index.js +15 -0
- package/dist/Banner/components/BannerIcon/index.mjs +7 -0
- package/dist/Banner/index.js +21 -0
- package/dist/Banner/index.mjs +13 -0
- package/dist/Banner-2d1688c7.js +82 -0
- package/dist/Banner-cb621462.js +89 -0
- package/dist/BannerIcon-9d41540d.js +24 -0
- package/dist/BannerIcon-ae763eab.js +32 -0
- package/dist/Body-2f4bf030.js +50 -0
- package/dist/Body-91ac1819.js +64 -0
- package/dist/Button/index.js +16 -0
- package/dist/Button/index.mjs +8 -0
- package/dist/Button-9ae092b3.js +50 -0
- package/dist/Button-b73a5e01.js +57 -0
- package/dist/ButtonDismiss/index.js +17 -0
- package/dist/ButtonDismiss/index.mjs +9 -0
- package/dist/ButtonDismiss-350af163.js +14 -0
- package/dist/ButtonDismiss-614803be.js +8 -0
- package/dist/Card/colors.css.d.ts +89 -0
- package/dist/Card/index.js +24 -0
- package/dist/Card/index.mjs +16 -0
- package/dist/Card-a9861d4d.js +86 -0
- package/dist/Card-e3144022.js +93 -0
- package/dist/Checkbox/index.js +18 -0
- package/dist/Checkbox/index.mjs +10 -0
- package/dist/Checkbox-3ff9f47a.js +56 -0
- package/dist/Checkbox-787e2e47.js +63 -0
- package/dist/Chip/hooks/index.js +10 -0
- package/dist/Chip/hooks/index.mjs +2 -0
- package/dist/Chip/index.js +28 -0
- package/dist/Chip/index.mjs +18 -0
- package/dist/Chip-0e37aa92.js +70 -0
- package/dist/Chip-36397442.js +78 -0
- package/dist/ChipDismissible-1b8383e1.js +19 -0
- package/dist/ChipDismissible-d12a2207.js +26 -0
- package/dist/Chips/InternalChipDismissible/hooks/index.js +20 -0
- package/dist/Chips/InternalChipDismissible/hooks/index.mjs +8 -0
- package/dist/Chips/InternalChipDismissible/index.js +31 -0
- package/dist/Chips/InternalChipDismissible/index.mjs +23 -0
- package/dist/Chips/index.js +48 -0
- package/dist/Chips/index.mjs +38 -0
- package/dist/Chips-36b7630e.js +97 -0
- package/dist/Chips-fe5c5705.js +91 -0
- package/dist/Combobox/components/ComboboxAction/index.js +15 -0
- package/dist/Combobox/components/ComboboxAction/index.mjs +7 -0
- package/dist/Combobox/components/ComboboxActivator/index.js +29 -0
- package/dist/Combobox/components/ComboboxActivator/index.mjs +21 -0
- package/dist/Combobox/components/ComboboxContent/ComboboxContentHeader/index.js +17 -0
- package/dist/Combobox/components/ComboboxContent/ComboboxContentHeader/index.mjs +9 -0
- package/dist/Combobox/components/ComboboxContent/ComboboxContentList/index.js +27 -0
- package/dist/Combobox/components/ComboboxContent/ComboboxContentList/index.mjs +19 -0
- package/dist/Combobox/components/ComboboxContent/ComboboxContentSearch/index.js +13 -0
- package/dist/Combobox/components/ComboboxContent/ComboboxContentSearch/index.mjs +5 -0
- package/dist/Combobox/components/ComboboxContent/ComboboxLoadMore/index.js +12 -0
- package/dist/Combobox/components/ComboboxContent/ComboboxLoadMore/index.mjs +4 -0
- package/dist/Combobox/components/ComboboxContent/index.js +37 -0
- package/dist/Combobox/components/ComboboxContent/index.mjs +29 -0
- package/dist/Combobox/components/ComboboxOption/index.js +17 -0
- package/dist/Combobox/components/ComboboxOption/index.mjs +9 -0
- package/dist/Combobox/components/ComboboxTrigger/index.js +27 -0
- package/dist/Combobox/components/ComboboxTrigger/index.mjs +19 -0
- package/dist/Combobox/index.js +51 -0
- package/dist/Combobox/index.mjs +42 -0
- package/dist/Combobox-bf8c9ce6.js +128 -0
- package/dist/Combobox-f781cae2.js +120 -0
- package/dist/ComboboxAction-22bd2e79.js +31 -0
- package/dist/ComboboxAction-c21dc02b.js +25 -0
- package/dist/ComboboxActivator-757941db.js +26 -0
- package/dist/ComboboxActivator-afc63f51.js +32 -0
- package/dist/ComboboxContent-0e67a7f3.js +144 -0
- package/dist/ComboboxContent-1faee40b.js +152 -0
- package/dist/ComboboxContentHeader-97ea6800.js +30 -0
- package/dist/ComboboxContentHeader-ce3f10b6.js +36 -0
- package/dist/ComboboxContentList-7f7ef48c.js +78 -0
- package/dist/ComboboxContentList-b7108426.js +85 -0
- package/dist/ComboboxContentSearch-196e638a.js +35 -0
- package/dist/ComboboxContentSearch-889f0525.js +41 -0
- package/dist/ComboboxLoadMore-21f09a37.js +17 -0
- package/dist/ComboboxLoadMore-a642edaa.js +23 -0
- package/dist/ComboboxOption-16d1c772.js +30 -0
- package/dist/ComboboxOption-cf324e9d.js +23 -0
- package/dist/ComboboxProvider-32666af1.js +10 -0
- package/dist/ComboboxProvider-dd21fe88.js +17 -0
- package/dist/ComboboxTrigger-0c05930b.js +28 -0
- package/dist/ComboboxTrigger-b41954f5.js +22 -0
- package/dist/ConfirmationModal/index.js +31 -0
- package/dist/ConfirmationModal/index.mjs +23 -0
- package/dist/ConfirmationModal-52e16873.js +100 -0
- package/dist/ConfirmationModal-916a1f09.js +94 -0
- package/dist/Content/Spacing.css.d.ts +13 -0
- package/dist/Content/index.js +12 -0
- package/dist/Content/index.mjs +4 -0
- package/dist/Content-c4ea919f.js +18 -0
- package/dist/Content-e3f7b6fc.js +24 -0
- package/dist/Countdown/index.js +12 -0
- package/dist/Countdown/index.mjs +4 -0
- package/dist/Countdown-961d8a6e.js +70 -0
- package/dist/Countdown-ac081ced.js +63 -0
- package/dist/DataDump/index.js +27 -0
- package/dist/DataDump/index.mjs +19 -0
- package/dist/DataDump-18f6e791.js +15 -0
- package/dist/DataDump-9addf519.js +21 -0
- package/dist/DataList/components/DataListAction/index.js +16 -0
- package/dist/DataList/components/DataListAction/index.mjs +8 -0
- package/dist/DataList/components/DataListActions/index.js +43 -0
- package/dist/DataList/components/DataListActions/index.mjs +35 -0
- package/dist/DataList/components/DataListActionsMenu/index.js +18 -0
- package/dist/DataList/components/DataListActionsMenu/index.mjs +10 -0
- package/dist/DataList/components/DataListBulkActions/index.js +46 -0
- package/dist/DataList/components/DataListBulkActions/index.mjs +37 -0
- package/dist/DataList/components/DataListEmptyState/index.js +22 -0
- package/dist/DataList/components/DataListEmptyState/index.mjs +13 -0
- package/dist/DataList/components/DataListFilters/components/DataListSort/index.js +52 -0
- package/dist/DataList/components/DataListFilters/components/DataListSort/index.mjs +44 -0
- package/dist/DataList/components/DataListFilters/index.js +66 -0
- package/dist/DataList/components/DataListFilters/index.mjs +57 -0
- package/dist/DataList/components/DataListHeader/index.js +53 -0
- package/dist/DataList/components/DataListHeader/index.mjs +45 -0
- package/dist/DataList/components/DataListHeaderTile/components/index.js +15 -0
- package/dist/DataList/components/DataListHeaderTile/components/index.mjs +7 -0
- package/dist/DataList/components/DataListHeaderTile/index.js +22 -0
- package/dist/DataList/components/DataListHeaderTile/index.mjs +14 -0
- package/dist/DataList/components/DataListItem/components/DataListItemClickable/index.js +16 -0
- package/dist/DataList/components/DataListItem/components/DataListItemClickable/index.mjs +8 -0
- package/dist/DataList/components/DataListItem/index.js +52 -0
- package/dist/DataList/components/DataListItem/index.mjs +44 -0
- package/dist/DataList/components/DataListItemActions/index.js +45 -0
- package/dist/DataList/components/DataListItemActions/index.mjs +36 -0
- package/dist/DataList/components/DataListItemActionsOverflow/index.js +27 -0
- package/dist/DataList/components/DataListItemActionsOverflow/index.mjs +19 -0
- package/dist/DataList/components/DataListItems/index.js +53 -0
- package/dist/DataList/components/DataListItems/index.mjs +45 -0
- package/dist/DataList/components/DataListLayout/index.js +56 -0
- package/dist/DataList/components/DataListLayout/index.mjs +48 -0
- package/dist/DataList/components/DataListLayoutActions/DataListLayoutContext/index.js +11 -0
- package/dist/DataList/components/DataListLayoutActions/DataListLayoutContext/index.mjs +2 -0
- package/dist/DataList/components/DataListLayoutActions/index.js +34 -0
- package/dist/DataList/components/DataListLayoutActions/index.mjs +26 -0
- package/dist/DataList/components/DataListLoadMore/index.js +23 -0
- package/dist/DataList/components/DataListLoadMore/index.mjs +14 -0
- package/dist/DataList/components/DataListLoadingState/index.js +23 -0
- package/dist/DataList/components/DataListLoadingState/index.mjs +13 -0
- package/dist/DataList/components/DataListOverflowFade/index.js +14 -0
- package/dist/DataList/components/DataListOverflowFade/index.mjs +5 -0
- package/dist/DataList/components/DataListSearch/index.js +34 -0
- package/dist/DataList/components/DataListSearch/index.mjs +24 -0
- package/dist/DataList/components/DataListStatusBar/index.js +32 -0
- package/dist/DataList/components/DataListStatusBar/index.mjs +23 -0
- package/dist/DataList/components/DataListStickyHeader/index.js +14 -0
- package/dist/DataList/components/DataListStickyHeader/index.mjs +6 -0
- package/dist/DataList/components/DataListTags/index.js +15 -0
- package/dist/DataList/components/DataListTags/index.mjs +7 -0
- package/dist/DataList/components/DataListTotalCount/index.js +18 -0
- package/dist/DataList/components/DataListTotalCount/index.mjs +9 -0
- package/dist/DataList/context/DataListContext/index.js +13 -0
- package/dist/DataList/context/DataListContext/index.mjs +3 -0
- package/dist/DataList/context/DataListLayoutContext/index.js +13 -0
- package/dist/DataList/context/DataListLayoutContext/index.mjs +3 -0
- package/dist/DataList/index.js +97 -0
- package/dist/DataList/index.mjs +89 -0
- package/dist/DataList-1e0e9426.js +7 -0
- package/dist/DataList-ae2efe9b.js +139 -0
- package/dist/DataList-b5f0a522.js +9 -0
- package/dist/DataList-fc20945e.js +145 -0
- package/dist/DataList.const-3ae7ceef.js +25 -0
- package/dist/DataList.const-c05b47de.js +38 -0
- package/dist/DataList.utils-b72b8d0d.js +92 -0
- package/dist/DataList.utils-d51eb44e.js +80 -0
- package/dist/DataListAction-9d8a33e0.js +46 -0
- package/dist/DataListAction-d570e8bf.js +40 -0
- package/dist/DataListActions-c5ad9b23.js +43 -0
- package/dist/DataListActions-f8367eda.js +49 -0
- package/dist/DataListActionsMenu-cce1bd30.js +53 -0
- package/dist/DataListActionsMenu-cfcd5d21.js +59 -0
- package/dist/DataListBulkActions-a750f601.js +29 -0
- package/dist/DataListBulkActions-af1fe283.js +36 -0
- package/dist/DataListContext-736a42a2.js +25 -0
- package/dist/DataListContext-f40570a7.js +34 -0
- package/dist/DataListEmptyState-25d6c47d.js +60 -0
- package/dist/DataListEmptyState-fcc112ac.js +53 -0
- package/dist/DataListFilters-3e5599c6.js +50 -0
- package/dist/DataListFilters-aaff643e.js +43 -0
- package/dist/DataListHeader-43a4bb92.js +100 -0
- package/dist/DataListHeader-bf256a20.js +93 -0
- package/dist/DataListHeaderTile-4b93f949.js +91 -0
- package/dist/DataListHeaderTile-8854e4d8.js +84 -0
- package/dist/DataListItem-3d39e2eb.js +119 -0
- package/dist/DataListItem-5cbf5f14.js +112 -0
- package/dist/DataListItemActions-122d8972.js +39 -0
- package/dist/DataListItemActions-c5749fdc.js +32 -0
- package/dist/DataListItemActionsOverflow-6004ba59.js +33 -0
- package/dist/DataListItemActionsOverflow-9c491ed9.js +39 -0
- package/dist/DataListItemClickable-127bfc7f.js +45 -0
- package/dist/DataListItemClickable-abe0242c.js +51 -0
- package/dist/DataListItems-00dd20c1.js +19 -0
- package/dist/DataListItems-09c65d2c.js +25 -0
- package/dist/DataListLayout-4cdcaa1f.js +25 -0
- package/dist/DataListLayout-99863988.js +19 -0
- package/dist/DataListLayoutActions-43cc8589.js +39 -0
- package/dist/DataListLayoutActions-9f8cc2a2.js +45 -0
- package/dist/DataListLayoutContext-39a0d016.js +11 -0
- package/dist/DataListLayoutContext-7daf863d.js +14 -0
- package/dist/DataListLayoutContext-83df2a23.js +22 -0
- package/dist/DataListLayoutContext-9237afd1.js +8 -0
- package/dist/DataListLoadMore-1b519950.js +34 -0
- package/dist/DataListLoadMore-20d2d817.js +41 -0
- package/dist/DataListLoadingState-9de965f6.js +33 -0
- package/dist/DataListLoadingState-c175094e.js +25 -0
- package/dist/DataListOverflowFade-85c826e0.js +33 -0
- package/dist/DataListOverflowFade-a640f51f.js +25 -0
- package/dist/DataListSearch-584f4f05.js +72 -0
- package/dist/DataListSearch-614b959b.js +62 -0
- package/dist/DataListSort-0e8e03c9.js +98 -0
- package/dist/DataListSort-a684067a.js +92 -0
- package/dist/DataListSortingOptions-4694941c.js +44 -0
- package/dist/DataListSortingOptions-8a64205a.js +38 -0
- package/dist/DataListStatusBar-4f692790.js +22 -0
- package/dist/DataListStatusBar-e17eff45.js +29 -0
- package/dist/DataListStickyHeader-0728e21b.js +33 -0
- package/dist/DataListStickyHeader-ce11cbd9.js +26 -0
- package/dist/DataListTags-68b3a874.js +65 -0
- package/dist/DataListTags-f4038ea1.js +72 -0
- package/dist/DataListTotalCount-8373c2df.js +34 -0
- package/dist/DataListTotalCount-cce98cf6.js +27 -0
- package/dist/DataTable/index.js +36 -0
- package/dist/DataTable/index.mjs +23 -0
- package/dist/DataTable/test-utilities/index.js +243 -0
- package/dist/DataTable/test-utilities/index.mjs +233 -0
- package/dist/DataTable-4afcfbc6.js +252 -0
- package/dist/DataTable-8d4b2d3a.js +245 -0
- package/dist/DatePicker/index.js +20 -0
- package/dist/DatePicker/index.mjs +12 -0
- package/dist/DatePicker-64c5ab1a.js +134 -0
- package/dist/DatePicker-85127ebc.js +125 -0
- package/dist/DayOfMonthSelect-8e05c1a7.js +141 -0
- package/dist/DayOfMonthSelect-d644270a.js +152 -0
- package/dist/DescriptionList/index.js +13 -0
- package/dist/DescriptionList/index.mjs +5 -0
- package/dist/DescriptionList-73241740.js +15 -0
- package/dist/DescriptionList-e72dbff4.js +21 -0
- package/dist/Disclosure/index.js +16 -0
- package/dist/Disclosure/index.mjs +8 -0
- package/dist/Disclosure-1165a958.js +36 -0
- package/dist/Disclosure-f285a6b6.js +42 -0
- package/dist/Divider/index.js +12 -0
- package/dist/Divider/index.mjs +4 -0
- package/dist/Divider-30edc4ed.js +20 -0
- package/dist/Divider-46a88bea.js +27 -0
- package/dist/Drawer/index.js +21 -0
- package/dist/Drawer/index.mjs +12 -0
- package/dist/DrawerGrid-73000735.js +33 -0
- package/dist/DrawerGrid-89de9440.js +41 -0
- package/dist/Emphasis/index.js +13 -0
- package/dist/Emphasis/index.mjs +5 -0
- package/dist/Emphasis-78cec3ac.js +13 -0
- package/dist/Emphasis-bda56d3b.js +19 -0
- package/dist/FeatureSwitch/index.js +26 -0
- package/dist/FeatureSwitch/index.mjs +18 -0
- package/dist/FeatureSwitch-1d6993a1.js +55 -0
- package/dist/FeatureSwitch-6632682d.js +62 -0
- package/dist/Flex/index.js +12 -0
- package/dist/Flex/index.mjs +4 -0
- package/dist/Flex-d490c4db.js +38 -0
- package/dist/Flex-d565495d.js +31 -0
- package/dist/Form/index.js +12 -0
- package/dist/Form/index.mjs +4 -0
- package/dist/Form-6a161b07.js +48 -0
- package/dist/Form-927647ef.js +54 -0
- package/dist/FormField/index.js +24 -0
- package/dist/FormField/index.mjs +16 -0
- package/dist/FormField-6ff183f8.js +253 -0
- package/dist/FormField-8118cfc8.js +246 -0
- package/dist/FormatDate/index.js +11 -0
- package/dist/FormatDate/index.mjs +2 -0
- package/dist/FormatDate-70ea5b43.js +34 -0
- package/dist/FormatDate-720b39cf.js +27 -0
- package/dist/FormatEmail/index.js +12 -0
- package/dist/FormatEmail/index.mjs +4 -0
- package/dist/FormatEmail-04ee4085.js +14 -0
- package/dist/FormatEmail-298393bb.js +21 -0
- package/dist/FormatFile/index.js +36 -0
- package/dist/FormatFile/index.mjs +28 -0
- package/dist/FormatFile-352cc225.js +154 -0
- package/dist/FormatFile-f036902d.js +162 -0
- package/dist/FormatRelativeDateTime/index.js +10 -0
- package/dist/FormatRelativeDateTime/index.mjs +2 -0
- package/dist/FormatRelativeDateTime-529dc36b.js +64 -0
- package/dist/FormatRelativeDateTime-6336002d.js +70 -0
- package/dist/FormatTime/index.js +10 -0
- package/dist/FormatTime/index.mjs +2 -0
- package/dist/FormatTime-20538519.js +34 -0
- package/dist/FormatTime-764fd3c8.js +28 -0
- package/dist/Gallery/Gallery.css.d.ts +9 -0
- package/dist/Gallery/index.js +39 -0
- package/dist/Gallery/index.mjs +31 -0
- package/dist/Gallery-287d640a.js +73 -0
- package/dist/Gallery-604216cb.js +66 -0
- package/dist/Glimmer/index.js +15 -0
- package/dist/Glimmer/index.mjs +6 -0
- 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-84dee1ed.js +77 -0
- package/dist/Glimmer-aea7f8ae.js +69 -0
- package/dist/Grid/GridAlign.css.d.ts +8 -0
- package/dist/Grid/InternalGridCell/index.js +12 -0
- package/dist/Grid/InternalGridCell/index.mjs +3 -0
- package/dist/Grid/index.js +15 -0
- package/dist/Grid/index.mjs +6 -0
- package/dist/Grid-257d509f.js +34 -0
- package/dist/Grid-3b80e935.js +42 -0
- package/dist/Heading/index.js +14 -0
- package/dist/Heading/index.mjs +6 -0
- package/dist/Heading-1e8e4bd3.js +55 -0
- package/dist/Heading-93e755cb.js +49 -0
- package/dist/Icon/index.js +11 -0
- package/dist/Icon/index.mjs +3 -0
- package/dist/Icon-22723fe6.js +34 -0
- package/dist/Icon-405a216c.js +40 -0
- package/dist/InlineLabel/index.js +13 -0
- package/dist/InlineLabel/index.mjs +5 -0
- package/dist/InlineLabel-a6557829.js +28 -0
- package/dist/InlineLabel-b7d9e402.js +21 -0
- package/dist/InputAvatar/index.js +28 -0
- package/dist/InputAvatar/index.mjs +20 -0
- package/dist/InputAvatar-65e584a0.js +56 -0
- package/dist/InputAvatar-e4eb2201.js +50 -0
- package/dist/InputDate/index.js +29 -0
- package/dist/InputDate/index.mjs +21 -0
- package/dist/InputDate-68050753.js +32 -0
- package/dist/InputDate-77bcc250.js +39 -0
- package/dist/InputEmail/index.js +26 -0
- package/dist/InputEmail/index.mjs +17 -0
- package/dist/InputEmail-3103e37c.js +27 -0
- package/dist/InputEmail-88d617d7.js +20 -0
- package/dist/InputFile/index.js +25 -0
- package/dist/InputFile/index.mjs +16 -0
- package/dist/InputFile-bb945071.js +190 -0
- package/dist/InputFile-cfa53555.js +181 -0
- package/dist/InputGroup/index.js +12 -0
- package/dist/InputGroup/index.mjs +4 -0
- package/dist/InputGroup-436859cf.js +26 -0
- package/dist/InputGroup-8d4fd4eb.js +33 -0
- package/dist/InputNumber/index.js +25 -0
- package/dist/InputNumber/index.mjs +17 -0
- package/dist/InputNumber-0391311b.js +56 -0
- package/dist/InputNumber-d451b52e.js +62 -0
- package/dist/InputPassword/index.js +25 -0
- package/dist/InputPassword/index.mjs +17 -0
- package/dist/InputPassword-0ab4214d.js +19 -0
- package/dist/InputPassword-dd44b8d5.js +25 -0
- package/dist/InputPhoneNumber/index.js +25 -0
- package/dist/InputPhoneNumber/index.mjs +17 -0
- package/dist/InputPhoneNumber-83d7ec95.js +103 -0
- package/dist/InputPhoneNumber-bc761c12.js +97 -0
- package/dist/InputText/index.js +26 -0
- package/dist/InputText/index.mjs +18 -0
- package/dist/InputText-55b6cb65.js +102 -0
- package/dist/InputText-8dbcfe70.js +96 -0
- package/dist/InputTime/index.js +27 -0
- package/dist/InputTime/index.mjs +19 -0
- package/dist/InputTime-13522852.js +187 -0
- package/dist/InputTime-ce24b2bf.js +194 -0
- package/dist/InputValidation/index.js +17 -0
- package/dist/InputValidation/index.mjs +9 -0
- package/dist/InputValidation-05e839fa.js +29 -0
- package/dist/InputValidation-d68fb034.js +23 -0
- package/dist/InternalChipDismissible-1086e333.js +158 -0
- package/dist/InternalChipDismissible-5220f657.js +169 -0
- package/dist/InternalGridCell-58643b70.js +44 -0
- package/dist/InternalGridCell-eca14dd0.js +37 -0
- package/dist/LightBox/index.js +24 -0
- package/dist/LightBox/index.mjs +16 -0
- package/dist/LightBox-2460f422.js +109 -0
- package/dist/LightBox-a89d8863.js +117 -0
- package/dist/Link/index.js +10 -0
- package/dist/Link/index.mjs +2 -0
- package/dist/Link-b41bc1d3.js +7 -0
- package/dist/Link-fd7301ec.js +13 -0
- package/dist/List/index.js +25 -0
- package/dist/List/index.mjs +16 -0
- package/dist/List-ad77343b.js +77 -0
- package/dist/List-b5b0b81f.js +87 -0
- package/dist/Markdown/index.js +19 -0
- package/dist/Markdown/index.mjs +11 -0
- package/dist/Markdown-8d44afcd.js +55 -0
- package/dist/Markdown-f7c55304.js +62 -0
- package/dist/Menu/index.js +21 -0
- package/dist/Menu/index.mjs +13 -0
- package/dist/Menu-083fc4c4.js +139 -0
- package/dist/Menu-d99e0e5a.js +132 -0
- package/dist/Modal/Sizes.css.d.ts +6 -0
- package/dist/Modal/index.js +25 -0
- package/dist/Modal/index.mjs +17 -0
- package/dist/Modal-c336cac6.js +71 -0
- package/dist/Modal-ecd845d2.js +63 -0
- package/dist/MultiSelect/index.js +19 -0
- package/dist/MultiSelect/index.mjs +11 -0
- package/dist/MultiSelect-3b48166e.js +176 -0
- package/dist/MultiSelect-6dcd0181.js +169 -0
- package/dist/Option-18ddab50.js +12 -0
- package/dist/Option-3c4d377e.js +19 -0
- package/dist/Page/index.js +30 -0
- package/dist/Page/index.mjs +22 -0
- package/dist/Page-a9b25d27.js +66 -0
- package/dist/Page-f2604b2a.js +59 -0
- package/dist/Popover/index.js +20 -0
- package/dist/Popover/index.mjs +12 -0
- package/dist/Popover-2c6df036.js +47 -0
- package/dist/Popover-efe863e3.js +53 -0
- package/dist/ProgressBar/Sizes.css.d.ts +7 -0
- package/dist/ProgressBar/index.js +12 -0
- package/dist/ProgressBar/index.mjs +4 -0
- package/dist/ProgressBar-a453087d.js +36 -0
- package/dist/ProgressBar-b68edc8f.js +43 -0
- package/dist/RadioGroup/index.js +15 -0
- package/dist/RadioGroup/index.mjs +6 -0
- package/dist/RadioGroup-17b67ade.js +46 -0
- package/dist/RadioGroup-fe381c57.js +39 -0
- package/dist/RecurringSelect/components/index.js +18 -0
- package/dist/RecurringSelect/components/index.mjs +7 -0
- package/dist/RecurringSelect/index.js +39 -0
- package/dist/RecurringSelect/index.mjs +23 -0
- package/dist/RecurringSelect-2cd2b2cf.js +80 -0
- package/dist/RecurringSelect-d6eb7eba.js +74 -0
- package/dist/Select/index.js +26 -0
- package/dist/Select/index.mjs +17 -0
- package/dist/Spinner/index.js +12 -0
- package/dist/Spinner/index.mjs +4 -0
- package/dist/Spinner-5d8359b8.js +17 -0
- package/dist/Spinner-9d8fc7ff.js +24 -0
- package/dist/StatusIndicator/index.js +11 -0
- package/dist/StatusIndicator/index.mjs +3 -0
- package/dist/StatusIndicator-0a3a2d8a.js +12 -0
- package/dist/StatusIndicator-b179d06e.js +18 -0
- package/dist/StatusLabel/index.js +15 -0
- package/dist/StatusLabel/index.mjs +7 -0
- package/dist/StatusLabel-9a8fbdd0.js +19 -0
- package/dist/StatusLabel-f5fdd599.js +26 -0
- package/dist/Switch/index.js +13 -0
- package/dist/Switch/index.mjs +5 -0
- package/dist/Switch-258e7a55.js +49 -0
- package/dist/Switch-7d4aa7c3.js +56 -0
- package/dist/Table/index.js +20 -0
- package/dist/Table/index.mjs +5 -0
- package/dist/Tabs/index.js +14 -0
- package/dist/Tabs/index.mjs +5 -0
- package/dist/Tabs-0dd29b9b.js +78 -0
- package/dist/Tabs-4c37b15f.js +70 -0
- package/dist/Text/index.js +13 -0
- package/dist/Text/index.mjs +5 -0
- package/dist/Text-259af966.js +31 -0
- package/dist/Text-c9162504.js +25 -0
- package/dist/Toast/index.js +19 -0
- package/dist/Toast/index.mjs +11 -0
- package/dist/Tooltip/index.js +16 -0
- package/dist/Tooltip/index.mjs +8 -0
- package/dist/Tooltip-d1fc7e74.js +104 -0
- package/dist/Tooltip-ef3d6ef4.js +112 -0
- 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/index.js +12 -0
- package/dist/Typography/index.mjs +4 -0
- package/dist/Typography-7cc5daf5.js +55 -0
- package/dist/Typography-c45bf216.js +62 -0
- package/dist/getAtlantisConfig-0f3e8af2.js +13 -0
- package/dist/getAtlantisConfig-5b50057c.js +11 -0
- package/dist/helpers-686e91da.js +15 -0
- package/dist/helpers-8ea80269.js +37 -0
- package/dist/index.js +274 -0
- package/dist/index.mjs +162 -0
- package/dist/showToast-59a77248.js +100 -0
- package/dist/showToast-c1e660fd.js +106 -0
- package/dist/style-inject.es-9d2f5f4e.js +30 -0
- package/dist/style-inject.es-a0e1a0ba.js +28 -0
- package/dist/tslib.es6-754e2961.js +46 -0
- package/dist/tslib.es6-c563c1dd.js +43 -0
- package/dist/useActiveLayout-101129a8.js +14 -0
- package/dist/useActiveLayout-adbf2bc3.js +16 -0
- package/dist/useBatchSelect-33acc2fc.js +36 -0
- package/dist/useBatchSelect-ac66c1cb.js +38 -0
- package/dist/useChildComponent-13989d0a.js +15 -0
- package/dist/useChildComponent-d661dbd6.js +21 -0
- package/dist/useResponsiveSizing-10f0860d.js +45 -0
- package/dist/useResponsiveSizing-c1e28e54.js +43 -0
- package/dist/useScrollToActive-056749d8.js +271 -0
- package/dist/useScrollToActive-ace6c5ba.js +259 -0
- package/package.json +6 -364
- package/rollup.config.js +82 -20
- package/dist/index.cjs +0 -6721
- package/dist/index.esm.js +0 -6603
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import classnames from 'classnames';
|
|
3
|
+
import { I as InternalGridCell } from './InternalGridCell-eca14dd0.js';
|
|
4
|
+
import { s as styleInject } from './style-inject.es-a0e1a0ba.js';
|
|
5
|
+
import { useAssert } from '@jobber/hooks/useAssert';
|
|
6
|
+
|
|
7
|
+
var css_248z$1 = ".NqFGJV-UF3Q- {\n display: grid;\n grid-template-columns: repeat(12, minmax(0, 1fr));\n}\n\n.IZLiiSquUTM- {\n gap: calc(16px * 1);\n gap: var(--space-base);\n}\n\n@media (min-width: 768px) {\n .IZLiiSquUTM- {\n gap: calc(16px * 1.5);\n gap: var(--space-large);\n }\n}\n\n@media (--medium-screens-and-up) {\n .IZLiiSquUTM- {\n gap: calc(16px * 1.5);\n gap: var(--space-large);\n }\n}\n";
|
|
8
|
+
var styles = {"grid":"NqFGJV-UF3Q-","gap":"IZLiiSquUTM-"};
|
|
9
|
+
styleInject(css_248z$1);
|
|
10
|
+
|
|
11
|
+
var css_248z = "._8XlrWg3FV-Q- {\n -ms-flex-align: center;\n align-items: center;\n}\n\n.uKzqJPlYxJs- {\n -ms-flex-align: start;\n align-items: start;\n}\n\n.CSBjeFlj2xQ- {\n -ms-flex-align: end;\n align-items: end;\n}\n\n.BYyFdzONXyk- {\n -ms-flex-align: stretch;\n align-items: stretch;\n}\n";
|
|
12
|
+
var alignments = {"center":"_8XlrWg3FV-Q-","start":"uKzqJPlYxJs-","end":"CSBjeFlj2xQ-","stretch":"BYyFdzONXyk-"};
|
|
13
|
+
styleInject(css_248z);
|
|
14
|
+
|
|
15
|
+
// Only need the component to pass in the data as a react children
|
|
16
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
17
|
+
function GridCell(props) {
|
|
18
|
+
// Throw error when <Grid.Cell /> gets used outside of the <Grid />
|
|
19
|
+
useAssert(true, "`<Grid.Cell>` can only be used inside of a `<Grid>` component!");
|
|
20
|
+
return React.createElement(React.Fragment, null);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
const GRID_TEST_ID = "ATL-Grid";
|
|
24
|
+
function Grid({ alignItems = "start", gap = true, children, }) {
|
|
25
|
+
const classnames$1 = classnames(styles.grid, alignments[alignItems], {
|
|
26
|
+
[styles.gap]: gap,
|
|
27
|
+
});
|
|
28
|
+
return (React.createElement("div", { "data-testid": GRID_TEST_ID, className: classnames$1 }, React.Children.map(children, ({ props }) => {
|
|
29
|
+
return React.createElement(InternalGridCell, Object.assign({}, props));
|
|
30
|
+
})));
|
|
31
|
+
}
|
|
32
|
+
Grid.Cell = GridCell;
|
|
33
|
+
|
|
34
|
+
export { GRID_TEST_ID as G, Grid as a };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var React = require('react');
|
|
4
|
+
var classnames = require('classnames');
|
|
5
|
+
var InternalGridCell = require('./InternalGridCell-58643b70.js');
|
|
6
|
+
var styleInject_es = require('./style-inject.es-9d2f5f4e.js');
|
|
7
|
+
var useAssert = require('@jobber/hooks/useAssert');
|
|
8
|
+
|
|
9
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
10
|
+
|
|
11
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
12
|
+
var classnames__default = /*#__PURE__*/_interopDefaultLegacy(classnames);
|
|
13
|
+
|
|
14
|
+
var css_248z$1 = ".NqFGJV-UF3Q- {\n display: grid;\n grid-template-columns: repeat(12, minmax(0, 1fr));\n}\n\n.IZLiiSquUTM- {\n gap: calc(16px * 1);\n gap: var(--space-base);\n}\n\n@media (min-width: 768px) {\n .IZLiiSquUTM- {\n gap: calc(16px * 1.5);\n gap: var(--space-large);\n }\n}\n\n@media (--medium-screens-and-up) {\n .IZLiiSquUTM- {\n gap: calc(16px * 1.5);\n gap: var(--space-large);\n }\n}\n";
|
|
15
|
+
var styles = {"grid":"NqFGJV-UF3Q-","gap":"IZLiiSquUTM-"};
|
|
16
|
+
styleInject_es.styleInject(css_248z$1);
|
|
17
|
+
|
|
18
|
+
var css_248z = "._8XlrWg3FV-Q- {\n -ms-flex-align: center;\n align-items: center;\n}\n\n.uKzqJPlYxJs- {\n -ms-flex-align: start;\n align-items: start;\n}\n\n.CSBjeFlj2xQ- {\n -ms-flex-align: end;\n align-items: end;\n}\n\n.BYyFdzONXyk- {\n -ms-flex-align: stretch;\n align-items: stretch;\n}\n";
|
|
19
|
+
var alignments = {"center":"_8XlrWg3FV-Q-","start":"uKzqJPlYxJs-","end":"CSBjeFlj2xQ-","stretch":"BYyFdzONXyk-"};
|
|
20
|
+
styleInject_es.styleInject(css_248z);
|
|
21
|
+
|
|
22
|
+
// Only need the component to pass in the data as a react children
|
|
23
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
24
|
+
function GridCell(props) {
|
|
25
|
+
// Throw error when <Grid.Cell /> gets used outside of the <Grid />
|
|
26
|
+
useAssert.useAssert(true, "`<Grid.Cell>` can only be used inside of a `<Grid>` component!");
|
|
27
|
+
return React__default["default"].createElement(React__default["default"].Fragment, null);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
const GRID_TEST_ID = "ATL-Grid";
|
|
31
|
+
function Grid({ alignItems = "start", gap = true, children, }) {
|
|
32
|
+
const classnames = classnames__default["default"](styles.grid, alignments[alignItems], {
|
|
33
|
+
[styles.gap]: gap,
|
|
34
|
+
});
|
|
35
|
+
return (React__default["default"].createElement("div", { "data-testid": GRID_TEST_ID, className: classnames }, React__default["default"].Children.map(children, ({ props }) => {
|
|
36
|
+
return React__default["default"].createElement(InternalGridCell.InternalGridCell, Object.assign({}, props));
|
|
37
|
+
})));
|
|
38
|
+
}
|
|
39
|
+
Grid.Cell = GridCell;
|
|
40
|
+
|
|
41
|
+
exports.GRID_TEST_ID = GRID_TEST_ID;
|
|
42
|
+
exports.Grid = Grid;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var Heading = require('../Heading-1e8e4bd3.js');
|
|
6
|
+
require('react');
|
|
7
|
+
require('../Typography-c45bf216.js');
|
|
8
|
+
require('classnames');
|
|
9
|
+
require('../style-inject.es-9d2f5f4e.js');
|
|
10
|
+
require('../getAtlantisConfig-0f3e8af2.js');
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
exports.Heading = Heading.Heading;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var React = require('react');
|
|
4
|
+
var Typography = require('./Typography-c45bf216.js');
|
|
5
|
+
var getAtlantisConfig = require('./getAtlantisConfig-0f3e8af2.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
|
+
|
|
11
|
+
function Heading({ level = 5, children }) {
|
|
12
|
+
const { JOBBER_RETHEME: inRetheme } = getAtlantisConfig.getAtlantisConfig();
|
|
13
|
+
const levelMap = {
|
|
14
|
+
1: {
|
|
15
|
+
element: "h1",
|
|
16
|
+
size: "jumbo",
|
|
17
|
+
fontWeight: inRetheme ? "extraBold" : "black",
|
|
18
|
+
textColor: "heading",
|
|
19
|
+
},
|
|
20
|
+
2: {
|
|
21
|
+
element: "h2",
|
|
22
|
+
size: "largest",
|
|
23
|
+
fontWeight: inRetheme ? "bold" : "black",
|
|
24
|
+
textColor: "heading",
|
|
25
|
+
},
|
|
26
|
+
3: {
|
|
27
|
+
element: "h3",
|
|
28
|
+
size: "larger",
|
|
29
|
+
fontWeight: inRetheme ? "bold" : "extraBold",
|
|
30
|
+
textColor: "heading",
|
|
31
|
+
},
|
|
32
|
+
4: {
|
|
33
|
+
element: "h4",
|
|
34
|
+
size: "large",
|
|
35
|
+
fontWeight: "bold",
|
|
36
|
+
textColor: "heading",
|
|
37
|
+
},
|
|
38
|
+
5: {
|
|
39
|
+
element: "h5",
|
|
40
|
+
size: "base",
|
|
41
|
+
fontWeight: "bold",
|
|
42
|
+
textColor: "heading",
|
|
43
|
+
},
|
|
44
|
+
6: {
|
|
45
|
+
element: "h6",
|
|
46
|
+
size: "small",
|
|
47
|
+
textCase: "uppercase",
|
|
48
|
+
fontWeight: inRetheme ? "semiBold" : "bold",
|
|
49
|
+
textColor: "heading",
|
|
50
|
+
},
|
|
51
|
+
};
|
|
52
|
+
return React__default["default"].createElement(Typography.Typography, Object.assign({}, levelMap[level]), children);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
exports.Heading = Heading;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { T as Typography } from './Typography-7cc5daf5.js';
|
|
3
|
+
import { g as getAtlantisConfig } from './getAtlantisConfig-5b50057c.js';
|
|
4
|
+
|
|
5
|
+
function Heading({ level = 5, children }) {
|
|
6
|
+
const { JOBBER_RETHEME: inRetheme } = getAtlantisConfig();
|
|
7
|
+
const levelMap = {
|
|
8
|
+
1: {
|
|
9
|
+
element: "h1",
|
|
10
|
+
size: "jumbo",
|
|
11
|
+
fontWeight: inRetheme ? "extraBold" : "black",
|
|
12
|
+
textColor: "heading",
|
|
13
|
+
},
|
|
14
|
+
2: {
|
|
15
|
+
element: "h2",
|
|
16
|
+
size: "largest",
|
|
17
|
+
fontWeight: inRetheme ? "bold" : "black",
|
|
18
|
+
textColor: "heading",
|
|
19
|
+
},
|
|
20
|
+
3: {
|
|
21
|
+
element: "h3",
|
|
22
|
+
size: "larger",
|
|
23
|
+
fontWeight: inRetheme ? "bold" : "extraBold",
|
|
24
|
+
textColor: "heading",
|
|
25
|
+
},
|
|
26
|
+
4: {
|
|
27
|
+
element: "h4",
|
|
28
|
+
size: "large",
|
|
29
|
+
fontWeight: "bold",
|
|
30
|
+
textColor: "heading",
|
|
31
|
+
},
|
|
32
|
+
5: {
|
|
33
|
+
element: "h5",
|
|
34
|
+
size: "base",
|
|
35
|
+
fontWeight: "bold",
|
|
36
|
+
textColor: "heading",
|
|
37
|
+
},
|
|
38
|
+
6: {
|
|
39
|
+
element: "h6",
|
|
40
|
+
size: "small",
|
|
41
|
+
textCase: "uppercase",
|
|
42
|
+
fontWeight: inRetheme ? "semiBold" : "bold",
|
|
43
|
+
textColor: "heading",
|
|
44
|
+
},
|
|
45
|
+
};
|
|
46
|
+
return React.createElement(Typography, Object.assign({}, levelMap[level]), children);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export { Heading as H };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { getIcon } from '@jobber/design';
|
|
3
|
+
|
|
4
|
+
function Icon({ name, color, customColor, size = "base" }) {
|
|
5
|
+
let icon;
|
|
6
|
+
const { svgClassNames, pathClassNames, paths, viewBox } = getIcon({
|
|
7
|
+
name,
|
|
8
|
+
color: getIconColor(name, color),
|
|
9
|
+
size,
|
|
10
|
+
});
|
|
11
|
+
if (name === "truck") {
|
|
12
|
+
icon = getTruck(pathClassNames, customColor);
|
|
13
|
+
}
|
|
14
|
+
else {
|
|
15
|
+
icon = paths.map((path) => (React.createElement("path", { key: path, className: pathClassNames, d: path, fill: customColor })));
|
|
16
|
+
}
|
|
17
|
+
return (React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: viewBox, className: svgClassNames, "data-testid": name }, icon));
|
|
18
|
+
}
|
|
19
|
+
function getIconColor(name, color) {
|
|
20
|
+
if (name === "truck") {
|
|
21
|
+
return color || "green";
|
|
22
|
+
}
|
|
23
|
+
return color;
|
|
24
|
+
}
|
|
25
|
+
function getTruck(pathClassNames, customColor) {
|
|
26
|
+
return (React.createElement("g", { transform: "translate(233.000000, 0.000000)", className: pathClassNames },
|
|
27
|
+
React.createElement("path", { d: "M31.030303,124.121212 C31.030303,106.983796 44.9231903,93.0909091 62.0606061,93.0909091 L93.0909091,93.0909091 L93.0909091,279.272727 L62.0606061,279.272727 C44.9231903,279.272727 31.030303,265.37984 31.030303,248.242424 L31.030303,124.121212 Z M31.030303,744.727273 C31.030303,727.589236 44.9231903,713.69697 62.0606061,713.69697 L93.0909091,713.69697 L93.0909091,899.878788 L62.0606061,899.878788 C44.9231903,899.878788 31.030303,885.986521 31.030303,868.848485 L31.030303,744.727273 Z M62.0606061,961.939394 L496.484848,961.939394 L496.484848,992.969697 C496.484848,1010.10773 482.592582,1024 465.454545,1024 L93.0909091,1024 C75.9534933,1024 62.0606061,1010.10773 62.0606061,992.969697 L62.0606061,961.939394 Z M494.858861,713.715588 L463.834764,714.258618 L467.083636,900.412509 L498.107733,899.869479 C515.242667,899.571588 528.889794,885.437285 528.591903,868.302352 L526.425988,744.199758 C526.128097,727.064824 511.993794,713.417697 494.858861,713.715588 Z M496.484848,93.0909091 L465.454545,93.0909091 L465.454545,279.272727 L496.484848,279.272727 C513.622885,279.272727 527.515152,265.37984 527.515152,248.242424 L527.515152,124.121212 C527.515152,106.983796 513.622885,93.0909091 496.484848,93.0909091 Z", id: "Shape", fill: "#2B2B2B" }),
|
|
28
|
+
React.createElement("path", { d: "M124.121212,0 C89.8460703,0 62.0606061,27.7854642 62.0606061,62.0606061 L62.0606061,310.30303 L31.030303,310.30303 C13.8927321,310.30303 0,324.195297 0,341.333333 L62.0606061,341.333333 L62.0606061,992.969697 L496.484848,992.969697 L496.484848,341.333333 L558.545455,341.333333 C558.545455,324.195297 544.653188,310.30303 527.515152,310.30303 L496.484848,310.30303 L496.484848,62.0606061 C496.484848,27.7854642 468.700315,0 434.424242,0 L124.121212,0 Z", id: "Path", fill: customColor }),
|
|
29
|
+
React.createElement("path", { d: "M465.454545,589.575758 L93.0909091,589.575758 L93.0909091,713.69697 L124.121212,713.69697 C141.258628,713.69697 155.151515,727.589236 155.151515,744.727273 L155.151515,868.848485 C155.151515,885.986521 141.258628,899.878788 124.121212,899.878788 L93.0909091,899.878788 L93.0909091,961.939394 L465.454545,961.939394 L465.454545,899.878788 L434.424242,899.878788 C417.286206,899.878788 403.393939,885.986521 403.393939,868.848485 L403.393939,744.727273 C403.393939,727.589236 417.286206,713.69697 434.424242,713.69697 L465.454545,713.69697 L465.454545,589.575758 Z", id: "Path", fillOpacity: "0.35", fill: "#000000" }),
|
|
30
|
+
React.createElement("path", { d: "M93.0909091,62.0606061 C93.0909091,44.9231903 106.983796,31.030303 124.121212,31.030303 L434.424242,31.030303 C451.562279,31.030303 465.454545,44.9231903 465.454545,62.0606061 L465.454545,589.575758 L93.0909091,589.575758 L93.0909091,62.0606061 Z M93.0909091,713.69697 L124.121212,713.69697 C141.258628,713.69697 155.151515,727.589236 155.151515,744.727273 L155.151515,868.848485 C155.151515,885.986521 141.258628,899.878788 124.121212,899.878788 L93.0909091,899.878788 L93.0909091,713.69697 Z M434.424242,713.69697 C417.286206,713.69697 403.393939,727.589236 403.393939,744.727273 L403.393939,868.848485 C403.393939,885.986521 417.286206,899.878788 434.424242,899.878788 L465.454545,899.878788 L465.454545,713.69697 L434.424242,713.69697 Z", id: "Shape", fill: "#FFFFFF", opacity: "0.5" }),
|
|
31
|
+
React.createElement("path", { d: "M93.0909091,279.272727 C113.777881,268.929396 192.387879,248.242424 279.272727,248.242424 C366.157576,248.242424 444.766642,268.929396 465.454545,279.272727 L403.393939,372.363636 C393.051539,362.021236 341.333333,341.333333 279.272727,341.333333 C217.212121,341.333333 165.494846,362.021236 155.151515,372.363636 L93.0909091,279.272727 Z M155.151515,512 L155.151515,403.393939 L93.0909091,310.30303 L93.0909091,512 L155.151515,512 Z M403.393939,512 L403.393939,403.393939 L465.454545,310.30303 L465.454545,512 L403.393939,512 Z", id: "Shape", fill: "#2A2A2A" })));
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export { Icon as I };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var React = require('react');
|
|
4
|
+
var design = require('@jobber/design');
|
|
5
|
+
|
|
6
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
7
|
+
|
|
8
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
9
|
+
|
|
10
|
+
function Icon({ name, color, customColor, size = "base" }) {
|
|
11
|
+
let icon;
|
|
12
|
+
const { svgClassNames, pathClassNames, paths, viewBox } = design.getIcon({
|
|
13
|
+
name,
|
|
14
|
+
color: getIconColor(name, color),
|
|
15
|
+
size,
|
|
16
|
+
});
|
|
17
|
+
if (name === "truck") {
|
|
18
|
+
icon = getTruck(pathClassNames, customColor);
|
|
19
|
+
}
|
|
20
|
+
else {
|
|
21
|
+
icon = paths.map((path) => (React__default["default"].createElement("path", { key: path, className: pathClassNames, d: path, fill: customColor })));
|
|
22
|
+
}
|
|
23
|
+
return (React__default["default"].createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: viewBox, className: svgClassNames, "data-testid": name }, icon));
|
|
24
|
+
}
|
|
25
|
+
function getIconColor(name, color) {
|
|
26
|
+
if (name === "truck") {
|
|
27
|
+
return color || "green";
|
|
28
|
+
}
|
|
29
|
+
return color;
|
|
30
|
+
}
|
|
31
|
+
function getTruck(pathClassNames, customColor) {
|
|
32
|
+
return (React__default["default"].createElement("g", { transform: "translate(233.000000, 0.000000)", className: pathClassNames },
|
|
33
|
+
React__default["default"].createElement("path", { d: "M31.030303,124.121212 C31.030303,106.983796 44.9231903,93.0909091 62.0606061,93.0909091 L93.0909091,93.0909091 L93.0909091,279.272727 L62.0606061,279.272727 C44.9231903,279.272727 31.030303,265.37984 31.030303,248.242424 L31.030303,124.121212 Z M31.030303,744.727273 C31.030303,727.589236 44.9231903,713.69697 62.0606061,713.69697 L93.0909091,713.69697 L93.0909091,899.878788 L62.0606061,899.878788 C44.9231903,899.878788 31.030303,885.986521 31.030303,868.848485 L31.030303,744.727273 Z M62.0606061,961.939394 L496.484848,961.939394 L496.484848,992.969697 C496.484848,1010.10773 482.592582,1024 465.454545,1024 L93.0909091,1024 C75.9534933,1024 62.0606061,1010.10773 62.0606061,992.969697 L62.0606061,961.939394 Z M494.858861,713.715588 L463.834764,714.258618 L467.083636,900.412509 L498.107733,899.869479 C515.242667,899.571588 528.889794,885.437285 528.591903,868.302352 L526.425988,744.199758 C526.128097,727.064824 511.993794,713.417697 494.858861,713.715588 Z M496.484848,93.0909091 L465.454545,93.0909091 L465.454545,279.272727 L496.484848,279.272727 C513.622885,279.272727 527.515152,265.37984 527.515152,248.242424 L527.515152,124.121212 C527.515152,106.983796 513.622885,93.0909091 496.484848,93.0909091 Z", id: "Shape", fill: "#2B2B2B" }),
|
|
34
|
+
React__default["default"].createElement("path", { d: "M124.121212,0 C89.8460703,0 62.0606061,27.7854642 62.0606061,62.0606061 L62.0606061,310.30303 L31.030303,310.30303 C13.8927321,310.30303 0,324.195297 0,341.333333 L62.0606061,341.333333 L62.0606061,992.969697 L496.484848,992.969697 L496.484848,341.333333 L558.545455,341.333333 C558.545455,324.195297 544.653188,310.30303 527.515152,310.30303 L496.484848,310.30303 L496.484848,62.0606061 C496.484848,27.7854642 468.700315,0 434.424242,0 L124.121212,0 Z", id: "Path", fill: customColor }),
|
|
35
|
+
React__default["default"].createElement("path", { d: "M465.454545,589.575758 L93.0909091,589.575758 L93.0909091,713.69697 L124.121212,713.69697 C141.258628,713.69697 155.151515,727.589236 155.151515,744.727273 L155.151515,868.848485 C155.151515,885.986521 141.258628,899.878788 124.121212,899.878788 L93.0909091,899.878788 L93.0909091,961.939394 L465.454545,961.939394 L465.454545,899.878788 L434.424242,899.878788 C417.286206,899.878788 403.393939,885.986521 403.393939,868.848485 L403.393939,744.727273 C403.393939,727.589236 417.286206,713.69697 434.424242,713.69697 L465.454545,713.69697 L465.454545,589.575758 Z", id: "Path", fillOpacity: "0.35", fill: "#000000" }),
|
|
36
|
+
React__default["default"].createElement("path", { d: "M93.0909091,62.0606061 C93.0909091,44.9231903 106.983796,31.030303 124.121212,31.030303 L434.424242,31.030303 C451.562279,31.030303 465.454545,44.9231903 465.454545,62.0606061 L465.454545,589.575758 L93.0909091,589.575758 L93.0909091,62.0606061 Z M93.0909091,713.69697 L124.121212,713.69697 C141.258628,713.69697 155.151515,727.589236 155.151515,744.727273 L155.151515,868.848485 C155.151515,885.986521 141.258628,899.878788 124.121212,899.878788 L93.0909091,899.878788 L93.0909091,713.69697 Z M434.424242,713.69697 C417.286206,713.69697 403.393939,727.589236 403.393939,744.727273 L403.393939,868.848485 C403.393939,885.986521 417.286206,899.878788 434.424242,899.878788 L465.454545,899.878788 L465.454545,713.69697 L434.424242,713.69697 Z", id: "Shape", fill: "#FFFFFF", opacity: "0.5" }),
|
|
37
|
+
React__default["default"].createElement("path", { d: "M93.0909091,279.272727 C113.777881,268.929396 192.387879,248.242424 279.272727,248.242424 C366.157576,248.242424 444.766642,268.929396 465.454545,279.272727 L403.393939,372.363636 C393.051539,362.021236 341.333333,341.333333 279.272727,341.333333 C217.212121,341.333333 165.494846,362.021236 155.151515,372.363636 L93.0909091,279.272727 Z M155.151515,512 L155.151515,403.393939 L93.0909091,310.30303 L93.0909091,512 L155.151515,512 Z M403.393939,512 L403.393939,403.393939 L465.454545,310.30303 L465.454545,512 L403.393939,512 Z", id: "Shape", fill: "#2A2A2A" })));
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
exports.Icon = Icon;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var InlineLabel = require('../InlineLabel-a6557829.js');
|
|
6
|
+
require('react');
|
|
7
|
+
require('classnames');
|
|
8
|
+
require('../style-inject.es-9d2f5f4e.js');
|
|
9
|
+
require('../Typography-c45bf216.js');
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
exports.InlineLabel = InlineLabel.InlineLabel;
|
|
@@ -0,0 +1,28 @@
|
|
|
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-c45bf216.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 = ".S72WkdRbhc0- {\n display: -ms-inline-flexbox;\n display: inline-flex;\n border-radius: calc(16px / 4);\n border-radius: var(--radius-large);\n}\n\n.bMWuAXJHkbw- {\n padding: calc((16px / 4) * 1.5) calc((16px / 2) * 1.25);\n padding: calc(calc(16px / 4) * 1.5) calc(calc(16px / 2) * 1.25);\n padding: calc(var(--space-smaller) * 1.5) calc(var(--space-small) * 1.25);\n}\n\n.ui07veHjPII- {\n padding: calc((16px / 4) * 1.5) calc((16px / 2) * 1.25);\n padding: calc(calc(16px / 4) * 1.5) calc(calc(16px / 2) * 1.25);\n padding: calc(var(--space-smaller) * 1.5) calc(var(--space-small) * 1.25);\n}\n\n.WIXhLSQ7z8A- {\n padding: calc((16px / 2) * 1.25) calc((16px / 4) * 3.5);\n padding: calc(calc(16px / 2) * 1.25) calc(calc(16px / 4) * 3.5);\n padding: calc(var(--space-small) * 1.25) calc(var(--space-smaller) * 3.5);\n}\n\n._8RuKvOhj-Ro- {\n color: rgb(66, 78, 86);\n color: var(--color-greyBlue--dark);\n background-color: rgb(238, 240, 242);\n background-color: var(--color-greyBlue--lightest);\n}\n\n._2vEF1nvVWm8- {\n color: rgb(128, 25, 0);\n color: var(--color-red--dark);\n background-color: rgb(255, 226, 219);\n background-color: var(--color-red--lightest);\n}\n\n.Wt305sIAeoE- {\n color: rgb(158, 98, 23);\n color: var(--color-orange--dark);\n background-color: rgb(253, 239, 222);\n background-color: var(--color-orange--lightest);\n}\n\n.F8KkNxz8W3A- {\n color: rgb(81, 114, 9);\n color: var(--color-green--dark);\n background-color: rgb(236, 243, 219);\n background-color: var(--color-green--lightest);\n}\n\n.URZZoKSX4So- {\n color: rgb(1, 27, 37);\n color: var(--color-blue--dark);\n background-color: rgb(217, 223, 225);\n background-color: var(--color-blue--lightest);\n}\n\n.OeLBV-9i0Rs- {\n color: rgb(49, 69, 98);\n color: var(--color-navy--dark);\n background-color: rgb(228, 233, 239);\n background-color: var(--color-navy--lightest);\n}\n\n._2Xwx5tarf1w- {\n color: rgb(144, 127, 10);\n color: var(--color-yellow--dark);\n background-color: rgb(250, 246, 219);\n background-color: var(--color-yellow--lightest);\n}\n\n.iCqIjI7GkEk- {\n color: rgb(99, 125, 46);\n color: var(--color-lime--dark);\n background-color: rgb(240, 246, 227);\n background-color: var(--color-lime--lightest);\n}\n\n._4iEIjiZj9oA- {\n color: rgb(88, 73, 127);\n color: var(--color-purple--dark);\n background-color: rgb(237, 234, 246);\n background-color: var(--color-purple--lightest);\n}\n\n.JRW9QFSjLTA- {\n color: rgb(116, 62, 98);\n color: var(--color-pink--dark);\n background-color: rgb(244, 231, 239);\n background-color: var(--color-pink--lightest);\n}\n\n.fbhprd-Gl8k- {\n color: rgb(40, 112, 95);\n color: var(--color-teal--dark);\n background-color: rgb(226, 243, 239);\n background-color: var(--color-teal--lightest);\n}\n\n.yrF9aZSaTdw- {\n color: rgb(122, 128, 21);\n color: var(--color-yellowGreen--dark);\n background-color: rgb(245, 246, 222);\n background-color: var(--color-yellowGreen--lightest);\n}\n\n.RPvjah0FdjI- {\n color: rgba(255, 255, 255, 1);\n color: var(--color-white);\n background-color: rgb(77, 105, 116);\n background-color: var(--color-blue--light);\n}\n\n.apwauWJ6ITc- {\n color: rgb(39, 105, 146);\n color: var(--color-lightBlue--dark);\n background-color: rgb(226, 241, 250);\n background-color: var(--color-lightBlue--lightest);\n}\n\n.n8qJynvE-n0- {\n color: rgb(55, 69, 132);\n color: var(--color-indigo--dark);\n background-color: rgb(230, 233, 247);\n background-color: var(--color-indigo--lightest);\n}\n";
|
|
14
|
+
var styles = {"inlineLabel":"S72WkdRbhc0-","base":"bMWuAXJHkbw-","large":"ui07veHjPII-","larger":"WIXhLSQ7z8A-","greyBlue":"_8RuKvOhj-Ro-","red":"_2vEF1nvVWm8-","orange":"Wt305sIAeoE-","green":"F8KkNxz8W3A-","blue":"URZZoKSX4So-","navy":"OeLBV-9i0Rs-","yellow":"_2Xwx5tarf1w-","lime":"iCqIjI7GkEk-","purple":"_4iEIjiZj9oA-","pink":"JRW9QFSjLTA-","teal":"fbhprd-Gl8k-","yellowGreen":"yrF9aZSaTdw-","blueDark":"RPvjah0FdjI-","lightBlue":"apwauWJ6ITc-","indigo":"n8qJynvE-n0-"};
|
|
15
|
+
styleInject_es.styleInject(css_248z);
|
|
16
|
+
|
|
17
|
+
function InlineLabel({ size = "base", color = "greyBlue", children, }) {
|
|
18
|
+
const className = classnames__default["default"](styles.inlineLabel, styles[size], styles[color]);
|
|
19
|
+
const sizeMapper = {
|
|
20
|
+
base: "small",
|
|
21
|
+
large: "large",
|
|
22
|
+
larger: "large",
|
|
23
|
+
};
|
|
24
|
+
return (React__default["default"].createElement("span", { className: className },
|
|
25
|
+
React__default["default"].createElement(Typography.Typography, { element: "span", size: sizeMapper[size] }, children)));
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
exports.InlineLabel = InlineLabel;
|
|
@@ -0,0 +1,21 @@
|
|
|
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 Typography } from './Typography-7cc5daf5.js';
|
|
5
|
+
|
|
6
|
+
var css_248z = ".S72WkdRbhc0- {\n display: -ms-inline-flexbox;\n display: inline-flex;\n border-radius: calc(16px / 4);\n border-radius: var(--radius-large);\n}\n\n.bMWuAXJHkbw- {\n padding: calc((16px / 4) * 1.5) calc((16px / 2) * 1.25);\n padding: calc(calc(16px / 4) * 1.5) calc(calc(16px / 2) * 1.25);\n padding: calc(var(--space-smaller) * 1.5) calc(var(--space-small) * 1.25);\n}\n\n.ui07veHjPII- {\n padding: calc((16px / 4) * 1.5) calc((16px / 2) * 1.25);\n padding: calc(calc(16px / 4) * 1.5) calc(calc(16px / 2) * 1.25);\n padding: calc(var(--space-smaller) * 1.5) calc(var(--space-small) * 1.25);\n}\n\n.WIXhLSQ7z8A- {\n padding: calc((16px / 2) * 1.25) calc((16px / 4) * 3.5);\n padding: calc(calc(16px / 2) * 1.25) calc(calc(16px / 4) * 3.5);\n padding: calc(var(--space-small) * 1.25) calc(var(--space-smaller) * 3.5);\n}\n\n._8RuKvOhj-Ro- {\n color: rgb(66, 78, 86);\n color: var(--color-greyBlue--dark);\n background-color: rgb(238, 240, 242);\n background-color: var(--color-greyBlue--lightest);\n}\n\n._2vEF1nvVWm8- {\n color: rgb(128, 25, 0);\n color: var(--color-red--dark);\n background-color: rgb(255, 226, 219);\n background-color: var(--color-red--lightest);\n}\n\n.Wt305sIAeoE- {\n color: rgb(158, 98, 23);\n color: var(--color-orange--dark);\n background-color: rgb(253, 239, 222);\n background-color: var(--color-orange--lightest);\n}\n\n.F8KkNxz8W3A- {\n color: rgb(81, 114, 9);\n color: var(--color-green--dark);\n background-color: rgb(236, 243, 219);\n background-color: var(--color-green--lightest);\n}\n\n.URZZoKSX4So- {\n color: rgb(1, 27, 37);\n color: var(--color-blue--dark);\n background-color: rgb(217, 223, 225);\n background-color: var(--color-blue--lightest);\n}\n\n.OeLBV-9i0Rs- {\n color: rgb(49, 69, 98);\n color: var(--color-navy--dark);\n background-color: rgb(228, 233, 239);\n background-color: var(--color-navy--lightest);\n}\n\n._2Xwx5tarf1w- {\n color: rgb(144, 127, 10);\n color: var(--color-yellow--dark);\n background-color: rgb(250, 246, 219);\n background-color: var(--color-yellow--lightest);\n}\n\n.iCqIjI7GkEk- {\n color: rgb(99, 125, 46);\n color: var(--color-lime--dark);\n background-color: rgb(240, 246, 227);\n background-color: var(--color-lime--lightest);\n}\n\n._4iEIjiZj9oA- {\n color: rgb(88, 73, 127);\n color: var(--color-purple--dark);\n background-color: rgb(237, 234, 246);\n background-color: var(--color-purple--lightest);\n}\n\n.JRW9QFSjLTA- {\n color: rgb(116, 62, 98);\n color: var(--color-pink--dark);\n background-color: rgb(244, 231, 239);\n background-color: var(--color-pink--lightest);\n}\n\n.fbhprd-Gl8k- {\n color: rgb(40, 112, 95);\n color: var(--color-teal--dark);\n background-color: rgb(226, 243, 239);\n background-color: var(--color-teal--lightest);\n}\n\n.yrF9aZSaTdw- {\n color: rgb(122, 128, 21);\n color: var(--color-yellowGreen--dark);\n background-color: rgb(245, 246, 222);\n background-color: var(--color-yellowGreen--lightest);\n}\n\n.RPvjah0FdjI- {\n color: rgba(255, 255, 255, 1);\n color: var(--color-white);\n background-color: rgb(77, 105, 116);\n background-color: var(--color-blue--light);\n}\n\n.apwauWJ6ITc- {\n color: rgb(39, 105, 146);\n color: var(--color-lightBlue--dark);\n background-color: rgb(226, 241, 250);\n background-color: var(--color-lightBlue--lightest);\n}\n\n.n8qJynvE-n0- {\n color: rgb(55, 69, 132);\n color: var(--color-indigo--dark);\n background-color: rgb(230, 233, 247);\n background-color: var(--color-indigo--lightest);\n}\n";
|
|
7
|
+
var styles = {"inlineLabel":"S72WkdRbhc0-","base":"bMWuAXJHkbw-","large":"ui07veHjPII-","larger":"WIXhLSQ7z8A-","greyBlue":"_8RuKvOhj-Ro-","red":"_2vEF1nvVWm8-","orange":"Wt305sIAeoE-","green":"F8KkNxz8W3A-","blue":"URZZoKSX4So-","navy":"OeLBV-9i0Rs-","yellow":"_2Xwx5tarf1w-","lime":"iCqIjI7GkEk-","purple":"_4iEIjiZj9oA-","pink":"JRW9QFSjLTA-","teal":"fbhprd-Gl8k-","yellowGreen":"yrF9aZSaTdw-","blueDark":"RPvjah0FdjI-","lightBlue":"apwauWJ6ITc-","indigo":"n8qJynvE-n0-"};
|
|
8
|
+
styleInject(css_248z);
|
|
9
|
+
|
|
10
|
+
function InlineLabel({ size = "base", color = "greyBlue", children, }) {
|
|
11
|
+
const className = classnames(styles.inlineLabel, styles[size], styles[color]);
|
|
12
|
+
const sizeMapper = {
|
|
13
|
+
base: "small",
|
|
14
|
+
large: "large",
|
|
15
|
+
larger: "large",
|
|
16
|
+
};
|
|
17
|
+
return (React.createElement("span", { className: className },
|
|
18
|
+
React.createElement(Typography, { element: "span", size: sizeMapper[size] }, children)));
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export { InlineLabel as I };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var InputAvatar = require('../InputAvatar-65e584a0.js');
|
|
6
|
+
require('../tslib.es6-754e2961.js');
|
|
7
|
+
require('react');
|
|
8
|
+
require('../style-inject.es-9d2f5f4e.js');
|
|
9
|
+
require('../Avatar-76a799fa.js');
|
|
10
|
+
require('classnames');
|
|
11
|
+
require('color');
|
|
12
|
+
require('../Icon-405a216c.js');
|
|
13
|
+
require('@jobber/design');
|
|
14
|
+
require('../InputFile-bb945071.js');
|
|
15
|
+
require('react-dropzone');
|
|
16
|
+
require('axios');
|
|
17
|
+
require('../InputValidation-05e839fa.js');
|
|
18
|
+
require('framer-motion');
|
|
19
|
+
require('../Text-259af966.js');
|
|
20
|
+
require('../Typography-c45bf216.js');
|
|
21
|
+
require('../Button-b73a5e01.js');
|
|
22
|
+
require('react-router-dom');
|
|
23
|
+
require('../Content-e3f7b6fc.js');
|
|
24
|
+
require('../ProgressBar-b68edc8f.js');
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
exports.InputAvatar = InputAvatar.InputAvatar;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export { I as InputAvatar } from '../InputAvatar-e4eb2201.js';
|
|
2
|
+
import '../tslib.es6-c563c1dd.js';
|
|
3
|
+
import 'react';
|
|
4
|
+
import '../style-inject.es-a0e1a0ba.js';
|
|
5
|
+
import '../Avatar-6ffee4bd.js';
|
|
6
|
+
import 'classnames';
|
|
7
|
+
import 'color';
|
|
8
|
+
import '../Icon-22723fe6.js';
|
|
9
|
+
import '@jobber/design';
|
|
10
|
+
import '../InputFile-cfa53555.js';
|
|
11
|
+
import 'react-dropzone';
|
|
12
|
+
import 'axios';
|
|
13
|
+
import '../InputValidation-d68fb034.js';
|
|
14
|
+
import 'framer-motion';
|
|
15
|
+
import '../Text-c9162504.js';
|
|
16
|
+
import '../Typography-7cc5daf5.js';
|
|
17
|
+
import '../Button-9ae092b3.js';
|
|
18
|
+
import 'react-router-dom';
|
|
19
|
+
import '../Content-c4ea919f.js';
|
|
20
|
+
import '../ProgressBar-a453087d.js';
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var tslib_es6 = require('./tslib.es6-754e2961.js');
|
|
4
|
+
var React = require('react');
|
|
5
|
+
var styleInject_es = require('./style-inject.es-9d2f5f4e.js');
|
|
6
|
+
var Avatar = require('./Avatar-76a799fa.js');
|
|
7
|
+
var InputFile = require('./InputFile-bb945071.js');
|
|
8
|
+
var ProgressBar = require('./ProgressBar-b68edc8f.js');
|
|
9
|
+
var Button = require('./Button-b73a5e01.js');
|
|
10
|
+
|
|
11
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
12
|
+
|
|
13
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
14
|
+
|
|
15
|
+
var css_248z = ".a2KrLEZNB04- {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n}\n\n.a2KrLEZNB04- > *:not(:last-child) {\n margin-right: calc(16px / 2);\n margin-right: var(--space-small);\n}\n\n._7-uM-6dFidA- {\n position: relative;\n}\n\n._4tvG9ksH3oM- {\n display: -ms-flexbox;\n display: flex;\n position: relative;\n height: 100%;\n margin: 0 calc(16px / 2);\n margin: 0 var(--space-small);\n -ms-flex-align: center;\n align-items: center;\n}\n\n.ah2Ak5EObRo- {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n}\n\n.ah2Ak5EObRo-::before {\n content: \"\";\n display: block;\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n border-radius: 100%;\n border-radius: var(--radius-circle);\n background-color: rgb(1, 27, 37);\n background-color: var(--color-blue--dark);\n opacity: 0.3;\n mix-blend-mode: multiply;\n}\n";
|
|
16
|
+
var styles = {"inputAvatar":"a2KrLEZNB04-","preview":"_7-uM-6dFidA-","centered":"_4tvG9ksH3oM-","overlay":"ah2Ak5EObRo-"};
|
|
17
|
+
styleInject_es.styleInject(css_248z);
|
|
18
|
+
|
|
19
|
+
function InputAvatar(_a) {
|
|
20
|
+
var { getUploadParams, onUploadComplete, onChange } = _a, avatarProps = tslib_es6.__rest(_a, ["getUploadParams", "onUploadComplete", "onChange"]);
|
|
21
|
+
const [progress, setProgress] = React.useState(1);
|
|
22
|
+
return (React__default["default"].createElement("div", { className: styles.inputAvatar },
|
|
23
|
+
React__default["default"].createElement("div", { className: styles.preview },
|
|
24
|
+
React__default["default"].createElement(Avatar.Avatar, Object.assign({ size: "large" }, avatarProps)),
|
|
25
|
+
progress < 1 && (React__default["default"].createElement(Overlay, null,
|
|
26
|
+
React__default["default"].createElement(Centered, null,
|
|
27
|
+
React__default["default"].createElement(ProgressBar.ProgressBar, { size: "small", currentStep: progress * 100, totalSteps: 100 }))))),
|
|
28
|
+
React__default["default"].createElement(InputFile.InputFile, { variation: "button", buttonLabel: avatarProps.imageUrl ? "Change Image" : undefined, size: "small", allowedTypes: "images", getUploadParams: getUploadParams, onUploadStart: handleChange, onUploadProgress: handleUpload, onUploadComplete: handleUploadComplete }),
|
|
29
|
+
avatarProps.imageUrl != undefined && progress === 1 && (React__default["default"].createElement(Button.Button, { label: "Remove", size: "small", type: "secondary", variation: "destructive", onClick: clearAvatar }))));
|
|
30
|
+
function handleChange(newFile) {
|
|
31
|
+
onChange && onChange(newFile);
|
|
32
|
+
handleUpload(newFile);
|
|
33
|
+
}
|
|
34
|
+
function handleUploadComplete(newFile) {
|
|
35
|
+
onUploadComplete && onUploadComplete(newFile);
|
|
36
|
+
handleUpload(newFile);
|
|
37
|
+
}
|
|
38
|
+
function handleUpload(newFile) {
|
|
39
|
+
return tslib_es6.__awaiter(this, void 0, void 0, function* () {
|
|
40
|
+
setProgress(newFile.progress);
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
function clearAvatar() {
|
|
44
|
+
onChange && onChange(undefined);
|
|
45
|
+
setProgress(1);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
function Overlay({ children }) {
|
|
49
|
+
return React__default["default"].createElement("div", { className: styles.overlay }, children);
|
|
50
|
+
}
|
|
51
|
+
function Centered({ children }) {
|
|
52
|
+
// Note: this HIGHLY experimental Centered component is applying margin.
|
|
53
|
+
return React__default["default"].createElement("div", { className: styles.centered }, children);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
exports.InputAvatar = InputAvatar;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { _ as __rest, a as __awaiter } from './tslib.es6-c563c1dd.js';
|
|
2
|
+
import React, { useState } from 'react';
|
|
3
|
+
import { s as styleInject } from './style-inject.es-a0e1a0ba.js';
|
|
4
|
+
import { A as Avatar } from './Avatar-6ffee4bd.js';
|
|
5
|
+
import { I as InputFile } from './InputFile-cfa53555.js';
|
|
6
|
+
import { P as ProgressBar } from './ProgressBar-a453087d.js';
|
|
7
|
+
import { B as Button } from './Button-9ae092b3.js';
|
|
8
|
+
|
|
9
|
+
var css_248z = ".a2KrLEZNB04- {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n}\n\n.a2KrLEZNB04- > *:not(:last-child) {\n margin-right: calc(16px / 2);\n margin-right: var(--space-small);\n}\n\n._7-uM-6dFidA- {\n position: relative;\n}\n\n._4tvG9ksH3oM- {\n display: -ms-flexbox;\n display: flex;\n position: relative;\n height: 100%;\n margin: 0 calc(16px / 2);\n margin: 0 var(--space-small);\n -ms-flex-align: center;\n align-items: center;\n}\n\n.ah2Ak5EObRo- {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n}\n\n.ah2Ak5EObRo-::before {\n content: \"\";\n display: block;\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n border-radius: 100%;\n border-radius: var(--radius-circle);\n background-color: rgb(1, 27, 37);\n background-color: var(--color-blue--dark);\n opacity: 0.3;\n mix-blend-mode: multiply;\n}\n";
|
|
10
|
+
var styles = {"inputAvatar":"a2KrLEZNB04-","preview":"_7-uM-6dFidA-","centered":"_4tvG9ksH3oM-","overlay":"ah2Ak5EObRo-"};
|
|
11
|
+
styleInject(css_248z);
|
|
12
|
+
|
|
13
|
+
function InputAvatar(_a) {
|
|
14
|
+
var { getUploadParams, onUploadComplete, onChange } = _a, avatarProps = __rest(_a, ["getUploadParams", "onUploadComplete", "onChange"]);
|
|
15
|
+
const [progress, setProgress] = useState(1);
|
|
16
|
+
return (React.createElement("div", { className: styles.inputAvatar },
|
|
17
|
+
React.createElement("div", { className: styles.preview },
|
|
18
|
+
React.createElement(Avatar, Object.assign({ size: "large" }, avatarProps)),
|
|
19
|
+
progress < 1 && (React.createElement(Overlay, null,
|
|
20
|
+
React.createElement(Centered, null,
|
|
21
|
+
React.createElement(ProgressBar, { size: "small", currentStep: progress * 100, totalSteps: 100 }))))),
|
|
22
|
+
React.createElement(InputFile, { variation: "button", buttonLabel: avatarProps.imageUrl ? "Change Image" : undefined, size: "small", allowedTypes: "images", getUploadParams: getUploadParams, onUploadStart: handleChange, onUploadProgress: handleUpload, onUploadComplete: handleUploadComplete }),
|
|
23
|
+
avatarProps.imageUrl != undefined && progress === 1 && (React.createElement(Button, { label: "Remove", size: "small", type: "secondary", variation: "destructive", onClick: clearAvatar }))));
|
|
24
|
+
function handleChange(newFile) {
|
|
25
|
+
onChange && onChange(newFile);
|
|
26
|
+
handleUpload(newFile);
|
|
27
|
+
}
|
|
28
|
+
function handleUploadComplete(newFile) {
|
|
29
|
+
onUploadComplete && onUploadComplete(newFile);
|
|
30
|
+
handleUpload(newFile);
|
|
31
|
+
}
|
|
32
|
+
function handleUpload(newFile) {
|
|
33
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
+
setProgress(newFile.progress);
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
function clearAvatar() {
|
|
38
|
+
onChange && onChange(undefined);
|
|
39
|
+
setProgress(1);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
function Overlay({ children }) {
|
|
43
|
+
return React.createElement("div", { className: styles.overlay }, children);
|
|
44
|
+
}
|
|
45
|
+
function Centered({ children }) {
|
|
46
|
+
// Note: this HIGHLY experimental Centered component is applying margin.
|
|
47
|
+
return React.createElement("div", { className: styles.centered }, children);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export { InputAvatar as I };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var InputDate = require('../InputDate-77bcc250.js');
|
|
6
|
+
require('lodash/omit');
|
|
7
|
+
require('react');
|
|
8
|
+
require('../FormField-6ff183f8.js');
|
|
9
|
+
require('../tslib.es6-754e2961.js');
|
|
10
|
+
require('react-hook-form');
|
|
11
|
+
require('../style-inject.es-9d2f5f4e.js');
|
|
12
|
+
require('classnames');
|
|
13
|
+
require('@jobber/hooks/useShowClear');
|
|
14
|
+
require('../Button-b73a5e01.js');
|
|
15
|
+
require('react-router-dom');
|
|
16
|
+
require('../Icon-405a216c.js');
|
|
17
|
+
require('@jobber/design');
|
|
18
|
+
require('../Typography-c45bf216.js');
|
|
19
|
+
require('../Text-259af966.js');
|
|
20
|
+
require('../InputValidation-05e839fa.js');
|
|
21
|
+
require('framer-motion');
|
|
22
|
+
require('../Spinner-9d8fc7ff.js');
|
|
23
|
+
require('../DatePicker-64c5ab1a.js');
|
|
24
|
+
require('react-datepicker');
|
|
25
|
+
require('@jobber/hooks/useRefocusOnActivator');
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
exports.InputDate = InputDate.InputDate;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export { I as InputDate } from '../InputDate-68050753.js';
|
|
2
|
+
import 'lodash/omit';
|
|
3
|
+
import 'react';
|
|
4
|
+
import '../FormField-8118cfc8.js';
|
|
5
|
+
import '../tslib.es6-c563c1dd.js';
|
|
6
|
+
import 'react-hook-form';
|
|
7
|
+
import '../style-inject.es-a0e1a0ba.js';
|
|
8
|
+
import 'classnames';
|
|
9
|
+
import '@jobber/hooks/useShowClear';
|
|
10
|
+
import '../Button-9ae092b3.js';
|
|
11
|
+
import 'react-router-dom';
|
|
12
|
+
import '../Icon-22723fe6.js';
|
|
13
|
+
import '@jobber/design';
|
|
14
|
+
import '../Typography-7cc5daf5.js';
|
|
15
|
+
import '../Text-c9162504.js';
|
|
16
|
+
import '../InputValidation-d68fb034.js';
|
|
17
|
+
import 'framer-motion';
|
|
18
|
+
import '../Spinner-5d8359b8.js';
|
|
19
|
+
import '../DatePicker-85127ebc.js';
|
|
20
|
+
import 'react-datepicker';
|
|
21
|
+
import '@jobber/hooks/useRefocusOnActivator';
|