@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
|
@@ -1,182 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var React = require('react');
|
|
6
|
-
var classnames = require('classnames');
|
|
7
|
-
var styleInject_es = require('../style-inject.es-9d2f5f4e.js');
|
|
8
|
-
var Checkbox = require('../Checkbox-2ea61ab4.js');
|
|
9
|
-
var Text = require('../Text-fdc65f0b.js');
|
|
10
|
-
var Icon = require('../Icon-405a216c.js');
|
|
11
|
-
require('../tslib.es6-754e2961.js');
|
|
12
|
-
require('react-hook-form');
|
|
13
|
-
require('../Typography-018e1471.js');
|
|
14
|
-
require('@jobber/design');
|
|
15
|
-
|
|
16
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
17
|
-
|
|
18
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
19
|
-
var classnames__default = /*#__PURE__*/_interopDefaultLegacy(classnames);
|
|
20
|
-
|
|
21
|
-
var css_248z$1 = ".D-J03az6XL4- {\n position: relative;\n width: 100%;\n}\n\n.D-J03az6XL4- * {\n box-sizing: border-box;\n}\n\n.EzNdHgwsT40- {\n --field--height: var(--space-largest);\n\n --field--padding-top: calc(var(--space-base) - var(--space-smallest));\n --field--padding-bottom: calc(var(--space-base) - var(--space-smallest));\n --field--padding-left: var(--space-base);\n --field--padding-right: var(--space-base);\n\n display: -ms-flexbox;\n\n display: flex;\n -ms-flex-direction: row;\n flex-direction: row;\n -ms-flex-pack: justify;\n justify-content: space-between;\n -ms-flex-align: center;\n align-items: center;\n width: 100%;\n height: calc(16px * 3);\n height: var(--field--height);\n padding-top: calc((16px * 1) - (16px / 8));\n padding-top: calc(calc(16px * 1) - calc(16px / 8));\n padding-top: var(--field--padding-top);\n padding-bottom: calc((16px * 1) - (16px / 8));\n padding-bottom: calc(calc(16px * 1) - calc(16px / 8));\n padding-bottom: var(--field--padding-bottom);\n padding-left: calc(16px * 1);\n padding-left: var(--field--padding-left);\n padding-right: calc(16px * 1);\n padding-right: var(--field--padding-right);\n border: calc(16px / 16) solid rgb(218, 224, 226);\n border: var(--border-base) solid var(--color-border);\n border-radius: 8px;\n border-radius: var(--radius-base);\n}\n\n.EzNdHgwsT40- p {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.D-J03az6XL4-:hover,\n.D-J03az6XL4-.EzNdHgwsT40- {\n cursor: pointer;\n caret-color: transparent;\n}\n\n.EzNdHgwsT40-:focus,\n.EzNdHgwsT40-.bu7HWKRu6HI- {\n box-shadow: 0px 0px 0px calc(16px / 8) rgba(255, 255, 255, 1),\n 0px 0px 0px calc(16px / 4) rgb(131, 151, 160);\n box-shadow: var(--shadow-focus);\n outline: none;\n}\n\n.eQ6yfQg6zLc- {\n --field--padding-left: calc(var(--space-base) - var(--space-smaller));\n --field--padding-right: calc(var(--space-base) - var(--space-smaller));\n --field--height: calc(var(--space-larger) + var(--space-smaller));\n}\n\n.pM-ts4-QMZY- {\n --field--padding-left: var(--space-large);\n --field--padding-right: var(--space-large);\n --field--height: calc(var(--space-extravagant));\n}\n";
|
|
22
|
-
var styles$1 = {"multiSelectContainer":"D-J03az6XL4-","multiSelect":"EzNdHgwsT40-","active":"bu7HWKRu6HI-","small":"eQ6yfQg6zLc-","large":"pM-ts4-QMZY-"};
|
|
23
|
-
styleInject_es.styleInject(css_248z$1);
|
|
24
|
-
|
|
25
|
-
var css_248z = "._0SStdD4KRHs- {\n display: -ms-flexbox;\n display: flex;\n position: absolute;\n z-index: 6;\n z-index: var(--elevation-menu);\n width: 100%;\n max-height: calc((16px * 4) * 5);\n max-height: calc(calc(16px * 4) * 5);\n max-height: calc(var(--space-extravagant) * 5);\n box-shadow: 0px calc(16px / 16) calc(16px / 4) 0px\n rgba(0, 0, 0, 0.1),\n 0px calc(16px / 4) 12px 0px rgba(0, 0, 0, 0.05);\n box-shadow: var(--shadow-base);\n margin: 0;\n padding: 0;\n border: calc(16px / 16) solid rgb(218, 224, 226);\n border: var(--border-base) solid var(--color-border);\n border-radius: calc(8px * 2);\n border-radius: var(--radius-large);\n overflow: auto;\n background-color: rgba(255, 255, 255, 1);\n background-color: var(--color-surface);\n -ms-flex-direction: column;\n flex-direction: column;\n scroll-behavior: smooth;\n}\n\n._0SStdD4KRHs- li {\n list-style: none;\n}\n\n.mFSgwOQZJm0- {\n display: -ms-flexbox;\n display: flex;\n width: 100%;\n padding: calc(16px / 2) calc(16px * 1);\n padding: var(--space-small) var(--space-base);\n cursor: pointer;\n transition: all 200ms;\n transition: all var(--timing-base);\n}\n\n.mFSgwOQZJm0-:focus,\n.mFSgwOQZJm0-.SepF4gvOxq8- {\n background-color: rgb(241, 239, 233);\n background-color: var(--color-surface--hover);\n outline-color: rgb(131, 151, 160);\n outline-color: var(--color-focus);\n}\n";
|
|
26
|
-
var styles = {"dropDownMenuContainer":"_0SStdD4KRHs-","option":"mFSgwOQZJm0-","active":"SepF4gvOxq8-"};
|
|
27
|
-
styleInject_es.styleInject(css_248z);
|
|
28
|
-
|
|
29
|
-
function DropDownMenu({ options, setOptions }) {
|
|
30
|
-
const [highlightedIndex, setHighlightedIndex] = React.useState(0);
|
|
31
|
-
const menuDiv = React.useRef();
|
|
32
|
-
const handleOptionClick = React.useCallback((clickedOption) => {
|
|
33
|
-
setOptions(current => current.map(option => {
|
|
34
|
-
if (option.label == clickedOption.label) {
|
|
35
|
-
return Object.assign(Object.assign({}, option), { checked: !clickedOption.checked });
|
|
36
|
-
}
|
|
37
|
-
return option;
|
|
38
|
-
}));
|
|
39
|
-
}, []);
|
|
40
|
-
function handleOptionHover(event, index) {
|
|
41
|
-
event.preventDefault();
|
|
42
|
-
setHighlightedIndex(index);
|
|
43
|
-
}
|
|
44
|
-
function handleOptionFocus(index) {
|
|
45
|
-
setHighlightedIndex(index);
|
|
46
|
-
if (menuDiv.current) {
|
|
47
|
-
const option = menuDiv.current.children[index].querySelector("input");
|
|
48
|
-
option === null || option === void 0 ? void 0 : option.focus();
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
function scrollMenuIfItemNotInView(menuDivElement, direction) {
|
|
52
|
-
const itemDiv = menuDivElement.querySelector(`:nth-child(${highlightedIndex + 1})`);
|
|
53
|
-
if (!itemDiv)
|
|
54
|
-
return;
|
|
55
|
-
const menuTop = menuDivElement.getBoundingClientRect().top;
|
|
56
|
-
const { top: itemTop, height: itemHeight, bottom: itemBottom, } = itemDiv.getBoundingClientRect();
|
|
57
|
-
const itemTrueBottom = itemBottom + itemHeight;
|
|
58
|
-
const menuBottom = menuDivElement.getBoundingClientRect().bottom;
|
|
59
|
-
if (direction == "up" && itemTop - itemHeight < menuTop) {
|
|
60
|
-
menuDivElement.scrollTop -= itemHeight;
|
|
61
|
-
}
|
|
62
|
-
else if (direction == "down" && itemTrueBottom > menuBottom) {
|
|
63
|
-
menuDivElement.scrollTop += itemHeight;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
function handleKeyDown(event) {
|
|
67
|
-
const { key, metaKey, ctrlKey } = event;
|
|
68
|
-
if (metaKey || ctrlKey)
|
|
69
|
-
return;
|
|
70
|
-
switch (key) {
|
|
71
|
-
case "Enter": {
|
|
72
|
-
if (highlightedIndex >= 0) {
|
|
73
|
-
handleOptionClick(options[highlightedIndex]);
|
|
74
|
-
}
|
|
75
|
-
break;
|
|
76
|
-
}
|
|
77
|
-
case "ArrowDown": {
|
|
78
|
-
handlePressDown(event);
|
|
79
|
-
break;
|
|
80
|
-
}
|
|
81
|
-
case "ArrowUp": {
|
|
82
|
-
handlePressUp(event);
|
|
83
|
-
break;
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
React.useEffect(() => {
|
|
88
|
-
// focus first option
|
|
89
|
-
handleOptionFocus(0);
|
|
90
|
-
}, [menuDiv]);
|
|
91
|
-
return (React__default["default"].createElement("ul", { "data-testid": "dropdown-menu", className: styles.dropDownMenuContainer, ref: menuDiv, onKeyDown: handleKeyDown }, options.map((option, index) => {
|
|
92
|
-
const optionClass = classnames__default["default"](styles.option, {
|
|
93
|
-
[styles.active]: index === highlightedIndex,
|
|
94
|
-
});
|
|
95
|
-
return (React__default["default"].createElement("li", { key: `${index}-${option.label}`, className: optionClass, onClick: event => {
|
|
96
|
-
event.stopPropagation();
|
|
97
|
-
event.preventDefault();
|
|
98
|
-
handleOptionClick(option);
|
|
99
|
-
}, onMouseOver: e => handleOptionHover(e, index) },
|
|
100
|
-
React__default["default"].createElement(Checkbox.Checkbox, { label: option.label, checked: option.checked, onFocus: () => setHighlightedIndex(index) })));
|
|
101
|
-
})));
|
|
102
|
-
function handlePressUp(event) {
|
|
103
|
-
event.preventDefault();
|
|
104
|
-
const newIndex = Math.max(0, highlightedIndex - 1);
|
|
105
|
-
handleOptionFocus(newIndex);
|
|
106
|
-
scrollMenuIfItemNotInView(menuDiv.current, "up");
|
|
107
|
-
}
|
|
108
|
-
function handlePressDown(event) {
|
|
109
|
-
event.preventDefault();
|
|
110
|
-
const newIndex = Math.min(options.length - 1, highlightedIndex + 1);
|
|
111
|
-
handleOptionFocus(newIndex);
|
|
112
|
-
scrollMenuIfItemNotInView(menuDiv.current, "down");
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
// eslint-disable-next-line max-statements
|
|
117
|
-
function MultiSelect({ defaultLabel, allSelectedLabel, options, onOptionsChange, size, }) {
|
|
118
|
-
const [label, setLabel] = React.useState(defaultLabel);
|
|
119
|
-
const [menuVisible, setMenuVisible] = React.useState(false);
|
|
120
|
-
const [focused, setFocused] = React.useState(false);
|
|
121
|
-
const multiSelectContainer = React.useRef();
|
|
122
|
-
const multiSelectRef = React.useRef();
|
|
123
|
-
const multiSelectClass = classnames__default["default"](styles$1.multiSelect, {
|
|
124
|
-
[styles$1.active]: menuVisible,
|
|
125
|
-
[styles$1.large]: size === "large",
|
|
126
|
-
[styles$1.small]: size === "small",
|
|
127
|
-
});
|
|
128
|
-
function handleMenuVisibility() {
|
|
129
|
-
multiSelectRef.current.focus();
|
|
130
|
-
setMenuVisible(!menuVisible);
|
|
131
|
-
}
|
|
132
|
-
const handleClickOutside = (e) => {
|
|
133
|
-
var _a;
|
|
134
|
-
if (!((_a = multiSelectContainer === null || multiSelectContainer === void 0 ? void 0 : multiSelectContainer.current) === null || _a === void 0 ? void 0 : _a.contains(e.target))) {
|
|
135
|
-
setMenuVisible(false);
|
|
136
|
-
}
|
|
137
|
-
};
|
|
138
|
-
function handleKeydown(event) {
|
|
139
|
-
const { key, metaKey, ctrlKey } = event;
|
|
140
|
-
if (metaKey || ctrlKey)
|
|
141
|
-
return;
|
|
142
|
-
switch (key) {
|
|
143
|
-
case "Enter":
|
|
144
|
-
case " ": {
|
|
145
|
-
if (focused) {
|
|
146
|
-
setMenuVisible(!menuVisible);
|
|
147
|
-
}
|
|
148
|
-
break;
|
|
149
|
-
}
|
|
150
|
-
case "Escape": {
|
|
151
|
-
multiSelectRef.current.focus();
|
|
152
|
-
setMenuVisible(false);
|
|
153
|
-
break;
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
React.useEffect(() => {
|
|
158
|
-
document.addEventListener("mousedown", handleClickOutside);
|
|
159
|
-
return () => document.removeEventListener("mousedown", handleClickOutside);
|
|
160
|
-
});
|
|
161
|
-
React.useEffect(() => {
|
|
162
|
-
const selected = options.filter(option => option.checked);
|
|
163
|
-
if (selected.length === 0) {
|
|
164
|
-
setLabel(defaultLabel);
|
|
165
|
-
}
|
|
166
|
-
else if (selected.length == options.length) {
|
|
167
|
-
setLabel(allSelectedLabel);
|
|
168
|
-
}
|
|
169
|
-
else {
|
|
170
|
-
const selectedLabels = [];
|
|
171
|
-
selected.forEach(option => selectedLabels.push(option.label));
|
|
172
|
-
setLabel(selectedLabels.join(", "));
|
|
173
|
-
}
|
|
174
|
-
}, [options]);
|
|
175
|
-
return (React__default["default"].createElement("div", { ref: multiSelectContainer, className: styles$1.multiSelectContainer, onKeyDown: handleKeydown },
|
|
176
|
-
React__default["default"].createElement("div", { "data-testid": "multi-select", className: multiSelectClass, onClick: handleMenuVisibility, onFocus: () => setFocused(true), onBlur: () => setFocused(false), tabIndex: 0, ref: multiSelectRef, role: "button", "aria-label": `${defaultLabel}: ${label}`, "aria-multiselectable": true, "aria-haspopup": true },
|
|
177
|
-
React__default["default"].createElement(Text.Text, null, label),
|
|
178
|
-
React__default["default"].createElement(Icon.Icon, { name: "arrowDown" })),
|
|
179
|
-
menuVisible && (React__default["default"].createElement(DropDownMenu, { options: options, setOptions: onOptionsChange }))));
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
exports.MultiSelect = MultiSelect;
|
package/dist/Option-8faed3bf.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var React = require('react');
|
|
4
|
-
var FormField = require('./FormField-5134bf0e.js');
|
|
5
|
-
|
|
6
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
7
|
-
|
|
8
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
9
|
-
|
|
10
|
-
function Select(props) {
|
|
11
|
-
return React__default["default"].createElement(FormField.FormField, Object.assign({ type: "select" }, props));
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
function SelectOption({ children, disabled, value }) {
|
|
15
|
-
return (React__default["default"].createElement("option", { disabled: disabled, value: value }, children));
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
exports.Select = Select;
|
|
19
|
-
exports.SelectOption = SelectOption;
|
package/dist/Page/index.js
DELETED
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var React = require('react');
|
|
6
|
-
var classnames = require('classnames');
|
|
7
|
-
var jobberHooks = require('@jobber/hooks/useResizeObserver');
|
|
8
|
-
var styleInject_es = require('../style-inject.es-9d2f5f4e.js');
|
|
9
|
-
var Heading = require('../Heading-d025ffbb.js');
|
|
10
|
-
var Text = require('../Text-fdc65f0b.js');
|
|
11
|
-
var Content = require('../Content-e3f7b6fc.js');
|
|
12
|
-
var Markdown = require('../Markdown-8150d535.js');
|
|
13
|
-
var Button = require('../Button-bb77a513.js');
|
|
14
|
-
var Menu = require('../Menu-f9fb99bb.js');
|
|
15
|
-
var Emphasis = require('../Emphasis-2bbe4da6.js');
|
|
16
|
-
require('../Typography-018e1471.js');
|
|
17
|
-
require('react-markdown');
|
|
18
|
-
require('react-router-dom');
|
|
19
|
-
require('../Icon-405a216c.js');
|
|
20
|
-
require('@jobber/design');
|
|
21
|
-
require('framer-motion');
|
|
22
|
-
require('@jobber/hooks/useOnKeyDown');
|
|
23
|
-
require('@jobber/hooks/useRefocusOnActivator');
|
|
24
|
-
require('@jobber/hooks/useSafeLayoutEffect');
|
|
25
|
-
|
|
26
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
27
|
-
|
|
28
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
29
|
-
var classnames__default = /*#__PURE__*/_interopDefaultLegacy(classnames);
|
|
30
|
-
|
|
31
|
-
var css_248z = ".pVEdXlwstrc- {\n width: 100%;\n box-sizing: border-box;\n padding: calc(16px * 1);\n padding: var(--space-base);\n}\n\n@media (min-width: 768px) {\n\n.pVEdXlwstrc- {\n padding: calc(16px * 1.5);\n padding: var(--space-large);\n}\n }\n\n@media (--medium-screens-and-up) {\n\n.pVEdXlwstrc- {\n padding: calc(16px * 1.5);\n padding: var(--space-large);\n}\n }\n\n._9r84iz--C5M- {\n max-width: none;\n}\n\n._0LO26JFXU9g- {\n max-width: calc(16px * 80);\n max-width: calc(var(--base-unit) * 80);\n}\n\n.KiMIF8eFbuE- {\n max-width: calc(16px * 64);\n max-width: calc(var(--base-unit) * 64);\n}\n\n.GCeQrLFyml4- h1 {\n -ms-flex: 0 1 auto;\n flex: 0 1 auto;\n margin-bottom: calc(16px * 1);\n margin-bottom: var(--space-base);\n}\n\n.GCeQrLFyml4- > .KP-BTjB82iQ- {\n -ms-flex: 1 0 auto;\n flex: 1 0 auto;\n}\n\n.GCeQrLFyml4-.GuFU-PgC1j4-,\n.GCeQrLFyml4-.qiwlkB5pxkA- {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n -ms-flex-pack: justify;\n justify-content: space-between;\n}\n\n.GCeQrLFyml4-.CbPnpIk7-EE- .KP-BTjB82iQ- {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n -ms-flex-pack: justify;\n justify-content: space-between;\n}\n\n.GCeQrLFyml4-.qiwlkB5pxkA- .KP-BTjB82iQ-,\n.GCeQrLFyml4-.GuFU-PgC1j4- .KP-BTjB82iQ- {\n -ms-flex-wrap: nowrap;\n flex-wrap: nowrap;\n}\n\n.GCeQrLFyml4-.qiwlkB5pxkA- .KP-BTjB82iQ- {\n -ms-flex-pack: end;\n justify-content: flex-end;\n}\n\n.E5FEsck9zwg- {\n -ms-flex: 0 0 100%;\n flex: 0 0 100%;\n margin-bottom: calc(16px / 2);\n margin-bottom: var(--space-small);\n}\n\n.Sn3-wJuNCqk- {\n margin-top: calc(16px / 2);\n margin-top: var(--space-small);\n -ms-flex: 1;\n flex: 1;\n}\n\n.Sn3-wJuNCqk- > div {\n width: 100%;\n}\n\n.GCeQrLFyml4-.CbPnpIk7-EE- .Sn3-wJuNCqk- {\n margin-top: 0;\n}\n\n.GCeQrLFyml4-.qiwlkB5pxkA- .E5FEsck9zwg-,\n.GCeQrLFyml4-.qiwlkB5pxkA- .Sn3-wJuNCqk- {\n margin: 0;\n -ms-flex: 0 auto;\n flex: 0 auto;\n}\n\n.GCeQrLFyml4-.qiwlkB5pxkA- .Sn3-wJuNCqk- {\n margin-left: calc(16px / 2);\n margin-left: var(--space-small);\n}\n\n.GCeQrLFyml4-.CbPnpIk7-EE- .Sn3-wJuNCqk- + .Sn3-wJuNCqk- {\n margin-left: calc(16px / 2);\n margin-left: var(--space-small);\n}\n\n.GCeQrLFyml4- ._9ZKFDK2jL80- {\n margin-bottom: calc(16px * 1);\n margin-bottom: var(--space-base);\n}\n";
|
|
32
|
-
var styles = {"page":"pVEdXlwstrc-","fill":"_9r84iz--C5M-","standard":"_0LO26JFXU9g-","narrow":"KiMIF8eFbuE-","titleBar":"GCeQrLFyml4-","actionGroup":"KP-BTjB82iQ-","large":"GuFU-PgC1j4-","medium":"qiwlkB5pxkA-","small":"CbPnpIk7-EE-","primaryAction":"E5FEsck9zwg-","actionButton":"Sn3-wJuNCqk-","subtitle":"_9ZKFDK2jL80-"};
|
|
33
|
-
styleInject_es.styleInject(css_248z);
|
|
34
|
-
|
|
35
|
-
// eslint-disable-next-line max-statements
|
|
36
|
-
function Page({ title, intro, externalIntroLinks, subtitle, children, width = "standard", primaryAction, secondaryAction, moreActionsMenu = [], }) {
|
|
37
|
-
const pageStyles = classnames__default["default"](styles.page, styles[width]);
|
|
38
|
-
const [titleBarRef, { width: titleBarWidth = jobberHooks.Breakpoints.large }] = jobberHooks.useResizeObserver();
|
|
39
|
-
const titleBarClasses = classnames__default["default"](styles.titleBar, {
|
|
40
|
-
[styles.small]: titleBarWidth > jobberHooks.Breakpoints.smaller,
|
|
41
|
-
[styles.medium]: titleBarWidth > jobberHooks.Breakpoints.small,
|
|
42
|
-
[styles.large]: titleBarWidth > jobberHooks.Breakpoints.base,
|
|
43
|
-
});
|
|
44
|
-
const showMenu = moreActionsMenu.length > 0;
|
|
45
|
-
const showActionGroup = showMenu || primaryAction;
|
|
46
|
-
if (primaryAction != undefined) {
|
|
47
|
-
primaryAction = Object.assign({ fullWidth: true }, primaryAction);
|
|
48
|
-
}
|
|
49
|
-
if (secondaryAction != undefined) {
|
|
50
|
-
secondaryAction = Object.assign({ type: "secondary", fullWidth: true }, secondaryAction);
|
|
51
|
-
}
|
|
52
|
-
if (secondaryAction != undefined) {
|
|
53
|
-
secondaryAction = Object.assign({ type: "secondary", fullWidth: true }, secondaryAction);
|
|
54
|
-
}
|
|
55
|
-
return (React__default["default"].createElement("div", { className: pageStyles },
|
|
56
|
-
React__default["default"].createElement(Content.Content, null,
|
|
57
|
-
React__default["default"].createElement(Content.Content, null,
|
|
58
|
-
React__default["default"].createElement("div", { className: titleBarClasses, ref: titleBarRef },
|
|
59
|
-
React__default["default"].createElement("div", null,
|
|
60
|
-
React__default["default"].createElement(Heading.Heading, { level: 1 }, title),
|
|
61
|
-
subtitle && (React__default["default"].createElement("div", { className: styles.subtitle },
|
|
62
|
-
React__default["default"].createElement(Text.Text, { size: "large", variation: "subdued" },
|
|
63
|
-
React__default["default"].createElement(Emphasis.Emphasis, { variation: "bold" },
|
|
64
|
-
React__default["default"].createElement(Markdown.Markdown, { content: subtitle, basicUsage: true })))))),
|
|
65
|
-
showActionGroup && (React__default["default"].createElement("div", { className: styles.actionGroup },
|
|
66
|
-
primaryAction && (React__default["default"].createElement("div", { className: styles.primaryAction },
|
|
67
|
-
React__default["default"].createElement(Button.Button, Object.assign({}, primaryAction)))),
|
|
68
|
-
secondaryAction && (React__default["default"].createElement("div", { className: styles.actionButton },
|
|
69
|
-
React__default["default"].createElement(Button.Button, Object.assign({}, secondaryAction)))),
|
|
70
|
-
showMenu && (React__default["default"].createElement("div", { className: styles.actionButton },
|
|
71
|
-
React__default["default"].createElement(Menu.Menu, { items: moreActionsMenu })))))),
|
|
72
|
-
intro && (React__default["default"].createElement(Text.Text, { size: "large" },
|
|
73
|
-
React__default["default"].createElement(Markdown.Markdown, { content: intro, basicUsage: true, externalLink: externalIntroLinks })))),
|
|
74
|
-
React__default["default"].createElement(Content.Content, null, children))));
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
exports.Page = Page;
|
package/dist/Popover/index.js
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var React = require('react');
|
|
6
|
-
var reactPopper = require('react-popper');
|
|
7
|
-
var useRefocusOnActivator = require('@jobber/hooks/useRefocusOnActivator');
|
|
8
|
-
var styleInject_es = require('../style-inject.es-9d2f5f4e.js');
|
|
9
|
-
var ButtonDismiss = require('../ButtonDismiss-a1df8656.js');
|
|
10
|
-
require('../Button-bb77a513.js');
|
|
11
|
-
require('classnames');
|
|
12
|
-
require('react-router-dom');
|
|
13
|
-
require('../Icon-405a216c.js');
|
|
14
|
-
require('@jobber/design');
|
|
15
|
-
require('../Typography-018e1471.js');
|
|
16
|
-
|
|
17
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
18
|
-
|
|
19
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
20
|
-
|
|
21
|
-
var css_248z = ":root {\n --card--base-padding: var(--space-base);\n --popover--padding: var(--space-base);\n --popover--width: calc(var(--base-unit) * 21.875);\n --dismiss--button-padding: calc(var(--base-unit) / 4);\n}\n\n.oSlK4rLUvzE- {\n display: -ms-flexbox;\n display: flex;\n position: \"relative\";\n padding: calc(16px * 1);\n padding: var(--popover--padding);\n -ms-flex-pack: justify;\n justify-content: space-between;\n -ms-flex-align: center;\n align-items: center;\n}\n\n.XVPpPb-7e30- {\n float: right;\n padding: calc(16px / 4);\n padding: var(--dismiss--button-padding);\n text-align: right;\n}\n\n.TDuYbqXaLW0- {\n z-index: 1002;\n z-index: var(--elevation-tooltip);\n width: -webkit-max-content;\n width: max-content;\n max-width: calc(16px * 21.875);\n max-width: var(--popover--width);\n box-shadow: 0px calc(16px / 16) calc(16px / 4) 0px\n rgba(0, 0, 0, 0.1),\n 0px calc(16px / 4) 12px 0px rgba(0, 0, 0, 0.05);\n box-shadow: var(--shadow-base);\n border: calc(16px / 16) solid rgb(218, 224, 226);\n border: var(--border-base) solid var(--color-border);\n border-radius: 8px;\n border-radius: var(--radius-base);\n font-size: calc((16px * 1) * 0.875);\n font-size: calc(calc(16px * 1) * 0.875);\n font-size: var(--typography--fontSize-base);\n line-height: normal;\n background: rgba(255, 255, 255, 1);\n background: var(--color-surface);\n}\n\n.TDuYbqXaLW0- > * {\n --public-content--padding: var(--card--base-padding);\n}\n\n.LJCpn0zf1e8- {\n visibility: hidden;\n}\n\n.LJCpn0zf1e8-,\n.LJCpn0zf1e8-::before {\n position: absolute;\n width: 16px;\n width: var(--base-unit);\n height: 16px;\n height: var(--base-unit);\n background: inherit;\n}\n\n.LJCpn0zf1e8-::before {\n content: \"\";\n visibility: visible;\n border: calc(16px / 16) solid rgb(218, 224, 226);\n border: var(--border-base) solid var(--color-border);\n -webkit-transform: rotate(45deg);\n transform: rotate(45deg);\n -webkit-transform-origin: center;\n transform-origin: center;\n -webkit-clip-path: polygon(-4px -4px, 15.3px 0, 0 15.3px);\n clip-path: polygon(-4px -4px, 15.3px 0, 0 15.3px);\n}\n\n.TDuYbqXaLW0-[data-popper-placement^=\"top\"] > .LJCpn0zf1e8- {\n bottom: -5px;\n}\n\n.TDuYbqXaLW0-[data-popper-placement^=\"top\"] > .LJCpn0zf1e8-::before {\n -webkit-transform: rotate(-135deg);\n transform: rotate(-135deg);\n}\n\n.TDuYbqXaLW0-[data-popper-placement^=\"bottom\"] > .LJCpn0zf1e8- {\n top: -7px;\n}\n\n.TDuYbqXaLW0-[data-popper-placement^=\"left\"] > .LJCpn0zf1e8- {\n right: -5px;\n}\n\n.TDuYbqXaLW0-[data-popper-placement^=\"left\"] > .LJCpn0zf1e8-::before {\n -webkit-transform: rotate(135deg);\n transform: rotate(135deg);\n}\n\n.TDuYbqXaLW0-[data-popper-placement^=\"right\"] > .LJCpn0zf1e8- {\n left: -7px;\n}\n\n.TDuYbqXaLW0-[data-popper-placement^=\"right\"] > .LJCpn0zf1e8-::before {\n -webkit-transform: rotate(-45deg);\n transform: rotate(-45deg);\n}\n";
|
|
22
|
-
var classes = {"header":"oSlK4rLUvzE-","dismissButton":"XVPpPb-7e30-","popover":"TDuYbqXaLW0-","arrow":"LJCpn0zf1e8-"};
|
|
23
|
-
styleInject_es.styleInject(css_248z);
|
|
24
|
-
|
|
25
|
-
function Popover({ onRequestClose, children, attachTo, open, preferredPlacement = "auto", }) {
|
|
26
|
-
const [popperElement, setPopperElement] = React.useState();
|
|
27
|
-
const [arrowElement, setArrowElement] = React.useState();
|
|
28
|
-
const { styles: popperStyles, attributes } = reactPopper.usePopper(isHTMLElement(attachTo) ? attachTo : attachTo.current, popperElement, {
|
|
29
|
-
modifiers: buildModifiers(arrowElement),
|
|
30
|
-
placement: preferredPlacement,
|
|
31
|
-
});
|
|
32
|
-
useRefocusOnActivator.useRefocusOnActivator(open);
|
|
33
|
-
return (React__default["default"].createElement(React__default["default"].Fragment, null, open && (React__default["default"].createElement("div", Object.assign({ role: "dialog", ref: setPopperElement, style: popperStyles.popper, className: classes.popover }, attributes.popper),
|
|
34
|
-
React__default["default"].createElement("div", { className: classes.dismissButton },
|
|
35
|
-
React__default["default"].createElement(ButtonDismiss.ButtonDismiss, { onClick: onRequestClose, ariaLabel: "Close dialog" })),
|
|
36
|
-
children,
|
|
37
|
-
React__default["default"].createElement("div", { ref: setArrowElement, className: classes.arrow, style: popperStyles.arrow })))));
|
|
38
|
-
}
|
|
39
|
-
function buildModifiers(arrowElement) {
|
|
40
|
-
const modifiers = [
|
|
41
|
-
{
|
|
42
|
-
name: "arrow",
|
|
43
|
-
options: { element: arrowElement, padding: 10 },
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
name: "offset",
|
|
47
|
-
options: {
|
|
48
|
-
offset: [0, 10],
|
|
49
|
-
},
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
name: "flip",
|
|
53
|
-
options: {
|
|
54
|
-
fallbackPlacements: ["auto"],
|
|
55
|
-
},
|
|
56
|
-
},
|
|
57
|
-
];
|
|
58
|
-
return modifiers;
|
|
59
|
-
}
|
|
60
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
61
|
-
function isHTMLElement(el) {
|
|
62
|
-
return (globalThis === null || globalThis === void 0 ? void 0 : globalThis.document) && el instanceof Element;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
exports.Popover = Popover;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var ProgressBar = require('../ProgressBar-e4bb029e.js');
|
|
6
|
-
require('react');
|
|
7
|
-
require('classnames');
|
|
8
|
-
require('../style-inject.es-9d2f5f4e.js');
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
exports.ProgressBar = ProgressBar.ProgressBar;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var React = require('react');
|
|
4
|
-
var classnames = require('classnames');
|
|
5
|
-
var styleInject_es = require('./style-inject.es-9d2f5f4e.js');
|
|
6
|
-
|
|
7
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
|
-
|
|
9
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
10
|
-
var classnames__default = /*#__PURE__*/_interopDefaultLegacy(classnames);
|
|
11
|
-
|
|
12
|
-
var css_248z$1 = ":root {\n --progress-bar--height: var(--space-base);\n}\n\nprogress.S1cioqW7loo-[value] {\n width: 100%;\n height: calc(16px * 1);\n height: var(--progress-bar--height);\n border: none;\n vertical-align: baseline;\n -webkit-appearance: none;\n appearance: none;\n}\n\nprogress.S1cioqW7loo-[value],\nprogress.S1cioqW7loo-[value]::-webkit-progress-bar {\n box-shadow: inset 0px 2px 4px rgba(0, 0, 0, 0.05);\n border-radius: calc((16px * 1) / 2);\n border-radius: calc(calc(16px * 1) / 2);\n border-radius: calc(var(--progress-bar--height) / 2);\n}\n\nprogress.S1cioqW7loo-[value]::-webkit-progress-bar {\n background-color: rgb(241, 239, 233);\n background-color: var(--color-surface--background);\n}\n\nprogress.S1cioqW7loo-[value]::-webkit-progress-value {\n border-radius: calc((16px * 1) / 2);\n border-radius: calc(calc(16px * 1) / 2);\n border-radius: calc(var(--progress-bar--height) / 2);\n background-color: rgb(50, 130, 28);\n background-color: var(--color-interactive);\n -webkit-transition: all 300ms ease-out;\n transition: all 300ms ease-out;\n -webkit-transition: all var(--timing-slow) ease-out;\n transition: all var(--timing-slow) ease-out;\n}\n\nprogress.S1cioqW7loo-[value]::-moz-progress-bar {\n border-radius: calc((16px * 1) / 2);\n border-radius: calc(calc(16px * 1) / 2);\n border-radius: calc(var(--progress-bar--height) / 2);\n background-color: rgb(50, 130, 28);\n background-color: var(--color-interactive);\n -moz-transition: all 300ms ease-out;\n transition: all 300ms ease-out;\n -moz-transition: all var(--timing-slow) ease-out;\n transition: all var(--timing-slow) ease-out;\n}\n\nprogress.nv5fejwjHzo-[value]::-webkit-progress-value {\n -webkit-transition: all 100ms ease-out;\n transition: all 100ms ease-out;\n -webkit-transition: all var(--timing-quick) ease-out;\n transition: all var(--timing-quick) ease-out;\n}\n\n.dyBDsjWCui4- {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: row;\n flex-direction: row;\n width: 100%;\n gap: calc(16px / 2);\n gap: var(--space-small);\n}\n";
|
|
13
|
-
var styles = {"ProgressBar":"S1cioqW7loo-","SteppedProgressBar":"nv5fejwjHzo-","wrapper":"dyBDsjWCui4-"};
|
|
14
|
-
styleInject_es.styleInject(css_248z$1);
|
|
15
|
-
|
|
16
|
-
var css_248z = ".CzIxUWYkrdo- {\n --progress-bar--height: var(--space-smaller);\n}\n\n.JNSDqHqKVlE- {\n --progress-bar--height: var(--space-small);\n}\n\n.nzFMJ2k4zJ0- {\n --progress-bar--height: var(--space-base);\n}\n";
|
|
17
|
-
var sizes = {"smaller":"CzIxUWYkrdo-","small":"JNSDqHqKVlE-","base":"nzFMJ2k4zJ0-"};
|
|
18
|
-
styleInject_es.styleInject(css_248z);
|
|
19
|
-
|
|
20
|
-
function ProgressBarStepped({ currentStep, totalSteps, percentage, size = "base", }) {
|
|
21
|
-
const steppedProgressBarClassName = classnames__default["default"](styles.ProgressBar, styles.SteppedProgressBar, sizes[size]);
|
|
22
|
-
const ariaLabel = `progress, ${currentStep} out of ${totalSteps}`;
|
|
23
|
-
return (React__default["default"].createElement("div", { role: "progressbar", className: styles.wrapper, "aria-valuenow": percentage, "aria-valuetext": ariaLabel }, Array.from({ length: totalSteps }).map((_, index) => {
|
|
24
|
-
const step = index + 1;
|
|
25
|
-
const value = step <= currentStep ? 100 : 0;
|
|
26
|
-
return (React__default["default"].createElement("progress", { key: step, className: steppedProgressBarClassName, value: value, "data-testid": "progress-step" },
|
|
27
|
-
value,
|
|
28
|
-
"%"));
|
|
29
|
-
})));
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
function ProgressBar({ currentStep, totalSteps, size = "base", variation = "progress", }) {
|
|
33
|
-
const percentage = (currentStep / totalSteps) * 100;
|
|
34
|
-
const progressBarClassName = classnames__default["default"](styles.ProgressBar, sizes[size]);
|
|
35
|
-
if (variation === "stepped") {
|
|
36
|
-
return (React__default["default"].createElement(ProgressBarStepped, { currentStep: currentStep, totalSteps: totalSteps, percentage: percentage, size: size }));
|
|
37
|
-
}
|
|
38
|
-
return (React__default["default"].createElement("progress", { className: progressBarClassName, max: totalSteps, value: currentStep },
|
|
39
|
-
percentage,
|
|
40
|
-
"%"));
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
exports.ProgressBar = ProgressBar;
|
package/dist/RadioGroup/index.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var RadioGroup = require('../RadioGroup-c31c2e81.js');
|
|
6
|
-
require('react');
|
|
7
|
-
require('../style-inject.es-9d2f5f4e.js');
|
|
8
|
-
require('../Text-fdc65f0b.js');
|
|
9
|
-
require('../Typography-018e1471.js');
|
|
10
|
-
require('classnames');
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
exports.RadioGroup = RadioGroup.RadioGroup;
|
|
15
|
-
exports.RadioOption = RadioGroup.RadioOption;
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var React = require('react');
|
|
4
|
-
var styleInject_es = require('./style-inject.es-9d2f5f4e.js');
|
|
5
|
-
var Text = require('./Text-fdc65f0b.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
|
-
var css_248z = "._5P8wEHDUdKY- {\n --radio--checked-thickness: 6px;\n --radio-diameter: 20px;\n --radio--checked-shadow: 0px 0px 0px var(--space-minuscule) transparent;\n display: -ms-inline-flexbox;\n display: inline-flex;\n -ms-flex-direction: column;\n flex-direction: column;\n}\n\n._08ZPdlE98Ko- {\n /* Hide checkbox on UI but not screen readers and still allow focus state */\n position: absolute;\n left: -999vw;\n}\n\n.-PUoLXltVlQ- {\n display: -ms-inline-flexbox;\n display: inline-flex;\n font-size: calc((16px * 1) * 0.875);\n font-size: calc(calc(16px * 1) * 0.875);\n font-size: var(--typography--fontSize-base);\n cursor: pointer;\n -ms-flex-align: start;\n align-items: flex-start;\n}\n\n._08ZPdlE98Ko- + .-PUoLXltVlQ-::before {\n content: \"\";\n display: block;\n width: var(--radio-diameter);\n height: var(--radio-diameter);\n box-sizing: border-box;\n margin-right: calc(16px / 2);\n margin-right: var(--space-small);\n border: calc(16px / 8) solid rgb(218, 224, 226);\n border: var(--border-thick) solid var(--color-border);\n border-radius: 100%;\n background-color: rgba(255, 255, 255, 1);\n background-color: var(--color-surface);\n transition: all 100ms ease-out;\n transition: all var(--timing-quick) ease-out;\n -ms-flex-negative: 0;\n flex-shrink: 0;\n}\n\n._08ZPdlE98Ko-:hover + .-PUoLXltVlQ-::before {\n border-color: rgb(50, 130, 28);\n border-color: var(--color-interactive);\n}\n\n._08ZPdlE98Ko-:checked + .-PUoLXltVlQ-::before {\n border-color: rgb(50, 130, 28);\n border-color: var(--color-interactive);\n border-width: var(--radio--checked-thickness);\n background-color: rgba(255, 255, 255, 1);\n background-color: var(--color-surface);\n}\n\n._08ZPdlE98Ko-:focus-visible:checked + .-PUoLXltVlQ-:before {\n box-shadow: 0px 0px 0px calc(16px / 8) rgba(255, 255, 255, 1),\n 0px 0px 0px calc(16px / 4) rgb(131, 151, 160);\n box-shadow: var(--shadow-focus);\n}\n\n._08ZPdlE98Ko-[disabled] + .-PUoLXltVlQ- {\n color: rgb(181, 181, 181);\n color: var(--color-disabled);\n cursor: not-allowed;\n}\n\n._08ZPdlE98Ko-[disabled] + .-PUoLXltVlQ-::before {\n border-color: rgb(225, 225, 225);\n border-color: var(--color-disabled--secondary);\n}\n\n._08ZPdlE98Ko-[disabled]:checked + .-PUoLXltVlQ-::before {\n --radio--checked-shadow: 0px 0px 0px var(--space-minuscule)\n var(--color-disabled);\n border-color: rgb(181, 181, 181);\n border-color: var(--color-disabled);\n}\n\n._8r6qT-6S9EI-,\n.C5SzbO1epLk- {\n margin-top: calc((16px / 4) * -1);\n margin-top: calc(calc(16px / 4) * -1);\n margin-top: calc(var(--space-smaller) * -1);\n margin-bottom: calc(16px / 2);\n margin-bottom: var(--space-small);\n padding-left: calc(var(--radio-diameter) + (16px / 2));\n padding-left: calc(var(--radio-diameter) + calc(16px / 2));\n padding-left: calc(var(--radio-diameter) + var(--space-small));\n}\n\n._08ZPdlE98Ko-[disabled] + .-PUoLXltVlQ- + ._8r6qT-6S9EI- > p {\n color: rgb(181, 181, 181);\n color: var(--color-disabled);\n}\n";
|
|
12
|
-
var styles = {"radioGroup":"_5P8wEHDUdKY-","input":"_08ZPdlE98Ko-","label":"-PUoLXltVlQ-","description":"_8r6qT-6S9EI-","children":"C5SzbO1epLk-"};
|
|
13
|
-
styleInject_es.styleInject(css_248z);
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* For rendering props only. To make updates to
|
|
17
|
-
* the real RadioOption, look at InternalRadioOption
|
|
18
|
-
*/
|
|
19
|
-
function RadioOption({ children }) {
|
|
20
|
-
return React__default["default"].createElement(React__default["default"].Fragment, null, children);
|
|
21
|
-
}
|
|
22
|
-
function InternalRadioOption({ value, name, label, description, disabled, checked, children, onChange, }) {
|
|
23
|
-
const inputId = `${value.toString()}_${React.useId()}`;
|
|
24
|
-
const shouldRenderIndependentChildren = label && children;
|
|
25
|
-
return (React__default["default"].createElement("div", null,
|
|
26
|
-
React__default["default"].createElement("input", { onChange: handleChange, type: "radio", name: name, value: value, disabled: disabled, checked: checked, id: inputId, className: styles.input, "aria-describedby": description ? `${inputId}_description` : undefined }),
|
|
27
|
-
React__default["default"].createElement("label", { className: styles.label, htmlFor: inputId }, label ? label : children),
|
|
28
|
-
description && (React__default["default"].createElement("div", { className: styles.description, id: `${inputId}_description` },
|
|
29
|
-
React__default["default"].createElement(Text.Text, { variation: "subdued", size: "small" }, description))),
|
|
30
|
-
shouldRenderIndependentChildren && (React__default["default"].createElement("div", { className: styles.children, id: `${inputId}_children` }, children))));
|
|
31
|
-
function handleChange() {
|
|
32
|
-
onChange(value);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
function RadioGroup({ children, value, ariaLabel, onChange, name = React.useId(), }) {
|
|
37
|
-
return (React__default["default"].createElement("div", { role: "radiogroup", "aria-label": ariaLabel, className: styles.radioGroup }, React__default["default"].Children.map(children, option => (React__default["default"].createElement(InternalRadioOption, Object.assign({ checked: value === option.props.value, name: name, onChange: handleChange }, option.props), option.props.children)))));
|
|
38
|
-
function handleChange(newValue) {
|
|
39
|
-
if (newValue !== value) {
|
|
40
|
-
onChange(newValue);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
exports.RadioGroup = RadioGroup;
|
|
46
|
-
exports.RadioOption = RadioOption;
|