@jobber/components 4.91.2-retheme-fe.2 → 4.91.2-retheme-fe.3
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 → index.cjs} +1 -3
- package/dist/AnimatedPresence/index.mjs +4 -0
- package/dist/AnimatedPresence-Dg0rSWmK.js +98 -0
- package/dist/{AnimatedPresence-20a02aaa.js → AnimatedPresence-kepj98O9.js} +3 -7
- package/dist/AnimatedSwitcher/index.cjs +11 -0
- package/dist/AnimatedSwitcher/index.mjs +5 -0
- package/dist/AnimatedSwitcher-B5GlT1r8.js +90 -0
- package/dist/{AnimatedSwitcher-3d45ec5d.js → AnimatedSwitcher-DkWeBaXx.js} +4 -8
- package/dist/AtlantisContext/{index.js → index.cjs} +1 -3
- package/dist/AtlantisContext/index.mjs +2 -0
- package/dist/AtlantisContext-BB6fVGP7.js +18 -0
- package/dist/Autocomplete/index.cjs +32 -0
- package/dist/Autocomplete/index.mjs +26 -0
- package/dist/Autocomplete-4jTEXjzp.js +192 -0
- package/dist/Autocomplete-B892iXrS.js +190 -0
- package/dist/Avatar/index.cjs +12 -0
- package/dist/Avatar/index.mjs +6 -0
- package/dist/Avatar-BcTE1VAK.js +69 -0
- package/dist/Avatar-D99qNu2q.js +67 -0
- package/dist/Banner/components/BannerIcon/index.cjs +11 -0
- package/dist/Banner/components/BannerIcon/index.mjs +5 -0
- package/dist/Banner/index.cjs +22 -0
- package/dist/Banner/index.mjs +16 -0
- package/dist/Banner-DXiLDPyP.js +66 -0
- package/dist/Banner-aDyK7ryS.js +68 -0
- package/dist/BannerIcon-CR5zIp9W.js +17 -0
- package/dist/BannerIcon-DaWJs7AC.js +14 -0
- package/dist/Body-CsnvKsQJ.js +45 -0
- package/dist/Body-Di3_1N_g.js +54 -0
- package/dist/Button/index.cjs +13 -0
- package/dist/Button/index.mjs +7 -0
- package/dist/Button-CrxxoYQF.js +49 -0
- package/dist/Button-DzwBVzGv.js +47 -0
- package/dist/ButtonDismiss/index.cjs +14 -0
- package/dist/ButtonDismiss/index.mjs +8 -0
- package/dist/ButtonDismiss-D77VYrSx.js +8 -0
- package/dist/ButtonDismiss-mNxpZX9b.js +10 -0
- package/dist/Card/index.cjs +20 -0
- package/dist/Card/index.mjs +14 -0
- package/dist/Card-BIuX0d8F.js +83 -0
- package/dist/Card-D3BWz4zt.js +81 -0
- package/dist/Checkbox/index.cjs +15 -0
- package/dist/Checkbox/index.mjs +9 -0
- package/dist/Checkbox-BeOyeqVV.js +53 -0
- package/dist/Checkbox-CgTUkcUJ.js +55 -0
- package/dist/Chip/hooks/index.cjs +8 -0
- package/dist/Chip/hooks/index.mjs +2 -0
- package/dist/Chip/index.cjs +26 -0
- package/dist/Chip/index.mjs +18 -0
- package/dist/Chip-BO6LPeGJ.js +67 -0
- package/dist/Chip-rCOZOjwt.js +70 -0
- package/dist/ChipDismissible-7huIAOo1.js +19 -0
- package/dist/ChipDismissible-CGJCNiKU.js +22 -0
- package/dist/Chips/InternalChipDismissible/hooks/index.cjs +23 -0
- package/dist/Chips/InternalChipDismissible/hooks/index.mjs +13 -0
- package/dist/Chips/InternalChipDismissible/index.cjs +35 -0
- package/dist/Chips/InternalChipDismissible/index.mjs +29 -0
- package/dist/Chips/index.cjs +48 -0
- package/dist/Chips/index.mjs +44 -0
- package/dist/Chips-BKPjQDju.js +93 -0
- package/dist/Chips-nzWX1NfH.js +91 -0
- package/dist/Combobox/components/ComboboxAction/index.cjs +12 -0
- package/dist/Combobox/components/ComboboxAction/index.mjs +6 -0
- package/dist/Combobox/components/ComboboxActivator/index.cjs +27 -0
- package/dist/Combobox/components/ComboboxActivator/index.mjs +21 -0
- package/dist/Combobox/components/ComboboxContent/ComboboxContentHeader/index.cjs +14 -0
- package/dist/Combobox/components/ComboboxContent/ComboboxContentHeader/index.mjs +8 -0
- package/dist/Combobox/components/ComboboxContent/ComboboxContentList/index.cjs +24 -0
- package/dist/Combobox/components/ComboboxContent/ComboboxContentList/index.mjs +18 -0
- package/dist/Combobox/components/ComboboxContent/ComboboxContentSearch/index.cjs +10 -0
- package/dist/Combobox/components/ComboboxContent/ComboboxContentSearch/index.mjs +4 -0
- package/dist/Combobox/components/ComboboxContent/ComboboxLoadMore/index.cjs +9 -0
- package/dist/Combobox/components/ComboboxContent/ComboboxLoadMore/index.mjs +3 -0
- package/dist/Combobox/components/ComboboxContent/index.cjs +34 -0
- package/dist/Combobox/components/ComboboxContent/index.mjs +28 -0
- package/dist/Combobox/components/ComboboxOption/index.cjs +14 -0
- package/dist/Combobox/components/ComboboxOption/index.mjs +8 -0
- package/dist/Combobox/components/ComboboxTrigger/index.cjs +25 -0
- package/dist/Combobox/components/ComboboxTrigger/index.mjs +19 -0
- package/dist/Combobox/index.cjs +53 -0
- package/dist/Combobox/index.mjs +46 -0
- package/dist/Combobox-CPFiAWN6.js +117 -0
- package/dist/Combobox-ChHMTRwV.js +119 -0
- package/dist/ComboboxAction-C8vgEtWx.js +22 -0
- package/dist/ComboboxAction-CMtTeU6U.js +24 -0
- package/dist/ComboboxActivator-D9nXKLfL.js +26 -0
- package/dist/ComboboxActivator-DR2zBEhW.js +28 -0
- package/dist/ComboboxContent-hlcIQRLz.js +143 -0
- package/dist/ComboboxContent-oQDp-dEd.js +145 -0
- package/dist/ComboboxContentHeader-BpyDfau9.js +29 -0
- package/dist/ComboboxContentHeader-CJHYc30F.js +27 -0
- package/dist/ComboboxContentList-B46nuf36.js +75 -0
- package/dist/ComboboxContentList-DdhL57Bj.js +77 -0
- package/dist/ComboboxContentSearch-BgkQYIHq.js +34 -0
- package/dist/ComboboxContentSearch-CG16cjfz.js +32 -0
- package/dist/ComboboxLoadMore-9FgWV4Uv.js +16 -0
- package/dist/ComboboxLoadMore-lwIHDJ3e.js +14 -0
- package/dist/ComboboxOption-BPLxC2h4.js +20 -0
- package/dist/ComboboxOption-CJpTBVXu.js +22 -0
- package/dist/ComboboxProvider-BzFHJNMs.js +10 -0
- package/dist/ComboboxProvider-fgameO9B.js +13 -0
- package/dist/ComboboxTrigger-0H4T-Fa6.js +24 -0
- package/dist/ComboboxTrigger-Bro30eER.js +22 -0
- package/dist/ConfirmationModal/index.cjs +29 -0
- package/dist/ConfirmationModal/index.mjs +23 -0
- package/dist/{ConfirmationModal-289df9ad.js → ConfirmationModal-D_79ZcA-.js} +8 -12
- package/dist/ConfirmationModal-iPrJJhaV.js +94 -0
- package/dist/Content/index.cjs +9 -0
- package/dist/Content/index.mjs +3 -0
- package/dist/Content-DbO2GY5M.js +13 -0
- package/dist/Content-DzVNJZsM.js +15 -0
- package/dist/Countdown/index.cjs +11 -0
- package/dist/Countdown/index.mjs +5 -0
- package/dist/Countdown-7LRQSe5O.js +659 -0
- package/dist/Countdown-okI-Yhdd.js +657 -0
- package/dist/DataDump/index.cjs +23 -0
- package/dist/DataDump/index.mjs +17 -0
- package/dist/DataDump-DUj1DcI5.js +17 -0
- package/dist/DataDump-JGAum9NC.js +15 -0
- package/dist/DataList/components/DataListAction/index.cjs +13 -0
- package/dist/DataList/components/DataListAction/index.mjs +7 -0
- package/dist/DataList/components/DataListActions/index.cjs +42 -0
- package/dist/DataList/components/DataListActions/index.mjs +36 -0
- package/dist/DataList/components/DataListActionsMenu/index.cjs +17 -0
- package/dist/DataList/components/DataListActionsMenu/index.mjs +11 -0
- package/dist/DataList/components/DataListBulkActions/index.cjs +45 -0
- package/dist/DataList/components/DataListBulkActions/index.mjs +38 -0
- package/dist/DataList/components/DataListEmptyState/index.cjs +20 -0
- package/dist/DataList/components/DataListEmptyState/index.mjs +13 -0
- package/dist/DataList/components/DataListFilters/components/DataListSort/index.cjs +54 -0
- package/dist/DataList/components/DataListFilters/components/DataListSort/index.mjs +48 -0
- package/dist/DataList/components/DataListFilters/index.cjs +67 -0
- package/dist/DataList/components/DataListFilters/index.mjs +60 -0
- package/dist/DataList/components/DataListHeader/index.cjs +52 -0
- package/dist/DataList/components/DataListHeader/index.mjs +46 -0
- package/dist/DataList/components/DataListHeaderTile/components/index.cjs +12 -0
- package/dist/DataList/components/DataListHeaderTile/components/index.mjs +6 -0
- package/dist/DataList/components/DataListHeaderTile/index.cjs +20 -0
- package/dist/DataList/components/DataListHeaderTile/index.mjs +14 -0
- package/dist/DataList/components/DataListItem/components/DataListItemClickable/index.cjs +14 -0
- package/dist/DataList/components/DataListItem/components/DataListItemClickable/index.mjs +8 -0
- package/dist/DataList/components/DataListItem/index.cjs +51 -0
- package/dist/DataList/components/DataListItem/index.mjs +45 -0
- package/dist/DataList/components/DataListItemActions/index.cjs +44 -0
- package/dist/DataList/components/DataListItemActions/index.mjs +37 -0
- package/dist/DataList/components/DataListItemActionsOverflow/index.cjs +25 -0
- package/dist/DataList/components/DataListItemActionsOverflow/index.mjs +19 -0
- package/dist/DataList/components/DataListItems/index.cjs +52 -0
- package/dist/DataList/components/DataListItems/index.mjs +46 -0
- package/dist/DataList/components/DataListLayout/index.cjs +55 -0
- package/dist/DataList/components/DataListLayout/index.mjs +49 -0
- package/dist/DataList/components/DataListLayoutActions/DataListLayoutContext/index.cjs +9 -0
- package/dist/DataList/components/DataListLayoutActions/DataListLayoutContext/index.mjs +2 -0
- package/dist/DataList/components/DataListLayoutActions/index.cjs +33 -0
- package/dist/DataList/components/DataListLayoutActions/index.mjs +27 -0
- package/dist/DataList/components/DataListLoadMore/index.cjs +21 -0
- package/dist/DataList/components/DataListLoadMore/index.mjs +14 -0
- package/dist/DataList/components/DataListLoadingState/index.cjs +21 -0
- package/dist/DataList/components/DataListLoadingState/index.mjs +13 -0
- package/dist/DataList/components/DataListOverflowFade/index.cjs +11 -0
- package/dist/DataList/components/DataListOverflowFade/index.mjs +4 -0
- package/dist/DataList/components/DataListSearch/index.cjs +33 -0
- package/dist/DataList/components/DataListSearch/index.mjs +25 -0
- package/dist/DataList/components/DataListStatusBar/index.cjs +30 -0
- package/dist/DataList/components/DataListStatusBar/index.mjs +23 -0
- package/dist/DataList/components/DataListStickyHeader/index.cjs +11 -0
- package/dist/DataList/components/DataListStickyHeader/index.mjs +5 -0
- package/dist/DataList/components/DataListTags/index.cjs +12 -0
- package/dist/DataList/components/DataListTags/index.mjs +6 -0
- package/dist/DataList/components/DataListTotalCount/index.cjs +15 -0
- package/dist/DataList/components/DataListTotalCount/index.mjs +8 -0
- package/dist/DataList/context/DataListContext/index.cjs +12 -0
- package/dist/DataList/context/DataListContext/index.mjs +4 -0
- package/dist/DataList/context/DataListLayoutContext/index.cjs +12 -0
- package/dist/DataList/context/DataListLayoutContext/index.mjs +4 -0
- package/dist/DataList/index.cjs +97 -0
- package/dist/DataList/index.mjs +91 -0
- package/dist/DataList-B0YrIckS.js +141 -0
- package/dist/DataList-Dcbo0O6p.js +5 -0
- package/dist/DataList-DfyJDhUn.js +3 -0
- package/dist/DataList-I9cVfKBx.js +139 -0
- package/dist/DataList.const-B-WAZqZm.js +25 -0
- package/dist/DataList.const-DZ5upBs4.js +38 -0
- package/dist/DataList.utils-DKYlINpl.js +168 -0
- package/dist/DataList.utils-DmychB4b.js +161 -0
- package/dist/DataListAction-BTge_0LD.js +37 -0
- package/dist/DataListAction-HGpY_hOu.js +39 -0
- package/dist/DataListActions-CmIwf73f.js +43 -0
- package/dist/DataListActions-D94XxpZM.js +45 -0
- package/dist/DataListActionsMenu-BDlbxRpS.js +57 -0
- package/dist/DataListActionsMenu-DJ0jKNQ9.js +55 -0
- package/dist/DataListBulkActions-CqyhvwO3.js +29 -0
- package/dist/DataListBulkActions-DMU9T6TS.js +26 -0
- package/dist/DataListContext-B9QPGTE9.js +25 -0
- package/dist/DataListContext-CtxUHHfs.js +29 -0
- package/dist/DataListEmptyState-B-6AynZz.js +53 -0
- package/dist/DataListEmptyState-DSrTemd1.js +50 -0
- package/dist/DataListFilters-CVRcWy-9.js +43 -0
- package/dist/DataListFilters-LGIT4RTw.js +46 -0
- package/dist/DataListHeader-CKNSWwQo.js +95 -0
- package/dist/DataListHeader-CfZmYQG2.js +93 -0
- package/dist/DataListHeaderTile-BYDWDG_0.js +81 -0
- package/dist/DataListHeaderTile-I90vRaws.js +79 -0
- package/dist/DataListItem-BuwfdyIq.js +112 -0
- package/dist/DataListItem-EDyh_yml.js +114 -0
- package/dist/DataListItemActions-BcrNy34u.js +29 -0
- package/dist/DataListItemActions-E6TYqr0T.js +32 -0
- package/dist/DataListItemActionsOverflow-BFOFHLmm.js +35 -0
- package/dist/DataListItemActionsOverflow-OJZ4_d_f.js +33 -0
- package/dist/DataListItemClickable-DLS2uEpq.js +45 -0
- package/dist/DataListItemClickable-RGUCPgM5.js +47 -0
- package/dist/DataListItems-BjQ_XDeZ.js +19 -0
- package/dist/DataListItems-CN_kub24.js +21 -0
- package/dist/DataListLayout-BmLJ-mi_.js +19 -0
- package/dist/DataListLayout-kbVmXDsv.js +21 -0
- package/dist/DataListLayoutActions-D7dfXhpA.js +38 -0
- package/dist/DataListLayoutActions-DsqeiOLl.js +36 -0
- package/dist/DataListLayoutContext-CmT-yv31.js +14 -0
- package/dist/DataListLayoutContext-DbIuv3_7.js +8 -0
- package/dist/DataListLayoutContext-Dsm5THEw.js +11 -0
- package/dist/DataListLayoutContext-cLuet6uT.js +18 -0
- package/dist/DataListLoadMore-BXjOjGwa.js +34 -0
- package/dist/DataListLoadMore-C6Of-7M0.js +31 -0
- package/dist/DataListLoadingState-7erg1duA.js +26 -0
- package/dist/DataListLoadingState-Da7RpOd1.js +22 -0
- package/dist/DataListOverflowFade-B2Iz6CsX.js +25 -0
- package/dist/DataListOverflowFade-CzFRYirg.js +22 -0
- package/dist/DataListSearch-DVyuwX2c.js +59 -0
- package/dist/DataListSearch-Dh9PxyQp.js +63 -0
- package/dist/DataListSort-CgGWlSZ0.js +94 -0
- package/dist/DataListSort-Dql37zcM.js +92 -0
- package/dist/DataListSortingOptions-DW9pkdUG.js +37 -0
- package/dist/DataListSortingOptions-Eoovb0ni.js +35 -0
- package/dist/DataListStatusBar-B_NhZoAv.js +22 -0
- package/dist/DataListStatusBar-CoHWwL7-.js +25 -0
- package/dist/DataListStickyHeader-Ba82f3Im.js +25 -0
- package/dist/DataListStickyHeader-DBCXs6Rc.js +23 -0
- package/dist/DataListTags-DH4nIE2K.js +62 -0
- package/dist/DataListTags-scOaXzcs.js +64 -0
- package/dist/DataListTotalCount-DjKf6gMo.js +27 -0
- package/dist/DataListTotalCount-m2VGpCak.js +24 -0
- package/dist/DataTable/index.cjs +36 -0
- package/dist/DataTable/index.mjs +25 -0
- package/dist/DataTable/test-utilities/index.cjs +246 -0
- package/dist/DataTable/test-utilities/index.mjs +238 -0
- package/dist/DataTable-NxjqVEtH.js +238 -0
- package/dist/DataTable-x5RQEyBP.js +236 -0
- package/dist/DatePicker/index.cjs +26 -0
- package/dist/DatePicker/index.mjs +20 -0
- package/dist/DatePicker-BVcHoA7-.js +8554 -0
- package/dist/DatePicker-C8v-Zj4s.js +8551 -0
- package/dist/DayOfMonthSelect--FHzXJDW.js +137 -0
- package/dist/DayOfMonthSelect-C-fPPm2a.js +130 -0
- package/dist/DescriptionList/index.cjs +10 -0
- package/dist/DescriptionList/index.mjs +4 -0
- package/dist/DescriptionList-Cju_ltAl.js +14 -0
- package/dist/DescriptionList-DyycFYga.js +12 -0
- package/dist/Disclosure/index.cjs +17 -0
- package/dist/Disclosure/index.mjs +11 -0
- package/dist/Disclosure-BuGyUy0l.js +33 -0
- package/dist/Disclosure-CMxuffso.js +35 -0
- package/dist/Divider/index.cjs +9 -0
- package/dist/Divider/index.mjs +3 -0
- package/dist/Divider-CCH0JB2B.js +17 -0
- package/dist/Divider-L89PyUsw.js +19 -0
- package/dist/Drawer/index.cjs +17 -0
- package/dist/Drawer/index.mjs +10 -0
- package/dist/DrawerGrid-Bp4NRp42.js +31 -0
- package/dist/DrawerGrid-CZEJyoma.js +28 -0
- package/dist/Emphasis/index.cjs +10 -0
- package/dist/Emphasis/index.mjs +4 -0
- package/dist/Emphasis-BOCpUymX.js +15 -0
- package/dist/Emphasis-DyEYCEeY.js +13 -0
- package/dist/FeatureSwitch/index.cjs +24 -0
- package/dist/FeatureSwitch/index.mjs +18 -0
- package/dist/FeatureSwitch-Be-BLvA7.js +54 -0
- package/dist/FeatureSwitch-vqe0AQ2W.js +52 -0
- package/dist/Flex/index.cjs +9 -0
- package/dist/Flex/index.mjs +3 -0
- package/dist/Flex-DnI4PG_x.js +28 -0
- package/dist/Flex-DqHnYqYa.js +30 -0
- package/dist/Form/index.cjs +10 -0
- package/dist/Form/index.mjs +4 -0
- package/dist/{Form/index.js → Form-Clk5qGl3.js} +3 -9
- package/dist/Form-DVrhZAfE.js +48 -0
- package/dist/FormField/index.cjs +20 -0
- package/dist/FormField/index.mjs +14 -0
- package/dist/FormField-CDoeGp9o.js +261 -0
- package/dist/FormField-Dc7XoE3A.js +263 -0
- package/dist/FormatDate/{index.js → index.cjs} +1 -3
- package/dist/FormatDate/index.mjs +2 -0
- package/dist/FormatDate-B-4ItFF2.js +27 -0
- package/dist/{FormatDate-70ea5b43.js → FormatDate-BSQ5SYSD.js} +1 -5
- package/dist/FormatEmail/index.cjs +9 -0
- package/dist/FormatEmail/index.mjs +3 -0
- package/dist/FormatEmail-BoR_OfTf.js +11 -0
- package/dist/FormatEmail-CoezKTev.js +13 -0
- package/dist/FormatFile/index.cjs +34 -0
- package/dist/FormatFile/index.mjs +28 -0
- package/dist/FormatFile-RCY2HTZX.js +149 -0
- package/dist/FormatFile-YktXX0mA.js +147 -0
- package/dist/FormatRelativeDateTime/index.cjs +8 -0
- package/dist/FormatRelativeDateTime/index.mjs +2 -0
- package/dist/FormatRelativeDateTime-BU_6qDFz.js +64 -0
- package/dist/{FormatRelativeDateTime/index.js → FormatRelativeDateTime-CU2SvOF9.js} +5 -11
- package/dist/FormatTime/index.cjs +8 -0
- package/dist/FormatTime/index.mjs +2 -0
- package/dist/{FormatTime/index.js → FormatTime-BUB6E47S.js} +1 -7
- package/dist/FormatTime-DM6K5QTY.js +29 -0
- package/dist/Gallery/index.cjs +41 -0
- package/dist/Gallery/index.mjs +35 -0
- package/dist/Gallery-CHSQtOX4.js +65 -0
- package/dist/Gallery-Dr48QgPl.js +63 -0
- package/dist/Glimmer/index.cjs +12 -0
- package/dist/Glimmer/index.mjs +5 -0
- package/dist/Glimmer-BG7eX9ml.js +63 -0
- package/dist/Glimmer-C-o8hGKO.js +60 -0
- package/dist/Grid/InternalGridCell/index.cjs +9 -0
- package/dist/Grid/InternalGridCell/index.mjs +2 -0
- package/dist/Grid/index.cjs +14 -0
- package/dist/Grid/index.mjs +7 -0
- package/dist/Grid-D1qStNFU.js +32 -0
- package/dist/Grid-DtxggU52.js +29 -0
- package/dist/Heading/index.cjs +10 -0
- package/dist/Heading/index.mjs +4 -0
- package/dist/Heading-CLboCN8l.js +47 -0
- package/dist/{Heading-d025ffbb.js → Heading-D39OfHbk.js} +2 -6
- package/dist/Icon/index.cjs +9 -0
- package/dist/Icon/index.mjs +3 -0
- package/dist/Icon-5T1h0cSC.js +36 -0
- package/dist/Icon-zn-zanGs.js +34 -0
- package/dist/InlineLabel/index.cjs +10 -0
- package/dist/InlineLabel/index.mjs +4 -0
- package/dist/InlineLabel-BSjKYUfv.js +20 -0
- package/dist/InlineLabel-Bw_i26zR.js +18 -0
- package/dist/InputAvatar/index.cjs +26 -0
- package/dist/InputAvatar/index.mjs +20 -0
- package/dist/InputAvatar-BW3GFAXi.js +49 -0
- package/dist/InputAvatar-D_ghJoiU.js +47 -0
- package/dist/InputDate/index.cjs +34 -0
- package/dist/InputDate/index.mjs +28 -0
- package/dist/{InputDate/index.js → InputDate-EhlH_aDw.js} +6 -31
- package/dist/InputDate-zAEoCRbO.js +48 -0
- package/dist/InputEmail/index.cjs +22 -0
- package/dist/InputEmail/index.mjs +15 -0
- package/dist/InputEmail-DMIv0W-U.js +20 -0
- package/dist/InputEmail-Dvxsqv1m.js +23 -0
- package/dist/InputFile/index.cjs +23 -0
- package/dist/InputFile/index.mjs +16 -0
- package/dist/InputFile-2ME4Lx_J.js +1608 -0
- package/dist/InputFile-ApUNeer4.js +1611 -0
- package/dist/InputGroup/index.cjs +9 -0
- package/dist/InputGroup/index.mjs +3 -0
- package/dist/InputGroup-CuMESZ3e.js +23 -0
- package/dist/InputGroup-SgH2Znm3.js +25 -0
- package/dist/InputNumber/index.cjs +21 -0
- package/dist/InputNumber/index.mjs +15 -0
- package/dist/InputNumber-CiVi1adj.js +56 -0
- package/dist/{InputNumber-0cc0d204.js → InputNumber-DDZLNzAN.js} +2 -6
- package/dist/InputPassword/index.cjs +21 -0
- package/dist/InputPassword/index.mjs +15 -0
- package/dist/InputPassword-BX5iEGUi.js +19 -0
- package/dist/InputPassword-DSFVkKrW.js +21 -0
- package/dist/InputPhoneNumber/index.cjs +21 -0
- package/dist/InputPhoneNumber/index.mjs +15 -0
- package/dist/InputPhoneNumber-BtGDXTrX.js +94 -0
- package/dist/{InputPhoneNumber/index.js → InputPhoneNumber-D9f6nzaN.js} +7 -27
- package/dist/InputText/index.cjs +22 -0
- package/dist/InputText/index.mjs +16 -0
- package/dist/InputText-DAp8GDBJ.js +96 -0
- package/dist/{InputText-8af32879.js → InputText-DJvMLtTA.js} +4 -8
- package/dist/InputTime/index.cjs +26 -0
- package/dist/InputTime/index.mjs +20 -0
- package/dist/{InputTime/index.js → InputTime-BK32ZRmi.js} +5 -25
- package/dist/InputTime-Cwh6bsgB.js +190 -0
- package/dist/InputValidation/index.cjs +14 -0
- package/dist/InputValidation/index.mjs +8 -0
- package/dist/InputValidation-B0ocr1XO.js +20 -0
- package/dist/InputValidation-BxaW-DOL.js +22 -0
- package/dist/InternalChipDismissible-AydwPO6F.js +157 -0
- package/dist/InternalChipDismissible-BNj2lRac.js +152 -0
- package/dist/InternalGridCell-Dx7Dz3Xq.js +34 -0
- package/dist/InternalGridCell-puBI2ZeJ.js +37 -0
- package/dist/LightBox/index.cjs +26 -0
- package/dist/LightBox/index.mjs +20 -0
- package/dist/LightBox-BRZpFYeQ.js +110 -0
- package/dist/LightBox-CPK9oJpX.js +112 -0
- package/dist/Link/index.cjs +8 -0
- package/dist/Link/index.mjs +2 -0
- package/dist/Link-BMm-4O29.js +9 -0
- package/dist/Link-CacM5qqe.js +7 -0
- package/dist/List/index.cjs +27 -0
- package/dist/List/index.mjs +20 -0
- package/dist/List-D-5zOLA5.js +189 -0
- package/dist/List-tRcUMZA6.js +186 -0
- package/dist/Markdown/index.cjs +17 -0
- package/dist/Markdown/index.mjs +11 -0
- package/dist/Markdown-CRV63Nlg.js +19011 -0
- package/dist/Markdown-CjYVzppS.js +19013 -0
- package/dist/Menu/index.cjs +18 -0
- package/dist/Menu/index.mjs +12 -0
- package/dist/Menu-PQAVNqJX.js +128 -0
- package/dist/Menu-wYw5h0bM.js +130 -0
- package/dist/Modal/index.cjs +21 -0
- package/dist/Modal/index.mjs +15 -0
- package/dist/Modal-3fXNhDjb.js +63 -0
- package/dist/Modal-DpZxsqaF.js +61 -0
- package/dist/MultiSelect/index.cjs +16 -0
- package/dist/MultiSelect/index.mjs +10 -0
- package/dist/MultiSelect-BKA4GqeW.js +164 -0
- package/dist/MultiSelect-Bz5m3p2S.js +166 -0
- package/dist/Option-BWUCNzu-.js +15 -0
- package/dist/Option-CiWcXqo-.js +12 -0
- package/dist/Page/index.cjs +31 -0
- package/dist/Page/index.mjs +25 -0
- package/dist/Page-B4qMqVDr.js +56 -0
- package/dist/Page-D4-zBR88.js +58 -0
- package/dist/Popover/index.cjs +17 -0
- package/dist/Popover/index.mjs +11 -0
- package/dist/Popover-CNkUbTvG.js +50 -0
- package/dist/Popover-CxiiucKv.js +48 -0
- package/dist/ProgressBar/index.cjs +9 -0
- package/dist/ProgressBar/index.mjs +3 -0
- package/dist/ProgressBar-BRI8oId0.js +31 -0
- package/dist/ProgressBar-D4cWYAjk.js +33 -0
- package/dist/RadioGroup/index.cjs +12 -0
- package/dist/RadioGroup/index.mjs +5 -0
- package/dist/RadioGroup-BGqrJ6K9.js +39 -0
- package/dist/RadioGroup-Dx1Glowr.js +36 -0
- package/dist/RecurringSelect/components/index.cjs +15 -0
- package/dist/RecurringSelect/components/index.mjs +6 -0
- package/dist/RecurringSelect/index.cjs +35 -0
- package/dist/RecurringSelect/index.mjs +21 -0
- package/dist/RecurringSelect-D8bZAHBs.js +69 -0
- package/dist/RecurringSelect-D9qSmSek.js +71 -0
- package/dist/Select/index.cjs +22 -0
- package/dist/Select/index.mjs +15 -0
- package/dist/Spinner/index.cjs +9 -0
- package/dist/Spinner/index.mjs +3 -0
- package/dist/Spinner-CRjrJ0LO.js +14 -0
- package/dist/Spinner-DBuwcAqL.js +16 -0
- package/dist/StatusIndicator/index.cjs +8 -0
- package/dist/StatusIndicator/index.mjs +2 -0
- package/dist/StatusIndicator-DGvPdP50.js +9 -0
- package/dist/StatusIndicator-egqvK_8I.js +11 -0
- package/dist/StatusLabel/index.cjs +11 -0
- package/dist/StatusLabel/index.mjs +5 -0
- package/dist/StatusLabel-ClNWJSbx.js +16 -0
- package/dist/StatusLabel-gScnhH3r.js +18 -0
- package/dist/Switch/index.cjs +10 -0
- package/dist/Switch/index.mjs +4 -0
- package/dist/Switch-B6FDMgFW.js +48 -0
- package/dist/Switch-B8HlM_QY.js +46 -0
- package/dist/Table/index.cjs +17 -0
- package/dist/Table/index.mjs +4 -0
- package/dist/Tabs/index.cjs +11 -0
- package/dist/Tabs/index.mjs +4 -0
- package/dist/Tabs-BWBhsLmc.js +70 -0
- package/dist/Tabs-CqLdEcw_.js +67 -0
- package/dist/Text/index.cjs +10 -0
- package/dist/Text/index.mjs +4 -0
- package/dist/{Text-fdc65f0b.js → Text-C0pm--c0.js} +2 -6
- package/dist/Text-CyaxiLeN.js +25 -0
- package/dist/Toast/index.cjs +16 -0
- package/dist/Toast/index.mjs +10 -0
- package/dist/Tooltip/Tooltip.d.ts +7 -1
- package/dist/Tooltip/Tooltip.types.d.ts +1 -0
- package/dist/Tooltip/index.cjs +14 -0
- package/dist/Tooltip/index.mjs +8 -0
- package/dist/Tooltip/useTooltipPositioning.d.ts +7 -2
- package/dist/Tooltip-Cz3YrniM.js +107 -0
- package/dist/Tooltip-DwJncSM8.js +109 -0
- package/dist/Typography/index.cjs +9 -0
- package/dist/Typography/index.mjs +3 -0
- package/dist/Typography-BCKgZ_gv.js +38 -0
- package/dist/Typography-C0YR4XBl.js +36 -0
- package/dist/_baseAssignValue-BUu9BC9H.js +31 -0
- package/dist/_baseAssignValue-DF3A_efn.js +29 -0
- package/dist/_baseEach-CRlnkM7o.js +1069 -0
- package/dist/_baseEach-DVwKXi81.js +1073 -0
- package/dist/_commonjsHelpers-DAuvc7SO.js +36 -0
- package/dist/_commonjsHelpers-jBnpF2iq.js +32 -0
- package/dist/_defineProperty-B3SNVTd_.js +1326 -0
- package/dist/_defineProperty-JMBF-bcO.js +1306 -0
- package/dist/_getTag-5wQIlCbe.js +718 -0
- package/dist/_getTag-BBZ5PchE.js +733 -0
- package/dist/_polyfill-node.process-DT4I8V6P.js +258 -0
- package/dist/_polyfill-node.process-SftmnXC5.js +255 -0
- package/dist/_setToString-D6dO6z5c.js +234 -0
- package/dist/_setToString-Dgouhodc.js +230 -0
- package/dist/debounce-BIIhPHgB.js +332 -0
- package/dist/debounce-D4EqvIGN.js +329 -0
- package/dist/helpers-BQt4cjaM.js +15 -0
- package/dist/helpers-DMMJ1q7H.js +17 -0
- package/dist/index-Bd55olyf.js +1186 -0
- package/dist/index-CkGfA4vx.js +1189 -0
- package/dist/index.cjs +274 -0
- package/dist/index.d.mts +74 -0
- package/dist/index.d.ts +74 -0
- package/dist/index.mjs +161 -0
- package/dist/isObjectLike-BlLIuFVH.js +197 -0
- package/dist/isObjectLike-CAV2cIfa.js +190 -0
- package/dist/isSymbol-BxsxMlnF.js +35 -0
- package/dist/isSymbol-C2J0yjld.js +33 -0
- package/dist/noop-C9vKAtvJ.js +24 -0
- package/dist/noop-D4cCHWII.js +26 -0
- package/dist/showToast-DEz-eIM4.js +96 -0
- package/dist/showToast-d0XdpaJD.js +98 -0
- package/dist/styles.css +8401 -0
- package/dist/tslib.es6-6dmIhJTi.js +102 -0
- package/dist/tslib.es6-sBHgrKO6.js +97 -0
- package/dist/useActiveLayout-EZ1eunvS.js +16 -0
- package/dist/useActiveLayout-VN6ZOkxZ.js +14 -0
- package/dist/useAssert-BHj1OQqJ.js +27 -0
- package/dist/useAssert-knwpkZW0.js +27 -0
- package/dist/useBatchSelect-BTQ9PbXi.js +36 -0
- package/dist/useBatchSelect-C9775spd.js +38 -0
- package/dist/useChildComponent-BLLL1r7O.js +17 -0
- package/dist/useChildComponent-D9yXvtJR.js +15 -0
- package/dist/useFocusTrap-B8ok2cIh.js +74 -0
- package/dist/useFocusTrap-BBkfWfEx.js +74 -0
- package/dist/useInView-Bj_Jl5Bw.js +25 -0
- package/dist/useInView-fsT3lwCU.js +25 -0
- package/dist/useIsMounted-CYEXH1zH.js +47 -0
- package/dist/useIsMounted-Dcw7g7-d.js +47 -0
- package/dist/useOnKeyDown-DN2YGzzl.js +40 -0
- package/dist/useOnKeyDown-DrmWnz2G.js +40 -0
- package/dist/useRefocusOnActivator-DA8gO9ka.js +32 -0
- package/dist/useRefocusOnActivator-y6qNNjZw.js +32 -0
- package/dist/useResizeObserver-8FUujV3_.js +1192 -0
- package/dist/useResizeObserver-CatrBt7i.js +1189 -0
- package/dist/useResponsiveSizing--fEPoUpK.js +51 -0
- package/dist/useResponsiveSizing-Dh343Vot.js +49 -0
- package/dist/useSafeLayoutEffect-BQD8SqX2.js +12 -0
- package/dist/useSafeLayoutEffect-DOMGt2wv.js +14 -0
- package/dist/useScrollToActive-Cgc9Gsx0.js +597 -0
- package/dist/useScrollToActive-gryn6oCp.js +591 -0
- package/package.json +411 -11
- package/{rollup.config.js → rollup.config.mjs} +49 -17
- package/dist/AnimatedSwitcher/index.js +0 -13
- package/dist/Autocomplete/index.js +0 -213
- package/dist/Avatar/index.js +0 -15
- package/dist/Avatar-a5a90da9.js +0 -78
- package/dist/Banner/index.js +0 -92
- package/dist/Button/index.js +0 -16
- package/dist/Button-bb77a513.js +0 -57
- package/dist/ButtonDismiss/index.js +0 -17
- package/dist/ButtonDismiss-a1df8656.js +0 -14
- package/dist/Card/index.js +0 -23
- package/dist/Card-69212ecd.js +0 -93
- package/dist/Checkbox/index.js +0 -18
- package/dist/Checkbox-2ea61ab4.js +0 -63
- package/dist/Chip/index.js +0 -42
- package/dist/Chip-b67ae770.js +0 -89
- package/dist/Chips/index.js +0 -525
- package/dist/Combobox/index.js +0 -41
- package/dist/Combobox-faa6bffe.js +0 -481
- package/dist/ConfirmationModal/index.js +0 -30
- package/dist/Content/index.js +0 -12
- package/dist/Content-e3f7b6fc.js +0 -24
- package/dist/Countdown/index.js +0 -72
- package/dist/DataDump/index.js +0 -36
- package/dist/DataList/index.js +0 -1345
- package/dist/DataTable/index.js +0 -301
- package/dist/DatePicker/index.js +0 -21
- package/dist/DatePicker-8392951f.js +0 -144
- package/dist/DescriptionList/index.js +0 -24
- package/dist/Disclosure/index.js +0 -46
- package/dist/Divider/index.js +0 -29
- package/dist/Drawer/index.js +0 -48
- package/dist/Emphasis/index.js +0 -13
- package/dist/Emphasis-2bbe4da6.js +0 -19
- package/dist/FeatureSwitch/index.js +0 -69
- package/dist/Flex/index.js +0 -12
- package/dist/Flex-d490c4db.js +0 -38
- package/dist/FormField/index.js +0 -24
- package/dist/FormField-5134bf0e.js +0 -253
- package/dist/FormatEmail/index.js +0 -23
- package/dist/FormatFile/index.js +0 -35
- package/dist/FormatFile-7e432b0d.js +0 -162
- package/dist/Gallery/index.js +0 -99
- package/dist/Glimmer/index.js +0 -15
- package/dist/Glimmer-156bb2d1.js +0 -77
- package/dist/Grid/index.js +0 -76
- package/dist/Heading/index.js +0 -13
- package/dist/Icon/index.js +0 -11
- package/dist/Icon-405a216c.js +0 -40
- package/dist/InlineLabel/index.js +0 -13
- package/dist/InlineLabel-d092e45a.js +0 -28
- package/dist/InputAvatar/index.js +0 -70
- package/dist/InputEmail/index.js +0 -43
- package/dist/InputFile/index.js +0 -25
- package/dist/InputFile-5458fb6e.js +0 -190
- package/dist/InputGroup/index.js +0 -12
- package/dist/InputGroup-8d4fd4eb.js +0 -33
- package/dist/InputNumber/index.js +0 -25
- package/dist/InputPassword/index.js +0 -41
- package/dist/InputText/index.js +0 -26
- package/dist/InputValidation/index.js +0 -17
- package/dist/InputValidation-9c582130.js +0 -29
- package/dist/LightBox/index.js +0 -25
- package/dist/LightBox-ddbda5c6.js +0 -121
- package/dist/Link/index.js +0 -15
- package/dist/List/index.js +0 -92
- package/dist/Markdown/index.js +0 -18
- package/dist/Markdown-8150d535.js +0 -62
- package/dist/Menu/index.js +0 -21
- package/dist/Menu-f9fb99bb.js +0 -138
- package/dist/Modal/index.js +0 -24
- package/dist/Modal-4f48de3a.js +0 -74
- package/dist/MultiSelect/index.js +0 -182
- package/dist/Option-8faed3bf.js +0 -19
- package/dist/Page/index.js +0 -77
- package/dist/Popover/index.js +0 -65
- package/dist/ProgressBar/index.js +0 -12
- package/dist/ProgressBar-e4bb029e.js +0 -43
- package/dist/RadioGroup/index.js +0 -15
- package/dist/RadioGroup-c31c2e81.js +0 -46
- package/dist/RecurringSelect/index.js +0 -227
- package/dist/Select/index.js +0 -26
- package/dist/Spinner/index.js +0 -12
- package/dist/Spinner-e15a3ae0.js +0 -24
- package/dist/StatusIndicator/index.js +0 -11
- package/dist/StatusIndicator-dd1f0fd5.js +0 -18
- package/dist/StatusLabel/index.js +0 -28
- package/dist/Switch/index.js +0 -13
- package/dist/Switch-57fbf575.js +0 -56
- package/dist/Table/index.js +0 -66
- package/dist/Tabs/index.js +0 -80
- package/dist/Text/index.js +0 -13
- package/dist/Toast/index.js +0 -110
- package/dist/Tooltip/index.js +0 -17
- package/dist/Tooltip-1e3abeb6.js +0 -114
- package/dist/Typography/index.js +0 -12
- package/dist/Typography-018e1471.js +0 -62
- package/dist/style-inject.es-9d2f5f4e.js +0 -30
- package/dist/tslib.es6-754e2961.js +0 -46
- /package/{.eslintrc.js → .eslintrc.cjs} +0 -0
- /package/dist/{AtlantisContext-64608897.js → AtlantisContext-k356LtVM.js} +0 -0
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
import { _ as __rest, a as __awaiter } from './tslib.es6-sBHgrKO6.js';
|
|
2
|
+
import React, { useState, useEffect, forwardRef, useRef } from 'react';
|
|
3
|
+
import { d as debounce } from './debounce-D4EqvIGN.js';
|
|
4
|
+
import classnames from 'classnames';
|
|
5
|
+
import { createPortal } from 'react-dom';
|
|
6
|
+
import { usePopper } from 'react-popper';
|
|
7
|
+
import { u as useOnKeyDown_2 } from './useOnKeyDown-DrmWnz2G.js';
|
|
8
|
+
import { u as useSafeLayoutEffect_1 } from './useSafeLayoutEffect-BQD8SqX2.js';
|
|
9
|
+
import { u as useIsMounted_2 } from './useIsMounted-CYEXH1zH.js';
|
|
10
|
+
import { T as Text } from './Text-CyaxiLeN.js';
|
|
11
|
+
import { I as Icon } from './Icon-zn-zanGs.js';
|
|
12
|
+
import { H as Heading } from './Heading-CLboCN8l.js';
|
|
13
|
+
import { I as InputText } from './InputText-DAp8GDBJ.js';
|
|
14
|
+
|
|
15
|
+
var styles = {"autocomplete":"v0Cys9vQ-NE-","options":"CX-N-e0e6og-","visible":"_4PlUaegVpkk-","option":"ucQtG0iwqbo-","active":"r8HS-ma79QE-","separator":"ydwLX44YFZc-","heading":"PvUgNoAUG7A-","icon":"DAOOFUZ1BRM-","text":"cjKJFup6hGY-","label":"hG5zNBuI2wA-","details":"_3CwjFCbhqi4-"};
|
|
16
|
+
|
|
17
|
+
var IndexChange;
|
|
18
|
+
(function (IndexChange) {
|
|
19
|
+
IndexChange[IndexChange["Previous"] = -1] = "Previous";
|
|
20
|
+
IndexChange[IndexChange["Next"] = 1] = "Next";
|
|
21
|
+
})(IndexChange || (IndexChange = {}));
|
|
22
|
+
// Adding useIsMounted is what tipped this to 13 statements.
|
|
23
|
+
// Any additions beyond useIsMounted should probably see this component refactored a bit
|
|
24
|
+
// eslint-disable-next-line max-statements
|
|
25
|
+
function Menu({ visible, options, selectedOption, onOptionSelect, attachTo, }) {
|
|
26
|
+
const [highlightedIndex, setHighlightedIndex] = useState(0);
|
|
27
|
+
const { menuRef, setMenuRef, styles: popperStyles, attributes, targetWidth, } = useRepositionMenu(attachTo, visible);
|
|
28
|
+
const detectSeparatorCondition = (option) => option.description || option.details;
|
|
29
|
+
const detectGroups = (option) => option.options;
|
|
30
|
+
const addSeparators = options.some(detectSeparatorCondition);
|
|
31
|
+
const initialHighlight = options.some(detectGroups) ? 1 : 0;
|
|
32
|
+
setupKeyListeners();
|
|
33
|
+
useEffect(() => setHighlightedIndex(initialHighlight), [options]);
|
|
34
|
+
const mounted = useIsMounted_2();
|
|
35
|
+
const menu = (React.createElement("div", Object.assign({ className: classnames(styles.options, { [styles.visible]: visible }), ref: setMenuRef, style: Object.assign(Object.assign({}, popperStyles.popper), { width: targetWidth }) }, attributes.popper), options.map((option, index) => {
|
|
36
|
+
const optionClass = classnames(styles.option, {
|
|
37
|
+
[styles.active]: index === highlightedIndex,
|
|
38
|
+
[styles.separator]: addSeparators,
|
|
39
|
+
});
|
|
40
|
+
if (isGroup(option)) {
|
|
41
|
+
return (React.createElement("div", { key: option.label, className: styles.heading },
|
|
42
|
+
React.createElement(Heading, { level: 5 }, option.label)));
|
|
43
|
+
}
|
|
44
|
+
return (React.createElement("button", { className: optionClass, key: option.value, onMouseDown: onOptionSelect.bind(undefined, option) },
|
|
45
|
+
React.createElement("div", { className: styles.icon }, isOptionSelected(selectedOption, option) && (React.createElement(Icon, { name: "checkmark", size: "small" }))),
|
|
46
|
+
React.createElement("div", { className: styles.text },
|
|
47
|
+
React.createElement("div", { className: styles.label },
|
|
48
|
+
React.createElement(Text, null, option.label),
|
|
49
|
+
option.description !== undefined && (React.createElement(Text, { variation: "subdued" }, option.description))),
|
|
50
|
+
option.details !== undefined && (React.createElement("div", { className: styles.details },
|
|
51
|
+
React.createElement(Text, null, option.details))))));
|
|
52
|
+
})));
|
|
53
|
+
return mounted.current ? createPortal(menu, document.body) : menu;
|
|
54
|
+
function setupKeyListeners() {
|
|
55
|
+
useEffect(() => {
|
|
56
|
+
var _a, _b;
|
|
57
|
+
(_b = (_a = menuRef === null || menuRef === void 0 ? void 0 : menuRef.children[highlightedIndex]) === null || _a === void 0 ? void 0 : _a.scrollIntoView) === null || _b === void 0 ? void 0 : _b.call(_a, {
|
|
58
|
+
behavior: "smooth",
|
|
59
|
+
block: "nearest",
|
|
60
|
+
inline: "start",
|
|
61
|
+
});
|
|
62
|
+
}, [highlightedIndex]);
|
|
63
|
+
useOnKeyDown_2((event) => {
|
|
64
|
+
const indexChange = arrowKeyPress(event, IndexChange.Next);
|
|
65
|
+
if (indexChange) {
|
|
66
|
+
setHighlightedIndex(Math.min(options.length - 1, highlightedIndex + indexChange));
|
|
67
|
+
}
|
|
68
|
+
}, "ArrowDown");
|
|
69
|
+
useOnKeyDown_2((event) => {
|
|
70
|
+
const indexChange = arrowKeyPress(event, IndexChange.Previous);
|
|
71
|
+
if (indexChange) {
|
|
72
|
+
setHighlightedIndex(Math.max(0, highlightedIndex + indexChange));
|
|
73
|
+
}
|
|
74
|
+
}, "ArrowUp");
|
|
75
|
+
useOnKeyDown_2((event) => {
|
|
76
|
+
if (!visible)
|
|
77
|
+
return;
|
|
78
|
+
if (isGroup(options[highlightedIndex]))
|
|
79
|
+
return;
|
|
80
|
+
event.preventDefault();
|
|
81
|
+
onOptionSelect(options[highlightedIndex]);
|
|
82
|
+
}, "Enter");
|
|
83
|
+
}
|
|
84
|
+
function arrowKeyPress(event, direction) {
|
|
85
|
+
if (!visible)
|
|
86
|
+
return;
|
|
87
|
+
event.preventDefault();
|
|
88
|
+
const requestedIndex = options[highlightedIndex + direction];
|
|
89
|
+
return requestedIndex && isGroup(requestedIndex)
|
|
90
|
+
? direction + direction
|
|
91
|
+
: direction;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
function isOptionSelected(selectedOption, option) {
|
|
95
|
+
return selectedOption && selectedOption.value === option.value;
|
|
96
|
+
}
|
|
97
|
+
function isGroup(option) {
|
|
98
|
+
if (option.options)
|
|
99
|
+
return true;
|
|
100
|
+
return false;
|
|
101
|
+
}
|
|
102
|
+
function useRepositionMenu(attachTo, visible = false) {
|
|
103
|
+
var _a;
|
|
104
|
+
const [menuRef, setMenuRef] = useState();
|
|
105
|
+
const popper = usePopper(attachTo.current, menuRef, {
|
|
106
|
+
modifiers: [
|
|
107
|
+
{ name: "offset", options: { offset: [0, 8] } },
|
|
108
|
+
{ name: "flip", options: { fallbackPlacements: ["top"] } },
|
|
109
|
+
],
|
|
110
|
+
});
|
|
111
|
+
useSafeLayoutEffect_1(() => {
|
|
112
|
+
var _a;
|
|
113
|
+
(_a = popper === null || popper === void 0 ? void 0 : popper.update) === null || _a === void 0 ? void 0 : _a.call(popper);
|
|
114
|
+
}, [visible]);
|
|
115
|
+
const targetWidth = (_a = attachTo.current) === null || _a === void 0 ? void 0 : _a.clientWidth;
|
|
116
|
+
return Object.assign(Object.assign({}, popper), { menuRef, setMenuRef, targetWidth });
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
// Max statements increased to make room for the debounce functions
|
|
120
|
+
/* eslint max-statements: ["error", 14] */
|
|
121
|
+
function AutocompleteInternal(_a, ref) {
|
|
122
|
+
var _b;
|
|
123
|
+
var { initialOptions = [], value, allowFreeForm = true, size = undefined, debounce: debounceRate = 300, onChange, getOptions, placeholder, onBlur, onFocus, validations } = _a, inputProps = __rest(_a, ["initialOptions", "value", "allowFreeForm", "size", "debounce", "onChange", "getOptions", "placeholder", "onBlur", "onFocus", "validations"]);
|
|
124
|
+
const [options, setOptions] = useState(initialOptions);
|
|
125
|
+
const [menuVisible, setMenuVisible] = useState(false);
|
|
126
|
+
const [inputText, setInputText] = useState((_b = value === null || value === void 0 ? void 0 : value.label) !== null && _b !== void 0 ? _b : "");
|
|
127
|
+
const autocompleteRef = useRef(null);
|
|
128
|
+
const delayedSearch = debounce(updateSearch, debounceRate);
|
|
129
|
+
useEffect(() => {
|
|
130
|
+
delayedSearch();
|
|
131
|
+
return delayedSearch.cancel;
|
|
132
|
+
}, [inputText]);
|
|
133
|
+
useEffect(() => {
|
|
134
|
+
var _a;
|
|
135
|
+
updateInput((_a = value === null || value === void 0 ? void 0 : value.label) !== null && _a !== void 0 ? _a : "");
|
|
136
|
+
}, [value]);
|
|
137
|
+
return (React.createElement("div", { className: styles.autocomplete, ref: autocompleteRef },
|
|
138
|
+
React.createElement(InputText, Object.assign({ ref: ref, autocomplete: false, size: size, value: inputText, onChange: handleInputChange, placeholder: placeholder, onFocus: handleInputFocus, onBlur: handleInputBlur, validations: validations }, inputProps)),
|
|
139
|
+
menuVisible && (React.createElement(Menu, { attachTo: autocompleteRef, visible: menuVisible && options.length > 0, options: options, selectedOption: value, onOptionSelect: handleMenuChange }))));
|
|
140
|
+
function updateInput(newText) {
|
|
141
|
+
setInputText(newText);
|
|
142
|
+
if (newText === "") {
|
|
143
|
+
setOptions(mapToOptions(initialOptions));
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
function updateSearch() {
|
|
147
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
148
|
+
const updatedOptions = yield getOptions(inputText);
|
|
149
|
+
const filteredOptions = updatedOptions.filter((option) => "options" in option && option.options ? option.options.length > 0 : true);
|
|
150
|
+
setOptions(mapToOptions(filteredOptions));
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
function handleMenuChange(chosenOption) {
|
|
154
|
+
onChange(chosenOption);
|
|
155
|
+
updateInput(chosenOption.label);
|
|
156
|
+
setMenuVisible(false);
|
|
157
|
+
}
|
|
158
|
+
function handleInputChange(newText) {
|
|
159
|
+
updateInput(newText);
|
|
160
|
+
if (allowFreeForm) {
|
|
161
|
+
onChange({ label: newText });
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
function handleInputBlur() {
|
|
165
|
+
setMenuVisible(false);
|
|
166
|
+
if (value == undefined || value.label !== inputText) {
|
|
167
|
+
setInputText("");
|
|
168
|
+
onChange(undefined);
|
|
169
|
+
}
|
|
170
|
+
onBlur && onBlur();
|
|
171
|
+
}
|
|
172
|
+
function handleInputFocus() {
|
|
173
|
+
setMenuVisible(true);
|
|
174
|
+
if (onFocus) {
|
|
175
|
+
onFocus();
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
function mapToOptions(items) {
|
|
180
|
+
return items.reduce(function (result, item) {
|
|
181
|
+
result = result.concat([item]);
|
|
182
|
+
if (item.options) {
|
|
183
|
+
result = result.concat(item.options);
|
|
184
|
+
}
|
|
185
|
+
return result;
|
|
186
|
+
}, []);
|
|
187
|
+
}
|
|
188
|
+
const Autocomplete = forwardRef(AutocompleteInternal);
|
|
189
|
+
|
|
190
|
+
export { Autocomplete as A };
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var React = require('react');
|
|
4
|
+
var classnames = require('classnames');
|
|
5
|
+
var Color = require('color');
|
|
6
|
+
var Icon = require('./Icon-5T1h0cSC.js');
|
|
7
|
+
|
|
8
|
+
var styles = {"avatar":"WniTNadEyPk-","large":"_8Pqn2uZpaZg-","small":"S-edTXYA-7E-","isDark":"S1iBGElfOUA-","initials":"ErPhpHHpiBQ-","smallInitials":"aC-d-mngrIc-","hasBorder":"nR0S-GzjDnQ-"};
|
|
9
|
+
|
|
10
|
+
function isDark(colorToCheck) {
|
|
11
|
+
if (colorToCheck == undefined) {
|
|
12
|
+
return false;
|
|
13
|
+
}
|
|
14
|
+
if (colorToCheck) {
|
|
15
|
+
try {
|
|
16
|
+
return Color(deconstructCssCustomProperty(colorToCheck)).isDark();
|
|
17
|
+
}
|
|
18
|
+
catch (err) {
|
|
19
|
+
console.log(err);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
return false;
|
|
23
|
+
}
|
|
24
|
+
function deconstructCssCustomProperty(color) {
|
|
25
|
+
if (!color) {
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
if (!color.toLowerCase().startsWith("var(")) {
|
|
29
|
+
return color;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Rips apart the `var(--custom-property)` into just `--custom-property`.
|
|
33
|
+
*/
|
|
34
|
+
const customProperty = color
|
|
35
|
+
.replace("var(", "")
|
|
36
|
+
.slice(0, -1)
|
|
37
|
+
.split(" ")
|
|
38
|
+
.join("");
|
|
39
|
+
return getComputedStyle(document.documentElement)
|
|
40
|
+
.getPropertyValue(customProperty)
|
|
41
|
+
.trim();
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
function Avatar({ imageUrl, name, initials, size = "base", color, }) {
|
|
45
|
+
const style = {
|
|
46
|
+
backgroundColor: color,
|
|
47
|
+
borderColor: color,
|
|
48
|
+
};
|
|
49
|
+
if (imageUrl) {
|
|
50
|
+
style.backgroundImage = `url(${imageUrl})`;
|
|
51
|
+
}
|
|
52
|
+
const shouldBeDark = color == undefined || isDark(color);
|
|
53
|
+
const className = classnames(styles.avatar, size !== "base" && styles[size], {
|
|
54
|
+
[styles.hasBorder]: imageUrl && color,
|
|
55
|
+
[styles.isDark]: shouldBeDark,
|
|
56
|
+
});
|
|
57
|
+
return (React.createElement("div", { className: className, style: style, role: imageUrl && "img", "aria-label": name }, !imageUrl && (React.createElement(Initials, { initials: initials, dark: shouldBeDark, iconSize: size }))));
|
|
58
|
+
}
|
|
59
|
+
function Initials({ initials, dark = false, iconSize = "base", }) {
|
|
60
|
+
if (!initials) {
|
|
61
|
+
return (React.createElement(Icon.Icon, { name: "person", color: dark ? "white" : "blue", size: iconSize }));
|
|
62
|
+
}
|
|
63
|
+
const className = classnames(styles.initials, {
|
|
64
|
+
[styles.smallInitials]: initials.length > 2,
|
|
65
|
+
});
|
|
66
|
+
return React.createElement("span", { className: className }, initials.substr(0, 3));
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
exports.Avatar = Avatar;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import classnames from 'classnames';
|
|
3
|
+
import Color from 'color';
|
|
4
|
+
import { I as Icon } from './Icon-zn-zanGs.js';
|
|
5
|
+
|
|
6
|
+
var styles = {"avatar":"WniTNadEyPk-","large":"_8Pqn2uZpaZg-","small":"S-edTXYA-7E-","isDark":"S1iBGElfOUA-","initials":"ErPhpHHpiBQ-","smallInitials":"aC-d-mngrIc-","hasBorder":"nR0S-GzjDnQ-"};
|
|
7
|
+
|
|
8
|
+
function isDark(colorToCheck) {
|
|
9
|
+
if (colorToCheck == undefined) {
|
|
10
|
+
return false;
|
|
11
|
+
}
|
|
12
|
+
if (colorToCheck) {
|
|
13
|
+
try {
|
|
14
|
+
return Color(deconstructCssCustomProperty(colorToCheck)).isDark();
|
|
15
|
+
}
|
|
16
|
+
catch (err) {
|
|
17
|
+
console.log(err);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
return false;
|
|
21
|
+
}
|
|
22
|
+
function deconstructCssCustomProperty(color) {
|
|
23
|
+
if (!color) {
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
if (!color.toLowerCase().startsWith("var(")) {
|
|
27
|
+
return color;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Rips apart the `var(--custom-property)` into just `--custom-property`.
|
|
31
|
+
*/
|
|
32
|
+
const customProperty = color
|
|
33
|
+
.replace("var(", "")
|
|
34
|
+
.slice(0, -1)
|
|
35
|
+
.split(" ")
|
|
36
|
+
.join("");
|
|
37
|
+
return getComputedStyle(document.documentElement)
|
|
38
|
+
.getPropertyValue(customProperty)
|
|
39
|
+
.trim();
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
function Avatar({ imageUrl, name, initials, size = "base", color, }) {
|
|
43
|
+
const style = {
|
|
44
|
+
backgroundColor: color,
|
|
45
|
+
borderColor: color,
|
|
46
|
+
};
|
|
47
|
+
if (imageUrl) {
|
|
48
|
+
style.backgroundImage = `url(${imageUrl})`;
|
|
49
|
+
}
|
|
50
|
+
const shouldBeDark = color == undefined || isDark(color);
|
|
51
|
+
const className = classnames(styles.avatar, size !== "base" && styles[size], {
|
|
52
|
+
[styles.hasBorder]: imageUrl && color,
|
|
53
|
+
[styles.isDark]: shouldBeDark,
|
|
54
|
+
});
|
|
55
|
+
return (React.createElement("div", { className: className, style: style, role: imageUrl && "img", "aria-label": name }, !imageUrl && (React.createElement(Initials, { initials: initials, dark: shouldBeDark, iconSize: size }))));
|
|
56
|
+
}
|
|
57
|
+
function Initials({ initials, dark = false, iconSize = "base", }) {
|
|
58
|
+
if (!initials) {
|
|
59
|
+
return (React.createElement(Icon, { name: "person", color: dark ? "white" : "blue", size: iconSize }));
|
|
60
|
+
}
|
|
61
|
+
const className = classnames(styles.initials, {
|
|
62
|
+
[styles.smallInitials]: initials.length > 2,
|
|
63
|
+
});
|
|
64
|
+
return React.createElement("span", { className: className }, initials.substr(0, 3));
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export { Avatar as A };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var Banner = require('../Banner-aDyK7ryS.js');
|
|
4
|
+
require('react');
|
|
5
|
+
require('classnames');
|
|
6
|
+
require('../useResizeObserver-8FUujV3_.js');
|
|
7
|
+
require('../_commonjsHelpers-DAuvc7SO.js');
|
|
8
|
+
require('../debounce-BIIhPHgB.js');
|
|
9
|
+
require('../isObjectLike-BlLIuFVH.js');
|
|
10
|
+
require('../isSymbol-BxsxMlnF.js');
|
|
11
|
+
require('../BannerIcon-CR5zIp9W.js');
|
|
12
|
+
require('../Icon-5T1h0cSC.js');
|
|
13
|
+
require('@jobber/design');
|
|
14
|
+
require('../Text-C0pm--c0.js');
|
|
15
|
+
require('../Typography-BCKgZ_gv.js');
|
|
16
|
+
require('../Button-CrxxoYQF.js');
|
|
17
|
+
require('react-router-dom');
|
|
18
|
+
require('../ButtonDismiss-mNxpZX9b.js');
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
exports.Banner = Banner.Banner;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export { B as Banner } from '../Banner-DXiLDPyP.js';
|
|
2
|
+
import 'react';
|
|
3
|
+
import 'classnames';
|
|
4
|
+
import '../useResizeObserver-CatrBt7i.js';
|
|
5
|
+
import '../_commonjsHelpers-jBnpF2iq.js';
|
|
6
|
+
import '../debounce-D4EqvIGN.js';
|
|
7
|
+
import '../isObjectLike-CAV2cIfa.js';
|
|
8
|
+
import '../isSymbol-C2J0yjld.js';
|
|
9
|
+
import '../BannerIcon-DaWJs7AC.js';
|
|
10
|
+
import '../Icon-zn-zanGs.js';
|
|
11
|
+
import '@jobber/design';
|
|
12
|
+
import '../Text-CyaxiLeN.js';
|
|
13
|
+
import '../Typography-C0YR4XBl.js';
|
|
14
|
+
import '../Button-DzwBVzGv.js';
|
|
15
|
+
import 'react-router-dom';
|
|
16
|
+
import '../ButtonDismiss-D77VYrSx.js';
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import React, { useState } from 'react';
|
|
2
|
+
import classnames from 'classnames';
|
|
3
|
+
import { u as useResizeObserver } from './useResizeObserver-CatrBt7i.js';
|
|
4
|
+
import { s as styles, B as BannerIcon } from './BannerIcon-DaWJs7AC.js';
|
|
5
|
+
import { T as Text } from './Text-CyaxiLeN.js';
|
|
6
|
+
import { B as Button } from './Button-DzwBVzGv.js';
|
|
7
|
+
import { B as ButtonDismiss } from './ButtonDismiss-D77VYrSx.js';
|
|
8
|
+
|
|
9
|
+
function Banner({ children, type, primaryAction, dismissible = true, icon, onDismiss, }) {
|
|
10
|
+
const [showBanner, setShowBanner] = useState(true);
|
|
11
|
+
const bannerIcon = icon || getBannerIcon(type);
|
|
12
|
+
const bannerWidths = {
|
|
13
|
+
small: 320,
|
|
14
|
+
medium: 480,
|
|
15
|
+
};
|
|
16
|
+
const [bannerRef, { width: bannerWidth = bannerWidths.small }] = useResizeObserver.useResizeObserver({
|
|
17
|
+
widths: bannerWidths,
|
|
18
|
+
});
|
|
19
|
+
if (primaryAction != undefined) {
|
|
20
|
+
primaryAction = Object.assign({
|
|
21
|
+
size: "small",
|
|
22
|
+
type: "tertiary",
|
|
23
|
+
variation: type === "notice" ? "learning" : "work",
|
|
24
|
+
}, primaryAction);
|
|
25
|
+
}
|
|
26
|
+
const bannerClassNames = classnames(styles.banner, {
|
|
27
|
+
[styles.medium]: bannerWidth >= bannerWidths.medium,
|
|
28
|
+
});
|
|
29
|
+
if (!showBanner)
|
|
30
|
+
return null;
|
|
31
|
+
return (React.createElement("div", { className: bannerClassNames, ref: bannerRef, role: type === "error" ? "alert" : "status" },
|
|
32
|
+
React.createElement("div", { className: styles.bannerContent },
|
|
33
|
+
bannerIcon && React.createElement(BannerIcon, { icon: bannerIcon, type: type }),
|
|
34
|
+
React.createElement("div", { className: styles.bannerChildren },
|
|
35
|
+
React.createElement(BannerChildren, null, children)),
|
|
36
|
+
primaryAction && (React.createElement("div", { className: styles.bannerAction },
|
|
37
|
+
React.createElement(Button, Object.assign({}, primaryAction))))),
|
|
38
|
+
dismissible && (React.createElement("div", { className: styles.closeButton },
|
|
39
|
+
React.createElement(ButtonDismiss, { ariaLabel: "Dismiss notification", onClick: handleClose })))));
|
|
40
|
+
function handleClose() {
|
|
41
|
+
setShowBanner(!showBanner);
|
|
42
|
+
onDismiss && onDismiss();
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
function getBannerIcon(type) {
|
|
46
|
+
switch (type) {
|
|
47
|
+
case "notice":
|
|
48
|
+
return "starburst";
|
|
49
|
+
case "success":
|
|
50
|
+
return "checkmark";
|
|
51
|
+
case "warning":
|
|
52
|
+
return "help";
|
|
53
|
+
case "error":
|
|
54
|
+
return "alert";
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
function BannerChildren({ children, }) {
|
|
58
|
+
if (!children)
|
|
59
|
+
return React.createElement(React.Fragment, null);
|
|
60
|
+
if (children && typeof children === "string") {
|
|
61
|
+
return React.createElement(Text, null, children);
|
|
62
|
+
}
|
|
63
|
+
return React.createElement(React.Fragment, null, children);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export { Banner as B };
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var React = require('react');
|
|
4
|
+
var classnames = require('classnames');
|
|
5
|
+
var useResizeObserver = require('./useResizeObserver-8FUujV3_.js');
|
|
6
|
+
var BannerIcon = require('./BannerIcon-CR5zIp9W.js');
|
|
7
|
+
var Text = require('./Text-C0pm--c0.js');
|
|
8
|
+
var Button = require('./Button-CrxxoYQF.js');
|
|
9
|
+
var ButtonDismiss = require('./ButtonDismiss-mNxpZX9b.js');
|
|
10
|
+
|
|
11
|
+
function Banner({ children, type, primaryAction, dismissible = true, icon, onDismiss, }) {
|
|
12
|
+
const [showBanner, setShowBanner] = React.useState(true);
|
|
13
|
+
const bannerIcon = icon || getBannerIcon(type);
|
|
14
|
+
const bannerWidths = {
|
|
15
|
+
small: 320,
|
|
16
|
+
medium: 480,
|
|
17
|
+
};
|
|
18
|
+
const [bannerRef, { width: bannerWidth = bannerWidths.small }] = useResizeObserver.useResizeObserver.useResizeObserver({
|
|
19
|
+
widths: bannerWidths,
|
|
20
|
+
});
|
|
21
|
+
if (primaryAction != undefined) {
|
|
22
|
+
primaryAction = Object.assign({
|
|
23
|
+
size: "small",
|
|
24
|
+
type: "tertiary",
|
|
25
|
+
variation: type === "notice" ? "learning" : "work",
|
|
26
|
+
}, primaryAction);
|
|
27
|
+
}
|
|
28
|
+
const bannerClassNames = classnames(BannerIcon.styles.banner, {
|
|
29
|
+
[BannerIcon.styles.medium]: bannerWidth >= bannerWidths.medium,
|
|
30
|
+
});
|
|
31
|
+
if (!showBanner)
|
|
32
|
+
return null;
|
|
33
|
+
return (React.createElement("div", { className: bannerClassNames, ref: bannerRef, role: type === "error" ? "alert" : "status" },
|
|
34
|
+
React.createElement("div", { className: BannerIcon.styles.bannerContent },
|
|
35
|
+
bannerIcon && React.createElement(BannerIcon.BannerIcon, { icon: bannerIcon, type: type }),
|
|
36
|
+
React.createElement("div", { className: BannerIcon.styles.bannerChildren },
|
|
37
|
+
React.createElement(BannerChildren, null, children)),
|
|
38
|
+
primaryAction && (React.createElement("div", { className: BannerIcon.styles.bannerAction },
|
|
39
|
+
React.createElement(Button.Button, Object.assign({}, primaryAction))))),
|
|
40
|
+
dismissible && (React.createElement("div", { className: BannerIcon.styles.closeButton },
|
|
41
|
+
React.createElement(ButtonDismiss.ButtonDismiss, { ariaLabel: "Dismiss notification", onClick: handleClose })))));
|
|
42
|
+
function handleClose() {
|
|
43
|
+
setShowBanner(!showBanner);
|
|
44
|
+
onDismiss && onDismiss();
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
function getBannerIcon(type) {
|
|
48
|
+
switch (type) {
|
|
49
|
+
case "notice":
|
|
50
|
+
return "starburst";
|
|
51
|
+
case "success":
|
|
52
|
+
return "checkmark";
|
|
53
|
+
case "warning":
|
|
54
|
+
return "help";
|
|
55
|
+
case "error":
|
|
56
|
+
return "alert";
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
function BannerChildren({ children, }) {
|
|
60
|
+
if (!children)
|
|
61
|
+
return React.createElement(React.Fragment, null);
|
|
62
|
+
if (children && typeof children === "string") {
|
|
63
|
+
return React.createElement(Text.Text, null, children);
|
|
64
|
+
}
|
|
65
|
+
return React.createElement(React.Fragment, null, children);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
exports.Banner = Banner;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var React = require('react');
|
|
4
|
+
var classnames = require('classnames');
|
|
5
|
+
var Icon = require('./Icon-5T1h0cSC.js');
|
|
6
|
+
|
|
7
|
+
var styles = {"banner":"meuT8gYQPJU-","bannerChildren":"y4BapyZr-fo-","bannerContent":"_6v1woNSLEvc-","medium":"bocgLmEhcTU-","bannerAction":"rtNjEzmABX4-","closeButton":"lunQ5SOfyLg-","iconWrapper":"SG8xSJADp2k-"};
|
|
8
|
+
|
|
9
|
+
var iconStyles = {"success":"_5-B0X5vn0eA-","error":"r3hqur-vxwI-","warning":"-c8TbjyV5YU-","notice":"bMc69fYWngM-"};
|
|
10
|
+
|
|
11
|
+
function BannerIcon({ icon, type }) {
|
|
12
|
+
return (React.createElement("span", { className: classnames(styles.iconWrapper, iconStyles[type]) },
|
|
13
|
+
React.createElement(Icon.Icon, { name: icon, color: "surface", size: "small" })));
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
exports.BannerIcon = BannerIcon;
|
|
17
|
+
exports.styles = styles;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import classnames from 'classnames';
|
|
3
|
+
import { I as Icon } from './Icon-zn-zanGs.js';
|
|
4
|
+
|
|
5
|
+
var styles = {"banner":"meuT8gYQPJU-","bannerChildren":"y4BapyZr-fo-","bannerContent":"_6v1woNSLEvc-","medium":"bocgLmEhcTU-","bannerAction":"rtNjEzmABX4-","closeButton":"lunQ5SOfyLg-","iconWrapper":"SG8xSJADp2k-"};
|
|
6
|
+
|
|
7
|
+
var iconStyles = {"success":"_5-B0X5vn0eA-","error":"r3hqur-vxwI-","warning":"-c8TbjyV5YU-","notice":"bMc69fYWngM-"};
|
|
8
|
+
|
|
9
|
+
function BannerIcon({ icon, type }) {
|
|
10
|
+
return (React.createElement("span", { className: classnames(styles.iconWrapper, iconStyles[type]) },
|
|
11
|
+
React.createElement(Icon, { name: icon, color: "surface", size: "small" })));
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export { BannerIcon as B, styles as s };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { formatCurrency } from '@jobber/formatters';
|
|
3
|
+
import classnames from 'classnames';
|
|
4
|
+
|
|
5
|
+
var styles$1 = {"table":"gFY9BLPF808-","row":"NZbmlKVakYo-","header":"_72-uJqZ5jGE-","footer":"fEVdTCw9eOU-"};
|
|
6
|
+
|
|
7
|
+
function Table({ children }) {
|
|
8
|
+
return React.createElement("table", { className: styles$1.table }, children);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
function Row({ children }) {
|
|
12
|
+
return React.createElement("tr", { className: styles$1.row }, children);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
var styles = {"cell":"xibCW9zSMXU-","left":"SD8FBgvYMQg-","center":"_5VZpkU0Gu40-","right":"DNPkTtpA-8g-","numeric":"_5EfJs7A9kEg-"};
|
|
16
|
+
|
|
17
|
+
function Cell({ children, align = "left" }) {
|
|
18
|
+
const className = classnames(styles.cell, styles[align]);
|
|
19
|
+
return React.createElement("td", { className: className }, children);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
function CellNumeric({ value }) {
|
|
23
|
+
return (React.createElement(Cell, { align: "right" },
|
|
24
|
+
React.createElement("span", { className: styles.numeric }, value.toString())));
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
function CellCurrency({ value, currency = undefined, }) {
|
|
28
|
+
return React.createElement(CellNumeric, { value: formatCurrency(value, currency) });
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
function Header({ children }) {
|
|
32
|
+
return (React.createElement("thead", { className: styles$1.header },
|
|
33
|
+
React.createElement(Row, null, children)));
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
function Footer({ children }) {
|
|
37
|
+
return (React.createElement("tfoot", { className: styles$1.footer },
|
|
38
|
+
React.createElement(Row, null, children)));
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
function Body({ children }) {
|
|
42
|
+
return React.createElement("tbody", null, children);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export { Body as B, Cell as C, Footer as F, Header as H, Row as R, Table as T, CellNumeric as a, CellCurrency as b };
|