import{_ as _extends}from"./_rollupPluginBabelHelpers-B5fk9IVe.js";import React__default from"react";import PropTypes from"prop-types";const spinnerBaseStyles=`
  jn-animate-spin 
  jn-mr-3 
  jn-h-5 
  jn-w-5 
`,primary=`
  jn-text-theme-accent
`,danger=`
  jn-text-theme-danger 
`,success=`
  jn-text-theme-success
`,warning=`
  jn-text-theme-warning  
`,defaultColor=`
  jn-text-theme-on-default
`,Spinner=a=>{let{variant:c="default",size:d=null,className:e="",color:f="",...b}=a;const g=a=>"small"===a?"1rem":"large"===a?"3rem":a,h=d?{width:g(d),height:g(d)}:{};return React__default.createElement("svg",_extends({className:`juno-spinner ${spinnerBaseStyles} ${f?f:(()=>"primary"===c?primary:"danger"===c?danger:"success"===c?success:"warning"===c?warning:defaultColor)()} ${e}`,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",style:h,role:"progressbar"},b),React__default.createElement("circle",{className:"jn-opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),React__default.createElement("path",{className:"jn-opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"}))};Spinner.propTypes={variant:PropTypes.oneOf(["primary","danger","default","success","warning"]),size:PropTypes.string,className:PropTypes.string,color:PropTypes.string};export{Spinner as S};