@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
27 lines • 815 B
JavaScript
export const applyZIndexToWrapper = ({ tableConfig, zIndex, }) => {
const overridenTableConfig = {
...tableConfig,
ctv: {
...tableConfig?.ctv,
wrapper: {
...tableConfig?.ctv?.wrapper,
z_index: tableConfig?.ctv?.wrapper?.z_index ?? zIndex,
},
},
};
return overridenTableConfig;
};
export const applyPositionToWrapper = ({ tableConfig, position, }) => {
const overridenTableConfig = {
...tableConfig,
ctv: {
...tableConfig?.ctv,
wrapper: {
...tableConfig?.ctv?.wrapper,
position: tableConfig?.ctv?.wrapper?.position ?? position,
},
},
};
return overridenTableConfig;
};
//# sourceMappingURL=tableConfig.js.map