UNPKG

@snowball-tech/fractal

Version:

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

3 lines 1.07 kB
'use client'; import{a as n}from"./chunk-FXBX6IQS.js";import{a as o}from"./chunk-UO7KBUEN.js";import{a as d}from"./chunk-7S7VKVT2.js";import{a as m}from"./chunk-UC7BXZ7T.js";import{b as e}from"./chunk-CMFNILWJ.js";import{a as r,b as l,c as p}from"./chunk-KHPUS472.js";import{useContext as $}from"react";import y from"lodash/fp/omit";import{jsx as s,jsxs as M}from"react/jsx-runtime";function C({children:u,condensed:_=!1,disabled:c=!1,label:f,...i}){let{condensed:b,disabled:g}=$(n),t=c||g,a=_||b;return M("div",{className:l(`${e}-${o}__item-group`,"px-2",t?`${e}-${o}__item-group--disabled`:"",i.className),...y(["className"],i),children:[s(m,{className:r(`${e}-${o}__item-group__label`,"block",a?"py-1":"py-2",t?`${e}-${o}__item-group__label--disabled text-disabled`:"cursor-default text-placeholder"),element:"label",children:f}),s(m,{className:r(`${e}-${o}__item-group__items`,t?`${e}-${o}__item-group__items--disabled`:p),element:"div",children:s(d.Provider,{value:{condensed:a,disabled:t},children:u})})]})}export{C as a}; //# sourceMappingURL=chunk-JCZXBMHM.js.map