@stackshift-ui/statistics 7.0.0-beta.6 → 7.0.0-beta.8
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-7SDFTD5M.mjs +1 -0
- package/dist/chunk-CBTD2Y7E.mjs +1 -0
- package/dist/chunk-JRLJYLKR.mjs +1 -0
- package/dist/chunk-PBIV227O.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 +6 -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 +12 -12
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Card as f,CardContent as g}from"@stackshift-ui/card";import{Container as u}from"@stackshift-ui/container";import{Flex as x}from"@stackshift-ui/flex";import{Section as C}from"@stackshift-ui/section";import{Text as S}from"@stackshift-ui/text";import{jsx as i,jsxs as a}from"react/jsx-runtime";function b({stats:m}){return i(C,{className:"py-20 bg-background",children:i(u,{maxWidth:1280,children:i(t,{stats:m})})})}function t({stats:m}){return m?i(x,{wrap:!0,align:"center",direction:"col",className:"sm:justify-left sm:flex-row",children:m==null?void 0:m.map((e,p)=>{var r,o,n,l,c,d;return i("div",{className:"my-8 md:w-1/2 lg:w-1/4 w-full px-4",children:i(f,{className:"bg-white",children:a(g,{className:"flex items-center p-4",children:[((r=e==null?void 0:e.mainImage)==null?void 0:r.image)&&i("div",{className:"inline-block p-4 mr-4 rounded bg-secondary/50",children:i("img",{src:(o=e==null?void 0:e.mainImage)==null?void 0:o.image,width:24,height:24,alt:(l=(n=e==null?void 0:e.mainImage)==null?void 0:n.alt)!=null?l:"statistics-icon"})}),a("div",{children:[i("p",{className:"text-2xl text-gray-500 font-bold",children:(c=e==null?void 0:e.value)!=null?c:""}),i(S,{muted:!0,children:(d=e==null?void 0:e.label)!=null?d:""})]})]})})},p)})}):null}export{b as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Card as o,CardContent as l}from"@stackshift-ui/card";import{Container as m}from"@stackshift-ui/container";import{Flex as p}from"@stackshift-ui/flex";import{Section as s}from"@stackshift-ui/section";import{Text as n}from"@stackshift-ui/text";import i from"react";import{jsx as t,jsxs as x}from"react/jsx-runtime";function c({stats:a}){return t(s,{className:"py-20 bg-background",children:t(m,{maxWidth:1280,children:t(p,{wrap:!0,align:"center",justify:"start",className:"text-center",children:t(f,{stats:a})})})})}function f({stats:a}){return a?t(i.Fragment,{children:a.map((r,e)=>t("div",{className:"w-full px-4 my-8 sm:w-1/4 lg:w-1/4",children:t(o,{className:"relative py-10 shadow-md bg-white",children:x(l,{className:"pt-6",children:[t(n,{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})]})})},e))}):null}export{c as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as c}from"./chunk-CBTD2Y7E.mjs";import{a as e}from"./chunk-7SDFTD5M.mjs";import{a as p}from"./chunk-PBIV227O.mjs";import{jsx as v}from"react/jsx-runtime";var a={variant_a:c,variant_b:e,variant_c:p},S="Statistics",f=({data:t})=>{var r,o,n;let s=t==null?void 0:t.variant,i=s&&a[s],m={stats:(n=((r=t==null?void 0:t.variants)==null?void 0:r.stats)||((o=t==null?void 0:t.variants)==null?void 0:o.statItems))!=null?n:void 0};return i?v(i,{...m}):null};f.displayName=S;export{f as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Card as f,CardContent as g}from"@stackshift-ui/card";import{Container as x}from"@stackshift-ui/container";import{Flex as u}from"@stackshift-ui/flex";import{Section as C}from"@stackshift-ui/section";import{Text as b}from"@stackshift-ui/text";import{jsx as i,jsxs as a}from"react/jsx-runtime";function S({stats:m}){return i(C,{className:"py-20 bg-background",children:i(x,{maxWidth:1280,children:i(v,{stats:m})})})}function v({stats:m}){return m?i(u,{wrap:!0,align:"center",className:"text-center",children:m==null?void 0:m.map((e,p)=>{var r,o,n,l,c,d;return i("div",{className:"my-8 md:w-1/2 lg:w-1/4 w-full px-4",children:i(f,{className:"bg-white",children:a(g,{className:"p-4 flex flex-col items-center",children:[((r=e==null?void 0:e.mainImage)==null?void 0:r.image)&&i("div",{className:"inline-block p-4 mb-3 rounded bg-secondary/50",children:i("img",{src:(o=e==null?void 0:e.mainImage)==null?void 0:o.image,width:24,height:24,alt:(l=(n=e==null?void 0:e.mainImage)==null?void 0:n.alt)!=null?l:"statistics-icon"})}),a("div",{children:[i("p",{className:"text-2xl text-gray-500 font-bold",children:(c=e==null?void 0:e.value)!=null?c:""}),i(b,{muted:!0,children:(d=e==null?void 0:e.label)!=null?d:""})]})]})})},p)})}):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 B=Object.create;var f=Object.defineProperty;var q=Object.getOwnPropertyDescriptor;var z=Object.getOwnPropertyNames;var D=Object.getPrototypeOf,E=Object.prototype.hasOwnProperty;var G=(r,e)=>{for(var o in e)f(r,o,{get:e[o],enumerable:!0})},C=(r,e,o,l)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of z(e))!E.call(r,i)&&i!==o&&f(r,i,{get:()=>e[i],enumerable:!(l=q(e,i))||l.enumerable});return r};var H=(r,e,o)=>(o=r!=null?B(D(r)):{},C(e||!r||!r.__esModule?f(o,"default",{value:r,enumerable:!0}):o,r)),J=r=>C(f({},"__esModule",{value:!0}),r);var U={};G(U,{Statistics:()=>W,Statistics_A:()=>x,Statistics_B:()=>u});module.exports=J(U);var d=require("@stackshift-ui/card"),w=require("@stackshift-ui/container"),N=require("@stackshift-ui/flex"),b=require("@stackshift-ui/section"),y=require("@stackshift-ui/text"),I=H(require("react")),n=require("react/jsx-runtime");function x({stats:r}){return(0,n.jsx)(b.Section,{className:"py-20 bg-background",children:(0,n.jsx)(w.Container,{maxWidth:1280,children:(0,n.jsx)(N.Flex,{wrap:!0,align:"center",justify:"start",className:"text-center",children:(0,n.jsx)(K,{stats:r})})})})}function K({stats:r}){return r?(0,n.jsx)(I.default.Fragment,{children:r.map((e,o)=>(0,n.jsx)("div",{className:"w-full px-4 my-8 sm:w-1/4 lg:w-1/4",children:(0,n.jsx)(d.Card,{className:"relative py-10 shadow-md bg-white",children:(0,n.jsxs)(d.CardContent,{className:"pt-6",children:[(0,n.jsx)(y.Text,{className:"mb-1 text-primary overflow-ellipsis overflow-clip",children:e==null?void 0:e.label}),(0,n.jsx)("p",{className:"text-xl text-gray-500 font-bold lg:text-2xl overflow-ellipsis overflow-clip",children:e==null?void 0:e.value})]})})},o))}):null}function u({stats:r}){return(0,n.jsx)(b.Section,{className:"py-20 bg-background",children:(0,n.jsx)(w.Container,{maxWidth:1280,children:(0,n.jsx)(L,{stats:r})})})}function L({stats:r}){return r?(0,n.jsx)(N.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,i,a,p,c,s;return(0,n.jsx)("div",{className:"my-8 md:w-1/2 lg:w-1/4 w-full px-4",children:(0,n.jsx)(d.Card,{className:"bg-white",children:(0,n.jsxs)(d.CardContent,{className:"flex items-center p-4",children:[((l=e==null?void 0:e.mainImage)==null?void 0:l.image)&&(0,n.jsx)("div",{className:"inline-block p-4 mr-4 rounded bg-secondary/50",children:(0,n.jsx)("img",{src:(i=e==null?void 0:e.mainImage)==null?void 0:i.image,width:24,height:24,alt:(p=(a=e==null?void 0:e.mainImage)==null?void 0:a.alt)!=null?p:"statistics-icon"})}),(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{className:"text-2xl text-gray-500 font-bold",children:(c=e==null?void 0:e.value)!=null?c:""}),(0,n.jsx)(y.Text,{muted:!0,children:(s=e==null?void 0:e.label)!=null?s:""})]})]})})},o)})}):null}function v({stats:r}){return(0,n.jsx)(b.Section,{className:"py-20 bg-background",children:(0,n.jsx)(w.Container,{maxWidth:1280,children:(0,n.jsx)(M,{stats:r})})})}function M({stats:r}){return r?(0,n.jsx)(N.Flex,{wrap:!0,align:"center",className:"text-center",children:r==null?void 0:r.map((e,o)=>{var l,i,a,p,c,s;return(0,n.jsx)("div",{className:"my-8 md:w-1/2 lg:w-1/4 w-full px-4",children:(0,n.jsx)(d.Card,{className:"bg-white",children:(0,n.jsxs)(d.CardContent,{className:"p-4 flex flex-col items-center",children:[((l=e==null?void 0:e.mainImage)==null?void 0:l.image)&&(0,n.jsx)("div",{className:"inline-block p-4 mb-3 rounded bg-secondary/50",children:(0,n.jsx)("img",{src:(i=e==null?void 0:e.mainImage)==null?void 0:i.image,width:24,height:24,alt:(p=(a=e==null?void 0:e.mainImage)==null?void 0:a.alt)!=null?p:"statistics-icon"})}),(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{className:"text-2xl text-gray-500 font-bold",children:(c=e==null?void 0:e.value)!=null?c:""}),(0,n.jsx)(y.Text,{muted:!0,children:(s=e==null?void 0:e.label)!=null?s:""})]})]})})},o)})}):null}var O={variant_a:x,variant_b:u,variant_c:v},Q="Statistics",W=({data:r})=>{var i,a,p;let e=r==null?void 0:r.variant,o=e&&O[e],l={stats:(p=((i=r==null?void 0:r.variants)==null?void 0:i.stats)||((a=r==null?void 0:r.variants)==null?void 0:a.statItems))!=null?p:void 0};return o?(0,n.jsx)(o,{...l}):null};W.displayName=Q;0&&(module.exports={Statistics,Statistics_A,Statistics_B});
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var B=Object.create;var f=Object.defineProperty;var q=Object.getOwnPropertyDescriptor;var z=Object.getOwnPropertyNames;var D=Object.getPrototypeOf,E=Object.prototype.hasOwnProperty;var G=(r,e)=>{for(var i in e)f(r,i,{get:e[i],enumerable:!0})},C=(r,e,i,l)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of z(e))!E.call(r,o)&&o!==i&&f(r,o,{get:()=>e[o],enumerable:!(l=q(e,o))||l.enumerable});return r};var H=(r,e,i)=>(i=r!=null?B(D(r)):{},C(e||!r||!r.__esModule?f(i,"default",{value:r,enumerable:!0}):i,r)),J=r=>C(f({},"__esModule",{value:!0}),r);var U={};G(U,{Statistics:()=>W});module.exports=J(U);var d=require("@stackshift-ui/card"),w=require("@stackshift-ui/container"),N=require("@stackshift-ui/flex"),b=require("@stackshift-ui/section"),y=require("@stackshift-ui/text"),I=H(require("react")),n=require("react/jsx-runtime");function u({stats:r}){return(0,n.jsx)(b.Section,{className:"py-20 bg-background",children:(0,n.jsx)(w.Container,{maxWidth:1280,children:(0,n.jsx)(N.Flex,{wrap:!0,align:"center",justify:"start",className:"text-center",children:(0,n.jsx)(K,{stats:r})})})})}function K({stats:r}){return r?(0,n.jsx)(I.default.Fragment,{children:r.map((e,i)=>(0,n.jsx)("div",{className:"w-full px-4 my-8 sm:w-1/4 lg:w-1/4",children:(0,n.jsx)(d.Card,{className:"relative py-10 shadow-md bg-white",children:(0,n.jsxs)(d.CardContent,{className:"pt-6",children:[(0,n.jsx)(y.Text,{className:"mb-1 text-primary overflow-ellipsis overflow-clip",children:e==null?void 0:e.label}),(0,n.jsx)("p",{className:"text-xl text-gray-500 font-bold lg:text-2xl overflow-ellipsis overflow-clip",children:e==null?void 0:e.value})]})})},i))}):null}function S({stats:r}){return(0,n.jsx)(b.Section,{className:"py-20 bg-background",children:(0,n.jsx)(w.Container,{maxWidth:1280,children:(0,n.jsx)(L,{stats:r})})})}function L({stats:r}){return r?(0,n.jsx)(N.Flex,{wrap:!0,align:"center",direction:"col",className:"sm:justify-left sm:flex-row",children:r==null?void 0:r.map((e,i)=>{var l,o,a,c,p,s;return(0,n.jsx)("div",{className:"my-8 md:w-1/2 lg:w-1/4 w-full px-4",children:(0,n.jsx)(d.Card,{className:"bg-white",children:(0,n.jsxs)(d.CardContent,{className:"flex items-center p-4",children:[((l=e==null?void 0:e.mainImage)==null?void 0:l.image)&&(0,n.jsx)("div",{className:"inline-block p-4 mr-4 rounded bg-secondary/50",children:(0,n.jsx)("img",{src:(o=e==null?void 0:e.mainImage)==null?void 0:o.image,width:24,height:24,alt:(c=(a=e==null?void 0:e.mainImage)==null?void 0:a.alt)!=null?c:"statistics-icon"})}),(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{className:"text-2xl text-gray-500 font-bold",children:(p=e==null?void 0:e.value)!=null?p:""}),(0,n.jsx)(y.Text,{muted:!0,children:(s=e==null?void 0:e.label)!=null?s:""})]})]})})},i)})}):null}function v({stats:r}){return(0,n.jsx)(b.Section,{className:"py-20 bg-background",children:(0,n.jsx)(w.Container,{maxWidth:1280,children:(0,n.jsx)(M,{stats:r})})})}function M({stats:r}){return r?(0,n.jsx)(N.Flex,{wrap:!0,align:"center",className:"text-center",children:r==null?void 0:r.map((e,i)=>{var l,o,a,c,p,s;return(0,n.jsx)("div",{className:"my-8 md:w-1/2 lg:w-1/4 w-full px-4",children:(0,n.jsx)(d.Card,{className:"bg-white",children:(0,n.jsxs)(d.CardContent,{className:"p-4 flex flex-col items-center",children:[((l=e==null?void 0:e.mainImage)==null?void 0:l.image)&&(0,n.jsx)("div",{className:"inline-block p-4 mb-3 rounded bg-secondary/50",children:(0,n.jsx)("img",{src:(o=e==null?void 0:e.mainImage)==null?void 0:o.image,width:24,height:24,alt:(c=(a=e==null?void 0:e.mainImage)==null?void 0:a.alt)!=null?c:"statistics-icon"})}),(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{className:"text-2xl text-gray-500 font-bold",children:(p=e==null?void 0:e.value)!=null?p:""}),(0,n.jsx)(y.Text,{muted:!0,children:(s=e==null?void 0:e.label)!=null?s:""})]})]})})},i)})}):null}var O={variant_a:u,variant_b:S,variant_c:v},Q="Statistics",W=({data:r})=>{var o,a,c;let e=r==null?void 0:r.variant,i=e&&O[e],l={stats:(c=((o=r==null?void 0:r.variants)==null?void 0:o.stats)||((a=r==null?void 0:r.variants)==null?void 0:a.statItems))!=null?c:void 0};return i?(0,n.jsx)(i,{...l}):null};W.displayName=Q;0&&(module.exports={Statistics});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunk-JRLJYLKR.mjs";import"./chunk-CBTD2Y7E.mjs";import"./chunk-7SDFTD5M.mjs";import"./chunk-PBIV227O.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,C=Object.prototype.hasOwnProperty;var S=(t,r)=>{for(var e in r)l(t,e,{get:r[e],enumerable:!0})},s=(t,r,e,p)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of g(r))!C.call(t,o)&&o!==e&&l(t,o,{get:()=>r[o],enumerable:!(p=w(r,o))||p.enumerable});return t};var y=(t,r,e)=>(e=t!=null?u(v(t)):{},s(r||!t||!t.__esModule?l(e,"default",{value:t,enumerable:!0}):e,t)),N=t=>s(l({},"__esModule",{value:!0}),t);var F={};S(F,{Statistics_A:()=>d,default:()=>d});module.exports=N(F);var m=require("@stackshift-ui/card"),n=require("@stackshift-ui/container"),i=require("@stackshift-ui/flex"),c=require("@stackshift-ui/section"),f=require("@stackshift-ui/text"),x=y(require("react")),a=require("react/jsx-runtime");function d({stats:t}){return(0,a.jsx)(c.Section,{className:"py-20 bg-background",children:(0,a.jsx)(n.Container,{maxWidth:1280,children:(0,a.jsx)(i.Flex,{wrap:!0,align:"center",justify:"start",className:"text-center",children:(0,a.jsx)(b,{stats:t})})})})}function b({stats:t}){return t?(0,a.jsx)(x.default.Fragment,{children:t.map((r,e)=>(0,a.jsx)("div",{className:"w-full px-4 my-8 sm:w-1/4 lg:w-1/4",children:(0,a.jsx)(m.Card,{className:"relative py-10 shadow-md bg-white",children:(0,a.jsxs)(m.CardContent,{className:"pt-6",children:[(0,a.jsx)(f.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})]})})},e))}):null}0&&(module.exports={Statistics_A});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunk-CBTD2Y7E.mjs";export{a as Statistics_A,a as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var c=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var t=Object.getOwnPropertyNames;var v=Object.prototype.hasOwnProperty;var w=(i,e)=>{for(var o in e)c(i,o,{get:e[o],enumerable:!0})},N=(i,e,o,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of t(e))!v.call(i,r)&&r!==o&&c(i,r,{get:()=>e[r],enumerable:!(n=b(e,r))||n.enumerable});return i};var y=i=>N(c({},"__esModule",{value:!0}),i);var h={};w(h,{Statistics_B:()=>S,default:()=>S});module.exports=y(h);var l=require("@stackshift-ui/card"),g=require("@stackshift-ui/container"),u=require("@stackshift-ui/flex"),x=require("@stackshift-ui/section"),C=require("@stackshift-ui/text"),m=require("react/jsx-runtime");function S({stats:i}){return(0,m.jsx)(x.Section,{className:"py-20 bg-background",children:(0,m.jsx)(g.Container,{maxWidth:1280,children:(0,m.jsx)(I,{stats:i})})})}function I({stats:i}){return i?(0,m.jsx)(u.Flex,{wrap:!0,align:"center",direction:"col",className:"sm:justify-left sm:flex-row",children:i==null?void 0:i.map((e,o)=>{var n,r,d,a,p,f;return(0,m.jsx)("div",{className:"my-8 md:w-1/2 lg:w-1/4 w-full px-4",children:(0,m.jsx)(l.Card,{className:"bg-white",children:(0,m.jsxs)(l.CardContent,{className:"flex items-center p-4",children:[((n=e==null?void 0:e.mainImage)==null?void 0:n.image)&&(0,m.jsx)("div",{className:"inline-block p-4 mr-4 rounded bg-secondary/50",children:(0,m.jsx)("img",{src:(r=e==null?void 0:e.mainImage)==null?void 0:r.image,width:24,height:24,alt:(a=(d=e==null?void 0:e.mainImage)==null?void 0:d.alt)!=null?a:"statistics-icon"})}),(0,m.jsxs)("div",{children:[(0,m.jsx)("p",{className:"text-2xl text-gray-500 font-bold",children:(p=e==null?void 0:e.value)!=null?p:""}),(0,m.jsx)(C.Text,{muted:!0,children:(f=e==null?void 0:e.label)!=null?f:""})]})]})})},o)})}):null}0&&(module.exports={Statistics_B});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunk-7SDFTD5M.mjs";export{a as Statistics_B,a as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var c=Object.defineProperty;var S=Object.getOwnPropertyDescriptor;var v=Object.getOwnPropertyNames;var N=Object.prototype.hasOwnProperty;var t=(i,e)=>{for(var o in e)c(i,o,{get:e[o],enumerable:!0})},w=(i,e,o,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of v(e))!N.call(i,r)&&r!==o&&c(i,r,{get:()=>e[r],enumerable:!(n=S(e,r))||n.enumerable});return i};var I=i=>w(c({},"__esModule",{value:!0}),i);var y={};t(y,{default:()=>b});module.exports=I(y);var l=require("@stackshift-ui/card"),g=require("@stackshift-ui/container"),x=require("@stackshift-ui/flex"),u=require("@stackshift-ui/section"),C=require("@stackshift-ui/text"),m=require("react/jsx-runtime");function b({stats:i}){return(0,m.jsx)(u.Section,{className:"py-20 bg-background",children:(0,m.jsx)(g.Container,{maxWidth:1280,children:(0,m.jsx)(h,{stats:i})})})}function h({stats:i}){return i?(0,m.jsx)(x.Flex,{wrap:!0,align:"center",className:"text-center",children:i==null?void 0:i.map((e,o)=>{var n,r,d,a,p,f;return(0,m.jsx)("div",{className:"my-8 md:w-1/2 lg:w-1/4 w-full px-4",children:(0,m.jsx)(l.Card,{className:"bg-white",children:(0,m.jsxs)(l.CardContent,{className:"p-4 flex flex-col items-center",children:[((n=e==null?void 0:e.mainImage)==null?void 0:n.image)&&(0,m.jsx)("div",{className:"inline-block p-4 mb-3 rounded bg-secondary/50",children:(0,m.jsx)("img",{src:(r=e==null?void 0:e.mainImage)==null?void 0:r.image,width:24,height:24,alt:(a=(d=e==null?void 0:e.mainImage)==null?void 0:d.alt)!=null?a:"statistics-icon"})}),(0,m.jsxs)("div",{children:[(0,m.jsx)("p",{className:"text-2xl text-gray-500 font-bold",children:(p=e==null?void 0:e.value)!=null?p:""}),(0,m.jsx)(C.Text,{muted:!0,children:(f=e==null?void 0:e.label)!=null?f:""})]})]})})},o)})}):null}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunk-PBIV227O.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": "7.0.0-beta.
|
|
4
|
+
"version": "7.0.0-beta.8",
|
|
5
5
|
"private": false,
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"main": "./dist/index.js",
|
|
@@ -29,26 +29,26 @@
|
|
|
29
29
|
"typescript": "^5.6.2",
|
|
30
30
|
"vite-tsconfig-paths": "^5.0.1",
|
|
31
31
|
"vitest": "^2.1.1",
|
|
32
|
-
"@stackshift-ui/
|
|
33
|
-
"@stackshift-ui/
|
|
32
|
+
"@stackshift-ui/eslint-config": "6.0.10",
|
|
33
|
+
"@stackshift-ui/typescript-config": "6.0.10"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"classnames": "^2.5.1",
|
|
37
|
-
"@stackshift-ui/scripts": "7.0.0-beta.
|
|
38
|
-
"@stackshift-ui/system": "7.0.0-beta.
|
|
39
|
-
"@stackshift-ui/
|
|
40
|
-
"@stackshift-ui/
|
|
41
|
-
"@stackshift-ui/
|
|
42
|
-
"@stackshift-ui/
|
|
43
|
-
"@stackshift-ui/container": "7.0.0-beta.
|
|
44
|
-
"@stackshift-ui/flex": "7.0.0-beta.
|
|
37
|
+
"@stackshift-ui/scripts": "7.0.0-beta.5",
|
|
38
|
+
"@stackshift-ui/system": "7.0.0-beta.6",
|
|
39
|
+
"@stackshift-ui/button": "7.0.0-beta.8",
|
|
40
|
+
"@stackshift-ui/card": "7.0.0-beta.6",
|
|
41
|
+
"@stackshift-ui/text": "7.0.0-beta.6",
|
|
42
|
+
"@stackshift-ui/section": "7.0.0-beta.6",
|
|
43
|
+
"@stackshift-ui/container": "7.0.0-beta.6",
|
|
44
|
+
"@stackshift-ui/flex": "7.0.0-beta.6"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"@types/react": "16.8 - 19",
|
|
48
48
|
"next": "10 - 14",
|
|
49
49
|
"react": "16.8 - 19",
|
|
50
50
|
"react-dom": "16.8 - 19",
|
|
51
|
-
"@stackshift-ui/system": ">=7.0.0-beta.
|
|
51
|
+
"@stackshift-ui/system": ">=7.0.0-beta.6"
|
|
52
52
|
},
|
|
53
53
|
"peerDependenciesMeta": {
|
|
54
54
|
"next": {
|