@jamsr-ui/card
Advanced tools
Comparing version 0.0.16 to 0.0.17
"use client" | ||
"use strict";var d=Object.defineProperty;var f=Object.getOwnPropertyDescriptor;var h=Object.getOwnPropertyNames;var C=Object.prototype.hasOwnProperty;var N=(t,e)=>{for(var r in e)d(t,r,{get:e[r],enumerable:!0})},v=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of h(e))!C.call(t,o)&&o!==r&&d(t,o,{get:()=>e[o],enumerable:!(n=f(e,o))||n.enumerable});return t};var H=t=>v(d({},"__esModule",{value:!0}),t);var u={};N(u,{CardHeader:()=>T,CardHeaderInner:()=>m});module.exports=H(u);var p=require("@jamsr-ui/typography"),c=require("@jamsr-ui/utils"),i=require("react"),a=require("react/jsx-runtime"),m=(t,e)=>{let{as:r,heading:n,className:o,children:g,action:l,subHeading:s,gutterBottom:y,...R}=t;return(0,a.jsx)(r??"div",{"data-component":"card-header",ref:e,className:(0,c.cn)("relative flex justify-between px-4 pt-4",{"pb-4":y},o),...R,children:g||(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"grid gap-1",children:[(0,a.jsx)(p.Typography,{variant:"h6",children:n}),s&&(0,a.jsx)(p.Typography,{className:"text-foreground-secondary",variant:"caption",children:s})]}),l]})})},T=(0,i.forwardRef)(m);0&&(module.exports={CardHeader,CardHeaderInner}); | ||
"use strict";var d=Object.defineProperty;var f=Object.getOwnPropertyDescriptor;var h=Object.getOwnPropertyNames;var C=Object.prototype.hasOwnProperty;var N=(t,e)=>{for(var r in e)d(t,r,{get:e[r],enumerable:!0})},v=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of h(e))!C.call(t,o)&&o!==r&&d(t,o,{get:()=>e[o],enumerable:!(n=f(e,o))||n.enumerable});return t};var H=t=>v(d({},"__esModule",{value:!0}),t);var u={};N(u,{CardHeader:()=>T,CardHeaderInner:()=>m});module.exports=H(u);var p=require("@jamsr-ui/typography"),c=require("@jamsr-ui/utils"),i=require("react"),a=require("react/jsx-runtime"),m=(t,e)=>{let{as:r,heading:n,className:o,children:g,action:l,subHeading:s,gutterBottom:y,...R}=t;return(0,a.jsx)(r??"div",{"data-slot":"header",ref:e,className:(0,c.cn)("relative flex justify-between px-4 pt-4",{"pb-4":y},o),...R,children:g||(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"grid gap-1",children:[(0,a.jsx)(p.Typography,{variant:"h6",children:n}),s&&(0,a.jsx)(p.Typography,{className:"text-foreground-secondary",variant:"caption",children:s})]}),l]})})},T=(0,i.forwardRef)(m);0&&(module.exports={CardHeader,CardHeaderInner}); |
"use client" | ||
"use strict";var s=Object.defineProperty;var v=Object.getOwnPropertyDescriptor;var P=Object.getOwnPropertyNames;var y=Object.prototype.hasOwnProperty;var V=(e,r)=>{for(var o in r)s(e,o,{get:r[o],enumerable:!0})},h=(e,r,o,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of P(r))!y.call(e,a)&&a!==o&&s(e,a,{get:()=>r[a],enumerable:!(n=v(r,a))||n.enumerable});return e};var w=e=>h(s({},"__esModule",{value:!0}),e);var k={};V(k,{Card:()=>R});module.exports=w(k);var d=require("@jamsr-ui/progress"),l=require("@jamsr-ui/utils"),b=require("react");var i=require("@jamsr-ui/utils"),p=(0,i.tv)({base:"relative overflow-hidden rounded-3xl bg-background-paper shadow-sm shadow-black/30",variants:{variant:{default:"",gradient:"border-[1.2px] border-black/10 bg-[linear-gradient(139deg,rgba(255,255,255,0.12),rgba(255,255,255,0.03)_30%,rgba(255,255,255,0.01)_66%,rgba(255,255,255,0.08))] "},bg:{default:"bg-background-paper",secondary:""},bordered:{true:""}},compoundVariants:[{variant:"default",bordered:!0,className:"border border-white/20"}],defaultVariants:{variant:"default",bg:"default",bordered:!0}});var t=require("react/jsx-runtime"),x=(e,r)=>{let{as:o,className:n,variant:a,isPending:c=!1,children:m,isLoading:f=!1,bg:g,bordered:u,...C}=e;return(0,t.jsxs)(o??"div",{"data-component":"card",ref:r,className:(0,l.cn)(p({variant:a,bg:g,className:n,bordered:u})),...C,children:[f&&(0,t.jsx)(d.LinearProgress,{className:"absolute inset-0",isIntermediate:!0}),c&&(0,t.jsx)("div",{className:"absolute inset-0 z-10 grid size-full place-content-center bg-black/50",children:(0,t.jsx)(d.CircularProgress,{})}),m]})},R=(0,b.forwardRef)(x);0&&(module.exports={Card}); | ||
"use strict";var s=Object.defineProperty;var v=Object.getOwnPropertyDescriptor;var P=Object.getOwnPropertyNames;var y=Object.prototype.hasOwnProperty;var V=(e,r)=>{for(var t in r)s(e,t,{get:r[t],enumerable:!0})},h=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of P(r))!y.call(e,a)&&a!==t&&s(e,a,{get:()=>r[a],enumerable:!(n=v(r,a))||n.enumerable});return e};var w=e=>h(s({},"__esModule",{value:!0}),e);var k={};V(k,{Card:()=>R});module.exports=w(k);var d=require("@jamsr-ui/progress"),l=require("@jamsr-ui/utils"),b=require("react");var i=require("@jamsr-ui/utils"),p=(0,i.tv)({base:"relative overflow-hidden rounded-3xl bg-background-paper shadow-sm shadow-black/30",variants:{variant:{default:"",gradient:"border-[1.2px] border-black/10 bg-[linear-gradient(139deg,rgba(255,255,255,0.12),rgba(255,255,255,0.03)_30%,rgba(255,255,255,0.01)_66%,rgba(255,255,255,0.08))] "},bg:{default:"bg-background-paper",secondary:""},bordered:{true:""}},compoundVariants:[{variant:"default",bordered:!0,className:"border border-white/20"}],defaultVariants:{variant:"default",bg:"default",bordered:!0}});var o=require("react/jsx-runtime"),x=(e,r)=>{let{as:t,className:n,variant:a,isPending:c=!1,children:m,isLoading:f=!1,bg:g,bordered:u,...C}=e;return(0,o.jsxs)(t??"div",{"data-component":"card","data-slot":"base",ref:r,className:(0,l.cn)(p({variant:a,bg:g,className:n,bordered:u})),...C,children:[f&&(0,o.jsx)(d.LinearProgress,{className:"absolute inset-0",isIntermediate:!0}),c&&(0,o.jsx)("div",{className:"absolute inset-0 z-10 grid size-full place-content-center bg-black/50",children:(0,o.jsx)(d.CircularProgress,{})}),m]})},R=(0,b.forwardRef)(x);0&&(module.exports={Card}); |
"use client" | ||
"use strict";var C=Object.defineProperty;var I=Object.getOwnPropertyDescriptor;var k=Object.getOwnPropertyNames;var A=Object.prototype.hasOwnProperty;var E=(r,e)=>{for(var t in e)C(r,t,{get:e[t],enumerable:!0})},L=(r,e,t,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of k(e))!A.call(r,o)&&o!==t&&C(r,o,{get:()=>e[o],enumerable:!(a=I(e,o))||a.enumerable});return r};var D=r=>L(C({},"__esModule",{value:!0}),r);var B={};E(B,{Card:()=>h,CardContent:()=>N,CardFooter:()=>T,CardHeader:()=>W});module.exports=D(B);var c=require("@jamsr-ui/progress"),u=require("@jamsr-ui/utils"),v=require("react");var y=require("@jamsr-ui/utils"),P=(0,y.tv)({base:"relative overflow-hidden rounded-3xl bg-background-paper shadow-sm shadow-black/30",variants:{variant:{default:"",gradient:"border-[1.2px] border-black/10 bg-[linear-gradient(139deg,rgba(255,255,255,0.12),rgba(255,255,255,0.03)_30%,rgba(255,255,255,0.01)_66%,rgba(255,255,255,0.08))] "},bg:{default:"bg-background-paper",secondary:""},bordered:{true:""}},compoundVariants:[{variant:"default",bordered:!0,className:"border border-white/20"}],defaultVariants:{variant:"default",bg:"default",bordered:!0}});var s=require("react/jsx-runtime"),M=(r,e)=>{let{as:t,className:a,variant:o,isPending:d=!1,children:p,isLoading:i=!1,bg:l,bordered:f,...b}=r;return(0,s.jsxs)(t??"div",{"data-component":"card",ref:e,className:(0,u.cn)(P({variant:o,bg:l,className:a,bordered:f})),...b,children:[i&&(0,s.jsx)(c.LinearProgress,{className:"absolute inset-0",isIntermediate:!0}),d&&(0,s.jsx)("div",{className:"absolute inset-0 z-10 grid size-full place-content-center bg-black/50",children:(0,s.jsx)(c.CircularProgress,{})}),p]})},h=(0,v.forwardRef)(M);var R=require("@jamsr-ui/utils"),x=require("react"),w=require("react/jsx-runtime"),U=(r,e)=>{let{as:t,className:a,...o}=r;return(0,w.jsx)(t??"div",{"data-slot":"content",className:(0,R.cn)("p-4",a),ref:e,...o})},N=(0,x.forwardRef)(U);var m=require("@jamsr-ui/utils"),H=require("react/jsx-runtime"),T=(0,m.forwardRefUI)((r,e)=>{let{children:t,className:a,as:o,...d}=r;return(0,H.jsx)(o??"div",{ref:e,"data-slot":"footer",className:(0,m.cn)("flex justify-end gap-2 px-4 pb-4",a),...d,children:t})});var g=require("@jamsr-ui/typography"),F=require("@jamsr-ui/utils"),V=require("react"),n=require("react/jsx-runtime"),z=(r,e)=>{let{as:t,heading:a,className:o,children:d,action:p,subHeading:i,gutterBottom:l,...f}=r;return(0,n.jsx)(t??"div",{"data-component":"card-header",ref:e,className:(0,F.cn)("relative flex justify-between px-4 pt-4",{"pb-4":l},o),...f,children:d||(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"grid gap-1",children:[(0,n.jsx)(g.Typography,{variant:"h6",children:a}),i&&(0,n.jsx)(g.Typography,{className:"text-foreground-secondary",variant:"caption",children:i})]}),p]})})},W=(0,V.forwardRef)(z);0&&(module.exports={Card,CardContent,CardFooter,CardHeader}); | ||
"use strict";var C=Object.defineProperty;var I=Object.getOwnPropertyDescriptor;var k=Object.getOwnPropertyNames;var A=Object.prototype.hasOwnProperty;var E=(r,e)=>{for(var t in e)C(r,t,{get:e[t],enumerable:!0})},L=(r,e,t,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of k(e))!A.call(r,o)&&o!==t&&C(r,o,{get:()=>e[o],enumerable:!(a=I(e,o))||a.enumerable});return r};var D=r=>L(C({},"__esModule",{value:!0}),r);var B={};E(B,{Card:()=>h,CardContent:()=>N,CardFooter:()=>T,CardHeader:()=>W});module.exports=D(B);var m=require("@jamsr-ui/progress"),u=require("@jamsr-ui/utils"),v=require("react");var y=require("@jamsr-ui/utils"),P=(0,y.tv)({base:"relative overflow-hidden rounded-3xl bg-background-paper shadow-sm shadow-black/30",variants:{variant:{default:"",gradient:"border-[1.2px] border-black/10 bg-[linear-gradient(139deg,rgba(255,255,255,0.12),rgba(255,255,255,0.03)_30%,rgba(255,255,255,0.01)_66%,rgba(255,255,255,0.08))] "},bg:{default:"bg-background-paper",secondary:""},bordered:{true:""}},compoundVariants:[{variant:"default",bordered:!0,className:"border border-white/20"}],defaultVariants:{variant:"default",bg:"default",bordered:!0}});var s=require("react/jsx-runtime"),M=(r,e)=>{let{as:t,className:a,variant:o,isPending:d=!1,children:p,isLoading:i=!1,bg:l,bordered:f,...g}=r;return(0,s.jsxs)(t??"div",{"data-component":"card","data-slot":"base",ref:e,className:(0,u.cn)(P({variant:o,bg:l,className:a,bordered:f})),...g,children:[i&&(0,s.jsx)(m.LinearProgress,{className:"absolute inset-0",isIntermediate:!0}),d&&(0,s.jsx)("div",{className:"absolute inset-0 z-10 grid size-full place-content-center bg-black/50",children:(0,s.jsx)(m.CircularProgress,{})}),p]})},h=(0,v.forwardRef)(M);var R=require("@jamsr-ui/utils"),x=require("react"),w=require("react/jsx-runtime"),U=(r,e)=>{let{as:t,className:a,...o}=r;return(0,w.jsx)(t??"div",{"data-slot":"content",className:(0,R.cn)("p-4",a),ref:e,...o})},N=(0,x.forwardRef)(U);var c=require("@jamsr-ui/utils"),H=require("react/jsx-runtime"),T=(0,c.forwardRefUI)((r,e)=>{let{children:t,className:a,as:o,...d}=r;return(0,H.jsx)(o??"div",{ref:e,"data-slot":"footer",className:(0,c.cn)("flex justify-end gap-2 px-4 pb-4",a),...d,children:t})});var b=require("@jamsr-ui/typography"),F=require("@jamsr-ui/utils"),V=require("react"),n=require("react/jsx-runtime"),z=(r,e)=>{let{as:t,heading:a,className:o,children:d,action:p,subHeading:i,gutterBottom:l,...f}=r;return(0,n.jsx)(t??"div",{"data-slot":"header",ref:e,className:(0,F.cn)("relative flex justify-between px-4 pt-4",{"pb-4":l},o),...f,children:d||(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"grid gap-1",children:[(0,n.jsx)(b.Typography,{variant:"h6",children:a}),i&&(0,n.jsx)(b.Typography,{className:"text-foreground-secondary",variant:"caption",children:i})]}),p]})})},W=(0,V.forwardRef)(z);0&&(module.exports={Card,CardContent,CardFooter,CardHeader}); |
{ | ||
"name": "@jamsr-ui/card", | ||
"version": "0.0.16", | ||
"version": "0.0.17", | ||
"description": "", | ||
@@ -24,5 +24,5 @@ "main": "./dist/index.mjs", | ||
"dependencies": { | ||
"@jamsr-ui/progress": "^0.0.16", | ||
"@jamsr-ui/utils": "^0.0.14", | ||
"@jamsr-ui/typography": "^0.0.16" | ||
"@jamsr-ui/progress": "^0.0.17", | ||
"@jamsr-ui/typography": "^0.0.17", | ||
"@jamsr-ui/utils": "^0.0.15" | ||
}, | ||
@@ -29,0 +29,0 @@ "module": "dist/index.mjs", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
22159
+ Added@jamsr-ui/progress@0.0.17(transitive)
+ Added@jamsr-ui/typography@0.0.17(transitive)
+ Added@jamsr-ui/utils@0.0.15(transitive)
- Removed@jamsr-ui/progress@0.0.16(transitive)
- Removed@jamsr-ui/typography@0.0.16(transitive)
- Removed@jamsr-ui/utils@0.0.14(transitive)
Updated@jamsr-ui/progress@^0.0.17
Updated@jamsr-ui/typography@^0.0.17
Updated@jamsr-ui/utils@^0.0.15