@jobber/components 4.92.0 → 4.92.1-JOB-91143.4
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-20a02aaa.js → AnimatedPresence-C7_0OG8K.js} +3 -7
- package/dist/AnimatedPresence-DuP07qsR.js +98 -0
- package/dist/AnimatedSwitcher/index.cjs +11 -0
- package/dist/AnimatedSwitcher/index.mjs +5 -0
- package/dist/AnimatedSwitcher-DOQq-lwI.js +90 -0
- package/dist/{AnimatedSwitcher-3d45ec5d.js → AnimatedSwitcher-DypsdKLY.js} +4 -8
- package/dist/AtlantisContext/{index.js → index.cjs} +1 -3
- package/dist/AtlantisContext/index.mjs +2 -0
- package/dist/AtlantisContext-vajd9Fye.js +18 -0
- package/dist/Autocomplete/index.cjs +33 -0
- package/dist/Autocomplete/index.mjs +27 -0
- package/dist/Autocomplete-BG15vNs1.js +192 -0
- package/dist/Autocomplete-oDRc9WsO.js +190 -0
- package/dist/Avatar/index.cjs +12 -0
- package/dist/Avatar/index.mjs +6 -0
- package/dist/Avatar-5fBKFezP.js +67 -0
- package/dist/Avatar-CVgBcpGi.js +69 -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-BIHgdvV3.js +81 -0
- package/dist/Banner-BUy2m7mr.js +79 -0
- package/dist/BannerIcon-BoW3uKD-.js +19 -0
- package/dist/BannerIcon-DWpqnHvJ.js +22 -0
- package/dist/Body-BXB4Ywng.js +45 -0
- package/dist/Body-ByAvs9el.js +54 -0
- package/dist/Button/index.cjs +13 -0
- package/dist/Button/index.mjs +7 -0
- package/dist/Button-CKxjsn8f.js +47 -0
- package/dist/Button-DE6Du5Wv.js +49 -0
- package/dist/ButtonDismiss/index.cjs +14 -0
- package/dist/ButtonDismiss/index.mjs +8 -0
- package/dist/ButtonDismiss-BIVGFM9M.js +8 -0
- package/dist/ButtonDismiss-DjOs7eO3.js +10 -0
- package/dist/Card/index.cjs +21 -0
- package/dist/Card/index.mjs +15 -0
- package/dist/Card-CW-modgy.js +83 -0
- package/dist/Card-DOzOOnY0.js +81 -0
- package/dist/Checkbox/index.cjs +15 -0
- package/dist/Checkbox/index.mjs +9 -0
- package/dist/Checkbox-3Qa3Mp4s.js +55 -0
- package/dist/Checkbox-BVH5HUy3.js +53 -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-BRA8Ie1D.js +70 -0
- package/dist/Chip-D5t8gDBN.js +67 -0
- package/dist/ChipDismissible-BfodalJt.js +22 -0
- package/dist/ChipDismissible-D7vWlDtB.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-CYDxrU8D.js +91 -0
- package/dist/Chips-ZogWZIAB.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-4g_P-scs.js +119 -0
- package/dist/Combobox-C9lk5lGs.js +117 -0
- package/dist/ComboboxAction-CDXUQcsS.js +22 -0
- package/dist/ComboboxAction-Ci7RkWIs.js +24 -0
- package/dist/ComboboxActivator-DC7UbnAU.js +26 -0
- package/dist/ComboboxActivator-Wru82KGv.js +28 -0
- package/dist/ComboboxContent-B3t3fDTn.js +143 -0
- package/dist/ComboboxContent-FcsdPGqc.js +145 -0
- package/dist/ComboboxContentHeader-CudWca0J.js +29 -0
- package/dist/ComboboxContentHeader-CwgZyJ-n.js +27 -0
- package/dist/ComboboxContentList-B84jQ_k9.js +77 -0
- package/dist/ComboboxContentList-BlSsa2wi.js +75 -0
- package/dist/ComboboxContentSearch-B76E7yYs.js +32 -0
- package/dist/ComboboxContentSearch-DH_9gdSF.js +34 -0
- package/dist/ComboboxLoadMore-BnhP-b9N.js +16 -0
- package/dist/ComboboxLoadMore-CKnSg956.js +14 -0
- package/dist/ComboboxOption-CmhVk1Tm.js +20 -0
- package/dist/ComboboxOption-fq9MC5fv.js +22 -0
- package/dist/ComboboxProvider-B1d2SG67.js +13 -0
- package/dist/ComboboxProvider-BpcqvBBD.js +10 -0
- package/dist/ComboboxTrigger-CBviayim.js +24 -0
- package/dist/ComboboxTrigger-D6M0Glk-.js +22 -0
- package/dist/ConfirmationModal/index.cjs +31 -0
- package/dist/ConfirmationModal/index.mjs +25 -0
- package/dist/{ConfirmationModal-c0b5e893.js → ConfirmationModal-MK_2VfpM.js} +8 -12
- package/dist/ConfirmationModal-rAPd3iIk.js +94 -0
- package/dist/Content/index.cjs +9 -0
- package/dist/Content/index.mjs +3 -0
- package/dist/Content-DErBfjY3.js +15 -0
- package/dist/Content-DvE60Q2i.js +13 -0
- package/dist/Countdown/index.cjs +11 -0
- package/dist/Countdown/index.mjs +5 -0
- package/dist/Countdown-CfRvv0Ww.js +657 -0
- package/dist/Countdown-DliSLLhR.js +659 -0
- package/dist/DataDump/index.cjs +24 -0
- package/dist/DataDump/index.mjs +18 -0
- package/dist/DataDump-CyNg2_YY.js +17 -0
- package/dist/DataDump-zMz56TNi.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-B7x2oFVS.js +139 -0
- package/dist/DataList-BNQqXKIC.js +5 -0
- package/dist/DataList-Br4dFDOB.js +3 -0
- package/dist/DataList-Cu_Ae-fT.js +141 -0
- package/dist/DataList.const-Bhvz7Luy.js +38 -0
- package/dist/DataList.const-C329b2_o.js +25 -0
- package/dist/DataList.utils-C_f0XZRT.js +168 -0
- package/dist/DataList.utils-hr_HVCYl.js +161 -0
- package/dist/DataListAction-CGHgpeIN.js +39 -0
- package/dist/DataListAction-ymAGmjKg.js +37 -0
- package/dist/DataListActions-2RjU1dqb.js +45 -0
- package/dist/DataListActions-C6ZysnI5.js +43 -0
- package/dist/DataListActionsMenu-D6jGO6-B.js +57 -0
- package/dist/DataListActionsMenu-D98jRKew.js +55 -0
- package/dist/DataListBulkActions-CImnK1P5.js +29 -0
- package/dist/DataListBulkActions-DTrhDaNb.js +26 -0
- package/dist/DataListContext-DikZuZOD.js +29 -0
- package/dist/DataListContext-VbiGFkPI.js +25 -0
- package/dist/DataListEmptyState-C5r8SfIE.js +50 -0
- package/dist/DataListEmptyState-zgu3AGxu.js +53 -0
- package/dist/DataListFilters-DigCSxBy.js +43 -0
- package/dist/DataListFilters-NOmECi3p.js +46 -0
- package/dist/DataListHeader-B5iRESYw.js +95 -0
- package/dist/DataListHeader-JCeJNeuy.js +93 -0
- package/dist/DataListHeaderTile-CT3k41HG.js +80 -0
- package/dist/DataListHeaderTile-CZIjDn8L.js +82 -0
- package/dist/DataListItem-4Ix109is.js +114 -0
- package/dist/DataListItem-ChTxYoqE.js +112 -0
- package/dist/DataListItemActions-CQ8hDqYw.js +29 -0
- package/dist/DataListItemActions-D5wUuHMv.js +32 -0
- package/dist/DataListItemActionsOverflow-B_u6m2o9.js +33 -0
- package/dist/DataListItemActionsOverflow-DIzayDpq.js +35 -0
- package/dist/DataListItemClickable-Bt5Ucj0t.js +47 -0
- package/dist/DataListItemClickable-IwbswX6H.js +45 -0
- package/dist/DataListItems-BWg5lHjy.js +19 -0
- package/dist/DataListItems-Drq7j4YK.js +21 -0
- package/dist/DataListLayout-BgG0MMDj.js +19 -0
- package/dist/DataListLayout-DZynXNte.js +21 -0
- package/dist/DataListLayoutActions-AWqreR_S.js +36 -0
- package/dist/DataListLayoutActions-DeJK3JlE.js +38 -0
- package/dist/DataListLayoutContext--JcgS5I5.js +8 -0
- package/dist/DataListLayoutContext-D23XP8tN.js +11 -0
- package/dist/DataListLayoutContext-DWW2jgpD.js +18 -0
- package/dist/DataListLayoutContext-pSkER2Lr.js +14 -0
- package/dist/DataListLoadMore-CjCviC3F.js +34 -0
- package/dist/DataListLoadMore-jXRGVlFE.js +31 -0
- package/dist/DataListLoadingState-Bx7XgOwA.js +22 -0
- package/dist/DataListLoadingState-CSKfVetd.js +26 -0
- package/dist/DataListOverflowFade-DDkSdQhd.js +22 -0
- package/dist/DataListOverflowFade-DRoqry1j.js +25 -0
- package/dist/DataListSearch-CQY9fc7a.js +59 -0
- package/dist/DataListSearch-CjjEiz9Q.js +63 -0
- package/dist/DataListSort-DCNk7yyf.js +92 -0
- package/dist/DataListSort-invC98NZ.js +94 -0
- package/dist/DataListSortingOptions-CRMfOuGM.js +35 -0
- package/dist/DataListSortingOptions-sgWugbZH.js +37 -0
- package/dist/DataListStatusBar-Bc1dPDj_.js +22 -0
- package/dist/DataListStatusBar-C5HWzkA7.js +25 -0
- package/dist/DataListStickyHeader-MBgJBBb6.js +25 -0
- package/dist/DataListStickyHeader-O_e64YEP.js +23 -0
- package/dist/DataListTags-BG05pYRr.js +62 -0
- package/dist/DataListTags-DhUvQkt9.js +64 -0
- package/dist/DataListTotalCount-Ba0aAw-B.js +27 -0
- package/dist/DataListTotalCount-CKgXrXkX.js +24 -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-Dl89aEOa.js +236 -0
- package/dist/DataTable-iSgYQH5p.js +238 -0
- package/dist/DatePicker/index.cjs +26 -0
- package/dist/DatePicker/index.mjs +20 -0
- package/dist/DatePicker-BpDKGmIl.js +8551 -0
- package/dist/DatePicker-CvQJ4m4F.js +8554 -0
- package/dist/DayOfMonthSelect-abrJ8VI9.js +137 -0
- package/dist/DayOfMonthSelect-t0nv438k.js +130 -0
- package/dist/DescriptionList/index.cjs +10 -0
- package/dist/DescriptionList/index.mjs +4 -0
- package/dist/DescriptionList-C2P6fxRg.js +14 -0
- package/dist/DescriptionList-DnPmrW50.js +12 -0
- package/dist/Disclosure/index.cjs +17 -0
- package/dist/Disclosure/index.mjs +11 -0
- package/dist/Disclosure-Du27Rftc.js +35 -0
- package/dist/Disclosure-DwDbK7TS.js +33 -0
- package/dist/Divider/index.cjs +9 -0
- package/dist/Divider/index.mjs +3 -0
- package/dist/Divider-02U5Br4P.js +19 -0
- package/dist/Divider-WHJnTEQ7.js +17 -0
- package/dist/Drawer/index.cjs +19 -0
- package/dist/Drawer/index.mjs +12 -0
- package/dist/DrawerGrid-BbRnqv1A.js +28 -0
- package/dist/DrawerGrid-BlhKZeYC.js +31 -0
- package/dist/Emphasis/index.cjs +10 -0
- package/dist/Emphasis/index.mjs +4 -0
- package/dist/Emphasis-ByZi7T6Z.js +13 -0
- package/dist/Emphasis-JTjJXWkg.js +15 -0
- package/dist/FeatureSwitch/index.cjs +26 -0
- package/dist/FeatureSwitch/index.mjs +20 -0
- package/dist/FeatureSwitch-BFrC78kj.js +54 -0
- package/dist/FeatureSwitch-ByeZTRwR.js +52 -0
- package/dist/Flex/index.cjs +9 -0
- package/dist/Flex/index.mjs +3 -0
- package/dist/Flex-BkRBJK0Z.js +30 -0
- package/dist/Flex-DQVyK7wo.js +28 -0
- package/dist/Form/index.cjs +10 -0
- package/dist/Form/index.mjs +4 -0
- package/dist/Form-BZeUfE2t.js +48 -0
- package/dist/{Form/index.js → Form-DUTTuYPf.js} +3 -9
- package/dist/FormField/index.cjs +20 -0
- package/dist/FormField/index.mjs +14 -0
- package/dist/FormField-D7z5-WII.js +263 -0
- package/dist/FormField-hdVpso_w.js +261 -0
- package/dist/FormatDate/{index.js → index.cjs} +1 -3
- package/dist/FormatDate/index.mjs +2 -0
- package/dist/FormatDate-Brr2_Lfu.js +27 -0
- package/dist/{FormatDate-70ea5b43.js → FormatDate-CE_p3d5L.js} +1 -5
- package/dist/FormatEmail/index.cjs +9 -0
- package/dist/FormatEmail/index.mjs +3 -0
- package/dist/FormatEmail-B326Qd3m.js +11 -0
- package/dist/FormatEmail-D6AV_2nc.js +13 -0
- package/dist/FormatFile/index.cjs +36 -0
- package/dist/FormatFile/index.mjs +30 -0
- package/dist/FormatFile-CDd5WXPj.js +149 -0
- package/dist/FormatFile-DxfGUhYm.js +147 -0
- package/dist/FormatRelativeDateTime/index.cjs +8 -0
- package/dist/FormatRelativeDateTime/index.mjs +2 -0
- package/dist/FormatRelativeDateTime-B9bjZ-eX.js +64 -0
- package/dist/{FormatRelativeDateTime/index.js → FormatRelativeDateTime-CXzEyJFr.js} +5 -11
- package/dist/FormatTime/index.cjs +8 -0
- package/dist/FormatTime/index.mjs +2 -0
- package/dist/FormatTime-B-wa4KRb.js +29 -0
- package/dist/{FormatTime/index.js → FormatTime-B91IsX-x.js} +1 -7
- package/dist/Gallery/index.cjs +42 -0
- package/dist/Gallery/index.mjs +36 -0
- package/dist/Gallery-1x8eXLka.js +63 -0
- package/dist/Gallery-DK44lD2R.js +65 -0
- package/dist/Glimmer/index.cjs +12 -0
- package/dist/Glimmer/index.mjs +5 -0
- package/dist/Glimmer-B5eYryBF.js +60 -0
- package/dist/Glimmer-D0tv78WP.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-AIrBh4rt.js +32 -0
- package/dist/Grid-C5FWfhEs.js +29 -0
- package/dist/Heading/index.cjs +12 -0
- package/dist/Heading/index.mjs +6 -0
- package/dist/{Heading-ffc87a2a.js → Heading-BhKK7vho.js} +3 -7
- package/dist/Heading-CN8xip8K.js +49 -0
- package/dist/Icon/index.cjs +9 -0
- package/dist/Icon/index.mjs +3 -0
- package/dist/Icon-BJUSeqrr.js +34 -0
- package/dist/Icon-DjU29wkY.js +36 -0
- package/dist/InlineLabel/index.cjs +10 -0
- package/dist/InlineLabel/index.mjs +4 -0
- package/dist/InlineLabel-BF3sXYgM.js +20 -0
- package/dist/InlineLabel-CdbTX3Qa.js +18 -0
- package/dist/InputAvatar/index.cjs +26 -0
- package/dist/InputAvatar/index.mjs +20 -0
- package/dist/InputAvatar-BdAiPSSn.js +49 -0
- package/dist/InputAvatar-CPLTarYo.js +47 -0
- package/dist/InputDate/index.cjs +34 -0
- package/dist/InputDate/index.mjs +28 -0
- package/dist/InputDate-BN9KkEfE.js +48 -0
- package/dist/{InputDate/index.js → InputDate-BquD5lFz.js} +6 -31
- package/dist/InputEmail/index.cjs +22 -0
- package/dist/InputEmail/index.mjs +15 -0
- package/dist/InputEmail-CpyoerVx.js +23 -0
- package/dist/InputEmail-TUmHsMNX.js +20 -0
- package/dist/InputFile/index.cjs +23 -0
- package/dist/InputFile/index.mjs +16 -0
- package/dist/InputFile-DMnF1pDx.js +1611 -0
- package/dist/InputFile-OoWKy7q9.js +1608 -0
- package/dist/InputGroup/index.cjs +9 -0
- package/dist/InputGroup/index.mjs +3 -0
- package/dist/InputGroup-BFZ64kWc.js +25 -0
- package/dist/InputGroup-t1rzSE0F.js +23 -0
- package/dist/InputNumber/index.cjs +21 -0
- package/dist/InputNumber/index.mjs +15 -0
- package/dist/{InputNumber-f1990039.js → InputNumber-DL9rK650.js} +2 -6
- package/dist/InputNumber-u7uPvLgZ.js +56 -0
- package/dist/InputPassword/index.cjs +21 -0
- package/dist/InputPassword/index.mjs +15 -0
- package/dist/InputPassword-CqBOZ112.js +19 -0
- package/dist/InputPassword-cLUOeqk-.js +21 -0
- package/dist/InputPhoneNumber/index.cjs +21 -0
- package/dist/InputPhoneNumber/index.mjs +15 -0
- package/dist/InputPhoneNumber-B2FFUWwm.js +94 -0
- package/dist/{InputPhoneNumber/index.js → InputPhoneNumber-DxMxWR2z.js} +7 -27
- package/dist/InputText/index.cjs +22 -0
- package/dist/InputText/index.mjs +16 -0
- package/dist/InputText-Qhl0INR-.js +96 -0
- package/dist/{InputText-375a415c.js → InputText-nucFL4pz.js} +4 -8
- package/dist/InputTime/index.cjs +26 -0
- package/dist/InputTime/index.mjs +20 -0
- package/dist/{InputTime/index.js → InputTime-Bj4P_56s.js} +5 -25
- package/dist/InputTime-pPxm1wr1.js +190 -0
- package/dist/InputValidation/index.cjs +14 -0
- package/dist/InputValidation/index.mjs +8 -0
- package/dist/InputValidation-BY33gA8g.js +20 -0
- package/dist/InputValidation-BvTmvsYp.js +22 -0
- package/dist/InternalChipDismissible-LAkxRtnV.js +152 -0
- package/dist/InternalChipDismissible-PISlerj_.js +157 -0
- package/dist/InternalGridCell-BprDm5Fi.js +37 -0
- package/dist/InternalGridCell-DyWZRqAY.js +34 -0
- package/dist/LightBox/index.cjs +26 -0
- package/dist/LightBox/index.mjs +20 -0
- package/dist/LightBox-BWUWUkUD.js +112 -0
- package/dist/LightBox-D6Z6s0_U.js +110 -0
- package/dist/Link/index.cjs +8 -0
- package/dist/Link/index.mjs +2 -0
- package/dist/Link-B7ix2LW9.js +7 -0
- package/dist/Link-Cl2pzeag.js +9 -0
- package/dist/List/index.cjs +29 -0
- package/dist/List/index.mjs +22 -0
- package/dist/List-C3IcqOZZ.js +186 -0
- package/dist/List-D1li09_A.js +189 -0
- package/dist/Markdown/index.cjs +19 -0
- package/dist/Markdown/index.mjs +13 -0
- package/dist/Markdown-CRBKB6xQ.js +19013 -0
- package/dist/Markdown-DroxcM3U.js +19011 -0
- package/dist/Menu/index.cjs +18 -0
- package/dist/Menu/index.mjs +12 -0
- package/dist/Menu-BKIXU731.js +131 -0
- package/dist/Menu-DbsQFQOW.js +129 -0
- package/dist/Modal/index.cjs +23 -0
- package/dist/Modal/index.mjs +17 -0
- package/dist/Modal-Dx1bOlz7.js +63 -0
- package/dist/Modal-JhusMU4D.js +61 -0
- package/dist/MultiSelect/index.cjs +16 -0
- package/dist/MultiSelect/index.mjs +10 -0
- package/dist/MultiSelect-B2vx9vLw.js +166 -0
- package/dist/MultiSelect-But9vE7v.js +164 -0
- package/dist/Option-C2vJjWfu.js +15 -0
- package/dist/Option-m08lH3jJ.js +12 -0
- package/dist/Page/index.cjs +32 -0
- package/dist/Page/index.mjs +26 -0
- package/dist/Page-BU3T-y1q.js +58 -0
- package/dist/Page-DV_XwjfX.js +56 -0
- package/dist/Popover/index.cjs +17 -0
- package/dist/Popover/index.mjs +11 -0
- package/dist/Popover-B-KE_eFI.js +48 -0
- package/dist/Popover-CHu9ozKj.js +50 -0
- package/dist/ProgressBar/index.cjs +9 -0
- package/dist/ProgressBar/index.mjs +3 -0
- package/dist/ProgressBar-B5zkI3pM.js +33 -0
- package/dist/ProgressBar-s-XzXLlQ.js +31 -0
- package/dist/RadioGroup/index.cjs +12 -0
- package/dist/RadioGroup/index.mjs +5 -0
- package/dist/RadioGroup-BjKA09z3.js +39 -0
- package/dist/RadioGroup-CaUGNOG2.js +36 -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-6-wdlnln.js +71 -0
- package/dist/RecurringSelect-B0Gq9jU1.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-4_B4sbFF.js +16 -0
- package/dist/Spinner-AOCiYGuW.js +14 -0
- package/dist/StatusIndicator/index.cjs +8 -0
- package/dist/StatusIndicator/index.mjs +2 -0
- package/dist/StatusIndicator-NtKs1bnS.js +11 -0
- package/dist/StatusIndicator-vPYWY92m.js +9 -0
- package/dist/StatusLabel/index.cjs +11 -0
- package/dist/StatusLabel/index.mjs +5 -0
- package/dist/StatusLabel-B0GIHhhK.js +18 -0
- package/dist/StatusLabel-CMT-yiLl.js +16 -0
- package/dist/Switch/index.cjs +10 -0
- package/dist/Switch/index.mjs +4 -0
- package/dist/Switch-CqAWEokO.js +48 -0
- package/dist/Switch-D2ujtfce.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-CRYN2A35.js +67 -0
- package/dist/Tabs-D5jT4HLS.js +70 -0
- package/dist/Text/index.cjs +10 -0
- package/dist/Text/index.mjs +4 -0
- package/dist/Text-9Y0IeH0M.js +25 -0
- package/dist/{Text-94b5c2e5.js → Text-CqfEADu0.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-D2U8LSaI.js +105 -0
- package/dist/Tooltip-DeXlEfZX.js +103 -0
- package/dist/Typography/index.cjs +9 -0
- package/dist/Typography/index.mjs +3 -0
- package/dist/Typography-CBz3Bwzs.js +38 -0
- package/dist/Typography-DBA8fJ4I.js +36 -0
- package/dist/_baseAssignValue-Br3FbMzF.js +29 -0
- package/dist/_baseAssignValue-Cvm5AXvh.js +31 -0
- package/dist/_baseEach-CTax1-yy.js +1069 -0
- package/dist/_baseEach-D8SssyxZ.js +1073 -0
- package/dist/_commonjsHelpers-C-Wbr7RH.js +32 -0
- package/dist/_commonjsHelpers-xAV1A7i5.js +36 -0
- package/dist/_defineProperty-BujIpPGc.js +1326 -0
- package/dist/_defineProperty-CjkR3-BA.js +1306 -0
- package/dist/_getTag-BKCeVxsL.js +733 -0
- package/dist/_getTag-DpOqMBPJ.js +718 -0
- package/dist/_polyfill-node.process-B_9ykg-O.js +255 -0
- package/dist/_polyfill-node.process-CYhOBsNv.js +258 -0
- package/dist/_setToString-CBBLiglb.js +234 -0
- package/dist/_setToString-CZpqSjYr.js +230 -0
- package/dist/debounce-BpTvHvBt.js +332 -0
- package/dist/debounce-Dd5GxxzC.js +329 -0
- package/dist/helpers-D1m0vSul.js +17 -0
- package/dist/helpers-DwMBemop.js +15 -0
- package/dist/index-BQdnPLod.js +1189 -0
- package/dist/index-BeAq-j7t.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-D72TVWLW.js +190 -0
- package/dist/isObjectLike-DkE0-lSd.js +197 -0
- package/dist/isSymbol-BdlIpdew.js +33 -0
- package/dist/isSymbol-DVwHxcm6.js +35 -0
- package/dist/noop-9CHQCFDx.js +26 -0
- package/dist/noop-CiBZ2qxz.js +24 -0
- package/dist/showToast-DdjKsUjz.js +99 -0
- package/dist/showToast-kK8ISglC.js +97 -0
- package/dist/styles.css +8743 -0
- package/dist/tslib.es6-BJzo8cuE.js +97 -0
- package/dist/tslib.es6-CjmNBqgv.js +102 -0
- package/dist/useActiveLayout-Bvi4Yx0s.js +14 -0
- package/dist/useActiveLayout-DOW95mNw.js +16 -0
- package/dist/useAssert-B1i-_d5Q.js +27 -0
- package/dist/useAssert-Bk9LtVuC.js +27 -0
- package/dist/useAtlantisConfig-CVSBhQb8.js +14 -0
- package/dist/{useAtlantisConfig-ed0bee66.js → useAtlantisConfig-D-Qo7OhV.js} +2 -2
- package/dist/useBatchSelect-4-bP-nq0.js +36 -0
- package/dist/useBatchSelect-rCfKq55l.js +38 -0
- package/dist/useChildComponent-D2t-5Jky.js +15 -0
- package/dist/useChildComponent-DktVoc_0.js +17 -0
- package/dist/useFocusTrap-Bk_llzCy.js +74 -0
- package/dist/useFocusTrap-BztNbnoA.js +74 -0
- package/dist/useInView-Dk25sanP.js +25 -0
- package/dist/useInView-NIKZBawt.js +25 -0
- package/dist/useIsMounted-CEL42pGR.js +47 -0
- package/dist/useIsMounted-DZig4aFK.js +47 -0
- package/dist/useOnKeyDown-BRrGkWfQ.js +40 -0
- package/dist/useOnKeyDown-Dtenmfc9.js +40 -0
- package/dist/useRefocusOnActivator-BCZuCyZg.js +32 -0
- package/dist/useRefocusOnActivator-Nc-vAHlK.js +32 -0
- package/dist/useResizeObserver-Blt1gsn-.js +1189 -0
- package/dist/useResizeObserver-BwdGHaB_.js +1192 -0
- package/dist/useResponsiveSizing-CN6AfX4o.js +51 -0
- package/dist/useResponsiveSizing-DXaps7kG.js +49 -0
- package/dist/useSafeLayoutEffect-BNLlFJBq.js +14 -0
- package/dist/useSafeLayoutEffect-CtAU_CL9.js +12 -0
- package/dist/useScrollToActive-BCcpdtxF.js +597 -0
- package/dist/useScrollToActive-Dd4eAK3b.js +591 -0
- package/package.json +410 -10
- 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-LI1uQsX5.js} +0 -0
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import React, { useState, useRef, useEffect } from 'react';
|
|
2
|
+
import classnames from 'classnames';
|
|
3
|
+
import { T as Typography } from './Typography-DBA8fJ4I.js';
|
|
4
|
+
|
|
5
|
+
var styles = {"tabs":"-kxlqXO5UN0-","overflow":"qI4lWMSNH40-","overflowRight":"xohIah5wcoE-","overflowLeft":"qnY4S9sz-8g-","tabRow":"wdW31G8Trag-","tab":"MO7CXQ8xJXo-","selected":"kqof65gyv7g-","tabContent":"AimQioztR1U-"};
|
|
6
|
+
|
|
7
|
+
function Tabs({ children, defaultTab = 0, onTabChange }) {
|
|
8
|
+
const activeTabInitialValue = defaultTab < React.Children.count(children) ? defaultTab : 0;
|
|
9
|
+
const [activeTab, setActiveTab] = useState(activeTabInitialValue);
|
|
10
|
+
const [overflowRight, setOverflowRight] = useState(false);
|
|
11
|
+
const [overflowLeft, setOverflowLeft] = useState(false);
|
|
12
|
+
const tabRow = useRef();
|
|
13
|
+
const overflowClassNames = classnames(styles.overflow, {
|
|
14
|
+
[styles.overflowRight]: overflowRight,
|
|
15
|
+
[styles.overflowLeft]: overflowLeft,
|
|
16
|
+
});
|
|
17
|
+
const activateTab = (index) => {
|
|
18
|
+
return () => {
|
|
19
|
+
setActiveTab(index);
|
|
20
|
+
if (onTabChange) {
|
|
21
|
+
onTabChange(index);
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
const activeTabProps = React.Children.toArray(children)[activeTab].props;
|
|
26
|
+
const handleOverflowing = () => {
|
|
27
|
+
if (tabRow.current) {
|
|
28
|
+
const scrollWidth = tabRow.current.scrollWidth;
|
|
29
|
+
const clientWidth = tabRow.current.clientWidth;
|
|
30
|
+
const maxScroll = scrollWidth - clientWidth;
|
|
31
|
+
const scrollPos = tabRow.current.scrollLeft;
|
|
32
|
+
if (scrollWidth > clientWidth) {
|
|
33
|
+
setOverflowRight(scrollPos >= 0 && scrollPos != maxScroll);
|
|
34
|
+
setOverflowLeft(scrollPos > 0 && scrollPos < scrollWidth);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
useEffect(() => {
|
|
39
|
+
handleOverflowing();
|
|
40
|
+
tabRow.current &&
|
|
41
|
+
tabRow.current.addEventListener("scroll", handleOverflowing);
|
|
42
|
+
return () => {
|
|
43
|
+
window.removeEventListener("scroll", handleOverflowing);
|
|
44
|
+
};
|
|
45
|
+
});
|
|
46
|
+
return (React.createElement("div", { className: styles.tabs },
|
|
47
|
+
React.createElement("div", { className: overflowClassNames },
|
|
48
|
+
React.createElement("ul", { role: "tablist", className: styles.tabRow, ref: tabRow },
|
|
49
|
+
React.createElement("li", { role: "presentation" }, React.Children.map(children, (tab, index) => (React.createElement(InternalTab, { label: tab.props.label, selected: activeTab === index, activateTab: activateTab(index), onClick: tab.props.onClick })))))),
|
|
50
|
+
React.createElement("section", { role: "tabpanel", className: styles.tabContent, "aria-label": activeTabProps.label }, activeTabProps.children)));
|
|
51
|
+
}
|
|
52
|
+
function Tab({ label }) {
|
|
53
|
+
return React.createElement(React.Fragment, null, label);
|
|
54
|
+
}
|
|
55
|
+
function InternalTab({ label, selected, activateTab, onClick = () => {
|
|
56
|
+
return;
|
|
57
|
+
}, }) {
|
|
58
|
+
const className = classnames(styles.tab, { [styles.selected]: selected });
|
|
59
|
+
const color = selected ? "green" : "heading";
|
|
60
|
+
return (React.createElement("button", { type: "button", role: "tab", id: label, className: className, onClick: event => {
|
|
61
|
+
activateTab();
|
|
62
|
+
onClick(event);
|
|
63
|
+
} },
|
|
64
|
+
React.createElement(Typography, { element: "span", size: "base", textColor: color }, label)));
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export { Tabs as T, Tab as a };
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var React = require('react');
|
|
4
|
+
var classnames = require('classnames');
|
|
5
|
+
var Typography = require('./Typography-CBz3Bwzs.js');
|
|
6
|
+
|
|
7
|
+
var styles = {"tabs":"-kxlqXO5UN0-","overflow":"qI4lWMSNH40-","overflowRight":"xohIah5wcoE-","overflowLeft":"qnY4S9sz-8g-","tabRow":"wdW31G8Trag-","tab":"MO7CXQ8xJXo-","selected":"kqof65gyv7g-","tabContent":"AimQioztR1U-"};
|
|
8
|
+
|
|
9
|
+
function Tabs({ children, defaultTab = 0, onTabChange }) {
|
|
10
|
+
const activeTabInitialValue = defaultTab < React.Children.count(children) ? defaultTab : 0;
|
|
11
|
+
const [activeTab, setActiveTab] = React.useState(activeTabInitialValue);
|
|
12
|
+
const [overflowRight, setOverflowRight] = React.useState(false);
|
|
13
|
+
const [overflowLeft, setOverflowLeft] = React.useState(false);
|
|
14
|
+
const tabRow = React.useRef();
|
|
15
|
+
const overflowClassNames = classnames(styles.overflow, {
|
|
16
|
+
[styles.overflowRight]: overflowRight,
|
|
17
|
+
[styles.overflowLeft]: overflowLeft,
|
|
18
|
+
});
|
|
19
|
+
const activateTab = (index) => {
|
|
20
|
+
return () => {
|
|
21
|
+
setActiveTab(index);
|
|
22
|
+
if (onTabChange) {
|
|
23
|
+
onTabChange(index);
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
const activeTabProps = React.Children.toArray(children)[activeTab].props;
|
|
28
|
+
const handleOverflowing = () => {
|
|
29
|
+
if (tabRow.current) {
|
|
30
|
+
const scrollWidth = tabRow.current.scrollWidth;
|
|
31
|
+
const clientWidth = tabRow.current.clientWidth;
|
|
32
|
+
const maxScroll = scrollWidth - clientWidth;
|
|
33
|
+
const scrollPos = tabRow.current.scrollLeft;
|
|
34
|
+
if (scrollWidth > clientWidth) {
|
|
35
|
+
setOverflowRight(scrollPos >= 0 && scrollPos != maxScroll);
|
|
36
|
+
setOverflowLeft(scrollPos > 0 && scrollPos < scrollWidth);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
React.useEffect(() => {
|
|
41
|
+
handleOverflowing();
|
|
42
|
+
tabRow.current &&
|
|
43
|
+
tabRow.current.addEventListener("scroll", handleOverflowing);
|
|
44
|
+
return () => {
|
|
45
|
+
window.removeEventListener("scroll", handleOverflowing);
|
|
46
|
+
};
|
|
47
|
+
});
|
|
48
|
+
return (React.createElement("div", { className: styles.tabs },
|
|
49
|
+
React.createElement("div", { className: overflowClassNames },
|
|
50
|
+
React.createElement("ul", { role: "tablist", className: styles.tabRow, ref: tabRow },
|
|
51
|
+
React.createElement("li", { role: "presentation" }, React.Children.map(children, (tab, index) => (React.createElement(InternalTab, { label: tab.props.label, selected: activeTab === index, activateTab: activateTab(index), onClick: tab.props.onClick })))))),
|
|
52
|
+
React.createElement("section", { role: "tabpanel", className: styles.tabContent, "aria-label": activeTabProps.label }, activeTabProps.children)));
|
|
53
|
+
}
|
|
54
|
+
function Tab({ label }) {
|
|
55
|
+
return React.createElement(React.Fragment, null, label);
|
|
56
|
+
}
|
|
57
|
+
function InternalTab({ label, selected, activateTab, onClick = () => {
|
|
58
|
+
return;
|
|
59
|
+
}, }) {
|
|
60
|
+
const className = classnames(styles.tab, { [styles.selected]: selected });
|
|
61
|
+
const color = selected ? "green" : "heading";
|
|
62
|
+
return (React.createElement("button", { type: "button", role: "tab", id: label, className: className, onClick: event => {
|
|
63
|
+
activateTab();
|
|
64
|
+
onClick(event);
|
|
65
|
+
} },
|
|
66
|
+
React.createElement(Typography.Typography, { element: "span", size: "base", textColor: color }, label)));
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
exports.Tab = Tab;
|
|
70
|
+
exports.Tabs = Tabs;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { T as Typography } from './Typography-DBA8fJ4I.js';
|
|
3
|
+
|
|
4
|
+
function Text({ variation = "default", size = "base", align = "start", children, maxLines = "unlimited", }) {
|
|
5
|
+
const textColors = {
|
|
6
|
+
default: "text",
|
|
7
|
+
subdued: "textSecondary",
|
|
8
|
+
success: "success",
|
|
9
|
+
error: "critical",
|
|
10
|
+
warn: "warning",
|
|
11
|
+
info: "informative",
|
|
12
|
+
disabled: "disabled",
|
|
13
|
+
};
|
|
14
|
+
const maxLineToNumber = {
|
|
15
|
+
single: 1,
|
|
16
|
+
small: 2,
|
|
17
|
+
base: 4,
|
|
18
|
+
large: 8,
|
|
19
|
+
larger: 16,
|
|
20
|
+
unlimited: undefined,
|
|
21
|
+
};
|
|
22
|
+
return (React.createElement(Typography, { textColor: textColors[variation], size: size, numberOfLines: maxLineToNumber[maxLines], align: align }, children));
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export { Text as T };
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var React = require('react');
|
|
4
|
-
var Typography = require('./Typography-
|
|
5
|
-
|
|
6
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
7
|
-
|
|
8
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
4
|
+
var Typography = require('./Typography-CBz3Bwzs.js');
|
|
9
5
|
|
|
10
6
|
function Text({ variation = "default", size = "base", align = "start", children, maxLines = "unlimited", }) {
|
|
11
7
|
const textColors = {
|
|
@@ -25,7 +21,7 @@ function Text({ variation = "default", size = "base", align = "start", children,
|
|
|
25
21
|
larger: 16,
|
|
26
22
|
unlimited: undefined,
|
|
27
23
|
};
|
|
28
|
-
return (
|
|
24
|
+
return (React.createElement(Typography.Typography, { textColor: textColors[variation], size: size, numberOfLines: maxLineToNumber[maxLines], align: align }, children));
|
|
29
25
|
}
|
|
30
26
|
|
|
31
27
|
exports.Text = Text;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var showToast = require('../showToast-DdjKsUjz.js');
|
|
4
|
+
require('react');
|
|
5
|
+
require('react-dom/client');
|
|
6
|
+
require('framer-motion');
|
|
7
|
+
require('../Icon-DjU29wkY.js');
|
|
8
|
+
require('@jobber/design');
|
|
9
|
+
require('../Button-DE6Du5Wv.js');
|
|
10
|
+
require('classnames');
|
|
11
|
+
require('react-router-dom');
|
|
12
|
+
require('../Typography-CBz3Bwzs.js');
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
exports.showToast = showToast.showToast;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { s as showToast } from '../showToast-kK8ISglC.js';
|
|
2
|
+
import 'react';
|
|
3
|
+
import 'react-dom/client';
|
|
4
|
+
import 'framer-motion';
|
|
5
|
+
import '../Icon-BJUSeqrr.js';
|
|
6
|
+
import '@jobber/design';
|
|
7
|
+
import '../Button-CKxjsn8f.js';
|
|
8
|
+
import 'classnames';
|
|
9
|
+
import 'react-router-dom';
|
|
10
|
+
import '../Typography-DBA8fJ4I.js';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var Tooltip = require('../Tooltip-D2U8LSaI.js');
|
|
4
|
+
require('react');
|
|
5
|
+
require('classnames');
|
|
6
|
+
require('react-dom');
|
|
7
|
+
require('framer-motion');
|
|
8
|
+
require('../useSafeLayoutEffect-BNLlFJBq.js');
|
|
9
|
+
require('../useIsMounted-DZig4aFK.js');
|
|
10
|
+
require('react-popper');
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
exports.Tooltip = Tooltip.Tooltip;
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var React = require('react');
|
|
4
|
+
var classnames = require('classnames');
|
|
5
|
+
var ReactDOM = require('react-dom');
|
|
6
|
+
var framerMotion = require('framer-motion');
|
|
7
|
+
var useSafeLayoutEffect = require('./useSafeLayoutEffect-BNLlFJBq.js');
|
|
8
|
+
var useIsMounted = require('./useIsMounted-DZig4aFK.js');
|
|
9
|
+
var reactPopper = require('react-popper');
|
|
10
|
+
|
|
11
|
+
var styles = {"shadowActivator":"q07bkGoq714-","tooltipWrapper":"dkCTRfc3vYk-","tooltip":"yAFP4gRKlTM-","arrow":"j9KgRON7iTU-","above":"B6uh34-qEuA-","below":"Wft7Ug-lXEc-","tooltipMessage":"TpdeLUuiQMg-"};
|
|
12
|
+
|
|
13
|
+
function useTooltipPositioning() {
|
|
14
|
+
var _a, _b;
|
|
15
|
+
const shadowRef = React.useRef(null);
|
|
16
|
+
const [positionElement, setTooltipRef] = React.useState();
|
|
17
|
+
const [arrowElement, setArrowRef] = React.useState();
|
|
18
|
+
const popper = reactPopper.usePopper((_a = shadowRef.current) === null || _a === void 0 ? void 0 : _a.nextElementSibling, positionElement, {
|
|
19
|
+
placement: "top",
|
|
20
|
+
modifiers: [
|
|
21
|
+
{ name: "flip", options: { fallbackPlacements: ["bottom"] } },
|
|
22
|
+
{
|
|
23
|
+
name: "arrow",
|
|
24
|
+
options: { element: arrowElement },
|
|
25
|
+
},
|
|
26
|
+
],
|
|
27
|
+
});
|
|
28
|
+
return Object.assign(Object.assign({}, popper), { placement: (_b = popper.state) === null || _b === void 0 ? void 0 : _b.placement, shadowRef,
|
|
29
|
+
setArrowRef,
|
|
30
|
+
setTooltipRef });
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
const variation = {
|
|
34
|
+
startOrStop: { scale: 0.6, opacity: 0 },
|
|
35
|
+
done: { scale: 1, opacity: 1 },
|
|
36
|
+
};
|
|
37
|
+
function Tooltip({ message, children }) {
|
|
38
|
+
const [show, setShow] = React.useState(false);
|
|
39
|
+
const mounted = useIsMounted.useIsMounted_2();
|
|
40
|
+
const { attributes, placement, shadowRef, styles: popperStyles, setArrowRef, setTooltipRef, } = useTooltipPositioning();
|
|
41
|
+
initializeListeners();
|
|
42
|
+
const toolTipClassNames = classnames(styles.tooltipWrapper, placement === "bottom" && styles.below, placement === "top" && styles.above);
|
|
43
|
+
return (React.createElement(React.Fragment, null,
|
|
44
|
+
React.createElement("span", { className: styles.shadowActivator, ref: shadowRef }),
|
|
45
|
+
children,
|
|
46
|
+
mounted.current ? (React.createElement(TooltipPortal, null, show && Boolean(message) && (React.createElement("div", Object.assign({ className: toolTipClassNames, style: popperStyles.popper, ref: setTooltipRef, role: "tooltip" }, attributes.popper),
|
|
47
|
+
React.createElement(framerMotion.motion.div, { className: styles.tooltip, variants: variation, initial: "startOrStop", animate: "done", exit: "startOrStop", transition: {
|
|
48
|
+
damping: 50,
|
|
49
|
+
stiffness: 500,
|
|
50
|
+
} },
|
|
51
|
+
React.createElement("p", { className: styles.tooltipMessage }, message),
|
|
52
|
+
React.createElement("div", { ref: setArrowRef, style: popperStyles.arrow, className: styles.arrow })))))) : null));
|
|
53
|
+
function initializeListeners() {
|
|
54
|
+
const showTooltip = () => {
|
|
55
|
+
setShow(true);
|
|
56
|
+
};
|
|
57
|
+
const hideTooltip = () => {
|
|
58
|
+
setShow(false);
|
|
59
|
+
};
|
|
60
|
+
const injectAttributes = () => {
|
|
61
|
+
var _a;
|
|
62
|
+
if ((_a = shadowRef === null || shadowRef === void 0 ? void 0 : shadowRef.current) === null || _a === void 0 ? void 0 : _a.nextElementSibling) {
|
|
63
|
+
const activator = shadowRef.current.nextElementSibling;
|
|
64
|
+
// Manually inject "aria-description" and "tabindex" to let the screen
|
|
65
|
+
// readers read the tooltip message.
|
|
66
|
+
// This is to avoid having to add those attribute as a prop on every
|
|
67
|
+
// component we have.
|
|
68
|
+
activator.setAttribute("aria-description", message);
|
|
69
|
+
activator.setAttribute("tabindex", "0"); // enable focus
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
const addListeners = () => {
|
|
73
|
+
var _a;
|
|
74
|
+
if ((_a = shadowRef === null || shadowRef === void 0 ? void 0 : shadowRef.current) === null || _a === void 0 ? void 0 : _a.nextElementSibling) {
|
|
75
|
+
const activator = shadowRef.current.nextElementSibling;
|
|
76
|
+
activator.addEventListener("mouseenter", showTooltip);
|
|
77
|
+
activator.addEventListener("mouseleave", hideTooltip);
|
|
78
|
+
activator.addEventListener("focus", showTooltip);
|
|
79
|
+
activator.addEventListener("blur", hideTooltip);
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
const removeListeners = () => {
|
|
83
|
+
var _a;
|
|
84
|
+
if ((_a = shadowRef === null || shadowRef === void 0 ? void 0 : shadowRef.current) === null || _a === void 0 ? void 0 : _a.nextElementSibling) {
|
|
85
|
+
const activator = shadowRef.current.nextElementSibling;
|
|
86
|
+
activator.removeEventListener("mouseenter", showTooltip);
|
|
87
|
+
activator.removeEventListener("mouseleave", hideTooltip);
|
|
88
|
+
activator.removeEventListener("focus", showTooltip);
|
|
89
|
+
activator.removeEventListener("blur", hideTooltip);
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
useSafeLayoutEffect.useSafeLayoutEffect_1(() => {
|
|
93
|
+
injectAttributes();
|
|
94
|
+
addListeners();
|
|
95
|
+
return () => {
|
|
96
|
+
removeListeners();
|
|
97
|
+
};
|
|
98
|
+
}, []);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
function TooltipPortal({ children }) {
|
|
102
|
+
return ReactDOM.createPortal(children, document.body);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
exports.Tooltip = Tooltip;
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import React, { useRef, useState } from 'react';
|
|
2
|
+
import classnames from 'classnames';
|
|
3
|
+
import ReactDOM from 'react-dom';
|
|
4
|
+
import { motion } from 'framer-motion';
|
|
5
|
+
import { u as useSafeLayoutEffect_1 } from './useSafeLayoutEffect-CtAU_CL9.js';
|
|
6
|
+
import { u as useIsMounted_2 } from './useIsMounted-CEL42pGR.js';
|
|
7
|
+
import { usePopper } from 'react-popper';
|
|
8
|
+
|
|
9
|
+
var styles = {"shadowActivator":"q07bkGoq714-","tooltipWrapper":"dkCTRfc3vYk-","tooltip":"yAFP4gRKlTM-","arrow":"j9KgRON7iTU-","above":"B6uh34-qEuA-","below":"Wft7Ug-lXEc-","tooltipMessage":"TpdeLUuiQMg-"};
|
|
10
|
+
|
|
11
|
+
function useTooltipPositioning() {
|
|
12
|
+
var _a, _b;
|
|
13
|
+
const shadowRef = useRef(null);
|
|
14
|
+
const [positionElement, setTooltipRef] = useState();
|
|
15
|
+
const [arrowElement, setArrowRef] = useState();
|
|
16
|
+
const popper = usePopper((_a = shadowRef.current) === null || _a === void 0 ? void 0 : _a.nextElementSibling, positionElement, {
|
|
17
|
+
placement: "top",
|
|
18
|
+
modifiers: [
|
|
19
|
+
{ name: "flip", options: { fallbackPlacements: ["bottom"] } },
|
|
20
|
+
{
|
|
21
|
+
name: "arrow",
|
|
22
|
+
options: { element: arrowElement },
|
|
23
|
+
},
|
|
24
|
+
],
|
|
25
|
+
});
|
|
26
|
+
return Object.assign(Object.assign({}, popper), { placement: (_b = popper.state) === null || _b === void 0 ? void 0 : _b.placement, shadowRef,
|
|
27
|
+
setArrowRef,
|
|
28
|
+
setTooltipRef });
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
const variation = {
|
|
32
|
+
startOrStop: { scale: 0.6, opacity: 0 },
|
|
33
|
+
done: { scale: 1, opacity: 1 },
|
|
34
|
+
};
|
|
35
|
+
function Tooltip({ message, children }) {
|
|
36
|
+
const [show, setShow] = useState(false);
|
|
37
|
+
const mounted = useIsMounted_2();
|
|
38
|
+
const { attributes, placement, shadowRef, styles: popperStyles, setArrowRef, setTooltipRef, } = useTooltipPositioning();
|
|
39
|
+
initializeListeners();
|
|
40
|
+
const toolTipClassNames = classnames(styles.tooltipWrapper, placement === "bottom" && styles.below, placement === "top" && styles.above);
|
|
41
|
+
return (React.createElement(React.Fragment, null,
|
|
42
|
+
React.createElement("span", { className: styles.shadowActivator, ref: shadowRef }),
|
|
43
|
+
children,
|
|
44
|
+
mounted.current ? (React.createElement(TooltipPortal, null, show && Boolean(message) && (React.createElement("div", Object.assign({ className: toolTipClassNames, style: popperStyles.popper, ref: setTooltipRef, role: "tooltip" }, attributes.popper),
|
|
45
|
+
React.createElement(motion.div, { className: styles.tooltip, variants: variation, initial: "startOrStop", animate: "done", exit: "startOrStop", transition: {
|
|
46
|
+
damping: 50,
|
|
47
|
+
stiffness: 500,
|
|
48
|
+
} },
|
|
49
|
+
React.createElement("p", { className: styles.tooltipMessage }, message),
|
|
50
|
+
React.createElement("div", { ref: setArrowRef, style: popperStyles.arrow, className: styles.arrow })))))) : null));
|
|
51
|
+
function initializeListeners() {
|
|
52
|
+
const showTooltip = () => {
|
|
53
|
+
setShow(true);
|
|
54
|
+
};
|
|
55
|
+
const hideTooltip = () => {
|
|
56
|
+
setShow(false);
|
|
57
|
+
};
|
|
58
|
+
const injectAttributes = () => {
|
|
59
|
+
var _a;
|
|
60
|
+
if ((_a = shadowRef === null || shadowRef === void 0 ? void 0 : shadowRef.current) === null || _a === void 0 ? void 0 : _a.nextElementSibling) {
|
|
61
|
+
const activator = shadowRef.current.nextElementSibling;
|
|
62
|
+
// Manually inject "aria-description" and "tabindex" to let the screen
|
|
63
|
+
// readers read the tooltip message.
|
|
64
|
+
// This is to avoid having to add those attribute as a prop on every
|
|
65
|
+
// component we have.
|
|
66
|
+
activator.setAttribute("aria-description", message);
|
|
67
|
+
activator.setAttribute("tabindex", "0"); // enable focus
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
const addListeners = () => {
|
|
71
|
+
var _a;
|
|
72
|
+
if ((_a = shadowRef === null || shadowRef === void 0 ? void 0 : shadowRef.current) === null || _a === void 0 ? void 0 : _a.nextElementSibling) {
|
|
73
|
+
const activator = shadowRef.current.nextElementSibling;
|
|
74
|
+
activator.addEventListener("mouseenter", showTooltip);
|
|
75
|
+
activator.addEventListener("mouseleave", hideTooltip);
|
|
76
|
+
activator.addEventListener("focus", showTooltip);
|
|
77
|
+
activator.addEventListener("blur", hideTooltip);
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
const removeListeners = () => {
|
|
81
|
+
var _a;
|
|
82
|
+
if ((_a = shadowRef === null || shadowRef === void 0 ? void 0 : shadowRef.current) === null || _a === void 0 ? void 0 : _a.nextElementSibling) {
|
|
83
|
+
const activator = shadowRef.current.nextElementSibling;
|
|
84
|
+
activator.removeEventListener("mouseenter", showTooltip);
|
|
85
|
+
activator.removeEventListener("mouseleave", hideTooltip);
|
|
86
|
+
activator.removeEventListener("focus", showTooltip);
|
|
87
|
+
activator.removeEventListener("blur", hideTooltip);
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
useSafeLayoutEffect_1(() => {
|
|
91
|
+
injectAttributes();
|
|
92
|
+
addListeners();
|
|
93
|
+
return () => {
|
|
94
|
+
removeListeners();
|
|
95
|
+
};
|
|
96
|
+
}, []);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
function TooltipPortal({ children }) {
|
|
100
|
+
return ReactDOM.createPortal(children, document.body);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export { Tooltip as T };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var React = require('react');
|
|
4
|
+
var classnames = require('classnames');
|
|
5
|
+
|
|
6
|
+
var styles = {"base":"asDB9Ra2UpA-"};
|
|
7
|
+
|
|
8
|
+
var fontSizes = {"extravagant":"_7C4Ck1izBPs-","jumbo":"_8X-fSrUTxV8-","largest":"n-SPJXPXLSA-","larger":"vCrvF55YQ9o-","large":"FBoaHWotSik-","base":"V6yPPLHLeuY-","small":"T5XC4DgJlxk-","smaller":"sycqXMMO-wc-"};
|
|
9
|
+
|
|
10
|
+
var fontWeights = {"regular":"lziyWzzvuno-","medium":"PVKSijyipP8-","semiBold":"-ch9Z4gIGDg-","bold":"EEwS0f07RqQ-","extraBold":"kA3NtPPWbP0-","black":"_3M58OLqp0JM-"};
|
|
11
|
+
|
|
12
|
+
var textCases = {"uppercase":"xE6cC62h5G0-","lowercase":"HlqJJ3Cl7dE-","capitalize":"Loe26JnDfco-"};
|
|
13
|
+
|
|
14
|
+
var textColors = {"blue":"pkqoq2KXY9w-","grey":"ftVHRSii3ro-","greyBlueDark":"FQbGABZWVzA-","greyBlue":"zQaB9J0-vrs-","green":"_4-xdzcqT-Us-","red":"Zp9E7ELPjPA-","yellow":"v-Fo4PwPxDI-","yellowDark":"YrGUIChAZC0-","lightBlue":"r7JcIVoDcTY-","white":"_6RXTyd198iM-","heading":"fLix4jA-RkU-","text":"_1g0uMAwFAsk-","textSecondary":"oXqFAHwT6y4-","inactive":"gPhKMwPfrsw-","critical":"rWkzi9HFNDU-","warning":"PQLYQKGCmPI-","informative":"L6bBDJrx-m0-","success":"bJDJJKvmT90-","disabled":"_3g4iYm8XwkM-"};
|
|
15
|
+
|
|
16
|
+
var emphasis = {"italic":"Jys1uy2pQXw-","highlight":"kd2u0dL-if0-"};
|
|
17
|
+
|
|
18
|
+
var truncate = {"textTruncate":"LUJEfdi3pws-"};
|
|
19
|
+
|
|
20
|
+
var alignment = {"start":"eDMsbRCP0kg-","center":"j34R9yIG--c-","end":"CeI75T5sHwM-"};
|
|
21
|
+
|
|
22
|
+
var fontFamilies = {"base":"mRpfVoMiIMM-","display":"TPtuWMdOsfw-"};
|
|
23
|
+
|
|
24
|
+
/* eslint-disable import/no-internal-modules */
|
|
25
|
+
function Typography({ id, children, element: Tag = "p", size, align, fontWeight = "regular", textCase, textColor, emphasisType, numberOfLines, fontFamily, }) {
|
|
26
|
+
const shouldTruncateText = numberOfLines && numberOfLines > 0;
|
|
27
|
+
const className = classnames(styles.base, fontWeights[fontWeight], size && fontSizes[size], textCase && textCases[textCase], textColor && textColors[textColor], emphasisType && emphasis[emphasisType], fontFamily && fontFamilies[fontFamily], shouldTruncateText && truncate.textTruncate, Object.assign({}, (align && { [alignment[align]]: align !== `start` })));
|
|
28
|
+
let truncateLines;
|
|
29
|
+
if (shouldTruncateText) {
|
|
30
|
+
truncateLines = {
|
|
31
|
+
WebkitLineClamp: numberOfLines,
|
|
32
|
+
WebkitBoxOrient: "vertical",
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
return (React.createElement(Tag, { id: id, className: className, style: truncateLines }, children));
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
exports.Typography = Typography;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import classnames from 'classnames';
|
|
3
|
+
|
|
4
|
+
var styles = {"base":"asDB9Ra2UpA-"};
|
|
5
|
+
|
|
6
|
+
var fontSizes = {"extravagant":"_7C4Ck1izBPs-","jumbo":"_8X-fSrUTxV8-","largest":"n-SPJXPXLSA-","larger":"vCrvF55YQ9o-","large":"FBoaHWotSik-","base":"V6yPPLHLeuY-","small":"T5XC4DgJlxk-","smaller":"sycqXMMO-wc-"};
|
|
7
|
+
|
|
8
|
+
var fontWeights = {"regular":"lziyWzzvuno-","medium":"PVKSijyipP8-","semiBold":"-ch9Z4gIGDg-","bold":"EEwS0f07RqQ-","extraBold":"kA3NtPPWbP0-","black":"_3M58OLqp0JM-"};
|
|
9
|
+
|
|
10
|
+
var textCases = {"uppercase":"xE6cC62h5G0-","lowercase":"HlqJJ3Cl7dE-","capitalize":"Loe26JnDfco-"};
|
|
11
|
+
|
|
12
|
+
var textColors = {"blue":"pkqoq2KXY9w-","grey":"ftVHRSii3ro-","greyBlueDark":"FQbGABZWVzA-","greyBlue":"zQaB9J0-vrs-","green":"_4-xdzcqT-Us-","red":"Zp9E7ELPjPA-","yellow":"v-Fo4PwPxDI-","yellowDark":"YrGUIChAZC0-","lightBlue":"r7JcIVoDcTY-","white":"_6RXTyd198iM-","heading":"fLix4jA-RkU-","text":"_1g0uMAwFAsk-","textSecondary":"oXqFAHwT6y4-","inactive":"gPhKMwPfrsw-","critical":"rWkzi9HFNDU-","warning":"PQLYQKGCmPI-","informative":"L6bBDJrx-m0-","success":"bJDJJKvmT90-","disabled":"_3g4iYm8XwkM-"};
|
|
13
|
+
|
|
14
|
+
var emphasis = {"italic":"Jys1uy2pQXw-","highlight":"kd2u0dL-if0-"};
|
|
15
|
+
|
|
16
|
+
var truncate = {"textTruncate":"LUJEfdi3pws-"};
|
|
17
|
+
|
|
18
|
+
var alignment = {"start":"eDMsbRCP0kg-","center":"j34R9yIG--c-","end":"CeI75T5sHwM-"};
|
|
19
|
+
|
|
20
|
+
var fontFamilies = {"base":"mRpfVoMiIMM-","display":"TPtuWMdOsfw-"};
|
|
21
|
+
|
|
22
|
+
/* eslint-disable import/no-internal-modules */
|
|
23
|
+
function Typography({ id, children, element: Tag = "p", size, align, fontWeight = "regular", textCase, textColor, emphasisType, numberOfLines, fontFamily, }) {
|
|
24
|
+
const shouldTruncateText = numberOfLines && numberOfLines > 0;
|
|
25
|
+
const className = classnames(styles.base, fontWeights[fontWeight], size && fontSizes[size], textCase && textCases[textCase], textColor && textColors[textColor], emphasisType && emphasis[emphasisType], fontFamily && fontFamilies[fontFamily], shouldTruncateText && truncate.textTruncate, Object.assign({}, (align && { [alignment[align]]: align !== `start` })));
|
|
26
|
+
let truncateLines;
|
|
27
|
+
if (shouldTruncateText) {
|
|
28
|
+
truncateLines = {
|
|
29
|
+
WebkitLineClamp: numberOfLines,
|
|
30
|
+
WebkitBoxOrient: "vertical",
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
return (React.createElement(Tag, { id: id, className: className, style: truncateLines }, children));
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export { Typography as T };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { _ as _defineProperty } from './_defineProperty-CjkR3-BA.js';
|
|
2
|
+
|
|
3
|
+
var defineProperty = _defineProperty;
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* The base implementation of `assignValue` and `assignMergeValue` without
|
|
7
|
+
* value checks.
|
|
8
|
+
*
|
|
9
|
+
* @private
|
|
10
|
+
* @param {Object} object The object to modify.
|
|
11
|
+
* @param {string} key The key of the property to assign.
|
|
12
|
+
* @param {*} value The value to assign.
|
|
13
|
+
*/
|
|
14
|
+
function baseAssignValue(object, key, value) {
|
|
15
|
+
if (key == '__proto__' && defineProperty) {
|
|
16
|
+
defineProperty(object, key, {
|
|
17
|
+
'configurable': true,
|
|
18
|
+
'enumerable': true,
|
|
19
|
+
'value': value,
|
|
20
|
+
'writable': true
|
|
21
|
+
});
|
|
22
|
+
} else {
|
|
23
|
+
object[key] = value;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
var _baseAssignValue = baseAssignValue;
|
|
28
|
+
|
|
29
|
+
export { _baseAssignValue as _ };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var _defineProperty = require('./_defineProperty-BujIpPGc.js');
|
|
4
|
+
|
|
5
|
+
var defineProperty = _defineProperty._defineProperty;
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* The base implementation of `assignValue` and `assignMergeValue` without
|
|
9
|
+
* value checks.
|
|
10
|
+
*
|
|
11
|
+
* @private
|
|
12
|
+
* @param {Object} object The object to modify.
|
|
13
|
+
* @param {string} key The key of the property to assign.
|
|
14
|
+
* @param {*} value The value to assign.
|
|
15
|
+
*/
|
|
16
|
+
function baseAssignValue(object, key, value) {
|
|
17
|
+
if (key == '__proto__' && defineProperty) {
|
|
18
|
+
defineProperty(object, key, {
|
|
19
|
+
'configurable': true,
|
|
20
|
+
'enumerable': true,
|
|
21
|
+
'value': value,
|
|
22
|
+
'writable': true
|
|
23
|
+
});
|
|
24
|
+
} else {
|
|
25
|
+
object[key] = value;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
var _baseAssignValue = baseAssignValue;
|
|
30
|
+
|
|
31
|
+
exports._baseAssignValue = _baseAssignValue;
|