@ilo-org/react 0.17.8 → 0.18.0
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/lib/cjs/_store/Accordion-chunk-C0MtnZLX.js +1 -0
- package/lib/cjs/_store/Accordion-entry-BZxhUG2Q.js +1 -0
- package/lib/cjs/_store/Breadcrumb-chunk-DvUpVY4l.js +1 -0
- package/lib/cjs/_store/Breadcrumb-entry-NNucl1rR.js +1 -0
- package/lib/cjs/_store/Button-chunk-0TEubQS1.js +1 -0
- package/lib/cjs/_store/Button-entry-BogzX4pv.js +1 -0
- package/lib/cjs/_store/Callout-chunk-B_3FQTvs.js +1 -0
- package/lib/cjs/_store/Callout-entry-DJsjlWxc.js +1 -0
- package/lib/cjs/_store/CardGroup-chunk-DhFE-J5O.js +1 -0
- package/lib/cjs/_store/Checkbox-chunk-B7P6WeNp.js +1 -0
- package/lib/cjs/_store/Checkbox-entry-Cpcx9EKD.js +1 -0
- package/lib/cjs/_store/Collapse-chunk-B3s_Bzzq.js +1 -0
- package/lib/cjs/_store/Collapse-entry-Djy1BBs6.js +1 -0
- package/lib/cjs/_store/ContextMenu-chunk-BegVo-Ry.js +1 -0
- package/lib/cjs/_store/ContextMenu-entry-TCdyzIRt.js +1 -0
- package/lib/cjs/_store/Credit-chunk-Dts5RkwZ.js +1 -0
- package/lib/cjs/_store/Credit-entry-GjFSWiDE.js +1 -0
- package/lib/cjs/_store/DatePicker-chunk-DMvnrakE.js +1 -0
- package/lib/cjs/_store/DatePicker-entry-CweKIj3U.js +1 -0
- package/lib/cjs/_store/Dropdown-chunk--_pVhTcV.js +1 -0
- package/lib/cjs/_store/Dropdown-entry-BcBG6Zg7.js +1 -0
- package/lib/cjs/_store/Empty-chunk-BEqHK-KC.js +1 -0
- package/lib/cjs/_store/Empty-entry-C_Q8VgpP.js +1 -0
- package/lib/cjs/_store/Fieldset-chunk-BsOPbe_a.js +1 -0
- package/lib/cjs/_store/Fieldset-entry-BUyKAdkn.js +1 -0
- package/lib/cjs/_store/FileUpload-chunk-CmHP-E54.js +1 -0
- package/lib/cjs/_store/FileUpload-entry-DKzm4WvO.js +1 -0
- package/lib/cjs/_store/Footer-chunk-9dkCoi0B.js +1 -0
- package/lib/cjs/_store/Footer-entry-D3GYBVpj.js +1 -0
- package/lib/cjs/_store/Form-chunk-DjDwz7DV.js +1 -0
- package/lib/cjs/_store/Form-entry-O0GJ5PoD.js +1 -0
- package/lib/cjs/_store/FormControl-chunk-08fp5TeU.js +1 -0
- package/lib/cjs/_store/FormControl-entry-DN7TYc37.js +1 -0
- package/lib/cjs/_store/FormElement-chunk-B8x3bzQh.js +1 -0
- package/lib/cjs/_store/FormElement-entry-DDBD7cYZ.js +1 -0
- package/lib/cjs/_store/GlobalCtx-chunk-D_GlGcgw.js +1 -0
- package/lib/cjs/_store/GlobalProvider-chunk-Bt1vmswv.js +1 -0
- package/lib/cjs/_store/GlobalProvider-entry-DkJQ9RWP.js +1 -0
- package/lib/cjs/_store/Heading-chunk-BJAywWmF.js +1 -0
- package/lib/cjs/_store/Heading-entry-DsqDeoiL.js +1 -0
- package/lib/cjs/_store/Hero-chunk-ZP6tCFz5.js +1 -0
- package/lib/cjs/_store/Hero-entry-CVMagWvL.js +1 -0
- package/lib/cjs/_store/Icon-chunk-C3UyVBv5.js +1 -0
- package/lib/cjs/_store/Icon-entry-DHj_qd8u.js +1 -0
- package/lib/cjs/_store/Image-chunk-jaj_JISB.js +1 -0
- package/lib/cjs/_store/Image-entry-DpxKHlQg.js +1 -0
- package/lib/cjs/_store/Input-chunk-DIcDfISq.js +1 -0
- package/lib/cjs/_store/Input-entry-Cq1G_bNN.js +1 -0
- package/lib/cjs/_store/Link-chunk-B_ZIovS2.js +1 -0
- package/lib/cjs/_store/Link-entry-CFNVpDIo.js +1 -0
- package/lib/cjs/_store/LinkList-chunk-Dv-cNPfH.js +1 -0
- package/lib/cjs/_store/LinkList-entry-CvmQYOZx.js +1 -0
- package/lib/cjs/_store/List-entry-CWz5DRJJ.js +1 -0
- package/lib/cjs/_store/ListItem-chunk-CHb4_N2-.js +1 -0
- package/lib/cjs/_store/Loading-chunk-C9rx8cqr.js +1 -0
- package/lib/cjs/_store/Loading-entry-CwPEKM50.js +1 -0
- package/lib/cjs/_store/LocalNav-chunk-TRLUir71.js +1 -0
- package/lib/cjs/_store/LocalNav-entry-BHboaRc5.js +1 -0
- package/lib/cjs/_store/Logo-chunk-Bz8Vfcn7.js +1 -0
- package/lib/cjs/_store/Logo-entry-C8ZmQs8R.js +1 -0
- package/lib/cjs/_store/LogoGrid-entry-DfTqIeGY.js +1 -0
- package/lib/cjs/_store/Navigation-chunk-CPzyVK7B.js +1 -0
- package/lib/cjs/_store/Navigation-entry-D07Y4pkR.js +1 -0
- package/lib/cjs/_store/Notification-chunk-DXIs6h5e.js +1 -0
- package/lib/cjs/_store/Notification-entry-C9D2mAvD.js +1 -0
- package/lib/cjs/_store/NumberPicker-chunk-CaQYVhyz.js +1 -0
- package/lib/cjs/_store/NumberPicker-entry-BEqwzCKS.js +1 -0
- package/lib/cjs/_store/Pagination-chunk-4zp3hOFL.js +1 -0
- package/lib/cjs/_store/Pagination-entry-eS2pFOuY.js +1 -0
- package/lib/cjs/_store/Profile-chunk-BH98cR85.js +1 -0
- package/lib/cjs/_store/Profile-entry-DHpgLCAp.js +1 -0
- package/lib/cjs/_store/Radio-chunk-RnNWzYgj.js +1 -0
- package/lib/cjs/_store/Radio-entry-DhWQjZuV.js +1 -0
- package/lib/cjs/_store/ReadMore-chunk-BQvY4016.js +1 -0
- package/lib/cjs/_store/ReadMore-entry-oYGJDJYJ.js +1 -0
- package/lib/cjs/_store/RichText-chunk-ZamwF4QL.js +1 -0
- package/lib/cjs/_store/RichText-entry-C7Fzr9VS.js +1 -0
- package/lib/cjs/_store/SearchField-chunk-DsxlWr7d.js +1 -0
- package/lib/cjs/_store/SearchField-entry-CgnoJz0d.js +1 -0
- package/lib/cjs/_store/SocialMedia-chunk-fLjmpXNC.js +1 -0
- package/lib/cjs/_store/SocialMedia-entry-meZdo-EU.js +1 -0
- package/lib/cjs/_store/TableOfContents-chunk-DcLMEr2i.js +1 -0
- package/lib/cjs/_store/TableOfContents-entry-DrMc0kJL.js +1 -0
- package/lib/cjs/_store/Tabs-chunk-DDQr8q_Q.js +1 -0
- package/lib/cjs/_store/Tabs-entry-iq_o_CtL.js +1 -0
- package/lib/cjs/_store/Tag-chunk-B4ZPZsMt.js +1 -0
- package/lib/cjs/_store/Tag-entry-5_lz5glY.js +1 -0
- package/lib/cjs/_store/TextInput-entry-Bl0sZdpl.js +1 -0
- package/lib/cjs/_store/Textarea-chunk-3fPk9MqI.js +1 -0
- package/lib/cjs/_store/Textarea-entry-Ac7gdvET.js +1 -0
- package/lib/cjs/_store/Toggle-entry-s05NRKOs.js +1 -0
- package/lib/cjs/_store/Tooltip-chunk-Bh77DbOg.js +1 -0
- package/lib/cjs/_store/Tooltip-entry--csXZiQZ.js +1 -0
- package/lib/cjs/_store/Video-chunk-BIJvoxjg.js +66 -0
- package/lib/cjs/_store/Video-entry-CmzlnrTO.js +1 -0
- package/lib/cjs/_store/_commonjsHelpers-chunk-DwTZ_eVU.js +1 -0
- package/lib/cjs/_store/checkArrayDuplicates-chunk-Bqxwhc1q.js +1 -0
- package/lib/cjs/_store/components-entry-DEwUb_oq.js +1 -0
- package/lib/cjs/_store/index-chunk-CV1afBzr.js +20 -0
- package/lib/cjs/_store/index-chunk-DCI82Tmm.js +5 -0
- package/lib/cjs/_store/index.js +1 -0
- package/lib/cjs/_store/inheritsLoose-chunk-VkUGvzyJ.js +1 -0
- package/lib/cjs/_store/useGlobalSettings-chunk-Pa38w6VS.js +1 -0
- package/lib/cjs/_store/usePrevious-chunk-DENrwKF1.js +1 -0
- package/lib/cjs/index.js +1 -135
- package/lib/esm/_store/Accordion-chunk-B6FAPUyi.js +113 -0
- package/lib/esm/_store/Accordion-entry-oAYQPeGr.js +7 -0
- package/lib/esm/_store/Breadcrumb-chunk-CclNRjxd.js +132 -0
- package/lib/esm/_store/Breadcrumb-entry-Biundzlp.js +4 -0
- package/lib/esm/_store/Button-chunk-Crzq2FAv.js +61 -0
- package/lib/esm/_store/Button-entry-DQ9yLTsk.js +30 -0
- package/lib/esm/_store/Callout-chunk-BYTLkWbG.js +63 -0
- package/lib/esm/_store/Callout-entry-C-llb6Kt.js +31 -0
- package/lib/esm/_store/CardGroup-chunk-BTx2ukOX.js +354 -0
- package/lib/esm/_store/Checkbox-chunk-DJDgykAw.js +71 -0
- package/lib/esm/_store/Checkbox-entry-CfjxZKrK.js +28 -0
- package/lib/esm/_store/Collapse-chunk-BVSI_9Dd.js +560 -0
- package/lib/esm/_store/Collapse-entry-DH89iy1Y.js +4 -0
- package/lib/esm/_store/ContextMenu-chunk-CkdC2iPF.js +22 -0
- package/lib/esm/_store/ContextMenu-entry-BkbaSgVR.js +4 -0
- package/lib/esm/_store/Credit-chunk-BjaAFul8.js +26 -0
- package/lib/esm/_store/Credit-entry-BGow5bDT.js +4 -0
- package/lib/esm/_store/DatePicker-chunk-10fIc74h.js +60 -0
- package/lib/esm/_store/DatePicker-entry-Bu0S1bvg.js +4 -0
- package/lib/esm/_store/Dropdown-chunk-B6G7DnYr.js +72 -0
- package/lib/esm/_store/Dropdown-entry-CRDxMRpe.js +4 -0
- package/lib/esm/_store/Empty-chunk-UEm5zVbe.js +12 -0
- package/lib/esm/_store/Empty-entry-BuwyDmF5.js +4 -0
- package/lib/esm/_store/Fieldset-chunk-PK4HqNv_.js +57 -0
- package/lib/esm/_store/Fieldset-entry-BmiHpIGy.js +4 -0
- package/lib/esm/_store/FileUpload-chunk-dFon8lP2.js +77 -0
- package/lib/esm/_store/FileUpload-entry-uIvvAStY.js +4 -0
- package/lib/esm/_store/Footer-chunk-D6ig8l3Y.js +61 -0
- package/lib/esm/_store/Footer-entry-B885hcUe.js +4 -0
- package/lib/esm/_store/Form-chunk-1a4awKWi.js +13 -0
- package/lib/esm/_store/Form-entry-DhZ3WiWW.js +11 -0
- package/lib/esm/_store/FormControl-chunk-D_3t65GG.js +77 -0
- package/lib/esm/_store/FormControl-entry-DODa4uyx.js +4 -0
- package/lib/esm/_store/FormElement-chunk-DqR8rtCB.js +15 -0
- package/lib/esm/_store/FormElement-entry-C_RiN-BZ.js +4 -0
- package/lib/esm/_store/GlobalCtx-chunk-CtSRDnk3.js +7 -0
- package/lib/esm/_store/GlobalProvider-chunk-nVdEz2_E.js +20 -0
- package/lib/esm/_store/GlobalProvider-entry-CCUkUh3z.js +6 -0
- package/lib/esm/_store/Heading-chunk-CFEDmQeQ.js +19 -0
- package/lib/esm/_store/Heading-entry-CTotrXWW.js +4 -0
- package/lib/esm/_store/Hero-chunk-HJvXvclG.js +76 -0
- package/lib/esm/_store/Hero-entry-gNTc6gUC.js +5 -0
- package/lib/esm/_store/Icon-chunk-x0E_KQyQ.js +3482 -0
- package/lib/esm/_store/Icon-entry-d1Lq52eV.js +4 -0
- package/lib/esm/_store/Image-chunk-C4zF97rw.js +35 -0
- package/lib/esm/_store/Image-entry-DaqK9C99.js +4 -0
- package/lib/esm/_store/Input-chunk-p-3N8OO4.js +58 -0
- package/lib/esm/_store/Input-entry-DG2Mv1K2.js +4 -0
- package/lib/esm/_store/Link-chunk-zt732cUC.js +36 -0
- package/lib/esm/_store/Link-entry-BY4hUubQ.js +4 -0
- package/lib/esm/_store/LinkList-chunk-CIZvyv8v.js +38 -0
- package/lib/esm/_store/LinkList-entry-ChpzxNTf.js +4 -0
- package/lib/esm/_store/List-entry-C68jMDRE.js +5 -0
- package/lib/esm/_store/ListItem-chunk-CKnxZe3Y.js +26 -0
- package/lib/esm/_store/Loading-chunk-BIJLAqk6.js +14 -0
- package/lib/esm/_store/Loading-entry-84g0sHXB.js +4 -0
- package/lib/esm/_store/LocalNav-chunk-BTJAs9kb.js +207 -0
- package/lib/esm/_store/LocalNav-entry-CYlCB-lD.js +4 -0
- package/lib/esm/_store/Logo-chunk-CsxA3mRV.js +121 -0
- package/lib/esm/_store/Logo-entry-3NNSpfQ9.js +4 -0
- package/lib/esm/_store/LogoGrid-entry-BEUN3M_d.js +24 -0
- package/lib/esm/_store/Navigation-chunk-BL9t1Aze.js +221 -0
- package/lib/esm/_store/Navigation-entry-Ch7YqW5b.js +4 -0
- package/lib/esm/_store/Notification-chunk-CdTKN1sq.js +61 -0
- package/lib/esm/_store/Notification-entry--uWc9jEM.js +4 -0
- package/lib/esm/_store/NumberPicker-chunk-CsDLNdop.js +62 -0
- package/lib/esm/_store/NumberPicker-entry-BuxrmdUS.js +4 -0
- package/lib/esm/_store/Pagination-chunk-Ci7qN6no.js +94 -0
- package/lib/esm/_store/Pagination-entry-CM2xRx7F.js +4 -0
- package/lib/esm/_store/Profile-chunk-Bsn46OaP.js +38 -0
- package/lib/esm/_store/Profile-entry-CE39-Kzc.js +4 -0
- package/lib/esm/_store/Radio-chunk-GaPnCNx4.js +77 -0
- package/lib/esm/_store/Radio-entry-CFuTolt7.js +11 -0
- package/lib/esm/_store/ReadMore-chunk-DoptEIE4.js +38 -0
- package/lib/esm/_store/ReadMore-entry-DuzFfWne.js +4 -0
- package/lib/esm/_store/RichText-chunk-BOMiyuNR.js +18 -0
- package/lib/esm/_store/RichText-entry-BfHki79h.js +4 -0
- package/lib/esm/_store/SearchField-chunk-BF-yCtvV.js +56 -0
- package/lib/esm/_store/SearchField-entry-DCMFJrVP.js +4 -0
- package/lib/esm/_store/SocialMedia-chunk-CP4gdUdi.js +32 -0
- package/lib/esm/_store/SocialMedia-entry-ZTNn-vUB.js +54 -0
- package/lib/esm/_store/TableOfContents-chunk-BXnS8D2s.js +12 -0
- package/lib/esm/_store/TableOfContents-entry-DHXKt1NR.js +4 -0
- package/lib/esm/_store/Tabs-chunk-D2k0m68V.js +40 -0
- package/lib/esm/_store/Tabs-entry-B3sg3VMU.js +4 -0
- package/lib/esm/_store/Tag-chunk-BxCaTFBz.js +65 -0
- package/lib/esm/_store/Tag-entry-Cr5XkVR9.js +45 -0
- package/lib/esm/_store/TextInput-entry-BTZVvumC.js +123 -0
- package/lib/esm/_store/Textarea-chunk-BCW6ZV8n.js +38 -0
- package/lib/esm/_store/Textarea-entry-CFe0s_hM.js +28 -0
- package/lib/esm/_store/Toggle-entry-CehJKItc.js +122 -0
- package/lib/esm/_store/Tooltip-chunk-CPT-dPDc.js +1001 -0
- package/lib/esm/_store/Tooltip-entry-cgQr1mHa.js +4 -0
- package/lib/esm/_store/Video-chunk-CDl9BbxW.js +24698 -0
- package/lib/esm/_store/Video-entry-DNXjIczI.js +4 -0
- package/lib/esm/_store/_commonjsHelpers-chunk-BkfeUUK-.js +28 -0
- package/lib/esm/_store/checkArrayDuplicates-chunk-C7cf0TQw.js +11 -0
- package/lib/esm/_store/components-entry-Er-smibI.js +87 -0
- package/lib/esm/_store/index-chunk-0LeqwHm8.js +40 -0
- package/lib/esm/_store/index-chunk-BNwl8BvE.js +644 -0
- package/lib/esm/_store/index.js +6 -0
- package/lib/esm/_store/inheritsLoose-chunk-JR0pp2En.js +12 -0
- package/lib/esm/_store/useGlobalSettings-chunk-gkijV3S1.js +12 -0
- package/lib/esm/_store/usePrevious-chunk-BtJVllKj.js +10 -0
- package/lib/esm/index.js +91 -86
- package/lib/styles/global.css.map +1 -0
- package/lib/styles/index.css.map +1 -0
- package/lib/styles/monorepo.css.map +1 -0
- package/lib/types/components/Accordion/Accordion.d.ts +5 -0
- package/lib/types/components/Accordion/Accordion.props.d.ts +34 -0
- package/lib/types/components/Accordion/AccordionButton.d.ts +5 -0
- package/lib/types/components/Accordion/AccordionButton.props.d.ts +12 -0
- package/lib/types/components/Accordion/AccordionCtx.d.ts +5 -0
- package/lib/types/components/Accordion/AccordionItem.d.ts +5 -0
- package/lib/types/components/Accordion/AccordionItem.props.d.ts +22 -0
- package/lib/types/components/Accordion/AccordionPanel.d.ts +5 -0
- package/lib/types/components/Accordion/AccordionPanel.props.d.ts +22 -0
- package/lib/types/components/Accordion/index.d.ts +4 -0
- package/lib/types/components/Breadcrumb/Breadcrumb.d.ts +5 -0
- package/lib/types/components/Breadcrumb/Breadcrumb.props.d.ts +32 -0
- package/lib/types/components/Breadcrumb/index.d.ts +1 -0
- package/lib/types/components/Button/Button.d.ts +5 -0
- package/lib/types/components/Button/Button.props.d.ts +69 -0
- package/lib/types/components/Button/index.d.ts +2 -0
- package/lib/types/components/Callout/Callout.d.ts +5 -0
- package/lib/types/components/Callout/Callout.props.d.ts +51 -0
- package/lib/types/components/Callout/index.d.ts +2 -0
- package/lib/types/components/Cards/CardGroup/CardGroup.d.ts +5 -0
- package/lib/types/components/Cards/CardGroup/CardGroup.props.d.ts +85 -0
- package/lib/types/components/Cards/CardGroup/index.d.ts +3 -0
- package/lib/types/components/Cards/DataCard/DataCard.d.ts +5 -0
- package/lib/types/components/Cards/DataCard/DataCard.props.d.ts +51 -0
- package/lib/types/components/Cards/DataCard/index.d.ts +3 -0
- package/lib/types/components/Cards/DetailCard/DetailCard.d.ts +5 -0
- package/lib/types/components/Cards/DetailCard/DetailCard.props.d.ts +40 -0
- package/lib/types/components/Cards/DetailCard/index.d.ts +3 -0
- package/lib/types/components/Cards/FactlistCard/FactListCard.d.ts +5 -0
- package/lib/types/components/Cards/FactlistCard/FactListCard.props.d.ts +21 -0
- package/lib/types/components/Cards/FactlistCard/index.d.ts +3 -0
- package/lib/types/components/Cards/FeatureCard/FeatureCard.d.ts +5 -0
- package/lib/types/components/Cards/FeatureCard/FeatureCard.props.d.ts +36 -0
- package/lib/types/components/Cards/FeatureCard/index.d.ts +3 -0
- package/lib/types/components/Cards/MultilinkCard/MultiLinkCard.d.ts +5 -0
- package/lib/types/components/Cards/MultilinkCard/MultilinkCard.props.d.ts +30 -0
- package/lib/types/components/Cards/MultilinkCard/index.d.ts +3 -0
- package/lib/types/components/Cards/PromoCard/PromoCard.d.ts +5 -0
- package/lib/types/components/Cards/PromoCard/PromoCard.props.d.ts +35 -0
- package/lib/types/components/Cards/PromoCard/index.d.ts +3 -0
- package/lib/types/components/Cards/StatCard/StatCard.d.ts +5 -0
- package/lib/types/components/Cards/StatCard/StatCard.props.d.ts +26 -0
- package/lib/types/components/Cards/StatCard/index.d.ts +3 -0
- package/lib/types/components/Cards/TextCard/TextCard.d.ts +5 -0
- package/lib/types/components/Cards/TextCard/TextCard.props.d.ts +31 -0
- package/lib/types/components/Cards/TextCard/index.d.ts +3 -0
- package/lib/types/components/Checkbox/Checkbox.d.ts +7 -0
- package/lib/types/components/Checkbox/Checkbox.props.d.ts +4 -0
- package/lib/types/components/Checkbox/index.d.ts +2 -0
- package/lib/types/components/Collapse/Collapse.d.ts +4 -0
- package/lib/types/components/Collapse/Collapse.props.d.ts +77 -0
- package/lib/types/components/Collapse/index.d.ts +1 -0
- package/lib/types/components/ContextMenu/ContextMenu.d.ts +5 -0
- package/lib/types/components/ContextMenu/ContextMenu.props.d.ts +24 -0
- package/lib/types/components/ContextMenu/index.d.ts +1 -0
- package/lib/types/components/Credit/Credit.d.ts +5 -0
- package/lib/types/components/Credit/Credit.props.d.ts +10 -0
- package/lib/types/components/Credit/index.d.ts +1 -0
- package/lib/types/components/DatePicker/DatePicker.d.ts +6 -0
- package/lib/types/components/DatePicker/DatePicker.props.d.ts +21 -0
- package/lib/types/components/DatePicker/index.d.ts +1 -0
- package/lib/types/components/Dropdown/Dropdown.d.ts +7 -0
- package/lib/types/components/Dropdown/Dropdown.props.d.ts +43 -0
- package/lib/types/components/Dropdown/index.d.ts +1 -0
- package/lib/types/components/Empty/Empty.d.ts +5 -0
- package/lib/types/components/Empty/Empty.props.d.ts +12 -0
- package/lib/types/components/Empty/index.d.ts +1 -0
- package/lib/types/components/Fieldset/Fieldset.d.ts +11 -0
- package/lib/types/components/Fieldset/Fieldset.props.d.ts +28 -0
- package/lib/types/components/Fieldset/index.d.ts +1 -0
- package/lib/types/components/FileUpload/FileUpload.d.ts +7 -0
- package/lib/types/components/FileUpload/FileUpload.props.d.ts +17 -0
- package/lib/types/components/FileUpload/index.d.ts +1 -0
- package/lib/types/components/Footer/Footer.d.ts +5 -0
- package/lib/types/components/Footer/Footer.props.d.ts +49 -0
- package/lib/types/components/Footer/index.d.ts +1 -0
- package/lib/types/components/Form/Form.d.ts +4 -0
- package/lib/types/components/Form/Form.props.d.ts +7 -0
- package/lib/types/components/Form/index.d.ts +2 -0
- package/lib/types/components/FormControl/FormControl.d.ts +10 -0
- package/lib/types/components/FormControl/FormControl.props.d.ts +56 -0
- package/lib/types/components/FormControl/index.d.ts +2 -0
- package/lib/types/components/FormElement/FormElement.d.ts +5 -0
- package/lib/types/components/FormElement/FormElement.props.d.ts +48 -0
- package/lib/types/components/FormElement/index.d.ts +1 -0
- package/lib/types/components/GlobalProvider/GlobalCtx.d.ts +3 -0
- package/lib/types/components/GlobalProvider/GlobalProvider.d.ts +5 -0
- package/lib/types/components/GlobalProvider/GlobalProvider.props.d.ts +14 -0
- package/lib/types/components/GlobalProvider/index.d.ts +2 -0
- package/lib/types/components/Heading/Heading.d.ts +5 -0
- package/lib/types/components/Heading/Heading.props.d.ts +21 -0
- package/lib/types/components/Heading/index.d.ts +1 -0
- package/lib/types/components/Hero/Hero.d.ts +5 -0
- package/lib/types/components/Hero/Hero.props.d.ts +52 -0
- package/lib/types/components/Hero/HeroCard.d.ts +5 -0
- package/lib/types/components/Hero/HeroCard.props.d.ts +45 -0
- package/lib/types/components/Hero/index.d.ts +2 -0
- package/lib/types/components/Icon/Icon.d.ts +5 -0
- package/lib/types/components/Icon/Icon.props.d.ts +14 -0
- package/lib/types/components/Icon/index.d.ts +1 -0
- package/lib/types/components/Image/Image.d.ts +5 -0
- package/lib/types/components/Image/Image.props.d.ts +37 -0
- package/lib/types/components/Image/index.d.ts +1 -0
- package/lib/types/components/Input/Input.d.ts +5 -0
- package/lib/types/components/Input/Input.props.d.ts +53 -0
- package/lib/types/components/Input/index.d.ts +1 -0
- package/lib/types/components/Link/Link.d.ts +5 -0
- package/lib/types/components/Link/Link.props.d.ts +33 -0
- package/lib/types/components/Link/index.d.ts +1 -0
- package/lib/types/components/LinkList/LinkList.d.ts +5 -0
- package/lib/types/components/LinkList/LinkList.props.d.ts +44 -0
- package/lib/types/components/LinkList/index.d.ts +1 -0
- package/lib/types/components/List/List.d.ts +5 -0
- package/lib/types/components/List/List.props.d.ts +25 -0
- package/lib/types/components/List/ListItem.d.ts +5 -0
- package/lib/types/components/List/ListItem.props.d.ts +16 -0
- package/lib/types/components/List/index.d.ts +2 -0
- package/lib/types/components/Loading/Loading.d.ts +5 -0
- package/lib/types/components/Loading/Loading.props.d.ts +20 -0
- package/lib/types/components/Loading/index.d.ts +1 -0
- package/lib/types/components/LocalNav/LocalNav.d.ts +5 -0
- package/lib/types/components/LocalNav/LocalNav.props.d.ts +48 -0
- package/lib/types/components/LocalNav/index.d.ts +1 -0
- package/lib/types/components/Logo/Logo.d.ts +5 -0
- package/lib/types/components/Logo/Logo.props.d.ts +55 -0
- package/lib/types/components/Logo/index.d.ts +1 -0
- package/lib/types/components/LogoGrid/LogoGrid.d.ts +5 -0
- package/lib/types/components/LogoGrid/LogoGrid.props.d.ts +24 -0
- package/lib/types/components/LogoGrid/index.d.ts +1 -0
- package/lib/types/components/Navigation/Navigation.d.ts +5 -0
- package/lib/types/components/Navigation/Navigation.props.d.ts +100 -0
- package/lib/types/components/Navigation/index.d.ts +1 -0
- package/lib/types/components/Notification/Notification.d.ts +5 -0
- package/lib/types/components/Notification/Notification.props.d.ts +57 -0
- package/lib/types/components/Notification/index.d.ts +1 -0
- package/lib/types/components/NumberPicker/NumberPicker.d.ts +7 -0
- package/lib/types/components/NumberPicker/NumberPicker.props.d.ts +21 -0
- package/lib/types/components/NumberPicker/index.d.ts +1 -0
- package/lib/types/components/Pagination/Pagination.d.ts +5 -0
- package/lib/types/components/Pagination/Pagination.props.d.ts +54 -0
- package/lib/types/components/Pagination/index.d.ts +1 -0
- package/lib/types/components/Profile/Profile.d.ts +5 -0
- package/lib/types/components/Profile/Profile.props.d.ts +47 -0
- package/lib/types/components/Profile/index.d.ts +1 -0
- package/lib/types/components/Radio/Radio.d.ts +7 -0
- package/lib/types/components/Radio/Radio.props.d.ts +4 -0
- package/lib/types/components/Radio/index.d.ts +2 -0
- package/lib/types/components/ReadMore/ReadMore.d.ts +5 -0
- package/lib/types/components/ReadMore/ReadMore.props.d.ts +32 -0
- package/lib/types/components/ReadMore/index.d.ts +1 -0
- package/lib/types/components/RichText/RichText.d.ts +5 -0
- package/lib/types/components/RichText/RichText.props.d.ts +10 -0
- package/lib/types/components/RichText/index.d.ts +1 -0
- package/lib/types/components/SearchField/SearchField.d.ts +5 -0
- package/lib/types/components/SearchField/SearchField.props.d.ts +30 -0
- package/lib/types/components/SearchField/index.d.ts +1 -0
- package/lib/types/components/SocialMedia/SocialMedia.d.ts +4 -0
- package/lib/types/components/SocialMedia/SocialMedia.props.d.ts +42 -0
- package/lib/types/components/SocialMedia/index.d.ts +3 -0
- package/lib/types/components/TableOfContents/TableOfContents.d.ts +5 -0
- package/lib/types/components/TableOfContents/TableOfContents.props.d.ts +20 -0
- package/lib/types/components/TableOfContents/index.d.ts +1 -0
- package/lib/types/components/Tabs/Tabs.args.d.ts +11 -0
- package/lib/types/components/Tabs/Tabs.d.ts +5 -0
- package/lib/types/components/Tabs/Tabs.props.d.ts +14 -0
- package/lib/types/components/Tabs/index.d.ts +1 -0
- package/lib/types/components/Tag/Tag.d.ts +5 -0
- package/lib/types/components/Tag/Tag.props.d.ts +29 -0
- package/lib/types/components/Tag/TagCtx.d.ts +3 -0
- package/lib/types/components/Tag/TagSet.d.ts +5 -0
- package/lib/types/components/Tag/TagSet.props.d.ts +31 -0
- package/lib/types/components/Tag/index.d.ts +2 -0
- package/lib/types/components/TextInput/TextInput.d.ts +7 -0
- package/lib/types/components/TextInput/TextInput.props.d.ts +17 -0
- package/lib/types/components/TextInput/index.d.ts +2 -0
- package/lib/types/components/Textarea/Textarea.d.ts +7 -0
- package/lib/types/components/Textarea/Textarea.props.d.ts +37 -0
- package/lib/types/components/Textarea/index.d.ts +3 -0
- package/lib/types/components/Toggle/Toggle.d.ts +6 -0
- package/lib/types/components/Toggle/Toggle.props.d.ts +22 -0
- package/lib/types/components/Toggle/index.d.ts +3 -0
- package/lib/types/components/Tooltip/Tooltip.d.ts +5 -0
- package/lib/types/components/Tooltip/Tooltip.props.d.ts +33 -0
- package/lib/types/components/Tooltip/index.d.ts +1 -0
- package/lib/types/components/Video/Video.d.ts +5 -0
- package/lib/types/components/Video/Video.props.d.ts +29 -0
- package/lib/types/components/Video/VideoPlayer.d.ts +4 -0
- package/lib/types/components/Video/VideoPlayer.props.d.ts +43 -0
- package/lib/types/components/Video/index.d.ts +1 -0
- package/lib/types/components/index.d.ts +41 -0
- package/lib/types/hooks/index.d.ts +2 -0
- package/lib/types/hooks/useGlobalSettings.d.ts +4 -0
- package/lib/types/hooks/usePrevious.d.ts +2 -0
- package/lib/types/index.d.ts +2 -0
- package/lib/types/types/index.d.ts +92 -0
- package/lib/types/utils/checkArrayDuplicates.d.ts +1 -0
- package/lib/types/utils/createChainedFunction.d.ts +11 -0
- package/lib/types/utils/getDefaultDimensionValue.d.ts +3 -0
- package/lib/types/utils/hoursMinutesSeconds.d.ts +1 -0
- package/lib/types/utils/index.d.ts +6 -0
- package/lib/types/utils/transitionEndListener.d.ts +1 -0
- package/lib/types/utils/triggerBrowserReflow.d.ts +1 -0
- package/package.json +28 -72
- package/lib/cjs/AccordionCtx-be704051.js +0 -9
- package/lib/cjs/GlobalCtx-10114bdd.js +0 -9
- package/lib/cjs/TagCtx-690a1d54.js +0 -7
- package/lib/cjs/components/Accordion/Accordion.js +0 -47
- package/lib/cjs/components/Accordion/AccordionButton.js +0 -34
- package/lib/cjs/components/Accordion/AccordionItem.js +0 -21
- package/lib/cjs/components/Accordion/AccordionPanel.js +0 -30
- package/lib/cjs/components/Accordion/index.js +0 -22
- package/lib/cjs/components/Breadcrumb/Breadcrumb.js +0 -189
- package/lib/cjs/components/Breadcrumb/index.js +0 -14
- package/lib/cjs/components/Button/Button.js +0 -36
- package/lib/cjs/components/Button/index.js +0 -48
- package/lib/cjs/components/Callout/Callout.js +0 -47
- package/lib/cjs/components/Callout/index.js +0 -30
- package/lib/cjs/components/Cards/CardGroup/CardGroup.js +0 -47
- package/lib/cjs/components/Cards/CardGroup/index.js +0 -800
- package/lib/cjs/components/Cards/DataCard/DataCard.js +0 -27
- package/lib/cjs/components/Cards/DataCard/index.js +0 -81
- package/lib/cjs/components/Cards/DetailCard/DetailCard.js +0 -20
- package/lib/cjs/components/Cards/DetailCard/index.js +0 -25
- package/lib/cjs/components/Cards/FactlistCard/FactListCard.js +0 -22
- package/lib/cjs/components/Cards/FactlistCard/index.js +0 -24
- package/lib/cjs/components/Cards/FeatureCard/FeatureCard.js +0 -24
- package/lib/cjs/components/Cards/FeatureCard/index.js +0 -39
- package/lib/cjs/components/Cards/MultilinkCard/MultiLinkCard.js +0 -25
- package/lib/cjs/components/Cards/MultilinkCard/index.js +0 -43
- package/lib/cjs/components/Cards/PromoCard/PromoCard.js +0 -23
- package/lib/cjs/components/Cards/PromoCard/index.js +0 -26
- package/lib/cjs/components/Cards/StatCard/StatCard.js +0 -21
- package/lib/cjs/components/Cards/StatCard/index.js +0 -23
- package/lib/cjs/components/Cards/TextCard/TextCard.js +0 -23
- package/lib/cjs/components/Cards/TextCard/index.js +0 -30
- package/lib/cjs/components/Checkbox/Checkbox.js +0 -46
- package/lib/cjs/components/Checkbox/index.js +0 -39
- package/lib/cjs/components/Collapse/Collapse.js +0 -1853
- package/lib/cjs/components/Collapse/index.js +0 -17
- package/lib/cjs/components/ContextMenu/ContextMenu.js +0 -20
- package/lib/cjs/components/ContextMenu/index.js +0 -13
- package/lib/cjs/components/Credit/Credit.js +0 -33
- package/lib/cjs/components/Credit/index.js +0 -13
- package/lib/cjs/components/DatePicker/DatePicker.js +0 -37
- package/lib/cjs/components/DatePicker/index.js +0 -17
- package/lib/cjs/components/Dropdown/Dropdown.js +0 -39
- package/lib/cjs/components/Dropdown/index.js +0 -17
- package/lib/cjs/components/Empty/Empty.js +0 -19
- package/lib/cjs/components/Empty/index.js +0 -13
- package/lib/cjs/components/Fieldset/Fieldset.js +0 -48
- package/lib/cjs/components/Fieldset/index.js +0 -15
- package/lib/cjs/components/FileUpload/FileUpload.js +0 -49
- package/lib/cjs/components/FileUpload/index.js +0 -17
- package/lib/cjs/components/Footer/Footer.js +0 -24
- package/lib/cjs/components/Footer/index.js +0 -20
- package/lib/cjs/components/Form/Form.js +0 -19
- package/lib/cjs/components/Form/index.js +0 -21
- package/lib/cjs/components/FormControl/FormControl.js +0 -79
- package/lib/cjs/components/FormControl/index.js +0 -16
- package/lib/cjs/components/FormElement/FormElement.js +0 -19
- package/lib/cjs/components/FormElement/index.js +0 -8
- package/lib/cjs/components/GlobalProvider/GlobalProvider.js +0 -18
- package/lib/cjs/components/GlobalProvider/index.js +0 -11
- package/lib/cjs/components/Heading/Heading.js +0 -22
- package/lib/cjs/components/Heading/index.js +0 -13
- package/lib/cjs/components/Hero/Hero.js +0 -37
- package/lib/cjs/components/Hero/HeroCard.js +0 -35
- package/lib/cjs/components/Hero/index.js +0 -21
- package/lib/cjs/components/Icon/Icon.js +0 -43
- package/lib/cjs/components/Icon/index.js +0 -13
- package/lib/cjs/components/Image/Image.js +0 -31
- package/lib/cjs/components/Image/index.js +0 -14
- package/lib/cjs/components/Input/Input.js +0 -32
- package/lib/cjs/components/Input/index.js +0 -17
- package/lib/cjs/components/Link/Link.js +0 -23
- package/lib/cjs/components/Link/index.js +0 -13
- package/lib/cjs/components/LinkList/LinkList.js +0 -22
- package/lib/cjs/components/LinkList/index.js +0 -13
- package/lib/cjs/components/List/List.js +0 -23
- package/lib/cjs/components/List/ListItem.js +0 -18
- package/lib/cjs/components/List/index.js +0 -15
- package/lib/cjs/components/Loading/Loading.js +0 -21
- package/lib/cjs/components/Loading/index.js +0 -13
- package/lib/cjs/components/LocalNav/LocalNav.js +0 -98
- package/lib/cjs/components/LocalNav/index.js +0 -15
- package/lib/cjs/components/Logo/Logo.js +0 -153
- package/lib/cjs/components/Logo/index.js +0 -13
- package/lib/cjs/components/LogoGrid/LogoGrid.js +0 -30
- package/lib/cjs/components/LogoGrid/index.js +0 -13
- package/lib/cjs/components/Navigation/Navigation.js +0 -83
- package/lib/cjs/components/Navigation/index.js +0 -22
- package/lib/cjs/components/Notification/Notification.js +0 -41
- package/lib/cjs/components/Notification/index.js +0 -17
- package/lib/cjs/components/NumberPicker/NumberPicker.js +0 -37
- package/lib/cjs/components/NumberPicker/index.js +0 -17
- package/lib/cjs/components/Pagination/Pagination.js +0 -49
- package/lib/cjs/components/Pagination/index.js +0 -13
- package/lib/cjs/components/Profile/Profile.js +0 -21
- package/lib/cjs/components/Profile/index.js +0 -13
- package/lib/cjs/components/Radio/Radio.js +0 -47
- package/lib/cjs/components/Radio/index.js +0 -29
- package/lib/cjs/components/ReadMore/ReadMore.js +0 -38
- package/lib/cjs/components/ReadMore/index.js +0 -14
- package/lib/cjs/components/RichText/RichText.js +0 -19
- package/lib/cjs/components/RichText/index.js +0 -13
- package/lib/cjs/components/SearchField/SearchField.js +0 -48
- package/lib/cjs/components/SearchField/index.js +0 -20
- package/lib/cjs/components/SocialMedia/SocialMedia.js +0 -26
- package/lib/cjs/components/SocialMedia/index.js +0 -58
- package/lib/cjs/components/TableOfContents/TableOfContents.js +0 -22
- package/lib/cjs/components/TableOfContents/index.js +0 -13
- package/lib/cjs/components/Tabs/Tabs.args.js +0 -156
- package/lib/cjs/components/Tabs/Tabs.js +0 -24
- package/lib/cjs/components/Tabs/index.js +0 -15
- package/lib/cjs/components/Tag/Tag.js +0 -54
- package/lib/cjs/components/Tag/TagSet.js +0 -46
- package/lib/cjs/components/Tag/index.js +0 -20
- package/lib/cjs/components/TextInput/TextInput.js +0 -30
- package/lib/cjs/components/TextInput/index.js +0 -52
- package/lib/cjs/components/Textarea/Textarea.js +0 -32
- package/lib/cjs/components/Textarea/index.js +0 -38
- package/lib/cjs/components/Toggle/Toggle.js +0 -33
- package/lib/cjs/components/Toggle/index.js +0 -51
- package/lib/cjs/components/Tooltip/Tooltip.js +0 -73
- package/lib/cjs/components/Tooltip/index.js +0 -14
- package/lib/cjs/components/Video/Video.js +0 -26
- package/lib/cjs/components/Video/VideoPlayer.js +0 -59
- package/lib/cjs/components/Video/index.js +0 -16
- package/lib/cjs/components/index.js +0 -135
- package/lib/cjs/css-9c93400b.js +0 -81
- package/lib/cjs/hooks/index.js +0 -11
- package/lib/cjs/hooks/useGlobalSettings.js +0 -13
- package/lib/cjs/hooks/usePrevious.js +0 -20
- package/lib/cjs/utils/checkArrayDuplicates.js +0 -7
- package/lib/cjs/utils/createChainedFunction.js +0 -30
- package/lib/cjs/utils/getDefaultDimensionValue.js +0 -22
- package/lib/cjs/utils/hoursMinutesSeconds.js +0 -12
- package/lib/cjs/utils/index.js +0 -18
- package/lib/cjs/utils/transitionEndListener.js +0 -161
- package/lib/cjs/utils/triggerBrowserReflow.js +0 -8
- package/lib/esm/AccordionCtx-8c051900.js +0 -6
- package/lib/esm/GlobalCtx-7fb23cfa.js +0 -7
- package/lib/esm/TagCtx-34c545fe.js +0 -5
- package/lib/esm/components/Accordion/Accordion.js +0 -45
- package/lib/esm/components/Accordion/AccordionButton.js +0 -32
- package/lib/esm/components/Accordion/AccordionItem.js +0 -19
- package/lib/esm/components/Accordion/AccordionPanel.js +0 -28
- package/lib/esm/components/Accordion/index.js +0 -13
- package/lib/esm/components/Breadcrumb/Breadcrumb.js +0 -187
- package/lib/esm/components/Breadcrumb/index.js +0 -8
- package/lib/esm/components/Button/Button.js +0 -34
- package/lib/esm/components/Button/index.js +0 -45
- package/lib/esm/components/Callout/Callout.js +0 -45
- package/lib/esm/components/Callout/index.js +0 -27
- package/lib/esm/components/Cards/CardGroup/CardGroup.js +0 -45
- package/lib/esm/components/Cards/CardGroup/index.js +0 -797
- package/lib/esm/components/Cards/DataCard/DataCard.js +0 -25
- package/lib/esm/components/Cards/DataCard/index.js +0 -78
- package/lib/esm/components/Cards/DetailCard/DetailCard.js +0 -18
- package/lib/esm/components/Cards/DetailCard/index.js +0 -22
- package/lib/esm/components/Cards/FactlistCard/FactListCard.js +0 -20
- package/lib/esm/components/Cards/FactlistCard/index.js +0 -21
- package/lib/esm/components/Cards/FeatureCard/FeatureCard.js +0 -22
- package/lib/esm/components/Cards/FeatureCard/index.js +0 -36
- package/lib/esm/components/Cards/MultilinkCard/MultiLinkCard.js +0 -23
- package/lib/esm/components/Cards/MultilinkCard/index.js +0 -40
- package/lib/esm/components/Cards/PromoCard/PromoCard.js +0 -21
- package/lib/esm/components/Cards/PromoCard/index.js +0 -23
- package/lib/esm/components/Cards/StatCard/StatCard.js +0 -19
- package/lib/esm/components/Cards/StatCard/index.js +0 -20
- package/lib/esm/components/Cards/TextCard/TextCard.js +0 -21
- package/lib/esm/components/Cards/TextCard/index.js +0 -27
- package/lib/esm/components/Checkbox/Checkbox.js +0 -44
- package/lib/esm/components/Checkbox/index.js +0 -36
- package/lib/esm/components/Collapse/Collapse.js +0 -1851
- package/lib/esm/components/Collapse/index.js +0 -11
- package/lib/esm/components/ContextMenu/ContextMenu.js +0 -18
- package/lib/esm/components/ContextMenu/index.js +0 -7
- package/lib/esm/components/Credit/Credit.js +0 -31
- package/lib/esm/components/Credit/index.js +0 -7
- package/lib/esm/components/DatePicker/DatePicker.js +0 -35
- package/lib/esm/components/DatePicker/index.js +0 -11
- package/lib/esm/components/Dropdown/Dropdown.js +0 -37
- package/lib/esm/components/Dropdown/index.js +0 -11
- package/lib/esm/components/Empty/Empty.js +0 -17
- package/lib/esm/components/Empty/index.js +0 -7
- package/lib/esm/components/Fieldset/Fieldset.js +0 -42
- package/lib/esm/components/Fieldset/index.js +0 -9
- package/lib/esm/components/FileUpload/FileUpload.js +0 -47
- package/lib/esm/components/FileUpload/index.js +0 -11
- package/lib/esm/components/Footer/Footer.js +0 -22
- package/lib/esm/components/Footer/index.js +0 -14
- package/lib/esm/components/Form/Form.js +0 -17
- package/lib/esm/components/Form/index.js +0 -18
- package/lib/esm/components/FormControl/FormControl.js +0 -73
- package/lib/esm/components/FormControl/index.js +0 -10
- package/lib/esm/components/FormElement/FormElement.js +0 -17
- package/lib/esm/components/FormElement/index.js +0 -2
- package/lib/esm/components/GlobalProvider/GlobalProvider.js +0 -16
- package/lib/esm/components/GlobalProvider/index.js +0 -4
- package/lib/esm/components/Heading/Heading.js +0 -20
- package/lib/esm/components/Heading/index.js +0 -7
- package/lib/esm/components/Hero/Hero.js +0 -35
- package/lib/esm/components/Hero/HeroCard.js +0 -33
- package/lib/esm/components/Hero/index.js +0 -14
- package/lib/esm/components/Icon/Icon.js +0 -22
- package/lib/esm/components/Icon/index.js +0 -7
- package/lib/esm/components/Image/Image.js +0 -29
- package/lib/esm/components/Image/index.js +0 -8
- package/lib/esm/components/Input/Input.js +0 -30
- package/lib/esm/components/Input/index.js +0 -11
- package/lib/esm/components/Link/Link.js +0 -21
- package/lib/esm/components/Link/index.js +0 -7
- package/lib/esm/components/LinkList/LinkList.js +0 -20
- package/lib/esm/components/LinkList/index.js +0 -7
- package/lib/esm/components/List/List.js +0 -21
- package/lib/esm/components/List/ListItem.js +0 -16
- package/lib/esm/components/List/index.js +0 -8
- package/lib/esm/components/Loading/Loading.js +0 -19
- package/lib/esm/components/Loading/index.js +0 -7
- package/lib/esm/components/LocalNav/LocalNav.js +0 -96
- package/lib/esm/components/LocalNav/index.js +0 -9
- package/lib/esm/components/Logo/Logo.js +0 -151
- package/lib/esm/components/Logo/index.js +0 -7
- package/lib/esm/components/LogoGrid/LogoGrid.js +0 -28
- package/lib/esm/components/LogoGrid/index.js +0 -7
- package/lib/esm/components/Navigation/Navigation.js +0 -81
- package/lib/esm/components/Navigation/index.js +0 -16
- package/lib/esm/components/Notification/Notification.js +0 -39
- package/lib/esm/components/Notification/index.js +0 -11
- package/lib/esm/components/NumberPicker/NumberPicker.js +0 -35
- package/lib/esm/components/NumberPicker/index.js +0 -11
- package/lib/esm/components/Pagination/Pagination.js +0 -47
- package/lib/esm/components/Pagination/index.js +0 -7
- package/lib/esm/components/Profile/Profile.js +0 -19
- package/lib/esm/components/Profile/index.js +0 -7
- package/lib/esm/components/Radio/Radio.js +0 -45
- package/lib/esm/components/Radio/index.js +0 -26
- package/lib/esm/components/ReadMore/ReadMore.js +0 -36
- package/lib/esm/components/ReadMore/index.js +0 -8
- package/lib/esm/components/RichText/RichText.js +0 -17
- package/lib/esm/components/RichText/index.js +0 -7
- package/lib/esm/components/SearchField/SearchField.js +0 -46
- package/lib/esm/components/SearchField/index.js +0 -14
- package/lib/esm/components/SocialMedia/SocialMedia.js +0 -24
- package/lib/esm/components/SocialMedia/index.js +0 -55
- package/lib/esm/components/TableOfContents/TableOfContents.js +0 -20
- package/lib/esm/components/TableOfContents/index.js +0 -7
- package/lib/esm/components/Tabs/Tabs.args.js +0 -154
- package/lib/esm/components/Tabs/Tabs.js +0 -22
- package/lib/esm/components/Tabs/index.js +0 -9
- package/lib/esm/components/Tag/Tag.js +0 -52
- package/lib/esm/components/Tag/TagSet.js +0 -44
- package/lib/esm/components/Tag/index.js +0 -13
- package/lib/esm/components/TextInput/TextInput.js +0 -28
- package/lib/esm/components/TextInput/index.js +0 -49
- package/lib/esm/components/Textarea/Textarea.js +0 -30
- package/lib/esm/components/Textarea/index.js +0 -35
- package/lib/esm/components/Toggle/Toggle.js +0 -31
- package/lib/esm/components/Toggle/index.js +0 -48
- package/lib/esm/components/Tooltip/Tooltip.js +0 -71
- package/lib/esm/components/Tooltip/index.js +0 -8
- package/lib/esm/components/Video/Video.js +0 -24
- package/lib/esm/components/Video/VideoPlayer.js +0 -57
- package/lib/esm/components/Video/index.js +0 -10
- package/lib/esm/components/index.js +0 -86
- package/lib/esm/css-7414f50b.js +0 -79
- package/lib/esm/hooks/index.js +0 -5
- package/lib/esm/hooks/useGlobalSettings.js +0 -11
- package/lib/esm/hooks/usePrevious.js +0 -15
- package/lib/esm/utils/checkArrayDuplicates.js +0 -5
- package/lib/esm/utils/createChainedFunction.js +0 -28
- package/lib/esm/utils/getDefaultDimensionValue.js +0 -20
- package/lib/esm/utils/hoursMinutesSeconds.js +0 -10
- package/lib/esm/utils/index.js +0 -7
- package/lib/esm/utils/transitionEndListener.js +0 -159
- package/lib/esm/utils/triggerBrowserReflow.js +0 -6
- package/lib/types/react/src/components/Accordion/Accordion.d.ts +0 -4
- package/lib/types/react/src/components/Accordion/Accordion.props.d.ts +0 -33
- package/lib/types/react/src/components/Accordion/AccordionButton.d.ts +0 -4
- package/lib/types/react/src/components/Accordion/AccordionButton.props.d.ts +0 -11
- package/lib/types/react/src/components/Accordion/AccordionCtx.d.ts +0 -4
- package/lib/types/react/src/components/Accordion/AccordionItem.d.ts +0 -4
- package/lib/types/react/src/components/Accordion/AccordionItem.props.d.ts +0 -21
- package/lib/types/react/src/components/Accordion/AccordionPanel.d.ts +0 -4
- package/lib/types/react/src/components/Accordion/AccordionPanel.props.d.ts +0 -21
- package/lib/types/react/src/components/Accordion/index.d.ts +0 -4
- package/lib/types/react/src/components/Breadcrumb/Breadcrumb.d.ts +0 -4
- package/lib/types/react/src/components/Breadcrumb/Breadcrumb.props.d.ts +0 -32
- package/lib/types/react/src/components/Breadcrumb/index.d.ts +0 -1
- package/lib/types/react/src/components/Button/Button.args.d.ts +0 -11
- package/lib/types/react/src/components/Button/Button.d.ts +0 -4
- package/lib/types/react/src/components/Button/Button.props.d.ts +0 -68
- package/lib/types/react/src/components/Button/index.d.ts +0 -2
- package/lib/types/react/src/components/Callout/Callout.args.d.ts +0 -8
- package/lib/types/react/src/components/Callout/Callout.d.ts +0 -4
- package/lib/types/react/src/components/Callout/Callout.props.d.ts +0 -50
- package/lib/types/react/src/components/Callout/index.d.ts +0 -2
- package/lib/types/react/src/components/Cards/CardGroup/CardGroup.args.d.ts +0 -13
- package/lib/types/react/src/components/Cards/CardGroup/CardGroup.d.ts +0 -4
- package/lib/types/react/src/components/Cards/CardGroup/CardGroup.props.d.ts +0 -84
- package/lib/types/react/src/components/Cards/CardGroup/index.d.ts +0 -3
- package/lib/types/react/src/components/Cards/DataCard/DataCard.args.d.ts +0 -2
- package/lib/types/react/src/components/Cards/DataCard/DataCard.d.ts +0 -4
- package/lib/types/react/src/components/Cards/DataCard/DataCard.props.d.ts +0 -50
- package/lib/types/react/src/components/Cards/DataCard/index.d.ts +0 -3
- package/lib/types/react/src/components/Cards/DetailCard/DetailCard.args.d.ts +0 -3
- package/lib/types/react/src/components/Cards/DetailCard/DetailCard.d.ts +0 -4
- package/lib/types/react/src/components/Cards/DetailCard/DetailCard.props.d.ts +0 -39
- package/lib/types/react/src/components/Cards/DetailCard/index.d.ts +0 -3
- package/lib/types/react/src/components/Cards/FactlistCard/FactListCard.args.d.ts +0 -3
- package/lib/types/react/src/components/Cards/FactlistCard/FactListCard.d.ts +0 -4
- package/lib/types/react/src/components/Cards/FactlistCard/FactListCard.props.d.ts +0 -20
- package/lib/types/react/src/components/Cards/FactlistCard/index.d.ts +0 -3
- package/lib/types/react/src/components/Cards/FeatureCard/FeatureCard.args.d.ts +0 -3
- package/lib/types/react/src/components/Cards/FeatureCard/FeatureCard.d.ts +0 -4
- package/lib/types/react/src/components/Cards/FeatureCard/FeatureCard.props.d.ts +0 -35
- package/lib/types/react/src/components/Cards/FeatureCard/index.d.ts +0 -3
- package/lib/types/react/src/components/Cards/MultilinkCard/MultiLinkCard.d.ts +0 -4
- package/lib/types/react/src/components/Cards/MultilinkCard/MultilinkCard.args.d.ts +0 -2
- package/lib/types/react/src/components/Cards/MultilinkCard/MultilinkCard.props.d.ts +0 -29
- package/lib/types/react/src/components/Cards/MultilinkCard/index.d.ts +0 -3
- package/lib/types/react/src/components/Cards/PromoCard/PromoCard.args.d.ts +0 -3
- package/lib/types/react/src/components/Cards/PromoCard/PromoCard.d.ts +0 -4
- package/lib/types/react/src/components/Cards/PromoCard/PromoCard.props.d.ts +0 -34
- package/lib/types/react/src/components/Cards/PromoCard/index.d.ts +0 -3
- package/lib/types/react/src/components/Cards/StatCard/StatCard.args.d.ts +0 -3
- package/lib/types/react/src/components/Cards/StatCard/StatCard.d.ts +0 -4
- package/lib/types/react/src/components/Cards/StatCard/StatCard.props.d.ts +0 -25
- package/lib/types/react/src/components/Cards/StatCard/index.d.ts +0 -3
- package/lib/types/react/src/components/Cards/TextCard/TextCard.args.d.ts +0 -3
- package/lib/types/react/src/components/Cards/TextCard/TextCard.d.ts +0 -4
- package/lib/types/react/src/components/Cards/TextCard/TextCard.props.d.ts +0 -30
- package/lib/types/react/src/components/Cards/TextCard/index.d.ts +0 -3
- package/lib/types/react/src/components/Checkbox/Checkbox.args.d.ts +0 -52
- package/lib/types/react/src/components/Checkbox/Checkbox.d.ts +0 -6
- package/lib/types/react/src/components/Checkbox/Checkbox.props.d.ts +0 -4
- package/lib/types/react/src/components/Checkbox/index.d.ts +0 -2
- package/lib/types/react/src/components/Collapse/Collapse.d.ts +0 -3
- package/lib/types/react/src/components/Collapse/Collapse.props.d.ts +0 -76
- package/lib/types/react/src/components/Collapse/index.d.ts +0 -1
- package/lib/types/react/src/components/ContextMenu/ContextMenu.d.ts +0 -4
- package/lib/types/react/src/components/ContextMenu/ContextMenu.props.d.ts +0 -24
- package/lib/types/react/src/components/ContextMenu/index.d.ts +0 -1
- package/lib/types/react/src/components/Credit/Credit.d.ts +0 -4
- package/lib/types/react/src/components/Credit/Credit.props.d.ts +0 -10
- package/lib/types/react/src/components/Credit/index.d.ts +0 -1
- package/lib/types/react/src/components/DatePicker/DatePicker.d.ts +0 -5
- package/lib/types/react/src/components/DatePicker/DatePicker.props.d.ts +0 -21
- package/lib/types/react/src/components/DatePicker/index.d.ts +0 -1
- package/lib/types/react/src/components/Dropdown/Dropdown.d.ts +0 -6
- package/lib/types/react/src/components/Dropdown/Dropdown.props.d.ts +0 -43
- package/lib/types/react/src/components/Dropdown/index.d.ts +0 -1
- package/lib/types/react/src/components/Empty/Empty.d.ts +0 -4
- package/lib/types/react/src/components/Empty/Empty.props.d.ts +0 -11
- package/lib/types/react/src/components/Empty/index.d.ts +0 -1
- package/lib/types/react/src/components/Fieldset/Fieldset.d.ts +0 -10
- package/lib/types/react/src/components/Fieldset/Fieldset.props.d.ts +0 -27
- package/lib/types/react/src/components/Fieldset/index.d.ts +0 -1
- package/lib/types/react/src/components/FileUpload/FileUpload.d.ts +0 -6
- package/lib/types/react/src/components/FileUpload/FileUpload.props.d.ts +0 -17
- package/lib/types/react/src/components/FileUpload/index.d.ts +0 -1
- package/lib/types/react/src/components/Footer/Footer.d.ts +0 -4
- package/lib/types/react/src/components/Footer/Footer.props.d.ts +0 -49
- package/lib/types/react/src/components/Footer/index.d.ts +0 -1
- package/lib/types/react/src/components/Form/Form.args.d.ts +0 -2
- package/lib/types/react/src/components/Form/Form.d.ts +0 -3
- package/lib/types/react/src/components/Form/Form.props.d.ts +0 -7
- package/lib/types/react/src/components/Form/index.d.ts +0 -2
- package/lib/types/react/src/components/FormControl/FormControl.d.ts +0 -9
- package/lib/types/react/src/components/FormControl/FormControl.props.d.ts +0 -55
- package/lib/types/react/src/components/FormControl/index.d.ts +0 -2
- package/lib/types/react/src/components/FormElement/FormElement.d.ts +0 -4
- package/lib/types/react/src/components/FormElement/FormElement.props.d.ts +0 -47
- package/lib/types/react/src/components/FormElement/index.d.ts +0 -1
- package/lib/types/react/src/components/GlobalProvider/GlobalCtx.d.ts +0 -2
- package/lib/types/react/src/components/GlobalProvider/GlobalProvider.d.ts +0 -4
- package/lib/types/react/src/components/GlobalProvider/GlobalProvider.props.d.ts +0 -13
- package/lib/types/react/src/components/GlobalProvider/index.d.ts +0 -2
- package/lib/types/react/src/components/Heading/Heading.d.ts +0 -4
- package/lib/types/react/src/components/Heading/Heading.props.d.ts +0 -20
- package/lib/types/react/src/components/Heading/index.d.ts +0 -1
- package/lib/types/react/src/components/Hero/Hero.d.ts +0 -4
- package/lib/types/react/src/components/Hero/Hero.props.d.ts +0 -51
- package/lib/types/react/src/components/Hero/HeroCard.d.ts +0 -4
- package/lib/types/react/src/components/Hero/HeroCard.props.d.ts +0 -44
- package/lib/types/react/src/components/Hero/index.d.ts +0 -2
- package/lib/types/react/src/components/Icon/Icon.d.ts +0 -4
- package/lib/types/react/src/components/Icon/Icon.props.d.ts +0 -14
- package/lib/types/react/src/components/Icon/index.d.ts +0 -1
- package/lib/types/react/src/components/Image/Image.d.ts +0 -4
- package/lib/types/react/src/components/Image/Image.props.d.ts +0 -37
- package/lib/types/react/src/components/Image/index.d.ts +0 -1
- package/lib/types/react/src/components/Input/Input.d.ts +0 -4
- package/lib/types/react/src/components/Input/Input.props.d.ts +0 -52
- package/lib/types/react/src/components/Input/index.d.ts +0 -1
- package/lib/types/react/src/components/Link/Link.d.ts +0 -4
- package/lib/types/react/src/components/Link/Link.props.d.ts +0 -32
- package/lib/types/react/src/components/Link/index.d.ts +0 -1
- package/lib/types/react/src/components/LinkList/LinkList.d.ts +0 -4
- package/lib/types/react/src/components/LinkList/LinkList.props.d.ts +0 -43
- package/lib/types/react/src/components/LinkList/index.d.ts +0 -1
- package/lib/types/react/src/components/List/List.d.ts +0 -4
- package/lib/types/react/src/components/List/List.props.d.ts +0 -24
- package/lib/types/react/src/components/List/ListItem.d.ts +0 -4
- package/lib/types/react/src/components/List/ListItem.props.d.ts +0 -15
- package/lib/types/react/src/components/List/index.d.ts +0 -2
- package/lib/types/react/src/components/Loading/Loading.d.ts +0 -4
- package/lib/types/react/src/components/Loading/Loading.props.d.ts +0 -19
- package/lib/types/react/src/components/Loading/index.d.ts +0 -1
- package/lib/types/react/src/components/LocalNav/LocalNav.d.ts +0 -4
- package/lib/types/react/src/components/LocalNav/LocalNav.props.d.ts +0 -47
- package/lib/types/react/src/components/LocalNav/index.d.ts +0 -1
- package/lib/types/react/src/components/Logo/Logo.d.ts +0 -4
- package/lib/types/react/src/components/Logo/Logo.props.d.ts +0 -55
- package/lib/types/react/src/components/Logo/index.d.ts +0 -1
- package/lib/types/react/src/components/LogoGrid/LogoGrid.d.ts +0 -4
- package/lib/types/react/src/components/LogoGrid/LogoGrid.props.d.ts +0 -24
- package/lib/types/react/src/components/LogoGrid/index.d.ts +0 -1
- package/lib/types/react/src/components/Navigation/Navigation.d.ts +0 -4
- package/lib/types/react/src/components/Navigation/Navigation.props.d.ts +0 -99
- package/lib/types/react/src/components/Navigation/index.d.ts +0 -1
- package/lib/types/react/src/components/Notification/Notification.d.ts +0 -4
- package/lib/types/react/src/components/Notification/Notification.props.d.ts +0 -56
- package/lib/types/react/src/components/Notification/index.d.ts +0 -1
- package/lib/types/react/src/components/NumberPicker/NumberPicker.d.ts +0 -6
- package/lib/types/react/src/components/NumberPicker/NumberPicker.props.d.ts +0 -21
- package/lib/types/react/src/components/NumberPicker/index.d.ts +0 -1
- package/lib/types/react/src/components/Pagination/Pagination.d.ts +0 -4
- package/lib/types/react/src/components/Pagination/Pagination.props.d.ts +0 -54
- package/lib/types/react/src/components/Pagination/index.d.ts +0 -1
- package/lib/types/react/src/components/Profile/Profile.d.ts +0 -4
- package/lib/types/react/src/components/Profile/Profile.props.d.ts +0 -46
- package/lib/types/react/src/components/Profile/index.d.ts +0 -1
- package/lib/types/react/src/components/Radio/Radio.args.d.ts +0 -8
- package/lib/types/react/src/components/Radio/Radio.d.ts +0 -6
- package/lib/types/react/src/components/Radio/Radio.props.d.ts +0 -4
- package/lib/types/react/src/components/Radio/index.d.ts +0 -2
- package/lib/types/react/src/components/ReadMore/ReadMore.d.ts +0 -4
- package/lib/types/react/src/components/ReadMore/ReadMore.props.d.ts +0 -32
- package/lib/types/react/src/components/ReadMore/index.d.ts +0 -1
- package/lib/types/react/src/components/RichText/RichText.d.ts +0 -4
- package/lib/types/react/src/components/RichText/RichText.props.d.ts +0 -10
- package/lib/types/react/src/components/RichText/index.d.ts +0 -1
- package/lib/types/react/src/components/SearchField/SearchField.d.ts +0 -4
- package/lib/types/react/src/components/SearchField/SearchField.props.d.ts +0 -29
- package/lib/types/react/src/components/SearchField/index.d.ts +0 -1
- package/lib/types/react/src/components/SocialMedia/SocialMedia.args.d.ts +0 -4
- package/lib/types/react/src/components/SocialMedia/SocialMedia.d.ts +0 -3
- package/lib/types/react/src/components/SocialMedia/SocialMedia.props.d.ts +0 -41
- package/lib/types/react/src/components/SocialMedia/index.d.ts +0 -3
- package/lib/types/react/src/components/TableOfContents/TableOfContents.d.ts +0 -4
- package/lib/types/react/src/components/TableOfContents/TableOfContents.props.d.ts +0 -20
- package/lib/types/react/src/components/TableOfContents/index.d.ts +0 -1
- package/lib/types/react/src/components/Tabs/Tabs.args.d.ts +0 -10
- package/lib/types/react/src/components/Tabs/Tabs.d.ts +0 -4
- package/lib/types/react/src/components/Tabs/Tabs.props.d.ts +0 -12
- package/lib/types/react/src/components/Tabs/index.d.ts +0 -1
- package/lib/types/react/src/components/Tag/Tag.d.ts +0 -4
- package/lib/types/react/src/components/Tag/Tag.props.d.ts +0 -28
- package/lib/types/react/src/components/Tag/TagCtx.d.ts +0 -2
- package/lib/types/react/src/components/Tag/TagSet.d.ts +0 -4
- package/lib/types/react/src/components/Tag/TagSet.props.d.ts +0 -30
- package/lib/types/react/src/components/Tag/index.d.ts +0 -2
- package/lib/types/react/src/components/TextInput/TextInput.args.d.ts +0 -10
- package/lib/types/react/src/components/TextInput/TextInput.d.ts +0 -6
- package/lib/types/react/src/components/TextInput/TextInput.props.d.ts +0 -17
- package/lib/types/react/src/components/TextInput/index.d.ts +0 -2
- package/lib/types/react/src/components/Textarea/Textarea.args.d.ts +0 -10
- package/lib/types/react/src/components/Textarea/Textarea.d.ts +0 -6
- package/lib/types/react/src/components/Textarea/Textarea.props.d.ts +0 -37
- package/lib/types/react/src/components/Textarea/index.d.ts +0 -3
- package/lib/types/react/src/components/Toggle/Toggle.args.d.ts +0 -12
- package/lib/types/react/src/components/Toggle/Toggle.d.ts +0 -5
- package/lib/types/react/src/components/Toggle/Toggle.props.d.ts +0 -22
- package/lib/types/react/src/components/Toggle/index.d.ts +0 -3
- package/lib/types/react/src/components/Tooltip/Tooltip.d.ts +0 -4
- package/lib/types/react/src/components/Tooltip/Tooltip.props.d.ts +0 -31
- package/lib/types/react/src/components/Tooltip/index.d.ts +0 -1
- package/lib/types/react/src/components/Video/Video.d.ts +0 -4
- package/lib/types/react/src/components/Video/Video.props.d.ts +0 -28
- package/lib/types/react/src/components/Video/VideoPlayer.d.ts +0 -4
- package/lib/types/react/src/components/Video/VideoPlayer.props.d.ts +0 -42
- package/lib/types/react/src/components/Video/index.d.ts +0 -1
- package/lib/types/react/src/components/index.d.ts +0 -41
- package/lib/types/react/src/hooks/index.d.ts +0 -1
- package/lib/types/react/src/hooks/useGlobalSettings.d.ts +0 -4
- package/lib/types/react/src/hooks/usePrevious.d.ts +0 -2
- package/lib/types/react/src/index.d.ts +0 -1
- package/lib/types/react/src/types/index.d.ts +0 -91
- package/lib/types/react/src/utils/checkArrayDuplicates.d.ts +0 -1
- package/lib/types/react/src/utils/createChainedFunction.d.ts +0 -11
- package/lib/types/react/src/utils/getDefaultDimensionValue.d.ts +0 -3
- package/lib/types/react/src/utils/hoursMinutesSeconds.d.ts +0 -1
- package/lib/types/react/src/utils/index.d.ts +0 -6
- package/lib/types/react/src/utils/transitionEndListener.d.ts +0 -1
- package/lib/types/react/src/utils/triggerBrowserReflow.d.ts +0 -1
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Safe chained function
|
|
5
|
-
*
|
|
6
|
-
* Will only create a new function if needed,
|
|
7
|
-
* otherwise will pass back existing functions or null.
|
|
8
|
-
*
|
|
9
|
-
* @param {function} functions to chain
|
|
10
|
-
* @returns {function|null}
|
|
11
|
-
*/
|
|
12
|
-
function createChainedFunction(...funcs) {
|
|
13
|
-
return funcs
|
|
14
|
-
.filter((f) => f != null)
|
|
15
|
-
.reduce((acc, f) => {
|
|
16
|
-
if (typeof f !== "function") {
|
|
17
|
-
throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");
|
|
18
|
-
}
|
|
19
|
-
if (acc === null)
|
|
20
|
-
return f;
|
|
21
|
-
return function chainedFunction(...args) {
|
|
22
|
-
// @ts-ignore
|
|
23
|
-
acc.apply(this, args);
|
|
24
|
-
// @ts-ignore
|
|
25
|
-
f.apply(this, args);
|
|
26
|
-
};
|
|
27
|
-
}, null);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
module.exports = createChainedFunction;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var css = require('../css-9c93400b.js');
|
|
4
|
-
|
|
5
|
-
const MARGINS = {
|
|
6
|
-
height: ["marginTop", "marginBottom"],
|
|
7
|
-
width: ["marginLeft", "marginRight"],
|
|
8
|
-
};
|
|
9
|
-
function getDefaultDimensionValue(dimension, elem) {
|
|
10
|
-
const offset = `offset${dimension[0].toUpperCase()}${dimension.slice(1)}`;
|
|
11
|
-
const value = elem[offset];
|
|
12
|
-
const margins = MARGINS[dimension];
|
|
13
|
-
return (
|
|
14
|
-
// @ts-ignore
|
|
15
|
-
value +
|
|
16
|
-
// @ts-ignore
|
|
17
|
-
parseInt(css.style(elem, margins[0]), 10) +
|
|
18
|
-
// @ts-ignore
|
|
19
|
-
parseInt(css.style(elem, margins[1]), 10));
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
module.exports = getDefaultDimensionValue;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
function hoursMinutesSeconds(secs) {
|
|
4
|
-
const hours = Math.floor(secs / 60 / 60);
|
|
5
|
-
const minutes = Math.floor(secs / 60) - Math.floor(hours * 60);
|
|
6
|
-
const seconds = Math.floor(secs % 60);
|
|
7
|
-
return `${hours > 0 ? hours.toString().padStart(2, "0") + ":" : ""}${minutes
|
|
8
|
-
.toString()
|
|
9
|
-
.padStart(2, "0")}:${seconds.toString().padStart(2, "0")}`;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
module.exports = hoursMinutesSeconds;
|
package/lib/cjs/utils/index.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var utils_checkArrayDuplicates = require('./checkArrayDuplicates.js');
|
|
4
|
-
var utils_createChainedFunction = require('./createChainedFunction.js');
|
|
5
|
-
var utils_getDefaultDimensionValue = require('./getDefaultDimensionValue.js');
|
|
6
|
-
var utils_hoursMinutesSeconds = require('./hoursMinutesSeconds.js');
|
|
7
|
-
var utils_transitionEndListener = require('./transitionEndListener.js');
|
|
8
|
-
var utils_triggerBrowserReflow = require('./triggerBrowserReflow.js');
|
|
9
|
-
require('../css-9c93400b.js');
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
exports.checkArrayDuplicates = utils_checkArrayDuplicates.checkArrayDuplicates;
|
|
14
|
-
exports.createChainedFunctions = utils_createChainedFunction;
|
|
15
|
-
exports.getDefaultDimensionValue = utils_getDefaultDimensionValue;
|
|
16
|
-
exports.hoursMinutesSeconds = utils_hoursMinutesSeconds;
|
|
17
|
-
exports.transitionEndListener = utils_transitionEndListener;
|
|
18
|
-
exports.triggerBrowserReflow = utils_triggerBrowserReflow;
|
|
@@ -1,161 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var css = require('../css-9c93400b.js');
|
|
4
|
-
|
|
5
|
-
var canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);
|
|
6
|
-
|
|
7
|
-
/* eslint-disable no-return-assign */
|
|
8
|
-
var optionsSupported = false;
|
|
9
|
-
var onceSupported = false;
|
|
10
|
-
|
|
11
|
-
try {
|
|
12
|
-
var options = {
|
|
13
|
-
get passive() {
|
|
14
|
-
return optionsSupported = true;
|
|
15
|
-
},
|
|
16
|
-
|
|
17
|
-
get once() {
|
|
18
|
-
// eslint-disable-next-line no-multi-assign
|
|
19
|
-
return onceSupported = optionsSupported = true;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
if (canUseDOM) {
|
|
25
|
-
window.addEventListener('test', options, options);
|
|
26
|
-
window.removeEventListener('test', options, true);
|
|
27
|
-
}
|
|
28
|
-
} catch (e) {
|
|
29
|
-
/* */
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* An `addEventListener` ponyfill, supports the `once` option
|
|
34
|
-
*
|
|
35
|
-
* @param node the element
|
|
36
|
-
* @param eventName the event name
|
|
37
|
-
* @param handle the handler
|
|
38
|
-
* @param options event options
|
|
39
|
-
*/
|
|
40
|
-
function addEventListener(node, eventName, handler, options) {
|
|
41
|
-
if (options && typeof options !== 'boolean' && !onceSupported) {
|
|
42
|
-
var once = options.once,
|
|
43
|
-
capture = options.capture;
|
|
44
|
-
var wrappedHandler = handler;
|
|
45
|
-
|
|
46
|
-
if (!onceSupported && once) {
|
|
47
|
-
wrappedHandler = handler.__once || function onceHandler(event) {
|
|
48
|
-
this.removeEventListener(eventName, onceHandler, capture);
|
|
49
|
-
handler.call(this, event);
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
handler.__once = wrappedHandler;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
node.addEventListener(eventName, wrappedHandler, optionsSupported ? options : capture);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
node.addEventListener(eventName, handler, options);
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* A `removeEventListener` ponyfill
|
|
63
|
-
*
|
|
64
|
-
* @param node the element
|
|
65
|
-
* @param eventName the event name
|
|
66
|
-
* @param handle the handler
|
|
67
|
-
* @param options event options
|
|
68
|
-
*/
|
|
69
|
-
function removeEventListener(node, eventName, handler, options) {
|
|
70
|
-
var capture = options && typeof options !== 'boolean' ? options.capture : options;
|
|
71
|
-
node.removeEventListener(eventName, handler, capture);
|
|
72
|
-
|
|
73
|
-
if (handler.__once) {
|
|
74
|
-
node.removeEventListener(eventName, handler.__once, capture);
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
function listen(node, eventName, handler, options) {
|
|
79
|
-
addEventListener(node, eventName, handler, options);
|
|
80
|
-
return function () {
|
|
81
|
-
removeEventListener(node, eventName, handler, options);
|
|
82
|
-
};
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* Triggers an event on a given element.
|
|
87
|
-
*
|
|
88
|
-
* @param node the element
|
|
89
|
-
* @param eventName the event name to trigger
|
|
90
|
-
* @param bubbles whether the event should bubble up
|
|
91
|
-
* @param cancelable whether the event should be cancelable
|
|
92
|
-
*/
|
|
93
|
-
function triggerEvent(node, eventName, bubbles, cancelable) {
|
|
94
|
-
if (bubbles === void 0) {
|
|
95
|
-
bubbles = false;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
if (cancelable === void 0) {
|
|
99
|
-
cancelable = true;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
if (node) {
|
|
103
|
-
var event = document.createEvent('HTMLEvents');
|
|
104
|
-
event.initEvent(eventName, bubbles, cancelable);
|
|
105
|
-
node.dispatchEvent(event);
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
function parseDuration$1(node) {
|
|
110
|
-
var str = css.style(node, 'transitionDuration') || '';
|
|
111
|
-
var mult = str.indexOf('ms') === -1 ? 1000 : 1;
|
|
112
|
-
return parseFloat(str) * mult;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
function emulateTransitionEnd(element, duration, padding) {
|
|
116
|
-
if (padding === void 0) {
|
|
117
|
-
padding = 5;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
var called = false;
|
|
121
|
-
var handle = setTimeout(function () {
|
|
122
|
-
if (!called) triggerEvent(element, 'transitionend', true);
|
|
123
|
-
}, duration + padding);
|
|
124
|
-
var remove = listen(element, 'transitionend', function () {
|
|
125
|
-
called = true;
|
|
126
|
-
}, {
|
|
127
|
-
once: true
|
|
128
|
-
});
|
|
129
|
-
return function () {
|
|
130
|
-
clearTimeout(handle);
|
|
131
|
-
remove();
|
|
132
|
-
};
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
function transitionEnd(element, handler, duration, padding) {
|
|
136
|
-
if (duration == null) duration = parseDuration$1(element) || 0;
|
|
137
|
-
var removeEmulate = emulateTransitionEnd(element, duration, padding);
|
|
138
|
-
var remove = listen(element, 'transitionend', handler);
|
|
139
|
-
return function () {
|
|
140
|
-
removeEmulate();
|
|
141
|
-
remove();
|
|
142
|
-
};
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
function parseDuration(node, property) {
|
|
146
|
-
const str = css.style(node, property) || "";
|
|
147
|
-
const mult = str.indexOf("ms") === -1 ? 1000 : 1;
|
|
148
|
-
return parseFloat(str) * mult;
|
|
149
|
-
}
|
|
150
|
-
function transitionEndListener(element, handler) {
|
|
151
|
-
const duration = parseDuration(element, "transitionDuration");
|
|
152
|
-
const delay = parseDuration(element, "transitionDelay");
|
|
153
|
-
const remove = transitionEnd(element, (e) => {
|
|
154
|
-
if (e.target === element) {
|
|
155
|
-
remove();
|
|
156
|
-
handler(e);
|
|
157
|
-
}
|
|
158
|
-
}, duration + delay);
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
module.exports = transitionEndListener;
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { jsx } from 'react/jsx-runtime';
|
|
2
|
-
import { getUpdatedItems } from '@ilo-org/utils';
|
|
3
|
-
import classNames from 'classnames';
|
|
4
|
-
import { useState, useEffect, Children } from 'react';
|
|
5
|
-
import useGlobalSettings from '../../hooks/useGlobalSettings.js';
|
|
6
|
-
import { checkArrayDuplicates } from '../../utils/checkArrayDuplicates.js';
|
|
7
|
-
import { A as AccordionContext } from '../../AccordionCtx-8c051900.js';
|
|
8
|
-
import 'tslib';
|
|
9
|
-
import '../../GlobalCtx-7fb23cfa.js';
|
|
10
|
-
|
|
11
|
-
const Accordion = ({ children, allowMultipleExpanded = false, onButtonClick, defaultAccordionsExpanded = [], className, }) => {
|
|
12
|
-
const { prefix } = useGlobalSettings();
|
|
13
|
-
const baseClass = `${prefix}--accordion`;
|
|
14
|
-
const [activeItems, setActiveItems] = useState([]);
|
|
15
|
-
const accordionClasses = classNames(className, {
|
|
16
|
-
[baseClass]: true,
|
|
17
|
-
});
|
|
18
|
-
const defaultAccordionsExpandedString = JSON.stringify(defaultAccordionsExpanded);
|
|
19
|
-
useEffect(() => {
|
|
20
|
-
const expandedOnLoad = allowMultipleExpanded
|
|
21
|
-
? defaultAccordionsExpanded
|
|
22
|
-
: defaultAccordionsExpanded.length > 0
|
|
23
|
-
? [defaultAccordionsExpanded[0]]
|
|
24
|
-
: defaultAccordionsExpanded;
|
|
25
|
-
setActiveItems(expandedOnLoad);
|
|
26
|
-
}, [defaultAccordionsExpandedString, allowMultipleExpanded]); //eslint-disable-line react-hooks/exhaustive-deps
|
|
27
|
-
if (children) {
|
|
28
|
-
const ids = [];
|
|
29
|
-
Children.forEach(children, (child) => {
|
|
30
|
-
ids.push(child.props.id);
|
|
31
|
-
});
|
|
32
|
-
if (checkArrayDuplicates(ids)) {
|
|
33
|
-
console.warn("Warning: Accordion items must have unique ids.");
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
return (jsx(AccordionContext.Provider, Object.assign({ value: {
|
|
37
|
-
activeItems,
|
|
38
|
-
setActiveItems,
|
|
39
|
-
getUpdatedItems,
|
|
40
|
-
allowMultipleExpanded,
|
|
41
|
-
onButtonClick,
|
|
42
|
-
} }, { children: jsx("ul", Object.assign({ className: accordionClasses }, { children: children })) })));
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
export { Accordion as default };
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { __rest } from 'tslib';
|
|
2
|
-
import { jsx } from 'react/jsx-runtime';
|
|
3
|
-
import classNames from 'classnames';
|
|
4
|
-
import { useContext } from 'react';
|
|
5
|
-
import useGlobalSettings from '../../hooks/useGlobalSettings.js';
|
|
6
|
-
import { A as AccordionContext, a as AccordionItemContext } from '../../AccordionCtx-8c051900.js';
|
|
7
|
-
import '../../GlobalCtx-7fb23cfa.js';
|
|
8
|
-
|
|
9
|
-
const AccordionButton = (_a) => {
|
|
10
|
-
var { children, className } = _a, rest = __rest(_a, ["children", "className"]);
|
|
11
|
-
const { prefix } = useGlobalSettings();
|
|
12
|
-
const baseClass = `${prefix}--accordion--button`;
|
|
13
|
-
const { activeItems, setActiveItems, getUpdatedItems, allowMultipleExpanded, onButtonClick, } = useContext(AccordionContext);
|
|
14
|
-
const { id } = useContext(AccordionItemContext);
|
|
15
|
-
const open = activeItems.indexOf(id) > -1;
|
|
16
|
-
const accordionButtonClasses = classNames(className, {
|
|
17
|
-
[baseClass]: true,
|
|
18
|
-
});
|
|
19
|
-
/**
|
|
20
|
-
* On click, get id of clicked item, and set that item in state to 'open', all others to 'closed'
|
|
21
|
-
*/
|
|
22
|
-
const handleClick = (e, id) => {
|
|
23
|
-
setActiveItems(getUpdatedItems({ id, itemStatuses: activeItems, allowMultipleExpanded }));
|
|
24
|
-
if (onButtonClick) {
|
|
25
|
-
onButtonClick(e, id);
|
|
26
|
-
}
|
|
27
|
-
e.currentTarget.blur();
|
|
28
|
-
};
|
|
29
|
-
return (jsx("div", Object.assign({ className: `${prefix}--h3` }, { children: jsx("button", Object.assign({ className: accordionButtonClasses, "aria-expanded": open, onClick: (e) => handleClick(e, id), "aria-controls": `panel-${id}`, id: `button-${id}` }, rest, { children: children })) })));
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
export { AccordionButton as default };
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { __rest } from 'tslib';
|
|
2
|
-
import { jsx } from 'react/jsx-runtime';
|
|
3
|
-
import classNames from 'classnames';
|
|
4
|
-
import useGlobalSettings from '../../hooks/useGlobalSettings.js';
|
|
5
|
-
import { a as AccordionItemContext } from '../../AccordionCtx-8c051900.js';
|
|
6
|
-
import 'react';
|
|
7
|
-
import '../../GlobalCtx-7fb23cfa.js';
|
|
8
|
-
|
|
9
|
-
const AccordionItem = (_a) => {
|
|
10
|
-
var { children, id, className } = _a, rest = __rest(_a, ["children", "id", "className"]);
|
|
11
|
-
const { prefix } = useGlobalSettings();
|
|
12
|
-
const baseClass = `${prefix}--accordion--item`;
|
|
13
|
-
const accordionItemClasses = classNames(className, {
|
|
14
|
-
[baseClass]: true,
|
|
15
|
-
});
|
|
16
|
-
return (jsx(AccordionItemContext.Provider, Object.assign({ value: { id } }, { children: jsx("li", Object.assign({ className: accordionItemClasses }, rest, { children: children })) })));
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
export { AccordionItem as default };
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { __rest } from 'tslib';
|
|
2
|
-
import { jsx } from 'react/jsx-runtime';
|
|
3
|
-
import classNames from 'classnames';
|
|
4
|
-
import { useContext, useState, useRef, useLayoutEffect } from 'react';
|
|
5
|
-
import useGlobalSettings from '../../hooks/useGlobalSettings.js';
|
|
6
|
-
import { A as AccordionContext, a as AccordionItemContext } from '../../AccordionCtx-8c051900.js';
|
|
7
|
-
import '../../GlobalCtx-7fb23cfa.js';
|
|
8
|
-
|
|
9
|
-
const AccordionPanel = (_a) => {
|
|
10
|
-
var { children, className, scroll } = _a, rest = __rest(_a, ["children", "className", "scroll"]);
|
|
11
|
-
const { activeItems } = useContext(AccordionContext);
|
|
12
|
-
const { id } = useContext(AccordionItemContext);
|
|
13
|
-
const [panelHeight, setPanelHeight] = useState(0);
|
|
14
|
-
const open = activeItems.indexOf(id) > -1;
|
|
15
|
-
const { prefix } = useGlobalSettings();
|
|
16
|
-
const baseClass = `${prefix}--accordion--panel`;
|
|
17
|
-
const accordionaPanelClasses = classNames(className, baseClass, {
|
|
18
|
-
[`${baseClass}__scroll`]: scroll,
|
|
19
|
-
[`${baseClass}--open`]: open,
|
|
20
|
-
});
|
|
21
|
-
const ref = useRef();
|
|
22
|
-
useLayoutEffect(() => {
|
|
23
|
-
ref.current && setPanelHeight(ref.current.scrollHeight);
|
|
24
|
-
});
|
|
25
|
-
return (jsx("div", Object.assign({ className: accordionaPanelClasses, id: `panel-${id}`, "aria-labelledby": `button-${id}`, role: "region", ref: ref, style: { ["--height"]: `${panelHeight}px` } }, rest, { children: jsx("div", Object.assign({ className: `${prefix}--accordion--innerpanel` }, { children: children })) })));
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
export { AccordionPanel as default };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export { default as AccordionButton } from './AccordionButton.js';
|
|
2
|
-
export { default as AccordionPanel } from './AccordionPanel.js';
|
|
3
|
-
export { default as AccordionItem } from './AccordionItem.js';
|
|
4
|
-
export { default as Accordion } from './Accordion.js';
|
|
5
|
-
import 'tslib';
|
|
6
|
-
import 'react/jsx-runtime';
|
|
7
|
-
import 'classnames';
|
|
8
|
-
import 'react';
|
|
9
|
-
import '../../hooks/useGlobalSettings.js';
|
|
10
|
-
import '../../GlobalCtx-7fb23cfa.js';
|
|
11
|
-
import '../../AccordionCtx-8c051900.js';
|
|
12
|
-
import '@ilo-org/utils';
|
|
13
|
-
import '../../utils/checkArrayDuplicates.js';
|
|
@@ -1,187 +0,0 @@
|
|
|
1
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
-
import { useState, useRef, useCallback, useLayoutEffect, useEffect } from 'react';
|
|
3
|
-
import useGlobalSettings from '../../hooks/useGlobalSettings.js';
|
|
4
|
-
import classNames from 'classnames';
|
|
5
|
-
import ContextMenu from '../ContextMenu/ContextMenu.js';
|
|
6
|
-
import 'tslib';
|
|
7
|
-
import '../../GlobalCtx-7fb23cfa.js';
|
|
8
|
-
|
|
9
|
-
const BreadcrumbItem = ({ url, label, className, labelShown = true, }) => {
|
|
10
|
-
const { prefix } = useGlobalSettings();
|
|
11
|
-
const baseClass = `${prefix}--breadcrumb--item`;
|
|
12
|
-
const linkClass = `${prefix}--breadcrumb--link`;
|
|
13
|
-
const labelClass = `${linkClass}--label`;
|
|
14
|
-
const breadcrumbLinkClass = classNames(baseClass, className);
|
|
15
|
-
return (jsx("li", Object.assign({ className: breadcrumbLinkClass }, { children: labelShown ? (jsx("a", Object.assign({ className: linkClass, href: url }, { children: jsx("span", Object.assign({ className: labelClass }, { children: label })) }))) : (jsx("a", { "aria-label": label, className: linkClass, href: url })) })));
|
|
16
|
-
};
|
|
17
|
-
const Breadcrumb = ({ className, links, buttonLabel }) => {
|
|
18
|
-
const { prefix } = useGlobalSettings();
|
|
19
|
-
// State
|
|
20
|
-
const [isCtxMenuOpen, setIsCtxMenuOpen] = useState(false);
|
|
21
|
-
const [ctxMenuPosition, setCtxMenuPosition] = useState({
|
|
22
|
-
start: 0,
|
|
23
|
-
top: 0,
|
|
24
|
-
});
|
|
25
|
-
const [isMenuCollapsed, setIsMenuCollapsed] = useState(false);
|
|
26
|
-
// Refs
|
|
27
|
-
const breadcrumbsRef = useRef(null);
|
|
28
|
-
const breadcrumbsWidth = useRef(0);
|
|
29
|
-
const buttonRef = useRef(null);
|
|
30
|
-
const ctxMenuRef = useRef(null);
|
|
31
|
-
// Shortcuts to classnames
|
|
32
|
-
const baseClass = `${prefix}--breadcrumb`;
|
|
33
|
-
const innerClass = `${baseClass}--inner`;
|
|
34
|
-
const itemsClass = `${baseClass}--items`;
|
|
35
|
-
const itemClass = `${baseClass}--item`;
|
|
36
|
-
const itemFirstClass = `${itemClass}__first`;
|
|
37
|
-
const contextClass = `${baseClass}--context`;
|
|
38
|
-
const contextCollapsedClass = `${contextClass}__collapse`;
|
|
39
|
-
const contextId = `${baseClass}--menu`;
|
|
40
|
-
const buttonClass = `${contextClass}--button`;
|
|
41
|
-
// Dynamic classnames
|
|
42
|
-
const breadcrumbClass = classNames(baseClass, className);
|
|
43
|
-
const contextItemsClass = classNames(contextClass, {
|
|
44
|
-
[contextCollapsedClass]: isMenuCollapsed,
|
|
45
|
-
});
|
|
46
|
-
const contextMenuClass = classNames(`${contextClass}--menu`, {
|
|
47
|
-
[`${contextClass}--menu__visible`]: isCtxMenuOpen,
|
|
48
|
-
});
|
|
49
|
-
// Handlers
|
|
50
|
-
function handleButtonClick() {
|
|
51
|
-
setIsCtxMenuOpen(!isCtxMenuOpen);
|
|
52
|
-
}
|
|
53
|
-
const collapseMenu = useCallback((collapse) => {
|
|
54
|
-
if (collapse && !isMenuCollapsed) {
|
|
55
|
-
setIsMenuCollapsed(true);
|
|
56
|
-
}
|
|
57
|
-
if (!collapse && isMenuCollapsed) {
|
|
58
|
-
setIsMenuCollapsed(false);
|
|
59
|
-
}
|
|
60
|
-
}, [isMenuCollapsed]);
|
|
61
|
-
// Get the width of the breadcrumbs and store it in a ref
|
|
62
|
-
useLayoutEffect(() => {
|
|
63
|
-
const breadcrumbs = breadcrumbsRef === null || breadcrumbsRef === void 0 ? void 0 : breadcrumbsRef.current;
|
|
64
|
-
if (!breadcrumbs || !window || !document) {
|
|
65
|
-
return;
|
|
66
|
-
}
|
|
67
|
-
breadcrumbsWidth.current = breadcrumbs.offsetWidth;
|
|
68
|
-
}, []);
|
|
69
|
-
// Collapse or uncollapse the Context Menu depending on body width
|
|
70
|
-
useLayoutEffect(() => {
|
|
71
|
-
const breadcrumbs = breadcrumbsRef === null || breadcrumbsRef === void 0 ? void 0 : breadcrumbsRef.current;
|
|
72
|
-
if (!breadcrumbs || !window || !document) {
|
|
73
|
-
return;
|
|
74
|
-
}
|
|
75
|
-
const observer = new ResizeObserver((entries) => {
|
|
76
|
-
const bodyWidth = entries[0].contentRect.width;
|
|
77
|
-
if (breadcrumbsWidth.current >= bodyWidth / 1.5) {
|
|
78
|
-
collapseMenu(true);
|
|
79
|
-
}
|
|
80
|
-
else {
|
|
81
|
-
collapseMenu(false);
|
|
82
|
-
}
|
|
83
|
-
});
|
|
84
|
-
observer.observe(document.body);
|
|
85
|
-
return () => {
|
|
86
|
-
observer.disconnect();
|
|
87
|
-
};
|
|
88
|
-
}, [collapseMenu]);
|
|
89
|
-
// Position the Context Menu right below the button
|
|
90
|
-
useLayoutEffect(() => {
|
|
91
|
-
if (!buttonRef.current || !ctxMenuRef.current) {
|
|
92
|
-
return;
|
|
93
|
-
}
|
|
94
|
-
if (isMenuCollapsed && isCtxMenuOpen) {
|
|
95
|
-
const buttonRect = buttonRef.current.getBoundingClientRect();
|
|
96
|
-
const buttonCenterX = buttonRect.left + buttonRect.width / 2;
|
|
97
|
-
const contextMenuWidth = ctxMenuRef.current.offsetWidth;
|
|
98
|
-
const navStart = buttonCenterX - contextMenuWidth / 2;
|
|
99
|
-
const navTop = buttonRect.bottom + 16;
|
|
100
|
-
setCtxMenuPosition({ start: navStart, top: navTop });
|
|
101
|
-
}
|
|
102
|
-
}, [isMenuCollapsed, isCtxMenuOpen]);
|
|
103
|
-
// If the ContextMenu is open, close it if the user clicks outside of it
|
|
104
|
-
useEffect(() => {
|
|
105
|
-
function handleClickOutside(event) {
|
|
106
|
-
if (isCtxMenuOpen &&
|
|
107
|
-
ctxMenuRef.current &&
|
|
108
|
-
!ctxMenuRef.current.contains(event.target) &&
|
|
109
|
-
buttonRef.current &&
|
|
110
|
-
!buttonRef.current.contains(event.target)) {
|
|
111
|
-
setIsCtxMenuOpen(false);
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
document.addEventListener("mousedown", handleClickOutside);
|
|
115
|
-
return () => {
|
|
116
|
-
document.removeEventListener("mousedown", handleClickOutside);
|
|
117
|
-
};
|
|
118
|
-
}, [isMenuCollapsed, isCtxMenuOpen]);
|
|
119
|
-
// Close the context menu if the breadcrumbs should un-collapse
|
|
120
|
-
useEffect(() => {
|
|
121
|
-
if (isCtxMenuOpen && !isMenuCollapsed) {
|
|
122
|
-
setIsCtxMenuOpen(false);
|
|
123
|
-
}
|
|
124
|
-
}, [isMenuCollapsed, isCtxMenuOpen]);
|
|
125
|
-
// handle tab navigation when the context menu is open
|
|
126
|
-
useEffect(() => {
|
|
127
|
-
if (!buttonRef.current || !ctxMenuRef.current) {
|
|
128
|
-
return;
|
|
129
|
-
}
|
|
130
|
-
function handleKeyDown(event) {
|
|
131
|
-
var _a, _b, _c, _d;
|
|
132
|
-
if (!isCtxMenuOpen || !isMenuCollapsed) {
|
|
133
|
-
return;
|
|
134
|
-
}
|
|
135
|
-
if (event.key === "Tab") {
|
|
136
|
-
const links = (_a = ctxMenuRef.current) === null || _a === void 0 ? void 0 : _a.querySelectorAll("a");
|
|
137
|
-
const lastBreadCrumb = (_c = (_b = breadcrumbsRef.current) === null || _b === void 0 ? void 0 : _b.lastElementChild) === null || _c === void 0 ? void 0 : _c.querySelector("a");
|
|
138
|
-
if (!links || !lastBreadCrumb) {
|
|
139
|
-
return;
|
|
140
|
-
}
|
|
141
|
-
const firstLink = links[0];
|
|
142
|
-
const lastLink = links[links.length - 1];
|
|
143
|
-
// If the user is tabbing...
|
|
144
|
-
if (!event.shiftKey) {
|
|
145
|
-
// If the context button is focused then the next focusable item
|
|
146
|
-
// should be the first item in the context menu
|
|
147
|
-
if (document.activeElement === buttonRef.current) {
|
|
148
|
-
event.preventDefault();
|
|
149
|
-
firstLink.focus();
|
|
150
|
-
return;
|
|
151
|
-
}
|
|
152
|
-
// If the last context item is focused then the focus should go to
|
|
153
|
-
// the last breadcrumb item
|
|
154
|
-
if (document.activeElement === lastLink) {
|
|
155
|
-
event.preventDefault();
|
|
156
|
-
lastBreadCrumb.focus();
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
// If the user is shift-tabbing...
|
|
160
|
-
if (event.shiftKey) {
|
|
161
|
-
// If the first item is focused then the focus should go back to the context button
|
|
162
|
-
if (event.shiftKey && document.activeElement === firstLink) {
|
|
163
|
-
event.preventDefault();
|
|
164
|
-
(_d = buttonRef === null || buttonRef === void 0 ? void 0 : buttonRef.current) === null || _d === void 0 ? void 0 : _d.focus();
|
|
165
|
-
}
|
|
166
|
-
// If the focus is on the last breadcrumb item then the focus should go
|
|
167
|
-
// to the last item in the context menu
|
|
168
|
-
if (event.shiftKey && document.activeElement === lastBreadCrumb) {
|
|
169
|
-
event.preventDefault();
|
|
170
|
-
lastLink.focus();
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
document.addEventListener("keydown", handleKeyDown);
|
|
176
|
-
return () => {
|
|
177
|
-
document.removeEventListener("keydown", handleKeyDown);
|
|
178
|
-
};
|
|
179
|
-
});
|
|
180
|
-
// Separate out the links into first, context and last
|
|
181
|
-
const firstLink = links[0];
|
|
182
|
-
const contextLinks = links.slice(1, links.length - 1);
|
|
183
|
-
const lastLink = links[links.length - 1];
|
|
184
|
-
return (jsxs("nav", Object.assign({ className: breadcrumbClass }, { children: [jsx("div", Object.assign({ className: innerClass }, { children: jsxs("ol", Object.assign({ className: itemsClass, ref: breadcrumbsRef }, { children: [jsx(BreadcrumbItem, { url: firstLink.url, label: firstLink.label, labelShown: false, className: itemFirstClass }), contextLinks && contextLinks.length > 0 ? (jsxs("li", Object.assign({ className: contextItemsClass }, { children: [jsx("ol", Object.assign({ className: itemsClass }, { children: contextLinks.map((contextLink, i) => (jsx(BreadcrumbItem, { url: contextLink.url, label: contextLink.label }, i))) })), jsx("button", { "aria-label": buttonLabel, "aria-expanded": isCtxMenuOpen, "aria-controls": contextId, className: buttonClass, onClick: handleButtonClick, ref: buttonRef })] }))) : null, lastLink && (jsx(BreadcrumbItem, { url: lastLink.url, label: lastLink.label }))] })) })), jsx("div", Object.assign({ className: contextMenuClass, id: contextId, hidden: !isCtxMenuOpen, style: { left: ctxMenuPosition.start, top: ctxMenuPosition.top } }, { children: jsx(ContextMenu, { links: contextLinks, ref: ctxMenuRef }) }))] })));
|
|
185
|
-
};
|
|
186
|
-
|
|
187
|
-
export { Breadcrumb as default };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export { default as Breadcrumb } from './Breadcrumb.js';
|
|
2
|
-
import 'react/jsx-runtime';
|
|
3
|
-
import 'react';
|
|
4
|
-
import '../../hooks/useGlobalSettings.js';
|
|
5
|
-
import 'tslib';
|
|
6
|
-
import '../../GlobalCtx-7fb23cfa.js';
|
|
7
|
-
import 'classnames';
|
|
8
|
-
import '../ContextMenu/ContextMenu.js';
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
2
|
-
import classNames from 'classnames';
|
|
3
|
-
import useGlobalSettings from '../../hooks/useGlobalSettings.js';
|
|
4
|
-
import Link from '../Link/Link.js';
|
|
5
|
-
import Icon from '../Icon/Icon.js';
|
|
6
|
-
import 'tslib';
|
|
7
|
-
import 'react';
|
|
8
|
-
import '../../GlobalCtx-7fb23cfa.js';
|
|
9
|
-
import '@ilo-org/icons-react';
|
|
10
|
-
|
|
11
|
-
const Button = ({ callback, className, disabled = false, icon, icononly, iconPosition, kind = "button", label, opensmodal, size = "large", target = "", type = "primary", url, style, name, }) => {
|
|
12
|
-
const { prefix } = useGlobalSettings();
|
|
13
|
-
const baseClass = `${prefix}--button`;
|
|
14
|
-
const hasURL = !!url;
|
|
15
|
-
const icoPos = iconPosition || "left";
|
|
16
|
-
const ButtonClasses = classNames(className, {
|
|
17
|
-
[baseClass]: true,
|
|
18
|
-
[`${baseClass}__${size}`]: size,
|
|
19
|
-
[`${baseClass}__${type}`]: type,
|
|
20
|
-
[`${baseClass}--icon ${baseClass}--icon--position__${icoPos}`]: icon && !icononly,
|
|
21
|
-
[`${baseClass}--icon ${baseClass}--icon--only`]: icon && icononly,
|
|
22
|
-
});
|
|
23
|
-
/**
|
|
24
|
-
* On click, if there is a callback, call it
|
|
25
|
-
*/
|
|
26
|
-
const handleClick = (e) => {
|
|
27
|
-
if (callback) {
|
|
28
|
-
callback(e);
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
return (jsx(Fragment, { children: hasURL ? (jsx(Link, Object.assign({ className: ButtonClasses, target: target, url: url, label: label, style: style }, { children: icon && jsx(Icon, { name: icon, hidden: true }) }))) : (jsxs("button", Object.assign({ className: ButtonClasses, onClick: (e) => handleClick(e), disabled: disabled, type: kind, "aria-haspopup": opensmodal ? `dialog` : false, style: style, name: name }, { children: [label && jsx("span", Object.assign({ className: "button__label" }, { children: label })), icon && jsx(Icon, { name: icon, hidden: true })] }))) }));
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
export { Button as default };
|