@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
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { AnimatePresence, motion } from 'framer-motion';
|
|
3
|
+
import { T as Text } from './Text-C3-8gHkD.js';
|
|
4
|
+
import { I as Icon } from './Icon-GaU33tZU.js';
|
|
5
|
+
|
|
6
|
+
var styles = {"hasValidationMessage":"sc-bFJieXBA-","message":"xybhC5Y6mk4-"};
|
|
7
|
+
|
|
8
|
+
function InputValidation({ message }) {
|
|
9
|
+
const messages = [message];
|
|
10
|
+
const variants = {
|
|
11
|
+
slideOut: { y: "5%", opacity: 0 },
|
|
12
|
+
slideIn: { y: 0, opacity: 1 },
|
|
13
|
+
};
|
|
14
|
+
return (React.createElement(React.Fragment, null, messages && messages.length > 0 && (React.createElement(AnimatePresence, { mode: "wait" }, messages.map(msg => (React.createElement(motion.div, { key: `validation-${msg}`, variants: variants, initial: "slideOut", animate: "slideIn", exit: "slideOut", transition: { duration: 0.2 } },
|
|
15
|
+
React.createElement("div", { className: styles.message, "aria-live": "assertive", role: "alert", tabIndex: 0 },
|
|
16
|
+
React.createElement(Icon, { name: "alert", size: "small", color: "critical" }),
|
|
17
|
+
React.createElement(Text, { size: "small", variation: "error" }, msg)))))))));
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export { InputValidation as I };
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import React, { useRef, useState, useEffect } from 'react';
|
|
2
|
+
import { a as useInternalChipDismissibleInput, d as useScrollToActive, b as useInView, c as useRepositionMenu, u as useInternalChipDismissible } from './useScrollToActive-CJSHtep6.js';
|
|
3
|
+
import './isObjectLike-CcKIYba1.js';
|
|
4
|
+
import '@jobber/design';
|
|
5
|
+
import 'react-popper';
|
|
6
|
+
import { d as debounce } from './debounce-BBtff9-S.js';
|
|
7
|
+
import classnames from 'classnames';
|
|
8
|
+
import { T as Text } from './Text-C3-8gHkD.js';
|
|
9
|
+
import { B as Button } from './Button-DjFrVgPj.js';
|
|
10
|
+
import { S as Spinner } from './Spinner-Bg1QOlTK.js';
|
|
11
|
+
import { u as useAssert_2 } from './useAssert-DPy4bthp.js';
|
|
12
|
+
import { I as Icon } from './Icon-GaU33tZU.js';
|
|
13
|
+
import { A as Avatar } from './Avatar-kAXMTS3o.js';
|
|
14
|
+
import { T as Typography } from './Typography-BD0mo9T9.js';
|
|
15
|
+
import { T as Tooltip } from './Tooltip-C-wkLpWe.js';
|
|
16
|
+
|
|
17
|
+
var styles$1 = {"wrapper":"zn6onyiQVmA-","chip":"PEnZzMEgbhU-","hasPrefix":"dtysUhwYdG4-","hasSuffix":"xGaMCAYsdwA-","clickable":"SNT7gGV-h-o-","input":"W4D98cvEth4-","active":"_0hEzaTXK9M0-","invalid":"JApS2787BU8-","disabled":"Kg0c8WVgMpg-","button":"_0-ZWexS4Gfg-","icon":"DQPnZP4UZpw-"};
|
|
18
|
+
|
|
19
|
+
function InternalChipButton({ icon, invalid, disabled, label, onClick, }) {
|
|
20
|
+
const buttonRef = useRef();
|
|
21
|
+
return (React.createElement("div", { ref: buttonRef, className: styles$1.button, tabIndex: 0, onKeyUp: handleKeyUp, onKeyDown: handleKeyDown, onClick: handleClick, role: "button", "aria-label": `Remove ${label}`, "aria-hidden": true, "aria-disabled": disabled, "data-testid": "remove-chip-button" },
|
|
22
|
+
React.createElement(Icon, { name: icon, color: getColor() })));
|
|
23
|
+
function handleKeyUp(event) {
|
|
24
|
+
if (document.activeElement === buttonRef.current &&
|
|
25
|
+
(event.key === " " || event.key === "Enter")) {
|
|
26
|
+
event.stopPropagation();
|
|
27
|
+
buttonRef.current.click();
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
function handleKeyDown(event) {
|
|
31
|
+
if (document.activeElement === buttonRef.current && event.key === " ") {
|
|
32
|
+
// Don't scroll down
|
|
33
|
+
event.preventDefault();
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
function getColor() {
|
|
37
|
+
if (disabled)
|
|
38
|
+
return "disabled";
|
|
39
|
+
if (invalid)
|
|
40
|
+
return "critical";
|
|
41
|
+
return "greyBlue";
|
|
42
|
+
}
|
|
43
|
+
function handleClick(event) {
|
|
44
|
+
event.stopPropagation();
|
|
45
|
+
onClick === null || onClick === void 0 ? void 0 : onClick(event);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
function InternalChipAffix({ affix, active, invalid, disabled, }) {
|
|
50
|
+
assertProps();
|
|
51
|
+
if ((affix === null || affix === void 0 ? void 0 : affix.type) === Avatar) {
|
|
52
|
+
return React.createElement(Avatar, Object.assign({}, affix.props, { size: "small" }));
|
|
53
|
+
}
|
|
54
|
+
if ((affix === null || affix === void 0 ? void 0 : affix.type) === Icon) {
|
|
55
|
+
return renderChipIcon(affix);
|
|
56
|
+
}
|
|
57
|
+
if ((affix === null || affix === void 0 ? void 0 : affix.type) === InternalChipButton) {
|
|
58
|
+
return React.createElement(InternalChipButton, Object.assign({}, affix.props));
|
|
59
|
+
}
|
|
60
|
+
return React.createElement(React.Fragment, null);
|
|
61
|
+
function renderChipIcon(icon) {
|
|
62
|
+
const color = getIconColor();
|
|
63
|
+
return (React.createElement("div", { className: styles$1.icon }, React.cloneElement(icon, Object.assign({ size: "base" }, (color && { color: color })))));
|
|
64
|
+
}
|
|
65
|
+
function getIconColor() {
|
|
66
|
+
if (disabled && !active)
|
|
67
|
+
return "disabled";
|
|
68
|
+
if (invalid && !disabled)
|
|
69
|
+
return "critical";
|
|
70
|
+
if (active)
|
|
71
|
+
return "white";
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
function assertProps() {
|
|
75
|
+
const isAvatar = (affix === null || affix === void 0 ? void 0 : affix.type) === Avatar || false;
|
|
76
|
+
const isIcon = (affix === null || affix === void 0 ? void 0 : affix.type) === Icon || false;
|
|
77
|
+
const isChipButton = (affix === null || affix === void 0 ? void 0 : affix.type) === InternalChipButton || false;
|
|
78
|
+
useAssert_2(!!affix && !(isAvatar || isIcon || isChipButton), `Prefix prop only accepts "<Avatar />" or "<Icon />" component. You have "${affix === null || affix === void 0 ? void 0 : affix.type}".`);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
function InternalChip({ label, active = false, disabled = false, invalid = false, prefix, suffix, tabIndex, ariaLabel, onClick, onKeyDown, }) {
|
|
83
|
+
const [truncateRef, setTruncateRef] = useState();
|
|
84
|
+
const isClickable = onClick && !disabled;
|
|
85
|
+
const classNames = classnames(styles$1.chip, {
|
|
86
|
+
[styles$1.clickable]: isClickable,
|
|
87
|
+
[styles$1.active]: active,
|
|
88
|
+
[styles$1.disabled]: disabled,
|
|
89
|
+
[styles$1.invalid]: invalid,
|
|
90
|
+
[styles$1.hasPrefix]: prefix,
|
|
91
|
+
[styles$1.hasSuffix]: suffix,
|
|
92
|
+
});
|
|
93
|
+
const affixProps = { active, invalid, disabled };
|
|
94
|
+
const Tag = onClick ? "button" : "div";
|
|
95
|
+
const chip = (React.createElement(Tag, Object.assign({ className: classNames }, (isClickable && { onClick, disabled }), { onKeyDown: onKeyDown, "data-testid": "chip-wrapper", "aria-label": ariaLabel, tabIndex: tabIndex, role: tabIndex !== undefined ? "option" : undefined }),
|
|
96
|
+
React.createElement(InternalChipAffix, Object.assign({ affix: prefix }, affixProps)),
|
|
97
|
+
React.createElement(Typography, { element: "span", numberOfLines: 1, size: "base" },
|
|
98
|
+
React.createElement("span", { ref: setTruncateRef }, label)),
|
|
99
|
+
React.createElement(InternalChipAffix, Object.assign({ affix: suffix }, affixProps))));
|
|
100
|
+
return isTruncated() ? React.createElement(Tooltip, { message: label }, chip) : chip;
|
|
101
|
+
function isTruncated() {
|
|
102
|
+
var _a;
|
|
103
|
+
const truncateParentHeight = ((_a = truncateRef === null || truncateRef === void 0 ? void 0 : truncateRef.parentElement) === null || _a === void 0 ? void 0 : _a.offsetHeight) || 0;
|
|
104
|
+
const truncateChildHeight = (truncateRef === null || truncateRef === void 0 ? void 0 : truncateRef.offsetHeight) || 0;
|
|
105
|
+
return truncateChildHeight >= truncateParentHeight * 2;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
var styles = {"wrapper":"sCNIjluCskc-","input":"MFUlz1WQLdk-","menu":"V9eYJdjPAeY-","menuList":"LdytkOeCU9c-","menuListOption":"y7Cz2u8BuNE-","loadingIndicator":"_-7bmao8Q9As-","activeOption":"iCwWdcmtInc-"};
|
|
110
|
+
|
|
111
|
+
function InternalChipDismissibleInput(props) {
|
|
112
|
+
const { activator = React.createElement(Button, { icon: "add", type: "secondary", ariaLabel: "Add" }), attachTo, isLoadingMore = false, onLoadMore, } = props;
|
|
113
|
+
const { activeIndex, allOptions, hasAvailableOptions, inputRef, menuId, menuOpen, searchValue, generateDescendantId, handleBlur, handleOpenMenu, handleSearchChange, handleCancelBlur, handleEnableBlur, handleSetActiveOnMouseOver, handleKeyDown, handleSelectOption, handleDebouncedSearch, } = useInternalChipDismissibleInput(props);
|
|
114
|
+
const menuRef = useScrollToActive(activeIndex);
|
|
115
|
+
const { ref: visibleChildRef, isInView } = useInView();
|
|
116
|
+
const { styles: popperStyles, attributes, update, setPositionedElementRef, } = useRepositionMenu(attachTo);
|
|
117
|
+
useEffect(() => {
|
|
118
|
+
if (menuOpen && update)
|
|
119
|
+
update();
|
|
120
|
+
}, [allOptions]);
|
|
121
|
+
useEffect(() => {
|
|
122
|
+
handleDebouncedSearch();
|
|
123
|
+
return handleDebouncedSearch.cancel;
|
|
124
|
+
}, [searchValue]);
|
|
125
|
+
useEffect(() => {
|
|
126
|
+
isInView && onLoadMore && onLoadMore(searchValue);
|
|
127
|
+
}, [isInView]);
|
|
128
|
+
if (!menuOpen) {
|
|
129
|
+
return React.cloneElement(activator, { onClick: handleOpenMenu });
|
|
130
|
+
}
|
|
131
|
+
return (React.createElement(React.Fragment, null,
|
|
132
|
+
React.createElement("input", { ref: inputRef, className: styles.input, type: "text", role: "combobox", "aria-label": "Press up and down arrow to cycle through the options or type to narrow down the results", "aria-autocomplete": "list", "aria-owns": menuId, "aria-expanded": hasAvailableOptions, "aria-activedescendant": generateDescendantId(activeIndex), value: searchValue, onChange: handleSearchChange, onKeyDown: handleKeyDown, onBlur: debounce(handleBlur, 200), onFocus: handleOpenMenu, autoFocus: true }),
|
|
133
|
+
(hasAvailableOptions || isLoadingMore) && (React.createElement("div", Object.assign({ ref: setPositionedElementRef, className: styles.menu, style: popperStyles.popper }, attributes.popper),
|
|
134
|
+
React.createElement("div", { ref: menuRef, role: "listbox", id: menuId, className: styles.menuList, "data-testid": "chip-menu" },
|
|
135
|
+
allOptions.map((option, i) => (React.createElement("button", { key: option.value, role: "option", type: "button", id: generateDescendantId(i), className: classnames(styles.menuListOption, {
|
|
136
|
+
[styles.activeOption]: activeIndex === i,
|
|
137
|
+
}), onClick: () => handleSelectOption(option), onMouseEnter: handleSetActiveOnMouseOver(i), onMouseDown: handleCancelBlur, onMouseUp: handleEnableBlur },
|
|
138
|
+
React.createElement("span", { "aria-hidden": true }, option.prefix),
|
|
139
|
+
React.createElement(Text, null, option.label)))),
|
|
140
|
+
React.createElement("div", { ref: visibleChildRef }),
|
|
141
|
+
isLoadingMore && (React.createElement("div", { className: styles.loadingIndicator },
|
|
142
|
+
React.createElement(Spinner, { size: "small", inline: true }))))))));
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
function InternalChipDismissible(props) {
|
|
146
|
+
const { availableChipOptions, ref: wrapperRef, sortedVisibleChipOptions, handleChipAdd, handleChipClick, handleChipKeyDown, handleChipRemove, handleCustomAdd, handleWrapperKeyDown, } = useInternalChipDismissible(props);
|
|
147
|
+
return (React.createElement("div", { ref: wrapperRef, className: styles.wrapper, "data-testid": "dismissible-chips", onKeyDown: handleWrapperKeyDown, role: "listbox" },
|
|
148
|
+
sortedVisibleChipOptions.map(chip => (React.createElement(InternalChip, Object.assign({ key: chip.value }, chip, { onKeyDown: handleChipKeyDown(chip.value), onClick: handleChipClick(chip.value), ariaLabel: `${chip.label}. Press delete or backspace to remove ${chip.label}`, tabIndex: 0, suffix: React.createElement(InternalChipButton, { icon: "remove", invalid: chip.invalid, disabled: chip.disabled, label: chip.label, onClick: handleChipRemove(chip.value) }) })))),
|
|
149
|
+
React.createElement(InternalChipDismissibleInput, { activator: props.activator, attachTo: wrapperRef, isLoadingMore: props.isLoadingMore, options: availableChipOptions, onOptionSelect: handleChipAdd, onCustomOptionSelect: handleCustomAdd, onSearch: props.onSearch, onLoadMore: props.onLoadMore })));
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
export { InternalChipDismissible as I, InternalChip as a, InternalChipButton as b, styles$1 as s };
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var React = require('react');
|
|
4
|
+
var useScrollToActive = require('./useScrollToActive-DGi2_Pva.js');
|
|
5
|
+
require('./isObjectLike-D1IeOnmx.js');
|
|
6
|
+
require('@jobber/design');
|
|
7
|
+
require('react-popper');
|
|
8
|
+
var debounce = require('./debounce-pg3VOrFc.js');
|
|
9
|
+
var classnames = require('classnames');
|
|
10
|
+
var Text = require('./Text-CuGgzpie.js');
|
|
11
|
+
var Button = require('./Button-CvQJyw1M.js');
|
|
12
|
+
var Spinner = require('./Spinner-b5Q8KXRQ.js');
|
|
13
|
+
var useAssert = require('./useAssert-ChYQeQ8b.js');
|
|
14
|
+
var Icon = require('./Icon-fa-Ii8qc.js');
|
|
15
|
+
var Avatar = require('./Avatar-CRADit7s.js');
|
|
16
|
+
var Typography = require('./Typography-Dcec2MjG.js');
|
|
17
|
+
var Tooltip = require('./Tooltip-mp-wmNRd.js');
|
|
18
|
+
|
|
19
|
+
var styles$1 = {"wrapper":"zn6onyiQVmA-","chip":"PEnZzMEgbhU-","hasPrefix":"dtysUhwYdG4-","hasSuffix":"xGaMCAYsdwA-","clickable":"SNT7gGV-h-o-","input":"W4D98cvEth4-","active":"_0hEzaTXK9M0-","invalid":"JApS2787BU8-","disabled":"Kg0c8WVgMpg-","button":"_0-ZWexS4Gfg-","icon":"DQPnZP4UZpw-"};
|
|
20
|
+
|
|
21
|
+
function InternalChipButton({ icon, invalid, disabled, label, onClick, }) {
|
|
22
|
+
const buttonRef = React.useRef();
|
|
23
|
+
return (React.createElement("div", { ref: buttonRef, className: styles$1.button, tabIndex: 0, onKeyUp: handleKeyUp, onKeyDown: handleKeyDown, onClick: handleClick, role: "button", "aria-label": `Remove ${label}`, "aria-hidden": true, "aria-disabled": disabled, "data-testid": "remove-chip-button" },
|
|
24
|
+
React.createElement(Icon.Icon, { name: icon, color: getColor() })));
|
|
25
|
+
function handleKeyUp(event) {
|
|
26
|
+
if (document.activeElement === buttonRef.current &&
|
|
27
|
+
(event.key === " " || event.key === "Enter")) {
|
|
28
|
+
event.stopPropagation();
|
|
29
|
+
buttonRef.current.click();
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
function handleKeyDown(event) {
|
|
33
|
+
if (document.activeElement === buttonRef.current && event.key === " ") {
|
|
34
|
+
// Don't scroll down
|
|
35
|
+
event.preventDefault();
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
function getColor() {
|
|
39
|
+
if (disabled)
|
|
40
|
+
return "disabled";
|
|
41
|
+
if (invalid)
|
|
42
|
+
return "critical";
|
|
43
|
+
return "greyBlue";
|
|
44
|
+
}
|
|
45
|
+
function handleClick(event) {
|
|
46
|
+
event.stopPropagation();
|
|
47
|
+
onClick === null || onClick === void 0 ? void 0 : onClick(event);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
function InternalChipAffix({ affix, active, invalid, disabled, }) {
|
|
52
|
+
assertProps();
|
|
53
|
+
if ((affix === null || affix === void 0 ? void 0 : affix.type) === Avatar.Avatar) {
|
|
54
|
+
return React.createElement(Avatar.Avatar, Object.assign({}, affix.props, { size: "small" }));
|
|
55
|
+
}
|
|
56
|
+
if ((affix === null || affix === void 0 ? void 0 : affix.type) === Icon.Icon) {
|
|
57
|
+
return renderChipIcon(affix);
|
|
58
|
+
}
|
|
59
|
+
if ((affix === null || affix === void 0 ? void 0 : affix.type) === InternalChipButton) {
|
|
60
|
+
return React.createElement(InternalChipButton, Object.assign({}, affix.props));
|
|
61
|
+
}
|
|
62
|
+
return React.createElement(React.Fragment, null);
|
|
63
|
+
function renderChipIcon(icon) {
|
|
64
|
+
const color = getIconColor();
|
|
65
|
+
return (React.createElement("div", { className: styles$1.icon }, React.cloneElement(icon, Object.assign({ size: "base" }, (color && { color: color })))));
|
|
66
|
+
}
|
|
67
|
+
function getIconColor() {
|
|
68
|
+
if (disabled && !active)
|
|
69
|
+
return "disabled";
|
|
70
|
+
if (invalid && !disabled)
|
|
71
|
+
return "critical";
|
|
72
|
+
if (active)
|
|
73
|
+
return "white";
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
function assertProps() {
|
|
77
|
+
const isAvatar = (affix === null || affix === void 0 ? void 0 : affix.type) === Avatar.Avatar || false;
|
|
78
|
+
const isIcon = (affix === null || affix === void 0 ? void 0 : affix.type) === Icon.Icon || false;
|
|
79
|
+
const isChipButton = (affix === null || affix === void 0 ? void 0 : affix.type) === InternalChipButton || false;
|
|
80
|
+
useAssert.useAssert_2(!!affix && !(isAvatar || isIcon || isChipButton), `Prefix prop only accepts "<Avatar />" or "<Icon />" component. You have "${affix === null || affix === void 0 ? void 0 : affix.type}".`);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
function InternalChip({ label, active = false, disabled = false, invalid = false, prefix, suffix, tabIndex, ariaLabel, onClick, onKeyDown, }) {
|
|
85
|
+
const [truncateRef, setTruncateRef] = React.useState();
|
|
86
|
+
const isClickable = onClick && !disabled;
|
|
87
|
+
const classNames = classnames(styles$1.chip, {
|
|
88
|
+
[styles$1.clickable]: isClickable,
|
|
89
|
+
[styles$1.active]: active,
|
|
90
|
+
[styles$1.disabled]: disabled,
|
|
91
|
+
[styles$1.invalid]: invalid,
|
|
92
|
+
[styles$1.hasPrefix]: prefix,
|
|
93
|
+
[styles$1.hasSuffix]: suffix,
|
|
94
|
+
});
|
|
95
|
+
const affixProps = { active, invalid, disabled };
|
|
96
|
+
const Tag = onClick ? "button" : "div";
|
|
97
|
+
const chip = (React.createElement(Tag, Object.assign({ className: classNames }, (isClickable && { onClick, disabled }), { onKeyDown: onKeyDown, "data-testid": "chip-wrapper", "aria-label": ariaLabel, tabIndex: tabIndex, role: tabIndex !== undefined ? "option" : undefined }),
|
|
98
|
+
React.createElement(InternalChipAffix, Object.assign({ affix: prefix }, affixProps)),
|
|
99
|
+
React.createElement(Typography.Typography, { element: "span", numberOfLines: 1, size: "base" },
|
|
100
|
+
React.createElement("span", { ref: setTruncateRef }, label)),
|
|
101
|
+
React.createElement(InternalChipAffix, Object.assign({ affix: suffix }, affixProps))));
|
|
102
|
+
return isTruncated() ? React.createElement(Tooltip.Tooltip, { message: label }, chip) : chip;
|
|
103
|
+
function isTruncated() {
|
|
104
|
+
var _a;
|
|
105
|
+
const truncateParentHeight = ((_a = truncateRef === null || truncateRef === void 0 ? void 0 : truncateRef.parentElement) === null || _a === void 0 ? void 0 : _a.offsetHeight) || 0;
|
|
106
|
+
const truncateChildHeight = (truncateRef === null || truncateRef === void 0 ? void 0 : truncateRef.offsetHeight) || 0;
|
|
107
|
+
return truncateChildHeight >= truncateParentHeight * 2;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
var styles = {"wrapper":"sCNIjluCskc-","input":"MFUlz1WQLdk-","menu":"V9eYJdjPAeY-","menuList":"LdytkOeCU9c-","menuListOption":"y7Cz2u8BuNE-","loadingIndicator":"_-7bmao8Q9As-","activeOption":"iCwWdcmtInc-"};
|
|
112
|
+
|
|
113
|
+
function InternalChipDismissibleInput(props) {
|
|
114
|
+
const { activator = React.createElement(Button.Button, { icon: "add", type: "secondary", ariaLabel: "Add" }), attachTo, isLoadingMore = false, onLoadMore, } = props;
|
|
115
|
+
const { activeIndex, allOptions, hasAvailableOptions, inputRef, menuId, menuOpen, searchValue, generateDescendantId, handleBlur, handleOpenMenu, handleSearchChange, handleCancelBlur, handleEnableBlur, handleSetActiveOnMouseOver, handleKeyDown, handleSelectOption, handleDebouncedSearch, } = useScrollToActive.useInternalChipDismissibleInput(props);
|
|
116
|
+
const menuRef = useScrollToActive.useScrollToActive(activeIndex);
|
|
117
|
+
const { ref: visibleChildRef, isInView } = useScrollToActive.useInView();
|
|
118
|
+
const { styles: popperStyles, attributes, update, setPositionedElementRef, } = useScrollToActive.useRepositionMenu(attachTo);
|
|
119
|
+
React.useEffect(() => {
|
|
120
|
+
if (menuOpen && update)
|
|
121
|
+
update();
|
|
122
|
+
}, [allOptions]);
|
|
123
|
+
React.useEffect(() => {
|
|
124
|
+
handleDebouncedSearch();
|
|
125
|
+
return handleDebouncedSearch.cancel;
|
|
126
|
+
}, [searchValue]);
|
|
127
|
+
React.useEffect(() => {
|
|
128
|
+
isInView && onLoadMore && onLoadMore(searchValue);
|
|
129
|
+
}, [isInView]);
|
|
130
|
+
if (!menuOpen) {
|
|
131
|
+
return React.cloneElement(activator, { onClick: handleOpenMenu });
|
|
132
|
+
}
|
|
133
|
+
return (React.createElement(React.Fragment, null,
|
|
134
|
+
React.createElement("input", { ref: inputRef, className: styles.input, type: "text", role: "combobox", "aria-label": "Press up and down arrow to cycle through the options or type to narrow down the results", "aria-autocomplete": "list", "aria-owns": menuId, "aria-expanded": hasAvailableOptions, "aria-activedescendant": generateDescendantId(activeIndex), value: searchValue, onChange: handleSearchChange, onKeyDown: handleKeyDown, onBlur: debounce.debounce(handleBlur, 200), onFocus: handleOpenMenu, autoFocus: true }),
|
|
135
|
+
(hasAvailableOptions || isLoadingMore) && (React.createElement("div", Object.assign({ ref: setPositionedElementRef, className: styles.menu, style: popperStyles.popper }, attributes.popper),
|
|
136
|
+
React.createElement("div", { ref: menuRef, role: "listbox", id: menuId, className: styles.menuList, "data-testid": "chip-menu" },
|
|
137
|
+
allOptions.map((option, i) => (React.createElement("button", { key: option.value, role: "option", type: "button", id: generateDescendantId(i), className: classnames(styles.menuListOption, {
|
|
138
|
+
[styles.activeOption]: activeIndex === i,
|
|
139
|
+
}), onClick: () => handleSelectOption(option), onMouseEnter: handleSetActiveOnMouseOver(i), onMouseDown: handleCancelBlur, onMouseUp: handleEnableBlur },
|
|
140
|
+
React.createElement("span", { "aria-hidden": true }, option.prefix),
|
|
141
|
+
React.createElement(Text.Text, null, option.label)))),
|
|
142
|
+
React.createElement("div", { ref: visibleChildRef }),
|
|
143
|
+
isLoadingMore && (React.createElement("div", { className: styles.loadingIndicator },
|
|
144
|
+
React.createElement(Spinner.Spinner, { size: "small", inline: true }))))))));
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
function InternalChipDismissible(props) {
|
|
148
|
+
const { availableChipOptions, ref: wrapperRef, sortedVisibleChipOptions, handleChipAdd, handleChipClick, handleChipKeyDown, handleChipRemove, handleCustomAdd, handleWrapperKeyDown, } = useScrollToActive.useInternalChipDismissible(props);
|
|
149
|
+
return (React.createElement("div", { ref: wrapperRef, className: styles.wrapper, "data-testid": "dismissible-chips", onKeyDown: handleWrapperKeyDown, role: "listbox" },
|
|
150
|
+
sortedVisibleChipOptions.map(chip => (React.createElement(InternalChip, Object.assign({ key: chip.value }, chip, { onKeyDown: handleChipKeyDown(chip.value), onClick: handleChipClick(chip.value), ariaLabel: `${chip.label}. Press delete or backspace to remove ${chip.label}`, tabIndex: 0, suffix: React.createElement(InternalChipButton, { icon: "remove", invalid: chip.invalid, disabled: chip.disabled, label: chip.label, onClick: handleChipRemove(chip.value) }) })))),
|
|
151
|
+
React.createElement(InternalChipDismissibleInput, { activator: props.activator, attachTo: wrapperRef, isLoadingMore: props.isLoadingMore, options: availableChipOptions, onOptionSelect: handleChipAdd, onCustomOptionSelect: handleCustomAdd, onSearch: props.onSearch, onLoadMore: props.onLoadMore })));
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
exports.InternalChip = InternalChip;
|
|
155
|
+
exports.InternalChipButton = InternalChipButton;
|
|
156
|
+
exports.InternalChipDismissible = InternalChipDismissible;
|
|
157
|
+
exports.styles = styles$1;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
var styles = {"gridCell":"YJHtDDKq6WI-"};
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Breakpoints that we support
|
|
7
|
+
*/
|
|
8
|
+
const breakpoints = ["xs", "sm", "md", "lg", "xl"];
|
|
9
|
+
const MAX_COLUMNS = 12;
|
|
10
|
+
const GRID_CELL_TEST_ID = "ATL-Grid-GridCell";
|
|
11
|
+
function InternalGridCell({ size, children, }) {
|
|
12
|
+
/**
|
|
13
|
+
* Build CSS variables for column sizes for all possible breakpoints to size
|
|
14
|
+
* the column
|
|
15
|
+
*/
|
|
16
|
+
const cssSizeVariables = breakpoints.reduce(getSizeCSSVariables(size), {});
|
|
17
|
+
return (React.createElement("div", { "data-testid": GRID_CELL_TEST_ID, className: styles.gridCell, style: cssSizeVariables }, children));
|
|
18
|
+
}
|
|
19
|
+
function getSizeCSSVariables(size) {
|
|
20
|
+
return (breakpointsObj, currentSize) => {
|
|
21
|
+
let columnSize = size[currentSize];
|
|
22
|
+
// If a column size isn't provided in the size prop, use the previous
|
|
23
|
+
// breakpoint's value
|
|
24
|
+
if (!columnSize) {
|
|
25
|
+
const existingValues = Object.values(breakpointsObj);
|
|
26
|
+
const lastKnownValue = existingValues[existingValues.length - 1];
|
|
27
|
+
columnSize = lastKnownValue || MAX_COLUMNS;
|
|
28
|
+
}
|
|
29
|
+
breakpointsObj[`--gridCell--size-${currentSize}`] = columnSize;
|
|
30
|
+
return breakpointsObj;
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export { GRID_CELL_TEST_ID as G, InternalGridCell as I };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var React = require('react');
|
|
4
|
+
|
|
5
|
+
var styles = {"gridCell":"YJHtDDKq6WI-"};
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Breakpoints that we support
|
|
9
|
+
*/
|
|
10
|
+
const breakpoints = ["xs", "sm", "md", "lg", "xl"];
|
|
11
|
+
const MAX_COLUMNS = 12;
|
|
12
|
+
const GRID_CELL_TEST_ID = "ATL-Grid-GridCell";
|
|
13
|
+
function InternalGridCell({ size, children, }) {
|
|
14
|
+
/**
|
|
15
|
+
* Build CSS variables for column sizes for all possible breakpoints to size
|
|
16
|
+
* the column
|
|
17
|
+
*/
|
|
18
|
+
const cssSizeVariables = breakpoints.reduce(getSizeCSSVariables(size), {});
|
|
19
|
+
return (React.createElement("div", { "data-testid": GRID_CELL_TEST_ID, className: styles.gridCell, style: cssSizeVariables }, children));
|
|
20
|
+
}
|
|
21
|
+
function getSizeCSSVariables(size) {
|
|
22
|
+
return (breakpointsObj, currentSize) => {
|
|
23
|
+
let columnSize = size[currentSize];
|
|
24
|
+
// If a column size isn't provided in the size prop, use the previous
|
|
25
|
+
// breakpoint's value
|
|
26
|
+
if (!columnSize) {
|
|
27
|
+
const existingValues = Object.values(breakpointsObj);
|
|
28
|
+
const lastKnownValue = existingValues[existingValues.length - 1];
|
|
29
|
+
columnSize = lastKnownValue || MAX_COLUMNS;
|
|
30
|
+
}
|
|
31
|
+
breakpointsObj[`--gridCell--size-${currentSize}`] = columnSize;
|
|
32
|
+
return breakpointsObj;
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
exports.GRID_CELL_TEST_ID = GRID_CELL_TEST_ID;
|
|
37
|
+
exports.InternalGridCell = InternalGridCell;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
interface PresentedImage {
|
|
3
3
|
title?: string;
|
|
4
4
|
caption?: string;
|
|
@@ -33,5 +33,5 @@ interface LightBoxProps {
|
|
|
33
33
|
*/
|
|
34
34
|
onRequestClose(options: RequestCloseOptions): void;
|
|
35
35
|
}
|
|
36
|
-
export declare function LightBox({ open, images, imageIndex, onRequestClose, }: LightBoxProps):
|
|
36
|
+
export declare function LightBox({ open, images, imageIndex, onRequestClose, }: LightBoxProps): JSX.Element;
|
|
37
37
|
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var LightBox = require('../LightBox-BuTngdO-.js');
|
|
4
|
+
require('react');
|
|
5
|
+
require('framer-motion');
|
|
6
|
+
require('react-dom');
|
|
7
|
+
require('../debounce-pg3VOrFc.js');
|
|
8
|
+
require('../_commonjsHelpers-BZy5LDD5.js');
|
|
9
|
+
require('../isObjectLike-D1IeOnmx.js');
|
|
10
|
+
require('../isSymbol-Bbb_qQGw.js');
|
|
11
|
+
require('../useRefocusOnActivator-DbDY65I1.js');
|
|
12
|
+
require('../useOnKeyDown-D87huTBK.js');
|
|
13
|
+
require('../useFocusTrap-CH2wydSN.js');
|
|
14
|
+
require('../useIsMounted-sXqZBlpo.js');
|
|
15
|
+
require('../useSafeLayoutEffect-DHIY4lnV.js');
|
|
16
|
+
require('../ButtonDismiss-B6rD5rB-.js');
|
|
17
|
+
require('../Button-CvQJyw1M.js');
|
|
18
|
+
require('classnames');
|
|
19
|
+
require('react-router-dom');
|
|
20
|
+
require('../Icon-fa-Ii8qc.js');
|
|
21
|
+
require('@jobber/design');
|
|
22
|
+
require('../Typography-Dcec2MjG.js');
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
exports.LightBox = LightBox.LightBox;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export { L as LightBox } from '../LightBox-s9-G_PIf.js';
|
|
2
|
+
import 'react';
|
|
3
|
+
import 'framer-motion';
|
|
4
|
+
import 'react-dom';
|
|
5
|
+
import '../debounce-BBtff9-S.js';
|
|
6
|
+
import '../_commonjsHelpers-Dy2IPW0w.js';
|
|
7
|
+
import '../isObjectLike-CcKIYba1.js';
|
|
8
|
+
import '../isSymbol-BmwHOL7f.js';
|
|
9
|
+
import '../useRefocusOnActivator-vy4E8omX.js';
|
|
10
|
+
import '../useOnKeyDown-BJB7_guO.js';
|
|
11
|
+
import '../useFocusTrap-F2c5ctH_.js';
|
|
12
|
+
import '../useIsMounted-JfVXqbjM.js';
|
|
13
|
+
import '../useSafeLayoutEffect-tr9DHxlf.js';
|
|
14
|
+
import '../ButtonDismiss-C2LOl-QT.js';
|
|
15
|
+
import '../Button-DjFrVgPj.js';
|
|
16
|
+
import 'classnames';
|
|
17
|
+
import 'react-router-dom';
|
|
18
|
+
import '../Icon-GaU33tZU.js';
|
|
19
|
+
import '@jobber/design';
|
|
20
|
+
import '../Typography-BD0mo9T9.js';
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var React = require('react');
|
|
4
|
+
var framerMotion = require('framer-motion');
|
|
5
|
+
var ReactDOM = require('react-dom');
|
|
6
|
+
var debounce = require('./debounce-pg3VOrFc.js');
|
|
7
|
+
var useRefocusOnActivator = require('./useRefocusOnActivator-DbDY65I1.js');
|
|
8
|
+
var useOnKeyDown = require('./useOnKeyDown-D87huTBK.js');
|
|
9
|
+
var useFocusTrap = require('./useFocusTrap-CH2wydSN.js');
|
|
10
|
+
var useIsMounted = require('./useIsMounted-sXqZBlpo.js');
|
|
11
|
+
var ButtonDismiss = require('./ButtonDismiss-B6rD5rB-.js');
|
|
12
|
+
var Button = require('./Button-CvQJyw1M.js');
|
|
13
|
+
|
|
14
|
+
var styles = {"next":"_3JgBCebdbNU-","prev":"JJOBEL7d-10-","lightboxWrapper":"fAep1A-0xIU-","toolbar":"AfUUWErd5S4-","title":"ysUYbBTaORk-","imagesWrapper":"GSOVtN1Y3IU-","overlay":"-V917BdNqSs-","image":"sjwUjzb3a5c-"};
|
|
15
|
+
|
|
16
|
+
/* eslint-disable max-statements */
|
|
17
|
+
const swipeConfidenceThreshold = 10000;
|
|
18
|
+
const swipePower = (offset, velocity) => {
|
|
19
|
+
return Math.abs(offset) * velocity;
|
|
20
|
+
};
|
|
21
|
+
const variants = {
|
|
22
|
+
enter: (direction) => {
|
|
23
|
+
return {
|
|
24
|
+
x: direction > 0 ? 1000 : -1000,
|
|
25
|
+
opacity: 0,
|
|
26
|
+
};
|
|
27
|
+
},
|
|
28
|
+
center: {
|
|
29
|
+
zIndex: 1,
|
|
30
|
+
x: 0,
|
|
31
|
+
opacity: 1,
|
|
32
|
+
},
|
|
33
|
+
exit: (direction) => {
|
|
34
|
+
return {
|
|
35
|
+
zIndex: 0,
|
|
36
|
+
x: direction < 0 ? 1000 : -1000,
|
|
37
|
+
opacity: 0,
|
|
38
|
+
};
|
|
39
|
+
},
|
|
40
|
+
};
|
|
41
|
+
const imageTransition = {
|
|
42
|
+
x: { type: "spring", stiffness: 300, damping: 30 },
|
|
43
|
+
opacity: { duration: 0.2 },
|
|
44
|
+
};
|
|
45
|
+
// A little bit more than the transition's duration
|
|
46
|
+
// We're doing this to prevent a bug from framer-motion
|
|
47
|
+
// https://github.com/framer/motion/issues/1769
|
|
48
|
+
const debounceDuration = 250;
|
|
49
|
+
function LightBox({ open, images, imageIndex = 0, onRequestClose, }) {
|
|
50
|
+
const [currentImageIndex, setCurrentImageIndex] = React.useState(imageIndex);
|
|
51
|
+
const [direction, setDirection] = React.useState(0);
|
|
52
|
+
const lightboxRef = useFocusTrap.useFocusTrap_2(open);
|
|
53
|
+
const debouncedHandleNext = debounce.debounce(handleMoveNext, debounceDuration);
|
|
54
|
+
const debouncedHandlePrevious = debounce.debounce(handleMovePrevious, debounceDuration);
|
|
55
|
+
const mounted = useIsMounted.useIsMounted_2();
|
|
56
|
+
useRefocusOnActivator.useRefocusOnActivator_2(open);
|
|
57
|
+
useOnKeyDown.useOnKeyDown_2(handleRequestClose, "Escape");
|
|
58
|
+
useOnKeyDown.useOnKeyDown_2(debouncedHandlePrevious, {
|
|
59
|
+
key: "ArrowLeft",
|
|
60
|
+
});
|
|
61
|
+
useOnKeyDown.useOnKeyDown_2(debouncedHandleNext, {
|
|
62
|
+
key: "ArrowRight",
|
|
63
|
+
});
|
|
64
|
+
React.useEffect(() => {
|
|
65
|
+
setCurrentImageIndex(imageIndex);
|
|
66
|
+
}, [imageIndex, open]);
|
|
67
|
+
const template = (React.createElement(React.Fragment, null, open && (React.createElement("div", { className: styles.lightboxWrapper, tabIndex: 0, "aria-label": "Lightbox", key: "Lightbox", ref: lightboxRef },
|
|
68
|
+
React.createElement("div", { className: styles.toolbar },
|
|
69
|
+
React.createElement("span", { className: styles.title }, images[currentImageIndex].title),
|
|
70
|
+
React.createElement(ButtonDismiss.ButtonDismiss, { ariaLabel: "Close", onClick: handleRequestClose })),
|
|
71
|
+
React.createElement("div", { className: styles.imagesWrapper },
|
|
72
|
+
React.createElement(framerMotion.AnimatePresence, { initial: false },
|
|
73
|
+
React.createElement(framerMotion.motion.img, { key: currentImageIndex, variants: variants, src: images[currentImageIndex].url, custom: direction, className: styles.image, style: { y: "-50%" }, initial: "enter", animate: "center", exit: "exit", transition: imageTransition, drag: "x", dragConstraints: { left: 0, right: 0 }, dragElastic: 1, onDragEnd: handleOnDragEnd }))),
|
|
74
|
+
images.length > 1 && (React.createElement(React.Fragment, null,
|
|
75
|
+
React.createElement(PreviousButton, { onClick: debouncedHandlePrevious }),
|
|
76
|
+
React.createElement(NextButton, { onClick: debouncedHandleNext }))),
|
|
77
|
+
React.createElement("div", { className: styles.toolbar }, images[currentImageIndex].caption),
|
|
78
|
+
React.createElement("div", { className: styles.overlay, onClick: handleRequestClose })))));
|
|
79
|
+
return mounted.current
|
|
80
|
+
? ReactDOM.createPortal(template, document.body)
|
|
81
|
+
: template;
|
|
82
|
+
function handleMovePrevious() {
|
|
83
|
+
setDirection(-1);
|
|
84
|
+
setCurrentImageIndex((currentImageIndex + images.length - 1) % images.length);
|
|
85
|
+
}
|
|
86
|
+
function handleMoveNext() {
|
|
87
|
+
setDirection(1);
|
|
88
|
+
setCurrentImageIndex((currentImageIndex + 1) % images.length);
|
|
89
|
+
}
|
|
90
|
+
function handleRequestClose() {
|
|
91
|
+
onRequestClose({ lastPosition: currentImageIndex });
|
|
92
|
+
}
|
|
93
|
+
function handleOnDragEnd(event, { offset, velocity }) {
|
|
94
|
+
const swipe = swipePower(offset.x, velocity.x);
|
|
95
|
+
if (swipe < -swipeConfidenceThreshold) {
|
|
96
|
+
handleMoveNext();
|
|
97
|
+
}
|
|
98
|
+
else if (swipe > swipeConfidenceThreshold) {
|
|
99
|
+
handleMovePrevious();
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
function PreviousButton({ onClick }) {
|
|
104
|
+
return (React.createElement("div", { className: styles.prev },
|
|
105
|
+
React.createElement(Button.Button, { size: "large", variation: "subtle", type: "secondary", icon: "arrowLeft", ariaLabel: "Previous image", onClick: onClick })));
|
|
106
|
+
}
|
|
107
|
+
function NextButton({ onClick }) {
|
|
108
|
+
return (React.createElement("div", { className: styles.next },
|
|
109
|
+
React.createElement(Button.Button, { size: "large", variation: "subtle", type: "secondary", icon: "arrowRight", ariaLabel: "Next image", onClick: onClick })));
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
exports.LightBox = LightBox;
|