@stackshift-ui/text-component 6.0.3 → 6.0.4-beta.1
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/{chunk-6FXCXUD2.mjs → chunk-3E7L5HFT.mjs} +1 -1
- package/dist/{chunk-HI73QFRB.mjs → chunk-5UXS6XWN.mjs} +1 -1
- package/dist/{chunk-QLY5WTLK.mjs → chunk-CBIPJS7L.mjs} +1 -1
- package/dist/{chunk-5IRFGMZY.mjs → chunk-O4GIIQJP.mjs} +1 -1
- package/dist/helper/index.js +1 -1
- package/dist/helper/index.mjs +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/text-component.js +1 -1
- package/dist/text-component.mjs +1 -1
- package/dist/text_a.js +1 -1
- package/dist/text_a.mjs +1 -1
- package/dist/text_b.js +1 -1
- package/dist/text_b.mjs +1 -1
- package/dist/text_c.js +1 -1
- package/dist/text_c.mjs +1 -1
- package/package.json +4 -4
- package/src/helper/index.tsx +2 -2
- package/src/text_b.tsx +2 -2
- package/src/text_c.tsx +3 -3
- /package/dist/{chunk-6KEFVPJ2.mjs → chunk-B6YHA4AD.mjs} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as n}from"./chunk-
|
|
1
|
+
import{a as n}from"./chunk-CBIPJS7L.mjs";import{PortableText as m}from"@portabletext/react";import{Container as r}from"@stackshift-ui/container";import{Flex as i}from"@stackshift-ui/flex";import{Heading as a}from"@stackshift-ui/heading";import{Section as p}from"@stackshift-ui/section";import{jsx as o,jsxs as l}from"react/jsx-runtime";function s({heading:t,firstColumn:e}){return o(p,{className:"py-20 bg-background",children:l(r,{maxWidth:1280,children:[t&&o(a,{fontSize:"xl",className:"mb-5 text-center",children:t}),o(i,{wrap:!0,justify:"center",className:"mx-auto",children:e&&o("div",{className:"mb-2 text-xs md:mb-0 md:w-1/2 lg:text-base",children:o(m,{value:e,components:n,onMissingComponent:!1})})})]})})}export{s as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as t}from"./chunk-
|
|
1
|
+
import{a as t}from"./chunk-CBIPJS7L.mjs";import{PortableText as n}from"@portabletext/react";import{Container as l}from"@stackshift-ui/container";import{Flex as x}from"@stackshift-ui/flex";import{Heading as r}from"@stackshift-ui/heading";import{Section as p}from"@stackshift-ui/section";import{jsx as e,jsxs as m}from"react/jsx-runtime";function g({heading:o,firstColumn:a,secondColumn:i,thirdColumn:s}){return e(p,{className:"py-20 bg-background",children:m(l,{className:"container px-4 mx-auto",maxWidth:1280,children:[o&&e(r,{fontSize:"xl",className:"w-full mb-5 text-center",children:o}),m(x,{wrap:!0,justify:"center",className:"mx-auto",children:[a&&e("div",{className:"px-3 mb-6 text-xs leading-relaxed text-justify text-gray-500 md:mb-0 lg:w-1/3 lg:text-base",children:e(n,{value:a,components:t,onMissingComponent:!1})}),i&&e("div",{className:"px-3 mb-6 text-xs leading-relaxed text-justify text-gray-500 md:mb-0 lg:w-1/3 lg:text-base",children:e(n,{value:i,components:t,onMissingComponent:!1})}),s&&e("div",{className:"px-3 mb-6 text-xs leading-relaxed text-justify text-gray-500 md:mb-0 lg:w-1/3 lg:text-base",children:e(n,{value:s,components:t,onMissingComponent:!1})})]})]})})}export{g as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as t,jsxs as
|
|
1
|
+
import{jsx as t,jsxs as a}from"react/jsx-runtime";var o={block:{h1:({children:e})=>t("h1",{className:"mb-6 leading-loose text-gray-900 text-7xl",children:e}),h2:({children:e})=>t("h2",{className:"mb-6 text-5xl leading-loose text-gray-900",children:e}),h3:({children:e})=>t("h3",{className:"mb-6 text-3xl leading-loose text-gray-900",children:e}),h4:({children:e})=>t("h4",{className:"mb-6 text-xl leading-loose text-gray-900",children:e}),normal:({children:e})=>t("p",{className:"mb-5 leading-relaxed text-justify text-gray-900",children:e}),blockquote:({children:e})=>a("blockquote",{className:"mb-6 italic leading-loose text-gray-500 px-14",children:["- ",e]})},code:({value:e})=>t("pre",{"data-language":e.language,children:t("code",{children:e.code})}),list:{bullet:({children:e})=>t("ul",{className:"pl-10 mb-6 leading-loose text-gray-900 list-disc",children:e}),number:({children:e})=>t("ol",{className:"mb-6 leading-loose text-gray-900 list-decimal",children:e})},listItem:{bullet:({children:e})=>t("li",{className:"mb-6 leading-loose text-gray-900",children:e})},marks:{strong:({children:e})=>t("strong",{children:e}),em:({children:e})=>t("em",{children:e}),code:({children:e})=>t("code",{children:e}),link:({children:e,value:l})=>{var r;return t("a",{"aria-label":(r=l.href)!=null?r:"external link",className:"text-primary hover:text-secondary",href:l==null?void 0:l.href,target:"_blank",rel:"noopener noreferrer",children:e})}}};export{o as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e}from"./chunk-
|
|
1
|
+
import{a as e}from"./chunk-CBIPJS7L.mjs";import{PortableText as m}from"@portabletext/react";import{Container as r}from"@stackshift-ui/container";import{Flex as l}from"@stackshift-ui/flex";import{Heading as x}from"@stackshift-ui/heading";import{Section as s}from"@stackshift-ui/section";import{jsx as t,jsxs as i}from"react/jsx-runtime";function p({heading:o,firstColumn:n,secondColumn:a}){return t(s,{className:"py-20 bg-background",children:i(r,{maxWidth:1280,children:[o&&t(x,{fontSize:"xl",className:"w-full mb-4 text-center",children:o}),i(l,{wrap:!0,justify:"center",className:"mx-auto ",children:[n&&t("div",{className:"px-5 mb-3 text-xs leading-relaxed text-justify text-gray-500 lg:mb-6 lg:w-1/2 lg:text-base",children:t(m,{value:n,components:e})}),a&&t("div",{className:"px-5 mb-6 text-xs leading-relaxed text-justify text-gray-500 md:mb-0 lg:w-1/2 lg:text-base",children:t(m,{value:a,components:e,onMissingComponent:!1})})]})]})})}export{p as a};
|
package/dist/helper/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var o=Object.defineProperty;var n=Object.getOwnPropertyDescriptor;var m=Object.getOwnPropertyNames;var g=Object.prototype.hasOwnProperty;var c=(e,l)=>{for(var r in l)o(e,r,{get:l[r],enumerable:!0})},x=(e,l,r,s)=>{if(l&&typeof l=="object"||typeof l=="function")for(let a of m(l))!g.call(e,a)&&a!==r&&o(e,a,{get:()=>l[a],enumerable:!(s=n(l,a))||s.enumerable});return e};var i=e=>x(o({},"__esModule",{value:!0}),e);var b={};c(b,{textComponentBlockStyling:()=>d});module.exports=i(b);var t=require("react/jsx-runtime"),d={block:{h1:({children:e})=>(0,t.jsx)("h1",{className:"mb-6 leading-loose text-gray-900 text-7xl",children:e}),h2:({children:e})=>(0,t.jsx)("h2",{className:"mb-6 text-5xl leading-loose text-gray-900",children:e}),h3:({children:e})=>(0,t.jsx)("h3",{className:"mb-6 text-3xl leading-loose text-gray-900",children:e}),h4:({children:e})=>(0,t.jsx)("h4",{className:"mb-6 text-xl leading-loose text-gray-900",children:e}),normal:({children:e})=>(0,t.jsx)("p",{className:"mb-5 leading-relaxed text-justify text-gray-900",children:e}),blockquote:({children:e})=>(0,t.jsxs)("blockquote",{className:"mb-6 italic leading-loose text-gray-500 px-14",children:["- ",e]})},code:({value:e})=>(0,t.jsx)("pre",{"data-language":e.language,children:(0,t.jsx)("code",{children:e.code})}),list:{bullet:({children:e})=>(0,t.jsx)("ul",{className:"pl-10 mb-6 leading-loose text-gray-900 list-disc",children:e}),number:({children:e})=>(0,t.jsx)("ol",{className:"mb-6 leading-loose text-gray-900 list-decimal",children:e})},listItem:{bullet:({children:e})=>(0,t.jsx)("li",{className:"mb-6 leading-loose text-gray-900",children:e})},marks:{strong:({children:e})=>(0,t.jsx)("strong",{children:e}),em:({children:e})=>(0,t.jsx)("em",{children:e}),code:({children:e})=>(0,t.jsx)("code",{children:e}),link:({children:e,value:l})=>{var r;return(0,t.jsx)("a",{"aria-label":(r=l.href)!=null?r:"external link",className:"text-primary hover:text-secondary",href:l==null?void 0:l.href,target:"_blank",rel:"noopener noreferrer",children:e})}}};0&&(module.exports={textComponentBlockStyling});
|
package/dist/helper/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-CBIPJS7L.mjs";export{a as textComponentBlockStyling};
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";var b=Object.defineProperty;var Q=Object.getOwnPropertyDescriptor;var U=Object.getOwnPropertyNames;var X=Object.prototype.hasOwnProperty;var x=(e,t)=>()=>(e&&(t=e(e=0)),t);var p=(e,t)=>{for(var n in t)b(e,n,{get:t[n],enumerable:!0})},Y=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let m of U(t))!X.call(e,m)&&m!==n&&b(e,m,{get:()=>t[m],enumerable:!(a=Q(t,m))||a.enumerable});return e};var Z=e=>Y(b({},"__esModule",{value:!0}),e);var o,i,g=x(()=>{"use strict";o=require("react/jsx-runtime"),i={block:{h1:({children:e})=>(0,o.jsx)("h1",{className:"mb-6 leading-loose text-gray-900 text-7xl",children:e}),h2:({children:e})=>(0,o.jsx)("h2",{className:"mb-6 text-5xl leading-loose text-gray-900",children:e}),h3:({children:e})=>(0,o.jsx)("h3",{className:"mb-6 text-3xl leading-loose text-gray-900",children:e}),h4:({children:e})=>(0,o.jsx)("h4",{className:"mb-6 text-xl leading-loose text-gray-900",children:e}),normal:({children:e})=>(0,o.jsx)("p",{className:"mb-5 leading-relaxed text-justify text-gray-
|
|
2
|
+
"use strict";var b=Object.defineProperty;var Q=Object.getOwnPropertyDescriptor;var U=Object.getOwnPropertyNames;var X=Object.prototype.hasOwnProperty;var x=(e,t)=>()=>(e&&(t=e(e=0)),t);var p=(e,t)=>{for(var n in t)b(e,n,{get:t[n],enumerable:!0})},Y=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let m of U(t))!X.call(e,m)&&m!==n&&b(e,m,{get:()=>t[m],enumerable:!(a=Q(t,m))||a.enumerable});return e};var Z=e=>Y(b({},"__esModule",{value:!0}),e);var o,i,g=x(()=>{"use strict";o=require("react/jsx-runtime"),i={block:{h1:({children:e})=>(0,o.jsx)("h1",{className:"mb-6 leading-loose text-gray-900 text-7xl",children:e}),h2:({children:e})=>(0,o.jsx)("h2",{className:"mb-6 text-5xl leading-loose text-gray-900",children:e}),h3:({children:e})=>(0,o.jsx)("h3",{className:"mb-6 text-3xl leading-loose text-gray-900",children:e}),h4:({children:e})=>(0,o.jsx)("h4",{className:"mb-6 text-xl leading-loose text-gray-900",children:e}),normal:({children:e})=>(0,o.jsx)("p",{className:"mb-5 leading-relaxed text-justify text-gray-900",children:e}),blockquote:({children:e})=>(0,o.jsxs)("blockquote",{className:"mb-6 italic leading-loose text-gray-500 px-14",children:["- ",e]})},code:({value:e})=>(0,o.jsx)("pre",{"data-language":e.language,children:(0,o.jsx)("code",{children:e.code})}),list:{bullet:({children:e})=>(0,o.jsx)("ul",{className:"pl-10 mb-6 leading-loose text-gray-900 list-disc",children:e}),number:({children:e})=>(0,o.jsx)("ol",{className:"mb-6 leading-loose text-gray-900 list-decimal",children:e})},listItem:{bullet:({children:e})=>(0,o.jsx)("li",{className:"mb-6 leading-loose text-gray-900",children:e})},marks:{strong:({children:e})=>(0,o.jsx)("strong",{children:e}),em:({children:e})=>(0,o.jsx)("em",{children:e}),code:({children:e})=>(0,o.jsx)("code",{children:e}),link:({children:e,value:t})=>{var n;return(0,o.jsx)("a",{"aria-label":(n=t.href)!=null?n:"external link",className:"text-primary hover:text-secondary",href:t==null?void 0:t.href,target:"_blank",rel:"noopener noreferrer",children:e})}}}});var z={};p(z,{TextComponent_A:()=>d,default:()=>d});function d({heading:e,firstColumn:t}){return(0,s.jsx)(j.Section,{className:"py-20 bg-background",children:(0,s.jsxs)(_.Container,{maxWidth:1280,children:[e&&(0,s.jsx)(D.Heading,{fontSize:"xl",className:"mb-5 text-center",children:e}),(0,s.jsx)(H.Flex,{wrap:!0,justify:"center",className:"mx-auto",children:t&&(0,s.jsx)("div",{className:"mb-2 text-xs md:mb-0 md:w-1/2 lg:text-base",children:(0,s.jsx)(M.PortableText,{value:t,components:i,onMissingComponent:!1})})})]})})}var M,_,H,D,j,s,u=x(()=>{"use strict";M=require("@portabletext/react"),_=require("@stackshift-ui/container"),H=require("@stackshift-ui/flex"),D=require("@stackshift-ui/heading"),j=require("@stackshift-ui/section");g();s=require("react/jsx-runtime")});var I={};p(I,{TextComponent_B:()=>C,default:()=>C});function C({heading:e,firstColumn:t,secondColumn:n}){return(0,l.jsx)(j.Section,{className:"py-20 bg-background",children:(0,l.jsxs)(_.Container,{maxWidth:1280,children:[e&&(0,l.jsx)(D.Heading,{fontSize:"xl",className:"w-full mb-4 text-center",children:e}),(0,l.jsxs)(H.Flex,{wrap:!0,justify:"center",className:"mx-auto ",children:[t&&(0,l.jsx)("div",{className:"px-5 mb-3 text-xs leading-relaxed text-justify text-gray-500 lg:mb-6 lg:w-1/2 lg:text-base",children:(0,l.jsx)(y.PortableText,{value:t,components:i})}),n&&(0,l.jsx)("div",{className:"px-5 mb-6 text-xs leading-relaxed text-justify text-gray-500 md:mb-0 lg:w-1/2 lg:text-base",children:(0,l.jsx)(y.PortableText,{value:n,components:i,onMissingComponent:!1})})]})]})})}var y,_,H,D,j,l,N=x(()=>{"use strict";y=require("@portabletext/react");g();l=require("react/jsx-runtime")});var K={};p(K,{TextComponent_C:()=>h,default:()=>h});function h({heading:e,firstColumn:t,secondColumn:n,thirdColumn:a}){return(0,r.jsx)(j.Section,{className:"py-20 bg-background",children:(0,r.jsxs)(_.Container,{className:"container px-4 mx-auto",maxWidth:1280,children:[e&&(0,r.jsx)(D.Heading,{fontSize:"xl",className:"w-full mb-5 text-center",children:e}),(0,r.jsxs)(H.Flex,{wrap:!0,justify:"center",className:"mx-auto",children:[t&&(0,r.jsx)("div",{className:"px-3 mb-6 text-xs leading-relaxed text-justify text-gray-500 md:mb-0 lg:w-1/3 lg:text-base",children:(0,r.jsx)(c.PortableText,{value:t,components:i,onMissingComponent:!1})}),n&&(0,r.jsx)("div",{className:"px-3 mb-6 text-xs leading-relaxed text-justify text-gray-500 md:mb-0 lg:w-1/3 lg:text-base",children:(0,r.jsx)(c.PortableText,{value:n,components:i,onMissingComponent:!1})}),a&&(0,r.jsx)("div",{className:"px-3 mb-6 text-xs leading-relaxed text-justify text-gray-500 md:mb-0 lg:w-1/3 lg:text-base",children:(0,r.jsx)(c.PortableText,{value:a,components:i,onMissingComponent:!1})})]})]})})}var c,_,H,D,j,r,k=x(()=>{"use strict";c=require("@portabletext/react");g();r=require("react/jsx-runtime")});var te={};p(te,{TextComponent:()=>L,TextComponent_A:()=>d,TextComponent_B:()=>C,TextComponent_C:()=>h});module.exports=Z(te);var f=require("react"),O=require("react/jsx-runtime"),$={variant_a:(0,f.lazy)(()=>Promise.resolve().then(()=>(u(),z))),variant_b:(0,f.lazy)(()=>Promise.resolve().then(()=>(N(),I))),variant_c:(0,f.lazy)(()=>Promise.resolve().then(()=>(k(),K)))},ee="TextComponent",L=({data:e})=>{var m,v,w,T,P,S,B,F;let t=e==null?void 0:e.variant,n=t&&$[t],a={heading:(v=(m=e==null?void 0:e.variants)==null?void 0:m.title)!=null?v:void 0,firstColumn:(T=(w=e==null?void 0:e.variants)==null?void 0:w.firstColumn)!=null?T:void 0,secondColumn:(S=(P=e==null?void 0:e.variants)==null?void 0:P.secondColumn)!=null?S:void 0,thirdColumn:(F=(B=e==null?void 0:e.variants)==null?void 0:B.thirdColumn)!=null?F:void 0};return n?(0,O.jsx)(n,{...a}):null};L.displayName=ee;u();N();k();0&&(module.exports={TextComponent,TextComponent_A,TextComponent_B,TextComponent_C});
|
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";import{a as t}from"./chunk-
|
|
2
|
+
"use strict";import{a as t}from"./chunk-B6YHA4AD.mjs";import{a as o}from"./chunk-3E7L5HFT.mjs";import{a as r}from"./chunk-O4GIIQJP.mjs";import{a as e}from"./chunk-5UXS6XWN.mjs";import"./chunk-CBIPJS7L.mjs";export{t as TextComponent,o as TextComponent_A,r as TextComponent_B,e as TextComponent_C};
|
package/dist/text-component.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var b=Object.defineProperty;var Q=Object.getOwnPropertyDescriptor;var U=Object.getOwnPropertyNames;var X=Object.prototype.hasOwnProperty;var x=(e,t)=>()=>(e&&(t=e(e=0)),t);var p=(e,t)=>{for(var n in t)b(e,n,{get:t[n],enumerable:!0})},Y=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let m of U(t))!X.call(e,m)&&m!==n&&b(e,m,{get:()=>t[m],enumerable:!(a=Q(t,m))||a.enumerable});return e};var Z=e=>Y(b({},"__esModule",{value:!0}),e);var o,i,g=x(()=>{"use strict";o=require("react/jsx-runtime"),i={block:{h1:({children:e})=>(0,o.jsx)("h1",{className:"mb-6 leading-loose text-gray-900 text-7xl",children:e}),h2:({children:e})=>(0,o.jsx)("h2",{className:"mb-6 text-5xl leading-loose text-gray-900",children:e}),h3:({children:e})=>(0,o.jsx)("h3",{className:"mb-6 text-3xl leading-loose text-gray-900",children:e}),h4:({children:e})=>(0,o.jsx)("h4",{className:"mb-6 text-xl leading-loose text-gray-900",children:e}),normal:({children:e})=>(0,o.jsx)("p",{className:"mb-5 leading-relaxed text-justify text-gray-
|
|
1
|
+
"use strict";var b=Object.defineProperty;var Q=Object.getOwnPropertyDescriptor;var U=Object.getOwnPropertyNames;var X=Object.prototype.hasOwnProperty;var x=(e,t)=>()=>(e&&(t=e(e=0)),t);var p=(e,t)=>{for(var n in t)b(e,n,{get:t[n],enumerable:!0})},Y=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let m of U(t))!X.call(e,m)&&m!==n&&b(e,m,{get:()=>t[m],enumerable:!(a=Q(t,m))||a.enumerable});return e};var Z=e=>Y(b({},"__esModule",{value:!0}),e);var o,i,g=x(()=>{"use strict";o=require("react/jsx-runtime"),i={block:{h1:({children:e})=>(0,o.jsx)("h1",{className:"mb-6 leading-loose text-gray-900 text-7xl",children:e}),h2:({children:e})=>(0,o.jsx)("h2",{className:"mb-6 text-5xl leading-loose text-gray-900",children:e}),h3:({children:e})=>(0,o.jsx)("h3",{className:"mb-6 text-3xl leading-loose text-gray-900",children:e}),h4:({children:e})=>(0,o.jsx)("h4",{className:"mb-6 text-xl leading-loose text-gray-900",children:e}),normal:({children:e})=>(0,o.jsx)("p",{className:"mb-5 leading-relaxed text-justify text-gray-900",children:e}),blockquote:({children:e})=>(0,o.jsxs)("blockquote",{className:"mb-6 italic leading-loose text-gray-500 px-14",children:["- ",e]})},code:({value:e})=>(0,o.jsx)("pre",{"data-language":e.language,children:(0,o.jsx)("code",{children:e.code})}),list:{bullet:({children:e})=>(0,o.jsx)("ul",{className:"pl-10 mb-6 leading-loose text-gray-900 list-disc",children:e}),number:({children:e})=>(0,o.jsx)("ol",{className:"mb-6 leading-loose text-gray-900 list-decimal",children:e})},listItem:{bullet:({children:e})=>(0,o.jsx)("li",{className:"mb-6 leading-loose text-gray-900",children:e})},marks:{strong:({children:e})=>(0,o.jsx)("strong",{children:e}),em:({children:e})=>(0,o.jsx)("em",{children:e}),code:({children:e})=>(0,o.jsx)("code",{children:e}),link:({children:e,value:t})=>{var n;return(0,o.jsx)("a",{"aria-label":(n=t.href)!=null?n:"external link",className:"text-primary hover:text-secondary",href:t==null?void 0:t.href,target:"_blank",rel:"noopener noreferrer",children:e})}}}});var M={};p(M,{TextComponent_A:()=>F,default:()=>F});function F({heading:e,firstColumn:t}){return(0,s.jsx)(B.Section,{className:"py-20 bg-background",children:(0,s.jsxs)(T.Container,{maxWidth:1280,children:[e&&(0,s.jsx)(S.Heading,{fontSize:"xl",className:"mb-5 text-center",children:e}),(0,s.jsx)(P.Flex,{wrap:!0,justify:"center",className:"mx-auto",children:t&&(0,s.jsx)("div",{className:"mb-2 text-xs md:mb-0 md:w-1/2 lg:text-base",children:(0,s.jsx)(w.PortableText,{value:t,components:i,onMissingComponent:!1})})})]})})}var w,T,P,S,B,s,_=x(()=>{"use strict";w=require("@portabletext/react"),T=require("@stackshift-ui/container"),P=require("@stackshift-ui/flex"),S=require("@stackshift-ui/heading"),B=require("@stackshift-ui/section");g();s=require("react/jsx-runtime")});var V={};p(V,{TextComponent_B:()=>q,default:()=>q});function q({heading:e,firstColumn:t,secondColumn:n}){return(0,l.jsx)(B.Section,{className:"py-20 bg-background",children:(0,l.jsxs)(T.Container,{maxWidth:1280,children:[e&&(0,l.jsx)(S.Heading,{fontSize:"xl",className:"w-full mb-4 text-center",children:e}),(0,l.jsxs)(P.Flex,{wrap:!0,justify:"center",className:"mx-auto ",children:[t&&(0,l.jsx)("div",{className:"px-5 mb-3 text-xs leading-relaxed text-justify text-gray-500 lg:mb-6 lg:w-1/2 lg:text-base",children:(0,l.jsx)(d.PortableText,{value:t,components:i})}),n&&(0,l.jsx)("div",{className:"px-5 mb-6 text-xs leading-relaxed text-justify text-gray-500 md:mb-0 lg:w-1/2 lg:text-base",children:(0,l.jsx)(d.PortableText,{value:n,components:i,onMissingComponent:!1})})]})]})})}var d,T,P,S,B,l,W=x(()=>{"use strict";d=require("@portabletext/react");g();l=require("react/jsx-runtime")});var J={};p(J,{TextComponent_C:()=>G,default:()=>G});function G({heading:e,firstColumn:t,secondColumn:n,thirdColumn:a}){return(0,r.jsx)(B.Section,{className:"py-20 bg-background",children:(0,r.jsxs)(T.Container,{className:"container px-4 mx-auto",maxWidth:1280,children:[e&&(0,r.jsx)(S.Heading,{fontSize:"xl",className:"w-full mb-5 text-center",children:e}),(0,r.jsxs)(P.Flex,{wrap:!0,justify:"center",className:"mx-auto",children:[t&&(0,r.jsx)("div",{className:"px-3 mb-6 text-xs leading-relaxed text-justify text-gray-500 md:mb-0 lg:w-1/3 lg:text-base",children:(0,r.jsx)(c.PortableText,{value:t,components:i,onMissingComponent:!1})}),n&&(0,r.jsx)("div",{className:"px-3 mb-6 text-xs leading-relaxed text-justify text-gray-500 md:mb-0 lg:w-1/3 lg:text-base",children:(0,r.jsx)(c.PortableText,{value:n,components:i,onMissingComponent:!1})}),a&&(0,r.jsx)("div",{className:"px-3 mb-6 text-xs leading-relaxed text-justify text-gray-500 md:mb-0 lg:w-1/3 lg:text-base",children:(0,r.jsx)(c.PortableText,{value:a,components:i,onMissingComponent:!1})})]})]})})}var c,T,P,S,B,r,K=x(()=>{"use strict";c=require("@portabletext/react");g();r=require("react/jsx-runtime")});var te={};p(te,{TextComponent:()=>L});module.exports=Z(te);var f=require("react"),O=require("react/jsx-runtime"),$={variant_a:(0,f.lazy)(()=>Promise.resolve().then(()=>(_(),M))),variant_b:(0,f.lazy)(()=>Promise.resolve().then(()=>(W(),V))),variant_c:(0,f.lazy)(()=>Promise.resolve().then(()=>(K(),J)))},ee="TextComponent",L=({data:e})=>{var m,u,y,C,N,h,k,v;let t=e==null?void 0:e.variant,n=t&&$[t],a={heading:(u=(m=e==null?void 0:e.variants)==null?void 0:m.title)!=null?u:void 0,firstColumn:(C=(y=e==null?void 0:e.variants)==null?void 0:y.firstColumn)!=null?C:void 0,secondColumn:(h=(N=e==null?void 0:e.variants)==null?void 0:N.secondColumn)!=null?h:void 0,thirdColumn:(v=(k=e==null?void 0:e.variants)==null?void 0:k.thirdColumn)!=null?v:void 0};return n?(0,O.jsx)(n,{...a}):null};L.displayName=ee;0&&(module.exports={TextComponent});
|
package/dist/text-component.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a}from"./chunk-B6YHA4AD.mjs";export{a as TextComponent};
|
package/dist/text_a.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var n=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var u=Object.getOwnPropertyNames;var y=Object.prototype.hasOwnProperty;var f=(e,t)=>{for(var a in t)n(e,a,{get:t[a],enumerable:!0})},h=(e,t,a,m)=>{if(t&&typeof t=="object"||typeof t=="function")for(let l of u(t))!y.call(e,l)&&l!==a&&n(e,l,{get:()=>t[l],enumerable:!(m=b(t,l))||m.enumerable});return e};var N=e=>h(n({},"__esModule",{value:!0}),e);var k={};f(k,{TextComponent_A:()=>d,default:()=>d});module.exports=N(k);var i=require("@portabletext/react"),x=require("@stackshift-ui/container"),c=require("@stackshift-ui/flex"),g=require("@stackshift-ui/heading"),p=require("@stackshift-ui/section");var o=require("react/jsx-runtime"),s={block:{h1:({children:e})=>(0,o.jsx)("h1",{className:"mb-6 leading-loose text-gray-900 text-7xl",children:e}),h2:({children:e})=>(0,o.jsx)("h2",{className:"mb-6 text-5xl leading-loose text-gray-900",children:e}),h3:({children:e})=>(0,o.jsx)("h3",{className:"mb-6 text-3xl leading-loose text-gray-900",children:e}),h4:({children:e})=>(0,o.jsx)("h4",{className:"mb-6 text-xl leading-loose text-gray-900",children:e}),normal:({children:e})=>(0,o.jsx)("p",{className:"mb-5 leading-relaxed text-justify text-gray-900",children:e}),blockquote:({children:e})=>(0,o.jsxs)("blockquote",{className:"mb-6 italic leading-loose text-gray-500 px-14",children:["- ",e]})},code:({value:e})=>(0,o.jsx)("pre",{"data-language":e.language,children:(0,o.jsx)("code",{children:e.code})}),list:{bullet:({children:e})=>(0,o.jsx)("ul",{className:"pl-10 mb-6 leading-loose text-gray-900 list-disc",children:e}),number:({children:e})=>(0,o.jsx)("ol",{className:"mb-6 leading-loose text-gray-900 list-decimal",children:e})},listItem:{bullet:({children:e})=>(0,o.jsx)("li",{className:"mb-6 leading-loose text-gray-900",children:e})},marks:{strong:({children:e})=>(0,o.jsx)("strong",{children:e}),em:({children:e})=>(0,o.jsx)("em",{children:e}),code:({children:e})=>(0,o.jsx)("code",{children:e}),link:({children:e,value:t})=>{var a;return(0,o.jsx)("a",{"aria-label":(a=t.href)!=null?a:"external link",className:"text-primary hover:text-secondary",href:t==null?void 0:t.href,target:"_blank",rel:"noopener noreferrer",children:e})}}};function d({heading:e,firstColumn:t}){return(0,o.jsx)(p.Section,{className:"py-20 bg-background",children:(0,o.jsxs)(x.Container,{maxWidth:1280,children:[e&&(0,o.jsx)(g.Heading,{fontSize:"xl",className:"mb-5 text-center",children:e}),(0,o.jsx)(c.Flex,{wrap:!0,justify:"center",className:"mx-auto",children:t&&(0,o.jsx)("div",{className:"mb-2 text-xs md:mb-0 md:w-1/2 lg:text-base",children:(0,o.jsx)(i.PortableText,{value:t,components:s,onMissingComponent:!1})})})]})})}0&&(module.exports={TextComponent_A});
|
package/dist/text_a.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a}from"./chunk-3E7L5HFT.mjs";import"./chunk-CBIPJS7L.mjs";export{a as TextComponent_A,a as default};
|
package/dist/text_b.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var n=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var
|
|
1
|
+
"use strict";var n=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var y=Object.getOwnPropertyNames;var u=Object.prototype.hasOwnProperty;var f=(e,t)=>{for(var l in t)n(e,l,{get:t[l],enumerable:!0})},h=(e,t,l,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of y(t))!u.call(e,r)&&r!==l&&n(e,r,{get:()=>t[r],enumerable:!(i=b(t,r))||i.enumerable});return e};var N=e=>h(n({},"__esModule",{value:!0}),e);var k={};f(k,{TextComponent_B:()=>d,default:()=>d});module.exports=N(k);var m=require("@portabletext/react"),x=require("@stackshift-ui/container"),g=require("@stackshift-ui/flex"),c=require("@stackshift-ui/heading"),p=require("@stackshift-ui/section");var o=require("react/jsx-runtime"),s={block:{h1:({children:e})=>(0,o.jsx)("h1",{className:"mb-6 leading-loose text-gray-900 text-7xl",children:e}),h2:({children:e})=>(0,o.jsx)("h2",{className:"mb-6 text-5xl leading-loose text-gray-900",children:e}),h3:({children:e})=>(0,o.jsx)("h3",{className:"mb-6 text-3xl leading-loose text-gray-900",children:e}),h4:({children:e})=>(0,o.jsx)("h4",{className:"mb-6 text-xl leading-loose text-gray-900",children:e}),normal:({children:e})=>(0,o.jsx)("p",{className:"mb-5 leading-relaxed text-justify text-gray-900",children:e}),blockquote:({children:e})=>(0,o.jsxs)("blockquote",{className:"mb-6 italic leading-loose text-gray-500 px-14",children:["- ",e]})},code:({value:e})=>(0,o.jsx)("pre",{"data-language":e.language,children:(0,o.jsx)("code",{children:e.code})}),list:{bullet:({children:e})=>(0,o.jsx)("ul",{className:"pl-10 mb-6 leading-loose text-gray-900 list-disc",children:e}),number:({children:e})=>(0,o.jsx)("ol",{className:"mb-6 leading-loose text-gray-900 list-decimal",children:e})},listItem:{bullet:({children:e})=>(0,o.jsx)("li",{className:"mb-6 leading-loose text-gray-900",children:e})},marks:{strong:({children:e})=>(0,o.jsx)("strong",{children:e}),em:({children:e})=>(0,o.jsx)("em",{children:e}),code:({children:e})=>(0,o.jsx)("code",{children:e}),link:({children:e,value:t})=>{var l;return(0,o.jsx)("o",{"aria-label":(l=t.href)!=null?l:"external link",className:"text-primary hover:text-secondary",href:t==null?void 0:t.href,target:"_blank",rel:"noopener noreferrer",children:e})}}};function d({heading:e,firstColumn:t,secondColumn:l}){return(0,o.jsx)(p.Section,{className:"py-20 bg-background",children:(0,o.jsxs)(x.Container,{maxWidth:1280,children:[e&&(0,o.jsx)(c.Heading,{fontSize:"xl",className:"w-full mb-4 text-center",children:e}),(0,o.jsxs)(g.Flex,{wrap:!0,justify:"center",className:"mx-auto ",children:[t&&(0,o.jsx)("div",{className:"px-5 mb-3 text-xs leading-relaxed text-justify text-gray-500 lg:mb-6 lg:w-1/2 lg:text-base",children:(0,o.jsx)(m.PortableText,{value:t,components:s})}),l&&(0,o.jsx)("div",{className:"px-5 mb-6 text-xs leading-relaxed text-justify text-gray-500 md:mb-0 lg:w-1/2 lg:text-base",children:(0,o.jsx)(m.PortableText,{value:l,components:s,onMissingComponent:!1})})]})]})})}0&&(module.exports={TextComponent_B});
|
package/dist/text_b.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a}from"./chunk-O4GIIQJP.mjs";import"./chunk-CBIPJS7L.mjs";export{a as TextComponent_B,a as default};
|
package/dist/text_c.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var i=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var
|
|
1
|
+
"use strict";var i=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var y=Object.getOwnPropertyNames;var u=Object.prototype.hasOwnProperty;var f=(e,t)=>{for(var n in t)i(e,n,{get:t[n],enumerable:!0})},h=(e,t,n,l)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of y(t))!u.call(e,r)&&r!==n&&i(e,r,{get:()=>t[r],enumerable:!(l=b(t,r))||l.enumerable});return e};var N=e=>h(i({},"__esModule",{value:!0}),e);var k={};f(k,{TextComponent_C:()=>d,default:()=>d});module.exports=N(k);var m=require("@portabletext/react"),x=require("@stackshift-ui/container"),g=require("@stackshift-ui/flex"),p=require("@stackshift-ui/heading"),c=require("@stackshift-ui/section");var o=require("react/jsx-runtime"),s={block:{h1:({children:e})=>(0,o.jsx)("h1",{className:"mb-6 leading-loose text-gray-900 text-7xl",children:e}),h2:({children:e})=>(0,o.jsx)("h2",{className:"mb-6 text-5xl leading-loose text-gray-900",children:e}),h3:({children:e})=>(0,o.jsx)("h3",{className:"mb-6 text-3xl leading-loose text-gray-900",children:e}),h4:({children:e})=>(0,o.jsx)("h4",{className:"mb-6 text-xl leading-loose text-gray-900",children:e}),normal:({children:e})=>(0,o.jsx)("p",{className:"mb-5 leading-relaxed text-justify text-gray-900",children:e}),blockquote:({children:e})=>(0,o.jsxs)("blockquote",{className:"mb-6 italic leading-loose text-gray-500 px-14",children:["- ",e]})},code:({value:e})=>(0,o.jsx)("pre",{"data-language":e.language,children:(0,o.jsx)("code",{children:e.code})}),list:{bullet:({children:e})=>(0,o.jsx)("ul",{className:"pl-10 mb-6 leading-loose text-gray-900 list-disc",children:e}),number:({children:e})=>(0,o.jsx)("ol",{className:"mb-6 leading-loose text-gray-900 list-decimal",children:e})},listItem:{bullet:({children:e})=>(0,o.jsx)("li",{className:"mb-6 leading-loose text-gray-900",children:e})},marks:{strong:({children:e})=>(0,o.jsx)("strong",{children:e}),em:({children:e})=>(0,o.jsx)("em",{children:e}),code:({children:e})=>(0,o.jsx)("code",{children:e}),link:({children:e,value:t})=>{var n;return(0,o.jsx)("o",{"aria-label":(n=t.href)!=null?n:"external link",className:"text-primary hover:text-secondary",href:t==null?void 0:t.href,target:"_blank",rel:"noopener noreferrer",children:e})}}};function d({heading:e,firstColumn:t,secondColumn:n,thirdColumn:l}){return(0,o.jsx)(c.Section,{className:"py-20 bg-background",children:(0,o.jsxs)(x.Container,{className:"container px-4 mx-auto",maxWidth:1280,children:[e&&(0,o.jsx)(p.Heading,{fontSize:"xl",className:"w-full mb-5 text-center",children:e}),(0,o.jsxs)(g.Flex,{wrap:!0,justify:"center",className:"mx-auto",children:[t&&(0,o.jsx)("div",{className:"px-3 mb-6 text-xs leading-relaxed text-justify text-gray-500 md:mb-0 lg:w-1/3 lg:text-base",children:(0,o.jsx)(m.PortableText,{value:t,components:s,onMissingComponent:!1})}),n&&(0,o.jsx)("div",{className:"px-3 mb-6 text-xs leading-relaxed text-justify text-gray-500 md:mb-0 lg:w-1/3 lg:text-base",children:(0,o.jsx)(m.PortableText,{value:n,components:s,onMissingComponent:!1})}),l&&(0,o.jsx)("div",{className:"px-3 mb-6 text-xs leading-relaxed text-justify text-gray-500 md:mb-0 lg:w-1/3 lg:text-base",children:(0,o.jsx)(m.PortableText,{value:l,components:s,onMissingComponent:!1})})]})]})})}0&&(module.exports={TextComponent_C});
|
package/dist/text_c.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a}from"./chunk-5UXS6XWN.mjs";import"./chunk-CBIPJS7L.mjs";export{a as TextComponent_C,a as default};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stackshift-ui/text-component",
|
|
3
3
|
"description": "",
|
|
4
|
-
"version": "6.0.
|
|
4
|
+
"version": "6.0.4-beta.1",
|
|
5
5
|
"private": false,
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"main": "./dist/index.js",
|
|
@@ -36,12 +36,12 @@
|
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@portabletext/react": "^3.1.0",
|
|
38
38
|
"@portabletext/types": "^2.0.13",
|
|
39
|
-
"@stackshift-ui/heading": "6.0.3",
|
|
40
39
|
"@stackshift-ui/flex": "6.0.3",
|
|
40
|
+
"@stackshift-ui/container": "6.0.3",
|
|
41
41
|
"@stackshift-ui/scripts": "6.0.2",
|
|
42
|
-
"@stackshift-ui/section": "6.0.3",
|
|
43
42
|
"@stackshift-ui/system": "6.0.3",
|
|
44
|
-
"@stackshift-ui/
|
|
43
|
+
"@stackshift-ui/section": "6.0.3",
|
|
44
|
+
"@stackshift-ui/heading": "6.0.3"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"@types/react": "16.8 - 19",
|
package/src/helper/index.tsx
CHANGED
|
@@ -16,7 +16,7 @@ export const textComponentBlockStyling: MyPortableTextComponents = {
|
|
|
16
16
|
return <h4 className="mb-6 text-xl leading-loose text-gray-900">{children}</h4>;
|
|
17
17
|
},
|
|
18
18
|
normal: ({ children }) => {
|
|
19
|
-
return <p className="mb-5 leading-relaxed text-justify text-gray-
|
|
19
|
+
return <p className="mb-5 leading-relaxed text-justify text-gray-900">{children}</p>;
|
|
20
20
|
},
|
|
21
21
|
blockquote: ({ children }) => {
|
|
22
22
|
return (
|
|
@@ -52,7 +52,7 @@ export const textComponentBlockStyling: MyPortableTextComponents = {
|
|
|
52
52
|
link: ({ children, value }) => (
|
|
53
53
|
<a
|
|
54
54
|
aria-label={value.href ?? "external link"}
|
|
55
|
-
className="text-primary
|
|
55
|
+
className="text-primary hover:text-secondary"
|
|
56
56
|
href={value?.href}
|
|
57
57
|
target="_blank"
|
|
58
58
|
rel="noopener noreferrer">
|
package/src/text_b.tsx
CHANGED
|
@@ -21,12 +21,12 @@ export default function TextComponent_B({
|
|
|
21
21
|
)}
|
|
22
22
|
<Flex wrap justify="center" className="mx-auto ">
|
|
23
23
|
{firstColumn && (
|
|
24
|
-
<div className="px-5 mb-3 text-xs leading-relaxed text-justify text-gray-500 lg:mb-6 lg:w-1/
|
|
24
|
+
<div className="px-5 mb-3 text-xs leading-relaxed text-justify text-gray-500 lg:mb-6 lg:w-1/2 lg:text-base">
|
|
25
25
|
<PortableText value={firstColumn} components={textComponentBlockStyling} />
|
|
26
26
|
</div>
|
|
27
27
|
)}
|
|
28
28
|
{secondColumn && (
|
|
29
|
-
<div className="px-5 mb-6 text-xs leading-relaxed text-justify text-gray-500 md:mb-0 lg:w-1/
|
|
29
|
+
<div className="px-5 mb-6 text-xs leading-relaxed text-justify text-gray-500 md:mb-0 lg:w-1/2 lg:text-base">
|
|
30
30
|
<PortableText
|
|
31
31
|
value={secondColumn}
|
|
32
32
|
components={textComponentBlockStyling}
|
package/src/text_c.tsx
CHANGED
|
@@ -22,7 +22,7 @@ export default function TextComponent_C({
|
|
|
22
22
|
)}
|
|
23
23
|
<Flex wrap justify="center" className="mx-auto">
|
|
24
24
|
{firstColumn && (
|
|
25
|
-
<div className="px-3 mb-6 text-xs leading-relaxed text-justify text-gray-500 md:mb-0 lg:w-1/
|
|
25
|
+
<div className="px-3 mb-6 text-xs leading-relaxed text-justify text-gray-500 md:mb-0 lg:w-1/3 lg:text-base">
|
|
26
26
|
<PortableText
|
|
27
27
|
value={firstColumn}
|
|
28
28
|
components={textComponentBlockStyling}
|
|
@@ -31,7 +31,7 @@ export default function TextComponent_C({
|
|
|
31
31
|
</div>
|
|
32
32
|
)}
|
|
33
33
|
{secondColumn && (
|
|
34
|
-
<div className="px-3 mb-6 text-xs leading-relaxed text-justify text-gray-500 md:mb-0 lg:w-1/
|
|
34
|
+
<div className="px-3 mb-6 text-xs leading-relaxed text-justify text-gray-500 md:mb-0 lg:w-1/3 lg:text-base">
|
|
35
35
|
<PortableText
|
|
36
36
|
value={secondColumn}
|
|
37
37
|
components={textComponentBlockStyling}
|
|
@@ -40,7 +40,7 @@ export default function TextComponent_C({
|
|
|
40
40
|
</div>
|
|
41
41
|
)}
|
|
42
42
|
{thirdColumn && (
|
|
43
|
-
<div className="px-3 mb-6 text-xs leading-relaxed text-justify text-gray-500 md:mb-0 lg:w-1/
|
|
43
|
+
<div className="px-3 mb-6 text-xs leading-relaxed text-justify text-gray-500 md:mb-0 lg:w-1/3 lg:text-base">
|
|
44
44
|
<PortableText
|
|
45
45
|
value={thirdColumn}
|
|
46
46
|
components={textComponentBlockStyling}
|
|
File without changes
|