@csszyx/compiler 0.9.0 → 0.9.2

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.
@@ -117,6 +117,11 @@ const PROPERTY_CATEGORY_MAP = {
117
117
  via: 1 /* COLOR */,
118
118
  to: 1 /* COLOR */,
119
119
  dropShadowColor: 1 /* COLOR */,
120
+ scrollbarThumb: 1 /* COLOR */,
121
+ scrollbarTrack: 1 /* COLOR */,
122
+ maskFrom: 1 /* COLOR */,
123
+ maskVia: 1 /* COLOR */,
124
+ maskTo: 1 /* COLOR */,
120
125
  // ---- UNITLESS ----
121
126
  opacity: 3 /* UNITLESS */,
122
127
  z: 3 /* UNITLESS */,
@@ -163,6 +168,8 @@ const PROPERTY_CATEGORY_MAP = {
163
168
  outline: 3 /* UNITLESS */,
164
169
  leading: 3 /* UNITLESS */,
165
170
  decorationThickness: 3 /* UNITLESS */,
171
+ zoom: 3 /* UNITLESS */,
172
+ tabSize: 3 /* UNITLESS */,
166
173
  // ---- ANGLE ----
167
174
  rotate: 4 /* ANGLE */,
168
175
  skewX: 4 /* ANGLE */,
@@ -577,7 +584,20 @@ const PROPERTY_MAP = {
577
584
  tableLayout: "table",
578
585
  caption: "caption",
579
586
  // Overflow
580
- overflow: "overflow"
587
+ overflow: "overflow",
588
+ // Scrollbar (v4.3)
589
+ scrollbar: "scrollbar",
590
+ scrollbarThumb: "scrollbar-thumb",
591
+ scrollbarTrack: "scrollbar-track",
592
+ scrollbarGutter: "scrollbar-gutter",
593
+ // Zoom (v4.3)
594
+ zoom: "zoom",
595
+ // Tab Size (v4.3)
596
+ tabSize: "tab",
597
+ // Mask gradient color stops (v4.1)
598
+ maskFrom: "mask-from",
599
+ maskVia: "mask-via",
600
+ maskTo: "mask-to"
581
601
  };
582
602
  const CSS_VAR_TYPE_HINTS = {
583
603
  fontFamily: "family-name",
@@ -690,6 +710,9 @@ const SUGGESTION_MAP = {
690
710
  touchAction: "touch",
691
711
  userSelect: "select",
692
712
  captionSide: "caption",
713
+ // Scrollbar (v4.3)
714
+ scrollbarColor: "scrollbarThumb (thumb color) or scrollbarTrack (track color)",
715
+ scrollbarWidth: "scrollbar",
693
716
  // Boolean remaps
694
717
  flexWrapReverse: "flexWrap: 'wrap-reverse'",
695
718
  flexNowrap: "flexWrap: 'nowrap'"
@@ -723,6 +746,18 @@ const VARIANT_MAP = {
723
746
  pointerFine: "pointer-fine",
724
747
  pointerCoarse: "pointer-coarse",
725
748
  pointerNone: "pointer-none",
749
+ // Any-pointer variants (v4.1)
750
+ anyPointerFine: "any-pointer-fine",
751
+ anyPointerCoarse: "any-pointer-coarse",
752
+ anyPointerNone: "any-pointer-none",
753
+ // Form validation variants (v4.1)
754
+ userValid: "user-valid",
755
+ userInvalid: "user-invalid",
756
+ // Details / inverted-colors variants (v4.1)
757
+ detailsContent: "details-content",
758
+ invertedColors: "inverted-colors",
759
+ // Forced-colors media variant
760
+ forcedColors: "forced-colors",
726
761
  // Screen orientation
727
762
  screenPortrait: "portrait",
728
763
  screenLandscape: "landscape",
@@ -733,6 +768,15 @@ const VARIANT_MAP = {
733
768
  "@maxXl": "@max-xl",
734
769
  "@max2xl": "@max-2xl"
735
770
  };
771
+ const SPECIAL_VARIANTS = /* @__PURE__ */ new Set([
772
+ "group",
773
+ "peer",
774
+ "has",
775
+ "not",
776
+ "data",
777
+ "aria",
778
+ "supports"
779
+ ]);
736
780
  const KNOWN_VARIANTS = /* @__PURE__ */ new Set([
737
781
  // Responsive
738
782
  "sm",
@@ -828,6 +872,31 @@ const KNOWN_VARIANTS = /* @__PURE__ */ new Set([
828
872
  "pointerFine",
829
873
  "pointerCoarse",
830
874
  "pointerNone",
875
+ // Any-pointer (v4.1)
876
+ "any-pointer-fine",
877
+ "any-pointer-coarse",
878
+ "any-pointer-none",
879
+ "anyPointerFine",
880
+ "anyPointerCoarse",
881
+ "anyPointerNone",
882
+ // Form validation (v4.1)
883
+ "user-valid",
884
+ "user-invalid",
885
+ "userValid",
886
+ "userInvalid",
887
+ // Details / inverted-colors (v4.1)
888
+ "details-content",
889
+ "detailsContent",
890
+ "inverted-colors",
891
+ "invertedColors",
892
+ // Noscript (v4.1)
893
+ "noscript",
894
+ // Forced-colors media variant
895
+ "forced-colors",
896
+ "forcedColors",
897
+ // Starting-style + inert state variants
898
+ "starting",
899
+ "inert",
831
900
  // Open
832
901
  "open",
833
902
  // RTL/LTR
@@ -1225,7 +1294,7 @@ function handleGroupPeer(type, nestedObj, prefix) {
1225
1294
  if (result.className) {
1226
1295
  classes.push(result.className);
1227
1296
  }
1228
- } else if (typeof nestedValue === "object" && nestedValue !== null) {
1297
+ } else if (typeof nestedValue === "object") {
1229
1298
  for (const [state, stateValue] of Object.entries(nestedValue)) {
1230
1299
  if (stateValue === null || stateValue === void 0 || stateValue === false) {
1231
1300
  continue;
@@ -1395,7 +1464,7 @@ function transform(szProp, prefix = "", mangleMap) {
1395
1464
  classes.push(`${prefix}${mappedKey}/${value}`);
1396
1465
  continue;
1397
1466
  }
1398
- if (rawKey === "bgImg" && typeof value === "object" && value !== null && !Array.isArray(value)) {
1467
+ if (rawKey === "bgImg" && value !== null && typeof value === "object" && !Array.isArray(value)) {
1399
1468
  const grad = value;
1400
1469
  const gradType = grad.gradient;
1401
1470
  if (!gradType) {
@@ -1460,7 +1529,7 @@ function transform(szProp, prefix = "", mangleMap) {
1460
1529
  classes.push(`${prefix}${rawKey}/${value}`);
1461
1530
  continue;
1462
1531
  }
1463
- if (typeof value === "object" && value !== null && !Array.isArray(value) && rawKey in PROPERTY_MAP && "color" in value) {
1532
+ if (value !== null && typeof value === "object" && !Array.isArray(value) && rawKey in PROPERTY_MAP && "color" in value) {
1464
1533
  const colorObj = value;
1465
1534
  const twPrefix = PROPERTY_MAP[rawKey] || rawKey.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
1466
1535
  const rawColorBase = String(colorObj.color);
@@ -1570,7 +1639,7 @@ function transform(szProp, prefix = "", mangleMap) {
1570
1639
  if (result.className) {
1571
1640
  classes.push(result.className);
1572
1641
  }
1573
- } else if ((mappedKey === "@min" || mappedKey === "@max") && typeof nestedValue === "object" && nestedValue !== null && !KNOWN_BP.has(nestedKey) && !PROPERTY_MAP[nestedKey] && !BOOLEAN_SHORTHANDS.has(nestedKey)) {
1642
+ } else if ((mappedKey === "@min" || mappedKey === "@max") && nestedValue !== null && typeof nestedValue === "object" && !KNOWN_BP.has(nestedKey) && !PROPERTY_MAP[nestedKey] && !BOOLEAN_SHORTHANDS.has(nestedKey)) {
1574
1643
  const nestedPrefix2 = `${prefix}${mappedKey}-[${nestedKey}]:`;
1575
1644
  const result = transform(nestedValue, nestedPrefix2);
1576
1645
  if (result.className) {
@@ -1585,7 +1654,7 @@ function transform(szProp, prefix = "", mangleMap) {
1585
1654
  if (result.className) {
1586
1655
  classes.push(result.className);
1587
1656
  }
1588
- } else if (typeof nestedValue === "object" && nestedValue !== null) {
1657
+ } else if (typeof nestedValue === "object") {
1589
1658
  const nestedPrefix2 = `${prefix}${mappedKey}/${nestedKey}:`;
1590
1659
  const result = transform(nestedValue, nestedPrefix2);
1591
1660
  if (result.className) {
@@ -2143,9 +2212,8 @@ function transform(szProp, prefix = "", mangleMap) {
2143
2212
  }
2144
2213
  if (process.env.NODE_ENV !== "production" && typeof window === "undefined") {
2145
2214
  const isKnown = PROPERTY_MAP[rawKey] || BOOLEAN_SHORTHANDS.has(rawKey) || SNAP_DIRECT_MAP[rawKey] || rawKey === "fromPos" || rawKey === "viaPos" || rawKey === "toPos" || rawKey.startsWith("--") || rawKey.startsWith("[") || rawKey.startsWith("@") || // Variants that fell through (e.g. empty object)
2146
- KNOWN_VARIANTS.has(rawKey) || // Groups/Peers
2147
- rawKey === "group" || rawKey === "peer" || // Special variant objects
2148
- rawKey === "has" || rawKey === "not" || rawKey === "data" || rawKey === "aria" || rawKey === "supports" || rawKey === "min" || rawKey === "max";
2215
+ KNOWN_VARIANTS.has(rawKey) || // Parametric/scope variants (group, peer, has, not, data, aria, supports)
2216
+ SPECIAL_VARIANTS.has(rawKey) || rawKey === "min" || rawKey === "max";
2149
2217
  if (!isKnown) {
2150
2218
  const suggestion = SUGGESTION_MAP[rawKey];
2151
2219
  if (suggestion) {
@@ -2279,6 +2347,7 @@ exports.KNOWN_VARIANTS = KNOWN_VARIANTS;
2279
2347
  exports.PROPERTY_CATEGORY_MAP = PROPERTY_CATEGORY_MAP;
2280
2348
  exports.PROPERTY_MAP = PROPERTY_MAP;
2281
2349
  exports.PropertyCategory = PropertyCategory;
2350
+ exports.SPECIAL_VARIANTS = SPECIAL_VARIANTS;
2282
2351
  exports.SUGGESTION_MAP = SUGGESTION_MAP;
2283
2352
  exports.VARIANT_MAP = VARIANT_MAP;
2284
2353
  exports.getCSSVariableName = getCSSVariableName;
@@ -115,6 +115,11 @@ const PROPERTY_CATEGORY_MAP = {
115
115
  via: 1 /* COLOR */,
116
116
  to: 1 /* COLOR */,
117
117
  dropShadowColor: 1 /* COLOR */,
118
+ scrollbarThumb: 1 /* COLOR */,
119
+ scrollbarTrack: 1 /* COLOR */,
120
+ maskFrom: 1 /* COLOR */,
121
+ maskVia: 1 /* COLOR */,
122
+ maskTo: 1 /* COLOR */,
118
123
  // ---- UNITLESS ----
119
124
  opacity: 3 /* UNITLESS */,
120
125
  z: 3 /* UNITLESS */,
@@ -161,6 +166,8 @@ const PROPERTY_CATEGORY_MAP = {
161
166
  outline: 3 /* UNITLESS */,
162
167
  leading: 3 /* UNITLESS */,
163
168
  decorationThickness: 3 /* UNITLESS */,
169
+ zoom: 3 /* UNITLESS */,
170
+ tabSize: 3 /* UNITLESS */,
164
171
  // ---- ANGLE ----
165
172
  rotate: 4 /* ANGLE */,
166
173
  skewX: 4 /* ANGLE */,
@@ -575,7 +582,20 @@ const PROPERTY_MAP = {
575
582
  tableLayout: "table",
576
583
  caption: "caption",
577
584
  // Overflow
578
- overflow: "overflow"
585
+ overflow: "overflow",
586
+ // Scrollbar (v4.3)
587
+ scrollbar: "scrollbar",
588
+ scrollbarThumb: "scrollbar-thumb",
589
+ scrollbarTrack: "scrollbar-track",
590
+ scrollbarGutter: "scrollbar-gutter",
591
+ // Zoom (v4.3)
592
+ zoom: "zoom",
593
+ // Tab Size (v4.3)
594
+ tabSize: "tab",
595
+ // Mask gradient color stops (v4.1)
596
+ maskFrom: "mask-from",
597
+ maskVia: "mask-via",
598
+ maskTo: "mask-to"
579
599
  };
580
600
  const CSS_VAR_TYPE_HINTS = {
581
601
  fontFamily: "family-name",
@@ -688,6 +708,9 @@ const SUGGESTION_MAP = {
688
708
  touchAction: "touch",
689
709
  userSelect: "select",
690
710
  captionSide: "caption",
711
+ // Scrollbar (v4.3)
712
+ scrollbarColor: "scrollbarThumb (thumb color) or scrollbarTrack (track color)",
713
+ scrollbarWidth: "scrollbar",
691
714
  // Boolean remaps
692
715
  flexWrapReverse: "flexWrap: 'wrap-reverse'",
693
716
  flexNowrap: "flexWrap: 'nowrap'"
@@ -721,6 +744,18 @@ const VARIANT_MAP = {
721
744
  pointerFine: "pointer-fine",
722
745
  pointerCoarse: "pointer-coarse",
723
746
  pointerNone: "pointer-none",
747
+ // Any-pointer variants (v4.1)
748
+ anyPointerFine: "any-pointer-fine",
749
+ anyPointerCoarse: "any-pointer-coarse",
750
+ anyPointerNone: "any-pointer-none",
751
+ // Form validation variants (v4.1)
752
+ userValid: "user-valid",
753
+ userInvalid: "user-invalid",
754
+ // Details / inverted-colors variants (v4.1)
755
+ detailsContent: "details-content",
756
+ invertedColors: "inverted-colors",
757
+ // Forced-colors media variant
758
+ forcedColors: "forced-colors",
724
759
  // Screen orientation
725
760
  screenPortrait: "portrait",
726
761
  screenLandscape: "landscape",
@@ -731,6 +766,15 @@ const VARIANT_MAP = {
731
766
  "@maxXl": "@max-xl",
732
767
  "@max2xl": "@max-2xl"
733
768
  };
769
+ const SPECIAL_VARIANTS = /* @__PURE__ */ new Set([
770
+ "group",
771
+ "peer",
772
+ "has",
773
+ "not",
774
+ "data",
775
+ "aria",
776
+ "supports"
777
+ ]);
734
778
  const KNOWN_VARIANTS = /* @__PURE__ */ new Set([
735
779
  // Responsive
736
780
  "sm",
@@ -826,6 +870,31 @@ const KNOWN_VARIANTS = /* @__PURE__ */ new Set([
826
870
  "pointerFine",
827
871
  "pointerCoarse",
828
872
  "pointerNone",
873
+ // Any-pointer (v4.1)
874
+ "any-pointer-fine",
875
+ "any-pointer-coarse",
876
+ "any-pointer-none",
877
+ "anyPointerFine",
878
+ "anyPointerCoarse",
879
+ "anyPointerNone",
880
+ // Form validation (v4.1)
881
+ "user-valid",
882
+ "user-invalid",
883
+ "userValid",
884
+ "userInvalid",
885
+ // Details / inverted-colors (v4.1)
886
+ "details-content",
887
+ "detailsContent",
888
+ "inverted-colors",
889
+ "invertedColors",
890
+ // Noscript (v4.1)
891
+ "noscript",
892
+ // Forced-colors media variant
893
+ "forced-colors",
894
+ "forcedColors",
895
+ // Starting-style + inert state variants
896
+ "starting",
897
+ "inert",
829
898
  // Open
830
899
  "open",
831
900
  // RTL/LTR
@@ -1223,7 +1292,7 @@ function handleGroupPeer(type, nestedObj, prefix) {
1223
1292
  if (result.className) {
1224
1293
  classes.push(result.className);
1225
1294
  }
1226
- } else if (typeof nestedValue === "object" && nestedValue !== null) {
1295
+ } else if (typeof nestedValue === "object") {
1227
1296
  for (const [state, stateValue] of Object.entries(nestedValue)) {
1228
1297
  if (stateValue === null || stateValue === void 0 || stateValue === false) {
1229
1298
  continue;
@@ -1393,7 +1462,7 @@ function transform(szProp, prefix = "", mangleMap) {
1393
1462
  classes.push(`${prefix}${mappedKey}/${value}`);
1394
1463
  continue;
1395
1464
  }
1396
- if (rawKey === "bgImg" && typeof value === "object" && value !== null && !Array.isArray(value)) {
1465
+ if (rawKey === "bgImg" && value !== null && typeof value === "object" && !Array.isArray(value)) {
1397
1466
  const grad = value;
1398
1467
  const gradType = grad.gradient;
1399
1468
  if (!gradType) {
@@ -1458,7 +1527,7 @@ function transform(szProp, prefix = "", mangleMap) {
1458
1527
  classes.push(`${prefix}${rawKey}/${value}`);
1459
1528
  continue;
1460
1529
  }
1461
- if (typeof value === "object" && value !== null && !Array.isArray(value) && rawKey in PROPERTY_MAP && "color" in value) {
1530
+ if (value !== null && typeof value === "object" && !Array.isArray(value) && rawKey in PROPERTY_MAP && "color" in value) {
1462
1531
  const colorObj = value;
1463
1532
  const twPrefix = PROPERTY_MAP[rawKey] || rawKey.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
1464
1533
  const rawColorBase = String(colorObj.color);
@@ -1568,7 +1637,7 @@ function transform(szProp, prefix = "", mangleMap) {
1568
1637
  if (result.className) {
1569
1638
  classes.push(result.className);
1570
1639
  }
1571
- } else if ((mappedKey === "@min" || mappedKey === "@max") && typeof nestedValue === "object" && nestedValue !== null && !KNOWN_BP.has(nestedKey) && !PROPERTY_MAP[nestedKey] && !BOOLEAN_SHORTHANDS.has(nestedKey)) {
1640
+ } else if ((mappedKey === "@min" || mappedKey === "@max") && nestedValue !== null && typeof nestedValue === "object" && !KNOWN_BP.has(nestedKey) && !PROPERTY_MAP[nestedKey] && !BOOLEAN_SHORTHANDS.has(nestedKey)) {
1572
1641
  const nestedPrefix2 = `${prefix}${mappedKey}-[${nestedKey}]:`;
1573
1642
  const result = transform(nestedValue, nestedPrefix2);
1574
1643
  if (result.className) {
@@ -1583,7 +1652,7 @@ function transform(szProp, prefix = "", mangleMap) {
1583
1652
  if (result.className) {
1584
1653
  classes.push(result.className);
1585
1654
  }
1586
- } else if (typeof nestedValue === "object" && nestedValue !== null) {
1655
+ } else if (typeof nestedValue === "object") {
1587
1656
  const nestedPrefix2 = `${prefix}${mappedKey}/${nestedKey}:`;
1588
1657
  const result = transform(nestedValue, nestedPrefix2);
1589
1658
  if (result.className) {
@@ -2141,9 +2210,8 @@ function transform(szProp, prefix = "", mangleMap) {
2141
2210
  }
2142
2211
  if (process.env.NODE_ENV !== "production" && typeof window === "undefined") {
2143
2212
  const isKnown = PROPERTY_MAP[rawKey] || BOOLEAN_SHORTHANDS.has(rawKey) || SNAP_DIRECT_MAP[rawKey] || rawKey === "fromPos" || rawKey === "viaPos" || rawKey === "toPos" || rawKey.startsWith("--") || rawKey.startsWith("[") || rawKey.startsWith("@") || // Variants that fell through (e.g. empty object)
2144
- KNOWN_VARIANTS.has(rawKey) || // Groups/Peers
2145
- rawKey === "group" || rawKey === "peer" || // Special variant objects
2146
- rawKey === "has" || rawKey === "not" || rawKey === "data" || rawKey === "aria" || rawKey === "supports" || rawKey === "min" || rawKey === "max";
2213
+ KNOWN_VARIANTS.has(rawKey) || // Parametric/scope variants (group, peer, has, not, data, aria, supports)
2214
+ SPECIAL_VARIANTS.has(rawKey) || rawKey === "min" || rawKey === "max";
2147
2215
  if (!isKnown) {
2148
2216
  const suggestion = SUGGESTION_MAP[rawKey];
2149
2217
  if (suggestion) {
@@ -2271,4 +2339,4 @@ function normalizeClassName(className) {
2271
2339
  return className.split(/\s+/).filter(Boolean).join(" ");
2272
2340
  }
2273
2341
 
2274
- export { BOOLEAN_SHORTHANDS as B, COLOR_PROPERTIES as C, KNOWN_VARIANTS as K, PROPERTY_MAP as P, SUGGESTION_MAP as S, VARIANT_MAP as V, PropertyCategory as a, getVariantPrefix as b, getPropertyCategory as c, PROPERTY_CATEGORY_MAP as d, normalizeArbitraryValue as e, normalizeArbitraryVariant as f, getCSSVariableName as g, isValidSzProp as i, normalizeClassName as n, stripInvalidColorStrings as s, transform as t };
2342
+ export { BOOLEAN_SHORTHANDS as B, COLOR_PROPERTIES as C, KNOWN_VARIANTS as K, PROPERTY_MAP as P, SPECIAL_VARIANTS as S, VARIANT_MAP as V, PropertyCategory as a, getVariantPrefix as b, getPropertyCategory as c, PROPERTY_CATEGORY_MAP as d, SUGGESTION_MAP as e, normalizeArbitraryValue as f, getCSSVariableName as g, normalizeArbitraryVariant as h, isValidSzProp as i, normalizeClassName as n, stripInvalidColorStrings as s, transform as t };
@@ -1,12 +1,13 @@
1
1
  'use strict';
2
2
 
3
- const transformCore = require('./shared/compiler.DZgazEy8.cjs');
3
+ const transformCore = require('./shared/compiler.BfDLUvcf.cjs');
4
4
 
5
5
 
6
6
 
7
7
  exports.BOOLEAN_SHORTHANDS = transformCore.BOOLEAN_SHORTHANDS;
8
8
  exports.KNOWN_VARIANTS = transformCore.KNOWN_VARIANTS;
9
9
  exports.PROPERTY_MAP = transformCore.PROPERTY_MAP;
10
+ exports.SPECIAL_VARIANTS = transformCore.SPECIAL_VARIANTS;
10
11
  exports.SUGGESTION_MAP = transformCore.SUGGESTION_MAP;
11
12
  exports.VARIANT_MAP = transformCore.VARIANT_MAP;
12
13
  exports.getVariantPrefix = transformCore.getVariantPrefix;
@@ -31,6 +31,7 @@ interface ReadonlySzObject {
31
31
  declare const PROPERTY_MAP: Record<string, string>;
32
32
  declare const SUGGESTION_MAP: Record<string, string>;
33
33
  declare const VARIANT_MAP: Record<string, string>;
34
+ declare const SPECIAL_VARIANTS: Set<string>;
34
35
  declare const KNOWN_VARIANTS: Set<string>;
35
36
  declare const BOOLEAN_SHORTHANDS: Set<string>;
36
37
  /**
@@ -82,5 +83,5 @@ declare function isValidSzProp(szProp: unknown): szProp is SzObject;
82
83
  */
83
84
  declare function normalizeClassName(className: string): string;
84
85
 
85
- export { BOOLEAN_SHORTHANDS, KNOWN_VARIANTS, PROPERTY_MAP, SUGGESTION_MAP, VARIANT_MAP, getVariantPrefix, isValidSzProp, normalizeArbitraryValue, normalizeArbitraryVariant, normalizeClassName, transform };
86
+ export { BOOLEAN_SHORTHANDS, KNOWN_VARIANTS, PROPERTY_MAP, SPECIAL_VARIANTS, SUGGESTION_MAP, VARIANT_MAP, getVariantPrefix, isValidSzProp, normalizeArbitraryValue, normalizeArbitraryVariant, normalizeClassName, transform };
86
87
  export type { ReadonlySzObject, ReadonlySzValue, SzObject, SzValue, TransformResult };
@@ -31,6 +31,7 @@ interface ReadonlySzObject {
31
31
  declare const PROPERTY_MAP: Record<string, string>;
32
32
  declare const SUGGESTION_MAP: Record<string, string>;
33
33
  declare const VARIANT_MAP: Record<string, string>;
34
+ declare const SPECIAL_VARIANTS: Set<string>;
34
35
  declare const KNOWN_VARIANTS: Set<string>;
35
36
  declare const BOOLEAN_SHORTHANDS: Set<string>;
36
37
  /**
@@ -82,5 +83,5 @@ declare function isValidSzProp(szProp: unknown): szProp is SzObject;
82
83
  */
83
84
  declare function normalizeClassName(className: string): string;
84
85
 
85
- export { BOOLEAN_SHORTHANDS, KNOWN_VARIANTS, PROPERTY_MAP, SUGGESTION_MAP, VARIANT_MAP, getVariantPrefix, isValidSzProp, normalizeArbitraryValue, normalizeArbitraryVariant, normalizeClassName, transform };
86
+ export { BOOLEAN_SHORTHANDS, KNOWN_VARIANTS, PROPERTY_MAP, SPECIAL_VARIANTS, SUGGESTION_MAP, VARIANT_MAP, getVariantPrefix, isValidSzProp, normalizeArbitraryValue, normalizeArbitraryVariant, normalizeClassName, transform };
86
87
  export type { ReadonlySzObject, ReadonlySzValue, SzObject, SzValue, TransformResult };
@@ -1 +1 @@
1
- export { B as BOOLEAN_SHORTHANDS, K as KNOWN_VARIANTS, P as PROPERTY_MAP, S as SUGGESTION_MAP, V as VARIANT_MAP, b as getVariantPrefix, i as isValidSzProp, e as normalizeArbitraryValue, f as normalizeArbitraryVariant, n as normalizeClassName, t as transform } from './shared/compiler.CUn8HGmA.mjs';
1
+ export { B as BOOLEAN_SHORTHANDS, K as KNOWN_VARIANTS, P as PROPERTY_MAP, S as SPECIAL_VARIANTS, e as SUGGESTION_MAP, V as VARIANT_MAP, b as getVariantPrefix, i as isValidSzProp, f as normalizeArbitraryValue, h as normalizeArbitraryVariant, n as normalizeClassName, t as transform } from './shared/compiler.wyFFQW-b.mjs';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@csszyx/compiler",
3
- "version": "0.9.0",
3
+ "version": "0.9.2",
4
4
  "description": "Core compiler and transformation logic for csszyx",
5
5
  "keywords": [
6
6
  "csszyx",
@@ -65,7 +65,7 @@
65
65
  "@babel/types": "^7.23.6",
66
66
  "magic-string": "0.30.21",
67
67
  "oxc-parser": "0.131.0",
68
- "@csszyx/core": "0.9.0"
68
+ "@csszyx/core": "0.9.2"
69
69
  },
70
70
  "devDependencies": {
71
71
  "@types/babel__core": "^7.20.5",