@navita/engine 0.2.2 → 3.0.0-next.0

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 (67) hide show
  1. package/_virtual/_rolldown/runtime.cjs +23 -0
  2. package/cache.cjs +26 -26
  3. package/cache.mjs +28 -24
  4. package/helpers/declarationsToBlock.cjs +10 -14
  5. package/helpers/declarationsToBlock.mjs +12 -12
  6. package/helpers/generateCombinedAtRules.cjs +5 -7
  7. package/helpers/generateCombinedAtRules.mjs +7 -5
  8. package/helpers/getPropertyPriority.cjs +221 -260
  9. package/helpers/getPropertyPriority.mjs +223 -258
  10. package/helpers/hyphenateProperty.cjs +8 -9
  11. package/helpers/hyphenateProperty.mjs +10 -7
  12. package/helpers/isContainerQuery.cjs +4 -4
  13. package/helpers/isContainerQuery.mjs +6 -2
  14. package/helpers/isMediaQuery.cjs +4 -4
  15. package/helpers/isMediaQuery.mjs +6 -2
  16. package/helpers/isNestedSelector.cjs +5 -5
  17. package/helpers/isNestedSelector.mjs +7 -3
  18. package/helpers/isObject.cjs +4 -4
  19. package/helpers/isObject.mjs +6 -2
  20. package/helpers/isSupportsQuery.cjs +4 -4
  21. package/helpers/isSupportsQuery.mjs +6 -2
  22. package/helpers/normalizeCSSVarsProperty.cjs +7 -11
  23. package/helpers/normalizeCSSVarsProperty.mjs +9 -9
  24. package/helpers/normalizeCSSVarsValue.cjs +6 -8
  25. package/helpers/normalizeCSSVarsValue.mjs +8 -6
  26. package/helpers/normalizeNestedProperty.cjs +5 -7
  27. package/helpers/normalizeNestedProperty.mjs +7 -5
  28. package/helpers/pixelifyProperties.cjs +50 -53
  29. package/helpers/pixelifyProperties.mjs +52 -51
  30. package/helpers/splitSelectorList.cjs +55 -0
  31. package/helpers/splitSelectorList.mjs +57 -0
  32. package/helpers/splitStyleBlocks.cjs +23 -25
  33. package/helpers/splitStyleBlocks.mjs +25 -23
  34. package/helpers/transformContentProperty.cjs +4 -5
  35. package/helpers/transformContentProperty.mjs +6 -3
  36. package/identifiers/IDGenerator.cjs +9 -9
  37. package/identifiers/IDGenerator.mjs +11 -7
  38. package/identifiers/alphaIDGenerator.cjs +23 -26
  39. package/identifiers/alphaIDGenerator.mjs +25 -24
  40. package/identifiers/propertyValueIDGenerator.cjs +18 -23
  41. package/identifiers/propertyValueIDGenerator.mjs +20 -21
  42. package/index.cjs +187 -238
  43. package/index.d.ts +91 -84
  44. package/index.mjs +184 -234
  45. package/package.json +1 -1
  46. package/printers/printFontFaces.cjs +7 -12
  47. package/printers/printFontFaces.mjs +9 -10
  48. package/printers/printKeyFrames.cjs +10 -16
  49. package/printers/printKeyFrames.mjs +12 -14
  50. package/printers/printSourceMap.cjs +34 -39
  51. package/printers/printSourceMap.mjs +36 -37
  52. package/printers/printStyleBlocks.cjs +71 -70
  53. package/printers/printStyleBlocks.mjs +73 -68
  54. package/printers/sortAtRules.cjs +8 -7
  55. package/printers/sortAtRules.mjs +7 -4
  56. package/processKeyframes.cjs +16 -22
  57. package/processKeyframes.mjs +19 -20
  58. package/processStyles.cjs +99 -105
  59. package/processStyles.mjs +101 -103
  60. package/types.cjs +0 -2
  61. package/types.mjs +4 -1
  62. package/wrappers/classList.cjs +4 -5
  63. package/wrappers/classList.mjs +6 -3
  64. package/wrappers/static.cjs +4 -5
  65. package/wrappers/static.mjs +6 -3
  66. package/printers/sortStatic.cjs +0 -7
  67. package/printers/sortStatic.mjs +0 -5
@@ -1,260 +1,225 @@
1
+ import "node:path";
2
+ import "node:url";
3
+ import.meta.url;
4
+ //#region src/helpers/getPropertyPriority.ts
5
+ const longhands = Object.values({
6
+ animation: [
7
+ "animation-name",
8
+ "animation-duration",
9
+ "animation-timing-function",
10
+ "animation-delay",
11
+ "animation-iteration-count",
12
+ "animation-direction",
13
+ "animation-fill-mode",
14
+ "animation-play-state"
15
+ ],
16
+ background: [
17
+ "background-attachment",
18
+ "background-clip",
19
+ "background-color",
20
+ "background-image",
21
+ "background-origin",
22
+ "background-position",
23
+ "background-repeat",
24
+ "background-size"
25
+ ],
26
+ border: [
27
+ "border-color",
28
+ "border-style",
29
+ "border-width"
30
+ ],
31
+ "border-block-end": [
32
+ "border-block-end-color",
33
+ "border-block-end-style",
34
+ "border-block-end-width"
35
+ ],
36
+ "border-block-start": [
37
+ "border-block-start-color",
38
+ "border-block-start-style",
39
+ "border-block-start-width"
40
+ ],
41
+ "border-bottom": [
42
+ "border-bottom-color",
43
+ "border-bottom-style",
44
+ "border-bottom-width"
45
+ ],
46
+ "border-color": [
47
+ "border-bottom-color",
48
+ "border-left-color",
49
+ "border-right-color",
50
+ "border-top-color"
51
+ ],
52
+ "border-image": [
53
+ "border-image-outset",
54
+ "border-image-repeat",
55
+ "border-image-slice",
56
+ "border-image-source",
57
+ "border-image-width"
58
+ ],
59
+ "border-inline-end": [
60
+ "border-inline-end-color",
61
+ "border-inline-end-style",
62
+ "border-inline-end-width"
63
+ ],
64
+ "border-inline-start": [
65
+ "border-inline-start-color",
66
+ "border-inline-start-style",
67
+ "border-inline-start-width"
68
+ ],
69
+ "border-left": [
70
+ "border-left-color",
71
+ "border-left-style",
72
+ "border-left-width"
73
+ ],
74
+ "border-radius": [
75
+ "border-top-left-radius",
76
+ "border-top-right-radius",
77
+ "border-bottom-right-radius",
78
+ "border-bottom-left-radius"
79
+ ],
80
+ "border-right": [
81
+ "border-right-color",
82
+ "border-right-style",
83
+ "border-right-width"
84
+ ],
85
+ "border-style": [
86
+ "border-bottom-style",
87
+ "border-left-style",
88
+ "border-right-style",
89
+ "border-top-style"
90
+ ],
91
+ "border-top": [
92
+ "border-top-color",
93
+ "border-top-style",
94
+ "border-top-width"
95
+ ],
96
+ "border-width": [
97
+ "border-bottom-width",
98
+ "border-left-width",
99
+ "border-right-width",
100
+ "border-top-width"
101
+ ],
102
+ "column-rule": [
103
+ "column-rule-width",
104
+ "column-rule-style",
105
+ "column-rule-color"
106
+ ],
107
+ columns: ["column-count", "column-width"],
108
+ flex: [
109
+ "flex-grow",
110
+ "flex-shrink",
111
+ "flex-basis"
112
+ ],
113
+ "flex-flow": ["flex-direction", "flex-wrap"],
114
+ font: [
115
+ "font-family",
116
+ "font-size",
117
+ "font-stretch",
118
+ "font-style",
119
+ "font-variant",
120
+ "font-weight",
121
+ "line-height"
122
+ ],
123
+ gap: ["row-gap", "column-gap"],
124
+ grid: [
125
+ "grid-auto-columns",
126
+ "grid-auto-flow",
127
+ "grid-auto-rows",
128
+ "grid-template-areas",
129
+ "grid-template-columns",
130
+ "grid-template-rows"
131
+ ],
132
+ "grid-area": [
133
+ "grid-row-start",
134
+ "grid-column-start",
135
+ "grid-row-end",
136
+ "grid-column-end"
137
+ ],
138
+ "grid-column": ["grid-column-end", "grid-column-start"],
139
+ "grid-row": ["grid-row-end", "grid-row-start"],
140
+ "grid-template": [
141
+ "grid-template-areas",
142
+ "grid-template-columns",
143
+ "grid-template-rows"
144
+ ],
145
+ "list-style": [
146
+ "list-style-image",
147
+ "list-style-position",
148
+ "list-style-type"
149
+ ],
150
+ margin: [
151
+ "margin-bottom",
152
+ "margin-left",
153
+ "margin-right",
154
+ "margin-top"
155
+ ],
156
+ mask: [
157
+ "mask-clip",
158
+ "mask-composite",
159
+ "mask-image",
160
+ "mask-mode",
161
+ "mask-origin",
162
+ "mask-position",
163
+ "mask-repeat",
164
+ "mask-size"
165
+ ],
166
+ offset: [
167
+ "offset-anchor",
168
+ "offset-distance",
169
+ "offset-path",
170
+ "offset-position",
171
+ "offset-rotate"
172
+ ],
173
+ outline: [
174
+ "outline-color",
175
+ "outline-style",
176
+ "outline-width"
177
+ ],
178
+ overflow: ["overflow-x", "overflow-y"],
179
+ padding: [
180
+ "padding-bottom",
181
+ "padding-left",
182
+ "padding-right",
183
+ "padding-top"
184
+ ],
185
+ "place-content": ["align-content", "justify-content"],
186
+ "place-items": ["align-items", "justify-items"],
187
+ "place-self": ["align-self", "justify-self"],
188
+ "scroll-margin": [
189
+ "scroll-margin-bottom",
190
+ "scroll-margin-left",
191
+ "scroll-margin-right",
192
+ "scroll-margin-top"
193
+ ],
194
+ "scroll-padding": [
195
+ "scroll-padding-bottom",
196
+ "scroll-padding-left",
197
+ "scroll-padding-right",
198
+ "scroll-padding-top"
199
+ ],
200
+ "text-decoration": [
201
+ "text-decoration-color",
202
+ "text-decoration-line",
203
+ "text-decoration-style",
204
+ "text-decoration-thickness"
205
+ ],
206
+ "text-emphasis": ["text-emphasis-color", "text-emphasis-style"],
207
+ transition: [
208
+ "transition-delay",
209
+ "transition-duration",
210
+ "transition-property",
211
+ "transition-timing-function"
212
+ ]
213
+ }).reduce((a, b) => [...a, ...b], []);
1
214
  /**
2
- * This list comes from:
3
- * https://github.com/callstack/linaria/blob/master/packages/atomic/src/processors/helpers/propertyPriority.ts
4
- */ const shorthandProperties = {
5
- // The `all` property resets everything, and should effectively have priority zero.
6
- // In practice, this can be achieved by using: div { all: ... } to have even less specificity, but to avoid duplicating all selectors, we just let it be
7
- // 'all': []
8
- animation: [
9
- 'animation-name',
10
- 'animation-duration',
11
- 'animation-timing-function',
12
- 'animation-delay',
13
- 'animation-iteration-count',
14
- 'animation-direction',
15
- 'animation-fill-mode',
16
- 'animation-play-state'
17
- ],
18
- background: [
19
- 'background-attachment',
20
- 'background-clip',
21
- 'background-color',
22
- 'background-image',
23
- 'background-origin',
24
- 'background-position',
25
- 'background-repeat',
26
- 'background-size'
27
- ],
28
- border: [
29
- 'border-color',
30
- 'border-style',
31
- 'border-width'
32
- ],
33
- 'border-block-end': [
34
- 'border-block-end-color',
35
- 'border-block-end-style',
36
- 'border-block-end-width'
37
- ],
38
- 'border-block-start': [
39
- 'border-block-start-color',
40
- 'border-block-start-style',
41
- 'border-block-start-width'
42
- ],
43
- 'border-bottom': [
44
- 'border-bottom-color',
45
- 'border-bottom-style',
46
- 'border-bottom-width'
47
- ],
48
- 'border-color': [
49
- 'border-bottom-color',
50
- 'border-left-color',
51
- 'border-right-color',
52
- 'border-top-color'
53
- ],
54
- 'border-image': [
55
- 'border-image-outset',
56
- 'border-image-repeat',
57
- 'border-image-slice',
58
- 'border-image-source',
59
- 'border-image-width'
60
- ],
61
- 'border-inline-end': [
62
- 'border-inline-end-color',
63
- 'border-inline-end-style',
64
- 'border-inline-end-width'
65
- ],
66
- 'border-inline-start': [
67
- 'border-inline-start-color',
68
- 'border-inline-start-style',
69
- 'border-inline-start-width'
70
- ],
71
- 'border-left': [
72
- 'border-left-color',
73
- 'border-left-style',
74
- 'border-left-width'
75
- ],
76
- 'border-radius': [
77
- 'border-top-left-radius',
78
- 'border-top-right-radius',
79
- 'border-bottom-right-radius',
80
- 'border-bottom-left-radius'
81
- ],
82
- 'border-right': [
83
- 'border-right-color',
84
- 'border-right-style',
85
- 'border-right-width'
86
- ],
87
- 'border-style': [
88
- 'border-bottom-style',
89
- 'border-left-style',
90
- 'border-right-style',
91
- 'border-top-style'
92
- ],
93
- 'border-top': [
94
- 'border-top-color',
95
- 'border-top-style',
96
- 'border-top-width'
97
- ],
98
- 'border-width': [
99
- 'border-bottom-width',
100
- 'border-left-width',
101
- 'border-right-width',
102
- 'border-top-width'
103
- ],
104
- 'column-rule': [
105
- 'column-rule-width',
106
- 'column-rule-style',
107
- 'column-rule-color'
108
- ],
109
- columns: [
110
- 'column-count',
111
- 'column-width'
112
- ],
113
- flex: [
114
- 'flex-grow',
115
- 'flex-shrink',
116
- 'flex-basis'
117
- ],
118
- 'flex-flow': [
119
- 'flex-direction',
120
- 'flex-wrap'
121
- ],
122
- font: [
123
- 'font-family',
124
- 'font-size',
125
- 'font-stretch',
126
- 'font-style',
127
- 'font-variant',
128
- 'font-weight',
129
- 'line-height'
130
- ],
131
- gap: [
132
- 'row-gap',
133
- 'column-gap'
134
- ],
135
- grid: [
136
- 'grid-auto-columns',
137
- 'grid-auto-flow',
138
- 'grid-auto-rows',
139
- 'grid-template-areas',
140
- 'grid-template-columns',
141
- 'grid-template-rows'
142
- ],
143
- 'grid-area': [
144
- 'grid-row-start',
145
- 'grid-column-start',
146
- 'grid-row-end',
147
- 'grid-column-end'
148
- ],
149
- 'grid-column': [
150
- 'grid-column-end',
151
- 'grid-column-start'
152
- ],
153
- 'grid-row': [
154
- 'grid-row-end',
155
- 'grid-row-start'
156
- ],
157
- 'grid-template': [
158
- 'grid-template-areas',
159
- 'grid-template-columns',
160
- 'grid-template-rows'
161
- ],
162
- 'list-style': [
163
- 'list-style-image',
164
- 'list-style-position',
165
- 'list-style-type'
166
- ],
167
- margin: [
168
- 'margin-bottom',
169
- 'margin-left',
170
- 'margin-right',
171
- 'margin-top'
172
- ],
173
- mask: [
174
- 'mask-clip',
175
- 'mask-composite',
176
- 'mask-image',
177
- 'mask-mode',
178
- 'mask-origin',
179
- 'mask-position',
180
- 'mask-repeat',
181
- 'mask-size'
182
- ],
183
- offset: [
184
- 'offset-anchor',
185
- 'offset-distance',
186
- 'offset-path',
187
- 'offset-position',
188
- 'offset-rotate'
189
- ],
190
- outline: [
191
- 'outline-color',
192
- 'outline-style',
193
- 'outline-width'
194
- ],
195
- overflow: [
196
- 'overflow-x',
197
- 'overflow-y'
198
- ],
199
- padding: [
200
- 'padding-bottom',
201
- 'padding-left',
202
- 'padding-right',
203
- 'padding-top'
204
- ],
205
- 'place-content': [
206
- 'align-content',
207
- 'justify-content'
208
- ],
209
- 'place-items': [
210
- 'align-items',
211
- 'justify-items'
212
- ],
213
- 'place-self': [
214
- 'align-self',
215
- 'justify-self'
216
- ],
217
- 'scroll-margin': [
218
- 'scroll-margin-bottom',
219
- 'scroll-margin-left',
220
- 'scroll-margin-right',
221
- 'scroll-margin-top'
222
- ],
223
- 'scroll-padding': [
224
- 'scroll-padding-bottom',
225
- 'scroll-padding-left',
226
- 'scroll-padding-right',
227
- 'scroll-padding-top'
228
- ],
229
- 'text-decoration': [
230
- 'text-decoration-color',
231
- 'text-decoration-line',
232
- 'text-decoration-style',
233
- 'text-decoration-thickness'
234
- ],
235
- 'text-emphasis': [
236
- 'text-emphasis-color',
237
- 'text-emphasis-style'
238
- ],
239
- transition: [
240
- 'transition-delay',
241
- 'transition-duration',
242
- 'transition-property',
243
- 'transition-timing-function'
244
- ]
245
- };
246
- const longhands = Object.values(shorthandProperties).reduce((a, b)=>[
247
- ...a,
248
- ...b
249
- ], []);
250
- /**
251
- * The concept here is that shorthand properties, such as "border" gets
252
- * a priority of one, while longhand properties, such as "border-color" gets
253
- * a priority of 2.
254
- *
255
- * Read more:
256
- * @see https://weser.io/blog/the-shorthand-longhand-problem-in-atomic-css
257
- * @see https://www.w3.org/TR/selectors-3/#specificity
258
- */ const getPropertyPriority = (property)=>longhands.includes(property) ? 2 : 1;
259
-
215
+ * The concept here is that shorthand properties, such as "border" gets
216
+ * a priority of one, while longhand properties, such as "border-color" gets
217
+ * a priority of 2.
218
+ *
219
+ * Read more:
220
+ * @see https://weser.io/blog/the-shorthand-longhand-problem-in-atomic-css
221
+ * @see https://www.w3.org/TR/selectors-3/#specificity
222
+ */
223
+ const getPropertyPriority = (property) => longhands.includes(property) ? 2 : 1;
224
+ //#endregion
260
225
  export { getPropertyPriority };
@@ -1,16 +1,15 @@
1
- 'use strict';
2
-
3
- // Modified from
4
- // https://github.com/styletron/styletron/blob/b552ddc5050a8cc5eec84a46a299d937d3bb0112/packages/styletron-engine-atomic/src/hyphenate-style-name.ts
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ //#region src/helpers/hyphenateProperty.ts
5
3
  const uppercasePattern = /[A-Z]/g;
6
4
  const msPattern = /^ms-/;
7
5
  const cssVarPattern = /^--/;
8
6
  const cache = {};
9
7
  function hyphenateProperty(property) {
10
- if (cssVarPattern.test(property)) {
11
- return property;
12
- }
13
- return property in cache ? cache[property] : cache[property] = property.replace(uppercasePattern, "-$&").toLowerCase().replace(msPattern, "-ms-");
8
+ if (cssVarPattern.test(property)) return property;
9
+ if (property in cache) return cache[property];
10
+ const hyphenated = property.replace(uppercasePattern, "-$&").toLowerCase().replace(msPattern, "-ms-");
11
+ cache[property] = hyphenated;
12
+ return hyphenated;
14
13
  }
15
-
14
+ //#endregion
16
15
  exports.hyphenateProperty = hyphenateProperty;
@@ -1,14 +1,17 @@
1
- // Modified from
2
- // https://github.com/styletron/styletron/blob/b552ddc5050a8cc5eec84a46a299d937d3bb0112/packages/styletron-engine-atomic/src/hyphenate-style-name.ts
1
+ import "node:path";
2
+ import "node:url";
3
+ import.meta.url;
4
+ //#region src/helpers/hyphenateProperty.ts
3
5
  const uppercasePattern = /[A-Z]/g;
4
6
  const msPattern = /^ms-/;
5
7
  const cssVarPattern = /^--/;
6
8
  const cache = {};
7
9
  function hyphenateProperty(property) {
8
- if (cssVarPattern.test(property)) {
9
- return property;
10
- }
11
- return property in cache ? cache[property] : cache[property] = property.replace(uppercasePattern, "-$&").toLowerCase().replace(msPattern, "-ms-");
10
+ if (cssVarPattern.test(property)) return property;
11
+ if (property in cache) return cache[property];
12
+ const hyphenated = property.replace(uppercasePattern, "-$&").toLowerCase().replace(msPattern, "-ms-");
13
+ cache[property] = hyphenated;
14
+ return hyphenated;
12
15
  }
13
-
16
+ //#endregion
14
17
  export { hyphenateProperty };
@@ -1,7 +1,7 @@
1
- 'use strict';
2
-
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ //#region src/helpers/isContainerQuery.ts
3
3
  function isContainerQuery(property) {
4
- return property.startsWith("@container");
4
+ return property.startsWith("@container");
5
5
  }
6
-
6
+ //#endregion
7
7
  exports.isContainerQuery = isContainerQuery;
@@ -1,5 +1,9 @@
1
+ import "node:path";
2
+ import "node:url";
3
+ import.meta.url;
4
+ //#region src/helpers/isContainerQuery.ts
1
5
  function isContainerQuery(property) {
2
- return property.startsWith("@container");
6
+ return property.startsWith("@container");
3
7
  }
4
-
8
+ //#endregion
5
9
  export { isContainerQuery };
@@ -1,7 +1,7 @@
1
- 'use strict';
2
-
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ //#region src/helpers/isMediaQuery.ts
3
3
  function isMediaQuery(property) {
4
- return property.startsWith('@media');
4
+ return property.startsWith("@media");
5
5
  }
6
-
6
+ //#endregion
7
7
  exports.isMediaQuery = isMediaQuery;
@@ -1,5 +1,9 @@
1
+ import "node:path";
2
+ import "node:url";
3
+ import.meta.url;
4
+ //#region src/helpers/isMediaQuery.ts
1
5
  function isMediaQuery(property) {
2
- return property.startsWith('@media');
6
+ return property.startsWith("@media");
3
7
  }
4
-
8
+ //#endregion
5
9
  export { isMediaQuery };
@@ -1,8 +1,8 @@
1
- 'use strict';
2
-
3
- const regex = /^([:\[>&])/;
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ //#region src/helpers/isNestedSelector.ts
3
+ const leadingCombinatorRegex = /^[:[>&+~\s]/;
4
4
  function isNestedSelector(property) {
5
- return regex.test(property);
5
+ return leadingCombinatorRegex.test(property) || property.includes("&");
6
6
  }
7
-
7
+ //#endregion
8
8
  exports.isNestedSelector = isNestedSelector;
@@ -1,6 +1,10 @@
1
- const regex = /^([:\[>&])/;
1
+ import "node:path";
2
+ import "node:url";
3
+ import.meta.url;
4
+ //#region src/helpers/isNestedSelector.ts
5
+ const leadingCombinatorRegex = /^[:[>&+~\s]/;
2
6
  function isNestedSelector(property) {
3
- return regex.test(property);
7
+ return leadingCombinatorRegex.test(property) || property.includes("&");
4
8
  }
5
-
9
+ //#endregion
6
10
  export { isNestedSelector };
@@ -1,7 +1,7 @@
1
- 'use strict';
2
-
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ //#region src/helpers/isObject.ts
3
3
  function isObject(val) {
4
- return val != null && typeof val === 'object' && Array.isArray(val) === false;
4
+ return val != null && typeof val === "object" && Array.isArray(val) === false;
5
5
  }
6
-
6
+ //#endregion
7
7
  exports.isObject = isObject;
@@ -1,5 +1,9 @@
1
+ import "node:path";
2
+ import "node:url";
3
+ import.meta.url;
4
+ //#region src/helpers/isObject.ts
1
5
  function isObject(val) {
2
- return val != null && typeof val === 'object' && Array.isArray(val) === false;
6
+ return val != null && typeof val === "object" && Array.isArray(val) === false;
3
7
  }
4
-
8
+ //#endregion
5
9
  export { isObject };
@@ -1,7 +1,7 @@
1
- 'use strict';
2
-
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ //#region src/helpers/isSupportsQuery.ts
3
3
  function isSupportsQuery(property) {
4
- return property.startsWith("@supports");
4
+ return property.startsWith("@supports");
5
5
  }
6
-
6
+ //#endregion
7
7
  exports.isSupportsQuery = isSupportsQuery;
@@ -1,5 +1,9 @@
1
+ import "node:path";
2
+ import "node:url";
3
+ import.meta.url;
4
+ //#region src/helpers/isSupportsQuery.ts
1
5
  function isSupportsQuery(property) {
2
- return property.startsWith("@supports");
6
+ return property.startsWith("@supports");
3
7
  }
4
-
8
+ //#endregion
5
9
  export { isSupportsQuery };
@@ -1,15 +1,11 @@
1
- 'use strict';
2
-
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ //#region src/helpers/normalizeCSSVarsProperty.ts
3
3
  const regex = /var\(([^,]+).*\)/;
4
4
  function normalizeCSSVarsProperty(property) {
5
- if (!property.startsWith('var(')) {
6
- return property;
7
- }
8
- const matches = property.match(regex);
9
- if (!matches) {
10
- return property;
11
- }
12
- return matches[1];
5
+ if (!property.startsWith("var(")) return property;
6
+ const matches = property.match(regex);
7
+ if (!matches) return property;
8
+ return matches[1];
13
9
  }
14
-
10
+ //#endregion
15
11
  exports.normalizeCSSVarsProperty = normalizeCSSVarsProperty;