UNPKG

@kubit-ui-web/react-components

Version:

Kubit React Components is a customizable, accessible library of React web components, designed to enhance your application's user experience

16 lines 1.19 kB
import { jsx as _jsx } from "react/jsx-runtime"; import React from 'react'; // styles import { useStyles } from '../../hooks/useStyles/useStyles'; import { ErrorBoundary } from '../../provider/errorBoundary/errorBoundary'; import { FallbackComponent } from '../../provider/errorBoundary/fallbackComponent'; import { RadioButtonGroupStandAlone } from './radioButtonGroupStandAlone'; const STYLES_NAME = 'RADIO_BUTTON_GROUP_STYLES'; const RadioButtonGroupControlledComponent = React.forwardRef(({ variant, ctv, ...props }, ref) => { const styles = useStyles(STYLES_NAME, variant, ctv); return _jsx(RadioButtonGroupStandAlone, { ref: ref, styles: styles, variant: variant, ...props }); }); RadioButtonGroupControlledComponent.displayName = 'RadioButtonGroupControlledComponent'; const RadioButtonGroupBoundary = (props, ref) => (_jsx(ErrorBoundary, { fallBackComponent: _jsx(FallbackComponent, { children: _jsx(RadioButtonGroupStandAlone, { ...props, ref: ref }) }), children: _jsx(RadioButtonGroupControlledComponent, { ...props, ref: ref }) })); export const RadioButtonGroupControlled = React.forwardRef(RadioButtonGroupBoundary); //# sourceMappingURL=radioButtonGroupControlled.js.map