@jobber/components 4.66.0 → 4.66.1-fix-hide-h.6
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/AnimatedPresence.d.ts +1 -0
- package/AnimatedPresence.js +17 -0
- package/AtlantisContext.d.ts +1 -0
- package/AtlantisContext.js +17 -0
- package/StatusIndicator.d.ts +1 -0
- package/StatusIndicator.js +17 -0
- package/dist/AnimatedPresence/AnimatedPresence.d.ts +24 -0
- package/dist/AnimatedPresence/AnimatedPresence.transitions.d.ts +11 -0
- package/dist/AnimatedPresence/hooks/usePreviousValue.d.ts +2 -0
- package/dist/AnimatedPresence/index.cjs +10 -0
- package/dist/AnimatedPresence/index.d.ts +1 -0
- package/dist/AnimatedPresence/index.mjs +4 -0
- package/dist/AnimatedPresence-DsD8wMiB.js +98 -0
- package/dist/AnimatedPresence-_p8QyR9z.js +100 -0
- package/dist/AnimatedSwitcher/index.cjs +11 -0
- package/dist/AnimatedSwitcher/index.mjs +5 -0
- package/dist/{AnimatedSwitcher-d1e1ddcf.js → AnimatedSwitcher-CtUSAWIt.js} +9 -10
- package/dist/AnimatedSwitcher-Det5s2ek.js +93 -0
- package/dist/AtlantisContext/AtlantisContext.d.ts +34 -0
- package/dist/AtlantisContext/index.cjs +10 -0
- package/dist/AtlantisContext/index.d.ts +1 -0
- package/dist/AtlantisContext/index.mjs +2 -0
- package/dist/AtlantisContext-0Mdk4oJC.js +22 -0
- package/dist/AtlantisContext-Dtu8ebkU.js +18 -0
- package/dist/Autocomplete/Menu.d.ts +2 -2
- package/dist/Autocomplete/index.cjs +33 -0
- package/dist/Autocomplete/index.mjs +27 -0
- package/dist/Autocomplete-B7YsP2Ql.js +190 -0
- package/dist/Autocomplete-DYj2Lg3f.js +192 -0
- package/dist/Avatar/index.cjs +12 -0
- package/dist/Avatar/index.mjs +6 -0
- package/dist/Avatar-CRADit7s.js +69 -0
- package/dist/Avatar-kAXMTS3o.js +67 -0
- package/dist/Banner/Banner.d.ts +2 -2
- package/dist/Banner/Banner.types.d.ts +1 -0
- package/dist/Banner/components/BannerIcon/BannerIcon.d.ts +4 -2
- 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.d.ts +2 -1
- package/dist/Banner/index.mjs +16 -0
- package/dist/Banner-B72Jd8VZ.js +66 -0
- package/dist/Banner-DGrsuGot.js +68 -0
- package/dist/BannerIcon-q3EXfo22.js +17 -0
- package/dist/BannerIcon-tJZ3ckww.js +14 -0
- package/dist/Body-8HKzvIvv.js +54 -0
- package/dist/Body-B78J8M_2.js +45 -0
- package/dist/Button/Button.d.ts +8 -4
- package/dist/Button/index.cjs +13 -0
- package/dist/Button/index.mjs +7 -0
- package/dist/Button-CvQJyw1M.js +49 -0
- package/dist/Button-DjFrVgPj.js +47 -0
- package/dist/ButtonDismiss/ButtonDismiss.d.ts +1 -1
- package/dist/ButtonDismiss/index.cjs +14 -0
- package/dist/ButtonDismiss/index.mjs +8 -0
- package/dist/ButtonDismiss-B6rD5rB-.js +10 -0
- package/dist/ButtonDismiss-C2LOl-QT.js +8 -0
- package/dist/Card/CardClickable.d.ts +1 -1
- package/dist/Card/colors.css.d.ts +89 -0
- package/dist/Card/index.cjs +25 -0
- package/dist/Card/index.mjs +19 -0
- package/dist/Card-B_L6v9Fp.js +81 -0
- package/dist/Card-Cz9zwypC.js +83 -0
- package/dist/Checkbox/index.cjs +15 -0
- package/dist/Checkbox/index.mjs +9 -0
- package/dist/Checkbox-8SxykkvR.js +53 -0
- package/dist/Checkbox-DgjLt14k.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-DiIMUiij.js +70 -0
- package/dist/Chip-sEzGnAdo.js +67 -0
- package/dist/ChipDismissible-D_h3oeEI.js +19 -0
- package/dist/ChipDismissible-fruTU8_c.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-RLz0PIhY.js +91 -0
- package/dist/Chips-bTwuX84o.js +93 -0
- package/dist/Combobox/Combobox.types.d.ts +53 -6
- package/dist/Combobox/ComboboxProvider.d.ts +3 -9
- package/dist/Combobox/components/ComboboxAction/ComboboxAction.d.ts +1 -1
- 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/ComboboxLoadMore.d.ts +6 -0
- package/dist/Combobox/components/ComboboxContent/ComboboxLoadMore/index.cjs +9 -0
- package/dist/Combobox/components/ComboboxContent/ComboboxLoadMore/index.d.ts +1 -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/ComboboxOption.d.ts +2 -1
- 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/hooks/useCombobox.d.ts +3 -1
- package/dist/Combobox/hooks/useComboboxContent.d.ts +1 -2
- package/dist/Combobox/hooks/useMakeComboboxHandlers.d.ts +1 -1
- package/dist/Combobox/index.cjs +53 -0
- package/dist/Combobox/index.mjs +46 -0
- package/dist/Combobox-CWHx4-n_.js +117 -0
- package/dist/Combobox-CbS1_GBQ.js +119 -0
- package/dist/ComboboxAction-CRlYsxnV.js +22 -0
- package/dist/ComboboxAction-DEhgOzYs.js +24 -0
- package/dist/ComboboxActivator-BQxh2GkW.js +28 -0
- package/dist/ComboboxActivator-DP-DDMTP.js +26 -0
- package/dist/ComboboxContent-BWHLiyL9.js +145 -0
- package/dist/ComboboxContent-CKlthhjK.js +143 -0
- package/dist/ComboboxContentHeader-BAj0VyGa.js +27 -0
- package/dist/ComboboxContentHeader-CtZwAMyJ.js +29 -0
- package/dist/ComboboxContentList-BYbeCxp2.js +77 -0
- package/dist/ComboboxContentList-aU8fbxsp.js +75 -0
- package/dist/ComboboxContentSearch-Bhmt-tVj.js +32 -0
- package/dist/ComboboxContentSearch-noFYGH66.js +34 -0
- package/dist/ComboboxLoadMore-BRTLjXUS.js +14 -0
- package/dist/ComboboxLoadMore-CvkW-I1H.js +16 -0
- package/dist/ComboboxOption-BY-tUk0s.js +22 -0
- package/dist/ComboboxOption-CX-Z2eLn.js +20 -0
- package/dist/ComboboxProvider-BKMfpEBY.js +10 -0
- package/dist/ComboboxProvider-CfnemK-l.js +13 -0
- package/dist/ComboboxTrigger-DgObs0vq.js +24 -0
- package/dist/ComboboxTrigger-EPtw6WW1.js +22 -0
- package/dist/ConfirmationModal/index.cjs +29 -0
- package/dist/ConfirmationModal/index.mjs +23 -0
- package/dist/{ConfirmationModal-0f85d96c.js → ConfirmationModal-D-Ca61Ml.js} +15 -14
- package/dist/ConfirmationModal-DkFPvWkn.js +99 -0
- package/dist/Content/Spacing.css.d.ts +13 -0
- package/dist/Content/index.cjs +9 -0
- package/dist/Content/index.mjs +3 -0
- package/dist/Content-D7e26CKa.js +13 -0
- package/dist/Content-DQHuNmbK.js +15 -0
- package/dist/Countdown/index.cjs +11 -0
- package/dist/Countdown/index.mjs +5 -0
- package/dist/Countdown-CRR217C4.js +659 -0
- package/dist/Countdown-DuPzfPEU.js +657 -0
- package/dist/DataDump/index.cjs +28 -0
- package/dist/DataDump/index.mjs +22 -0
- package/dist/DataDump-470Q8ui3.js +15 -0
- package/dist/DataDump-J9X44Vw9.js +17 -0
- package/dist/DataList/DataList.const.d.ts +1 -0
- package/dist/DataList/DataList.types.d.ts +23 -4
- 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/DataListActionsMenu.d.ts +2 -2
- 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/DataListHeaderTile.d.ts +2 -1
- package/dist/DataList/components/DataListHeaderTile/DataListSortingArrows.d.ts +1 -1
- package/dist/DataList/components/DataListHeaderTile/components/DataListSortingOptions.d.ts +12 -0
- package/dist/DataList/components/DataListHeaderTile/components/index.cjs +12 -0
- package/dist/DataList/components/DataListHeaderTile/components/index.d.ts +1 -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 +34 -0
- package/dist/DataList/components/DataListSearch/index.mjs +26 -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/DataListTotalCount.d.ts +2 -2
- 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/hooks/useMediaQuery.d.ts +7 -1
- package/dist/DataList/index.cjs +98 -0
- package/dist/DataList/index.d.ts +1 -1
- package/dist/DataList/index.mjs +92 -0
- package/dist/DataList-B4eUVLVj.js +5 -0
- package/dist/DataList-B_CFPI7W.js +3 -0
- package/dist/DataList-CoYJ655V.js +141 -0
- package/dist/DataList-DrSj_Q6F.js +139 -0
- package/dist/DataList.const-D3AaNa_6.js +25 -0
- package/dist/DataList.const-DQS-UFM6.js +38 -0
- package/dist/DataList.utils-DIB9q2H6.js +168 -0
- package/dist/DataList.utils-Dkk8ncia.js +161 -0
- package/dist/DataListAction-Cg4hmt8O.js +39 -0
- package/dist/DataListAction-DZEnIqmD.js +37 -0
- package/dist/DataListActions-B4rfk2Iq.js +45 -0
- package/dist/DataListActions-Cy41bUa4.js +43 -0
- package/dist/DataListActionsMenu-Bd-x4_GY.js +57 -0
- package/dist/DataListActionsMenu-CMmtpZ0d.js +55 -0
- package/dist/DataListBulkActions-BZwgJPjq.js +29 -0
- package/dist/DataListBulkActions-COo1TOhP.js +26 -0
- package/dist/DataListContext-BPxjwsVG.js +29 -0
- package/dist/DataListContext-DsvXZGoh.js +25 -0
- package/dist/DataListEmptyState-BGTwctrE.js +50 -0
- package/dist/DataListEmptyState-CSZSkI2p.js +53 -0
- package/dist/DataListFilters--7__TwY4.js +43 -0
- package/dist/DataListFilters-C5-qLfhk.js +46 -0
- package/dist/DataListHeader-CNXnKa6N.js +95 -0
- package/dist/DataListHeader-DsZuhZ-t.js +93 -0
- package/dist/DataListHeaderTile-BF8LFQJ9.js +85 -0
- package/dist/DataListHeaderTile-C_GsKT2v.js +83 -0
- package/dist/DataListItem-CpcO-q5j.js +115 -0
- package/dist/DataListItem-DPqtjw1g.js +113 -0
- package/dist/DataListItemActions-DxF3oZGR.js +32 -0
- package/dist/DataListItemActions-F75_5lGw.js +29 -0
- package/dist/DataListItemActionsOverflow-C7jjAcn7.js +35 -0
- package/dist/DataListItemActionsOverflow-Da7o16gd.js +33 -0
- package/dist/DataListItemClickable-Bt8nyAgS.js +45 -0
- package/dist/DataListItemClickable-DyVqNC8O.js +47 -0
- package/dist/DataListItems-BzilnPgA.js +19 -0
- package/dist/DataListItems-Dz9j38SD.js +21 -0
- package/dist/DataListLayout-DGpj7yY9.js +21 -0
- package/dist/DataListLayout-PmWmC1Vz.js +19 -0
- package/dist/DataListLayoutActions-CFeecMvE.js +38 -0
- package/dist/DataListLayoutActions-CeOxgo55.js +36 -0
- package/dist/DataListLayoutContext-BFN7k9jI.js +8 -0
- package/dist/DataListLayoutContext-Bze9i59Y.js +11 -0
- package/dist/DataListLayoutContext-CctAAX2e.js +14 -0
- package/dist/DataListLayoutContext-Dmuy9qz6.js +18 -0
- package/dist/DataListLoadMore-B5bM5H2b.js +34 -0
- package/dist/DataListLoadMore-DglPb8jK.js +31 -0
- package/dist/DataListLoadingState-BO2264WP.js +22 -0
- package/dist/DataListLoadingState-fJ-2BOx8.js +26 -0
- package/dist/DataListOverflowFade-C97TDA-f.js +25 -0
- package/dist/DataListOverflowFade-Cf2yTaQ4.js +22 -0
- package/dist/DataListSearch-BvWPsgzT.js +59 -0
- package/dist/DataListSearch-Vi1gLKKw.js +63 -0
- package/dist/DataListSort-BwmPuGT_.js +76 -0
- package/dist/DataListSort-CF4fD8hk.js +74 -0
- package/dist/DataListSortingOptions-B7NORlZf.js +37 -0
- package/dist/DataListSortingOptions-InrbBAUA.js +35 -0
- package/dist/DataListStatusBar-BYqG5qw-.js +22 -0
- package/dist/DataListStatusBar-BzLJgojM.js +25 -0
- package/dist/DataListStickyHeader-BrQ4-8FE.js +23 -0
- package/dist/DataListStickyHeader-CNZXGrOC.js +25 -0
- package/dist/DataListTags-CJSrIuC1.js +64 -0
- package/dist/DataListTags-DnosXU08.js +62 -0
- package/dist/DataListTotalCount-BMMWDIFi.js +27 -0
- package/dist/DataListTotalCount-Di2u6JlN.js +24 -0
- package/dist/DataTable/Body.d.ts +4 -4
- package/dist/DataTable/BodyLoading.d.ts +1 -1
- package/dist/DataTable/Footer.d.ts +2 -2
- package/dist/DataTable/Header.d.ts +4 -4
- package/dist/DataTable/SortIcon.d.ts +1 -1
- package/dist/DataTable/index.cjs +37 -0
- package/dist/DataTable/index.mjs +26 -0
- package/dist/DataTable/test-utilities/index.cjs +246 -0
- package/dist/DataTable/test-utilities/index.mjs +238 -0
- package/dist/DataTable-BncdMtw_.js +238 -0
- package/dist/DataTable-oaYgIuQ5.js +236 -0
- package/dist/DatePicker/index.cjs +26 -0
- package/dist/DatePicker/index.mjs +20 -0
- package/dist/DatePicker-CTrVQs--.js +8553 -0
- package/dist/DatePicker-DzjkqsZY.js +8556 -0
- package/dist/DayOfMonthSelect-BiWvIxWe.js +130 -0
- package/dist/DayOfMonthSelect-xX1cSHtJ.js +137 -0
- package/dist/DescriptionList/DescriptionList.d.ts +1 -1
- package/dist/DescriptionList/index.cjs +10 -0
- package/dist/DescriptionList/index.mjs +4 -0
- package/dist/DescriptionList-BqaFf2PH.js +12 -0
- package/dist/DescriptionList-CU1oU0gy.js +14 -0
- package/dist/Disclosure/index.cjs +17 -0
- package/dist/Disclosure/index.mjs +11 -0
- package/dist/Disclosure-D26ohdpw.js +35 -0
- package/dist/Disclosure-DzRqP8wI.js +33 -0
- package/dist/Divider/index.cjs +9 -0
- package/dist/Divider/index.mjs +3 -0
- package/dist/Divider-BjDtIO6-.js +17 -0
- package/dist/Divider-DNbqt0gw.js +19 -0
- package/dist/Drawer/DrawerGrid.d.ts +1 -1
- package/dist/Drawer/index.cjs +17 -0
- package/dist/Drawer/index.mjs +10 -0
- package/dist/DrawerGrid-C5ohW1pQ.js +31 -0
- package/dist/DrawerGrid-CHDVA6d2.js +28 -0
- package/dist/Emphasis/Emphasis.d.ts +2 -2
- package/dist/Emphasis/index.cjs +10 -0
- package/dist/Emphasis/index.mjs +4 -0
- package/dist/Emphasis-CKaYb2Cx.js +15 -0
- package/dist/Emphasis-oLbhQdCV.js +13 -0
- package/dist/FeatureSwitch/index.cjs +24 -0
- package/dist/FeatureSwitch/index.mjs +18 -0
- package/dist/FeatureSwitch-DYxOce4T.js +54 -0
- package/dist/FeatureSwitch-Dz4Lpg14.js +52 -0
- package/dist/Flex/index.cjs +9 -0
- package/dist/Flex/index.mjs +3 -0
- package/dist/Flex-DteCYe_w.js +28 -0
- package/dist/Flex-Xe7j4ihO.js +30 -0
- package/dist/Form/index.cjs +10 -0
- package/dist/Form/index.mjs +4 -0
- package/dist/{Form/index.js → Form-DFHfJGo1.js} +3 -9
- package/dist/Form-tQ94FVa0.js +48 -0
- package/dist/FormField/FormFieldAffix.d.ts +2 -2
- package/dist/FormField/FormFieldTypes.d.ts +23 -0
- package/dist/FormField/FormFieldWrapper.d.ts +4 -1
- package/dist/FormField/components/ClearAction.d.ts +9 -0
- package/dist/FormField/hooks/useFormFieldFocus.d.ts +12 -0
- package/dist/FormField/hooks/useIsSafari.d.ts +1 -0
- package/dist/FormField/hooks/useToolbar.d.ts +20 -0
- package/dist/FormField/index.cjs +21 -0
- package/dist/FormField/index.mjs +15 -0
- package/dist/FormField-BTV2b0gy.js +296 -0
- package/dist/FormField-CEojfV6Q.js +298 -0
- package/dist/FormatDate/{index.js → index.cjs} +1 -3
- package/dist/FormatDate/index.mjs +2 -0
- package/dist/FormatDate-BblXtoxM.js +27 -0
- package/dist/{FormatDate-70ea5b43.js → FormatDate-CMk1Vkpz.js} +1 -5
- package/dist/FormatEmail/index.cjs +9 -0
- package/dist/FormatEmail/index.mjs +3 -0
- package/dist/FormatEmail-BRfdMGVd.js +13 -0
- package/dist/FormatEmail-EiExu9yK.js +11 -0
- package/dist/FormatFile/FormatFileDeleteButton.d.ts +2 -2
- package/dist/FormatFile/index.cjs +34 -0
- package/dist/FormatFile/index.mjs +28 -0
- package/dist/FormatFile-B9esgLVD.js +149 -0
- package/dist/FormatFile-C7R08BkN.js +147 -0
- package/dist/FormatRelativeDateTime/index.cjs +8 -0
- package/dist/FormatRelativeDateTime/index.mjs +2 -0
- package/dist/FormatRelativeDateTime-BkK8Y8s-.js +64 -0
- package/dist/{FormatRelativeDateTime/index.js → FormatRelativeDateTime-C9szxU2r.js} +5 -11
- package/dist/FormatTime/index.cjs +8 -0
- package/dist/FormatTime/index.mjs +2 -0
- package/dist/FormatTime-B_K2-YjF.js +29 -0
- package/dist/{FormatTime/index.js → FormatTime-EtJbxuJT.js} +3 -8
- package/dist/Gallery/Gallery.css.d.ts +9 -0
- package/dist/Gallery/index.cjs +41 -0
- package/dist/Gallery/index.mjs +35 -0
- package/dist/Gallery-B1GvWj1y.js +63 -0
- package/dist/Gallery-DDw2ij0N.js +65 -0
- package/dist/Glimmer/index.cjs +12 -0
- package/dist/Glimmer/index.mjs +5 -0
- package/dist/Glimmer/style/Shape.css.d.ts +9 -0
- package/dist/Glimmer/style/Sizes.css.d.ts +10 -0
- package/dist/Glimmer/style/Timing.css.d.ts +6 -0
- package/dist/Glimmer-DJ9psf2S.js +60 -0
- package/dist/Glimmer-ZDIXl8XO.js +63 -0
- package/dist/Grid/GridAlign.css.d.ts +8 -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-CFybr9uc.js +29 -0
- package/dist/Grid-DiGckzxq.js +32 -0
- package/dist/Heading/Heading.d.ts +8 -5
- package/dist/Heading/index.cjs +10 -0
- package/dist/Heading/index.mjs +4 -0
- package/dist/{Heading-0f4ecb0c.js → Heading-BhyZ43jQ.js} +5 -9
- package/dist/Heading-qH5QZFoM.js +47 -0
- package/dist/Icon/index.cjs +9 -0
- package/dist/Icon/index.mjs +3 -0
- package/dist/Icon-GaU33tZU.js +34 -0
- package/dist/Icon-fa-Ii8qc.js +36 -0
- package/dist/InlineLabel/InlineLabel.d.ts +3 -3
- package/dist/InlineLabel/index.cjs +10 -0
- package/dist/InlineLabel/index.mjs +4 -0
- package/dist/InlineLabel-Cdmqepaw.js +20 -0
- package/dist/InlineLabel-DDEhuVBL.js +18 -0
- package/dist/InputAvatar/InputAvatar.d.ts +1 -1
- package/dist/InputAvatar/index.cjs +26 -0
- package/dist/InputAvatar/index.mjs +20 -0
- package/dist/InputAvatar-CM3OdmlZ.js +47 -0
- package/dist/InputAvatar-To5TE_zu.js +49 -0
- package/dist/InputDate/InputDate.d.ts +10 -1
- package/dist/InputDate/index.cjs +35 -0
- package/dist/InputDate/index.mjs +29 -0
- package/dist/InputDate-85e7-vmz.js +48 -0
- package/dist/InputDate-rLE-VPSh.js +50 -0
- package/dist/InputEmail/index.cjs +23 -0
- package/dist/InputEmail/index.mjs +16 -0
- package/dist/InputEmail-BBtFRlEN.js +20 -0
- package/dist/InputEmail-DxbaZPUj.js +23 -0
- package/dist/InputFile/InputFile.d.ts +14 -4
- package/dist/InputFile/index.cjs +23 -0
- package/dist/InputFile/index.mjs +16 -0
- package/dist/InputFile-ClspzmnZ.js +1608 -0
- package/dist/InputFile-DQiQC-wF.js +1611 -0
- package/dist/InputGroup/index.cjs +9 -0
- package/dist/InputGroup/index.mjs +3 -0
- package/dist/InputGroup-BvYY-pQN.js +23 -0
- package/dist/InputGroup-tJljwvT9.js +25 -0
- package/dist/InputNumber/InputNumber.d.ts +1 -1
- package/dist/InputNumber/index.cjs +22 -0
- package/dist/InputNumber/index.mjs +16 -0
- package/dist/{InputNumber-d9ebabaa.js → InputNumber-BceDGccY.js} +2 -6
- package/dist/InputNumber-bGqHcfzb.js +56 -0
- package/dist/InputPassword/InputPassword.d.ts +2 -2
- package/dist/InputPassword/index.cjs +22 -0
- package/dist/InputPassword/index.mjs +16 -0
- package/dist/InputPassword-CXWxO4Q9.js +21 -0
- package/dist/InputPassword-DOMUHKz1.js +19 -0
- package/dist/InputPhoneNumber/index.cjs +22 -0
- package/dist/InputPhoneNumber/index.mjs +16 -0
- package/dist/{InputPhoneNumber/index.js → InputPhoneNumber-Bl4MIuyS.js} +7 -27
- package/dist/InputPhoneNumber-DmOJwqjp.js +94 -0
- package/dist/InputText/InputText.d.ts +8 -0
- package/dist/InputText/index.cjs +23 -0
- package/dist/InputText/index.mjs +17 -0
- package/dist/InputText-CGTG1LNb.js +104 -0
- package/dist/{InputText-f7c45ee5.js → InputText-CqaMlAXF.js} +20 -15
- package/dist/InputTime/InputTimeProps.d.ts +1 -1
- package/dist/InputTime/hooks/useTimePredict.d.ts +8 -0
- package/dist/InputTime/index.cjs +27 -0
- package/dist/InputTime/index.mjs +21 -0
- package/dist/InputTime-DXgod1n-.js +192 -0
- package/dist/InputTime-lMdLTFxs.js +190 -0
- package/dist/InputValidation/InputValidation.d.ts +1 -1
- package/dist/InputValidation/index.cjs +14 -0
- package/dist/InputValidation/index.mjs +8 -0
- package/dist/InputValidation-BjitowrV.js +22 -0
- package/dist/InputValidation-CM_L0IJg.js +20 -0
- package/dist/InternalChipDismissible-BdFEixGv.js +152 -0
- package/dist/InternalChipDismissible-umLLUm_o.js +157 -0
- package/dist/InternalGridCell-CAmVZe0V.js +34 -0
- package/dist/InternalGridCell-fnqy2PUk.js +37 -0
- package/dist/LightBox/LightBox.d.ts +2 -2
- package/dist/LightBox/index.cjs +26 -0
- package/dist/LightBox/index.mjs +20 -0
- package/dist/LightBox-BuTngdO-.js +112 -0
- package/dist/LightBox-s9-G_PIf.js +110 -0
- package/dist/Link/index.cjs +8 -0
- package/dist/Link/index.mjs +2 -0
- package/dist/Link-D7KACoR2.js +7 -0
- package/dist/Link-DyowhUUY.js +9 -0
- package/dist/List/index.cjs +27 -0
- package/dist/List/index.d.ts +1 -1
- package/dist/List/index.mjs +20 -0
- package/dist/List-CmDZ36np.js +186 -0
- package/dist/List-I1DMEtGe.js +189 -0
- package/dist/Markdown/Markdown.d.ts +7 -1
- package/dist/Markdown/index.cjs +17 -0
- package/dist/Markdown/index.mjs +11 -0
- package/dist/Markdown-Dfdw64jl.js +19018 -0
- package/dist/Markdown-DtkyHOef.js +19020 -0
- package/dist/Menu/Menu.d.ts +4 -8
- package/dist/Menu/index.cjs +23 -0
- package/dist/Menu/index.mjs +17 -0
- package/dist/Menu-BwDriJKM.js +170 -0
- package/dist/Menu-sTQ_rp2M.js +168 -0
- package/dist/Modal/Modal.d.ts +2 -2
- package/dist/Modal/Sizes.css.d.ts +6 -0
- package/dist/Modal/index.cjs +21 -0
- package/dist/Modal/index.mjs +15 -0
- package/dist/Modal-vxYo7BNp.js +61 -0
- package/dist/Modal-xN_ISx5c.js +63 -0
- package/dist/MultiSelect/DropDownMenu.d.ts +1 -1
- package/dist/MultiSelect/MultiSelect.d.ts +1 -1
- package/dist/MultiSelect/index.cjs +16 -0
- package/dist/MultiSelect/index.mjs +10 -0
- package/dist/MultiSelect-CXWg0N7K.js +166 -0
- package/dist/MultiSelect-DW4fwTRk.js +164 -0
- package/dist/Option-6fbSqhDe.js +12 -0
- package/dist/Option-CR1rmEH-.js +15 -0
- package/dist/Page/index.cjs +36 -0
- package/dist/Page/index.mjs +30 -0
- package/dist/Page-A01i8iFg.js +56 -0
- package/dist/Page-Dr44TKUq.js +58 -0
- package/dist/Popover/index.cjs +17 -0
- package/dist/Popover/index.mjs +11 -0
- package/dist/Popover-CmuYw24f.js +50 -0
- package/dist/Popover-CrA2MLlv.js +48 -0
- package/dist/ProgressBar/Sizes.css.d.ts +7 -0
- package/dist/ProgressBar/index.cjs +9 -0
- package/dist/ProgressBar/index.mjs +3 -0
- package/dist/ProgressBar-BwCc6t1v.js +33 -0
- package/dist/ProgressBar-D7Ye8I6m.js +31 -0
- package/dist/RadioGroup/RadioGroup.d.ts +1 -1
- package/dist/RadioGroup/index.cjs +12 -0
- package/dist/RadioGroup/index.mjs +5 -0
- package/dist/RadioGroup-BmRK3oRx.js +36 -0
- package/dist/RadioGroup-c3Iqj10U.js +39 -0
- package/dist/RecurringSelect/CurrentRecurrenceComponent.d.ts +2 -2
- package/dist/RecurringSelect/components/DayOfMonthSelect.d.ts +2 -2
- package/dist/RecurringSelect/components/MonthlyDayOfWeekSelect.d.ts +2 -2
- package/dist/RecurringSelect/components/MonthlySelect.d.ts +2 -2
- package/dist/RecurringSelect/components/WeeklySelect.d.ts +2 -2
- package/dist/RecurringSelect/components/index.cjs +15 -0
- package/dist/RecurringSelect/components/index.mjs +6 -0
- package/dist/RecurringSelect/index.cjs +36 -0
- package/dist/RecurringSelect/index.mjs +22 -0
- package/dist/RecurringSelect-B-Ar11Ly.js +71 -0
- package/dist/RecurringSelect-BGy_A1mO.js +69 -0
- package/dist/Select/Select.d.ts +1 -1
- package/dist/Select/index.cjs +23 -0
- package/dist/Select/index.mjs +16 -0
- package/dist/Spinner/index.cjs +9 -0
- package/dist/Spinner/index.mjs +3 -0
- package/dist/Spinner-Bg1QOlTK.js +14 -0
- package/dist/Spinner-b5Q8KXRQ.js +16 -0
- package/dist/StatusIndicator/StatusIndicator.d.ts +7 -0
- package/dist/StatusIndicator/StatusIndicator.type.d.ts +1 -0
- package/dist/StatusIndicator/index.cjs +8 -0
- package/dist/StatusIndicator/index.d.ts +2 -0
- package/dist/StatusIndicator/index.mjs +2 -0
- package/dist/StatusIndicator-CJokVJe8.js +11 -0
- package/dist/StatusIndicator-DOmArPLV.js +9 -0
- package/dist/StatusLabel/StatusLabel.d.ts +3 -3
- package/dist/StatusLabel/index.cjs +11 -0
- package/dist/StatusLabel/index.mjs +5 -0
- package/dist/StatusLabel-BDRbAp5g.js +18 -0
- package/dist/StatusLabel-C4bqD3Rb.js +16 -0
- package/dist/Switch/index.cjs +10 -0
- package/dist/Switch/index.mjs +4 -0
- package/dist/Switch-BQZyTTVy.js +46 -0
- package/dist/Switch-DRNOFDRD.js +48 -0
- package/dist/Table/Body.d.ts +1 -1
- package/dist/Table/Cells/Cell.d.ts +2 -2
- package/dist/Table/Cells/CellCurrency.d.ts +2 -2
- package/dist/Table/Cells/CellNumeric.d.ts +1 -1
- package/dist/Table/Footer.d.ts +1 -1
- package/dist/Table/Header.d.ts +1 -1
- package/dist/Table/Row.d.ts +1 -1
- package/dist/Table/Table.d.ts +1 -1
- 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-BkuQenTE.js +66 -0
- package/dist/Tabs-DJ-Bbqw_.js +69 -0
- package/dist/Text/Text.d.ts +1 -1
- package/dist/Text/index.cjs +10 -0
- package/dist/Text/index.mjs +4 -0
- package/dist/Text-C3-8gHkD.js +25 -0
- package/dist/{Text-4a2bc89f.js → Text-CuGgzpie.js} +2 -6
- package/dist/Toast/index.cjs +101 -0
- package/dist/Toast/index.mjs +99 -0
- package/dist/Tooltip/Tooltip.d.ts +7 -1
- package/dist/Tooltip/Tooltip.types.d.ts +1 -0
- package/dist/Tooltip/{index.js → index.cjs} +3 -4
- package/dist/Tooltip/index.mjs +8 -0
- package/dist/Tooltip/useTooltipPositioning.d.ts +7 -2
- package/dist/Tooltip-C-wkLpWe.js +107 -0
- package/dist/Tooltip-mp-wmNRd.js +109 -0
- package/dist/Typography/Typography.d.ts +1 -1
- package/dist/Typography/css/Emphasis.css.d.ts +6 -0
- package/dist/Typography/css/FontFamilies.css.d.ts +6 -0
- package/dist/Typography/css/FontSizes.css.d.ts +12 -0
- package/dist/Typography/css/FontWeights.css.d.ts +10 -0
- package/dist/Typography/css/TextAlignment.css.d.ts +7 -0
- package/dist/Typography/css/TextCases.css.d.ts +8 -0
- package/dist/Typography/css/TextColors.css.d.ts +24 -0
- package/dist/Typography/css/Truncate.css.d.ts +5 -0
- package/dist/Typography/css/Typography.css.d.ts +5 -0
- package/dist/Typography/index.cjs +9 -0
- package/dist/Typography/index.mjs +3 -0
- package/dist/Typography-BD0mo9T9.js +36 -0
- package/dist/Typography-Dcec2MjG.js +38 -0
- package/dist/_baseAssignValue-BSo8qsrb.js +29 -0
- package/dist/_baseAssignValue-FZZhsn-s.js +31 -0
- package/dist/_baseEach-B1PpjpKL.js +1073 -0
- package/dist/_baseEach-BGBnrEvT.js +1069 -0
- package/dist/_commonjsHelpers-BZy5LDD5.js +36 -0
- package/dist/_commonjsHelpers-Dy2IPW0w.js +32 -0
- package/dist/_defineProperty-83dOR5RH.js +1306 -0
- package/dist/_defineProperty-BN336VLs.js +1326 -0
- package/dist/_getTag-3syWrFS1.js +718 -0
- package/dist/_getTag-DnTPemdC.js +733 -0
- package/dist/_polyfill-node.process-CrU1R5tX.js +258 -0
- package/dist/_polyfill-node.process-DcZ1HNOw.js +255 -0
- package/dist/_setToString-BpMgcoAm.js +234 -0
- package/dist/_setToString-C4orgkN4.js +230 -0
- package/dist/debounce-BBtff9-S.js +329 -0
- package/dist/debounce-pg3VOrFc.js +332 -0
- package/dist/helpers-CCrssqPg.js +15 -0
- package/dist/helpers-vudHs7FO.js +17 -0
- package/dist/index-CL-RNE5C.js +1186 -0
- package/dist/index-CUhw1yl4.js +1189 -0
- package/dist/index.cjs +272 -0
- package/dist/index.d.mts +73 -0
- package/dist/index.d.ts +73 -0
- package/dist/index.mjs +160 -0
- package/dist/isObjectLike-CcKIYba1.js +190 -0
- package/dist/isObjectLike-D1IeOnmx.js +197 -0
- package/dist/isSymbol-Bbb_qQGw.js +35 -0
- package/dist/isSymbol-BmwHOL7f.js +33 -0
- package/dist/noop-DY7XyR6k.js +24 -0
- package/dist/noop-qmzLZ3Nj.js +26 -0
- package/dist/styles.css +8479 -0
- package/dist/tslib.es6-6AwvlbWV.js +102 -0
- package/dist/tslib.es6-Bu_PBg9i.js +97 -0
- package/dist/useActiveLayout-C05x48Vl.js +16 -0
- package/dist/useActiveLayout-CO8yTWnU.js +14 -0
- package/dist/useAssert-ChYQeQ8b.js +27 -0
- package/dist/useAssert-DPy4bthp.js +27 -0
- package/dist/useBatchSelect-C0tQF0oJ.js +36 -0
- package/dist/useBatchSelect-dH74AopK.js +38 -0
- package/dist/useChildComponent-CuuLz2Q6.js +15 -0
- package/dist/useChildComponent-D562aXq4.js +17 -0
- package/dist/useFocusTrap-CH2wydSN.js +74 -0
- package/dist/useFocusTrap-F2c5ctH_.js +74 -0
- package/dist/useFormFieldFocus-CjqwY0nh.js +37 -0
- package/dist/useFormFieldFocus-vUhlDUFH.js +40 -0
- package/dist/useInView-BC7a7D4f.js +25 -0
- package/dist/useInView-BgkV4xmN.js +25 -0
- package/dist/useIsMounted-JfVXqbjM.js +47 -0
- package/dist/useIsMounted-sXqZBlpo.js +47 -0
- package/dist/useOnKeyDown-BJB7_guO.js +40 -0
- package/dist/useOnKeyDown-D87huTBK.js +40 -0
- package/dist/useRefocusOnActivator-DbDY65I1.js +32 -0
- package/dist/useRefocusOnActivator-vy4E8omX.js +32 -0
- package/dist/useResizeObserver-B4v7ebGO.js +1192 -0
- package/dist/useResizeObserver-CvdP2RtU.js +1189 -0
- package/dist/useResponsiveSizing-BJq005Pj.js +49 -0
- package/dist/useResponsiveSizing-XOJa2OcI.js +51 -0
- package/dist/useSafeLayoutEffect-DHIY4lnV.js +14 -0
- package/dist/useSafeLayoutEffect-tr9DHxlf.js +12 -0
- package/dist/useScrollToActive-CJSHtep6.js +591 -0
- package/dist/useScrollToActive-DGi2_Pva.js +597 -0
- package/dist/utils/getClientBrowser.d.ts +7 -0
- package/package.json +418 -19
- package/rollup.config.mjs +163 -0
- package/dist/AnimatedSwitcher/index.js +0 -13
- package/dist/Autocomplete/index.js +0 -207
- package/dist/Avatar/index.js +0 -15
- package/dist/Avatar-76a799fa.js +0 -78
- package/dist/Banner/index.js +0 -81
- package/dist/Button/index.js +0 -16
- package/dist/Button-163a0641.js +0 -57
- package/dist/ButtonDismiss/index.js +0 -17
- package/dist/ButtonDismiss-2b98d075.js +0 -14
- package/dist/Card/index.js +0 -23
- package/dist/Card-3178033c.js +0 -93
- package/dist/Checkbox/index.js +0 -19
- package/dist/Checkbox-ad7ec2e7.js +0 -64
- package/dist/Chip/index.js +0 -40
- package/dist/Chip-0d2454d9.js +0 -89
- package/dist/Chips/index.js +0 -524
- package/dist/Combobox/index.js +0 -31
- package/dist/Combobox-6840a13e.js +0 -403
- package/dist/ConfirmationModal/index.js +0 -30
- package/dist/Content/index.js +0 -12
- package/dist/Content-2ca1ffe1.js +0 -24
- package/dist/Countdown/index.js +0 -72
- package/dist/DataDump/index.js +0 -36
- package/dist/DataList/index.js +0 -1229
- package/dist/DataTable/index.js +0 -296
- package/dist/DatePicker/index.js +0 -20
- package/dist/DatePicker-c18f1739.js +0 -134
- 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 -49
- package/dist/Emphasis/index.js +0 -13
- package/dist/Emphasis-b2d1b3aa.js +0 -19
- package/dist/FeatureSwitch/index.js +0 -69
- package/dist/Flex/index.js +0 -40
- package/dist/FormField/index.js +0 -24
- package/dist/FormField-dfc061ca.js +0 -227
- package/dist/FormatEmail/index.js +0 -23
- package/dist/FormatFile/index.js +0 -35
- package/dist/FormatFile-48f2bf7d.js +0 -121
- package/dist/Gallery/index.js +0 -98
- package/dist/Glimmer/index.js +0 -15
- package/dist/Glimmer-cfa92a88.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-9a517c19.js +0 -28
- package/dist/InputAvatar/index.js +0 -68
- package/dist/InputDate/index.js +0 -57
- package/dist/InputEmail/index.js +0 -43
- package/dist/InputFile/index.js +0 -23
- package/dist/InputFile-540c1657.js +0 -162
- package/dist/InputGroup/index.js +0 -12
- package/dist/InputGroup-3fdde16b.js +0 -33
- package/dist/InputNumber/index.js +0 -25
- package/dist/InputPassword/index.js +0 -41
- package/dist/InputText/index.js +0 -25
- package/dist/InputTime/InputTimeSafari.d.ts +0 -3
- package/dist/InputTime/index.js +0 -802
- package/dist/InputValidation/index.js +0 -17
- package/dist/InputValidation-179f0926.js +0 -29
- package/dist/LightBox/index.js +0 -24
- package/dist/LightBox-3f4dbc33.js +0 -117
- package/dist/Link/index.js +0 -15
- package/dist/List/index.js +0 -92
- package/dist/Markdown/index.js +0 -18
- package/dist/Markdown-96070121.js +0 -62
- package/dist/Menu/index.js +0 -21
- package/dist/Menu-d7ea093c.js +0 -139
- package/dist/Modal/index.js +0 -24
- package/dist/Modal-70daa0e2.js +0 -71
- package/dist/MultiSelect/index.js +0 -195
- package/dist/MultiSelect/utils.d.ts +0 -3
- package/dist/Option-469029b5.js +0 -19
- package/dist/Page/index.js +0 -77
- package/dist/Popover/index.js +0 -61
- package/dist/ProgressBar/index.js +0 -12
- package/dist/ProgressBar-2d3ae29b.js +0 -43
- package/dist/RadioGroup/index.js +0 -16
- package/dist/RadioGroup-ebaa4f87.js +0 -47
- package/dist/RecurringSelect/index.js +0 -227
- package/dist/Select/index.js +0 -26
- package/dist/Spinner/index.js +0 -12
- package/dist/Spinner-9d8fc7ff.js +0 -24
- package/dist/StatusLabel/index.js +0 -30
- package/dist/Switch/index.js +0 -13
- package/dist/Switch-b85272bf.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 -111
- package/dist/Tooltip-6b12f1c2.js +0 -111
- package/dist/Typography/index.js +0 -12
- package/dist/Typography-973b122e.js +0 -62
- package/dist/style-inject.es-9d2f5f4e.js +0 -30
- package/dist/tslib.es6-5b8768b7.js +0 -41
- package/rollup.config.js +0 -75
- /package/{.eslintrc.js → .eslintrc.cjs} +0 -0
package/dist/Menu/Menu.d.ts
CHANGED
|
@@ -18,28 +18,24 @@ export interface SectionProps {
|
|
|
18
18
|
/**
|
|
19
19
|
* List of actions.
|
|
20
20
|
*/
|
|
21
|
-
actions:
|
|
21
|
+
actions: ActionProps[];
|
|
22
22
|
}
|
|
23
23
|
export declare function Menu({ activator, items }: MenuProps): JSX.Element;
|
|
24
24
|
export interface ActionProps {
|
|
25
25
|
/**
|
|
26
26
|
* Action label
|
|
27
27
|
*/
|
|
28
|
-
label: string;
|
|
28
|
+
readonly label: string;
|
|
29
29
|
/**
|
|
30
30
|
* Parent Section Label
|
|
31
31
|
*/
|
|
32
|
-
sectionLabel?: string;
|
|
32
|
+
readonly sectionLabel?: string;
|
|
33
33
|
/**
|
|
34
34
|
* Visual cue for the action label
|
|
35
35
|
*/
|
|
36
|
-
icon?: IconNames;
|
|
36
|
+
readonly icon?: IconNames;
|
|
37
37
|
/**
|
|
38
38
|
* Callback when an action gets clicked
|
|
39
39
|
*/
|
|
40
40
|
onClick?(event: React.MouseEvent<HTMLButtonElement>): void;
|
|
41
|
-
/**
|
|
42
|
-
* Focus on the action when rendered
|
|
43
|
-
*/
|
|
44
|
-
shouldFocus?: boolean;
|
|
45
41
|
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var Menu = require('../Menu-BwDriJKM.js');
|
|
4
|
+
require('react');
|
|
5
|
+
require('classnames');
|
|
6
|
+
require('framer-motion');
|
|
7
|
+
require('../useOnKeyDown-D87huTBK.js');
|
|
8
|
+
require('../useRefocusOnActivator-DbDY65I1.js');
|
|
9
|
+
require('react-popper');
|
|
10
|
+
require('../useIsMounted-sXqZBlpo.js');
|
|
11
|
+
require('../useSafeLayoutEffect-DHIY4lnV.js');
|
|
12
|
+
require('react-dom');
|
|
13
|
+
require('../useFocusTrap-CH2wydSN.js');
|
|
14
|
+
require('../Button-CvQJyw1M.js');
|
|
15
|
+
require('react-router-dom');
|
|
16
|
+
require('../Icon-fa-Ii8qc.js');
|
|
17
|
+
require('@jobber/design');
|
|
18
|
+
require('../Typography-Dcec2MjG.js');
|
|
19
|
+
require('../useFormFieldFocus-vUhlDUFH.js');
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
exports.Menu = Menu.Menu;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export { M as Menu } from '../Menu-sTQ_rp2M.js';
|
|
2
|
+
import 'react';
|
|
3
|
+
import 'classnames';
|
|
4
|
+
import 'framer-motion';
|
|
5
|
+
import '../useOnKeyDown-BJB7_guO.js';
|
|
6
|
+
import '../useRefocusOnActivator-vy4E8omX.js';
|
|
7
|
+
import 'react-popper';
|
|
8
|
+
import '../useIsMounted-JfVXqbjM.js';
|
|
9
|
+
import '../useSafeLayoutEffect-tr9DHxlf.js';
|
|
10
|
+
import 'react-dom';
|
|
11
|
+
import '../useFocusTrap-F2c5ctH_.js';
|
|
12
|
+
import '../Button-DjFrVgPj.js';
|
|
13
|
+
import 'react-router-dom';
|
|
14
|
+
import '../Icon-GaU33tZU.js';
|
|
15
|
+
import '@jobber/design';
|
|
16
|
+
import '../Typography-BD0mo9T9.js';
|
|
17
|
+
import '../useFormFieldFocus-CjqwY0nh.js';
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var React = require('react');
|
|
4
|
+
var classnames = require('classnames');
|
|
5
|
+
var framerMotion = require('framer-motion');
|
|
6
|
+
var useOnKeyDown = require('./useOnKeyDown-D87huTBK.js');
|
|
7
|
+
var useRefocusOnActivator = require('./useRefocusOnActivator-DbDY65I1.js');
|
|
8
|
+
var reactPopper = require('react-popper');
|
|
9
|
+
var useIsMounted = require('./useIsMounted-sXqZBlpo.js');
|
|
10
|
+
var ReactDOM = require('react-dom');
|
|
11
|
+
var useFocusTrap = require('./useFocusTrap-CH2wydSN.js');
|
|
12
|
+
var Button = require('./Button-CvQJyw1M.js');
|
|
13
|
+
var Typography = require('./Typography-Dcec2MjG.js');
|
|
14
|
+
var Icon = require('./Icon-fa-Ii8qc.js');
|
|
15
|
+
var useFormFieldFocus = require('./useFormFieldFocus-vUhlDUFH.js');
|
|
16
|
+
|
|
17
|
+
var useWindowDimensions$1 = {};
|
|
18
|
+
|
|
19
|
+
Object.defineProperty(useWindowDimensions$1, "__esModule", { value: true });
|
|
20
|
+
var useWindowDimensions_2 = useWindowDimensions$1.useWindowDimensions = void 0;
|
|
21
|
+
const react_1 = React;
|
|
22
|
+
function getWindowDimensions() {
|
|
23
|
+
if (!(globalThis === null || globalThis === void 0 ? void 0 : globalThis.document)) {
|
|
24
|
+
return {
|
|
25
|
+
width: 0,
|
|
26
|
+
height: 0,
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
const { innerWidth: width, innerHeight: height } = window;
|
|
30
|
+
return {
|
|
31
|
+
width,
|
|
32
|
+
height,
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
function useWindowDimensions() {
|
|
36
|
+
const [windowDimensions, setWindowDimensions] = (0, react_1.useState)(getWindowDimensions());
|
|
37
|
+
(0, react_1.useEffect)(() => {
|
|
38
|
+
function handleResize() {
|
|
39
|
+
setWindowDimensions(getWindowDimensions());
|
|
40
|
+
}
|
|
41
|
+
window === null || window === void 0 ? void 0 : window.addEventListener("resize", handleResize);
|
|
42
|
+
return () => window === null || window === void 0 ? void 0 : window.removeEventListener("resize", handleResize);
|
|
43
|
+
}, []);
|
|
44
|
+
return windowDimensions;
|
|
45
|
+
}
|
|
46
|
+
useWindowDimensions_2 = useWindowDimensions$1.useWindowDimensions = useWindowDimensions;
|
|
47
|
+
|
|
48
|
+
var styles = {"wrapper":"dT6M9tp1sZc-","popperContainer":"_9pvjsJS6vsg-","shadowRef":"G7Nzd9sctos-","menu":"Qmxlsj0D3qM-","section":"LaKFjYCLHZc-","sectionHeader":"_7HB7dWnqCi0-","action":"ZuceCiefKqw-","overlay":"eKnUAucwwWU-","fullWidth":"oaxefr58z-E-","screenReaderOnly":"vz9opIdwHFg-"};
|
|
49
|
+
|
|
50
|
+
const SMALL_SCREEN_BREAKPOINT = 490;
|
|
51
|
+
const MENU_OFFSET = 6;
|
|
52
|
+
const variation = {
|
|
53
|
+
overlayStartStop: { opacity: 0 },
|
|
54
|
+
startOrStop: (placement) => {
|
|
55
|
+
let y = 10;
|
|
56
|
+
if (placement === null || placement === void 0 ? void 0 : placement.includes("bottom"))
|
|
57
|
+
y *= -1;
|
|
58
|
+
if (window.innerWidth < SMALL_SCREEN_BREAKPOINT)
|
|
59
|
+
y = 150;
|
|
60
|
+
return { opacity: 0, y };
|
|
61
|
+
},
|
|
62
|
+
done: { opacity: 1, y: 0 },
|
|
63
|
+
};
|
|
64
|
+
// eslint-disable-next-line max-statements
|
|
65
|
+
function Menu({ activator, items }) {
|
|
66
|
+
var _a, _b;
|
|
67
|
+
const [visible, setVisible] = React.useState(false);
|
|
68
|
+
const shadowRef = React.useRef(null);
|
|
69
|
+
const { width } = useWindowDimensions_2();
|
|
70
|
+
const buttonID = React.useId();
|
|
71
|
+
const menuID = React.useId();
|
|
72
|
+
const fullWidth = ((_a = activator === null || activator === void 0 ? void 0 : activator.props) === null || _a === void 0 ? void 0 : _a.fullWidth) || false;
|
|
73
|
+
const wrapperClasses = classnames(styles.wrapper, {
|
|
74
|
+
[styles.fullWidth]: fullWidth,
|
|
75
|
+
});
|
|
76
|
+
useOnKeyDown.useOnKeyDown_2(handleKeyboardShortcut, ["Escape"]);
|
|
77
|
+
// useRefocusOnActivator must come before useFocusTrap for them both to work
|
|
78
|
+
useRefocusOnActivator.useRefocusOnActivator_2(visible);
|
|
79
|
+
const menuRef = useFocusTrap.useFocusTrap_2(visible);
|
|
80
|
+
const [popperElement, setPopperElement] = React.useState(null);
|
|
81
|
+
const { styles: popperStyles, attributes, state, } = reactPopper.usePopper((_b = shadowRef.current) === null || _b === void 0 ? void 0 : _b.nextElementSibling, popperElement, {
|
|
82
|
+
placement: "bottom-start",
|
|
83
|
+
strategy: "fixed",
|
|
84
|
+
modifiers: [
|
|
85
|
+
{
|
|
86
|
+
name: "flip",
|
|
87
|
+
options: {
|
|
88
|
+
flipVariations: true,
|
|
89
|
+
},
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
name: "offset",
|
|
93
|
+
options: {
|
|
94
|
+
offset: [0, MENU_OFFSET],
|
|
95
|
+
},
|
|
96
|
+
},
|
|
97
|
+
],
|
|
98
|
+
});
|
|
99
|
+
const positionAttributes = width >= SMALL_SCREEN_BREAKPOINT
|
|
100
|
+
? Object.assign(Object.assign({}, attributes.popper), { style: popperStyles.popper }) : {};
|
|
101
|
+
if (!activator) {
|
|
102
|
+
activator = (React.createElement(Button.Button, { fullWidth: true, label: "More Actions", icon: "more", type: "secondary" }));
|
|
103
|
+
}
|
|
104
|
+
return (React.createElement("div", { className: wrapperClasses, onClick: handleParentClick },
|
|
105
|
+
React.createElement("span", { ref: shadowRef, className: styles.shadowRef }),
|
|
106
|
+
React.cloneElement(activator, {
|
|
107
|
+
onClick: toggle(activator.props.onClick),
|
|
108
|
+
id: buttonID,
|
|
109
|
+
ariaControls: menuID,
|
|
110
|
+
ariaExpanded: visible,
|
|
111
|
+
ariaHaspopup: true,
|
|
112
|
+
}),
|
|
113
|
+
React.createElement(MenuPortal, null,
|
|
114
|
+
React.createElement(framerMotion.AnimatePresence, null, visible && (React.createElement(React.Fragment, null,
|
|
115
|
+
React.createElement(framerMotion.motion.div, { className: styles.overlay, onClick: toggle(), variants: variation, initial: "overlayStartStop", animate: "done", exit: "overlayStartStop", transition: {
|
|
116
|
+
type: "tween",
|
|
117
|
+
duration: 0.15,
|
|
118
|
+
} }),
|
|
119
|
+
React.createElement("div", Object.assign({ ref: setPopperElement, className: styles.popperContainer }, positionAttributes, useFormFieldFocus.formFieldFocusAttribute), items.length > 0 && (React.createElement(framerMotion.motion.div, { className: styles.menu, role: "menu", "aria-labelledby": buttonID, id: menuID, onClick: hide, variants: variation, initial: "startOrStop", animate: "done", exit: "startOrStop", custom: state === null || state === void 0 ? void 0 : state.placement, ref: menuRef, transition: {
|
|
120
|
+
type: "tween",
|
|
121
|
+
duration: 0.25,
|
|
122
|
+
} }, items.map((item, key) => (React.createElement("div", { key: key, className: styles.section },
|
|
123
|
+
item.header && React.createElement(SectionHeader, { text: item.header }),
|
|
124
|
+
item.actions.map(action => (React.createElement(Action, Object.assign({ sectionLabel: item.header, key: action.label }, action))))))))))))))));
|
|
125
|
+
function toggle(callbackPassthrough) {
|
|
126
|
+
return (event) => {
|
|
127
|
+
setVisible(!visible);
|
|
128
|
+
callbackPassthrough && callbackPassthrough(event);
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
function hide() {
|
|
132
|
+
setVisible(false);
|
|
133
|
+
}
|
|
134
|
+
function handleKeyboardShortcut(event) {
|
|
135
|
+
const { key } = event;
|
|
136
|
+
if (!visible)
|
|
137
|
+
return;
|
|
138
|
+
event.preventDefault();
|
|
139
|
+
event.stopPropagation();
|
|
140
|
+
key === "Escape" && hide();
|
|
141
|
+
}
|
|
142
|
+
function handleParentClick(event) {
|
|
143
|
+
// Since the menu is being rendered within the same parent as the activator,
|
|
144
|
+
// we need to stop the click event from bubbling up. If the Menu component
|
|
145
|
+
// gets added within a parent that has a click handler, any click on the
|
|
146
|
+
// menu will trigger the parent's click handler.
|
|
147
|
+
event.stopPropagation();
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
function SectionHeader({ text }) {
|
|
151
|
+
return (React.createElement("div", { className: styles.sectionHeader, "aria-hidden": true },
|
|
152
|
+
React.createElement(Typography.Typography, { element: "h6", size: "base", textColor: "textSecondary", fontWeight: "regular", textCase: "none" }, text)));
|
|
153
|
+
}
|
|
154
|
+
function Action({ label, sectionLabel, icon, onClick }) {
|
|
155
|
+
const actionButtonRef = React.useRef();
|
|
156
|
+
return (React.createElement("button", { role: "menuitem", type: "button", className: styles.action, key: label, onClick: onClick, ref: actionButtonRef },
|
|
157
|
+
icon && React.createElement(Icon.Icon, { name: icon }),
|
|
158
|
+
React.createElement(Typography.Typography, { element: "span", fontWeight: "semiBold", textColor: "textSecondary" },
|
|
159
|
+
sectionLabel && (React.createElement("span", { className: styles.screenReaderOnly }, sectionLabel)),
|
|
160
|
+
label)));
|
|
161
|
+
}
|
|
162
|
+
function MenuPortal({ children }) {
|
|
163
|
+
const mounted = useIsMounted.useIsMounted_2();
|
|
164
|
+
if (!(mounted === null || mounted === void 0 ? void 0 : mounted.current)) {
|
|
165
|
+
return null;
|
|
166
|
+
}
|
|
167
|
+
return ReactDOM.createPortal(children, document.body);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
exports.Menu = Menu;
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
import React, { useState, useRef, useId } from 'react';
|
|
2
|
+
import classnames from 'classnames';
|
|
3
|
+
import { AnimatePresence, motion } from 'framer-motion';
|
|
4
|
+
import { u as useOnKeyDown_2 } from './useOnKeyDown-BJB7_guO.js';
|
|
5
|
+
import { u as useRefocusOnActivator_2 } from './useRefocusOnActivator-vy4E8omX.js';
|
|
6
|
+
import { usePopper } from 'react-popper';
|
|
7
|
+
import { u as useIsMounted_2 } from './useIsMounted-JfVXqbjM.js';
|
|
8
|
+
import ReactDOM from 'react-dom';
|
|
9
|
+
import { u as useFocusTrap_2 } from './useFocusTrap-F2c5ctH_.js';
|
|
10
|
+
import { B as Button } from './Button-DjFrVgPj.js';
|
|
11
|
+
import { T as Typography } from './Typography-BD0mo9T9.js';
|
|
12
|
+
import { I as Icon } from './Icon-GaU33tZU.js';
|
|
13
|
+
import { f as formFieldFocusAttribute } from './useFormFieldFocus-CjqwY0nh.js';
|
|
14
|
+
|
|
15
|
+
var useWindowDimensions$1 = {};
|
|
16
|
+
|
|
17
|
+
Object.defineProperty(useWindowDimensions$1, "__esModule", { value: true });
|
|
18
|
+
var useWindowDimensions_2 = useWindowDimensions$1.useWindowDimensions = void 0;
|
|
19
|
+
const react_1 = React;
|
|
20
|
+
function getWindowDimensions() {
|
|
21
|
+
if (!(globalThis === null || globalThis === void 0 ? void 0 : globalThis.document)) {
|
|
22
|
+
return {
|
|
23
|
+
width: 0,
|
|
24
|
+
height: 0,
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
const { innerWidth: width, innerHeight: height } = window;
|
|
28
|
+
return {
|
|
29
|
+
width,
|
|
30
|
+
height,
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
function useWindowDimensions() {
|
|
34
|
+
const [windowDimensions, setWindowDimensions] = (0, react_1.useState)(getWindowDimensions());
|
|
35
|
+
(0, react_1.useEffect)(() => {
|
|
36
|
+
function handleResize() {
|
|
37
|
+
setWindowDimensions(getWindowDimensions());
|
|
38
|
+
}
|
|
39
|
+
window === null || window === void 0 ? void 0 : window.addEventListener("resize", handleResize);
|
|
40
|
+
return () => window === null || window === void 0 ? void 0 : window.removeEventListener("resize", handleResize);
|
|
41
|
+
}, []);
|
|
42
|
+
return windowDimensions;
|
|
43
|
+
}
|
|
44
|
+
useWindowDimensions_2 = useWindowDimensions$1.useWindowDimensions = useWindowDimensions;
|
|
45
|
+
|
|
46
|
+
var styles = {"wrapper":"dT6M9tp1sZc-","popperContainer":"_9pvjsJS6vsg-","shadowRef":"G7Nzd9sctos-","menu":"Qmxlsj0D3qM-","section":"LaKFjYCLHZc-","sectionHeader":"_7HB7dWnqCi0-","action":"ZuceCiefKqw-","overlay":"eKnUAucwwWU-","fullWidth":"oaxefr58z-E-","screenReaderOnly":"vz9opIdwHFg-"};
|
|
47
|
+
|
|
48
|
+
const SMALL_SCREEN_BREAKPOINT = 490;
|
|
49
|
+
const MENU_OFFSET = 6;
|
|
50
|
+
const variation = {
|
|
51
|
+
overlayStartStop: { opacity: 0 },
|
|
52
|
+
startOrStop: (placement) => {
|
|
53
|
+
let y = 10;
|
|
54
|
+
if (placement === null || placement === void 0 ? void 0 : placement.includes("bottom"))
|
|
55
|
+
y *= -1;
|
|
56
|
+
if (window.innerWidth < SMALL_SCREEN_BREAKPOINT)
|
|
57
|
+
y = 150;
|
|
58
|
+
return { opacity: 0, y };
|
|
59
|
+
},
|
|
60
|
+
done: { opacity: 1, y: 0 },
|
|
61
|
+
};
|
|
62
|
+
// eslint-disable-next-line max-statements
|
|
63
|
+
function Menu({ activator, items }) {
|
|
64
|
+
var _a, _b;
|
|
65
|
+
const [visible, setVisible] = useState(false);
|
|
66
|
+
const shadowRef = useRef(null);
|
|
67
|
+
const { width } = useWindowDimensions_2();
|
|
68
|
+
const buttonID = useId();
|
|
69
|
+
const menuID = useId();
|
|
70
|
+
const fullWidth = ((_a = activator === null || activator === void 0 ? void 0 : activator.props) === null || _a === void 0 ? void 0 : _a.fullWidth) || false;
|
|
71
|
+
const wrapperClasses = classnames(styles.wrapper, {
|
|
72
|
+
[styles.fullWidth]: fullWidth,
|
|
73
|
+
});
|
|
74
|
+
useOnKeyDown_2(handleKeyboardShortcut, ["Escape"]);
|
|
75
|
+
// useRefocusOnActivator must come before useFocusTrap for them both to work
|
|
76
|
+
useRefocusOnActivator_2(visible);
|
|
77
|
+
const menuRef = useFocusTrap_2(visible);
|
|
78
|
+
const [popperElement, setPopperElement] = useState(null);
|
|
79
|
+
const { styles: popperStyles, attributes, state, } = usePopper((_b = shadowRef.current) === null || _b === void 0 ? void 0 : _b.nextElementSibling, popperElement, {
|
|
80
|
+
placement: "bottom-start",
|
|
81
|
+
strategy: "fixed",
|
|
82
|
+
modifiers: [
|
|
83
|
+
{
|
|
84
|
+
name: "flip",
|
|
85
|
+
options: {
|
|
86
|
+
flipVariations: true,
|
|
87
|
+
},
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
name: "offset",
|
|
91
|
+
options: {
|
|
92
|
+
offset: [0, MENU_OFFSET],
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
],
|
|
96
|
+
});
|
|
97
|
+
const positionAttributes = width >= SMALL_SCREEN_BREAKPOINT
|
|
98
|
+
? Object.assign(Object.assign({}, attributes.popper), { style: popperStyles.popper }) : {};
|
|
99
|
+
if (!activator) {
|
|
100
|
+
activator = (React.createElement(Button, { fullWidth: true, label: "More Actions", icon: "more", type: "secondary" }));
|
|
101
|
+
}
|
|
102
|
+
return (React.createElement("div", { className: wrapperClasses, onClick: handleParentClick },
|
|
103
|
+
React.createElement("span", { ref: shadowRef, className: styles.shadowRef }),
|
|
104
|
+
React.cloneElement(activator, {
|
|
105
|
+
onClick: toggle(activator.props.onClick),
|
|
106
|
+
id: buttonID,
|
|
107
|
+
ariaControls: menuID,
|
|
108
|
+
ariaExpanded: visible,
|
|
109
|
+
ariaHaspopup: true,
|
|
110
|
+
}),
|
|
111
|
+
React.createElement(MenuPortal, null,
|
|
112
|
+
React.createElement(AnimatePresence, null, visible && (React.createElement(React.Fragment, null,
|
|
113
|
+
React.createElement(motion.div, { className: styles.overlay, onClick: toggle(), variants: variation, initial: "overlayStartStop", animate: "done", exit: "overlayStartStop", transition: {
|
|
114
|
+
type: "tween",
|
|
115
|
+
duration: 0.15,
|
|
116
|
+
} }),
|
|
117
|
+
React.createElement("div", Object.assign({ ref: setPopperElement, className: styles.popperContainer }, positionAttributes, formFieldFocusAttribute), items.length > 0 && (React.createElement(motion.div, { className: styles.menu, role: "menu", "aria-labelledby": buttonID, id: menuID, onClick: hide, variants: variation, initial: "startOrStop", animate: "done", exit: "startOrStop", custom: state === null || state === void 0 ? void 0 : state.placement, ref: menuRef, transition: {
|
|
118
|
+
type: "tween",
|
|
119
|
+
duration: 0.25,
|
|
120
|
+
} }, items.map((item, key) => (React.createElement("div", { key: key, className: styles.section },
|
|
121
|
+
item.header && React.createElement(SectionHeader, { text: item.header }),
|
|
122
|
+
item.actions.map(action => (React.createElement(Action, Object.assign({ sectionLabel: item.header, key: action.label }, action))))))))))))))));
|
|
123
|
+
function toggle(callbackPassthrough) {
|
|
124
|
+
return (event) => {
|
|
125
|
+
setVisible(!visible);
|
|
126
|
+
callbackPassthrough && callbackPassthrough(event);
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
function hide() {
|
|
130
|
+
setVisible(false);
|
|
131
|
+
}
|
|
132
|
+
function handleKeyboardShortcut(event) {
|
|
133
|
+
const { key } = event;
|
|
134
|
+
if (!visible)
|
|
135
|
+
return;
|
|
136
|
+
event.preventDefault();
|
|
137
|
+
event.stopPropagation();
|
|
138
|
+
key === "Escape" && hide();
|
|
139
|
+
}
|
|
140
|
+
function handleParentClick(event) {
|
|
141
|
+
// Since the menu is being rendered within the same parent as the activator,
|
|
142
|
+
// we need to stop the click event from bubbling up. If the Menu component
|
|
143
|
+
// gets added within a parent that has a click handler, any click on the
|
|
144
|
+
// menu will trigger the parent's click handler.
|
|
145
|
+
event.stopPropagation();
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
function SectionHeader({ text }) {
|
|
149
|
+
return (React.createElement("div", { className: styles.sectionHeader, "aria-hidden": true },
|
|
150
|
+
React.createElement(Typography, { element: "h6", size: "base", textColor: "textSecondary", fontWeight: "regular", textCase: "none" }, text)));
|
|
151
|
+
}
|
|
152
|
+
function Action({ label, sectionLabel, icon, onClick }) {
|
|
153
|
+
const actionButtonRef = useRef();
|
|
154
|
+
return (React.createElement("button", { role: "menuitem", type: "button", className: styles.action, key: label, onClick: onClick, ref: actionButtonRef },
|
|
155
|
+
icon && React.createElement(Icon, { name: icon }),
|
|
156
|
+
React.createElement(Typography, { element: "span", fontWeight: "semiBold", textColor: "textSecondary" },
|
|
157
|
+
sectionLabel && (React.createElement("span", { className: styles.screenReaderOnly }, sectionLabel)),
|
|
158
|
+
label)));
|
|
159
|
+
}
|
|
160
|
+
function MenuPortal({ children }) {
|
|
161
|
+
const mounted = useIsMounted_2();
|
|
162
|
+
if (!(mounted === null || mounted === void 0 ? void 0 : mounted.current)) {
|
|
163
|
+
return null;
|
|
164
|
+
}
|
|
165
|
+
return ReactDOM.createPortal(children, document.body);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
export { Menu as M };
|
package/dist/Modal/Modal.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
2
|
import sizes from "./Sizes.css";
|
|
3
3
|
import { ButtonProps } from "../Button";
|
|
4
4
|
export interface ModalProps {
|
|
@@ -18,4 +18,4 @@ export interface ModalProps {
|
|
|
18
18
|
readonly tertiaryAction?: ButtonProps;
|
|
19
19
|
onRequestClose?(): void;
|
|
20
20
|
}
|
|
21
|
-
export declare function Modal({ open, title, size, dismissible, children, primaryAction, secondaryAction, tertiaryAction, onRequestClose, }: ModalProps):
|
|
21
|
+
export declare function Modal({ open, title, size, dismissible, children, primaryAction, secondaryAction, tertiaryAction, onRequestClose, }: ModalProps): JSX.Element;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var Modal = require('../Modal-xN_ISx5c.js');
|
|
4
|
+
require('react');
|
|
5
|
+
require('react-dom');
|
|
6
|
+
require('classnames');
|
|
7
|
+
require('framer-motion');
|
|
8
|
+
require('../useRefocusOnActivator-DbDY65I1.js');
|
|
9
|
+
require('../useOnKeyDown-D87huTBK.js');
|
|
10
|
+
require('../useFocusTrap-CH2wydSN.js');
|
|
11
|
+
require('../Heading-BhyZ43jQ.js');
|
|
12
|
+
require('../Typography-Dcec2MjG.js');
|
|
13
|
+
require('../Button-CvQJyw1M.js');
|
|
14
|
+
require('react-router-dom');
|
|
15
|
+
require('../Icon-fa-Ii8qc.js');
|
|
16
|
+
require('@jobber/design');
|
|
17
|
+
require('../ButtonDismiss-B6rD5rB-.js');
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
exports.Modal = Modal.Modal;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export { M as Modal } from '../Modal-vxYo7BNp.js';
|
|
2
|
+
import 'react';
|
|
3
|
+
import 'react-dom';
|
|
4
|
+
import 'classnames';
|
|
5
|
+
import 'framer-motion';
|
|
6
|
+
import '../useRefocusOnActivator-vy4E8omX.js';
|
|
7
|
+
import '../useOnKeyDown-BJB7_guO.js';
|
|
8
|
+
import '../useFocusTrap-F2c5ctH_.js';
|
|
9
|
+
import '../Heading-qH5QZFoM.js';
|
|
10
|
+
import '../Typography-BD0mo9T9.js';
|
|
11
|
+
import '../Button-DjFrVgPj.js';
|
|
12
|
+
import 'react-router-dom';
|
|
13
|
+
import '../Icon-GaU33tZU.js';
|
|
14
|
+
import '@jobber/design';
|
|
15
|
+
import '../ButtonDismiss-C2LOl-QT.js';
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import ReactDOM from 'react-dom';
|
|
3
|
+
import classnames from 'classnames';
|
|
4
|
+
import { AnimatePresence, motion } from 'framer-motion';
|
|
5
|
+
import { u as useRefocusOnActivator_2 } from './useRefocusOnActivator-vy4E8omX.js';
|
|
6
|
+
import { u as useOnKeyDown_2 } from './useOnKeyDown-BJB7_guO.js';
|
|
7
|
+
import { u as useFocusTrap_2 } from './useFocusTrap-F2c5ctH_.js';
|
|
8
|
+
import { H as Heading } from './Heading-qH5QZFoM.js';
|
|
9
|
+
import { B as Button } from './Button-DjFrVgPj.js';
|
|
10
|
+
import { B as ButtonDismiss } from './ButtonDismiss-C2LOl-QT.js';
|
|
11
|
+
|
|
12
|
+
var styles = {"container":"QGRLFHPoV5E-","overlay":"_4WzGOMUGj5I-","modal":"WLId2NJBQcQ-","header":"wjrPpIUNNrk-","closeButton":"rKvigUnOyYE-","actionBar":"_62c8HLZFwvs-","leftAction":"Xl1Ptn-P9Ew-","rightAction":"p2s7GtpoZz0-"};
|
|
13
|
+
|
|
14
|
+
var sizes = {"small":"_65IpUjOZiBg-","large":"Cpwnmw65caA-"};
|
|
15
|
+
|
|
16
|
+
function Modal({ open = false, title, size, dismissible = true, children, primaryAction, secondaryAction, tertiaryAction, onRequestClose, }) {
|
|
17
|
+
const modalClassName = classnames(styles.modal, size && sizes[size]);
|
|
18
|
+
useRefocusOnActivator_2(open);
|
|
19
|
+
const modalRef = useFocusTrap_2(open);
|
|
20
|
+
useOnKeyDown_2(handleRequestClose, "Escape");
|
|
21
|
+
const template = (React.createElement(AnimatePresence, null, open && (React.createElement("div", { ref: modalRef, role: "dialog", className: styles.container, tabIndex: 0 },
|
|
22
|
+
React.createElement(motion.div, { key: styles.overlay, className: styles.overlay, onClick: onRequestClose, initial: { opacity: 0 }, animate: { opacity: 0.8 }, exit: { opacity: 0 }, transition: { duration: 0.2 } }),
|
|
23
|
+
React.createElement(motion.div, { key: styles.modal, className: modalClassName, initial: { scale: 0.9, opacity: 0 }, animate: { scale: 1, opacity: 1 }, exit: { scale: 0.9, opacity: 0 }, transition: {
|
|
24
|
+
duration: 0.2,
|
|
25
|
+
ease: "easeInOut",
|
|
26
|
+
} },
|
|
27
|
+
title != undefined && (React.createElement(Header, { title: title, dismissible: dismissible, onRequestClose: onRequestClose })),
|
|
28
|
+
children,
|
|
29
|
+
React.createElement(Actions, { primary: primaryAction, secondary: secondaryAction, tertiary: tertiaryAction }))))));
|
|
30
|
+
return (globalThis === null || globalThis === void 0 ? void 0 : globalThis.document)
|
|
31
|
+
? ReactDOM.createPortal(template, document.body)
|
|
32
|
+
: template;
|
|
33
|
+
function handleRequestClose() {
|
|
34
|
+
if (open && onRequestClose) {
|
|
35
|
+
onRequestClose();
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
function Header({ title, dismissible, onRequestClose }) {
|
|
40
|
+
return (React.createElement("div", { className: styles.header, "data-testid": "modal-header" },
|
|
41
|
+
React.createElement(Heading, { level: 2 }, title),
|
|
42
|
+
dismissible && (React.createElement("div", { className: styles.closeButton },
|
|
43
|
+
React.createElement(ButtonDismiss, { onClick: onRequestClose, ariaLabel: "Close modal" })))));
|
|
44
|
+
}
|
|
45
|
+
function Actions({ primary, secondary, tertiary }) {
|
|
46
|
+
const shouldShow = primary != undefined || secondary != undefined || tertiary != undefined;
|
|
47
|
+
if (secondary != undefined) {
|
|
48
|
+
secondary = Object.assign({ type: "primary", variation: "subtle" }, secondary);
|
|
49
|
+
}
|
|
50
|
+
if (tertiary != undefined) {
|
|
51
|
+
tertiary = Object.assign({ type: "secondary", variation: "destructive" }, tertiary);
|
|
52
|
+
}
|
|
53
|
+
return (React.createElement(React.Fragment, null, shouldShow && (React.createElement("div", { className: styles.actionBar },
|
|
54
|
+
React.createElement("div", { className: styles.rightAction },
|
|
55
|
+
primary && React.createElement(Button, Object.assign({}, primary)),
|
|
56
|
+
secondary && React.createElement(Button, Object.assign({}, secondary))),
|
|
57
|
+
tertiary && (React.createElement("div", { className: styles.leftAction },
|
|
58
|
+
React.createElement(Button, Object.assign({}, tertiary))))))));
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export { Modal as M };
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var React = require('react');
|
|
4
|
+
var ReactDOM = require('react-dom');
|
|
5
|
+
var classnames = require('classnames');
|
|
6
|
+
var framerMotion = require('framer-motion');
|
|
7
|
+
var useRefocusOnActivator = require('./useRefocusOnActivator-DbDY65I1.js');
|
|
8
|
+
var useOnKeyDown = require('./useOnKeyDown-D87huTBK.js');
|
|
9
|
+
var useFocusTrap = require('./useFocusTrap-CH2wydSN.js');
|
|
10
|
+
var Heading = require('./Heading-BhyZ43jQ.js');
|
|
11
|
+
var Button = require('./Button-CvQJyw1M.js');
|
|
12
|
+
var ButtonDismiss = require('./ButtonDismiss-B6rD5rB-.js');
|
|
13
|
+
|
|
14
|
+
var styles = {"container":"QGRLFHPoV5E-","overlay":"_4WzGOMUGj5I-","modal":"WLId2NJBQcQ-","header":"wjrPpIUNNrk-","closeButton":"rKvigUnOyYE-","actionBar":"_62c8HLZFwvs-","leftAction":"Xl1Ptn-P9Ew-","rightAction":"p2s7GtpoZz0-"};
|
|
15
|
+
|
|
16
|
+
var sizes = {"small":"_65IpUjOZiBg-","large":"Cpwnmw65caA-"};
|
|
17
|
+
|
|
18
|
+
function Modal({ open = false, title, size, dismissible = true, children, primaryAction, secondaryAction, tertiaryAction, onRequestClose, }) {
|
|
19
|
+
const modalClassName = classnames(styles.modal, size && sizes[size]);
|
|
20
|
+
useRefocusOnActivator.useRefocusOnActivator_2(open);
|
|
21
|
+
const modalRef = useFocusTrap.useFocusTrap_2(open);
|
|
22
|
+
useOnKeyDown.useOnKeyDown_2(handleRequestClose, "Escape");
|
|
23
|
+
const template = (React.createElement(framerMotion.AnimatePresence, null, open && (React.createElement("div", { ref: modalRef, role: "dialog", className: styles.container, tabIndex: 0 },
|
|
24
|
+
React.createElement(framerMotion.motion.div, { key: styles.overlay, className: styles.overlay, onClick: onRequestClose, initial: { opacity: 0 }, animate: { opacity: 0.8 }, exit: { opacity: 0 }, transition: { duration: 0.2 } }),
|
|
25
|
+
React.createElement(framerMotion.motion.div, { key: styles.modal, className: modalClassName, initial: { scale: 0.9, opacity: 0 }, animate: { scale: 1, opacity: 1 }, exit: { scale: 0.9, opacity: 0 }, transition: {
|
|
26
|
+
duration: 0.2,
|
|
27
|
+
ease: "easeInOut",
|
|
28
|
+
} },
|
|
29
|
+
title != undefined && (React.createElement(Header, { title: title, dismissible: dismissible, onRequestClose: onRequestClose })),
|
|
30
|
+
children,
|
|
31
|
+
React.createElement(Actions, { primary: primaryAction, secondary: secondaryAction, tertiary: tertiaryAction }))))));
|
|
32
|
+
return (globalThis === null || globalThis === void 0 ? void 0 : globalThis.document)
|
|
33
|
+
? ReactDOM.createPortal(template, document.body)
|
|
34
|
+
: template;
|
|
35
|
+
function handleRequestClose() {
|
|
36
|
+
if (open && onRequestClose) {
|
|
37
|
+
onRequestClose();
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
function Header({ title, dismissible, onRequestClose }) {
|
|
42
|
+
return (React.createElement("div", { className: styles.header, "data-testid": "modal-header" },
|
|
43
|
+
React.createElement(Heading.Heading, { level: 2 }, title),
|
|
44
|
+
dismissible && (React.createElement("div", { className: styles.closeButton },
|
|
45
|
+
React.createElement(ButtonDismiss.ButtonDismiss, { onClick: onRequestClose, ariaLabel: "Close modal" })))));
|
|
46
|
+
}
|
|
47
|
+
function Actions({ primary, secondary, tertiary }) {
|
|
48
|
+
const shouldShow = primary != undefined || secondary != undefined || tertiary != undefined;
|
|
49
|
+
if (secondary != undefined) {
|
|
50
|
+
secondary = Object.assign({ type: "primary", variation: "subtle" }, secondary);
|
|
51
|
+
}
|
|
52
|
+
if (tertiary != undefined) {
|
|
53
|
+
tertiary = Object.assign({ type: "secondary", variation: "destructive" }, tertiary);
|
|
54
|
+
}
|
|
55
|
+
return (React.createElement(React.Fragment, null, shouldShow && (React.createElement("div", { className: styles.actionBar },
|
|
56
|
+
React.createElement("div", { className: styles.rightAction },
|
|
57
|
+
primary && React.createElement(Button.Button, Object.assign({}, primary)),
|
|
58
|
+
secondary && React.createElement(Button.Button, Object.assign({}, secondary))),
|
|
59
|
+
tertiary && (React.createElement("div", { className: styles.leftAction },
|
|
60
|
+
React.createElement(Button.Button, Object.assign({}, tertiary))))))));
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
exports.Modal = Modal;
|
|
@@ -9,7 +9,7 @@ interface DropDownMenuProps {
|
|
|
9
9
|
/**
|
|
10
10
|
* Change handler.
|
|
11
11
|
*/
|
|
12
|
-
setOptions: Dispatch<React.SetStateAction<Options>>;
|
|
12
|
+
readonly setOptions: Dispatch<React.SetStateAction<Options>>;
|
|
13
13
|
}
|
|
14
14
|
export declare function DropDownMenu({ options, setOptions }: DropDownMenuProps): JSX.Element;
|
|
15
15
|
export {};
|
|
@@ -16,7 +16,7 @@ interface MultiSelectProps {
|
|
|
16
16
|
/**
|
|
17
17
|
* Change handler
|
|
18
18
|
*/
|
|
19
|
-
onOptionsChange: Dispatch<React.SetStateAction<Options>>;
|
|
19
|
+
readonly onOptionsChange: Dispatch<React.SetStateAction<Options>>;
|
|
20
20
|
/**
|
|
21
21
|
* Adjusts the interface to either have small or large spacing.
|
|
22
22
|
*/
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var MultiSelect = require('../MultiSelect-CXWg0N7K.js');
|
|
4
|
+
require('react');
|
|
5
|
+
require('classnames');
|
|
6
|
+
require('../Checkbox-DgjLt14k.js');
|
|
7
|
+
require('../tslib.es6-6AwvlbWV.js');
|
|
8
|
+
require('react-hook-form');
|
|
9
|
+
require('../Icon-fa-Ii8qc.js');
|
|
10
|
+
require('@jobber/design');
|
|
11
|
+
require('../Text-CuGgzpie.js');
|
|
12
|
+
require('../Typography-Dcec2MjG.js');
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
exports.MultiSelect = MultiSelect.MultiSelect;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { M as MultiSelect } from '../MultiSelect-DW4fwTRk.js';
|
|
2
|
+
import 'react';
|
|
3
|
+
import 'classnames';
|
|
4
|
+
import '../Checkbox-8SxykkvR.js';
|
|
5
|
+
import '../tslib.es6-Bu_PBg9i.js';
|
|
6
|
+
import 'react-hook-form';
|
|
7
|
+
import '../Icon-GaU33tZU.js';
|
|
8
|
+
import '@jobber/design';
|
|
9
|
+
import '../Text-C3-8gHkD.js';
|
|
10
|
+
import '../Typography-BD0mo9T9.js';
|