@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
package/dist/Divider/index.js
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var React = require('react');
|
|
6
|
-
var classnames = require('classnames');
|
|
7
|
-
var styleInject_es = require('../style-inject.es-9d2f5f4e.js');
|
|
8
|
-
|
|
9
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
10
|
-
|
|
11
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
12
|
-
var classnames__default = /*#__PURE__*/_interopDefaultLegacy(classnames);
|
|
13
|
-
|
|
14
|
-
var css_248z = ".dH7SqeSo70A- {\n --divider-width: var(--border-base);\n --divider-color: var(--color-border);\n margin: 0;\n padding: 0;\n border: none;\n}\n\n._07xjw8ykfvg- {\n --divider-width: var(--border-thick);\n opacity: 0.875;\n}\n\n.TGD22T-KP78- {\n --divider-width: var(--border-thicker);\n opacity: 0.625;\n}\n\n.UUndaiRIryU- {\n --divider-width: var(--border-thickest);\n opacity: 0.375;\n}\n\n.HzWBc8FoucI- {\n height: calc(16px / 16);\n height: var(--space-minuscule);\n border-bottom: var(--divider-width) solid var(--divider-color);\n}\n\n.vu46ZKcGBWM- {\n width: var(--space-miniscule);\n height: auto;\n border-right: var(--divider-width) solid var(--divider-color);\n}\n";
|
|
15
|
-
var styles = {"divider":"dH7SqeSo70A-","large":"_07xjw8ykfvg-","larger":"TGD22T-KP78-","largest":"UUndaiRIryU-","horizontal":"HzWBc8FoucI-","vertical":"vu46ZKcGBWM-"};
|
|
16
|
-
styleInject_es.styleInject(css_248z);
|
|
17
|
-
|
|
18
|
-
function Divider({ size = "base", direction = "horizontal", }) {
|
|
19
|
-
const className = classnames__default["default"](styles.divider, {
|
|
20
|
-
[styles.large]: size === "large",
|
|
21
|
-
[styles.larger]: size === "larger",
|
|
22
|
-
[styles.largest]: size === "largest",
|
|
23
|
-
[styles.horizontal]: direction == "horizontal",
|
|
24
|
-
[styles.vertical]: direction == "vertical",
|
|
25
|
-
});
|
|
26
|
-
return React__default["default"].createElement("div", { className: className, role: "none presentation" });
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
exports.Divider = Divider;
|
package/dist/Drawer/index.js
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var React = require('react');
|
|
6
|
-
var classnames = require('classnames');
|
|
7
|
-
var styleInject_es = require('../style-inject.es-9d2f5f4e.js');
|
|
8
|
-
var Heading = require('../Heading-ffc87a2a.js');
|
|
9
|
-
var ButtonDismiss = require('../ButtonDismiss-101366b5.js');
|
|
10
|
-
require('../Typography-8c397b84.js');
|
|
11
|
-
require('../useAtlantisConfig-ed0bee66.js');
|
|
12
|
-
require('@jobber/hooks/useSafeLayoutEffect');
|
|
13
|
-
require('../Button-0c831b03.js');
|
|
14
|
-
require('react-router-dom');
|
|
15
|
-
require('../Icon-405a216c.js');
|
|
16
|
-
require('@jobber/design');
|
|
17
|
-
|
|
18
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
19
|
-
|
|
20
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
21
|
-
var classnames__default = /*#__PURE__*/_interopDefaultLegacy(classnames);
|
|
22
|
-
|
|
23
|
-
var css_248z$1 = ":root {\n --drawer-width: calc(var(--space-base) * 17.5);\n --drawer--base-padding: var(--space-base);\n}\n\n.jobber-retheme {\n --drawer--base-padding: var(--space-large);\n}\n\n.IJAyrFb2GpA- {\n display: none;\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: 1001;\n z-index: var(--elevation-modal);\n overflow: hidden;\n\n /* SPECIAL CASE:\n Drawer is primarily used in Jobber Online and is currently used in a layout\n that rearranges at 640px. For compatibility, this is hardcoded here\n rather than using the breakpoint custom properties.\n DO NOT COPY THIS - USE THE BREAKPOINTS DEFINED IN THE @jobber/design package!\n */\n}\n\n@media (min-width: 640px), print {\n\n.IJAyrFb2GpA- {\n position: relative;\n z-index: auto;\n width: calc((16px * 1) * 17.5);\n width: calc(calc(16px * 1) * 17.5);\n width: var(--drawer-width);\n}\n }\n\n@media (min-width: 1080px) {\n\n.IJAyrFb2GpA- {\n --drawer-width: calc(var(--space-base) * 26.25);\n}\n }\n\n@media (--large-screens-and-up) {\n\n.IJAyrFb2GpA- {\n --drawer-width: calc(var(--space-base) * 26.25);\n}\n }\n\n.jobber-retheme .IJAyrFb2GpA- {\n box-shadow: 0px calc(16px / 16) calc(16px / 4) 0px\n rgba(0, 0, 0, 0.1),\n 0px calc(16px / 4) 12px 0px rgba(0, 0, 0, 0.05);\n box-shadow: var(--shadow-base);\n border-top-left-radius: calc(16px / 8);\n border-top-left-radius: var(--radius-base);\n}\n\n.Hsmk6Pg14PQ- {\n display: -ms-flexbox;\n display: flex;\n position: relative;\n width: 100%;\n height: 100%;\n box-sizing: border-box;\n border: calc(16px / 16) solid rgb(217, 223, 225);\n border: var(--border-base) solid var(--color-border);\n background-color: rgba(255, 255, 255, 1);\n background-color: var(--color-surface);\n -ms-flex-direction: column;\n flex-direction: column;\n}\n\n.jobber-retheme .Hsmk6Pg14PQ- {\n border-top-left-radius: calc(16px / 8);\n border-top-left-radius: var(--radius-base);\n}\n\n.DwF3Q9EMPvQ- {\n display: -ms-flexbox;\n display: flex;\n}\n\n.TcdyXiTbnMU- {\n display: -ms-flexbox;\n display: flex;\n padding: calc(16px / 2) calc(16px * 1);\n padding: var(--space-small) var(--drawer--base-padding);\n background-color: rgb(238, 240, 242);\n background-color: var(--color-surface--background);\n -ms-flex-pack: justify;\n justify-content: space-between;\n -ms-flex-align: center;\n align-items: center;\n}\n\n.jobber-retheme .TcdyXiTbnMU- {\n padding: calc(16px * 1) calc(16px * 1) 0 calc(16px * 1);\n padding: var(--space-base) var(--space-base) 0 var(--drawer--base-padding);\n background-color: transparent;\n}\n\n.srL7xqEzwhM- {\n display: -ms-flexbox;\n display: flex;\n width: 100%;\n height: 100%;\n -ms-flex-direction: row;\n flex-direction: row;\n overflow-y: auto;\n}\n\n.p6-yqttoIJI- {\n width: 100%;\n}\n\n/* Adjust `Content` components public padding to match the cards */\n\n.p6-yqttoIJI- > * {\n --public-content--padding: var(--drawer--base-padding);\n}\n\n/* Remove the nested `Content` components public padding */\n\n.p6-yqttoIJI- > * > * {\n --public-content--padding: 0;\n}\n";
|
|
24
|
-
var styles$1 = {"container":"IJAyrFb2GpA-","drawer":"Hsmk6Pg14PQ-","open":"DwF3Q9EMPvQ-","header":"TcdyXiTbnMU-","contentScroll":"srL7xqEzwhM-","content":"p6-yqttoIJI-"};
|
|
25
|
-
styleInject_es.styleInject(css_248z$1);
|
|
26
|
-
|
|
27
|
-
function Drawer({ title, children, open = true, onRequestClose, id, }) {
|
|
28
|
-
const drawerClassNames = classnames__default["default"](styles$1.container, open && styles$1.open);
|
|
29
|
-
return (React__default["default"].createElement("aside", { className: drawerClassNames, "data-testid": "drawer-container", "aria-label": title, "aria-hidden": !open, id: id },
|
|
30
|
-
React__default["default"].createElement("div", { className: styles$1.drawer },
|
|
31
|
-
React__default["default"].createElement(Header, { title: title, onRequestClose: onRequestClose }),
|
|
32
|
-
React__default["default"].createElement("div", { className: styles$1.contentScroll },
|
|
33
|
-
React__default["default"].createElement("div", { className: styles$1.content }, children)))));
|
|
34
|
-
}
|
|
35
|
-
function Header({ title, onRequestClose }) {
|
|
36
|
-
return (React__default["default"].createElement("div", { className: styles$1.header, "data-testid": "drawer-header" },
|
|
37
|
-
React__default["default"].createElement(Heading.Heading, { level: 3 }, title),
|
|
38
|
-
React__default["default"].createElement(ButtonDismiss.ButtonDismiss, { onClick: onRequestClose, ariaLabel: `Close ${title || "drawer"}` })));
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
var css_248z = "._50Jq09W07gg- {\n display: grid;\n width: 100%;\n height: 100%;\n overflow: hidden;\n grid-template-columns: minmax(0, 1fr) minmax(-webkit-min-content, -webkit-max-content);\n grid-template-columns: minmax(0, 1fr) minmax(min-content, max-content);\n grid-template-rows: 1fr;\n}\n";
|
|
42
|
-
var styles = {"drawerGrid":"_50Jq09W07gg-"};
|
|
43
|
-
styleInject_es.styleInject(css_248z);
|
|
44
|
-
|
|
45
|
-
function DrawerGrid({ children }) {
|
|
46
|
-
return React__default["default"].createElement("div", { className: styles.drawerGrid }, children);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
exports.Drawer = Drawer;
|
|
50
|
-
exports.DrawerGrid = DrawerGrid;
|
package/dist/Emphasis/index.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var Emphasis = require('../Emphasis-f298e0bd.js');
|
|
6
|
-
require('react');
|
|
7
|
-
require('../Typography-8c397b84.js');
|
|
8
|
-
require('classnames');
|
|
9
|
-
require('../style-inject.es-9d2f5f4e.js');
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
exports.Emphasis = Emphasis.Emphasis;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var React = require('react');
|
|
4
|
-
var Typography = require('./Typography-8c397b84.js');
|
|
5
|
-
|
|
6
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
7
|
-
|
|
8
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
9
|
-
|
|
10
|
-
function Emphasis({ variation, children }) {
|
|
11
|
-
const variationMap = {
|
|
12
|
-
bold: { element: "b", fontWeight: "bold" },
|
|
13
|
-
italic: { element: "em", emphasisType: "italic" },
|
|
14
|
-
highlight: { element: "strong", emphasisType: "highlight" },
|
|
15
|
-
};
|
|
16
|
-
return React__default["default"].createElement(Typography.Typography, Object.assign({}, variationMap[variation]), children);
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
exports.Emphasis = Emphasis;
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var React = require('react');
|
|
6
|
-
var framerMotion = require('framer-motion');
|
|
7
|
-
var classnames = require('classnames');
|
|
8
|
-
var styleInject_es = require('../style-inject.es-9d2f5f4e.js');
|
|
9
|
-
var Heading = require('../Heading-ffc87a2a.js');
|
|
10
|
-
var Text = require('../Text-94b5c2e5.js');
|
|
11
|
-
var Content = require('../Content-e3f7b6fc.js');
|
|
12
|
-
var Switch = require('../Switch-e9503dbd.js');
|
|
13
|
-
var Button = require('../Button-0c831b03.js');
|
|
14
|
-
var Emphasis = require('../Emphasis-f298e0bd.js');
|
|
15
|
-
var Markdown = require('../Markdown-bee813fc.js');
|
|
16
|
-
require('../Typography-8c397b84.js');
|
|
17
|
-
require('../useAtlantisConfig-ed0bee66.js');
|
|
18
|
-
require('@jobber/hooks/useSafeLayoutEffect');
|
|
19
|
-
require('react-router-dom');
|
|
20
|
-
require('../Icon-405a216c.js');
|
|
21
|
-
require('@jobber/design');
|
|
22
|
-
require('react-markdown');
|
|
23
|
-
|
|
24
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
25
|
-
|
|
26
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
27
|
-
var classnames__default = /*#__PURE__*/_interopDefaultLegacy(classnames);
|
|
28
|
-
|
|
29
|
-
var css_248z = ".-sVnhIK4hZw- {\n display: -ms-flexbox;\n display: flex;\n}\n\n.ZJaXf-cIFgU- {\n -ms-flex: 1 1 auto;\n flex: 1 1 auto;\n -ms-flex-item-align: center;\n align-self: center;\n padding-right: calc(16px * 1);\n padding-right: var(--space-base);\n transition: opacity 200ms;\n transition: opacity var(--timing-base);\n}\n\n.OA-s1YYLMMM- {\n -ms-flex: 0 0 auto;\n flex: 0 0 auto;\n -ms-flex-item-align: start;\n align-self: flex-start;\n position: relative;\n}\n\n.lN90IIewHq8- {\n position: absolute;\n top: 100%;\n width: 100%;\n margin-top: calc(16px / 8);\n margin-top: var(--space-smallest);\n text-align: center;\n}\n\n.mW56hvBHqPM- {\n opacity: 0.5;\n}\n\n.QfZjM5S-Ls0- {\n opacity: 1;\n}\n";
|
|
30
|
-
var styles = {"container":"-sVnhIK4hZw-","content":"ZJaXf-cIFgU-","action":"OA-s1YYLMMM-","savedIndicator":"lN90IIewHq8-","featureContent":"mW56hvBHqPM-","enabled":"QfZjM5S-Ls0-"};
|
|
31
|
-
styleInject_es.styleInject(css_248z);
|
|
32
|
-
|
|
33
|
-
function FeatureSwitch({ children, description, disabled = false, enabled, externalLink = false, onEdit, onSwitch, hasSaveIndicator = false, title, }) {
|
|
34
|
-
const [savedIndicator, setSavedIndicator] = React.useState(false);
|
|
35
|
-
const featureContentClassnames = classnames__default["default"](styles.featureContent, styles.content, enabled && styles.enabled);
|
|
36
|
-
shouldShowSavedIndicator();
|
|
37
|
-
return (React__default["default"].createElement(Content.Content, null,
|
|
38
|
-
React__default["default"].createElement("div", { className: styles.container },
|
|
39
|
-
React__default["default"].createElement("div", { className: styles.content },
|
|
40
|
-
React__default["default"].createElement(Content.Content, null,
|
|
41
|
-
title && React__default["default"].createElement(Heading.Heading, { level: 4 }, title),
|
|
42
|
-
description && (React__default["default"].createElement(Text.Text, null,
|
|
43
|
-
React__default["default"].createElement(Markdown.Markdown, { content: description, basicUsage: true, externalLink: externalLink }))))),
|
|
44
|
-
onSwitch && (React__default["default"].createElement("div", { className: styles.action },
|
|
45
|
-
React__default["default"].createElement(Switch.Switch, { value: enabled, onChange: onSwitch, ariaLabel: description, disabled: disabled }),
|
|
46
|
-
React__default["default"].createElement(framerMotion.AnimatePresence, null, hasSaveIndicator && savedIndicator && (React__default["default"].createElement(framerMotion.motion.div, { className: styles.savedIndicator, initial: { y: -4, opacity: 0 }, animate: { y: 0, opacity: 1 }, exit: { y: -4, opacity: 0 }, transition: {
|
|
47
|
-
delay: 0.2,
|
|
48
|
-
type: "spring",
|
|
49
|
-
damping: 20,
|
|
50
|
-
stiffness: 300,
|
|
51
|
-
}, onAnimationComplete: handleAnimationComplete },
|
|
52
|
-
React__default["default"].createElement(Text.Text, { variation: "success" },
|
|
53
|
-
React__default["default"].createElement(Emphasis.Emphasis, { variation: "italic" }, "Saved")))))))),
|
|
54
|
-
(children || onEdit) && (React__default["default"].createElement("div", { className: styles.container },
|
|
55
|
-
children && (React__default["default"].createElement("div", { className: featureContentClassnames }, children)),
|
|
56
|
-
onEdit && (React__default["default"].createElement("div", { className: styles.action },
|
|
57
|
-
React__default["default"].createElement(Button.Button, { label: "Edit", type: "tertiary", onClick: onEdit })))))));
|
|
58
|
-
function shouldShowSavedIndicator() {
|
|
59
|
-
// Check if the component is mounted
|
|
60
|
-
const [didMount, setDidMount] = React.useState(false);
|
|
61
|
-
React.useEffect(() => setDidMount(true), []);
|
|
62
|
-
React.useEffect(() => {
|
|
63
|
-
didMount && hasSaveIndicator && setSavedIndicator(true);
|
|
64
|
-
}, [enabled]);
|
|
65
|
-
}
|
|
66
|
-
function handleAnimationComplete() {
|
|
67
|
-
setSavedIndicator(false);
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
exports.FeatureSwitch = FeatureSwitch;
|
package/dist/Flex/index.js
DELETED
package/dist/Flex-d490c4db.js
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var React = require('react');
|
|
4
|
-
var classnames = require('classnames');
|
|
5
|
-
var styleInject_es = require('./style-inject.es-9d2f5f4e.js');
|
|
6
|
-
|
|
7
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
|
-
|
|
9
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
10
|
-
var classnames__default = /*#__PURE__*/_interopDefaultLegacy(classnames);
|
|
11
|
-
|
|
12
|
-
var css_248z = "._8VpnrMKmsqQ- {\n display: grid;\n /* If this gets wrapped in a flex container, it should take the remaining space */\n -ms-flex: 1;\n flex: 1;\n}\n\n.ooF1YfV4Usc- {\n gap: calc(16px / 8);\n gap: var(--space-smallest);\n}\n\n.ppCZfXq-Kqc- {\n gap: calc(16px / 4);\n gap: var(--space-smaller);\n}\n\n.tElkBalXH3g- {\n gap: calc(16px / 2);\n gap: var(--space-small);\n}\n\n._4u3OwUKxxbg- {\n gap: calc(16px * 1);\n gap: var(--space-base);\n}\n\n.RL7CJla0AAI- {\n gap: calc(16px * 1.5);\n gap: var(--space-large);\n}\n\n.fV4cvFYkhgo- {\n gap: 0;\n}\n\n._04xVVjZgr-0- {\n -ms-flex-align: start;\n align-items: start;\n}\n\n.Nc3zrqHHYSg- {\n -ms-flex-align: center;\n align-items: center;\n}\n\n.qA-v50wBX1U- {\n -ms-flex-align: end;\n align-items: end;\n}\n";
|
|
13
|
-
var styles = {"flexible":"_8VpnrMKmsqQ-","smallestGap":"ooF1YfV4Usc-","smallerGap":"ppCZfXq-Kqc-","smallGap":"tElkBalXH3g-","baseGap":"_4u3OwUKxxbg-","largeGap":"RL7CJla0AAI-","noneGap":"fV4cvFYkhgo-","startAlign":"_04xVVjZgr-0-","centerAlign":"Nc3zrqHHYSg-","endAlign":"qA-v50wBX1U-"};
|
|
14
|
-
styleInject_es.styleInject(css_248z);
|
|
15
|
-
|
|
16
|
-
function Flex({ align = "center", children, direction = "row", gap = "base", template, }) {
|
|
17
|
-
return (React__default["default"].createElement("div", { className: classnames__default["default"](styles.flexible, {
|
|
18
|
-
[styles[`${gap}Gap`]]: Boolean(gap),
|
|
19
|
-
[styles[`${align}Align`]]: Boolean(align),
|
|
20
|
-
}), style: generateGridStylesFromTemplate(direction, template) }, children));
|
|
21
|
-
}
|
|
22
|
-
function generateGridStylesFromTemplate(direction, layoutTemplate) {
|
|
23
|
-
const containerStyles = {};
|
|
24
|
-
const templateKeys = {
|
|
25
|
-
row: "gridTemplateColumns",
|
|
26
|
-
column: "gridTemplateRows",
|
|
27
|
-
};
|
|
28
|
-
const templateValues = {
|
|
29
|
-
grow: "1fr",
|
|
30
|
-
shrink: "max-content",
|
|
31
|
-
};
|
|
32
|
-
containerStyles[templateKeys[direction]] = layoutTemplate
|
|
33
|
-
.map(key => templateValues[key])
|
|
34
|
-
.join(" ");
|
|
35
|
-
return containerStyles;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
exports.Flex = Flex;
|
package/dist/FormField/index.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var FormField = require('../FormField-cea3a4f7.js');
|
|
6
|
-
require('../tslib.es6-754e2961.js');
|
|
7
|
-
require('react');
|
|
8
|
-
require('react-hook-form');
|
|
9
|
-
require('../style-inject.es-9d2f5f4e.js');
|
|
10
|
-
require('classnames');
|
|
11
|
-
require('@jobber/hooks/useShowClear');
|
|
12
|
-
require('../Button-0c831b03.js');
|
|
13
|
-
require('react-router-dom');
|
|
14
|
-
require('../Icon-405a216c.js');
|
|
15
|
-
require('@jobber/design');
|
|
16
|
-
require('../Typography-8c397b84.js');
|
|
17
|
-
require('../Text-94b5c2e5.js');
|
|
18
|
-
require('../InputValidation-ba5f81cb.js');
|
|
19
|
-
require('framer-motion');
|
|
20
|
-
require('../Spinner-9d8fc7ff.js');
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
exports.FormField = FormField.FormField;
|
|
@@ -1,253 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var tslib_es6 = require('./tslib.es6-754e2961.js');
|
|
4
|
-
var React = require('react');
|
|
5
|
-
var reactHookForm = require('react-hook-form');
|
|
6
|
-
var styleInject_es = require('./style-inject.es-9d2f5f4e.js');
|
|
7
|
-
var classnames = require('classnames');
|
|
8
|
-
var useShowClear = require('@jobber/hooks/useShowClear');
|
|
9
|
-
var Button = require('./Button-0c831b03.js');
|
|
10
|
-
var Icon = require('./Icon-405a216c.js');
|
|
11
|
-
var Text = require('./Text-94b5c2e5.js');
|
|
12
|
-
var InputValidation = require('./InputValidation-ba5f81cb.js');
|
|
13
|
-
var Spinner = require('./Spinner-9d8fc7ff.js');
|
|
14
|
-
|
|
15
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
16
|
-
|
|
17
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
18
|
-
var classnames__default = /*#__PURE__*/_interopDefaultLegacy(classnames);
|
|
19
|
-
|
|
20
|
-
var css_248z$1 = ":root {\n /**\n * These `--public-field` properties are used in other components such\n * as InputGroup, therefore they must stay on :root\n **/\n --public-field--top-left-radius: var(--radius-base);\n --public-field--top-right-radius: var(--radius-base);\n --public-field--bottom-left-radius: var(--radius-base);\n --public-field--bottom-right-radius: var(--radius-base);\n\n --field--placeholder-color: var(--color-greyBlue--light);\n --field--value-color: var(--color-heading);\n --field--border-color: var(--color-border);\n}\n\n.geR7qBhrMfk- {\n width: 100%;\n}\n\n/**\n * Wrapper\n **/\n\n.nPGhTEEzsoU- {\n --field--placeholder-offset: 50%;\n --field--placeholder-transform: -50%;\n\n --field--textAlign: left;\n\n --field--height: var(--space-largest);\n\n --field--padding-top: calc(var(--space-base) - var(--space-smallest));\n --field--padding-bottom: calc(var(--space-base) - var(--space-smallest));\n --field--padding-left: var(--space-base);\n --field--padding-right: var(--space-base);\n\n --field--value-lineHeight: calc(var(--base-unit) * 1.25);\n\n --field--background-color: var(--color-surface);\n\n --field--base-elevation: var(--elevation-base);\n --field--label-elevation: calc(var(--field--base-elevation) + 1);\n --field--postfix-elevation: calc(var(--field--base-elevation) - 1);\n --field--postfix-action-elevation: calc(var(--field--base-elevation) + 2);\n\n display: -ms-flexbox;\n\n display: flex;\n width: 100%;\n height: calc(16px * 3);\n height: var(--field--height);\n border: calc(16px / 16) solid rgb(217, 223, 225);\n border: var(--border-base) solid var(--field--border-color);\n border-radius: calc(16px / 8);\n border-radius: var(--radius-base);\n border-top-right-radius: calc(16px / 8);\n border-top-right-radius: var(--public-field--top-right-radius);\n border-bottom-right-radius: calc(16px / 8);\n border-bottom-right-radius: var(--public-field--bottom-right-radius);\n border-bottom-left-radius: calc(16px / 8);\n border-bottom-left-radius: var(--public-field--bottom-left-radius);\n border-top-left-radius: calc(16px / 8);\n border-top-left-radius: var(--public-field--top-left-radius);\n color: rgb(1, 41, 57);\n color: var(--field--value-color);\n font-size: calc((16px * 1) * 0.875);\n font-size: calc(calc(16px * 1) * 0.875);\n font-size: var(--typography--fontSize-base);\n background-color: rgba(255, 255, 255, 1);\n background-color: var(--field--background-color);\n}\n\n.nPGhTEEzsoU- * {\n box-sizing: border-box;\n}\n\n.nPGhTEEzsoU-:focus-within {\n position: relative;\n z-index: var(--field--base-elevation);\n box-shadow: 0px 0px 0px calc(16px / 8) rgba(255, 255, 255, 1),\n 0px 0px 0px calc(16px / 4) rgb(147, 161, 169);\n box-shadow: var(--shadow-focus);\n}\n\n.YhserUiOeFE-:not(:focus-within) input {\n color: var(--field--background-color);\n -webkit-text-fill-color: var(--field--background-color);\n}\n\n.YhserUiOeFE-:focus-within,\n.UIZq8hTmJVU- {\n --field--placeholder-color: var(--color-text--secondary);\n --field--placeholder-offset: var(--space-smallest);\n --field--placeholder-transform: 0;\n --field--padding-top: calc(var(--space-base) + var(--space-smaller));\n --field--padding-bottom: var(--space-small);\n}\n\n.YhserUiOeFE-.Ku8sWS0mLew-:focus-within,\n.UIZq8hTmJVU-.Ku8sWS0mLew- {\n --field--padding-top: calc(var(--space-large) + var(--space-smaller));\n}\n\n.nPGhTEEzsoU-.mgPacJ6Z71Y- {\n --field--placeholder-offset: 0;\n --field--placeholder-transform: 0;\n height: auto;\n min-height: auto;\n}\n\n.gJ-15M615eY-,\n.gJ-15M615eY-:focus-within {\n --field--border-color: var(--color-critical);\n position: relative;\n}\n\n._1rsTLm5GwcM- {\n --field--placeholder-color: var(--color-disabled);\n --field--value-color: var(--color-disabled);\n --field--background-color: var(--color-surface--background);\n --field--border-color: var(--color-disabled--secondary);\n}\n\n/* override iOS default styling for disabled input */\n\n._1rsTLm5GwcM- :disabled {\n -webkit-text-fill-color: rgb(1, 41, 57);\n -webkit-text-fill-color: var(--field--value-color);\n opacity: 1;\n}\n\n.o8D-H-lKfDk- {\n --field--padding-left: calc(var(--space-base) - var(--space-smaller));\n --field--padding-right: calc(var(--space-base) - var(--space-smaller));\n --field--padding-top: var(--space-small);\n --field--padding-bottom: var(--space-small);\n --field--height: calc(var(--space-larger) + var(--space-smaller));\n}\n\n.Ku8sWS0mLew- {\n --field--padding-left: var(--space-large);\n --field--padding-right: var(--space-large);\n --field--height: calc(var(--space-extravagant));\n}\n\n._5Hu2F3cBvng- {\n display: inline-block;\n width: auto;\n}\n\n.s1WLQs6ffD8- {\n --field--textAlign: center;\n}\n\n.a2r4QheWYIA- {\n --field--textAlign: right;\n}\n\n/**\n * The custom property --formField-maxLength is getting defined inside the\n * component.\n */\n\n.KdAnXK1gClo- {\n width: calc(\n (16px * var(--formField-maxLength)) + var(--field--padding-left) +\n var(--field--padding-right)\n );\n width: calc(\n (var(--base-unit) * var(--formField-maxLength)) + var(--field--padding-left) +\n var(--field--padding-right)\n );\n}\n\n/**\n * Input Wrapper\n **/\n\n.iQFhpFYnz-8- {\n display: -ms-flexbox;\n display: flex;\n -ms-flex: 1;\n flex: 1;\n position: relative;\n /* Ensure input stays with the rest of the element stack */\n z-index: 0;\n z-index: var(--elevation-default);\n}\n\n.Yo2Wi9dpa-Y- {\n position: relative;\n -ms-flex: 1;\n flex: 1;\n}\n\n/**\n * Input\n **/\n\n.LSHPV7PwOTg- {\n position: relative;\n z-index: var(--field--base-elevation);\n width: 100%;\n height: 100%;\n padding-top: var(--field--padding-top);\n padding-bottom: var(--field--padding-bottom);\n padding-left: var(--field--padding-left);\n padding-right: var(--field--padding-right);\n border: none;\n border-radius: 0;\n color: inherit;\n font-family: inherit;\n font-size: inherit;\n line-height: var(--field--value-lineHeight);\n text-align: var(--field--textAlign);\n background: transparent;\n -webkit-appearance: none;\n appearance: none;\n}\n\n.LSHPV7PwOTg-:focus {\n outline: none;\n}\n\n.mgPacJ6Z71Y- .LSHPV7PwOTg- {\n resize: vertical;\n}\n\n.i31GQXcMz54- .LSHPV7PwOTg- {\n z-index: var(--field--label-elevation);\n}\n\n.LSHPV7PwOTg-:-webkit-autofill,\n.LSHPV7PwOTg-:-webkit-autofill:hover,\n.LSHPV7PwOTg-:-webkit-autofill:focus,\n.LSHPV7PwOTg-:-webkit-autofill:active {\n -webkit-box-shadow: 0 0 0 30px rgba(255, 255, 255, 1) inset !important;\n -webkit-box-shadow: 0 0 0 30px var(--color-surface) inset !important;\n}\n\n/**\n * Label\n **/\n\n._3xREbTN5pPg- {\n position: absolute;\n top: var(--field--placeholder-offset);\n z-index: var(--field--label-elevation);\n width: 100%;\n padding-left: var(--field--padding-left);\n padding-right: var(--field--padding-right);\n overflow: hidden;\n color: rgb(147, 161, 169);\n color: var(--field--placeholder-color);\n line-height: var(--field--value-lineHeight);\n text-align: var(--field--textAlign);\n text-overflow: ellipsis;\n white-space: nowrap;\n pointer-events: none;\n -webkit-transform: translateY(var(--field--placeholder-transform));\n transform: translateY(var(--field--placeholder-transform));\n transition: all 100ms;\n transition: all var(--timing-quick);\n}\n\n.mgPacJ6Z71Y- ._3xREbTN5pPg- {\n /* Changes the width so that the scrollbar on the textarea doesn't get cut off */\n width: calc(100% - var(--field--padding-right));\n padding-top: var(--field--padding-top);\n /* Remove padding on right to make use of the entire width */\n padding-right: 0;\n -webkit-transform: translateY(var(--field--placeholder-transform));\n transform: translateY(var(--field--placeholder-transform));\n}\n\n.UIZq8hTmJVU- ._3xREbTN5pPg-,\n.YhserUiOeFE-:focus-within ._3xREbTN5pPg- {\n font-size: calc((16px * 1) * 0.75);\n font-size: calc(calc(16px * 1) * 0.75);\n font-size: var(--typography--fontSize-small);\n}\n\n.mgPacJ6Z71Y-.UIZq8hTmJVU- ._3xREbTN5pPg- {\n padding-top: calc(16px / 8);\n padding-top: var(--space-smallest);\n background-color: var(--field--background-color);\n}\n\n.o8D-H-lKfDk-.UIZq8hTmJVU- ._3xREbTN5pPg-,\n.YhserUiOeFE-.o8D-H-lKfDk-.UIZq8hTmJVU-:focus-within ._3xREbTN5pPg- {\n display: none;\n}\n\n/**This is valid cascading order **/\n\n/* stylelint-disable-next-line no-descending-specificity */\n\n.Ku8sWS0mLew-.UIZq8hTmJVU- ._3xREbTN5pPg-,\n.YhserUiOeFE-.Ku8sWS0mLew-.UIZq8hTmJVU-:focus-within ._3xREbTN5pPg- {\n padding-top: calc(16px / 2);\n padding-top: var(--space-small);\n}\n\n/**\n * Postfix\n **/\n\n.VtnAk1HYMMk- {\n position: absolute;\n top: 50%;\n right: calc(16px * 1);\n right: var(--space-base);\n z-index: var(--field--postfix-elevation);\n -webkit-transform: translateY(-50%);\n transform: translateY(-50%);\n}\n\n/**\n * Affix\n **/\n\n.uPLklxvtfJw- {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n -ms-flex-pack: center;\n justify-content: center;\n margin: 0 calc(var(--field--padding-left) * -1) 0 0;\n padding: 0 var(--field--padding-right) 0 var(--field--padding-left);\n}\n\n@supports (aspect-ratio: 1/1) {\n .uPLklxvtfJw- {\n /*\n * disabling property-no-unknown here as this is a real property\n * that stylelint just doesn't know about. We may be able to remove\n * this when we update our stylelint to not care about IE11.\n */\n /* stylelint-disable-next-line property-no-unknown */\n aspect-ratio: 1/1;\n padding: 0;\n }\n}\n\n.uPLklxvtfJw-.pYqqDvv57JE- {\n margin: 0 0 0 calc(var(--field--padding-right) * -1);\n}\n\n.uPLklxvtfJw-.eI44oQpuVlk- {\n position: relative;\n z-index: var(--field--postfix-action-elevation);\n}\n\n.jO8P2iSHilM- {\n display: -ms-flexbox;\n display: flex;\n margin: 0 calc((var(--field--padding-left) - calc(16px / 8)) * -1) 0 0;\n margin: 0 calc((var(--field--padding-left) - var(--space-smallest)) * -1) 0 0;\n padding: 0 0 0 var(--field--padding-left);\n line-height: var(--field--value-lineHeight);\n -ms-flex-align: center;\n align-items: center;\n -ms-flex: 0 0 auto;\n flex: 0 0 auto;\n}\n\n.jO8P2iSHilM-.pYqqDvv57JE- {\n margin: 0 0 0 calc((var(--field--padding-left) - calc(16px / 8)) * -1);\n margin: 0 0 0 calc((var(--field--padding-left) - var(--space-smallest)) * -1);\n padding: 0 var(--field--padding-left) 0 0;\n}\n\n.UIZq8hTmJVU-:not(.o8D-H-lKfDk-) .jO8P2iSHilM- {\n padding-top: var(--field--padding-top);\n padding-bottom: var(--field--padding-bottom);\n}\n\n._2GfgzNnLOSI- {\n margin-top: calc(16px / 4);\n margin-top: var(--space-smaller);\n}\n";
|
|
21
|
-
var styles$1 = {"container":"geR7qBhrMfk-","wrapper":"nPGhTEEzsoU-","timeInputLabel":"YhserUiOeFE-","miniLabel":"UIZq8hTmJVU-","large":"Ku8sWS0mLew-","textarea":"mgPacJ6Z71Y-","invalid":"gJ-15M615eY-","disabled":"_1rsTLm5GwcM-","small":"o8D-H-lKfDk-","inline":"_5Hu2F3cBvng-","center":"s1WLQs6ffD8-","right":"a2r4QheWYIA-","maxLength":"KdAnXK1gClo-","inputWrapper":"iQFhpFYnz-8-","childrenWrapper":"Yo2Wi9dpa-Y-","input":"LSHPV7PwOTg-","select":"i31GQXcMz54-","label":"_3xREbTN5pPg-","postfix":"VtnAk1HYMMk-","affixIcon":"uPLklxvtfJw-","suffix":"pYqqDvv57JE-","hasAction":"eI44oQpuVlk-","affixLabel":"jO8P2iSHilM-","description":"_2GfgzNnLOSI-"};
|
|
22
|
-
styleInject_es.styleInject(css_248z$1);
|
|
23
|
-
|
|
24
|
-
function AffixLabel({ label, variation = "prefix", labelRef, }) {
|
|
25
|
-
const affixLabelClass = classnames__default["default"](styles$1.affixLabel, {
|
|
26
|
-
[styles$1.suffix]: variation === "suffix",
|
|
27
|
-
});
|
|
28
|
-
return (React__default["default"].createElement("div", { ref: labelRef, className: affixLabelClass }, label));
|
|
29
|
-
}
|
|
30
|
-
function AffixIcon({ icon, onClick, ariaLabel, variation = "prefix", size, }) {
|
|
31
|
-
const affixIconClass = classnames__default["default"](styles$1.affixIcon, {
|
|
32
|
-
[styles$1.suffix]: variation === "suffix",
|
|
33
|
-
[styles$1.hasAction]: onClick,
|
|
34
|
-
});
|
|
35
|
-
const iconSize = size === "small" ? "small" : "base";
|
|
36
|
-
if (!icon)
|
|
37
|
-
return React__default["default"].createElement(React__default["default"].Fragment, null);
|
|
38
|
-
return (React__default["default"].createElement("div", { className: affixIconClass }, onClick ? (React__default["default"].createElement(Button.Button
|
|
39
|
-
/**
|
|
40
|
-
* We can cast the ariaLabel here as a `Suffix`
|
|
41
|
-
* requires an ariaLabel if there is an action
|
|
42
|
-
*/
|
|
43
|
-
, {
|
|
44
|
-
/**
|
|
45
|
-
* We can cast the ariaLabel here as a `Suffix`
|
|
46
|
-
* requires an ariaLabel if there is an action
|
|
47
|
-
*/
|
|
48
|
-
ariaLabel: ariaLabel, icon: icon, onClick: onClick, variation: "subtle", type: "tertiary", size: iconSize })) : (React__default["default"].createElement(Icon.Icon, { name: icon, size: iconSize, color: "greyBlue" }))));
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
function FormFieldDescription({ id, description, }) {
|
|
52
|
-
return (React__default["default"].createElement("div", { id: id, className: styles$1.description },
|
|
53
|
-
React__default["default"].createElement(Text.Text, { size: "small", variation: "subdued" }, description)));
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
var css_248z = "._07kZJ5ltI5E- {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n padding-left: calc(16px / 2);\n padding-left: var(--space-small);\n}\n\n.t1fFX8kDJh8- {\n display: -ms-flexbox;\n display: flex;\n position: relative;\n right: calc(16px / 2);\n right: var(--space-small);\n z-index: 1002;\n z-index: var(--elevation-tooltip);\n width: calc(16px * 1.5);\n width: var(--space-large);\n height: calc(16px * 1.5);\n height: var(--space-large);\n padding: 0;\n border: none;\n border-radius: 100%;\n border-radius: var(--radius-circle);\n background-color: rgb(238, 240, 242);\n background-color: var(--color-surface--background);\n cursor: pointer;\n -ms-flex-pack: center;\n justify-content: center;\n -ms-flex-align: center;\n align-items: center;\n}\n\n.t1fFX8kDJh8-:focus {\n outline: none;\n}\n\n.t1fFX8kDJh8-:hover,\n.t1fFX8kDJh8-:focus-visible {\n outline: none;\n background-color: rgb(238, 240, 242);\n background-color: var(--color-surface--background);\n}\n\n.t1fFX8kDJh8-:focus-visible {\n box-shadow: 0px 0px 0px calc(16px / 8) rgba(255, 255, 255, 1),\n 0px 0px 0px calc(16px / 4) rgb(147, 161, 169);\n box-shadow: var(--shadow-focus);\n}\n";
|
|
57
|
-
var styles = {"clearContainer":"_07kZJ5ltI5E-","clearInput":"t1fFX8kDJh8-"};
|
|
58
|
-
styleInject_es.styleInject(css_248z);
|
|
59
|
-
|
|
60
|
-
function ClearAction({ onClick }) {
|
|
61
|
-
return (React__default["default"].createElement("div", { className: styles.clearContainer },
|
|
62
|
-
React__default["default"].createElement("button", { className: styles.clearInput, onClick: onClick, type: "button", "aria-label": "Clear input" },
|
|
63
|
-
React__default["default"].createElement(Icon.Icon, { name: "remove", size: "small" }))));
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
function FormFieldWrapper({ align, description, descriptionIdentifier, placeholder, value, children, invalid, error, size, prefix, suffix, max, maxLength, type, disabled, inline, identifier, clearable, onClear, }) {
|
|
67
|
-
const wrapperClasses = classnames__default["default"](styles$1.wrapper, size && styles$1[size], align && styles$1[align], {
|
|
68
|
-
[styles$1.miniLabel]: (placeholder && value !== "") ||
|
|
69
|
-
(placeholder && type === "select") ||
|
|
70
|
-
// Naively assume that if the the type is tel, it is the InputPhoneNumber
|
|
71
|
-
(placeholder && type === "tel"),
|
|
72
|
-
[styles$1.textarea]: type === "textarea",
|
|
73
|
-
[styles$1.select]: type === "select",
|
|
74
|
-
[styles$1.invalid]: invalid !== null && invalid !== void 0 ? invalid : error,
|
|
75
|
-
[styles$1.disabled]: disabled,
|
|
76
|
-
[styles$1.maxLength]: maxLength,
|
|
77
|
-
[styles$1.timeInputLabel]: placeholder && type === "time" && placeholder && value === "",
|
|
78
|
-
});
|
|
79
|
-
const containerClasses = classnames__default["default"](styles$1.container, {
|
|
80
|
-
[styles$1.inline]: inline,
|
|
81
|
-
});
|
|
82
|
-
const wrapperInlineStyle = {
|
|
83
|
-
["--formField-maxLength"]: maxLength || max,
|
|
84
|
-
};
|
|
85
|
-
const prefixRef = React.useRef();
|
|
86
|
-
const suffixRef = React.useRef();
|
|
87
|
-
const [labelStyle, setLabelStyle] = React.useState({
|
|
88
|
-
paddingLeft: undefined,
|
|
89
|
-
paddingRight: undefined,
|
|
90
|
-
});
|
|
91
|
-
React.useEffect(() => {
|
|
92
|
-
setLabelStyle(getAffixPaddding);
|
|
93
|
-
}, [value]);
|
|
94
|
-
const [focused, setFocused] = React.useState(false);
|
|
95
|
-
const showClear = useShowClear.useShowClear({
|
|
96
|
-
clearable,
|
|
97
|
-
multiline: type === "textarea",
|
|
98
|
-
focused,
|
|
99
|
-
hasValue: Boolean(value),
|
|
100
|
-
disabled,
|
|
101
|
-
});
|
|
102
|
-
return (React__default["default"].createElement("div", { className: containerClasses, onFocus: () => setFocused(true), onBlur: () => setFocused(false) },
|
|
103
|
-
React__default["default"].createElement("div", { className: wrapperClasses, style: wrapperInlineStyle, "data-testid": "Form-Field-Wrapper" },
|
|
104
|
-
(prefix === null || prefix === void 0 ? void 0 : prefix.icon) && React__default["default"].createElement(AffixIcon, Object.assign({}, prefix, { size: size })),
|
|
105
|
-
React__default["default"].createElement("div", { className: styles$1.inputWrapper },
|
|
106
|
-
placeholder && (React__default["default"].createElement("label", { className: styles$1.label, htmlFor: identifier, style: (prefixRef === null || prefixRef === void 0 ? void 0 : prefixRef.current) || (suffixRef === null || suffixRef === void 0 ? void 0 : suffixRef.current)
|
|
107
|
-
? labelStyle
|
|
108
|
-
: undefined }, placeholder)),
|
|
109
|
-
(prefix === null || prefix === void 0 ? void 0 : prefix.label) && React__default["default"].createElement(AffixLabel, Object.assign({}, prefix, { labelRef: prefixRef })),
|
|
110
|
-
React__default["default"].createElement("div", { className: styles$1.childrenWrapper }, children),
|
|
111
|
-
(suffix === null || suffix === void 0 ? void 0 : suffix.label) && (React__default["default"].createElement(AffixLabel, Object.assign({}, suffix, { labelRef: suffixRef, variation: "suffix" })))),
|
|
112
|
-
showClear && React__default["default"].createElement(ClearAction, { onClick: onClear }),
|
|
113
|
-
(suffix === null || suffix === void 0 ? void 0 : suffix.icon) && (React__default["default"].createElement(AffixIcon, Object.assign({}, suffix, { variation: "suffix", size: size })))),
|
|
114
|
-
description && !inline && (React__default["default"].createElement(FormFieldDescription, { id: descriptionIdentifier, description: description })),
|
|
115
|
-
error && !inline && React__default["default"].createElement(InputValidation.InputValidation, { message: error })));
|
|
116
|
-
function getAffixPaddding() {
|
|
117
|
-
const hasValue = value !== "";
|
|
118
|
-
const newPadding = {
|
|
119
|
-
paddingLeft: undefined,
|
|
120
|
-
paddingRight: undefined,
|
|
121
|
-
};
|
|
122
|
-
// Naively assume that if the the type is tel, it is the InputPhoneNumber
|
|
123
|
-
if (type === "tel")
|
|
124
|
-
return newPadding;
|
|
125
|
-
if ((prefixRef === null || prefixRef === void 0 ? void 0 : prefixRef.current) && !hasValue) {
|
|
126
|
-
const { offsetWidth } = prefixRef.current;
|
|
127
|
-
newPadding.paddingLeft = offset(offsetWidth);
|
|
128
|
-
}
|
|
129
|
-
if ((suffixRef === null || suffixRef === void 0 ? void 0 : suffixRef.current) && !hasValue) {
|
|
130
|
-
const { offsetWidth } = suffixRef.current;
|
|
131
|
-
newPadding.paddingRight = offset(offsetWidth);
|
|
132
|
-
}
|
|
133
|
-
function offset(width) {
|
|
134
|
-
return `calc(${width}px + var(--space-smallest)`;
|
|
135
|
-
}
|
|
136
|
-
return newPadding;
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
function FormFieldPostFix({ variation }) {
|
|
141
|
-
return (React__default["default"].createElement("span", { className: styles$1.postfix }, variation === "select" ? (React__default["default"].createElement(Icon.Icon, { name: "arrowDown" })) : (React__default["default"].createElement(Spinner.Spinner, { size: "small" }))));
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
// Added 13th statement to accommodate getErrorMessage function
|
|
145
|
-
/*eslint max-statements: ["error", 13]*/
|
|
146
|
-
function FormField(props) {
|
|
147
|
-
var _a, _b;
|
|
148
|
-
const { actionsRef, autocomplete = true, children, defaultValue, description, disabled, inputRef, inline, keyboard, max, maxLength, min, name, readonly, rows, loading, type = "text", validations, value, onChange, onEnter, onFocus, onBlur, onValidation, onKeyUp, clearable = "never", } = props;
|
|
149
|
-
const { control, formState: { errors }, setValue, watch, } = reactHookForm.useFormContext() != undefined
|
|
150
|
-
? reactHookForm.useFormContext()
|
|
151
|
-
: // If there isn't a Form Context being provided, get a form for this field.
|
|
152
|
-
reactHookForm.useForm({ mode: "onTouched" });
|
|
153
|
-
const [identifier] = React.useState(React.useId());
|
|
154
|
-
const [descriptionIdentifier] = React.useState(`descriptionUUID--${React.useId()}`);
|
|
155
|
-
/**
|
|
156
|
-
* Generate a name if one is not supplied, this is the name
|
|
157
|
-
* that will be used for react-hook-form and not neccessarily
|
|
158
|
-
* attached to the DOM
|
|
159
|
-
*/
|
|
160
|
-
const [controlledName] = React.useState(name ? name : `generatedName--${identifier}`);
|
|
161
|
-
React.useEffect(() => {
|
|
162
|
-
if (value != undefined) {
|
|
163
|
-
setValue(controlledName, value);
|
|
164
|
-
}
|
|
165
|
-
}, [value, watch(controlledName)]);
|
|
166
|
-
React.useImperativeHandle(actionsRef, () => ({
|
|
167
|
-
setValue: newValue => {
|
|
168
|
-
setValue(controlledName, newValue, { shouldValidate: true });
|
|
169
|
-
},
|
|
170
|
-
}));
|
|
171
|
-
const message = (_a = errors[controlledName]) === null || _a === void 0 ? void 0 : _a.message;
|
|
172
|
-
const error = getErrorMessage();
|
|
173
|
-
React.useEffect(() => handleValidation(), [error]);
|
|
174
|
-
return (React__default["default"].createElement(reactHookForm.Controller, { control: control, name: controlledName, rules: Object.assign({}, validations), defaultValue: (_b = value !== null && value !== void 0 ? value : defaultValue) !== null && _b !== void 0 ? _b : "", render: (_a) => {
|
|
175
|
-
var _b = _a.field, { onChange: onControllerChange, onBlur: onControllerBlur, name: controllerName } = _b, rest = tslib_es6.__rest(_b, ["onChange", "onBlur", "name"]);
|
|
176
|
-
const fieldProps = Object.assign(Object.assign(Object.assign({}, rest), { id: identifier, className: styles$1.input, name: (validations || name) && controllerName, disabled: disabled, readOnly: readonly, inputMode: keyboard, onChange: handleChange, onBlur: handleBlur, onFocus: handleFocus }), (description &&
|
|
177
|
-
!inline && { "aria-describedby": descriptionIdentifier }));
|
|
178
|
-
const textFieldProps = Object.assign(Object.assign({}, fieldProps), { onKeyDown: handleKeyDown });
|
|
179
|
-
return (React__default["default"].createElement(FormFieldWrapper, Object.assign({}, props, { value: rest.value, error: error, identifier: identifier, descriptionIdentifier: descriptionIdentifier, clearable: clearable, onClear: handleClear }), renderField()));
|
|
180
|
-
function renderField() {
|
|
181
|
-
switch (type) {
|
|
182
|
-
case "select":
|
|
183
|
-
return (React__default["default"].createElement(React__default["default"].Fragment, null,
|
|
184
|
-
React__default["default"].createElement("select", Object.assign({}, fieldProps), children),
|
|
185
|
-
React__default["default"].createElement(FormFieldPostFix, { variation: "select" })));
|
|
186
|
-
case "textarea":
|
|
187
|
-
return (React__default["default"].createElement("textarea", Object.assign({}, textFieldProps, { rows: rows, ref: inputRef })));
|
|
188
|
-
default:
|
|
189
|
-
return (React__default["default"].createElement(React__default["default"].Fragment, null,
|
|
190
|
-
React__default["default"].createElement("input", Object.assign({}, textFieldProps, { autoComplete: setAutocomplete(autocomplete), type: type, maxLength: maxLength, max: max, min: min, ref: inputRef, onKeyUp: onKeyUp })),
|
|
191
|
-
loading && React__default["default"].createElement(FormFieldPostFix, { variation: "spinner" }),
|
|
192
|
-
children));
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
function handleClear() {
|
|
196
|
-
var _a;
|
|
197
|
-
handleBlur();
|
|
198
|
-
setValue(controlledName, undefined, { shouldValidate: true });
|
|
199
|
-
onChange && onChange("");
|
|
200
|
-
(_a = inputRef === null || inputRef === void 0 ? void 0 : inputRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
201
|
-
}
|
|
202
|
-
function handleChange(event) {
|
|
203
|
-
let newValue;
|
|
204
|
-
newValue = event.currentTarget.value;
|
|
205
|
-
if (type === "number" && newValue.length > 0) {
|
|
206
|
-
newValue = parseFloat(newValue);
|
|
207
|
-
}
|
|
208
|
-
onChange && onChange(newValue, event);
|
|
209
|
-
onControllerChange(event);
|
|
210
|
-
}
|
|
211
|
-
function handleKeyDown(event) {
|
|
212
|
-
if (!onEnter)
|
|
213
|
-
return;
|
|
214
|
-
if (event.key !== "Enter")
|
|
215
|
-
return;
|
|
216
|
-
if (event.shiftKey || event.ctrlKey)
|
|
217
|
-
return;
|
|
218
|
-
event.preventDefault();
|
|
219
|
-
onEnter && onEnter(event);
|
|
220
|
-
}
|
|
221
|
-
function handleFocus(event) {
|
|
222
|
-
const target = event.currentTarget;
|
|
223
|
-
if (target.select) {
|
|
224
|
-
setTimeout(() => readonly && target.select());
|
|
225
|
-
}
|
|
226
|
-
onFocus && onFocus();
|
|
227
|
-
}
|
|
228
|
-
function handleBlur() {
|
|
229
|
-
onBlur && onBlur();
|
|
230
|
-
onControllerBlur();
|
|
231
|
-
}
|
|
232
|
-
} }));
|
|
233
|
-
function getErrorMessage() {
|
|
234
|
-
if (typeof message === "string") {
|
|
235
|
-
return message;
|
|
236
|
-
}
|
|
237
|
-
return "";
|
|
238
|
-
}
|
|
239
|
-
function handleValidation() {
|
|
240
|
-
onValidation && onValidation(error);
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
function setAutocomplete(autocompleteSetting) {
|
|
244
|
-
if (autocompleteSetting === true) {
|
|
245
|
-
return undefined;
|
|
246
|
-
}
|
|
247
|
-
else if (autocompleteSetting === false) {
|
|
248
|
-
return "off";
|
|
249
|
-
}
|
|
250
|
-
return autocompleteSetting;
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
exports.FormField = FormField;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var React = require('react');
|
|
6
|
-
var classnames = require('classnames');
|
|
7
|
-
var styleInject_es = require('../style-inject.es-9d2f5f4e.js');
|
|
8
|
-
|
|
9
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
10
|
-
|
|
11
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
12
|
-
var classnames__default = /*#__PURE__*/_interopDefaultLegacy(classnames);
|
|
13
|
-
|
|
14
|
-
var css_248z = ".Cr7OFSgq9WA- {\n font-style: normal;\n}\n";
|
|
15
|
-
var styles = {"email":"Cr7OFSgq9WA-"};
|
|
16
|
-
styleInject_es.styleInject(css_248z);
|
|
17
|
-
|
|
18
|
-
function FormatEmail({ email }) {
|
|
19
|
-
const className = classnames__default["default"](styles.email);
|
|
20
|
-
return React__default["default"].createElement("address", { className: className }, email);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
exports.FormatEmail = FormatEmail;
|
package/dist/FormatFile/index.js
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var FormatFile = require('../FormatFile-9cc4c85a.js');
|
|
6
|
-
require('react');
|
|
7
|
-
require('classnames');
|
|
8
|
-
require('filesize');
|
|
9
|
-
require('../style-inject.es-9d2f5f4e.js');
|
|
10
|
-
require('../Button-0c831b03.js');
|
|
11
|
-
require('react-router-dom');
|
|
12
|
-
require('../Icon-405a216c.js');
|
|
13
|
-
require('@jobber/design');
|
|
14
|
-
require('../Typography-8c397b84.js');
|
|
15
|
-
require('../ConfirmationModal-c0b5e893.js');
|
|
16
|
-
require('@jobber/hooks/useOnKeyDown');
|
|
17
|
-
require('../Modal-03731670.js');
|
|
18
|
-
require('react-dom');
|
|
19
|
-
require('framer-motion');
|
|
20
|
-
require('@jobber/hooks/useRefocusOnActivator');
|
|
21
|
-
require('@jobber/hooks/useFocusTrap');
|
|
22
|
-
require('../Heading-ffc87a2a.js');
|
|
23
|
-
require('../useAtlantisConfig-ed0bee66.js');
|
|
24
|
-
require('@jobber/hooks/useSafeLayoutEffect');
|
|
25
|
-
require('../ButtonDismiss-101366b5.js');
|
|
26
|
-
require('../Content-e3f7b6fc.js');
|
|
27
|
-
require('../Markdown-bee813fc.js');
|
|
28
|
-
require('react-markdown');
|
|
29
|
-
require('../Text-94b5c2e5.js');
|
|
30
|
-
require('../Emphasis-f298e0bd.js');
|
|
31
|
-
require('../Glimmer-84dee1ed.js');
|
|
32
|
-
require('../tslib.es6-754e2961.js');
|
|
33
|
-
require('../ProgressBar-b68edc8f.js');
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
exports.FormatFile = FormatFile.FormatFile;
|