2 const deprecatedClasses
= [
4 pattern
: /\b(on|no|auto)-(tiny-mobile|mobile|tablet|desktop)(-)?\b/,
6 `"${match}" is deprecated. Please migrate to the new responsive utilities https://design-system.protontech.ch/?path=/docs/css-utilities-responsive--responsive`,
15 'The old responsive system classes are deprecated, please use the new mobile-first responsive system.',
16 url
: 'https://design-system.protontech.ch/?path=/docs/css-utilities-responsive--responsive',
19 create
: (context
) => {
22 const { value
} = node
;
23 if (!value
|| !value
.split
) {
27 const classes
= new Set(value
.split(' '));
28 classes
.forEach((className
) => {
29 deprecatedClasses
.forEach(({ pattern
, getMessage
}) => {
30 const match
= pattern
.exec(className
);
33 const message
= getMessage(match
[0]);