@purpurds/content-block 8.12.1 → 8.13.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 +3 -3
- package/dist/content-block-group.d.ts +6 -1
- package/dist/content-block-group.d.ts.map +1 -1
- package/dist/content-block.cjs.js +1 -1
- package/dist/content-block.cjs.js.map +1 -1
- package/dist/content-block.d.ts +9 -2
- package/dist/content-block.d.ts.map +1 -1
- package/dist/content-block.es.js +103 -92
- package/dist/content-block.es.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +12 -12
- package/src/content-block-group.tsx +13 -11
- package/src/content-block.module.scss +5 -1
- package/src/content-block.tsx +15 -3
package/dist/LICENSE.txt
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
Name: @purpurds/heading
|
|
2
|
-
Version: 8.12.
|
|
2
|
+
Version: 8.12.2
|
|
3
3
|
License: AGPL-3.0-only
|
|
4
4
|
Private: false
|
|
5
5
|
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
Name: @purpurds/icon
|
|
9
|
-
Version: 8.12.
|
|
9
|
+
Version: 8.12.2
|
|
10
10
|
License: AGPL-3.0-only
|
|
11
11
|
Private: false
|
|
12
12
|
|
|
13
13
|
---
|
|
14
14
|
|
|
15
15
|
Name: @purpurds/paragraph
|
|
16
|
-
Version: 8.12.
|
|
16
|
+
Version: 8.12.2
|
|
17
17
|
License: AGPL-3.0-only
|
|
18
18
|
Private: false
|
|
19
19
|
|
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
import { default as React, ReactNode } from 'react';
|
|
2
2
|
import { BaseProps } from '@purpurds/common-types';
|
|
3
|
+
export declare const ContentBlockGroupContext: React.Context<{
|
|
4
|
+
negative?: boolean;
|
|
5
|
+
reverse?: boolean;
|
|
6
|
+
} | null>;
|
|
3
7
|
export type ContentBlockGroupProps = Omit<BaseProps, "children"> & {
|
|
4
8
|
children: ReactNode;
|
|
5
9
|
negative?: boolean;
|
|
10
|
+
mediaStartPosition?: "left" | "right";
|
|
6
11
|
};
|
|
7
12
|
export declare const ContentBlockGroup: {
|
|
8
|
-
({ children, className, negative, ...props }: ContentBlockGroupProps): React.JSX.Element;
|
|
13
|
+
({ children, className, negative, mediaStartPosition, ...props }: ContentBlockGroupProps): React.JSX.Element;
|
|
9
14
|
displayName: string;
|
|
10
15
|
};
|
|
11
16
|
//# sourceMappingURL=content-block-group.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"content-block-group.d.ts","sourceRoot":"","sources":["../src/content-block-group.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"content-block-group.d.ts","sourceRoot":"","sources":["../src/content-block-group.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAiB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAC7D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAQxD,eAAO,MAAM,wBAAwB;eACxB,OAAO;cACR,OAAO;SACJ,CAAC;AAEhB,MAAM,MAAM,sBAAsB,GAAG,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,GAAG;IACjE,QAAQ,EAAE,SAAS,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,kBAAkB,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACvC,CAAC;AAEF,eAAO,MAAM,iBAAiB;sEAM3B,sBAAsB;;CAkBxB,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),v=require("react");function E(p){return p&&p.__esModule&&Object.prototype.hasOwnProperty.call(p,"default")?p.default:p}var y={exports:{}},b;function H(){return b||(b=1,(function(p){(function(){var a={}.hasOwnProperty;function n(){for(var r="",e=0;e<arguments.length;e++){var t=arguments[e];t&&(r=u(r,i(t)))}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 t in r)a.call(r,t)&&r[t]&&(e=u(e,t));return e}function u(r,e){return e?r?r+" "+e:r+e:r}p.exports?(n.default=n,p.exports=n):window.classNames=n})()})(y)),y.exports}var G=H();const I=E(G),_={"purpur-heading":"_purpur-heading_vo751_1","purpur-heading--hyphens":"_purpur-heading--hyphens_vo751_8","purpur-heading--negative":"_purpur-heading--negative_vo751_11","purpur-heading--subsection-100":"_purpur-heading--subsection-100_vo751_14","purpur-heading--title-100":"_purpur-heading--title-100_vo751_20","purpur-heading--title-200":"_purpur-heading--title-200_vo751_26","purpur-heading--title-300":"_purpur-heading--title-300_vo751_32","purpur-heading--title-400":"_purpur-heading--title-400_vo751_38","purpur-heading--title-500":"_purpur-heading--title-500_vo751_44","purpur-heading--title-600":"_purpur-heading--title-600_vo751_50","purpur-heading--title-700":"_purpur-heading--title-700_vo751_56","purpur-heading--display-5":"_purpur-heading--display-5_vo751_62","purpur-heading--display-10":"_purpur-heading--display-10_vo751_68","purpur-heading--display-15":"_purpur-heading--display-15_vo751_74","purpur-heading--display-20":"_purpur-heading--display-20_vo751_80","purpur-heading--display-25":"_purpur-heading--display-25_vo751_86","purpur-heading--display-50":"_purpur-heading--display-50_vo751_92","purpur-heading--display-100":"_purpur-heading--display-100_vo751_98","purpur-heading--display-200":"_purpur-heading--display-200_vo751_104"},L={TITLE100:"title-100"},d="purpur-heading",O=({children:p,className:a="",enableHyphenation:n=!1,negative:i=!1,tag:u,variant:r=L.TITLE100,...e})=>{const t=u,h=I([a,_[d],_[`${d}--${r}`],{[_[`${d}--hyphens`]]:n,[_[`${d}--negative`]]:i}]);return o.jsx(t,{className:h,...e,children:p})};O.displayName="Heading";function V(p){return p&&p.__esModule&&Object.prototype.hasOwnProperty.call(p,"default")?p.default:p}var x={exports:{}},$;function D(){return $||($=1,(function(p){(function(){var a={}.hasOwnProperty;function n(){for(var r="",e=0;e<arguments.length;e++){var t=arguments[e];t&&(r=u(r,i.call(this,t)))}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 t in r)a.call(r,t)&&r[t]&&(e=u(e,this&&this[t]||t));return e}function u(r,e){return e?r?r+" "+e:r+e:r}p.exports?(n.default=n,p.exports=n):window.classNames=n})()})(x)),x.exports}var F=D();const Z=V(F),J={"purpur-icon":"_purpur-icon_8u1lq_1","purpur-icon--xxs":"_purpur-icon--xxs_8u1lq_4","purpur-icon--xs":"_purpur-icon--xs_8u1lq_8","purpur-icon--sm":"_purpur-icon--sm_8u1lq_12","purpur-icon--md":"_purpur-icon--md_8u1lq_16","purpur-icon--lg":"_purpur-icon--lg_8u1lq_20","purpur-icon--xl":"_purpur-icon--xl_8u1lq_24"},K=Z.bind(J),k="purpur-icon",Q="md",U=p=>p.filter(a=>Object.keys(a).length>=1).map(a=>`${a.name}="${a.value}"`).join(" "),W=({content:p="",title:a}={})=>{const n=[{name:"xmlns",value:"http://www.w3.org/2000/svg"},{name:"fill",value:"currentColor"},{name:"viewBox",value:"0 0 24 24"},a?{name:"role",value:"img"}:{name:"aria-hidden",value:"true"}],i=a?`<title>${a}</title>`:"";return`<svg ${U(n)}>${i}${p}</svg>`},X=p=>p.replace(/<(\/?)svg([^>]*)>/g,"").trim(),z=({svg:p,allyTitle:a,className:n,size:i=Q,...u})=>{const r=W({content:X(p.svg),title:a}),e=K(k,`${k}--${i}`,n);return o.jsx("span",{className:e,dangerouslySetInnerHTML:{__html:r},...u})};z.displayName="Icon";const Y={name:"checkmark",svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M21.06 3.795a.9.9 0 0 1 .145 1.264l-11.5 14.5a.9.9 0 0 1-1.341.077l-6-6a.9.9 0 0 1 1.272-1.272l5.286 5.286L19.795 3.94a.9.9 0 0 1 1.264-.145Z" clip-rule="evenodd"/></svg>',keywords:["checkmark"],category:"utility"},A=p=>o.jsx(z,{...p,svg:Y});A.displayName="IconCheckmark";function rr(p){return p&&p.__esModule&&Object.prototype.hasOwnProperty.call(p,"default")?p.default:p}var w={exports:{}},j;function er(){return j||(j=1,(function(p){(function(){var a={}.hasOwnProperty;function n(){for(var r="",e=0;e<arguments.length;e++){var t=arguments[e];t&&(r=u(r,i.call(this,t)))}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 t in r)a.call(r,t)&&r[t]&&(e=u(e,this&&this[t]||t));return e}function u(r,e){return e?r?r+" "+e:r+e:r}p.exports?(n.default=n,p.exports=n):window.classNames=n})()})(w)),w.exports}var pr=er();const tr=rr(pr),nr={"purpur-paragraph":"_purpur-paragraph_1vz75_1","purpur-paragraph--disabled":"_purpur-paragraph--disabled_1vz75_7","purpur-paragraph--hyphens":"_purpur-paragraph--hyphens_1vz75_10","purpur-paragraph--negative":"_purpur-paragraph--negative_1vz75_13","purpur-paragraph--paragraph-100":"_purpur-paragraph--paragraph-100_1vz75_16","purpur-paragraph--paragraph-100-medium":"_purpur-paragraph--paragraph-100-medium_1vz75_22","purpur-paragraph--paragraph-100-bold":"_purpur-paragraph--paragraph-100-bold_1vz75_29","purpur-paragraph--paragraph-200":"_purpur-paragraph--paragraph-200_1vz75_36","purpur-paragraph--preamble-100":"_purpur-paragraph--preamble-100_1vz75_42","purpur-paragraph--preamble-200":"_purpur-paragraph--preamble-200_1vz75_48","purpur-paragraph--additional-100":"_purpur-paragraph--additional-100_1vz75_54","purpur-paragraph--additional-100-medium":"_purpur-paragraph--additional-100-medium_1vz75_60","purpur-paragraph--additional-100-bold":"_purpur-paragraph--additional-100-bold_1vz75_67","purpur-paragraph--overline-100":"_purpur-paragraph--overline-100_1vz75_74","purpur-paragraph--overline-200":"_purpur-paragraph--overline-200_1vz75_82"},ar=tr.bind(nr),ur={PARAGRAPH100:"paragraph-100"},c="purpur-paragraph",P=({children:p,className:a,disabled:n,enableHyphenation:i=!1,negative:u=!1,variant:r=ur.PARAGRAPH100,...e})=>{const t=ar(a,c,`${c}--${r}`,{[`${c}--hyphens`]:i,[`${c}--disabled`]:n,[`${c}--negative`]:u});return o.jsx("p",{...e,className:t,children:p})};P.displayName="Paragraph";function ir(p){return p&&p.__esModule&&Object.prototype.hasOwnProperty.call(p,"default")?p.default:p}var f={exports:{}};var N;function or(){return N||(N=1,(function(p){(function(){var a={}.hasOwnProperty;function n(){for(var r="",e=0;e<arguments.length;e++){var t=arguments[e];t&&(r=u(r,i.call(this,t)))}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 t in r)a.call(r,t)&&r[t]&&(e=u(e,this&&this[t]||t));return e}function u(r,e){return e?r?r+" "+e:r+e:r}p.exports?(n.default=n,p.exports=n):window.classNames=n})()})(f)),f.exports}var sr=or();const C=ir(sr),lr={"purpur-content-block":"_purpur-content-block_rsl63_1","purpur-content-block__section":"_purpur-content-block__section_rsl63_17","purpur-content-block__image-wrapper":"_purpur-content-block__image-wrapper_rsl63_25","purpur-content-block__video-wrapper":"_purpur-content-block__video-wrapper_rsl63_28","purpur-content-block__content-wrapper":"_purpur-content-block__content-wrapper_rsl63_38","purpur-content-block__badge-wrapper":"_purpur-content-block__badge-wrapper_rsl63_43","purpur-content-block__content":"_purpur-content-block__content_rsl63_38","purpur-content-block__list":"_purpur-content-block__list_rsl63_49","purpur-content-block__list-item":"_purpur-content-block__list-item_rsl63_54","purpur-content-block__list-item-icon":"_purpur-content-block__list-item-icon_rsl63_62","purpur-content-block__actions":"_purpur-content-block__actions_rsl63_65","purpur-content-block--negative":"_purpur-content-block--negative_rsl63_76","purpur-content-block__text-spacing":"_purpur-content-block__text-spacing_rsl63_76"},cr={"purpur-content-block-group":"_purpur-content-block-group_xzyy2_1"},_r=C.bind(cr),S="purpur-content-block-group",q=({children:p,className:a,negative:n,...i})=>{const u=_r([S,{[`${S}--negative`]:n},a]),r=()=>v.Children.map(p,e=>v.isValidElement(e)?v.cloneElement(e,{negative:n}):e);return o.jsx("div",{className:u,...i,children:r()})};q.displayName="ContentBlockGroup";const l=C.bind(lr),s="purpur-content-block",m=({className:p,negative:a,image:n,video:i,badge:u,title:r,actions:e,listItems:t,headingTag:h="h2",headingVariant:B="title-300",children:T,...M})=>{const R=l([s,{[`${s}--negative`]:a},p]);return o.jsxs("div",{className:R,...M,children:[o.jsx("div",{className:l(`${s}__section`),children:i?o.jsx("div",{className:l(`${s}__video-wrapper`),children:i}):o.jsx("div",{className:l(`${s}__image-wrapper`),children:n})}),o.jsx("div",{className:l(`${s}__section`),children:o.jsxs("div",{className:l(`${s}__content-wrapper`),children:[u&&o.jsx("div",{className:l(`${s}__badge-wrapper`),children:u}),r?.trim()&&o.jsx(O,{variant:B,tag:h,negative:a,children:r}),o.jsx("div",{className:l(`${s}__content`),children:T}),!!t?.length&&o.jsx("ul",{className:l(`${s}__list`),children:t.map(g=>g&&o.jsxs("li",{className:l(`${s}__list-item`),children:[o.jsx(A,{size:"xs",className:l(`${s}__list-item-icon`)}),o.jsx(P,{negative:a,children:g})]},g))}),e&&o.jsx("div",{className:l(`${s}__actions`),children:e})]})})]})};m.Group=q;m.displayName="ContentBlock";exports.ContentBlock=m;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),S=require("react");function I(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var b={exports:{}},y;function L(){return y||(y=1,(function(t){(function(){var a={}.hasOwnProperty;function n(){for(var r="",e=0;e<arguments.length;e++){var p=arguments[e];p&&(r=u(r,i(p)))}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 p in r)a.call(r,p)&&r[p]&&(e=u(e,p));return e}function u(r,e){return e?r?r+" "+e:r+e:r}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(b)),b.exports}var D=L();const F=I(D),d={"purpur-heading":"_purpur-heading_vo751_1","purpur-heading--hyphens":"_purpur-heading--hyphens_vo751_8","purpur-heading--negative":"_purpur-heading--negative_vo751_11","purpur-heading--subsection-100":"_purpur-heading--subsection-100_vo751_14","purpur-heading--title-100":"_purpur-heading--title-100_vo751_20","purpur-heading--title-200":"_purpur-heading--title-200_vo751_26","purpur-heading--title-300":"_purpur-heading--title-300_vo751_32","purpur-heading--title-400":"_purpur-heading--title-400_vo751_38","purpur-heading--title-500":"_purpur-heading--title-500_vo751_44","purpur-heading--title-600":"_purpur-heading--title-600_vo751_50","purpur-heading--title-700":"_purpur-heading--title-700_vo751_56","purpur-heading--display-5":"_purpur-heading--display-5_vo751_62","purpur-heading--display-10":"_purpur-heading--display-10_vo751_68","purpur-heading--display-15":"_purpur-heading--display-15_vo751_74","purpur-heading--display-20":"_purpur-heading--display-20_vo751_80","purpur-heading--display-25":"_purpur-heading--display-25_vo751_86","purpur-heading--display-50":"_purpur-heading--display-50_vo751_92","purpur-heading--display-100":"_purpur-heading--display-100_vo751_98","purpur-heading--display-200":"_purpur-heading--display-200_vo751_104"},V={TITLE100:"title-100"},h="purpur-heading",O=({children:t,className:a="",enableHyphenation:n=!1,negative:i=!1,tag:u,variant:r=V.TITLE100,...e})=>{const p=u,_=F([a,d[h],d[`${h}--${r}`],{[d[`${h}--hyphens`]]:n,[d[`${h}--negative`]]:i}]);return o.jsx(p,{className:_,...e,children:t})};O.displayName="Heading";function Z(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var x={exports:{}},j;function J(){return j||(j=1,(function(t){(function(){var a={}.hasOwnProperty;function n(){for(var r="",e=0;e<arguments.length;e++){var p=arguments[e];p&&(r=u(r,i.call(this,p)))}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 p in r)a.call(r,p)&&r[p]&&(e=u(e,this&&this[p]||p));return e}function u(r,e){return e?r?r+" "+e:r+e:r}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(x)),x.exports}var K=J();const Q=Z(K),U={"purpur-icon":"_purpur-icon_8u1lq_1","purpur-icon--xxs":"_purpur-icon--xxs_8u1lq_4","purpur-icon--xs":"_purpur-icon--xs_8u1lq_8","purpur-icon--sm":"_purpur-icon--sm_8u1lq_12","purpur-icon--md":"_purpur-icon--md_8u1lq_16","purpur-icon--lg":"_purpur-icon--lg_8u1lq_20","purpur-icon--xl":"_purpur-icon--xl_8u1lq_24"},W=Q.bind(U),$="purpur-icon",X="md",Y=t=>t.filter(a=>Object.keys(a).length>=1).map(a=>`${a.name}="${a.value}"`).join(" "),rr=({content:t="",title:a}={})=>{const n=[{name:"xmlns",value:"http://www.w3.org/2000/svg"},{name:"fill",value:"currentColor"},{name:"viewBox",value:"0 0 24 24"},a?{name:"role",value:"img"}:{name:"aria-hidden",value:"true"}],i=a?`<title>${a}</title>`:"";return`<svg ${Y(n)}>${i}${t}</svg>`},er=t=>t.replace(/<(\/?)svg([^>]*)>/g,"").trim(),z=({svg:t,allyTitle:a,className:n,size:i=X,...u})=>{const r=rr({content:er(t.svg),title:a}),e=W($,`${$}--${i}`,n);return o.jsx("span",{className:e,dangerouslySetInnerHTML:{__html:r},...u})};z.displayName="Icon";const tr={name:"checkmark",svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M21.06 3.795a.9.9 0 0 1 .145 1.264l-11.5 14.5a.9.9 0 0 1-1.341.077l-6-6a.9.9 0 0 1 1.272-1.272l5.286 5.286L19.795 3.94a.9.9 0 0 1 1.264-.145Z" clip-rule="evenodd"/></svg>',keywords:["checkmark"],category:"utility"},A=t=>o.jsx(z,{...t,svg:tr});A.displayName="IconCheckmark";function pr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var k={exports:{}},w;function nr(){return w||(w=1,(function(t){(function(){var a={}.hasOwnProperty;function n(){for(var r="",e=0;e<arguments.length;e++){var p=arguments[e];p&&(r=u(r,i.call(this,p)))}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 p in r)a.call(r,p)&&r[p]&&(e=u(e,this&&this[p]||p));return e}function u(r,e){return e?r?r+" "+e:r+e:r}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(k)),k.exports}var ar=nr();const ur=pr(ar),ir={"purpur-paragraph":"_purpur-paragraph_1vz75_1","purpur-paragraph--disabled":"_purpur-paragraph--disabled_1vz75_7","purpur-paragraph--hyphens":"_purpur-paragraph--hyphens_1vz75_10","purpur-paragraph--negative":"_purpur-paragraph--negative_1vz75_13","purpur-paragraph--paragraph-100":"_purpur-paragraph--paragraph-100_1vz75_16","purpur-paragraph--paragraph-100-medium":"_purpur-paragraph--paragraph-100-medium_1vz75_22","purpur-paragraph--paragraph-100-bold":"_purpur-paragraph--paragraph-100-bold_1vz75_29","purpur-paragraph--paragraph-200":"_purpur-paragraph--paragraph-200_1vz75_36","purpur-paragraph--preamble-100":"_purpur-paragraph--preamble-100_1vz75_42","purpur-paragraph--preamble-200":"_purpur-paragraph--preamble-200_1vz75_48","purpur-paragraph--additional-100":"_purpur-paragraph--additional-100_1vz75_54","purpur-paragraph--additional-100-medium":"_purpur-paragraph--additional-100-medium_1vz75_60","purpur-paragraph--additional-100-bold":"_purpur-paragraph--additional-100-bold_1vz75_67","purpur-paragraph--overline-100":"_purpur-paragraph--overline-100_1vz75_74","purpur-paragraph--overline-200":"_purpur-paragraph--overline-200_1vz75_82"},or=ur.bind(ir),sr={PARAGRAPH100:"paragraph-100"},c="purpur-paragraph",P=({children:t,className:a,disabled:n,enableHyphenation:i=!1,negative:u=!1,variant:r=sr.PARAGRAPH100,...e})=>{const p=or(a,c,`${c}--${r}`,{[`${c}--hyphens`]:i,[`${c}--disabled`]:n,[`${c}--negative`]:u});return o.jsx("p",{...e,className:p,children:t})};P.displayName="Paragraph";function lr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var v={exports:{}};var N;function cr(){return N||(N=1,(function(t){(function(){var a={}.hasOwnProperty;function n(){for(var r="",e=0;e<arguments.length;e++){var p=arguments[e];p&&(r=u(r,i.call(this,p)))}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 p in r)a.call(r,p)&&r[p]&&(e=u(e,this&&this[p]||p));return e}function u(r,e){return e?r?r+" "+e:r+e:r}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(v)),v.exports}var _r=cr();const C=lr(_r),dr={"purpur-content-block":"_purpur-content-block_mjbqd_1","purpur-content-block--reverse":"_purpur-content-block--reverse_mjbqd_13","purpur-content-block__section":"_purpur-content-block__section_mjbqd_20","purpur-content-block__image-wrapper":"_purpur-content-block__image-wrapper_mjbqd_28","purpur-content-block__video-wrapper":"_purpur-content-block__video-wrapper_mjbqd_31","purpur-content-block__content-wrapper":"_purpur-content-block__content-wrapper_mjbqd_41","purpur-content-block__badge-wrapper":"_purpur-content-block__badge-wrapper_mjbqd_46","purpur-content-block__content":"_purpur-content-block__content_mjbqd_41","purpur-content-block__list":"_purpur-content-block__list_mjbqd_52","purpur-content-block__list-item":"_purpur-content-block__list-item_mjbqd_57","purpur-content-block__list-item-icon":"_purpur-content-block__list-item-icon_mjbqd_65","purpur-content-block__actions":"_purpur-content-block__actions_mjbqd_68","purpur-content-block--negative":"_purpur-content-block--negative_mjbqd_79","purpur-content-block__text-spacing":"_purpur-content-block__text-spacing_mjbqd_79"},hr={"purpur-content-block-group":"_purpur-content-block-group_xzyy2_1"},gr=C.bind(hr),q="purpur-content-block-group",B=S.createContext(null),T=({children:t,className:a,negative:n,mediaStartPosition:i="left",...u})=>{const r=gr([q,{[`${q}--negative`]:n},a]);return o.jsx("div",{className:r,...u,children:o.jsx(B.Provider,{value:{negative:n,reverse:i==="right"},children:t})})};T.displayName="ContentBlockGroup";const l=C.bind(dr),s="purpur-content-block",m=({className:t,negative:a,image:n,video:i,badge:u,beforeTitle:r,title:e,actions:p,listItems:_,headingTag:M="h2",headingVariant:G="title-300",children:H,...R})=>{const f=S.useContext(B),E=l([s,{[`${s}--negative`]:f?.negative||a,[`${s}--reverse`]:f?.reverse},t]);return o.jsxs("div",{className:E,...R,children:[o.jsx("div",{className:l(`${s}__section`),children:i?o.jsx("div",{className:l(`${s}__video-wrapper`),children:i}):o.jsx("div",{className:l(`${s}__image-wrapper`),children:n})}),o.jsx("div",{className:l(`${s}__section`),children:o.jsxs("div",{className:l(`${s}__content-wrapper`),children:[u&&o.jsx("div",{className:l(`${s}__badge-wrapper`),children:u}),r,e?.trim()&&o.jsx(O,{variant:G,tag:M,negative:a,children:e}),o.jsx("div",{className:l(`${s}__content`),children:H}),!!_?.length&&o.jsx("ul",{className:l(`${s}__list`),children:_.map(g=>g&&o.jsxs("li",{className:l(`${s}__list-item`),children:[o.jsx(A,{size:"xs",className:l(`${s}__list-item-icon`)}),o.jsx(P,{negative:a,children:g})]},g))}),p&&o.jsx("div",{className:l(`${s}__actions`),children:p})]})})]})};m.Group=T;m.displayName="ContentBlock";exports.ContentBlock=m;
|
|
2
2
|
//# sourceMappingURL=content-block.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"content-block.cjs.js","sources":["../../heading/dist/heading.es.js","../../icon/dist/icon-DNHpBTHs.mjs","../../icon/dist/components/checkmark.es.js","../../paragraph/dist/paragraph.es.js","../../../common/temp/node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/bind.js","../src/content-block-group.tsx","../src/content-block.tsx"],"sourcesContent":["import { jsx as h } from \"react/jsx-runtime\";\nfunction g(p) {\n return p && p.__esModule && Object.prototype.hasOwnProperty.call(p, \"default\") ? p.default : p;\n}\nvar l = { exports: {} };\nvar o;\nfunction y() {\n return o || (o = 1, (function(p) {\n (function() {\n var s = {}.hasOwnProperty;\n function t() {\n for (var r = \"\", e = 0; e < arguments.length; e++) {\n var i = arguments[e];\n i && (r = a(r, d(i)));\n }\n return r;\n }\n function d(r) {\n if (typeof r == \"string\" || typeof r == \"number\")\n return r;\n if (typeof r != \"object\")\n return \"\";\n if (Array.isArray(r))\n return t.apply(null, r);\n if (r.toString !== Object.prototype.toString && !r.toString.toString().includes(\"[native code]\"))\n return r.toString();\n var e = \"\";\n for (var i in r)\n s.call(r, i) && r[i] && (e = a(e, i));\n return e;\n }\n function a(r, e) {\n return e ? r ? r + \" \" + e : r + e : r;\n }\n p.exports ? (t.default = t, p.exports = t) : window.classNames = t;\n })();\n })(l)), l.exports;\n}\nvar c = y();\nconst f = /* @__PURE__ */ g(c), n = {\n \"purpur-heading\": \"_purpur-heading_vo751_1\",\n \"purpur-heading--hyphens\": \"_purpur-heading--hyphens_vo751_8\",\n \"purpur-heading--negative\": \"_purpur-heading--negative_vo751_11\",\n \"purpur-heading--subsection-100\": \"_purpur-heading--subsection-100_vo751_14\",\n \"purpur-heading--title-100\": \"_purpur-heading--title-100_vo751_20\",\n \"purpur-heading--title-200\": \"_purpur-heading--title-200_vo751_26\",\n \"purpur-heading--title-300\": \"_purpur-heading--title-300_vo751_32\",\n \"purpur-heading--title-400\": \"_purpur-heading--title-400_vo751_38\",\n \"purpur-heading--title-500\": \"_purpur-heading--title-500_vo751_44\",\n \"purpur-heading--title-600\": \"_purpur-heading--title-600_vo751_50\",\n \"purpur-heading--title-700\": \"_purpur-heading--title-700_vo751_56\",\n \"purpur-heading--display-5\": \"_purpur-heading--display-5_vo751_62\",\n \"purpur-heading--display-10\": \"_purpur-heading--display-10_vo751_68\",\n \"purpur-heading--display-15\": \"_purpur-heading--display-15_vo751_74\",\n \"purpur-heading--display-20\": \"_purpur-heading--display-20_vo751_80\",\n \"purpur-heading--display-25\": \"_purpur-heading--display-25_vo751_86\",\n \"purpur-heading--display-50\": \"_purpur-heading--display-50_vo751_92\",\n \"purpur-heading--display-100\": \"_purpur-heading--display-100_vo751_98\",\n \"purpur-heading--display-200\": \"_purpur-heading--display-200_vo751_104\"\n}, L = {\n H1: \"h1\",\n H2: \"h2\",\n H3: \"h3\",\n H4: \"h4\",\n H5: \"h5\",\n H6: \"h6\"\n}, v = {\n TITLE100: \"title-100\",\n TITLE200: \"title-200\",\n TITLE300: \"title-300\",\n TITLE400: \"title-400\",\n TITLE500: \"title-500\",\n TITLE600: \"title-600\",\n TITLE700: \"title-700\",\n SUBSECTION100: \"subsection-100\"\n}, S = {\n DISPLAY5: \"display-5\",\n DISPLAY10: \"display-10\",\n DISPLAY15: \"display-15\",\n DISPLAY20: \"display-20\",\n DISPLAY25: \"display-25\",\n DISPLAY50: \"display-50\",\n DISPLAY100: \"display-100\",\n DISPLAY200: \"display-200\"\n}, u = \"purpur-heading\", T = ({\n children: p,\n className: s = \"\",\n enableHyphenation: t = !1,\n negative: d = !1,\n tag: a,\n variant: r = v.TITLE100,\n ...e\n}) => {\n const i = a, _ = f([\n s,\n n[u],\n n[`${u}--${r}`],\n {\n [n[`${u}--hyphens`]]: t,\n [n[`${u}--negative`]]: d\n }\n ]);\n return /* @__PURE__ */ h(i, { className: _, ...e, children: p });\n};\nT.displayName = \"Heading\";\nexport {\n S as DisplayVariant,\n T as Heading,\n L as HeadingTag,\n v as TitleVariant\n};\n//# sourceMappingURL=heading.es.js.map\n","import { jsx as a } from \"react/jsx-runtime\";\nfunction f(r) {\n return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, \"default\") ? r.default : r;\n}\nvar c = { exports: {} };\nvar p;\nfunction m() {\n return p || (p = 1, (function(r) {\n (function() {\n var e = {}.hasOwnProperty;\n function o() {\n for (var t = \"\", n = 0; n < arguments.length; n++) {\n var s = arguments[n];\n s && (t = i(t, u.call(this, s)));\n }\n return t;\n }\n function u(t) {\n if (typeof t == \"string\" || typeof t == \"number\")\n return this && this[t] || t;\n if (typeof t != \"object\")\n return \"\";\n if (Array.isArray(t))\n return o.apply(this, t);\n if (t.toString !== Object.prototype.toString && !t.toString.toString().includes(\"[native code]\"))\n return t.toString();\n var n = \"\";\n for (var s in t)\n e.call(t, s) && t[s] && (n = i(n, this && this[s] || s));\n return n;\n }\n function i(t, n) {\n return n ? t ? t + \" \" + n : t + n : t;\n }\n r.exports ? (o.default = o, r.exports = o) : window.classNames = o;\n })();\n })(c)), c.exports;\n}\nvar _ = m();\nconst v = /* @__PURE__ */ f(_), d = {\n \"purpur-icon\": \"_purpur-icon_8u1lq_1\",\n \"purpur-icon--xxs\": \"_purpur-icon--xxs_8u1lq_4\",\n \"purpur-icon--xs\": \"_purpur-icon--xs_8u1lq_8\",\n \"purpur-icon--sm\": \"_purpur-icon--sm_8u1lq_12\",\n \"purpur-icon--md\": \"_purpur-icon--md_8u1lq_16\",\n \"purpur-icon--lg\": \"_purpur-icon--lg_8u1lq_20\",\n \"purpur-icon--xl\": \"_purpur-icon--xl_8u1lq_24\"\n}, g = v.bind(d), l = \"purpur-icon\", x = \"md\", h = (r) => r.filter((e) => Object.keys(e).length >= 1).map((e) => `${e.name}=\"${e.value}\"`).join(\" \"), y = ({ content: r = \"\", title: e } = {}) => {\n const o = [\n { name: \"xmlns\", value: \"http://www.w3.org/2000/svg\" },\n { name: \"fill\", value: \"currentColor\" },\n { name: \"viewBox\", value: \"0 0 24 24\" },\n e ? { name: \"role\", value: \"img\" } : { name: \"aria-hidden\", value: \"true\" }\n ], u = e ? `<title>${e}</title>` : \"\";\n return `<svg ${h(o)}>${u}${r}</svg>`;\n}, S = (r) => r.replace(/<(\\/?)svg([^>]*)>/g, \"\").trim(), b = ({ svg: r, allyTitle: e, className: o, size: u = x, ...i }) => {\n const t = y({\n content: S(r.svg),\n title: e\n }), n = g(l, `${l}--${u}`, o);\n return /* @__PURE__ */ a(\"span\", { className: n, dangerouslySetInnerHTML: { __html: t }, ...i });\n};\nb.displayName = \"Icon\";\nexport {\n b as I\n};\n//# sourceMappingURL=icon-DNHpBTHs.mjs.map\n","import { jsx as o } from \"react/jsx-runtime\";\nimport { I as r } from \"../icon-DNHpBTHs.mjs\";\nconst c = {\n name: \"checkmark\",\n svg: '<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><path fill-rule=\"evenodd\" d=\"M21.06 3.795a.9.9 0 0 1 .145 1.264l-11.5 14.5a.9.9 0 0 1-1.341.077l-6-6a.9.9 0 0 1 1.272-1.272l5.286 5.286L19.795 3.94a.9.9 0 0 1 1.264-.145Z\" clip-rule=\"evenodd\"/></svg>',\n keywords: [\"checkmark\"],\n category: \"utility\"\n}, a = (e) => /* @__PURE__ */ o(r, { ...e, svg: c });\na.displayName = \"IconCheckmark\";\nexport {\n a as IconCheckmark\n};\n//# sourceMappingURL=checkmark.es.js.map\n","import { jsx as l } from \"react/jsx-runtime\";\nfunction d(p) {\n return p && p.__esModule && Object.prototype.hasOwnProperty.call(p, \"default\") ? p.default : p;\n}\nvar h = { exports: {} };\nvar s;\nfunction _() {\n return s || (s = 1, (function(p) {\n (function() {\n var n = {}.hasOwnProperty;\n function u() {\n for (var r = \"\", a = 0; a < arguments.length; a++) {\n var e = arguments[a];\n e && (r = i(r, o.call(this, e)));\n }\n return r;\n }\n function o(r) {\n if (typeof r == \"string\" || typeof r == \"number\")\n return this && this[r] || r;\n if (typeof r != \"object\")\n return \"\";\n if (Array.isArray(r))\n return u.apply(this, r);\n if (r.toString !== Object.prototype.toString && !r.toString.toString().includes(\"[native code]\"))\n return r.toString();\n var a = \"\";\n for (var e in r)\n n.call(r, e) && r[e] && (a = i(a, this && this[e] || e));\n return a;\n }\n function i(r, a) {\n return a ? r ? r + \" \" + a : r + a : r;\n }\n p.exports ? (u.default = u, p.exports = u) : window.classNames = u;\n })();\n })(h)), h.exports;\n}\nvar g = _();\nconst v = /* @__PURE__ */ d(g), c = {\n \"purpur-paragraph\": \"_purpur-paragraph_1vz75_1\",\n \"purpur-paragraph--disabled\": \"_purpur-paragraph--disabled_1vz75_7\",\n \"purpur-paragraph--hyphens\": \"_purpur-paragraph--hyphens_1vz75_10\",\n \"purpur-paragraph--negative\": \"_purpur-paragraph--negative_1vz75_13\",\n \"purpur-paragraph--paragraph-100\": \"_purpur-paragraph--paragraph-100_1vz75_16\",\n \"purpur-paragraph--paragraph-100-medium\": \"_purpur-paragraph--paragraph-100-medium_1vz75_22\",\n \"purpur-paragraph--paragraph-100-bold\": \"_purpur-paragraph--paragraph-100-bold_1vz75_29\",\n \"purpur-paragraph--paragraph-200\": \"_purpur-paragraph--paragraph-200_1vz75_36\",\n \"purpur-paragraph--preamble-100\": \"_purpur-paragraph--preamble-100_1vz75_42\",\n \"purpur-paragraph--preamble-200\": \"_purpur-paragraph--preamble-200_1vz75_48\",\n \"purpur-paragraph--additional-100\": \"_purpur-paragraph--additional-100_1vz75_54\",\n \"purpur-paragraph--additional-100-medium\": \"_purpur-paragraph--additional-100-medium_1vz75_60\",\n \"purpur-paragraph--additional-100-bold\": \"_purpur-paragraph--additional-100-bold_1vz75_67\",\n \"purpur-paragraph--overline-100\": \"_purpur-paragraph--overline-100_1vz75_74\",\n \"purpur-paragraph--overline-200\": \"_purpur-paragraph--overline-200_1vz75_82\"\n}, f = v.bind(c), m = {\n PARAGRAPH100: \"paragraph-100\",\n PARAGRAPH100MEDIUM: \"paragraph-100-medium\",\n PARAGRAPH100BOLD: \"paragraph-100-bold\",\n PARAGRAPH200: \"paragraph-200\",\n PREAMBLE100: \"preamble-100\",\n PREAMBLE200: \"preamble-200\",\n ADDITIONAL100: \"additional-100\",\n ADDITIONAL100MEDIUM: \"additional-100-medium\",\n ADDITIONAL100BOLD: \"additional-100-bold\",\n OVERLINE100: \"overline-100\",\n OVERLINE200: \"overline-200\"\n}, t = \"purpur-paragraph\", A = ({\n children: p,\n className: n,\n disabled: u,\n enableHyphenation: o = !1,\n negative: i = !1,\n variant: r = m.PARAGRAPH100,\n ...a\n}) => {\n const e = f(n, t, `${t}--${r}`, {\n [`${t}--hyphens`]: o,\n [`${t}--disabled`]: u,\n [`${t}--negative`]: i\n });\n return /* @__PURE__ */ l(\"p\", { ...a, className: e, children: p });\n};\nA.displayName = \"Paragraph\";\nexport {\n A as Paragraph,\n m as ParagraphVariant\n};\n//# sourceMappingURL=paragraph.es.js.map\n","/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = '';\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (arg) {\n\t\t\t\tclasses = appendClass(classes, parseValue.call(this, arg));\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction parseValue (arg) {\n\t\tif (typeof arg === 'string' || typeof arg === 'number') {\n\t\t\treturn this && this[arg] || arg;\n\t\t}\n\n\t\tif (typeof arg !== 'object') {\n\t\t\treturn '';\n\t\t}\n\n\t\tif (Array.isArray(arg)) {\n\t\t\treturn classNames.apply(this, arg);\n\t\t}\n\n\t\tif (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {\n\t\t\treturn arg.toString();\n\t\t}\n\n\t\tvar classes = '';\n\n\t\tfor (var key in arg) {\n\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\tclasses = appendClass(classes, this && this[key] || key);\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction appendClass (value, newClass) {\n\t\tif (!newClass) {\n\t\t\treturn value;\n\t\t}\n\t\n\t\tif (value) {\n\t\t\treturn value + ' ' + newClass;\n\t\t}\n\t\n\t\treturn value + newClass;\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n","import React, { Children, type ReactNode } from \"react\";\nimport type { BaseProps } from \"@purpurds/common-types\";\nimport c from \"classnames/bind\";\n\nimport { type ContentBlockProps } from \"./content-block\";\nimport styles from \"./content-block-group.module.scss\";\n\nconst cx = c.bind(styles);\nconst rootClassName = \"purpur-content-block-group\";\n\nexport type ContentBlockGroupProps = Omit<BaseProps, \"children\"> & {\n children: ReactNode;\n negative?: boolean;\n};\n\nexport const ContentBlockGroup = ({\n children,\n className,\n negative,\n ...props\n}: ContentBlockGroupProps) => {\n const classes = cx([\n rootClassName,\n {\n [`${rootClassName}--negative`]: negative,\n },\n className,\n ]);\n\n const renderChildren = () =>\n Children.map(children, (child) => {\n if (React.isValidElement<ContentBlockProps>(child)) {\n return React.cloneElement(child, { negative });\n }\n return child;\n });\n\n return (\n <div className={classes} {...props}>\n {renderChildren()}\n </div>\n );\n};\n\nContentBlockGroup.displayName = \"ContentBlockGroup\";\n","import React, { type ReactNode } from \"react\";\nimport type { BaseProps } from \"@purpurds/common-types\";\nimport { Heading, type HeadingTagType } from \"@purpurds/heading\";\nimport { IconCheckmark } from \"@purpurds/icon/checkmark\";\nimport { Paragraph } from \"@purpurds/paragraph\";\nimport c from \"classnames/bind\";\n\nimport styles from \"./content-block.module.scss\";\nimport { ContentBlockGroup } from \"./content-block-group\";\n\nconst cx = c.bind(styles);\nconst rootClassName = \"purpur-content-block\";\n\nexport type ContentBlockProps = BaseProps & {\n negative?: boolean;\n image?: ReactNode;\n video?: ReactNode;\n badge?: ReactNode;\n actions?: ReactNode;\n listItems?: string[];\n title?: string;\n headingTag?: HeadingTagType;\n headingVariant?: \"title-100\" | \"title-200\" | \"title-300\";\n};\n\nexport const ContentBlock = ({\n className,\n negative,\n image,\n video,\n badge,\n title,\n actions,\n listItems,\n headingTag = \"h2\",\n headingVariant = \"title-300\",\n children,\n ...props\n}: ContentBlockProps) => {\n const classes = cx([\n rootClassName,\n {\n [`${rootClassName}--negative`]: negative,\n },\n className,\n ]);\n\n return (\n <div className={classes} {...props}>\n <div className={cx(`${rootClassName}__section`)}>\n {video ? (\n <div className={cx(`${rootClassName}__video-wrapper`)}>{video}</div>\n ) : (\n <div className={cx(`${rootClassName}__image-wrapper`)}>{image}</div>\n )}\n </div>\n <div className={cx(`${rootClassName}__section`)}>\n <div className={cx(`${rootClassName}__content-wrapper`)}>\n {badge && <div className={cx(`${rootClassName}__badge-wrapper`)}>{badge}</div>}\n {title?.trim() && (\n <Heading variant={headingVariant} tag={headingTag} negative={negative}>\n {title}\n </Heading>\n )}\n <div className={cx(`${rootClassName}__content`)}>{children}</div>\n {!!listItems?.length && (\n <ul className={cx(`${rootClassName}__list`)}>\n {listItems.map(\n (item) =>\n item && (\n <li className={cx(`${rootClassName}__list-item`)} key={item}>\n <IconCheckmark size=\"xs\" className={cx(`${rootClassName}__list-item-icon`)} />\n <Paragraph negative={negative}>{item}</Paragraph>\n </li>\n )\n )}\n </ul>\n )}\n {actions && <div className={cx(`${rootClassName}__actions`)}>{actions}</div>}\n </div>\n </div>\n </div>\n );\n};\n\nContentBlock.Group = ContentBlockGroup;\nContentBlock.displayName = \"ContentBlock\";\n"],"names":["g","l","o","y","s","t","i","a","d","c","f","n","v","u","T","_","h","r","p","m","e","x","S","b","A","hasOwn","classNames","classes","arg","appendClass","parseValue","key","value","newClass","module","cx","styles","rootClassName","ContentBlockGroup","children","className","negative","props","renderChildren","Children","child","React","ContentBlock","image","video","badge","title","actions","listItems","headingTag","headingVariant","jsxs","jsx","Heading","item","IconCheckmark","Paragraph"],"mappings":"wIACA,SAASA,EAAE,EAAG,CACZ,OAAO,GAAK,EAAE,YAAc,OAAO,UAAU,eAAe,KAAK,EAAG,SAAS,EAAI,EAAE,QAAU,CAC/F,CACA,IAAIC,EAAI,CAAE,QAAS,EAAE,EACjBC,EACJ,SAASC,GAAI,CACX,OAAOD,IAAMA,EAAI,GAAI,SAAS,EAAG,EAC9B,UAAW,CACV,IAAIE,EAAI,CAAA,EAAG,eACX,SAASC,GAAI,CACX,QAAS,EAAI,GAAI,EAAI,EAAG,EAAI,UAAU,OAAQ,IAAK,CACjD,IAAIC,EAAI,UAAU,CAAC,EACnBA,IAAM,EAAIC,EAAE,EAAGC,EAAEF,CAAC,CAAC,EACrB,CACA,OAAO,CACT,CACA,SAASE,EAAE,EAAG,CACZ,GAAI,OAAO,GAAK,UAAY,OAAO,GAAK,SACtC,OAAO,EACT,GAAI,OAAO,GAAK,SACd,MAAO,GACT,GAAI,MAAM,QAAQ,CAAC,EACjB,OAAOH,EAAE,MAAM,KAAM,CAAC,EACxB,GAAI,EAAE,WAAa,OAAO,UAAU,UAAY,CAAC,EAAE,SAAS,WAAW,SAAS,eAAe,EAC7F,OAAO,EAAE,SAAQ,EACnB,IAAI,EAAI,GACR,QAASC,KAAK,EACZF,EAAE,KAAK,EAAGE,CAAC,GAAK,EAAEA,CAAC,IAAM,EAAIC,EAAE,EAAGD,CAAC,GACrC,OAAO,CACT,CACA,SAASC,EAAE,EAAG,EAAG,CACf,OAAO,EAAI,EAAI,EAAI,IA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,CAAI,UAAWjB,EAAG,GAAGE,CAAa,WAAW,EAAI,SAAAe,CAAA,CAAQ,CAAA,CAAA,CACxE,CAAA,CACF,CAAA,EACF,CAEJ,EAEAL,EAAa,MAAQT,EACrBS,EAAa,YAAc","x_google_ignoreList":[4]}
|
|
1
|
+
{"version":3,"file":"content-block.cjs.js","sources":["../../heading/dist/heading.es.js","../../icon/dist/icon-DNHpBTHs.mjs","../../icon/dist/components/checkmark.es.js","../../paragraph/dist/paragraph.es.js","../../../common/temp/node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/bind.js","../src/content-block-group.tsx","../src/content-block.tsx"],"sourcesContent":["import { jsx as h } from \"react/jsx-runtime\";\nfunction g(p) {\n return p && p.__esModule && Object.prototype.hasOwnProperty.call(p, \"default\") ? p.default : p;\n}\nvar l = { exports: {} };\nvar o;\nfunction y() {\n return o || (o = 1, (function(p) {\n (function() {\n var s = {}.hasOwnProperty;\n function t() {\n for (var r = \"\", e = 0; e < arguments.length; e++) {\n var i = arguments[e];\n i && (r = a(r, d(i)));\n }\n return r;\n }\n function d(r) {\n if (typeof r == \"string\" || typeof r == \"number\")\n return r;\n if (typeof r != \"object\")\n return \"\";\n if (Array.isArray(r))\n return t.apply(null, r);\n if (r.toString !== Object.prototype.toString && !r.toString.toString().includes(\"[native code]\"))\n return r.toString();\n var e = \"\";\n for (var i in r)\n s.call(r, i) && r[i] && (e = a(e, i));\n return e;\n }\n function a(r, e) {\n return e ? r ? r + \" \" + e : r + e : r;\n }\n p.exports ? (t.default = t, p.exports = t) : window.classNames = t;\n })();\n })(l)), l.exports;\n}\nvar c = y();\nconst f = /* @__PURE__ */ g(c), n = {\n \"purpur-heading\": \"_purpur-heading_vo751_1\",\n \"purpur-heading--hyphens\": \"_purpur-heading--hyphens_vo751_8\",\n \"purpur-heading--negative\": \"_purpur-heading--negative_vo751_11\",\n \"purpur-heading--subsection-100\": \"_purpur-heading--subsection-100_vo751_14\",\n \"purpur-heading--title-100\": \"_purpur-heading--title-100_vo751_20\",\n \"purpur-heading--title-200\": \"_purpur-heading--title-200_vo751_26\",\n \"purpur-heading--title-300\": \"_purpur-heading--title-300_vo751_32\",\n \"purpur-heading--title-400\": \"_purpur-heading--title-400_vo751_38\",\n \"purpur-heading--title-500\": \"_purpur-heading--title-500_vo751_44\",\n \"purpur-heading--title-600\": \"_purpur-heading--title-600_vo751_50\",\n \"purpur-heading--title-700\": \"_purpur-heading--title-700_vo751_56\",\n \"purpur-heading--display-5\": \"_purpur-heading--display-5_vo751_62\",\n \"purpur-heading--display-10\": \"_purpur-heading--display-10_vo751_68\",\n \"purpur-heading--display-15\": \"_purpur-heading--display-15_vo751_74\",\n \"purpur-heading--display-20\": \"_purpur-heading--display-20_vo751_80\",\n \"purpur-heading--display-25\": \"_purpur-heading--display-25_vo751_86\",\n \"purpur-heading--display-50\": \"_purpur-heading--display-50_vo751_92\",\n \"purpur-heading--display-100\": \"_purpur-heading--display-100_vo751_98\",\n \"purpur-heading--display-200\": \"_purpur-heading--display-200_vo751_104\"\n}, L = {\n H1: \"h1\",\n H2: \"h2\",\n H3: \"h3\",\n H4: \"h4\",\n H5: \"h5\",\n H6: \"h6\"\n}, v = {\n TITLE100: \"title-100\",\n TITLE200: \"title-200\",\n TITLE300: \"title-300\",\n TITLE400: \"title-400\",\n TITLE500: \"title-500\",\n TITLE600: \"title-600\",\n TITLE700: \"title-700\",\n SUBSECTION100: \"subsection-100\"\n}, S = {\n DISPLAY5: \"display-5\",\n DISPLAY10: \"display-10\",\n DISPLAY15: \"display-15\",\n DISPLAY20: \"display-20\",\n DISPLAY25: \"display-25\",\n DISPLAY50: \"display-50\",\n DISPLAY100: \"display-100\",\n DISPLAY200: \"display-200\"\n}, u = \"purpur-heading\", T = ({\n children: p,\n className: s = \"\",\n enableHyphenation: t = !1,\n negative: d = !1,\n tag: a,\n variant: r = v.TITLE100,\n ...e\n}) => {\n const i = a, _ = f([\n s,\n n[u],\n n[`${u}--${r}`],\n {\n [n[`${u}--hyphens`]]: t,\n [n[`${u}--negative`]]: d\n }\n ]);\n return /* @__PURE__ */ h(i, { className: _, ...e, children: p });\n};\nT.displayName = \"Heading\";\nexport {\n S as DisplayVariant,\n T as Heading,\n L as HeadingTag,\n v as TitleVariant\n};\n//# sourceMappingURL=heading.es.js.map\n","import { jsx as a } from \"react/jsx-runtime\";\nfunction f(r) {\n return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, \"default\") ? r.default : r;\n}\nvar c = { exports: {} };\nvar p;\nfunction m() {\n return p || (p = 1, (function(r) {\n (function() {\n var e = {}.hasOwnProperty;\n function o() {\n for (var t = \"\", n = 0; n < arguments.length; n++) {\n var s = arguments[n];\n s && (t = i(t, u.call(this, s)));\n }\n return t;\n }\n function u(t) {\n if (typeof t == \"string\" || typeof t == \"number\")\n return this && this[t] || t;\n if (typeof t != \"object\")\n return \"\";\n if (Array.isArray(t))\n return o.apply(this, t);\n if (t.toString !== Object.prototype.toString && !t.toString.toString().includes(\"[native code]\"))\n return t.toString();\n var n = \"\";\n for (var s in t)\n e.call(t, s) && t[s] && (n = i(n, this && this[s] || s));\n return n;\n }\n function i(t, n) {\n return n ? t ? t + \" \" + n : t + n : t;\n }\n r.exports ? (o.default = o, r.exports = o) : window.classNames = o;\n })();\n })(c)), c.exports;\n}\nvar _ = m();\nconst v = /* @__PURE__ */ f(_), d = {\n \"purpur-icon\": \"_purpur-icon_8u1lq_1\",\n \"purpur-icon--xxs\": \"_purpur-icon--xxs_8u1lq_4\",\n \"purpur-icon--xs\": \"_purpur-icon--xs_8u1lq_8\",\n \"purpur-icon--sm\": \"_purpur-icon--sm_8u1lq_12\",\n \"purpur-icon--md\": \"_purpur-icon--md_8u1lq_16\",\n \"purpur-icon--lg\": \"_purpur-icon--lg_8u1lq_20\",\n \"purpur-icon--xl\": \"_purpur-icon--xl_8u1lq_24\"\n}, g = v.bind(d), l = \"purpur-icon\", x = \"md\", h = (r) => r.filter((e) => Object.keys(e).length >= 1).map((e) => `${e.name}=\"${e.value}\"`).join(\" \"), y = ({ content: r = \"\", title: e } = {}) => {\n const o = [\n { name: \"xmlns\", value: \"http://www.w3.org/2000/svg\" },\n { name: \"fill\", value: \"currentColor\" },\n { name: \"viewBox\", value: \"0 0 24 24\" },\n e ? { name: \"role\", value: \"img\" } : { name: \"aria-hidden\", value: \"true\" }\n ], u = e ? `<title>${e}</title>` : \"\";\n return `<svg ${h(o)}>${u}${r}</svg>`;\n}, S = (r) => r.replace(/<(\\/?)svg([^>]*)>/g, \"\").trim(), b = ({ svg: r, allyTitle: e, className: o, size: u = x, ...i }) => {\n const t = y({\n content: S(r.svg),\n title: e\n }), n = g(l, `${l}--${u}`, o);\n return /* @__PURE__ */ a(\"span\", { className: n, dangerouslySetInnerHTML: { __html: t }, ...i });\n};\nb.displayName = \"Icon\";\nexport {\n b as I\n};\n//# sourceMappingURL=icon-DNHpBTHs.mjs.map\n","import { jsx as o } from \"react/jsx-runtime\";\nimport { I as r } from \"../icon-DNHpBTHs.mjs\";\nconst c = {\n name: \"checkmark\",\n svg: '<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><path fill-rule=\"evenodd\" d=\"M21.06 3.795a.9.9 0 0 1 .145 1.264l-11.5 14.5a.9.9 0 0 1-1.341.077l-6-6a.9.9 0 0 1 1.272-1.272l5.286 5.286L19.795 3.94a.9.9 0 0 1 1.264-.145Z\" clip-rule=\"evenodd\"/></svg>',\n keywords: [\"checkmark\"],\n category: \"utility\"\n}, a = (e) => /* @__PURE__ */ o(r, { ...e, svg: c });\na.displayName = \"IconCheckmark\";\nexport {\n a as IconCheckmark\n};\n//# sourceMappingURL=checkmark.es.js.map\n","import { jsx as l } from \"react/jsx-runtime\";\nfunction d(p) {\n return p && p.__esModule && Object.prototype.hasOwnProperty.call(p, \"default\") ? p.default : p;\n}\nvar h = { exports: {} };\nvar s;\nfunction _() {\n return s || (s = 1, (function(p) {\n (function() {\n var n = {}.hasOwnProperty;\n function u() {\n for (var r = \"\", a = 0; a < arguments.length; a++) {\n var e = arguments[a];\n e && (r = i(r, o.call(this, e)));\n }\n return r;\n }\n function o(r) {\n if (typeof r == \"string\" || typeof r == \"number\")\n return this && this[r] || r;\n if (typeof r != \"object\")\n return \"\";\n if (Array.isArray(r))\n return u.apply(this, r);\n if (r.toString !== Object.prototype.toString && !r.toString.toString().includes(\"[native code]\"))\n return r.toString();\n var a = \"\";\n for (var e in r)\n n.call(r, e) && r[e] && (a = i(a, this && this[e] || e));\n return a;\n }\n function i(r, a) {\n return a ? r ? r + \" \" + a : r + a : r;\n }\n p.exports ? (u.default = u, p.exports = u) : window.classNames = u;\n })();\n })(h)), h.exports;\n}\nvar g = _();\nconst v = /* @__PURE__ */ d(g), c = {\n \"purpur-paragraph\": \"_purpur-paragraph_1vz75_1\",\n \"purpur-paragraph--disabled\": \"_purpur-paragraph--disabled_1vz75_7\",\n \"purpur-paragraph--hyphens\": \"_purpur-paragraph--hyphens_1vz75_10\",\n \"purpur-paragraph--negative\": \"_purpur-paragraph--negative_1vz75_13\",\n \"purpur-paragraph--paragraph-100\": \"_purpur-paragraph--paragraph-100_1vz75_16\",\n \"purpur-paragraph--paragraph-100-medium\": \"_purpur-paragraph--paragraph-100-medium_1vz75_22\",\n \"purpur-paragraph--paragraph-100-bold\": \"_purpur-paragraph--paragraph-100-bold_1vz75_29\",\n \"purpur-paragraph--paragraph-200\": \"_purpur-paragraph--paragraph-200_1vz75_36\",\n \"purpur-paragraph--preamble-100\": \"_purpur-paragraph--preamble-100_1vz75_42\",\n \"purpur-paragraph--preamble-200\": \"_purpur-paragraph--preamble-200_1vz75_48\",\n \"purpur-paragraph--additional-100\": \"_purpur-paragraph--additional-100_1vz75_54\",\n \"purpur-paragraph--additional-100-medium\": \"_purpur-paragraph--additional-100-medium_1vz75_60\",\n \"purpur-paragraph--additional-100-bold\": \"_purpur-paragraph--additional-100-bold_1vz75_67\",\n \"purpur-paragraph--overline-100\": \"_purpur-paragraph--overline-100_1vz75_74\",\n \"purpur-paragraph--overline-200\": \"_purpur-paragraph--overline-200_1vz75_82\"\n}, f = v.bind(c), m = {\n PARAGRAPH100: \"paragraph-100\",\n PARAGRAPH100MEDIUM: \"paragraph-100-medium\",\n PARAGRAPH100BOLD: \"paragraph-100-bold\",\n PARAGRAPH200: \"paragraph-200\",\n PREAMBLE100: \"preamble-100\",\n PREAMBLE200: \"preamble-200\",\n ADDITIONAL100: \"additional-100\",\n ADDITIONAL100MEDIUM: \"additional-100-medium\",\n ADDITIONAL100BOLD: \"additional-100-bold\",\n OVERLINE100: \"overline-100\",\n OVERLINE200: \"overline-200\"\n}, t = \"purpur-paragraph\", A = ({\n children: p,\n className: n,\n disabled: u,\n enableHyphenation: o = !1,\n negative: i = !1,\n variant: r = m.PARAGRAPH100,\n ...a\n}) => {\n const e = f(n, t, `${t}--${r}`, {\n [`${t}--hyphens`]: o,\n [`${t}--disabled`]: u,\n [`${t}--negative`]: i\n });\n return /* @__PURE__ */ l(\"p\", { ...a, className: e, children: p });\n};\nA.displayName = \"Paragraph\";\nexport {\n A as Paragraph,\n m as ParagraphVariant\n};\n//# sourceMappingURL=paragraph.es.js.map\n","/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = '';\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (arg) {\n\t\t\t\tclasses = appendClass(classes, parseValue.call(this, arg));\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction parseValue (arg) {\n\t\tif (typeof arg === 'string' || typeof arg === 'number') {\n\t\t\treturn this && this[arg] || arg;\n\t\t}\n\n\t\tif (typeof arg !== 'object') {\n\t\t\treturn '';\n\t\t}\n\n\t\tif (Array.isArray(arg)) {\n\t\t\treturn classNames.apply(this, arg);\n\t\t}\n\n\t\tif (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {\n\t\t\treturn arg.toString();\n\t\t}\n\n\t\tvar classes = '';\n\n\t\tfor (var key in arg) {\n\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\tclasses = appendClass(classes, this && this[key] || key);\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction appendClass (value, newClass) {\n\t\tif (!newClass) {\n\t\t\treturn value;\n\t\t}\n\t\n\t\tif (value) {\n\t\t\treturn value + ' ' + newClass;\n\t\t}\n\t\n\t\treturn value + newClass;\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n","import React, { createContext, type ReactNode } from \"react\";\nimport type { BaseProps } from \"@purpurds/common-types\";\nimport c from \"classnames/bind\";\n\nimport styles from \"./content-block-group.module.scss\";\n\nconst cx = c.bind(styles);\nconst rootClassName = \"purpur-content-block-group\";\n\nexport const ContentBlockGroupContext = createContext<{\n negative?: boolean;\n reverse?: boolean;\n} | null>(null);\n\nexport type ContentBlockGroupProps = Omit<BaseProps, \"children\"> & {\n children: ReactNode;\n negative?: boolean;\n mediaStartPosition?: \"left\" | \"right\";\n};\n\nexport const ContentBlockGroup = ({\n children,\n className,\n negative,\n mediaStartPosition = \"left\",\n ...props\n}: ContentBlockGroupProps) => {\n const classes = cx([\n rootClassName,\n {\n [`${rootClassName}--negative`]: negative,\n },\n className,\n ]);\n\n return (\n <div className={classes} {...props}>\n <ContentBlockGroupContext.Provider\n value={{ negative, reverse: mediaStartPosition === \"right\" }}\n >\n {children}\n </ContentBlockGroupContext.Provider>\n </div>\n );\n};\n\nContentBlockGroup.displayName = \"ContentBlockGroup\";\n","import React, { type ReactNode, useContext } from \"react\";\nimport type { BaseProps } from \"@purpurds/common-types\";\nimport { Heading, type HeadingTagType } from \"@purpurds/heading\";\nimport { IconCheckmark } from \"@purpurds/icon/checkmark\";\nimport { Paragraph } from \"@purpurds/paragraph\";\nimport c from \"classnames/bind\";\n\nimport styles from \"./content-block.module.scss\";\nimport { ContentBlockGroup, ContentBlockGroupContext } from \"./content-block-group\";\n\nconst cx = c.bind(styles);\nconst rootClassName = \"purpur-content-block\";\n\nexport type ContentBlockProps = BaseProps & {\n /**\n * @deprecated Set negative on ContentBlockGroup instead\n */\n negative?: boolean;\n image?: ReactNode;\n video?: ReactNode;\n /**\n * @deprecated Use beforeTitle instead\n */\n badge?: ReactNode;\n actions?: ReactNode;\n listItems?: string[];\n beforeTitle?: ReactNode;\n title?: string;\n headingTag?: HeadingTagType;\n headingVariant?: \"title-100\" | \"title-200\" | \"title-300\";\n};\n\nexport const ContentBlock = ({\n className,\n negative,\n image,\n video,\n badge,\n beforeTitle,\n title,\n actions,\n listItems,\n headingTag = \"h2\",\n headingVariant = \"title-300\",\n children,\n ...props\n}: ContentBlockProps) => {\n const context = useContext(ContentBlockGroupContext);\n\n const classes = cx([\n rootClassName,\n {\n [`${rootClassName}--negative`]: context?.negative || negative,\n [`${rootClassName}--reverse`]: context?.reverse,\n },\n className,\n ]);\n\n return (\n <div className={classes} {...props}>\n <div className={cx(`${rootClassName}__section`)}>\n {video ? (\n <div className={cx(`${rootClassName}__video-wrapper`)}>{video}</div>\n ) : (\n <div className={cx(`${rootClassName}__image-wrapper`)}>{image}</div>\n )}\n </div>\n <div className={cx(`${rootClassName}__section`)}>\n <div className={cx(`${rootClassName}__content-wrapper`)}>\n {badge && <div className={cx(`${rootClassName}__badge-wrapper`)}>{badge}</div>}\n {beforeTitle}\n {title?.trim() && (\n <Heading variant={headingVariant} tag={headingTag} negative={negative}>\n {title}\n </Heading>\n )}\n <div className={cx(`${rootClassName}__content`)}>{children}</div>\n {!!listItems?.length && (\n <ul className={cx(`${rootClassName}__list`)}>\n {listItems.map(\n (item) =>\n item && (\n <li className={cx(`${rootClassName}__list-item`)} key={item}>\n <IconCheckmark size=\"xs\" className={cx(`${rootClassName}__list-item-icon`)} />\n <Paragraph negative={negative}>{item}</Paragraph>\n </li>\n )\n )}\n </ul>\n )}\n {actions && <div className={cx(`${rootClassName}__actions`)}>{actions}</div>}\n </div>\n </div>\n </div>\n );\n};\n\nContentBlock.Group = ContentBlockGroup;\nContentBlock.displayName = \"ContentBlock\";\n"],"names":["g","p","l","o","y","s","t","i","a","d","c","f","n","v","u","T","h","r","m","e","_","x","S","b","A","hasOwn","classNames","classes","arg","appendClass","parseValue","key","value","newClass","module","cx","styles","rootClassName","ContentBlockGroupContext","createContext","ContentBlockGroup","children","className","negative","mediaStartPosition","props","jsx","ContentBlock","image","video","badge","beforeTitle","title","actions","listItems","headingTag","headingVariant","context","useContext","jsxs","Heading","item","IconCheckmark","Paragraph"],"mappings":"wIACA,SAASA,EAAEC,EAAG,CACZ,OAAOA,GAAKA,EAAE,YAAc,OAAO,UAAU,eAAe,KAAKA,EAAG,SAAS,EAAIA,EAAE,QAAUA,CAC/F,CACA,IAAIC,EAAI,CAAE,QAAS,EAAE,EACjBC,EACJ,SAASC,GAAI,CACX,OAAOD,IAAMA,EAAI,GAAI,SAASF,EAAG,EAC9B,UAAW,CACV,IAAII,EAAI,CAAA,EAAG,eACX,SAASC,GAAI,CACX,QAAS,EAAI,GAAI,EAAI,EAAG,EAAI,UAAU,OAAQ,IAAK,CACjD,IAAIC,EAAI,UAAU,CAAC,EACnBA,IAAM,EAAIC,EAAE,EAAGC,EAAEF,CAAC,CAAC,EACrB,CACA,OAAO,CACT,CACA,SAASE,EAAE,EAAG,CACZ,GAAI,OAAO,GAAK,UAAY,OAAO,GAAK,SACtC,OAAO,EACT,GAAI,OAAO,GAAK,SACd,MAAO,GACT,GAAI,MAAM,QAAQ,CAAC,EAC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AAAS,CAAA,CACH,EAEFN,MAAC,OAAI,UAAWX,EAAG,GAAGE,CAAa,WAAW,EAAI,SAAAI,EAAS,EAC1D,CAAC,CAACa,GAAW,QACZR,EAAAA,IAAC,KAAA,CAAG,UAAWX,EAAG,GAAGE,CAAa,QAAQ,EACvC,SAAAiB,EAAU,IACRO,GACCA,GACEF,EAAAA,KAAC,KAAA,CAAG,UAAWxB,EAAG,GAAGE,CAAa,aAAa,EAC7C,SAAA,CAAAS,EAAAA,IAACgB,EAAA,CAAc,KAAK,KAAK,UAAW3B,EAAG,GAAGE,CAAa,kBAAkB,CAAA,CAAG,EAC5ES,EAAAA,IAACiB,EAAA,CAAU,SAAApB,EAAqB,SAAAkB,CAAA,CAAK,CAAA,CAAA,EAFgBA,CAGvD,CAAA,EAGR,EAEDR,SAAY,MAAA,CAAI,UAAWlB,EAAG,GAAGE,CAAa,WAAW,EAAI,SAAAgB,CAAA,CAAQ,CAAA,CAAA,CACxE,CAAA,CACF,CAAA,EACF,CAEJ,EAEAN,EAAa,MAAQP,EACrBO,EAAa,YAAc","x_google_ignoreList":[4]}
|
package/dist/content-block.d.ts
CHANGED
|
@@ -2,20 +2,27 @@ import { default as React, ReactNode } from 'react';
|
|
|
2
2
|
import { BaseProps } from '@purpurds/common-types';
|
|
3
3
|
import { HeadingTagType } from '@purpurds/heading';
|
|
4
4
|
export type ContentBlockProps = BaseProps & {
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated Set negative on ContentBlockGroup instead
|
|
7
|
+
*/
|
|
5
8
|
negative?: boolean;
|
|
6
9
|
image?: ReactNode;
|
|
7
10
|
video?: ReactNode;
|
|
11
|
+
/**
|
|
12
|
+
* @deprecated Use beforeTitle instead
|
|
13
|
+
*/
|
|
8
14
|
badge?: ReactNode;
|
|
9
15
|
actions?: ReactNode;
|
|
10
16
|
listItems?: string[];
|
|
17
|
+
beforeTitle?: ReactNode;
|
|
11
18
|
title?: string;
|
|
12
19
|
headingTag?: HeadingTagType;
|
|
13
20
|
headingVariant?: "title-100" | "title-200" | "title-300";
|
|
14
21
|
};
|
|
15
22
|
export declare const ContentBlock: {
|
|
16
|
-
({ className, negative, image, video, badge, title, actions, listItems, headingTag, headingVariant, children, ...props }: ContentBlockProps): React.JSX.Element;
|
|
23
|
+
({ className, negative, image, video, badge, beforeTitle, title, actions, listItems, headingTag, headingVariant, children, ...props }: ContentBlockProps): React.JSX.Element;
|
|
17
24
|
Group: {
|
|
18
|
-
({ children, className, negative, ...props }: import('./content-block-group').ContentBlockGroupProps): React.JSX.Element;
|
|
25
|
+
({ children, className, negative, mediaStartPosition, ...props }: import('./content-block-group').ContentBlockGroupProps): React.JSX.Element;
|
|
19
26
|
displayName: string;
|
|
20
27
|
};
|
|
21
28
|
displayName: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"content-block.d.ts","sourceRoot":"","sources":["../src/content-block.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,KAAK,SAAS,
|
|
1
|
+
{"version":3,"file":"content-block.d.ts","sourceRoot":"","sources":["../src/content-block.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,KAAK,SAAS,EAAc,MAAM,OAAO,CAAC;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAW,KAAK,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAWjE,MAAM,MAAM,iBAAiB,GAAG,SAAS,GAAG;IAC1C;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,cAAc,CAAC;IAC5B,cAAc,CAAC,EAAE,WAAW,GAAG,WAAW,GAAG,WAAW,CAAC;CAC1D,CAAC;AAEF,eAAO,MAAM,YAAY;2IActB,iBAAiB;;;;;;CAiDnB,CAAC"}
|
package/dist/content-block.es.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as o, jsxs as v } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
function
|
|
2
|
+
import { createContext as I, useContext as L } from "react";
|
|
3
|
+
function D(p) {
|
|
4
4
|
return p && p.__esModule && Object.prototype.hasOwnProperty.call(p, "default") ? p.default : p;
|
|
5
5
|
}
|
|
6
|
-
var
|
|
7
|
-
function
|
|
8
|
-
return
|
|
6
|
+
var b = { exports: {} }, y;
|
|
7
|
+
function F() {
|
|
8
|
+
return y || (y = 1, (function(p) {
|
|
9
9
|
(function() {
|
|
10
10
|
var a = {}.hasOwnProperty;
|
|
11
11
|
function n() {
|
|
@@ -34,10 +34,10 @@ function I() {
|
|
|
34
34
|
}
|
|
35
35
|
p.exports ? (n.default = n, p.exports = n) : window.classNames = n;
|
|
36
36
|
})();
|
|
37
|
-
})(
|
|
37
|
+
})(b)), b.exports;
|
|
38
38
|
}
|
|
39
|
-
var
|
|
40
|
-
const
|
|
39
|
+
var V = F();
|
|
40
|
+
const Z = /* @__PURE__ */ D(V), d = {
|
|
41
41
|
"purpur-heading": "_purpur-heading_vo751_1",
|
|
42
42
|
"purpur-heading--hyphens": "_purpur-heading--hyphens_vo751_8",
|
|
43
43
|
"purpur-heading--negative": "_purpur-heading--negative_vo751_11",
|
|
@@ -57,34 +57,34 @@ const V = /* @__PURE__ */ G(L), _ = {
|
|
|
57
57
|
"purpur-heading--display-50": "_purpur-heading--display-50_vo751_92",
|
|
58
58
|
"purpur-heading--display-100": "_purpur-heading--display-100_vo751_98",
|
|
59
59
|
"purpur-heading--display-200": "_purpur-heading--display-200_vo751_104"
|
|
60
|
-
},
|
|
60
|
+
}, J = {
|
|
61
61
|
TITLE100: "title-100"
|
|
62
|
-
},
|
|
62
|
+
}, h = "purpur-heading", S = ({
|
|
63
63
|
children: p,
|
|
64
64
|
className: a = "",
|
|
65
65
|
enableHyphenation: n = !1,
|
|
66
66
|
negative: i = !1,
|
|
67
67
|
tag: u,
|
|
68
|
-
variant: r =
|
|
68
|
+
variant: r = J.TITLE100,
|
|
69
69
|
...e
|
|
70
70
|
}) => {
|
|
71
|
-
const t = u,
|
|
71
|
+
const t = u, _ = Z([
|
|
72
72
|
a,
|
|
73
|
-
|
|
74
|
-
|
|
73
|
+
d[h],
|
|
74
|
+
d[`${h}--${r}`],
|
|
75
75
|
{
|
|
76
|
-
[
|
|
77
|
-
[
|
|
76
|
+
[d[`${h}--hyphens`]]: n,
|
|
77
|
+
[d[`${h}--negative`]]: i
|
|
78
78
|
}
|
|
79
79
|
]);
|
|
80
|
-
return /* @__PURE__ */ o(t, { className:
|
|
80
|
+
return /* @__PURE__ */ o(t, { className: _, ...e, children: p });
|
|
81
81
|
};
|
|
82
|
-
|
|
83
|
-
function
|
|
82
|
+
S.displayName = "Heading";
|
|
83
|
+
function K(p) {
|
|
84
84
|
return p && p.__esModule && Object.prototype.hasOwnProperty.call(p, "default") ? p.default : p;
|
|
85
85
|
}
|
|
86
86
|
var $ = { exports: {} }, k;
|
|
87
|
-
function
|
|
87
|
+
function Q() {
|
|
88
88
|
return k || (k = 1, (function(p) {
|
|
89
89
|
(function() {
|
|
90
90
|
var a = {}.hasOwnProperty;
|
|
@@ -116,8 +116,8 @@ function Z() {
|
|
|
116
116
|
})();
|
|
117
117
|
})($)), $.exports;
|
|
118
118
|
}
|
|
119
|
-
var
|
|
120
|
-
const
|
|
119
|
+
var U = Q();
|
|
120
|
+
const W = /* @__PURE__ */ K(U), X = {
|
|
121
121
|
"purpur-icon": "_purpur-icon_8u1lq_1",
|
|
122
122
|
"purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
|
|
123
123
|
"purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
|
|
@@ -125,34 +125,34 @@ const K = /* @__PURE__ */ F(J), Q = {
|
|
|
125
125
|
"purpur-icon--md": "_purpur-icon--md_8u1lq_16",
|
|
126
126
|
"purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
|
|
127
127
|
"purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
|
|
128
|
-
},
|
|
128
|
+
}, Y = W.bind(X), x = "purpur-icon", rr = "md", er = (p) => p.filter((a) => Object.keys(a).length >= 1).map((a) => `${a.name}="${a.value}"`).join(" "), pr = ({ content: p = "", title: a } = {}) => {
|
|
129
129
|
const n = [
|
|
130
130
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
|
131
131
|
{ name: "fill", value: "currentColor" },
|
|
132
132
|
{ name: "viewBox", value: "0 0 24 24" },
|
|
133
133
|
a ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
|
|
134
134
|
], i = a ? `<title>${a}</title>` : "";
|
|
135
|
-
return `<svg ${
|
|
136
|
-
},
|
|
137
|
-
const r =
|
|
138
|
-
content:
|
|
135
|
+
return `<svg ${er(n)}>${i}${p}</svg>`;
|
|
136
|
+
}, tr = (p) => p.replace(/<(\/?)svg([^>]*)>/g, "").trim(), z = ({ svg: p, allyTitle: a, className: n, size: i = rr, ...u }) => {
|
|
137
|
+
const r = pr({
|
|
138
|
+
content: tr(p.svg),
|
|
139
139
|
title: a
|
|
140
|
-
}), e =
|
|
140
|
+
}), e = Y(x, `${x}--${i}`, n);
|
|
141
141
|
return /* @__PURE__ */ o("span", { className: e, dangerouslySetInnerHTML: { __html: r }, ...u });
|
|
142
142
|
};
|
|
143
|
-
|
|
144
|
-
const
|
|
143
|
+
z.displayName = "Icon";
|
|
144
|
+
const nr = {
|
|
145
145
|
name: "checkmark",
|
|
146
146
|
svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M21.06 3.795a.9.9 0 0 1 .145 1.264l-11.5 14.5a.9.9 0 0 1-1.341.077l-6-6a.9.9 0 0 1 1.272-1.272l5.286 5.286L19.795 3.94a.9.9 0 0 1 1.264-.145Z" clip-rule="evenodd"/></svg>',
|
|
147
147
|
keywords: ["checkmark"],
|
|
148
148
|
category: "utility"
|
|
149
|
-
},
|
|
150
|
-
|
|
151
|
-
function
|
|
149
|
+
}, O = (p) => /* @__PURE__ */ o(z, { ...p, svg: nr });
|
|
150
|
+
O.displayName = "IconCheckmark";
|
|
151
|
+
function ar(p) {
|
|
152
152
|
return p && p.__esModule && Object.prototype.hasOwnProperty.call(p, "default") ? p.default : p;
|
|
153
153
|
}
|
|
154
|
-
var
|
|
155
|
-
function
|
|
154
|
+
var w = { exports: {} }, N;
|
|
155
|
+
function ur() {
|
|
156
156
|
return N || (N = 1, (function(p) {
|
|
157
157
|
(function() {
|
|
158
158
|
var a = {}.hasOwnProperty;
|
|
@@ -182,10 +182,10 @@ function tr() {
|
|
|
182
182
|
}
|
|
183
183
|
p.exports ? (n.default = n, p.exports = n) : window.classNames = n;
|
|
184
184
|
})();
|
|
185
|
-
})(
|
|
185
|
+
})(w)), w.exports;
|
|
186
186
|
}
|
|
187
|
-
var
|
|
188
|
-
const
|
|
187
|
+
var ir = ur();
|
|
188
|
+
const or = /* @__PURE__ */ ar(ir), lr = {
|
|
189
189
|
"purpur-paragraph": "_purpur-paragraph_1vz75_1",
|
|
190
190
|
"purpur-paragraph--disabled": "_purpur-paragraph--disabled_1vz75_7",
|
|
191
191
|
"purpur-paragraph--hyphens": "_purpur-paragraph--hyphens_1vz75_10",
|
|
@@ -201,32 +201,32 @@ const ar = /* @__PURE__ */ pr(nr), ur = {
|
|
|
201
201
|
"purpur-paragraph--additional-100-bold": "_purpur-paragraph--additional-100-bold_1vz75_67",
|
|
202
202
|
"purpur-paragraph--overline-100": "_purpur-paragraph--overline-100_1vz75_74",
|
|
203
203
|
"purpur-paragraph--overline-200": "_purpur-paragraph--overline-200_1vz75_82"
|
|
204
|
-
},
|
|
204
|
+
}, sr = or.bind(lr), cr = {
|
|
205
205
|
PARAGRAPH100: "paragraph-100"
|
|
206
|
-
}, c = "purpur-paragraph",
|
|
206
|
+
}, c = "purpur-paragraph", A = ({
|
|
207
207
|
children: p,
|
|
208
208
|
className: a,
|
|
209
209
|
disabled: n,
|
|
210
210
|
enableHyphenation: i = !1,
|
|
211
211
|
negative: u = !1,
|
|
212
|
-
variant: r =
|
|
212
|
+
variant: r = cr.PARAGRAPH100,
|
|
213
213
|
...e
|
|
214
214
|
}) => {
|
|
215
|
-
const t =
|
|
215
|
+
const t = sr(a, c, `${c}--${r}`, {
|
|
216
216
|
[`${c}--hyphens`]: i,
|
|
217
217
|
[`${c}--disabled`]: n,
|
|
218
218
|
[`${c}--negative`]: u
|
|
219
219
|
});
|
|
220
220
|
return /* @__PURE__ */ o("p", { ...e, className: t, children: p });
|
|
221
221
|
};
|
|
222
|
-
|
|
223
|
-
function
|
|
222
|
+
A.displayName = "Paragraph";
|
|
223
|
+
function _r(p) {
|
|
224
224
|
return p && p.__esModule && Object.prototype.hasOwnProperty.call(p, "default") ? p.default : p;
|
|
225
225
|
}
|
|
226
|
-
var
|
|
227
|
-
var
|
|
228
|
-
function
|
|
229
|
-
return
|
|
226
|
+
var m = { exports: {} };
|
|
227
|
+
var j;
|
|
228
|
+
function dr() {
|
|
229
|
+
return j || (j = 1, (function(p) {
|
|
230
230
|
(function() {
|
|
231
231
|
var a = {}.hasOwnProperty;
|
|
232
232
|
function n() {
|
|
@@ -255,81 +255,92 @@ function sr() {
|
|
|
255
255
|
}
|
|
256
256
|
p.exports ? (n.default = n, p.exports = n) : window.classNames = n;
|
|
257
257
|
})();
|
|
258
|
-
})(
|
|
258
|
+
})(m)), m.exports;
|
|
259
259
|
}
|
|
260
|
-
var
|
|
261
|
-
const
|
|
262
|
-
"purpur-content-block": "_purpur-content-
|
|
263
|
-
"purpur-content-
|
|
264
|
-
"purpur-content-
|
|
265
|
-
"purpur-content-
|
|
266
|
-
"purpur-content-
|
|
267
|
-
"purpur-content-
|
|
268
|
-
"purpur-content-
|
|
269
|
-
"purpur-content-
|
|
270
|
-
"purpur-content-block__list
|
|
271
|
-
"purpur-content-block__list-item
|
|
272
|
-
"purpur-content-
|
|
273
|
-
"purpur-content-
|
|
274
|
-
"purpur-content-
|
|
275
|
-
|
|
260
|
+
var hr = dr();
|
|
261
|
+
const P = /* @__PURE__ */ _r(hr), gr = {
|
|
262
|
+
"purpur-content-block": "_purpur-content-block_mjbqd_1",
|
|
263
|
+
"purpur-content-block--reverse": "_purpur-content-block--reverse_mjbqd_13",
|
|
264
|
+
"purpur-content-block__section": "_purpur-content-block__section_mjbqd_20",
|
|
265
|
+
"purpur-content-block__image-wrapper": "_purpur-content-block__image-wrapper_mjbqd_28",
|
|
266
|
+
"purpur-content-block__video-wrapper": "_purpur-content-block__video-wrapper_mjbqd_31",
|
|
267
|
+
"purpur-content-block__content-wrapper": "_purpur-content-block__content-wrapper_mjbqd_41",
|
|
268
|
+
"purpur-content-block__badge-wrapper": "_purpur-content-block__badge-wrapper_mjbqd_46",
|
|
269
|
+
"purpur-content-block__content": "_purpur-content-block__content_mjbqd_41",
|
|
270
|
+
"purpur-content-block__list": "_purpur-content-block__list_mjbqd_52",
|
|
271
|
+
"purpur-content-block__list-item": "_purpur-content-block__list-item_mjbqd_57",
|
|
272
|
+
"purpur-content-block__list-item-icon": "_purpur-content-block__list-item-icon_mjbqd_65",
|
|
273
|
+
"purpur-content-block__actions": "_purpur-content-block__actions_mjbqd_68",
|
|
274
|
+
"purpur-content-block--negative": "_purpur-content-block--negative_mjbqd_79",
|
|
275
|
+
"purpur-content-block__text-spacing": "_purpur-content-block__text-spacing_mjbqd_79"
|
|
276
|
+
}, vr = {
|
|
276
277
|
"purpur-content-block-group": "_purpur-content-block-group_xzyy2_1"
|
|
277
|
-
},
|
|
278
|
+
}, mr = P.bind(vr), q = "purpur-content-block-group", C = I(null), B = ({
|
|
278
279
|
children: p,
|
|
279
280
|
className: a,
|
|
280
281
|
negative: n,
|
|
281
|
-
|
|
282
|
+
mediaStartPosition: i = "left",
|
|
283
|
+
...u
|
|
282
284
|
}) => {
|
|
283
|
-
const
|
|
284
|
-
|
|
285
|
+
const r = mr([
|
|
286
|
+
q,
|
|
285
287
|
{
|
|
286
|
-
[`${
|
|
288
|
+
[`${q}--negative`]: n
|
|
287
289
|
},
|
|
288
290
|
a
|
|
289
291
|
]);
|
|
290
|
-
return /* @__PURE__ */ o("div", { className:
|
|
292
|
+
return /* @__PURE__ */ o("div", { className: r, ...u, children: /* @__PURE__ */ o(
|
|
293
|
+
C.Provider,
|
|
294
|
+
{
|
|
295
|
+
value: { negative: n, reverse: i === "right" },
|
|
296
|
+
children: p
|
|
297
|
+
}
|
|
298
|
+
) });
|
|
291
299
|
};
|
|
292
|
-
|
|
293
|
-
const s =
|
|
300
|
+
B.displayName = "ContentBlockGroup";
|
|
301
|
+
const s = P.bind(gr), l = "purpur-content-block", T = ({
|
|
294
302
|
className: p,
|
|
295
303
|
negative: a,
|
|
296
304
|
image: n,
|
|
297
305
|
video: i,
|
|
298
306
|
badge: u,
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
307
|
+
beforeTitle: r,
|
|
308
|
+
title: e,
|
|
309
|
+
actions: t,
|
|
310
|
+
listItems: _,
|
|
311
|
+
headingTag: G = "h2",
|
|
312
|
+
headingVariant: H = "title-300",
|
|
313
|
+
children: M,
|
|
314
|
+
...R
|
|
306
315
|
}) => {
|
|
307
|
-
const
|
|
316
|
+
const f = L(C), E = s([
|
|
308
317
|
l,
|
|
309
318
|
{
|
|
310
|
-
[`${l}--negative`]: a
|
|
319
|
+
[`${l}--negative`]: f?.negative || a,
|
|
320
|
+
[`${l}--reverse`]: f?.reverse
|
|
311
321
|
},
|
|
312
322
|
p
|
|
313
323
|
]);
|
|
314
|
-
return /* @__PURE__ */ v("div", { className:
|
|
324
|
+
return /* @__PURE__ */ v("div", { className: E, ...R, children: [
|
|
315
325
|
/* @__PURE__ */ o("div", { className: s(`${l}__section`), children: i ? /* @__PURE__ */ o("div", { className: s(`${l}__video-wrapper`), children: i }) : /* @__PURE__ */ o("div", { className: s(`${l}__image-wrapper`), children: n }) }),
|
|
316
326
|
/* @__PURE__ */ o("div", { className: s(`${l}__section`), children: /* @__PURE__ */ v("div", { className: s(`${l}__content-wrapper`), children: [
|
|
317
327
|
u && /* @__PURE__ */ o("div", { className: s(`${l}__badge-wrapper`), children: u }),
|
|
318
|
-
r
|
|
319
|
-
/* @__PURE__ */ o(
|
|
320
|
-
|
|
328
|
+
r,
|
|
329
|
+
e?.trim() && /* @__PURE__ */ o(S, { variant: H, tag: G, negative: a, children: e }),
|
|
330
|
+
/* @__PURE__ */ o("div", { className: s(`${l}__content`), children: M }),
|
|
331
|
+
!!_?.length && /* @__PURE__ */ o("ul", { className: s(`${l}__list`), children: _.map(
|
|
321
332
|
(g) => g && /* @__PURE__ */ v("li", { className: s(`${l}__list-item`), children: [
|
|
322
|
-
/* @__PURE__ */ o(
|
|
323
|
-
/* @__PURE__ */ o(
|
|
333
|
+
/* @__PURE__ */ o(O, { size: "xs", className: s(`${l}__list-item-icon`) }),
|
|
334
|
+
/* @__PURE__ */ o(A, { negative: a, children: g })
|
|
324
335
|
] }, g)
|
|
325
336
|
) }),
|
|
326
|
-
|
|
337
|
+
t && /* @__PURE__ */ o("div", { className: s(`${l}__actions`), children: t })
|
|
327
338
|
] }) })
|
|
328
339
|
] });
|
|
329
340
|
};
|
|
330
|
-
|
|
331
|
-
|
|
341
|
+
T.Group = B;
|
|
342
|
+
T.displayName = "ContentBlock";
|
|
332
343
|
export {
|
|
333
|
-
|
|
344
|
+
T as ContentBlock
|
|
334
345
|
};
|
|
335
346
|
//# sourceMappingURL=content-block.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"content-block.es.js","sources":["../../heading/dist/heading.es.js","../../icon/dist/icon-DNHpBTHs.mjs","../../icon/dist/components/checkmark.es.js","../../paragraph/dist/paragraph.es.js","../../../common/temp/node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/bind.js","../src/content-block-group.tsx","../src/content-block.tsx"],"sourcesContent":["import { jsx as h } from \"react/jsx-runtime\";\nfunction g(p) {\n return p && p.__esModule && Object.prototype.hasOwnProperty.call(p, \"default\") ? p.default : p;\n}\nvar l = { exports: {} };\nvar o;\nfunction y() {\n return o || (o = 1, (function(p) {\n (function() {\n var s = {}.hasOwnProperty;\n function t() {\n for (var r = \"\", e = 0; e < arguments.length; e++) {\n var i = arguments[e];\n i && (r = a(r, d(i)));\n }\n return r;\n }\n function d(r) {\n if (typeof r == \"string\" || typeof r == \"number\")\n return r;\n if (typeof r != \"object\")\n return \"\";\n if (Array.isArray(r))\n return t.apply(null, r);\n if (r.toString !== Object.prototype.toString && !r.toString.toString().includes(\"[native code]\"))\n return r.toString();\n var e = \"\";\n for (var i in r)\n s.call(r, i) && r[i] && (e = a(e, i));\n return e;\n }\n function a(r, e) {\n return e ? r ? r + \" \" + e : r + e : r;\n }\n p.exports ? (t.default = t, p.exports = t) : window.classNames = t;\n })();\n })(l)), l.exports;\n}\nvar c = y();\nconst f = /* @__PURE__ */ g(c), n = {\n \"purpur-heading\": \"_purpur-heading_vo751_1\",\n \"purpur-heading--hyphens\": \"_purpur-heading--hyphens_vo751_8\",\n \"purpur-heading--negative\": \"_purpur-heading--negative_vo751_11\",\n \"purpur-heading--subsection-100\": \"_purpur-heading--subsection-100_vo751_14\",\n \"purpur-heading--title-100\": \"_purpur-heading--title-100_vo751_20\",\n \"purpur-heading--title-200\": \"_purpur-heading--title-200_vo751_26\",\n \"purpur-heading--title-300\": \"_purpur-heading--title-300_vo751_32\",\n \"purpur-heading--title-400\": \"_purpur-heading--title-400_vo751_38\",\n \"purpur-heading--title-500\": \"_purpur-heading--title-500_vo751_44\",\n \"purpur-heading--title-600\": \"_purpur-heading--title-600_vo751_50\",\n \"purpur-heading--title-700\": \"_purpur-heading--title-700_vo751_56\",\n \"purpur-heading--display-5\": \"_purpur-heading--display-5_vo751_62\",\n \"purpur-heading--display-10\": \"_purpur-heading--display-10_vo751_68\",\n \"purpur-heading--display-15\": \"_purpur-heading--display-15_vo751_74\",\n \"purpur-heading--display-20\": \"_purpur-heading--display-20_vo751_80\",\n \"purpur-heading--display-25\": \"_purpur-heading--display-25_vo751_86\",\n \"purpur-heading--display-50\": \"_purpur-heading--display-50_vo751_92\",\n \"purpur-heading--display-100\": \"_purpur-heading--display-100_vo751_98\",\n \"purpur-heading--display-200\": \"_purpur-heading--display-200_vo751_104\"\n}, L = {\n H1: \"h1\",\n H2: \"h2\",\n H3: \"h3\",\n H4: \"h4\",\n H5: \"h5\",\n H6: \"h6\"\n}, v = {\n TITLE100: \"title-100\",\n TITLE200: \"title-200\",\n TITLE300: \"title-300\",\n TITLE400: \"title-400\",\n TITLE500: \"title-500\",\n TITLE600: \"title-600\",\n TITLE700: \"title-700\",\n SUBSECTION100: \"subsection-100\"\n}, S = {\n DISPLAY5: \"display-5\",\n DISPLAY10: \"display-10\",\n DISPLAY15: \"display-15\",\n DISPLAY20: \"display-20\",\n DISPLAY25: \"display-25\",\n DISPLAY50: \"display-50\",\n DISPLAY100: \"display-100\",\n DISPLAY200: \"display-200\"\n}, u = \"purpur-heading\", T = ({\n children: p,\n className: s = \"\",\n enableHyphenation: t = !1,\n negative: d = !1,\n tag: a,\n variant: r = v.TITLE100,\n ...e\n}) => {\n const i = a, _ = f([\n s,\n n[u],\n n[`${u}--${r}`],\n {\n [n[`${u}--hyphens`]]: t,\n [n[`${u}--negative`]]: d\n }\n ]);\n return /* @__PURE__ */ h(i, { className: _, ...e, children: p });\n};\nT.displayName = \"Heading\";\nexport {\n S as DisplayVariant,\n T as Heading,\n L as HeadingTag,\n v as TitleVariant\n};\n//# sourceMappingURL=heading.es.js.map\n","import { jsx as a } from \"react/jsx-runtime\";\nfunction f(r) {\n return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, \"default\") ? r.default : r;\n}\nvar c = { exports: {} };\nvar p;\nfunction m() {\n return p || (p = 1, (function(r) {\n (function() {\n var e = {}.hasOwnProperty;\n function o() {\n for (var t = \"\", n = 0; n < arguments.length; n++) {\n var s = arguments[n];\n s && (t = i(t, u.call(this, s)));\n }\n return t;\n }\n function u(t) {\n if (typeof t == \"string\" || typeof t == \"number\")\n return this && this[t] || t;\n if (typeof t != \"object\")\n return \"\";\n if (Array.isArray(t))\n return o.apply(this, t);\n if (t.toString !== Object.prototype.toString && !t.toString.toString().includes(\"[native code]\"))\n return t.toString();\n var n = \"\";\n for (var s in t)\n e.call(t, s) && t[s] && (n = i(n, this && this[s] || s));\n return n;\n }\n function i(t, n) {\n return n ? t ? t + \" \" + n : t + n : t;\n }\n r.exports ? (o.default = o, r.exports = o) : window.classNames = o;\n })();\n })(c)), c.exports;\n}\nvar _ = m();\nconst v = /* @__PURE__ */ f(_), d = {\n \"purpur-icon\": \"_purpur-icon_8u1lq_1\",\n \"purpur-icon--xxs\": \"_purpur-icon--xxs_8u1lq_4\",\n \"purpur-icon--xs\": \"_purpur-icon--xs_8u1lq_8\",\n \"purpur-icon--sm\": \"_purpur-icon--sm_8u1lq_12\",\n \"purpur-icon--md\": \"_purpur-icon--md_8u1lq_16\",\n \"purpur-icon--lg\": \"_purpur-icon--lg_8u1lq_20\",\n \"purpur-icon--xl\": \"_purpur-icon--xl_8u1lq_24\"\n}, g = v.bind(d), l = \"purpur-icon\", x = \"md\", h = (r) => r.filter((e) => Object.keys(e).length >= 1).map((e) => `${e.name}=\"${e.value}\"`).join(\" \"), y = ({ content: r = \"\", title: e } = {}) => {\n const o = [\n { name: \"xmlns\", value: \"http://www.w3.org/2000/svg\" },\n { name: \"fill\", value: \"currentColor\" },\n { name: \"viewBox\", value: \"0 0 24 24\" },\n e ? { name: \"role\", value: \"img\" } : { name: \"aria-hidden\", value: \"true\" }\n ], u = e ? `<title>${e}</title>` : \"\";\n return `<svg ${h(o)}>${u}${r}</svg>`;\n}, S = (r) => r.replace(/<(\\/?)svg([^>]*)>/g, \"\").trim(), b = ({ svg: r, allyTitle: e, className: o, size: u = x, ...i }) => {\n const t = y({\n content: S(r.svg),\n title: e\n }), n = g(l, `${l}--${u}`, o);\n return /* @__PURE__ */ a(\"span\", { className: n, dangerouslySetInnerHTML: { __html: t }, ...i });\n};\nb.displayName = \"Icon\";\nexport {\n b as I\n};\n//# sourceMappingURL=icon-DNHpBTHs.mjs.map\n","import { jsx as o } from \"react/jsx-runtime\";\nimport { I as r } from \"../icon-DNHpBTHs.mjs\";\nconst c = {\n name: \"checkmark\",\n svg: '<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><path fill-rule=\"evenodd\" d=\"M21.06 3.795a.9.9 0 0 1 .145 1.264l-11.5 14.5a.9.9 0 0 1-1.341.077l-6-6a.9.9 0 0 1 1.272-1.272l5.286 5.286L19.795 3.94a.9.9 0 0 1 1.264-.145Z\" clip-rule=\"evenodd\"/></svg>',\n keywords: [\"checkmark\"],\n category: \"utility\"\n}, a = (e) => /* @__PURE__ */ o(r, { ...e, svg: c });\na.displayName = \"IconCheckmark\";\nexport {\n a as IconCheckmark\n};\n//# sourceMappingURL=checkmark.es.js.map\n","import { jsx as l } from \"react/jsx-runtime\";\nfunction d(p) {\n return p && p.__esModule && Object.prototype.hasOwnProperty.call(p, \"default\") ? p.default : p;\n}\nvar h = { exports: {} };\nvar s;\nfunction _() {\n return s || (s = 1, (function(p) {\n (function() {\n var n = {}.hasOwnProperty;\n function u() {\n for (var r = \"\", a = 0; a < arguments.length; a++) {\n var e = arguments[a];\n e && (r = i(r, o.call(this, e)));\n }\n return r;\n }\n function o(r) {\n if (typeof r == \"string\" || typeof r == \"number\")\n return this && this[r] || r;\n if (typeof r != \"object\")\n return \"\";\n if (Array.isArray(r))\n return u.apply(this, r);\n if (r.toString !== Object.prototype.toString && !r.toString.toString().includes(\"[native code]\"))\n return r.toString();\n var a = \"\";\n for (var e in r)\n n.call(r, e) && r[e] && (a = i(a, this && this[e] || e));\n return a;\n }\n function i(r, a) {\n return a ? r ? r + \" \" + a : r + a : r;\n }\n p.exports ? (u.default = u, p.exports = u) : window.classNames = u;\n })();\n })(h)), h.exports;\n}\nvar g = _();\nconst v = /* @__PURE__ */ d(g), c = {\n \"purpur-paragraph\": \"_purpur-paragraph_1vz75_1\",\n \"purpur-paragraph--disabled\": \"_purpur-paragraph--disabled_1vz75_7\",\n \"purpur-paragraph--hyphens\": \"_purpur-paragraph--hyphens_1vz75_10\",\n \"purpur-paragraph--negative\": \"_purpur-paragraph--negative_1vz75_13\",\n \"purpur-paragraph--paragraph-100\": \"_purpur-paragraph--paragraph-100_1vz75_16\",\n \"purpur-paragraph--paragraph-100-medium\": \"_purpur-paragraph--paragraph-100-medium_1vz75_22\",\n \"purpur-paragraph--paragraph-100-bold\": \"_purpur-paragraph--paragraph-100-bold_1vz75_29\",\n \"purpur-paragraph--paragraph-200\": \"_purpur-paragraph--paragraph-200_1vz75_36\",\n \"purpur-paragraph--preamble-100\": \"_purpur-paragraph--preamble-100_1vz75_42\",\n \"purpur-paragraph--preamble-200\": \"_purpur-paragraph--preamble-200_1vz75_48\",\n \"purpur-paragraph--additional-100\": \"_purpur-paragraph--additional-100_1vz75_54\",\n \"purpur-paragraph--additional-100-medium\": \"_purpur-paragraph--additional-100-medium_1vz75_60\",\n \"purpur-paragraph--additional-100-bold\": \"_purpur-paragraph--additional-100-bold_1vz75_67\",\n \"purpur-paragraph--overline-100\": \"_purpur-paragraph--overline-100_1vz75_74\",\n \"purpur-paragraph--overline-200\": \"_purpur-paragraph--overline-200_1vz75_82\"\n}, f = v.bind(c), m = {\n PARAGRAPH100: \"paragraph-100\",\n PARAGRAPH100MEDIUM: \"paragraph-100-medium\",\n PARAGRAPH100BOLD: \"paragraph-100-bold\",\n PARAGRAPH200: \"paragraph-200\",\n PREAMBLE100: \"preamble-100\",\n PREAMBLE200: \"preamble-200\",\n ADDITIONAL100: \"additional-100\",\n ADDITIONAL100MEDIUM: \"additional-100-medium\",\n ADDITIONAL100BOLD: \"additional-100-bold\",\n OVERLINE100: \"overline-100\",\n OVERLINE200: \"overline-200\"\n}, t = \"purpur-paragraph\", A = ({\n children: p,\n className: n,\n disabled: u,\n enableHyphenation: o = !1,\n negative: i = !1,\n variant: r = m.PARAGRAPH100,\n ...a\n}) => {\n const e = f(n, t, `${t}--${r}`, {\n [`${t}--hyphens`]: o,\n [`${t}--disabled`]: u,\n [`${t}--negative`]: i\n });\n return /* @__PURE__ */ l(\"p\", { ...a, className: e, children: p });\n};\nA.displayName = \"Paragraph\";\nexport {\n A as Paragraph,\n m as ParagraphVariant\n};\n//# sourceMappingURL=paragraph.es.js.map\n","/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = '';\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (arg) {\n\t\t\t\tclasses = appendClass(classes, parseValue.call(this, arg));\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction parseValue (arg) {\n\t\tif (typeof arg === 'string' || typeof arg === 'number') {\n\t\t\treturn this && this[arg] || arg;\n\t\t}\n\n\t\tif (typeof arg !== 'object') {\n\t\t\treturn '';\n\t\t}\n\n\t\tif (Array.isArray(arg)) {\n\t\t\treturn classNames.apply(this, arg);\n\t\t}\n\n\t\tif (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {\n\t\t\treturn arg.toString();\n\t\t}\n\n\t\tvar classes = '';\n\n\t\tfor (var key in arg) {\n\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\tclasses = appendClass(classes, this && this[key] || key);\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction appendClass (value, newClass) {\n\t\tif (!newClass) {\n\t\t\treturn value;\n\t\t}\n\t\n\t\tif (value) {\n\t\t\treturn value + ' ' + newClass;\n\t\t}\n\t\n\t\treturn value + newClass;\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n","import React, { Children, type ReactNode } from \"react\";\nimport type { BaseProps } from \"@purpurds/common-types\";\nimport c from \"classnames/bind\";\n\nimport { type ContentBlockProps } from \"./content-block\";\nimport styles from \"./content-block-group.module.scss\";\n\nconst cx = c.bind(styles);\nconst rootClassName = \"purpur-content-block-group\";\n\nexport type ContentBlockGroupProps = Omit<BaseProps, \"children\"> & {\n children: ReactNode;\n negative?: boolean;\n};\n\nexport const ContentBlockGroup = ({\n children,\n className,\n negative,\n ...props\n}: ContentBlockGroupProps) => {\n const classes = cx([\n rootClassName,\n {\n [`${rootClassName}--negative`]: negative,\n },\n className,\n ]);\n\n const renderChildren = () =>\n Children.map(children, (child) => {\n if (React.isValidElement<ContentBlockProps>(child)) {\n return React.cloneElement(child, { negative });\n }\n return child;\n });\n\n return (\n <div className={classes} {...props}>\n {renderChildren()}\n </div>\n );\n};\n\nContentBlockGroup.displayName = \"ContentBlockGroup\";\n","import React, { type ReactNode } from \"react\";\nimport type { BaseProps } from \"@purpurds/common-types\";\nimport { Heading, type HeadingTagType } from \"@purpurds/heading\";\nimport { IconCheckmark } from \"@purpurds/icon/checkmark\";\nimport { Paragraph } from \"@purpurds/paragraph\";\nimport c from \"classnames/bind\";\n\nimport styles from \"./content-block.module.scss\";\nimport { ContentBlockGroup } from \"./content-block-group\";\n\nconst cx = c.bind(styles);\nconst rootClassName = \"purpur-content-block\";\n\nexport type ContentBlockProps = BaseProps & {\n negative?: boolean;\n image?: ReactNode;\n video?: ReactNode;\n badge?: ReactNode;\n actions?: ReactNode;\n listItems?: string[];\n title?: string;\n headingTag?: HeadingTagType;\n headingVariant?: \"title-100\" | \"title-200\" | \"title-300\";\n};\n\nexport const ContentBlock = ({\n className,\n negative,\n image,\n video,\n badge,\n title,\n actions,\n listItems,\n headingTag = \"h2\",\n headingVariant = \"title-300\",\n children,\n ...props\n}: ContentBlockProps) => {\n const classes = cx([\n rootClassName,\n {\n [`${rootClassName}--negative`]: negative,\n },\n className,\n ]);\n\n return (\n <div className={classes} {...props}>\n <div className={cx(`${rootClassName}__section`)}>\n {video ? (\n <div className={cx(`${rootClassName}__video-wrapper`)}>{video}</div>\n ) : (\n <div className={cx(`${rootClassName}__image-wrapper`)}>{image}</div>\n )}\n </div>\n <div className={cx(`${rootClassName}__section`)}>\n <div className={cx(`${rootClassName}__content-wrapper`)}>\n {badge && <div className={cx(`${rootClassName}__badge-wrapper`)}>{badge}</div>}\n {title?.trim() && (\n <Heading variant={headingVariant} tag={headingTag} negative={negative}>\n {title}\n </Heading>\n )}\n <div className={cx(`${rootClassName}__content`)}>{children}</div>\n {!!listItems?.length && (\n <ul className={cx(`${rootClassName}__list`)}>\n {listItems.map(\n (item) =>\n item && (\n <li className={cx(`${rootClassName}__list-item`)} key={item}>\n <IconCheckmark size=\"xs\" className={cx(`${rootClassName}__list-item-icon`)} />\n <Paragraph negative={negative}>{item}</Paragraph>\n </li>\n )\n )}\n </ul>\n )}\n {actions && <div className={cx(`${rootClassName}__actions`)}>{actions}</div>}\n </div>\n </div>\n </div>\n );\n};\n\nContentBlock.Group = ContentBlockGroup;\nContentBlock.displayName = \"ContentBlock\";\n"],"names":["g","l","o","y","s","t","i","a","d","c","f","n","v","u","T","_","h","r","p","m","e","x","S","b","A","hasOwn","classNames","classes","arg","appendClass","parseValue","key","value","newClass","module","cx","styles","rootClassName","ContentBlockGroup","children","className","negative","props","Children","child","React","ContentBlock","image","video","badge","title","actions","listItems","headingTag","headingVariant","jsxs","jsx","Heading","item","IconCheckmark","Paragraph"],"mappings":";;AACA,SAASA,EAAE,GAAG;AACZ,SAAO,KAAK,EAAE,cAAc,OAAO,UAAU,eAAe,KAAK,GAAG,SAAS,IAAI,EAAE,UAAU;AAC/F;AACA,IAAIC,IAAI,EAAE,SAAS,GAAE,GACjBC;AACJ,SAASC,IAAI;AACX,SAAOD,MAAMA,IAAI,IAAI,SAAS,GAAG;AAC/B,KAAC,WAAW;AACV,UAAIE,IAAI,CAAA,EAAG;AACX,eAASC,IAAI;AACX,iBAAS,IAAI,IAAI,IAAI,GAAG,IAAI,UAAU,QAAQ,KAAK;AACjD,cAAIC,IAAI,UAAU,CAAC;AACnB,UAAAA,MAAM,IAAIC,EAAE,GAAGC,EAAEF,CAAC,CAAC;AAAA,QACrB;AACA,eAAO;AAAA,MACT;AACA,eAASE,EAAE,GAAG;AACZ,YAAI,OAAO,KAAK,YAAY,OAAO,KAAK;AACtC,iBAAO;AACT,YAAI,OAAO,KAAK;AACd,iBAAO;AACT,YAAI,MAAM,QAAQ,CAAC;AACjB,iBAAOH,EAAE,MAAM,MAAM,CAAC;AACxB,YAAI,EAAE,aAAa,OAAO,UAAU,YAAY,CAAC,EAAE,SAAS,WAAW,SAAS,eAAe;AAC7F,iBAAO,EAAE,SAAQ;AACnB,YAAI,IAAI;AACR,iBAASC,KAAK;AACZ,UAAAF,EAAE,KAAK,GAAGE,CAAC,KAAK,EAAEA,CAAC,MAAM,IAAIC,EAAE,GAAGD,CAAC;AACrC,eAAO;AAAA,MACT;AACA,eAASC,EAAE,GAAG,GAAG;AACf,eAAO,IAAI,IAAI,IAAI,MAAM,IAAI,IAAI,IAAI;AAAA,MACvC;AACA,QAAE,WAAWF,EAAE,UAAUA,GAAG,EAAE,UAAUA,KAAK,OAAO,aAAaA;AAAA,IACnE,GAAC;AAAA,EACH,G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a,WAAW,GAC5C,UAAA,gBAAAkB,EAAC,SAAI,WAAWpB,EAAG,GAAGE,CAAa,mBAAmB,GACnD,UAAA;AAAA,MAAAY,KAAS,gBAAAO,EAAC,SAAI,WAAWrB,EAAG,GAAGE,CAAa,iBAAiB,GAAI,UAAAY,EAAA,CAAM;AAAA,MACvEC,GAAO,KAAA,KACN,gBAAAM,EAACC,GAAA,EAAQ,SAASH,GAAgB,KAAKD,GAAY,UAAAZ,GAChD,UAAAS,EAAA,CACH;AAAA,MAEF,gBAAAM,EAAC,SAAI,WAAWrB,EAAG,GAAGE,CAAa,WAAW,GAAI,UAAAE,GAAS;AAAA,MAC1D,CAAC,CAACa,GAAW,UACZ,gBAAAI,EAAC,MAAA,EAAG,WAAWrB,EAAG,GAAGE,CAAa,QAAQ,GACvC,UAAAe,EAAU;AAAA,QACT,CAACM,MACCA,KACE,gBAAAH,EAAC,MAAA,EAAG,WAAWpB,EAAG,GAAGE,CAAa,aAAa,GAC7C,UAAA;AAAA,UAAA,gBAAAmB,EAACG,GAAA,EAAc,MAAK,MAAK,WAAWxB,EAAG,GAAGE,CAAa,kBAAkB,EAAA,CAAG;AAAA,UAC5E,gBAAAmB,EAACI,GAAA,EAAU,UAAAnB,GAAqB,UAAAiB,EAAA,CAAK;AAAA,QAAA,EAAA,GAFgBA,CAGvD;AAAA,MAAA,GAGR;AAAA,MAEDP,uBAAY,OAAA,EAAI,WAAWhB,EAAG,GAAGE,CAAa,WAAW,GAAI,UAAAc,EAAA,CAAQ;AAAA,IAAA,EAAA,CACxE,EAAA,CACF;AAAA,EAAA,GACF;AAEJ;AAEAL,EAAa,QAAQR;AACrBQ,EAAa,cAAc;","x_google_ignoreList":[4]}
|
|
1
|
+
{"version":3,"file":"content-block.es.js","sources":["../../heading/dist/heading.es.js","../../icon/dist/icon-DNHpBTHs.mjs","../../icon/dist/components/checkmark.es.js","../../paragraph/dist/paragraph.es.js","../../../common/temp/node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/bind.js","../src/content-block-group.tsx","../src/content-block.tsx"],"sourcesContent":["import { jsx as h } from \"react/jsx-runtime\";\nfunction g(p) {\n return p && p.__esModule && Object.prototype.hasOwnProperty.call(p, \"default\") ? p.default : p;\n}\nvar l = { exports: {} };\nvar o;\nfunction y() {\n return o || (o = 1, (function(p) {\n (function() {\n var s = {}.hasOwnProperty;\n function t() {\n for (var r = \"\", e = 0; e < arguments.length; e++) {\n var i = arguments[e];\n i && (r = a(r, d(i)));\n }\n return r;\n }\n function d(r) {\n if (typeof r == \"string\" || typeof r == \"number\")\n return r;\n if (typeof r != \"object\")\n return \"\";\n if (Array.isArray(r))\n return t.apply(null, r);\n if (r.toString !== Object.prototype.toString && !r.toString.toString().includes(\"[native code]\"))\n return r.toString();\n var e = \"\";\n for (var i in r)\n s.call(r, i) && r[i] && (e = a(e, i));\n return e;\n }\n function a(r, e) {\n return e ? r ? r + \" \" + e : r + e : r;\n }\n p.exports ? (t.default = t, p.exports = t) : window.classNames = t;\n })();\n })(l)), l.exports;\n}\nvar c = y();\nconst f = /* @__PURE__ */ g(c), n = {\n \"purpur-heading\": \"_purpur-heading_vo751_1\",\n \"purpur-heading--hyphens\": \"_purpur-heading--hyphens_vo751_8\",\n \"purpur-heading--negative\": \"_purpur-heading--negative_vo751_11\",\n \"purpur-heading--subsection-100\": \"_purpur-heading--subsection-100_vo751_14\",\n \"purpur-heading--title-100\": \"_purpur-heading--title-100_vo751_20\",\n \"purpur-heading--title-200\": \"_purpur-heading--title-200_vo751_26\",\n \"purpur-heading--title-300\": \"_purpur-heading--title-300_vo751_32\",\n \"purpur-heading--title-400\": \"_purpur-heading--title-400_vo751_38\",\n \"purpur-heading--title-500\": \"_purpur-heading--title-500_vo751_44\",\n \"purpur-heading--title-600\": \"_purpur-heading--title-600_vo751_50\",\n \"purpur-heading--title-700\": \"_purpur-heading--title-700_vo751_56\",\n \"purpur-heading--display-5\": \"_purpur-heading--display-5_vo751_62\",\n \"purpur-heading--display-10\": \"_purpur-heading--display-10_vo751_68\",\n \"purpur-heading--display-15\": \"_purpur-heading--display-15_vo751_74\",\n \"purpur-heading--display-20\": \"_purpur-heading--display-20_vo751_80\",\n \"purpur-heading--display-25\": \"_purpur-heading--display-25_vo751_86\",\n \"purpur-heading--display-50\": \"_purpur-heading--display-50_vo751_92\",\n \"purpur-heading--display-100\": \"_purpur-heading--display-100_vo751_98\",\n \"purpur-heading--display-200\": \"_purpur-heading--display-200_vo751_104\"\n}, L = {\n H1: \"h1\",\n H2: \"h2\",\n H3: \"h3\",\n H4: \"h4\",\n H5: \"h5\",\n H6: \"h6\"\n}, v = {\n TITLE100: \"title-100\",\n TITLE200: \"title-200\",\n TITLE300: \"title-300\",\n TITLE400: \"title-400\",\n TITLE500: \"title-500\",\n TITLE600: \"title-600\",\n TITLE700: \"title-700\",\n SUBSECTION100: \"subsection-100\"\n}, S = {\n DISPLAY5: \"display-5\",\n DISPLAY10: \"display-10\",\n DISPLAY15: \"display-15\",\n DISPLAY20: \"display-20\",\n DISPLAY25: \"display-25\",\n DISPLAY50: \"display-50\",\n DISPLAY100: \"display-100\",\n DISPLAY200: \"display-200\"\n}, u = \"purpur-heading\", T = ({\n children: p,\n className: s = \"\",\n enableHyphenation: t = !1,\n negative: d = !1,\n tag: a,\n variant: r = v.TITLE100,\n ...e\n}) => {\n const i = a, _ = f([\n s,\n n[u],\n n[`${u}--${r}`],\n {\n [n[`${u}--hyphens`]]: t,\n [n[`${u}--negative`]]: d\n }\n ]);\n return /* @__PURE__ */ h(i, { className: _, ...e, children: p });\n};\nT.displayName = \"Heading\";\nexport {\n S as DisplayVariant,\n T as Heading,\n L as HeadingTag,\n v as TitleVariant\n};\n//# sourceMappingURL=heading.es.js.map\n","import { jsx as a } from \"react/jsx-runtime\";\nfunction f(r) {\n return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, \"default\") ? r.default : r;\n}\nvar c = { exports: {} };\nvar p;\nfunction m() {\n return p || (p = 1, (function(r) {\n (function() {\n var e = {}.hasOwnProperty;\n function o() {\n for (var t = \"\", n = 0; n < arguments.length; n++) {\n var s = arguments[n];\n s && (t = i(t, u.call(this, s)));\n }\n return t;\n }\n function u(t) {\n if (typeof t == \"string\" || typeof t == \"number\")\n return this && this[t] || t;\n if (typeof t != \"object\")\n return \"\";\n if (Array.isArray(t))\n return o.apply(this, t);\n if (t.toString !== Object.prototype.toString && !t.toString.toString().includes(\"[native code]\"))\n return t.toString();\n var n = \"\";\n for (var s in t)\n e.call(t, s) && t[s] && (n = i(n, this && this[s] || s));\n return n;\n }\n function i(t, n) {\n return n ? t ? t + \" \" + n : t + n : t;\n }\n r.exports ? (o.default = o, r.exports = o) : window.classNames = o;\n })();\n })(c)), c.exports;\n}\nvar _ = m();\nconst v = /* @__PURE__ */ f(_), d = {\n \"purpur-icon\": \"_purpur-icon_8u1lq_1\",\n \"purpur-icon--xxs\": \"_purpur-icon--xxs_8u1lq_4\",\n \"purpur-icon--xs\": \"_purpur-icon--xs_8u1lq_8\",\n \"purpur-icon--sm\": \"_purpur-icon--sm_8u1lq_12\",\n \"purpur-icon--md\": \"_purpur-icon--md_8u1lq_16\",\n \"purpur-icon--lg\": \"_purpur-icon--lg_8u1lq_20\",\n \"purpur-icon--xl\": \"_purpur-icon--xl_8u1lq_24\"\n}, g = v.bind(d), l = \"purpur-icon\", x = \"md\", h = (r) => r.filter((e) => Object.keys(e).length >= 1).map((e) => `${e.name}=\"${e.value}\"`).join(\" \"), y = ({ content: r = \"\", title: e } = {}) => {\n const o = [\n { name: \"xmlns\", value: \"http://www.w3.org/2000/svg\" },\n { name: \"fill\", value: \"currentColor\" },\n { name: \"viewBox\", value: \"0 0 24 24\" },\n e ? { name: \"role\", value: \"img\" } : { name: \"aria-hidden\", value: \"true\" }\n ], u = e ? `<title>${e}</title>` : \"\";\n return `<svg ${h(o)}>${u}${r}</svg>`;\n}, S = (r) => r.replace(/<(\\/?)svg([^>]*)>/g, \"\").trim(), b = ({ svg: r, allyTitle: e, className: o, size: u = x, ...i }) => {\n const t = y({\n content: S(r.svg),\n title: e\n }), n = g(l, `${l}--${u}`, o);\n return /* @__PURE__ */ a(\"span\", { className: n, dangerouslySetInnerHTML: { __html: t }, ...i });\n};\nb.displayName = \"Icon\";\nexport {\n b as I\n};\n//# sourceMappingURL=icon-DNHpBTHs.mjs.map\n","import { jsx as o } from \"react/jsx-runtime\";\nimport { I as r } from \"../icon-DNHpBTHs.mjs\";\nconst c = {\n name: \"checkmark\",\n svg: '<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><path fill-rule=\"evenodd\" d=\"M21.06 3.795a.9.9 0 0 1 .145 1.264l-11.5 14.5a.9.9 0 0 1-1.341.077l-6-6a.9.9 0 0 1 1.272-1.272l5.286 5.286L19.795 3.94a.9.9 0 0 1 1.264-.145Z\" clip-rule=\"evenodd\"/></svg>',\n keywords: [\"checkmark\"],\n category: \"utility\"\n}, a = (e) => /* @__PURE__ */ o(r, { ...e, svg: c });\na.displayName = \"IconCheckmark\";\nexport {\n a as IconCheckmark\n};\n//# sourceMappingURL=checkmark.es.js.map\n","import { jsx as l } from \"react/jsx-runtime\";\nfunction d(p) {\n return p && p.__esModule && Object.prototype.hasOwnProperty.call(p, \"default\") ? p.default : p;\n}\nvar h = { exports: {} };\nvar s;\nfunction _() {\n return s || (s = 1, (function(p) {\n (function() {\n var n = {}.hasOwnProperty;\n function u() {\n for (var r = \"\", a = 0; a < arguments.length; a++) {\n var e = arguments[a];\n e && (r = i(r, o.call(this, e)));\n }\n return r;\n }\n function o(r) {\n if (typeof r == \"string\" || typeof r == \"number\")\n return this && this[r] || r;\n if (typeof r != \"object\")\n return \"\";\n if (Array.isArray(r))\n return u.apply(this, r);\n if (r.toString !== Object.prototype.toString && !r.toString.toString().includes(\"[native code]\"))\n return r.toString();\n var a = \"\";\n for (var e in r)\n n.call(r, e) && r[e] && (a = i(a, this && this[e] || e));\n return a;\n }\n function i(r, a) {\n return a ? r ? r + \" \" + a : r + a : r;\n }\n p.exports ? (u.default = u, p.exports = u) : window.classNames = u;\n })();\n })(h)), h.exports;\n}\nvar g = _();\nconst v = /* @__PURE__ */ d(g), c = {\n \"purpur-paragraph\": \"_purpur-paragraph_1vz75_1\",\n \"purpur-paragraph--disabled\": \"_purpur-paragraph--disabled_1vz75_7\",\n \"purpur-paragraph--hyphens\": \"_purpur-paragraph--hyphens_1vz75_10\",\n \"purpur-paragraph--negative\": \"_purpur-paragraph--negative_1vz75_13\",\n \"purpur-paragraph--paragraph-100\": \"_purpur-paragraph--paragraph-100_1vz75_16\",\n \"purpur-paragraph--paragraph-100-medium\": \"_purpur-paragraph--paragraph-100-medium_1vz75_22\",\n \"purpur-paragraph--paragraph-100-bold\": \"_purpur-paragraph--paragraph-100-bold_1vz75_29\",\n \"purpur-paragraph--paragraph-200\": \"_purpur-paragraph--paragraph-200_1vz75_36\",\n \"purpur-paragraph--preamble-100\": \"_purpur-paragraph--preamble-100_1vz75_42\",\n \"purpur-paragraph--preamble-200\": \"_purpur-paragraph--preamble-200_1vz75_48\",\n \"purpur-paragraph--additional-100\": \"_purpur-paragraph--additional-100_1vz75_54\",\n \"purpur-paragraph--additional-100-medium\": \"_purpur-paragraph--additional-100-medium_1vz75_60\",\n \"purpur-paragraph--additional-100-bold\": \"_purpur-paragraph--additional-100-bold_1vz75_67\",\n \"purpur-paragraph--overline-100\": \"_purpur-paragraph--overline-100_1vz75_74\",\n \"purpur-paragraph--overline-200\": \"_purpur-paragraph--overline-200_1vz75_82\"\n}, f = v.bind(c), m = {\n PARAGRAPH100: \"paragraph-100\",\n PARAGRAPH100MEDIUM: \"paragraph-100-medium\",\n PARAGRAPH100BOLD: \"paragraph-100-bold\",\n PARAGRAPH200: \"paragraph-200\",\n PREAMBLE100: \"preamble-100\",\n PREAMBLE200: \"preamble-200\",\n ADDITIONAL100: \"additional-100\",\n ADDITIONAL100MEDIUM: \"additional-100-medium\",\n ADDITIONAL100BOLD: \"additional-100-bold\",\n OVERLINE100: \"overline-100\",\n OVERLINE200: \"overline-200\"\n}, t = \"purpur-paragraph\", A = ({\n children: p,\n className: n,\n disabled: u,\n enableHyphenation: o = !1,\n negative: i = !1,\n variant: r = m.PARAGRAPH100,\n ...a\n}) => {\n const e = f(n, t, `${t}--${r}`, {\n [`${t}--hyphens`]: o,\n [`${t}--disabled`]: u,\n [`${t}--negative`]: i\n });\n return /* @__PURE__ */ l(\"p\", { ...a, className: e, children: p });\n};\nA.displayName = \"Paragraph\";\nexport {\n A as Paragraph,\n m as ParagraphVariant\n};\n//# sourceMappingURL=paragraph.es.js.map\n","/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = '';\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (arg) {\n\t\t\t\tclasses = appendClass(classes, parseValue.call(this, arg));\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction parseValue (arg) {\n\t\tif (typeof arg === 'string' || typeof arg === 'number') {\n\t\t\treturn this && this[arg] || arg;\n\t\t}\n\n\t\tif (typeof arg !== 'object') {\n\t\t\treturn '';\n\t\t}\n\n\t\tif (Array.isArray(arg)) {\n\t\t\treturn classNames.apply(this, arg);\n\t\t}\n\n\t\tif (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {\n\t\t\treturn arg.toString();\n\t\t}\n\n\t\tvar classes = '';\n\n\t\tfor (var key in arg) {\n\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\tclasses = appendClass(classes, this && this[key] || key);\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction appendClass (value, newClass) {\n\t\tif (!newClass) {\n\t\t\treturn value;\n\t\t}\n\t\n\t\tif (value) {\n\t\t\treturn value + ' ' + newClass;\n\t\t}\n\t\n\t\treturn value + newClass;\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n","import React, { createContext, type ReactNode } from \"react\";\nimport type { BaseProps } from \"@purpurds/common-types\";\nimport c from \"classnames/bind\";\n\nimport styles from \"./content-block-group.module.scss\";\n\nconst cx = c.bind(styles);\nconst rootClassName = \"purpur-content-block-group\";\n\nexport const ContentBlockGroupContext = createContext<{\n negative?: boolean;\n reverse?: boolean;\n} | null>(null);\n\nexport type ContentBlockGroupProps = Omit<BaseProps, \"children\"> & {\n children: ReactNode;\n negative?: boolean;\n mediaStartPosition?: \"left\" | \"right\";\n};\n\nexport const ContentBlockGroup = ({\n children,\n className,\n negative,\n mediaStartPosition = \"left\",\n ...props\n}: ContentBlockGroupProps) => {\n const classes = cx([\n rootClassName,\n {\n [`${rootClassName}--negative`]: negative,\n },\n className,\n ]);\n\n return (\n <div className={classes} {...props}>\n <ContentBlockGroupContext.Provider\n value={{ negative, reverse: mediaStartPosition === \"right\" }}\n >\n {children}\n </ContentBlockGroupContext.Provider>\n </div>\n );\n};\n\nContentBlockGroup.displayName = \"ContentBlockGroup\";\n","import React, { type ReactNode, useContext } from \"react\";\nimport type { BaseProps } from \"@purpurds/common-types\";\nimport { Heading, type HeadingTagType } from \"@purpurds/heading\";\nimport { IconCheckmark } from \"@purpurds/icon/checkmark\";\nimport { Paragraph } from \"@purpurds/paragraph\";\nimport c from \"classnames/bind\";\n\nimport styles from \"./content-block.module.scss\";\nimport { ContentBlockGroup, ContentBlockGroupContext } from \"./content-block-group\";\n\nconst cx = c.bind(styles);\nconst rootClassName = \"purpur-content-block\";\n\nexport type ContentBlockProps = BaseProps & {\n /**\n * @deprecated Set negative on ContentBlockGroup instead\n */\n negative?: boolean;\n image?: ReactNode;\n video?: ReactNode;\n /**\n * @deprecated Use beforeTitle instead\n */\n badge?: ReactNode;\n actions?: ReactNode;\n listItems?: string[];\n beforeTitle?: ReactNode;\n title?: string;\n headingTag?: HeadingTagType;\n headingVariant?: \"title-100\" | \"title-200\" | \"title-300\";\n};\n\nexport const ContentBlock = ({\n className,\n negative,\n image,\n video,\n badge,\n beforeTitle,\n title,\n actions,\n listItems,\n headingTag = \"h2\",\n headingVariant = \"title-300\",\n children,\n ...props\n}: ContentBlockProps) => {\n const context = useContext(ContentBlockGroupContext);\n\n const classes = cx([\n rootClassName,\n {\n [`${rootClassName}--negative`]: context?.negative || negative,\n [`${rootClassName}--reverse`]: context?.reverse,\n },\n className,\n ]);\n\n return (\n <div className={classes} {...props}>\n <div className={cx(`${rootClassName}__section`)}>\n {video ? (\n <div className={cx(`${rootClassName}__video-wrapper`)}>{video}</div>\n ) : (\n <div className={cx(`${rootClassName}__image-wrapper`)}>{image}</div>\n )}\n </div>\n <div className={cx(`${rootClassName}__section`)}>\n <div className={cx(`${rootClassName}__content-wrapper`)}>\n {badge && <div className={cx(`${rootClassName}__badge-wrapper`)}>{badge}</div>}\n {beforeTitle}\n {title?.trim() && (\n <Heading variant={headingVariant} tag={headingTag} negative={negative}>\n {title}\n </Heading>\n )}\n <div className={cx(`${rootClassName}__content`)}>{children}</div>\n {!!listItems?.length && (\n <ul className={cx(`${rootClassName}__list`)}>\n {listItems.map(\n (item) =>\n item && (\n <li className={cx(`${rootClassName}__list-item`)} key={item}>\n <IconCheckmark size=\"xs\" className={cx(`${rootClassName}__list-item-icon`)} />\n <Paragraph negative={negative}>{item}</Paragraph>\n </li>\n )\n )}\n </ul>\n )}\n {actions && <div className={cx(`${rootClassName}__actions`)}>{actions}</div>}\n </div>\n </div>\n </div>\n );\n};\n\nContentBlock.Group = ContentBlockGroup;\nContentBlock.displayName = \"ContentBlock\";\n"],"names":["g","l","o","y","s","t","i","a","d","c","f","n","v","u","T","h","r","p","m","e","_","x","S","b","hasOwn","classNames","classes","arg","appendClass","parseValue","key","value","newClass","module","cx","styles","rootClassName","ContentBlockGroupContext","createContext","ContentBlockGroup","children","className","negative","mediaStartPosition","props","jsx","ContentBlock","image","video","badge","beforeTitle","title","actions","listItems","headingTag","headingVariant","context","useContext","jsxs","Heading","item","IconCheckmark","Paragraph"],"mappings":";;AACA,SAASA,EAAE,GAAG;AACZ,SAAO,KAAK,EAAE,cAAc,OAAO,UAAU,eAAe,KAAK,GAAG,SAAS,IAAI,EAAE,UAAU;AAC/F;AACA,IAAIC,IAAI,EAAE,SAAS,GAAE,GACjBC;AACJ,SAASC,IAAI;AACX,SAAOD,MAAMA,IAAI,IAAI,SAAS,GAAG;AAC/B,KAAC,WAAW;AACV,UAAIE,IAAI,CAAA,EAAG;AACX,eAASC,IAAI;AACX,iBAAS,IAAI,IAAI,IAAI,GAAG,IAAI,UAAU,QAAQ,KAAK;AACjD,cAAIC,IAAI,UAAU,CAAC;AACnB,UAAAA,MAAM,IAAIC,EAAE,GAAGC,EAAEF,CAAC,CAAC;AAAA,QACrB;AACA,eAAO;AAAA,MACT;AACA,eAASE,EAAE,GAAG;AACZ,YAAI,OAAO,KAAK,YAAY,OAAO,KAAK;AACtC,iBAAO;AACT,YAAI,OAAO,KAAK;AACd,iBAAO;AACT,YAAI,MAAM,QAAQ,CAAC;AACjB,iBAAOH,EAAE,MAAM,MAAM,CAAC;AACxB,YAAI,EAAE,aAAa,OAAO,UAAU,YAAY,CAAC,EAAE,SAAS,WAAW,SAAS,eAAe;AAC7F,iBAAO,EAAE,SAAQ;AACnB,YAAI,IAAI;AACR,iBAASC,KAAK;AACZ,UAAAF,EAAE,KAAK,GAAGE,CAAC,KAAK,EAAEA,CAAC,MAAM,IAAIC,EAAE,GAAGD,CAAC;AACrC,eAAO;AAAA,MACT;AACA,eAASC,EAAE,GAAG,GAAG;AACf,eAAO,IA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,uBAAY,OAAA,EAAI,WAAWlB,EAAG,GAAGE,CAAa,WAAW,GAAI,UAAAgB,EAAA,CAAQ;AAAA,IAAA,EAAA,CACxE,EAAA,CACF;AAAA,EAAA,GACF;AAEJ;AAEAN,EAAa,QAAQP;AACrBO,EAAa,cAAc;","x_google_ignoreList":[4]}
|
package/dist/styles.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
._purpur-content-
|
|
1
|
+
._purpur-content-block_mjbqd_1{display:flex;flex-direction:column;align-items:flex-start;gap:var(--purpur-spacing-400)}@media (min-width: 1024px){._purpur-content-block_mjbqd_1{align-items:center;flex-direction:row;gap:var(--purpur-spacing-300)}._purpur-content-block_mjbqd_1:not(._purpur-content-block--reverse_mjbqd_13):nth-child(2n){flex-direction:row-reverse}._purpur-content-block--reverse_mjbqd_13:nth-child(odd){flex-direction:row-reverse}}._purpur-content-block_mjbqd_1 ._purpur-content-block__section_mjbqd_20{width:100%}@media (min-width: 1024px){._purpur-content-block_mjbqd_1 ._purpur-content-block__section_mjbqd_20{width:50%}}._purpur-content-block_mjbqd_1 ._purpur-content-block__image-wrapper_mjbqd_28{width:100%}._purpur-content-block_mjbqd_1 ._purpur-content-block__video-wrapper_mjbqd_31 video,._purpur-content-block_mjbqd_1 ._purpur-content-block__image-wrapper_mjbqd_28 img{border-radius:var(--purpur-border-radius-md)}@media (min-width: 600px){._purpur-content-block_mjbqd_1 ._purpur-content-block__video-wrapper_mjbqd_31 video,._purpur-content-block_mjbqd_1 ._purpur-content-block__image-wrapper_mjbqd_28 img{border-radius:var(--purpur-border-radius-lg)}}._purpur-content-block_mjbqd_1 ._purpur-content-block__content-wrapper_mjbqd_41{display:flex;flex-direction:column;gap:var(--purpur-spacing-150)}._purpur-content-block_mjbqd_1 ._purpur-content-block__badge-wrapper_mjbqd_46{width:fit-content}._purpur-content-block_mjbqd_1 ._purpur-content-block__content_mjbqd_41{max-width:80ch}._purpur-content-block_mjbqd_1 ._purpur-content-block__list_mjbqd_52{margin:0;padding:0;list-style:none}._purpur-content-block_mjbqd_1 ._purpur-content-block__list-item_mjbqd_57{display:flex;align-items:center;justify-content:left}._purpur-content-block_mjbqd_1 ._purpur-content-block__list-item_mjbqd_57:not(:last-child){margin-bottom:var(--purpur-spacing-100)}._purpur-content-block_mjbqd_1 ._purpur-content-block__list-item-icon_mjbqd_65{margin-right:var(--purpur-spacing-50)}._purpur-content-block_mjbqd_1 ._purpur-content-block__actions_mjbqd_68{margin-top:var(--purpur-spacing-250);display:flex;flex-direction:column;gap:var(--purpur-spacing-200)}@media (min-width: 600px){._purpur-content-block_mjbqd_1 ._purpur-content-block__actions_mjbqd_68{flex-direction:row}}._purpur-content-block--negative_mjbqd_79 ._purpur-content-block__text-spacing_mjbqd_79 p{color:var(--purpur-color-text-default-negative)}._purpur-content-block--negative_mjbqd_79 ._purpur-content-block__list-item-icon_mjbqd_65 svg{fill:var(--purpur-color-text-default-negative)}._purpur-content-block-group_xzyy2_1{display:flex;flex-direction:column;gap:var(--purpur-spacing-1200)}@media (min-width: 600px){._purpur-content-block-group_xzyy2_1{gap:var(--purpur-spacing-1600)}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@purpurds/content-block",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.13.0",
|
|
4
4
|
"license": "AGPL-3.0-only",
|
|
5
5
|
"main": "./dist/content-block.cjs.js",
|
|
6
6
|
"types": "./dist/content-block.d.ts",
|
|
@@ -16,30 +16,30 @@
|
|
|
16
16
|
"source": "src/content-block.tsx",
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"classnames": "~2.5.1",
|
|
19
|
-
"@purpurds/
|
|
20
|
-
"@purpurds/grid": "8.
|
|
21
|
-
"@purpurds/
|
|
22
|
-
"@purpurds/
|
|
23
|
-
"@purpurds/
|
|
24
|
-
"@purpurds/icon": "8.
|
|
25
|
-
"@purpurds/
|
|
26
|
-
"@purpurds/
|
|
19
|
+
"@purpurds/common-types": "8.13.0",
|
|
20
|
+
"@purpurds/grid": "8.13.0",
|
|
21
|
+
"@purpurds/cta-link": "8.13.0",
|
|
22
|
+
"@purpurds/badge": "8.13.0",
|
|
23
|
+
"@purpurds/tokens": "8.13.0",
|
|
24
|
+
"@purpurds/icon": "8.13.0",
|
|
25
|
+
"@purpurds/heading": "8.13.0",
|
|
26
|
+
"@purpurds/paragraph": "8.13.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@storybook/react-vite": "
|
|
29
|
+
"@storybook/react-vite": "10.1.11",
|
|
30
30
|
"@testing-library/dom": "~10.4.1",
|
|
31
31
|
"@testing-library/jest-dom": "~6.9.1",
|
|
32
32
|
"@testing-library/react": "~16.3.0",
|
|
33
33
|
"@types/node": "22.17",
|
|
34
34
|
"@types/react-dom": "^19.2.3",
|
|
35
35
|
"@types/react": "^19.2.6",
|
|
36
|
-
"eslint": "9.39.
|
|
36
|
+
"eslint": "9.39.2",
|
|
37
37
|
"jsdom": "~27.2.0",
|
|
38
38
|
"lint-staged": "16.2.6",
|
|
39
39
|
"prettier": "~2.8.8",
|
|
40
40
|
"react-dom": "^19.2.1",
|
|
41
41
|
"react": "^19.2.1",
|
|
42
|
-
"storybook": "
|
|
42
|
+
"storybook": "10.1.11",
|
|
43
43
|
"typescript": "^5.9.3",
|
|
44
44
|
"vite": "^7.2.2",
|
|
45
45
|
"vitest": "^4.0.10",
|
|
@@ -1,22 +1,28 @@
|
|
|
1
|
-
import React, {
|
|
1
|
+
import React, { createContext, type ReactNode } from "react";
|
|
2
2
|
import type { BaseProps } from "@purpurds/common-types";
|
|
3
3
|
import c from "classnames/bind";
|
|
4
4
|
|
|
5
|
-
import { type ContentBlockProps } from "./content-block";
|
|
6
5
|
import styles from "./content-block-group.module.scss";
|
|
7
6
|
|
|
8
7
|
const cx = c.bind(styles);
|
|
9
8
|
const rootClassName = "purpur-content-block-group";
|
|
10
9
|
|
|
10
|
+
export const ContentBlockGroupContext = createContext<{
|
|
11
|
+
negative?: boolean;
|
|
12
|
+
reverse?: boolean;
|
|
13
|
+
} | null>(null);
|
|
14
|
+
|
|
11
15
|
export type ContentBlockGroupProps = Omit<BaseProps, "children"> & {
|
|
12
16
|
children: ReactNode;
|
|
13
17
|
negative?: boolean;
|
|
18
|
+
mediaStartPosition?: "left" | "right";
|
|
14
19
|
};
|
|
15
20
|
|
|
16
21
|
export const ContentBlockGroup = ({
|
|
17
22
|
children,
|
|
18
23
|
className,
|
|
19
24
|
negative,
|
|
25
|
+
mediaStartPosition = "left",
|
|
20
26
|
...props
|
|
21
27
|
}: ContentBlockGroupProps) => {
|
|
22
28
|
const classes = cx([
|
|
@@ -27,17 +33,13 @@ export const ContentBlockGroup = ({
|
|
|
27
33
|
className,
|
|
28
34
|
]);
|
|
29
35
|
|
|
30
|
-
const renderChildren = () =>
|
|
31
|
-
Children.map(children, (child) => {
|
|
32
|
-
if (React.isValidElement<ContentBlockProps>(child)) {
|
|
33
|
-
return React.cloneElement(child, { negative });
|
|
34
|
-
}
|
|
35
|
-
return child;
|
|
36
|
-
});
|
|
37
|
-
|
|
38
36
|
return (
|
|
39
37
|
<div className={classes} {...props}>
|
|
40
|
-
|
|
38
|
+
<ContentBlockGroupContext.Provider
|
|
39
|
+
value={{ negative, reverse: mediaStartPosition === "right" }}
|
|
40
|
+
>
|
|
41
|
+
{children}
|
|
42
|
+
</ContentBlockGroupContext.Provider>
|
|
41
43
|
</div>
|
|
42
44
|
);
|
|
43
45
|
};
|
package/src/content-block.tsx
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { type ReactNode } from "react";
|
|
1
|
+
import React, { type ReactNode, useContext } from "react";
|
|
2
2
|
import type { BaseProps } from "@purpurds/common-types";
|
|
3
3
|
import { Heading, type HeadingTagType } from "@purpurds/heading";
|
|
4
4
|
import { IconCheckmark } from "@purpurds/icon/checkmark";
|
|
@@ -6,18 +6,25 @@ import { Paragraph } from "@purpurds/paragraph";
|
|
|
6
6
|
import c from "classnames/bind";
|
|
7
7
|
|
|
8
8
|
import styles from "./content-block.module.scss";
|
|
9
|
-
import { ContentBlockGroup } from "./content-block-group";
|
|
9
|
+
import { ContentBlockGroup, ContentBlockGroupContext } from "./content-block-group";
|
|
10
10
|
|
|
11
11
|
const cx = c.bind(styles);
|
|
12
12
|
const rootClassName = "purpur-content-block";
|
|
13
13
|
|
|
14
14
|
export type ContentBlockProps = BaseProps & {
|
|
15
|
+
/**
|
|
16
|
+
* @deprecated Set negative on ContentBlockGroup instead
|
|
17
|
+
*/
|
|
15
18
|
negative?: boolean;
|
|
16
19
|
image?: ReactNode;
|
|
17
20
|
video?: ReactNode;
|
|
21
|
+
/**
|
|
22
|
+
* @deprecated Use beforeTitle instead
|
|
23
|
+
*/
|
|
18
24
|
badge?: ReactNode;
|
|
19
25
|
actions?: ReactNode;
|
|
20
26
|
listItems?: string[];
|
|
27
|
+
beforeTitle?: ReactNode;
|
|
21
28
|
title?: string;
|
|
22
29
|
headingTag?: HeadingTagType;
|
|
23
30
|
headingVariant?: "title-100" | "title-200" | "title-300";
|
|
@@ -29,6 +36,7 @@ export const ContentBlock = ({
|
|
|
29
36
|
image,
|
|
30
37
|
video,
|
|
31
38
|
badge,
|
|
39
|
+
beforeTitle,
|
|
32
40
|
title,
|
|
33
41
|
actions,
|
|
34
42
|
listItems,
|
|
@@ -37,10 +45,13 @@ export const ContentBlock = ({
|
|
|
37
45
|
children,
|
|
38
46
|
...props
|
|
39
47
|
}: ContentBlockProps) => {
|
|
48
|
+
const context = useContext(ContentBlockGroupContext);
|
|
49
|
+
|
|
40
50
|
const classes = cx([
|
|
41
51
|
rootClassName,
|
|
42
52
|
{
|
|
43
|
-
[`${rootClassName}--negative`]: negative,
|
|
53
|
+
[`${rootClassName}--negative`]: context?.negative || negative,
|
|
54
|
+
[`${rootClassName}--reverse`]: context?.reverse,
|
|
44
55
|
},
|
|
45
56
|
className,
|
|
46
57
|
]);
|
|
@@ -57,6 +68,7 @@ export const ContentBlock = ({
|
|
|
57
68
|
<div className={cx(`${rootClassName}__section`)}>
|
|
58
69
|
<div className={cx(`${rootClassName}__content-wrapper`)}>
|
|
59
70
|
{badge && <div className={cx(`${rootClassName}__badge-wrapper`)}>{badge}</div>}
|
|
71
|
+
{beforeTitle}
|
|
60
72
|
{title?.trim() && (
|
|
61
73
|
<Heading variant={headingVariant} tag={headingTag} negative={negative}>
|
|
62
74
|
{title}
|