@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.28 kB
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import React from 'react';
import { STYLES_NAME } from '../../constants/stylesName/stylesName';
import { useStyles } from '../../hooks/useStyles/useStyles';
import { ErrorBoundary } from '../../provider/errorBoundary/errorBoundary';
import { FallbackComponent } from '../../provider/errorBoundary/fallbackComponent';
import { PageControlAutomateStandAlone } from './pageControlAutomateStandAlone';
const PageControlAutomateControlledComponent = React.forwardRef(({ variant, ctv, ...props }, ref) => {
const styles = useStyles(STYLES_NAME.PAGE_CONTROL_AUTOMATE, variant, ctv);
return _jsx(PageControlAutomateStandAlone, { ...props, ref: ref, styles: styles });
});
PageControlAutomateControlledComponent.displayName = 'PageControlAutomateControlledComponent';
const PageControlAutomateBoundary = (props, ref) => (_jsx(ErrorBoundary, { fallBackComponent: _jsx(FallbackComponent, { children: _jsx(PageControlAutomateStandAlone, { ...props, ref: ref }) }), children: _jsx(PageControlAutomateControlledComponent, { ...props, ref: ref }) }));
const PageControlAutomateControlled = React.forwardRef(PageControlAutomateBoundary);
export { PageControlAutomateControlled };
//# sourceMappingURL=pageControlAutomateControlled.js.map