UNPKG

@snowball-tech/fractal

Version:

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

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