@master/css 2.0.0-rc.6 → 2.0.0-rc.61

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.
Files changed (144) hide show
  1. package/README.md +4 -43
  2. package/dist/_virtual/_commonjsHelpers.cjs +10 -0
  3. package/dist/_virtual/_commonjsHelpers.mjs +7 -0
  4. package/dist/_virtual/css-escape.cjs +5 -0
  5. package/dist/_virtual/css-escape.mjs +3 -0
  6. package/dist/bin/index.cjs +11 -0
  7. package/dist/bin/index.d.ts +0 -1
  8. package/dist/bin/index.mjs +9 -0
  9. package/dist/common.cjs +159 -0
  10. package/dist/common.d.ts +26 -0
  11. package/dist/common.mjs +137 -0
  12. package/dist/config/animations.cjs +113 -0
  13. package/dist/config/animations.mjs +111 -0
  14. package/dist/config/at.cjs +16 -0
  15. package/dist/config/at.d.ts +13 -0
  16. package/dist/config/at.mjs +14 -0
  17. package/dist/config/functions.cjs +375 -0
  18. package/dist/config/functions.d.ts +1 -1
  19. package/dist/config/functions.mjs +373 -0
  20. package/dist/config/index.cjs +37 -0
  21. package/dist/config/index.d.ts +5 -62
  22. package/dist/config/index.mjs +27 -0
  23. package/dist/config/modes.cjs +8 -0
  24. package/dist/config/modes.d.ts +3 -0
  25. package/dist/config/modes.mjs +6 -0
  26. package/dist/config/rules.cjs +2300 -0
  27. package/dist/config/rules.d.ts +278 -274
  28. package/dist/config/rules.mjs +2298 -0
  29. package/dist/config/selectors.cjs +28 -0
  30. package/dist/config/selectors.d.ts +0 -1
  31. package/dist/config/selectors.mjs +26 -0
  32. package/dist/config/styles.cjs +2 -0
  33. package/dist/config/styles.d.ts +2 -2
  34. package/dist/config/styles.mjs +1 -0
  35. package/dist/config/utilities.cjs +204 -0
  36. package/dist/config/{semantics.d.ts → utilities.d.ts} +15 -5
  37. package/dist/config/utilities.mjs +202 -0
  38. package/dist/config/variables.cjs +484 -0
  39. package/dist/config/variables.d.ts +208 -312
  40. package/dist/config/variables.mjs +482 -0
  41. package/dist/core.cjs +739 -0
  42. package/dist/core.d.ts +96 -75
  43. package/dist/core.mjs +737 -0
  44. package/dist/factories/with-syntax-layer.cjs +308 -0
  45. package/dist/factories/with-syntax-layer.d.ts +26 -0
  46. package/dist/factories/with-syntax-layer.mjs +306 -0
  47. package/dist/index.cjs +82 -0
  48. package/dist/index.d.ts +21 -9
  49. package/dist/index.mjs +27 -0
  50. package/dist/layer.cjs +50 -0
  51. package/dist/layer.d.ts +14 -10
  52. package/dist/layer.mjs +48 -0
  53. package/dist/non-layer.cjs +64 -0
  54. package/dist/non-layer.d.ts +12 -0
  55. package/dist/non-layer.mjs +62 -0
  56. package/dist/polyfills/css-escape.cjs +9 -0
  57. package/dist/polyfills/css-escape.mjs +7 -0
  58. package/dist/polyfills/css-escape2.cjs +76 -0
  59. package/dist/polyfills/css-escape2.mjs +74 -0
  60. package/dist/register-global.cjs +7 -0
  61. package/dist/register-global.d.ts +5 -0
  62. package/dist/register-global.mjs +5 -0
  63. package/dist/rule-node.cjs +18 -0
  64. package/dist/rule-node.d.ts +14 -0
  65. package/dist/rule-node.mjs +16 -0
  66. package/dist/rule.cjs +18 -0
  67. package/dist/rule.d.ts +9 -111
  68. package/dist/rule.mjs +16 -0
  69. package/dist/shared/utils/css-escape.cjs +56 -0
  70. package/dist/shared/utils/css-escape.mjs +54 -0
  71. package/dist/shared/utils/find-native-css-rule-index.cjs +12 -0
  72. package/dist/shared/utils/find-native-css-rule-index.mjs +10 -0
  73. package/dist/syntax-layer.cjs +8 -0
  74. package/dist/syntax-layer.d.ts +18 -0
  75. package/dist/syntax-layer.mjs +6 -0
  76. package/dist/syntax-rule-type.cjs +27 -0
  77. package/dist/syntax-rule-type.d.ts +28 -0
  78. package/dist/syntax-rule-type.mjs +25 -0
  79. package/dist/syntax-rule.cjs +666 -0
  80. package/dist/syntax-rule.d.ts +51 -0
  81. package/dist/syntax-rule.mjs +664 -0
  82. package/dist/types/common.cjs +2 -0
  83. package/dist/types/common.d.ts +1 -0
  84. package/dist/types/common.mjs +1 -0
  85. package/dist/types/config.cjs +2 -0
  86. package/dist/types/config.d.ts +70 -0
  87. package/dist/types/config.mjs +1 -0
  88. package/dist/types/syntax.cjs +2 -0
  89. package/dist/types/syntax.d.ts +106 -0
  90. package/dist/types/syntax.mjs +1 -0
  91. package/dist/utils/are-rule-at-equal.cjs +12 -0
  92. package/dist/utils/are-rule-at-equal.d.ts +2 -0
  93. package/dist/utils/are-rule-at-equal.mjs +10 -0
  94. package/dist/utils/are-rule-modes-equal.cjs +7 -0
  95. package/dist/utils/are-rule-modes-equal.d.ts +2 -0
  96. package/dist/utils/are-rule-modes-equal.mjs +5 -0
  97. package/dist/utils/are-rule-selectors-equal.cjs +29 -0
  98. package/dist/utils/are-rule-selectors-equal.d.ts +2 -0
  99. package/dist/utils/are-rule-selectors-equal.mjs +27 -0
  100. package/dist/utils/are-rule-states-equal.cjs +11 -0
  101. package/dist/utils/are-rule-states-equal.d.ts +2 -0
  102. package/dist/utils/are-rule-states-equal.mjs +9 -0
  103. package/dist/utils/are-rules-duplicated.cjs +17 -0
  104. package/dist/utils/are-rules-duplicated.d.ts +2 -0
  105. package/dist/utils/are-rules-duplicated.mjs +15 -0
  106. package/dist/utils/autofill-solid-style.cjs +31 -0
  107. package/dist/utils/autofill-solid-style.d.ts +3 -0
  108. package/dist/utils/autofill-solid-style.mjs +29 -0
  109. package/dist/utils/extend-config.cjs +59 -0
  110. package/dist/utils/extend-config.d.ts +2 -2
  111. package/dist/utils/extend-config.mjs +57 -0
  112. package/dist/utils/flatten-object.cjs +15 -0
  113. package/dist/utils/flatten-object.d.ts +1 -1
  114. package/dist/utils/flatten-object.mjs +13 -0
  115. package/dist/utils/generate-css.cjs +13 -0
  116. package/dist/utils/generate-css.d.ts +2 -0
  117. package/dist/utils/generate-css.mjs +11 -0
  118. package/dist/utils/hex-to-rgb.cjs +30 -0
  119. package/dist/utils/hex-to-rgb.d.ts +1 -1
  120. package/dist/utils/hex-to-rgb.mjs +28 -0
  121. package/dist/utils/is-core-rule.cjs +9 -0
  122. package/dist/utils/is-core-rule.d.ts +1 -0
  123. package/dist/utils/is-core-rule.mjs +7 -0
  124. package/dist/utils/reorder-for-readable-classes.cjs +62 -0
  125. package/dist/{functions → utils}/reorder-for-readable-classes.d.ts +2 -6
  126. package/dist/utils/reorder-for-readable-classes.mjs +60 -0
  127. package/package.json +1 -1
  128. package/dist/bin/index.bundle.js +0 -36
  129. package/dist/config/media-queries.d.ts +0 -1
  130. package/dist/constants/base-unit-regex.d.ts +0 -1
  131. package/dist/constants/config-esm-text.d.ts +0 -1
  132. package/dist/constants/config-text.d.ts +0 -1
  133. package/dist/constants/config-ts-text.d.ts +0 -1
  134. package/dist/constants/start-symbol.d.ts +0 -6
  135. package/dist/functions/transform-color-with-opacity.d.ts +0 -1
  136. package/dist/index.bundle.js +0 -35
  137. package/dist/index.bundle.mjs +0 -35
  138. package/dist/tokens/screen-sizes.d.ts +0 -14
  139. package/dist/types/global.d.ts +0 -5
  140. package/dist/utils/concat-arrays.d.ts +0 -1
  141. package/dist/utils/get-type.d.ts +0 -7
  142. package/dist/utils/is-plain-object.d.ts +0 -8
  143. package/dist/utils/is-symbol.d.ts +0 -7
  144. package/dist/utils/rgb-to-hex.d.ts +0 -1
package/dist/rule.cjs ADDED
@@ -0,0 +1,18 @@
1
+ 'use strict';
2
+
3
+ class Rule {
4
+ name;
5
+ nodes;
6
+ constructor(name, nodes = []){
7
+ this.name = name;
8
+ this.nodes = nodes;
9
+ }
10
+ get key() {
11
+ return this.name;
12
+ }
13
+ get text() {
14
+ return this.nodes.map(({ text })=>text).join('');
15
+ }
16
+ }
17
+
18
+ exports.Rule = Rule;
package/dist/rule.d.ts CHANGED
@@ -1,116 +1,14 @@
1
- import type { MasterCSS, Variable } from './core';
2
- import { Layer } from './layer';
3
- import { PropertiesHyphen } from 'csstype';
4
1
  export declare class Rule {
5
- readonly className: string;
6
- css: MasterCSS;
7
- readonly at: Record<string, string>;
8
- readonly priority: number;
9
- readonly natives: NativeRule[];
10
- readonly order: number;
11
- readonly layer: Layer;
12
- readonly stateToken: string;
13
- readonly declarations?: PropertiesHyphen;
14
- animationNames?: string[];
15
- variableNames?: string[];
16
- constructor(className: string, RegisteredRule: RegisteredRule, css: MasterCSS);
17
- resolveValue: (valueComponents: ValueComponent[], unit: string, bypassVariableNames: string[], bypassParsing: boolean) => string;
2
+ readonly name: string;
3
+ nodes: RuleNode[];
4
+ constructor(name: string, nodes?: RuleNode[]);
5
+ get key(): string;
18
6
  get text(): string;
19
- parseValue: (currentValueComponents: ValueComponent[], i: number, value: string, unit: string, endSymbol: string, parentFunctionName?: string, bypassParsing?: boolean, bypassVariableNames?: string[]) => number;
20
- parseValueComponent(token: string | number, unit?: any): StringValueComponent | NumericValueComponent;
21
7
  }
22
- export type ValueComponent = StringValueComponent | NumericValueComponent | FunctionValueComponent | VariableValueComponent | SeparatorValueComponent;
23
- export interface StringValueComponent {
24
- text?: string;
25
- token?: string;
26
- type: 'string';
27
- value: string;
28
- }
29
- export interface NumericValueComponent {
30
- text?: string;
31
- token?: string;
32
- type: 'number';
33
- value: number;
34
- unit?: string;
35
- }
36
- export interface FunctionValueComponent {
37
- text?: string;
38
- token?: string;
39
- type: 'function';
40
- name: string;
41
- symbol: string;
42
- children: ValueComponent[];
43
- bypassTransform?: boolean;
44
- }
45
- export interface VariableValueComponent {
46
- text?: string;
47
- token?: string;
48
- type: 'variable';
49
- name: string;
50
- alpha?: string;
51
- fallback?: string;
52
- variable?: Variable;
53
- }
54
- export interface SeparatorValueComponent {
55
- text?: string;
56
- type: 'separator';
57
- value: string;
58
- }
59
- export interface Rule extends RegisteredRule {
60
- colored: boolean;
61
- prefix: string;
62
- token: string;
63
- vendorPrefixSelectors: Record<string, string[]>;
64
- vendorSuffixSelectors: Record<string, string[]>;
65
- important: boolean;
66
- media: MediaQuery;
67
- direction: string;
68
- theme: string;
69
- unitToken: string;
70
- hasWhere: boolean;
71
- valueComponents: Array<ValueComponent>;
72
- }
73
- export interface RegisteredRule {
74
- id: string;
75
- match?: RegExp;
76
- variables?: any;
77
- order: number;
78
- definition: RuleDefinition;
79
- }
80
- export interface RuleDefinition {
81
- layer?: Layer;
82
- match?: RegExp | [string, string[]?];
83
- variables?: string[];
84
- separators?: string[];
85
- shorthand?: string;
86
- colored?: boolean;
87
- numeric?: boolean;
88
- unit?: any;
89
- native?: boolean;
90
- declarations?: PropertiesHyphen;
91
- analyze?: (this: Rule, className: string) => [valueToken: string, prefixToken?: string];
92
- transformValue?(this: Rule, value: string): string;
93
- transformValueComponents?(this: Rule, valueComponents: ValueComponent[]): ValueComponent[];
94
- declare?(this: Rule, value: string, valueComponents: ValueComponent[]): PropertiesHyphen;
95
- delete?(this: Rule, className: string): void;
96
- create?(this: Rule, className: string): void;
97
- insert?(this: Rule): void;
98
- }
99
- export interface NativeRule {
8
+ export interface RuleNode {
100
9
  text: string;
101
- cssRule?: CSSRule;
102
- }
103
- export type MediaFeatureComponent = {
104
- type: string;
105
- tokenType?: string;
106
- operator?: string;
107
- value: number;
108
- unit: string;
109
- };
110
- export interface MediaQuery {
111
- token: string;
112
- features: {
113
- [key: string]: MediaFeatureComponent;
114
- };
115
- type?: string;
10
+ selectorText?: string;
11
+ native?: CSSRule;
12
+ suffixSelectors?: string[];
13
+ prefixSelectors?: string[];
116
14
  }
package/dist/rule.mjs ADDED
@@ -0,0 +1,16 @@
1
+ class Rule {
2
+ name;
3
+ nodes;
4
+ constructor(name, nodes = []){
5
+ this.name = name;
6
+ this.nodes = nodes;
7
+ }
8
+ get key() {
9
+ return this.name;
10
+ }
11
+ get text() {
12
+ return this.nodes.map(({ text })=>text).join('');
13
+ }
14
+ }
15
+
16
+ export { Rule };
@@ -0,0 +1,56 @@
1
+ 'use strict';
2
+
3
+ function cssEscape(value) {
4
+ if (typeof CSS !== 'undefined') return CSS.escape(value);
5
+ if (arguments.length == 0) {
6
+ throw new TypeError('`CSS.escape` requires an argument.');
7
+ }
8
+ const string = String(value);
9
+ const length = string.length;
10
+ let index = -1;
11
+ let result = '';
12
+ let codeUnit;
13
+ const firstCodeUnit = string.charCodeAt(0);
14
+ if (// If the character is the first character and is a `-` (U+002D), and
15
+ // there is no second character, […]
16
+ length == 1 && firstCodeUnit == 0x002D) {
17
+ return '\\' + string;
18
+ }
19
+ while(++index < length){
20
+ codeUnit = string.charCodeAt(index);
21
+ // Note: there’s no need to special-case astral symbols, surrogate
22
+ // pairs, or lone surrogates.
23
+ // If the character is NULL (U+0000), then the REPLACEMENT CHARACTER
24
+ // (U+FFFD).
25
+ if (codeUnit == 0x0000) {
26
+ result += '\uFFFD';
27
+ continue;
28
+ }
29
+ if (// If the character is in the range [\1-\1F] (U+0001 to U+001F) or is
30
+ // U+007F, […]
31
+ codeUnit >= 0x0001 && codeUnit <= 0x001F || codeUnit == 0x007F || // If the character is the first character and is in the range [0-9]
32
+ // (U+0030 to U+0039), […]
33
+ index == 0 && codeUnit >= 0x0030 && codeUnit <= 0x0039 || // If the character is the second character and is in the range [0-9]
34
+ // (U+0030 to U+0039) and the first character is a `-` (U+002D), […]
35
+ index == 1 && codeUnit >= 0x0030 && codeUnit <= 0x0039 && firstCodeUnit == 0x002D) {
36
+ // https://drafts.csswg.org/cssom/#escape-a-character-as-code-point
37
+ result += '\\' + codeUnit.toString(16) + ' ';
38
+ continue;
39
+ }
40
+ // If the character is not handled by one of the above rules and is
41
+ // greater than or equal to U+0080, is `-` (U+002D) or `_` (U+005F), or
42
+ // is in one of the ranges [0-9] (U+0030 to U+0039), [A-Z] (U+0041 to
43
+ // U+005A), or [a-z] (U+0061 to U+007A), […]
44
+ if (codeUnit >= 0x0080 || codeUnit == 0x002D || codeUnit == 0x005F || codeUnit >= 0x0030 && codeUnit <= 0x0039 || codeUnit >= 0x0041 && codeUnit <= 0x005A || codeUnit >= 0x0061 && codeUnit <= 0x007A) {
45
+ // the character itself
46
+ result += string.charAt(index);
47
+ continue;
48
+ }
49
+ // Otherwise, the escaped character.
50
+ // https://drafts.csswg.org/cssom/#escape-a-character
51
+ result += '\\' + string.charAt(index);
52
+ }
53
+ return result;
54
+ }
55
+
56
+ module.exports = cssEscape;
@@ -0,0 +1,54 @@
1
+ function cssEscape(value) {
2
+ if (typeof CSS !== 'undefined') return CSS.escape(value);
3
+ if (arguments.length == 0) {
4
+ throw new TypeError('`CSS.escape` requires an argument.');
5
+ }
6
+ const string = String(value);
7
+ const length = string.length;
8
+ let index = -1;
9
+ let result = '';
10
+ let codeUnit;
11
+ const firstCodeUnit = string.charCodeAt(0);
12
+ if (// If the character is the first character and is a `-` (U+002D), and
13
+ // there is no second character, […]
14
+ length == 1 && firstCodeUnit == 0x002D) {
15
+ return '\\' + string;
16
+ }
17
+ while(++index < length){
18
+ codeUnit = string.charCodeAt(index);
19
+ // Note: there’s no need to special-case astral symbols, surrogate
20
+ // pairs, or lone surrogates.
21
+ // If the character is NULL (U+0000), then the REPLACEMENT CHARACTER
22
+ // (U+FFFD).
23
+ if (codeUnit == 0x0000) {
24
+ result += '\uFFFD';
25
+ continue;
26
+ }
27
+ if (// If the character is in the range [\1-\1F] (U+0001 to U+001F) or is
28
+ // U+007F, […]
29
+ codeUnit >= 0x0001 && codeUnit <= 0x001F || codeUnit == 0x007F || // If the character is the first character and is in the range [0-9]
30
+ // (U+0030 to U+0039), […]
31
+ index == 0 && codeUnit >= 0x0030 && codeUnit <= 0x0039 || // If the character is the second character and is in the range [0-9]
32
+ // (U+0030 to U+0039) and the first character is a `-` (U+002D), […]
33
+ index == 1 && codeUnit >= 0x0030 && codeUnit <= 0x0039 && firstCodeUnit == 0x002D) {
34
+ // https://drafts.csswg.org/cssom/#escape-a-character-as-code-point
35
+ result += '\\' + codeUnit.toString(16) + ' ';
36
+ continue;
37
+ }
38
+ // If the character is not handled by one of the above rules and is
39
+ // greater than or equal to U+0080, is `-` (U+002D) or `_` (U+005F), or
40
+ // is in one of the ranges [0-9] (U+0030 to U+0039), [A-Z] (U+0041 to
41
+ // U+005A), or [a-z] (U+0061 to U+007A), […]
42
+ if (codeUnit >= 0x0080 || codeUnit == 0x002D || codeUnit == 0x005F || codeUnit >= 0x0030 && codeUnit <= 0x0039 || codeUnit >= 0x0041 && codeUnit <= 0x005A || codeUnit >= 0x0061 && codeUnit <= 0x007A) {
43
+ // the character itself
44
+ result += string.charAt(index);
45
+ continue;
46
+ }
47
+ // Otherwise, the escaped character.
48
+ // https://drafts.csswg.org/cssom/#escape-a-character
49
+ result += '\\' + string.charAt(index);
50
+ }
51
+ return result;
52
+ }
53
+
54
+ export { cssEscape as default };
@@ -0,0 +1,12 @@
1
+ 'use strict';
2
+
3
+ function findNativeCSSRuleIndex(cssRules, nativeRule) {
4
+ for(let i = 0; i < cssRules.length; i++){
5
+ if (cssRules[i] === nativeRule) {
6
+ return i;
7
+ }
8
+ }
9
+ return -1;
10
+ }
11
+
12
+ module.exports = findNativeCSSRuleIndex;
@@ -0,0 +1,10 @@
1
+ function findNativeCSSRuleIndex(cssRules, nativeRule) {
2
+ for(let i = 0; i < cssRules.length; i++){
3
+ if (cssRules[i] === nativeRule) {
4
+ return i;
5
+ }
6
+ }
7
+ return -1;
8
+ }
9
+
10
+ export { findNativeCSSRuleIndex as default };
@@ -0,0 +1,8 @@
1
+ 'use strict';
2
+
3
+ var withSyntaxLayer = require('./factories/with-syntax-layer.cjs');
4
+ var layer = require('./layer.cjs');
5
+
6
+ const SyntaxLayer = withSyntaxLayer(layer);
7
+
8
+ module.exports = SyntaxLayer;
@@ -0,0 +1,18 @@
1
+ import Layer from './layer';
2
+ declare const SyntaxLayer: {
3
+ new (...args: any[]): {
4
+ rules: import("./syntax-rule").SyntaxRule[];
5
+ insert(syntaxRule: import("./syntax-rule").SyntaxRule): number | undefined;
6
+ delete(key: string): import("./syntax-rule").SyntaxRule | undefined;
7
+ insertVariables(syntaxRule: import("./syntax-rule").SyntaxRule): void;
8
+ insertAnimations(syntaxRule: import("./syntax-rule").SyntaxRule): void;
9
+ readonly tokenCounts: Map<string, number>;
10
+ name: string;
11
+ css: import("./core").default;
12
+ attach(): void;
13
+ detach(): void;
14
+ reset(): void;
15
+ readonly text: string;
16
+ };
17
+ } & typeof Layer;
18
+ export default SyntaxLayer;
@@ -0,0 +1,6 @@
1
+ import withSyntaxLayer from './factories/with-syntax-layer.mjs';
2
+ import Layer from './layer.mjs';
3
+
4
+ const SyntaxLayer = withSyntaxLayer(Layer);
5
+
6
+ export { SyntaxLayer as default };
@@ -0,0 +1,27 @@
1
+ 'use strict';
2
+
3
+ var SyntaxRuleType = /*#__PURE__*/ function(SyntaxRuleType) {
4
+ /**
5
+ * utility classes
6
+ * @example block, inline
7
+ */ SyntaxRuleType[SyntaxRuleType["Utility"] = -4] = "Utility";
8
+ /**
9
+ * native shorthand
10
+ * @example border, padding, margin
11
+ */ SyntaxRuleType[SyntaxRuleType["NativeShorthand"] = -3] = "NativeShorthand";
12
+ /**
13
+ * shorthand
14
+ * @example px, py, mx, my
15
+ */ SyntaxRuleType[SyntaxRuleType["Shorthand"] = -2] = "Shorthand";
16
+ /**
17
+ * native properties
18
+ * @example color, background-color, font-size
19
+ */ SyntaxRuleType[SyntaxRuleType["Native"] = -1] = "Native";
20
+ /**
21
+ * normal
22
+ * @example grid-cols
23
+ */ SyntaxRuleType[SyntaxRuleType["Normal"] = 0] = "Normal";
24
+ return SyntaxRuleType;
25
+ }(SyntaxRuleType || {});
26
+
27
+ module.exports = SyntaxRuleType;
@@ -0,0 +1,28 @@
1
+ declare const enum SyntaxRuleType {
2
+ /**
3
+ * utility classes
4
+ * @example block, inline
5
+ */
6
+ Utility = -4,
7
+ /**
8
+ * native shorthand
9
+ * @example border, padding, margin
10
+ */
11
+ NativeShorthand = -3,
12
+ /**
13
+ * shorthand
14
+ * @example px, py, mx, my
15
+ */
16
+ Shorthand = -2,
17
+ /**
18
+ * native properties
19
+ * @example color, background-color, font-size
20
+ */
21
+ Native = -1,
22
+ /**
23
+ * normal
24
+ * @example grid-cols
25
+ */
26
+ Normal = 0
27
+ }
28
+ export default SyntaxRuleType;
@@ -0,0 +1,25 @@
1
+ var SyntaxRuleType = /*#__PURE__*/ function(SyntaxRuleType) {
2
+ /**
3
+ * utility classes
4
+ * @example block, inline
5
+ */ SyntaxRuleType[SyntaxRuleType["Utility"] = -4] = "Utility";
6
+ /**
7
+ * native shorthand
8
+ * @example border, padding, margin
9
+ */ SyntaxRuleType[SyntaxRuleType["NativeShorthand"] = -3] = "NativeShorthand";
10
+ /**
11
+ * shorthand
12
+ * @example px, py, mx, my
13
+ */ SyntaxRuleType[SyntaxRuleType["Shorthand"] = -2] = "Shorthand";
14
+ /**
15
+ * native properties
16
+ * @example color, background-color, font-size
17
+ */ SyntaxRuleType[SyntaxRuleType["Native"] = -1] = "Native";
18
+ /**
19
+ * normal
20
+ * @example grid-cols
21
+ */ SyntaxRuleType[SyntaxRuleType["Normal"] = 0] = "Normal";
22
+ return SyntaxRuleType;
23
+ }(SyntaxRuleType || {});
24
+
25
+ export { SyntaxRuleType as default };