@jamsr-ui/progress
Advanced tools
Comparing version 0.0.19 to 0.0.20
"use client" | ||
"use strict";var n=Object.defineProperty;var P=Object.getOwnPropertyDescriptor;var h=Object.getOwnPropertyNames;var v=Object.prototype.hasOwnProperty;var w=(a,r)=>{for(var s in r)n(a,s,{get:r[s],enumerable:!0})},y=(a,r,s,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let e of h(r))!v.call(a,e)&&e!==s&&n(a,e,{get:()=>r[e],enumerable:!(i=P(r,e))||i.enumerable});return a};var x=a=>y(n({},"__esModule",{value:!0}),a);var N={};w(N,{CircularProgress:()=>l,LinearProgress:()=>b});module.exports=x(N);var o=require("react/jsx-runtime"),l=()=>(0,o.jsx)("div",{"aria-label":"Loading...",role:"status","data-component":"circular-progress",children:(0,o.jsxs)("svg",{className:"size-6 animate-spin fill-current",viewBox:"3 3 18 18",children:[(0,o.jsx)("path",{className:"opacity-20",d:"M12 5C8.13401 5 5 8.13401 5 12C5 15.866 8.13401 19 12 19C15.866 19 19 15.866 19 12C19 8.13401 15.866 5 12 5ZM3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12Z"}),(0,o.jsx)("path",{d:"M16.9497 7.05015C14.2161 4.31648 9.78392 4.31648 7.05025 7.05015C6.65973 7.44067 6.02656 7.44067 5.63604 7.05015C5.24551 6.65962 5.24551 6.02646 5.63604 5.63593C9.15076 2.12121 14.8492 2.12121 18.364 5.63593C18.7545 6.02646 18.7545 6.65962 18.364 7.05015C17.9734 7.44067 17.3403 7.44067 16.9497 7.05015Z"})]})});var g=require("framer-motion"),p=require("@jamsr-ui/utils");var c=require("@jamsr-ui/utils"),d=(0,c.tv)({slots:{wrapper:"w-full overflow-hidden rounded-full bg-gray-200",bar:"rounded-full"},variants:{color:{primary:{bar:"bg-primary"},error:{bar:"bg-error"},success:{bar:"bg-success"},secondary:{bar:"bg-secondary"},warning:{bar:"bg-warning"}},size:{sm:{wrapper:"h-[3px]",bar:"h-[3px]"},md:{wrapper:"h-1.5",bar:"h-1.5 "},lg:{wrapper:"h-2",bar:"h-2 "}}},defaultVariants:{size:"sm",color:"primary"}});var t=require("react/jsx-runtime"),b=a=>{let{progress:r,size:s,color:i,isIntermediate:e,className:C,...u}=a,{bar:m,wrapper:f}=d({size:s,color:i});return(0,t.jsx)("div",{"data-component":"linear-progress",className:(0,p.cn)(f({}),C),...u,children:e?(0,t.jsx)("div",{className:(0,p.cn)(m(),"animate-progress")}):(0,t.jsx)(g.m.div,{className:m(),initial:{width:0},animate:{width:`${r}%`}})})};0&&(module.exports={CircularProgress,LinearProgress}); | ||
"use strict";"use client";var n=Object.defineProperty;var P=Object.getOwnPropertyDescriptor;var h=Object.getOwnPropertyNames;var v=Object.prototype.hasOwnProperty;var w=(a,r)=>{for(var s in r)n(a,s,{get:r[s],enumerable:!0})},y=(a,r,s,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let e of h(r))!v.call(a,e)&&e!==s&&n(a,e,{get:()=>r[e],enumerable:!(i=P(r,e))||i.enumerable});return a};var x=a=>y(n({},"__esModule",{value:!0}),a);var N={};w(N,{CircularProgress:()=>m,LinearProgress:()=>b});module.exports=x(N);var o=require("react/jsx-runtime"),m=()=>(0,o.jsx)("div",{"aria-label":"Loading...",role:"status","data-component":"circular-progress",children:(0,o.jsxs)("svg",{className:"size-6 animate-spin fill-current",viewBox:"3 3 18 18",children:[(0,o.jsx)("path",{className:"opacity-20",d:"M12 5C8.13401 5 5 8.13401 5 12C5 15.866 8.13401 19 12 19C15.866 19 19 15.866 19 12C19 8.13401 15.866 5 12 5ZM3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12Z"}),(0,o.jsx)("path",{d:"M16.9497 7.05015C14.2161 4.31648 9.78392 4.31648 7.05025 7.05015C6.65973 7.44067 6.02656 7.44067 5.63604 7.05015C5.24551 6.65962 5.24551 6.02646 5.63604 5.63593C9.15076 2.12121 14.8492 2.12121 18.364 5.63593C18.7545 6.02646 18.7545 6.65962 18.364 7.05015C17.9734 7.44067 17.3403 7.44067 16.9497 7.05015Z"})]})});var g=require("framer-motion"),p=require("@jamsr-ui/utils");var c=require("@jamsr-ui/utils"),d=(0,c.tv)({slots:{wrapper:"w-full overflow-hidden rounded-full bg-gray-200",bar:"rounded-full"},variants:{color:{primary:{bar:"bg-primary"},error:{bar:"bg-error"},success:{bar:"bg-success"},secondary:{bar:"bg-secondary"},warning:{bar:"bg-warning"}},size:{sm:{wrapper:"h-[3px]",bar:"h-[3px]"},md:{wrapper:"h-1.5",bar:"h-1.5 "},lg:{wrapper:"h-2",bar:"h-2 "}}},defaultVariants:{size:"sm",color:"primary"}});var t=require("react/jsx-runtime"),b=a=>{let{progress:r,size:s,color:i,isIntermediate:e,className:u,...C}=a,{bar:l,wrapper:f}=d({size:s,color:i});return(0,t.jsx)("div",{"data-component":"linear-progress",className:(0,p.cn)(f({}),u),...C,children:e?(0,t.jsx)("div",{className:(0,p.cn)(l(),"animate-progress")}):(0,t.jsx)(g.m.div,{className:l(),initial:{width:0},animate:{width:`${r}%`}})})};0&&(module.exports={CircularProgress,LinearProgress}); |
{ | ||
"name": "@jamsr-ui/progress", | ||
"version": "0.0.19", | ||
"version": "0.0.20", | ||
"description": "", | ||
@@ -25,3 +25,3 @@ "main": "./dist/index.mjs", | ||
"dependencies": { | ||
"@jamsr-ui/utils": "^0.0.17" | ||
"@jamsr-ui/utils": "^0.0.18" | ||
}, | ||
@@ -28,0 +28,0 @@ "module": "dist/index.mjs", |
Sorry, the diff of this file is not supported yet
20010
+ Added@jamsr-ui/utils@0.0.18(transitive)
- Removed@jamsr-ui/utils@0.0.17(transitive)
Updated@jamsr-ui/utils@^0.0.18