@snowball-tech/fractal
Version:
Fractal's (Snowball's design system) React component library based on RadixUI and PandaCSS
3 lines • 968 B
JavaScript
'use client';
import{c as m}from"./chunk-LYTTDLE2.js";import{a as s}from"./chunk-AOLTZ2WJ.js";import{b as n}from"./chunk-CMFNILWJ.js";import{b as i}from"./chunk-XYM7TA65.js";import{a as u}from"./chunk-EHXFCPU4.js";import*as f from"@radix-ui/react-dropdown-menu";import E from"lodash/fp/isEmpty";import a from"lodash/fp/isString";import A from"lodash/fp/omit";import{jsx as c}from"react/jsx-runtime";var l=({children:t,label:o,labelElement:y,...p})=>{let e=!!t;!e&&!o&&console.warn("You must provide a `label` or `children` to the `AutocompleteEmpty` component");let r=a(o)?o:E(o)?m(t):m(o);return c(f.Item,{"aria-label":r,className:i(`${n}-${u}__empty`,"cursor-default rounded-sm p-2 outline-none",p.className),title:r,onSelect:d=>d.preventDefault(),...A(["className","disabled","onSelect"],p),children:c(s,{element:y||a(e?t:o)?void 0:"div",children:e?t:o})})};l.displayName="AutocompleteEmpty";var h=l;export{l as a,h as b};
//# sourceMappingURL=chunk-PGK4ALBO.js.map