@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
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { jsxs as i, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as R, useState as w, useRef as l, useLayoutEffect as m } from "react";
|
|
3
|
+
import { u as N } from "./useGlobalSettings-chunk-gkijV3S1.js";
|
|
4
|
+
import { c as f } from "./index-chunk-0LeqwHm8.js";
|
|
5
|
+
import { C as L } from "./ContextMenu-chunk-Zy9igFLz.js";
|
|
6
|
+
const E = R(
|
|
7
|
+
({ className: d, language: g, theme: p = "light", hideIcon: x, options: a, ...$ }, C) => {
|
|
8
|
+
const { prefix: h } = N(), [r, u] = w(!0), s = l(null), t = l(null), e = `${h}--language-toggle`;
|
|
9
|
+
return m(() => {
|
|
10
|
+
function n(c) {
|
|
11
|
+
!t.current || !s.current || !t.current.contains(c.target) && !s.current.contains(c.target) && u(!1);
|
|
12
|
+
}
|
|
13
|
+
return document.addEventListener("mousedown", n), () => {
|
|
14
|
+
document.removeEventListener("mousedown", n);
|
|
15
|
+
};
|
|
16
|
+
}), m(() => {
|
|
17
|
+
if (!(!s.current || !t.current) && r) {
|
|
18
|
+
const n = s.current.getBoundingClientRect(), c = t.current.getBoundingClientRect();
|
|
19
|
+
t.current.style.left = `${n.left + (n.width - c.width) / 2}px`, t.current.style.top = `${n.bottom}px`;
|
|
20
|
+
}
|
|
21
|
+
}, [r]), /* @__PURE__ */ i(
|
|
22
|
+
"div",
|
|
23
|
+
{
|
|
24
|
+
ref: C,
|
|
25
|
+
className: f(e, d, `${e}--${p}`, {
|
|
26
|
+
[`${e}--open`]: r
|
|
27
|
+
}),
|
|
28
|
+
...$,
|
|
29
|
+
children: [
|
|
30
|
+
/* @__PURE__ */ i(
|
|
31
|
+
"button",
|
|
32
|
+
{
|
|
33
|
+
className: `${e}--container`,
|
|
34
|
+
ref: s,
|
|
35
|
+
onClick: () => {
|
|
36
|
+
u(!r);
|
|
37
|
+
},
|
|
38
|
+
children: [
|
|
39
|
+
!x && /* @__PURE__ */ o("span", { className: `${e}--icon` }),
|
|
40
|
+
/* @__PURE__ */ o("span", { className: `${e}--action`, children: g }),
|
|
41
|
+
/* @__PURE__ */ o("span", { className: `${e}--arrow` })
|
|
42
|
+
]
|
|
43
|
+
}
|
|
44
|
+
),
|
|
45
|
+
a && /* @__PURE__ */ o(
|
|
46
|
+
"div",
|
|
47
|
+
{
|
|
48
|
+
className: f(`${e}--context-menu`, {
|
|
49
|
+
[`${e}--context-menu__open`]: r
|
|
50
|
+
}),
|
|
51
|
+
ref: t,
|
|
52
|
+
children: /* @__PURE__ */ o(L, { links: a })
|
|
53
|
+
}
|
|
54
|
+
)
|
|
55
|
+
]
|
|
56
|
+
}
|
|
57
|
+
);
|
|
58
|
+
}
|
|
59
|
+
);
|
|
60
|
+
export {
|
|
61
|
+
E as L
|
|
62
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { jsxs as a, jsx as c } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as d } from "react";
|
|
3
|
+
import { c as m } from "./index-chunk-0LeqwHm8.js";
|
|
4
|
+
import { u as k } from "./useGlobalSettings-chunk-gkijV3S1.js";
|
|
5
|
+
const j = d(
|
|
6
|
+
({ children: e, className: r, label: n, target: i, theme: s = "light", url: t, ...l }, f) => {
|
|
7
|
+
const { prefix: p } = k();
|
|
8
|
+
let o = `${p}--link`;
|
|
9
|
+
r != null && r.includes("button") && (o = "");
|
|
10
|
+
const u = m(r, {
|
|
11
|
+
[o]: !0,
|
|
12
|
+
[`${o}--${s}`]: o && s
|
|
13
|
+
});
|
|
14
|
+
return /* @__PURE__ */ a(
|
|
15
|
+
"a",
|
|
16
|
+
{
|
|
17
|
+
ref: f,
|
|
18
|
+
className: u,
|
|
19
|
+
href: t,
|
|
20
|
+
target: i,
|
|
21
|
+
rel: i ? "noopener noreferrer" : void 0,
|
|
22
|
+
...l,
|
|
23
|
+
children: [
|
|
24
|
+
n && /* @__PURE__ */ c("span", { className: "link__label", children: n }),
|
|
25
|
+
e
|
|
26
|
+
]
|
|
27
|
+
}
|
|
28
|
+
);
|
|
29
|
+
}
|
|
30
|
+
);
|
|
31
|
+
export {
|
|
32
|
+
j as L
|
|
33
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { jsxs as i, jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as p } from "react";
|
|
3
|
+
import { c as r } from "./index-chunk-0LeqwHm8.js";
|
|
4
|
+
import { u as N } from "./useGlobalSettings-chunk-gkijV3S1.js";
|
|
5
|
+
const x = p(
|
|
6
|
+
({ className: c, headline: n, linkgroup: m, theme: d = "light" }, t) => {
|
|
7
|
+
const { prefix: h } = N(), s = `${h}--link-list`;
|
|
8
|
+
return /* @__PURE__ */ i(
|
|
9
|
+
"div",
|
|
10
|
+
{
|
|
11
|
+
ref: t,
|
|
12
|
+
className: r(s, c, `${s}--${d}`),
|
|
13
|
+
children: [
|
|
14
|
+
n && /* @__PURE__ */ l("h3", { className: `${s}--headline`, children: n }),
|
|
15
|
+
/* @__PURE__ */ l("ul", { className: `${s}--linkgroups`, children: m.map((e, o) => /* @__PURE__ */ i(
|
|
16
|
+
"li",
|
|
17
|
+
{
|
|
18
|
+
className: `${s}--linkgroups-item`,
|
|
19
|
+
children: [
|
|
20
|
+
e.headline && /* @__PURE__ */ l("h4", { className: `${s}--links--headline`, children: e.headline }),
|
|
21
|
+
/* @__PURE__ */ l("ul", { className: `${s}--links`, children: e.links.map((a, $) => /* @__PURE__ */ l(
|
|
22
|
+
"li",
|
|
23
|
+
{
|
|
24
|
+
className: r(`${s}--links--item`, {
|
|
25
|
+
indented: a.indented
|
|
26
|
+
}),
|
|
27
|
+
children: /* @__PURE__ */ i("a", { href: a.url, className: `${s}--link`, children: [
|
|
28
|
+
/* @__PURE__ */ l("span", { className: `${s}--label`, children: a.label }),
|
|
29
|
+
/* @__PURE__ */ l("span", { className: `${s}--icon` })
|
|
30
|
+
] })
|
|
31
|
+
},
|
|
32
|
+
`link-${$}`
|
|
33
|
+
)) })
|
|
34
|
+
]
|
|
35
|
+
},
|
|
36
|
+
`linkgroup-${o}`
|
|
37
|
+
)) })
|
|
38
|
+
]
|
|
39
|
+
}
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
);
|
|
43
|
+
export {
|
|
44
|
+
x as L
|
|
45
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { jsxs as d, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as c } from "react";
|
|
3
|
+
import { c as m } from "./index-chunk-0LeqwHm8.js";
|
|
4
|
+
import { u as f } from "./useGlobalSettings-chunk-gkijV3S1.js";
|
|
5
|
+
const p = c(
|
|
6
|
+
({
|
|
7
|
+
children: t,
|
|
8
|
+
className: i,
|
|
9
|
+
alignment: n = "default",
|
|
10
|
+
ordered: e = "unstyled",
|
|
11
|
+
title: l,
|
|
12
|
+
theme: o = "light",
|
|
13
|
+
...r
|
|
14
|
+
}, u) => {
|
|
15
|
+
const { prefix: _ } = f(), s = `${_}--list`, $ = m(i, s, {
|
|
16
|
+
[`${s}__unstyled`]: e === "unstyled",
|
|
17
|
+
[`${s}__horizontal`]: n === "horizontal",
|
|
18
|
+
[`${s}__theme__${o}`]: o
|
|
19
|
+
});
|
|
20
|
+
return /* @__PURE__ */ d("div", { className: $, ref: u, ...r, children: [
|
|
21
|
+
l && /* @__PURE__ */ a("h2", { className: `${s}--title`, children: l }),
|
|
22
|
+
e === "ordered" ? /* @__PURE__ */ a("ol", { children: t }) : /* @__PURE__ */ a("ul", { children: t })
|
|
23
|
+
] });
|
|
24
|
+
}
|
|
25
|
+
), h = c(
|
|
26
|
+
({ children: t, className: i, ...n }, e) => {
|
|
27
|
+
const { prefix: l } = f(), o = `${l}--list--item`, r = m(i, o);
|
|
28
|
+
return /* @__PURE__ */ a("li", { className: r, ref: e, ...n, children: t });
|
|
29
|
+
}
|
|
30
|
+
), j = Object.assign(p, { Item: h });
|
|
31
|
+
export {
|
|
32
|
+
j as List
|
|
33
|
+
};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { jsx as e, Fragment as $, jsxs as n } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as N, useState as b } from "react";
|
|
3
|
+
import { c as v } from "./index-chunk-0LeqwHm8.js";
|
|
4
|
+
import { u as x } from "./useGlobalSettings-chunk-gkijV3S1.js";
|
|
5
|
+
import { B as y } from "./Button-chunk-BlSnS8yQ.js";
|
|
6
|
+
const S = N(
|
|
7
|
+
({
|
|
8
|
+
className: t,
|
|
9
|
+
closelabel: r = "Close",
|
|
10
|
+
copy: c,
|
|
11
|
+
cta: a,
|
|
12
|
+
headline: d,
|
|
13
|
+
placement: l,
|
|
14
|
+
timestamp: i,
|
|
15
|
+
type: o
|
|
16
|
+
}, m) => {
|
|
17
|
+
const { prefix: f } = x(), [u, h] = b(!0), s = `${f}--notification`, p = v(s, t, {
|
|
18
|
+
[`${s}--${l}`]: l,
|
|
19
|
+
[`icon icon--${o}`]: o
|
|
20
|
+
});
|
|
21
|
+
return /* @__PURE__ */ e($, { children: u && /* @__PURE__ */ n(
|
|
22
|
+
"div",
|
|
23
|
+
{
|
|
24
|
+
className: p,
|
|
25
|
+
role: "status",
|
|
26
|
+
"aria-live": "polite",
|
|
27
|
+
"aria-relevant": "additions",
|
|
28
|
+
ref: m,
|
|
29
|
+
children: [
|
|
30
|
+
/* @__PURE__ */ n("div", { className: `${s}--content`, children: [
|
|
31
|
+
/* @__PURE__ */ e("h2", { className: `${s}--headline`, children: d }),
|
|
32
|
+
/* @__PURE__ */ e("p", { className: `${s}--copy`, children: c }),
|
|
33
|
+
i && /* @__PURE__ */ e(
|
|
34
|
+
"time",
|
|
35
|
+
{
|
|
36
|
+
className: `${s}--date`,
|
|
37
|
+
dateTime: i.unix,
|
|
38
|
+
children: i.human
|
|
39
|
+
}
|
|
40
|
+
),
|
|
41
|
+
a && /* @__PURE__ */ e("div", { className: `${s}__footer`, children: /* @__PURE__ */ e(
|
|
42
|
+
y,
|
|
43
|
+
{
|
|
44
|
+
type: "secondary",
|
|
45
|
+
size: "small",
|
|
46
|
+
link: {
|
|
47
|
+
url: a.url,
|
|
48
|
+
label: a.label
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
) })
|
|
52
|
+
] }),
|
|
53
|
+
/* @__PURE__ */ e(
|
|
54
|
+
"button",
|
|
55
|
+
{
|
|
56
|
+
className: `${s}--close`,
|
|
57
|
+
type: "button",
|
|
58
|
+
onClick: () => h(!1),
|
|
59
|
+
children: /* @__PURE__ */ e("span", { children: r })
|
|
60
|
+
}
|
|
61
|
+
)
|
|
62
|
+
]
|
|
63
|
+
}
|
|
64
|
+
) });
|
|
65
|
+
}
|
|
66
|
+
);
|
|
67
|
+
export {
|
|
68
|
+
S as N
|
|
69
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { jsxs as o, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as $ } from "react";
|
|
3
|
+
import { c as h } from "./index-chunk-0LeqwHm8.js";
|
|
4
|
+
import { u as _ } from "./useGlobalSettings-chunk-gkijV3S1.js";
|
|
5
|
+
const b = $(
|
|
6
|
+
({
|
|
7
|
+
avatar: t,
|
|
8
|
+
className: m,
|
|
9
|
+
description: s,
|
|
10
|
+
link: a,
|
|
11
|
+
name: l,
|
|
12
|
+
role: i,
|
|
13
|
+
theme: c = "light",
|
|
14
|
+
size: n = "large"
|
|
15
|
+
}, f) => {
|
|
16
|
+
const { prefix: d } = _(), e = `${d}--profile`, p = h(m, {
|
|
17
|
+
[e]: !0,
|
|
18
|
+
[`${e}__theme__${c}`]: c,
|
|
19
|
+
[`${e}__size__${n}`]: n
|
|
20
|
+
});
|
|
21
|
+
return /* @__PURE__ */ o("figure", { className: p, ref: f, children: [
|
|
22
|
+
/* @__PURE__ */ r(
|
|
23
|
+
"img",
|
|
24
|
+
{
|
|
25
|
+
className: `${e}--avatar`,
|
|
26
|
+
src: t,
|
|
27
|
+
alt: `Avatar for ${l}`
|
|
28
|
+
}
|
|
29
|
+
),
|
|
30
|
+
/* @__PURE__ */ r("figcaption", { children: /* @__PURE__ */ o("div", { className: `${e}--figcaption--content`, children: [
|
|
31
|
+
/* @__PURE__ */ r("div", { className: `${e}--name`, children: l }),
|
|
32
|
+
i && /* @__PURE__ */ r("div", { className: `${e}--role`, children: i })
|
|
33
|
+
] }) }),
|
|
34
|
+
s && /* @__PURE__ */ r("p", { className: `${e}--description`, children: s }),
|
|
35
|
+
a && /* @__PURE__ */ r("div", { className: `${e}--link`, children: /* @__PURE__ */ r("a", { href: a.url, target: "__blank", rel: "noopener noreferrer", children: /* @__PURE__ */ r("span", { className: `${e}--link--label`, children: a.label }) }) })
|
|
36
|
+
] });
|
|
37
|
+
}
|
|
38
|
+
);
|
|
39
|
+
export {
|
|
40
|
+
b as P
|
|
41
|
+
};
|
|
@@ -3,7 +3,7 @@ import { forwardRef as v, useState as w } from "react";
|
|
|
3
3
|
import { c as x } from "./index-chunk-0LeqwHm8.js";
|
|
4
4
|
import { u as F } from "./useGlobalSettings-chunk-gkijV3S1.js";
|
|
5
5
|
import { I as g } from "./Input-chunk-DT_YEVSQ.js";
|
|
6
|
-
import { I as j } from "./Icon-chunk-
|
|
6
|
+
import { I as j } from "./Icon-chunk-BE5t6PqR.js";
|
|
7
7
|
const B = v(
|
|
8
8
|
({ action: f, callback: o, className: b, input: e }, C) => {
|
|
9
9
|
const [c, d] = w(""), { prefix: a } = F(), l = `${a}--searchfield`, S = `${l}--button`, y = `${l}--clear-button ${c.trim() !== "" && "show"}`, $ = `${a}--fieldset`, I = x(b, {
|
|
@@ -2,13 +2,13 @@ import { jsxs as $, jsx as a } from "react/jsx-runtime";
|
|
|
2
2
|
import { c as i } from "./index-chunk-0LeqwHm8.js";
|
|
3
3
|
import { forwardRef as d } from "react";
|
|
4
4
|
import { u as f } from "./useGlobalSettings-chunk-gkijV3S1.js";
|
|
5
|
-
const
|
|
5
|
+
const h = d(
|
|
6
6
|
({
|
|
7
7
|
className: r,
|
|
8
8
|
theme: c = "light",
|
|
9
|
-
justify:
|
|
9
|
+
justify: o = "start",
|
|
10
10
|
headline: e,
|
|
11
|
-
icons:
|
|
11
|
+
icons: t,
|
|
12
12
|
iconSize: m = "normal"
|
|
13
13
|
}, n) => {
|
|
14
14
|
const { prefix: _ } = f(), s = `${_}--social-media`;
|
|
@@ -18,7 +18,7 @@ const b = d(
|
|
|
18
18
|
className: i(
|
|
19
19
|
s,
|
|
20
20
|
`${s}__theme__${c}`,
|
|
21
|
-
`${s}__justify__${
|
|
21
|
+
`${s}__justify__${o}`,
|
|
22
22
|
r
|
|
23
23
|
),
|
|
24
24
|
ref: n,
|
|
@@ -31,7 +31,7 @@ const b = d(
|
|
|
31
31
|
`${s}--list`,
|
|
32
32
|
`${s}--list__size__${m}`
|
|
33
33
|
),
|
|
34
|
-
children:
|
|
34
|
+
children: t.map((l) => /* @__PURE__ */ a(
|
|
35
35
|
"li",
|
|
36
36
|
{
|
|
37
37
|
className: i(`${s}--list--item`, l.className),
|
|
@@ -56,7 +56,7 @@ const b = d(
|
|
|
56
56
|
}
|
|
57
57
|
);
|
|
58
58
|
}
|
|
59
|
-
);
|
|
59
|
+
), x = h;
|
|
60
60
|
export {
|
|
61
|
-
|
|
61
|
+
x as S
|
|
62
62
|
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { S as t } from "./SocialMedia-chunk-BP6TBNEf.js";
|
|
2
|
+
const o = {
|
|
3
|
+
headline: "Follow us on social media",
|
|
4
|
+
theme: "light",
|
|
5
|
+
justify: "start",
|
|
6
|
+
iconSize: "normal",
|
|
7
|
+
icons: [
|
|
8
|
+
{
|
|
9
|
+
icon: "bluesky",
|
|
10
|
+
label: "Bluesky",
|
|
11
|
+
url: "https://bsky.app/profile/ilo.org"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
icon: "facebook",
|
|
15
|
+
url: "https://www.facebook.com/ilo.org",
|
|
16
|
+
label: "Facebook"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
icon: "x",
|
|
20
|
+
url: "https://x.com/ilo",
|
|
21
|
+
label: "x"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
icon: "instagram",
|
|
25
|
+
url: "https://www.instagram.com/ilo.org/",
|
|
26
|
+
label: "Instagram"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
icon: "linkedin",
|
|
30
|
+
url: "https://www.linkedin.com/company/international-labour-organization-ilo",
|
|
31
|
+
label: "LinkedIn"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
icon: "youtube",
|
|
35
|
+
url: "https://www.youtube.com/channel/UCQsVmhSa4X-G3lHlUtejzLA",
|
|
36
|
+
label: "YouTube"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
icon: "tiktok",
|
|
40
|
+
url: "https://www.tiktok.com/@ilo",
|
|
41
|
+
label: "TikTok"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
icon: "flickr",
|
|
45
|
+
url: "https://www.flickr.com/photos/ilopictures/albums",
|
|
46
|
+
label: "flickr"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
icon: "wechat",
|
|
50
|
+
label: "Wechat",
|
|
51
|
+
url: "https://wechat.com"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
icon: "weibo",
|
|
55
|
+
label: "Weibo",
|
|
56
|
+
url: "https://weibo.com"
|
|
57
|
+
}
|
|
58
|
+
]
|
|
59
|
+
};
|
|
60
|
+
export {
|
|
61
|
+
t as SocialMedia,
|
|
62
|
+
o as socialMediaArgs
|
|
63
|
+
};
|
|
@@ -2,7 +2,7 @@ import { jsxs as o, jsx as t } from "react/jsx-runtime";
|
|
|
2
2
|
import { useState as $ } from "react";
|
|
3
3
|
import { u as h } from "./useGlobalSettings-chunk-gkijV3S1.js";
|
|
4
4
|
import { c as p } from "./index-chunk-0LeqwHm8.js";
|
|
5
|
-
import { I as d } from "./Icon-chunk-
|
|
5
|
+
import { I as d } from "./Icon-chunk-BE5t6PqR.js";
|
|
6
6
|
const f = ({ items: c }) => {
|
|
7
7
|
const [l, n] = $(0), i = (s, e) => {
|
|
8
8
|
n(s), e.preventDefault();
|
|
@@ -2,7 +2,7 @@ import { jsx as n, Fragment as x, jsxs as g } from "react/jsx-runtime";
|
|
|
2
2
|
import { createContext as T, useContext as I } from "react";
|
|
3
3
|
import { c as S } from "./index-chunk-0LeqwHm8.js";
|
|
4
4
|
import { u as _ } from "./useGlobalSettings-chunk-gkijV3S1.js";
|
|
5
|
-
import { I as w } from "./Icon-chunk-
|
|
5
|
+
import { I as w } from "./Icon-chunk-BE5t6PqR.js";
|
|
6
6
|
function E(e) {
|
|
7
7
|
let t = [...e.itemStatuses];
|
|
8
8
|
return t.indexOf(e.id) > -1 ? t = t.filter((s) => s !== e.id) : e.allowMultipleExpanded ? t.push(e.id) : t = [e.id], t;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as h } from "./Tag-chunk-
|
|
2
|
-
import { T as G } from "./Tag-chunk-
|
|
1
|
+
import { a as h } from "./Tag-chunk-DRiFjL6-.js";
|
|
2
|
+
import { T as G } from "./Tag-chunk-DRiFjL6-.js";
|
|
3
3
|
import { jsx as m } from "react/jsx-runtime";
|
|
4
4
|
import { c as C } from "./index-chunk-0LeqwHm8.js";
|
|
5
5
|
import { useState as T, useEffect as d, Children as O } from "react";
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { Accordion as a } from "./Accordion-entry-B-0bgUhR.js";
|
|
2
|
+
import { F as t } from "./Form-chunk-1a4awKWi.js";
|
|
3
|
+
import { C as m } from "./Collapse-chunk-CyOyOA2s.js";
|
|
4
|
+
import { E as x } from "./Empty-chunk-UEm5zVbe.js";
|
|
5
|
+
import { I as i } from "./Image-chunk-DGh-6cxv.js";
|
|
6
|
+
import { L as C } from "./Loading-chunk-BIJLAqk6.js";
|
|
7
|
+
import { L as n } from "./Radio-chunk-DDMoE7Le.js";
|
|
8
|
+
import { T } from "./Tag-chunk-DRiFjL6-.js";
|
|
9
|
+
import { B as F } from "./Button-chunk-BlSnS8yQ.js";
|
|
10
|
+
import { C as u } from "./ContextMenu-chunk-Zy9igFLz.js";
|
|
11
|
+
import { F as b } from "./Fieldset-chunk-udvv8dML.js";
|
|
12
|
+
import { G as H } from "./GlobalProvider-chunk-nVdEz2_E.js";
|
|
13
|
+
import { N } from "./Notification-chunk-BYrbd5f9.js";
|
|
14
|
+
import { R as B } from "./ReadMore-chunk-DoptEIE4.js";
|
|
15
|
+
import { L as M } from "./Textarea-chunk-ClZt7jmS.js";
|
|
16
|
+
import { C as h } from "./Callout-chunk-C7nmBZcD.js";
|
|
17
|
+
import { C as G } from "./Credit-chunk-BjaAFul8.js";
|
|
18
|
+
import { L as V } from "./FileUpload-chunk-Cdl4F5zH.js";
|
|
19
|
+
import { H as y } from "./Heading-chunk-CFEDmQeQ.js";
|
|
20
|
+
import { L as O } from "./Link-chunk-CKAMN_c4.js";
|
|
21
|
+
import { L as j } from "./NumberPicker-chunk-Z_TIIuxb.js";
|
|
22
|
+
import { R as z } from "./RichText-chunk-BOMiyuNR.js";
|
|
23
|
+
import { T as K } from "./Tooltip-chunk-EJOnwIYn.js";
|
|
24
|
+
import { L as W } from "./Checkbox-chunk-CdjFGjiG.js";
|
|
25
|
+
import { L as Y } from "./DatePicker-chunk-BoTriI-e.js";
|
|
26
|
+
import { H as _ } from "./Hero-chunk-CZ6kSiY-.js";
|
|
27
|
+
import { H as oo } from "./HeroCard-chunk-3mxIZYwU.js";
|
|
28
|
+
import { L as ao } from "./LinkList-chunk-BM5BTk9m.js";
|
|
29
|
+
import { P as to } from "./Pagination-chunk-Ci7qN6no.js";
|
|
30
|
+
import { S as mo } from "./SearchField-chunk-D-S-SV-o.js";
|
|
31
|
+
import { V as xo } from "./Video-chunk-DAqwWSGg.js";
|
|
32
|
+
import { L as io } from "./Dropdown-chunk-DxXjnNBq.js";
|
|
33
|
+
import { I as Lo } from "./Icon-chunk-BE5t6PqR.js";
|
|
34
|
+
import { List as lo } from "./List-entry-XHat7PmC.js";
|
|
35
|
+
import { P as co } from "./Profile-chunk-Tpvzafuk.js";
|
|
36
|
+
import { T as go } from "./TableOfContents-chunk-BXnS8D2s.js";
|
|
37
|
+
import { F as Po } from "./Footer-chunk-mcaEIXdt.js";
|
|
38
|
+
import { LocalNav as ko } from "./LocalNav-entry-DydB3k67.js";
|
|
39
|
+
import { Navigation as Do } from "./Navigation-entry-BLC2KoMs.js";
|
|
40
|
+
import { C as Ro, b as Bo, D as Io, a as Mo, F as So, M as ho, P as vo, S as Go, T as Eo } from "./CardGroup-chunk-DCTJOxvx.js";
|
|
41
|
+
import { B as wo } from "./Breadcrumb-chunk-DcsXzPvT.js";
|
|
42
|
+
import { T as Ao } from "./Tabs-chunk-C6iAood1.js";
|
|
43
|
+
import { L as Uo } from "./LanguageToggle-chunk-BxzhPBjU.js";
|
|
44
|
+
export {
|
|
45
|
+
a as Accordion,
|
|
46
|
+
wo as Breadcrumb,
|
|
47
|
+
F as Button,
|
|
48
|
+
h as Callout,
|
|
49
|
+
Ro as CardGroup,
|
|
50
|
+
W as Checkbox,
|
|
51
|
+
m as Collapse,
|
|
52
|
+
u as ContextMenu,
|
|
53
|
+
G as Credit,
|
|
54
|
+
Bo as DataCard,
|
|
55
|
+
Y as DatePicker,
|
|
56
|
+
Io as DetailCard,
|
|
57
|
+
io as Dropdown,
|
|
58
|
+
x as Empty,
|
|
59
|
+
Mo as FactListCard,
|
|
60
|
+
So as FeatureCard,
|
|
61
|
+
b as Fieldset,
|
|
62
|
+
V as FileUpload,
|
|
63
|
+
Po as Footer,
|
|
64
|
+
t as Form,
|
|
65
|
+
H as GlobalProvider,
|
|
66
|
+
y as Heading,
|
|
67
|
+
_ as Hero,
|
|
68
|
+
oo as HeroCard,
|
|
69
|
+
Lo as Icon,
|
|
70
|
+
i as Image,
|
|
71
|
+
Uo as LanguageToggle,
|
|
72
|
+
O as Link,
|
|
73
|
+
ao as LinkList,
|
|
74
|
+
lo as List,
|
|
75
|
+
C as Loading,
|
|
76
|
+
ko as LocalNav,
|
|
77
|
+
ho as MultiLinkCard,
|
|
78
|
+
Do as Navigation,
|
|
79
|
+
N as Notification,
|
|
80
|
+
j as NumberPicker,
|
|
81
|
+
to as Pagination,
|
|
82
|
+
co as Profile,
|
|
83
|
+
vo as PromoCard,
|
|
84
|
+
n as Radio,
|
|
85
|
+
B as ReadMore,
|
|
86
|
+
z as RichText,
|
|
87
|
+
mo as SearchField,
|
|
88
|
+
Go as StatCard,
|
|
89
|
+
go as TableOfContents,
|
|
90
|
+
Ao as Tabs,
|
|
91
|
+
T as Tag,
|
|
92
|
+
Eo as TextCard,
|
|
93
|
+
M as Textarea,
|
|
94
|
+
K as Tooltip,
|
|
95
|
+
xo as Video
|
|
96
|
+
};
|