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.18 kB
import { jsx as _jsx } from "react/jsx-runtime"; import React from 'react'; import { useStyles } from '../../hooks/useStyles/useStyles'; import { ErrorBoundary } from '../../provider/errorBoundary/errorBoundary'; import { FallbackComponent } from '../../provider/errorBoundary/fallbackComponent'; import { StepperProgressStandAlone } from './stepperProgressStandAlone'; const STEPPER_PROGRESS_STYLES = 'STEPPER_PROGRESS_STYLES'; const StepperProgressComponent = React.forwardRef(({ initialStep = 0, ctv, ...props }, ref) => { const styles = useStyles(STEPPER_PROGRESS_STYLES, props.variant, ctv); return (_jsx(StepperProgressStandAlone, { ref: ref, initialStep: initialStep, styles: styles, ...props })); }); StepperProgressComponent.displayName = 'StepperProgressComponent'; const StepperProgressBoundary = (props, ref) => (_jsx(ErrorBoundary, { fallBackComponent: _jsx(FallbackComponent, { children: _jsx(StepperProgressStandAlone, { ...props, ref: ref }) }), children: _jsx(StepperProgressComponent, { ...props, ref: ref }) })); const StepperProgress = React.forwardRef(StepperProgressBoundary); export { StepperProgress }; //# sourceMappingURL=stepperProgress.js.map