@ilo-org/react 0.19.0 → 0.20.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/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-D3sPRsTS.js +1 -0
- package/lib/cjs/_store/Cards-entry-Ckiqvv1d.js +1 -0
- 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-CBIMDQWO.js} +1 -1
- package/lib/cjs/_store/{Hero-entry-AK8D7qYH.js → Hero-entry-CeEUu88o.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-DsJntngZ.js +1 -0
- package/lib/cjs/_store/LanguageToggle-entry-ALUfRa_V.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/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/{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-Buq0cts7.js +1 -0
- package/lib/cjs/index.js +1 -1
- package/lib/esm/_store/Blockquote-entry-DccNMBEH.js +15 -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-DCTJOxvx.js +425 -0
- package/lib/esm/_store/Cards-entry-DOWpgXsU.js +12 -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-CZ6kSiY-.js} +1 -1
- package/lib/esm/_store/Hero-entry-DILGWuC0.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-BxzhPBjU.js +62 -0
- package/lib/esm/_store/LanguageToggle-entry-COfb1a3N.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/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/{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-C4N0L4xP.js +96 -0
- package/lib/esm/index.js +68 -58
- 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/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/Footer/Footer.d.ts +50 -4
- package/lib/types/components/Footer/index.d.ts +1 -1
- package/lib/types/components/LanguageToggle/LanguageToggle.d.ts +43 -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/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 +2 -0
- package/lib/types/types/index.d.ts +1 -1
- package/package.json +5 -5
- 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/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/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/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/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/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/Notification/Notification.props.d.ts +0 -57
- package/lib/types/components/Profile/Profile.props.d.ts +0 -47
|
@@ -1,5 +1,56 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { AnchorHTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
import { LinkTypes } from '../../types';
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
export type LinkProps = AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
5
|
+
/**
|
|
6
|
+
* Specify the url for the link's href
|
|
7
|
+
*/
|
|
8
|
+
url: string;
|
|
9
|
+
/**
|
|
10
|
+
* Specify the content of your Link.
|
|
11
|
+
*/
|
|
12
|
+
children?: ReactNode;
|
|
13
|
+
/**
|
|
14
|
+
* Specify the label for the link
|
|
15
|
+
*/
|
|
16
|
+
label?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Specify the target for the link
|
|
19
|
+
*/
|
|
20
|
+
target?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Specify an optional className to be added to your Link.
|
|
23
|
+
*/
|
|
24
|
+
theme?: LinkTypes;
|
|
25
|
+
/**
|
|
26
|
+
* Specify an optional className to be added to your Link.
|
|
27
|
+
*/
|
|
28
|
+
className?: string;
|
|
29
|
+
};
|
|
30
|
+
declare const Link: import('react').ForwardRefExoticComponent<AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
31
|
+
/**
|
|
32
|
+
* Specify the url for the link's href
|
|
33
|
+
*/
|
|
34
|
+
url: string;
|
|
35
|
+
/**
|
|
36
|
+
* Specify the content of your Link.
|
|
37
|
+
*/
|
|
38
|
+
children?: ReactNode;
|
|
39
|
+
/**
|
|
40
|
+
* Specify the label for the link
|
|
41
|
+
*/
|
|
42
|
+
label?: string | undefined;
|
|
43
|
+
/**
|
|
44
|
+
* Specify the target for the link
|
|
45
|
+
*/
|
|
46
|
+
target?: string | undefined;
|
|
47
|
+
/**
|
|
48
|
+
* Specify an optional className to be added to your Link.
|
|
49
|
+
*/
|
|
50
|
+
theme?: LinkTypes | undefined;
|
|
51
|
+
/**
|
|
52
|
+
* Specify an optional className to be added to your Link.
|
|
53
|
+
*/
|
|
54
|
+
className?: string | undefined;
|
|
55
|
+
} & import('react').RefAttributes<HTMLAnchorElement>>;
|
|
56
|
+
export { Link };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from './Link';
|
|
@@ -1,5 +1,46 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { LinkListProps } from './LinkList.props';
|
|
1
|
+
import { LinkListThemes } from '../../types';
|
|
3
2
|
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
export type LinkProps = {
|
|
4
|
+
/**
|
|
5
|
+
* Specify if this link should indent and have a triangle icon
|
|
6
|
+
*/
|
|
7
|
+
indented?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Specify the label for this link
|
|
10
|
+
*/
|
|
11
|
+
label: string;
|
|
12
|
+
/**
|
|
13
|
+
* Specify the url for this link
|
|
14
|
+
*/
|
|
15
|
+
url: string;
|
|
16
|
+
};
|
|
17
|
+
export type LinkGroupProps = {
|
|
18
|
+
/**
|
|
19
|
+
* Specify an optional headline for this link group
|
|
20
|
+
*/
|
|
21
|
+
headline?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Specify the links to be displayed in this link group
|
|
24
|
+
*/
|
|
25
|
+
links: Array<LinkProps>;
|
|
26
|
+
};
|
|
27
|
+
export type LinkListProps = {
|
|
28
|
+
/**
|
|
29
|
+
* Specify an optional className to be added to your Link List component.
|
|
30
|
+
*/
|
|
31
|
+
className?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Specify a headline for the the Link List
|
|
34
|
+
*/
|
|
35
|
+
headline?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Specify the links to be displayed in the Link List
|
|
38
|
+
*/
|
|
39
|
+
linkgroup: Array<LinkGroupProps>;
|
|
40
|
+
/**
|
|
41
|
+
* Specify the theme for the Link List
|
|
42
|
+
*/
|
|
43
|
+
theme?: LinkListThemes;
|
|
44
|
+
};
|
|
45
|
+
declare const LinkList: import('react').ForwardRefExoticComponent<LinkListProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
46
|
+
export { LinkList };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from './LinkList';
|
|
@@ -1,5 +1,55 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ListProps } from './List.props';
|
|
1
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
3
2
|
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
export type ListProps = HTMLAttributes<HTMLDivElement> & {
|
|
4
|
+
/**
|
|
5
|
+
* The content of the list
|
|
6
|
+
*/
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
/**
|
|
9
|
+
* Specify an optional className to be added to your list.
|
|
10
|
+
*/
|
|
11
|
+
className?: string;
|
|
12
|
+
/**
|
|
13
|
+
* The alignment of the list items
|
|
14
|
+
*/
|
|
15
|
+
alignment?: "default" | "horizontal";
|
|
16
|
+
/**
|
|
17
|
+
* The type of list
|
|
18
|
+
*/
|
|
19
|
+
ordered?: "unstyled" | "ordered" | "unordered";
|
|
20
|
+
/**
|
|
21
|
+
* The title of the list
|
|
22
|
+
*/
|
|
23
|
+
title?: string;
|
|
24
|
+
/**
|
|
25
|
+
* The theme of the list
|
|
26
|
+
*/
|
|
27
|
+
theme?: "light" | "dark";
|
|
28
|
+
};
|
|
29
|
+
declare const List: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
|
|
30
|
+
/**
|
|
31
|
+
* The content of the list
|
|
32
|
+
*/
|
|
33
|
+
children: ReactNode;
|
|
34
|
+
/**
|
|
35
|
+
* Specify an optional className to be added to your list.
|
|
36
|
+
*/
|
|
37
|
+
className?: string | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* The alignment of the list items
|
|
40
|
+
*/
|
|
41
|
+
alignment?: "default" | "horizontal" | undefined;
|
|
42
|
+
/**
|
|
43
|
+
* The type of list
|
|
44
|
+
*/
|
|
45
|
+
ordered?: "ordered" | "unstyled" | "unordered" | undefined;
|
|
46
|
+
/**
|
|
47
|
+
* The title of the list
|
|
48
|
+
*/
|
|
49
|
+
title?: string | undefined;
|
|
50
|
+
/**
|
|
51
|
+
* The theme of the list
|
|
52
|
+
*/
|
|
53
|
+
theme?: "light" | "dark" | undefined;
|
|
54
|
+
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
55
|
+
export { List };
|
|
@@ -1,5 +1,23 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ListItemProps } from './ListItem.props';
|
|
1
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
3
2
|
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
export type ListItemProps = HTMLAttributes<HTMLLIElement> & {
|
|
4
|
+
/**
|
|
5
|
+
* Specify the content of your ListItem.
|
|
6
|
+
*/
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
/**
|
|
9
|
+
* Specify an optional className to be added to your ListItem.
|
|
10
|
+
*/
|
|
11
|
+
className?: string;
|
|
12
|
+
};
|
|
13
|
+
declare const ListItem: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLLIElement> & {
|
|
14
|
+
/**
|
|
15
|
+
* Specify the content of your ListItem.
|
|
16
|
+
*/
|
|
17
|
+
children: ReactNode;
|
|
18
|
+
/**
|
|
19
|
+
* Specify an optional className to be added to your ListItem.
|
|
20
|
+
*/
|
|
21
|
+
className?: string | undefined;
|
|
22
|
+
} & import('react').RefAttributes<HTMLLIElement>>;
|
|
23
|
+
export { ListItem };
|
|
@@ -1,2 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { ListProps } from './List';
|
|
2
|
+
import { ListItemProps } from './ListItem';
|
|
3
|
+
|
|
4
|
+
declare const List: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
|
|
5
|
+
children: import('react').ReactNode;
|
|
6
|
+
className?: string | undefined;
|
|
7
|
+
alignment?: "default" | "horizontal" | undefined;
|
|
8
|
+
ordered?: "ordered" | "unstyled" | "unordered" | undefined;
|
|
9
|
+
title?: string | undefined;
|
|
10
|
+
theme?: "light" | "dark" | undefined;
|
|
11
|
+
} & import('react').RefAttributes<HTMLDivElement>> & {
|
|
12
|
+
Item: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLLIElement> & {
|
|
13
|
+
children: import('react').ReactNode;
|
|
14
|
+
className?: string | undefined;
|
|
15
|
+
} & import('react').RefAttributes<HTMLLIElement>>;
|
|
16
|
+
};
|
|
17
|
+
export { List };
|
|
18
|
+
export type { ListProps, ListItemProps };
|
|
@@ -1,5 +1,56 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { NotificationProps } from './Notification.props';
|
|
1
|
+
import { NotificationPlacement, NotificationTypes } from '../../types';
|
|
3
2
|
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
export type NotificationProps = {
|
|
4
|
+
/**
|
|
5
|
+
* Specify an optional className to be added to your Notification component.
|
|
6
|
+
*/
|
|
7
|
+
className?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Specify the label for the close button
|
|
10
|
+
*/
|
|
11
|
+
closelabel?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Specify the copy
|
|
14
|
+
*/
|
|
15
|
+
copy: string;
|
|
16
|
+
/**
|
|
17
|
+
* Specify the settings for an option CTA
|
|
18
|
+
*/
|
|
19
|
+
cta?: {
|
|
20
|
+
/**
|
|
21
|
+
* Specify the label of the CTA
|
|
22
|
+
*/
|
|
23
|
+
label: string;
|
|
24
|
+
/**
|
|
25
|
+
* Specify the url of the CTA
|
|
26
|
+
*/
|
|
27
|
+
url: string;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Specify the headline
|
|
31
|
+
*/
|
|
32
|
+
headline?: Required<string>;
|
|
33
|
+
/**
|
|
34
|
+
* Specify whether the notification is inline in the DOM or absolutely-positioned at a higher z-index
|
|
35
|
+
*/
|
|
36
|
+
placement?: NotificationPlacement;
|
|
37
|
+
/**
|
|
38
|
+
* Specify an optional timestamp
|
|
39
|
+
*/
|
|
40
|
+
timestamp?: {
|
|
41
|
+
/**
|
|
42
|
+
* Specify the human-readable time
|
|
43
|
+
*/
|
|
44
|
+
human: string;
|
|
45
|
+
/**
|
|
46
|
+
* Specify the UNIX timestamp
|
|
47
|
+
*/
|
|
48
|
+
unix: string;
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* Specify the icon for the Notification
|
|
52
|
+
*/
|
|
53
|
+
type?: NotificationTypes;
|
|
54
|
+
};
|
|
55
|
+
declare const Notification: import('react').ForwardRefExoticComponent<NotificationProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
56
|
+
export { Notification };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from './Notification';
|
|
@@ -1,5 +1,47 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ProfileProps } from './Profile.props';
|
|
1
|
+
import { ThemeTypes, SizeTypes } from '../../types';
|
|
3
2
|
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
export type ProfileProps = {
|
|
4
|
+
/**
|
|
5
|
+
* Specify the theme for your profile component.
|
|
6
|
+
*/
|
|
7
|
+
theme?: ThemeTypes;
|
|
8
|
+
/**
|
|
9
|
+
* Specify the size for your profile component.
|
|
10
|
+
*/
|
|
11
|
+
size?: SizeTypes;
|
|
12
|
+
/**
|
|
13
|
+
* Specify an avatar to be added to your Profile component. Image *must* be a perfect square. CMS backend should provide a fallback if the avatar is not populated.
|
|
14
|
+
*/
|
|
15
|
+
avatar: string;
|
|
16
|
+
/**
|
|
17
|
+
* Specify a role to be added to your Profile component.
|
|
18
|
+
*/
|
|
19
|
+
role?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Specify the name to be added to your Profile component.
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
/**
|
|
25
|
+
* Specify an optional className to be added to your Profile component.
|
|
26
|
+
*/
|
|
27
|
+
className?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Specify an optional description to be added to your Profile component.
|
|
30
|
+
*/
|
|
31
|
+
description?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Specify an optional link to be added to your Profile component.
|
|
34
|
+
*/
|
|
35
|
+
link?: {
|
|
36
|
+
/**
|
|
37
|
+
* Specify the label for the Profile's link
|
|
38
|
+
*/
|
|
39
|
+
label: string;
|
|
40
|
+
/**
|
|
41
|
+
* Specify the url for the Profile's link
|
|
42
|
+
*/
|
|
43
|
+
url: string;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
declare const Profile: import('react').ForwardRefExoticComponent<ProfileProps & import('react').RefAttributes<HTMLElement>>;
|
|
47
|
+
export { Profile };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from './Profile';
|
|
@@ -1,45 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SocialMediaProps } from './SocialMedia.props';
|
|
2
2
|
|
|
3
|
-
export type 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
|
-
className?: string;
|
|
17
|
-
};
|
|
18
|
-
export type SocialMediaProps = {
|
|
19
|
-
/**
|
|
20
|
-
* An optional headline to display above the icons
|
|
21
|
-
*/
|
|
22
|
-
headline?: string;
|
|
23
|
-
/**
|
|
24
|
-
* Specify an optional className to be added to your SocialMedia.
|
|
25
|
-
*/
|
|
26
|
-
className?: string;
|
|
27
|
-
/**
|
|
28
|
-
* Specify the theme of the SocialMedia.
|
|
29
|
-
*/
|
|
30
|
-
theme?: "light" | "dark";
|
|
31
|
-
/**
|
|
32
|
-
* The justification of the icons
|
|
33
|
-
*/
|
|
34
|
-
justify?: "start" | "center";
|
|
35
|
-
/**
|
|
36
|
-
* Specify the icons to display.
|
|
37
|
-
*/
|
|
38
|
-
icons: SocialMediaIcons[];
|
|
39
|
-
/**
|
|
40
|
-
* The size of the social media icons
|
|
41
|
-
*/
|
|
42
|
-
iconSize: "normal" | "large";
|
|
43
|
-
};
|
|
44
3
|
declare const SocialMedia: import('react').ForwardRefExoticComponent<SocialMediaProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
45
|
-
export
|
|
4
|
+
export default SocialMedia;
|
|
@@ -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
|
+
}
|
|
@@ -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.20.0",
|
|
4
4
|
"description": "React components for the ILO's Design System",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ui_patterns",
|
|
@@ -73,8 +73,8 @@
|
|
|
73
73
|
"videojs-youtube": "^3.0.1",
|
|
74
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.
|
|
76
|
+
"@ilo-org/icons-react": "1.0.3",
|
|
77
|
+
"@ilo-org/styles": "1.4.0",
|
|
78
78
|
"@ilo-org/themes": "0.9.1",
|
|
79
79
|
"@ilo-org/utils": "0.1.1"
|
|
80
80
|
},
|
|
@@ -116,8 +116,8 @@
|
|
|
116
116
|
"@ilo-org/typescript-config": "2.0.0"
|
|
117
117
|
},
|
|
118
118
|
"peerDependencies": {
|
|
119
|
-
"react": "18",
|
|
120
|
-
"react-dom": "18"
|
|
119
|
+
"react": "18 || 19",
|
|
120
|
+
"react-dom": "18 || 19"
|
|
121
121
|
},
|
|
122
122
|
"publishConfig": {
|
|
123
123
|
"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 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;
|