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 u}from"./chunk-RKZN6FZX.js";import{a as d}from"./chunk-XEYPM4AT.js";import{a as o}from"./chunk-UO7KBUEN.js";import{a as i}from"./chunk-HTOKQYVM.js";import{b as e}from"./chunk-CMFNILWJ.js";import{a as r,b as l,c as p}from"./chunk-XYM7TA65.js";import{useContext as M}from"react";import x from"lodash/fp/omit";import{jsx as m,jsxs as v}from"react/jsx-runtime";function N({children:_,condensed:c=!1,disabled:b=!1,label:f,rainbow:g=!0,...s}){let{condensed:$,disabled:y,rainbow:C}=M(d),t=b||y,n=c||$,a=g&&C;return v("div",{className:l(`${e}-${o}__item-group`,"px-2",t?`${e}-${o}__item-group--disabled`:"",s.className),...x(["className"],s),children:[m(i,{className:r(`${e}-${o}__item-group__label`,"block",n?"py-1":"py-2",t?`${e}-${o}__item-group__label--disabled text-disabled`:"cursor-default text-placeholder"),element:"label",children:f}),m(i,{className:r(`${e}-${o}__item-group__items`,t?`${e}-${o}__item-group__items--disabled`:a?p:""),element:"div",children:m(u.Provider,{value:{condensed:n,disabled:t,rainbow:a},children:_})})]})}export{N as a}; //# sourceMappingURL=chunk-JYCBOLMZ.js.map