@stackshift-ui/text-component 7.0.0-beta.1 → 7.0.0-beta.4

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stackshift-ui/text-component",
3
3
  "description": "",
4
- "version": "7.0.0-beta.1",
4
+ "version": "7.0.0-beta.4",
5
5
  "private": false,
6
6
  "sideEffects": false,
7
7
  "main": "./dist/index.js",
@@ -36,16 +36,16 @@
36
36
  "dependencies": {
37
37
  "@portabletext/react": "^3.1.0",
38
38
  "@portabletext/types": "^2.0.13",
39
- "@stackshift-ui/heading": "7.0.0-beta.1",
40
- "@stackshift-ui/container": "7.0.0-beta.1",
41
- "@stackshift-ui/system": "6.1.0-beta.1",
42
- "@stackshift-ui/section": "7.0.0-beta.1",
43
- "@stackshift-ui/flex": "7.0.0-beta.1",
44
- "@stackshift-ui/scripts": "6.1.0-beta.0"
39
+ "@stackshift-ui/container": "7.0.0-beta.4",
40
+ "@stackshift-ui/scripts": "7.0.0-beta.3",
41
+ "@stackshift-ui/section": "7.0.0-beta.4",
42
+ "@stackshift-ui/flex": "7.0.0-beta.4",
43
+ "@stackshift-ui/heading": "7.0.0-beta.4",
44
+ "@stackshift-ui/system": "7.0.0-beta.4"
45
45
  },
46
46
  "peerDependencies": {
47
47
  "@types/react": "16.8 - 19",
48
- "@stackshift-ui/system": ">=6.1.0-beta.1",
48
+ "@stackshift-ui/system": ">=7.0.0-beta.4",
49
49
  "next": "10 - 14",
50
50
  "react": "16.8 - 19",
51
51
  "react-dom": "16.8 - 19"
@@ -1,11 +1,14 @@
1
1
  import { PortableTextBlock } from "@portabletext/types";
2
- import { lazy } from "react";
2
+ import React from "react";
3
3
  import { SectionsProps } from "./types";
4
+ import TextA from "./text_a";
5
+ import TextB from "./text_b";
6
+ import TextC from "./text_c";
4
7
 
5
8
  const Variants = {
6
- variant_a: lazy(() => import("./text_a")),
7
- variant_b: lazy(() => import("./text_b")),
8
- variant_c: lazy(() => import("./text_c")),
9
+ variant_a: TextA,
10
+ variant_b: TextB,
11
+ variant_c: TextC,
9
12
  };
10
13
 
11
14
  export interface TextComponentProps {
@@ -1 +0,0 @@
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 +0,0 @@
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 +0,0 @@
1
- import{lazy as o}from"react";import{jsx as P}from"react/jsx-runtime";var C={variant_a:o(()=>import("./text_a.mjs")),variant_b:o(()=>import("./text_b.mjs")),variant_c:o(()=>import("./text_c.mjs"))},v="TextComponent",x=({data:n})=>{var i,t,s,l,m,p,c,u;let r=n==null?void 0:n.variant,e=r&&C[r],f={heading:(t=(i=n==null?void 0:n.variants)==null?void 0:i.title)!=null?t:void 0,firstColumn:(l=(s=n==null?void 0:n.variants)==null?void 0:s.firstColumn)!=null?l:void 0,secondColumn:(p=(m=n==null?void 0:n.variants)==null?void 0:m.secondColumn)!=null?p:void 0,thirdColumn:(u=(c=n==null?void 0:n.variants)==null?void 0:c.thirdColumn)!=null?u:void 0};return e?P(e,{...f}):null};x.displayName=v;export{x as a};
@@ -1 +0,0 @@
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 +0,0 @@
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};
@@ -1,2 +0,0 @@
1
- import { MyPortableTextComponents } from "../types";
2
- export declare const textComponentBlockStyling: MyPortableTextComponents;
@@ -1 +0,0 @@
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});
@@ -1 +0,0 @@
1
- import{a}from"../chunk-CBIPJS7L.mjs";export{a as textComponentBlockStyling};
package/dist/index.d.ts DELETED
@@ -1,4 +0,0 @@
1
- export * from "./text-component";
2
- export * from "./text_a";
3
- export * from "./text_b";
4
- export * from "./text_c";
package/dist/index.js DELETED
@@ -1,2 +0,0 @@
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-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 DELETED
@@ -1,2 +0,0 @@
1
- "use client";
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};
@@ -1,9 +0,0 @@
1
- import { PortableTextBlock } from "@portabletext/types";
2
- import { SectionsProps } from "./types";
3
- export interface TextComponentProps {
4
- heading?: string;
5
- firstColumn?: PortableTextBlock[];
6
- secondColumn?: PortableTextBlock[];
7
- thirdColumn?: PortableTextBlock[];
8
- }
9
- export declare const TextComponent: React.FC<SectionsProps>;
@@ -1 +0,0 @@
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});
@@ -1 +0,0 @@
1
- import{a}from"./chunk-B6YHA4AD.mjs";export{a as TextComponent};
package/dist/text_a.d.ts DELETED
@@ -1,3 +0,0 @@
1
- import { TextComponentProps } from ".";
2
- export default function TextComponent_A({ heading, firstColumn }: TextComponentProps): import("react/jsx-runtime").JSX.Element;
3
- export { TextComponent_A };
package/dist/text_a.js DELETED
@@ -1 +0,0 @@
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 DELETED
@@ -1 +0,0 @@
1
- import{a}from"./chunk-3E7L5HFT.mjs";import"./chunk-CBIPJS7L.mjs";export{a as TextComponent_A,a as default};
package/dist/text_b.d.ts DELETED
@@ -1,3 +0,0 @@
1
- import { TextComponentProps } from ".";
2
- export default function TextComponent_B({ heading, firstColumn, secondColumn, }: TextComponentProps): import("react/jsx-runtime").JSX.Element;
3
- export { TextComponent_B };
package/dist/text_b.js DELETED
@@ -1 +0,0 @@
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 DELETED
@@ -1 +0,0 @@
1
- import{a}from"./chunk-O4GIIQJP.mjs";import"./chunk-CBIPJS7L.mjs";export{a as TextComponent_B,a as default};
package/dist/text_c.d.ts DELETED
@@ -1,3 +0,0 @@
1
- import { TextComponentProps } from ".";
2
- export default function TextComponent_C({ heading, firstColumn, secondColumn, thirdColumn, }: TextComponentProps): import("react/jsx-runtime").JSX.Element;
3
- export { TextComponent_C };
package/dist/text_c.js DELETED
@@ -1 +0,0 @@
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 DELETED
@@ -1 +0,0 @@
1
- import{a}from"./chunk-5UXS6XWN.mjs";import"./chunk-CBIPJS7L.mjs";export{a as TextComponent_C,a as default};
package/dist/types.d.ts DELETED
@@ -1,375 +0,0 @@
1
- import { PortableTextComponents } from "@portabletext/react";
2
- import { PortableTextBlock } from "@portabletext/types";
3
- export type StyleVariants<T extends string> = Record<T, string>;
4
- export type Socials = "facebook" | "instagram" | "youtube" | "linkedin" | "twitter";
5
- export interface MainImage {
6
- image: string;
7
- alt?: string;
8
- }
9
- export interface LabeledRoute extends ConditionalLink {
10
- ariaLabel?: string;
11
- label?: string;
12
- linkTarget?: string;
13
- linkType?: string;
14
- _type?: string;
15
- linkInternal?: any;
16
- }
17
- export interface ConditionalLink {
18
- type?: string;
19
- internalLink?: string | null;
20
- externalLink?: string | null;
21
- }
22
- export interface StatItems {
23
- label?: string;
24
- mainImage?: MainImage;
25
- value?: string;
26
- _key?: string;
27
- _type?: string;
28
- }
29
- export interface Logo extends ConditionalLink {
30
- alt?: string;
31
- linkTarget?: string;
32
- image?: string;
33
- }
34
- export interface Images {
35
- image?: string;
36
- _key?: string;
37
- _type?: string;
38
- alt?: string;
39
- }
40
- export interface ContactDetails {
41
- addressInfo?: string;
42
- contactInfo?: string;
43
- emailInfo?: string;
44
- _key?: string;
45
- }
46
- export interface SocialLink {
47
- socialMedia?: string | null;
48
- socialMediaLink?: string | null;
49
- _key?: string | null;
50
- _type?: string | null;
51
- socialMediaIcon?: {
52
- alt?: string;
53
- image?: string;
54
- } | null;
55
- socialMediaPlatform?: string | null;
56
- }
57
- export interface LabeledRouteWithKey extends LabeledRoute {
58
- _key?: string;
59
- }
60
- export interface ArrayOfImageTitleAndText {
61
- mainImage?: {
62
- alt?: string;
63
- image?: string;
64
- };
65
- plainText?: string;
66
- title?: string;
67
- _key?: string;
68
- _type?: string;
69
- }
70
- export interface FeaturedItem {
71
- description?: string;
72
- mainImage?: MainImage;
73
- title?: string;
74
- subtitle?: string;
75
- _key?: string;
76
- _type?: string;
77
- }
78
- export interface ArrayOfTitleAndText {
79
- _key?: string;
80
- plainText?: string;
81
- title?: string;
82
- }
83
- export interface BlogPost extends SanityBody {
84
- authors?: Author[] | null;
85
- body?: any;
86
- categories?: Category[] | null;
87
- excerpt?: string | null;
88
- link?: string | null;
89
- mainImage?: string | null;
90
- publishedAt?: string;
91
- seo?: Seo | null;
92
- slug?: SanitySlug | null;
93
- title?: string;
94
- }
95
- export interface Seo {
96
- _type?: string;
97
- seoTitle?: string;
98
- seoDescription?: string;
99
- seoImage?: string;
100
- seoKeywords?: string;
101
- seoSynonyms?: string;
102
- }
103
- export interface SanitySlug {
104
- current?: string;
105
- _type?: "slug";
106
- }
107
- export interface SanityBody {
108
- _createdAt?: string;
109
- _id?: string;
110
- _rev?: string;
111
- _type?: string;
112
- _updatedAt?: string;
113
- }
114
- export interface Author extends SanityBody {
115
- link?: string | null;
116
- bio?: string | null;
117
- name?: string | null;
118
- slug?: SanitySlug | null;
119
- image?: string | null;
120
- profile?: {
121
- alt: string;
122
- image: string;
123
- } | null;
124
- }
125
- export interface Category extends SanityBody {
126
- title?: string;
127
- }
128
- export interface Form {
129
- id?: string | null;
130
- buttonLabel?: string | null;
131
- name?: string | null;
132
- subtitle?: string | null;
133
- fields?: FormFields[] | null;
134
- thankYouPage?: ThankYouPage | null;
135
- }
136
- export interface FormFields {
137
- name?: string;
138
- placeholder?: string;
139
- pricingType?: string;
140
- type?: FormTypes;
141
- _key?: string;
142
- _type?: string;
143
- isRequired?: boolean;
144
- label?: string;
145
- items?: string[];
146
- }
147
- export type FormTypes = "inputText" | "inputEmail" | "inputPassword" | "inputNumber" | "textarea" | "inputFile" | "inputRadio" | "inputCheckbox" | "inputSelect";
148
- export interface ThankYouPage {
149
- externalLink?: string | null;
150
- internalLink?: string | null;
151
- linkInternal?: any;
152
- linkTarget?: string;
153
- linkType?: string;
154
- type?: string;
155
- }
156
- export interface SectionsProps {
157
- template?: Template;
158
- data?: Sections;
159
- variant?: string | null | undefined;
160
- schema?: Variants;
161
- }
162
- export interface Sections extends SanityBody {
163
- label?: string;
164
- variant?: string;
165
- variants?: Variants;
166
- _key?: string;
167
- }
168
- export interface Variants {
169
- template?: Template;
170
- multipleMenus?: any;
171
- arrayOfTitleAndText?: ArrayOfTitleAndText[] | null;
172
- logo?: Logo | null;
173
- primaryButton?: LabeledRoute | null;
174
- secondaryButton?: LabeledRoute | null;
175
- routes?: LabeledRouteWithKey[] | null;
176
- menu?: LabeledRouteWithKey[] | null;
177
- plans?: Plans[] | null;
178
- formLinks?: LabeledRouteWithKey[] | null;
179
- portfolios?: Portfolios[] | null;
180
- portfoliosWithCategories?: PortfoliosWithCategories[] | null;
181
- length?: number;
182
- signInLink?: LabeledRoute | null;
183
- signinLink?: LabeledRoute | null;
184
- tags?: string[] | null;
185
- posts?: BlogPost[] | null;
186
- blogsPerPage?: number | null;
187
- form?: Form | null;
188
- collections?: Collection | null;
189
- products?: CollectionProduct | null;
190
- allProducts?: Collection[];
191
- subtitle?: string | null;
192
- caption?: string | null;
193
- title?: string | null;
194
- plainText?: string | null;
195
- contactDescription?: string | null;
196
- officeInformation?: string | null;
197
- contactEmail?: string | null;
198
- contactNumber?: string | null;
199
- socialLinks?: SocialLink[] | null;
200
- block?: any;
201
- heading?: string | null;
202
- acceptButtonLabel?: string | null;
203
- declineButtonLabel?: string | null;
204
- faqsWithCategories?: FaqsWithCategory[] | null;
205
- faqs?: AskedQuestion[] | null;
206
- arrayOfImageTitleAndText?: ArrayOfImageTitleAndText[] | null;
207
- description?: string | null;
208
- featuredItems?: FeaturedItem[] | null;
209
- images?: Images[] | null;
210
- contactDetails?: ContactDetails[] | null;
211
- copyright?: string | null;
212
- mainImage?: MainImage | null;
213
- youtubeLink?: string | null;
214
- banner?: any;
215
- stats?: StatItems[] | null;
216
- teams?: Team[] | null;
217
- testimonials?: Testimonial[] | null;
218
- firstColumn?: PortableTextBlock[];
219
- secondColumn?: PortableTextBlock[];
220
- thirdColumn?: PortableTextBlock[];
221
- selectStripeAccount?: string;
222
- annualBilling?: string;
223
- monthlyBilling?: string;
224
- productDetails?: ProductDetail[];
225
- btnLabel?: string;
226
- selectAccount?: string;
227
- hashtags?: string[];
228
- numberOfPosts?: number;
229
- text?: string;
230
- button?: LabeledRoute;
231
- features?: string[];
232
- config?: {
233
- enableAnalytics: boolean;
234
- cookiePolicy?: {
235
- siteName: string;
236
- cookiePolicyPage: Reference;
237
- };
238
- consentModalPosition?: string;
239
- };
240
- contactLink?: LabeledRoute;
241
- }
242
- export interface Template {
243
- bg?: string;
244
- color?: string;
245
- }
246
- export type Plans = {
247
- _key?: string | null;
248
- _type?: "planItems" | null;
249
- checkoutButtonName?: string | null;
250
- description?: string | null;
251
- monthlyPrice?: string | null;
252
- planType?: string | null;
253
- yearlyPrice?: string | null;
254
- planIncludes?: string[] | null;
255
- primaryButton?: LabeledRoute | null;
256
- } & Record<string, string>;
257
- export interface Portfolios {
258
- dateAdded?: string | null;
259
- mainImage?: {
260
- image?: string | null;
261
- alt?: string | null;
262
- } | null;
263
- primaryButton?: LabeledRoute | null;
264
- title?: string | null;
265
- _key?: string | null;
266
- _type?: string | null;
267
- }
268
- export interface PortfoliosWithCategories {
269
- category?: string | null;
270
- content?: Content[] | null;
271
- primaryButton?: LabeledRoute | null;
272
- _key?: string | null;
273
- _type?: string | null;
274
- }
275
- export interface Content extends Portfolios {
276
- description?: string | null;
277
- subtitle?: string | null;
278
- }
279
- export interface Collection extends SanityBody {
280
- collectionInfoVariant?: {
281
- variant?: string;
282
- } | null;
283
- name?: string | null;
284
- products?: CollectionProduct[] | null;
285
- sections?: any;
286
- seo?: Seo | null;
287
- slug?: SanitySlug | null;
288
- }
289
- export interface CollectionProduct extends SanityBody {
290
- compareToPrice?: number | null;
291
- description?: string | null;
292
- ecwidProductId?: number | null;
293
- name?: string | null;
294
- price?: number | null;
295
- productInfo?: ProductInfo | null;
296
- productInfoVariant?: {
297
- variant?: string;
298
- } | null;
299
- sections?: any;
300
- seo?: Seo | null;
301
- slug?: SanitySlug | null;
302
- }
303
- interface ProductInfo {
304
- btnLabel?: string | null;
305
- images?: ProductInfoImage[] | null;
306
- productDetails?: ProductDetail[] | null;
307
- socialLinks?: SocialLink[] | null;
308
- subtitle?: string | null;
309
- }
310
- export interface ProductDetail {
311
- blockContent?: any;
312
- contentType?: string;
313
- tabName?: string;
314
- _key?: string;
315
- [key: string]: any;
316
- }
317
- interface ProductInfoImage {
318
- alt?: string | null;
319
- _key: string;
320
- _type: string;
321
- image?: string | null;
322
- }
323
- export interface FaqsWithCategory {
324
- askedQuestions?: AskedQuestion[] | null;
325
- category?: string | null;
326
- _key?: string;
327
- _type?: string;
328
- }
329
- export interface AskedQuestion {
330
- answer?: string | null;
331
- question?: string | null;
332
- hidden?: boolean;
333
- _key?: string;
334
- _type?: string;
335
- }
336
- export interface Team {
337
- jobTitle?: string;
338
- mainImage?: MainImage;
339
- name?: string;
340
- plainText?: string;
341
- _key?: string;
342
- _type?: string;
343
- }
344
- export interface Testimonial {
345
- jobTitle?: string;
346
- mainImage?: MainImage;
347
- name?: string;
348
- rating?: string;
349
- testimony?: string;
350
- _key?: string;
351
- _type?: string;
352
- }
353
- export declare interface Reference {
354
- _type: string;
355
- _ref: string;
356
- _key?: string;
357
- _weak?: boolean;
358
- _strengthenOnPublish?: {
359
- type: string;
360
- weak?: boolean;
361
- template?: {
362
- id: string;
363
- params: Record<string, string | number | boolean>;
364
- };
365
- };
366
- }
367
- export type MyPortableTextComponents = PortableTextComponents & {
368
- code?: ({ value }: {
369
- value: {
370
- language?: string;
371
- code?: string;
372
- };
373
- }) => JSX.Element;
374
- };
375
- export {};
package/dist/types.js DELETED
@@ -1 +0,0 @@
1
- "use strict";var l=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var s=Object.getOwnPropertyNames;var o=Object.prototype.hasOwnProperty;var g=(n,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let e of s(t))!o.call(n,e)&&e!==r&&l(n,e,{get:()=>t[e],enumerable:!(i=a(t,e))||i.enumerable});return n};var u=n=>g(l({},"__esModule",{value:!0}),n);var c={};module.exports=u(c);