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

25 lines 1.61 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 { LineSeparatorStandAlone } from './lineSeparatorStandAlone'; const LINE_SEPARATOR_STYLES = 'LINE_SEPARATOR_STYLES'; const LineSeparatorComponent = React.forwardRef(({ labelVariant, lineVariant, ctv, extraCt, ...props }, ref) => { const labelStyles = useStyles(LINE_SEPARATOR_STYLES, labelVariant, ctv); const lineStyles = useStyles(LINE_SEPARATOR_STYLES, lineVariant, extraCt); return (_jsx(LineSeparatorStandAlone, { ...props, ref: ref, labelStyles: labelStyles, lineStyles: lineStyles })); }); LineSeparatorComponent.displayName = 'LineSeparatorComponent'; const LineSeparatorBoundary = (props, ref) => (_jsx(ErrorBoundary, { fallBackComponent: _jsx(FallbackComponent, { children: _jsx(LineSeparatorStandAlone, { ...props, ref: ref }) }), children: _jsx(LineSeparatorComponent, { ...props, ref: ref }) })); const LineSeparator = React.forwardRef(LineSeparatorBoundary); /** * @deprecated This component has been deprecated and will be removed in the next MAJOR release. Consider using an alternative component. * * LineSeparator component is a wrapper component that adds a line separator between two components. * @param {React.PropsWithChildren<ILineSeparator<V, S>>} props * @returns {JSX.Element} * @constructor */ export { LineSeparator }; //# sourceMappingURL=lineSeparator.js.map