@stackshift-ui/stats-card 1.0.0 → 6.0.2

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.
@@ -1 +1 @@
1
- import{DefaultComponent as T,useStackShiftUIComponents as N}from"@stackshift-ui/system";import{Text as b}from"@stackshift-ui/text";import k from"classnames";import{jsx as e,jsxs as d}from"react/jsx-runtime";var n="StatsCard",h=({variant:s="inline",icon:a,value:m,label:p,alt:t,children:v,className:g,as:C,...f})=>{var c,l;let{[n]:u=T}=N(),i="w-full px-4",o={inline:`${i} flex items-center`,stacked:`${i} block`},r={inline:"inline-block p-4 mr-4 rounded bg-secondary-foreground",stacked:"inline-block p-4 mx-auto rounded bg-secondary-foreground"},y=(c=o[s])!=null?c:o.inline,x=(l=r[s])!=null?l:r.inline;return d(u,{as:C,className:k(y,g),...f,"data-testid":n,children:[a&&e("div",{className:x,children:e("img",{src:a,width:24,height:24,alt:t!=null?t:"statistics-icon"})}),d("div",{children:[e("p",{className:"text-2xl font-bold",children:m}),e(b,{muted:!0,children:p})]})]})};h.displayName=n;export{h as a};
1
+ import{DefaultComponent as T,useStackShiftUIComponents as N}from"@stackshift-ui/system";import{Text as b}from"@stackshift-ui/text";import k from"classnames";import{jsx as e,jsxs as d}from"react/jsx-runtime";var n="StatsCard",h=({variant:s="inline",icon:a,value:m,label:p,alt:t,children:v,className:g,as:C,...f})=>{var c,l;let{[n]:y=T}=N(),i="w-full px-4",o={inline:`${i} flex items-center`,stacked:`${i} block`},r={inline:"inline-block p-4 mr-4 rounded bg-secondary-foreground",stacked:"inline-block p-4 mx-auto rounded bg-secondary-foreground"},u=(c=o[s])!=null?c:o.inline,x=(l=r[s])!=null?l:r.inline;return d(y,{as:C,className:k(u,g),...f,"data-testid":n,children:[a&&e("div",{className:x,children:e("img",{src:a,width:24,height:24,alt:t!=null?t:"statistics-icon"})}),d("div",{children:[e("p",{className:"text-2xl text-gray-500 font-bold",children:m}),e(b,{muted:!0,children:p})]})]})};h.displayName=n;export{h as a};
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";var v=Object.create;var i=Object.defineProperty;var S=Object.getOwnPropertyDescriptor;var P=Object.getOwnPropertyNames;var E=Object.getPrototypeOf,H=Object.prototype.hasOwnProperty;var L=(e,t)=>{for(var n in t)i(e,n,{get:t[n],enumerable:!0})},g=(e,t,n,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of P(t))!H.call(e,s)&&s!==n&&i(e,s,{get:()=>t[s],enumerable:!(o=S(t,s))||o.enumerable});return e};var M=(e,t,n)=>(n=e!=null?v(E(e)):{},g(t||!e||!e.__esModule?i(n,"default",{value:e,enumerable:!0}):n,e)),R=e=>g(i({},"__esModule",{value:!0}),e);var V={};L(V,{StatsCard:()=>x});module.exports=R(V);var r=require("@stackshift-ui/system"),C=require("@stackshift-ui/text"),u=M(require("classnames")),a=require("react/jsx-runtime"),c="StatsCard",x=({variant:e="inline",icon:t,value:n,label:o,alt:s,children:w,className:y,as:T,...N})=>{var p,f;let{[c]:b=r.DefaultComponent}=(0,r.useStackShiftUIComponents)(),l="w-full px-4",d={inline:`${l} flex items-center`,stacked:`${l} block`},m={inline:"inline-block p-4 mr-4 rounded bg-secondary-foreground",stacked:"inline-block p-4 mx-auto rounded bg-secondary-foreground"},k=(p=d[e])!=null?p:d.inline,h=(f=m[e])!=null?f:m.inline;return(0,a.jsxs)(b,{as:T,className:(0,u.default)(k,y),...N,"data-testid":c,children:[t&&(0,a.jsx)("div",{className:h,children:(0,a.jsx)("img",{src:t,width:24,height:24,alt:s!=null?s:"statistics-icon"})}),(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-2xl font-bold",children:n}),(0,a.jsx)(C.Text,{muted:!0,children:o})]})]})};x.displayName=c;0&&(module.exports={StatsCard});
2
+ "use strict";var v=Object.create;var i=Object.defineProperty;var S=Object.getOwnPropertyDescriptor;var P=Object.getOwnPropertyNames;var E=Object.getPrototypeOf,H=Object.prototype.hasOwnProperty;var L=(e,t)=>{for(var n in t)i(e,n,{get:t[n],enumerable:!0})},f=(e,t,n,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of P(t))!H.call(e,s)&&s!==n&&i(e,s,{get:()=>t[s],enumerable:!(o=S(t,s))||o.enumerable});return e};var M=(e,t,n)=>(n=e!=null?v(E(e)):{},f(t||!e||!e.__esModule?i(n,"default",{value:e,enumerable:!0}):n,e)),R=e=>f(i({},"__esModule",{value:!0}),e);var V={};L(V,{StatsCard:()=>x});module.exports=R(V);var r=require("@stackshift-ui/system"),C=require("@stackshift-ui/text"),u=M(require("classnames")),a=require("react/jsx-runtime"),c="StatsCard",x=({variant:e="inline",icon:t,value:n,label:o,alt:s,children:w,className:y,as:T,...N})=>{var p,g;let{[c]:b=r.DefaultComponent}=(0,r.useStackShiftUIComponents)(),l="w-full px-4",d={inline:`${l} flex items-center`,stacked:`${l} block`},m={inline:"inline-block p-4 mr-4 rounded bg-secondary-foreground",stacked:"inline-block p-4 mx-auto rounded bg-secondary-foreground"},k=(p=d[e])!=null?p:d.inline,h=(g=m[e])!=null?g:m.inline;return(0,a.jsxs)(b,{as:T,className:(0,u.default)(k,y),...N,"data-testid":c,children:[t&&(0,a.jsx)("div",{className:h,children:(0,a.jsx)("img",{src:t,width:24,height:24,alt:s!=null?s:"statistics-icon"})}),(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-2xl text-gray-500 font-bold",children:n}),(0,a.jsx)(C.Text,{muted:!0,children:o})]})]})};x.displayName=c;0&&(module.exports={StatsCard});
package/dist/index.mjs CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";import{a as e}from"./chunk-GC2DD6WQ.mjs";export{e as StatsCard};
2
+ "use strict";import{a as e}from"./chunk-4YF2WLQ3.mjs";export{e as StatsCard};
@@ -1 +1 @@
1
- "use strict";var v=Object.create;var o=Object.defineProperty;var S=Object.getOwnPropertyDescriptor;var P=Object.getOwnPropertyNames;var E=Object.getPrototypeOf,H=Object.prototype.hasOwnProperty;var L=(e,t)=>{for(var n in t)o(e,n,{get:t[n],enumerable:!0})},C=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of P(t))!H.call(e,s)&&s!==n&&o(e,s,{get:()=>t[s],enumerable:!(i=S(t,s))||i.enumerable});return e};var M=(e,t,n)=>(n=e!=null?v(E(e)):{},C(t||!e||!e.__esModule?o(n,"default",{value:e,enumerable:!0}):n,e)),R=e=>C(o({},"__esModule",{value:!0}),e);var V={};L(V,{StatsCard:()=>y});module.exports=R(V);var r=require("@stackshift-ui/system"),f=require("@stackshift-ui/text"),u=M(require("classnames")),a=require("react/jsx-runtime"),c="StatsCard",y=({variant:e="inline",icon:t,value:n,label:i,alt:s,children:w,className:x,as:T,...N})=>{var p,g;let{[c]:b=r.DefaultComponent}=(0,r.useStackShiftUIComponents)(),l="w-full px-4",d={inline:`${l} flex items-center`,stacked:`${l} block`},m={inline:"inline-block p-4 mr-4 rounded bg-secondary-foreground",stacked:"inline-block p-4 mx-auto rounded bg-secondary-foreground"},k=(p=d[e])!=null?p:d.inline,h=(g=m[e])!=null?g:m.inline;return(0,a.jsxs)(b,{as:T,className:(0,u.default)(k,x),...N,"data-testid":c,children:[t&&(0,a.jsx)("div",{className:h,children:(0,a.jsx)("img",{src:t,width:24,height:24,alt:s!=null?s:"statistics-icon"})}),(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-2xl font-bold",children:n}),(0,a.jsx)(f.Text,{muted:!0,children:i})]})]})};y.displayName=c;0&&(module.exports={StatsCard});
1
+ "use strict";var v=Object.create;var o=Object.defineProperty;var S=Object.getOwnPropertyDescriptor;var P=Object.getOwnPropertyNames;var E=Object.getPrototypeOf,H=Object.prototype.hasOwnProperty;var L=(e,t)=>{for(var n in t)o(e,n,{get:t[n],enumerable:!0})},C=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of P(t))!H.call(e,s)&&s!==n&&o(e,s,{get:()=>t[s],enumerable:!(i=S(t,s))||i.enumerable});return e};var M=(e,t,n)=>(n=e!=null?v(E(e)):{},C(t||!e||!e.__esModule?o(n,"default",{value:e,enumerable:!0}):n,e)),R=e=>C(o({},"__esModule",{value:!0}),e);var V={};L(V,{StatsCard:()=>u});module.exports=R(V);var r=require("@stackshift-ui/system"),f=require("@stackshift-ui/text"),y=M(require("classnames")),a=require("react/jsx-runtime"),c="StatsCard",u=({variant:e="inline",icon:t,value:n,label:i,alt:s,children:w,className:x,as:T,...N})=>{var p,g;let{[c]:b=r.DefaultComponent}=(0,r.useStackShiftUIComponents)(),l="w-full px-4",d={inline:`${l} flex items-center`,stacked:`${l} block`},m={inline:"inline-block p-4 mr-4 rounded bg-secondary-foreground",stacked:"inline-block p-4 mx-auto rounded bg-secondary-foreground"},k=(p=d[e])!=null?p:d.inline,h=(g=m[e])!=null?g:m.inline;return(0,a.jsxs)(b,{as:T,className:(0,y.default)(k,x),...N,"data-testid":c,children:[t&&(0,a.jsx)("div",{className:h,children:(0,a.jsx)("img",{src:t,width:24,height:24,alt:s!=null?s:"statistics-icon"})}),(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-2xl text-gray-500 font-bold",children:n}),(0,a.jsx)(f.Text,{muted:!0,children:i})]})]})};u.displayName=c;0&&(module.exports={StatsCard});
@@ -1 +1 @@
1
- import{a}from"./chunk-GC2DD6WQ.mjs";export{a as StatsCard};
1
+ import{a}from"./chunk-4YF2WLQ3.mjs";export{a as StatsCard};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stackshift-ui/stats-card",
3
3
  "description": "",
4
- "version": "1.0.0",
4
+ "version": "6.0.2",
5
5
  "private": false,
6
6
  "sideEffects": false,
7
7
  "main": "./dist/index.js",
@@ -28,14 +28,14 @@
28
28
  "typescript": "^5.6.2",
29
29
  "vite-tsconfig-paths": "^5.0.1",
30
30
  "vitest": "^2.1.1",
31
- "@stackshift-ui/eslint-config": "1.0.0",
32
- "@stackshift-ui/typescript-config": "2.0.0"
31
+ "@stackshift-ui/eslint-config": "6.0.2",
32
+ "@stackshift-ui/typescript-config": "6.0.2"
33
33
  },
34
34
  "dependencies": {
35
35
  "classnames": "^2.5.1",
36
- "@stackshift-ui/scripts": "1.0.0",
37
- "@stackshift-ui/system": "2.0.0",
38
- "@stackshift-ui/text": "1.0.0"
36
+ "@stackshift-ui/scripts": "6.0.2",
37
+ "@stackshift-ui/system": "6.0.2",
38
+ "@stackshift-ui/text": "6.0.2"
39
39
  },
40
40
  "peerDependencies": {
41
41
  "@types/react": "16.8 - 19",