@undp/design-system-react
Version:
React based design system for UNDP
2 lines • 920 B
JavaScript
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./utils-Dd9-5CFr.cjs"),t=require("./dist-BZMXZCSu.cjs");let n=require("react/jsx-runtime");var r=t.t(`animate-spin border-[5px] rounded-full inline-block box-border`,{variants:{color:{primary:`border-primary !border-b-stroke`,secondary:`border-secondary !border-b-stroke`,tertiary:`border-tertiary !border-b-stroke`,quaternary:`border-stroke !border-b-quaternary`,foreground:`border-foreground !border-b-stroke`},size:{sm:`border-[2px] h-6 w-6`,base:`border-[4px] h-8 w-8`,lg:`border-[6px] h-12 w-12`}},defaultVariants:{size:`base`,color:`primary`}});function i({size:t,color:i,show:a=!0,children:o,className:s}){return(0,n.jsxs)(`span`,{className:e.t(`flex-col items-center justify-center`,a?`flex`:`hidden`),children:[(0,n.jsx)(`div`,{className:e.t(r({color:i,size:t}),s)}),o]})}exports.Spinner=i;
//# sourceMappingURL=Spinner.cjs.map