@purpurds/content-block 5.24.2 → 5.25.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/dist/LICENSE.txt +5 -5
- package/dist/content-block.cjs.js +6 -6
- package/dist/content-block.cjs.js.map +1 -1
- package/dist/content-block.es.js +75 -74
- package/dist/content-block.es.js.map +1 -1
- package/package.json +8 -8
- package/src/content-block-group.module.scss +1 -1
- package/src/content-block.module.scss +1 -1
package/dist/LICENSE.txt
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
Name: @purpurds/badge
|
|
2
|
-
Version: 5.24.
|
|
2
|
+
Version: 5.24.3
|
|
3
3
|
License: AGPL-3.0-only
|
|
4
4
|
Private: false
|
|
5
5
|
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
Name: @purpurds/cta-link
|
|
9
|
-
Version: 5.24.
|
|
9
|
+
Version: 5.24.3
|
|
10
10
|
License: AGPL-3.0-only
|
|
11
11
|
Private: false
|
|
12
12
|
|
|
13
13
|
---
|
|
14
14
|
|
|
15
15
|
Name: @purpurds/heading
|
|
16
|
-
Version: 5.24.
|
|
16
|
+
Version: 5.24.3
|
|
17
17
|
License: AGPL-3.0-only
|
|
18
18
|
Private: false
|
|
19
19
|
|
|
20
20
|
---
|
|
21
21
|
|
|
22
22
|
Name: @purpurds/icon
|
|
23
|
-
Version: 5.24.
|
|
23
|
+
Version: 5.24.3
|
|
24
24
|
License: AGPL-3.0-only
|
|
25
25
|
Private: false
|
|
26
26
|
|
|
27
27
|
---
|
|
28
28
|
|
|
29
29
|
Name: @purpurds/paragraph
|
|
30
|
-
Version: 5.24.
|
|
30
|
+
Version: 5.24.3
|
|
31
31
|
License: AGPL-3.0-only
|
|
32
32
|
Private: false
|
|
33
33
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime")
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),$=require("react");function J(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var T={exports:{}};/*!
|
|
2
2
|
Copyright (c) 2018 Jed Watson.
|
|
3
3
|
Licensed under the MIT License (MIT), see
|
|
4
4
|
http://jedwatson.github.io/classnames
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
Copyright (c) 2018 Jed Watson.
|
|
7
7
|
Licensed under the MIT License (MIT), see
|
|
8
8
|
http://jedwatson.github.io/classnames
|
|
9
|
-
*/(function(t){(function(){var u={}.hasOwnProperty;function n(){for(var r="",e=0;e<arguments.length;e++){var a=arguments[e];a&&(r=p(r,i(a)))}return r}function i(r){if(typeof r=="string"||typeof r=="number")return r;if(typeof r!="object")return"";if(Array.isArray(r))return n.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var e="";for(var a in r)u.call(r,a)&&r[a]&&(e=p(e,a));return e}function p(r,e){return e?r?r+" "+e:r+e:r}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(L);var _r=L.exports;const gr=dr(_r),O={"purpur-badge":"_purpur-badge_1r1mu_1","purpur-badge--attention":"_purpur-badge--attention_1r1mu_13","purpur-badge--special":"_purpur-badge--special_1r1mu_17","purpur-badge--neutral":"_purpur-badge--neutral_1r1mu_21","purpur-badge--information":"_purpur-badge--information_1r1mu_25","purpur-badge--success":"_purpur-badge--success_1r1mu_29","purpur-badge--warning":"_purpur-badge--warning_1r1mu_33","purpur-badge--error":"_purpur-badge--error_1r1mu_37","purpur-badge--black-friday":"_purpur-badge--black-friday_1r1mu_41"},M="purpur-badge",
|
|
9
|
+
*/(function(t){(function(){var u={}.hasOwnProperty;function n(){for(var r="",e=0;e<arguments.length;e++){var a=arguments[e];a&&(r=p(r,i(a)))}return r}function i(r){if(typeof r=="string"||typeof r=="number")return r;if(typeof r!="object")return"";if(Array.isArray(r))return n.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var e="";for(var a in r)u.call(r,a)&&r[a]&&(e=p(e,a));return e}function p(r,e){return e?r?r+" "+e:r+e:r}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(L);var _r=L.exports;const gr=dr(_r),O={"purpur-badge":"_purpur-badge_1r1mu_1","purpur-badge--attention":"_purpur-badge--attention_1r1mu_13","purpur-badge--special":"_purpur-badge--special_1r1mu_17","purpur-badge--neutral":"_purpur-badge--neutral_1r1mu_21","purpur-badge--information":"_purpur-badge--information_1r1mu_25","purpur-badge--success":"_purpur-badge--success_1r1mu_29","purpur-badge--warning":"_purpur-badge--warning_1r1mu_33","purpur-badge--error":"_purpur-badge--error_1r1mu_37","purpur-badge--black-friday":"_purpur-badge--black-friday_1r1mu_41"},M="purpur-badge",g={ATTENTION:"attention",SPECIAL:"special",NEUTRAL:"neutral",INFORMATION:"information",SUCCESS:"success",WARNING:"warning",ERROR:"error",BLACK_FRIDAY:"black-friday"},hr=t=>{switch(t){case g.ATTENTION:case g.SPECIAL:return nr;case g.INFORMATION:return ar;case g.SUCCESS:return er;case g.WARNING:return rr;case g.ERROR:return tr;case g.NEUTRAL:return ur;case g.BLACK_FRIDAY:return pr;default:return}},vr=({children:t,showIcon:u=!0,variant:n,["data-testid"]:i,allyLabel:p,className:r="",...e})=>{const a=hr(n),o=gr([r,O[M],O[`${M}--${n}`]]);return l.jsxs("span",{"aria-label":p,className:o,"data-testid":i,...e,children:[u&&a&&l.jsx(E,{"data-testid":`${i}-icon`,allyTitle:p,size:"xs",svg:a}),t]})};function mr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var P={exports:{}};/*!
|
|
10
10
|
Copyright (c) 2018 Jed Watson.
|
|
11
11
|
Licensed under the MIT License (MIT), see
|
|
12
12
|
http://jedwatson.github.io/classnames
|
|
@@ -14,11 +14,11 @@
|
|
|
14
14
|
Copyright (c) 2018 Jed Watson.
|
|
15
15
|
Licensed under the MIT License (MIT), see
|
|
16
16
|
http://jedwatson.github.io/classnames
|
|
17
|
-
*/(function(t){(function(){var u={}.hasOwnProperty;function n(){for(var r="",e=0;e<arguments.length;e++){var a=arguments[e];a&&(r=p(r,i.call(this,a)))}return r}function i(r){if(typeof r=="string"||typeof r=="number")return this&&this[r]||r;if(typeof r!="object")return"";if(Array.isArray(r))return n.apply(this,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var e="";for(var a in r)u.call(r,a)&&r[a]&&(e=p(e,this&&this[a]||a));return e}function p(r,e){return e?r?r+" "+e:r+e:r}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(R);var qr=R.exports;const Zr=Mr(qr),Ir={"purpur-cta-link":"_purpur-cta-link_1mhg7_1","purpur-cta-link--sm":"_purpur-cta-link--sm_1mhg7_33","purpur-cta-link--icon-only":"_purpur-cta-link--icon-only_1mhg7_36","purpur-cta-link--md":"_purpur-cta-link--md_1mhg7_39","purpur-cta-link--lg":"_purpur-cta-link--lg_1mhg7_45","purpur-cta-link--full-width":"_purpur-cta-link--full-width_1mhg7_51","purpur-cta-link--primary":"_purpur-cta-link--primary_1mhg7_54","purpur-cta-link--disabled":"_purpur-cta-link--disabled_1mhg7_58","purpur-cta-link--primary-negative":"_purpur-cta-link--primary-negative_1mhg7_64","purpur-cta-link--secondary":"_purpur-cta-link--secondary_1mhg7_76","purpur-cta-link--secondary-negative":"_purpur-cta-link--secondary-negative_1mhg7_87","purpur-cta-link--expressive":"_purpur-cta-link--expressive_1mhg7_98","purpur-cta-link--expressive-negative":"_purpur-cta-link--expressive-negative_1mhg7_108"},Tr=Zr.bind(Ir),
|
|
17
|
+
*/(function(t){(function(){var u={}.hasOwnProperty;function n(){for(var r="",e=0;e<arguments.length;e++){var a=arguments[e];a&&(r=p(r,i.call(this,a)))}return r}function i(r){if(typeof r=="string"||typeof r=="number")return this&&this[r]||r;if(typeof r!="object")return"";if(Array.isArray(r))return n.apply(this,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var e="";for(var a in r)u.call(r,a)&&r[a]&&(e=p(e,this&&this[a]||a));return e}function p(r,e){return e?r?r+" "+e:r+e:r}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(R);var qr=R.exports;const Zr=Mr(qr),Ir={"purpur-cta-link":"_purpur-cta-link_1mhg7_1","purpur-cta-link--sm":"_purpur-cta-link--sm_1mhg7_33","purpur-cta-link--icon-only":"_purpur-cta-link--icon-only_1mhg7_36","purpur-cta-link--md":"_purpur-cta-link--md_1mhg7_39","purpur-cta-link--lg":"_purpur-cta-link--lg_1mhg7_45","purpur-cta-link--full-width":"_purpur-cta-link--full-width_1mhg7_51","purpur-cta-link--primary":"_purpur-cta-link--primary_1mhg7_54","purpur-cta-link--disabled":"_purpur-cta-link--disabled_1mhg7_58","purpur-cta-link--primary-negative":"_purpur-cta-link--primary-negative_1mhg7_64","purpur-cta-link--secondary":"_purpur-cta-link--secondary_1mhg7_76","purpur-cta-link--secondary-negative":"_purpur-cta-link--secondary-negative_1mhg7_87","purpur-cta-link--expressive":"_purpur-cta-link--expressive_1mhg7_98","purpur-cta-link--expressive-negative":"_purpur-cta-link--expressive-negative_1mhg7_108"},Tr=Zr.bind(Ir),v="purpur-cta-link",Er={forward:br,external:kr,back:xr,phone:$r},Lr=$.forwardRef(({children:t,className:u,["data-testid"]:n,fullWidth:i=!1,iconOnly:p=!1,showIcon:r=!0,negative:e=!1,size:a="md",variant:o,icon:_="forward",...m},h)=>{const N=Tr([u,v,`${v}--${e?`${o}-negative`:o}`,`${v}--${a}`],{[`${v}--icon-only`]:p,[`${v}--negative`]:e,[`${v}--full-width`]:i}),w=Er[_],x=l.jsxs(l.Fragment,{children:[r&&(_==="back"||_==="phone")&&l.jsx(j,{svg:w,size:a==="lg"?"sm":"xs"}),(!p||p&&!r)&&t,r&&(_==="forward"||_==="external")&&l.jsx(j,{svg:w,size:a==="lg"?"sm":"xs"})]}),s={...m,className:N,"data-testid":n};return"href"in m&&m.href?l.jsx("a",{...s,ref:h,children:x}):l.jsx("span",{...s,ref:h,children:x})});function Pr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var C={exports:{}};/*!
|
|
18
18
|
Copyright (c) 2018 Jed Watson.
|
|
19
19
|
Licensed under the MIT License (MIT), see
|
|
20
20
|
http://jedwatson.github.io/classnames
|
|
21
|
-
*/(function(t){(function(){var u={}.hasOwnProperty;function n(){for(var r="",e=0;e<arguments.length;e++){var a=arguments[e];a&&(r=p(r,i(a)))}return r}function i(r){if(typeof r=="string"||typeof r=="number")return r;if(typeof r!="object")return"";if(Array.isArray(r))return n.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var e="";for(var a in r)u.call(r,a)&&r[a]&&(e=p(e,a));return e}function p(r,e){return e?r?r+" "+e:r+e:r}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(C);var Rr=C.exports;const Cr=Pr(Rr),
|
|
21
|
+
*/(function(t){(function(){var u={}.hasOwnProperty;function n(){for(var r="",e=0;e<arguments.length;e++){var a=arguments[e];a&&(r=p(r,i(a)))}return r}function i(r){if(typeof r=="string"||typeof r=="number")return r;if(typeof r!="object")return"";if(Array.isArray(r))return n.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var e="";for(var a in r)u.call(r,a)&&r[a]&&(e=p(e,a));return e}function p(r,e){return e?r?r+" "+e:r+e:r}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(C);var Rr=C.exports;const Cr=Pr(Rr),b={"purpur-heading":"_purpur-heading_k9fhq_1","purpur-heading--hyphens":"_purpur-heading--hyphens_k9fhq_8","purpur-heading--negative":"_purpur-heading--negative_k9fhq_11","purpur-heading--subsection-100":"_purpur-heading--subsection-100_k9fhq_14","purpur-heading--title-100":"_purpur-heading--title-100_k9fhq_20","purpur-heading--title-200":"_purpur-heading--title-200_k9fhq_26","purpur-heading--title-300":"_purpur-heading--title-300_k9fhq_32","purpur-heading--title-400":"_purpur-heading--title-400_k9fhq_38","purpur-heading--title-500":"_purpur-heading--title-500_k9fhq_44","purpur-heading--title-600":"_purpur-heading--title-600_k9fhq_50","purpur-heading--title-700":"_purpur-heading--title-700_k9fhq_56","purpur-heading--display-25":"_purpur-heading--display-25_k9fhq_62","purpur-heading--display-50":"_purpur-heading--display-50_k9fhq_68","purpur-heading--display-100":"_purpur-heading--display-100_k9fhq_74","purpur-heading--display-200":"_purpur-heading--display-200_k9fhq_80"},Br={TITLE100:"title-100",TITLE200:"title-200",TITLE300:"title-300",TITLE400:"title-400",TITLE500:"title-500",TITLE600:"title-600",TITLE700:"title-700",SUBSECTION100:"subsection-100"},k="purpur-heading",B=({["data-testid"]:t,children:u,className:n="",enableHyphenation:i=!1,negative:p=!1,tag:r,variant:e=Br.TITLE100,...a})=>{const o=r,_=Cr([n,b[k],b[`${k}--${e}`],{[b[`${k}--hyphens`]]:i,[b[`${k}--negative`]]:p}]);return l.jsx(o,{...a,className:_,"data-testid":t,children:u})};B.displayName="Heading";function Hr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var H={exports:{}};/*!
|
|
22
22
|
Copyright (c) 2018 Jed Watson.
|
|
23
23
|
Licensed under the MIT License (MIT), see
|
|
24
24
|
http://jedwatson.github.io/classnames
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
Copyright (c) 2018 Jed Watson.
|
|
27
27
|
Licensed under the MIT License (MIT), see
|
|
28
28
|
http://jedwatson.github.io/classnames
|
|
29
|
-
*/(function(t){(function(){var u={}.hasOwnProperty;function n(){for(var r="",e=0;e<arguments.length;e++){var a=arguments[e];a&&(r=p(r,i(a)))}return r}function i(r){if(typeof r=="string"||typeof r=="number")return r;if(typeof r!="object")return"";if(Array.isArray(r))return n.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var e="";for(var a in r)u.call(r,a)&&r[a]&&(e=p(e,a));return e}function p(r,e){return e?r?r+" "+e:r+e:r}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(G);var Xr=G.exports;const Qr=Kr(Xr),
|
|
29
|
+
*/(function(t){(function(){var u={}.hasOwnProperty;function n(){for(var r="",e=0;e<arguments.length;e++){var a=arguments[e];a&&(r=p(r,i(a)))}return r}function i(r){if(typeof r=="string"||typeof r=="number")return r;if(typeof r!="object")return"";if(Array.isArray(r))return n.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var e="";for(var a in r)u.call(r,a)&&r[a]&&(e=p(e,a));return e}function p(r,e){return e?r?r+" "+e:r+e:r}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(G);var Xr=G.exports;const Qr=Kr(Xr),f={"purpur-paragraph":"_purpur-paragraph_1rh57_1","purpur-paragraph--disabled":"_purpur-paragraph--disabled_1rh57_7","purpur-paragraph--hyphens":"_purpur-paragraph--hyphens_1rh57_10","purpur-paragraph--negative":"_purpur-paragraph--negative_1rh57_13","purpur-paragraph--paragraph-100":"_purpur-paragraph--paragraph-100_1rh57_16","purpur-paragraph--paragraph-100-medium":"_purpur-paragraph--paragraph-100-medium_1rh57_22","purpur-paragraph--paragraph-100-bold":"_purpur-paragraph--paragraph-100-bold_1rh57_29","purpur-paragraph--paragraph-200":"_purpur-paragraph--paragraph-200_1rh57_36","purpur-paragraph--preamble-100":"_purpur-paragraph--preamble-100_1rh57_42","purpur-paragraph--preamble-200":"_purpur-paragraph--preamble-200_1rh57_48","purpur-paragraph--additional-100":"_purpur-paragraph--additional-100_1rh57_54","purpur-paragraph--additional-100-medium":"_purpur-paragraph--additional-100-medium_1rh57_60","purpur-paragraph--overline-100":"_purpur-paragraph--overline-100_1rh57_67","purpur-paragraph--overline-200":"_purpur-paragraph--overline-200_1rh57_75"},re={PARAGRAPH100:"paragraph-100",PARAGRAPH100MEDIUM:"paragraph-100-medium",PARAGRAPH100BOLD:"paragraph-100-bold",PARAGRAPH200:"paragraph-200",PREAMBLE100:"preamble-100",PREAMBLE200:"preamble-200",ADDITIONAL100:"additional-100",ADDITIONAL100MEDIUM:"additional-100-medium",OVERLINE100:"overline-100",OVERLINE200:"overline-200"},y="purpur-paragraph",z=({["data-testid"]:t,children:u,className:n,disabled:i,enableHyphenation:p=!1,negative:r=!1,variant:e=re.PARAGRAPH100,...a})=>{const o=Qr([n,f[y],f[`${y}--${e}`],{[f[`${y}--hyphens`]]:p,[f[`${y}--disabled`]]:i,[f[`${y}--negative`]]:r}]);return l.jsx("p",{...a,className:o,"data-testid":t,children:u})};z.displayName="Paragraph";function ee(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var F={exports:{}};/*!
|
|
30
30
|
Copyright (c) 2018 Jed Watson.
|
|
31
31
|
Licensed under the MIT License (MIT), see
|
|
32
32
|
http://jedwatson.github.io/classnames
|
|
33
|
-
*/(function(t){(function(){var u={}.hasOwnProperty;function n(){for(var r="",e=0;e<arguments.length;e++){var a=arguments[e];a&&(r=p(r,i.call(this,a)))}return r}function i(r){if(typeof r=="string"||typeof r=="number")return this&&this[r]||r;if(typeof r!="object")return"";if(Array.isArray(r))return n.apply(this,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var e="";for(var a in r)u.call(r,a)&&r[a]&&(e=p(e,this&&this[a]||a));return e}function p(r,e){return e?r?r+" "+e:r+e:r}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(F);var te=F.exports;const U=ee(te),ae={"purpur-content-block":"_purpur-content-block_1c7ua_1","purpur-content-block__section":"_purpur-content-block__section_1c7ua_18","purpur-content-block__image-wrapper":"_purpur-content-block__image-wrapper_1c7ua_22","purpur-content-block__video-wrapper":"_purpur-content-block__video-wrapper_1c7ua_25","purpur-content-block__content-wrapper":"_purpur-content-block__content-wrapper_1c7ua_35","purpur-content-block__badge":"_purpur-content-block__badge_1c7ua_40","purpur-content-block__content":"_purpur-content-block__content_1c7ua_35","purpur-content-block__usp-list":"_purpur-content-block__usp-list_1c7ua_46","purpur-content-block__usp-list-item":"_purpur-content-block__usp-list-item_1c7ua_51","purpur-content-block__usp-list-item-icon":"_purpur-content-block__usp-list-item-icon_1c7ua_59","purpur-content-block__links":"_purpur-content-block__links_1c7ua_62","purpur-content-block--negative":"_purpur-content-block--negative_1c7ua_73","purpur-content-block__text-spacing":"_purpur-content-block__text-spacing_1c7ua_73"},ne={"purpur-content-block-group":"_purpur-content-block-group_1g4rh_1"},ue=U.bind(ne),I="purpur-content-block-group",W=({children:t,className:u,negative:n,["data-testid"]:i,...p})=>{const r=ue([u,I,{[`${I}--negative`]:n}]),e=()
|
|
33
|
+
*/(function(t){(function(){var u={}.hasOwnProperty;function n(){for(var r="",e=0;e<arguments.length;e++){var a=arguments[e];a&&(r=p(r,i.call(this,a)))}return r}function i(r){if(typeof r=="string"||typeof r=="number")return this&&this[r]||r;if(typeof r!="object")return"";if(Array.isArray(r))return n.apply(this,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var e="";for(var a in r)u.call(r,a)&&r[a]&&(e=p(e,this&&this[a]||a));return e}function p(r,e){return e?r?r+" "+e:r+e:r}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(F);var te=F.exports;const U=ee(te),ae={"purpur-content-block":"_purpur-content-block_1c7ua_1","purpur-content-block__section":"_purpur-content-block__section_1c7ua_18","purpur-content-block__image-wrapper":"_purpur-content-block__image-wrapper_1c7ua_22","purpur-content-block__video-wrapper":"_purpur-content-block__video-wrapper_1c7ua_25","purpur-content-block__content-wrapper":"_purpur-content-block__content-wrapper_1c7ua_35","purpur-content-block__badge":"_purpur-content-block__badge_1c7ua_40","purpur-content-block__content":"_purpur-content-block__content_1c7ua_35","purpur-content-block__usp-list":"_purpur-content-block__usp-list_1c7ua_46","purpur-content-block__usp-list-item":"_purpur-content-block__usp-list-item_1c7ua_51","purpur-content-block__usp-list-item-icon":"_purpur-content-block__usp-list-item-icon_1c7ua_59","purpur-content-block__links":"_purpur-content-block__links_1c7ua_62","purpur-content-block--negative":"_purpur-content-block--negative_1c7ua_73","purpur-content-block__text-spacing":"_purpur-content-block__text-spacing_1c7ua_73"},ne={"purpur-content-block-group":"_purpur-content-block-group_1g4rh_1"},ue=U.bind(ne),I="purpur-content-block-group",W=({children:t,className:u,negative:n,["data-testid"]:i,...p})=>{const r=ue([u,I,{[`${I}--negative`]:n}]),e=()=>$.Children.map(t,a=>$.isValidElement(a)?$.cloneElement(a,{negative:n}):a);return l.jsx("div",{className:r,"data-testid":i,...p,children:e()})};W.displayName="ContentBlockGroup";const d=U.bind(ae),c="purpur-content-block",S=({["data-testid"]:t,className:u,negative:n,image:i,video:p,tagline:r,title:e,ctas:a,usp:o,headingTag:_="h2",headingVariant:m="title-300",onCtaClick:h,children:N,...w})=>{const x=d([u,c,{[`${c}--negative`]:n}]);return l.jsxs("div",{"data-testid":t,className:x,...w,children:[l.jsx("div",{className:d(`${c}__section`),children:p?l.jsx("div",{className:d(`${c}__video-wrapper`),children:p}):l.jsx("div",{className:d(`${c}__image-wrapper`),children:i})}),l.jsx("div",{className:d(`${c}__section`),children:l.jsxs("div",{className:d(`${c}__content-wrapper`),children:[r?l.jsx(vr,{variant:"special",className:d(`${c}__badge`),children:r}):null,e&&e.trim()&&l.jsx(B,{variant:m,tag:_,negative:n,children:e}),l.jsx("div",{className:d(`${c}__content`),children:N}),o!=null&&o.length?l.jsx("ul",{className:d(`${c}__usp-list`),children:o.map(s=>s&&l.jsxs("li",{className:d(`${c}__usp-list-item`),children:[l.jsx(V,{size:"xs",className:d(`${c}__usp-list-item-icon`)}),l.jsx(z,{negative:n,children:s})]},s))}):null,a&&a.length>0&&l.jsx("div",{className:d(`${c}__links`),children:a.map((s,Y)=>s.href&&l.jsx(Lr,{href:s.href,variant:Y===0?"primary":"secondary",negative:n,onClick:()=>h==null?void 0:h(s),children:s.text},s.text+s.href))})]})})]})};S.Group=W;S.displayName="ContentBlock";exports.ContentBlock=S;
|
|
34
34
|
//# sourceMappingURL=content-block.cjs.js.map
|