import{_ as _extends}from"./_rollupPluginBabelHelpers-B5fk9IVe.js";import React__default from"react";import PropTypes from"prop-types";import{S as Switch}from"./Switch.component-D3qUVHCF.js";import{F as FormRow}from"./FormRow.component-5oxVn9c0.js";import{w as withDeprecationWarning}from"./withDeprecationWarning.component-fIFVSC34.js";const SwitchRow=a=>{let{name:c=null,label:d=null,id:e=null,on:f=!1,disabled:g=null,helptext:h=null,required:i=null,invalid:j=!1,errortext:k="",valid:l=!1,successtext:m="",className:n="",onChange:o=void 0,onClick:p=void 0,...b}=a;return React__default.createElement(FormRow,null,React__default.createElement(Switch,_extends({name:c,label:d,onChange:o,onClick:p,id:e,on:f,disabled:g,invalid:j,required:i,valid:l,errortext:k,helptext:h,successtext:m,className:n},b)))};SwitchRow.propTypes={name:PropTypes.string,label:PropTypes.string,id:PropTypes.string,on:PropTypes.bool,disabled:PropTypes.bool,helptext:PropTypes.node,required:PropTypes.bool,invalid:PropTypes.bool,errortext:PropTypes.string,valid:PropTypes.bool,successtext:PropTypes.string,className:PropTypes.string,onChange:PropTypes.func,onClick:PropTypes.func};var SwitchRow_component=withDeprecationWarning(SwitchRow,"SwitchRow is deprecated and will be removed in future versions. To be future-proof, use Switch instead.");export{SwitchRow_component as S};