@snowball-tech/fractal
Version:
Fractal's (Snowball's design system) React component library based on RadixUI and PandaCSS
3 lines • 2.45 kB
JavaScript
'use client';
import{a as t,c as s,d as a}from"./chunk-2OEALJ4L.js";import{b as f}from"./chunk-CMFNILWJ.js";import{b as n}from"./chunk-XYM7TA65.js";import p from"lodash/fp/omit";import{jsx as e,jsxs as o}from"react/jsx-runtime";var d=({label:i,size:m=s,...r})=>{let l={xxs:"h-1 max-h-1 min-h-1 w-1 max-w-1 min-w-1",xs:"h-3 max-h-3 min-h-3 w-3 max-w-3 min-w-3",s:"h-4 max-h-4 min-h-4 w-4 max-w-4 min-w-4",m:"h-6 max-h-6 min-h-6 w-6 max-w-6 min-w-6",l:"h-12 max-h-12 min-h-12 w-12 max-w-12 min-w-12",xl:"h-20 max-h-20 min-h-20 w-20 max-w-20 min-w-20"},c=Number.parseFloat(a)/4;return e("svg",{"aria-label":i,className:n(`${f}-${t}`,`${f}-${t}--${m}`,l[m],r.className),display:"block",preserveAspectRatio:"xMidYMid",style:{background:"0 0",margin:"auto"},title:i,viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg",...p(["className"],r),children:e("g",{transform:"translate(50 50)",children:o("g",{children:[e("animateTransform",{attributeName:"transform",calcMode:"discrete",dur:a,keyTimes:"0;0.25;0.5;0.75;1",repeatCount:"indefinite",type:"rotate",values:"0;90;180;270;360"}),e("path",{d:"M-40 0a40 40 0 1 0 80 0",fill:"#ffc6e7",children:e("animate",{attributeName:"fill",calcMode:"discrete",dur:a,keyTimes:"0;0.24;0.49;0.74;0.99",repeatCount:"indefinite",values:"#ffc6e7;#fff29b;#adface;#d9beff;#ffc6e7"})}),e("path",{d:"M-40 0a40 40 0 0 1 80 0",fill:"#fff29b",children:e("animate",{attributeName:"fill",calcMode:"discrete",dur:a,keyTimes:"0;0.25;0.5;0.75;1",repeatCount:"indefinite",values:"#fff29b;#adface;#d9beff;#ffc6e7;#fff29b"})}),e("path",{d:"M-39 0h78",stroke:"#ff3eae",strokeWidth:"2",children:e("animate",{attributeName:"stroke",dur:a,keyTimes:"0;0.124;0.125;0.25;0.374;0.375;0.5;0.624;0.625;0.75;0.874;0.875;1",repeatCount:"indefinite",values:"#ffc6e7;#ff3eae;#ffe220;#fff29b;#ffe220;#35f387;#adface;#35f387;#8b38ff;#d9beff;#8b38ff;#ff3eae;#ffc6e7"})}),o("path",{d:"M-40 0a40 40 0 0 1 80 0Z",fill:"#ff3eae",children:[e("animate",{attributeName:"fill",dur:a,keyTimes:"0;0.124;0.125;0.25;0.374;0.375;0.5;0.624;0.625;0.75;0.874;0.875;1",repeatCount:"indefinite",values:"#ffc6e7;#ff3eae;#ffe220;#fff29b;#ffe220;#35f387;#adface;#35f387;#8b38ff;#d9beff;#8b38ff;#ff3eae;#ffc6e7"}),e("animateTransform",{attributeName:"transform",dur:`${c}s`,keyTimes:"0;0.5;0.999;1",repeatCount:"indefinite",type:"scale",values:"1 1;1 0;1 -1;1 1"})]})]})})})};d.displayName="Loader";var N=d;export{d as a,N as b};
//# sourceMappingURL=chunk-WQZCE7M5.js.map