UNPKG

@snowball-tech/fractal

Version:

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

3 lines 833 B
'use client'; import{a as n}from"./chunk-HTOKQYVM.js";import{b as p}from"./chunk-CMFNILWJ.js";import{b as r}from"./chunk-XYM7TA65.js";import{a as l}from"./chunk-EHXFCPU4.js";import*as i from"@radix-ui/react-dropdown-menu";import c from"lodash/fp/isEmpty";import y from"lodash/fp/omit";import{jsx as a}from"react/jsx-runtime";var s=({children:t,label:o,...e})=>{let m=!!t;return!m&&c(o)&&console.warn("You must provide a `label` or `children` to the `AutocompleteEmpty` component"),a(i.Item,{"aria-label":o,className:r(`${p}-${l}__empty`,"cursor-default rounded-sm p-2 outline-none",e.className),title:o,onSelect:u=>u.preventDefault(),...y(["className","disabled","onSelect"],e),children:a(n,{element:"div",children:m?t:o})})};s.displayName="AutocompleteEmpty";var R=s;export{s as a,R as b}; //# sourceMappingURL=chunk-NHN4KYCH.js.map