@snowball-tech/fractal
Version:
Fractal's (Snowball's design system) React component library based on RadixUI and PandaCSS
3 lines • 973 B
JavaScript
'use client';
import{a as n}from"./chunk-JVVBSAPQ.js";import{a as c}from"./chunk-HTOKQYVM.js";import{b as p}from"./chunk-CMFNILWJ.js";import{b as a}from"./chunk-XYM7TA65.js";import*as e from"@radix-ui/react-select";import S from"lodash/fp/isEmpty";import f from"lodash/fp/omit";import{jsx as o,jsxs as d}from"react/jsx-runtime";var i=({children:m,label:t,value:s="empty-value",...r})=>{let l=!!m;return!l&&S(t)&&console.warn("You must provide a `label` or `children` to the `SelectEmpty` component"),d(e.Item,{"aria-label":t,className:a(`${p}-${n}__empty`,"pointer-events-none flex cursor-default items-center gap-1 rounded-sm p-2 outline-none",r.className),title:t,value:s||"empty-value",onSelect:y=>y.preventDefault(),...f(["className","disabled","onSelect"],r),children:[o(e.ItemText,{asChild:!0,children:o(c,{element:"div",children:l?m:t})}),o(e.ItemIndicator,{})]})};i.displayName="SelectEmpty";var h=i;export{i as a,h as b};
//# sourceMappingURL=chunk-BBTSMODL.js.map