UNPKG

@snowball-tech/fractal

Version:

Fractal's (Snowball's design system) React component library based on RadixUI and PandaCSS

3 lines 1.22 kB
'use client'; import{a as t,c as y,d as g,f as x}from"./chunk-A5DW74RS.js";import{c as p}from"./chunk-LYTTDLE2.js";import{a as f}from"./chunk-AOLTZ2WJ.js";import{b as r,c as l}from"./chunk-CMFNILWJ.js";import{b as d}from"./chunk-XYM7TA65.js";import c from"lodash/fp/isEmpty";import S from"lodash/fp/isString";import E from"lodash/fp/omit";import{jsx as L}from"react/jsx-runtime";var T=({children:e,color:a=x,disabled:$=!1,fullWidth:h=!1,label:o,size:i=y,...s})=>{let m=!!e;!m&&!o&&console.warn("You must provide a `label` or `children` to the `DropdownItem` component");let n=S(o)?o:c(o)?p(e):p(o),u={m:"px-2 py-1 leading-[20px] max-h-[38px]",s:"px-1 py-half max-h-[28px] leading-[18px]"};return L(f,{"aria-label":n,className:d(`${r}-${t}`,`${r}-${t}--${a}`,`${r}-${t}--${i}`,"inline-flex w-fit items-center justify-center rounded-full border-1",u[i],a==="white"?"border-grey-70":"border-transparent",h?`${r}-${t}--full-width w-full`:"",$?`${r}-${t}--disabled cursor-not-allowed bg-disabled-light text-disabled`:`${l[a]} cursor-default`,s.className),element:"div",title:n,variant:g[i],...E(["className"],s),children:m?e:o})};T.displayName="Tag";var v=T;export{T as a,v as b}; //# sourceMappingURL=chunk-BTOEGSJ2.js.map