@ilo-org/react 0.25.0 → 0.27.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/README.md +0 -1
- package/lib/cjs/_store/AudioPlayer-chunk-BgWE3wR1.js +1 -0
- package/lib/cjs/_store/AudioPlayer-entry-DUimYc-F.js +1 -0
- package/lib/cjs/_store/{Breadcrumb-chunk-Dpq0PkrL.js → Breadcrumb-chunk-Bc1WgkRf.js} +1 -1
- package/lib/cjs/_store/{Breadcrumb-entry-DqvKPkDy.js → Breadcrumb-entry-CHpuATsN.js} +1 -1
- package/lib/cjs/_store/{Button-chunk-GqAQVgEt.js → Button-chunk-i7Mx1CWw.js} +1 -1
- package/lib/cjs/_store/{Button-entry-BKxqoDTd.js → Button-entry-B6i_56pN.js} +1 -1
- package/lib/cjs/_store/{Callout-chunk-BfSmG_lo.js → Callout-chunk-D0qGb3NA.js} +1 -1
- package/lib/cjs/_store/{Callout-entry-BWl-fM4V.js → Callout-entry-B9JKkfjT.js} +1 -1
- package/lib/cjs/_store/CardGroup-chunk-CRgPaqdt.js +1 -0
- package/lib/cjs/_store/Cards-entry-C6nZgRnw.js +1 -0
- package/lib/cjs/_store/ContextMenu-chunk-Bt4IM9J7.js +1 -0
- package/lib/cjs/_store/{ContextMenu-entry-dsiNFY0E.js → ContextMenu-entry-DfK4Z2zY.js} +1 -1
- package/lib/cjs/_store/DynamicHeading-chunk-DJzlOgQG.js +1 -0
- package/lib/cjs/_store/{Footer-chunk-TaoI4CW2.js → Footer-chunk-F6FWK20F.js} +1 -1
- package/lib/cjs/_store/{Footer-entry-Dia_Yz7-.js → Footer-entry-B0EMXAZe.js} +1 -1
- package/lib/cjs/_store/{Hero-chunk-BjL7EFZF.js → Hero-chunk-CDJrCpL6.js} +1 -1
- package/lib/cjs/_store/{Hero-entry-BEkYf6OA.js → Hero-entry-P61ktZE-.js} +1 -1
- package/lib/cjs/_store/{HeroCard-chunk-BxvdF3ec.js → HeroCard-chunk-BO2BICG5.js} +1 -1
- package/lib/cjs/_store/{HeroCard-entry-Cy1KQqXn.js → HeroCard-entry-Bcf7NMkj.js} +1 -1
- package/lib/cjs/_store/Icon-chunk-BzII57By.js +1 -0
- package/lib/cjs/_store/{Icon-entry-DuU8BlUw.js → Icon-entry-Cqw6gQ6f.js} +1 -1
- package/lib/cjs/_store/LanguageToggle-chunk-Dq721sHc.js +1 -0
- package/lib/cjs/_store/{LanguageToggle-entry-_H4REDpU.js → LanguageToggle-entry-BIcgbNpM.js} +1 -1
- package/lib/cjs/_store/LinkList-chunk-CmVHEiqZ.js +1 -0
- package/lib/cjs/_store/{LinkList-entry-D8WmG1H6.js → LinkList-entry-BL9Es1VN.js} +1 -1
- package/lib/cjs/_store/List-entry-31dXgvRv.js +1 -0
- package/lib/cjs/_store/MainNav-chunk-7kTe_YZl.js +1 -0
- package/lib/cjs/_store/Nav-entry-DExtgUq0.js +1 -0
- package/lib/cjs/_store/{Notification-chunk-2QCwWkyJ.js → Notification-chunk-CWlncrg0.js} +1 -1
- package/lib/cjs/_store/{Notification-entry-BZxeAdKY.js → Notification-entry-AczbFeuC.js} +1 -1
- package/lib/cjs/_store/PhotoGallery-entry-oG4Az7b5.js +1 -0
- package/lib/cjs/_store/{Profile-chunk-BYt-KzV1.js → Profile-chunk-DGzYI2Ij.js} +1 -1
- package/lib/cjs/_store/{Profile-entry--A7T8H3j.js → Profile-entry-CyGRHY4H.js} +1 -1
- package/lib/cjs/_store/{SearchField-chunk-Co2k3NxN.js → SearchField-chunk-C8dCtv7o.js} +1 -1
- package/lib/cjs/_store/{SearchField-entry-BUoeC9YW.js → SearchField-entry-iFWSYkgV.js} +1 -1
- package/lib/cjs/_store/SocialMedia-chunk-BlRflaPL.js +1 -0
- package/lib/cjs/_store/{SocialMedia-entry-lxx8yheX.js → SocialMedia-entry-y0SwUpID.js} +1 -1
- package/lib/cjs/_store/{Tabs-chunk-CFtNDTSD.js → Tabs-chunk-_l0V0Dy0.js} +1 -1
- package/lib/cjs/_store/{Tabs-entry-F5uRTfcu.js → Tabs-entry-Cf1mUwmV.js} +1 -1
- package/lib/cjs/_store/Tag-chunk-DesRph1K.js +1 -0
- package/lib/cjs/_store/{Tag-entry-BOwYiCqK.js → Tag-entry-ubHQAH--.js} +1 -1
- package/lib/cjs/_store/components-entry-ChGq9Mfa.js +1 -0
- package/lib/cjs/_store/index.js +1 -1
- package/lib/cjs/_store/useFocusTrap-chunk-CB0jpZY1.js +1 -0
- package/lib/cjs/_store/useOutsideClick-chunk-B3G_jqci.js +1 -0
- package/lib/cjs/index.js +1 -1
- package/lib/esm/_store/AudioPlayer-chunk-C1ILnjha.js +194 -0
- package/lib/esm/_store/AudioPlayer-entry-DihoEAxT.js +4 -0
- package/lib/esm/_store/{Breadcrumb-chunk-BmS7TVwo.js → Breadcrumb-chunk-C5nxxjB6.js} +22 -22
- package/lib/esm/_store/Breadcrumb-entry-Cb449Id_.js +4 -0
- package/lib/esm/_store/{Button-chunk-BvX6KNZ6.js → Button-chunk-8dLLhQX7.js} +1 -1
- package/lib/esm/_store/Button-entry--gNnIOMu.js +4 -0
- package/lib/esm/_store/{Callout-chunk-DlkjnwyO.js → Callout-chunk-DwVsxKc9.js} +1 -1
- package/lib/esm/_store/Callout-entry-Be1qqjRK.js +4 -0
- package/lib/esm/_store/CardGroup-chunk-BtxfvFrZ.js +825 -0
- package/lib/esm/_store/{Cards-entry-Dy9RcgLp.js → Cards-entry-B87QD-XE.js} +1 -1
- package/lib/esm/_store/ContextMenu-chunk-CX3zW2yD.js +63 -0
- package/lib/esm/_store/ContextMenu-entry-BkiSVnYD.js +4 -0
- package/lib/esm/_store/DynamicHeading-chunk-CO_vg_Lp.js +7 -0
- package/lib/esm/_store/{Footer-chunk-DUKfjpB_.js → Footer-chunk-DIcYIPfY.js} +3 -3
- package/lib/esm/_store/Footer-entry-7mEwDfWZ.js +4 -0
- package/lib/esm/_store/{Hero-chunk-Be04T-g-.js → Hero-chunk-8XPHDh4M.js} +3 -3
- package/lib/esm/_store/Hero-entry-CAGpvq4h.js +4 -0
- package/lib/esm/_store/{HeroCard-chunk-Dpp8lL_Q.js → HeroCard-chunk-DIoKqIvc.js} +1 -1
- package/lib/esm/_store/HeroCard-entry-rQFyyLmk.js +4 -0
- package/lib/esm/_store/Icon-chunk-vcBEV-Wk.js +5477 -0
- package/lib/esm/_store/Icon-entry-DdsYgI2S.js +4 -0
- package/lib/esm/_store/{LanguageToggle-chunk-5yhqP-ia.js → LanguageToggle-chunk-C51Ysq9D.js} +17 -18
- package/lib/esm/_store/LanguageToggle-entry-D-mpVcVo.js +4 -0
- package/lib/esm/_store/{LinkList-chunk-D5z3Upbc.js → LinkList-chunk-ClC0P1yc.js} +20 -12
- package/lib/esm/_store/LinkList-entry-JTzNkCSz.js +4 -0
- package/lib/esm/_store/{List-entry-oG99Ip94.js → List-entry-BX9gaFfD.js} +15 -13
- package/lib/esm/_store/MainNav-chunk-Be68xvpH.js +776 -0
- package/lib/esm/_store/Nav-entry-Cvh13_5P.js +5 -0
- package/lib/esm/_store/{Notification-chunk-_adtYhvS.js → Notification-chunk-ChtPyASj.js} +1 -1
- package/lib/esm/_store/Notification-entry-BWJ8Jj_L.js +4 -0
- package/lib/esm/_store/PhotoGallery-entry-DzssiE2H.js +1685 -0
- package/lib/esm/_store/{Profile-chunk-D0RBDgln.js → Profile-chunk-S7Qd4zNr.js} +1 -1
- package/lib/esm/_store/Profile-entry-BaZd_1MC.js +4 -0
- package/lib/esm/_store/{SearchField-chunk-4Y2NnK71.js → SearchField-chunk-662yU8Z7.js} +5 -4
- package/lib/esm/_store/SearchField-entry-Dbp8Z4ak.js +4 -0
- package/lib/esm/_store/{SocialMedia-chunk-DEHVELJ8.js → SocialMedia-chunk-CmTguYLJ.js} +24 -15
- package/lib/esm/_store/{SocialMedia-entry-C2BAEraF.js → SocialMedia-entry-Bb_WqSHH.js} +16 -1
- package/lib/esm/_store/{Tabs-chunk-BFJu-8N_.js → Tabs-chunk-rSUtyafl.js} +1 -1
- package/lib/esm/_store/Tabs-entry-Dus4wyx1.js +4 -0
- package/lib/esm/_store/Tag-chunk-BgilM5Hj.js +59 -0
- package/lib/esm/_store/{Tag-entry-CY9Wk-E1.js → Tag-entry-CzbjOVIK.js} +2 -2
- package/lib/esm/_store/components-entry-BtxPnvKg.js +103 -0
- package/lib/esm/_store/index.js +9 -6
- package/lib/esm/_store/useFocusTrap-chunk-YNgJEwcj.js +65 -0
- package/lib/esm/_store/useOutsideClick-chunk-CWy5z-7S.js +71 -0
- package/lib/esm/index.js +62 -58
- package/lib/styles/components/accordion.css +1 -1
- package/lib/styles/components/audioplayer.css +1 -0
- package/lib/styles/components/blockquote.css +1 -1
- package/lib/styles/components/breadcrumb.css +1 -1
- package/lib/styles/components/button.css +1 -1
- package/lib/styles/components/callout.css +1 -1
- package/lib/styles/components/card.css +1 -1
- package/lib/styles/components/cardgroup.css +1 -1
- package/lib/styles/components/checkbox.css +1 -1
- package/lib/styles/components/container.css +1 -1
- package/lib/styles/components/contextmenu.css +1 -1
- package/lib/styles/components/datacard.css +1 -1
- package/lib/styles/components/datepicker.css +1 -1
- package/lib/styles/components/detailcard.css +1 -1
- package/lib/styles/components/dropdown.css +1 -1
- package/lib/styles/components/empty.css +1 -1
- package/lib/styles/components/factlistcard.css +1 -1
- package/lib/styles/components/featurecard.css +1 -1
- package/lib/styles/components/fieldset.css +1 -1
- package/lib/styles/components/file-upload.css +1 -1
- package/lib/styles/components/footer.css +1 -1
- package/lib/styles/components/form.css +1 -1
- package/lib/styles/components/formcontrol.css +1 -1
- package/lib/styles/components/hero.css +1 -1
- package/lib/styles/components/herocard.css +1 -1
- package/lib/styles/components/image.css +1 -1
- package/lib/styles/components/input.css +1 -1
- package/lib/styles/components/languagetoggle.css +1 -1
- package/lib/styles/components/link.css +1 -1
- package/lib/styles/components/linklist.css +1 -1
- package/lib/styles/components/list.css +1 -1
- package/lib/styles/components/loading.css +1 -1
- package/lib/styles/components/logogrid.css +1 -1
- package/lib/styles/components/modal.css +1 -1
- package/lib/styles/components/multilinkcard.css +1 -1
- package/lib/styles/components/navigation.css +1 -1
- package/lib/styles/components/notification.css +1 -1
- package/lib/styles/components/pagination.css +1 -1
- package/lib/styles/components/profile.css +1 -1
- package/lib/styles/components/promocard.css +1 -1
- package/lib/styles/components/radio.css +1 -1
- package/lib/styles/components/readmore.css +1 -1
- package/lib/styles/components/richtext.css +1 -1
- package/lib/styles/components/scorecard.css +1 -1
- package/lib/styles/components/searchfield.css +1 -1
- package/lib/styles/components/socialmedia.css +1 -1
- package/lib/styles/components/statcard.css +1 -1
- package/lib/styles/components/status.css +1 -1
- package/lib/styles/components/table.css +1 -1
- package/lib/styles/components/tableofcontents.css +1 -1
- package/lib/styles/components/tabs.css +1 -1
- package/lib/styles/components/tag.css +1 -1
- package/lib/styles/components/textarea.css +1 -1
- package/lib/styles/components/textcard.css +1 -1
- package/lib/styles/components/textinput.css +1 -1
- package/lib/styles/components/toggle.css +1 -1
- package/lib/styles/components/tooltip.css +1 -1
- package/lib/styles/components/video.css +1 -1
- package/lib/styles/global.css +1 -1
- package/lib/styles/global.css.map +1 -1
- package/lib/styles/index.css +3 -3
- package/lib/styles/index.css.map +1 -1
- package/lib/styles/monorepo.css +3 -3
- package/lib/styles/monorepo.css.map +1 -1
- package/lib/types/components/AudioPlayer/AudioPlayer.d.ts +27 -0
- package/lib/types/components/AudioPlayer/index.d.ts +1 -0
- package/lib/types/components/Cards/DataCard.d.ts +27 -3
- package/lib/types/components/Cards/DetailCard.d.ts +18 -2
- package/lib/types/components/Cards/FactListCard.d.ts +18 -2
- package/lib/types/components/Cards/FeatureCard.d.ts +18 -2
- package/lib/types/components/Cards/MultiLinkCard.d.ts +22 -2
- package/lib/types/components/Cards/PromoCard.d.ts +18 -2
- package/lib/types/components/Cards/ScoreCard.d.ts +20 -3
- package/lib/types/components/Cards/StatCard.d.ts +18 -2
- package/lib/types/components/Cards/TextCard.d.ts +18 -2
- package/lib/types/components/ContextMenu/ContextMenu.d.ts +8 -0
- package/lib/types/components/DynamicHeading/DynamicHeading.d.ts +9 -0
- package/lib/types/components/LanguageToggle/LanguageToggle.d.ts +1 -1
- package/lib/types/components/LinkList/LinkList.d.ts +5 -1
- package/lib/types/components/List/List.d.ts +9 -0
- package/lib/types/components/List/index.d.ts +1 -0
- package/lib/types/components/Nav/MainNav.d.ts +4 -0
- package/lib/types/components/Nav/Navigation.props.d.ts +52 -23
- package/lib/types/components/Nav/{Subsite/SubsiteNav.d.ts → SubsiteNav.d.ts} +1 -1
- package/lib/types/components/Nav/index.d.ts +3 -2
- package/lib/types/components/Nav/{NavigationDropdown.d.ts → internals/NavigationDropdown.d.ts} +8 -5
- package/lib/types/components/Nav/{NavigationLink.d.ts → internals/NavigationLink.d.ts} +1 -1
- package/lib/types/components/Nav/internals/NavigationMenu.d.ts +16 -0
- package/lib/types/components/Nav/{NavigationMenuGrid.d.ts → internals/NavigationMenuGrid.d.ts} +1 -1
- package/lib/types/components/Nav/{useNavSetup.d.ts → internals/hooks/useNavSetup.d.ts} +1 -1
- package/lib/types/components/Nav/{mobile → internals/mobile}/MobileDrawer.d.ts +5 -1
- package/lib/types/components/Nav/{mobile → internals/mobile}/MobileLanguageList.d.ts +1 -1
- package/lib/types/components/Nav/{mobile → internals/mobile}/MobileMenuList.d.ts +1 -1
- package/lib/types/components/Nav/{mobile → internals/mobile}/MobileNavigation.d.ts +2 -2
- package/lib/types/components/PhotoGallery/ExpandableCaption.d.ts +9 -0
- package/lib/types/components/PhotoGallery/LightBox.d.ts +9 -0
- package/lib/types/components/PhotoGallery/LightBoxGallery.d.ts +10 -0
- package/lib/types/components/PhotoGallery/PhotoGallery.d.ts +21 -0
- package/lib/types/components/PhotoGallery/PhotoGalleryControls.d.ts +25 -0
- package/lib/types/components/PhotoGallery/PhotoGalleryThumbnails.d.ts +11 -0
- package/lib/types/components/PhotoGallery/index.d.ts +1 -0
- package/lib/types/components/SocialMedia/SocialMedia.props.d.ts +5 -1
- package/lib/types/components/index.d.ts +1 -1
- package/lib/types/hooks/index.d.ts +2 -0
- package/lib/types/hooks/useFocusTrap.d.ts +12 -0
- package/lib/types/hooks/useOutsideClick.d.ts +4 -0
- package/lib/types/types/index.d.ts +1 -1
- package/package.json +7 -6
- package/lib/cjs/_store/CardGroup-chunk-Bdg6k3xe.js +0 -1
- package/lib/cjs/_store/Cards-entry-BljbMyDU.js +0 -1
- package/lib/cjs/_store/ContextMenu-chunk-DJWyl3UI.js +0 -1
- package/lib/cjs/_store/Icon-chunk-DtOVpxQ-.js +0 -1
- package/lib/cjs/_store/LanguageToggle-chunk-Cw7PRG8W.js +0 -1
- package/lib/cjs/_store/LinkList-chunk-Duhkqb-C.js +0 -1
- package/lib/cjs/_store/List-entry-Cr2Df-dK.js +0 -1
- package/lib/cjs/_store/Nav-entry-B62wFPBX.js +0 -1
- package/lib/cjs/_store/Navigation-entry-Cz0hT5co.js +0 -1
- package/lib/cjs/_store/SocialMedia-chunk-B_GSOonV.js +0 -1
- package/lib/cjs/_store/SubsiteNav-chunk-G3tutetq.js +0 -1
- package/lib/cjs/_store/Tag-chunk-pecicJx_.js +0 -1
- package/lib/cjs/_store/components-entry-B8oNQiJz.js +0 -1
- package/lib/cjs/_store/useBreakpoint-chunk-zqMY82iP.js +0 -1
- package/lib/esm/_store/Breadcrumb-entry-CU_jT92F.js +0 -4
- package/lib/esm/_store/Button-entry-D7fBzdgB.js +0 -4
- package/lib/esm/_store/Callout-entry-nMgjy2KW.js +0 -4
- package/lib/esm/_store/CardGroup-chunk-CBTshcSl.js +0 -507
- package/lib/esm/_store/ContextMenu-chunk-ZE0ANbkf.js +0 -40
- package/lib/esm/_store/ContextMenu-entry-CdajPfm6.js +0 -4
- package/lib/esm/_store/Footer-entry-6fL7F6zI.js +0 -4
- package/lib/esm/_store/Hero-entry-KS9RtmIr.js +0 -4
- package/lib/esm/_store/HeroCard-entry-Ci6b3eLs.js +0 -4
- package/lib/esm/_store/Icon-chunk-DxouZQcV.js +0 -4431
- package/lib/esm/_store/Icon-entry-DsXhLlM5.js +0 -4
- package/lib/esm/_store/LanguageToggle-entry-CvD0nDPx.js +0 -4
- package/lib/esm/_store/LinkList-entry-Bd5jTl6s.js +0 -4
- package/lib/esm/_store/Nav-entry-BRBGTM-i.js +0 -4
- package/lib/esm/_store/Navigation-entry-DWntijlA.js +0 -4
- package/lib/esm/_store/Notification-entry-D_rG_6wM.js +0 -4
- package/lib/esm/_store/Profile-entry-BDkLs_81.js +0 -4
- package/lib/esm/_store/SearchField-entry-oUXJXjo_.js +0 -4
- package/lib/esm/_store/SubsiteNav-chunk-ClugkI0I.js +0 -546
- package/lib/esm/_store/Tabs-entry-Bxitnkrg.js +0 -4
- package/lib/esm/_store/Tag-chunk-CtoF0KuM.js +0 -68
- package/lib/esm/_store/components-entry-BurF2spT.js +0 -102
- package/lib/esm/_store/useBreakpoint-chunk-Bl6AhTq7.js +0 -53
- package/lib/types/components/Nav/NavigationMenu.d.ts +0 -13
- package/lib/types/components/Navigation/Navigation.d.ts +0 -5
- package/lib/types/components/Navigation/Navigation.props.d.ts +0 -87
- package/lib/types/components/Navigation/index.d.ts +0 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PhotoGalleryItem } from './PhotoGallery';
|
|
2
|
+
|
|
3
|
+
interface LightBoxProps {
|
|
4
|
+
items: PhotoGalleryItem[];
|
|
5
|
+
parentIndex?: number;
|
|
6
|
+
onSelect: (index: number) => void;
|
|
7
|
+
isActive?: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare function LightBoxGallery({ items, parentIndex, onSelect: parentOnSelect, isActive, }: LightBoxProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export { LightBoxGallery };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ImgHTMLAttributes } from 'react';
|
|
2
|
+
|
|
3
|
+
type PhotoGallerySrc = {
|
|
4
|
+
gallery: string;
|
|
5
|
+
thumbnail: string;
|
|
6
|
+
lightbox: string;
|
|
7
|
+
};
|
|
8
|
+
export type PhotoGalleryItem = Omit<ImgHTMLAttributes<HTMLImageElement>, "src"> & {
|
|
9
|
+
credit?: string;
|
|
10
|
+
caption?: string;
|
|
11
|
+
src: PhotoGallerySrc | string;
|
|
12
|
+
alt: string;
|
|
13
|
+
};
|
|
14
|
+
export interface PhotoGalleryProps {
|
|
15
|
+
items: PhotoGalleryItem[];
|
|
16
|
+
fit?: "cover" | "contain" | "fill";
|
|
17
|
+
withKeyboardControls?: boolean;
|
|
18
|
+
captionView?: "visible" | "hidden" | "ifExists";
|
|
19
|
+
}
|
|
20
|
+
declare function PhotoGallery({ items, fit, withKeyboardControls, captionView, }: PhotoGalleryProps): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export { PhotoGallery };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
import { UseEmblaCarouselType } from 'embla-carousel-react';
|
|
3
|
+
|
|
4
|
+
type PhotoGalleryControlsProps = HTMLAttributes<HTMLDivElement> & {
|
|
5
|
+
onNext: () => void;
|
|
6
|
+
onPrev: () => void;
|
|
7
|
+
onFirst: () => void;
|
|
8
|
+
onLast: () => void;
|
|
9
|
+
indicator: {
|
|
10
|
+
current: number;
|
|
11
|
+
total: number;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
type EmblaCarouselType = UseEmblaCarouselType[1];
|
|
15
|
+
declare function usePhotoGalleryControls(emblaApi: EmblaCarouselType): {
|
|
16
|
+
onFirstButtonClick: () => void;
|
|
17
|
+
onLastButtonClick: () => void;
|
|
18
|
+
onPrevButtonClick: () => void;
|
|
19
|
+
onNextButtonClick: () => void;
|
|
20
|
+
};
|
|
21
|
+
declare function useKeyboardControls(emblaApi: EmblaCarouselType | undefined, enabled?: boolean): {
|
|
22
|
+
onKeyDown: (event: KeyboardEvent) => void;
|
|
23
|
+
};
|
|
24
|
+
declare function PhotoGalleryControls({ onNext, onPrev, onFirst, onLast, indicator, ...rest }: PhotoGalleryControlsProps): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
export { PhotoGalleryControls, usePhotoGalleryControls, useKeyboardControls };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PhotoGalleryItem } from './PhotoGallery';
|
|
2
|
+
|
|
3
|
+
interface PhotoGalleryThumbnailsProps {
|
|
4
|
+
items: PhotoGalleryItem[];
|
|
5
|
+
selected: number;
|
|
6
|
+
onSelect?: (index: number) => void;
|
|
7
|
+
onSeeAll?: () => void;
|
|
8
|
+
seeAllLabel?: string;
|
|
9
|
+
}
|
|
10
|
+
declare function PhotoGalleryThumbnails({ items, selected, onSelect, onSeeAll, seeAllLabel, }: PhotoGalleryThumbnailsProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export { PhotoGalleryThumbnails };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './PhotoGallery';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SocialTypes } from '../../types';
|
|
1
|
+
import { HeadingTypes, SocialTypes } from '../../types';
|
|
2
2
|
|
|
3
3
|
export interface SocialMediaIcons {
|
|
4
4
|
/**
|
|
@@ -43,4 +43,8 @@ export interface SocialMediaProps {
|
|
|
43
43
|
* The size of the social media icons
|
|
44
44
|
*/
|
|
45
45
|
iconSize: "normal" | "large";
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
*/
|
|
49
|
+
titleLevel?: Extract<HeadingTypes, "h2" | "h3" | "h4" | "h5">;
|
|
46
50
|
}
|
|
@@ -35,11 +35,11 @@ export { List } from './List';
|
|
|
35
35
|
export { Profile } from './Profile';
|
|
36
36
|
export { TableOfContents } from './TableOfContents';
|
|
37
37
|
export * from './Footer';
|
|
38
|
-
export { Navigation } from './Navigation';
|
|
39
38
|
export { CardGroup } from './Cards/CardGroup';
|
|
40
39
|
export { Breadcrumb } from './Breadcrumb';
|
|
41
40
|
export { Status } from './Status';
|
|
42
41
|
export { Tabs } from './Tabs';
|
|
42
|
+
export { AudioPlayer } from './AudioPlayer';
|
|
43
43
|
export * from './Cards';
|
|
44
44
|
export * from './LanguageToggle';
|
|
45
45
|
export * from './Nav';
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
export { default as useGlobalSettings } from './useGlobalSettings';
|
|
2
2
|
export { default as usePrevious } from './usePrevious';
|
|
3
3
|
export { default as useBreakpoint } from './useBreakpoint';
|
|
4
|
+
export { default as useOutsideClick } from './useOutsideClick';
|
|
5
|
+
export { default as useFocusTrap } from './useFocusTrap';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { RefCallback } from 'react';
|
|
2
|
+
|
|
3
|
+
interface FocusTrapOptions {
|
|
4
|
+
isActive: boolean;
|
|
5
|
+
onEscape?: () => void;
|
|
6
|
+
onReturnFocus?: () => void;
|
|
7
|
+
autoFocus?: boolean;
|
|
8
|
+
restoreFocus?: boolean;
|
|
9
|
+
}
|
|
10
|
+
declare function useFocusTrap<T extends HTMLElement>(options: FocusTrapOptions): RefCallback<T>;
|
|
11
|
+
export default useFocusTrap;
|
|
12
|
+
export type { FocusTrapOptions };
|
|
@@ -22,7 +22,7 @@ export type NotificationTypes = "error" | "info" | "success" | "warning";
|
|
|
22
22
|
export type PositionTypes = "top" | "bottom" | "left" | "right";
|
|
23
23
|
export type SizeTypes = "small" | "medium" | "large";
|
|
24
24
|
export type TagTypes = "anchor" | "display" | "button";
|
|
25
|
-
export type SocialTypes = "facebook" | "x" | "instagram" | "linkedin" | "youtube" | "tiktok" | "flickr" | "wechat" | "weibo" | "bluesky";
|
|
25
|
+
export type SocialTypes = "facebook" | "x" | "instagram" | "linkedin" | "youtube" | "tiktok" | "flickr" | "wechat" | "weibo" | "bluesky" | "spotify" | "apple_podcasts" | "rss";
|
|
26
26
|
export type CardColor = "turquoise" | "green" | "yellow" | "blue";
|
|
27
27
|
export type CardSize = "wide" | "standard" | "narrow" | "fluid";
|
|
28
28
|
export type CardCornerType = boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ilo-org/react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.27.0",
|
|
4
4
|
"description": "React components for the ILO's Design System",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ui_patterns",
|
|
@@ -67,17 +67,18 @@
|
|
|
67
67
|
"@popperjs/core": "^2.11.8",
|
|
68
68
|
"classnames": "^2.3.1",
|
|
69
69
|
"dom-helpers": "^5.2.1",
|
|
70
|
+
"embla-carousel-react": "^8.6.0",
|
|
71
|
+
"merge-refs": "^2.0.0",
|
|
70
72
|
"nanoid": "^3.3.6",
|
|
71
73
|
"react-transition-group": "^4.4.1",
|
|
72
74
|
"use-breakpoint": "^4.0.6",
|
|
73
75
|
"video.js": "^7.21.2",
|
|
74
76
|
"videojs-youtube": "^3.0.1",
|
|
75
77
|
"@ilo-org/brand-assets": "1.0.1",
|
|
78
|
+
"@ilo-org/styles": "1.10.1",
|
|
79
|
+
"@ilo-org/icons-react": "1.0.6",
|
|
76
80
|
"@ilo-org/fonts": "2.0.0",
|
|
77
|
-
"@ilo-org/
|
|
78
|
-
"@ilo-org/styles": "1.9.0",
|
|
79
|
-
"@ilo-org/themes": "0.9.1",
|
|
80
|
-
"@ilo-org/utils": "0.1.1"
|
|
81
|
+
"@ilo-org/themes": "0.9.1"
|
|
81
82
|
},
|
|
82
83
|
"devDependencies": {
|
|
83
84
|
"@storybook/addon-actions": "^8.1.9",
|
|
@@ -112,8 +113,8 @@
|
|
|
112
113
|
"vite-plugin-dts": "^3.9.1",
|
|
113
114
|
"vite-plugin-static-copy": "^1.0.6",
|
|
114
115
|
"vitest": "^2.0.5",
|
|
115
|
-
"@ilo-org/eslint-config": "2.0.0",
|
|
116
116
|
"@ilo-org/prettier-config": "2.0.0",
|
|
117
|
+
"@ilo-org/eslint-config": "2.0.0",
|
|
117
118
|
"@ilo-org/typescript-config": "2.0.0"
|
|
118
119
|
},
|
|
119
120
|
"peerDependencies": {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const s=require("react/jsx-runtime"),N=require("react"),u=require("./index-chunk-Cxg31gtu.js"),v=require("./useGlobalSettings-chunk-Cd48T6lS.js"),C=require("./Button-chunk-GqAQVgEt.js"),S=require("./Link-chunk-CP7cvvcX.js"),b=require("./LinkList-chunk-Duhkqb-C.js"),M=require("./Profile-chunk-BYt-KzV1.js"),k=require("./Icon-chunk-DtOVpxQ-.js"),L=require("./List-entry-Cr2Df-dK.js"),V=require("./Picture-chunk-CWRmIhTV.js"),z=require("./Status-chunk-CaABjeKb.js"),G=N.forwardRef(({className:p,title:c,theme:r="light",size:e="standard",color:m,intro:o,source:n,titleLevel:x="p"},i)=>{const{prefix:a}=v.useGlobalSettings(),t=`${a}--card`,$=u.classNames(`${t}--wrapper`,p),d=u.classNames(t,`${t}__type__stat`,{[`${t}__size__${String(e)}`]:e,[`${t}__theme__${r}`]:r,[`${t}__color__${m}`]:m});return s.jsx("div",{className:$,ref:i,children:s.jsx("div",{className:d,children:s.jsx("div",{className:`${t}--wrap`,children:s.jsxs("div",{className:`${t}--content`,children:[s.jsx(x,{className:`${t}--title`,children:c}),o&&s.jsx("p",{className:`${t}--intro`,children:o}),n&&s.jsx(S.Link,{className:`${t}--source`,url:n.url,label:n.label})]})})})})}),R=N.forwardRef(({className:p,title:c,size:r="standard",alignment:e,intro:m,link:o,linklist:n,image:x,titleLevel:i="p",eyebrow:a,isVideo:t,theme:$="light"},d)=>{const{prefix:l}=v.useGlobalSettings(),_=`${l}--card`,h=u.classNames(_,p,`${_}__type__multilink`,{[`${_}__align__${e}`]:e,[`${_}__size__${r}`]:r,[`${_}__isvideo`]:t,[`${_}--no-image`]:!x,[`${_}__theme__${$}`]:$});return s.jsxs("div",{className:h,ref:d,children:[o&&s.jsx("a",{className:`${_}--link`,href:o,title:c,children:s.jsx("span",{className:`${_}--link--text`,children:c})}),s.jsxs("div",{className:`${_}--wrap`,children:[x&&s.jsx("div",{className:`${_}--image--wrapper`,children:s.jsx("picture",{children:s.jsx("img",{src:x,alt:c,className:`${_}--picture`})})}),s.jsxs("div",{className:`${_}--content`,children:[a&&s.jsx("p",{className:`${_}--eyebrow`,children:a}),s.jsx(i,{className:`${_}--title`,children:c}),x&&s.jsx("div",{className:`${_}--image--wrapper`,children:s.jsx("picture",{children:s.jsx("img",{src:x,alt:c,className:`${_}--picture`})})}),m&&(N.isValidElement(m)?s.jsx("div",{className:`${_}--intro`,children:m}):s.jsx("p",{className:`${_}--intro`,children:m})),n&&s.jsx(b.LinkList,{...n})]})]})]})}),q=N.forwardRef(({className:p,title:c,theme:r="light",size:e="narrow",date:m,profile:o,link:n,titleLevel:x="p",eyebrow:i},a)=>{const{prefix:t}=v.useGlobalSettings(),$=`${t}--card`,d=u.classNames(`${$}--wrapper`,p),l=u.classNames($,`${$}__type__text`,{[`${$}__size__${String(e)}`]:e,[`${$}__theme__${r}`]:r});return s.jsx("div",{className:d,ref:a,children:s.jsxs("div",{className:l,children:[s.jsx("a",{className:`${$}--link`,href:n,title:c,children:s.jsx("span",{className:`${$}--link--text`,children:c})}),s.jsx("div",{className:`${$}--wrap`,children:s.jsxs("div",{className:`${$}--content`,children:[i&&s.jsx("p",{className:`${$}--eyebrow`,children:i}),s.jsx(x,{className:`${$}--title`,children:c}),m&&s.jsx("time",{className:`${$}--date`,dateTime:m.unix,children:m.human}),o&&s.jsx(M.Profile,{avatar:o.avatar,description:o.description,link:o.link,name:o.name,role:o.role,theme:r})]})})]})})}),T=N.forwardRef(({className:p,title:c,theme:r="light",size:e="narrow",cornercut:m,intro:o,link:n,cta:x,titleLevel:i="p",eyebrow:a},t)=>{const{prefix:$}=v.useGlobalSettings(),d=`${$}--card`,l=u.classNames(`${d}--wrapper`,p,`${d}--wrapper__type__promo`,`${d}--wrapper__type__promo__size__${e}`),_=u.classNames(d,`${d}__type__promo`,{[`${d}__size__${String(e)}`]:e,[`${d}__theme__${r}`]:r,[`${d}__cornercut`]:m});return s.jsx("div",{className:l,ref:t,children:s.jsxs("div",{className:_,children:[s.jsx("a",{className:`${d}--link`,href:n,title:c,children:s.jsx("span",{className:`${d}--link--text`,children:c})}),s.jsx("div",{className:`${d}--wrap`,children:s.jsxs("div",{className:`${d}--content`,children:[a&&s.jsx("p",{className:`${d}--eyebrow`,children:a}),s.jsx(i,{className:`${d}--title`,children:c}),o&&s.jsx("p",{className:`${d}--intro`,children:o}),(x==null?void 0:x.label)&&s.jsx("div",{className:`${d}--cta`,children:s.jsx(C.Button,{link:{url:x.url,label:x.label},size:"medium",type:"primary"})})]})})]})})}),P=N.forwardRef(({className:p,title:c,theme:r="light",size:e="narrow",date:m,link:o,linklist:n,image:x,titleLevel:i="p",eyebrow:a,isVideo:t},$)=>{const{prefix:d}=v.useGlobalSettings(),l=`${d}--card`,_=u.classNames(l,p,`${l}__type__feature`,{[`${l}__size__${String(e)}`]:e,[`${l}__theme__${r}`]:r,[`${l}__isvideo`]:t,[`${l}__linklist`]:n});return s.jsxs("div",{className:_,ref:$,children:[o&&s.jsx("a",{className:`${l}--link`,href:o,title:c,children:s.jsx("span",{className:`${l}--link--text`,children:c})}),s.jsxs("div",{className:`${l}--wrap`,children:[x&&s.jsx("div",{className:`${l}--image--wrapper`,children:s.jsx("picture",{children:s.jsx("img",{src:x,alt:c,className:`${l}--picture`})})}),s.jsxs("div",{className:`${l}--content`,children:[a&&s.jsx("p",{className:`${l}--eyebrow`,children:a}),s.jsx(i,{className:`${l}--title`,children:c}),m&&s.jsx("time",{className:`${l}--date`,dateTime:m.unix,children:m.human}),n&&e==="narrow"&&s.jsx(b.LinkList,{headline:n.headline,linkgroup:n.linkgroup,theme:r})]})]}),n&&(e==="wide"||e==="fluid")&&s.jsx(b.LinkList,{headline:n.headline,linkgroup:n.linkgroup,theme:r})]})}),B=N.forwardRef(({className:p,title:c,theme:r="light",size:e="narrow",date:m,details:o,link:n,titleLevel:x="p",eyebrow:i,intro:a,image:t,isVideo:$=!1,linkComponent:d},l)=>{const{prefix:_}=v.useGlobalSettings(),h=`${_}--card`,j=u.classNames(h,`${h}__type__detail`,p,{[`${h}__size__${String(e)}`]:e,[`${h}__theme__${r}`]:r,[`${h}__isvideo`]:$}),g=N.createElement(d||"a",{className:`${h}--link`,href:n,title:c},s.jsx("span",{className:`${h}--link--text`,children:c}));return s.jsxs("div",{className:j,ref:l,children:[n&&g,s.jsxs("div",{className:`${h}--wrap`,children:[t&&s.jsx("div",{className:`${h}--image--wrapper`,children:s.jsx("picture",{children:s.jsx("img",{className:`${h}--picture`,src:t,alt:c})})}),s.jsxs("div",{className:`${h}--content`,children:[i&&s.jsx("p",{className:`${h}--eyebrow`,children:i}),c&&s.jsx(x,{className:`${h}--title`,children:c}),a&&(N.isValidElement(a)?s.jsx("div",{className:`${h}--intro`,children:a}):s.jsx("p",{className:`${h}--intro`,children:a})),m&&!o&&s.jsx("time",{className:`${h}--date`,dateTime:m.unix,children:m.human}),o&&s.jsxs("p",{className:`${h}--date-extra`,children:[s.jsx(k.Icon,{name:"TriangleRight",size:20,className:`${h}--icon-right`}),s.jsx(k.Icon,{name:"TriangleLeft",size:20,className:`${h}--icon-left`}),o]})]})]})]})}),F=N.forwardRef(({title:p,theme:c="light",size:r="narrow",list:e,titleLevel:m="p",className:o},n)=>{const{prefix:x}=v.useGlobalSettings(),i=`${x}--card`,a=u.classNames(i,`${i}__type__factlist`,o,{[`${i}__size__${r}`]:r,[`${i}__theme__${c}`]:c});return s.jsx("div",{className:a,ref:n,children:s.jsx("div",{className:`${i}--wrap`,children:s.jsxs("div",{className:`${i}--content`,children:[p&&s.jsx(m,{className:`${x}--card--title`,children:p}),s.jsx(L.List,{alignment:"default",ordered:"unordered",theme:c,children:e.map(t=>s.jsx(L.List.Item,{children:s.jsx("p",{children:t})},t))})]})})})}),I=N.forwardRef(({eyebrow:p,size:c="narrow",image:r,dataset:e,columns:m="one",className:o},n)=>{var d;const{prefix:x}=v.useGlobalSettings(),i=c==="narrow"?"one":m,a=`${x}--card`,t=u.classNames(a,`${a}__type__data`,o,{[`${a}__size__${String(c)}`]:c,[`${a}__type__data__columns__${i}`]:i}),$=u.classNames(`${a}--content`,{[`${a}--content__with-image`]:r,[`${a}--content__no-image-with-links`]:!r&&(e==null?void 0:e.links),[`${a}--content__default`]:!r&&!(e!=null&&e.links)});return s.jsx("div",{className:t,ref:n,children:s.jsxs("div",{className:`${a}--wrap`,children:[!r&&p&&s.jsx("div",{className:`${a}--eyebrow`,children:p}),s.jsxs("div",{className:$,children:[r&&s.jsxs("div",{className:`${a}--area--image`,children:[p&&s.jsx("div",{className:`${a}--eyebrow`,children:p}),s.jsx("div",{className:`${a}--image`,children:s.jsx("picture",{children:s.jsx("img",{className:`${a}--picture`,src:r,alt:p})})})]}),(d=e==null?void 0:e.content)==null?void 0:d.items.map((l,_)=>s.jsxs("div",{className:`${a}--area--content`,children:[s.jsx("p",{className:`${a}__type__data--content-label`,children:l.label}),s.jsx("p",{className:`${a}__type__data--content-copy`,children:l.copy})]},_)),(e==null?void 0:e.files)&&s.jsx("div",{className:`${a}--area--files`,children:s.jsxs("div",{className:`${a}__type__data--content-files`,children:[s.jsx("p",{className:`${a}__type__data--content-label`,children:e.files.headline}),e.files.items.map((l,_)=>s.jsx(C.Button,{link:{url:l.url,label:l.label,target:l.target||"_self"},size:"small"},_))]})}),(e==null?void 0:e.cta)&&s.jsx("div",{className:`${a}--area--cta`,children:s.jsxs("div",{className:`${a}__type__data--content-cta`,children:[s.jsx("p",{className:`${a}__type__data--content-label`,children:e.cta.headline}),e.cta.items.map(l=>s.jsx(C.Button,{type:"secondary",size:"small",link:{url:l.url,label:l.label,target:l.target}},l.label))]})}),(e==null?void 0:e.links)&&s.jsx("div",{className:`${a}--area--links`,children:s.jsxs("div",{className:`${a}__type__data--content-links`,children:[s.jsx("p",{className:`${a}__type__data--content-label`,children:e.links.headline}),s.jsx("div",{className:`${a}__type__data--content-links-list`,children:e.links.items.map(l=>s.jsx(N.Fragment,{children:s.jsx(S.Link,{url:l.url,label:l.label,className:`${a}__type__data--content-link`})},l.label+l.url))})]})})]})]})})}),D=N.forwardRef(({className:p,theme:c="light",titleLevel:r="p",size:e="narrow",link:m,linkComponent:o,title:n,isVideo:x=!1,image:i,status:a,eyebrow:t,content:$,cta:d},l)=>{var y;const{prefix:_}=v.useGlobalSettings(),h=c==="dark"?"var(--ilo-color-white)":"var(--ilo-color-gray-accessible)",j=`${_}--card`,g=u.classNames(j,`${j}__type__score`,{[`${j}__theme__${c}`]:c,[`${j}__size__${e}`]:e,[`${j}__isvideo`]:x}),E=N.createElement(o||"a",{href:m,title:n,className:`${j}--link`},s.jsx("span",{className:`${j}--link--text`,children:n}));return s.jsxs("div",{className:u.classNames(g,p),ref:l,children:[E,s.jsxs("div",{className:`${j}--wrap`,children:[i&&e!=="simple"&&s.jsx("div",{className:`${j}--image--wrapper`,children:s.jsx(V.Picture,{...i})}),s.jsxs("div",{className:`${j}--content`,children:[a&&s.jsx(z.Status,{content:a.content,statusType:a.statusType}),t&&e!=="simple"&&s.jsx("p",{className:`${j}--eyebrow`,children:t}),n&&s.jsx(r,{className:`${j}--title`,children:n}),$&&s.jsx("div",{className:`${j}--area--content`,children:(y=$.items)==null?void 0:y.map((f,w)=>s.jsxs("div",{className:`${j}--content--item`,children:[s.jsx(k.Icon,{name:f.icon,size:20,color:h}),s.jsx("span",{children:f.label})]},w))}),d&&s.jsx("div",{className:`${j}--area--cta`,children:d.items.map((f,w)=>s.jsx("div",{className:`${j}--cta`,children:f},w))})]})]})]})}),A={stat:G,multilink:R,text:q,promo:T,feature:P,detail:B,factlist:F,data:I,score:D},H=N.forwardRef(({type:p,group:c,cardCount:r="one",cta:e,collapsed:m=!1},o)=>{const n=A[p],{prefix:x}=v.useGlobalSettings(),i=`${x}--cardgroup`,a=u.classNames(i,`${i}__count__${r}`,{[`${i}__collapsed`]:m});return s.jsxs("div",{className:a,ref:o,children:[s.jsx("div",{className:`${i}--inner`,children:c.map((t,$)=>s.jsx(n,{...t},$))}),e&&s.jsx("div",{className:`${i}--button-wrap`,children:s.jsx(C.Button,{link:{url:e.url,label:e.label},type:"secondary",size:"medium"})})]})});exports.CardGroup=H;exports.DataCard=I;exports.DetailCard=B;exports.FactListCard=F;exports.FeatureCard=P;exports.MultiLinkCard=R;exports.PromoCard=T;exports.ScoreCard=D;exports.StatCard=G;exports.TextCard=q;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./CardGroup-chunk-Bdg6k3xe.js");exports.CardGroup=r.CardGroup;exports.DataCard=r.DataCard;exports.DetailCard=r.DetailCard;exports.FactListCard=r.FactListCard;exports.FeatureCard=r.FeatureCard;exports.MultiLinkCard=r.MultiLinkCard;exports.PromoCard=r.PromoCard;exports.ScoreCard=r.ScoreCard;exports.StatCard=r.StatCard;exports.TextCard=r.TextCard;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),c=require("react"),a=require("./index-chunk-Cxg31gtu.js"),x=require("./useGlobalSettings-chunk-Cd48T6lS.js"),i=require("react-dom"),d=c.forwardRef(({className:o,links:r,withPortal:l=!1},u)=>{const{prefix:s}=x.useGlobalSettings(),m=c.useId(),n=t.jsx("ol",{className:a.classNames(`${s}--context-menu`,o),id:`${s}--context-menu-${m}`,ref:u,children:r.map(e=>t.jsx("li",{className:a.classNames(`${s}--context-menu--item`,{endsection:e.endsection,className:e.className}),children:e.component?t.jsx(e.component,{className:`${s}--context-menu--link`,href:e.url,...e.componentProps,children:t.jsx("span",{className:`${s}--context-menu--label`,children:e.label})}):t.jsx("a",{href:e.url,className:`${s}--context-menu--link`,children:t.jsx("span",{className:`${s}--context-menu--label`,children:e.label})})},`${e.label}-${e.url}`))});return l?i.createPortal(n,document.body):n});exports.ContextMenu=d;
|