boss-css 0.0.1 → 0.0.3

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 (268) hide show
  1. package/README.md +1 -0
  2. package/dist/_virtual/rolldown_runtime.cjs +43 -0
  3. package/dist/_virtual/rolldown_runtime.mjs +20 -0
  4. package/dist/api/browser.cjs +54 -0
  5. package/dist/api/browser.mjs +48 -0
  6. package/dist/api/config.cjs +94 -0
  7. package/dist/api/config.mjs +91 -0
  8. package/dist/api/css.cjs +304 -0
  9. package/dist/api/css.mjs +303 -0
  10. package/dist/api/dictionary.cjs +218 -0
  11. package/dist/api/dictionary.mjs +215 -0
  12. package/dist/api/file/dts.cjs +21 -0
  13. package/dist/api/file/dts.mjs +21 -0
  14. package/dist/api/file/file.cjs +123 -0
  15. package/dist/api/file/file.mjs +120 -0
  16. package/dist/api/file/js.cjs +118 -0
  17. package/dist/api/file/js.mjs +116 -0
  18. package/dist/api/names.cjs +52 -0
  19. package/dist/api/names.mjs +46 -0
  20. package/dist/api/noopCss.cjs +37 -0
  21. package/dist/api/noopCss.mjs +36 -0
  22. package/dist/api/propTree.cjs +54 -0
  23. package/dist/api/propTree.mjs +48 -0
  24. package/dist/api/server.cjs +112 -0
  25. package/dist/api/server.mjs +106 -0
  26. package/dist/cli/build.cjs +1 -0
  27. package/dist/cli/build.mjs +3 -0
  28. package/dist/cli/index.cjs +30 -0
  29. package/dist/cli/index.mjs +29 -0
  30. package/dist/cli/tasks/build.cjs +24 -0
  31. package/dist/cli/tasks/build.mjs +23 -0
  32. package/dist/cli/tasks/choose.cjs +47 -0
  33. package/dist/cli/tasks/choose.mjs +46 -0
  34. package/dist/cli/tasks/compile.cjs +68 -0
  35. package/dist/cli/tasks/compile.mjs +67 -0
  36. package/dist/cli/tasks/dev.cjs +51 -0
  37. package/dist/cli/tasks/dev.mjs +48 -0
  38. package/dist/cli/tasks/init.cjs +1835 -0
  39. package/dist/cli/tasks/init.mjs +1831 -0
  40. package/dist/cli/tasks/watch.cjs +38 -0
  41. package/dist/cli/tasks/watch.mjs +37 -0
  42. package/dist/cli/templates/init.cjs +82 -0
  43. package/dist/cli/templates/init.mjs +78 -0
  44. package/dist/cli/types.cjs +13 -0
  45. package/dist/cli/types.mjs +13 -0
  46. package/dist/cli/utils.cjs +43 -0
  47. package/dist/cli/utils.mjs +41 -0
  48. package/dist/compile/classname-strategy.cjs +79 -0
  49. package/dist/compile/classname-strategy.mjs +77 -0
  50. package/dist/compile/classname.cjs +366 -0
  51. package/dist/compile/classname.mjs +360 -0
  52. package/dist/compile/index.cjs +238 -0
  53. package/dist/compile/index.mjs +235 -0
  54. package/dist/compile/jsx.cjs +803 -0
  55. package/dist/compile/jsx.mjs +800 -0
  56. package/dist/compile/prepared.cjs +88 -0
  57. package/dist/compile/prepared.mjs +87 -0
  58. package/dist/compile/runtime.cjs +33 -0
  59. package/dist/compile/runtime.mjs +32 -0
  60. package/dist/compile/transform.cjs +371 -0
  61. package/dist/compile/transform.mjs +369 -0
  62. package/dist/cx/index.cjs +93 -0
  63. package/dist/cx/index.mjs +85 -0
  64. package/dist/detect-fw/index.cjs +384 -0
  65. package/dist/detect-fw/index.mjs +379 -0
  66. package/dist/dev/client.cjs +39 -0
  67. package/dist/dev/client.mjs +38 -0
  68. package/dist/dev/plugin/browser.cjs +11 -0
  69. package/dist/dev/plugin/browser.mjs +9 -0
  70. package/dist/dev/plugin/server.cjs +86 -0
  71. package/dist/dev/plugin/server.mjs +78 -0
  72. package/dist/dev/port.cjs +46 -0
  73. package/dist/dev/port.mjs +43 -0
  74. package/dist/dev/runtime.cjs +28 -0
  75. package/dist/dev/runtime.mjs +29 -0
  76. package/dist/dev/server.cjs +808 -0
  77. package/dist/dev/server.mjs +805 -0
  78. package/dist/dev/shared.cjs +6 -0
  79. package/dist/dev/shared.mjs +5 -0
  80. package/dist/eslint-plugin/index.cjs +66 -0
  81. package/dist/eslint-plugin/index.mjs +66 -0
  82. package/dist/eslint-plugin/rules/classnames-only.cjs +68 -0
  83. package/dist/eslint-plugin/rules/classnames-only.mjs +68 -0
  84. package/dist/eslint-plugin/rules/format-classnames.cjs +137 -0
  85. package/dist/eslint-plugin/rules/format-classnames.mjs +136 -0
  86. package/dist/eslint-plugin/rules/no-unknown-classes.cjs +119 -0
  87. package/dist/eslint-plugin/rules/no-unknown-classes.mjs +119 -0
  88. package/dist/eslint-plugin/rules/prefer-classnames.cjs +69 -0
  89. package/dist/eslint-plugin/rules/prefer-classnames.mjs +69 -0
  90. package/dist/eslint-plugin/rules/prefer-token-values.cjs +197 -0
  91. package/dist/eslint-plugin/rules/prefer-token-values.mjs +197 -0
  92. package/dist/eslint-plugin/rules/props-only.cjs +115 -0
  93. package/dist/eslint-plugin/rules/props-only.mjs +115 -0
  94. package/dist/eslint-plugin/rules/redundant-cx.cjs +66 -0
  95. package/dist/eslint-plugin/rules/redundant-cx.mjs +66 -0
  96. package/dist/eslint-plugin/rules/require-prop-functions.cjs +130 -0
  97. package/dist/eslint-plugin/rules/require-prop-functions.mjs +130 -0
  98. package/dist/eslint-plugin/utils/api.cjs +30 -0
  99. package/dist/eslint-plugin/utils/api.mjs +29 -0
  100. package/dist/eslint-plugin/utils/ast.cjs +119 -0
  101. package/dist/eslint-plugin/utils/ast.mjs +112 -0
  102. package/dist/eslint-plugin/utils/boss-classes.cjs +185 -0
  103. package/dist/eslint-plugin/utils/boss-classes.mjs +175 -0
  104. package/dist/eslint-plugin/utils/defaults.cjs +99 -0
  105. package/dist/eslint-plugin/utils/defaults.mjs +93 -0
  106. package/dist/eslint-plugin/utils/format.cjs +20 -0
  107. package/dist/eslint-plugin/utils/format.mjs +19 -0
  108. package/dist/eslint-plugin/utils/order.cjs +76 -0
  109. package/dist/eslint-plugin/utils/order.mjs +76 -0
  110. package/dist/eslint-plugin/utils/property-order.cjs +449 -0
  111. package/dist/eslint-plugin/utils/property-order.mjs +448 -0
  112. package/dist/eslint-plugin/utils/static.cjs +36 -0
  113. package/dist/eslint-plugin/utils/static.mjs +35 -0
  114. package/dist/fontsource/directory.cjs +39588 -0
  115. package/dist/fontsource/directory.mjs +39587 -0
  116. package/dist/fontsource/server.cjs +291 -0
  117. package/dist/fontsource/server.mjs +282 -0
  118. package/dist/index.cjs +10 -0
  119. package/dist/index.mjs +6 -0
  120. package/dist/log/browser.cjs +28 -0
  121. package/dist/log/browser.mjs +28 -0
  122. package/dist/log/server.cjs +32 -0
  123. package/dist/log/server.mjs +30 -0
  124. package/dist/merge/index.cjs +590 -0
  125. package/dist/merge/index.mjs +586 -0
  126. package/dist/native/browser.cjs +78 -0
  127. package/dist/native/browser.mjs +77 -0
  128. package/dist/native/server.cjs +180 -0
  129. package/dist/native/server.mjs +176 -0
  130. package/dist/native/styleTypes.cjs +168 -0
  131. package/dist/native/styleTypes.mjs +164 -0
  132. package/dist/parser/classname/server.cjs +239 -0
  133. package/dist/parser/classname/server.mjs +232 -0
  134. package/dist/parser/jsx/browser.cjs +66 -0
  135. package/dist/parser/jsx/browser.mjs +63 -0
  136. package/dist/parser/jsx/extractCode.cjs +99 -0
  137. package/dist/parser/jsx/extractCode.mjs +98 -0
  138. package/dist/parser/jsx/extractPrepared.cjs +123 -0
  139. package/dist/parser/jsx/extractPrepared.mjs +122 -0
  140. package/dist/parser/jsx/extractProps.cjs +234 -0
  141. package/dist/parser/jsx/extractProps.mjs +232 -0
  142. package/dist/parser/jsx/isDOMProp.cjs +17 -0
  143. package/dist/parser/jsx/isDOMProp.mjs +15 -0
  144. package/dist/parser/jsx/native.cjs +110 -0
  145. package/dist/parser/jsx/native.mjs +108 -0
  146. package/dist/parser/jsx/runtime.cjs +4 -0
  147. package/dist/parser/jsx/runtime.mjs +3 -0
  148. package/dist/parser/jsx/server.cjs +278 -0
  149. package/dist/parser/jsx/server.mjs +268 -0
  150. package/dist/postcss/index.cjs +16 -0
  151. package/dist/postcss/index.mjs +16 -0
  152. package/dist/prop/at/runtime-only.cjs +90 -0
  153. package/dist/prop/at/runtime-only.mjs +88 -0
  154. package/dist/prop/at/server.cjs +282 -0
  155. package/dist/prop/at/server.mjs +268 -0
  156. package/dist/prop/at/shared.cjs +153 -0
  157. package/dist/prop/at/shared.mjs +144 -0
  158. package/dist/prop/bosswind/browser.cjs +18 -0
  159. package/dist/prop/bosswind/browser.mjs +16 -0
  160. package/dist/prop/bosswind/runtime-only.cjs +18 -0
  161. package/dist/prop/bosswind/runtime-only.mjs +16 -0
  162. package/dist/prop/bosswind/server.cjs +81 -0
  163. package/dist/prop/bosswind/server.mjs +72 -0
  164. package/dist/prop/bosswind/shared.cjs +861 -0
  165. package/dist/prop/bosswind/shared.mjs +855 -0
  166. package/dist/prop/bosswind/tailwind-theme.cjs +703 -0
  167. package/dist/prop/bosswind/tailwind-theme.mjs +702 -0
  168. package/dist/prop/child/runtime-only.cjs +18 -0
  169. package/dist/prop/child/runtime-only.mjs +15 -0
  170. package/dist/prop/child/server.cjs +81 -0
  171. package/dist/prop/child/server.mjs +72 -0
  172. package/dist/prop/css/getDtsTemplate.cjs +65 -0
  173. package/dist/prop/css/getDtsTemplate.mjs +63 -0
  174. package/dist/prop/css/runtime-only.cjs +14 -0
  175. package/dist/prop/css/runtime-only.mjs +13 -0
  176. package/dist/prop/css/server.cjs +99 -0
  177. package/dist/prop/css/server.mjs +90 -0
  178. package/dist/prop/pseudo/runtime-only.cjs +23 -0
  179. package/dist/prop/pseudo/runtime-only.mjs +21 -0
  180. package/dist/prop/pseudo/server.cjs +91 -0
  181. package/dist/prop/pseudo/server.mjs +82 -0
  182. package/dist/prop/pseudo/shared.cjs +61 -0
  183. package/dist/prop/pseudo/shared.mjs +60 -0
  184. package/dist/reset/server.cjs +34 -0
  185. package/dist/reset/server.mjs +26 -0
  186. package/dist/runtime/index.cjs +119 -0
  187. package/dist/runtime/index.mjs +118 -0
  188. package/dist/runtime/preact.cjs +4 -0
  189. package/dist/runtime/preact.mjs +3 -0
  190. package/dist/runtime/qwik.cjs +21 -0
  191. package/dist/runtime/qwik.mjs +18 -0
  192. package/dist/runtime/react.cjs +4 -0
  193. package/dist/runtime/react.mjs +3 -0
  194. package/dist/runtime/solid.cjs +15 -0
  195. package/dist/runtime/solid.mjs +14 -0
  196. package/dist/runtime/stencil.cjs +25 -0
  197. package/dist/runtime/stencil.mjs +21 -0
  198. package/dist/runtime/style.cjs +14 -0
  199. package/dist/runtime/style.mjs +13 -0
  200. package/dist/shared/boundaries.cjs +288 -0
  201. package/dist/shared/boundaries.mjs +285 -0
  202. package/dist/shared/customCss.cjs +212 -0
  203. package/dist/shared/customCss.mjs +211 -0
  204. package/dist/shared/debug.cjs +76 -0
  205. package/dist/shared/debug.mjs +74 -0
  206. package/dist/shared/file.cjs +21 -0
  207. package/dist/shared/file.mjs +19 -0
  208. package/dist/shared/framework.cjs +10 -0
  209. package/dist/shared/framework.mjs +9 -0
  210. package/dist/shared/json.cjs +58 -0
  211. package/dist/shared/json.mjs +57 -0
  212. package/dist/shared/types.cjs +11 -0
  213. package/dist/shared/types.mjs +10 -0
  214. package/dist/strategy/classic/runtime-only.cjs +190 -0
  215. package/dist/strategy/classic/runtime-only.mjs +186 -0
  216. package/dist/strategy/classname-first/runtime-only.cjs +138 -0
  217. package/dist/strategy/classname-first/runtime-only.mjs +134 -0
  218. package/dist/strategy/classname-first/server.cjs +139 -0
  219. package/dist/strategy/classname-first/server.mjs +133 -0
  220. package/dist/strategy/classname-only/server.cjs +43 -0
  221. package/dist/strategy/classname-only/server.mjs +35 -0
  222. package/dist/strategy/inline-first/browser.cjs +61 -0
  223. package/dist/strategy/inline-first/browser.mjs +58 -0
  224. package/dist/strategy/inline-first/runtime-only.cjs +159 -0
  225. package/dist/strategy/inline-first/runtime-only.mjs +155 -0
  226. package/dist/strategy/inline-first/server.cjs +92 -0
  227. package/dist/strategy/inline-first/server.mjs +83 -0
  228. package/dist/strategy/runtime/runtime-only.cjs +24 -0
  229. package/dist/strategy/runtime/runtime-only.mjs +22 -0
  230. package/dist/strategy/runtime/server.cjs +72 -0
  231. package/dist/strategy/runtime/server.mjs +63 -0
  232. package/dist/strategy/runtime-only/css.cjs +183 -0
  233. package/dist/strategy/runtime-only/css.mjs +181 -0
  234. package/dist/tasks/build.cjs +88 -0
  235. package/dist/tasks/build.mjs +84 -0
  236. package/dist/tasks/compile.cjs +12 -0
  237. package/dist/tasks/compile.mjs +12 -0
  238. package/dist/tasks/postcss.cjs +116 -0
  239. package/dist/tasks/postcss.mjs +113 -0
  240. package/dist/tasks/session.cjs +46 -0
  241. package/dist/tasks/session.mjs +42 -0
  242. package/dist/tasks/watch.cjs +102 -0
  243. package/dist/tasks/watch.mjs +99 -0
  244. package/dist/transform/cache.cjs +24 -0
  245. package/dist/transform/cache.mjs +21 -0
  246. package/dist/transform/processFile.cjs +26 -0
  247. package/dist/transform/processFile.mjs +24 -0
  248. package/dist/use/token/browser.cjs +65 -0
  249. package/dist/use/token/browser.mjs +61 -0
  250. package/dist/use/token/runtime-only.cjs +245 -0
  251. package/dist/use/token/runtime-only.mjs +239 -0
  252. package/dist/use/token/server.cjs +325 -0
  253. package/dist/use/token/server.mjs +313 -0
  254. package/dist/use/token/vars.cjs +47 -0
  255. package/dist/use/token/vars.mjs +46 -0
  256. package/package.json +300 -4
  257. package/src/api/config.d.ts +1 -0
  258. package/src/fontsource/types.d.ts +50 -0
  259. package/src/packages/document-create-element/createElement.browser.js +3 -0
  260. package/src/packages/document-create-element/createElement.js +7 -0
  261. package/src/packages/document-create-element/package.json +17 -0
  262. package/src/packages/is-css-prop/browser.js +13 -0
  263. package/src/packages/is-css-prop/index.js +13 -0
  264. package/src/packages/is-css-prop/package-lock.json +52 -0
  265. package/src/packages/is-css-prop/package.json +17 -0
  266. package/src/prop/css/csstype.json +4387 -0
  267. package/src/prop/css/package.json +3 -0
  268. package/src/reset/reset.css +259 -0
@@ -0,0 +1,448 @@
1
+ //#region src/eslint-plugin/utils/property-order.js
2
+ const propertyOrder = [
3
+ "composes",
4
+ "all",
5
+ "position",
6
+ "inset",
7
+ "inset-block",
8
+ "inset-block-start",
9
+ "inset-block-end",
10
+ "inset-inline",
11
+ "inset-inline-start",
12
+ "inset-inline-end",
13
+ "top",
14
+ "right",
15
+ "bottom",
16
+ "left",
17
+ "z-index",
18
+ "float",
19
+ "clear",
20
+ "box-sizing",
21
+ "display",
22
+ "visibility",
23
+ "flex",
24
+ "flex-grow",
25
+ "flex-shrink",
26
+ "flex-basis",
27
+ "flex-flow",
28
+ "flex-direction",
29
+ "flex-wrap",
30
+ "-webkit-box-orient",
31
+ "grid",
32
+ "grid-area",
33
+ "grid-template",
34
+ "grid-template-areas",
35
+ "grid-template-rows",
36
+ "grid-template-columns",
37
+ "grid-row",
38
+ "grid-row-start",
39
+ "grid-row-end",
40
+ "grid-column",
41
+ "grid-column-start",
42
+ "grid-column-end",
43
+ "grid-auto-rows",
44
+ "grid-auto-columns",
45
+ "grid-auto-flow",
46
+ "grid-gap",
47
+ "grid-row-gap",
48
+ "grid-column-gap",
49
+ "gap",
50
+ "row-gap",
51
+ "column-gap",
52
+ "place-content",
53
+ "place-items",
54
+ "place-self",
55
+ "align-content",
56
+ "align-items",
57
+ "align-self",
58
+ "justify-content",
59
+ "justify-items",
60
+ "justify-self",
61
+ "order",
62
+ "inline-size",
63
+ "min-inline-size",
64
+ "max-inline-size",
65
+ "width",
66
+ "min-width",
67
+ "max-width",
68
+ "block-size",
69
+ "min-block-size",
70
+ "max-block-size",
71
+ "height",
72
+ "min-height",
73
+ "max-height",
74
+ "aspect-ratio",
75
+ "contain-intrinsic-inline-size",
76
+ "contain-intrinsic-block-size",
77
+ "contain-intrinsic-size",
78
+ "contain-intrinsic-width",
79
+ "contain-intrinsic-height",
80
+ "padding",
81
+ "padding-block",
82
+ "padding-block-start",
83
+ "padding-block-end",
84
+ "padding-inline",
85
+ "padding-inline-start",
86
+ "padding-inline-end",
87
+ "padding-top",
88
+ "padding-right",
89
+ "padding-bottom",
90
+ "padding-left",
91
+ "margin",
92
+ "margin-block",
93
+ "margin-block-start",
94
+ "margin-block-end",
95
+ "margin-inline",
96
+ "margin-inline-start",
97
+ "margin-inline-end",
98
+ "margin-top",
99
+ "margin-right",
100
+ "margin-bottom",
101
+ "margin-left",
102
+ "contain",
103
+ "container",
104
+ "container-name",
105
+ "container-type",
106
+ "content-visibility",
107
+ "overflow",
108
+ "overflow-inline",
109
+ "overflow-block",
110
+ "overflow-x",
111
+ "overflow-y",
112
+ "scrollbar-gutter",
113
+ "-webkit-overflow-scrolling",
114
+ "-ms-overflow-x",
115
+ "-ms-overflow-y",
116
+ "-ms-overflow-style",
117
+ "text-overflow",
118
+ "-webkit-line-clamp",
119
+ "line-clamp",
120
+ "scroll-behaviour",
121
+ "overscroll-behavior",
122
+ "overscroll-behavior-inline",
123
+ "overscroll-behavior-block",
124
+ "overscroll-behavior-x",
125
+ "overscroll-behavior-y",
126
+ "font",
127
+ "font-family",
128
+ "font-size",
129
+ "font-size-adjust",
130
+ "font-variation-settings",
131
+ "font-style",
132
+ "font-weight",
133
+ "font-optical-sizing",
134
+ "font-stretch",
135
+ "font-feature-settings",
136
+ "font-kerning",
137
+ "font-variant",
138
+ "font-variant-ligatures",
139
+ "font-variant-caps",
140
+ "font-variant-alternates",
141
+ "font-variant-numeric",
142
+ "font-variant-east-asian",
143
+ "font-variant-position",
144
+ "-webkit-font-smoothing",
145
+ "-moz-osx-font-smoothing",
146
+ "font-smooth",
147
+ "font-synthesis",
148
+ "font-synthesis-weight",
149
+ "font-synthesis-style",
150
+ "font-synthesis-small-caps",
151
+ "line-height",
152
+ "vertical-align",
153
+ "alignment-baseline",
154
+ "baseline-shift",
155
+ "dominant-baseline",
156
+ "base-palette",
157
+ "override-colors",
158
+ "font-palette",
159
+ "color",
160
+ "-webkit-text-fill-color",
161
+ "-webkit-text-stroke",
162
+ "-webkit-text-stroke-width",
163
+ "-webkit-text-stroke-color",
164
+ "text-align",
165
+ "text-align-last",
166
+ "text-justify",
167
+ "text-indent",
168
+ "text-transform",
169
+ "word-spacing",
170
+ "letter-spacing",
171
+ "hyphens",
172
+ "hyphenate-character",
173
+ "line-break",
174
+ "word-break",
175
+ "text-wrap",
176
+ "text-wrap-mode",
177
+ "text-wrap-style",
178
+ "word-wrap",
179
+ "overflow-wrap",
180
+ "tab-size",
181
+ "white-space",
182
+ "white-space-collapse",
183
+ "text-emphasis",
184
+ "text-emphasis-color",
185
+ "text-emphasis-style",
186
+ "text-emphasis-position",
187
+ "text-decoration",
188
+ "text-decoration-line",
189
+ "text-decoration-thickness",
190
+ "text-decoration-style",
191
+ "text-decoration-color",
192
+ "text-decoration-skip-ink",
193
+ "text-underline-position",
194
+ "text-underline-offset",
195
+ "text-shadow",
196
+ "ruby-position",
197
+ "ruby-align",
198
+ "src",
199
+ "font-display",
200
+ "unicode-range",
201
+ "size-adjust",
202
+ "ascent-override",
203
+ "descent-override",
204
+ "line-gap-override",
205
+ "appearance",
206
+ "accent-color",
207
+ "pointer-events",
208
+ "-ms-touch-action",
209
+ "touch-action",
210
+ "cursor",
211
+ "caret-color",
212
+ "zoom",
213
+ "resize",
214
+ "user-select",
215
+ "-webkit-user-select",
216
+ "nav-index",
217
+ "nav-up",
218
+ "nav-right",
219
+ "nav-down",
220
+ "nav-left",
221
+ "outline",
222
+ "outline-width",
223
+ "outline-style",
224
+ "outline-color",
225
+ "outline-offset",
226
+ "color-scheme",
227
+ "forced-color-adjust",
228
+ "print-color-adjust",
229
+ "table-layout",
230
+ "empty-cells",
231
+ "caption-side",
232
+ "border-spacing",
233
+ "border-collapse",
234
+ "content",
235
+ "quotes",
236
+ "list-style",
237
+ "list-style-position",
238
+ "list-style-type",
239
+ "list-style-image",
240
+ "counter-reset",
241
+ "counter-set",
242
+ "counter-increment",
243
+ "scroll-snap-type",
244
+ "scroll-snap-align",
245
+ "scroll-snap-stop",
246
+ "scroll-padding",
247
+ "scroll-padding-block",
248
+ "scroll-padding-block-start",
249
+ "scroll-padding-block-end",
250
+ "scroll-padding-inline",
251
+ "scroll-padding-inline-start",
252
+ "scroll-padding-inline-end",
253
+ "scroll-padding-top",
254
+ "scroll-padding-right",
255
+ "scroll-padding-bottom",
256
+ "scroll-padding-left",
257
+ "scroll-margin",
258
+ "scroll-margin-block",
259
+ "scroll-margin-block-start",
260
+ "scroll-margin-block-end",
261
+ "scroll-margin-inline",
262
+ "scroll-margin-inline-start",
263
+ "scroll-margin-inline-end",
264
+ "scroll-margin-top",
265
+ "scroll-margin-right",
266
+ "scroll-margin-bottom",
267
+ "scroll-margin-left",
268
+ "scrollbar-color",
269
+ "scrollbar-width",
270
+ "object-fit",
271
+ "object-position",
272
+ "-ms-interpolation-mode",
273
+ "image-orientation",
274
+ "image-rendering",
275
+ "image-resolution",
276
+ "background",
277
+ "background-color",
278
+ "background-image",
279
+ "-ms-filter:\\'progid:DXImageTransform.Microsoft.gradient",
280
+ "filter:progid:DXImageTransform.Microsoft.gradient",
281
+ "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader",
282
+ "background-repeat",
283
+ "background-attachment",
284
+ "background-position",
285
+ "background-position-x",
286
+ "background-position-y",
287
+ "background-clip",
288
+ "background-origin",
289
+ "background-size",
290
+ "border",
291
+ "border-color",
292
+ "border-style",
293
+ "border-width",
294
+ "border-block",
295
+ "border-block-start",
296
+ "border-block-start-color",
297
+ "border-block-start-style",
298
+ "border-block-start-width",
299
+ "border-block-end",
300
+ "border-block-end-color",
301
+ "border-block-end-style",
302
+ "border-block-end-width",
303
+ "border-inline",
304
+ "border-inline-start",
305
+ "border-inline-start-color",
306
+ "border-inline-start-style",
307
+ "border-inline-start-width",
308
+ "border-inline-end",
309
+ "border-inline-end-color",
310
+ "border-inline-end-style",
311
+ "border-inline-end-width",
312
+ "border-top",
313
+ "border-top-color",
314
+ "border-top-style",
315
+ "border-top-width",
316
+ "border-right",
317
+ "border-right-color",
318
+ "border-right-style",
319
+ "border-right-width",
320
+ "border-bottom",
321
+ "border-bottom-color",
322
+ "border-bottom-style",
323
+ "border-bottom-width",
324
+ "border-left",
325
+ "border-left-color",
326
+ "border-left-style",
327
+ "border-left-width",
328
+ "border-radius",
329
+ "border-start-start-radius",
330
+ "border-start-end-radius",
331
+ "border-end-start-radius",
332
+ "border-end-end-radius",
333
+ "border-top-left-radius",
334
+ "border-top-right-radius",
335
+ "border-bottom-right-radius",
336
+ "border-bottom-left-radius",
337
+ "border-image",
338
+ "border-image-source",
339
+ "border-image-slice",
340
+ "border-image-width",
341
+ "border-image-outset",
342
+ "border-image-repeat",
343
+ "box-shadow",
344
+ "background-blend-mode",
345
+ "isolation",
346
+ "mix-blend-mode",
347
+ "filter:progid:DXImageTransform.Microsoft.Alpha(Opacity",
348
+ "-ms-filter:\\'progid:DXImageTransform.Microsoft.Alpha",
349
+ "opacity",
350
+ "filter",
351
+ "backdrop-filter",
352
+ "clip",
353
+ "clip-path",
354
+ "clip-rule",
355
+ "mask-border",
356
+ "mask-border-source",
357
+ "mask-border-slice",
358
+ "mask-border-width",
359
+ "mask-border-outset",
360
+ "mask-border-repeat",
361
+ "mask-border-mode",
362
+ "mask",
363
+ "mask-image",
364
+ "mask-mode",
365
+ "mask-repeat",
366
+ "mask-position",
367
+ "mask-clip",
368
+ "mask-origin",
369
+ "mask-size",
370
+ "mask-composite",
371
+ "mask-type",
372
+ "shape-outside",
373
+ "shape-image-threshold",
374
+ "shape-margin",
375
+ "direction",
376
+ "unicode-bidi",
377
+ "writing-mode",
378
+ "text-orientation",
379
+ "text-combine-upright",
380
+ "text-anchor",
381
+ "fill",
382
+ "fill-rule",
383
+ "fill-opacity",
384
+ "stroke",
385
+ "stroke-opacity",
386
+ "stroke-width",
387
+ "stroke-linecap",
388
+ "stroke-linejoin",
389
+ "stroke-miterlimit",
390
+ "stroke-dasharray",
391
+ "stroke-dashoffset",
392
+ "color-interpolation",
393
+ "color-interpolation-filters",
394
+ "flood-color",
395
+ "flood-opacity",
396
+ "lighting-color",
397
+ "marker",
398
+ "marker-start",
399
+ "marker-mid",
400
+ "marker-end",
401
+ "stop-color",
402
+ "stop-opacity",
403
+ "paint-order",
404
+ "shape-rendering",
405
+ "text-rendering",
406
+ "transform",
407
+ "transform-origin",
408
+ "transform-box",
409
+ "transform-style",
410
+ "rotate",
411
+ "scale",
412
+ "translate",
413
+ "perspective",
414
+ "perspective-origin",
415
+ "backface-visibility",
416
+ "transition",
417
+ "transition-delay",
418
+ "transition-timing-function",
419
+ "transition-duration",
420
+ "transition-property",
421
+ "view-transition-name",
422
+ "view-transition-class",
423
+ "animation",
424
+ "animation-name",
425
+ "animation-duration",
426
+ "animation-timing-function",
427
+ "animation-delay",
428
+ "animation-iteration-count",
429
+ "animation-direction",
430
+ "animation-fill-mode",
431
+ "animation-play-state",
432
+ "animation-composition",
433
+ "offset",
434
+ "offset-position",
435
+ "offset-path",
436
+ "offset-distance",
437
+ "offset-rotate",
438
+ "offset-anchor",
439
+ "will-change",
440
+ "break-before",
441
+ "break-after",
442
+ "break-inside",
443
+ "widows",
444
+ "orphans"
445
+ ];
446
+
447
+ //#endregion
448
+ export { propertyOrder };
@@ -0,0 +1,36 @@
1
+
2
+ //#region src/eslint-plugin/utils/static.js
3
+ const unwrapExpression = (node) => {
4
+ if (!node) return node;
5
+ switch (node.type) {
6
+ case "JSXExpressionContainer": return unwrapExpression(node.expression);
7
+ case "ChainExpression": return unwrapExpression(node.expression);
8
+ case "ParenthesizedExpression": return unwrapExpression(node.expression);
9
+ case "TSAsExpression":
10
+ case "TSTypeAssertion":
11
+ case "TSNonNullExpression": return unwrapExpression(node.expression);
12
+ default: return node;
13
+ }
14
+ };
15
+ const isStaticValue = (node) => {
16
+ const resolved = unwrapExpression(node);
17
+ if (!resolved) return true;
18
+ if (resolved.type === "Literal" && typeof resolved.value !== "undefined") return true;
19
+ if (resolved.type === "StringLiteral") return true;
20
+ if (resolved.type === "TemplateLiteral") return resolved.expressions.length === 0;
21
+ if (resolved.type === "ArrayExpression") return resolved.elements.every((element) => isStaticValue(element));
22
+ if (resolved.type === "ObjectExpression") {
23
+ for (const property of resolved.properties) {
24
+ if (!property) return false;
25
+ if (property.type === "SpreadElement") return false;
26
+ if (property.type !== "Property") return false;
27
+ if (!isStaticValue(property.value)) return false;
28
+ }
29
+ return true;
30
+ }
31
+ if (resolved.type === "UnaryExpression") return isStaticValue(resolved.argument);
32
+ return false;
33
+ };
34
+
35
+ //#endregion
36
+ exports.isStaticValue = isStaticValue;
@@ -0,0 +1,35 @@
1
+ //#region src/eslint-plugin/utils/static.js
2
+ const unwrapExpression = (node) => {
3
+ if (!node) return node;
4
+ switch (node.type) {
5
+ case "JSXExpressionContainer": return unwrapExpression(node.expression);
6
+ case "ChainExpression": return unwrapExpression(node.expression);
7
+ case "ParenthesizedExpression": return unwrapExpression(node.expression);
8
+ case "TSAsExpression":
9
+ case "TSTypeAssertion":
10
+ case "TSNonNullExpression": return unwrapExpression(node.expression);
11
+ default: return node;
12
+ }
13
+ };
14
+ const isStaticValue = (node) => {
15
+ const resolved = unwrapExpression(node);
16
+ if (!resolved) return true;
17
+ if (resolved.type === "Literal" && typeof resolved.value !== "undefined") return true;
18
+ if (resolved.type === "StringLiteral") return true;
19
+ if (resolved.type === "TemplateLiteral") return resolved.expressions.length === 0;
20
+ if (resolved.type === "ArrayExpression") return resolved.elements.every((element) => isStaticValue(element));
21
+ if (resolved.type === "ObjectExpression") {
22
+ for (const property of resolved.properties) {
23
+ if (!property) return false;
24
+ if (property.type === "SpreadElement") return false;
25
+ if (property.type !== "Property") return false;
26
+ if (!isStaticValue(property.value)) return false;
27
+ }
28
+ return true;
29
+ }
30
+ if (resolved.type === "UnaryExpression") return isStaticValue(resolved.argument);
31
+ return false;
32
+ };
33
+
34
+ //#endregion
35
+ export { isStaticValue };