@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.1 kB
JavaScript
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 { ListOptionsStandAlone } from './listOptionsStandAlone';
export const ListOptionsComponent = React.forwardRef(({ variant, ctv, ...props }, ref) => {
const styles = useStyles(STYLES_NAME.LIST_OPTIONS, variant, ctv);
return _jsx(ListOptionsStandAlone, { ...props, ref: ref, styles: styles });
});
ListOptionsComponent.displayName = 'ListOptionsComponent';
const ListOptionBoundary = (props, ref) => (_jsx(ErrorBoundary, { fallBackComponent: _jsx(FallbackComponent, { children: _jsx(ListOptionsStandAlone, { ...props, ref: ref }) }), children: _jsx(ListOptionsComponent, { ...props, ref: ref }) }));
const ListOptions = React.forwardRef(ListOptionBoundary);
export { ListOptions };
//# sourceMappingURL=listOptions.js.map