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