@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,92 @@
|
|
|
1
|
+
export { D as DataList } from '../DataList-DrSj_Q6F.js';
|
|
2
|
+
import '../tslib.es6-Bu_PBg9i.js';
|
|
3
|
+
import 'react';
|
|
4
|
+
import '../DataList-B_CFPI7W.js';
|
|
5
|
+
import '../DataListTotalCount-Di2u6JlN.js';
|
|
6
|
+
import '../Text-C3-8gHkD.js';
|
|
7
|
+
import '../Typography-BD0mo9T9.js';
|
|
8
|
+
import 'classnames';
|
|
9
|
+
import '../Glimmer-DJ9psf2S.js';
|
|
10
|
+
import '../Content-D7e26CKa.js';
|
|
11
|
+
import '../DataListLoadingState-BO2264WP.js';
|
|
12
|
+
import '../DataListContext-DsvXZGoh.js';
|
|
13
|
+
import '../noop-DY7XyR6k.js';
|
|
14
|
+
import '../_commonjsHelpers-Dy2IPW0w.js';
|
|
15
|
+
import '../useActiveLayout-CO8yTWnU.js';
|
|
16
|
+
import '../useResponsiveSizing-BJq005Pj.js';
|
|
17
|
+
import '../DataList.const-D3AaNa_6.js';
|
|
18
|
+
import '@jobber/design';
|
|
19
|
+
import '../DataListLayout-PmWmC1Vz.js';
|
|
20
|
+
import '../DataListItems-BzilnPgA.js';
|
|
21
|
+
import '../DataListLayoutContext-CctAAX2e.js';
|
|
22
|
+
import '../DataListItem-DPqtjw1g.js';
|
|
23
|
+
import 'framer-motion';
|
|
24
|
+
import '../DataListItemActions-F75_5lGw.js';
|
|
25
|
+
import '../DataListActions-Cy41bUa4.js';
|
|
26
|
+
import '../Tooltip-C-wkLpWe.js';
|
|
27
|
+
import 'react-dom';
|
|
28
|
+
import '../useSafeLayoutEffect-tr9DHxlf.js';
|
|
29
|
+
import '../useIsMounted-JfVXqbjM.js';
|
|
30
|
+
import 'react-popper';
|
|
31
|
+
import '../Button-DjFrVgPj.js';
|
|
32
|
+
import 'react-router-dom';
|
|
33
|
+
import '../Icon-GaU33tZU.js';
|
|
34
|
+
import '../DataListOverflowFade-Cf2yTaQ4.js';
|
|
35
|
+
import '../useInView-BgkV4xmN.js';
|
|
36
|
+
import '../DataList.utils-Dkk8ncia.js';
|
|
37
|
+
import '../_getTag-3syWrFS1.js';
|
|
38
|
+
import '../isObjectLike-CcKIYba1.js';
|
|
39
|
+
import '../DataListTags-DnosXU08.js';
|
|
40
|
+
import '../InlineLabel-DDEhuVBL.js';
|
|
41
|
+
import '../DataListHeaderTile-C_GsKT2v.js';
|
|
42
|
+
import '../useFocusTrap-F2c5ctH_.js';
|
|
43
|
+
import '../useRefocusOnActivator-vy4E8omX.js';
|
|
44
|
+
import '../DataListSortingOptions-InrbBAUA.js';
|
|
45
|
+
import '../useOnKeyDown-BJB7_guO.js';
|
|
46
|
+
import '../FormatDate-BblXtoxM.js';
|
|
47
|
+
import '../Heading-qH5QZFoM.js';
|
|
48
|
+
import '../DataListLayoutContext-BFN7k9jI.js';
|
|
49
|
+
import '../DataListItemActionsOverflow-Da7o16gd.js';
|
|
50
|
+
import '../DataListActionsMenu-CMmtpZ0d.js';
|
|
51
|
+
import '../Checkbox-8SxykkvR.js';
|
|
52
|
+
import 'react-hook-form';
|
|
53
|
+
import '../useBatchSelect-C0tQF0oJ.js';
|
|
54
|
+
import '../DataListItemClickable-Bt8nyAgS.js';
|
|
55
|
+
import '../DataListHeader-DsZuhZ-t.js';
|
|
56
|
+
import '../AnimatedSwitcher-Det5s2ek.js';
|
|
57
|
+
import '../DataListBulkActions-COo1TOhP.js';
|
|
58
|
+
import '../DataListFilters--7__TwY4.js';
|
|
59
|
+
import '../DataListSort-CF4fD8hk.js';
|
|
60
|
+
import '../Combobox-CWHx4-n_.js';
|
|
61
|
+
import '../ComboboxContent-CKlthhjK.js';
|
|
62
|
+
import '../ComboboxContentSearch-Bhmt-tVj.js';
|
|
63
|
+
import '../ComboboxContentList-aU8fbxsp.js';
|
|
64
|
+
import '../Spinner-Bg1QOlTK.js';
|
|
65
|
+
import '../AnimatedPresence-DsD8wMiB.js';
|
|
66
|
+
import '../ComboboxOption-CX-Z2eLn.js';
|
|
67
|
+
import '../Flex-DteCYe_w.js';
|
|
68
|
+
import '../ComboboxProvider-BKMfpEBY.js';
|
|
69
|
+
import '../ComboboxLoadMore-BRTLjXUS.js';
|
|
70
|
+
import '../ComboboxContentHeader-BAj0VyGa.js';
|
|
71
|
+
import '../ComboboxAction-CRlYsxnV.js';
|
|
72
|
+
import '../ComboboxTrigger-EPtw6WW1.js';
|
|
73
|
+
import '../Chip-sEzGnAdo.js';
|
|
74
|
+
import '../Avatar-kAXMTS3o.js';
|
|
75
|
+
import 'color';
|
|
76
|
+
import '../useChildComponent-CuuLz2Q6.js';
|
|
77
|
+
import '../debounce-BBtff9-S.js';
|
|
78
|
+
import '../isSymbol-BmwHOL7f.js';
|
|
79
|
+
import '../ComboboxActivator-DP-DDMTP.js';
|
|
80
|
+
import '../useAssert-DPy4bthp.js';
|
|
81
|
+
import '../_polyfill-node.process-DcZ1HNOw.js';
|
|
82
|
+
import '../DataListStickyHeader-BrQ4-8FE.js';
|
|
83
|
+
import '../DataListSearch-BvWPsgzT.js';
|
|
84
|
+
import '../InputText-CGTG1LNb.js';
|
|
85
|
+
import '../FormField-BTV2b0gy.js';
|
|
86
|
+
import '../useFormFieldFocus-CjqwY0nh.js';
|
|
87
|
+
import '../InputValidation-CM_L0IJg.js';
|
|
88
|
+
import '../DataListEmptyState-BGTwctrE.js';
|
|
89
|
+
import '../DataListLoadMore-DglPb8jK.js';
|
|
90
|
+
import '../DataListAction-DZEnIqmD.js';
|
|
91
|
+
import '../DataListLayoutActions-CeOxgo55.js';
|
|
92
|
+
import '../DataListStatusBar-BYqG5qw-.js';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var styles = {"wrapper":"TkdrExYnvcY-","titleContainer":"IcAlZHoB4LI-","headerFilters":"TFO76ysivmg-","headerTitles":"jGHZZYZm1ZY-","batchSelectContainer":"GiD7MjZJbcw-","headerBatchSelect":"jMSVGIAr5tk-","listItem":"ise8kHCfhCY-","listItemClickable":"Tq6e0BGwcSM-","active":"Pc0JGX6jCD4-","selectable":"d-79rkMqufg-","selectAllCheckbox":"qm-SSuWTXkI-","visible":"VA9RnQp6nbI-","selected":"_4L7iXXzLr5k-","filtering":"Kkp-IYmwq-s-","filteringSpinner":"m-eCShL7TU4-","srOnly":"esUiRgWabYw-"};
|
|
4
|
+
|
|
5
|
+
exports.styles = styles;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
var styles = {"wrapper":"TkdrExYnvcY-","titleContainer":"IcAlZHoB4LI-","headerFilters":"TFO76ysivmg-","headerTitles":"jGHZZYZm1ZY-","batchSelectContainer":"GiD7MjZJbcw-","headerBatchSelect":"jMSVGIAr5tk-","listItem":"ise8kHCfhCY-","listItemClickable":"Tq6e0BGwcSM-","active":"Pc0JGX6jCD4-","selectable":"d-79rkMqufg-","selectAllCheckbox":"qm-SSuWTXkI-","visible":"VA9RnQp6nbI-","selected":"_4L7iXXzLr5k-","filtering":"Kkp-IYmwq-s-","filteringSpinner":"m-eCShL7TU4-","srOnly":"esUiRgWabYw-"};
|
|
2
|
+
|
|
3
|
+
export { styles as s };
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var tslib_es6 = require('./tslib.es6-6AwvlbWV.js');
|
|
4
|
+
var React = require('react');
|
|
5
|
+
var DataList$1 = require('./DataList-B4eUVLVj.js');
|
|
6
|
+
var DataListTotalCount = require('./DataListTotalCount-BMMWDIFi.js');
|
|
7
|
+
var DataListLoadingState = require('./DataListLoadingState-fJ-2BOx8.js');
|
|
8
|
+
var DataListLayout = require('./DataListLayout-DGpj7yY9.js');
|
|
9
|
+
var DataListHeader = require('./DataListHeader-CNXnKa6N.js');
|
|
10
|
+
var DataListFilters = require('./DataListFilters-C5-qLfhk.js');
|
|
11
|
+
var DataListStickyHeader = require('./DataListStickyHeader-CNZXGrOC.js');
|
|
12
|
+
var DataListSearch = require('./DataListSearch-Vi1gLKKw.js');
|
|
13
|
+
var DataListEmptyState = require('./DataListEmptyState-CSZSkI2p.js');
|
|
14
|
+
var DataListLoadMore = require('./DataListLoadMore-B5bM5H2b.js');
|
|
15
|
+
var DataListItemActions = require('./DataListItemActions-DxF3oZGR.js');
|
|
16
|
+
var DataListAction = require('./DataListAction-Cg4hmt8O.js');
|
|
17
|
+
var DataListLayoutActions = require('./DataListLayoutActions-CFeecMvE.js');
|
|
18
|
+
var DataListContext = require('./DataListContext-BPxjwsVG.js');
|
|
19
|
+
var DataList_utils = require('./DataList.utils-DIB9q2H6.js');
|
|
20
|
+
var DataList_const = require('./DataList.const-DQS-UFM6.js');
|
|
21
|
+
var DataListBulkActions = require('./DataListBulkActions-BZwgJPjq.js');
|
|
22
|
+
var DataListStatusBar = require('./DataListStatusBar-BzLJgojM.js');
|
|
23
|
+
var Heading = require('./Heading-BhyZ43jQ.js');
|
|
24
|
+
var Spinner = require('./Spinner-b5Q8KXRQ.js');
|
|
25
|
+
|
|
26
|
+
function DataList(_a) {
|
|
27
|
+
var { selected = [], sorting } = _a, props = tslib_es6.__rest(_a, ["selected", "sorting"]);
|
|
28
|
+
const [layouts, setLayouts] = React.useState({});
|
|
29
|
+
const layoutBreakpoints = React.useMemo(() => DataList_utils.sortBreakpoints(Object.keys(layouts)), [layouts]);
|
|
30
|
+
const searchComponent = DataList_utils.getCompoundComponent(props.children, DataListSearch.DataListSearch);
|
|
31
|
+
const filterComponent = DataList_utils.getCompoundComponent(props.children, DataListFilters.DataListFilters);
|
|
32
|
+
const layoutComponents = DataList_utils.getCompoundComponents(props.children, DataListLayout.DataListLayout);
|
|
33
|
+
const emptyStateComponents = DataList_utils.getCompoundComponents(props.children, DataListEmptyState.DataListEmptyState);
|
|
34
|
+
const itemActionComponent = DataList_utils.getCompoundComponent(props.children, DataListItemActions.DataListItemActions);
|
|
35
|
+
const bulkActionsComponent = DataList_utils.getCompoundComponent(props.children, DataListBulkActions.DataListBulkActions);
|
|
36
|
+
const headerCount = Object.keys(props.headers).length;
|
|
37
|
+
const shouldRenderStickyHeader = !!filterComponent || !!searchComponent || headerCount > 0;
|
|
38
|
+
return (React.createElement(DataListContext.DataListContext.Provider, { value: Object.assign(Object.assign({ searchComponent,
|
|
39
|
+
filterComponent,
|
|
40
|
+
layoutComponents,
|
|
41
|
+
emptyStateComponents,
|
|
42
|
+
itemActionComponent,
|
|
43
|
+
bulkActionsComponent,
|
|
44
|
+
layoutBreakpoints,
|
|
45
|
+
layouts,
|
|
46
|
+
registerLayout }, props), { selected,
|
|
47
|
+
// T !== DataListObject
|
|
48
|
+
sorting: sorting }) },
|
|
49
|
+
React.createElement(InternalDataList, { shouldRenderStickyHeader: shouldRenderStickyHeader })));
|
|
50
|
+
function registerLayout(size, children) {
|
|
51
|
+
setLayouts(prev => (Object.assign(Object.assign({}, prev), { [size]: children })));
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
function InternalDataList({ shouldRenderStickyHeader, }) {
|
|
55
|
+
const { data, title, totalCount, loadingState = "none", layoutComponents, } = DataListContext.useDataListContext();
|
|
56
|
+
const backToTopRef = React.useRef(null);
|
|
57
|
+
const initialLoading = loadingState === "initial";
|
|
58
|
+
const showEmptyState = !initialLoading && data.length === 0;
|
|
59
|
+
const shouldRenderLoadMoreTrigger = !initialLoading && !showEmptyState;
|
|
60
|
+
return (React.createElement("div", { className: DataList$1.styles.wrapper },
|
|
61
|
+
React.createElement("div", { className: DataList$1.styles.titleContainer },
|
|
62
|
+
title && React.createElement(Heading.Heading, { level: 3 }, title),
|
|
63
|
+
React.createElement(DataListTotalCount.DataListTotalCount, { totalCount: totalCount, loading: initialLoading })),
|
|
64
|
+
React.createElement("div", { ref: backToTopRef }),
|
|
65
|
+
shouldRenderStickyHeader && (React.createElement(DataListStickyHeader.DataListStickyHeader, null,
|
|
66
|
+
React.createElement("div", { className: DataList$1.styles.headerFilters },
|
|
67
|
+
React.createElement(DataListFilters.InternalDataListFilters, null),
|
|
68
|
+
React.createElement(DataListSearch.InternalDataListSearch, null)),
|
|
69
|
+
React.createElement(DataListStatusBar.InternalDataListStatusBar, null),
|
|
70
|
+
React.createElement(DataListHeader.DataListHeader, null))),
|
|
71
|
+
initialLoading && React.createElement(DataListLoadingState.DataListLoadingState, null),
|
|
72
|
+
showEmptyState && React.createElement(DataListEmptyState.InternalDataListEmptyState, null),
|
|
73
|
+
layoutComponents,
|
|
74
|
+
loadingState === "filtering" && (React.createElement("div", { "data-testid": DataList_const.DATA_LIST_FILTERING_SPINNER_TEST_ID, className: DataList$1.styles.filtering },
|
|
75
|
+
React.createElement("div", { className: DataList$1.styles.filteringSpinner },
|
|
76
|
+
React.createElement(Spinner.Spinner, { size: "small" })))),
|
|
77
|
+
shouldRenderLoadMoreTrigger && (React.createElement(DataListLoadMore.DataListLoadMore, { onBackToTop: handleBackToTop }))));
|
|
78
|
+
function handleBackToTop() {
|
|
79
|
+
var _a;
|
|
80
|
+
// For testing purposes since jest doesn't know scrollIntoView.
|
|
81
|
+
// This prevents consumer's tests from needing to mock scrollIntoView.
|
|
82
|
+
if (!window.HTMLElement.prototype.scrollIntoView)
|
|
83
|
+
return;
|
|
84
|
+
(_a = backToTopRef.current) === null || _a === void 0 ? void 0 : _a.scrollIntoView({
|
|
85
|
+
behavior: "smooth",
|
|
86
|
+
block: "nearest",
|
|
87
|
+
inline: "start",
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Sets the layout that the DataList item and header will use.
|
|
93
|
+
*/
|
|
94
|
+
DataList.Layout = DataListLayout.DataListLayout;
|
|
95
|
+
/**
|
|
96
|
+
* By using this component, we can render the actions anywhere in the layout
|
|
97
|
+
* instead of being added automatically on hover.
|
|
98
|
+
*/
|
|
99
|
+
DataList.LayoutActions = DataListLayoutActions.DataListLayoutActions;
|
|
100
|
+
/**
|
|
101
|
+
* When the DataList is either empty and/or filtered, this component will be
|
|
102
|
+
* rendered.
|
|
103
|
+
*/
|
|
104
|
+
DataList.EmptyState = DataListEmptyState.DataListEmptyState;
|
|
105
|
+
/**
|
|
106
|
+
* Adds the filter components of your choosing to the DataList.
|
|
107
|
+
*/
|
|
108
|
+
DataList.Filters = DataListFilters.DataListFilters;
|
|
109
|
+
/**
|
|
110
|
+
* Enables the search functionality of the DataList.
|
|
111
|
+
*
|
|
112
|
+
* Since the debounce is implemented within the component, it can only be an
|
|
113
|
+
* uncontrolled component. Thus the lack of a `value` prop.
|
|
114
|
+
*/
|
|
115
|
+
DataList.Search = DataListSearch.DataListSearch;
|
|
116
|
+
/**
|
|
117
|
+
* Defines the group actions you could do on a single DataList item.
|
|
118
|
+
*/
|
|
119
|
+
DataList.ItemActions = DataListItemActions.DataListItemActions;
|
|
120
|
+
/**
|
|
121
|
+
* Defines the action in a DataList. This should be used inside the
|
|
122
|
+
* DataListItemActions component.
|
|
123
|
+
*/
|
|
124
|
+
DataList.ItemAction = DataListAction.DataListAction;
|
|
125
|
+
/**
|
|
126
|
+
* Defines the group actions you could do on multiple DataList items.
|
|
127
|
+
*/
|
|
128
|
+
DataList.BatchActions = DataListBulkActions.DataListBulkActions;
|
|
129
|
+
/**
|
|
130
|
+
* Defines the batch action in a DataList. This should be used inside the
|
|
131
|
+
* DataListBatchActions component.
|
|
132
|
+
*/
|
|
133
|
+
DataList.BatchAction = function DataListBatchAction(props) {
|
|
134
|
+
return React.createElement(DataListAction.DataListAction, Object.assign({}, props));
|
|
135
|
+
};
|
|
136
|
+
/**
|
|
137
|
+
* Defines a status bar that is rendered between the filters and the header.
|
|
138
|
+
*/
|
|
139
|
+
DataList.StatusBar = DataListStatusBar.DataListStatusBar;
|
|
140
|
+
|
|
141
|
+
exports.DataList = DataList;
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { _ as __rest } from './tslib.es6-Bu_PBg9i.js';
|
|
2
|
+
import React, { useState, useMemo, useRef } from 'react';
|
|
3
|
+
import { s as styles } from './DataList-B_CFPI7W.js';
|
|
4
|
+
import { a as DataListTotalCount } from './DataListTotalCount-Di2u6JlN.js';
|
|
5
|
+
import { a as DataListLoadingState } from './DataListLoadingState-BO2264WP.js';
|
|
6
|
+
import { D as DataListLayout } from './DataListLayout-PmWmC1Vz.js';
|
|
7
|
+
import { D as DataListHeader } from './DataListHeader-DsZuhZ-t.js';
|
|
8
|
+
import { I as InternalDataListFilters, D as DataListFilters } from './DataListFilters--7__TwY4.js';
|
|
9
|
+
import { D as DataListStickyHeader } from './DataListStickyHeader-BrQ4-8FE.js';
|
|
10
|
+
import { I as InternalDataListSearch, a as DataListSearch } from './DataListSearch-BvWPsgzT.js';
|
|
11
|
+
import { I as InternalDataListEmptyState, D as DataListEmptyState } from './DataListEmptyState-BGTwctrE.js';
|
|
12
|
+
import { D as DataListLoadMore } from './DataListLoadMore-DglPb8jK.js';
|
|
13
|
+
import { D as DataListItemActions } from './DataListItemActions-F75_5lGw.js';
|
|
14
|
+
import { D as DataListAction } from './DataListAction-DZEnIqmD.js';
|
|
15
|
+
import { D as DataListLayoutActions } from './DataListLayoutActions-CeOxgo55.js';
|
|
16
|
+
import { D as DataListContext, u as useDataListContext } from './DataListContext-DsvXZGoh.js';
|
|
17
|
+
import { s as sortBreakpoints, g as getCompoundComponent, a as getCompoundComponents } from './DataList.utils-Dkk8ncia.js';
|
|
18
|
+
import { D as DATA_LIST_FILTERING_SPINNER_TEST_ID } from './DataList.const-D3AaNa_6.js';
|
|
19
|
+
import { D as DataListBulkActions } from './DataListBulkActions-COo1TOhP.js';
|
|
20
|
+
import { I as InternalDataListStatusBar, D as DataListStatusBar } from './DataListStatusBar-BYqG5qw-.js';
|
|
21
|
+
import { H as Heading } from './Heading-qH5QZFoM.js';
|
|
22
|
+
import { S as Spinner } from './Spinner-Bg1QOlTK.js';
|
|
23
|
+
|
|
24
|
+
function DataList(_a) {
|
|
25
|
+
var { selected = [], sorting } = _a, props = __rest(_a, ["selected", "sorting"]);
|
|
26
|
+
const [layouts, setLayouts] = useState({});
|
|
27
|
+
const layoutBreakpoints = useMemo(() => sortBreakpoints(Object.keys(layouts)), [layouts]);
|
|
28
|
+
const searchComponent = getCompoundComponent(props.children, DataListSearch);
|
|
29
|
+
const filterComponent = getCompoundComponent(props.children, DataListFilters);
|
|
30
|
+
const layoutComponents = getCompoundComponents(props.children, DataListLayout);
|
|
31
|
+
const emptyStateComponents = getCompoundComponents(props.children, DataListEmptyState);
|
|
32
|
+
const itemActionComponent = getCompoundComponent(props.children, DataListItemActions);
|
|
33
|
+
const bulkActionsComponent = getCompoundComponent(props.children, DataListBulkActions);
|
|
34
|
+
const headerCount = Object.keys(props.headers).length;
|
|
35
|
+
const shouldRenderStickyHeader = !!filterComponent || !!searchComponent || headerCount > 0;
|
|
36
|
+
return (React.createElement(DataListContext.Provider, { value: Object.assign(Object.assign({ searchComponent,
|
|
37
|
+
filterComponent,
|
|
38
|
+
layoutComponents,
|
|
39
|
+
emptyStateComponents,
|
|
40
|
+
itemActionComponent,
|
|
41
|
+
bulkActionsComponent,
|
|
42
|
+
layoutBreakpoints,
|
|
43
|
+
layouts,
|
|
44
|
+
registerLayout }, props), { selected,
|
|
45
|
+
// T !== DataListObject
|
|
46
|
+
sorting: sorting }) },
|
|
47
|
+
React.createElement(InternalDataList, { shouldRenderStickyHeader: shouldRenderStickyHeader })));
|
|
48
|
+
function registerLayout(size, children) {
|
|
49
|
+
setLayouts(prev => (Object.assign(Object.assign({}, prev), { [size]: children })));
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
function InternalDataList({ shouldRenderStickyHeader, }) {
|
|
53
|
+
const { data, title, totalCount, loadingState = "none", layoutComponents, } = useDataListContext();
|
|
54
|
+
const backToTopRef = useRef(null);
|
|
55
|
+
const initialLoading = loadingState === "initial";
|
|
56
|
+
const showEmptyState = !initialLoading && data.length === 0;
|
|
57
|
+
const shouldRenderLoadMoreTrigger = !initialLoading && !showEmptyState;
|
|
58
|
+
return (React.createElement("div", { className: styles.wrapper },
|
|
59
|
+
React.createElement("div", { className: styles.titleContainer },
|
|
60
|
+
title && React.createElement(Heading, { level: 3 }, title),
|
|
61
|
+
React.createElement(DataListTotalCount, { totalCount: totalCount, loading: initialLoading })),
|
|
62
|
+
React.createElement("div", { ref: backToTopRef }),
|
|
63
|
+
shouldRenderStickyHeader && (React.createElement(DataListStickyHeader, null,
|
|
64
|
+
React.createElement("div", { className: styles.headerFilters },
|
|
65
|
+
React.createElement(InternalDataListFilters, null),
|
|
66
|
+
React.createElement(InternalDataListSearch, null)),
|
|
67
|
+
React.createElement(InternalDataListStatusBar, null),
|
|
68
|
+
React.createElement(DataListHeader, null))),
|
|
69
|
+
initialLoading && React.createElement(DataListLoadingState, null),
|
|
70
|
+
showEmptyState && React.createElement(InternalDataListEmptyState, null),
|
|
71
|
+
layoutComponents,
|
|
72
|
+
loadingState === "filtering" && (React.createElement("div", { "data-testid": DATA_LIST_FILTERING_SPINNER_TEST_ID, className: styles.filtering },
|
|
73
|
+
React.createElement("div", { className: styles.filteringSpinner },
|
|
74
|
+
React.createElement(Spinner, { size: "small" })))),
|
|
75
|
+
shouldRenderLoadMoreTrigger && (React.createElement(DataListLoadMore, { onBackToTop: handleBackToTop }))));
|
|
76
|
+
function handleBackToTop() {
|
|
77
|
+
var _a;
|
|
78
|
+
// For testing purposes since jest doesn't know scrollIntoView.
|
|
79
|
+
// This prevents consumer's tests from needing to mock scrollIntoView.
|
|
80
|
+
if (!window.HTMLElement.prototype.scrollIntoView)
|
|
81
|
+
return;
|
|
82
|
+
(_a = backToTopRef.current) === null || _a === void 0 ? void 0 : _a.scrollIntoView({
|
|
83
|
+
behavior: "smooth",
|
|
84
|
+
block: "nearest",
|
|
85
|
+
inline: "start",
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Sets the layout that the DataList item and header will use.
|
|
91
|
+
*/
|
|
92
|
+
DataList.Layout = DataListLayout;
|
|
93
|
+
/**
|
|
94
|
+
* By using this component, we can render the actions anywhere in the layout
|
|
95
|
+
* instead of being added automatically on hover.
|
|
96
|
+
*/
|
|
97
|
+
DataList.LayoutActions = DataListLayoutActions;
|
|
98
|
+
/**
|
|
99
|
+
* When the DataList is either empty and/or filtered, this component will be
|
|
100
|
+
* rendered.
|
|
101
|
+
*/
|
|
102
|
+
DataList.EmptyState = DataListEmptyState;
|
|
103
|
+
/**
|
|
104
|
+
* Adds the filter components of your choosing to the DataList.
|
|
105
|
+
*/
|
|
106
|
+
DataList.Filters = DataListFilters;
|
|
107
|
+
/**
|
|
108
|
+
* Enables the search functionality of the DataList.
|
|
109
|
+
*
|
|
110
|
+
* Since the debounce is implemented within the component, it can only be an
|
|
111
|
+
* uncontrolled component. Thus the lack of a `value` prop.
|
|
112
|
+
*/
|
|
113
|
+
DataList.Search = DataListSearch;
|
|
114
|
+
/**
|
|
115
|
+
* Defines the group actions you could do on a single DataList item.
|
|
116
|
+
*/
|
|
117
|
+
DataList.ItemActions = DataListItemActions;
|
|
118
|
+
/**
|
|
119
|
+
* Defines the action in a DataList. This should be used inside the
|
|
120
|
+
* DataListItemActions component.
|
|
121
|
+
*/
|
|
122
|
+
DataList.ItemAction = DataListAction;
|
|
123
|
+
/**
|
|
124
|
+
* Defines the group actions you could do on multiple DataList items.
|
|
125
|
+
*/
|
|
126
|
+
DataList.BatchActions = DataListBulkActions;
|
|
127
|
+
/**
|
|
128
|
+
* Defines the batch action in a DataList. This should be used inside the
|
|
129
|
+
* DataListBatchActions component.
|
|
130
|
+
*/
|
|
131
|
+
DataList.BatchAction = function DataListBatchAction(props) {
|
|
132
|
+
return React.createElement(DataListAction, Object.assign({}, props));
|
|
133
|
+
};
|
|
134
|
+
/**
|
|
135
|
+
* Defines a status bar that is rendered between the filters and the header.
|
|
136
|
+
*/
|
|
137
|
+
DataList.StatusBar = DataListStatusBar;
|
|
138
|
+
|
|
139
|
+
export { DataList as D };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { tokens } from '@jobber/design';
|
|
2
|
+
|
|
3
|
+
const EMPTY_RESULTS_MESSAGE = "List is looking empty";
|
|
4
|
+
const EMPTY_FILTER_RESULTS_MESSAGE = "No results for selected filters";
|
|
5
|
+
const EMPTY_STATE_ACTION_BUTTON_ONLY_ERROR = "DataListEmptyState action prop must be a Button component";
|
|
6
|
+
/**
|
|
7
|
+
* Breakpoints that we support
|
|
8
|
+
*/
|
|
9
|
+
const BREAKPOINTS = ["xs", "sm", "md", "lg", "xl"];
|
|
10
|
+
const BREAKPOINT_SIZES = {
|
|
11
|
+
xs: 0,
|
|
12
|
+
sm: 490,
|
|
13
|
+
md: 768,
|
|
14
|
+
lg: 1080,
|
|
15
|
+
xl: 1440,
|
|
16
|
+
};
|
|
17
|
+
const SEARCH_DEBOUNCE_DELAY = tokens["timing-slowest"];
|
|
18
|
+
const DATA_LIST_FILTERING_SPINNER_TEST_ID = "ATL-DataList-filteringSpinner";
|
|
19
|
+
const DATA_LIST_LOADING_MORE_SPINNER_TEST_ID = "ATL-DataList-loadingMoreSpinner";
|
|
20
|
+
const DATA_LOAD_MORE_TEST_ID = "ATL-DataList-LoadMore-trigger";
|
|
21
|
+
const DATA_LIST_STICKY_HEADER_TEST_ID = "ATL-DataList-stickyHeader";
|
|
22
|
+
const TRANSITION_DURATION_IN_SECONDS = tokens["timing-base"] / 1000;
|
|
23
|
+
const TRANSITION_DELAY_IN_SECONDS = tokens["timing-quick"] / 1000;
|
|
24
|
+
|
|
25
|
+
export { BREAKPOINTS as B, DATA_LIST_FILTERING_SPINNER_TEST_ID as D, EMPTY_FILTER_RESULTS_MESSAGE as E, SEARCH_DEBOUNCE_DELAY as S, TRANSITION_DURATION_IN_SECONDS as T, DATA_LIST_STICKY_HEADER_TEST_ID as a, EMPTY_RESULTS_MESSAGE as b, EMPTY_STATE_ACTION_BUTTON_ONLY_ERROR as c, TRANSITION_DELAY_IN_SECONDS as d, BREAKPOINT_SIZES as e, DATA_LOAD_MORE_TEST_ID as f, DATA_LIST_LOADING_MORE_SPINNER_TEST_ID as g };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var design = require('@jobber/design');
|
|
4
|
+
|
|
5
|
+
const EMPTY_RESULTS_MESSAGE = "List is looking empty";
|
|
6
|
+
const EMPTY_FILTER_RESULTS_MESSAGE = "No results for selected filters";
|
|
7
|
+
const EMPTY_STATE_ACTION_BUTTON_ONLY_ERROR = "DataListEmptyState action prop must be a Button component";
|
|
8
|
+
/**
|
|
9
|
+
* Breakpoints that we support
|
|
10
|
+
*/
|
|
11
|
+
const BREAKPOINTS = ["xs", "sm", "md", "lg", "xl"];
|
|
12
|
+
const BREAKPOINT_SIZES = {
|
|
13
|
+
xs: 0,
|
|
14
|
+
sm: 490,
|
|
15
|
+
md: 768,
|
|
16
|
+
lg: 1080,
|
|
17
|
+
xl: 1440,
|
|
18
|
+
};
|
|
19
|
+
const SEARCH_DEBOUNCE_DELAY = design.tokens["timing-slowest"];
|
|
20
|
+
const DATA_LIST_FILTERING_SPINNER_TEST_ID = "ATL-DataList-filteringSpinner";
|
|
21
|
+
const DATA_LIST_LOADING_MORE_SPINNER_TEST_ID = "ATL-DataList-loadingMoreSpinner";
|
|
22
|
+
const DATA_LOAD_MORE_TEST_ID = "ATL-DataList-LoadMore-trigger";
|
|
23
|
+
const DATA_LIST_STICKY_HEADER_TEST_ID = "ATL-DataList-stickyHeader";
|
|
24
|
+
const TRANSITION_DURATION_IN_SECONDS = design.tokens["timing-base"] / 1000;
|
|
25
|
+
const TRANSITION_DELAY_IN_SECONDS = design.tokens["timing-quick"] / 1000;
|
|
26
|
+
|
|
27
|
+
exports.BREAKPOINTS = BREAKPOINTS;
|
|
28
|
+
exports.BREAKPOINT_SIZES = BREAKPOINT_SIZES;
|
|
29
|
+
exports.DATA_LIST_FILTERING_SPINNER_TEST_ID = DATA_LIST_FILTERING_SPINNER_TEST_ID;
|
|
30
|
+
exports.DATA_LIST_LOADING_MORE_SPINNER_TEST_ID = DATA_LIST_LOADING_MORE_SPINNER_TEST_ID;
|
|
31
|
+
exports.DATA_LIST_STICKY_HEADER_TEST_ID = DATA_LIST_STICKY_HEADER_TEST_ID;
|
|
32
|
+
exports.DATA_LOAD_MORE_TEST_ID = DATA_LOAD_MORE_TEST_ID;
|
|
33
|
+
exports.EMPTY_FILTER_RESULTS_MESSAGE = EMPTY_FILTER_RESULTS_MESSAGE;
|
|
34
|
+
exports.EMPTY_RESULTS_MESSAGE = EMPTY_RESULTS_MESSAGE;
|
|
35
|
+
exports.EMPTY_STATE_ACTION_BUTTON_ONLY_ERROR = EMPTY_STATE_ACTION_BUTTON_ONLY_ERROR;
|
|
36
|
+
exports.SEARCH_DEBOUNCE_DELAY = SEARCH_DEBOUNCE_DELAY;
|
|
37
|
+
exports.TRANSITION_DELAY_IN_SECONDS = TRANSITION_DELAY_IN_SECONDS;
|
|
38
|
+
exports.TRANSITION_DURATION_IN_SECONDS = TRANSITION_DURATION_IN_SECONDS;
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var React = require('react');
|
|
4
|
+
var _commonjsHelpers = require('./_commonjsHelpers-BZy5LDD5.js');
|
|
5
|
+
var _getTag = require('./_getTag-DnTPemdC.js');
|
|
6
|
+
var DataList_const = require('./DataList.const-DQS-UFM6.js');
|
|
7
|
+
var DataListTags = require('./DataListTags-CJSrIuC1.js');
|
|
8
|
+
var DataListHeaderTile = require('./DataListHeaderTile-BF8LFQJ9.js');
|
|
9
|
+
var FormatDate = require('./FormatDate-CMk1Vkpz.js');
|
|
10
|
+
var Text = require('./Text-CuGgzpie.js');
|
|
11
|
+
var Heading = require('./Heading-BhyZ43jQ.js');
|
|
12
|
+
|
|
13
|
+
var baseKeys = _getTag._baseKeys,
|
|
14
|
+
getTag = _getTag._getTag,
|
|
15
|
+
isArguments = _getTag.isArguments_1,
|
|
16
|
+
isArray = _getTag.isArray_1,
|
|
17
|
+
isArrayLike = _getTag.isArrayLike_1,
|
|
18
|
+
isBuffer = _getTag.isBufferExports,
|
|
19
|
+
isPrototype = _getTag._isPrototype,
|
|
20
|
+
isTypedArray = _getTag.isTypedArray_1;
|
|
21
|
+
|
|
22
|
+
/** `Object#toString` result references. */
|
|
23
|
+
var mapTag = '[object Map]',
|
|
24
|
+
setTag = '[object Set]';
|
|
25
|
+
|
|
26
|
+
/** Used for built-in method references. */
|
|
27
|
+
var objectProto = Object.prototype;
|
|
28
|
+
|
|
29
|
+
/** Used to check objects for own properties. */
|
|
30
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Checks if `value` is an empty object, collection, map, or set.
|
|
34
|
+
*
|
|
35
|
+
* Objects are considered empty if they have no own enumerable string keyed
|
|
36
|
+
* properties.
|
|
37
|
+
*
|
|
38
|
+
* Array-like values such as `arguments` objects, arrays, buffers, strings, or
|
|
39
|
+
* jQuery-like collections are considered empty if they have a `length` of `0`.
|
|
40
|
+
* Similarly, maps and sets are considered empty if they have a `size` of `0`.
|
|
41
|
+
*
|
|
42
|
+
* @static
|
|
43
|
+
* @memberOf _
|
|
44
|
+
* @since 0.1.0
|
|
45
|
+
* @category Lang
|
|
46
|
+
* @param {*} value The value to check.
|
|
47
|
+
* @returns {boolean} Returns `true` if `value` is empty, else `false`.
|
|
48
|
+
* @example
|
|
49
|
+
*
|
|
50
|
+
* _.isEmpty(null);
|
|
51
|
+
* // => true
|
|
52
|
+
*
|
|
53
|
+
* _.isEmpty(true);
|
|
54
|
+
* // => true
|
|
55
|
+
*
|
|
56
|
+
* _.isEmpty(1);
|
|
57
|
+
* // => true
|
|
58
|
+
*
|
|
59
|
+
* _.isEmpty([1, 2, 3]);
|
|
60
|
+
* // => false
|
|
61
|
+
*
|
|
62
|
+
* _.isEmpty({ 'a': 1 });
|
|
63
|
+
* // => false
|
|
64
|
+
*/
|
|
65
|
+
function isEmpty(value) {
|
|
66
|
+
if (value == null) {
|
|
67
|
+
return true;
|
|
68
|
+
}
|
|
69
|
+
if (isArrayLike(value) &&
|
|
70
|
+
(isArray(value) || typeof value == 'string' || typeof value.splice == 'function' ||
|
|
71
|
+
isBuffer(value) || isTypedArray(value) || isArguments(value))) {
|
|
72
|
+
return !value.length;
|
|
73
|
+
}
|
|
74
|
+
var tag = getTag(value);
|
|
75
|
+
if (tag == mapTag || tag == setTag) {
|
|
76
|
+
return !value.size;
|
|
77
|
+
}
|
|
78
|
+
if (isPrototype(value)) {
|
|
79
|
+
return !baseKeys(value).length;
|
|
80
|
+
}
|
|
81
|
+
for (var key in value) {
|
|
82
|
+
if (hasOwnProperty.call(value, key)) {
|
|
83
|
+
return false;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
return true;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
var isEmpty_1 = isEmpty;
|
|
90
|
+
|
|
91
|
+
var isEmpty$1 = /*@__PURE__*/_commonjsHelpers.getDefaultExportFromCjs(isEmpty_1);
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Return the child component that matches the `type` provided
|
|
95
|
+
*/
|
|
96
|
+
function getCompoundComponent(children, type) {
|
|
97
|
+
const childrenArray = React.Children.toArray(children);
|
|
98
|
+
const element = childrenArray.find(child => React.isValidElement(child) && child.type === type);
|
|
99
|
+
// Comply with the return type without casting it
|
|
100
|
+
return React.isValidElement(element) ? element : undefined;
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Return all instances child component that matches the `type` provided
|
|
104
|
+
*/
|
|
105
|
+
function getCompoundComponents(children, type) {
|
|
106
|
+
const childrenArray = React.Children.toArray(children);
|
|
107
|
+
const elements = childrenArray.filter((child) => React.isValidElement(child) && child.type === type);
|
|
108
|
+
return elements;
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Generate the default element the DataList would use on the data provided.
|
|
112
|
+
*/
|
|
113
|
+
function generateListItemElement(item) {
|
|
114
|
+
return Object.keys(item).reduce((acc, key) => {
|
|
115
|
+
const currentItem = item[key];
|
|
116
|
+
if (!currentItem) {
|
|
117
|
+
return acc;
|
|
118
|
+
}
|
|
119
|
+
if (key === "tags" && Array.isArray(currentItem)) {
|
|
120
|
+
acc[key] = React.createElement(DataListTags.DataListTags, { items: currentItem });
|
|
121
|
+
}
|
|
122
|
+
else if (key === "label" && typeof currentItem === "string") {
|
|
123
|
+
acc[key] = React.createElement(Heading.Heading, { level: 5 }, currentItem);
|
|
124
|
+
}
|
|
125
|
+
else if (React.isValidElement(currentItem)) {
|
|
126
|
+
acc[key] = currentItem;
|
|
127
|
+
}
|
|
128
|
+
else if (currentItem instanceof Date) {
|
|
129
|
+
acc[key] = (React.createElement(Text.Text, null,
|
|
130
|
+
React.createElement(FormatDate.FormatDate, { date: currentItem })));
|
|
131
|
+
}
|
|
132
|
+
else {
|
|
133
|
+
acc[key] = React.createElement(Text.Text, null, currentItem);
|
|
134
|
+
}
|
|
135
|
+
return acc;
|
|
136
|
+
}, {});
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* Generate the header elements with the default styling
|
|
140
|
+
*/
|
|
141
|
+
function generateHeaderElements(headers) {
|
|
142
|
+
const headerElements = Object.keys(headers).reduce((acc, key) => (Object.assign(Object.assign({}, acc), { [key]: React.createElement(DataListHeaderTile.DataListHeaderTile, { headers: headers, headerKey: key, visible: true }) })), {});
|
|
143
|
+
return isEmpty$1(headerElements) ? undefined : headerElements;
|
|
144
|
+
}
|
|
145
|
+
function sortBreakpoints(sizeProp) {
|
|
146
|
+
return sizeProp.sort((a, b) => DataList_const.BREAKPOINTS.indexOf(a) - DataList_const.BREAKPOINTS.indexOf(b));
|
|
147
|
+
}
|
|
148
|
+
function getExposedActions(childrenArray, childCount = 2) {
|
|
149
|
+
const firstNChildren = childrenArray.slice(0, childCount);
|
|
150
|
+
return firstNChildren.reduce((result, child, i) => {
|
|
151
|
+
const hasIcon = Boolean(child.props.icon);
|
|
152
|
+
if (!hasIcon)
|
|
153
|
+
return result; // If the child does not have an icon, continue.
|
|
154
|
+
const isLastChildAdded = result.length === i;
|
|
155
|
+
// If it's the first child or if the previous child was added, then add this child.
|
|
156
|
+
if (i === 0 || (i < childCount && isLastChildAdded)) {
|
|
157
|
+
return [...result, child];
|
|
158
|
+
}
|
|
159
|
+
return result;
|
|
160
|
+
}, []);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
exports.generateHeaderElements = generateHeaderElements;
|
|
164
|
+
exports.generateListItemElement = generateListItemElement;
|
|
165
|
+
exports.getCompoundComponent = getCompoundComponent;
|
|
166
|
+
exports.getCompoundComponents = getCompoundComponents;
|
|
167
|
+
exports.getExposedActions = getExposedActions;
|
|
168
|
+
exports.sortBreakpoints = sortBreakpoints;
|