@ilo-org/react 0.19.0 → 0.21.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/Blockquote-entry-BwhpFsWX.js +1 -0
- package/lib/cjs/_store/{Breadcrumb-chunk-BGt10GMr.js → Breadcrumb-chunk-DkUvpxym.js} +1 -1
- package/lib/cjs/_store/{Breadcrumb-entry-BcWOPogy.js → Breadcrumb-entry-PID5wRYn.js} +1 -1
- package/lib/cjs/_store/Button-chunk-D32W9ElW.js +1 -0
- package/lib/cjs/_store/Button-entry-CKgu8Gr2.js +1 -0
- package/lib/cjs/_store/Callout-chunk-CQirdJVX.js +1 -0
- package/lib/cjs/_store/Callout-entry-Dtce24cy.js +1 -0
- package/lib/cjs/_store/CardGroup-chunk-C_EtI9iK.js +1 -0
- package/lib/cjs/_store/Cards-entry-C_9kqjEx.js +1 -0
- package/lib/cjs/_store/ContextMenu-chunk-Dl3-wUCt.js +1 -0
- package/lib/cjs/_store/{ContextMenu-entry-UwZc4yU3.js → ContextMenu-entry-Bzzoi_xM.js} +1 -1
- package/lib/cjs/_store/Footer-chunk-6AdazgST.js +1 -0
- package/lib/cjs/_store/{Footer-entry-CI7x98xM.js → Footer-entry-D6eg1T-c.js} +1 -1
- package/lib/cjs/_store/{Hero-chunk-DiUWCO_D.js → Hero-chunk-B3vu8ihD.js} +1 -1
- package/lib/cjs/_store/{Hero-entry-AK8D7qYH.js → Hero-entry-CAssbp0C.js} +1 -1
- package/lib/cjs/_store/{HeroCard-chunk-CCNjdbBJ.js → HeroCard-chunk-Cdyuf9Gw.js} +1 -1
- package/lib/cjs/_store/{HeroCard-entry-BGUHZKKh.js → HeroCard-entry-Z_H24PlF.js} +1 -1
- package/lib/cjs/_store/Icon-chunk-Dej6jVSI.js +1 -0
- package/lib/cjs/_store/{Icon-entry-8e8qxrkm.js → Icon-entry-DCjXkjhC.js} +1 -1
- package/lib/cjs/_store/LanguageToggle-chunk-CrtaBUlW.js +1 -0
- package/lib/cjs/_store/LanguageToggle-entry-CHgP8iuU.js +1 -0
- package/lib/cjs/_store/Link-chunk-BfaKuVjz.js +1 -0
- package/lib/cjs/_store/{Link-entry-CFNVpDIo.js → Link-entry-BvkC504w.js} +1 -1
- package/lib/cjs/_store/LinkList-chunk-Eu43ZSAZ.js +1 -0
- package/lib/cjs/_store/{LinkList-entry-C2ZrAw9R.js → LinkList-entry-CUlAuyeY.js} +1 -1
- package/lib/cjs/_store/List-entry-DzqbzyL4.js +1 -0
- package/lib/cjs/_store/Nav-entry-BxYm9ulI.js +1 -0
- package/lib/cjs/_store/Notification-chunk-Cby6Dnh1.js +1 -0
- package/lib/cjs/_store/{Notification-entry-CRW1397K.js → Notification-entry-RCqY6YnO.js} +1 -1
- package/lib/cjs/_store/Profile-chunk-D1tXXPUO.js +1 -0
- package/lib/cjs/_store/{Profile-entry-DHpgLCAp.js → Profile-entry-B6vm7ggs.js} +1 -1
- package/lib/cjs/_store/{SearchField-chunk-BkrZKT5S.js → SearchField-chunk-uIkdwz2L.js} +1 -1
- package/lib/cjs/_store/{SearchField-entry-DoVeY_de.js → SearchField-entry-3sd9miiq.js} +1 -1
- package/lib/cjs/_store/SocialMedia-chunk-BbnrRkts.js +1 -0
- package/lib/cjs/_store/SocialMedia-entry-D5GkSSA8.js +1 -0
- package/lib/cjs/_store/SubsiteNav-chunk-BphCnfvs.js +1 -0
- package/lib/cjs/_store/{Tabs-chunk-CnXjQYpB.js → Tabs-chunk-C2PIPQgI.js} +1 -1
- package/lib/cjs/_store/{Tabs-entry-BRmJxjI6.js → Tabs-entry-Bicz4Q2A.js} +1 -1
- package/lib/cjs/_store/{Tag-chunk-B-UjKiml.js → Tag-chunk-DUz8ZjA1.js} +1 -1
- package/lib/cjs/_store/{Tag-entry-Dv_p5zCg.js → Tag-entry-D8aAuglc.js} +1 -1
- package/lib/cjs/_store/components-entry-BU_6L6id.js +1 -0
- package/lib/cjs/_store/index.js +1 -1
- package/lib/cjs/_store/useBreakpoint-chunk-CBEGGRKj.js +1 -0
- package/lib/cjs/index.js +1 -1
- package/lib/esm/_store/Blockquote-entry-DccNMBEH.js +15 -0
- package/lib/esm/_store/{Breadcrumb-chunk-DcsXzPvT.js → Breadcrumb-chunk-DcupgWDR.js} +1 -1
- package/lib/esm/_store/Breadcrumb-entry-1SOUCUgD.js +4 -0
- package/lib/esm/_store/Button-chunk-BlSnS8yQ.js +60 -0
- package/lib/esm/_store/Button-entry-ee89gQMg.js +4 -0
- package/lib/esm/_store/Callout-chunk-C7nmBZcD.js +66 -0
- package/lib/esm/_store/Callout-entry-CnD2XuMo.js +4 -0
- package/lib/esm/_store/CardGroup-chunk-BykGdrCT.js +425 -0
- package/lib/esm/_store/Cards-entry-DjtBPvwt.js +12 -0
- package/lib/esm/_store/ContextMenu-chunk-D-riZIFp.js +32 -0
- package/lib/esm/_store/ContextMenu-entry-BN-vEJes.js +4 -0
- package/lib/esm/_store/Footer-chunk-mcaEIXdt.js +72 -0
- package/lib/esm/_store/Footer-entry-BOC16qVW.js +4 -0
- package/lib/esm/_store/{Hero-chunk-swloBIGl.js → Hero-chunk-C1gFHcIP.js} +2 -2
- package/lib/esm/_store/Hero-entry-DWpRL6uz.js +4 -0
- package/lib/esm/_store/{HeroCard-chunk-fz3EIUiE.js → HeroCard-chunk-3mxIZYwU.js} +1 -1
- package/lib/esm/_store/HeroCard-entry-D0SDv0dt.js +4 -0
- package/lib/esm/_store/{Icon-chunk-nLD8VsP5.js → Icon-chunk-BE5t6PqR.js} +1353 -1138
- package/lib/esm/_store/Icon-entry-CzaGrGSM.js +4 -0
- package/lib/esm/_store/LanguageToggle-chunk-CsayoJqR.js +70 -0
- package/lib/esm/_store/LanguageToggle-entry-D3t_X2Qk.js +4 -0
- package/lib/esm/_store/Link-chunk-CKAMN_c4.js +33 -0
- package/lib/esm/_store/Link-entry-BOoBMNWv.js +4 -0
- package/lib/esm/_store/LinkList-chunk-BM5BTk9m.js +45 -0
- package/lib/esm/_store/LinkList-entry-mR4xR8Bg.js +4 -0
- package/lib/esm/_store/List-entry-XHat7PmC.js +33 -0
- package/lib/esm/_store/Nav-entry-CsQzrNK7.js +4 -0
- package/lib/esm/_store/Notification-chunk-BYrbd5f9.js +69 -0
- package/lib/esm/_store/Notification-entry-S8DjBxLM.js +4 -0
- package/lib/esm/_store/Profile-chunk-Tpvzafuk.js +41 -0
- package/lib/esm/_store/Profile-entry-ukgxaZNZ.js +4 -0
- package/lib/esm/_store/{SearchField-chunk-DfXCHmW0.js → SearchField-chunk-D-S-SV-o.js} +1 -1
- package/lib/esm/_store/SearchField-entry-z8Lw_Sko.js +4 -0
- package/lib/esm/_store/{SocialMedia-chunk-B0IPGaVf.js → SocialMedia-chunk-BP6TBNEf.js} +7 -7
- package/lib/esm/_store/SocialMedia-entry-C60BCp7g.js +63 -0
- package/lib/esm/_store/SubsiteNav-chunk-C97AqH9F.js +549 -0
- package/lib/esm/_store/{Tabs-chunk-CpUcNAK9.js → Tabs-chunk-C6iAood1.js} +1 -1
- package/lib/esm/_store/Tabs-entry-Di-TeLEj.js +4 -0
- package/lib/esm/_store/{Tag-chunk-6_6Oh_I3.js → Tag-chunk-DRiFjL6-.js} +1 -1
- package/lib/esm/_store/{Tag-entry-B40IGpPj.js → Tag-entry-D_EdPheu.js} +2 -2
- package/lib/esm/_store/components-entry-COAKlxYx.js +96 -0
- package/lib/esm/_store/index.js +4 -2
- package/lib/esm/_store/useBreakpoint-chunk-DBZTYUx9.js +54 -0
- package/lib/esm/index.js +68 -56
- package/lib/styles/components/blockquote.css +1 -0
- package/lib/styles/components/card.css +1 -1
- package/lib/styles/components/datacard.css +1 -1
- package/lib/styles/components/featurecard.css +1 -1
- package/lib/styles/components/languagetoggle.css +1 -0
- package/lib/styles/components/list.css +1 -1
- package/lib/styles/components/multilinkcard.css +1 -1
- package/lib/styles/components/richtext.css +1 -1
- package/lib/styles/components/socialmedia.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 +2 -2
- package/lib/styles/index.css.map +1 -1
- package/lib/styles/monorepo.css +2 -2
- package/lib/styles/monorepo.css.map +1 -1
- package/lib/types/components/Blockquote/Blockquote.d.ts +6 -0
- package/lib/types/components/Blockquote/index.d.ts +1 -0
- package/lib/types/components/Button/Button.d.ts +83 -4
- package/lib/types/components/Button/index.d.ts +1 -2
- package/lib/types/components/Callout/Callout.d.ts +50 -4
- package/lib/types/components/Callout/index.d.ts +1 -2
- package/lib/types/components/Cards/CardGroup.d.ts +31 -0
- package/lib/types/components/Cards/DataCard.d.ts +50 -0
- package/lib/types/components/Cards/DetailCard.d.ts +54 -0
- package/lib/types/components/Cards/FactListCard.d.ts +30 -0
- package/lib/types/components/Cards/{FeatureCard/FeatureCard.props.d.ts → FeatureCard.d.ts} +17 -5
- package/lib/types/components/Cards/MultiLinkCard.d.ts +52 -0
- package/lib/types/components/Cards/{PromoCard/PromoCard.props.d.ts → PromoCard.d.ts} +16 -4
- package/lib/types/components/Cards/StatCard.d.ts +39 -0
- package/lib/types/components/Cards/{TextCard/TextCard.props.d.ts → TextCard.d.ts} +16 -4
- package/lib/types/components/Cards/index.d.ts +9 -0
- package/lib/types/components/ContextMenu/ContextMenu.d.ts +4 -0
- package/lib/types/components/Footer/Footer.d.ts +50 -4
- package/lib/types/components/Footer/index.d.ts +1 -1
- package/lib/types/components/LanguageToggle/LanguageToggle.d.ts +25 -0
- package/lib/types/components/LanguageToggle/index.d.ts +1 -0
- package/lib/types/components/Link/Link.d.ts +55 -4
- package/lib/types/components/Link/index.d.ts +1 -1
- package/lib/types/components/LinkList/LinkList.d.ts +45 -4
- package/lib/types/components/LinkList/index.d.ts +1 -1
- package/lib/types/components/List/List.d.ts +54 -4
- package/lib/types/components/List/ListItem.d.ts +22 -4
- package/lib/types/components/List/index.d.ts +18 -2
- package/lib/types/components/Nav/Navigation.props.d.ts +112 -0
- package/lib/types/components/Nav/NavigationDropdown.d.ts +19 -0
- package/lib/types/components/Nav/NavigationLink.d.ts +4 -0
- package/lib/types/components/Nav/NavigationMenu.d.ts +13 -0
- package/lib/types/components/Nav/NavigationMenuGrid.d.ts +7 -0
- package/lib/types/components/Nav/Subsite/CompactNav.d.ts +4 -0
- package/lib/types/components/Nav/Subsite/ComplexNav.d.ts +4 -0
- package/lib/types/components/Nav/Subsite/SubsiteNav.d.ts +4 -0
- package/lib/types/components/Nav/index.d.ts +2 -0
- package/lib/types/components/Nav/mobile/MobileDrawer.d.ts +27 -0
- package/lib/types/components/Nav/mobile/MobileLanguageList.d.ts +9 -0
- package/lib/types/components/Nav/mobile/MobileMenuList.d.ts +8 -0
- package/lib/types/components/Nav/mobile/MobileNavigation.d.ts +15 -0
- package/lib/types/components/Nav/useNavSetup.d.ts +22 -0
- package/lib/types/components/Notification/Notification.d.ts +55 -4
- package/lib/types/components/Notification/index.d.ts +1 -1
- package/lib/types/components/Profile/Profile.d.ts +46 -4
- package/lib/types/components/Profile/index.d.ts +1 -1
- package/lib/types/components/SocialMedia/SocialMedia.d.ts +2 -43
- package/lib/types/components/SocialMedia/SocialMedia.props.d.ts +46 -0
- package/lib/types/components/SocialMedia/index.d.ts +3 -1
- package/lib/types/components/index.d.ts +3 -1
- package/lib/types/hooks/index.d.ts +1 -0
- package/lib/types/hooks/useBreakpoint.d.ts +7 -0
- package/lib/types/types/index.d.ts +1 -1
- package/package.json +10 -9
- package/lib/cjs/_store/Button-chunk-7QGSjiJL.js +0 -1
- package/lib/cjs/_store/Button-entry-B74K2XLp.js +0 -1
- package/lib/cjs/_store/Callout-chunk-DI_rZPkx.js +0 -1
- package/lib/cjs/_store/Callout-entry-GC_lYwL3.js +0 -1
- package/lib/cjs/_store/CardGroup-chunk-CrzLMpzZ.js +0 -1
- package/lib/cjs/_store/ContextMenu-chunk-Ch5u_T0d.js +0 -1
- package/lib/cjs/_store/Footer-chunk-DK416bgz.js +0 -1
- package/lib/cjs/_store/Icon-chunk-BiF41wYy.js +0 -1
- package/lib/cjs/_store/Link-chunk-B_ZIovS2.js +0 -1
- package/lib/cjs/_store/LinkList-chunk-Uvotg8l4.js +0 -1
- package/lib/cjs/_store/List-entry-CWz5DRJJ.js +0 -1
- package/lib/cjs/_store/ListItem-chunk-CHb4_N2-.js +0 -1
- package/lib/cjs/_store/LocalNav-entry-SfLDP8BS.js +0 -1
- package/lib/cjs/_store/Notification-chunk-BudHdd0h.js +0 -1
- package/lib/cjs/_store/Profile-chunk-BH98cR85.js +0 -1
- package/lib/cjs/_store/SocialMedia-chunk-jDoYRhrm.js +0 -1
- package/lib/cjs/_store/SocialMedia-entry-tsTF-Jtj.js +0 -1
- package/lib/cjs/_store/components-entry-CDxRih4j.js +0 -1
- package/lib/esm/_store/Breadcrumb-entry-B7kN28qm.js +0 -4
- package/lib/esm/_store/Button-chunk-CTOnaHZ_.js +0 -61
- package/lib/esm/_store/Button-entry-DRu9gUR5.js +0 -30
- package/lib/esm/_store/Callout-chunk-CsEfqAuS.js +0 -63
- package/lib/esm/_store/Callout-entry-sXFzYEzc.js +0 -31
- package/lib/esm/_store/CardGroup-chunk-0V0yYua2.js +0 -356
- package/lib/esm/_store/ContextMenu-chunk-Zy9igFLz.js +0 -30
- package/lib/esm/_store/ContextMenu-entry-C_rAD9kF.js +0 -4
- package/lib/esm/_store/Footer-chunk-Cfulou_M.js +0 -53
- package/lib/esm/_store/Footer-entry-xjy-auY5.js +0 -4
- package/lib/esm/_store/Hero-entry-DxQnc1Ze.js +0 -4
- package/lib/esm/_store/HeroCard-entry-Cp6p3FnU.js +0 -4
- package/lib/esm/_store/Icon-entry-CCd9MEER.js +0 -4
- package/lib/esm/_store/Link-chunk-zt732cUC.js +0 -36
- package/lib/esm/_store/Link-entry-BY4hUubQ.js +0 -4
- package/lib/esm/_store/LinkList-chunk-Doq6Z7IG.js +0 -41
- package/lib/esm/_store/LinkList-entry-B2LOzklm.js +0 -4
- package/lib/esm/_store/List-entry-C68jMDRE.js +0 -5
- package/lib/esm/_store/ListItem-chunk-CKnxZe3Y.js +0 -26
- package/lib/esm/_store/LocalNav-entry-DydB3k67.js +0 -4
- package/lib/esm/_store/Notification-chunk-VfaNI3r9.js +0 -61
- package/lib/esm/_store/Notification-entry-BIQsCmF2.js +0 -4
- package/lib/esm/_store/Profile-chunk-Bsn46OaP.js +0 -38
- package/lib/esm/_store/Profile-entry-CE39-Kzc.js +0 -4
- package/lib/esm/_store/SearchField-entry-qYGaidSz.js +0 -4
- package/lib/esm/_store/SocialMedia-entry-Dq52Wl-z.js +0 -4
- package/lib/esm/_store/Tabs-entry-BARAHSrA.js +0 -4
- package/lib/esm/_store/components-entry-BW50D0h0.js +0 -86
- package/lib/types/components/Button/Button.props.d.ts +0 -69
- package/lib/types/components/Callout/Callout.props.d.ts +0 -51
- package/lib/types/components/Cards/CardGroup/CardGroup.d.ts +0 -5
- package/lib/types/components/Cards/CardGroup/CardGroup.props.d.ts +0 -86
- package/lib/types/components/Cards/CardGroup/index.d.ts +0 -3
- package/lib/types/components/Cards/DataCard/DataCard.d.ts +0 -5
- package/lib/types/components/Cards/DataCard/DataCard.props.d.ts +0 -51
- package/lib/types/components/Cards/DataCard/index.d.ts +0 -3
- package/lib/types/components/Cards/DetailCard/DetailCard.d.ts +0 -5
- package/lib/types/components/Cards/DetailCard/DetailCard.props.d.ts +0 -40
- package/lib/types/components/Cards/DetailCard/index.d.ts +0 -3
- package/lib/types/components/Cards/FactlistCard/FactListCard.d.ts +0 -5
- package/lib/types/components/Cards/FactlistCard/FactListCard.props.d.ts +0 -21
- package/lib/types/components/Cards/FactlistCard/index.d.ts +0 -3
- package/lib/types/components/Cards/FeatureCard/FeatureCard.d.ts +0 -5
- package/lib/types/components/Cards/FeatureCard/index.d.ts +0 -3
- package/lib/types/components/Cards/MultilinkCard/MultiLinkCard.d.ts +0 -5
- package/lib/types/components/Cards/MultilinkCard/MultilinkCard.props.d.ts +0 -30
- package/lib/types/components/Cards/MultilinkCard/index.d.ts +0 -3
- package/lib/types/components/Cards/PromoCard/PromoCard.d.ts +0 -5
- package/lib/types/components/Cards/PromoCard/index.d.ts +0 -3
- package/lib/types/components/Cards/StatCard/StatCard.d.ts +0 -5
- package/lib/types/components/Cards/StatCard/StatCard.props.d.ts +0 -26
- package/lib/types/components/Cards/StatCard/index.d.ts +0 -3
- package/lib/types/components/Cards/TextCard/TextCard.d.ts +0 -5
- package/lib/types/components/Cards/TextCard/index.d.ts +0 -3
- package/lib/types/components/Footer/Footer.props.d.ts +0 -49
- package/lib/types/components/Link/Link.props.d.ts +0 -33
- package/lib/types/components/LinkList/LinkList.props.d.ts +0 -44
- package/lib/types/components/List/List.props.d.ts +0 -25
- package/lib/types/components/List/ListItem.props.d.ts +0 -16
- package/lib/types/components/LocalNav/LocalNav.d.ts +0 -5
- package/lib/types/components/LocalNav/LocalNav.props.d.ts +0 -38
- package/lib/types/components/LocalNav/index.d.ts +0 -1
- package/lib/types/components/Notification/Notification.props.d.ts +0 -57
- package/lib/types/components/Profile/Profile.props.d.ts +0 -47
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { SocialTypes } from '../../types';
|
|
2
|
+
|
|
3
|
+
export interface SocialMediaIcons {
|
|
4
|
+
/**
|
|
5
|
+
* The name of the icon to display
|
|
6
|
+
*/
|
|
7
|
+
icon: SocialTypes;
|
|
8
|
+
/**
|
|
9
|
+
* The url to link to
|
|
10
|
+
*/
|
|
11
|
+
url: string;
|
|
12
|
+
/**
|
|
13
|
+
* The alt text of the link
|
|
14
|
+
*/
|
|
15
|
+
label: string;
|
|
16
|
+
/**
|
|
17
|
+
* An optional className to add to the icon
|
|
18
|
+
*/
|
|
19
|
+
className?: string;
|
|
20
|
+
}
|
|
21
|
+
export interface SocialMediaProps {
|
|
22
|
+
/**
|
|
23
|
+
* An optional headline to display above the icons
|
|
24
|
+
*/
|
|
25
|
+
headline?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Specify an optional className to be added to your SocialMedia.
|
|
28
|
+
*/
|
|
29
|
+
className?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Specify the theme of the SocialMedia.
|
|
32
|
+
*/
|
|
33
|
+
theme?: "light" | "dark";
|
|
34
|
+
/**
|
|
35
|
+
* The justification of the icons
|
|
36
|
+
*/
|
|
37
|
+
justify?: "start" | "center";
|
|
38
|
+
/**
|
|
39
|
+
* Specify the icons to display.
|
|
40
|
+
*/
|
|
41
|
+
icons: SocialMediaIcons[];
|
|
42
|
+
/**
|
|
43
|
+
* The size of the social media icons
|
|
44
|
+
*/
|
|
45
|
+
iconSize: "normal" | "large";
|
|
46
|
+
}
|
|
@@ -35,8 +35,10 @@ export { List } from './List';
|
|
|
35
35
|
export { Profile } from './Profile';
|
|
36
36
|
export { TableOfContents } from './TableOfContents';
|
|
37
37
|
export { Footer } from './Footer';
|
|
38
|
-
export { LocalNav } from './LocalNav';
|
|
39
38
|
export { Navigation } from './Navigation';
|
|
40
39
|
export { CardGroup } from './Cards/CardGroup';
|
|
41
40
|
export { Breadcrumb } from './Breadcrumb';
|
|
42
41
|
export { Tabs } from './Tabs';
|
|
42
|
+
export * from './Cards';
|
|
43
|
+
export * from './LanguageToggle';
|
|
44
|
+
export * from './Nav';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare const useBreakpoint: (defaultBreakpoint?: string | undefined) => {
|
|
2
|
+
readonly breakpoint: null;
|
|
3
|
+
readonly minWidth: null;
|
|
4
|
+
readonly maxWidth: null;
|
|
5
|
+
readonly query: null;
|
|
6
|
+
} | import('use-breakpoint').Breakpoint<Readonly<Record<string, number>>>;
|
|
7
|
+
export default useBreakpoint;
|
|
@@ -24,7 +24,7 @@ export type NotificationTypes = "error" | "info" | "success" | "warning";
|
|
|
24
24
|
export type PositionTypes = "top" | "bottom" | "left" | "right";
|
|
25
25
|
export type SizeTypes = "small" | "medium" | "large";
|
|
26
26
|
export type TagTypes = "anchor" | "display" | "button";
|
|
27
|
-
export type SocialTypes = "facebook" | "x" | "instagram" | "linkedin" | "youtube" | "tiktok" | "flickr";
|
|
27
|
+
export type SocialTypes = "facebook" | "x" | "instagram" | "linkedin" | "youtube" | "tiktok" | "flickr" | "wechat" | "weibo" | "bluesky";
|
|
28
28
|
export type CardColor = "turquoise" | "green" | "yellow" | "blue";
|
|
29
29
|
export type CardSize = "wide" | "standard" | "narrow" | "fluid";
|
|
30
30
|
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.21.0",
|
|
4
4
|
"description": "React components for the ILO's Design System",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ui_patterns",
|
|
@@ -69,14 +69,15 @@
|
|
|
69
69
|
"dom-helpers": "^5.2.1",
|
|
70
70
|
"nanoid": "^3.3.6",
|
|
71
71
|
"react-transition-group": "^4.4.1",
|
|
72
|
+
"use-breakpoint": "^4.0.6",
|
|
72
73
|
"video.js": "^7.21.2",
|
|
73
74
|
"videojs-youtube": "^3.0.1",
|
|
74
|
-
"@ilo-org/brand-assets": "1.0.0",
|
|
75
75
|
"@ilo-org/fonts": "1.0.0",
|
|
76
|
-
"@ilo-org/icons-react": "1.0.
|
|
77
|
-
"@ilo-org/styles": "1.3.4",
|
|
76
|
+
"@ilo-org/icons-react": "1.0.3",
|
|
78
77
|
"@ilo-org/themes": "0.9.1",
|
|
79
|
-
"@ilo-org/utils": "0.1.1"
|
|
78
|
+
"@ilo-org/utils": "0.1.1",
|
|
79
|
+
"@ilo-org/styles": "1.5.0",
|
|
80
|
+
"@ilo-org/brand-assets": "1.0.0"
|
|
80
81
|
},
|
|
81
82
|
"devDependencies": {
|
|
82
83
|
"@storybook/addon-actions": "^8.1.9",
|
|
@@ -112,12 +113,12 @@
|
|
|
112
113
|
"vite-plugin-static-copy": "^1.0.6",
|
|
113
114
|
"vitest": "^2.0.5",
|
|
114
115
|
"@ilo-org/eslint-config": "2.0.0",
|
|
115
|
-
"@ilo-org/
|
|
116
|
-
"@ilo-org/
|
|
116
|
+
"@ilo-org/typescript-config": "2.0.0",
|
|
117
|
+
"@ilo-org/prettier-config": "2.0.0"
|
|
117
118
|
},
|
|
118
119
|
"peerDependencies": {
|
|
119
|
-
"react": "18",
|
|
120
|
-
"react-dom": "18"
|
|
120
|
+
"react": "18 || 19",
|
|
121
|
+
"react-dom": "18 || 19"
|
|
121
122
|
},
|
|
122
123
|
"publishConfig": {
|
|
123
124
|
"access": "public"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const n=require("react/jsx-runtime"),C=require("./index-chunk-DCI82Tmm.js"),k=require("./useGlobalSettings-chunk-Pa38w6VS.js"),I=require("./Link-chunk-B_ZIovS2.js"),$=require("./Icon-chunk-BiF41wYy.js"),L=({callback:i,className:h,disabled:m=!1,icon:t,icononly:r,iconPosition:x,kind:_="button",label:e,opensmodal:j,size:a="large",target:p="",type:c="primary",url:u,style:l,name:b})=>{const{prefix:f}=k.useGlobalSettings(),s=`${f}--button`,g=!!u,q=x||"left",d=C.classnames(h,{[s]:!0,[`${s}__${a}`]:a,[`${s}__${c}`]:c,[`${s}--icon ${s}--icon--position__${q}`]:t&&!r,[`${s}--icon ${s}--icon--only`]:t&&r}),B=o=>{i&&i(o)};return n.jsx(n.Fragment,{children:g?n.jsx(I.Link,{className:d,target:p,url:u,label:e,style:l,children:t&&n.jsx($.Icon,{name:t,hidden:!0})}):n.jsxs("button",{className:d,onClick:o=>B(o),disabled:m,type:_,"aria-haspopup":j?"dialog":!1,style:l,name:b,children:[e&&n.jsx("span",{className:"button__label",children:e}),t&&n.jsx($.Icon,{name:t,hidden:!0})]})})},N=L;exports.Button=N;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./Button-chunk-7QGSjiJL.js"),e={type:"primary",label:"Primary",size:"medium",name:"primary"},r={type:"secondary",label:"Secondary",name:"secondary"},a={type:"tertiary",label:"Tertiary",name:"tertiary"},o={type:"alert",label:"Alert",name:"alert"},i={type:"primary",label:"Icon",icon:"close"},n={type:"primary",label:"Disabled",disabled:!0},l={type:"primary",icon:"caret_right",iconPosition:"right",label:"Visit ilo.org",url:"https://www.ilo.org",target:"__blank"},s={primary:e,secondary:r,tertiary:a,alert:o,icon:i,disabled:n,link:l};exports.Button=t.Button;exports.buttonArgs=s;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),v=require("./index-chunk-DCI82Tmm.js"),d=require("react"),b=require("./useGlobalSettings-chunk-Pa38w6VS.js"),f=require("./Button-chunk-7QGSjiJL.js"),q=({className:$,copy:_,cta:l,isCollapsible:i,isOpen:n=!0,toggleOpenLabel:c="Less",toggleClosedLabel:a="More",headline:m,type:o})=>{const{prefix:x}=b.useGlobalSettings(),s=`${x}--callout`,[t,u]=d.useState(n);let r=t?c:a;d.useEffect(()=>{u(n),r=t?c:a},[n]);const h=v.classnames($,{[s]:!0,[`${s}__${o}`]:o,[`${s}--open`]:t,[`${s}--collapse`]:i}),j=`icon icon__${o}`,N={callback:void 0,className:`${s}--cta`,children:!1,label:l==null?void 0:l.label,size:"small",type:"tertiary",url:l==null?void 0:l.url},p=g=>{g.preventDefault(),r=t?c:a,u(!t)};return e.jsxs("div",{className:h,children:[e.jsx("div",{className:`${s}__sidebar`,children:e.jsx("span",{className:j})}),e.jsxs("div",{className:`${s}__content`,children:[e.jsxs("div",{className:`${s}__header`,children:[e.jsx("h5",{className:`${s}__title`,children:m}),i&&e.jsxs("button",{className:`${s}--toggle`,onClick:p,type:"button",children:[r,e.jsx("span",{className:`${s}--toggle--icon`})]})]}),e.jsx("p",{className:`${s}__description`,children:_}),l&&e.jsx(f.Button,{...N})]})]})},C=q;exports.Callout=C;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./Callout-chunk-DI_rZPkx.js"),l={copy:"Lorem ipsum dolor sit amet, consectetur adipiscing elit.",isCollapsible:!1,headline:"Info Callout",type:"info"},o={...l,type:"success",headline:"Success Callout"},t={...l,type:"warning",headline:"Warning Callout"},s={...l,cta:{label:"Optional CTA",url:"http://www.google.com"},isCollapsible:!0,isOpen:!1,headline:"Error Callout (Collapsible)",toggleOpenLabel:"Open",toggleClosedLabel:"Closed",type:"error"},a={baseArgs:l,success:o,warning:t,error:s},n=a;exports.Callout=e.Callout;exports.calloutArgs=n;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const s=require("react/jsx-runtime"),o=require("./index-chunk-DCI82Tmm.js"),x=require("./useGlobalSettings-chunk-Pa38w6VS.js"),b=require("./Button-chunk-7QGSjiJL.js"),j=require("./Link-chunk-B_ZIovS2.js"),N=require("./LinkList-chunk-Uvotg8l4.js"),C=require("./Profile-chunk-BH98cR85.js"),h=require("./ListItem-chunk-CHb4_N2-.js"),f=({eyebrow:$,size:i="narrow",image:d,dataset:c,columns:m="one"})=>{const{prefix:t}=x.useGlobalSettings(),a=`${t}--card`,r=o.classnames(a,`${a}__type__data`,{[`${a}__size__${i}`]:i,[`${a}__type__data__columns__${m}`]:m});return s.jsx("div",{className:r,children:s.jsxs("div",{className:`${a}--wrap`,children:[$&&s.jsx("p",{className:`${a}--eyebrow`,children:$}),s.jsxs("div",{className:`${a}--content`,children:[d&&s.jsx("div",{className:`${a}--image--wrapper`,children:s.jsx("picture",{children:s.jsx("img",{className:`${a}--picture`,src:d,alt:$})})}),c&&c.content&&c.content.items&&c.content.items.map(n=>s.jsxs("div",{className:`${a}--area--content`,children:[s.jsx("p",{className:`${a}__type__data--content-label`,children:n.label}),s.jsx("p",{className:`${a}__type__data--content-copy`,children:n.copy})]},n.label)),c&&c.files&&s.jsxs("div",{className:`${a}--data--content-files`,children:[s.jsx("p",{className:`${a}__type__data--content-label`,children:c.files.headline}),c.files.items&&c.files.items.map(n=>s.jsx("a",{className:`${a}--data--file ${t}--button ${t}--button--primary ${t}--button--small`,href:n.url,download:!0,children:s.jsx("span",{className:"button__label",children:n.label})},n.url))]}),c&&c.cta&&s.jsx("div",{className:`${a}--area--cta`,children:s.jsxs("div",{className:`${a}--data--content-cta`,children:[s.jsx("p",{className:`${a}__type__data--content-label`,children:c.cta.headline}),c.cta.items&&c.cta.items.map(n=>s.jsx("a",{className:`${a}--cta ${t}--button ${t}--button--medium ${t}--button--secondary`,href:n.url,children:s.jsx("span",{className:"link__label",children:n.label})},n.url))]})}),c&&c.links&&s.jsxs("div",{className:`${a}--data--content-links`,children:[s.jsx("p",{className:`${a}__type__data--content-label`,children:c.links.headline}),c.links.items&&c.links.items.map(n=>s.jsxs(s.Fragment,{children:[s.jsx(j.Link,{url:n.url,children:n.label}),s.jsx("span",{children:" "})]}))]})]})]})})},w=({eyebrow:$,title:i,size:d="narrow",intro:c,date:m,eventdetails:t,link:a,image:r,titleLevel:n})=>{const{prefix:_}=x.useGlobalSettings(),l=`${_}--card`,e=o.classnames(l,`${l}__type__detail`,{[`${l}__action`]:a,[`${l}__size__${d}`]:d});return s.jsxs("div",{className:e,children:[a&&s.jsx("a",{className:`${l}--link`,href:a,title:i,children:s.jsx("span",{className:`${l}--link--text`,children:i})}),s.jsxs("div",{className:`${l}--wrap`,children:[r&&s.jsx("div",{className:`${l}--image--wrapper`,children:s.jsx("picture",{children:s.jsx("img",{className:`${l}--picture`,src:r,alt:i})})}),s.jsxs("div",{className:`${l}--content`,children:[$&&s.jsx("p",{className:`${l}--eyebrow`,children:$}),i&&n?s.jsx(n,{className:`${l}--title`,children:i}):s.jsx("p",{className:`${l}--title`,children:i}),c&&s.jsx("p",{className:`${l}--intro`,children:c}),m&&s.jsx("time",{className:`${l}--date`,dateTime:m.unix,children:m.human}),t&&s.jsx("p",{className:`${l}--date-extra`,children:t})]})]})]})},y=({title:$,theme:i,size:d="narrow",list:c,titleLevel:m})=>{const{prefix:t}=x.useGlobalSettings(),a=`${t}--card`,r=o.classnames(a,`${a}__type__factlist`,{[`${a}__size__${d}`]:d,[`${a}__theme__${i}`]:i});return s.jsx("div",{className:r,children:s.jsx("div",{className:`${a}--wrap`,children:s.jsxs("div",{className:`${a}--content`,children:[$&&m?s.jsx(m,{className:`${a}--title`,children:$}):s.jsx("p",{className:`${a}--title`,children:$}),c&&s.jsx(h.List,{alignment:"default",ordered:"unordered",children:c.map((n,_)=>s.jsx(h.ListItem,{id:`list${_}`,children:s.jsx("p",{children:n})},`${n}`))})]})})})},g=({isvideo:$,eyebrow:i,title:d,theme:c,size:m="narrow",date:t,link:a,linklist:r,image:n,titleLevel:_})=>{const{prefix:l}=x.useGlobalSettings(),e=`${l}--card`,p=o.classnames(e,`${e}__type__feature`,{[`${e}__action`]:a,[`${e}__size__${m}`]:m,[`${e}__isvideo`]:$,[`${e}__linklist`]:r,[`${e}__theme__${c}`]:c});return s.jsxs("div",{className:p,children:[a&&s.jsx("a",{className:`${e}--link`,href:a,title:d,children:s.jsx("span",{className:`${e}--link--text`,children:d})}),s.jsxs("div",{className:`${e}--wrap`,children:[n&&s.jsx("div",{className:`${e}--image--wrapper`,children:s.jsx("picture",{children:s.jsx("img",{className:`${e}--picture`,src:n,alt:d})})}),s.jsxs("div",{className:`${e}--content`,children:[i&&s.jsx("p",{className:`${e}--eyebrow`,children:i}),d&&_?s.jsx(_,{className:`${e}--title`,children:d}):s.jsx("p",{className:`${e}--title`,children:d}),t&&s.jsx("time",{className:`${e}--date`,dateTime:t.unix,children:t.human}),r&&s.jsx(N.LinkList,{headline:r.headline,linkgroup:r.linkgroup})]})]})]})},k=({isvideo:$,eyebrow:i,title:d,size:c="standard",alignment:m,intro:t,link:a,linklist:r,image:n,titleLevel:_})=>{const{prefix:l}=x.useGlobalSettings(),e=`${l}--card`,p=o.classnames(e,`${e}__type__multilink`,{[`${e}__align__${m}`]:m,[`${e}__action`]:a,[`${e}__size__${c}`]:c,[`${e}__isvideo`]:$,[`${e}__linklist`]:r,[`${e}__no-image`]:!n});return s.jsxs("div",{className:p,children:[a&&s.jsx("a",{className:`${e}--link`,href:a,title:d,children:s.jsx("span",{className:`${e}--link--text`,children:d})}),s.jsxs("div",{className:`${e}--wrap`,children:[n&&s.jsx("div",{className:`${e}--image--wrapper`,children:s.jsx("picture",{children:s.jsx("img",{className:`${e}--picture`,src:n,alt:d})})}),s.jsxs("div",{className:`${e}--content`,children:[i&&s.jsx("p",{className:`${e}--eyebrow`,children:i}),d&&_?s.jsx(_,{className:`${e}--title`,children:d}):s.jsx("p",{className:`${e}--title`,children:d}),n&&s.jsx("div",{className:`${e}--image--wrapper`,children:s.jsx("picture",{children:s.jsx("img",{className:`${e}--picture`,src:n,alt:d})})}),t&&s.jsx("p",{className:`${e}--intro`,children:t}),r&&s.jsx(N.LinkList,{headline:r.headline,linkgroup:r.linkgroup})]})]})]})},L=({eyebrow:$,title:i,theme:d,size:c="narrow",cornercut:m,intro:t,link:a,cta:r,titleLevel:n})=>{const{prefix:_}=x.useGlobalSettings(),l=`${_}--card`,e=o.classnames(`${l}--wrapper`,`${l}--wrapper__type__promo ${l}--wrapper__type__promo__size__${c}`),p=o.classnames(l,`${l}__type__promo`,{[`${l}__cornercut`]:m,[`${l}__action`]:a,[`${l}__size__${c}`]:c,[`${l}__theme__${d}`]:d});return s.jsx("div",{className:e,children:s.jsxs("div",{className:p,children:[a&&s.jsx("a",{className:`${l}--link`,href:a,title:i,children:s.jsx("span",{className:`${l}--link--text`,children:i})}),s.jsx("div",{className:`${l}--wrap`,children:s.jsxs("div",{className:`${l}--content`,children:[$&&s.jsx("p",{className:`${l}--eyebrow`,children:$}),i&&n?s.jsx(n,{className:`${l}--title`,children:i}):s.jsx("p",{className:`${l}--title`,children:i}),t&&s.jsx("p",{className:`${l}--intro`,children:t}),r&&r.label&&s.jsx("a",{className:`${l}--cta ${_}--button ${_}--button--medium ${_}--button--primary`,href:r.url,children:s.jsx("span",{className:"link__label",children:r.label})})]})})]})})},G=({title:$,color:i,size:d="standard",intro:c,source:m,titleLevel:t})=>{const{prefix:a}=x.useGlobalSettings(),r=`${a}--card`,n=o.classnames(r,`${r}__type__stat`,{[`${r}__color__${i}`]:i,[`${r}__size__${d}`]:d});return s.jsx("div",{className:n,children:s.jsx("div",{className:`${r}--wrap`,children:s.jsxs("div",{className:`${r}--content`,children:[$&&t?s.jsx(t,{className:`${r}--title`,children:$}):s.jsx("p",{className:`${r}--title`,children:$}),c&&s.jsx("p",{className:`${r}--intro`,children:c}),m&&s.jsx(j.Link,{url:m.url,children:m.label})]})})})},S=({eyebrow:$,title:i,theme:d,size:c,date:m,profile:t,link:a,titleLevel:r})=>{const{prefix:n}=x.useGlobalSettings(),_=`${n}--card`,l=o.classnames(`${_}--wrapper`),e=o.classnames(_,`${_}__type__text`,{[`${_}__action`]:a,[`${_}__size__${c}`]:c,[`${_}__theme__${d}`]:d});return s.jsx("div",{className:l,children:s.jsxs("div",{className:e,children:[a&&s.jsx("a",{className:`${_}--link`,href:a,title:i,children:s.jsx("span",{className:`${_}--link--text`,children:i})}),s.jsx("div",{className:`${_}--wrap`,children:s.jsxs("div",{className:`${_}--content`,children:[$&&s.jsx("p",{className:`${_}--eyebrow`,children:$}),i&&r?s.jsx(r,{className:`${_}--title`,children:i}):s.jsx("p",{className:`${_}--title`,children:i}),m&&s.jsx("time",{className:`${_}--date`,dateTime:m.unix,children:m.human}),t&&t.avatar&&s.jsx(C.Profile,{avatar:t.avatar,description:t.description,link:t.link,name:t.name,role:t.role,className:`${n}--profile__theme__${d}`})]})})]})})},q={stat:G,multilink:k,text:S,promo:L,feature:g,detail:w,factlist:y,data:f},F=({cards:$,titleLevel:i="p",cardCount:d,cta:c,type:m,alignment:t,size:a,theme:r,collapsed:n=!1})=>{const _=q[m],{prefix:l}=x.useGlobalSettings(),e=`${l}--cardgroup`,p=o.classnames(e,`${e}__count__${d}`,{[`${e}__collapsed`]:n});return s.jsxs("div",{className:p,children:[s.jsx("div",{className:`${e}--inner`,children:$&&$.map((u,v)=>s.jsx(_,{...u,size:a,theme:r,alignment:t,titleLevel:i},v))}),c&&s.jsx("div",{className:`${e}--button-wrap`,children:s.jsx(b.Button,{kind:"button",type:"secondary",size:"medium",label:c.label,url:c.url})})]})},P=F;exports.CardGroup=P;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const n=require("react/jsx-runtime"),r=require("react"),t=require("./index-chunk-DCI82Tmm.js"),o=require("./useGlobalSettings-chunk-Pa38w6VS.js"),u=r.forwardRef(({className:a,links:c},l)=>{const{prefix:s}=o.useGlobalSettings();return n.jsx("ol",{className:t.classnames(`${s}--context-menu`,a),ref:l,children:c.map(e=>n.jsx("li",{className:t.classnames(`${s}--context-menu--item`,{endsection:e.endsection,className:e.className}),children:n.jsx("a",{href:e.url,className:`${s}--context-menu--link`,children:n.jsx("span",{className:`${s}--context-menu--label`,children:e.label})})},`${e.label}-${e.url}`))})});exports.ContextMenu=u;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const s=require("react/jsx-runtime"),u=require("./useGlobalSettings-chunk-Pa38w6VS.js"),$=require("./index-chunk-DCI82Tmm.js"),f=require("./LinkList-chunk-Uvotg8l4.js"),g=require("./Button-chunk-7QGSjiJL.js"),y=require("./SocialMedia-chunk-jDoYRhrm.js"),q=({className:o,logo:m,tagline:x,subtagline:j,address:r,linkgroup:t,socialmedia:d,subscribe:e,legal:N,secondarylinks:n,anchorlink:c})=>{const{prefix:i}=u.useGlobalSettings(),a=`${i}--footer`,h=$.classnames(o,a);return s.jsxs("footer",{className:h,children:[s.jsxs("div",{className:`${a}--main ${i}--container`,children:[s.jsxs("div",{className:"site--info",children:[s.jsx("img",{className:`${a}--logo`,src:m,alt:"ILO Logo"}),s.jsx("h3",{className:`${a}--headline`,children:x}),s.jsx("h4",{className:`${a}--subhead`,children:j})]}),r&&s.jsx("div",{className:"address",children:r.map((l,v)=>s.jsx("p",{className:"address--line",children:l},v))}),t&&s.jsx("nav",{className:"links",children:s.jsx(f.LinkList,{linkgroup:t,theme:"dark"})}),d&&s.jsx("div",{className:"connect",children:s.jsx("div",{className:"social--links",children:s.jsx(y.SocialMedia,{...d,theme:"dark"})})}),e&&s.jsx("div",{className:"subscribe",children:s.jsx(g.Button,{label:e==null?void 0:e.label,url:e==null?void 0:e.url,type:"primary",size:"large",target:"_blank"})})]}),s.jsx("div",{className:`${a}--secondary`,children:s.jsxs("div",{className:`${i}--container`,children:[s.jsxs("div",{className:`${a}--secondary--details`,children:[s.jsx("div",{className:"legal",children:N}),n&&s.jsx("nav",{className:"secondarylinks",children:s.jsx("ul",{className:"secondarylinks--list",children:n.map(l=>s.jsx("li",{className:"secondarylinks--list--item",children:s.jsx("a",{href:l.url,className:"secondarylinks--list--link",children:l==null?void 0:l.label})},l.url))})})]}),s.jsx("a",{href:c==null?void 0:c.url,className:"anchorlink",children:c==null?void 0:c.label})]})})]})},L=q;exports.Footer=L;
|