@ilo-org/react 0.20.0 → 0.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/_store/{Breadcrumb-chunk-BGt10GMr.js → Breadcrumb-chunk-DkUvpxym.js} +1 -1
- package/lib/cjs/_store/{Breadcrumb-entry-BcWOPogy.js → Breadcrumb-entry-PID5wRYn.js} +1 -1
- package/lib/cjs/_store/CardGroup-chunk-C_EtI9iK.js +1 -0
- package/lib/cjs/_store/{Cards-entry-Ckiqvv1d.js → Cards-entry-C_9kqjEx.js} +1 -1
- package/lib/cjs/_store/ContextMenu-chunk-Dl3-wUCt.js +1 -0
- package/lib/cjs/_store/{ContextMenu-entry-UwZc4yU3.js → ContextMenu-entry-Bzzoi_xM.js} +1 -1
- package/lib/cjs/_store/{Hero-chunk-CBIMDQWO.js → Hero-chunk-B3vu8ihD.js} +1 -1
- package/lib/cjs/_store/{Hero-entry-CeEUu88o.js → Hero-entry-CAssbp0C.js} +1 -1
- package/lib/cjs/_store/LanguageToggle-chunk-CrtaBUlW.js +1 -0
- package/lib/cjs/_store/{LanguageToggle-entry-ALUfRa_V.js → LanguageToggle-entry-CHgP8iuU.js} +1 -1
- package/lib/cjs/_store/Nav-entry-BxYm9ulI.js +1 -0
- package/lib/cjs/_store/SubsiteNav-chunk-BphCnfvs.js +1 -0
- package/lib/cjs/_store/components-entry-BU_6L6id.js +1 -0
- package/lib/cjs/_store/index.js +1 -1
- package/lib/cjs/_store/useBreakpoint-chunk-CBEGGRKj.js +1 -0
- package/lib/cjs/index.js +1 -1
- package/lib/esm/_store/{Breadcrumb-chunk-DcsXzPvT.js → Breadcrumb-chunk-DcupgWDR.js} +1 -1
- package/lib/esm/_store/Breadcrumb-entry-1SOUCUgD.js +4 -0
- package/lib/esm/_store/CardGroup-chunk-BykGdrCT.js +425 -0
- package/lib/esm/_store/{Cards-entry-DOWpgXsU.js → Cards-entry-DjtBPvwt.js} +1 -1
- package/lib/esm/_store/ContextMenu-chunk-D-riZIFp.js +32 -0
- package/lib/esm/_store/ContextMenu-entry-BN-vEJes.js +4 -0
- package/lib/esm/_store/{Hero-chunk-CZ6kSiY-.js → Hero-chunk-C1gFHcIP.js} +1 -1
- package/lib/esm/_store/Hero-entry-DWpRL6uz.js +4 -0
- package/lib/esm/_store/LanguageToggle-chunk-CsayoJqR.js +70 -0
- package/lib/esm/_store/LanguageToggle-entry-D3t_X2Qk.js +4 -0
- package/lib/esm/_store/Nav-entry-CsQzrNK7.js +4 -0
- package/lib/esm/_store/SubsiteNav-chunk-C97AqH9F.js +549 -0
- package/lib/esm/_store/{components-entry-C4N0L4xP.js → components-entry-COAKlxYx.js} +28 -28
- package/lib/esm/_store/index.js +4 -2
- package/lib/esm/_store/useBreakpoint-chunk-DBZTYUx9.js +54 -0
- package/lib/esm/index.js +42 -40
- package/lib/styles/components/languagetoggle.css +1 -1
- package/lib/styles/components/video.css +1 -1
- package/lib/styles/global.css +1 -1
- package/lib/styles/global.css.map +1 -1
- package/lib/styles/index.css +2 -2
- package/lib/styles/index.css.map +1 -1
- package/lib/styles/monorepo.css +2 -2
- package/lib/styles/monorepo.css.map +1 -1
- package/lib/types/components/ContextMenu/ContextMenu.d.ts +4 -0
- package/lib/types/components/LanguageToggle/LanguageToggle.d.ts +2 -20
- package/lib/types/components/Nav/Navigation.props.d.ts +112 -0
- package/lib/types/components/Nav/NavigationDropdown.d.ts +19 -0
- package/lib/types/components/Nav/NavigationLink.d.ts +4 -0
- package/lib/types/components/Nav/NavigationMenu.d.ts +13 -0
- package/lib/types/components/Nav/NavigationMenuGrid.d.ts +7 -0
- package/lib/types/components/Nav/Subsite/CompactNav.d.ts +4 -0
- package/lib/types/components/Nav/Subsite/ComplexNav.d.ts +4 -0
- package/lib/types/components/Nav/Subsite/SubsiteNav.d.ts +4 -0
- package/lib/types/components/Nav/index.d.ts +2 -0
- package/lib/types/components/Nav/mobile/MobileDrawer.d.ts +27 -0
- package/lib/types/components/Nav/mobile/MobileLanguageList.d.ts +9 -0
- package/lib/types/components/Nav/mobile/MobileMenuList.d.ts +8 -0
- package/lib/types/components/Nav/mobile/MobileNavigation.d.ts +15 -0
- package/lib/types/components/Nav/useNavSetup.d.ts +22 -0
- package/lib/types/components/index.d.ts +1 -1
- package/lib/types/hooks/index.d.ts +1 -0
- package/lib/types/hooks/useBreakpoint.d.ts +7 -0
- package/package.json +7 -6
- package/lib/cjs/_store/CardGroup-chunk-D3sPRsTS.js +0 -1
- package/lib/cjs/_store/ContextMenu-chunk-Ch5u_T0d.js +0 -1
- package/lib/cjs/_store/LanguageToggle-chunk-DsJntngZ.js +0 -1
- package/lib/cjs/_store/LocalNav-entry-SfLDP8BS.js +0 -1
- package/lib/cjs/_store/components-entry-Buq0cts7.js +0 -1
- package/lib/esm/_store/Breadcrumb-entry-B7kN28qm.js +0 -4
- package/lib/esm/_store/CardGroup-chunk-DCTJOxvx.js +0 -425
- package/lib/esm/_store/ContextMenu-chunk-Zy9igFLz.js +0 -30
- package/lib/esm/_store/ContextMenu-entry-C_rAD9kF.js +0 -4
- package/lib/esm/_store/Hero-entry-DILGWuC0.js +0 -4
- package/lib/esm/_store/LanguageToggle-chunk-BxzhPBjU.js +0 -62
- package/lib/esm/_store/LanguageToggle-entry-COfb1a3N.js +0 -4
- package/lib/esm/_store/LocalNav-entry-DydB3k67.js +0 -4
- package/lib/types/components/LocalNav/LocalNav.d.ts +0 -5
- package/lib/types/components/LocalNav/LocalNav.props.d.ts +0 -38
- package/lib/types/components/LocalNav/index.d.ts +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),r=require("react"),b=require("./index-chunk-DCI82Tmm.js"),v=require("./useGlobalSettings-chunk-Pa38w6VS.js"),M=require("./ContextMenu-chunk-
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),r=require("react"),b=require("./index-chunk-DCI82Tmm.js"),v=require("./useGlobalSettings-chunk-Pa38w6VS.js"),M=require("./ContextMenu-chunk-Dl3-wUCt.js"),R=r.forwardRef(({url:m,label:c,className:f,first:i},e)=>{const{prefix:n}=v.useGlobalSettings();return t.jsx("li",{className:b.classnames({[`${n}--breadcrumb--item`]:!0,[`${n}--breadcrumb--item__first`]:i,className:f}),ref:e,children:t.jsx("a",{className:`${n}--breadcrumb--link`,href:m,"aria-label":c,children:!i&&t.jsx("span",{className:`${n}--breadcrumb--link--label`,children:c})})})}),q=r.forwardRef(({className:m,links:c,buttonLabel:f},i)=>{const{prefix:e}=v.useGlobalSettings(),n=r.useId(),[l,j]=r.useState(!1),[B,y]=r.useState(!1),p=r.useRef(0),o=r.useRef(null),u=r.useRef(null),C=r.useRef(null);if(r.useLayoutEffect(()=>{p.current=C.current.offsetWidth},[]),r.useLayoutEffect(()=>{function s(a){o.current&&u.current&&!o.current.contains(a.target)&&!u.current.contains(a.target)&&j(!1)}const h=new ResizeObserver(a=>{const $=a.at(0),d=p.current>=$.contentRect.width/1.5;y(N=>N!==d?d:N)});return document.addEventListener("mousedown",s),h.observe(document.body),()=>{document.removeEventListener("mousedown",s),h.disconnect()}},[n,e]),r.useLayoutEffect(()=>{if(!(!o.current||!u.current)&&l){const s=o.current.getBoundingClientRect(),a=u.current.firstChild.getBoundingClientRect(),$=s.left+s.width/2-a.width/2-5,d=s.bottom+16;u.current.style.left=`${$}px`,u.current.style.top=`${d}px`}},[l]),c.length<2)throw new Error(`Breadcrumb component requires at least two links, but received ${c.length}`);const g=c.at(0),x=c.slice(1,-1),w=c.at(-1);return t.jsxs("nav",{className:b.classnames(`${e}--breadcrumb`,m),ref:i,children:[t.jsx("div",{className:`${e}--breadcrumb--inner`,children:t.jsxs("ol",{className:`${e}--breadcrumb--items`,id:`${e}--breadcrumb--items-${n}`,ref:C,children:[t.jsx(R,{first:!0,url:g.url,label:g.label}),x.length>0&&t.jsxs("li",{className:b.classnames(`${e}--breadcrumb--context`,{[`${e}--breadcrumb--context__collapse`]:B}),children:[t.jsx("ol",{className:`${e}--breadcrumb--items`,children:x.map(s=>t.jsx(R,{url:s.url,label:s.label},`${s.label}-${s.url}`))}),t.jsx("button",{onClick:()=>j(!l),"aria-label":f,"aria-expanded":l,"aria-controls":`${e}--breadcrumb--menu-${n}`,className:`${e}--breadcrumb--context--button`,ref:o})]}),t.jsx(R,{url:w.url,label:w.label})]})}),t.jsx("div",{className:b.classnames(`${e}--breadcrumb--context--menu`,{[`${e}--breadcrumb--context--menu__visible`]:l}),id:`${e}--breadcrumb--menu-${n}`,ref:u,children:t.jsx(M.ContextMenu,{links:x})})]})});exports.Breadcrumb=q;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./Breadcrumb-chunk-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./Breadcrumb-chunk-DkUvpxym.js");exports.Breadcrumb=e.Breadcrumb;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const s=require("react/jsx-runtime"),j=require("react"),h=require("./index-chunk-DCI82Tmm.js"),N=require("./useGlobalSettings-chunk-Pa38w6VS.js"),u=require("./Button-chunk-D32W9ElW.js"),C=require("./Link-chunk-BfaKuVjz.js"),b=require("./LinkList-chunk-Eu43ZSAZ.js"),q=require("./Profile-chunk-D1tXXPUO.js"),f=require("./List-entry-DzqbzyL4.js"),w=j.forwardRef(({className:p,title:r,theme:n="light",size:e="standard",color:x,intro:t,source:o,titleLevel:m="p"},d)=>{const{prefix:a}=N.useGlobalSettings(),_=`${a}--card`,$=h.classnames(`${_}--wrapper`,p),i=h.classnames(_,`${_}__type__stat`,{[`${_}__size__${String(e)}`]:e,[`${_}__theme__${n}`]:n,[`${_}__color__${x}`]:x});return s.jsx("div",{className:$,ref:d,children:s.jsx("div",{className:i,children:s.jsx("div",{className:`${_}--wrap`,children:s.jsxs("div",{className:`${_}--content`,children:[s.jsx(m,{className:`${_}--title`,children:r}),t&&s.jsx("p",{className:`${_}--intro`,children:t}),o&&s.jsx(C.Link,{className:`${_}--source`,url:o.url,label:o.label})]})})})})}),g=j.forwardRef(({className:p,title:r,size:n="standard",alignment:e,intro:x,link:t,linklist:o,image:m,titleLevel:d="p",eyebrow:a,isVideo:_,theme:$="light"},i)=>{const{prefix:c}=N.useGlobalSettings(),l=`${c}--card`,v=h.classnames(l,p,`${l}__type__multilink`,{[`${l}__align__${e}`]:e,[`${l}__action`]:t,[`${l}__size__${n}`]:n,[`${l}__isvideo`]:_,[`${l}--no-image`]:!m,[`${l}__theme__${$}`]:$});return s.jsxs("div",{className:v,ref:i,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:[m&&s.jsx("div",{className:`${l}--image--wrapper`,children:s.jsx("picture",{children:s.jsx("img",{src:m,alt:r,className:`${l}--picture`})})}),s.jsxs("div",{className:`${l}--content`,children:[a&&s.jsx("p",{className:`${l}--eyebrow`,children:a}),s.jsx(d,{className:`${l}--title`,children:r}),m&&s.jsx("div",{className:`${l}--image--wrapper`,children:s.jsx("picture",{children:s.jsx("img",{src:m,alt:r,className:`${l}--picture`})})}),x&&s.jsx("p",{className:`${l}--intro`,children:x}),o&&s.jsx(b.LinkList,{...o})]})]})]})}),k=j.forwardRef(({className:p,title:r,theme:n="light",size:e="narrow",date:x,profile:t,link:o,titleLevel:m="p",eyebrow:d},a)=>{const{prefix:_}=N.useGlobalSettings(),$=`${_}--card`,i=h.classnames(`${$}--wrapper`,p),c=h.classnames($,`${$}__type__text`,{[`${$}__action`]:o,[`${$}__size__${String(e)}`]:e,[`${$}__theme__${n}`]:n});return s.jsx("div",{className:i,ref:a,children:s.jsxs("div",{className:c,children:[s.jsx("a",{className:`${$}--link`,href:o,title:r,children:s.jsx("span",{className:`${$}--link--text`,children:r})}),s.jsx("div",{className:`${$}--wrap`,children:s.jsxs("div",{className:`${$}--content`,children:[d&&s.jsx("p",{className:`${$}--eyebrow`,children:d}),s.jsx(m,{className:`${$}--title`,children:r}),x&&s.jsx("time",{className:`${$}--date`,dateTime:x.unix,children:x.human}),t&&s.jsx(q.Profile,{avatar:t.avatar,description:t.description,link:t.link,name:t.name,role:t.role,theme:n})]})})]})})}),y=j.forwardRef(({className:p,title:r,theme:n="light",size:e="narrow",cornercut:x,intro:t,link:o,cta:m,titleLevel:d="p",eyebrow:a},_)=>{const{prefix:$}=N.useGlobalSettings(),i=`${$}--card`,c=h.classnames(`${i}--wrapper`,p,`${i}--wrapper__type__promo`,`${i}--wrapper__type__promo__size__${e}`),l=h.classnames(i,`${i}__type__promo`,{[`${i}__action`]:o,[`${i}__size__${String(e)}`]:e,[`${i}__theme__${n}`]:n,[`${i}__cornercut`]:x});return s.jsx("div",{className:c,ref:_,children:s.jsxs("div",{className:l,children:[s.jsx("a",{className:`${i}--link`,href:o,title:r,children:s.jsx("span",{className:`${i}--link--text`,children:r})}),s.jsx("div",{className:`${i}--wrap`,children:s.jsxs("div",{className:`${i}--content`,children:[a&&s.jsx("p",{className:`${i}--eyebrow`,children:a}),s.jsx(d,{className:`${i}--title`,children:r}),t&&s.jsx("p",{className:`${i}--intro`,children:t}),(m==null?void 0:m.label)&&s.jsx("div",{className:`${i}--cta`,children:s.jsx(u.Button,{link:{url:m.url,label:m.label},size:"medium",type:"primary"})})]})})]})})}),L=j.forwardRef(({className:p,title:r,theme:n="light",size:e="narrow",date:x,link:t,linklist:o,image:m,titleLevel:d="p",eyebrow:a,isVideo:_},$)=>{const{prefix:i}=N.useGlobalSettings(),c=`${i}--card`,l=h.classnames(c,p,`${c}__type__feature`,{[`${c}__action`]:t,[`${c}__size__${String(e)}`]:e,[`${c}__theme__${n}`]:n,[`${c}__isvideo`]:_,[`${c}__linklist`]:o});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:[m&&s.jsx("div",{className:`${c}--image--wrapper`,children:s.jsx("picture",{children:s.jsx("img",{src:m,alt:r,className:`${c}--picture`})})}),s.jsxs("div",{className:`${c}--content`,children:[a&&s.jsx("p",{className:`${c}--eyebrow`,children:a}),s.jsx(d,{className:`${c}--title`,children:r}),x&&s.jsx("time",{className:`${c}--date`,dateTime:x.unix,children:x.human}),o&&s.jsx(b.LinkList,{headline:o.headline,linkgroup:o.linkgroup,theme:n})]})]})]})}),S=j.forwardRef(({className:p,title:r,theme:n="light",size:e="narrow",date:x,details:t,link:o,titleLevel:m="p",eyebrow:d,intro:a,image:_,isVideo:$=!1},i)=>{const{prefix:c}=N.useGlobalSettings(),l=`${c}--card`,v=h.classnames(l,`${l}__type__detail`,p,{[`${l}__action`]:o,[`${l}__size__${String(e)}`]:e,[`${l}__theme__${n}`]:n,[`${l}__isvideo`]:$});return s.jsxs("div",{className:v,ref:i,children:[o&&s.jsx("a",{className:`${l}--link`,href:o,title:r,children:s.jsx("span",{className:`${l}--link--text`,children:r})}),s.jsxs("div",{className:`${l}--wrap`,children:[_&&s.jsx("div",{className:`${l}--image--wrapper`,children:s.jsx("picture",{children:s.jsx("img",{className:`${l}--picture`,src:_,alt:r})})}),s.jsxs("div",{className:`${l}--content`,children:[d&&s.jsx("p",{className:`${l}--eyebrow`,children:d}),r&&s.jsx(m,{className:`${l}--title`,children:r}),a&&s.jsx("p",{className:`${l}--intro`,children:a}),x&&s.jsx("time",{className:`${l}--date`,dateTime:x.unix,children:x.human}),t&&s.jsx("p",{className:`${l}--date-extra`,children:t})]})]})]})}),G=j.forwardRef(({title:p,theme:r="light",size:n="narrow",list:e,titleLevel:x="p",className:t},o)=>{const{prefix:m}=N.useGlobalSettings(),d=`${m}--card`,a=h.classnames(d,`${d}__type__factlist`,t,{[`${d}__size__${n}`]:n,[`${d}__theme__${r}`]:r});return s.jsx("div",{className:a,ref:o,children:s.jsx("div",{className:`${d}--wrap`,children:s.jsxs("div",{className:`${d}--content`,children:[p&&s.jsx(x,{className:`${m}--card--title`,children:p}),s.jsx(f.List,{alignment:"default",ordered:"unordered",theme:r,children:e.map(_=>s.jsx(f.List.Item,{children:s.jsx("p",{children:_})},_))})]})})})}),R=j.forwardRef(({eyebrow:p,size:r="narrow",image:n,dataset:e,columns:x="one",className:t},o)=>{var i;const{prefix:m}=N.useGlobalSettings(),d=r==="narrow"?"one":x,a=`${m}--card`,_=h.classnames(a,`${a}__type__data`,t,{[`${a}__size__${String(r)}`]:r,[`${a}__type__data__columns__${d}`]:d}),$=h.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:_,ref:o,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})})})]}),(i=e==null?void 0:e.content)==null?void 0:i.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(u.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(u.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(j.Fragment,{children:s.jsx(C.Link,{url:c.url,label:c.label,className:`${a}__type__data--content-link`})},c.label+c.url))})]})})]})]})})}),B={stat:w,multilink:g,text:k,promo:y,feature:L,detail:S,factlist:G,data:R},F=j.forwardRef(({type:p,group:r,cardCount:n="one",cta:e,collapsed:x=!1},t)=>{const o=B[p],{prefix:m}=N.useGlobalSettings(),d=`${m}--cardgroup`,a=h.classnames(d,`${d}__count__${n}`,{[`${d}__collapsed`]:x});return s.jsxs("div",{className:a,ref:t,children:[s.jsx("div",{className:`${d}--inner`,children:r.map((_,$)=>s.jsx(o,{..._},$))}),e&&s.jsx("div",{className:`${d}--button-wrap`,children:s.jsx(u.Button,{link:{url:e.url,label:e.label},type:"secondary",size:"medium"})})]})});exports.CardGroup=F;exports.DataCard=R;exports.DetailCard=S;exports.FactListCard=G;exports.FeatureCard=L;exports.MultiLinkCard=g;exports.PromoCard=y;exports.StatCard=w;exports.TextCard=k;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./CardGroup-chunk-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./CardGroup-chunk-C_EtI9iK.js");exports.CardGroup=a.CardGroup;exports.DataCard=a.DataCard;exports.DetailCard=a.DetailCard;exports.FactListCard=a.FactListCard;exports.FeatureCard=a.FeatureCard;exports.MultiLinkCard=a.MultiLinkCard;exports.PromoCard=a.PromoCard;exports.StatCard=a.StatCard;exports.TextCard=a.TextCard;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),c=require("react"),a=require("./index-chunk-DCI82Tmm.js"),m=require("./useGlobalSettings-chunk-Pa38w6VS.js"),x=require("react-dom"),d=c.forwardRef(({className:o,links:r,withPortal:l=!1},u)=>{const{prefix:s}=m.useGlobalSettings(),i=c.useId(),n=t.jsx("ol",{className:a.classnames(`${s}--context-menu`,o),id:`${s}--context-menu-${i}`,ref:u,children:r.map(e=>t.jsx("li",{className:a.classnames(`${s}--context-menu--item`,{endsection:e.endsection,className:e.className}),children:t.jsx("a",{href:e.url,className:`${s}--context-menu--link`,children:t.jsx("span",{className:`${s}--context-menu--label`,children:e.label})})},`${e.label}-${e.url}`))});return l?x.createPortal(n,document.body):n});exports.ContextMenu=d;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./ContextMenu-chunk-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./ContextMenu-chunk-Dl3-wUCt.js");exports.ContextMenu=e.ContextMenu;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),d=require("react"),h=require("./index-chunk-DCI82Tmm.js"),N=require("./useGlobalSettings-chunk-Pa38w6VS.js"),f=require("./Breadcrumb-chunk-
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),d=require("react"),h=require("./index-chunk-DCI82Tmm.js"),N=require("./useGlobalSettings-chunk-Pa38w6VS.js"),f=require("./Breadcrumb-chunk-DkUvpxym.js"),v=require("./Tooltip-chunk-Ca67o441.js"),q=require("./HeroCard-chunk-Cdyuf9Gw.js"),k=d.forwardRef(({className:l,justify:o="start",align:u="baseline",cardSize:_="small",posterSize:$="large",theme:x="dark",image:e,breadcrumb:c,heroCard:j,caption:t,gap:i},p)=>{const{prefix:m}=N.useGlobalSettings(),s="hero",n=d.useMemo(()=>e?e==null?void 0:e.url.sort((a,b)=>a.breakpoint-b.breakpoint):[],[e]);return r.jsxs("div",{ref:p,className:h.classnames(s,`${s}__card-justify__${o}`,`${s}__card-align__${u}`,`${s}__card-size__${_}`,`${s}__poster-size__${$}`,`${s}__card-theme__${x}`,{[`${s}__gap__${i}`]:i},l),children:[r.jsx("div",{className:`${s}--background`,children:e&&r.jsx("figure",{className:`${s}--image`,children:r.jsxs("picture",{children:[n.map(a=>r.jsx("source",{srcSet:a.src,media:`(min-width: ${a.breakpoint}px)`},a.breakpoint)),r.jsx("img",{className:`${m}-${s}--image`,src:n.at(-1).src,alt:e.alt})]})})}),c&&r.jsx("div",{className:`${s}--breadcrumbs`,children:r.jsx("div",{className:`${s}--breadcrumbs--wrapper`,children:r.jsx(f.Breadcrumb,{...c})})}),r.jsx("div",{className:`${s}--card-offset`}),r.jsx("div",{className:`${s}--card`,children:r.jsx(q.HeroCard,{...j})}),t&&r.jsx("div",{className:`${s}--caption`,children:r.jsx("div",{className:`${s}--caption--wrapper`,children:r.jsx(v.Tooltip,{...t})})})]})});exports.Hero=k;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./Hero-chunk-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./Hero-chunk-B3vu8ihD.js");exports.Hero=e.Hero;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),c=require("react"),R=require("./useGlobalSettings-chunk-Pa38w6VS.js"),l=require("./index-chunk-DCI82Tmm.js"),h=require("./ContextMenu-chunk-Dl3-wUCt.js"),C=c.forwardRef(({className:f,language:g,theme:x="light",hideIcon:d,options:a,...m},$)=>{const{prefix:p}=R.useGlobalSettings(),[n,i]=c.useState(!1),o=c.useRef(null),t=c.useRef(null),e=`${p}--language-toggle`;return c.useLayoutEffect(()=>{function s(u){!t.current||!o.current||!t.current.contains(u.target)&&!o.current.contains(u.target)&&i(!1)}return document.addEventListener("mousedown",s),()=>{document.removeEventListener("mousedown",s)}}),c.useLayoutEffect(()=>{if(!(!o.current||!t.current)&&n){const s=o.current.getBoundingClientRect(),u=t.current.getBoundingClientRect();t.current.style.left=`${s.left+(s.width-u.width)/2}px`,t.current.style.top=`${s.bottom}px`}},[n]),r.jsxs("div",{ref:$,className:l.classnames(e,f,`${e}__theme__${x}`,{[`${e}__open`]:n}),...m,children:[r.jsxs("button",{className:`${e}--container`,ref:o,onClick:()=>{i(!n)},"aria-controls":`${e}--context-menu`,"aria-expanded":n,children:[!d&&r.jsx("span",{className:`${e}--icon`}),r.jsx("span",{className:`${e}--action`,children:g}),r.jsx("span",{className:`${e}--arrow`})]}),a&&r.jsx(h.ContextMenu,{withPortal:!0,ref:t,links:a,className:l.classnames(`${e}--context-menu`,{[`${e}--context-menu__open`]:n})})]})});exports.LanguageToggle=C;
|
package/lib/cjs/_store/{LanguageToggle-entry-ALUfRa_V.js → LanguageToggle-entry-CHgP8iuU.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./LanguageToggle-chunk-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./LanguageToggle-chunk-CrtaBUlW.js");exports.LanguageToggle=e.LanguageToggle;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./SubsiteNav-chunk-BphCnfvs.js");exports.SubsiteNav=e.SubsiteNav;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),u=require("react"),j=require("./useGlobalSettings-chunk-Pa38w6VS.js"),I=require("react-dom"),h=require("./index-chunk-DCI82Tmm.js"),O=require("./LanguageToggle-chunk-CrtaBUlW.js"),q=require("./useBreakpoint-chunk-CBEGGRKj.js"),A=({isOpen:l,className:r,navRef:c,children:s})=>{const{prefix:a}=j.useGlobalSettings(),i=u.useRef(null),m=`${a}--nav-dropdown`,_=u.useCallback(()=>{if(!(i!=null&&i.current)||!(c!=null&&c.current))return;const o=c.current.getBoundingClientRect();i.current.style.top=`${o.bottom}px`,i.current.style.width=`${o.width}px`},[c]);return u.useEffect(()=>(_(),window.addEventListener("resize",_),()=>{window.removeEventListener("resize",_)}),[c]),I.createPortal(e.jsx("div",{ref:i,className:h.classnames({[m]:!0,[`${m}--open`]:l,className:r}),children:e.jsx("div",{className:`${m}__container`,children:s})}),document.body)},S=u.memo(A),N=l=>{const{label:r,component:c,isActive:s,...a}=l;return c?e.jsx(c,{...a,isActive:s,children:r}):e.jsx("a",{...a,children:r})},M=({menu:l})=>{const{prefix:r}=j.useGlobalSettings(),c=`${r}--nav-menu-grid`,s=[];for(let a=0;a<l.length;a+=5)s.push(l.slice(a,a+5));return e.jsx("div",{className:c,children:s.map((a,i)=>e.jsx("div",{className:`${c}__column`,children:a.map(m=>{var _;return e.jsx(N,{className:`${c}__item`,href:m.href,label:m.label},(_=m.label)==null?void 0:_.toString())})},i))})},f=({menu:l})=>{const{prefix:r}=j.useGlobalSettings(),c=`${r}--nav-mobile-menu`;return e.jsx("ul",{className:`${c}`,children:l.map((s,a)=>e.jsxs("li",{className:`${c}__item`,children:[e.jsx(N,{label:s.label,href:s.href,className:`${c}__link`}),s.isActive&&e.jsx("span",{className:`${c}__marked`})]},a))})},C=({isOpen:l,onClose:r,header:c,widgets:s,children:a,className:i})=>{const{prefix:m}=j.useGlobalSettings(),_=u.useId(),o=`${m}--nav-mobile-drawer`;return I.createPortal(e.jsxs("div",{id:`${o}__${_}`,className:h.classnames(o,i,{[`${o}--open`]:l}),children:[e.jsxs("div",{className:`${o}__header`,children:[e.jsx("div",{className:`${o}__header-main`,children:c}),e.jsx("button",{className:`${o}__header-close`,onClick:r,"aria-label":"Close navigation",children:e.jsx("span",{className:`${o}__header-close__icon`})})]}),e.jsxs("div",{className:`${o}__container`,children:[e.jsx("div",{className:`${o}__widgets`,children:s}),a]})]}),document.body)},D=({options:l,selected:r})=>{const c=(l==null?void 0:l.map(a=>({label:a.label,href:a.url})))||[],s=[{label:r,href:"#",isActive:!0},...c];return e.jsx(f,{menu:s})},L=({isOpen:l,navigationProps:{branding:r,menu:{items:c,labels:s},widgets:a},onClose:i})=>{var $,v,k;const{prefix:m}=j.useGlobalSettings(),[_,o]=u.useState(!1),[b,x]=u.useState(!1),d=u.useCallback(()=>{o(!1),x(!1)},[]),t=`${m}--nav-mobile`,p=_||b,n=c.slice(0,5),g=c.slice(5);return e.jsxs(C,{isOpen:l,onClose:i,header:e.jsxs("div",{className:`${t}__branding`,children:[e.jsx("div",{className:`${t}__logo`,children:r.logo.drawer||r.logo.main}),e.jsx("h3",{className:`${t}__name`,children:r.name})]}),widgets:e.jsxs("div",{className:`${t}__widgets`,children:[(a==null?void 0:a.search)&&e.jsxs("a",{className:`${t}__widgets-search`,href:a.search.url,"aria-label":"Search",children:[e.jsx("span",{className:`${t}__widgets-search__label`,children:a.search.label}),e.jsx("span",{className:`${t}__widgets-search__icon`})]}),(a==null?void 0:a.link)&&e.jsx(N,{className:`${t}__widgets-link`,href:a.link.href,"aria-label":a.link.label,label:a.link.label}),(a==null?void 0:a.language)&&e.jsxs("button",{className:`${t}__widgets-language`,onClick:()=>x(!0),"aria-expanded":b,"aria-controls":"language-list","aria-label":"Select language",children:[e.jsxs("span",{className:`${t}__widgets-language__label`,children:[a.language.label,": ",a.language.language]}),e.jsx("span",{className:`${t}__widgets-language__icon`})]})]}),children:[e.jsx(f,{menu:n}),e.jsxs("button",{className:`${t}__more`,onClick:()=>o(!0),"aria-expanded":_,"aria-controls":"more-items","aria-label":"More items",children:[s.more,e.jsx("span",{className:`${t}__more__icon`})]}),e.jsx(C,{className:`${t}__nested`,header:e.jsxs("button",{className:`${t}__nested__header`,onClick:d,"aria-label":"Back to menu",children:[e.jsx("span",{className:`${t}__nested__header__icon`}),s.backToMenu]}),widgets:e.jsx("span",{className:`${t}__nested__title`,children:_?s.more:($=a==null?void 0:a.language)==null?void 0:$.label}),isOpen:p,onClose:d,"aria-modal":"true",children:_?e.jsx(f,{menu:g,id:"more-items"}):e.jsx(D,{selected:((v=a==null?void 0:a.language)==null?void 0:v.language)||"",options:(k=a==null?void 0:a.language)==null?void 0:k.options,id:"language-list"})})]})};function G({menu:l,split:r}){const{breakpoint:c}=q.useBreakpoint(),[s,a]=u.useState(!1),[i,m]=u.useState(!1),_=u.useRef(null),o=["xl","xxl"].includes(c||"md"),b=o?r.desktop:r.mobile,x=l.slice(0,b),d=l.slice(b);return{menu:{facade:x,more:d},more:[s,a],mobile:[i,m],isDesktop:o,ref:_}}const B=({className:l,menu:r,more:c})=>{const{prefix:s}=j.useGlobalSettings(),a=`${s}--nav-menu`;return e.jsxs("div",{className:h.classnames(a,l),children:[e.jsx("ul",{className:`${a}__list`,children:r.map(i=>{var m;return e.jsx("li",{className:`${a}__item`,children:e.jsx(N,{...i,className:h.classnames({[`${a}__link`]:!0,[`${a}__link--active`]:i.isActive,[i.className||""]:i.className})})},(m=i.label)==null?void 0:m.toString())})}),c&&e.jsxs("button",{onClick:c.onClick,className:h.classnames({[`${a}__more`]:!0,[`${a}__more--open`]:c.isOpen}),"aria-expanded":c.isOpen,"aria-haspopup":"menu",children:[c.label,e.jsx("span",{className:`${a}__more-icon`})]})]})},P=u.forwardRef(({props:{branding:l,menu:{items:r,labels:c},widgets:s}},a)=>{const{prefix:i}=j.useGlobalSettings(),{menu:{facade:m,more:_},more:[o,b],mobile:[x,d],isDesktop:t,ref:p}=G({menu:r,split:{desktop:4,mobile:2}});u.useImperativeHandle(a,()=>p.current);const n=`${i}--subsite-nav-compact`;return e.jsxs("header",{ref:p,className:n,children:[e.jsxs("div",{className:`${n}__container`,children:[e.jsxs("nav",{className:`${n}__nav`,children:[e.jsxs("div",{className:`${n}__branding`,onClick:l==null?void 0:l.onClick,role:"button","aria-label":"Branding",tabIndex:0,children:[e.jsx("div",{className:`${n}__branding-logo`,children:l.logo.main}),e.jsx("h3",{className:`${n}__branding-name`,children:l.name})]}),e.jsx(B,{className:`${n}__menu`,menu:m,more:{label:c.more,onClick:()=>b(!o),isOpen:o}})]}),s&&e.jsxs("div",{className:`${n}__widget-bar`,children:[e.jsx("span",{className:`${n}__widget-bar-corner`}),e.jsxs("div",{className:`${n}__widget-bar-content`,children:[s.link&&e.jsx(N,{className:`${n}__widget-bar-link`,href:s.link.href,label:s.link.label}),s.language&&e.jsx("div",{className:`${n}__widget-bar-language`,children:e.jsx(O.LanguageToggle,{theme:"dark",...s.language,hideIcon:!t})}),s.search&&e.jsx(N,{href:s.search.url,className:`${n}__widget-bar-search`,label:"","aria-label":s.search.label})]})]}),e.jsx("button",{className:`${n}__burger`,"aria-label":"Toggle navigation","aria-expanded":x,onClick:()=>d(!x),children:e.jsx("span",{className:`${n}__burger-icon`})})]}),e.jsx(S,{isOpen:o,navRef:p,children:e.jsx(M,{menu:_})}),e.jsx(L,{isOpen:x,onClose:()=>{d(!1)},navigationProps:{widgets:s,branding:l,menu:{items:r,labels:c}}})]})}),R=u.forwardRef(({props:{branding:l,menu:{items:r,labels:c},widgets:s}},a)=>{var g,$,v;const{prefix:i}=j.useGlobalSettings(),{menu:{facade:m,more:_},more:[o,b],mobile:[x,d],isDesktop:t,ref:p}=G({menu:r,split:{desktop:6,mobile:5}});u.useImperativeHandle(a,()=>p.current);const n=`${i}--subsite-nav-complex`;return e.jsxs("header",{ref:p,className:n,children:[e.jsx("div",{className:h.classnames(`${n}-bg--light`),children:e.jsxs("div",{className:h.classnames(`${n}__widgets`,`${n}__container`),children:[e.jsx("span",{className:`${n}__widgets-bar-corner`}),e.jsxs("span",{className:`${n}__widgets-bar`,children:[(s==null?void 0:s.link)&&e.jsx(N,{href:s.link.href,label:s.link.label,className:`${n}__widgets-bar__link`}),(s==null?void 0:s.language)&&e.jsx(O.LanguageToggle,{className:`${n}__widgets-bar__language`,...s.language,hideIcon:!t})]})]})}),e.jsx("div",{className:h.classnames(`${n}-bg--light`),children:e.jsxs("div",{className:h.classnames(`${n}__branding`,`${n}__container`),children:[e.jsxs("div",{className:`${n}__branding-main`,children:[e.jsx("div",{className:`${n}__branding-main__logo`,onClick:l==null?void 0:l.onClick,role:"button","aria-label":"Branding",tabIndex:0,children:l.logo.main}),e.jsx("h3",{className:`${n}__branding-main__name`,children:l.name})]}),e.jsxs("div",{className:`${n}__branding-tag`,children:[e.jsx("h4",{className:`${n}__branding-tag__main`,children:(g=l.tag)==null?void 0:g.main}),(($=l.tag)==null?void 0:$.sub)&&e.jsx("span",{className:`${n}__branding-tag__sub`,children:(v=l.tag)==null?void 0:v.sub})]})]})}),e.jsx("div",{className:h.classnames(`${n}-bg--dark`),children:e.jsxs("nav",{className:h.classnames(`${n}__nav`,`${n}__container`),children:[e.jsxs("div",{className:`${n}__nav-mobile`,children:[e.jsx("div",{className:`${n}__nav-mobile__logo`,onClick:l==null?void 0:l.onClick,role:"button","aria-label":"Branding",tabIndex:0,children:l.logo.mobile}),e.jsx("h3",{className:`${n}__nav-mobile__name`,children:l.name})]}),e.jsx(B,{className:`${n}__nav-menu`,menu:m,more:{label:c.more,onClick:()=>b(!o),isOpen:o}}),(s==null?void 0:s.search)&&e.jsx("a",{className:`${n}__nav-search`,href:s.search.url,"aria-label":s.search.label,children:e.jsx("span",{className:`${n}__nav-search__icon`})}),e.jsx("button",{className:`${n}__nav-burger`,"aria-label":"Toggle navigation","aria-expanded":x,onClick:()=>d(!x),children:e.jsx("span",{className:`${n}__nav-burger__icon`})})]})}),e.jsx(S,{isOpen:o,navRef:p,children:e.jsx(M,{menu:_})}),e.jsx(L,{isOpen:x,onClose:()=>{d(!1)},navigationProps:{widgets:s,branding:l,menu:{items:r,labels:c}}})]})}),T={complex:R,compact:P},y=u.forwardRef(({type:l="compact",props:r},c)=>{const s=T[l];return e.jsx(s,{ref:c,props:r})});exports.SubsiteNav=y;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./Accordion-entry-C81QOLKD.js"),o=require("./Form-chunk-DjDwz7DV.js"),i=require("./Collapse-chunk-B3s_Bzzq.js"),t=require("./Empty-chunk-BEqHK-KC.js"),a=require("./Image-chunk-lJKSkHDC.js"),n=require("./Loading-chunk-C9rx8cqr.js"),c=require("./Radio-chunk-LFOxcvur.js"),u=require("./Tag-chunk-DUz8ZjA1.js"),d=require("./Button-chunk-D32W9ElW.js"),s=require("./ContextMenu-chunk-Dl3-wUCt.js"),l=require("./Fieldset-chunk-C3itoJam.js"),q=require("./GlobalProvider-chunk-Bt1vmswv.js"),C=require("./Notification-chunk-Cby6Dnh1.js"),g=require("./ReadMore-chunk-BQvY4016.js"),b=require("./Textarea-chunk-B13VaFl6.js"),L=require("./Callout-chunk-CQirdJVX.js"),T=require("./Credit-chunk-Dts5RkwZ.js"),p=require("./FileUpload-chunk-BhGfPLEt.js"),F=require("./Heading-chunk-BJAywWmF.js"),m=require("./Link-chunk-BfaKuVjz.js"),P=require("./NumberPicker-chunk-CjEYQYj0.js"),k=require("./RichText-chunk-ZamwF4QL.js"),x=require("./Tooltip-chunk-Ca67o441.js"),N=require("./Checkbox-chunk-CfN7137m.js"),f=require("./DatePicker-chunk-7_96tPkC.js"),D=require("./Hero-chunk-B3vu8ihD.js"),S=require("./HeroCard-chunk-Cdyuf9Gw.js"),h=require("./LinkList-chunk-Eu43ZSAZ.js"),v=require("./Pagination-chunk-4zp3hOFL.js"),H=require("./SearchField-chunk-uIkdwz2L.js"),M=require("./Video-chunk-BIJvoxjg.js"),R=require("./Dropdown-chunk-Bn-MFT6c.js"),B=require("./Icon-chunk-Dej6jVSI.js"),G=require("./List-entry-DzqbzyL4.js"),I=require("./Profile-chunk-D1tXXPUO.js"),y=require("./TableOfContents-chunk-DcLMEr2i.js"),O=require("./Footer-chunk-6AdazgST.js"),w=require("./Navigation-entry-C6dI5Dpf.js"),e=require("./CardGroup-chunk-C_EtI9iK.js"),E=require("./Breadcrumb-chunk-DkUvpxym.js"),U=require("./Tabs-chunk-C2PIPQgI.js"),V=require("./LanguageToggle-chunk-CrtaBUlW.js"),A=require("./SubsiteNav-chunk-BphCnfvs.js");exports.Accordion=r.Accordion;exports.Form=o.Form;exports.Collapse=i.Collapse;exports.Empty=t.Empty;exports.Image=a.Image;exports.Loading=n.Loading;exports.Radio=c.LabelledRadio;exports.Tag=u.Tag;exports.Button=d.Button;exports.ContextMenu=s.ContextMenu;exports.Fieldset=l.Fieldset;exports.GlobalProvider=q.GlobalProvider;exports.Notification=C.Notification;exports.ReadMore=g.ReadMore;exports.Textarea=b.LabelledTextarea;exports.Callout=L.Callout;exports.Credit=T.Credit;exports.FileUpload=p.LabelledFileUpload;exports.Heading=F.Heading;exports.Link=m.Link;exports.NumberPicker=P.LabelledNumberPicker;exports.RichText=k.RichText;exports.Tooltip=x.Tooltip;exports.Checkbox=N.LabelledCheckbox;exports.DatePicker=f.LabelledDatePicker;exports.Hero=D.Hero;exports.HeroCard=S.HeroCard;exports.LinkList=h.LinkList;exports.Pagination=v.Pagination;exports.SearchField=H.SearchField;exports.Video=M.Video;exports.Dropdown=R.LabelledDropdown;exports.Icon=B.Icon;exports.List=G.List;exports.Profile=I.Profile;exports.TableOfContents=y.TableOfContents;exports.Footer=O.Footer;exports.Navigation=w.Navigation;exports.CardGroup=e.CardGroup;exports.DataCard=e.DataCard;exports.DetailCard=e.DetailCard;exports.FactListCard=e.FactListCard;exports.FeatureCard=e.FeatureCard;exports.MultiLinkCard=e.MultiLinkCard;exports.PromoCard=e.PromoCard;exports.StatCard=e.StatCard;exports.TextCard=e.TextCard;exports.Breadcrumb=E.Breadcrumb;exports.Tabs=U.Tabs;exports.LanguageToggle=V.LanguageToggle;exports.SubsiteNav=A.SubsiteNav;
|
package/lib/cjs/_store/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./useGlobalSettings-chunk-Pa38w6VS.js"),s=require("./usePrevious-chunk-DENrwKF1.js");exports.useGlobalSettings=e.useGlobalSettings;exports.usePrevious=s.usePrevious;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./useGlobalSettings-chunk-Pa38w6VS.js"),s=require("./usePrevious-chunk-DENrwKF1.js"),t=require("./useBreakpoint-chunk-CBEGGRKj.js");exports.useGlobalSettings=e.useGlobalSettings;exports.usePrevious=s.usePrevious;exports.useBreakpoint=t.useBreakpoint;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const u=require("react"),x=n=>{const s=Object.keys(n).sort((t,a)=>n[a]-n[t]);return s.map((t,a)=>{let i="";const c=n[t],d=s[a-1],e=d?n[d]:null;return c>=0&&(i=`(min-width: ${c}px)`),e!==null&&(i&&(i+=" and "),i+=`(max-width: ${e-1}px)`),{breakpoint:t,maxWidth:e?e-1:null,minWidth:c,query:i}})},h={breakpoint:null,minWidth:null,maxWidth:null,query:null},p=(n,s)=>{const t=u.useMemo(()=>x(n),[n]),a=u.useCallback(e=>{const r=[];return t.forEach(({query:l})=>{const o=window.matchMedia(l),m="addEventListener"in o&&"removeEventListener"in o;m?o.addEventListener("change",e):o.addListener(e),r.push(m?()=>o.removeEventListener("change",e):()=>o.removeListener(e))}),()=>r.forEach(l=>l())},[t]),i=u.useCallback(()=>{const e=t.find(r=>window.matchMedia(r.query).matches);if(e)return e;if(s){const r=t.find(l=>l.breakpoint===s);if(r)return r}return h},[s,t]),c=u.useCallback(()=>t.find(r=>r.breakpoint===s)??h,[s,t]),d=u.useSyncExternalStore(a,i,c);return u.useDebugValue(d,e=>typeof e.breakpoint=="string"?`${e.breakpoint} (${e.minWidth} ≤ x${e.maxWidth?` < ${e.maxWidth+1}`:""})`:""),d},f=window.getComputedStyle(document.body),y=["xs","sm","md","lg","xl","xxl"],g=y.reduce((n,s)=>{const t=parseInt(f.getPropertyValue(`--ilo-breakpoint-${s}`));return t&&(n[s]=t),n},{xs:320,sm:414,md:610,lg:1024,xl:1140,xxl:1440}),E=p.bind(null,g),b=E;exports.useBreakpoint=b;
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./_store/Accordion-entry-C81QOLKD.js"),o=require("./_store/Form-chunk-DjDwz7DV.js"),i=require("./_store/Collapse-chunk-B3s_Bzzq.js"),t=require("./_store/Empty-chunk-BEqHK-KC.js"),a=require("./_store/Image-chunk-lJKSkHDC.js"),n=require("./_store/Loading-chunk-C9rx8cqr.js"),u=require("./_store/Radio-chunk-LFOxcvur.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./_store/Accordion-entry-C81QOLKD.js"),o=require("./_store/Form-chunk-DjDwz7DV.js"),i=require("./_store/Collapse-chunk-B3s_Bzzq.js"),t=require("./_store/Empty-chunk-BEqHK-KC.js"),a=require("./_store/Image-chunk-lJKSkHDC.js"),n=require("./_store/Loading-chunk-C9rx8cqr.js"),u=require("./_store/Radio-chunk-LFOxcvur.js"),s=require("./_store/Tag-chunk-DUz8ZjA1.js"),c=require("./_store/Button-chunk-D32W9ElW.js"),d=require("./_store/ContextMenu-chunk-Dl3-wUCt.js"),l=require("./_store/Fieldset-chunk-C3itoJam.js"),q=require("./_store/GlobalProvider-chunk-Bt1vmswv.js"),C=require("./_store/Notification-chunk-Cby6Dnh1.js"),g=require("./_store/ReadMore-chunk-BQvY4016.js"),b=require("./_store/Textarea-chunk-B13VaFl6.js"),L=require("./_store/Callout-chunk-CQirdJVX.js"),T=require("./_store/Credit-chunk-Dts5RkwZ.js"),p=require("./_store/FileUpload-chunk-BhGfPLEt.js"),P=require("./_store/Heading-chunk-BJAywWmF.js"),k=require("./_store/Link-chunk-BfaKuVjz.js"),F=require("./_store/NumberPicker-chunk-CjEYQYj0.js"),m=require("./_store/RichText-chunk-ZamwF4QL.js"),x=require("./_store/Tooltip-chunk-Ca67o441.js"),S=require("./_store/Checkbox-chunk-CfN7137m.js"),v=require("./_store/DatePicker-chunk-7_96tPkC.js"),N=require("./_store/Hero-chunk-B3vu8ihD.js"),f=require("./_store/HeroCard-chunk-Cdyuf9Gw.js"),D=require("./_store/LinkList-chunk-Eu43ZSAZ.js"),h=require("./_store/Pagination-chunk-4zp3hOFL.js"),B=require("./_store/SearchField-chunk-uIkdwz2L.js"),G=require("./_store/Video-chunk-BIJvoxjg.js"),H=require("./_store/Dropdown-chunk-Bn-MFT6c.js"),M=require("./_store/Icon-chunk-Dej6jVSI.js"),R=require("./_store/List-entry-DzqbzyL4.js"),I=require("./_store/Profile-chunk-D1tXXPUO.js"),y=require("./_store/TableOfContents-chunk-DcLMEr2i.js"),O=require("./_store/Footer-chunk-6AdazgST.js"),w=require("./_store/Navigation-entry-C6dI5Dpf.js"),e=require("./_store/CardGroup-chunk-C_EtI9iK.js"),E=require("./_store/Breadcrumb-chunk-DkUvpxym.js"),U=require("./_store/Tabs-chunk-C2PIPQgI.js"),V=require("./_store/LanguageToggle-chunk-CrtaBUlW.js"),A=require("./_store/SubsiteNav-chunk-BphCnfvs.js"),$=require("./_store/useGlobalSettings-chunk-Pa38w6VS.js"),j=require("./_store/usePrevious-chunk-DENrwKF1.js"),z=require("./_store/useBreakpoint-chunk-CBEGGRKj.js");exports.Accordion=r.Accordion;exports.Form=o.Form;exports.Collapse=i.Collapse;exports.Empty=t.Empty;exports.Image=a.Image;exports.Loading=n.Loading;exports.Radio=u.LabelledRadio;exports.Tag=s.Tag;exports.Button=c.Button;exports.ContextMenu=d.ContextMenu;exports.Fieldset=l.Fieldset;exports.GlobalProvider=q.GlobalProvider;exports.Notification=C.Notification;exports.ReadMore=g.ReadMore;exports.Textarea=b.LabelledTextarea;exports.Callout=L.Callout;exports.Credit=T.Credit;exports.FileUpload=p.LabelledFileUpload;exports.Heading=P.Heading;exports.Link=k.Link;exports.NumberPicker=F.LabelledNumberPicker;exports.RichText=m.RichText;exports.Tooltip=x.Tooltip;exports.Checkbox=S.LabelledCheckbox;exports.DatePicker=v.LabelledDatePicker;exports.Hero=N.Hero;exports.HeroCard=f.HeroCard;exports.LinkList=D.LinkList;exports.Pagination=h.Pagination;exports.SearchField=B.SearchField;exports.Video=G.Video;exports.Dropdown=H.LabelledDropdown;exports.Icon=M.Icon;exports.List=R.List;exports.Profile=I.Profile;exports.TableOfContents=y.TableOfContents;exports.Footer=O.Footer;exports.Navigation=w.Navigation;exports.CardGroup=e.CardGroup;exports.DataCard=e.DataCard;exports.DetailCard=e.DetailCard;exports.FactListCard=e.FactListCard;exports.FeatureCard=e.FeatureCard;exports.MultiLinkCard=e.MultiLinkCard;exports.PromoCard=e.PromoCard;exports.StatCard=e.StatCard;exports.TextCard=e.TextCard;exports.Breadcrumb=E.Breadcrumb;exports.Tabs=U.Tabs;exports.LanguageToggle=V.LanguageToggle;exports.SubsiteNav=A.SubsiteNav;exports.useGlobalSettings=$.useGlobalSettings;exports.usePrevious=j.usePrevious;exports.useBreakpoint=z.useBreakpoint;
|
|
@@ -2,7 +2,7 @@ import { jsx as r, jsxs as x } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as y, useId as L, useState as _, useRef as d, useLayoutEffect as C } from "react";
|
|
3
3
|
import { c as m } from "./index-chunk-0LeqwHm8.js";
|
|
4
4
|
import { u as E } from "./useGlobalSettings-chunk-gkijV3S1.js";
|
|
5
|
-
import { C as j } from "./ContextMenu-chunk-
|
|
5
|
+
import { C as j } from "./ContextMenu-chunk-D-riZIFp.js";
|
|
6
6
|
const R = y(
|
|
7
7
|
({ url: b, label: c, className: f, first: o }, e) => {
|
|
8
8
|
const { prefix: n } = E();
|
|
@@ -0,0 +1,425 @@
|
|
|
1
|
+
import { jsx as e, jsxs as h } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as v, Fragment as x } from "react";
|
|
3
|
+
import { c as u } from "./index-chunk-0LeqwHm8.js";
|
|
4
|
+
import { u as f } from "./useGlobalSettings-chunk-gkijV3S1.js";
|
|
5
|
+
import { B as C } from "./Button-chunk-BlSnS8yQ.js";
|
|
6
|
+
import { L as y } from "./Link-chunk-CKAMN_c4.js";
|
|
7
|
+
import { L as g } from "./LinkList-chunk-BM5BTk9m.js";
|
|
8
|
+
import { P as k } from "./Profile-chunk-Tpvzafuk.js";
|
|
9
|
+
import { List as w } from "./List-entry-XHat7PmC.js";
|
|
10
|
+
const L = v(
|
|
11
|
+
({
|
|
12
|
+
className: N,
|
|
13
|
+
title: r,
|
|
14
|
+
theme: n = "light",
|
|
15
|
+
size: a = "standard",
|
|
16
|
+
color: p,
|
|
17
|
+
intro: _,
|
|
18
|
+
source: m,
|
|
19
|
+
titleLevel: o = "p"
|
|
20
|
+
}, d) => {
|
|
21
|
+
const { prefix: s } = f(), t = `${s}--card`, $ = u(`${t}--wrapper`, N), i = u(t, `${t}__type__stat`, {
|
|
22
|
+
[`${t}__size__${String(a)}`]: a,
|
|
23
|
+
[`${t}__theme__${n}`]: n,
|
|
24
|
+
[`${t}__color__${p}`]: p
|
|
25
|
+
});
|
|
26
|
+
return /* @__PURE__ */ e("div", { className: $, ref: d, children: /* @__PURE__ */ e("div", { className: i, children: /* @__PURE__ */ e("div", { className: `${t}--wrap`, children: /* @__PURE__ */ h("div", { className: `${t}--content`, children: [
|
|
27
|
+
/* @__PURE__ */ e(o, { className: `${t}--title`, children: r }),
|
|
28
|
+
_ && /* @__PURE__ */ e("p", { className: `${t}--intro`, children: _ }),
|
|
29
|
+
m && /* @__PURE__ */ e(
|
|
30
|
+
y,
|
|
31
|
+
{
|
|
32
|
+
className: `${t}--source`,
|
|
33
|
+
url: m.url,
|
|
34
|
+
label: m.label
|
|
35
|
+
}
|
|
36
|
+
)
|
|
37
|
+
] }) }) }) });
|
|
38
|
+
}
|
|
39
|
+
), S = v(
|
|
40
|
+
({
|
|
41
|
+
className: N,
|
|
42
|
+
title: r,
|
|
43
|
+
size: n = "standard",
|
|
44
|
+
alignment: a,
|
|
45
|
+
intro: p,
|
|
46
|
+
link: _,
|
|
47
|
+
linklist: m,
|
|
48
|
+
image: o,
|
|
49
|
+
titleLevel: d = "p",
|
|
50
|
+
eyebrow: s,
|
|
51
|
+
isVideo: t,
|
|
52
|
+
theme: $ = "light"
|
|
53
|
+
}, i) => {
|
|
54
|
+
const { prefix: c } = f(), l = `${c}--card`, b = u(
|
|
55
|
+
l,
|
|
56
|
+
N,
|
|
57
|
+
`${l}__type__multilink`,
|
|
58
|
+
{
|
|
59
|
+
[`${l}__align__${a}`]: a,
|
|
60
|
+
[`${l}__action`]: _,
|
|
61
|
+
[`${l}__size__${n}`]: n,
|
|
62
|
+
[`${l}__isvideo`]: t,
|
|
63
|
+
[`${l}--no-image`]: !o,
|
|
64
|
+
[`${l}__theme__${$}`]: $
|
|
65
|
+
}
|
|
66
|
+
);
|
|
67
|
+
return /* @__PURE__ */ h("div", { className: b, ref: i, children: [
|
|
68
|
+
_ && /* @__PURE__ */ e("a", { className: `${l}--link`, href: _, title: r, children: /* @__PURE__ */ e("span", { className: `${l}--link--text`, children: r }) }),
|
|
69
|
+
/* @__PURE__ */ h("div", { className: `${l}--wrap`, children: [
|
|
70
|
+
o && /* @__PURE__ */ e("div", { className: `${l}--image--wrapper`, children: /* @__PURE__ */ e("picture", { children: /* @__PURE__ */ e(
|
|
71
|
+
"img",
|
|
72
|
+
{
|
|
73
|
+
src: o,
|
|
74
|
+
alt: r,
|
|
75
|
+
className: `${l}--picture`
|
|
76
|
+
}
|
|
77
|
+
) }) }),
|
|
78
|
+
/* @__PURE__ */ h("div", { className: `${l}--content`, children: [
|
|
79
|
+
s && /* @__PURE__ */ e("p", { className: `${l}--eyebrow`, children: s }),
|
|
80
|
+
/* @__PURE__ */ e(d, { className: `${l}--title`, children: r }),
|
|
81
|
+
o && /* @__PURE__ */ e("div", { className: `${l}--image--wrapper`, children: /* @__PURE__ */ e("picture", { children: /* @__PURE__ */ e(
|
|
82
|
+
"img",
|
|
83
|
+
{
|
|
84
|
+
src: o,
|
|
85
|
+
alt: r,
|
|
86
|
+
className: `${l}--picture`
|
|
87
|
+
}
|
|
88
|
+
) }) }),
|
|
89
|
+
p && /* @__PURE__ */ e("p", { className: `${l}--intro`, children: p }),
|
|
90
|
+
m && /* @__PURE__ */ e(g, { ...m })
|
|
91
|
+
] })
|
|
92
|
+
] })
|
|
93
|
+
] });
|
|
94
|
+
}
|
|
95
|
+
), T = v(
|
|
96
|
+
({
|
|
97
|
+
className: N,
|
|
98
|
+
title: r,
|
|
99
|
+
theme: n = "light",
|
|
100
|
+
size: a = "narrow",
|
|
101
|
+
date: p,
|
|
102
|
+
profile: _,
|
|
103
|
+
link: m,
|
|
104
|
+
titleLevel: o = "p",
|
|
105
|
+
eyebrow: d
|
|
106
|
+
}, s) => {
|
|
107
|
+
const { prefix: t } = f(), $ = `${t}--card`, i = u(`${$}--wrapper`, N), c = u($, `${$}__type__text`, {
|
|
108
|
+
[`${$}__action`]: m,
|
|
109
|
+
[`${$}__size__${String(a)}`]: a,
|
|
110
|
+
[`${$}__theme__${n}`]: n
|
|
111
|
+
});
|
|
112
|
+
return /* @__PURE__ */ e("div", { className: i, ref: s, children: /* @__PURE__ */ h("div", { className: c, children: [
|
|
113
|
+
/* @__PURE__ */ e("a", { className: `${$}--link`, href: m, title: r, children: /* @__PURE__ */ e("span", { className: `${$}--link--text`, children: r }) }),
|
|
114
|
+
/* @__PURE__ */ e("div", { className: `${$}--wrap`, children: /* @__PURE__ */ h("div", { className: `${$}--content`, children: [
|
|
115
|
+
d && /* @__PURE__ */ e("p", { className: `${$}--eyebrow`, children: d }),
|
|
116
|
+
/* @__PURE__ */ e(o, { className: `${$}--title`, children: r }),
|
|
117
|
+
p && /* @__PURE__ */ e("time", { className: `${$}--date`, dateTime: p.unix, children: p.human }),
|
|
118
|
+
_ && /* @__PURE__ */ e(
|
|
119
|
+
k,
|
|
120
|
+
{
|
|
121
|
+
avatar: _.avatar,
|
|
122
|
+
description: _.description,
|
|
123
|
+
link: _.link,
|
|
124
|
+
name: _.name,
|
|
125
|
+
role: _.role,
|
|
126
|
+
theme: n
|
|
127
|
+
}
|
|
128
|
+
)
|
|
129
|
+
] }) })
|
|
130
|
+
] }) });
|
|
131
|
+
}
|
|
132
|
+
), F = v(
|
|
133
|
+
({
|
|
134
|
+
className: N,
|
|
135
|
+
title: r,
|
|
136
|
+
theme: n = "light",
|
|
137
|
+
size: a = "narrow",
|
|
138
|
+
cornercut: p,
|
|
139
|
+
intro: _,
|
|
140
|
+
link: m,
|
|
141
|
+
cta: o,
|
|
142
|
+
titleLevel: d = "p",
|
|
143
|
+
eyebrow: s
|
|
144
|
+
}, t) => {
|
|
145
|
+
const { prefix: $ } = f(), i = `${$}--card`, c = u(
|
|
146
|
+
`${i}--wrapper`,
|
|
147
|
+
N,
|
|
148
|
+
`${i}--wrapper__type__promo`,
|
|
149
|
+
`${i}--wrapper__type__promo__size__${a}`
|
|
150
|
+
), l = u(i, `${i}__type__promo`, {
|
|
151
|
+
[`${i}__action`]: m,
|
|
152
|
+
[`${i}__size__${String(a)}`]: a,
|
|
153
|
+
[`${i}__theme__${n}`]: n,
|
|
154
|
+
[`${i}__cornercut`]: p
|
|
155
|
+
});
|
|
156
|
+
return /* @__PURE__ */ e("div", { className: c, ref: t, children: /* @__PURE__ */ h("div", { className: l, children: [
|
|
157
|
+
/* @__PURE__ */ e("a", { className: `${i}--link`, href: m, title: r, children: /* @__PURE__ */ e("span", { className: `${i}--link--text`, children: r }) }),
|
|
158
|
+
/* @__PURE__ */ e("div", { className: `${i}--wrap`, children: /* @__PURE__ */ h("div", { className: `${i}--content`, children: [
|
|
159
|
+
s && /* @__PURE__ */ e("p", { className: `${i}--eyebrow`, children: s }),
|
|
160
|
+
/* @__PURE__ */ e(d, { className: `${i}--title`, children: r }),
|
|
161
|
+
_ && /* @__PURE__ */ e("p", { className: `${i}--intro`, children: _ }),
|
|
162
|
+
(o == null ? void 0 : o.label) && /* @__PURE__ */ e("div", { className: `${i}--cta`, children: /* @__PURE__ */ e(
|
|
163
|
+
C,
|
|
164
|
+
{
|
|
165
|
+
link: { url: o.url, label: o.label },
|
|
166
|
+
size: "medium",
|
|
167
|
+
type: "primary"
|
|
168
|
+
}
|
|
169
|
+
) })
|
|
170
|
+
] }) })
|
|
171
|
+
] }) });
|
|
172
|
+
}
|
|
173
|
+
), P = v(
|
|
174
|
+
({
|
|
175
|
+
className: N,
|
|
176
|
+
title: r,
|
|
177
|
+
theme: n = "light",
|
|
178
|
+
size: a = "narrow",
|
|
179
|
+
date: p,
|
|
180
|
+
link: _,
|
|
181
|
+
linklist: m,
|
|
182
|
+
image: o,
|
|
183
|
+
titleLevel: d = "p",
|
|
184
|
+
eyebrow: s,
|
|
185
|
+
isVideo: t
|
|
186
|
+
}, $) => {
|
|
187
|
+
const { prefix: i } = f(), c = `${i}--card`, l = u(
|
|
188
|
+
c,
|
|
189
|
+
N,
|
|
190
|
+
`${c}__type__feature`,
|
|
191
|
+
{
|
|
192
|
+
[`${c}__action`]: _,
|
|
193
|
+
[`${c}__size__${String(a)}`]: a,
|
|
194
|
+
[`${c}__theme__${n}`]: n,
|
|
195
|
+
[`${c}__isvideo`]: t,
|
|
196
|
+
[`${c}__linklist`]: m
|
|
197
|
+
}
|
|
198
|
+
);
|
|
199
|
+
return /* @__PURE__ */ h("div", { className: l, ref: $, children: [
|
|
200
|
+
_ && /* @__PURE__ */ e("a", { className: `${c}--link`, href: _, title: r, children: /* @__PURE__ */ e("span", { className: `${c}--link--text`, children: r }) }),
|
|
201
|
+
/* @__PURE__ */ h("div", { className: `${c}--wrap`, children: [
|
|
202
|
+
o && /* @__PURE__ */ e("div", { className: `${c}--image--wrapper`, children: /* @__PURE__ */ e("picture", { children: /* @__PURE__ */ e(
|
|
203
|
+
"img",
|
|
204
|
+
{
|
|
205
|
+
src: o,
|
|
206
|
+
alt: r,
|
|
207
|
+
className: `${c}--picture`
|
|
208
|
+
}
|
|
209
|
+
) }) }),
|
|
210
|
+
/* @__PURE__ */ h("div", { className: `${c}--content`, children: [
|
|
211
|
+
s && /* @__PURE__ */ e("p", { className: `${c}--eyebrow`, children: s }),
|
|
212
|
+
/* @__PURE__ */ e(d, { className: `${c}--title`, children: r }),
|
|
213
|
+
p && /* @__PURE__ */ e("time", { className: `${c}--date`, dateTime: p.unix, children: p.human }),
|
|
214
|
+
m && /* @__PURE__ */ e(
|
|
215
|
+
g,
|
|
216
|
+
{
|
|
217
|
+
headline: m.headline,
|
|
218
|
+
linkgroup: m.linkgroup,
|
|
219
|
+
theme: n
|
|
220
|
+
}
|
|
221
|
+
)
|
|
222
|
+
] })
|
|
223
|
+
] })
|
|
224
|
+
] });
|
|
225
|
+
}
|
|
226
|
+
), z = v(
|
|
227
|
+
({
|
|
228
|
+
className: N,
|
|
229
|
+
title: r,
|
|
230
|
+
theme: n = "light",
|
|
231
|
+
size: a = "narrow",
|
|
232
|
+
date: p,
|
|
233
|
+
details: _,
|
|
234
|
+
link: m,
|
|
235
|
+
titleLevel: o = "p",
|
|
236
|
+
eyebrow: d,
|
|
237
|
+
intro: s,
|
|
238
|
+
image: t,
|
|
239
|
+
isVideo: $ = !1
|
|
240
|
+
}, i) => {
|
|
241
|
+
const { prefix: c } = f(), l = `${c}--card`, b = u(
|
|
242
|
+
l,
|
|
243
|
+
`${l}__type__detail`,
|
|
244
|
+
N,
|
|
245
|
+
{
|
|
246
|
+
[`${l}__action`]: m,
|
|
247
|
+
[`${l}__size__${String(a)}`]: a,
|
|
248
|
+
[`${l}__theme__${n}`]: n,
|
|
249
|
+
[`${l}__isvideo`]: $
|
|
250
|
+
}
|
|
251
|
+
);
|
|
252
|
+
return /* @__PURE__ */ h("div", { className: b, ref: i, children: [
|
|
253
|
+
m && /* @__PURE__ */ e("a", { className: `${l}--link`, href: m, title: r, children: /* @__PURE__ */ e("span", { className: `${l}--link--text`, children: r }) }),
|
|
254
|
+
/* @__PURE__ */ h("div", { className: `${l}--wrap`, children: [
|
|
255
|
+
t && /* @__PURE__ */ e("div", { className: `${l}--image--wrapper`, children: /* @__PURE__ */ e("picture", { children: /* @__PURE__ */ e(
|
|
256
|
+
"img",
|
|
257
|
+
{
|
|
258
|
+
className: `${l}--picture`,
|
|
259
|
+
src: t,
|
|
260
|
+
alt: r
|
|
261
|
+
}
|
|
262
|
+
) }) }),
|
|
263
|
+
/* @__PURE__ */ h("div", { className: `${l}--content`, children: [
|
|
264
|
+
d && /* @__PURE__ */ e("p", { className: `${l}--eyebrow`, children: d }),
|
|
265
|
+
r && /* @__PURE__ */ e(o, { className: `${l}--title`, children: r }),
|
|
266
|
+
s && /* @__PURE__ */ e("p", { className: `${l}--intro`, children: s }),
|
|
267
|
+
p && /* @__PURE__ */ e("time", { className: `${l}--date`, dateTime: p.unix, children: p.human }),
|
|
268
|
+
_ && /* @__PURE__ */ e("p", { className: `${l}--date-extra`, children: _ })
|
|
269
|
+
] })
|
|
270
|
+
] })
|
|
271
|
+
] });
|
|
272
|
+
}
|
|
273
|
+
), D = v(
|
|
274
|
+
({
|
|
275
|
+
title: N,
|
|
276
|
+
theme: r = "light",
|
|
277
|
+
size: n = "narrow",
|
|
278
|
+
list: a,
|
|
279
|
+
titleLevel: p = "p",
|
|
280
|
+
className: _
|
|
281
|
+
}, m) => {
|
|
282
|
+
const { prefix: o } = f(), d = `${o}--card`, s = u(
|
|
283
|
+
d,
|
|
284
|
+
`${d}__type__factlist`,
|
|
285
|
+
_,
|
|
286
|
+
{
|
|
287
|
+
[`${d}__size__${n}`]: n,
|
|
288
|
+
[`${d}__theme__${r}`]: r
|
|
289
|
+
}
|
|
290
|
+
);
|
|
291
|
+
return /* @__PURE__ */ e("div", { className: s, ref: m, children: /* @__PURE__ */ e("div", { className: `${d}--wrap`, children: /* @__PURE__ */ h("div", { className: `${d}--content`, children: [
|
|
292
|
+
N && /* @__PURE__ */ e(p, { className: `${o}--card--title`, children: N }),
|
|
293
|
+
/* @__PURE__ */ e(w, { alignment: "default", ordered: "unordered", theme: r, children: a.map((t) => /* @__PURE__ */ e(w.Item, { children: /* @__PURE__ */ e("p", { children: t }) }, t)) })
|
|
294
|
+
] }) }) });
|
|
295
|
+
}
|
|
296
|
+
), G = v(
|
|
297
|
+
({ eyebrow: N, size: r = "narrow", image: n, dataset: a, columns: p = "one", className: _ }, m) => {
|
|
298
|
+
var i;
|
|
299
|
+
const { prefix: o } = f(), d = r === "narrow" ? "one" : p, s = `${o}--card`, t = u(
|
|
300
|
+
s,
|
|
301
|
+
`${s}__type__data`,
|
|
302
|
+
_,
|
|
303
|
+
{
|
|
304
|
+
[`${s}__size__${String(r)}`]: r,
|
|
305
|
+
[`${s}__type__data__columns__${d}`]: d
|
|
306
|
+
}
|
|
307
|
+
), $ = u(`${s}--content`, {
|
|
308
|
+
[`${s}--content__with-image`]: n,
|
|
309
|
+
[`${s}--content__no-image-with-links`]: !n && (a == null ? void 0 : a.links),
|
|
310
|
+
[`${s}--content__default`]: !n && !(a != null && a.links)
|
|
311
|
+
});
|
|
312
|
+
return /* @__PURE__ */ e("div", { className: t, ref: m, children: /* @__PURE__ */ h("div", { className: `${s}--wrap`, children: [
|
|
313
|
+
!n && N && /* @__PURE__ */ e("div", { className: `${s}--eyebrow`, children: N }),
|
|
314
|
+
/* @__PURE__ */ h("div", { className: $, children: [
|
|
315
|
+
n && /* @__PURE__ */ h("div", { className: `${s}--area--image`, children: [
|
|
316
|
+
N && /* @__PURE__ */ e("div", { className: `${s}--eyebrow`, children: N }),
|
|
317
|
+
/* @__PURE__ */ e("div", { className: `${s}--image`, children: /* @__PURE__ */ e("picture", { children: /* @__PURE__ */ e(
|
|
318
|
+
"img",
|
|
319
|
+
{
|
|
320
|
+
className: `${s}--picture`,
|
|
321
|
+
src: n,
|
|
322
|
+
alt: N
|
|
323
|
+
}
|
|
324
|
+
) }) })
|
|
325
|
+
] }),
|
|
326
|
+
(i = a == null ? void 0 : a.content) == null ? void 0 : i.items.map((c, l) => /* @__PURE__ */ h("div", { className: `${s}--area--content`, children: [
|
|
327
|
+
/* @__PURE__ */ e("p", { className: `${s}__type__data--content-label`, children: c.label }),
|
|
328
|
+
/* @__PURE__ */ e("p", { className: `${s}__type__data--content-copy`, children: c.copy })
|
|
329
|
+
] }, l)),
|
|
330
|
+
(a == null ? void 0 : a.files) && /* @__PURE__ */ e("div", { className: `${s}--area--files`, children: /* @__PURE__ */ h("div", { className: `${s}__type__data--content-files`, children: [
|
|
331
|
+
/* @__PURE__ */ e("p", { className: `${s}__type__data--content-label`, children: a.files.headline }),
|
|
332
|
+
a.files.items.map((c, l) => /* @__PURE__ */ e(
|
|
333
|
+
C,
|
|
334
|
+
{
|
|
335
|
+
link: {
|
|
336
|
+
url: c.url,
|
|
337
|
+
label: c.label,
|
|
338
|
+
target: c.target || "_self"
|
|
339
|
+
},
|
|
340
|
+
size: "small"
|
|
341
|
+
},
|
|
342
|
+
l
|
|
343
|
+
))
|
|
344
|
+
] }) }),
|
|
345
|
+
(a == null ? void 0 : a.cta) && /* @__PURE__ */ e("div", { className: `${s}--area--cta`, children: /* @__PURE__ */ h("div", { className: `${s}__type__data--content-cta`, children: [
|
|
346
|
+
/* @__PURE__ */ e("p", { className: `${s}__type__data--content-label`, children: a.cta.headline }),
|
|
347
|
+
a.cta.items.map((c) => /* @__PURE__ */ e(
|
|
348
|
+
C,
|
|
349
|
+
{
|
|
350
|
+
type: "secondary",
|
|
351
|
+
size: "small",
|
|
352
|
+
link: {
|
|
353
|
+
url: c.url,
|
|
354
|
+
label: c.label,
|
|
355
|
+
target: c.target
|
|
356
|
+
}
|
|
357
|
+
},
|
|
358
|
+
c.label
|
|
359
|
+
))
|
|
360
|
+
] }) }),
|
|
361
|
+
(a == null ? void 0 : a.links) && /* @__PURE__ */ e("div", { className: `${s}--area--links`, children: /* @__PURE__ */ h("div", { className: `${s}__type__data--content-links`, children: [
|
|
362
|
+
/* @__PURE__ */ e("p", { className: `${s}__type__data--content-label`, children: a.links.headline }),
|
|
363
|
+
/* @__PURE__ */ e(
|
|
364
|
+
"div",
|
|
365
|
+
{
|
|
366
|
+
className: `${s}__type__data--content-links-list`,
|
|
367
|
+
children: a.links.items.map((c) => /* @__PURE__ */ e(x, { children: /* @__PURE__ */ e(
|
|
368
|
+
y,
|
|
369
|
+
{
|
|
370
|
+
url: c.url,
|
|
371
|
+
label: c.label,
|
|
372
|
+
className: `${s}__type__data--content-link`
|
|
373
|
+
}
|
|
374
|
+
) }, c.label + c.url))
|
|
375
|
+
}
|
|
376
|
+
)
|
|
377
|
+
] }) })
|
|
378
|
+
] })
|
|
379
|
+
] }) });
|
|
380
|
+
}
|
|
381
|
+
), M = {
|
|
382
|
+
stat: L,
|
|
383
|
+
multilink: S,
|
|
384
|
+
text: T,
|
|
385
|
+
promo: F,
|
|
386
|
+
feature: P,
|
|
387
|
+
detail: z,
|
|
388
|
+
factlist: D,
|
|
389
|
+
data: G
|
|
390
|
+
}, K = v(
|
|
391
|
+
({ type: N, group: r, cardCount: n = "one", cta: a, collapsed: p = !1 }, _) => {
|
|
392
|
+
const m = M[N], { prefix: o } = f(), d = `${o}--cardgroup`, s = u(
|
|
393
|
+
d,
|
|
394
|
+
`${d}__count__${n}`,
|
|
395
|
+
{
|
|
396
|
+
[`${d}__collapsed`]: p
|
|
397
|
+
}
|
|
398
|
+
);
|
|
399
|
+
return /* @__PURE__ */ h("div", { className: s, ref: _, children: [
|
|
400
|
+
/* @__PURE__ */ e("div", { className: `${d}--inner`, children: r.map((t, $) => /* @__PURE__ */ e(m, { ...t }, $)) }),
|
|
401
|
+
a && /* @__PURE__ */ e("div", { className: `${d}--button-wrap`, children: /* @__PURE__ */ e(
|
|
402
|
+
C,
|
|
403
|
+
{
|
|
404
|
+
link: {
|
|
405
|
+
url: a.url,
|
|
406
|
+
label: a.label
|
|
407
|
+
},
|
|
408
|
+
type: "secondary",
|
|
409
|
+
size: "medium"
|
|
410
|
+
}
|
|
411
|
+
) })
|
|
412
|
+
] });
|
|
413
|
+
}
|
|
414
|
+
);
|
|
415
|
+
export {
|
|
416
|
+
K as C,
|
|
417
|
+
z as D,
|
|
418
|
+
P as F,
|
|
419
|
+
S as M,
|
|
420
|
+
F as P,
|
|
421
|
+
L as S,
|
|
422
|
+
T,
|
|
423
|
+
D as a,
|
|
424
|
+
G as b
|
|
425
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as s, b as t, D as C, a as d, F as e, M as o, P as i, S as u, T as D } from "./CardGroup-chunk-
|
|
1
|
+
import { C as s, b as t, D as C, a as d, F as e, M as o, P as i, S as u, T as D } from "./CardGroup-chunk-BykGdrCT.js";
|
|
2
2
|
export {
|
|
3
3
|
s as CardGroup,
|
|
4
4
|
t as DataCard,
|