@stackshift-ui/statistics 7.0.0-beta.3 → 7.0.0-beta.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stackshift-ui/statistics",
3
3
  "description": "",
4
- "version": "7.0.0-beta.3",
4
+ "version": "7.0.0-beta.6",
5
5
  "private": false,
6
6
  "sideEffects": false,
7
7
  "main": "./dist/index.js",
@@ -34,22 +34,21 @@
34
34
  },
35
35
  "dependencies": {
36
36
  "classnames": "^2.5.1",
37
- "@stackshift-ui/scripts": "6.1.0-beta.0",
38
- "@stackshift-ui/system": "6.1.0-beta.1",
39
- "@stackshift-ui/card": "7.0.0-beta.1",
40
- "@stackshift-ui/section": "7.0.0-beta.1",
41
- "@stackshift-ui/text": "7.0.0-beta.1",
42
- "@stackshift-ui/container": "7.0.0-beta.1",
43
- "@stackshift-ui/button": "6.1.0-beta.3",
44
- "@stackshift-ui/flex": "7.0.0-beta.1",
45
- "@stackshift-ui/stats-card": "7.0.0-beta.1"
37
+ "@stackshift-ui/scripts": "7.0.0-beta.3",
38
+ "@stackshift-ui/system": "7.0.0-beta.4",
39
+ "@stackshift-ui/card": "7.0.0-beta.4",
40
+ "@stackshift-ui/button": "7.0.0-beta.6",
41
+ "@stackshift-ui/section": "7.0.0-beta.4",
42
+ "@stackshift-ui/text": "7.0.0-beta.4",
43
+ "@stackshift-ui/container": "7.0.0-beta.4",
44
+ "@stackshift-ui/flex": "7.0.0-beta.4"
46
45
  },
47
46
  "peerDependencies": {
48
47
  "@types/react": "16.8 - 19",
49
48
  "next": "10 - 14",
50
49
  "react": "16.8 - 19",
51
50
  "react-dom": "16.8 - 19",
52
- "@stackshift-ui/system": ">=6.1.0-beta.1"
51
+ "@stackshift-ui/system": ">=7.0.0-beta.4"
53
52
  },
54
53
  "peerDependenciesMeta": {
55
54
  "next": {
@@ -1,10 +1,13 @@
1
- import { lazy } from "react";
1
+ import React from "react";
2
2
  import { SectionsProps, StatItems } from "./types";
3
+ import StatisticsA from "./statistics_a";
4
+ import StatisticsB from "./statistics_b";
5
+ import StatisticsC from "./statistics_c";
3
6
 
4
7
  const Variants = {
5
- variant_a: lazy(() => import("./statistics_a")),
6
- variant_b: lazy(() => import("./statistics_b")),
7
- variant_c: lazy(() => import("./statistics_c")),
8
+ variant_a: StatisticsA,
9
+ variant_b: StatisticsB,
10
+ variant_c: StatisticsC,
8
11
  };
9
12
 
10
13
  export interface StatsProps {
@@ -27,7 +27,7 @@ function StatisticsItems({ stats }: { stats?: StatItems[] }) {
27
27
  {stats.map((items, index) => (
28
28
  <div className="w-full px-4 my-8 sm:w-1/4 lg:w-1/4" key={index}>
29
29
  <Card className="relative py-10 shadow-md bg-white">
30
- <CardContent>
30
+ <CardContent className="pt-6">
31
31
  <Text className="mb-1 text-primary overflow-ellipsis overflow-clip">
32
32
  {items?.label}
33
33
  </Text>
@@ -1,7 +1,8 @@
1
+ import { Card, CardContent } from "@stackshift-ui/card";
1
2
  import { Container } from "@stackshift-ui/container";
2
3
  import { Flex } from "@stackshift-ui/flex";
3
4
  import { Section } from "@stackshift-ui/section";
4
- import { StatsCard } from "@stackshift-ui/stats-card";
5
+ import { Text } from "@stackshift-ui/text";
5
6
  import { StatsProps } from ".";
6
7
  import { StatItems } from "./types";
7
8
 
@@ -21,14 +22,26 @@ function StatisticsItems({ stats }: { stats?: StatItems[] }) {
21
22
  return (
22
23
  <Flex wrap align="center" direction="col" className="sm:justify-left sm:flex-row">
23
24
  {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
- />
25
+ <div key={index} className="my-8 md:w-1/2 lg:w-1/4 w-full px-4">
26
+ <Card className="bg-white">
27
+ <CardContent className="flex items-center p-4">
28
+ {stat?.mainImage?.image && (
29
+ <div className="inline-block p-4 mr-4 rounded bg-secondary/50">
30
+ <img
31
+ src={stat?.mainImage?.image}
32
+ width={24}
33
+ height={24}
34
+ alt={stat?.mainImage?.alt ?? "statistics-icon"}
35
+ />
36
+ </div>
37
+ )}
38
+ <div>
39
+ <p className="text-2xl text-gray-500 font-bold">{stat?.value ?? ""}</p>
40
+ <Text muted>{stat?.label ?? ""}</Text>
41
+ </div>
42
+ </CardContent>
43
+ </Card>
44
+ </div>
32
45
  ))}
33
46
  </Flex>
34
47
  );
@@ -1,7 +1,8 @@
1
+ import { Card, CardContent } from "@stackshift-ui/card";
1
2
  import { Container } from "@stackshift-ui/container";
2
3
  import { Flex } from "@stackshift-ui/flex";
3
4
  import { Section } from "@stackshift-ui/section";
4
- import { StatsCard } from "@stackshift-ui/stats-card";
5
+ import { Text } from "@stackshift-ui/text";
5
6
  import { StatsProps } from ".";
6
7
  import { StatItems } from "./types";
7
8
 
@@ -19,17 +20,28 @@ function StatisticsItems({ stats }: { stats?: StatItems[] }) {
19
20
  if (!stats) return null;
20
21
 
21
22
  return (
22
- <Flex wrap align="center" className="text-center ">
23
+ <Flex wrap align="center" className="text-center">
23
24
  {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
- />
25
+ <div key={index} className="my-8 md:w-1/2 lg:w-1/4 w-full px-4">
26
+ <Card className="bg-white">
27
+ <CardContent className="p-4 flex flex-col items-center">
28
+ {stat?.mainImage?.image && (
29
+ <div className="inline-block p-4 mb-3 rounded bg-secondary/50">
30
+ <img
31
+ src={stat?.mainImage?.image}
32
+ width={24}
33
+ height={24}
34
+ alt={stat?.mainImage?.alt ?? "statistics-icon"}
35
+ />
36
+ </div>
37
+ )}
38
+ <div>
39
+ <p className="text-2xl text-gray-500 font-bold">{stat?.value ?? ""}</p>
40
+ <Text muted>{stat?.label ?? ""}</Text>
41
+ </div>
42
+ </CardContent>
43
+ </Card>
44
+ </div>
33
45
  ))}
34
46
  </Flex>
35
47
  );
@@ -1 +0,0 @@
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};
@@ -1 +0,0 @@
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};
@@ -1 +0,0 @@
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};
@@ -1 +0,0 @@
1
- import{Card as e,CardContent as l}from"@stackshift-ui/card";import{Container as m}from"@stackshift-ui/container";import{Flex as n}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 x}from"react/jsx-runtime";function f({stats:a}){return t(p,{className:"py-20 bg-background",children:t(m,{maxWidth:1280,children:t(n,{wrap:!0,align:"center",justify:"start",className:"text-center",children:t(c,{stats:a})})})})}function c({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:t(e,{className:"relative py-10 shadow-md bg-white",children:x(l,{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{f as a};
package/dist/index.d.ts DELETED
@@ -1,4 +0,0 @@
1
- export * from "./statistics";
2
- export * from "./statistics_a";
3
- export * from "./statistics_b";
4
- export * from "./statistics_c";
package/dist/index.js DELETED
@@ -1,2 +0,0 @@
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 S=(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})},C=(o,r,e,m)=>{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:!(m=G(r,i))||m.enumerable});return o};var L=(o,r,e)=>(e=o!=null?E(J(o)):{},C(r||!o||!o.__esModule?c(e,"default",{value:o,enumerable:!0}):e,o)),M=o=>C(c({},"__esModule",{value:!0}),o);var P={};f(P,{Statistics_A:()=>x,default:()=>x});function x({stats:o}){return(0,t.jsx)(d.Section,{className:"py-20 bg-background",children:(0,t.jsx)(I.Container,{maxWidth:1280,children:(0,t.jsx)(b.Flex,{wrap:!0,align:"center",justify:"start",className:"text-center",children:(0,t.jsx)(O,{stats:o})})})})}function O({stats:o}){return o?(0,t.jsx)(F.default.Fragment,{children:o.map((r,e)=>(0,t.jsx)("div",{className:"w-full px-4 my-8 sm:w-1/4 lg:w-1/4",children:(0,t.jsx)(s.Card,{className:"relative py-10 shadow-md bg-white",children:(0,t.jsxs)(s.CardContent,{children:[(0,t.jsx)(N.Text,{className:"mb-1 text-primary overflow-ellipsis overflow-clip",children:r==null?void 0:r.label}),(0,t.jsx)("t",{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 s,I,b,d,N,F,t,g=S(()=>{"use strict";s=require("@stackshift-ui/card"),I=require("@stackshift-ui/container"),b=require("@stackshift-ui/flex"),d=require("@stackshift-ui/section"),N=require("@stackshift-ui/text"),F=L(require("react")),t=require("react/jsx-runtime")});var V={};f(V,{Statistics_B:()=>v,default:()=>v});function v({stats:o}){return(0,t.jsx)(d.Section,{className:"py-20 bg-background",children:(0,t.jsx)(k.Container,{maxWidth:1280,children:(0,t.jsx)(Q,{stats:o})})})}function Q({stats:o}){return o?(0,t.jsx)(b.Flex,{wrap:!0,align:"center",direction:"col",className:"sm:justify-left sm:flex-row",children:o==null?void 0:o.map((r,e)=>{var m,i,n,l;return(0,t.jsx)(R.StatsCard,{className:"my-8 md:w-1/2 lg:w-1/4 lg:justify-center",value:(m=r==null?void 0:r.value)!=null?m:"",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,b,d,R,t,y=S(()=>{"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,t.jsx)($.Section,{className:"py-20 bg-background",children:(0,t.jsx)(W.Container,{maxWidth:1280,children:(0,t.jsx)(U,{stats:o})})})}function U({stats:o}){return o?(0,t.jsx)(b.Flex,{wrap:!0,align:"center",className:"text-center ",children:o==null?void 0:o.map((r,e)=>{var m,i,n,l;return(0,t.jsx)(R.StatsCard,{className:"my-8 md:w-1/2 lg:w-1/4",variant:"stacked",value:(m=r==null?void 0:r.value)!=null?m:"",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,b,$,R,t,w=S(()=>{"use strict";W=require("@stackshift-ui/container")});var Z={};f(Z,{Statistics:()=>q,Statistics_A:()=>x,Statistics_B:()=>v});module.exports=M(Z);var u=require("react"),X={variant_a:(0,u.lazy)(()=>Promise.resolve().then(()=>(g(),P))),variant_b:(0,u.lazy)(()=>Promise.resolve().then(()=>(y(),V))),variant_c:(0,u.lazy)(()=>Promise.resolve().then(()=>(w(),B)))},Y="Statistics",q=({data:o})=>{var i,n,l;let r=o==null?void 0:o.variant,e=r&&X[r],m={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,t.jsx)(e,{...m}):null};q.displayName=Y;g();y();w();0&&(module.exports={Statistics,Statistics_A,Statistics_B});
package/dist/index.mjs DELETED
@@ -1,2 +0,0 @@
1
- "use client";
2
- "use strict";import{a as e}from"./chunk-FYS4LRF3.mjs";import{a as o}from"./chunk-ZFLMVTRT.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,5 +0,0 @@
1
- import { SectionsProps, StatItems } from "./types";
2
- export interface StatsProps {
3
- stats?: StatItems[];
4
- }
5
- export declare const Statistics: React.FC<SectionsProps>;
@@ -1 +0,0 @@
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 u=(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})},g=(e,r,o,m)=>{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:!(m=G(r,i))||m.enumerable});return e};var L=(e,r,o)=>(o=e!=null?E(J(e)):{},g(r||!e||!e.__esModule?c(o,"default",{value:e,enumerable:!0}):o,e)),M=e=>g(c({},"__esModule",{value:!0}),e);var b={};f(b,{Statistics_A:()=>I,default:()=>I});function I({stats:e}){return(0,t.jsx)(y.Section,{className:"py-20 bg-background",children:(0,t.jsx)(x.Container,{maxWidth:1280,children:(0,t.jsx)(v.Flex,{wrap:!0,align:"center",justify:"start",className:"text-center",children:(0,t.jsx)(O,{stats:e})})})})}function O({stats:e}){return e?(0,t.jsx)(C.default.Fragment,{children:e.map((r,o)=>(0,t.jsx)("div",{className:"w-full px-4 my-8 sm:w-1/4 lg:w-1/4",children:(0,t.jsx)(s.Card,{className:"relative py-10 shadow-md bg-white",children:(0,t.jsxs)(s.CardContent,{children:[(0,t.jsx)(w.Text,{className:"mb-1 text-primary overflow-ellipsis overflow-clip",children:r==null?void 0:r.label}),(0,t.jsx)("t",{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 s,x,v,y,w,C,t,d=u(()=>{"use strict";s=require("@stackshift-ui/card"),x=require("@stackshift-ui/container"),v=require("@stackshift-ui/flex"),y=require("@stackshift-ui/section"),w=require("@stackshift-ui/text"),C=L(require("react")),t=require("react/jsx-runtime")});var h={};f(h,{Statistics_B:()=>_,default:()=>_});function _({stats:e}){return(0,t.jsx)(y.Section,{className:"py-20 bg-background",children:(0,t.jsx)(N.Container,{maxWidth:1280,children:(0,t.jsx)(Q,{stats:e})})})}function Q({stats:e}){return e?(0,t.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 m,i,n,l;return(0,t.jsx)(k.StatsCard,{className:"my-8 md:w-1/2 lg:w-1/4 lg:justify-center",value:(m=r==null?void 0:r.value)!=null?m:"",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 N,v,y,k,t,R=u(()=>{"use strict";N=require("@stackshift-ui/container"),k=require("@stackshift-ui/stats-card")});var A={};f(A,{default:()=>z});function z({stats:e}){return(0,t.jsx)(y.Section,{className:"py-20 bg-background",children:(0,t.jsx)(V.Container,{maxWidth:1280,children:(0,t.jsx)(U,{stats:e})})})}function U({stats:e}){return e?(0,t.jsx)(v.Flex,{wrap:!0,align:"center",className:"text-center ",children:e==null?void 0:e.map((r,o)=>{var m,i,n,l;return(0,t.jsx)($.StatsCard,{className:"my-8 md:w-1/2 lg:w-1/4",variant:"stacked",value:(m=r==null?void 0:r.value)!=null?m:"",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,$,t,B=u(()=>{"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(),b))),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],m={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,t.jsx)(o,{...m}):null};q.displayName=Y;0&&(module.exports={Statistics});
@@ -1 +0,0 @@
1
- import{a}from"./chunk-FYS4LRF3.mjs";export{a as Statistics};
@@ -1,3 +0,0 @@
1
- import { StatsProps } from ".";
2
- export default function Statistics_A({ stats }: StatsProps): import("react/jsx-runtime").JSX.Element;
3
- export { Statistics_A };
@@ -1 +0,0 @@
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 o in r)l(t,o,{get:r[o],enumerable:!0})},p=(t,r,o,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let e of g(r))!C.call(t,e)&&e!==o&&l(t,e,{get:()=>r[e],enumerable:!(n=w(r,e))||n.enumerable});return t};var y=(t,r,o)=>(o=t!=null?u(v(t)):{},p(r||!t||!t.__esModule?l(o,"default",{value:t,enumerable:!0}):o,t)),b=t=>p(l({},"__esModule",{value:!0}),t);var F={};S(F,{Statistics_A:()=>d,default:()=>d});module.exports=b(F);var m=require("@stackshift-ui/card"),i=require("@stackshift-ui/container"),s=require("@stackshift-ui/flex"),f=require("@stackshift-ui/section"),c=require("@stackshift-ui/text"),x=y(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)(i.Container,{maxWidth:1280,children:(0,a.jsx)(s.Flex,{wrap:!0,align:"center",justify:"start",className:"text-center",children:(0,a.jsx)(N,{stats:t})})})})}function N({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.jsx)(m.Card,{className:"relative py-10 shadow-md bg-white",children:(0,a.jsxs)(m.CardContent,{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});
@@ -1 +0,0 @@
1
- import{a}from"./chunk-ZFLMVTRT.mjs";export{a as Statistics_A,a as default};
@@ -1,3 +0,0 @@
1
- import { StatsProps } from ".";
2
- export default function Statistics_B({ stats }: StatsProps): import("react/jsx-runtime").JSX.Element;
3
- export { Statistics_B };
@@ -1 +0,0 @@
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 +0,0 @@
1
- import{a}from"./chunk-53SVPDST.mjs";export{a as Statistics_B,a as default};
@@ -1,2 +0,0 @@
1
- import { StatsProps } from ".";
2
- export default function Statistics_C({ stats }: StatsProps): import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
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 +0,0 @@
1
- import{a}from"./chunk-XQZSXTPH.mjs";export{a as default};
package/dist/types.d.ts DELETED
@@ -1,363 +0,0 @@
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 DELETED
@@ -1 +0,0 @@
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);