import*as e from"react";import{omitThemingProps as t}from"../../../system/dist/esm/system.utils.js";import{forwardRef as s}from"../../../system/dist/esm/forward-ref.js";import{useStyleConfig as r}from"../../../system/dist/esm/use-style-config.js";import{chakra as i}from"../../../system/dist/esm/system.js";import{__DEV__ as n}from"../../../utils/dist/esm/assertion.js";import{Icon as o}from"../../../icon/dist/esm/icon.js";function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e}).apply(this,arguments)}var l=t=>e.createElement(o,a({focusable:"false","aria-hidden":!0},t),e.createElement("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})),m=s(((s,n)=>{var o=r("CloseButton",s),m=t(s),{children:f,isDisabled:c,__css:d}=m,u=function(e,t){if(null==e)return{};var s,r,i={},n=Object.keys(e);for(r=0;r<n.length;r++)s=n[r],t.indexOf(s)>=0||(i[s]=e[s]);return i}(m,["children","isDisabled","__css"]);return e.createElement(i.button,a({type:"button","aria-label":"Close",ref:n,disabled:c,__css:a({},{outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},o,d)},u),f||e.createElement(l,{width:"1em",height:"1em"}))}));n&&(m.displayName="CloseButton");export{m as CloseButton};
//# sourceMappingURL=close-button.js.map
