@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
17 lines • 1.17 kB
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import React from 'react';
// custom hooks
import { useStyles } from '../../hooks/useStyles/useStyles';
import { ErrorBoundary } from '../../provider/errorBoundary/errorBoundary';
import { FallbackComponent } from '../../provider/errorBoundary/fallbackComponent';
import { ValidationStatusStandAlone } from './validationStatusStandAlone';
const VALIDATION_STATUS_STYLES = 'VALIDATION_STATUS_STYLES';
const ValidationStatusComponent = React.forwardRef(({ variant, ctv, ...props }, ref) => {
const styles = useStyles(VALIDATION_STATUS_STYLES, variant, ctv);
return _jsx(ValidationStatusStandAlone, { ...props, ref: ref, styles: styles });
});
ValidationStatusComponent.displayName = 'ValidationStatusComponent';
const ValidationStatusBoundary = (props, ref) => (_jsx(ErrorBoundary, { fallBackComponent: _jsx(FallbackComponent, { children: _jsx(ValidationStatusStandAlone, { ...props, ref: ref }) }), children: _jsx(ValidationStatusComponent, { ...props, ref: ref }) }));
const ValidationStatus = React.forwardRef(ValidationStatusBoundary);
export { ValidationStatus };
//# sourceMappingURL=validationStatus.js.map