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