@ilo-org/react 0.23.2 → 0.23.4

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.
Files changed (26) hide show
  1. package/lib/cjs/_store/Callout-chunk-CS-b8vev.js +1 -0
  2. package/lib/cjs/_store/{Callout-entry-CvydbGtc.js → Callout-entry-Ddp2XRRc.js} +1 -1
  3. package/lib/cjs/_store/{Cards-entry-F8a-taxD.js → Cards-entry-D_M0rUf1.js} +1 -1
  4. package/lib/cjs/_store/ScoreCard-chunk-CdqvfjmP.js +1 -0
  5. package/lib/cjs/_store/{components-entry-NA432JLs.js → components-entry-DI-IAypP.js} +1 -1
  6. package/lib/cjs/index.js +1 -1
  7. package/lib/esm/_store/{Callout-chunk-DDK_yI_b.js → Callout-chunk-D3zivwvj.js} +22 -17
  8. package/lib/esm/_store/Callout-entry-B0N_qxJ-.js +4 -0
  9. package/lib/esm/_store/{Cards-entry-PjEOf7PH.js → Cards-entry-BsTiPrJs.js} +1 -1
  10. package/lib/esm/_store/ScoreCard-chunk-T3fANZpV.js +480 -0
  11. package/lib/esm/_store/{components-entry-BVquzPHS.js → components-entry-BxxKZOP5.js} +2 -2
  12. package/lib/esm/index.js +2 -2
  13. package/lib/styles/components/callout.css +1 -1
  14. package/lib/styles/global.css.map +1 -1
  15. package/lib/styles/index.css +1 -1
  16. package/lib/styles/index.css.map +1 -1
  17. package/lib/styles/monorepo.css +1 -1
  18. package/lib/styles/monorepo.css.map +1 -1
  19. package/lib/types/components/Callout/Callout.d.ts +1 -1
  20. package/lib/types/components/Cards/DetailCard.d.ts +6 -1
  21. package/lib/types/components/Cards/ScoreCard.d.ts +5 -1
  22. package/package.json +4 -4
  23. package/lib/cjs/_store/Callout-chunk-BxN0hHA0.js +0 -1
  24. package/lib/cjs/_store/ScoreCard-chunk-Dd3Knwq0.js +0 -1
  25. package/lib/esm/_store/Callout-entry-BszOwKRO.js +0 -4
  26. package/lib/esm/_store/ScoreCard-chunk-uXFZTpap.js +0 -462
@@ -27,7 +27,7 @@ export type CalloutProps = {
27
27
  */
28
28
  isCollapsible?: boolean;
29
29
  /**
30
- * Specify if callout is open (only important for collapsible items)
30
+ * Specify if callout is open by default (only important for collapsible items)
31
31
  */
32
32
  isOpen?: boolean;
33
33
  /**
@@ -1,3 +1,4 @@
1
+ import { ElementType, ReactNode } from 'react';
1
2
  import { CardSize, EventDate, HeadingTypes, ThemeTypes } from '../../types';
2
3
 
3
4
  export type DetailCardProps = {
@@ -32,11 +33,15 @@ export type DetailCardProps = {
32
33
  /**
33
34
  * Intro text for the card
34
35
  */
35
- intro?: string;
36
+ intro?: string | ReactNode;
36
37
  /**
37
38
  * Specify the URL for the card link
38
39
  */
39
40
  link?: string;
41
+ /**
42
+ * Specify the component to use for the link
43
+ */
44
+ linkComponent?: ElementType;
40
45
  /**
41
46
  * Specify the image for the card
42
47
  */
@@ -1,4 +1,4 @@
1
- import { ReactNode } from 'react';
1
+ import { ElementType, ReactNode } from 'react';
2
2
  import { PictureProps } from '../Picture';
3
3
  import { StatusProps } from '../Status';
4
4
  import { ButtonProps } from '../Button';
@@ -20,6 +20,10 @@ export type ScoreCardProps = {
20
20
  * The link URL for the card.
21
21
  */
22
22
  link: string;
23
+ /**
24
+ * Specify the component to use for the link
25
+ */
26
+ linkComponent?: ElementType;
23
27
  /**
24
28
  * The title text for the card.
25
29
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ilo-org/react",
3
- "version": "0.23.2",
3
+ "version": "0.23.4",
4
4
  "description": "React components for the ILO's Design System",
5
5
  "keywords": [
6
6
  "ui_patterns",
@@ -75,7 +75,7 @@
75
75
  "@ilo-org/brand-assets": "1.0.0",
76
76
  "@ilo-org/fonts": "1.0.0",
77
77
  "@ilo-org/icons-react": "1.0.3",
78
- "@ilo-org/styles": "1.7.2",
78
+ "@ilo-org/styles": "1.7.3",
79
79
  "@ilo-org/themes": "0.9.1",
80
80
  "@ilo-org/utils": "0.1.1"
81
81
  },
@@ -112,9 +112,9 @@
112
112
  "vite-plugin-dts": "^3.9.1",
113
113
  "vite-plugin-static-copy": "^1.0.6",
114
114
  "vitest": "^2.0.5",
115
- "@ilo-org/typescript-config": "2.0.0",
116
115
  "@ilo-org/eslint-config": "2.0.0",
117
- "@ilo-org/prettier-config": "2.0.0"
116
+ "@ilo-org/prettier-config": "2.0.0",
117
+ "@ilo-org/typescript-config": "2.0.0"
118
118
  },
119
119
  "peerDependencies": {
120
120
  "react": "18 || 19",
@@ -1 +0,0 @@
1
- "use strict";const e=require("react/jsx-runtime"),N=require("./index-chunk-D921N0ug.js"),r=require("react"),p=require("./useGlobalSettings-chunk-DEacV16j.js"),g=require("./Button-chunk-B65FgSLG.js"),b=r.forwardRef(({className:i,copy:d,cta:l,isCollapsible:t,isOpen:u=!0,toggleOpenLabel:c="Less",toggleClosedLabel:o="More",headline:x,type:n},_)=>{const{prefix:$}=p.useGlobalSettings(),s=`${$}--callout`,[a,m]=r.useState(u),j=N.classnames(s,i,{[`${s}__${n}`]:n,[`${s}--open`]:a,[`${s}--collapse`]:t}),h=a?c:o;return e.jsxs("div",{className:j,ref:_,children:[e.jsx("div",{className:`${s}__sidebar`,children:e.jsx("span",{className:`${s}--icon icon icon__${n}`})}),e.jsxs("div",{className:`${s}__content`,children:[e.jsxs("div",{className:`${s}__header`,children:[e.jsx("h5",{className:`${s}__title`,children:x}),t&&e.jsxs("button",{className:`${s}--toggle`,onClick:()=>m(!a),"data-open":c,"data-closed":o,children:[e.jsx("span",{className:`${s}--button-text`,children:h}),e.jsx("span",{className:`${s}--toggle--icon`,role:"presentation"})]})]}),e.jsx("p",{className:`${s}__description`,children:d}),l&&e.jsx("div",{className:`${s}__footer`,children:e.jsx(g.Button,{type:"secondary",size:"small",link:{url:l.url,label:l.label}})})]})]})});exports.Callout=b;
@@ -1 +0,0 @@
1
- "use strict";const s=require("react/jsx-runtime"),N=require("react"),j=require("./index-chunk-D921N0ug.js"),u=require("./useGlobalSettings-chunk-DEacV16j.js"),f=require("./Button-chunk-B65FgSLG.js"),g=require("./Link-chunk-DuZiglb_.js"),k=require("./LinkList-chunk-AT26ZVEG.js"),F=require("./Profile-chunk-Du8HEAQA.js"),w=require("./List-entry-DRGsrQZi.js"),D=require("./Picture-chunk-CK6tJPnd.js"),I=require("./Status-chunk-3GZXo15N.js"),M=require("./Icon-chunk-QFryHTpy.js"),y=N.forwardRef(({className:p,title:r,theme:n="light",size:e="standard",color:m,intro:t,source:x,titleLevel:o="p"},i)=>{const{prefix:a}=u.useGlobalSettings(),d=`${a}--card`,$=j.classnames(`${d}--wrapper`,p),_=j.classnames(d,`${d}__type__stat`,{[`${d}__size__${String(e)}`]:e,[`${d}__theme__${n}`]:n,[`${d}__color__${m}`]:m});return s.jsx("div",{className:$,ref:i,children:s.jsx("div",{className:_,children:s.jsx("div",{className:`${d}--wrap`,children:s.jsxs("div",{className:`${d}--content`,children:[s.jsx(o,{className:`${d}--title`,children:r}),t&&s.jsx("p",{className:`${d}--intro`,children:t}),x&&s.jsx(g.Link,{className:`${d}--source`,url:x.url,label:x.label})]})})})})}),L=N.forwardRef(({className:p,title:r,size:n="standard",alignment:e,intro:m,link:t,linklist:x,image:o,titleLevel:i="p",eyebrow:a,isVideo:d,theme:$="light"},_)=>{const{prefix:c}=u.useGlobalSettings(),l=`${c}--card`,h=j.classnames(l,p,`${l}__type__multilink`,{[`${l}__align__${e}`]:e,[`${l}__size__${n}`]:n,[`${l}__isvideo`]:d,[`${l}--no-image`]:!o,[`${l}__theme__${$}`]:$});return s.jsxs("div",{className:h,ref:_,children:[t&&s.jsx("a",{className:`${l}--link`,href:t,title:r,children:s.jsx("span",{className:`${l}--link--text`,children:r})}),s.jsxs("div",{className:`${l}--wrap`,children:[o&&s.jsx("div",{className:`${l}--image--wrapper`,children:s.jsx("picture",{children:s.jsx("img",{src:o,alt:r,className:`${l}--picture`})})}),s.jsxs("div",{className:`${l}--content`,children:[a&&s.jsx("p",{className:`${l}--eyebrow`,children:a}),s.jsx(i,{className:`${l}--title`,children:r}),o&&s.jsx("div",{className:`${l}--image--wrapper`,children:s.jsx("picture",{children:s.jsx("img",{src:o,alt:r,className:`${l}--picture`})})}),m&&(N.isValidElement(m)?s.jsx("div",{className:`${l}--intro`,children:m}):s.jsx("p",{className:`${l}--intro`,children:m})),x&&s.jsx(k.LinkList,{...x})]})]})]})}),S=N.forwardRef(({className:p,title:r,theme:n="light",size:e="narrow",date:m,profile:t,link:x,titleLevel:o="p",eyebrow:i},a)=>{const{prefix:d}=u.useGlobalSettings(),$=`${d}--card`,_=j.classnames(`${$}--wrapper`,p),c=j.classnames($,`${$}__type__text`,{[`${$}__size__${String(e)}`]:e,[`${$}__theme__${n}`]:n});return s.jsx("div",{className:_,ref:a,children:s.jsxs("div",{className:c,children:[s.jsx("a",{className:`${$}--link`,href:x,title:r,children:s.jsx("span",{className:`${$}--link--text`,children:r})}),s.jsx("div",{className:`${$}--wrap`,children:s.jsxs("div",{className:`${$}--content`,children:[i&&s.jsx("p",{className:`${$}--eyebrow`,children:i}),s.jsx(o,{className:`${$}--title`,children:r}),m&&s.jsx("time",{className:`${$}--date`,dateTime:m.unix,children:m.human}),t&&s.jsx(F.Profile,{avatar:t.avatar,description:t.description,link:t.link,name:t.name,role:t.role,theme:n})]})})]})})}),G=N.forwardRef(({className:p,title:r,theme:n="light",size:e="narrow",cornercut:m,intro:t,link:x,cta:o,titleLevel:i="p",eyebrow:a},d)=>{const{prefix:$}=u.useGlobalSettings(),_=`${$}--card`,c=j.classnames(`${_}--wrapper`,p,`${_}--wrapper__type__promo`,`${_}--wrapper__type__promo__size__${e}`),l=j.classnames(_,`${_}__type__promo`,{[`${_}__size__${String(e)}`]:e,[`${_}__theme__${n}`]:n,[`${_}__cornercut`]:m});return s.jsx("div",{className:c,ref:d,children:s.jsxs("div",{className:l,children:[s.jsx("a",{className:`${_}--link`,href:x,title:r,children:s.jsx("span",{className:`${_}--link--text`,children:r})}),s.jsx("div",{className:`${_}--wrap`,children:s.jsxs("div",{className:`${_}--content`,children:[a&&s.jsx("p",{className:`${_}--eyebrow`,children:a}),s.jsx(i,{className:`${_}--title`,children:r}),t&&s.jsx("p",{className:`${_}--intro`,children:t}),(o==null?void 0:o.label)&&s.jsx("div",{className:`${_}--cta`,children:s.jsx(f.Button,{link:{url:o.url,label:o.label},size:"medium",type:"primary"})})]})})]})})}),q=N.forwardRef(({className:p,title:r,theme:n="light",size:e="narrow",date:m,link:t,linklist:x,image:o,titleLevel:i="p",eyebrow:a,isVideo:d},$)=>{const{prefix:_}=u.useGlobalSettings(),c=`${_}--card`,l=j.classnames(c,p,`${c}__type__feature`,{[`${c}__size__${String(e)}`]:e,[`${c}__theme__${n}`]:n,[`${c}__isvideo`]:d,[`${c}__linklist`]:x});return s.jsxs("div",{className:l,ref:$,children:[t&&s.jsx("a",{className:`${c}--link`,href:t,title:r,children:s.jsx("span",{className:`${c}--link--text`,children:r})}),s.jsxs("div",{className:`${c}--wrap`,children:[o&&s.jsx("div",{className:`${c}--image--wrapper`,children:s.jsx("picture",{children:s.jsx("img",{src:o,alt:r,className:`${c}--picture`})})}),s.jsxs("div",{className:`${c}--content`,children:[a&&s.jsx("p",{className:`${c}--eyebrow`,children:a}),s.jsx(i,{className:`${c}--title`,children:r}),m&&s.jsx("time",{className:`${c}--date`,dateTime:m.unix,children:m.human}),x&&s.jsx(k.LinkList,{headline:x.headline,linkgroup:x.linkgroup,theme:n})]})]})]})}),R=N.forwardRef(({className:p,title:r,theme:n="light",size:e="narrow",date:m,details:t,link:x,titleLevel:o="p",eyebrow:i,intro:a,image:d,isVideo:$=!1},_)=>{const{prefix:c}=u.useGlobalSettings(),l=`${c}--card`,h=j.classnames(l,`${l}__type__detail`,p,{[`${l}__size__${String(e)}`]:e,[`${l}__theme__${n}`]:n,[`${l}__isvideo`]:$});return s.jsxs("div",{className:h,ref:_,children:[x&&s.jsx("a",{className:`${l}--link`,href:x,title:r,children:s.jsx("span",{className:`${l}--link--text`,children:r})}),s.jsxs("div",{className:`${l}--wrap`,children:[d&&s.jsx("div",{className:`${l}--image--wrapper`,children:s.jsx("picture",{children:s.jsx("img",{className:`${l}--picture`,src:d,alt:r})})}),s.jsxs("div",{className:`${l}--content`,children:[i&&s.jsx("p",{className:`${l}--eyebrow`,children:i}),r&&s.jsx(o,{className:`${l}--title`,children:r}),a&&s.jsx("p",{className:`${l}--intro`,children:a}),m&&s.jsx("time",{className:`${l}--date`,dateTime:m.unix,children:m.human}),t&&s.jsx("p",{className:`${l}--date-extra`,children:t})]})]})]})}),T=N.forwardRef(({title:p,theme:r="light",size:n="narrow",list:e,titleLevel:m="p",className:t},x)=>{const{prefix:o}=u.useGlobalSettings(),i=`${o}--card`,a=j.classnames(i,`${i}__type__factlist`,t,{[`${i}__size__${n}`]:n,[`${i}__theme__${r}`]:r});return s.jsx("div",{className:a,ref:x,children:s.jsx("div",{className:`${i}--wrap`,children:s.jsxs("div",{className:`${i}--content`,children:[p&&s.jsx(m,{className:`${o}--card--title`,children:p}),s.jsx(w.List,{alignment:"default",ordered:"unordered",theme:r,children:e.map(d=>s.jsx(w.List.Item,{children:s.jsx("p",{children:d})},d))})]})})})}),P=N.forwardRef(({eyebrow:p,size:r="narrow",image:n,dataset:e,columns:m="one",className:t},x)=>{var _;const{prefix:o}=u.useGlobalSettings(),i=r==="narrow"?"one":m,a=`${o}--card`,d=j.classnames(a,`${a}__type__data`,t,{[`${a}__size__${String(r)}`]:r,[`${a}__type__data__columns__${i}`]:i}),$=j.classnames(`${a}--content`,{[`${a}--content__with-image`]:n,[`${a}--content__no-image-with-links`]:!n&&(e==null?void 0:e.links),[`${a}--content__default`]:!n&&!(e!=null&&e.links)});return s.jsx("div",{className:d,ref:x,children:s.jsxs("div",{className:`${a}--wrap`,children:[!n&&p&&s.jsx("div",{className:`${a}--eyebrow`,children:p}),s.jsxs("div",{className:$,children:[n&&s.jsxs("div",{className:`${a}--area--image`,children:[p&&s.jsx("div",{className:`${a}--eyebrow`,children:p}),s.jsx("div",{className:`${a}--image`,children:s.jsx("picture",{children:s.jsx("img",{className:`${a}--picture`,src:n,alt:p})})})]}),(_=e==null?void 0:e.content)==null?void 0:_.items.map((c,l)=>s.jsxs("div",{className:`${a}--area--content`,children:[s.jsx("p",{className:`${a}__type__data--content-label`,children:c.label}),s.jsx("p",{className:`${a}__type__data--content-copy`,children:c.copy})]},l)),(e==null?void 0:e.files)&&s.jsx("div",{className:`${a}--area--files`,children:s.jsxs("div",{className:`${a}__type__data--content-files`,children:[s.jsx("p",{className:`${a}__type__data--content-label`,children:e.files.headline}),e.files.items.map((c,l)=>s.jsx(f.Button,{link:{url:c.url,label:c.label,target:c.target||"_self"},size:"small"},l))]})}),(e==null?void 0:e.cta)&&s.jsx("div",{className:`${a}--area--cta`,children:s.jsxs("div",{className:`${a}__type__data--content-cta`,children:[s.jsx("p",{className:`${a}__type__data--content-label`,children:e.cta.headline}),e.cta.items.map(c=>s.jsx(f.Button,{type:"secondary",size:"small",link:{url:c.url,label:c.label,target:c.target}},c.label))]})}),(e==null?void 0:e.links)&&s.jsx("div",{className:`${a}--area--links`,children:s.jsxs("div",{className:`${a}__type__data--content-links`,children:[s.jsx("p",{className:`${a}__type__data--content-label`,children:e.links.headline}),s.jsx("div",{className:`${a}__type__data--content-links-list`,children:e.links.items.map(c=>s.jsx(N.Fragment,{children:s.jsx(g.Link,{url:c.url,label:c.label,className:`${a}__type__data--content-link`})},c.label+c.url))})]})})]})]})})}),z={stat:y,multilink:L,text:S,promo:G,feature:q,detail:R,factlist:T,data:P},E=N.forwardRef(({type:p,group:r,cardCount:n="one",cta:e,collapsed:m=!1},t)=>{const x=z[p],{prefix:o}=u.useGlobalSettings(),i=`${o}--cardgroup`,a=j.classnames(i,`${i}__count__${n}`,{[`${i}__collapsed`]:m});return s.jsxs("div",{className:a,ref:t,children:[s.jsx("div",{className:`${i}--inner`,children:r.map((d,$)=>s.jsx(x,{...d},$))}),e&&s.jsx("div",{className:`${i}--button-wrap`,children:s.jsx(f.Button,{link:{url:e.url,label:e.label},type:"secondary",size:"medium"})})]})}),V=N.forwardRef(({className:p,theme:r="light",titleLevel:n="p",size:e="narrow",link:m,title:t,isVideo:x=!1,image:o,status:i,eyebrow:a,content:d,cta:$},_)=>{var b;const{prefix:c}=u.useGlobalSettings(),l=r==="dark"?"var(--ilo-color-white)":"var(--ilo-color-gray-accessible)",h=`${c}--card`,B=j.classnames(h,`${h}__type__score`,{[`${h}__theme__${r}`]:r,[`${h}__size__${e}`]:e,[`${h}__isvideo`]:x});return s.jsxs("div",{className:j.classnames(B,p),ref:_,children:[s.jsx("a",{className:`${h}--link`,href:m,title:t,children:s.jsx("span",{className:`${h}--link--text`,children:t})}),s.jsxs("div",{className:`${h}--wrap`,children:[o&&e!=="simple"&&s.jsx("div",{className:`${h}--image--wrapper`,children:s.jsx(D.Picture,{...o})}),s.jsxs("div",{className:`${h}--content`,children:[i&&s.jsx(I.Status,{content:i.content,statusType:i.statusType}),a&&e!=="simple"&&s.jsx("p",{className:`${h}--eyebrow`,children:a}),t&&s.jsx(n,{className:`${h}--title`,children:t}),d&&s.jsx("div",{className:`${h}--area--content`,children:(b=d.items)==null?void 0:b.map((v,C)=>s.jsxs("div",{className:`${h}--content--item`,children:[s.jsx(M.Icon,{name:v.icon,size:20,color:l}),s.jsx("span",{children:v.label})]},C))}),$&&s.jsx("div",{className:`${h}--area--cta`,children:$.items.map((v,C)=>s.jsx("div",{className:`${h}--cta`,children:v},C))})]})]})]})});exports.CardGroup=E;exports.DataCard=P;exports.DetailCard=R;exports.FactListCard=T;exports.FeatureCard=q;exports.MultiLinkCard=L;exports.PromoCard=G;exports.ScoreCard=V;exports.StatCard=y;exports.TextCard=S;
@@ -1,4 +0,0 @@
1
- import { C as l } from "./Callout-chunk-DDK_yI_b.js";
2
- export {
3
- l as Callout
4
- };
@@ -1,462 +0,0 @@
1
- import { jsx as e, jsxs as p } from "react/jsx-runtime";
2
- import { forwardRef as f, isValidElement as T, Fragment as P } from "react";
3
- import { c as u } from "./index-chunk-CY3PQDr4.js";
4
- import { u as C } from "./useGlobalSettings-chunk-Bu2lRvQa.js";
5
- import { B as w } from "./Button-chunk-DG7cL6tj.js";
6
- import { L as x } from "./Link-chunk-DNHgQ3lF.js";
7
- import { L } from "./LinkList-chunk-Cimo8RwK.js";
8
- import { P as F } from "./Profile-chunk-BjuEze8L.js";
9
- import { List as g } from "./List-entry-B0PAo5Km.js";
10
- import { P as D } from "./Picture-chunk-C4mMCmdQ.js";
11
- import { S as G } from "./Status-chunk-wCQ8Gv7z.js";
12
- import { I } from "./Icon-chunk-DIxw5wWq.js";
13
- const M = f(
14
- ({
15
- className: N,
16
- title: r,
17
- theme: n = "light",
18
- size: a = "standard",
19
- color: o,
20
- intro: d,
21
- source: h,
22
- titleLevel: $ = "p"
23
- }, i) => {
24
- const { prefix: s } = C(), _ = `${s}--card`, m = u(`${_}--wrapper`, N), t = u(_, `${_}__type__stat`, {
25
- [`${_}__size__${String(a)}`]: a,
26
- [`${_}__theme__${n}`]: n,
27
- [`${_}__color__${o}`]: o
28
- });
29
- return /* @__PURE__ */ e("div", { className: m, ref: i, children: /* @__PURE__ */ e("div", { className: t, children: /* @__PURE__ */ e("div", { className: `${_}--wrap`, children: /* @__PURE__ */ p("div", { className: `${_}--content`, children: [
30
- /* @__PURE__ */ e($, { className: `${_}--title`, children: r }),
31
- d && /* @__PURE__ */ e("p", { className: `${_}--intro`, children: d }),
32
- h && /* @__PURE__ */ e(
33
- x,
34
- {
35
- className: `${_}--source`,
36
- url: h.url,
37
- label: h.label
38
- }
39
- )
40
- ] }) }) }) });
41
- }
42
- ), j = f(
43
- ({
44
- className: N,
45
- title: r,
46
- size: n = "standard",
47
- alignment: a,
48
- intro: o,
49
- link: d,
50
- linklist: h,
51
- image: $,
52
- titleLevel: i = "p",
53
- eyebrow: s,
54
- isVideo: _,
55
- theme: m = "light"
56
- }, t) => {
57
- const { prefix: c } = C(), l = `${c}--card`, v = u(
58
- l,
59
- N,
60
- `${l}__type__multilink`,
61
- {
62
- [`${l}__align__${a}`]: a,
63
- [`${l}__size__${n}`]: n,
64
- [`${l}__isvideo`]: _,
65
- [`${l}--no-image`]: !$,
66
- [`${l}__theme__${m}`]: m
67
- }
68
- );
69
- return /* @__PURE__ */ p("div", { className: v, ref: t, children: [
70
- d && /* @__PURE__ */ e("a", { className: `${l}--link`, href: d, title: r, children: /* @__PURE__ */ e("span", { className: `${l}--link--text`, children: r }) }),
71
- /* @__PURE__ */ p("div", { className: `${l}--wrap`, children: [
72
- $ && /* @__PURE__ */ e("div", { className: `${l}--image--wrapper`, children: /* @__PURE__ */ e("picture", { children: /* @__PURE__ */ e(
73
- "img",
74
- {
75
- src: $,
76
- alt: r,
77
- className: `${l}--picture`
78
- }
79
- ) }) }),
80
- /* @__PURE__ */ p("div", { className: `${l}--content`, children: [
81
- s && /* @__PURE__ */ e("p", { className: `${l}--eyebrow`, children: s }),
82
- /* @__PURE__ */ e(i, { className: `${l}--title`, children: r }),
83
- $ && /* @__PURE__ */ e("div", { className: `${l}--image--wrapper`, children: /* @__PURE__ */ e("picture", { children: /* @__PURE__ */ e(
84
- "img",
85
- {
86
- src: $,
87
- alt: r,
88
- className: `${l}--picture`
89
- }
90
- ) }) }),
91
- o && (T(o) ? /* @__PURE__ */ e("div", { className: `${l}--intro`, children: o }) : /* @__PURE__ */ e("p", { className: `${l}--intro`, children: o })),
92
- h && /* @__PURE__ */ e(L, { ...h })
93
- ] })
94
- ] })
95
- ] });
96
- }
97
- ), z = f(
98
- ({
99
- className: N,
100
- title: r,
101
- theme: n = "light",
102
- size: a = "narrow",
103
- date: o,
104
- profile: d,
105
- link: h,
106
- titleLevel: $ = "p",
107
- eyebrow: i
108
- }, s) => {
109
- const { prefix: _ } = C(), m = `${_}--card`, t = u(`${m}--wrapper`, N), c = u(m, `${m}__type__text`, {
110
- [`${m}__size__${String(a)}`]: a,
111
- [`${m}__theme__${n}`]: n
112
- });
113
- return /* @__PURE__ */ e("div", { className: t, ref: s, children: /* @__PURE__ */ p("div", { className: c, children: [
114
- /* @__PURE__ */ e("a", { className: `${m}--link`, href: h, title: r, children: /* @__PURE__ */ e("span", { className: `${m}--link--text`, children: r }) }),
115
- /* @__PURE__ */ e("div", { className: `${m}--wrap`, children: /* @__PURE__ */ p("div", { className: `${m}--content`, children: [
116
- i && /* @__PURE__ */ e("p", { className: `${m}--eyebrow`, children: i }),
117
- /* @__PURE__ */ e($, { className: `${m}--title`, children: r }),
118
- o && /* @__PURE__ */ e("time", { className: `${m}--date`, dateTime: o.unix, children: o.human }),
119
- d && /* @__PURE__ */ e(
120
- F,
121
- {
122
- avatar: d.avatar,
123
- description: d.description,
124
- link: d.link,
125
- name: d.name,
126
- role: d.role,
127
- theme: n
128
- }
129
- )
130
- ] }) })
131
- ] }) });
132
- }
133
- ), B = f(
134
- ({
135
- className: N,
136
- title: r,
137
- theme: n = "light",
138
- size: a = "narrow",
139
- cornercut: o,
140
- intro: d,
141
- link: h,
142
- cta: $,
143
- titleLevel: i = "p",
144
- eyebrow: s
145
- }, _) => {
146
- const { prefix: m } = C(), t = `${m}--card`, c = u(
147
- `${t}--wrapper`,
148
- N,
149
- `${t}--wrapper__type__promo`,
150
- `${t}--wrapper__type__promo__size__${a}`
151
- ), l = u(t, `${t}__type__promo`, {
152
- [`${t}__size__${String(a)}`]: a,
153
- [`${t}__theme__${n}`]: n,
154
- [`${t}__cornercut`]: o
155
- });
156
- return /* @__PURE__ */ e("div", { className: c, ref: _, children: /* @__PURE__ */ p("div", { className: l, children: [
157
- /* @__PURE__ */ e("a", { className: `${t}--link`, href: h, title: r, children: /* @__PURE__ */ e("span", { className: `${t}--link--text`, children: r }) }),
158
- /* @__PURE__ */ e("div", { className: `${t}--wrap`, children: /* @__PURE__ */ p("div", { className: `${t}--content`, children: [
159
- s && /* @__PURE__ */ e("p", { className: `${t}--eyebrow`, children: s }),
160
- /* @__PURE__ */ e(i, { className: `${t}--title`, children: r }),
161
- d && /* @__PURE__ */ e("p", { className: `${t}--intro`, children: d }),
162
- ($ == null ? void 0 : $.label) && /* @__PURE__ */ e("div", { className: `${t}--cta`, children: /* @__PURE__ */ e(
163
- w,
164
- {
165
- link: { url: $.url, label: $.label },
166
- size: "medium",
167
- type: "primary"
168
- }
169
- ) })
170
- ] }) })
171
- ] }) });
172
- }
173
- ), E = f(
174
- ({
175
- className: N,
176
- title: r,
177
- theme: n = "light",
178
- size: a = "narrow",
179
- date: o,
180
- link: d,
181
- linklist: h,
182
- image: $,
183
- titleLevel: i = "p",
184
- eyebrow: s,
185
- isVideo: _
186
- }, m) => {
187
- const { prefix: t } = C(), c = `${t}--card`, l = u(
188
- c,
189
- N,
190
- `${c}__type__feature`,
191
- {
192
- [`${c}__size__${String(a)}`]: a,
193
- [`${c}__theme__${n}`]: n,
194
- [`${c}__isvideo`]: _,
195
- [`${c}__linklist`]: h
196
- }
197
- );
198
- return /* @__PURE__ */ p("div", { className: l, ref: m, children: [
199
- d && /* @__PURE__ */ e("a", { className: `${c}--link`, href: d, title: r, children: /* @__PURE__ */ e("span", { className: `${c}--link--text`, children: r }) }),
200
- /* @__PURE__ */ p("div", { className: `${c}--wrap`, children: [
201
- $ && /* @__PURE__ */ e("div", { className: `${c}--image--wrapper`, children: /* @__PURE__ */ e("picture", { children: /* @__PURE__ */ e(
202
- "img",
203
- {
204
- src: $,
205
- alt: r,
206
- className: `${c}--picture`
207
- }
208
- ) }) }),
209
- /* @__PURE__ */ p("div", { className: `${c}--content`, children: [
210
- s && /* @__PURE__ */ e("p", { className: `${c}--eyebrow`, children: s }),
211
- /* @__PURE__ */ e(i, { className: `${c}--title`, children: r }),
212
- o && /* @__PURE__ */ e("time", { className: `${c}--date`, dateTime: o.unix, children: o.human }),
213
- h && /* @__PURE__ */ e(
214
- L,
215
- {
216
- headline: h.headline,
217
- linkgroup: h.linkgroup,
218
- theme: n
219
- }
220
- )
221
- ] })
222
- ] })
223
- ] });
224
- }
225
- ), R = f(
226
- ({
227
- className: N,
228
- title: r,
229
- theme: n = "light",
230
- size: a = "narrow",
231
- date: o,
232
- details: d,
233
- link: h,
234
- titleLevel: $ = "p",
235
- eyebrow: i,
236
- intro: s,
237
- image: _,
238
- isVideo: m = !1
239
- }, t) => {
240
- const { prefix: c } = C(), l = `${c}--card`, v = u(
241
- l,
242
- `${l}__type__detail`,
243
- N,
244
- {
245
- [`${l}__size__${String(a)}`]: a,
246
- [`${l}__theme__${n}`]: n,
247
- [`${l}__isvideo`]: m
248
- }
249
- );
250
- return /* @__PURE__ */ p("div", { className: v, ref: t, children: [
251
- h && /* @__PURE__ */ e("a", { className: `${l}--link`, href: h, title: r, children: /* @__PURE__ */ e("span", { className: `${l}--link--text`, children: r }) }),
252
- /* @__PURE__ */ p("div", { className: `${l}--wrap`, children: [
253
- _ && /* @__PURE__ */ e("div", { className: `${l}--image--wrapper`, children: /* @__PURE__ */ e("picture", { children: /* @__PURE__ */ e(
254
- "img",
255
- {
256
- className: `${l}--picture`,
257
- src: _,
258
- alt: r
259
- }
260
- ) }) }),
261
- /* @__PURE__ */ p("div", { className: `${l}--content`, children: [
262
- i && /* @__PURE__ */ e("p", { className: `${l}--eyebrow`, children: i }),
263
- r && /* @__PURE__ */ e($, { className: `${l}--title`, children: r }),
264
- s && /* @__PURE__ */ e("p", { className: `${l}--intro`, children: s }),
265
- o && /* @__PURE__ */ e("time", { className: `${l}--date`, dateTime: o.unix, children: o.human }),
266
- d && /* @__PURE__ */ e("p", { className: `${l}--date-extra`, children: d })
267
- ] })
268
- ] })
269
- ] });
270
- }
271
- ), V = f(
272
- ({
273
- title: N,
274
- theme: r = "light",
275
- size: n = "narrow",
276
- list: a,
277
- titleLevel: o = "p",
278
- className: d
279
- }, h) => {
280
- const { prefix: $ } = C(), i = `${$}--card`, s = u(
281
- i,
282
- `${i}__type__factlist`,
283
- d,
284
- {
285
- [`${i}__size__${n}`]: n,
286
- [`${i}__theme__${r}`]: r
287
- }
288
- );
289
- return /* @__PURE__ */ e("div", { className: s, ref: h, children: /* @__PURE__ */ e("div", { className: `${i}--wrap`, children: /* @__PURE__ */ p("div", { className: `${i}--content`, children: [
290
- N && /* @__PURE__ */ e(o, { className: `${$}--card--title`, children: N }),
291
- /* @__PURE__ */ e(g, { alignment: "default", ordered: "unordered", theme: r, children: a.map((_) => /* @__PURE__ */ e(g.Item, { children: /* @__PURE__ */ e("p", { children: _ }) }, _)) })
292
- ] }) }) });
293
- }
294
- ), q = f(
295
- ({ eyebrow: N, size: r = "narrow", image: n, dataset: a, columns: o = "one", className: d }, h) => {
296
- var t;
297
- const { prefix: $ } = C(), i = r === "narrow" ? "one" : o, s = `${$}--card`, _ = u(
298
- s,
299
- `${s}__type__data`,
300
- d,
301
- {
302
- [`${s}__size__${String(r)}`]: r,
303
- [`${s}__type__data__columns__${i}`]: i
304
- }
305
- ), m = u(`${s}--content`, {
306
- [`${s}--content__with-image`]: n,
307
- [`${s}--content__no-image-with-links`]: !n && (a == null ? void 0 : a.links),
308
- [`${s}--content__default`]: !n && !(a != null && a.links)
309
- });
310
- return /* @__PURE__ */ e("div", { className: _, ref: h, children: /* @__PURE__ */ p("div", { className: `${s}--wrap`, children: [
311
- !n && N && /* @__PURE__ */ e("div", { className: `${s}--eyebrow`, children: N }),
312
- /* @__PURE__ */ p("div", { className: m, children: [
313
- n && /* @__PURE__ */ p("div", { className: `${s}--area--image`, children: [
314
- N && /* @__PURE__ */ e("div", { className: `${s}--eyebrow`, children: N }),
315
- /* @__PURE__ */ e("div", { className: `${s}--image`, children: /* @__PURE__ */ e("picture", { children: /* @__PURE__ */ e(
316
- "img",
317
- {
318
- className: `${s}--picture`,
319
- src: n,
320
- alt: N
321
- }
322
- ) }) })
323
- ] }),
324
- (t = a == null ? void 0 : a.content) == null ? void 0 : t.items.map((c, l) => /* @__PURE__ */ p("div", { className: `${s}--area--content`, children: [
325
- /* @__PURE__ */ e("p", { className: `${s}__type__data--content-label`, children: c.label }),
326
- /* @__PURE__ */ e("p", { className: `${s}__type__data--content-copy`, children: c.copy })
327
- ] }, l)),
328
- (a == null ? void 0 : a.files) && /* @__PURE__ */ e("div", { className: `${s}--area--files`, children: /* @__PURE__ */ p("div", { className: `${s}__type__data--content-files`, children: [
329
- /* @__PURE__ */ e("p", { className: `${s}__type__data--content-label`, children: a.files.headline }),
330
- a.files.items.map((c, l) => /* @__PURE__ */ e(
331
- w,
332
- {
333
- link: {
334
- url: c.url,
335
- label: c.label,
336
- target: c.target || "_self"
337
- },
338
- size: "small"
339
- },
340
- l
341
- ))
342
- ] }) }),
343
- (a == null ? void 0 : a.cta) && /* @__PURE__ */ e("div", { className: `${s}--area--cta`, children: /* @__PURE__ */ p("div", { className: `${s}__type__data--content-cta`, children: [
344
- /* @__PURE__ */ e("p", { className: `${s}__type__data--content-label`, children: a.cta.headline }),
345
- a.cta.items.map((c) => /* @__PURE__ */ e(
346
- w,
347
- {
348
- type: "secondary",
349
- size: "small",
350
- link: {
351
- url: c.url,
352
- label: c.label,
353
- target: c.target
354
- }
355
- },
356
- c.label
357
- ))
358
- ] }) }),
359
- (a == null ? void 0 : a.links) && /* @__PURE__ */ e("div", { className: `${s}--area--links`, children: /* @__PURE__ */ p("div", { className: `${s}__type__data--content-links`, children: [
360
- /* @__PURE__ */ e("p", { className: `${s}__type__data--content-label`, children: a.links.headline }),
361
- /* @__PURE__ */ e(
362
- "div",
363
- {
364
- className: `${s}__type__data--content-links-list`,
365
- children: a.links.items.map((c) => /* @__PURE__ */ e(P, { children: /* @__PURE__ */ e(
366
- x,
367
- {
368
- url: c.url,
369
- label: c.label,
370
- className: `${s}__type__data--content-link`
371
- }
372
- ) }, c.label + c.url))
373
- }
374
- )
375
- ] }) })
376
- ] })
377
- ] }) });
378
- }
379
- ), A = {
380
- stat: M,
381
- multilink: j,
382
- text: z,
383
- promo: B,
384
- feature: E,
385
- detail: R,
386
- factlist: V,
387
- data: q
388
- }, se = f(
389
- ({ type: N, group: r, cardCount: n = "one", cta: a, collapsed: o = !1 }, d) => {
390
- const h = A[N], { prefix: $ } = C(), i = `${$}--cardgroup`, s = u(
391
- i,
392
- `${i}__count__${n}`,
393
- {
394
- [`${i}__collapsed`]: o
395
- }
396
- );
397
- return /* @__PURE__ */ p("div", { className: s, ref: d, children: [
398
- /* @__PURE__ */ e("div", { className: `${i}--inner`, children: r.map((_, m) => /* @__PURE__ */ e(h, { ..._ }, m)) }),
399
- a && /* @__PURE__ */ e("div", { className: `${i}--button-wrap`, children: /* @__PURE__ */ e(
400
- w,
401
- {
402
- link: {
403
- url: a.url,
404
- label: a.label
405
- },
406
- type: "secondary",
407
- size: "medium"
408
- }
409
- ) })
410
- ] });
411
- }
412
- ), le = f(
413
- ({
414
- className: N,
415
- theme: r = "light",
416
- titleLevel: n = "p",
417
- size: a = "narrow",
418
- link: o,
419
- title: d,
420
- isVideo: h = !1,
421
- image: $,
422
- status: i,
423
- eyebrow: s,
424
- content: _,
425
- cta: m
426
- }, t) => {
427
- var k;
428
- const { prefix: c } = C(), l = r === "dark" ? "var(--ilo-color-white)" : "var(--ilo-color-gray-accessible)", v = `${c}--card`, S = u(v, `${v}__type__score`, {
429
- [`${v}__theme__${r}`]: r,
430
- [`${v}__size__${a}`]: a,
431
- [`${v}__isvideo`]: h
432
- });
433
- return /* @__PURE__ */ p("div", { className: u(S, N), ref: t, children: [
434
- /* @__PURE__ */ e("a", { className: `${v}--link`, href: o, title: d, children: /* @__PURE__ */ e("span", { className: `${v}--link--text`, children: d }) }),
435
- /* @__PURE__ */ p("div", { className: `${v}--wrap`, children: [
436
- $ && a !== "simple" && /* @__PURE__ */ e("div", { className: `${v}--image--wrapper`, children: /* @__PURE__ */ e(D, { ...$ }) }),
437
- /* @__PURE__ */ p("div", { className: `${v}--content`, children: [
438
- i && /* @__PURE__ */ e(G, { content: i.content, statusType: i.statusType }),
439
- s && a !== "simple" && /* @__PURE__ */ e("p", { className: `${v}--eyebrow`, children: s }),
440
- d && /* @__PURE__ */ e(n, { className: `${v}--title`, children: d }),
441
- _ && /* @__PURE__ */ e("div", { className: `${v}--area--content`, children: (k = _.items) == null ? void 0 : k.map((b, y) => /* @__PURE__ */ p("div", { className: `${v}--content--item`, children: [
442
- /* @__PURE__ */ e(I, { name: b.icon, size: 20, color: l }),
443
- /* @__PURE__ */ e("span", { children: b.label })
444
- ] }, y)) }),
445
- m && /* @__PURE__ */ e("div", { className: `${v}--area--cta`, children: m.items.map((b, y) => /* @__PURE__ */ e("div", { className: `${v}--cta`, children: b }, y)) })
446
- ] })
447
- ] })
448
- ] });
449
- }
450
- );
451
- export {
452
- se as C,
453
- R as D,
454
- E as F,
455
- j as M,
456
- B as P,
457
- M as S,
458
- z as T,
459
- V as a,
460
- q as b,
461
- le as c
462
- };