@jobber/components 4.92.0 → 5.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AnimatedPresence/{index.js → index.cjs} +1 -3
- package/dist/AnimatedPresence/index.mjs +4 -0
- package/dist/AnimatedPresence-C5We_sJS.js +98 -0
- package/dist/{AnimatedPresence-20a02aaa.js → AnimatedPresence-DlGX4YeU.js} +3 -7
- package/dist/AnimatedSwitcher/index.cjs +11 -0
- package/dist/AnimatedSwitcher/index.mjs +5 -0
- package/dist/{AnimatedSwitcher-3d45ec5d.js → AnimatedSwitcher-C5f61KU3.js} +4 -8
- package/dist/AnimatedSwitcher-CblJS560.js +90 -0
- package/dist/AtlantisContext/{index.js → index.cjs} +1 -3
- package/dist/AtlantisContext/index.mjs +2 -0
- package/dist/AtlantisContext-Dn6_XQmD.js +18 -0
- package/dist/Autocomplete/index.cjs +33 -0
- package/dist/Autocomplete/index.mjs +27 -0
- package/dist/Autocomplete-ByQH-FFs.js +190 -0
- package/dist/Autocomplete-Y7lm2-sL.js +192 -0
- package/dist/Avatar/index.cjs +12 -0
- package/dist/Avatar/index.mjs +6 -0
- package/dist/Avatar-BodBt4pN.js +69 -0
- package/dist/Avatar-SP_BUJLU.js +67 -0
- package/dist/Banner/components/BannerIcon/index.cjs +13 -0
- package/dist/Banner/components/BannerIcon/index.mjs +7 -0
- package/dist/Banner/index.cjs +23 -0
- package/dist/Banner/index.mjs +17 -0
- package/dist/Banner-CZv2-je-.js +81 -0
- package/dist/Banner-CuAIgZeC.js +79 -0
- package/dist/BannerIcon-ConQTE2v.js +19 -0
- package/dist/BannerIcon-D1nansKP.js +22 -0
- package/dist/Body-CWin6-n3.js +54 -0
- package/dist/Body-CZKOa_9x.js +45 -0
- package/dist/Button/index.cjs +13 -0
- package/dist/Button/index.mjs +7 -0
- package/dist/Button-DK1Px9LS.js +47 -0
- package/dist/Button-noDSqvxX.js +49 -0
- package/dist/ButtonDismiss/index.cjs +14 -0
- package/dist/ButtonDismiss/index.mjs +8 -0
- package/dist/ButtonDismiss-BNe3USW4.js +8 -0
- package/dist/ButtonDismiss-CnCeo4wT.js +10 -0
- package/dist/Card/index.cjs +21 -0
- package/dist/Card/index.mjs +15 -0
- package/dist/Card-QFMBJI3D.js +83 -0
- package/dist/Card-q2yw0ZPa.js +81 -0
- package/dist/Checkbox/index.cjs +15 -0
- package/dist/Checkbox/index.mjs +9 -0
- package/dist/Checkbox-BcFHMjuY.js +53 -0
- package/dist/Checkbox-BshHYo-R.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-DkIyAIrp.js +70 -0
- package/dist/Chip-lakFvkPp.js +67 -0
- package/dist/ChipDismissible-DcdB7k4V.js +22 -0
- package/dist/ChipDismissible-W7LaZqau.js +19 -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-BWloFj-G.js +91 -0
- package/dist/Chips-CmZ2cDpW.js +93 -0
- package/dist/Combobox/components/ComboboxAction/index.cjs +12 -0
- package/dist/Combobox/components/ComboboxAction/index.mjs +6 -0
- package/dist/Combobox/components/ComboboxActivator/index.cjs +27 -0
- package/dist/Combobox/components/ComboboxActivator/index.mjs +21 -0
- package/dist/Combobox/components/ComboboxContent/ComboboxContentHeader/index.cjs +14 -0
- package/dist/Combobox/components/ComboboxContent/ComboboxContentHeader/index.mjs +8 -0
- package/dist/Combobox/components/ComboboxContent/ComboboxContentList/index.cjs +24 -0
- package/dist/Combobox/components/ComboboxContent/ComboboxContentList/index.mjs +18 -0
- package/dist/Combobox/components/ComboboxContent/ComboboxContentSearch/index.cjs +10 -0
- package/dist/Combobox/components/ComboboxContent/ComboboxContentSearch/index.mjs +4 -0
- package/dist/Combobox/components/ComboboxContent/ComboboxLoadMore/index.cjs +9 -0
- package/dist/Combobox/components/ComboboxContent/ComboboxLoadMore/index.mjs +3 -0
- package/dist/Combobox/components/ComboboxContent/index.cjs +34 -0
- package/dist/Combobox/components/ComboboxContent/index.mjs +28 -0
- package/dist/Combobox/components/ComboboxOption/index.cjs +14 -0
- package/dist/Combobox/components/ComboboxOption/index.mjs +8 -0
- package/dist/Combobox/components/ComboboxTrigger/index.cjs +25 -0
- package/dist/Combobox/components/ComboboxTrigger/index.mjs +19 -0
- package/dist/Combobox/index.cjs +53 -0
- package/dist/Combobox/index.mjs +46 -0
- package/dist/Combobox-DYuCZJK1.js +117 -0
- package/dist/Combobox-DZHF_g4U.js +119 -0
- package/dist/ComboboxAction-BTv1z8lN.js +24 -0
- package/dist/ComboboxAction-CyGny2jL.js +22 -0
- package/dist/ComboboxActivator-CqxbvPUx.js +26 -0
- package/dist/ComboboxActivator-DOkCbaXq.js +28 -0
- package/dist/ComboboxContent-CE_sVLBm.js +143 -0
- package/dist/ComboboxContent-Dfy8wC2s.js +145 -0
- package/dist/ComboboxContentHeader-CwjRcAK7.js +29 -0
- package/dist/ComboboxContentHeader-DCORmU4Q.js +27 -0
- package/dist/ComboboxContentList-BIhd1rVk.js +77 -0
- package/dist/ComboboxContentList-CuPmGVX3.js +75 -0
- package/dist/ComboboxContentSearch-C7-EAy_E.js +34 -0
- package/dist/ComboboxContentSearch-DKfP1oP5.js +32 -0
- package/dist/ComboboxLoadMore-AwHTapyI.js +16 -0
- package/dist/ComboboxLoadMore-CZApONuU.js +14 -0
- package/dist/ComboboxOption-Bh-oQgEr.js +20 -0
- package/dist/ComboboxOption-DSBi-uyc.js +22 -0
- package/dist/ComboboxProvider-CQ3ZXsZa.js +13 -0
- package/dist/ComboboxProvider-cguiY4og.js +10 -0
- package/dist/ComboboxTrigger-DhsYtnvQ.js +24 -0
- package/dist/ComboboxTrigger-mSe96JA7.js +22 -0
- package/dist/ConfirmationModal/index.cjs +31 -0
- package/dist/ConfirmationModal/index.mjs +25 -0
- package/dist/{ConfirmationModal-c0b5e893.js → ConfirmationModal-Du1pTmhg.js} +8 -12
- package/dist/ConfirmationModal-UNolD6Md.js +94 -0
- package/dist/Content/index.cjs +9 -0
- package/dist/Content/index.mjs +3 -0
- package/dist/Content-Cr-SNhIb.js +15 -0
- package/dist/Content-q0mmpOCB.js +13 -0
- package/dist/Countdown/index.cjs +11 -0
- package/dist/Countdown/index.mjs +5 -0
- package/dist/Countdown-Bk4VdUU2.js +657 -0
- package/dist/Countdown-FyBxWGlM.js +659 -0
- package/dist/DataDump/index.cjs +24 -0
- package/dist/DataDump/index.mjs +18 -0
- package/dist/DataDump-DLNUBwSq.js +17 -0
- package/dist/DataDump-DYF_Sjgo.js +15 -0
- package/dist/DataList/components/DataListAction/index.cjs +13 -0
- package/dist/DataList/components/DataListAction/index.mjs +7 -0
- package/dist/DataList/components/DataListActions/index.cjs +43 -0
- package/dist/DataList/components/DataListActions/index.mjs +37 -0
- package/dist/DataList/components/DataListActionsMenu/index.cjs +17 -0
- package/dist/DataList/components/DataListActionsMenu/index.mjs +11 -0
- package/dist/DataList/components/DataListBulkActions/index.cjs +46 -0
- package/dist/DataList/components/DataListBulkActions/index.mjs +39 -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 +68 -0
- package/dist/DataList/components/DataListFilters/index.mjs +61 -0
- package/dist/DataList/components/DataListHeader/index.cjs +53 -0
- package/dist/DataList/components/DataListHeader/index.mjs +47 -0
- package/dist/DataList/components/DataListHeaderTile/components/index.cjs +12 -0
- package/dist/DataList/components/DataListHeaderTile/components/index.mjs +6 -0
- package/dist/DataList/components/DataListHeaderTile/index.cjs +20 -0
- package/dist/DataList/components/DataListHeaderTile/index.mjs +14 -0
- package/dist/DataList/components/DataListItem/components/DataListItemClickable/index.cjs +14 -0
- package/dist/DataList/components/DataListItem/components/DataListItemClickable/index.mjs +8 -0
- package/dist/DataList/components/DataListItem/index.cjs +52 -0
- package/dist/DataList/components/DataListItem/index.mjs +46 -0
- package/dist/DataList/components/DataListItemActions/index.cjs +45 -0
- package/dist/DataList/components/DataListItemActions/index.mjs +38 -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 +53 -0
- package/dist/DataList/components/DataListItems/index.mjs +47 -0
- package/dist/DataList/components/DataListLayout/index.cjs +56 -0
- package/dist/DataList/components/DataListLayout/index.mjs +50 -0
- package/dist/DataList/components/DataListLayoutActions/DataListLayoutContext/index.cjs +9 -0
- package/dist/DataList/components/DataListLayoutActions/DataListLayoutContext/index.mjs +2 -0
- package/dist/DataList/components/DataListLayoutActions/index.cjs +33 -0
- package/dist/DataList/components/DataListLayoutActions/index.mjs +27 -0
- package/dist/DataList/components/DataListLoadMore/index.cjs +21 -0
- package/dist/DataList/components/DataListLoadMore/index.mjs +14 -0
- package/dist/DataList/components/DataListLoadingState/index.cjs +21 -0
- package/dist/DataList/components/DataListLoadingState/index.mjs +13 -0
- package/dist/DataList/components/DataListOverflowFade/index.cjs +11 -0
- package/dist/DataList/components/DataListOverflowFade/index.mjs +4 -0
- package/dist/DataList/components/DataListSearch/index.cjs +33 -0
- package/dist/DataList/components/DataListSearch/index.mjs +25 -0
- package/dist/DataList/components/DataListStatusBar/index.cjs +32 -0
- package/dist/DataList/components/DataListStatusBar/index.mjs +25 -0
- package/dist/DataList/components/DataListStickyHeader/index.cjs +11 -0
- package/dist/DataList/components/DataListStickyHeader/index.mjs +5 -0
- package/dist/DataList/components/DataListTags/index.cjs +12 -0
- package/dist/DataList/components/DataListTags/index.mjs +6 -0
- package/dist/DataList/components/DataListTotalCount/index.cjs +15 -0
- package/dist/DataList/components/DataListTotalCount/index.mjs +8 -0
- package/dist/DataList/context/DataListContext/index.cjs +12 -0
- package/dist/DataList/context/DataListContext/index.mjs +4 -0
- package/dist/DataList/context/DataListLayoutContext/index.cjs +12 -0
- package/dist/DataList/context/DataListLayoutContext/index.mjs +4 -0
- package/dist/DataList/index.cjs +98 -0
- package/dist/DataList/index.mjs +92 -0
- package/dist/DataList-Bmcmjt1A.js +5 -0
- package/dist/DataList-Cc_fUM76.js +3 -0
- package/dist/DataList-Crm9MwPN.js +141 -0
- package/dist/DataList-r1qIS1QT.js +139 -0
- package/dist/DataList.const-CxX7Gjfz.js +38 -0
- package/dist/DataList.const-DZaKGZRx.js +25 -0
- package/dist/DataList.utils-9ehaD0Qv.js +161 -0
- package/dist/DataList.utils-CMa3suIh.js +168 -0
- package/dist/DataListAction-CRAdSlkF.js +37 -0
- package/dist/DataListAction-dDBGML5C.js +39 -0
- package/dist/DataListActions-C6kLL6bk.js +43 -0
- package/dist/DataListActions-CIGEBlZS.js +45 -0
- package/dist/DataListActionsMenu-CcPO6xu6.js +57 -0
- package/dist/DataListActionsMenu-DUzcRsjU.js +55 -0
- package/dist/DataListBulkActions-BSzm2WNu.js +26 -0
- package/dist/DataListBulkActions-CD9jB0pD.js +29 -0
- package/dist/DataListContext-CjeCQOQO.js +29 -0
- package/dist/DataListContext-tYtmL4Rx.js +25 -0
- package/dist/DataListEmptyState-65ibxPBY.js +50 -0
- package/dist/DataListEmptyState-DK-7wiyT.js +53 -0
- package/dist/DataListFilters-CZ5qHZbs.js +43 -0
- package/dist/DataListFilters-DFqOeGe-.js +46 -0
- package/dist/DataListHeader-CAy8j3WL.js +93 -0
- package/dist/DataListHeader-D-wLVtiQ.js +95 -0
- package/dist/DataListHeaderTile-BsycPdAH.js +79 -0
- package/dist/DataListHeaderTile-DFn6xA5F.js +81 -0
- package/dist/DataListItem-BO1Wlpy7.js +112 -0
- package/dist/DataListItem-TBu2bxGW.js +114 -0
- package/dist/DataListItemActions-Buc_xbbO.js +29 -0
- package/dist/DataListItemActions-DsRsqiO9.js +32 -0
- package/dist/DataListItemActionsOverflow-By43h0ZT.js +33 -0
- package/dist/DataListItemActionsOverflow-Ca2DLUFZ.js +35 -0
- package/dist/DataListItemClickable-B95HdOlE.js +47 -0
- package/dist/DataListItemClickable-CbpEzDTq.js +45 -0
- package/dist/DataListItems-CIXSAWsL.js +19 -0
- package/dist/DataListItems-TG0MTglA.js +21 -0
- package/dist/DataListLayout-BxxFdI1-.js +19 -0
- package/dist/DataListLayout-DxXrlv-e.js +21 -0
- package/dist/DataListLayoutActions-DhOF6v-Q.js +38 -0
- package/dist/DataListLayoutActions-kAE1lLJ4.js +36 -0
- package/dist/DataListLayoutContext-BSOwbjMF.js +8 -0
- package/dist/DataListLayoutContext-Bduu7kVW.js +18 -0
- package/dist/DataListLayoutContext-CRwE525R.js +11 -0
- package/dist/DataListLayoutContext-DDloSo3U.js +14 -0
- package/dist/DataListLoadMore-B16qzdrh.js +34 -0
- package/dist/DataListLoadMore-DYdFexgL.js +31 -0
- package/dist/DataListLoadingState-BqYDCOzq.js +26 -0
- package/dist/DataListLoadingState-CmFAHLs7.js +22 -0
- package/dist/DataListOverflowFade-DMC17Az8.js +25 -0
- package/dist/DataListOverflowFade-n0EBeGj9.js +22 -0
- package/dist/DataListSearch-B-toEA5Q.js +63 -0
- package/dist/DataListSearch-C5rRCyba.js +59 -0
- package/dist/DataListSort-D-WfgWZm.js +92 -0
- package/dist/DataListSort-DPworNPJ.js +94 -0
- package/dist/DataListSortingOptions-4H3EJUmw.js +37 -0
- package/dist/DataListSortingOptions-CozrvIh9.js +35 -0
- package/dist/DataListStatusBar-Bp7Ea5Hf.js +22 -0
- package/dist/DataListStatusBar-DldWmzsp.js +25 -0
- package/dist/DataListStickyHeader-CqUyQpRA.js +25 -0
- package/dist/DataListStickyHeader-g6MyqaNi.js +23 -0
- package/dist/DataListTags-CIYmBPAs.js +64 -0
- package/dist/DataListTags-CyvhOmuF.js +62 -0
- package/dist/DataListTotalCount-CL7h6wRA.js +24 -0
- package/dist/DataListTotalCount-Dfl8vCeh.js +27 -0
- package/dist/DataTable/index.cjs +36 -0
- package/dist/DataTable/index.mjs +25 -0
- package/dist/DataTable/test-utilities/index.cjs +246 -0
- package/dist/DataTable/test-utilities/index.mjs +238 -0
- package/dist/DataTable-BYVsSEdr.js +238 -0
- package/dist/DataTable-BqEYgTts.js +236 -0
- package/dist/DatePicker/index.cjs +26 -0
- package/dist/DatePicker/index.mjs +20 -0
- package/dist/DatePicker-CVwO_Www.js +8551 -0
- package/dist/DatePicker-DxjYIrKO.js +8554 -0
- package/dist/DayOfMonthSelect-CLQjBaGB.js +137 -0
- package/dist/DayOfMonthSelect-DL4PKvDu.js +130 -0
- package/dist/DescriptionList/index.cjs +10 -0
- package/dist/DescriptionList/index.mjs +4 -0
- package/dist/DescriptionList-BpLGTlUb.js +12 -0
- package/dist/DescriptionList-pM-3_7H4.js +14 -0
- package/dist/Disclosure/index.cjs +17 -0
- package/dist/Disclosure/index.mjs +11 -0
- package/dist/Disclosure-CV9NdfNK.js +35 -0
- package/dist/Disclosure-uZFEdLqn.js +33 -0
- package/dist/Divider/index.cjs +9 -0
- package/dist/Divider/index.mjs +3 -0
- package/dist/Divider-B9NtZEy_.js +17 -0
- package/dist/Divider-BIw9_09d.js +19 -0
- package/dist/Drawer/index.cjs +19 -0
- package/dist/Drawer/index.mjs +12 -0
- package/dist/DrawerGrid-BbpNJeGU.js +31 -0
- package/dist/DrawerGrid-Bm-Wshn3.js +28 -0
- package/dist/Emphasis/index.cjs +10 -0
- package/dist/Emphasis/index.mjs +4 -0
- package/dist/Emphasis-BSYW8CIV.js +13 -0
- package/dist/Emphasis-BeDR-wzW.js +15 -0
- package/dist/FeatureSwitch/index.cjs +26 -0
- package/dist/FeatureSwitch/index.mjs +20 -0
- package/dist/FeatureSwitch-DNgoHFQE.js +54 -0
- package/dist/FeatureSwitch-hqLVNdlG.js +52 -0
- package/dist/Flex/index.cjs +9 -0
- package/dist/Flex/index.mjs +3 -0
- package/dist/Flex-CHwqd3gT.js +28 -0
- package/dist/Flex-w0DbahOc.js +30 -0
- package/dist/Form/index.cjs +10 -0
- package/dist/Form/index.mjs +4 -0
- package/dist/{Form/index.js → Form-CEolMqRa.js} +3 -9
- package/dist/Form-DSH7BVDr.js +48 -0
- package/dist/FormField/index.cjs +20 -0
- package/dist/FormField/index.mjs +14 -0
- package/dist/FormField-DIzS7UJ8.js +263 -0
- package/dist/FormField-DX3mqc2W.js +261 -0
- package/dist/FormatDate/{index.js → index.cjs} +1 -3
- package/dist/FormatDate/index.mjs +2 -0
- package/dist/FormatDate-4rgQmMHs.js +27 -0
- package/dist/{FormatDate-70ea5b43.js → FormatDate-QBFUXXRW.js} +1 -5
- package/dist/FormatEmail/index.cjs +9 -0
- package/dist/FormatEmail/index.mjs +3 -0
- package/dist/FormatEmail-CvjTY96k.js +13 -0
- package/dist/FormatEmail-VCrir2W4.js +11 -0
- package/dist/FormatFile/index.cjs +36 -0
- package/dist/FormatFile/index.mjs +30 -0
- package/dist/FormatFile-BGuB0e5J.js +147 -0
- package/dist/FormatFile-afrjxCfH.js +149 -0
- package/dist/FormatRelativeDateTime/index.cjs +8 -0
- package/dist/FormatRelativeDateTime/index.mjs +2 -0
- package/dist/FormatRelativeDateTime-D1RKmSMc.js +64 -0
- package/dist/{FormatRelativeDateTime/index.js → FormatRelativeDateTime-JzSmzkW3.js} +5 -11
- package/dist/FormatTime/index.cjs +8 -0
- package/dist/FormatTime/index.mjs +2 -0
- package/dist/FormatTime-5VitExr-.js +29 -0
- package/dist/{FormatTime/index.js → FormatTime-D1e65Ift.js} +1 -7
- package/dist/Gallery/index.cjs +42 -0
- package/dist/Gallery/index.mjs +36 -0
- package/dist/Gallery-DpUj4vBa.js +63 -0
- package/dist/Gallery-unlPd4cP.js +65 -0
- package/dist/Glimmer/index.cjs +12 -0
- package/dist/Glimmer/index.mjs +5 -0
- package/dist/Glimmer-BatRr0re.js +60 -0
- package/dist/Glimmer-CrUBdCft.js +63 -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-CljTbDPC.js +32 -0
- package/dist/Grid-ucn4dEzC.js +29 -0
- package/dist/Heading/index.cjs +12 -0
- package/dist/Heading/index.mjs +6 -0
- package/dist/Heading-CHhgHTqK.js +49 -0
- package/dist/{Heading-ffc87a2a.js → Heading-DHr7c1qk.js} +3 -7
- package/dist/Icon/index.cjs +9 -0
- package/dist/Icon/index.mjs +3 -0
- package/dist/Icon-D5fducRW.js +34 -0
- package/dist/Icon-DdoTAkld.js +36 -0
- package/dist/InlineLabel/index.cjs +10 -0
- package/dist/InlineLabel/index.mjs +4 -0
- package/dist/InlineLabel-DDGo2FBU.js +18 -0
- package/dist/InlineLabel-HcSK4D2u.js +20 -0
- package/dist/InputAvatar/index.cjs +26 -0
- package/dist/InputAvatar/index.mjs +20 -0
- package/dist/InputAvatar-BZJTWTav.js +49 -0
- package/dist/InputAvatar-DZhlA5C8.js +47 -0
- package/dist/InputDate/index.cjs +34 -0
- package/dist/InputDate/index.mjs +28 -0
- package/dist/InputDate-CXSx4Tec.js +48 -0
- package/dist/{InputDate/index.js → InputDate-DK9Bodgf.js} +6 -31
- package/dist/InputEmail/index.cjs +22 -0
- package/dist/InputEmail/index.mjs +15 -0
- package/dist/InputEmail-BDVbozLm.js +20 -0
- package/dist/InputEmail-DnQPqYoO.js +23 -0
- package/dist/InputFile/index.cjs +23 -0
- package/dist/InputFile/index.mjs +16 -0
- package/dist/InputFile-D0jfvvEn.js +1611 -0
- package/dist/InputFile-DTm2DXuV.js +1608 -0
- package/dist/InputGroup/index.cjs +9 -0
- package/dist/InputGroup/index.mjs +3 -0
- package/dist/InputGroup-BHN6kYWo.js +23 -0
- package/dist/InputGroup-DF2OD4BE.js +25 -0
- package/dist/InputNumber/index.cjs +21 -0
- package/dist/InputNumber/index.mjs +15 -0
- package/dist/InputNumber-BuiI0NjS.js +56 -0
- package/dist/{InputNumber-f1990039.js → InputNumber-CEAhGzoa.js} +2 -6
- package/dist/InputPassword/index.cjs +21 -0
- package/dist/InputPassword/index.mjs +15 -0
- package/dist/InputPassword-C9zbU7TW.js +21 -0
- package/dist/InputPassword-dIafufTk.js +19 -0
- package/dist/InputPhoneNumber/index.cjs +21 -0
- package/dist/InputPhoneNumber/index.mjs +15 -0
- package/dist/{InputPhoneNumber/index.js → InputPhoneNumber-3yqGEkio.js} +7 -27
- package/dist/InputPhoneNumber-B3IdVoQg.js +94 -0
- package/dist/InputText/index.cjs +22 -0
- package/dist/InputText/index.mjs +16 -0
- package/dist/{InputText-375a415c.js → InputText-BY6rCJ8J.js} +4 -8
- package/dist/InputText-Deake8bP.js +96 -0
- package/dist/InputTime/index.cjs +26 -0
- package/dist/InputTime/index.mjs +20 -0
- package/dist/InputTime-CF1r7VJw.js +190 -0
- package/dist/{InputTime/index.js → InputTime-CfhvxPHN.js} +5 -25
- package/dist/InputValidation/index.cjs +14 -0
- package/dist/InputValidation/index.mjs +8 -0
- package/dist/InputValidation-B2tbREku.js +20 -0
- package/dist/InputValidation-DkQrftLf.js +22 -0
- package/dist/InternalChipDismissible-CtJBHNow.js +152 -0
- package/dist/InternalChipDismissible-LI9YWysI.js +157 -0
- package/dist/InternalGridCell-CqMMVQIF.js +37 -0
- package/dist/InternalGridCell-nfn6StO-.js +34 -0
- package/dist/LightBox/index.cjs +26 -0
- package/dist/LightBox/index.mjs +20 -0
- package/dist/LightBox-Ct7jyQHc.js +110 -0
- package/dist/LightBox-D9UAVmOP.js +112 -0
- package/dist/Link/index.cjs +8 -0
- package/dist/Link/index.mjs +2 -0
- package/dist/Link-BUSnU1D-.js +7 -0
- package/dist/Link-iSQySKDo.js +9 -0
- package/dist/List/index.cjs +29 -0
- package/dist/List/index.mjs +22 -0
- package/dist/List-CFDGz1w9.js +186 -0
- package/dist/List-C_6N-iI6.js +189 -0
- package/dist/Markdown/index.cjs +19 -0
- package/dist/Markdown/index.mjs +13 -0
- package/dist/Markdown-BiEMJ-Na.js +19011 -0
- package/dist/Markdown-C-_FwXXZ.js +19013 -0
- package/dist/Menu/index.cjs +18 -0
- package/dist/Menu/index.mjs +12 -0
- package/dist/Menu-WFTc4vmf.js +131 -0
- package/dist/Menu-mU7mDbWw.js +129 -0
- package/dist/Modal/index.cjs +23 -0
- package/dist/Modal/index.mjs +17 -0
- package/dist/Modal-BjDtJC7X.js +61 -0
- package/dist/Modal-P-qjBWDw.js +63 -0
- package/dist/MultiSelect/index.cjs +16 -0
- package/dist/MultiSelect/index.mjs +10 -0
- package/dist/MultiSelect-AHcP0OGk.js +166 -0
- package/dist/MultiSelect-EqsIh1nF.js +164 -0
- package/dist/Option-BPHbm2fZ.js +12 -0
- package/dist/Option-Dve2T456.js +15 -0
- package/dist/Page/index.cjs +32 -0
- package/dist/Page/index.mjs +26 -0
- package/dist/Page-Clsl9cNc.js +58 -0
- package/dist/Page-h5lQD6Ys.js +56 -0
- package/dist/Popover/index.cjs +17 -0
- package/dist/Popover/index.mjs +11 -0
- package/dist/Popover-DZUsK48w.js +50 -0
- package/dist/Popover-bdvs9eBy.js +48 -0
- package/dist/ProgressBar/index.cjs +9 -0
- package/dist/ProgressBar/index.mjs +3 -0
- package/dist/ProgressBar--3qd3zai.js +33 -0
- package/dist/ProgressBar-BwHqrYga.js +31 -0
- package/dist/RadioGroup/index.cjs +12 -0
- package/dist/RadioGroup/index.mjs +5 -0
- package/dist/RadioGroup-CFsetlJ4.js +36 -0
- package/dist/RadioGroup-CK3D5__U.js +39 -0
- package/dist/RecurringSelect/components/index.cjs +15 -0
- package/dist/RecurringSelect/components/index.mjs +6 -0
- package/dist/RecurringSelect/index.cjs +35 -0
- package/dist/RecurringSelect/index.mjs +21 -0
- package/dist/RecurringSelect-2YCQX2Q6.js +71 -0
- package/dist/RecurringSelect-BU1-6dub.js +69 -0
- package/dist/Select/index.cjs +22 -0
- package/dist/Select/index.mjs +15 -0
- package/dist/Spinner/index.cjs +9 -0
- package/dist/Spinner/index.mjs +3 -0
- package/dist/Spinner-B0UBMlC5.js +14 -0
- package/dist/Spinner-DAhdvWZh.js +16 -0
- package/dist/StatusIndicator/index.cjs +8 -0
- package/dist/StatusIndicator/index.mjs +2 -0
- package/dist/StatusIndicator-BOlX887r.js +11 -0
- package/dist/StatusIndicator-Btzgb5tZ.js +9 -0
- package/dist/StatusLabel/index.cjs +11 -0
- package/dist/StatusLabel/index.mjs +5 -0
- package/dist/StatusLabel-B8SIygUI.js +16 -0
- package/dist/StatusLabel-DRZck9sD.js +18 -0
- package/dist/Switch/index.cjs +10 -0
- package/dist/Switch/index.mjs +4 -0
- package/dist/Switch-CMJP3yJv.js +48 -0
- package/dist/Switch-CahAntVM.js +46 -0
- package/dist/Table/index.cjs +17 -0
- package/dist/Table/index.mjs +4 -0
- package/dist/Tabs/index.cjs +11 -0
- package/dist/Tabs/index.mjs +4 -0
- package/dist/Tabs-Bqo51NBU.js +67 -0
- package/dist/Tabs-CoZXSL00.js +70 -0
- package/dist/Text/index.cjs +10 -0
- package/dist/Text/index.mjs +4 -0
- package/dist/Text-B1bIoWYr.js +25 -0
- package/dist/{Text-94b5c2e5.js → Text-B2v3VC_B.js} +2 -6
- package/dist/Toast/index.cjs +16 -0
- package/dist/Toast/index.mjs +10 -0
- package/dist/Tooltip/index.cjs +14 -0
- package/dist/Tooltip/index.mjs +8 -0
- package/dist/Tooltip-BWy3hm6U.js +103 -0
- package/dist/Tooltip-CJL2w6Tj.js +105 -0
- package/dist/Typography/index.cjs +9 -0
- package/dist/Typography/index.mjs +3 -0
- package/dist/Typography-4zopC4KE.js +36 -0
- package/dist/Typography-C2OJA0Ai.js +38 -0
- package/dist/_baseAssignValue-9277BEnY.js +29 -0
- package/dist/_baseAssignValue-CZ7dH3jZ.js +31 -0
- package/dist/_baseEach-DUa3wUU0.js +1073 -0
- package/dist/_baseEach-DutHXgSt.js +1069 -0
- package/dist/_commonjsHelpers-BpF068F9.js +32 -0
- package/dist/_commonjsHelpers-BrnLhuRG.js +36 -0
- package/dist/_defineProperty-BWlKbGrw.js +1326 -0
- package/dist/_defineProperty-D2CYOW2W.js +1306 -0
- package/dist/_getTag-CFReVgbF.js +733 -0
- package/dist/_getTag-CiceuEl8.js +718 -0
- package/dist/_polyfill-node.process-BcnAACbW.js +255 -0
- package/dist/_polyfill-node.process-GNmX79Os.js +258 -0
- package/dist/_setToString-Bi71caQF.js +234 -0
- package/dist/_setToString-DFyFFQFu.js +230 -0
- package/dist/debounce-Co8fMq8q.js +332 -0
- package/dist/debounce-DINXpsd8.js +329 -0
- package/dist/helpers-DKpEJGRK.js +15 -0
- package/dist/helpers-qGD9HtqD.js +17 -0
- package/dist/index-DqBqE4mE.js +1189 -0
- package/dist/index-XXo5QsX8.js +1186 -0
- package/dist/index.cjs +275 -0
- package/dist/index.d.mts +74 -0
- package/dist/index.d.ts +74 -0
- package/dist/index.mjs +162 -0
- package/dist/isObjectLike-BxLPOwZB.js +197 -0
- package/dist/isObjectLike-denQiXs1.js +190 -0
- package/dist/isSymbol-CbzsFbpq.js +35 -0
- package/dist/isSymbol-JSYWlEAg.js +33 -0
- package/dist/noop-C_195KLH.js +26 -0
- package/dist/noop-DGEx0ZLF.js +24 -0
- package/dist/showToast-CPzBq6jE.js +97 -0
- package/dist/showToast-CtAJAgUk.js +99 -0
- package/dist/styles.css +8743 -0
- package/dist/tslib.es6-BJhbHdCW.js +102 -0
- package/dist/tslib.es6-Bd3_MYNG.js +97 -0
- package/dist/useActiveLayout-B08loXfY.js +14 -0
- package/dist/useActiveLayout-B7Dms4v-.js +16 -0
- package/dist/useAssert-CooJfLZx.js +27 -0
- package/dist/useAssert-D7305J5v.js +27 -0
- package/dist/useAtlantisConfig-BqRn-LuQ.js +14 -0
- package/dist/{useAtlantisConfig-ed0bee66.js → useAtlantisConfig-CnUV8oop.js} +2 -2
- package/dist/useBatchSelect-C5xEMqrD.js +36 -0
- package/dist/useBatchSelect-HwBA03k3.js +38 -0
- package/dist/useChildComponent-BjpW2wV9.js +17 -0
- package/dist/useChildComponent-Bp09uQdG.js +15 -0
- package/dist/useFocusTrap-DIF2JjIO.js +74 -0
- package/dist/useFocusTrap-pmlWfXLc.js +74 -0
- package/dist/useInView-4v8j8FbT.js +25 -0
- package/dist/useInView-Cbnh3R5Z.js +25 -0
- package/dist/useIsMounted-BFh5dqlo.js +47 -0
- package/dist/useIsMounted-Ci9Knigd.js +47 -0
- package/dist/useOnKeyDown-C61caZ1f.js +40 -0
- package/dist/useOnKeyDown-DmmUp3io.js +40 -0
- package/dist/useRefocusOnActivator-0eNF7eV7.js +32 -0
- package/dist/useRefocusOnActivator-DK92YmNB.js +32 -0
- package/dist/useResizeObserver-CMUjE-Ai.js +1189 -0
- package/dist/useResizeObserver-vl1y7Akv.js +1192 -0
- package/dist/useResponsiveSizing-5owE3VI9.js +51 -0
- package/dist/useResponsiveSizing-CyY5WpAE.js +49 -0
- package/dist/useSafeLayoutEffect-CWhTKEyh.js +12 -0
- package/dist/useSafeLayoutEffect-LBYfQVIR.js +14 -0
- package/dist/useScrollToActive-Bfxeu0A0.js +591 -0
- package/dist/useScrollToActive-DDLYVBNH.js +597 -0
- package/package.json +409 -9
- package/{rollup.config.js → rollup.config.mjs} +49 -17
- package/dist/AnimatedSwitcher/index.js +0 -13
- package/dist/Autocomplete/index.js +0 -214
- package/dist/Avatar/index.js +0 -15
- package/dist/Avatar-76a799fa.js +0 -78
- package/dist/Banner/index.js +0 -111
- package/dist/Button/index.js +0 -16
- package/dist/Button-0c831b03.js +0 -57
- package/dist/ButtonDismiss/index.js +0 -17
- package/dist/ButtonDismiss-101366b5.js +0 -14
- package/dist/Card/index.js +0 -24
- package/dist/Card-2e03b887.js +0 -93
- package/dist/Checkbox/index.js +0 -18
- package/dist/Checkbox-67a8c60f.js +0 -63
- package/dist/Chip/index.js +0 -42
- package/dist/Chip-6395df79.js +0 -89
- package/dist/Chips/index.js +0 -525
- package/dist/Combobox/index.js +0 -41
- package/dist/Combobox-2f357a96.js +0 -481
- package/dist/ConfirmationModal/index.js +0 -32
- package/dist/Content/index.js +0 -12
- package/dist/Content-e3f7b6fc.js +0 -24
- package/dist/Countdown/index.js +0 -72
- package/dist/DataDump/index.js +0 -37
- package/dist/DataList/index.js +0 -1346
- package/dist/DataTable/index.js +0 -301
- package/dist/DatePicker/index.js +0 -21
- package/dist/DatePicker-3b086bf8.js +0 -144
- package/dist/DescriptionList/index.js +0 -24
- package/dist/Disclosure/index.js +0 -46
- package/dist/Divider/index.js +0 -29
- package/dist/Drawer/index.js +0 -50
- package/dist/Emphasis/index.js +0 -13
- package/dist/Emphasis-f298e0bd.js +0 -19
- package/dist/FeatureSwitch/index.js +0 -71
- package/dist/Flex/index.js +0 -12
- package/dist/Flex-d490c4db.js +0 -38
- package/dist/FormField/index.js +0 -24
- package/dist/FormField-cea3a4f7.js +0 -253
- package/dist/FormatEmail/index.js +0 -23
- package/dist/FormatFile/index.js +0 -37
- package/dist/FormatFile-9cc4c85a.js +0 -162
- package/dist/Gallery/index.js +0 -101
- package/dist/Glimmer/index.js +0 -15
- package/dist/Glimmer-84dee1ed.js +0 -77
- package/dist/Grid/index.js +0 -76
- package/dist/Heading/index.js +0 -15
- package/dist/Icon/index.js +0 -11
- package/dist/Icon-405a216c.js +0 -40
- package/dist/InlineLabel/index.js +0 -13
- package/dist/InlineLabel-79098f71.js +0 -28
- package/dist/InputAvatar/index.js +0 -70
- package/dist/InputEmail/index.js +0 -43
- package/dist/InputFile/index.js +0 -25
- package/dist/InputFile-07c0c738.js +0 -190
- package/dist/InputGroup/index.js +0 -12
- package/dist/InputGroup-8d4fd4eb.js +0 -33
- package/dist/InputNumber/index.js +0 -25
- package/dist/InputPassword/index.js +0 -41
- package/dist/InputText/index.js +0 -26
- package/dist/InputValidation/index.js +0 -17
- package/dist/InputValidation-ba5f81cb.js +0 -29
- package/dist/LightBox/index.js +0 -25
- package/dist/LightBox-ec2c0094.js +0 -121
- package/dist/Link/index.js +0 -15
- package/dist/List/index.js +0 -94
- package/dist/Markdown/index.js +0 -20
- package/dist/Markdown-bee813fc.js +0 -62
- package/dist/Menu/index.js +0 -21
- package/dist/Menu-9477e5e3.js +0 -139
- package/dist/Modal/index.js +0 -26
- package/dist/Modal-03731670.js +0 -74
- package/dist/MultiSelect/index.js +0 -182
- package/dist/Option-085a96d7.js +0 -19
- package/dist/Page/index.js +0 -78
- package/dist/Popover/index.js +0 -65
- package/dist/ProgressBar/index.js +0 -12
- package/dist/ProgressBar-b68edc8f.js +0 -43
- package/dist/RadioGroup/index.js +0 -15
- package/dist/RadioGroup-2a8824e9.js +0 -46
- package/dist/RecurringSelect/index.js +0 -227
- package/dist/Select/index.js +0 -26
- package/dist/Spinner/index.js +0 -12
- package/dist/Spinner-9d8fc7ff.js +0 -24
- package/dist/StatusIndicator/index.js +0 -11
- package/dist/StatusIndicator-7b5258ea.js +0 -18
- package/dist/StatusLabel/index.js +0 -28
- package/dist/Switch/index.js +0 -13
- package/dist/Switch-e9503dbd.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/index.js +0 -17
- package/dist/Tooltip-b9de6e57.js +0 -114
- package/dist/Typography/index.js +0 -12
- package/dist/Typography-8c397b84.js +0 -62
- package/dist/style-inject.es-9d2f5f4e.js +0 -30
- package/dist/tslib.es6-754e2961.js +0 -46
- /package/{.eslintrc.js → .eslintrc.cjs} +0 -0
- /package/dist/{AtlantisContext-64608897.js → AtlantisContext-DmLw77nN.js} +0 -0
|
@@ -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;
|
|
@@ -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,26 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var LightBox = require('../LightBox-D9UAVmOP.js');
|
|
4
|
+
require('react');
|
|
5
|
+
require('framer-motion');
|
|
6
|
+
require('react-dom');
|
|
7
|
+
require('../debounce-Co8fMq8q.js');
|
|
8
|
+
require('../_commonjsHelpers-BrnLhuRG.js');
|
|
9
|
+
require('../isObjectLike-BxLPOwZB.js');
|
|
10
|
+
require('../isSymbol-CbzsFbpq.js');
|
|
11
|
+
require('../useRefocusOnActivator-DK92YmNB.js');
|
|
12
|
+
require('../useOnKeyDown-C61caZ1f.js');
|
|
13
|
+
require('../useFocusTrap-pmlWfXLc.js');
|
|
14
|
+
require('../useIsMounted-Ci9Knigd.js');
|
|
15
|
+
require('../useSafeLayoutEffect-LBYfQVIR.js');
|
|
16
|
+
require('../ButtonDismiss-CnCeo4wT.js');
|
|
17
|
+
require('../Button-noDSqvxX.js');
|
|
18
|
+
require('classnames');
|
|
19
|
+
require('react-router-dom');
|
|
20
|
+
require('../Icon-DdoTAkld.js');
|
|
21
|
+
require('@jobber/design');
|
|
22
|
+
require('../Typography-C2OJA0Ai.js');
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
exports.LightBox = LightBox.LightBox;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export { L as LightBox } from '../LightBox-Ct7jyQHc.js';
|
|
2
|
+
import 'react';
|
|
3
|
+
import 'framer-motion';
|
|
4
|
+
import 'react-dom';
|
|
5
|
+
import '../debounce-DINXpsd8.js';
|
|
6
|
+
import '../_commonjsHelpers-BpF068F9.js';
|
|
7
|
+
import '../isObjectLike-denQiXs1.js';
|
|
8
|
+
import '../isSymbol-JSYWlEAg.js';
|
|
9
|
+
import '../useRefocusOnActivator-0eNF7eV7.js';
|
|
10
|
+
import '../useOnKeyDown-DmmUp3io.js';
|
|
11
|
+
import '../useFocusTrap-DIF2JjIO.js';
|
|
12
|
+
import '../useIsMounted-BFh5dqlo.js';
|
|
13
|
+
import '../useSafeLayoutEffect-CWhTKEyh.js';
|
|
14
|
+
import '../ButtonDismiss-BNe3USW4.js';
|
|
15
|
+
import '../Button-DK1Px9LS.js';
|
|
16
|
+
import 'classnames';
|
|
17
|
+
import 'react-router-dom';
|
|
18
|
+
import '../Icon-D5fducRW.js';
|
|
19
|
+
import '@jobber/design';
|
|
20
|
+
import '../Typography-4zopC4KE.js';
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import React, { useState, useEffect } from 'react';
|
|
2
|
+
import { AnimatePresence, motion } from 'framer-motion';
|
|
3
|
+
import ReactDOM from 'react-dom';
|
|
4
|
+
import { d as debounce } from './debounce-DINXpsd8.js';
|
|
5
|
+
import { u as useRefocusOnActivator_2 } from './useRefocusOnActivator-0eNF7eV7.js';
|
|
6
|
+
import { u as useOnKeyDown_2 } from './useOnKeyDown-DmmUp3io.js';
|
|
7
|
+
import { u as useFocusTrap_2 } from './useFocusTrap-DIF2JjIO.js';
|
|
8
|
+
import { u as useIsMounted_2 } from './useIsMounted-BFh5dqlo.js';
|
|
9
|
+
import { B as ButtonDismiss } from './ButtonDismiss-BNe3USW4.js';
|
|
10
|
+
import { B as Button } from './Button-DK1Px9LS.js';
|
|
11
|
+
|
|
12
|
+
var styles = {"next":"_3JgBCebdbNU-","prev":"JJOBEL7d-10-","lightboxWrapper":"fAep1A-0xIU-","toolbar":"AfUUWErd5S4-","title":"ysUYbBTaORk-","imagesWrapper":"GSOVtN1Y3IU-","overlay":"-V917BdNqSs-","image":"sjwUjzb3a5c-"};
|
|
13
|
+
|
|
14
|
+
/* eslint-disable max-statements */
|
|
15
|
+
const swipeConfidenceThreshold = 10000;
|
|
16
|
+
const swipePower = (offset, velocity) => {
|
|
17
|
+
return Math.abs(offset) * velocity;
|
|
18
|
+
};
|
|
19
|
+
const variants = {
|
|
20
|
+
enter: (direction) => {
|
|
21
|
+
return {
|
|
22
|
+
x: direction > 0 ? 1000 : -1000,
|
|
23
|
+
opacity: 0,
|
|
24
|
+
};
|
|
25
|
+
},
|
|
26
|
+
center: {
|
|
27
|
+
zIndex: 1,
|
|
28
|
+
x: 0,
|
|
29
|
+
opacity: 1,
|
|
30
|
+
},
|
|
31
|
+
exit: (direction) => {
|
|
32
|
+
return {
|
|
33
|
+
zIndex: 0,
|
|
34
|
+
x: direction < 0 ? 1000 : -1000,
|
|
35
|
+
opacity: 0,
|
|
36
|
+
};
|
|
37
|
+
},
|
|
38
|
+
};
|
|
39
|
+
const imageTransition = {
|
|
40
|
+
x: { type: "spring", stiffness: 300, damping: 30 },
|
|
41
|
+
opacity: { duration: 0.2 },
|
|
42
|
+
};
|
|
43
|
+
// A little bit more than the transition's duration
|
|
44
|
+
// We're doing this to prevent a bug from framer-motion
|
|
45
|
+
// https://github.com/framer/motion/issues/1769
|
|
46
|
+
const debounceDuration = 250;
|
|
47
|
+
function LightBox({ open, images, imageIndex = 0, onRequestClose, }) {
|
|
48
|
+
const [currentImageIndex, setCurrentImageIndex] = useState(imageIndex);
|
|
49
|
+
const [direction, setDirection] = useState(0);
|
|
50
|
+
const lightboxRef = useFocusTrap_2(open);
|
|
51
|
+
const debouncedHandleNext = debounce(handleMoveNext, debounceDuration);
|
|
52
|
+
const debouncedHandlePrevious = debounce(handleMovePrevious, debounceDuration);
|
|
53
|
+
const mounted = useIsMounted_2();
|
|
54
|
+
useRefocusOnActivator_2(open);
|
|
55
|
+
useOnKeyDown_2(handleRequestClose, "Escape");
|
|
56
|
+
useOnKeyDown_2(debouncedHandlePrevious, {
|
|
57
|
+
key: "ArrowLeft",
|
|
58
|
+
});
|
|
59
|
+
useOnKeyDown_2(debouncedHandleNext, {
|
|
60
|
+
key: "ArrowRight",
|
|
61
|
+
});
|
|
62
|
+
useEffect(() => {
|
|
63
|
+
setCurrentImageIndex(imageIndex);
|
|
64
|
+
}, [imageIndex, open]);
|
|
65
|
+
const template = (React.createElement(React.Fragment, null, open && (React.createElement("div", { className: styles.lightboxWrapper, tabIndex: 0, "aria-label": "Lightbox", key: "Lightbox", ref: lightboxRef },
|
|
66
|
+
React.createElement("div", { className: styles.toolbar },
|
|
67
|
+
React.createElement("span", { className: styles.title }, images[currentImageIndex].title),
|
|
68
|
+
React.createElement(ButtonDismiss, { ariaLabel: "Close", onClick: handleRequestClose })),
|
|
69
|
+
React.createElement("div", { className: styles.imagesWrapper },
|
|
70
|
+
React.createElement(AnimatePresence, { initial: false },
|
|
71
|
+
React.createElement(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 }))),
|
|
72
|
+
images.length > 1 && (React.createElement(React.Fragment, null,
|
|
73
|
+
React.createElement(PreviousButton, { onClick: debouncedHandlePrevious }),
|
|
74
|
+
React.createElement(NextButton, { onClick: debouncedHandleNext }))),
|
|
75
|
+
React.createElement("div", { className: styles.toolbar }, images[currentImageIndex].caption),
|
|
76
|
+
React.createElement("div", { className: styles.overlay, onClick: handleRequestClose })))));
|
|
77
|
+
return mounted.current
|
|
78
|
+
? ReactDOM.createPortal(template, document.body)
|
|
79
|
+
: template;
|
|
80
|
+
function handleMovePrevious() {
|
|
81
|
+
setDirection(-1);
|
|
82
|
+
setCurrentImageIndex((currentImageIndex + images.length - 1) % images.length);
|
|
83
|
+
}
|
|
84
|
+
function handleMoveNext() {
|
|
85
|
+
setDirection(1);
|
|
86
|
+
setCurrentImageIndex((currentImageIndex + 1) % images.length);
|
|
87
|
+
}
|
|
88
|
+
function handleRequestClose() {
|
|
89
|
+
onRequestClose({ lastPosition: currentImageIndex });
|
|
90
|
+
}
|
|
91
|
+
function handleOnDragEnd(event, { offset, velocity }) {
|
|
92
|
+
const swipe = swipePower(offset.x, velocity.x);
|
|
93
|
+
if (swipe < -swipeConfidenceThreshold) {
|
|
94
|
+
handleMoveNext();
|
|
95
|
+
}
|
|
96
|
+
else if (swipe > swipeConfidenceThreshold) {
|
|
97
|
+
handleMovePrevious();
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
function PreviousButton({ onClick }) {
|
|
102
|
+
return (React.createElement("div", { className: styles.prev },
|
|
103
|
+
React.createElement(Button, { size: "large", variation: "subtle", type: "secondary", icon: "arrowLeft", ariaLabel: "Previous image", onClick: onClick })));
|
|
104
|
+
}
|
|
105
|
+
function NextButton({ onClick }) {
|
|
106
|
+
return (React.createElement("div", { className: styles.next },
|
|
107
|
+
React.createElement(Button, { size: "large", variation: "subtle", type: "secondary", icon: "arrowRight", ariaLabel: "Next image", onClick: onClick })));
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export { LightBox as L };
|
|
@@ -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-Co8fMq8q.js');
|
|
7
|
+
var useRefocusOnActivator = require('./useRefocusOnActivator-DK92YmNB.js');
|
|
8
|
+
var useOnKeyDown = require('./useOnKeyDown-C61caZ1f.js');
|
|
9
|
+
var useFocusTrap = require('./useFocusTrap-pmlWfXLc.js');
|
|
10
|
+
var useIsMounted = require('./useIsMounted-Ci9Knigd.js');
|
|
11
|
+
var ButtonDismiss = require('./ButtonDismiss-CnCeo4wT.js');
|
|
12
|
+
var Button = require('./Button-noDSqvxX.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;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
function Link({ url, children, ariaLabel, ariaExpanded, external = false, }) {
|
|
4
|
+
return (React.createElement("a", Object.assign({ href: url }, (external && { target: "_blank" }), (ariaLabel && { "aria-label": ariaLabel }), (ariaExpanded && { "aria-expanded": ariaExpanded })), children));
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export { Link as L };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var React = require('react');
|
|
4
|
+
|
|
5
|
+
function Link({ url, children, ariaLabel, ariaExpanded, external = false, }) {
|
|
6
|
+
return (React.createElement("a", Object.assign({ href: url }, (external && { target: "_blank" }), (ariaLabel && { "aria-label": ariaLabel }), (ariaExpanded && { "aria-expanded": ariaExpanded })), children));
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
exports.Link = Link;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var List = require('../List-C_6N-iI6.js');
|
|
4
|
+
require('react');
|
|
5
|
+
require('classnames');
|
|
6
|
+
require('../_baseEach-DUa3wUU0.js');
|
|
7
|
+
require('../_defineProperty-BWlKbGrw.js');
|
|
8
|
+
require('../_getTag-CFReVgbF.js');
|
|
9
|
+
require('../isObjectLike-BxLPOwZB.js');
|
|
10
|
+
require('../_commonjsHelpers-BrnLhuRG.js');
|
|
11
|
+
require('../isSymbol-CbzsFbpq.js');
|
|
12
|
+
require('../_baseAssignValue-CZ7dH3jZ.js');
|
|
13
|
+
require('../Icon-DdoTAkld.js');
|
|
14
|
+
require('@jobber/design');
|
|
15
|
+
require('../Text-B2v3VC_B.js');
|
|
16
|
+
require('../Typography-C2OJA0Ai.js');
|
|
17
|
+
require('../Heading-DHr7c1qk.js');
|
|
18
|
+
require('../useAtlantisConfig-CnUV8oop.js');
|
|
19
|
+
require('../useSafeLayoutEffect-LBYfQVIR.js');
|
|
20
|
+
require('../Markdown-C-_FwXXZ.js');
|
|
21
|
+
require('../Emphasis-BeDR-wzW.js');
|
|
22
|
+
require('../Content-Cr-SNhIb.js');
|
|
23
|
+
require('../index-DqBqE4mE.js');
|
|
24
|
+
require('../_polyfill-node.process-GNmX79Os.js');
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
exports.List = List.List;
|
|
29
|
+
exports.ListItem = List.ListItem;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export { L as List, a as ListItem } from '../List-CFDGz1w9.js';
|
|
2
|
+
import 'react';
|
|
3
|
+
import 'classnames';
|
|
4
|
+
import '../_baseEach-DutHXgSt.js';
|
|
5
|
+
import '../_defineProperty-D2CYOW2W.js';
|
|
6
|
+
import '../_getTag-CiceuEl8.js';
|
|
7
|
+
import '../isObjectLike-denQiXs1.js';
|
|
8
|
+
import '../_commonjsHelpers-BpF068F9.js';
|
|
9
|
+
import '../isSymbol-JSYWlEAg.js';
|
|
10
|
+
import '../_baseAssignValue-9277BEnY.js';
|
|
11
|
+
import '../Icon-D5fducRW.js';
|
|
12
|
+
import '@jobber/design';
|
|
13
|
+
import '../Text-B1bIoWYr.js';
|
|
14
|
+
import '../Typography-4zopC4KE.js';
|
|
15
|
+
import '../Heading-CHhgHTqK.js';
|
|
16
|
+
import '../useAtlantisConfig-BqRn-LuQ.js';
|
|
17
|
+
import '../useSafeLayoutEffect-CWhTKEyh.js';
|
|
18
|
+
import '../Markdown-BiEMJ-Na.js';
|
|
19
|
+
import '../Emphasis-BSYW8CIV.js';
|
|
20
|
+
import '../Content-q0mmpOCB.js';
|
|
21
|
+
import '../index-XXo5QsX8.js';
|
|
22
|
+
import '../_polyfill-node.process-BcnAACbW.js';
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import classnames from 'classnames';
|
|
3
|
+
import { _ as _baseEach, a as _baseIteratee, g as get } from './_baseEach-DutHXgSt.js';
|
|
4
|
+
import { g as getDefaultExportFromCjs } from './_commonjsHelpers-BpF068F9.js';
|
|
5
|
+
import { _ as _baseAssignValue } from './_baseAssignValue-9277BEnY.js';
|
|
6
|
+
import { b as isArray_1 } from './_getTag-CiceuEl8.js';
|
|
7
|
+
import { I as Icon } from './Icon-D5fducRW.js';
|
|
8
|
+
import { T as Text } from './Text-B1bIoWYr.js';
|
|
9
|
+
import { H as Heading } from './Heading-CHhgHTqK.js';
|
|
10
|
+
import { T as Typography } from './Typography-4zopC4KE.js';
|
|
11
|
+
import { M as Markdown } from './Markdown-BiEMJ-Na.js';
|
|
12
|
+
import { E as Emphasis } from './Emphasis-BSYW8CIV.js';
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* A specialized version of `baseAggregator` for arrays.
|
|
16
|
+
*
|
|
17
|
+
* @private
|
|
18
|
+
* @param {Array} [array] The array to iterate over.
|
|
19
|
+
* @param {Function} setter The function to set `accumulator` values.
|
|
20
|
+
* @param {Function} iteratee The iteratee to transform keys.
|
|
21
|
+
* @param {Object} accumulator The initial aggregated object.
|
|
22
|
+
* @returns {Function} Returns `accumulator`.
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
function arrayAggregator$1(array, setter, iteratee, accumulator) {
|
|
26
|
+
var index = -1,
|
|
27
|
+
length = array == null ? 0 : array.length;
|
|
28
|
+
|
|
29
|
+
while (++index < length) {
|
|
30
|
+
var value = array[index];
|
|
31
|
+
setter(accumulator, value, iteratee(value), array);
|
|
32
|
+
}
|
|
33
|
+
return accumulator;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
var _arrayAggregator = arrayAggregator$1;
|
|
37
|
+
|
|
38
|
+
var baseEach = _baseEach;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Aggregates elements of `collection` on `accumulator` with keys transformed
|
|
42
|
+
* by `iteratee` and values set by `setter`.
|
|
43
|
+
*
|
|
44
|
+
* @private
|
|
45
|
+
* @param {Array|Object} collection The collection to iterate over.
|
|
46
|
+
* @param {Function} setter The function to set `accumulator` values.
|
|
47
|
+
* @param {Function} iteratee The iteratee to transform keys.
|
|
48
|
+
* @param {Object} accumulator The initial aggregated object.
|
|
49
|
+
* @returns {Function} Returns `accumulator`.
|
|
50
|
+
*/
|
|
51
|
+
function baseAggregator$1(collection, setter, iteratee, accumulator) {
|
|
52
|
+
baseEach(collection, function(value, key, collection) {
|
|
53
|
+
setter(accumulator, value, iteratee(value), collection);
|
|
54
|
+
});
|
|
55
|
+
return accumulator;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
var _baseAggregator = baseAggregator$1;
|
|
59
|
+
|
|
60
|
+
var arrayAggregator = _arrayAggregator,
|
|
61
|
+
baseAggregator = _baseAggregator,
|
|
62
|
+
baseIteratee = _baseIteratee,
|
|
63
|
+
isArray = isArray_1;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Creates a function like `_.groupBy`.
|
|
67
|
+
*
|
|
68
|
+
* @private
|
|
69
|
+
* @param {Function} setter The function to set accumulator values.
|
|
70
|
+
* @param {Function} [initializer] The accumulator object initializer.
|
|
71
|
+
* @returns {Function} Returns the new aggregator function.
|
|
72
|
+
*/
|
|
73
|
+
function createAggregator$1(setter, initializer) {
|
|
74
|
+
return function(collection, iteratee) {
|
|
75
|
+
var func = isArray(collection) ? arrayAggregator : baseAggregator,
|
|
76
|
+
accumulator = initializer ? initializer() : {};
|
|
77
|
+
|
|
78
|
+
return func(collection, setter, baseIteratee(iteratee), accumulator);
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
var _createAggregator = createAggregator$1;
|
|
83
|
+
|
|
84
|
+
var baseAssignValue = _baseAssignValue,
|
|
85
|
+
createAggregator = _createAggregator;
|
|
86
|
+
|
|
87
|
+
/** Used for built-in method references. */
|
|
88
|
+
var objectProto = Object.prototype;
|
|
89
|
+
|
|
90
|
+
/** Used to check objects for own properties. */
|
|
91
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Creates an object composed of keys generated from the results of running
|
|
95
|
+
* each element of `collection` thru `iteratee`. The order of grouped values
|
|
96
|
+
* is determined by the order they occur in `collection`. The corresponding
|
|
97
|
+
* value of each key is an array of elements responsible for generating the
|
|
98
|
+
* key. The iteratee is invoked with one argument: (value).
|
|
99
|
+
*
|
|
100
|
+
* @static
|
|
101
|
+
* @memberOf _
|
|
102
|
+
* @since 0.1.0
|
|
103
|
+
* @category Collection
|
|
104
|
+
* @param {Array|Object} collection The collection to iterate over.
|
|
105
|
+
* @param {Function} [iteratee=_.identity] The iteratee to transform keys.
|
|
106
|
+
* @returns {Object} Returns the composed aggregate object.
|
|
107
|
+
* @example
|
|
108
|
+
*
|
|
109
|
+
* _.groupBy([6.1, 4.2, 6.3], Math.floor);
|
|
110
|
+
* // => { '4': [4.2], '6': [6.1, 6.3] }
|
|
111
|
+
*
|
|
112
|
+
* // The `_.property` iteratee shorthand.
|
|
113
|
+
* _.groupBy(['one', 'two', 'three'], 'length');
|
|
114
|
+
* // => { '3': ['one', 'two'], '5': ['three'] }
|
|
115
|
+
*/
|
|
116
|
+
var groupBy = createAggregator(function(result, value, key) {
|
|
117
|
+
if (hasOwnProperty.call(result, key)) {
|
|
118
|
+
result[key].push(value);
|
|
119
|
+
} else {
|
|
120
|
+
baseAssignValue(result, key, [value]);
|
|
121
|
+
}
|
|
122
|
+
});
|
|
123
|
+
|
|
124
|
+
var groupBy_1 = groupBy;
|
|
125
|
+
|
|
126
|
+
var groupBy$1 = /*@__PURE__*/getDefaultExportFromCjs(groupBy_1);
|
|
127
|
+
|
|
128
|
+
var styles$1 = {"list":"u853Ql4cj50-","item":"ig9l6LfEgwo-","section":"KIYTQdrufzY-"};
|
|
129
|
+
|
|
130
|
+
var sectionStyles = {"sectionHeader":"LUlooG82UJA-","greyBlue":"_4LVpgNq-SLM-","green":"_0QhWokyE9PY-","blue":"J8wB3qqOlBc-","archived":"Ujqj17pKDIE-","orange":"_0lNxLGXhrfY-","red":"_4qPymF0CAAE-","teal":"kKYNLBSu9IQ-"};
|
|
131
|
+
|
|
132
|
+
var styles = {"action":"XPLf4Jp6feU-","hoverable":"RseHYbVm4MA-","icon":"d1-zQvxPH-M-","info":"_-58VuZf1TtM-","amount":"wHB5zXYWW3E-","isActive":"C4DznaxLKiw-","truncate":"Brob-IpVv4o-"};
|
|
133
|
+
|
|
134
|
+
function ListItem({ caption, content, icon, iconColor, id, isActive, onClick, title, url, value, }) {
|
|
135
|
+
const actionClasses = classnames(styles.action, isActive && styles.isActive, (onClick || url) && styles.hoverable);
|
|
136
|
+
const Wrapper = url ? "a" : "button";
|
|
137
|
+
const buttonProps = Object.assign({}, (Wrapper === "button" && { role: "button", type: "button" }));
|
|
138
|
+
return (React.createElement(Wrapper, Object.assign({ id: id.toString(), className: actionClasses, href: url, onClick: onClick }, buttonProps),
|
|
139
|
+
icon && (React.createElement("div", { className: styles.icon },
|
|
140
|
+
React.createElement(Icon, { name: icon, color: iconColor }))),
|
|
141
|
+
React.createElement("div", { className: styles.info },
|
|
142
|
+
title && React.createElement(Heading, { level: 5 }, title),
|
|
143
|
+
React.createElement(Description, { content: content }),
|
|
144
|
+
caption && (React.createElement(Text, { variation: "subdued" },
|
|
145
|
+
React.createElement(Typography, { element: "span", size: "small", emphasisType: "italic" }, caption)))),
|
|
146
|
+
value && (React.createElement("div", { className: styles.amount },
|
|
147
|
+
React.createElement(Text, null,
|
|
148
|
+
React.createElement(Emphasis, { variation: "bold" }, value))))));
|
|
149
|
+
}
|
|
150
|
+
function Description({ content }) {
|
|
151
|
+
if (content instanceof Array) {
|
|
152
|
+
return (React.createElement(React.Fragment, null, content.map((item, i) => (React.createElement(Text, { key: i },
|
|
153
|
+
React.createElement("span", { className: styles.truncate },
|
|
154
|
+
React.createElement(Markdown, { content: item, basicUsage: true })))))));
|
|
155
|
+
}
|
|
156
|
+
else {
|
|
157
|
+
return (React.createElement(Text, null,
|
|
158
|
+
React.createElement("span", { className: styles.truncate },
|
|
159
|
+
React.createElement(Markdown, { content: content, basicUsage: true }))));
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
function List({ items }) {
|
|
164
|
+
const isSectioned = items.some(item => item.section);
|
|
165
|
+
if (isSectioned) {
|
|
166
|
+
return React.createElement(SectionedList, { items: items });
|
|
167
|
+
}
|
|
168
|
+
else {
|
|
169
|
+
return React.createElement(DisplayList, { items: items });
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
function DisplayList({ items }) {
|
|
173
|
+
return (React.createElement("ul", { className: styles$1.list }, items.map(item => (React.createElement("li", { key: item.id, className: styles$1.item },
|
|
174
|
+
React.createElement(ListItem, Object.assign({}, item)))))));
|
|
175
|
+
}
|
|
176
|
+
function SectionedList({ items }) {
|
|
177
|
+
const sectionedItems = groupBy$1(items, item => get(item, "section", "Other"));
|
|
178
|
+
const sectionHeaderClassNames = classnames(sectionStyles.sectionHeader);
|
|
179
|
+
return (React.createElement("ul", { className: styles$1.list }, Object.keys(sectionedItems).map(sectionName => (React.createElement("li", { key: sectionName, className: styles$1.section },
|
|
180
|
+
React.createElement("div", { className: sectionHeaderClassNames },
|
|
181
|
+
React.createElement(Typography, { element: "h4", fontWeight: "bold", size: "large" }, sectionName)),
|
|
182
|
+
React.createElement("ul", { className: styles$1.list }, sectionedItems[sectionName].map(item => (React.createElement("li", { key: item.id, className: styles$1.item },
|
|
183
|
+
React.createElement(ListItem, Object.assign({}, item)))))))))));
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
export { List as L, ListItem as a };
|