import{_ as _extends}from"./_rollupPluginBabelHelpers-B5fk9IVe.js";import React__default from"react";import PropTypes from"prop-types";const labelstyles=`
	jn-text-theme-high
	jn-text-base
	jn-transform 
	jn-origin-top-left 
	jn-transition-all 
	jn-duration-100 
	jn-ease-in-out
`,floatingStyles=`
	jn-absolute
`,minimizedStyles=`
	jn-scale-75
	-jn-translate-y-[0.4375rem]
`,requiredstyles=`
	jn-inline-block
	jn-w-1
	jn-h-1
	jn-rounded-full
	jn-align-top
	jn-ml-1
	jn-mt-2
	jn-bg-theme-required
`,disabledstyles=`
	jn-opacity-50
	jn-cursor-not-allowed
`,Label=React__default.forwardRef((a,b)=>{let{text:d="",htmlFor:e=void 0,required:f=!1,className:g="",disabled:h=!1,floating:i=!1,minimized:j=!1,...c}=a;return React__default.createElement("label",_extends({className:`
				juno-label 
				${labelstyles} 
				${i?"juno-label-floating "+floatingStyles:""}
				${j?"juno-label-minimized "+minimizedStyles:""}
				${h?"juno-label-disabled "+disabledstyles:""} 
				${g}
			`,htmlFor:e,ref:b},c),d,f?React__default.createElement("span",{className:`
					juno-required 
					${requiredstyles}
					`}):"")});Label.displayName="Label (JS)",Label.propTypes={text:PropTypes.string,htmlFor:PropTypes.string,required:PropTypes.bool,className:PropTypes.string,disabled:PropTypes.bool,floating:PropTypes.bool,minimized:PropTypes.bool};const baseStyles=`
  jn-text-xs
  jn-mt-1
`,variantStyles=a=>"success"===a?"jn-text-theme-success":"error"===a?"jn-text-theme-error":"jn-text-theme-light",FormHint=a=>{let{children:d=null,text:e="",variant:f="help",className:b,...c}=a;return React__default.createElement("div",_extends({className:`
        juno-form-hint
        juno-form-hint-${f}
        ${baseStyles}
        ${variantStyles(f)}
        ${b}
      `},c),d||e)};FormHint.displayName="FormHint Js",FormHint.propTypes={children:PropTypes.node,text:PropTypes.node,variant:PropTypes.oneOf(["help","error","success"]),className:PropTypes.string};export{FormHint as F,Label as L};