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