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

18 lines 1.32 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 { StepperNumberStandAlone } from './stepperNumberStandAlone'; import { StepperNumberOrientationType } from './types/orientation'; const STEPPER_NUMBER_STYLES = 'STEPPER_NUMBER_STYLES'; const StepperNumberComponent = React.forwardRef(({ variant, orientation = StepperNumberOrientationType.HORIZONTAL, ctv, ...props }, ref) => { const stylesOrientation = useStyles(STEPPER_NUMBER_STYLES, variant, ctv); const styles = stylesOrientation?.[orientation]; return (_jsx(StepperNumberStandAlone, { ...props, ref: ref, orientation: orientation, styles: styles })); }); StepperNumberComponent.displayName = 'StepperNumberComponent'; const StepperNumberBoundary = (props, ref) => (_jsx(ErrorBoundary, { fallBackComponent: _jsx(FallbackComponent, { children: _jsx(StepperNumberStandAlone, { ...props, ref: ref }) }), children: _jsx(StepperNumberComponent, { ...props, ref: ref }) })); const StepperNumber = React.forwardRef(StepperNumberBoundary); export { StepperNumber }; //# sourceMappingURL=stepperNumber.js.map