@snowball-tech/fractal
Version:
Fractal's (Snowball's design system) React component library based on RadixUI and PandaCSS
3 lines • 1.24 kB
JavaScript
'use client';
import{a as _}from"./chunk-V46VJOI6.js";import{a as u}from"./chunk-IU2UNORC.js";import{a as e}from"./chunk-Q4ACHLJ4.js";import{a as s}from"./chunk-HTOKQYVM.js";import{b as o}from"./chunk-CMFNILWJ.js";import{a as d,b as m,c as l}from"./chunk-XYM7TA65.js";import*as t from"@radix-ui/react-dropdown-menu";import{useContext as y}from"react";import C from"lodash/fp/omit";import{jsx as p,jsxs as G}from"react/jsx-runtime";function R({children:w,condensed:b=!1,disabled:c=!1,label:f,rainbow:D=!0,...i}){let{condensed:$,disabled:g,rainbow:x}=y(u),r=c||g,n=b||$,a=D&&x;return G(t.Group,{className:m(`${o}-${e}__item-group`,n?`${o}-${e}__item-group--condensed`:"","px-2",r?`${o}-${e}__item-group--disabled`:"",i.className),...C(["className"],i),children:[p(t.Label,{asChild:!0,className:d(`${o}-${e}__item-group__label`,"block",n?"py-1":"py-2",r?`${o}-${e}__item-group__label--disabled text-disabled`:"cursor-default text-placeholder"),children:p(s,{element:"label",children:f})}),p(s,{className:d(`${o}-${e}__item-group__items`,r?`${o}-${e}__item-group__items--disabled`:a?l:""),element:"div",children:p(_.Provider,{value:{condensed:n,disabled:r,rainbow:a},children:w})})]})}export{R as a};
//# sourceMappingURL=chunk-NRWVE43V.js.map