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

32 lines 1.06 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.applyPositionToWrapper = exports.applyZIndexToWrapper = void 0; const applyZIndexToWrapper = ({ tableConfig, zIndex, }) => { const overridenTableConfig = { ...tableConfig, ctv: { ...tableConfig?.ctv, wrapper: { ...tableConfig?.ctv?.wrapper, z_index: tableConfig?.ctv?.wrapper?.z_index ?? zIndex, }, }, }; return overridenTableConfig; }; exports.applyZIndexToWrapper = applyZIndexToWrapper; const applyPositionToWrapper = ({ tableConfig, position, }) => { const overridenTableConfig = { ...tableConfig, ctv: { ...tableConfig?.ctv, wrapper: { ...tableConfig?.ctv?.wrapper, position: tableConfig?.ctv?.wrapper?.position ?? position, }, }, }; return overridenTableConfig; }; exports.applyPositionToWrapper = applyPositionToWrapper; //# sourceMappingURL=tableConfig.js.map