@homebound/truss 2.29.3 → 2.29.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1102,7 +1102,7 @@ function segmentClassPrefix(condition, mapping) {
1102
1102
  }
1103
1103
  if (condition.mediaQuery) {
1104
1104
  const breakpoint = breakpointNameForMediaQuery(mapping, condition.mediaQuery);
1105
- parts.push(breakpoint ? `${breakpoint.toLowerCase()}_` : "mq_");
1105
+ parts.push(`${breakpoint ? breakpoint.toLowerCase() : sanitizeClassNameToken(condition.mediaQuery)}_`);
1106
1106
  }
1107
1107
  if (condition.pseudoClass) {
1108
1108
  parts.push(`${pseudoSelectorPrefix(condition.pseudoClass)}_`);
@@ -1327,7 +1327,9 @@ function typographyLookupKeySuffix(context, mapping) {
1327
1327
  if (context.pseudoElement) parts.push(context.pseudoElement.replace(/^::/, ""));
1328
1328
  if (context.mediaQuery) {
1329
1329
  const breakpoint = breakpointNameForMediaQuery(mapping, context.mediaQuery);
1330
- parts.push(breakpoint ? breakpoint.replace(/^./, (c) => c.toLowerCase()) : "mq");
1330
+ parts.push(
1331
+ breakpoint ? breakpoint.replace(/^./, (c) => c.toLowerCase()) : sanitizeClassNameToken(context.mediaQuery)
1332
+ );
1331
1333
  }
1332
1334
  if (context.pseudoClass) parts.push(context.pseudoClass.replace(/^:+/, "").replace(/-/g, "_"));
1333
1335
  if (context.whenPseudo) parts.push(whenLookupKeyPart(context.whenPseudo));