@progress/kendo-ui
Version:
This package is part of the [Kendo UI for jQuery](http://www.telerik.com/kendo-ui) suite.
24 lines (17 loc) • 887 B
JavaScript
;
const { applyTabstripItemReplacementCss } = require('../_shared.cjs');
module.exports = function transformer(fileInfo) {
if (!/\.(css|scss|sass|less)$/i.test(fileInfo.path)) {
return undefined;
}
const updated = applyTabstripItemReplacementCss(fileInfo.source);
return updated !== fileInfo.source ? updated : undefined;
};
module.exports.aiInstructions = `The TabStrip item class was renamed from .k-item to .k-tabstrip-item within a .k-tabstrip context in Kendo UI 2026 Q1.
Before:
.k-tabstrip .k-item { color: red; }
.k-tabstrip > .k-item.k-active { font-weight: bold; }
After:
.k-tabstrip .k-tabstrip-item { color: red; }
.k-tabstrip > .k-tabstrip-item.k-active { font-weight: bold; }
The codemod only renames .k-item selectors that appear within a .k-tabstrip context. Standalone .k-item selectors used by other components are not affected.`;