import*as e from"react";import{omitThemingProps as t}from"../../../system/dist/esm/system.utils.js";import{forwardRef as r}from"../../../system/dist/esm/forward-ref.js";import{useMultiStyleConfig as s}from"../../../system/dist/esm/use-style-config.js";import{getValidChildren as i}from"../../../react-utils/dist/esm/children.js";import{StylesProvider as a,useStyles as n}from"../../../system/dist/esm/providers.js";import{chakra as m}from"../../../system/dist/esm/system.js";import{__DEV__ as o}from"../../../utils/dist/esm/assertion.js";import{Icon as l}from"../../../icon/dist/esm/icon.js";function y(){return(y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s])}return e}).apply(this,arguments)}function c(e,t){if(null==e)return{};var r,s,i={},a=Object.keys(e);for(s=0;s<a.length;s++)r=a[s],t.indexOf(r)>=0||(i[r]=e[r]);return i}var p=r(((r,n)=>{var o=s("List",r),l=t(r),{children:p,styleType:f="none",stylePosition:d,spacing:u}=l,v=c(l,["children","styleType","stylePosition","spacing"]),j=i(p),g=u?{"& > *:not(style) ~ *:not(style)":{mt:u}}:{};return e.createElement(a,{value:o},e.createElement(m.ul,y({ref:n,listStyleType:f,listStylePosition:d,role:"list",__css:y({},o.container,g)},v),j))}));o&&(p.displayName="List");var f=r(((t,r)=>{var s=c(t,["as"]);return e.createElement(p,y({ref:r,as:"ol",styleType:"decimal",marginStart:"1em"},s))}));o&&(f.displayName="OrderedList");var d=r(((t,r)=>{var s=c(t,["as"]);return e.createElement(p,y({ref:r,as:"ul",styleType:"initial",marginStart:"1em"},s))}));o&&(d.displayName="UnorderedList");var u=r(((t,r)=>{var s=n();return e.createElement(m.li,y({ref:r},t,{__css:s.item}))}));o&&(u.displayName="ListItem");var v=r(((t,r)=>{var s=n();return e.createElement(l,y({ref:r,role:"presentation"},t,{__css:s.icon}))}));o&&(v.displayName="ListIcon");export{p as List,v as ListIcon,u as ListItem,f as OrderedList,d as UnorderedList};
//# sourceMappingURL=list.js.map
