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

19 lines 1.22 kB
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 { LoadingStateStandAlone } from './loadingStateStandAlone'; const LoadingStateComponent = React.forwardRef(({ variant, ctv, ...props }, ref) => { const styles = useStyles(STYLES_NAME.LOADING_STATE, variant, ctv); return _jsx(LoadingStateStandAlone, { ref: ref, styles: styles, ...props }); }); LoadingStateComponent.displayName = 'LoadingStateComponent'; const LoadinfStateBoundary = (props, ref) => (_jsx(ErrorBoundary, { fallBackComponent: _jsx(FallbackComponent, { children: _jsx(LoadingStateStandAlone, { ...props, ref: ref }) }), children: _jsx(LoadingStateComponent, { ...props, ref: ref }) })); /** * @deprecated This component has been deprecated and will be removed in the next MAJOR release. */ const LoadingState = React.forwardRef(LoadinfStateBoundary); export { LoadingState }; //# sourceMappingURL=loadingState.js.map