quirk-ui 0.1.69 → 0.1.71

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.
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../index33.css');const g=require("react/jsx-runtime"),m="_buttonGroup_1gm2z_1",u="_horizontal_1gm2z_9",a="_vertical_1gm2z_14",z="_left_1gm2z_20",h="_center_1gm2z_24",d="_right_1gm2z_28",f="_sm_1gm2z_33",p="_md_1gm2z_37",$="_lg_1gm2z_41",v="_fullWidth_1gm2z_46",t={buttonGroup:m,horizontal:u,vertical:a,left:z,center:h,right:d,sm:f,md:p,lg:$,fullWidth:v},b={left:t.left,center:t.center,right:t.right},G={sm:t.sm,md:t.md,lg:t.lg};function W({children:o,className:n,alignment:l="left",orientation:r="horizontal",spacing:e="md",role:s="group",fullWidth:i=!1,...c}){const _=r==="vertical"?t.vertical:t.horizontal;return g.jsx("div",{className:`${t.buttonGroup} ${_} ${b[l]} ${G[e]} ${i?t.fullWidth:""} ${n??""}`.trim(),role:s,...c,children:o})}exports.ButtonGroup=W;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../index33.css');const u=require("react/jsx-runtime"),m="_buttonGroup_eawyr_1",w="_horizontal_eawyr_9",g="_vertical_eawyr_14",f="_left_eawyr_20",h="_center_eawyr_24",y="_right_eawyr_28",d="_sm_eawyr_33",p="_md_eawyr_37",b="_lg_eawyr_41",v="_fullWidth_eawyr_46",G="_mobileRow_eawyr_65",t={buttonGroup:m,horizontal:w,vertical:g,left:f,center:h,right:y,sm:d,md:p,lg:b,fullWidth:v,mobileRow:G},z={left:t.left,center:t.center,right:t.right},R={sm:t.sm,md:t.md,lg:t.lg};function W({children:o,className:e,alignment:r="left",orientation:l="horizontal",mobileOrientation:n="column",spacing:i="md",role:s="group",fullWidth:a=!1,..._}){const c=l==="vertical"?t.vertical:t.horizontal;return u.jsx("div",{className:[t.buttonGroup,c,z[r],R[i],a?t.fullWidth:"",n==="row"?t.mobileRow:"",e??""].filter(Boolean).join(" "),role:s,..._,children:o})}exports.ButtonGroup=W;
@@ -1,41 +1,51 @@
1
1
  import { jsx as m } from "react/jsx-runtime";
2
- import '../../../index33.css';const g = "_buttonGroup_1gm2z_1", a = "_horizontal_1gm2z_9", u = "_vertical_1gm2z_14", z = "_left_1gm2z_20", h = "_center_1gm2z_24", f = "_right_1gm2z_28", d = "_sm_1gm2z_33", p = "_md_1gm2z_37", v = "_lg_1gm2z_41", $ = "_fullWidth_1gm2z_46", t = {
3
- buttonGroup: g,
4
- horizontal: a,
5
- vertical: u,
6
- left: z,
7
- center: h,
8
- right: f,
2
+ import '../../../index33.css';const u = "_buttonGroup_eawyr_1", w = "_horizontal_eawyr_9", f = "_vertical_eawyr_14", h = "_left_eawyr_20", g = "_center_eawyr_24", y = "_right_eawyr_28", d = "_sm_eawyr_33", p = "_md_eawyr_37", b = "_lg_eawyr_41", v = "_fullWidth_eawyr_46", z = "_mobileRow_eawyr_65", t = {
3
+ buttonGroup: u,
4
+ horizontal: w,
5
+ vertical: f,
6
+ left: h,
7
+ center: g,
8
+ right: y,
9
9
  sm: d,
10
10
  md: p,
11
- lg: v,
12
- fullWidth: $
11
+ lg: b,
12
+ fullWidth: v,
13
+ mobileRow: z
13
14
  }, G = {
14
15
  left: t.left,
15
16
  center: t.center,
16
17
  right: t.right
17
- }, b = {
18
+ }, R = {
18
19
  sm: t.sm,
19
20
  md: t.md,
20
21
  lg: t.lg
21
22
  };
22
23
  function C({
23
24
  children: o,
24
- className: n,
25
- alignment: l = "left",
26
- orientation: r = "horizontal",
27
- spacing: s = "md",
28
- role: _ = "group",
29
- fullWidth: e = !1,
30
- ...c
25
+ className: e,
26
+ alignment: r = "left",
27
+ orientation: l = "horizontal",
28
+ mobileOrientation: n = "column",
29
+ spacing: a = "md",
30
+ role: s = "group",
31
+ fullWidth: _ = !1,
32
+ ...i
31
33
  }) {
32
- const i = r === "vertical" ? t.vertical : t.horizontal;
34
+ const c = l === "vertical" ? t.vertical : t.horizontal;
33
35
  return /* @__PURE__ */ m(
34
36
  "div",
35
37
  {
36
- className: `${t.buttonGroup} ${i} ${G[l]} ${b[s]} ${e ? t.fullWidth : ""} ${n ?? ""}`.trim(),
37
- role: _,
38
- ...c,
38
+ className: [
39
+ t.buttonGroup,
40
+ c,
41
+ G[r],
42
+ R[a],
43
+ _ ? t.fullWidth : "",
44
+ n === "row" ? t.mobileRow : "",
45
+ e ?? ""
46
+ ].filter(Boolean).join(" "),
47
+ role: s,
48
+ ...i,
39
49
  children: o
40
50
  }
41
51
  );
package/dist/core.d.ts CHANGED
@@ -175,13 +175,14 @@ declare type BreakpointColumns = {
175
175
 
176
176
  export declare function Button({ variant, size, displayType, imageSrc, imageAlt, ImageComponent, icon, iconAlignment, className, children, disabled, ...restProps }: ButtonProps): JSX.Element;
177
177
 
178
- export declare function ButtonGroup({ children, className, alignment, orientation, spacing, role, fullWidth, ...restProps }: ButtonGroupProps): JSX.Element;
178
+ export declare function ButtonGroup({ children, className, alignment, orientation, mobileOrientation, spacing, role, fullWidth, ...restProps }: ButtonGroupProps): JSX.Element;
179
179
 
180
180
  declare type ButtonGroupProps = {
181
181
  children: default_2.ReactNode;
182
182
  className?: string;
183
183
  alignment?: Alignment;
184
184
  orientation?: Orientation;
185
+ mobileOrientation?: "row" | "column";
185
186
  spacing?: ButtonGroupSpacing;
186
187
  role?: string;
187
188
  fullWidth?: boolean;
package/dist/index33.css CHANGED
@@ -1 +1 @@
1
- ._buttonGroup_1gm2z_1{display:flex;gap:var(--spacing-sm);align-items:center;width:fit-content}._horizontal_1gm2z_9{flex-direction:row;flex-wrap:wrap}._vertical_1gm2z_14{flex-direction:column;align-items:stretch}._left_1gm2z_20{justify-content:flex-start}._center_1gm2z_24{justify-content:center}._right_1gm2z_28{justify-content:flex-end}._sm_1gm2z_33{gap:var(--spacing-sm)}._md_1gm2z_37{gap:var(--spacing-md)}._lg_1gm2z_41{gap:var(--spacing-lg)}._fullWidth_1gm2z_46{width:100%}._fullWidth_1gm2z_46._horizontal_1gm2z_9>*{flex:1}._fullWidth_1gm2z_46._vertical_1gm2z_14{align-items:stretch}@media (max-width: 480px){._buttonGroup_1gm2z_1{width:100%}._horizontal_1gm2z_9{flex-direction:column;align-items:stretch}}
1
+ ._buttonGroup_eawyr_1{display:flex;gap:var(--spacing-sm);align-items:center;width:fit-content}._horizontal_eawyr_9{flex-direction:row;flex-wrap:wrap}._vertical_eawyr_14{flex-direction:column;align-items:stretch}._left_eawyr_20{justify-content:flex-start}._center_eawyr_24{justify-content:center}._right_eawyr_28{justify-content:flex-end}._sm_eawyr_33{gap:var(--spacing-sm)}._md_eawyr_37{gap:var(--spacing-md)}._lg_eawyr_41{gap:var(--spacing-lg)}._fullWidth_eawyr_46{width:100%}._fullWidth_eawyr_46._horizontal_eawyr_9>*{flex:1}._fullWidth_eawyr_46._vertical_eawyr_14{align-items:stretch}@media (max-width: 480px){._buttonGroup_eawyr_1{width:100%}._horizontal_eawyr_9:not(._mobileRow_eawyr_65){flex-direction:column;align-items:stretch}._mobileRow_eawyr_65{flex-direction:row;flex-wrap:wrap;width:fit-content}}
package/dist/main.d.ts CHANGED
@@ -282,13 +282,14 @@ declare type BreakpointColumns = {
282
282
 
283
283
  export declare function Button({ variant, size, displayType, imageSrc, imageAlt, ImageComponent, icon, iconAlignment, className, children, disabled, ...restProps }: ButtonProps): JSX.Element;
284
284
 
285
- export declare function ButtonGroup({ children, className, alignment, orientation, spacing, role, fullWidth, ...restProps }: ButtonGroupProps): JSX.Element;
285
+ export declare function ButtonGroup({ children, className, alignment, orientation, mobileOrientation, spacing, role, fullWidth, ...restProps }: ButtonGroupProps): JSX.Element;
286
286
 
287
287
  declare type ButtonGroupProps = {
288
288
  children: default_2.ReactNode;
289
289
  className?: string;
290
290
  alignment?: Alignment;
291
291
  orientation?: Orientation;
292
+ mobileOrientation?: "row" | "column";
292
293
  spacing?: ButtonGroupSpacing;
293
294
  role?: string;
294
295
  fullWidth?: boolean;
@@ -1498,7 +1499,7 @@ declare type RangeSize = "sm" | "md" | "lg";
1498
1499
  * <HeroBlock {...section} renderCallToAction={renderCallToAction} />
1499
1500
  * <ContentBlock {...section} renderCallToAction={renderCallToAction} />
1500
1501
  */
1501
- export declare function renderCallToAction({ alignment, spacing, items, className, }: RenderCallToActionProps_3): default_2.ReactElement | null;
1502
+ export declare function renderCallToAction({ alignment, spacing, mobileOrientation, items, className, }: RenderCallToActionProps_3): default_2.ReactElement | null;
1502
1503
 
1503
1504
  export { RenderCallToActionProps }
1504
1505
 
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../index7.css');const a=require("react/jsx-runtime"),k=require("../../hooks/useStyleClasses.cjs"),H=require("../../../core/context/ThemeContext.cjs"),W=require("../../hooks/useMediaQuery.cjs"),p=require("../../utils/mediaUtils.cjs"),z="_content_1atux_1",$="_container_1atux_7",L="_eyebrow_1atux_34",B="_metrics_1atux_38",C="_metric_1atux_38",q="_metricValue_1atux_54",M="_disclaimer_1atux_75",U="_layoutHImageRight_1atux_80",D="_heading_1atux_84",E="_media_1atux_89",Q="_noImage_1atux_99",Y="_layoutHImageLeft_1atux_103",F="_layoutVImageTop_1atux_122",G="_layoutVImageBottom_1atux_135",P="_text_1atux_154",J="_title_1atux_159",K="_cta_1atux_178",X="_headingHorizontal_1atux_186",Z="_titleWrapper_1atux_195",O="_headingVertical_1atux_216",A="_videoWrapper_1atux_237",T="_layoutSplitText_1atux_329",R="_additionalContent_1atux_344",t={content:z,container:$,eyebrow:L,metrics:B,metric:C,metricValue:q,disclaimer:M,layoutHImageRight:U,heading:D,media:E,noImage:Q,layoutHImageLeft:Y,layoutVImageTop:F,layoutVImageBottom:G,text:P,title:J,cta:K,headingHorizontal:X,titleWrapper:Z,headingVertical:O,videoWrapper:A,layoutSplitText:T,additionalContent:R},tt={"no-image":t.noImage,"split-text":t.layoutSplitText,"horizontal-image-right":t.layoutHImageRight,"horizontal-image-left":t.layoutHImageLeft,"vertical-image-top":t.layoutVImageTop,"vertical-image-bottom":t.layoutVImageBottom},st={horizontal:t.headingHorizontal,vertical:t.headingVertical};function at(s,i,l){const e=s.includes("vimeo.com"),c=s.includes("youtube.com")||s.includes("youtu.be");return e||c?a.jsx("div",{style:{maxWidth:l??"unset",flex:.65},children:a.jsx("div",{className:t.videoWrapper,children:a.jsx("iframe",{src:e?`${s}?autoplay=0&muted=0&loop=0`:`${s}?autoplay=0&mute=0&loop=0`,allow:"autoplay; fullscreen",allowFullScreen:!0})})}):a.jsx("div",{style:{maxWidth:l??"unset",width:"100%",flex:.65},children:a.jsx("div",{className:t.videoWrapper,children:a.jsx("video",{src:s,controls:!0,poster:i})})})}function et({metrics:s,renderRichText:i}){return a.jsx("div",{className:t.metrics,children:s.map(l=>a.jsxs("div",{className:t.metric,children:[a.jsx("div",{className:t.metricValue,children:l.metricValue}),l.metricDescription&&(i==null?void 0:i({blocks:l.metricDescription}))]},l._key))})}function ot({layout:s,heading:i,additionalContent:l,image:e,video:c,metrics:m,callToAction:n,disclaimer:x,styleOptions:u,id:V,renderImage:d,renderRichText:o,renderCallToAction:r}){var N;const{mode:g}=H.useTheme(),b=k.useStyleClasses(u),j=W.useMediaQuery("(max-width: 768px)")??!1,_=p.resolveImageUrl(e,g),h=p.resolveAltText(e,g),y=p.resolveImageStyle(e,j),w=tt[(s==null?void 0:s.orientation)??"horizontal-image-right"],S=st[i.headingLayout??"horizontal"],f={"--container-max-width":(u==null?void 0:u.maxWidth)??"unset","--gap":s==null?void 0:s.gap,"--max-width":(e==null?void 0:e.sizing)==="inset"?e==null?void 0:e.maxWidth:"unset"},I=(s==null?void 0:s.orientation)==="split-text",v=!I&&(s==null?void 0:s.orientation)!=="no-image";return a.jsx("section",{id:V,className:`${b} ${t.content}`,children:a.jsxs("article",{className:`${t.container} ${w}`,style:f,children:[a.jsxs("div",{className:`${t.heading} ${S}`,children:[a.jsxs("div",{className:t.titleWrapper,children:[i.eyebrow&&(o==null?void 0:o({blocks:i.eyebrow,className:t.eyebrow})),i.title&&(o==null?void 0:o({blocks:i.title,className:t.title}))]}),i.description||(N=n==null?void 0:n.items)!=null&&N.length?a.jsxs("div",{className:t.text,children:[i.description&&(o==null?void 0:o({blocks:i.description})),m&&m.length>0&&a.jsx(et,{metrics:m,renderRichText:o}),n&&(r==null?void 0:r({items:n.items,alignment:n.alignment,className:t.cta})),x&&(o==null?void 0:o({blocks:x,className:t.disclaimer}))]}):null]}),I&&l&&a.jsx("div",{className:t.additionalContent,children:o==null?void 0:o({blocks:l})}),v&&c?at(c,_,e==null?void 0:e.maxWidth):v&&e&&_?a.jsx("div",{className:t.media,children:d?d({src:_,alt:h,width:600,height:400,priority:!0,style:y}):a.jsx("img",{src:_,alt:h,width:600,height:400,style:{width:"100%",height:"auto",...y}})}):null]})})}exports.ContentBlock=ot;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../index7.css');const a=require("react/jsx-runtime"),k=require("../../hooks/useStyleClasses.cjs"),H=require("../../../core/context/ThemeContext.cjs"),W=require("../../hooks/useMediaQuery.cjs"),p=require("../../utils/mediaUtils.cjs"),z="_content_1atux_1",$="_container_1atux_7",L="_eyebrow_1atux_34",B="_metrics_1atux_38",C="_metric_1atux_38",q="_metricValue_1atux_54",M="_disclaimer_1atux_75",U="_layoutHImageRight_1atux_80",D="_heading_1atux_84",E="_media_1atux_89",Q="_noImage_1atux_99",Y="_layoutHImageLeft_1atux_103",F="_layoutVImageTop_1atux_122",G="_layoutVImageBottom_1atux_135",O="_text_1atux_154",P="_title_1atux_159",J="_cta_1atux_178",K="_headingHorizontal_1atux_186",X="_titleWrapper_1atux_195",Z="_headingVertical_1atux_216",A="_videoWrapper_1atux_237",R="_layoutSplitText_1atux_329",T="_additionalContent_1atux_344",t={content:z,container:$,eyebrow:L,metrics:B,metric:C,metricValue:q,disclaimer:M,layoutHImageRight:U,heading:D,media:E,noImage:Q,layoutHImageLeft:Y,layoutVImageTop:F,layoutVImageBottom:G,text:O,title:P,cta:J,headingHorizontal:K,titleWrapper:X,headingVertical:Z,videoWrapper:A,layoutSplitText:R,additionalContent:T},tt={"no-image":t.noImage,"split-text":t.layoutSplitText,"horizontal-image-right":t.layoutHImageRight,"horizontal-image-left":t.layoutHImageLeft,"vertical-image-top":t.layoutVImageTop,"vertical-image-bottom":t.layoutVImageBottom},st={horizontal:t.headingHorizontal,vertical:t.headingVertical};function at(s,i,n){const e=s.includes("vimeo.com"),c=s.includes("youtube.com")||s.includes("youtu.be");return e||c?a.jsx("div",{style:{maxWidth:n??"unset",flex:.65},children:a.jsx("div",{className:t.videoWrapper,children:a.jsx("iframe",{src:e?`${s}?autoplay=0&muted=0&loop=0`:`${s}?autoplay=0&mute=0&loop=0`,allow:"autoplay; fullscreen",allowFullScreen:!0})})}):a.jsx("div",{style:{maxWidth:n??"unset",width:"100%",flex:.65},children:a.jsx("div",{className:t.videoWrapper,children:a.jsx("video",{src:s,controls:!0,poster:i})})})}function et({metrics:s,renderRichText:i}){return a.jsx("div",{className:t.metrics,children:s.map(n=>a.jsxs("div",{className:t.metric,children:[a.jsx("div",{className:t.metricValue,children:n.metricValue}),n.metricDescription&&(i==null?void 0:i({blocks:n.metricDescription}))]},n._key))})}function ot({layout:s,heading:i,additionalContent:n,image:e,video:c,metrics:m,callToAction:l,disclaimer:g,styleOptions:u,id:N,renderImage:x,renderRichText:o,renderCallToAction:r}){var b;const{mode:d}=H.useTheme(),V=k.useStyleClasses(u),j=W.useMediaQuery("(max-width: 768px)")??!1,_=p.resolveImageUrl(e,d),h=p.resolveAltText(e,d),y=p.resolveImageStyle(e,j),w=tt[(s==null?void 0:s.orientation)??"horizontal-image-right"],S=st[i.headingLayout??"horizontal"],f={"--container-max-width":(u==null?void 0:u.maxWidth)??"unset","--gap":s==null?void 0:s.gap,"--max-width":(e==null?void 0:e.sizing)==="inset"?e==null?void 0:e.maxWidth:"unset"},I=(s==null?void 0:s.orientation)==="split-text",v=!I&&(s==null?void 0:s.orientation)!=="no-image";return a.jsx("section",{id:N,className:`${V} ${t.content}`,children:a.jsxs("article",{className:`${t.container} ${w}`,style:f,children:[a.jsxs("div",{className:`${t.heading} ${S}`,children:[a.jsxs("div",{className:t.titleWrapper,children:[i.eyebrow&&(o==null?void 0:o({blocks:i.eyebrow,className:t.eyebrow})),i.title&&(o==null?void 0:o({blocks:i.title,className:t.title}))]}),i.description||(b=l==null?void 0:l.items)!=null&&b.length?a.jsxs("div",{className:t.text,children:[i.description&&(o==null?void 0:o({blocks:i.description})),m&&m.length>0&&a.jsx(et,{metrics:m,renderRichText:o}),l&&(r==null?void 0:r({items:l.items,alignment:l.alignment,spacing:l.spacing,mobileOrientation:l.mobileOrientation,className:t.cta})),g&&(o==null?void 0:o({blocks:g,className:t.disclaimer}))]}):null]}),I&&n&&a.jsx("div",{className:t.additionalContent,children:o==null?void 0:o({blocks:n})}),v&&c?at(c,_,e==null?void 0:e.maxWidth):v&&e&&_?a.jsx("div",{className:t.media,children:x?x({src:_,alt:h,width:600,height:400,priority:!0,style:y}):a.jsx("img",{src:_,alt:h,width:600,height:400,style:{width:"100%",height:"auto",...y}})}):null]})})}exports.ContentBlock=ot;
@@ -3,7 +3,7 @@ import { useStyleClasses as W } from "../../hooks/useStyleClasses.mjs";
3
3
  import { useTheme as k } from "../../../core/context/ThemeContext.mjs";
4
4
  import { useMediaQuery as z } from "../../hooks/useMediaQuery.mjs";
5
5
  import { resolveImageUrl as L, resolveAltText as $, resolveImageStyle as B } from "../../utils/mediaUtils.mjs";
6
- import '../../../index7.css';const C = "_content_1atux_1", M = "_container_1atux_7", D = "_eyebrow_1atux_34", U = "_metrics_1atux_38", j = "_metric_1atux_38", E = "_metricValue_1atux_54", Y = "_disclaimer_1atux_75", F = "_layoutHImageRight_1atux_80", G = "_heading_1atux_84", Q = "_media_1atux_89", q = "_noImage_1atux_99", J = "_layoutHImageLeft_1atux_103", K = "_layoutVImageTop_1atux_122", P = "_layoutVImageBottom_1atux_135", X = "_text_1atux_154", Z = "_title_1atux_159", O = "_cta_1atux_178", A = "_headingHorizontal_1atux_186", R = "_titleWrapper_1atux_195", T = "_headingVertical_1atux_216", tt = "_videoWrapper_1atux_237", at = "_layoutSplitText_1atux_329", ot = "_additionalContent_1atux_344", t = {
6
+ import '../../../index7.css';const C = "_content_1atux_1", M = "_container_1atux_7", D = "_eyebrow_1atux_34", U = "_metrics_1atux_38", j = "_metric_1atux_38", E = "_metricValue_1atux_54", Y = "_disclaimer_1atux_75", F = "_layoutHImageRight_1atux_80", G = "_heading_1atux_84", Q = "_media_1atux_89", q = "_noImage_1atux_99", J = "_layoutHImageLeft_1atux_103", K = "_layoutVImageTop_1atux_122", O = "_layoutVImageBottom_1atux_135", P = "_text_1atux_154", X = "_title_1atux_159", Z = "_cta_1atux_178", A = "_headingHorizontal_1atux_186", R = "_titleWrapper_1atux_195", T = "_headingVertical_1atux_216", tt = "_videoWrapper_1atux_237", at = "_layoutSplitText_1atux_329", ot = "_additionalContent_1atux_344", t = {
7
7
  content: C,
8
8
  container: M,
9
9
  eyebrow: D,
@@ -17,10 +17,10 @@ import '../../../index7.css';const C = "_content_1atux_1", M = "_container_1atux
17
17
  noImage: q,
18
18
  layoutHImageLeft: J,
19
19
  layoutVImageTop: K,
20
- layoutVImageBottom: P,
21
- text: X,
22
- title: Z,
23
- cta: O,
20
+ layoutVImageBottom: O,
21
+ text: P,
22
+ title: X,
23
+ cta: Z,
24
24
  headingHorizontal: A,
25
25
  titleWrapper: R,
26
26
  headingVertical: T,
@@ -74,12 +74,12 @@ function rt({
74
74
  renderCallToAction: p
75
75
  }) {
76
76
  var N;
77
- const { mode: I } = k(), f = W(_), b = z("(max-width: 768px)") ?? !1, u = L(o, I), h = $(o, I), v = B(o, b), w = st[(a == null ? void 0 : a.orientation) ?? "horizontal-image-right"], H = et[e.headingLayout ?? "horizontal"], S = {
77
+ const { mode: I } = k(), b = W(_), f = z("(max-width: 768px)") ?? !1, u = L(o, I), h = $(o, I), v = B(o, f), w = st[(a == null ? void 0 : a.orientation) ?? "horizontal-image-right"], H = et[e.headingLayout ?? "horizontal"], S = {
78
78
  "--container-max-width": (_ == null ? void 0 : _.maxWidth) ?? "unset",
79
79
  "--gap": a == null ? void 0 : a.gap,
80
80
  "--max-width": (o == null ? void 0 : o.sizing) === "inset" ? o == null ? void 0 : o.maxWidth : "unset"
81
81
  }, y = (a == null ? void 0 : a.orientation) === "split-text", x = !y && (a == null ? void 0 : a.orientation) !== "no-image";
82
- return /* @__PURE__ */ i("section", { id: V, className: `${f} ${t.content}`, children: /* @__PURE__ */ c(
82
+ return /* @__PURE__ */ i("section", { id: V, className: `${b} ${t.content}`, children: /* @__PURE__ */ c(
83
83
  "article",
84
84
  {
85
85
  className: `${t.container} ${w}`,
@@ -108,6 +108,8 @@ function rt({
108
108
  n && (p == null ? void 0 : p({
109
109
  items: n.items,
110
110
  alignment: n.alignment,
111
+ spacing: n.spacing,
112
+ mobileOrientation: n.mobileOrientation,
111
113
  className: t.cta
112
114
  })),
113
115
  g && (s == null ? void 0 : s({
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../index13.css');const a=require("react/jsx-runtime"),D=require("../../hooks/useStyleClasses.cjs"),g=require("../../../core/components/Tabs/index.cjs"),G=require("../../../index-D0ylyll7.cjs"),M=require("../../utils/resolveLinkUrl.cjs"),P=require("../../../core/context/ThemeContext.cjs"),r=require("../../utils/mediaUtils.cjs"),A="_tabs_3x761_1",F="_container_3x761_7",Y="_heading_3x761_25",J="_text_3x761_32",K="_headingHorizontal_3x761_46",Q="_title_3x761_54",W="_headingVertical_3x761_64",X="_tabContent_3x761_74",Z="_vertical_3x761_97",O="_tabsContainer_3x761_69",T="_tabImage_3x761_112",R="_tabText_3x761_120",tt="_gridItems_3x761_141",at="_gridItem_3x761_141",st="_fullBleed_3x761_181",lt="_overlay_3x761_208",ot="_eyebrow_3x761_314",s={tabs:A,container:F,heading:Y,text:J,headingHorizontal:K,title:Q,headingVertical:W,tabContent:X,vertical:Z,tabsContainer:O,tabImage:T,tabText:R,gridItems:tt,gridItem:at,default:"_default_3x761_166",fullBleed:st,overlay:lt,eyebrow:ot},et={orientationHorizontal:"horizontal",orientationVertical:"vertical"},it={themeDefault:"default",themeLight:"light",themeDark:"dark",themeTransparent:"transparent"},nt={horizontal:s.headingHorizontal,vertical:s.headingVertical},ct={horizontal:"",vertical:s.vertical};function bt({src:l,alt:c,renderImage:_}){return _?_({src:l,alt:c,width:600,height:658,priority:!0}):a.jsx("img",{src:l,alt:c,width:600,height:658})}function _t({items:l,mode:c,renderImage:_,renderRichText:n}){return a.jsx("div",{className:s.gridItems,children:l.map((o,t)=>{const i=r.resolveImageUrl(o.itemImage,c,"medium"),b=r.resolveAltText(o.itemImage,c,"Grid image");return a.jsxs("div",{className:s.gridItem,children:[i&&_?_({src:i,alt:b,width:200,height:200}):i?a.jsx("img",{src:i,alt:b,width:200,height:200}):null,o.itemText&&(n==null?void 0:n({blocks:o.itemText}))]},t)})})}function mt({heading:l,image:c,items:_,callToAction:n,styleOptions:o,renderRichText:t,renderCallToAction:i,renderImage:b}){const{mode:u}=P.useTheme(),I=D.useStyleClasses(o),x=(o==null?void 0:o.layout)??"default",d=nt[l.headingLayout??"vertical"],w=et[(o==null?void 0:o.orientation)??"orientationHorizontal"],V=it[(o==null?void 0:o.theme)??"themeDefault"],y=r.resolveImageUrl(c,u,"medium"),v=r.resolveImageUrl(c,u,"large"),j=r.resolveAltText(c,u,"Block image"),L=a.jsxs(g.Tabs,{defaultIndex:0,orientation:w,theme:V,children:[a.jsx(g.Tabs.List,{children:_.map((e,k)=>a.jsx(g.Tabs.Trigger,{index:k,children:e.title},e.title))}),_.map((e,k)=>{var B,z,p,h,q,H,S,C,E;const N=r.resolveImageUrl((B=e.content)==null?void 0:B.tabImage,u,"medium"),$=r.resolveAltText((z=e.content)==null?void 0:z.tabImage,u,"Tab image"),f=(p=e.content)!=null&&p.tabLink?M.resolveLinkURL(e.content.tabLink):void 0,m=(h=e.content)==null?void 0:h.tabLink,U=Array.isArray((q=e.content)==null?void 0:q.tabGridItem)?e.content.tabGridItem:null;return a.jsx(g.Tabs.Panel,{index:k,children:a.jsxs("div",{className:`${s.tabContent} ${ct[w]}`,children:[N&&a.jsx("div",{className:s.tabImage,children:b?b({src:N,alt:$,width:250,height:250}):a.jsx("img",{src:N,alt:$,width:250,height:250})}),a.jsxs("div",{className:s.tabText,children:[((H=e.content)==null?void 0:H.tabText)&&(t==null?void 0:t({blocks:e.content.tabText})),U&&a.jsx(_t,{items:U,mode:u,renderImage:b,renderRichText:t}),f&&f!=="#"&&m&&a.jsx(G.Button,{as:"a",variant:m.variant??"primary",href:f,target:((S=m.linkOptions)==null?void 0:S.linkType)==="external"?"_blank":"_self",rel:((C=m.linkOptions)==null?void 0:C.linkType)==="external"?"noopener noreferrer":"","aria-label":m.ariaLabel||m.label,children:m.label}),((E=e.content)==null?void 0:E.tabDisclaimer)&&(t==null?void 0:t({blocks:e.content.tabDisclaimer}))]})]})},e.title)})]});return x==="default"?a.jsx("section",{className:`${s.tabs} ${s.default} ${I}`,children:a.jsxs("article",{className:s.container,children:[y&&a.jsx(bt,{src:y,alt:j,renderImage:b}),a.jsxs("div",{className:`${s.heading} ${d}`,children:[a.jsxs("div",{children:[l.eyebrow&&(t==null?void 0:t({blocks:l.eyebrow,className:s.eyebrow})),t==null?void 0:t({blocks:l.title,className:s.title})]}),l.description&&a.jsx("div",{className:s.text,children:t==null?void 0:t({blocks:l.description})})]}),a.jsx("div",{className:s.tabsContainer,children:L}),n&&(i==null?void 0:i({items:n.items,alignment:n.alignment})),l.disclaimer&&(t==null?void 0:t({blocks:l.disclaimer}))]})}):x==="full-bleed"?a.jsx("section",{"data-overlay":"true",className:`${s.tabs} ${s.fullBleed} ${I} tabsFullBleed`,children:a.jsxs("article",{className:s.container,children:[v&&(b?b({src:v,alt:j,fill:!0,priority:!0,sizes:"(max-width: 767px) 600px, 1200px",style:{objectFit:"cover"},draggable:!1}):a.jsx("img",{src:v,alt:j,style:{position:"absolute",inset:0,width:"100%",height:"100%",objectFit:"cover"}})),a.jsx("div",{className:s.overlay,children:a.jsxs("div",{className:`${s.heading} ${d}`,children:[a.jsxs("div",{children:[l.eyebrow&&(t==null?void 0:t({blocks:l.eyebrow,className:s.eyebrow})),t==null?void 0:t({blocks:l.title,className:s.title})]}),l.description&&(t==null?void 0:t({blocks:l.description})),a.jsx("div",{className:s.tabsContainer,children:L}),n&&(i==null?void 0:i({items:n.items,alignment:n.alignment})),l.disclaimer&&(t==null?void 0:t({blocks:l.disclaimer}))]})})]})}):null}exports.TabsBlock=mt;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../index13.css');const a=require("react/jsx-runtime"),D=require("../../hooks/useStyleClasses.cjs"),g=require("../../../core/components/Tabs/index.cjs"),G=require("../../../index-D0ylyll7.cjs"),M=require("../../utils/resolveLinkUrl.cjs"),P=require("../../../core/context/ThemeContext.cjs"),r=require("../../utils/mediaUtils.cjs"),F="_tabs_3x761_1",Y="_container_3x761_7",J="_heading_3x761_25",K="_text_3x761_32",Q="_headingHorizontal_3x761_46",W="_title_3x761_54",X="_headingVertical_3x761_64",Z="_tabContent_3x761_74",A="_vertical_3x761_97",O="_tabsContainer_3x761_69",T="_tabImage_3x761_112",R="_tabText_3x761_120",tt="_gridItems_3x761_141",at="_gridItem_3x761_141",st="_fullBleed_3x761_181",lt="_overlay_3x761_208",ot="_eyebrow_3x761_314",s={tabs:F,container:Y,heading:J,text:K,headingHorizontal:Q,title:W,headingVertical:X,tabContent:Z,vertical:A,tabsContainer:O,tabImage:T,tabText:R,gridItems:tt,gridItem:at,default:"_default_3x761_166",fullBleed:st,overlay:lt,eyebrow:ot},et={orientationHorizontal:"horizontal",orientationVertical:"vertical"},it={themeDefault:"default",themeLight:"light",themeDark:"dark",themeTransparent:"transparent"},nt={horizontal:s.headingHorizontal,vertical:s.headingVertical},ct={horizontal:"",vertical:s.vertical};function bt({src:l,alt:c,renderImage:m}){return m?m({src:l,alt:c,width:600,height:658,priority:!0}):a.jsx("img",{src:l,alt:c,width:600,height:658})}function mt({items:l,mode:c,renderImage:m,renderRichText:i}){return a.jsx("div",{className:s.gridItems,children:l.map((o,t)=>{const n=r.resolveImageUrl(o.itemImage,c,"medium"),b=r.resolveAltText(o.itemImage,c,"Grid image");return a.jsxs("div",{className:s.gridItem,children:[n&&m?m({src:n,alt:b,width:200,height:200}):n?a.jsx("img",{src:n,alt:b,width:200,height:200}):null,o.itemText&&(i==null?void 0:i({blocks:o.itemText}))]},t)})})}function _t({heading:l,image:c,items:m,callToAction:i,styleOptions:o,renderRichText:t,renderCallToAction:n,renderImage:b}){const{mode:u}=P.useTheme(),I=D.useStyleClasses(o),x=(o==null?void 0:o.layout)??"default",d=nt[l.headingLayout??"vertical"],w=et[(o==null?void 0:o.orientation)??"orientationHorizontal"],V=it[(o==null?void 0:o.theme)??"themeDefault"],y=r.resolveImageUrl(c,u,"medium"),v=r.resolveImageUrl(c,u,"large"),j=r.resolveAltText(c,u,"Block image"),L=a.jsxs(g.Tabs,{defaultIndex:0,orientation:w,theme:V,children:[a.jsx(g.Tabs.List,{children:m.map((e,k)=>a.jsx(g.Tabs.Trigger,{index:k,children:e.title},e.title))}),m.map((e,k)=>{var U,B,z,h,q,H,S,C,E;const N=r.resolveImageUrl((U=e.content)==null?void 0:U.tabImage,u,"medium"),$=r.resolveAltText((B=e.content)==null?void 0:B.tabImage,u,"Tab image"),f=(z=e.content)!=null&&z.tabLink?M.resolveLinkURL(e.content.tabLink):void 0,_=(h=e.content)==null?void 0:h.tabLink,p=Array.isArray((q=e.content)==null?void 0:q.tabGridItem)?e.content.tabGridItem:null;return a.jsx(g.Tabs.Panel,{index:k,children:a.jsxs("div",{className:`${s.tabContent} ${ct[w]}`,children:[N&&a.jsx("div",{className:s.tabImage,children:b?b({src:N,alt:$,width:250,height:250}):a.jsx("img",{src:N,alt:$,width:250,height:250})}),a.jsxs("div",{className:s.tabText,children:[((H=e.content)==null?void 0:H.tabText)&&(t==null?void 0:t({blocks:e.content.tabText})),p&&a.jsx(mt,{items:p,mode:u,renderImage:b,renderRichText:t}),f&&f!=="#"&&_&&a.jsx(G.Button,{as:"a",variant:_.variant??"primary",href:f,target:((S=_.linkOptions)==null?void 0:S.linkType)==="external"?"_blank":"_self",rel:((C=_.linkOptions)==null?void 0:C.linkType)==="external"?"noopener noreferrer":"","aria-label":_.ariaLabel||_.label,children:_.label}),((E=e.content)==null?void 0:E.tabDisclaimer)&&(t==null?void 0:t({blocks:e.content.tabDisclaimer}))]})]})},e.title)})]});return x==="default"?a.jsx("section",{className:`${s.tabs} ${s.default} ${I}`,children:a.jsxs("article",{className:s.container,children:[y&&a.jsx(bt,{src:y,alt:j,renderImage:b}),a.jsxs("div",{className:`${s.heading} ${d}`,children:[a.jsxs("div",{children:[l.eyebrow&&(t==null?void 0:t({blocks:l.eyebrow,className:s.eyebrow})),t==null?void 0:t({blocks:l.title,className:s.title})]}),l.description&&a.jsx("div",{className:s.text,children:t==null?void 0:t({blocks:l.description})})]}),a.jsx("div",{className:s.tabsContainer,children:L}),i&&(n==null?void 0:n({items:i.items,alignment:i.alignment,spacing:i.spacing,mobileOrientation:i.mobileOrientation})),l.disclaimer&&(t==null?void 0:t({blocks:l.disclaimer}))]})}):x==="full-bleed"?a.jsx("section",{"data-overlay":"true",className:`${s.tabs} ${s.fullBleed} ${I} tabsFullBleed`,children:a.jsxs("article",{className:s.container,children:[v&&(b?b({src:v,alt:j,fill:!0,priority:!0,sizes:"(max-width: 767px) 600px, 1200px",style:{objectFit:"cover"},draggable:!1}):a.jsx("img",{src:v,alt:j,style:{position:"absolute",inset:0,width:"100%",height:"100%",objectFit:"cover"}})),a.jsx("div",{className:s.overlay,children:a.jsxs("div",{className:`${s.heading} ${d}`,children:[a.jsxs("div",{children:[l.eyebrow&&(t==null?void 0:t({blocks:l.eyebrow,className:s.eyebrow})),t==null?void 0:t({blocks:l.title,className:s.title})]}),l.description&&(t==null?void 0:t({blocks:l.description})),a.jsx("div",{className:s.tabsContainer,children:L}),i&&(n==null?void 0:n({items:i.items,alignment:i.alignment,spacing:i.spacing,mobileOrientation:i.mobileOrientation})),l.disclaimer&&(t==null?void 0:t({blocks:l.disclaimer}))]})})]})}):null}exports.TabsBlock=_t;
@@ -1,17 +1,17 @@
1
- import { jsxs as c, jsx as s } from "react/jsx-runtime";
1
+ import { jsxs as e, jsx as s } from "react/jsx-runtime";
2
2
  import { useStyleClasses as P } from "../../hooks/useStyleClasses.mjs";
3
3
  import { Tabs as g } from "../../../core/components/Tabs/index.mjs";
4
- import { B as A } from "../../../index-CnlJ2RgH.js";
5
- import { resolveLinkURL as Y } from "../../utils/resolveLinkUrl.mjs";
6
- import { useTheme as q } from "../../../core/context/ThemeContext.mjs";
7
- import { resolveImageUrl as v, resolveAltText as d } from "../../utils/mediaUtils.mjs";
8
- import '../../../index13.css';const J = "_tabs_3x761_1", K = "_container_3x761_7", Q = "_heading_3x761_25", W = "_text_3x761_32", X = "_headingHorizontal_3x761_46", Z = "_title_3x761_54", O = "_headingVertical_3x761_64", x = "_tabContent_3x761_74", T = "_vertical_3x761_97", R = "_tabsContainer_3x761_69", tt = "_tabImage_3x761_112", at = "_tabText_3x761_120", lt = "_gridItems_3x761_141", st = "_gridItem_3x761_141", ot = "_fullBleed_3x761_181", it = "_overlay_3x761_208", nt = "_eyebrow_3x761_314", a = {
9
- tabs: J,
10
- container: K,
11
- heading: Q,
12
- text: W,
13
- headingHorizontal: X,
14
- title: Z,
4
+ import { B as Y } from "../../../index-CnlJ2RgH.js";
5
+ import { resolveLinkURL as q } from "../../utils/resolveLinkUrl.mjs";
6
+ import { useTheme as J } from "../../../core/context/ThemeContext.mjs";
7
+ import { resolveImageUrl as v, resolveAltText as w } from "../../utils/mediaUtils.mjs";
8
+ import '../../../index13.css';const K = "_tabs_3x761_1", Q = "_container_3x761_7", W = "_heading_3x761_25", X = "_text_3x761_32", Z = "_headingHorizontal_3x761_46", A = "_title_3x761_54", O = "_headingVertical_3x761_64", x = "_tabContent_3x761_74", T = "_vertical_3x761_97", R = "_tabsContainer_3x761_69", tt = "_tabImage_3x761_112", at = "_tabText_3x761_120", lt = "_gridItems_3x761_141", st = "_gridItem_3x761_141", it = "_fullBleed_3x761_181", ot = "_overlay_3x761_208", nt = "_eyebrow_3x761_314", a = {
9
+ tabs: K,
10
+ container: Q,
11
+ heading: W,
12
+ text: X,
13
+ headingHorizontal: Z,
14
+ title: A,
15
15
  headingVertical: O,
16
16
  tabContent: x,
17
17
  vertical: T,
@@ -21,91 +21,91 @@ import '../../../index13.css';const J = "_tabs_3x761_1", K = "_container_3x761_7
21
21
  gridItems: lt,
22
22
  gridItem: st,
23
23
  default: "_default_3x761_166",
24
- fullBleed: ot,
25
- overlay: it,
24
+ fullBleed: it,
25
+ overlay: ot,
26
26
  eyebrow: nt
27
27
  }, mt = {
28
28
  orientationHorizontal: "horizontal",
29
29
  orientationVertical: "vertical"
30
- }, ct = {
30
+ }, et = {
31
31
  themeDefault: "default",
32
32
  themeLight: "light",
33
33
  themeDark: "dark",
34
34
  themeTransparent: "transparent"
35
- }, et = {
35
+ }, bt = {
36
36
  horizontal: a.headingHorizontal,
37
37
  vertical: a.headingVertical
38
- }, bt = {
38
+ }, ct = {
39
39
  horizontal: "",
40
40
  vertical: a.vertical
41
41
  };
42
- function _t({ src: l, alt: e, renderImage: _ }) {
43
- return _ ? _({ src: l, alt: e, width: 600, height: 658, priority: !0 }) : /* @__PURE__ */ s("img", { src: l, alt: e, width: 600, height: 658 });
42
+ function _t({ src: l, alt: b, renderImage: _ }) {
43
+ return _ ? _({ src: l, alt: b, width: 600, height: 658, priority: !0 }) : /* @__PURE__ */ s("img", { src: l, alt: b, width: 600, height: 658 });
44
44
  }
45
- function ut({
45
+ function rt({
46
46
  items: l,
47
- mode: e,
47
+ mode: b,
48
48
  renderImage: _,
49
- renderRichText: m
49
+ renderRichText: n
50
50
  }) {
51
- return /* @__PURE__ */ s("div", { className: a.gridItems, children: l.map((o, t) => {
52
- const n = v(
53
- o.itemImage,
54
- e,
51
+ return /* @__PURE__ */ s("div", { className: a.gridItems, children: l.map((i, t) => {
52
+ const m = v(
53
+ i.itemImage,
54
+ b,
55
55
  "medium"
56
- ), b = d(
57
- o.itemImage,
58
- e,
56
+ ), c = w(
57
+ i.itemImage,
58
+ b,
59
59
  "Grid image"
60
60
  );
61
- return /* @__PURE__ */ c("div", { className: a.gridItem, children: [
62
- n && _ ? _({
63
- src: n,
64
- alt: b,
61
+ return /* @__PURE__ */ e("div", { className: a.gridItem, children: [
62
+ m && _ ? _({
63
+ src: m,
64
+ alt: c,
65
65
  width: 200,
66
66
  height: 200
67
- }) : n ? /* @__PURE__ */ s(
67
+ }) : m ? /* @__PURE__ */ s(
68
68
  "img",
69
69
  {
70
- src: n,
71
- alt: b,
70
+ src: m,
71
+ alt: c,
72
72
  width: 200,
73
73
  height: 200
74
74
  }
75
75
  ) : null,
76
- o.itemText && (m == null ? void 0 : m({ blocks: o.itemText }))
76
+ i.itemText && (n == null ? void 0 : n({ blocks: i.itemText }))
77
77
  ] }, t);
78
78
  }) });
79
79
  }
80
- function wt({
80
+ function pt({
81
81
  heading: l,
82
- image: e,
82
+ image: b,
83
83
  items: _,
84
- callToAction: m,
85
- styleOptions: o,
84
+ callToAction: n,
85
+ styleOptions: i,
86
86
  renderRichText: t,
87
- renderCallToAction: n,
88
- renderImage: b
87
+ renderCallToAction: m,
88
+ renderImage: c
89
89
  }) {
90
- const { mode: r } = q(), L = P(o), p = (o == null ? void 0 : o.layout) ?? "default", y = et[l.headingLayout ?? "vertical"], $ = mt[(o == null ? void 0 : o.orientation) ?? "orientationHorizontal"], M = ct[(o == null ? void 0 : o.theme) ?? "themeDefault"], B = v(e, r, "medium"), f = v(e, r, "large"), k = d(e, r, "Block image"), z = /* @__PURE__ */ c(g, { defaultIndex: 0, orientation: $, theme: M, children: [
91
- /* @__PURE__ */ s(g.List, { children: _.map((i, N) => /* @__PURE__ */ s(g.Trigger, { index: N, children: i.title }, i.title)) }),
92
- _.map((i, N) => {
90
+ const { mode: u } = J(), d = P(i), L = (i == null ? void 0 : i.layout) ?? "default", y = bt[l.headingLayout ?? "vertical"], $ = mt[(i == null ? void 0 : i.orientation) ?? "orientationHorizontal"], M = et[(i == null ? void 0 : i.theme) ?? "themeDefault"], B = v(b, u, "medium"), f = v(b, u, "large"), k = w(b, u, "Block image"), z = /* @__PURE__ */ e(g, { defaultIndex: 0, orientation: $, theme: M, children: [
91
+ /* @__PURE__ */ s(g.List, { children: _.map((o, N) => /* @__PURE__ */ s(g.Trigger, { index: N, children: o.title }, o.title)) }),
92
+ _.map((o, N) => {
93
93
  var E, V, h, D, G, C, S, j, F;
94
94
  const I = v(
95
- (E = i.content) == null ? void 0 : E.tabImage,
96
- r,
95
+ (E = o.content) == null ? void 0 : E.tabImage,
96
+ u,
97
97
  "medium"
98
- ), H = d(
99
- (V = i.content) == null ? void 0 : V.tabImage,
100
- r,
98
+ ), H = w(
99
+ (V = o.content) == null ? void 0 : V.tabImage,
100
+ u,
101
101
  "Tab image"
102
- ), w = (h = i.content) != null && h.tabLink ? Y(i.content.tabLink) : void 0, u = (D = i.content) == null ? void 0 : D.tabLink, U = Array.isArray((G = i.content) == null ? void 0 : G.tabGridItem) ? i.content.tabGridItem : null;
103
- return /* @__PURE__ */ s(g.Panel, { index: N, children: /* @__PURE__ */ c(
102
+ ), p = (h = o.content) != null && h.tabLink ? q(o.content.tabLink) : void 0, r = (D = o.content) == null ? void 0 : D.tabLink, U = Array.isArray((G = o.content) == null ? void 0 : G.tabGridItem) ? o.content.tabGridItem : null;
103
+ return /* @__PURE__ */ s(g.Panel, { index: N, children: /* @__PURE__ */ e(
104
104
  "div",
105
105
  {
106
- className: `${a.tabContent} ${bt[$]}`,
106
+ className: `${a.tabContent} ${ct[$]}`,
107
107
  children: [
108
- I && /* @__PURE__ */ s("div", { className: a.tabImage, children: b ? b({
108
+ I && /* @__PURE__ */ s("div", { className: a.tabImage, children: c ? c({
109
109
  src: I,
110
110
  alt: H,
111
111
  width: 250,
@@ -119,47 +119,47 @@ function wt({
119
119
  height: 250
120
120
  }
121
121
  ) }),
122
- /* @__PURE__ */ c("div", { className: a.tabText, children: [
123
- ((C = i.content) == null ? void 0 : C.tabText) && (t == null ? void 0 : t({ blocks: i.content.tabText })),
122
+ /* @__PURE__ */ e("div", { className: a.tabText, children: [
123
+ ((C = o.content) == null ? void 0 : C.tabText) && (t == null ? void 0 : t({ blocks: o.content.tabText })),
124
124
  U && /* @__PURE__ */ s(
125
- ut,
125
+ rt,
126
126
  {
127
127
  items: U,
128
- mode: r,
129
- renderImage: b,
128
+ mode: u,
129
+ renderImage: c,
130
130
  renderRichText: t
131
131
  }
132
132
  ),
133
- w && w !== "#" && u && /* @__PURE__ */ s(
134
- A,
133
+ p && p !== "#" && r && /* @__PURE__ */ s(
134
+ Y,
135
135
  {
136
136
  as: "a",
137
- variant: u.variant ?? "primary",
138
- href: w,
139
- target: ((S = u.linkOptions) == null ? void 0 : S.linkType) === "external" ? "_blank" : "_self",
140
- rel: ((j = u.linkOptions) == null ? void 0 : j.linkType) === "external" ? "noopener noreferrer" : "",
141
- "aria-label": u.ariaLabel || u.label,
142
- children: u.label
137
+ variant: r.variant ?? "primary",
138
+ href: p,
139
+ target: ((S = r.linkOptions) == null ? void 0 : S.linkType) === "external" ? "_blank" : "_self",
140
+ rel: ((j = r.linkOptions) == null ? void 0 : j.linkType) === "external" ? "noopener noreferrer" : "",
141
+ "aria-label": r.ariaLabel || r.label,
142
+ children: r.label
143
143
  }
144
144
  ),
145
- ((F = i.content) == null ? void 0 : F.tabDisclaimer) && (t == null ? void 0 : t({ blocks: i.content.tabDisclaimer }))
145
+ ((F = o.content) == null ? void 0 : F.tabDisclaimer) && (t == null ? void 0 : t({ blocks: o.content.tabDisclaimer }))
146
146
  ] })
147
147
  ]
148
148
  }
149
- ) }, i.title);
149
+ ) }, o.title);
150
150
  })
151
151
  ] });
152
- return p === "default" ? /* @__PURE__ */ s("section", { className: `${a.tabs} ${a.default} ${L}`, children: /* @__PURE__ */ c("article", { className: a.container, children: [
152
+ return L === "default" ? /* @__PURE__ */ s("section", { className: `${a.tabs} ${a.default} ${d}`, children: /* @__PURE__ */ e("article", { className: a.container, children: [
153
153
  B && /* @__PURE__ */ s(
154
154
  _t,
155
155
  {
156
156
  src: B,
157
157
  alt: k,
158
- renderImage: b
158
+ renderImage: c
159
159
  }
160
160
  ),
161
- /* @__PURE__ */ c("div", { className: `${a.heading} ${y}`, children: [
162
- /* @__PURE__ */ c("div", { children: [
161
+ /* @__PURE__ */ e("div", { className: `${a.heading} ${y}`, children: [
162
+ /* @__PURE__ */ e("div", { children: [
163
163
  l.eyebrow && (t == null ? void 0 : t({
164
164
  blocks: l.eyebrow,
165
165
  className: a.eyebrow
@@ -172,18 +172,20 @@ function wt({
172
172
  l.description && /* @__PURE__ */ s("div", { className: a.text, children: t == null ? void 0 : t({ blocks: l.description }) })
173
173
  ] }),
174
174
  /* @__PURE__ */ s("div", { className: a.tabsContainer, children: z }),
175
- m && (n == null ? void 0 : n({
176
- items: m.items,
177
- alignment: m.alignment
175
+ n && (m == null ? void 0 : m({
176
+ items: n.items,
177
+ alignment: n.alignment,
178
+ spacing: n.spacing,
179
+ mobileOrientation: n.mobileOrientation
178
180
  })),
179
181
  l.disclaimer && (t == null ? void 0 : t({ blocks: l.disclaimer }))
180
- ] }) }) : p === "full-bleed" ? /* @__PURE__ */ s(
182
+ ] }) }) : L === "full-bleed" ? /* @__PURE__ */ s(
181
183
  "section",
182
184
  {
183
185
  "data-overlay": "true",
184
- className: `${a.tabs} ${a.fullBleed} ${L} tabsFullBleed`,
185
- children: /* @__PURE__ */ c("article", { className: a.container, children: [
186
- f && (b ? b({
186
+ className: `${a.tabs} ${a.fullBleed} ${d} tabsFullBleed`,
187
+ children: /* @__PURE__ */ e("article", { className: a.container, children: [
188
+ f && (c ? c({
187
189
  src: f,
188
190
  alt: k,
189
191
  fill: !0,
@@ -205,8 +207,8 @@ function wt({
205
207
  }
206
208
  }
207
209
  )),
208
- /* @__PURE__ */ s("div", { className: a.overlay, children: /* @__PURE__ */ c("div", { className: `${a.heading} ${y}`, children: [
209
- /* @__PURE__ */ c("div", { children: [
210
+ /* @__PURE__ */ s("div", { className: a.overlay, children: /* @__PURE__ */ e("div", { className: `${a.heading} ${y}`, children: [
211
+ /* @__PURE__ */ e("div", { children: [
210
212
  l.eyebrow && (t == null ? void 0 : t({
211
213
  blocks: l.eyebrow,
212
214
  className: a.eyebrow
@@ -218,9 +220,11 @@ function wt({
218
220
  ] }),
219
221
  l.description && (t == null ? void 0 : t({ blocks: l.description })),
220
222
  /* @__PURE__ */ s("div", { className: a.tabsContainer, children: z }),
221
- m && (n == null ? void 0 : n({
222
- items: m.items,
223
- alignment: m.alignment
223
+ n && (m == null ? void 0 : m({
224
+ items: n.items,
225
+ alignment: n.alignment,
226
+ spacing: n.spacing,
227
+ mobileOrientation: n.mobileOrientation
224
228
  })),
225
229
  l.disclaimer && (t == null ? void 0 : t({ blocks: l.disclaimer }))
226
230
  ] }) })
@@ -229,5 +233,5 @@ function wt({
229
233
  ) : null;
230
234
  }
231
235
  export {
232
- wt as TabsBlock
236
+ pt as TabsBlock
233
237
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),U=require("react"),B=require("next/image"),z=require("../../../core/components/ButtonGroup/index.cjs"),l=require("../../../index-D0ylyll7.cjs"),I=require("../../../core/components/Modal/index.cjs"),C=require("../../utils/resolveLinkUrl.cjs"),G=require("../../../core/context/ThemeContext.cjs"),H=require("../../hooks/useMediaQuery.cjs");function Q({items:r,alignment:M,spacing:R,className:P}){const[S,$]=U.useState([]),{mode:t}=G.useTheme(),g=H.useMediaQuery("(max-width: 767px)");return U.useEffect(()=>{if(!(r!=null&&r.length)||!C.resolveLinkURL)return;async function e(){const o=await Promise.all(r.map(a=>C.resolveLinkURL(a)));$(o)}e()},[r]),r!=null&&r.length?n.jsx(z.ButtonGroup,{className:P,alignment:M,spacing:R,children:r.slice(0,3).map((e,o)=>{var m,d,p,c,h,b,f,y,v,x,_,k,j,T,A,w,q,L;const a=S[o]??"#",i={};if(i.height="auto",((m=e.image)==null?void 0:m.layout)==="cover")i.objectFit="cover",(d=e.image)!=null&&d.position&&(i.objectPosition=g?"top":(p=e.image)==null?void 0:p.position);else if(((c=e.image)==null?void 0:c.layout)==="contain"){if(i.objectFit="contain",((h=e.image)==null?void 0:h.sizing)==="half"?i.width=g?"100%":"50%":((b=e.image)==null?void 0:b.sizing)==="inset"?(i.width="100%",i.maxWidth=e.image.maxWidth??"unset"):i.width="100%",(f=e.image)!=null&&f.aspectRatio){const[F,O]=(y=e.image)==null?void 0:y.aspectRatio.split(":").map(Number);i.aspectRatio=`${F}/${O}`}}else i.objectFit="none";let s;(v=e.image)!=null&&v.imageUrls&&(s=t==="dark"&&((x=e.image.imageUrls.dark)==null?void 0:x.medium)||e.image.imageUrls.default.medium);let u=((j=(k=(_=e.image)==null?void 0:_[t==="dark"?"darkImage":"defaultImage"])==null?void 0:k.asset)==null?void 0:j.altText)||((w=(A=(T=e.image)==null?void 0:T[t==="dark"?"darkImage":"defaultImage"])==null?void 0:A.asset)==null?void 0:w.description)||"Card image";switch(e.type){case"link":return n.jsx(l.Button,{as:"a",variant:e.variant,href:a,target:((q=e.linkOptions)==null?void 0:q.linkType)==="external"?"_blank":"_self",rel:((L=e.linkOptions)==null?void 0:L.linkType)==="external"?"noopener noreferrer":"","aria-label":e.ariaLabel||e.label,icon:e.icon,iconAlignment:e.iconAlignment??"right",displayType:e.displayType,ImageComponent:n.jsx(B,{src:s??"",alt:u,width:600,height:658,priority:!1,style:i}),children:e.label},o);case"scroll":return n.jsx(l.Button,{as:"scroll",variant:e.variant,scrollTarget:e.scrollTarget??"","aria-label":e.ariaLabel||e.label,icon:e.icon,iconAlignment:e.iconAlignment??"right",displayType:e.displayType,ImageComponent:n.jsx(B,{src:s??"",alt:u,width:600,height:658,priority:!1,style:i}),children:e.label},o);case"modal":return n.jsx(I.Modal,{trigger:n.jsx(l.Button,{as:"button",variant:e.variant??"primary",icon:e.icon,iconAlignment:e.iconAlignment??"right","aria-label":e.ariaLabel||e.label,children:e.label}),content:e.modalContent},o);case"video":return n.jsx(I.Modal,{trigger:n.jsx(l.Button,{as:"button",variant:e.variant??"primary",icon:e.icon,iconAlignment:e.iconAlignment??"right","aria-label":e.ariaLabel||e.label,children:e.label}),content:n.jsx("video",{src:e.videoUrl,controls:!0,autoPlay:!0})},o);case"download":return n.jsx(l.Button,{as:"a",variant:e.variant??"primary",href:a,download:!0,target:"_blank",rel:"noopener noreferrer","aria-label":e.ariaLabel||e.label,icon:e.icon,iconAlignment:e.iconAlignment??"right",children:e.label},o)}})}):null}exports.CallToAction=Q;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),U=require("react"),B=require("next/image"),G=require("../../../core/components/ButtonGroup/index.cjs"),l=require("../../../index-D0ylyll7.cjs"),I=require("../../../core/components/Modal/index.cjs"),C=require("../../utils/resolveLinkUrl.cjs"),H=require("../../../core/context/ThemeContext.cjs"),Q=require("../../hooks/useMediaQuery.cjs");function W({items:r,alignment:M,spacing:R,mobileOrientation:P="column",className:S}){const[$,F]=U.useState([]),{mode:t}=H.useTheme(),g=Q.useMediaQuery("(max-width: 767px)");return U.useEffect(()=>{if(!(r!=null&&r.length)||!C.resolveLinkURL)return;async function e(){const o=await Promise.all(r.map(a=>C.resolveLinkURL(a)));F(o)}e()},[r]),r!=null&&r.length?n.jsx(G.ButtonGroup,{className:S,alignment:M,spacing:R,mobileOrientation:P,children:r.slice(0,3).map((e,o)=>{var m,d,p,c,h,b,f,y,v,x,_,k,j,T,A,w,q,L;const a=$[o]??"#",i={};if(i.height="auto",((m=e.image)==null?void 0:m.layout)==="cover")i.objectFit="cover",(d=e.image)!=null&&d.position&&(i.objectPosition=g?"top":(p=e.image)==null?void 0:p.position);else if(((c=e.image)==null?void 0:c.layout)==="contain"){if(i.objectFit="contain",((h=e.image)==null?void 0:h.sizing)==="half"?i.width=g?"100%":"50%":((b=e.image)==null?void 0:b.sizing)==="inset"?(i.width="100%",i.maxWidth=e.image.maxWidth??"unset"):i.width="100%",(f=e.image)!=null&&f.aspectRatio){const[O,z]=(y=e.image)==null?void 0:y.aspectRatio.split(":").map(Number);i.aspectRatio=`${O}/${z}`}}else i.objectFit="none";let s;(v=e.image)!=null&&v.imageUrls&&(s=t==="dark"&&((x=e.image.imageUrls.dark)==null?void 0:x.medium)||e.image.imageUrls.default.medium);let u=((j=(k=(_=e.image)==null?void 0:_[t==="dark"?"darkImage":"defaultImage"])==null?void 0:k.asset)==null?void 0:j.altText)||((w=(A=(T=e.image)==null?void 0:T[t==="dark"?"darkImage":"defaultImage"])==null?void 0:A.asset)==null?void 0:w.description)||"Card image";switch(e.type){case"link":return n.jsx(l.Button,{as:"a",variant:e.variant,href:a,target:((q=e.linkOptions)==null?void 0:q.linkType)==="external"?"_blank":"_self",rel:((L=e.linkOptions)==null?void 0:L.linkType)==="external"?"noopener noreferrer":"","aria-label":e.ariaLabel||e.label,icon:e.icon,iconAlignment:e.iconAlignment??"right",displayType:e.displayType,ImageComponent:n.jsx(B,{src:s??"",alt:u,width:600,height:658,priority:!1,style:i}),children:e.label},o);case"scroll":return n.jsx(l.Button,{as:"scroll",variant:e.variant,scrollTarget:e.scrollTarget??"","aria-label":e.ariaLabel||e.label,icon:e.icon,iconAlignment:e.iconAlignment??"right",displayType:e.displayType,ImageComponent:n.jsx(B,{src:s??"",alt:u,width:600,height:658,priority:!1,style:i}),children:e.label},o);case"modal":return n.jsx(I.Modal,{trigger:n.jsx(l.Button,{as:"button",variant:e.variant??"primary",icon:e.icon,iconAlignment:e.iconAlignment??"right","aria-label":e.ariaLabel||e.label,children:e.label}),content:e.modalContent},o);case"video":return n.jsx(I.Modal,{trigger:n.jsx(l.Button,{as:"button",variant:e.variant??"primary",icon:e.icon,iconAlignment:e.iconAlignment??"right","aria-label":e.ariaLabel||e.label,children:e.label}),content:n.jsx("video",{src:e.videoUrl,controls:!0,autoPlay:!0})},o);case"download":return n.jsx(l.Button,{as:"a",variant:e.variant??"primary",href:a,download:!0,target:"_blank",rel:"noopener noreferrer","aria-label":e.ariaLabel||e.label,icon:e.icon,iconAlignment:e.iconAlignment??"right",children:e.label},o)}})}):null}exports.CallToAction=W;
@@ -1,156 +1,166 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
- import { useState as S, useEffect as W } from "react";
2
+ import { useState as W, useEffect as $ } from "react";
3
3
  import C from "next/image";
4
- import { ButtonGroup as $ } from "../../../core/components/ButtonGroup/index.mjs";
4
+ import { ButtonGroup as E } from "../../../core/components/ButtonGroup/index.mjs";
5
5
  import { B as a } from "../../../index-CnlJ2RgH.js";
6
6
  import { Modal as R } from "../../../core/components/Modal/index.mjs";
7
7
  import { resolveLinkURL as B } from "../../utils/resolveLinkUrl.mjs";
8
- import { useTheme as E } from "../../../core/context/ThemeContext.mjs";
9
- import { useMediaQuery as G } from "../../hooks/useMediaQuery.mjs";
10
- function Z({
8
+ import { useTheme as G } from "../../../core/context/ThemeContext.mjs";
9
+ import { useMediaQuery as N } from "../../hooks/useMediaQuery.mjs";
10
+ function ee({
11
11
  items: n,
12
12
  alignment: F,
13
13
  spacing: M,
14
- className: P
14
+ mobileOrientation: P = "column",
15
+ className: _
15
16
  }) {
16
- const [_, z] = S([]), { mode: t } = E(), s = G("(max-width: 767px)");
17
- return W(() => {
17
+ const [z, H] = W([]), { mode: t } = G(), s = N("(max-width: 767px)");
18
+ return $(() => {
18
19
  if (!(n != null && n.length) || !B) return;
19
20
  async function e() {
20
21
  const l = await Promise.all(
21
22
  n.map((o) => B(o))
22
23
  );
23
- z(l);
24
+ H(l);
24
25
  }
25
26
  e();
26
- }, [n]), n != null && n.length ? /* @__PURE__ */ r($, { className: P, alignment: F, spacing: M, children: n.slice(0, 3).map((e, l) => {
27
- var p, d, u, f, h, b, y, v, c, k, A, T, w, I, L, U, j, x;
28
- const o = _[l] ?? "#", i = {};
29
- if (i.height = "auto", ((p = e.image) == null ? void 0 : p.layout) === "cover")
30
- i.objectFit = "cover", (d = e.image) != null && d.position && (i.objectPosition = s ? "top" : (u = e.image) == null ? void 0 : u.position);
31
- else if (((f = e.image) == null ? void 0 : f.layout) === "contain") {
32
- if (i.objectFit = "contain", ((h = e.image) == null ? void 0 : h.sizing) === "half" ? i.width = s ? "100%" : "50%" : ((b = e.image) == null ? void 0 : b.sizing) === "inset" ? (i.width = "100%", i.maxWidth = e.image.maxWidth ?? "unset") : i.width = "100%", (y = e.image) != null && y.aspectRatio) {
33
- const [H, O] = (v = e.image) == null ? void 0 : v.aspectRatio.split(":").map(Number);
34
- i.aspectRatio = `${H}/${O}`;
35
- }
36
- } else
37
- i.objectFit = "none";
38
- let m;
39
- (c = e.image) != null && c.imageUrls && (m = t === "dark" && ((k = e.image.imageUrls.dark) == null ? void 0 : k.medium) || e.image.imageUrls.default.medium);
40
- let g = ((w = (T = (A = e.image) == null ? void 0 : A[t === "dark" ? "darkImage" : "defaultImage"]) == null ? void 0 : T.asset) == null ? void 0 : w.altText) || ((U = (L = (I = e.image) == null ? void 0 : I[t === "dark" ? "darkImage" : "defaultImage"]) == null ? void 0 : L.asset) == null ? void 0 : U.description) || "Card image";
41
- switch (e.type) {
42
- case "link":
43
- return /* @__PURE__ */ r(
44
- a,
45
- {
46
- as: "a",
47
- variant: e.variant,
48
- href: o,
49
- target: ((j = e.linkOptions) == null ? void 0 : j.linkType) === "external" ? "_blank" : "_self",
50
- rel: ((x = e.linkOptions) == null ? void 0 : x.linkType) === "external" ? "noopener noreferrer" : "",
51
- "aria-label": e.ariaLabel || e.label,
52
- icon: e.icon,
53
- iconAlignment: e.iconAlignment ?? "right",
54
- displayType: e.displayType,
55
- ImageComponent: /* @__PURE__ */ r(
56
- C,
57
- {
58
- src: m ?? "",
59
- alt: g,
60
- width: 600,
61
- height: 658,
62
- priority: !1,
63
- style: i
64
- }
65
- ),
66
- children: e.label
67
- },
68
- l
69
- );
70
- case "scroll":
71
- return /* @__PURE__ */ r(
72
- a,
73
- {
74
- as: "scroll",
75
- variant: e.variant,
76
- scrollTarget: e.scrollTarget ?? "",
77
- "aria-label": e.ariaLabel || e.label,
78
- icon: e.icon,
79
- iconAlignment: e.iconAlignment ?? "right",
80
- displayType: e.displayType,
81
- ImageComponent: /* @__PURE__ */ r(
82
- C,
83
- {
84
- src: m ?? "",
85
- alt: g,
86
- width: 600,
87
- height: 658,
88
- priority: !1,
89
- style: i
90
- }
91
- ),
92
- children: e.label
93
- },
94
- l
95
- );
96
- case "modal":
97
- return /* @__PURE__ */ r(
98
- R,
99
- {
100
- trigger: /* @__PURE__ */ r(
27
+ }, [n]), n != null && n.length ? /* @__PURE__ */ r(
28
+ E,
29
+ {
30
+ className: _,
31
+ alignment: F,
32
+ spacing: M,
33
+ mobileOrientation: P,
34
+ children: n.slice(0, 3).map((e, l) => {
35
+ var p, d, u, f, h, b, y, c, v, k, A, T, w, I, L, U, j, x;
36
+ const o = z[l] ?? "#", i = {};
37
+ if (i.height = "auto", ((p = e.image) == null ? void 0 : p.layout) === "cover")
38
+ i.objectFit = "cover", (d = e.image) != null && d.position && (i.objectPosition = s ? "top" : (u = e.image) == null ? void 0 : u.position);
39
+ else if (((f = e.image) == null ? void 0 : f.layout) === "contain") {
40
+ if (i.objectFit = "contain", ((h = e.image) == null ? void 0 : h.sizing) === "half" ? i.width = s ? "100%" : "50%" : ((b = e.image) == null ? void 0 : b.sizing) === "inset" ? (i.width = "100%", i.maxWidth = e.image.maxWidth ?? "unset") : i.width = "100%", (y = e.image) != null && y.aspectRatio) {
41
+ const [O, S] = (c = e.image) == null ? void 0 : c.aspectRatio.split(":").map(Number);
42
+ i.aspectRatio = `${O}/${S}`;
43
+ }
44
+ } else
45
+ i.objectFit = "none";
46
+ let m;
47
+ (v = e.image) != null && v.imageUrls && (m = t === "dark" && ((k = e.image.imageUrls.dark) == null ? void 0 : k.medium) || e.image.imageUrls.default.medium);
48
+ let g = ((w = (T = (A = e.image) == null ? void 0 : A[t === "dark" ? "darkImage" : "defaultImage"]) == null ? void 0 : T.asset) == null ? void 0 : w.altText) || ((U = (L = (I = e.image) == null ? void 0 : I[t === "dark" ? "darkImage" : "defaultImage"]) == null ? void 0 : L.asset) == null ? void 0 : U.description) || "Card image";
49
+ switch (e.type) {
50
+ case "link":
51
+ return /* @__PURE__ */ r(
101
52
  a,
102
53
  {
103
- as: "button",
104
- variant: e.variant ?? "primary",
54
+ as: "a",
55
+ variant: e.variant,
56
+ href: o,
57
+ target: ((j = e.linkOptions) == null ? void 0 : j.linkType) === "external" ? "_blank" : "_self",
58
+ rel: ((x = e.linkOptions) == null ? void 0 : x.linkType) === "external" ? "noopener noreferrer" : "",
59
+ "aria-label": e.ariaLabel || e.label,
105
60
  icon: e.icon,
106
61
  iconAlignment: e.iconAlignment ?? "right",
62
+ displayType: e.displayType,
63
+ ImageComponent: /* @__PURE__ */ r(
64
+ C,
65
+ {
66
+ src: m ?? "",
67
+ alt: g,
68
+ width: 600,
69
+ height: 658,
70
+ priority: !1,
71
+ style: i
72
+ }
73
+ ),
74
+ children: e.label
75
+ },
76
+ l
77
+ );
78
+ case "scroll":
79
+ return /* @__PURE__ */ r(
80
+ a,
81
+ {
82
+ as: "scroll",
83
+ variant: e.variant,
84
+ scrollTarget: e.scrollTarget ?? "",
107
85
  "aria-label": e.ariaLabel || e.label,
86
+ icon: e.icon,
87
+ iconAlignment: e.iconAlignment ?? "right",
88
+ displayType: e.displayType,
89
+ ImageComponent: /* @__PURE__ */ r(
90
+ C,
91
+ {
92
+ src: m ?? "",
93
+ alt: g,
94
+ width: 600,
95
+ height: 658,
96
+ priority: !1,
97
+ style: i
98
+ }
99
+ ),
108
100
  children: e.label
109
- }
110
- ),
111
- content: e.modalContent
112
- },
113
- l
114
- );
115
- case "video":
116
- return /* @__PURE__ */ r(
117
- R,
118
- {
119
- trigger: /* @__PURE__ */ r(
101
+ },
102
+ l
103
+ );
104
+ case "modal":
105
+ return /* @__PURE__ */ r(
106
+ R,
107
+ {
108
+ trigger: /* @__PURE__ */ r(
109
+ a,
110
+ {
111
+ as: "button",
112
+ variant: e.variant ?? "primary",
113
+ icon: e.icon,
114
+ iconAlignment: e.iconAlignment ?? "right",
115
+ "aria-label": e.ariaLabel || e.label,
116
+ children: e.label
117
+ }
118
+ ),
119
+ content: e.modalContent
120
+ },
121
+ l
122
+ );
123
+ case "video":
124
+ return /* @__PURE__ */ r(
125
+ R,
126
+ {
127
+ trigger: /* @__PURE__ */ r(
128
+ a,
129
+ {
130
+ as: "button",
131
+ variant: e.variant ?? "primary",
132
+ icon: e.icon,
133
+ iconAlignment: e.iconAlignment ?? "right",
134
+ "aria-label": e.ariaLabel || e.label,
135
+ children: e.label
136
+ }
137
+ ),
138
+ content: /* @__PURE__ */ r("video", { src: e.videoUrl, controls: !0, autoPlay: !0 })
139
+ },
140
+ l
141
+ );
142
+ case "download":
143
+ return /* @__PURE__ */ r(
120
144
  a,
121
145
  {
122
- as: "button",
146
+ as: "a",
123
147
  variant: e.variant ?? "primary",
148
+ href: o,
149
+ download: !0,
150
+ target: "_blank",
151
+ rel: "noopener noreferrer",
152
+ "aria-label": e.ariaLabel || e.label,
124
153
  icon: e.icon,
125
154
  iconAlignment: e.iconAlignment ?? "right",
126
- "aria-label": e.ariaLabel || e.label,
127
155
  children: e.label
128
- }
129
- ),
130
- content: /* @__PURE__ */ r("video", { src: e.videoUrl, controls: !0, autoPlay: !0 })
131
- },
132
- l
133
- );
134
- case "download":
135
- return /* @__PURE__ */ r(
136
- a,
137
- {
138
- as: "a",
139
- variant: e.variant ?? "primary",
140
- href: o,
141
- download: !0,
142
- target: "_blank",
143
- rel: "noopener noreferrer",
144
- "aria-label": e.ariaLabel || e.label,
145
- icon: e.icon,
146
- iconAlignment: e.iconAlignment ?? "right",
147
- children: e.label
148
- },
149
- l
150
- );
156
+ },
157
+ l
158
+ );
159
+ }
160
+ })
151
161
  }
152
- }) }) : null;
162
+ ) : null;
153
163
  }
154
164
  export {
155
- Z as CallToAction
165
+ ee as CallToAction
156
166
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),u=require("../ui/PortableTextRenderer/index.cjs"),l=require("../ui/CallToAction/index.cjs");function o(e){return e.flatMap(r=>r.children??[]).map(r=>r.text??"").join("")}function x({blocks:e,className:r,textOverride:n,animateText:t}){return e!=null&&e.length?i.jsx(u.RichText,{blocks:e,className:r,textOverride:n,animateText:t}):null}function c({alignment:e,spacing:r,items:n,className:t}){return n!=null&&n.length?i.jsx(l.CallToAction,{alignment:e,items:n,className:t,spacing:r}):null}exports.extractText=o;exports.renderCallToAction=c;exports.renderRichText=x;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),l=require("../ui/PortableTextRenderer/index.cjs"),o=require("../ui/CallToAction/index.cjs");function x(e){return e.flatMap(r=>r.children??[]).map(r=>r.text??"").join("")}function c({blocks:e,className:r,textOverride:t,animateText:n}){return e!=null&&e.length?i.jsx(l.RichText,{blocks:e,className:r,textOverride:t,animateText:n}):null}function a({alignment:e,spacing:r,mobileOrientation:t,items:n,className:u}){return n!=null&&n.length?i.jsx(o.CallToAction,{alignment:e,items:n,className:u,spacing:r,mobileOrientation:t}):null}exports.extractText=x;exports.renderCallToAction=a;exports.renderRichText=c;
@@ -1,43 +1,45 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
- import { RichText as u } from "../ui/PortableTextRenderer/index.mjs";
3
- import { CallToAction as f } from "../ui/CallToAction/index.mjs";
4
- function a(r) {
2
+ import { RichText as f } from "../ui/PortableTextRenderer/index.mjs";
3
+ import { CallToAction as i } from "../ui/CallToAction/index.mjs";
4
+ function p(r) {
5
5
  return r.flatMap((n) => n.children ?? []).map((n) => n.text ?? "").join("");
6
6
  }
7
- function p({
7
+ function h({
8
8
  blocks: r,
9
9
  className: n,
10
- textOverride: t,
11
- animateText: e
10
+ textOverride: e,
11
+ animateText: t
12
12
  }) {
13
13
  return r != null && r.length ? /* @__PURE__ */ o(
14
- u,
14
+ f,
15
15
  {
16
16
  blocks: r,
17
17
  className: n,
18
- textOverride: t,
19
- animateText: e
18
+ textOverride: e,
19
+ animateText: t
20
20
  }
21
21
  ) : null;
22
22
  }
23
- function h({
23
+ function T({
24
24
  alignment: r,
25
25
  spacing: n,
26
+ mobileOrientation: e,
26
27
  items: t,
27
- className: e
28
+ className: u
28
29
  }) {
29
30
  return t != null && t.length ? /* @__PURE__ */ o(
30
- f,
31
+ i,
31
32
  {
32
33
  alignment: r,
33
34
  items: t,
34
- className: e,
35
- spacing: n
35
+ className: u,
36
+ spacing: n,
37
+ mobileOrientation: e
36
38
  }
37
39
  ) : null;
38
40
  }
39
41
  export {
40
- a as extractText,
41
- h as renderCallToAction,
42
- p as renderRichText
42
+ p as extractText,
43
+ T as renderCallToAction,
44
+ h as renderRichText
43
45
  };
package/dist/next.d.ts CHANGED
@@ -244,7 +244,7 @@ export { QuoteBlockProps }
244
244
  * <HeroBlock {...section} renderCallToAction={renderCallToAction} />
245
245
  * <ContentBlock {...section} renderCallToAction={renderCallToAction} />
246
246
  */
247
- export declare function renderCallToAction({ alignment, spacing, items, className, }: RenderCallToActionProps_2): default_2.ReactElement | null;
247
+ export declare function renderCallToAction({ alignment, spacing, mobileOrientation, items, className, }: RenderCallToActionProps_2): default_2.ReactElement | null;
248
248
 
249
249
  /**
250
250
  * Drop-in `renderRichText` prop for all QuirkUI blocks.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "quirk-ui",
3
3
  "private": false,
4
- "version": "0.1.69",
4
+ "version": "0.1.71",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  ".": {