@stackshift-ui/statistics 6.0.3 → 6.0.5-beta.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.
@@ -0,0 +1 @@
1
+ import{Container as f}from"@stackshift-ui/container";import{Flex as p}from"@stackshift-ui/flex";import{Section as u}from"@stackshift-ui/section";import{StatsCard as a}from"@stackshift-ui/stats-card";import{jsx as m}from"react/jsx-runtime";function S({stats:r}){return m(u,{className:"py-20 bg-background",children:m(f,{maxWidth:1280,children:m(g,{stats:r})})})}function g({stats:r}){return r?m(p,{wrap:!0,align:"center",direction:"col",className:"sm:justify-left sm:flex-row",children:r==null?void 0:r.map((e,c)=>{var o,i,l,n;return m(a,{className:"my-8 md:w-1/2 lg:w-1/4 lg:justify-center",value:(o=e==null?void 0:e.value)!=null?o:"",label:(i=e==null?void 0:e.label)!=null?i:"",icon:`${(l=e==null?void 0:e.mainImage)==null?void 0:l.image}`,alt:(n=e==null?void 0:e.mainImage)==null?void 0:n.alt},c)})}):null}export{S as a};
@@ -0,0 +1 @@
1
+ import{lazy as s}from"react";import{jsx as v}from"react/jsx-runtime";var c={variant_a:s(()=>import("./statistics_a.mjs")),variant_b:s(()=>import("./statistics_b.mjs")),variant_c:s(()=>import("./statistics_c.mjs"))},m="Statistics",a=({data:t})=>{var o,n,e;let i=t==null?void 0:t.variant,r=i&&c[i],p={stats:(e=((o=t==null?void 0:t.variants)==null?void 0:o.stats)||((n=t==null?void 0:t.variants)==null?void 0:n.statItems))!=null?e:void 0};return r?v(r,{...p}):null};a.displayName=m;export{a};
@@ -0,0 +1 @@
1
+ import{Container as c}from"@stackshift-ui/container";import{Flex as p}from"@stackshift-ui/flex";import{Section as f}from"@stackshift-ui/section";import{StatsCard as u}from"@stackshift-ui/stats-card";import{jsx as m}from"react/jsx-runtime";function S({stats:r}){return m(f,{className:"py-20 bg-background",children:m(c,{maxWidth:1280,children:m(g,{stats:r})})})}function g({stats:r}){return r?m(p,{wrap:!0,align:"center",className:"text-center ",children:r==null?void 0:r.map((e,a)=>{var i,o,n,l;return m(u,{className:"my-8 md:w-1/2 lg:w-1/4",variant:"stacked",value:(i=e==null?void 0:e.value)!=null?i:"",label:(o=e==null?void 0:e.label)!=null?o:"",icon:`${(n=e==null?void 0:e.mainImage)==null?void 0:n.image}`,alt:(l=e==null?void 0:e.mainImage)==null?void 0:l.alt},a)})}):null}export{S as a};
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";var D=Object.create;var p=Object.defineProperty;var E=Object.getOwnPropertyDescriptor;var G=Object.getOwnPropertyNames;var H=Object.getPrototypeOf,J=Object.prototype.hasOwnProperty;var s=(r,o)=>()=>(r&&(o=r(r=0)),o);var c=(r,o)=>{for(var e in o)p(r,e,{get:o[e],enumerable:!0})},v=(r,o,e,m)=>{if(o&&typeof o=="object"||typeof o=="function")for(let t of G(o))!J.call(r,t)&&t!==e&&p(r,t,{get:()=>o[t],enumerable:!(m=E(o,t))||m.enumerable});return r};var K=(r,o,e)=>(e=r!=null?D(H(r)):{},v(o||!r||!r.__esModule?p(e,"default",{value:r,enumerable:!0}):e,r)),L=r=>v(p({},"__esModule",{value:!0}),r);var F={};c(F,{Statistics_A:()=>u,default:()=>u});function u({stats:r}){return(0,i.jsx)(N.Section,{className:"py-20 bg-background",children:(0,i.jsx)(w.Container,{maxWidth:1280,children:(0,i.jsx)(b.Flex,{wrap:!0,align:"center",justify:"start",className:"text-center",children:(0,i.jsx)(M,{stats:r})})})})}function M({stats:r}){return r?(0,i.jsx)(C.default.Fragment,{children:r.map((o,e)=>(0,i.jsx)("div",{className:"w-full px-4 my-8 sm:w-1/4 lg:w-1/4",children:(0,i.jsxs)(d.Card,{className:"relative py-10 ",children:[(0,i.jsx)(I.Text,{className:"mb-1 text-primary overflow-ellipsis overflow-clip",children:o==null?void 0:o.label}),(0,i.jsx)("p",{className:"text-xl text-gray-500 font-bold lg:text-2xl overflow-ellipsis overflow-clip",children:o==null?void 0:o.value})]})},e))}):null}var d,w,b,N,I,C,i,S=s(()=>{"use strict";d=require("@stackshift-ui/card"),w=require("@stackshift-ui/container"),b=require("@stackshift-ui/flex"),N=require("@stackshift-ui/section"),I=require("@stackshift-ui/text"),C=K(require("react")),i=require("react/jsx-runtime")});var R={};c(R,{Statistics_B:()=>x,default:()=>x});function x({stats:r}){return(0,i.jsx)(N.Section,{className:"py-20 bg-background",children:(0,i.jsx)(w.Container,{maxWidth:1280,children:(0,i.jsx)(O,{stats:r})})})}function O({stats:r}){return r?(0,i.jsx)(b.Flex,{wrap:!0,align:"center",direction:"col",className:"sm:justify-left sm:flex-row",children:r==null?void 0:r.map((o,e)=>{var m,t,n;return(0,i.jsx)(P.StatsCard,{className:"my-8 md:w-1/2 lg:w-1/4 lg:justify-center",value:(m=o==null?void 0:o.value)!=null?m:"",label:(t=o==null?void 0:o.label)!=null?t:"",icon:`${(n=o==null?void 0:o.mainImage)==null?void 0:n.image}`},e)})}):null}var P,N,w,b,i,g=s(()=>{"use strict";P=require("@stackshift-ui/stats-card")});var A={};c(A,{default:()=>z});function z({stats:r}){return(0,i.jsx)(N.Section,{className:"py-20 bg-background",children:(0,i.jsx)(w.Container,{maxWidth:1280,children:(0,i.jsx)(Q,{stats:r})})})}function Q({stats:r}){return r?(0,i.jsx)($.Flex,{wrap:!0,align:"center",className:"text-center ",children:r==null?void 0:r.map((o,e)=>{var m,t,n;return(0,i.jsx)(V.StatsCard,{className:"my-8 md:w-1/2 lg:w-1/4",variant:"stacked",value:(m=o==null?void 0:o.value)!=null?m:"",label:(t=o==null?void 0:o.label)!=null?t:"",icon:`${(n=o==null?void 0:o.mainImage)==null?void 0:n.image}`},e)})}):null}var V,N,w,$,i,y=s(()=>{"use strict";V=require("@stackshift-ui/stats-card")});var Y={};c(Y,{Statistics:()=>B,Statistics_A:()=>u,Statistics_B:()=>x});module.exports=L(Y);var f=require("react"),U={variant_a:(0,f.lazy)(()=>Promise.resolve().then(()=>(S(),F))),variant_b:(0,f.lazy)(()=>Promise.resolve().then(()=>(g(),R))),variant_c:(0,f.lazy)(()=>Promise.resolve().then(()=>(y(),A)))},X="Statistics",B=({data:r})=>{var t,n;let o=r==null?void 0:r.variant,e=o&&U[o],m={stats:(n=(t=r==null?void 0:r.variants)==null?void 0:t.stats)!=null?n:void 0};return e?(0,i.jsx)(e,{...m}):null};B.displayName=X;S();g();y();0&&(module.exports={Statistics,Statistics_A,Statistics_B});
2
+ "use strict";var E=Object.create;var c=Object.defineProperty;var G=Object.getOwnPropertyDescriptor;var H=Object.getOwnPropertyNames;var J=Object.getPrototypeOf,K=Object.prototype.hasOwnProperty;var u=(o,r)=>()=>(o&&(r=o(o=0)),r);var f=(o,r)=>{for(var e in r)c(o,e,{get:r[e],enumerable:!0})},I=(o,r,e,t)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of H(r))!K.call(o,i)&&i!==e&&c(o,i,{get:()=>r[i],enumerable:!(t=G(r,i))||t.enumerable});return o};var L=(o,r,e)=>(e=o!=null?E(J(o)):{},I(r||!o||!o.__esModule?c(e,"default",{value:o,enumerable:!0}):e,o)),M=o=>I(c({},"__esModule",{value:!0}),o);var P={};f(P,{Statistics_A:()=>S,default:()=>S});function S({stats:o}){return(0,m.jsx)(C.Section,{className:"py-20 bg-background",children:(0,m.jsx)(b.Container,{maxWidth:1280,children:(0,m.jsx)(N.Flex,{wrap:!0,align:"center",justify:"start",className:"text-center",children:(0,m.jsx)(O,{stats:o})})})})}function O({stats:o}){return o?(0,m.jsx)(F.default.Fragment,{children:o.map((r,e)=>(0,m.jsx)("div",{className:"w-full px-4 my-8 sm:w-1/4 lg:w-1/4",children:(0,m.jsxs)(w.Card,{className:"relative py-10 ",children:[(0,m.jsx)(d.Text,{className:"mb-1 text-primary overflow-ellipsis overflow-clip",children:r==null?void 0:r.label}),(0,m.jsx)("m",{className:"text-xl text-gray-500 font-bold lg:text-2xl overflow-ellipsis overflow-clip",children:r==null?void 0:r.value})]})},e))}):null}var w,b,N,C,d,F,m,x=u(()=>{"use strict";w=require("@stackshift-ui/card"),b=require("@stackshift-ui/container"),N=require("@stackshift-ui/flex"),C=require("@stackshift-ui/section"),d=require("@stackshift-ui/text"),F=L(require("react")),m=require("react/jsx-runtime")});var V={};f(V,{Statistics_B:()=>g,default:()=>g});function g({stats:o}){return(0,m.jsx)(C.Section,{className:"py-20 bg-background",children:(0,m.jsx)(k.Container,{maxWidth:1280,children:(0,m.jsx)(Q,{stats:o})})})}function Q({stats:o}){return o?(0,m.jsx)(N.Flex,{wrap:!0,align:"center",direction:"col",className:"sm:justify-left sm:flex-row",children:o==null?void 0:o.map((r,e)=>{var t,i,n,l;return(0,m.jsx)(R.StatsCard,{className:"my-8 md:w-1/2 lg:w-1/4 lg:justify-center",value:(t=r==null?void 0:r.value)!=null?t:"",label:(i=r==null?void 0:r.label)!=null?i:"",icon:`${(n=r==null?void 0:r.mainImage)==null?void 0:n.image}`,alt:(l=r==null?void 0:r.mainImage)==null?void 0:l.alt},e)})}):null}var k,N,C,R,m,v=u(()=>{"use strict";k=require("@stackshift-ui/container"),R=require("@stackshift-ui/stats-card")});var B={};f(B,{default:()=>A});function A({stats:o}){return(0,m.jsx)($.Section,{className:"py-20 bg-background",children:(0,m.jsx)(W.Container,{maxWidth:1280,children:(0,m.jsx)(U,{stats:o})})})}function U({stats:o}){return o?(0,m.jsx)(N.Flex,{wrap:!0,align:"center",className:"text-center ",children:o==null?void 0:o.map((r,e)=>{var t,i,n,l;return(0,m.jsx)(R.StatsCard,{className:"my-8 md:w-1/2 lg:w-1/4",variant:"stacked",value:(t=r==null?void 0:r.value)!=null?t:"",label:(i=r==null?void 0:r.label)!=null?i:"",icon:`${(n=r==null?void 0:r.mainImage)==null?void 0:n.image}`,alt:(l=r==null?void 0:r.mainImage)==null?void 0:l.alt},e)})}):null}var W,N,$,R,m,y=u(()=>{"use strict";W=require("@stackshift-ui/container")});var Z={};f(Z,{Statistics:()=>q,Statistics_A:()=>S,Statistics_B:()=>g});module.exports=M(Z);var s=require("react"),X={variant_a:(0,s.lazy)(()=>Promise.resolve().then(()=>(x(),P))),variant_b:(0,s.lazy)(()=>Promise.resolve().then(()=>(v(),V))),variant_c:(0,s.lazy)(()=>Promise.resolve().then(()=>(y(),B)))},Y="Statistics",q=({data:o})=>{var i,n,l;let r=o==null?void 0:o.variant,e=r&&X[r],t={stats:(l=((i=o==null?void 0:o.variants)==null?void 0:i.stats)||((n=o==null?void 0:o.variants)==null?void 0:n.statItems))!=null?l:void 0};return e?(0,m.jsx)(e,{...t}):null};q.displayName=Y;x();v();y();0&&(module.exports={Statistics,Statistics_A,Statistics_B});
package/dist/index.mjs CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";import{a as e}from"./chunk-52NKRKG2.mjs";import{a as o}from"./chunk-N6STCBAI.mjs";import{a as r}from"./chunk-SIU35F2O.mjs";import"./chunk-JNZ3MG4R.mjs";export{e as Statistics,o as Statistics_A,r as Statistics_B};
2
+ "use strict";import{a as e}from"./chunk-S47VMZPB.mjs";import{a as o}from"./chunk-N6STCBAI.mjs";import{a as r}from"./chunk-53SVPDST.mjs";import"./chunk-XQZSXTPH.mjs";export{e as Statistics,o as Statistics_A,r as Statistics_B};
@@ -1 +1 @@
1
- "use strict";var D=Object.create;var p=Object.defineProperty;var E=Object.getOwnPropertyDescriptor;var G=Object.getOwnPropertyNames;var H=Object.getPrototypeOf,J=Object.prototype.hasOwnProperty;var f=(r,o)=>()=>(r&&(o=r(r=0)),o);var c=(r,o)=>{for(var e in o)p(r,e,{get:o[e],enumerable:!0})},S=(r,o,e,m)=>{if(o&&typeof o=="object"||typeof o=="function")for(let t of G(o))!J.call(r,t)&&t!==e&&p(r,t,{get:()=>o[t],enumerable:!(m=E(o,t))||m.enumerable});return r};var K=(r,o,e)=>(e=r!=null?D(H(r)):{},S(o||!r||!r.__esModule?p(e,"default",{value:r,enumerable:!0}):e,r)),L=r=>S(p({},"__esModule",{value:!0}),r);var b={};c(b,{Statistics_A:()=>w,default:()=>w});function w({stats:r}){return(0,i.jsx)(y.Section,{className:"py-20 bg-background",children:(0,i.jsx)(x.Container,{maxWidth:1280,children:(0,i.jsx)(g.Flex,{wrap:!0,align:"center",justify:"start",className:"text-center",children:(0,i.jsx)(M,{stats:r})})})})}function M({stats:r}){return r?(0,i.jsx)(d.default.Fragment,{children:r.map((o,e)=>(0,i.jsx)("div",{className:"w-full px-4 my-8 sm:w-1/4 lg:w-1/4",children:(0,i.jsxs)(u.Card,{className:"relative py-10 ",children:[(0,i.jsx)(v.Text,{className:"mb-1 text-primary overflow-ellipsis overflow-clip",children:o==null?void 0:o.label}),(0,i.jsx)("p",{className:"text-xl text-gray-500 font-bold lg:text-2xl overflow-ellipsis overflow-clip",children:o==null?void 0:o.value})]})},e))}):null}var u,x,g,y,v,d,i,N=f(()=>{"use strict";u=require("@stackshift-ui/card"),x=require("@stackshift-ui/container"),g=require("@stackshift-ui/flex"),y=require("@stackshift-ui/section"),v=require("@stackshift-ui/text"),d=K(require("react")),i=require("react/jsx-runtime")});var _={};c(_,{Statistics_B:()=>k,default:()=>k});function k({stats:r}){return(0,i.jsx)(y.Section,{className:"py-20 bg-background",children:(0,i.jsx)(x.Container,{maxWidth:1280,children:(0,i.jsx)(O,{stats:r})})})}function O({stats:r}){return r?(0,i.jsx)(g.Flex,{wrap:!0,align:"center",direction:"col",className:"sm:justify-left sm:flex-row",children:r==null?void 0:r.map((o,e)=>{var m,t,n;return(0,i.jsx)(I.StatsCard,{className:"my-8 md:w-1/2 lg:w-1/4 lg:justify-center",value:(m=o==null?void 0:o.value)!=null?m:"",label:(t=o==null?void 0:o.label)!=null?t:"",icon:`${(n=o==null?void 0:o.mainImage)==null?void 0:n.image}`},e)})}):null}var I,y,x,g,i,h=f(()=>{"use strict";I=require("@stackshift-ui/stats-card")});var z={};c(z,{default:()=>$});function $({stats:r}){return(0,i.jsx)(y.Section,{className:"py-20 bg-background",children:(0,i.jsx)(x.Container,{maxWidth:1280,children:(0,i.jsx)(Q,{stats:r})})})}function Q({stats:r}){return r?(0,i.jsx)(g.Flex,{wrap:!0,align:"center",className:"text-center ",children:r==null?void 0:r.map((o,e)=>{var m,t,n;return(0,i.jsx)(R.StatsCard,{className:"my-8 md:w-1/2 lg:w-1/4",variant:"stacked",value:(m=o==null?void 0:o.value)!=null?m:"",label:(t=o==null?void 0:o.label)!=null?t:"",icon:`${(n=o==null?void 0:o.mainImage)==null?void 0:n.image}`},e)})}):null}var R,y,x,g,i,A=f(()=>{"use strict";R=require("@stackshift-ui/stats-card")});var Y={};c(Y,{Statistics:()=>B});module.exports=L(Y);var s=require("react"),U={variant_a:(0,s.lazy)(()=>Promise.resolve().then(()=>(N(),b))),variant_b:(0,s.lazy)(()=>Promise.resolve().then(()=>(h(),_))),variant_c:(0,s.lazy)(()=>Promise.resolve().then(()=>(A(),z)))},X="Statistics",B=({data:r})=>{var t,n;let o=r==null?void 0:r.variant,e=o&&U[o],m={stats:(n=(t=r==null?void 0:r.variants)==null?void 0:t.stats)!=null?n:void 0};return e?(0,i.jsx)(e,{...m}):null};B.displayName=X;0&&(module.exports={Statistics});
1
+ "use strict";var E=Object.create;var c=Object.defineProperty;var G=Object.getOwnPropertyDescriptor;var H=Object.getOwnPropertyNames;var J=Object.getPrototypeOf,K=Object.prototype.hasOwnProperty;var S=(e,r)=>()=>(e&&(r=e(e=0)),r);var f=(e,r)=>{for(var o in r)c(e,o,{get:r[o],enumerable:!0})},u=(e,r,o,t)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of H(r))!K.call(e,i)&&i!==o&&c(e,i,{get:()=>r[i],enumerable:!(t=G(r,i))||t.enumerable});return e};var L=(e,r,o)=>(o=e!=null?E(J(e)):{},u(r||!e||!e.__esModule?c(o,"default",{value:e,enumerable:!0}):o,e)),M=e=>u(c({},"__esModule",{value:!0}),e);var N={};f(N,{Statistics_A:()=>b,default:()=>b});function b({stats:e}){return(0,m.jsx)(y.Section,{className:"py-20 bg-background",children:(0,m.jsx)(g.Container,{maxWidth:1280,children:(0,m.jsx)(v.Flex,{wrap:!0,align:"center",justify:"start",className:"text-center",children:(0,m.jsx)(O,{stats:e})})})})}function O({stats:e}){return e?(0,m.jsx)(w.default.Fragment,{children:e.map((r,o)=>(0,m.jsx)("div",{className:"w-full px-4 my-8 sm:w-1/4 lg:w-1/4",children:(0,m.jsxs)(x.Card,{className:"relative py-10 ",children:[(0,m.jsx)(I.Text,{className:"mb-1 text-primary overflow-ellipsis overflow-clip",children:r==null?void 0:r.label}),(0,m.jsx)("m",{className:"text-xl text-gray-500 font-bold lg:text-2xl overflow-ellipsis overflow-clip",children:r==null?void 0:r.value})]})},o))}):null}var x,g,v,y,I,w,m,C=S(()=>{"use strict";x=require("@stackshift-ui/card"),g=require("@stackshift-ui/container"),v=require("@stackshift-ui/flex"),y=require("@stackshift-ui/section"),I=require("@stackshift-ui/text"),w=L(require("react")),m=require("react/jsx-runtime")});var h={};f(h,{Statistics_B:()=>_,default:()=>_});function _({stats:e}){return(0,m.jsx)(y.Section,{className:"py-20 bg-background",children:(0,m.jsx)(d.Container,{maxWidth:1280,children:(0,m.jsx)(Q,{stats:e})})})}function Q({stats:e}){return e?(0,m.jsx)(v.Flex,{wrap:!0,align:"center",direction:"col",className:"sm:justify-left sm:flex-row",children:e==null?void 0:e.map((r,o)=>{var t,i,n,l;return(0,m.jsx)(k.StatsCard,{className:"my-8 md:w-1/2 lg:w-1/4 lg:justify-center",value:(t=r==null?void 0:r.value)!=null?t:"",label:(i=r==null?void 0:r.label)!=null?i:"",icon:`${(n=r==null?void 0:r.mainImage)==null?void 0:n.image}`,alt:(l=r==null?void 0:r.mainImage)==null?void 0:l.alt},o)})}):null}var d,v,y,k,m,R=S(()=>{"use strict";d=require("@stackshift-ui/container"),k=require("@stackshift-ui/stats-card")});var A={};f(A,{default:()=>z});function z({stats:e}){return(0,m.jsx)(y.Section,{className:"py-20 bg-background",children:(0,m.jsx)(V.Container,{maxWidth:1280,children:(0,m.jsx)(U,{stats:e})})})}function U({stats:e}){return e?(0,m.jsx)(v.Flex,{wrap:!0,align:"center",className:"text-center ",children:e==null?void 0:e.map((r,o)=>{var t,i,n,l;return(0,m.jsx)($.StatsCard,{className:"my-8 md:w-1/2 lg:w-1/4",variant:"stacked",value:(t=r==null?void 0:r.value)!=null?t:"",label:(i=r==null?void 0:r.label)!=null?i:"",icon:`${(n=r==null?void 0:r.mainImage)==null?void 0:n.image}`,alt:(l=r==null?void 0:r.mainImage)==null?void 0:l.alt},o)})}):null}var V,v,y,$,m,B=S(()=>{"use strict";V=require("@stackshift-ui/container")});var Z={};f(Z,{Statistics:()=>q});module.exports=M(Z);var s=require("react"),X={variant_a:(0,s.lazy)(()=>Promise.resolve().then(()=>(C(),N))),variant_b:(0,s.lazy)(()=>Promise.resolve().then(()=>(R(),h))),variant_c:(0,s.lazy)(()=>Promise.resolve().then(()=>(B(),A)))},Y="Statistics",q=({data:e})=>{var i,n,l;let r=e==null?void 0:e.variant,o=r&&X[r],t={stats:(l=((i=e==null?void 0:e.variants)==null?void 0:i.stats)||((n=e==null?void 0:e.variants)==null?void 0:n.statItems))!=null?l:void 0};return o?(0,m.jsx)(o,{...t}):null};q.displayName=Y;0&&(module.exports={Statistics});
@@ -1 +1 @@
1
- import{a}from"./chunk-52NKRKG2.mjs";export{a as Statistics};
1
+ import{a}from"./chunk-S47VMZPB.mjs";export{a as Statistics};
@@ -1 +1 @@
1
- "use strict";var n=Object.defineProperty;var t=Object.getOwnPropertyDescriptor;var g=Object.getOwnPropertyNames;var d=Object.prototype.hasOwnProperty;var x=(r,e)=>{for(var m in e)n(r,m,{get:e[m],enumerable:!0})},y=(r,e,m,l)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of g(e))!d.call(r,o)&&o!==m&&n(r,o,{get:()=>e[o],enumerable:!(l=t(e,o))||l.enumerable});return r};var b=r=>y(n({},"__esModule",{value:!0}),r);var I={};x(I,{Statistics_B:()=>S,default:()=>S});module.exports=b(I);var f=require("@stackshift-ui/stats-card"),p=require("@stackshift-ui/section"),a=require("@stackshift-ui/container"),u=require("@stackshift-ui/flex"),i=require("react/jsx-runtime");function S({stats:r}){return(0,i.jsx)(p.Section,{className:"py-20 bg-background",children:(0,i.jsx)(a.Container,{maxWidth:1280,children:(0,i.jsx)(w,{stats:r})})})}function w({stats:r}){return r?(0,i.jsx)(u.Flex,{wrap:!0,align:"center",direction:"col",className:"sm:justify-left sm:flex-row",children:r==null?void 0:r.map((e,m)=>{var l,o,c;return(0,i.jsx)(f.StatsCard,{className:"my-8 md:w-1/2 lg:w-1/4 lg:justify-center",value:(l=e==null?void 0:e.value)!=null?l:"",label:(o=e==null?void 0:e.label)!=null?o:"",icon:`${(c=e==null?void 0:e.mainImage)==null?void 0:c.image}`},m)})}):null}0&&(module.exports={Statistics_B});
1
+ "use strict";var n=Object.defineProperty;var d=Object.getOwnPropertyDescriptor;var x=Object.getOwnPropertyNames;var y=Object.prototype.hasOwnProperty;var I=(r,e)=>{for(var o in e)n(r,o,{get:e[o],enumerable:!0})},b=(r,e,o,l)=>{if(e&&typeof e=="object"||typeof e=="function")for(let m of x(e))!y.call(r,m)&&m!==o&&n(r,m,{get:()=>e[m],enumerable:!(l=d(e,m))||l.enumerable});return r};var w=r=>b(n({},"__esModule",{value:!0}),r);var N={};I(N,{Statistics_B:()=>g,default:()=>g});module.exports=w(N);var p=require("@stackshift-ui/container"),u=require("@stackshift-ui/flex"),a=require("@stackshift-ui/section"),S=require("@stackshift-ui/stats-card"),i=require("react/jsx-runtime");function g({stats:r}){return(0,i.jsx)(a.Section,{className:"py-20 bg-background",children:(0,i.jsx)(p.Container,{maxWidth:1280,children:(0,i.jsx)(C,{stats:r})})})}function C({stats:r}){return r?(0,i.jsx)(u.Flex,{wrap:!0,align:"center",direction:"col",className:"sm:justify-left sm:flex-row",children:r==null?void 0:r.map((e,o)=>{var l,m,c,f;return(0,i.jsx)(S.StatsCard,{className:"my-8 md:w-1/2 lg:w-1/4 lg:justify-center",value:(l=e==null?void 0:e.value)!=null?l:"",label:(m=e==null?void 0:e.label)!=null?m:"",icon:`${(c=e==null?void 0:e.mainImage)==null?void 0:c.image}`,alt:(f=e==null?void 0:e.mainImage)==null?void 0:f.alt},o)})}):null}0&&(module.exports={Statistics_B});
@@ -1 +1 @@
1
- import{a}from"./chunk-SIU35F2O.mjs";export{a as Statistics_B,a as default};
1
+ import{a}from"./chunk-53SVPDST.mjs";export{a as Statistics_B,a as default};
@@ -1 +1 @@
1
- "use strict";var l=Object.defineProperty;var t=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var g=Object.prototype.hasOwnProperty;var b=(r,e)=>{for(var o in e)l(r,o,{get:e[o],enumerable:!0})},x=(r,e,o,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let m of d(e))!g.call(r,m)&&m!==o&&l(r,m,{get:()=>e[m],enumerable:!(n=t(e,m))||n.enumerable});return r};var C=r=>x(l({},"__esModule",{value:!0}),r);var k={};b(k,{default:()=>S});module.exports=C(k);var c=require("@stackshift-ui/stats-card"),p=require("@stackshift-ui/section"),f=require("@stackshift-ui/container"),u=require("@stackshift-ui/flex"),i=require("react/jsx-runtime");function S({stats:r}){return(0,i.jsx)(p.Section,{className:"py-20 bg-background",children:(0,i.jsx)(f.Container,{maxWidth:1280,children:(0,i.jsx)(I,{stats:r})})})}function I({stats:r}){return r?(0,i.jsx)(u.Flex,{wrap:!0,align:"center",className:"text-center ",children:r==null?void 0:r.map((e,o)=>{var n,m,a;return(0,i.jsx)(c.StatsCard,{className:"my-8 md:w-1/2 lg:w-1/4",variant:"stacked",value:(n=e==null?void 0:e.value)!=null?n:"",label:(m=e==null?void 0:e.label)!=null?m:"",icon:`${(a=e==null?void 0:e.mainImage)==null?void 0:a.image}`},o)})}):null}
1
+ "use strict";var l=Object.defineProperty;var d=Object.getOwnPropertyDescriptor;var I=Object.getOwnPropertyNames;var b=Object.prototype.hasOwnProperty;var x=(r,e)=>{for(var i in e)l(r,i,{get:e[i],enumerable:!0})},C=(r,e,i,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let m of I(e))!b.call(r,m)&&m!==i&&l(r,m,{get:()=>e[m],enumerable:!(n=d(e,m))||n.enumerable});return r};var k=r=>C(l({},"__esModule",{value:!0}),r);var w={};x(w,{default:()=>g});module.exports=k(w);var p=require("@stackshift-ui/container"),f=require("@stackshift-ui/flex"),u=require("@stackshift-ui/section"),S=require("@stackshift-ui/stats-card"),o=require("react/jsx-runtime");function g({stats:r}){return(0,o.jsx)(u.Section,{className:"py-20 bg-background",children:(0,o.jsx)(p.Container,{maxWidth:1280,children:(0,o.jsx)(v,{stats:r})})})}function v({stats:r}){return r?(0,o.jsx)(f.Flex,{wrap:!0,align:"center",className:"text-center ",children:r==null?void 0:r.map((e,i)=>{var n,m,a,c;return(0,o.jsx)(S.StatsCard,{className:"my-8 md:w-1/2 lg:w-1/4",variant:"stacked",value:(n=e==null?void 0:e.value)!=null?n:"",label:(m=e==null?void 0:e.label)!=null?m:"",icon:`${(a=e==null?void 0:e.mainImage)==null?void 0:a.image}`,alt:(c=e==null?void 0:e.mainImage)==null?void 0:c.alt},i)})}):null}
@@ -1 +1 @@
1
- import{a}from"./chunk-JNZ3MG4R.mjs";export{a as default};
1
+ import{a}from"./chunk-XQZSXTPH.mjs";export{a as default};
package/dist/types.d.ts CHANGED
@@ -211,6 +211,7 @@ export interface Variants {
211
211
  youtubeLink?: string | null;
212
212
  banner?: any;
213
213
  stats?: StatItems[] | null;
214
+ statItems?: StatItems[] | null;
214
215
  teams?: Team[] | null;
215
216
  testimonials?: Testimonial[] | null;
216
217
  selectStripeAccount?: string;
package/package.json CHANGED
@@ -1,14 +1,15 @@
1
1
  {
2
2
  "name": "@stackshift-ui/statistics",
3
3
  "description": "",
4
- "version": "6.0.3",
4
+ "version": "6.0.5-beta.0",
5
5
  "private": false,
6
6
  "sideEffects": false,
7
7
  "main": "./dist/index.js",
8
8
  "module": "./dist/index.mjs",
9
9
  "types": "./dist/index.d.ts",
10
10
  "files": [
11
- "dist/**"
11
+ "dist/**",
12
+ "src"
12
13
  ],
13
14
  "author": "WebriQ <info@webriq.com>",
14
15
  "devDependencies": {
@@ -28,20 +29,20 @@
28
29
  "typescript": "^5.6.2",
29
30
  "vite-tsconfig-paths": "^5.0.1",
30
31
  "vitest": "^2.1.1",
31
- "@stackshift-ui/typescript-config": "6.0.2",
32
- "@stackshift-ui/eslint-config": "6.0.2"
32
+ "@stackshift-ui/eslint-config": "6.0.2",
33
+ "@stackshift-ui/typescript-config": "6.0.2"
33
34
  },
34
35
  "dependencies": {
35
36
  "classnames": "^2.5.1",
36
37
  "@stackshift-ui/scripts": "6.0.2",
37
- "@stackshift-ui/system": "6.0.2",
38
- "@stackshift-ui/stats-card": "6.0.2",
39
- "@stackshift-ui/card": "6.0.2",
40
- "@stackshift-ui/button": "6.0.2",
41
- "@stackshift-ui/text": "6.0.2",
42
- "@stackshift-ui/container": "6.0.2",
43
- "@stackshift-ui/section": "6.0.2",
44
- "@stackshift-ui/flex": "6.0.2"
38
+ "@stackshift-ui/system": "6.0.3",
39
+ "@stackshift-ui/card": "6.0.3",
40
+ "@stackshift-ui/button": "6.0.3",
41
+ "@stackshift-ui/text": "6.0.3",
42
+ "@stackshift-ui/section": "6.0.3",
43
+ "@stackshift-ui/container": "6.0.3",
44
+ "@stackshift-ui/stats-card": "6.0.3",
45
+ "@stackshift-ui/flex": "6.0.3"
45
46
  },
46
47
  "peerDependencies": {
47
48
  "@types/react": "16.8 - 19",
package/src/index.ts ADDED
@@ -0,0 +1,7 @@
1
+ "use client";
2
+
3
+ // component exports
4
+ export * from "./statistics";
5
+ export * from "./statistics_a";
6
+ export * from "./statistics_b";
7
+ export * from "./statistics_c";
@@ -0,0 +1,13 @@
1
+ import { cleanup, render, screen } from "@testing-library/react";
2
+ import { afterEach, describe, test } from "vitest";
3
+ import { Statistics } from "./statistics";
4
+
5
+ describe.concurrent("statistics", () => {
6
+ afterEach(cleanup);
7
+
8
+ test.skip("Dummy test - test if renders without errors", ({ expect }) => {
9
+ const clx = "my-class";
10
+ render(<Statistics />);
11
+ expect(screen.getByTestId("{ kebabCase name }}").classList).toContain(clx);
12
+ });
13
+ });
@@ -0,0 +1,27 @@
1
+ import { lazy } from "react";
2
+ import { SectionsProps, StatItems } from "./types";
3
+
4
+ const Variants = {
5
+ variant_a: lazy(() => import("./statistics_a")),
6
+ variant_b: lazy(() => import("./statistics_b")),
7
+ variant_c: lazy(() => import("./statistics_c")),
8
+ };
9
+
10
+ export interface StatsProps {
11
+ stats?: StatItems[];
12
+ }
13
+
14
+ const displayName = "Statistics";
15
+
16
+ export const Statistics: React.FC<SectionsProps> = ({ data }) => {
17
+ const variant = data?.variant;
18
+ const Variant = variant && Variants[variant as keyof typeof Variants];
19
+
20
+ const props = {
21
+ stats: (data?.variants?.stats || data?.variants?.statItems) ?? undefined,
22
+ };
23
+
24
+ return Variant ? <Variant {...props} /> : null;
25
+ };
26
+
27
+ Statistics.displayName = displayName;
@@ -0,0 +1,43 @@
1
+ import { Card } from "@stackshift-ui/card";
2
+ import { Container } from "@stackshift-ui/container";
3
+ import { Flex } from "@stackshift-ui/flex";
4
+ import { Section } from "@stackshift-ui/section";
5
+ import { Text } from "@stackshift-ui/text";
6
+ import React from "react";
7
+ import { StatsProps } from ".";
8
+ import { StatItems } from "./types";
9
+
10
+ export default function Statistics_A({ stats }: StatsProps) {
11
+ return (
12
+ <Section className="py-20 bg-background">
13
+ <Container maxWidth={1280}>
14
+ <Flex wrap align="center" justify="start" className="text-center">
15
+ <StatisticsItems stats={stats} />
16
+ </Flex>
17
+ </Container>
18
+ </Section>
19
+ );
20
+ }
21
+
22
+ function StatisticsItems({ stats }: { stats?: StatItems[] }) {
23
+ if (!stats) return null;
24
+
25
+ return (
26
+ <React.Fragment>
27
+ {stats.map((items, index) => (
28
+ <div className="w-full px-4 my-8 sm:w-1/4 lg:w-1/4" key={index}>
29
+ <Card className="relative py-10 ">
30
+ <Text className="mb-1 text-primary overflow-ellipsis overflow-clip">
31
+ {items?.label}
32
+ </Text>
33
+ <p className="text-xl text-gray-500 font-bold lg:text-2xl overflow-ellipsis overflow-clip">
34
+ {items?.value}
35
+ </p>
36
+ </Card>
37
+ </div>
38
+ ))}
39
+ </React.Fragment>
40
+ );
41
+ }
42
+
43
+ export { Statistics_A };
@@ -0,0 +1,37 @@
1
+ import { Container } from "@stackshift-ui/container";
2
+ import { Flex } from "@stackshift-ui/flex";
3
+ import { Section } from "@stackshift-ui/section";
4
+ import { StatsCard } from "@stackshift-ui/stats-card";
5
+ import { StatsProps } from ".";
6
+ import { StatItems } from "./types";
7
+
8
+ export default function Statistics_B({ stats }: StatsProps) {
9
+ return (
10
+ <Section className="py-20 bg-background">
11
+ <Container maxWidth={1280}>
12
+ <StatisticsItems stats={stats} />
13
+ </Container>
14
+ </Section>
15
+ );
16
+ }
17
+
18
+ function StatisticsItems({ stats }: { stats?: StatItems[] }) {
19
+ if (!stats) return null;
20
+
21
+ return (
22
+ <Flex wrap align="center" direction="col" className="sm:justify-left sm:flex-row">
23
+ {stats?.map((stat, index) => (
24
+ <StatsCard
25
+ key={index}
26
+ className="my-8 md:w-1/2 lg:w-1/4 lg:justify-center"
27
+ value={stat?.value ?? ""}
28
+ label={stat?.label ?? ""}
29
+ icon={`${stat?.mainImage?.image}`}
30
+ alt={stat?.mainImage?.alt}
31
+ />
32
+ ))}
33
+ </Flex>
34
+ );
35
+ }
36
+
37
+ export { Statistics_B };
@@ -0,0 +1,36 @@
1
+ import { Container } from "@stackshift-ui/container";
2
+ import { Flex } from "@stackshift-ui/flex";
3
+ import { Section } from "@stackshift-ui/section";
4
+ import { StatsCard } from "@stackshift-ui/stats-card";
5
+ import { StatsProps } from ".";
6
+ import { StatItems } from "./types";
7
+
8
+ export default function Statistics_C({ stats }: StatsProps) {
9
+ return (
10
+ <Section className="py-20 bg-background">
11
+ <Container maxWidth={1280}>
12
+ <StatisticsItems stats={stats} />
13
+ </Container>
14
+ </Section>
15
+ );
16
+ }
17
+
18
+ function StatisticsItems({ stats }: { stats?: StatItems[] }) {
19
+ if (!stats) return null;
20
+
21
+ return (
22
+ <Flex wrap align="center" className="text-center ">
23
+ {stats?.map((stat, index) => (
24
+ <StatsCard
25
+ key={index}
26
+ className="my-8 md:w-1/2 lg:w-1/4"
27
+ variant="stacked"
28
+ value={stat?.value ?? ""}
29
+ label={stat?.label ?? ""}
30
+ icon={`${stat?.mainImage?.image}`}
31
+ alt={stat?.mainImage?.alt}
32
+ />
33
+ ))}
34
+ </Flex>
35
+ );
36
+ }
package/src/types.ts ADDED
@@ -0,0 +1,413 @@
1
+ export type StyleVariants<T extends string> = Record<T, string>;
2
+
3
+ export type Socials = "facebook" | "instagram" | "youtube" | "linkedin" | "twitter";
4
+ export interface MainImage {
5
+ image: string;
6
+ alt?: string;
7
+ }
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
+
23
+ export interface StatItems {
24
+ label?: string;
25
+ mainImage?: MainImage;
26
+ value?: string;
27
+ _key?: string;
28
+ _type?: string;
29
+ }
30
+
31
+ export interface Logo extends ConditionalLink {
32
+ alt?: string;
33
+ linkTarget?: string;
34
+ image?: string;
35
+ }
36
+
37
+ export interface Images {
38
+ image?: string;
39
+ _key?: string;
40
+ _type?: string;
41
+ alt?: string;
42
+ }
43
+
44
+ export interface ContactDetails {
45
+ addressInfo?: string;
46
+ contactInfo?: string;
47
+ emailInfo?: string;
48
+ _key?: string;
49
+ }
50
+
51
+ export interface SocialLink {
52
+ socialMedia?: string | null;
53
+ socialMediaLink?: string | null;
54
+ _key?: string | null;
55
+ _type?: string | null;
56
+ socialMediaIcon?: {
57
+ alt?: string;
58
+ image?: string;
59
+ } | null;
60
+ socialMediaPlatform?: string | null;
61
+ }
62
+
63
+ export interface LabeledRouteWithKey extends LabeledRoute {
64
+ _key?: string;
65
+ }
66
+
67
+ export interface ArrayOfImageTitleAndText {
68
+ mainImage?: {
69
+ alt?: string;
70
+ image?: string;
71
+ };
72
+ plainText?: string;
73
+ title?: string;
74
+ _key?: string;
75
+ _type?: string;
76
+ }
77
+
78
+ export interface FeaturedItem {
79
+ description?: string;
80
+ mainImage?: MainImage;
81
+ title?: string;
82
+ subtitle?: string;
83
+ _key?: string;
84
+ _type?: string;
85
+ }
86
+
87
+ export interface ArrayOfTitleAndText {
88
+ _key?: string;
89
+ plainText?: string;
90
+ title?: string;
91
+ }
92
+
93
+ export interface BlogPost extends SanityBody {
94
+ authors?: Author[] | null;
95
+ body?: any;
96
+ categories?: Category[] | null;
97
+ excerpt?: string | null;
98
+ link?: string | null;
99
+ mainImage?: string | null;
100
+ publishedAt?: string;
101
+ seo?: Seo | null;
102
+ slug?: SanitySlug | null;
103
+ title?: string;
104
+ }
105
+
106
+ export interface Seo {
107
+ _type?: string;
108
+ seoTitle?: string;
109
+ seoDescription?: string;
110
+ seoImage?: string;
111
+ seoKeywords?: string;
112
+ seoSynonyms?: string;
113
+ }
114
+
115
+ export interface SanitySlug {
116
+ current?: string;
117
+ _type?: "slug";
118
+ }
119
+
120
+ export interface SanityBody {
121
+ _createdAt?: string;
122
+ _id?: string;
123
+ _rev?: string;
124
+ _type?: string;
125
+ _updatedAt?: string;
126
+ }
127
+
128
+ export interface Author extends SanityBody {
129
+ link?: string | null;
130
+ bio?: string | null;
131
+ name?: string | null;
132
+ slug?: SanitySlug | null;
133
+ image?: string | null;
134
+ profile?: {
135
+ alt: string;
136
+ image: string;
137
+ } | null;
138
+ }
139
+
140
+ export interface Category extends SanityBody {
141
+ title?: string;
142
+ }
143
+
144
+ export interface Form {
145
+ id?: string | null;
146
+ buttonLabel?: string | null;
147
+ name?: string | null;
148
+ subtitle?: string | null;
149
+ fields?: FormFields[] | null;
150
+ thankYouPage?: ThankYouPage | null;
151
+ }
152
+
153
+ export interface FormFields {
154
+ name?: string;
155
+ placeholder?: string;
156
+ pricingType?: string;
157
+ type?: FormTypes;
158
+ _key?: string;
159
+ _type?: string;
160
+ isRequired?: boolean;
161
+ label?: string;
162
+ items?: string[];
163
+ }
164
+
165
+ export type FormTypes =
166
+ | "inputText"
167
+ | "inputEmail"
168
+ | "inputPassword"
169
+ | "inputNumber"
170
+ | "textarea"
171
+ | "inputFile"
172
+ | "inputRadio"
173
+ | "inputCheckbox"
174
+ | "inputSelect";
175
+
176
+ export interface ThankYouPage {
177
+ externalLink?: string | null;
178
+ internalLink?: string | null;
179
+ linkInternal?: any;
180
+ linkTarget?: string;
181
+ linkType?: string;
182
+ type?: string;
183
+ }
184
+
185
+ //Used on different sections
186
+ export interface SectionsProps {
187
+ template?: Template;
188
+ data?: Sections;
189
+ variant?: string | null | undefined;
190
+ schema?: Variants;
191
+ }
192
+
193
+ export interface Sections extends SanityBody {
194
+ label?: string;
195
+ variant?: string;
196
+ variants?: Variants;
197
+ _key?: string;
198
+ }
199
+
200
+ //*EDIT THIS SECTION WHEN CREATING/UPDATING SCHEMAS ON STUDIO */
201
+ export interface Variants {
202
+ template?: Template;
203
+ multipleMenus?: any;
204
+ arrayOfTitleAndText?: ArrayOfTitleAndText[] | null;
205
+ logo?: Logo | null;
206
+ primaryButton?: LabeledRoute | null;
207
+ secondaryButton?: LabeledRoute | null;
208
+ routes?: LabeledRouteWithKey[] | null;
209
+ menu?: LabeledRouteWithKey[] | null;
210
+ plans?: Plans[] | null;
211
+ formLinks?: LabeledRouteWithKey[] | null;
212
+ portfolios?: Portfolios[] | null;
213
+ portfoliosWithCategories?: PortfoliosWithCategories[] | null;
214
+ length?: number;
215
+ signInLink?: LabeledRoute | null;
216
+ signinLink?: LabeledRoute | null;
217
+ tags?: string[] | null;
218
+ posts?: BlogPost[] | null;
219
+ blogsPerPage?: number | null;
220
+ form?: Form | null;
221
+ collections?: Collection | null;
222
+ products?: CollectionProduct | null;
223
+ allProducts?: Collection[];
224
+ subtitle?: string | null;
225
+ caption?: string | null;
226
+ title?: string | null;
227
+ plainText?: string | null;
228
+ contactDescription?: string | null;
229
+ officeInformation?: string | null;
230
+ contactEmail?: string | null;
231
+ contactNumber?: string | null;
232
+ socialLinks?: SocialLink[] | null;
233
+ block?: any;
234
+ heading?: string | null;
235
+ acceptButtonLabel?: string | null;
236
+ declineButtonLabel?: string | null;
237
+ faqsWithCategories?: FaqsWithCategory[] | null;
238
+ faqs?: AskedQuestion[] | null;
239
+ arrayOfImageTitleAndText?: ArrayOfImageTitleAndText[] | null;
240
+ description?: string | null;
241
+ featuredItems?: FeaturedItem[] | null;
242
+ images?: Images[] | null;
243
+ contactDetails?: ContactDetails[] | null;
244
+ copyright?: string | null;
245
+ mainImage?: MainImage | null;
246
+ youtubeLink?: string | null;
247
+ banner?: any;
248
+ stats?: StatItems[] | null;
249
+ statItems?: StatItems[] | null;
250
+ teams?: Team[] | null;
251
+ testimonials?: Testimonial[] | null;
252
+ selectStripeAccount?: string;
253
+ annualBilling?: string;
254
+ monthlyBilling?: string;
255
+ productDetails?: ProductDetail[];
256
+ btnLabel?: string;
257
+ selectAccount?: string;
258
+ hashtags?: string[];
259
+ numberOfPosts?: number;
260
+ text?: string;
261
+ button?: LabeledRoute;
262
+ features?: string[];
263
+ config?: {
264
+ enableAnalytics: boolean;
265
+ cookiePolicy?: {
266
+ siteName: string;
267
+ cookiePolicyPage: Reference;
268
+ };
269
+ consentModalPosition?: string;
270
+ };
271
+ contactLink?: LabeledRoute;
272
+ }
273
+
274
+ export interface Template {
275
+ bg?: string;
276
+ color?: string;
277
+ }
278
+
279
+ export type Plans = {
280
+ _key?: string | null;
281
+ _type?: "planItems" | null;
282
+ checkoutButtonName?: string | null;
283
+ description?: string | null;
284
+ monthlyPrice?: string | null;
285
+ planType?: string | null;
286
+ yearlyPrice?: string | null;
287
+ planIncludes?: string[] | null;
288
+ primaryButton?: LabeledRoute | null;
289
+ } & Record<string, string>;
290
+
291
+ export interface Portfolios {
292
+ dateAdded?: string | null;
293
+ mainImage?: {
294
+ image?: string | null;
295
+ alt?: string | null;
296
+ } | null;
297
+ primaryButton?: LabeledRoute | null;
298
+ title?: string | null;
299
+ _key?: string | null;
300
+ _type?: string | null;
301
+ }
302
+
303
+ export interface PortfoliosWithCategories {
304
+ category?: string | null;
305
+ content?: Content[] | null;
306
+ primaryButton?: LabeledRoute | null;
307
+ _key?: string | null;
308
+ _type?: string | null;
309
+ }
310
+
311
+ export interface Content extends Portfolios {
312
+ description?: string | null;
313
+ subtitle?: string | null;
314
+ }
315
+
316
+ export interface Collection extends SanityBody {
317
+ collectionInfoVariant?: {
318
+ variant?: string;
319
+ } | null;
320
+ name?: string | null;
321
+ products?: CollectionProduct[] | null;
322
+ sections?: any; //todo
323
+ seo?: Seo | null;
324
+ slug?: SanitySlug | null;
325
+ }
326
+
327
+ export interface CollectionProduct extends SanityBody {
328
+ compareToPrice?: number | null;
329
+ description?: string | null;
330
+ ecwidProductId?: number | null;
331
+ name?: string | null;
332
+ price?: number | null;
333
+ productInfo?: ProductInfo | null;
334
+ productInfoVariant?: {
335
+ variant?: string;
336
+ } | null;
337
+ sections?: any; //todo
338
+ seo?: Seo | null;
339
+ slug?: SanitySlug | null;
340
+ }
341
+
342
+ //TODO, RECHECK PRODUCT INFO DATA FROM SANITY
343
+ interface ProductInfo {
344
+ btnLabel?: string | null;
345
+ images?: ProductInfoImage[] | null;
346
+ productDetails?: ProductDetail[] | null;
347
+ socialLinks?: SocialLink[] | null;
348
+ subtitle?: string | null;
349
+ }
350
+
351
+ //TODO, RECHECK PRODUCT INFO DATA FROM SANITY
352
+ export interface ProductDetail {
353
+ blockContent?: any;
354
+ contentType?: string;
355
+ tabName?: string;
356
+ _key?: string;
357
+ [key: string]: any;
358
+ }
359
+ interface ProductInfoImage {
360
+ alt?: string | null;
361
+ _key: string;
362
+ _type: string;
363
+ image?: string | null;
364
+ }
365
+
366
+ export interface FaqsWithCategory {
367
+ askedQuestions?: AskedQuestion[] | null;
368
+ category?: string | null;
369
+ _key?: string;
370
+ _type?: string;
371
+ }
372
+
373
+ export interface AskedQuestion {
374
+ answer?: string | null;
375
+ question?: string | null;
376
+ hidden?: boolean;
377
+ _key?: string;
378
+ _type?: string;
379
+ }
380
+
381
+ export interface Team {
382
+ jobTitle?: string;
383
+ mainImage?: MainImage;
384
+ name?: string;
385
+ plainText?: string;
386
+ _key?: string;
387
+ _type?: string;
388
+ }
389
+
390
+ export interface Testimonial {
391
+ jobTitle?: string;
392
+ mainImage?: MainImage;
393
+ name?: string;
394
+ rating?: string;
395
+ testimony?: string;
396
+ _key?: string;
397
+ _type?: string;
398
+ }
399
+
400
+ export declare interface Reference {
401
+ _type: string;
402
+ _ref: string;
403
+ _key?: string;
404
+ _weak?: boolean;
405
+ _strengthenOnPublish?: {
406
+ type: string;
407
+ weak?: boolean;
408
+ template?: {
409
+ id: string;
410
+ params: Record<string, string | number | boolean>;
411
+ };
412
+ };
413
+ }
@@ -1 +0,0 @@
1
- import{lazy as s}from"react";import{jsx as m}from"react/jsx-runtime";var p={variant_a:s(()=>import("./statistics_a.mjs")),variant_b:s(()=>import("./statistics_b.mjs")),variant_c:s(()=>import("./statistics_c.mjs"))},e="Statistics",c=({data:t})=>{var r,n;let i=t==null?void 0:t.variant,o=i&&p[i],a={stats:(n=(r=t==null?void 0:t.variants)==null?void 0:r.stats)!=null?n:void 0};return o?m(o,{...a}):null};c.displayName=e;export{c as a};
@@ -1 +0,0 @@
1
- import{StatsCard as a}from"@stackshift-ui/stats-card";import{Section as c}from"@stackshift-ui/section";import{Container as p}from"@stackshift-ui/container";import{Flex as f}from"@stackshift-ui/flex";import{jsx as m}from"react/jsx-runtime";function u({stats:r}){return m(c,{className:"py-20 bg-background",children:m(p,{maxWidth:1280,children:m(S,{stats:r})})})}function S({stats:r}){return r?m(f,{wrap:!0,align:"center",className:"text-center ",children:r==null?void 0:r.map((e,l)=>{var o,i,n;return m(a,{className:"my-8 md:w-1/2 lg:w-1/4",variant:"stacked",value:(o=e==null?void 0:e.value)!=null?o:"",label:(i=e==null?void 0:e.label)!=null?i:"",icon:`${(n=e==null?void 0:e.mainImage)==null?void 0:n.image}`},l)})}):null}export{u as a};
@@ -1 +0,0 @@
1
- import{StatsCard as c}from"@stackshift-ui/stats-card";import{Section as f}from"@stackshift-ui/section";import{Container as p}from"@stackshift-ui/container";import{Flex as a}from"@stackshift-ui/flex";import{jsx as o}from"react/jsx-runtime";function u({stats:r}){return o(f,{className:"py-20 bg-background",children:o(p,{maxWidth:1280,children:o(S,{stats:r})})})}function S({stats:r}){return r?o(a,{wrap:!0,align:"center",direction:"col",className:"sm:justify-left sm:flex-row",children:r==null?void 0:r.map((e,n)=>{var m,i,l;return o(c,{className:"my-8 md:w-1/2 lg:w-1/4 lg:justify-center",value:(m=e==null?void 0:e.value)!=null?m:"",label:(i=e==null?void 0:e.label)!=null?i:"",icon:`${(l=e==null?void 0:e.mainImage)==null?void 0:l.image}`},n)})}):null}export{u as a};