@snowball-tech/fractal
Version:
Fractal's (Snowball's design system) React component library based on RadixUI and PandaCSS
3 lines • 1.08 kB
JavaScript
'use client';
import{a as o,c as d,d as f,f as y}from"./chunk-A5DW74RS.js";import{a as n}from"./chunk-HTOKQYVM.js";import{b as e,c as l}from"./chunk-CMFNILWJ.js";import{b as m}from"./chunk-XYM7TA65.js";import c from"lodash/fp/isEmpty";import h from"lodash/fp/omit";import{jsx as E}from"react/jsx-runtime";var $=({children:i,color:t=y,disabled:g=!1,fullWidth:T=!1,label:r,size:a=d,...s})=>{let p=!!i;!p&&c(r)&&console.warn("You must provide a `label` or `children` to the `DropdownItem` component");let u={m:"px-2 py-1 leading-[20px]",s:"px-1 py-half"};return E(n,{"aria-label":r,className:m(`${e}-${o}`,`${e}-${o}--${t}`,`${e}-${o}--${a}`,"inline-flex w-fit items-center justify-center rounded-full border-1",u[a],t==="white"?"border-grey-70":"border-transparent",T?`${e}-${o}--full-width w-full`:"",g?`${e}-${o}--disabled cursor-not-allowed bg-disabled-light text-disabled`:`${l[t]} cursor-default`,s.className),element:"div",title:r,variant:f[a],...h(["className"],s),children:p?i:r})};$.displayName="Tag";var A=$;export{$ as a,A as b};
//# sourceMappingURL=chunk-VMGNDQDH.js.map