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.27 kB
import { jsx as _jsx } from "react/jsx-runtime"; import { useMediaDevice } from '../../hooks/useMediaDevice/useMediaDevice'; import { useStyles } from '../../hooks/useStyles/useStyles'; import { ErrorBoundary } from '../../provider/errorBoundary/errorBoundary'; import { FallbackComponent } from '../../provider/errorBoundary/fallbackComponent'; import { OperativeLayoutStandAlone } from './operativeLayoutStandAlone'; const OPERATIVE_LAYOUT_STYLES = 'OPERATIVE_LAYOUT_STYLES'; const OperativeLayoutComponent = ({ variant, maxWidthParentContainer, ctv, ...props }) => { const device = useMediaDevice(); const styles = useStyles(OPERATIVE_LAYOUT_STYLES, variant, ctv); const maxWidthToApply = maxWidthParentContainer || styles.maxWidthParentContainer; return (_jsx(OperativeLayoutStandAlone, { ...props, device: device, maxWidthToApply: maxWidthToApply, styles: styles })); }; /** * @deprecated This component has been deprecated and will be removed in the next MAJOR release. */ export const OperativeLayout = (props) => (_jsx(ErrorBoundary, { fallBackComponent: _jsx(FallbackComponent, { children: _jsx(OperativeLayoutStandAlone, { ...props }) }), children: _jsx(OperativeLayoutComponent, { ...props }) })); //# sourceMappingURL=operativeLayout.js.map