UNPKG

@useloops/design-system

Version:

The official React based Loops design system

2 lines (1 loc) 460 B
import{jsxs as e,jsx as l}from"react/jsx-runtime";import{forwardRef as t}from"react";import r from"./AutocompleteSelectAll.js";const n=t(({children:t,handleSelectAll:n,showSelectAll:i,value:s=[],selections:c,sizing:o,...a},h)=>{const A=Array.isArray(s)&&s.length===c.length,m=Array.isArray(s)&&s.length>0&&s.length<c.length;return e("ul",{ref:h,...a,children:[i&&l(r,{handleSelectAll:n,isIndeterminate:m,isAllSelected:A,sizing:o}),t]})});export{n as default};