UNPKG

@progress/kendo-ui

Version:

This package is part of the [Kendo UI for jQuery](http://www.telerik.com/kendo-ui) suite.

30 lines (23 loc) 1.09 kB
'use strict'; const { applyStateClassRenames } = require('../_shared.cjs'); module.exports = function transformer(fileInfo) { if (!/\.(css|scss|sass|less)$/i.test(fileInfo.path)) { return undefined; } const updated = applyStateClassRenames(fileInfo.source); return updated !== fileInfo.source ? updated : undefined; }; module.exports.aiInstructions = `The k-state-* CSS classes were renamed to drop the "state" prefix in Kendo UI 2023 R1 to simplify the naming convention. Before: .k-state-hover { background: #f0f0f0; } .k-state-selected { color: #ff0000; } .k-state-disabled { opacity: 0.5; } .k-state-focused { outline: 1px solid; } .k-state-active { font-weight: bold; } After: .k-hover { background: #f0f0f0; } .k-selected { color: #ff0000; } .k-disabled { opacity: 0.5; } .k-focus { outline: 1px solid; } .k-active { font-weight: bold; } Also renames: k-state-alt→k-alt, k-state-loading→k-loading, k-state-invalid→k-invalid, k-state-checked→k-checked, k-state-expanded→k-expanded, k-state-collapsed→k-collapsed, k-state-empty→k-empty.`;