@master/css 2.0.0-alpha.3 → 2.0.0-alpha.31

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 (420) hide show
  1. package/breakpoints.js +2 -1
  2. package/breakpoints.js.map +1 -0
  3. package/color.scss +1 -1
  4. package/colors.js +2 -1
  5. package/colors.js.map +1 -0
  6. package/configure.d.ts +2 -0
  7. package/constants/css-property-keyword.d.ts +0 -7
  8. package/css.d.ts +69 -0
  9. package/default-config.d.ts +2 -0
  10. package/index.d.ts +14 -4
  11. package/index.js +2 -1
  12. package/index.js.map +1 -0
  13. package/init.d.ts +3 -0
  14. package/interfaces/config.d.ts +16 -0
  15. package/interfaces/css-property-info.d.ts +5 -0
  16. package/interfaces/{style-media-feature.d.ts → media-feature-rule.d.ts} +1 -1
  17. package/interfaces/media.d.ts +8 -0
  18. package/master-css.min.js +2 -1
  19. package/package.json +1 -1
  20. package/render-from-html.d.ts +3 -0
  21. package/render-into-html.d.ts +3 -0
  22. package/render.d.ts +2 -7
  23. package/render.js +2 -1
  24. package/render.js.map +1 -0
  25. package/rule.d.ts +51 -0
  26. package/rules/accent-color.d.ts +6 -0
  27. package/rules/align-content.d.ts +5 -0
  28. package/rules/align-items.d.ts +5 -0
  29. package/rules/align-self.d.ts +5 -0
  30. package/rules/animation-delay.d.ts +6 -0
  31. package/rules/animation-direction.d.ts +5 -0
  32. package/rules/animation-duration.d.ts +6 -0
  33. package/rules/animation-fill-mode.d.ts +5 -0
  34. package/rules/animation-iteration-count.d.ts +6 -0
  35. package/rules/animation-name.d.ts +5 -0
  36. package/rules/animation-play-state.d.ts +5 -0
  37. package/rules/animation-timing-function.d.ts +5 -0
  38. package/rules/animation.d.ts +7 -0
  39. package/rules/appearance.d.ts +4 -0
  40. package/rules/aspect-radio.d.ts +6 -0
  41. package/rules/backdrop-filter.d.ts +9 -0
  42. package/rules/background-attachment.d.ts +5 -0
  43. package/rules/background-blend-mode.d.ts +4 -0
  44. package/rules/background-clip.d.ts +8 -0
  45. package/rules/background-color.d.ts +7 -0
  46. package/rules/background-image.d.ts +6 -0
  47. package/rules/background-origin.d.ts +5 -0
  48. package/rules/background-position.d.ts +6 -0
  49. package/rules/background-repeat.d.ts +5 -0
  50. package/rules/background-size.d.ts +5 -0
  51. package/rules/background.d.ts +7 -0
  52. package/rules/border-collapse.d.ts +5 -0
  53. package/{styles → rules}/border-color.d.ts +3 -3
  54. package/rules/border-image-outset.d.ts +4 -0
  55. package/rules/border-image-repeat.d.ts +5 -0
  56. package/rules/border-image-slice.d.ts +5 -0
  57. package/rules/border-image-source.d.ts +5 -0
  58. package/rules/border-image-width.d.ts +5 -0
  59. package/rules/border-image.d.ts +5 -0
  60. package/rules/border-radius.d.ts +9 -0
  61. package/rules/border-spacing.d.ts +4 -0
  62. package/rules/border-style.d.ts +9 -0
  63. package/rules/border-width.d.ts +9 -0
  64. package/{styles → rules}/border.d.ts +3 -3
  65. package/rules/box-decoration-break.d.ts +8 -0
  66. package/rules/box-shadow.d.ts +6 -0
  67. package/rules/box-sizing.d.ts +5 -0
  68. package/rules/break-after.d.ts +4 -0
  69. package/rules/break-before.d.ts +4 -0
  70. package/rules/break-inside.d.ts +4 -0
  71. package/rules/caret-color.d.ts +6 -0
  72. package/rules/clear.d.ts +4 -0
  73. package/rules/clip-path.d.ts +5 -0
  74. package/rules/color.d.ts +7 -0
  75. package/rules/column-span.d.ts +5 -0
  76. package/rules/columns.d.ts +7 -0
  77. package/rules/contain.d.ts +4 -0
  78. package/rules/content.d.ts +4 -0
  79. package/rules/counter-increment.d.ts +5 -0
  80. package/rules/cursor.d.ts +4 -0
  81. package/rules/cx.d.ts +5 -0
  82. package/rules/cy.d.ts +5 -0
  83. package/rules/direction.d.ts +4 -0
  84. package/rules/display.d.ts +5 -0
  85. package/rules/fill.d.ts +6 -0
  86. package/rules/filter.d.ts +6 -0
  87. package/rules/flex-basis.d.ts +4 -0
  88. package/rules/flex-direction.d.ts +5 -0
  89. package/rules/flex-grow.d.ts +5 -0
  90. package/rules/flex-shrink.d.ts +5 -0
  91. package/rules/flex-wrap.d.ts +5 -0
  92. package/rules/flex.d.ts +6 -0
  93. package/rules/float.d.ts +4 -0
  94. package/rules/font-family.d.ts +5 -0
  95. package/rules/font-size.d.ts +5 -0
  96. package/rules/font-smoothing.d.ts +9 -0
  97. package/rules/font-style.d.ts +6 -0
  98. package/rules/font-variant-numeric.d.ts +5 -0
  99. package/rules/font-weight.d.ts +6 -0
  100. package/rules/font.d.ts +7 -0
  101. package/rules/gap.d.ts +9 -0
  102. package/rules/grid-area.d.ts +6 -0
  103. package/rules/grid-auto-columns.d.ts +5 -0
  104. package/rules/grid-auto-flow.d.ts +5 -0
  105. package/rules/grid-auto-rows.d.ts +4 -0
  106. package/rules/grid-column-end.d.ts +6 -0
  107. package/rules/grid-column-start.d.ts +6 -0
  108. package/rules/grid-column.d.ts +8 -0
  109. package/rules/grid-columns.d.ts +9 -0
  110. package/rules/grid-row-end.d.ts +5 -0
  111. package/rules/grid-row-start.d.ts +5 -0
  112. package/rules/grid-row.d.ts +8 -0
  113. package/rules/grid-rows.d.ts +8 -0
  114. package/rules/grid-template-areas.d.ts +4 -0
  115. package/rules/grid-template-columns.d.ts +5 -0
  116. package/rules/grid-template-rows.d.ts +4 -0
  117. package/rules/grid-template.d.ts +5 -0
  118. package/rules/grid.d.ts +5 -0
  119. package/rules/group.d.ts +9 -0
  120. package/rules/height.d.ts +5 -0
  121. package/rules/index.d.ts +2 -0
  122. package/rules/inset.d.ts +8 -0
  123. package/rules/isolation.d.ts +4 -0
  124. package/rules/justify-content.d.ts +5 -0
  125. package/rules/justify-items.d.ts +5 -0
  126. package/rules/justify-self.d.ts +5 -0
  127. package/rules/letter-spacing.d.ts +6 -0
  128. package/rules/line-height.d.ts +6 -0
  129. package/rules/lines.d.ts +9 -0
  130. package/rules/list-style-image.d.ts +5 -0
  131. package/rules/list-style-position.d.ts +5 -0
  132. package/rules/list-style-type.d.ts +5 -0
  133. package/rules/list-style.d.ts +5 -0
  134. package/rules/margin.d.ts +9 -0
  135. package/rules/mask-image.d.ts +7 -0
  136. package/rules/max-height.d.ts +5 -0
  137. package/rules/max-width.d.ts +5 -0
  138. package/rules/min-height.d.ts +5 -0
  139. package/rules/min-width.d.ts +5 -0
  140. package/rules/mix-blend-mode.d.ts +5 -0
  141. package/rules/object-fit.d.ts +5 -0
  142. package/rules/object-position.d.ts +5 -0
  143. package/rules/opacity.d.ts +5 -0
  144. package/rules/order.d.ts +6 -0
  145. package/rules/outline-color.d.ts +6 -0
  146. package/rules/outline-offset.d.ts +4 -0
  147. package/rules/outline-style.d.ts +5 -0
  148. package/rules/outline-width.d.ts +5 -0
  149. package/rules/outline.d.ts +6 -0
  150. package/rules/overflow.d.ts +9 -0
  151. package/rules/overscroll-behavior.d.ts +8 -0
  152. package/rules/padding.d.ts +9 -0
  153. package/rules/place-content.d.ts +5 -0
  154. package/rules/place-items.d.ts +5 -0
  155. package/rules/place-self.d.ts +5 -0
  156. package/rules/placement.d.ts +7 -0
  157. package/rules/pointer-events.d.ts +4 -0
  158. package/rules/position.d.ts +4 -0
  159. package/rules/quotes.d.ts +4 -0
  160. package/rules/resize.d.ts +4 -0
  161. package/rules/rx.d.ts +5 -0
  162. package/rules/ry.d.ts +5 -0
  163. package/rules/scroll-behavior.d.ts +4 -0
  164. package/rules/scroll-margin.d.ts +9 -0
  165. package/rules/scroll-padding.d.ts +9 -0
  166. package/rules/scroll-snap-align.d.ts +5 -0
  167. package/rules/scroll-snap-stop.d.ts +5 -0
  168. package/rules/scroll-snap-type.d.ts +5 -0
  169. package/rules/shape-image-threshold.d.ts +5 -0
  170. package/rules/shape-margin.d.ts +5 -0
  171. package/rules/shape-outside.d.ts +5 -0
  172. package/rules/spacing.d.ts +9 -0
  173. package/rules/stroke-dasharray.d.ts +4 -0
  174. package/rules/stroke-dashoffset.d.ts +4 -0
  175. package/rules/stroke-width.d.ts +5 -0
  176. package/rules/stroke.d.ts +5 -0
  177. package/rules/table-layout.d.ts +4 -0
  178. package/rules/text-align.d.ts +5 -0
  179. package/rules/text-decoration-color.d.ts +6 -0
  180. package/rules/text-decoration-line.d.ts +5 -0
  181. package/rules/text-decoration-style.d.ts +5 -0
  182. package/rules/text-decoration-thickness.d.ts +6 -0
  183. package/rules/text-decoration.d.ts +7 -0
  184. package/{styles → rules}/text-fill-color.d.ts +3 -3
  185. package/rules/text-indent.d.ts +4 -0
  186. package/rules/text-orientation.d.ts +5 -0
  187. package/rules/text-overflow.d.ts +5 -0
  188. package/rules/text-rendering.d.ts +5 -0
  189. package/rules/text-shadow.d.ts +5 -0
  190. package/rules/text-size.d.ts +8 -0
  191. package/{styles → rules}/text-stroke-color.d.ts +3 -3
  192. package/rules/text-stroke-width.d.ts +8 -0
  193. package/rules/text-stroke.d.ts +8 -0
  194. package/rules/text-transform.d.ts +5 -0
  195. package/rules/text-underline-offset.d.ts +4 -0
  196. package/rules/touch-action.d.ts +4 -0
  197. package/rules/transform-box.d.ts +5 -0
  198. package/rules/transform-origin.d.ts +6 -0
  199. package/rules/transform-style.d.ts +5 -0
  200. package/rules/transform.d.ts +7 -0
  201. package/rules/transition-delay.d.ts +6 -0
  202. package/rules/transition-duration.d.ts +6 -0
  203. package/rules/transition-property.d.ts +5 -0
  204. package/rules/transition-timing-function.d.ts +5 -0
  205. package/rules/transition.d.ts +6 -0
  206. package/rules/user-drag.d.ts +7 -0
  207. package/rules/user-select.d.ts +7 -0
  208. package/rules/variable.d.ts +9 -0
  209. package/rules/vertical-align.d.ts +5 -0
  210. package/rules/visibility.d.ts +4 -0
  211. package/rules/white-space.d.ts +5 -0
  212. package/rules/width.d.ts +5 -0
  213. package/rules/will-change.d.ts +4 -0
  214. package/rules/word-break.d.ts +5 -0
  215. package/rules/word-spacing.d.ts +5 -0
  216. package/rules/writing-mode.d.ts +5 -0
  217. package/rules/x.d.ts +5 -0
  218. package/rules/y.d.ts +5 -0
  219. package/rules/z-index.d.ts +6 -0
  220. package/utils/concat-arrays.d.ts +1 -0
  221. package/utils/get-border-props.d.ts +2 -2
  222. package/utils/get-type.d.ts +7 -0
  223. package/utils/is-plain-object.d.ts +8 -0
  224. package/utils/is-symbol.d.ts +7 -0
  225. package/utils/merge.d.ts +5 -0
  226. package/utils/parse-value.d.ts +3 -2
  227. package/interfaces/style-media.d.ts +0 -8
  228. package/sheet.d.ts +0 -55
  229. package/style.d.ts +0 -69
  230. package/styles/accent-color.d.ts +0 -6
  231. package/styles/align-content.d.ts +0 -5
  232. package/styles/align-items.d.ts +0 -5
  233. package/styles/align-self.d.ts +0 -5
  234. package/styles/animation-delay.d.ts +0 -6
  235. package/styles/animation-direction.d.ts +0 -5
  236. package/styles/animation-duration.d.ts +0 -6
  237. package/styles/animation-fill-mode.d.ts +0 -5
  238. package/styles/animation-iteration-count.d.ts +0 -6
  239. package/styles/animation-name.d.ts +0 -5
  240. package/styles/animation-play-state.d.ts +0 -5
  241. package/styles/animation-timing-function.d.ts +0 -5
  242. package/styles/animation.d.ts +0 -7
  243. package/styles/appearance.d.ts +0 -4
  244. package/styles/aspect-radio.d.ts +0 -10
  245. package/styles/backdrop-filter.d.ts +0 -9
  246. package/styles/background-attachment.d.ts +0 -5
  247. package/styles/background-blend-mode.d.ts +0 -4
  248. package/styles/background-clip.d.ts +0 -13
  249. package/styles/background-color.d.ts +0 -7
  250. package/styles/background-image.d.ts +0 -6
  251. package/styles/background-origin.d.ts +0 -10
  252. package/styles/background-position.d.ts +0 -6
  253. package/styles/background-repeat.d.ts +0 -5
  254. package/styles/background-size.d.ts +0 -5
  255. package/styles/background.d.ts +0 -7
  256. package/styles/border-collapse.d.ts +0 -5
  257. package/styles/border-image-outset.d.ts +0 -4
  258. package/styles/border-image-repeat.d.ts +0 -5
  259. package/styles/border-image-slice.d.ts +0 -5
  260. package/styles/border-image-source.d.ts +0 -5
  261. package/styles/border-image-width.d.ts +0 -5
  262. package/styles/border-image.d.ts +0 -5
  263. package/styles/border-radius.d.ts +0 -13
  264. package/styles/border-spacing.d.ts +0 -4
  265. package/styles/border-style.d.ts +0 -9
  266. package/styles/border-width.d.ts +0 -9
  267. package/styles/box-decoration-break.d.ts +0 -8
  268. package/styles/box-shadow.d.ts +0 -6
  269. package/styles/box-sizing.d.ts +0 -9
  270. package/styles/break-after.d.ts +0 -4
  271. package/styles/break-before.d.ts +0 -4
  272. package/styles/break-inside.d.ts +0 -4
  273. package/styles/caret-color.d.ts +0 -6
  274. package/styles/clear.d.ts +0 -4
  275. package/styles/clip-path.d.ts +0 -14
  276. package/styles/color.d.ts +0 -7
  277. package/styles/column-span.d.ts +0 -5
  278. package/styles/columns.d.ts +0 -7
  279. package/styles/contain.d.ts +0 -4
  280. package/styles/content.d.ts +0 -4
  281. package/styles/counter-increment.d.ts +0 -5
  282. package/styles/cursor.d.ts +0 -4
  283. package/styles/cx.d.ts +0 -5
  284. package/styles/cy.d.ts +0 -5
  285. package/styles/direction.d.ts +0 -4
  286. package/styles/display.d.ts +0 -29
  287. package/styles/fill.d.ts +0 -6
  288. package/styles/filter.d.ts +0 -6
  289. package/styles/flex-basis.d.ts +0 -10
  290. package/styles/flex-direction.d.ts +0 -9
  291. package/styles/flex-grow.d.ts +0 -5
  292. package/styles/flex-shrink.d.ts +0 -5
  293. package/styles/flex-wrap.d.ts +0 -5
  294. package/styles/flex.d.ts +0 -6
  295. package/styles/float.d.ts +0 -4
  296. package/styles/font-family.d.ts +0 -10
  297. package/styles/font-size.d.ts +0 -5
  298. package/styles/font-smoothing.d.ts +0 -9
  299. package/styles/font-style.d.ts +0 -10
  300. package/styles/font-variant-numeric.d.ts +0 -5
  301. package/styles/font-weight.d.ts +0 -17
  302. package/styles/font.d.ts +0 -8
  303. package/styles/gap.d.ts +0 -9
  304. package/styles/grid-area.d.ts +0 -6
  305. package/styles/grid-auto-columns.d.ts +0 -9
  306. package/styles/grid-auto-flow.d.ts +0 -5
  307. package/styles/grid-auto-rows.d.ts +0 -8
  308. package/styles/grid-column-end.d.ts +0 -6
  309. package/styles/grid-column-start.d.ts +0 -6
  310. package/styles/grid-column.d.ts +0 -8
  311. package/styles/grid-columns.d.ts +0 -9
  312. package/styles/grid-row-end.d.ts +0 -5
  313. package/styles/grid-row-start.d.ts +0 -5
  314. package/styles/grid-row.d.ts +0 -8
  315. package/styles/grid-rows.d.ts +0 -8
  316. package/styles/grid-template-areas.d.ts +0 -4
  317. package/styles/grid-template-columns.d.ts +0 -9
  318. package/styles/grid-template-rows.d.ts +0 -8
  319. package/styles/grid-template.d.ts +0 -5
  320. package/styles/grid.d.ts +0 -5
  321. package/styles/group.d.ts +0 -9
  322. package/styles/height.d.ts +0 -11
  323. package/styles/index.d.ts +0 -17
  324. package/styles/inset.d.ts +0 -8
  325. package/styles/isolation.d.ts +0 -7
  326. package/styles/justify-content.d.ts +0 -5
  327. package/styles/justify-items.d.ts +0 -5
  328. package/styles/justify-self.d.ts +0 -5
  329. package/styles/letter-spacing.d.ts +0 -6
  330. package/styles/line-height.d.ts +0 -6
  331. package/styles/lines.d.ts +0 -9
  332. package/styles/list-style-image.d.ts +0 -5
  333. package/styles/list-style-position.d.ts +0 -5
  334. package/styles/list-style-type.d.ts +0 -5
  335. package/styles/list-style.d.ts +0 -5
  336. package/styles/margin.d.ts +0 -9
  337. package/styles/mask-image.d.ts +0 -7
  338. package/styles/max-height.d.ts +0 -11
  339. package/styles/max-width.d.ts +0 -11
  340. package/styles/min-height.d.ts +0 -11
  341. package/styles/min-width.d.ts +0 -11
  342. package/styles/mix-blend-mode.d.ts +0 -5
  343. package/styles/object-fit.d.ts +0 -5
  344. package/styles/object-position.d.ts +0 -5
  345. package/styles/opacity.d.ts +0 -5
  346. package/styles/order.d.ts +0 -10
  347. package/styles/outline-color.d.ts +0 -6
  348. package/styles/outline-offset.d.ts +0 -4
  349. package/styles/outline-style.d.ts +0 -5
  350. package/styles/outline-width.d.ts +0 -5
  351. package/styles/outline.d.ts +0 -6
  352. package/styles/overflow.d.ts +0 -12
  353. package/styles/overscroll-behavior.d.ts +0 -8
  354. package/styles/padding.d.ts +0 -9
  355. package/styles/place-content.d.ts +0 -5
  356. package/styles/place-items.d.ts +0 -5
  357. package/styles/place-self.d.ts +0 -5
  358. package/styles/placement.d.ts +0 -7
  359. package/styles/pointer-events.d.ts +0 -7
  360. package/styles/position.d.ts +0 -15
  361. package/styles/quotes.d.ts +0 -4
  362. package/styles/resize.d.ts +0 -4
  363. package/styles/rx.d.ts +0 -5
  364. package/styles/ry.d.ts +0 -5
  365. package/styles/scroll-behavior.d.ts +0 -4
  366. package/styles/scroll-margin.d.ts +0 -9
  367. package/styles/scroll-padding.d.ts +0 -9
  368. package/styles/scroll-snap-align.d.ts +0 -5
  369. package/styles/scroll-snap-stop.d.ts +0 -5
  370. package/styles/scroll-snap-type.d.ts +0 -5
  371. package/styles/shape-image-threshold.d.ts +0 -5
  372. package/styles/shape-margin.d.ts +0 -5
  373. package/styles/shape-outside.d.ts +0 -11
  374. package/styles/spacing.d.ts +0 -9
  375. package/styles/stroke-dasharray.d.ts +0 -4
  376. package/styles/stroke-dashoffset.d.ts +0 -4
  377. package/styles/stroke-width.d.ts +0 -5
  378. package/styles/stroke.d.ts +0 -5
  379. package/styles/table-layout.d.ts +0 -4
  380. package/styles/text-align.d.ts +0 -5
  381. package/styles/text-decoration-color.d.ts +0 -6
  382. package/styles/text-decoration-line.d.ts +0 -5
  383. package/styles/text-decoration-style.d.ts +0 -5
  384. package/styles/text-decoration-thickness.d.ts +0 -6
  385. package/styles/text-decoration.d.ts +0 -7
  386. package/styles/text-indent.d.ts +0 -4
  387. package/styles/text-orientation.d.ts +0 -5
  388. package/styles/text-overflow.d.ts +0 -5
  389. package/styles/text-rendering.d.ts +0 -5
  390. package/styles/text-shadow.d.ts +0 -5
  391. package/styles/text-size.d.ts +0 -8
  392. package/styles/text-stroke-width.d.ts +0 -8
  393. package/styles/text-stroke.d.ts +0 -8
  394. package/styles/text-transform.d.ts +0 -10
  395. package/styles/text-underline-offset.d.ts +0 -4
  396. package/styles/touch-action.d.ts +0 -4
  397. package/styles/transform-box.d.ts +0 -12
  398. package/styles/transform-origin.d.ts +0 -6
  399. package/styles/transform-style.d.ts +0 -5
  400. package/styles/transform.d.ts +0 -7
  401. package/styles/transition-delay.d.ts +0 -6
  402. package/styles/transition-duration.d.ts +0 -6
  403. package/styles/transition-property.d.ts +0 -5
  404. package/styles/transition-timing-function.d.ts +0 -5
  405. package/styles/transition.d.ts +0 -6
  406. package/styles/user-drag.d.ts +0 -7
  407. package/styles/user-select.d.ts +0 -7
  408. package/styles/utility.d.ts +0 -43
  409. package/styles/variable.d.ts +0 -9
  410. package/styles/vertical-align.d.ts +0 -5
  411. package/styles/visibility.d.ts +0 -8
  412. package/styles/white-space.d.ts +0 -5
  413. package/styles/width.d.ts +0 -11
  414. package/styles/will-change.d.ts +0 -4
  415. package/styles/word-break.d.ts +0 -5
  416. package/styles/word-spacing.d.ts +0 -4
  417. package/styles/writing-mode.d.ts +0 -5
  418. package/styles/x.d.ts +0 -5
  419. package/styles/y.d.ts +0 -5
  420. package/styles/z-index.d.ts +0 -6
package/rule.d.ts ADDED
@@ -0,0 +1,51 @@
1
+ import { MasterCSSMedia } from './interfaces/media';
2
+ import { MasterCSS } from './css';
3
+ import { MasterCSSDeclaration } from './interfaces/css-property-info';
4
+ export interface RuleMatching {
5
+ origin: 'matches' | 'semantics' | 'symbol';
6
+ value?: string;
7
+ }
8
+ export declare class MasterCSSRule {
9
+ readonly name: string;
10
+ readonly matching: RuleMatching;
11
+ readonly prefix: string;
12
+ readonly symbol: string;
13
+ readonly token: string;
14
+ readonly prefixSelectors: string[];
15
+ readonly suffixSelectors: string[];
16
+ readonly important: boolean;
17
+ readonly media: MasterCSSMedia;
18
+ readonly at: Record<string, string>;
19
+ readonly direction: string;
20
+ readonly themeName: string;
21
+ readonly unitToken: string;
22
+ readonly hasWhere: boolean;
23
+ readonly prioritySelectorIndex: number;
24
+ readonly natives: {
25
+ unit: string;
26
+ value: string | Record<string, string | number>;
27
+ text: string;
28
+ themeName: string;
29
+ cssRule?: CSSRule;
30
+ }[];
31
+ static id: string;
32
+ static propName: string;
33
+ static matches: RegExp;
34
+ static colorStarts: string;
35
+ static symbol: string;
36
+ static unit: string;
37
+ static colorful: boolean;
38
+ static match(name: string, colorNames: string[]): RuleMatching;
39
+ constructor(name: string, matching: RuleMatching, css: MasterCSS);
40
+ }
41
+ export interface MasterCSSRule {
42
+ readonly order?: number;
43
+ parseValue(value: string): string;
44
+ get(declaration: MasterCSSDeclaration): Record<string, any>;
45
+ getThemeProps(declaration: MasterCSSDeclaration, css: MasterCSS): Record<string, Record<string, string>>;
46
+ }
47
+ declare global {
48
+ interface Window {
49
+ MasterCSSRule: typeof MasterCSSRule;
50
+ }
51
+ }
@@ -0,0 +1,6 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export declare class AccentColor extends MasterCSSRule {
3
+ static propName: string;
4
+ static colorStarts: string;
5
+ static colorful: boolean;
6
+ }
@@ -0,0 +1,5 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export declare class AlignContent extends MasterCSSRule {
3
+ static matches: RegExp;
4
+ static propName: string;
5
+ }
@@ -0,0 +1,5 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export declare class AlignItems extends MasterCSSRule {
3
+ static matches: RegExp;
4
+ static propName: string;
5
+ }
@@ -0,0 +1,5 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export declare class AlignSelf extends MasterCSSRule {
3
+ static matches: RegExp;
4
+ static propName: string;
5
+ }
@@ -0,0 +1,6 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export declare class AnimationDelay extends MasterCSSRule {
3
+ static matches: RegExp;
4
+ static propName: string;
5
+ static unit: string;
6
+ }
@@ -0,0 +1,5 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export declare class AnimationDirection extends MasterCSSRule {
3
+ static matches: RegExp;
4
+ static propName: string;
5
+ }
@@ -0,0 +1,6 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export declare class AnimationDuration extends MasterCSSRule {
3
+ static matches: RegExp;
4
+ static propName: string;
5
+ static unit: string;
6
+ }
@@ -0,0 +1,5 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export declare class AnimationFillMode extends MasterCSSRule {
3
+ static matches: RegExp;
4
+ static propName: string;
5
+ }
@@ -0,0 +1,6 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export declare class AnimationIterationCount extends MasterCSSRule {
3
+ static matches: RegExp;
4
+ static propName: string;
5
+ static unit: string;
6
+ }
@@ -0,0 +1,5 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export declare class AnimationName extends MasterCSSRule {
3
+ static matches: RegExp;
4
+ static propName: string;
5
+ }
@@ -0,0 +1,5 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export declare class AnimationPlayState extends MasterCSSRule {
3
+ static matches: RegExp;
4
+ static propName: string;
5
+ }
@@ -0,0 +1,5 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export declare class AnimationTimingFunction extends MasterCSSRule {
3
+ static matches: RegExp;
4
+ static propName: string;
5
+ }
@@ -0,0 +1,7 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export declare class Animation extends MasterCSSRule {
3
+ static symbol: string;
4
+ static propName: string;
5
+ static unit: string;
6
+ order: number;
7
+ }
@@ -0,0 +1,4 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export declare class Appearance extends MasterCSSRule {
3
+ static propName: string;
4
+ }
@@ -0,0 +1,6 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export declare class AspectRadio extends MasterCSSRule {
3
+ static matches: RegExp;
4
+ static propName: string;
5
+ static unit: string;
6
+ }
@@ -0,0 +1,9 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export declare class BackdropFilter extends MasterCSSRule {
3
+ static matches: RegExp;
4
+ static propName: string;
5
+ get(declaration: any): {
6
+ [key: string]: any;
7
+ };
8
+ parseValue(value: string): string;
9
+ }
@@ -0,0 +1,5 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export declare class BackgroundAttachment extends MasterCSSRule {
3
+ static matches: RegExp;
4
+ static propName: string;
5
+ }
@@ -0,0 +1,4 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export declare class BackgroundBlendMode extends MasterCSSRule {
3
+ static propName: string;
4
+ }
@@ -0,0 +1,8 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export declare class BackgroundClip extends MasterCSSRule {
3
+ static matches: RegExp;
4
+ static propName: string;
5
+ get(declaration: any): {
6
+ [key: string]: any;
7
+ };
8
+ }
@@ -0,0 +1,7 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export declare class BackgroundColor extends MasterCSSRule {
3
+ static colorStarts: string;
4
+ static propName: string;
5
+ static unit: string;
6
+ static colorful: boolean;
7
+ }
@@ -0,0 +1,6 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export declare class BackgroundImage extends MasterCSSRule {
3
+ static matches: RegExp;
4
+ static propName: string;
5
+ static colorful: boolean;
6
+ }
@@ -0,0 +1,5 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export declare class BackgroundOrigin extends MasterCSSRule {
3
+ static matches: RegExp;
4
+ static propName: string;
5
+ }
@@ -0,0 +1,6 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export declare class BackgroundPosition extends MasterCSSRule {
3
+ static matches: RegExp;
4
+ static propName: string;
5
+ static unit: string;
6
+ }
@@ -0,0 +1,5 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export declare class BackgroundRepeat extends MasterCSSRule {
3
+ static matches: RegExp;
4
+ static propName: string;
5
+ }
@@ -0,0 +1,5 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export declare class BackgroundSize extends MasterCSSRule {
3
+ static matches: RegExp;
4
+ static propName: string;
5
+ }
@@ -0,0 +1,7 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export declare class Background extends MasterCSSRule {
3
+ static matches: RegExp;
4
+ static propName: string;
5
+ static colorful: boolean;
6
+ order: number;
7
+ }
@@ -0,0 +1,5 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export declare class BorderCollapse extends MasterCSSRule {
3
+ static matches: RegExp;
4
+ static propName: string;
5
+ }
@@ -1,10 +1,10 @@
1
- import { Style } from '../style';
2
- export declare class BorderColor extends Style {
1
+ import { MasterCSSRule } from '../rule';
2
+ export declare class BorderColor extends MasterCSSRule {
3
3
  static id: string;
4
4
  static matches: RegExp;
5
5
  static colorStarts: string;
6
6
  static colorful: boolean;
7
- get props(): {
7
+ get(declaration: any): {
8
8
  [key: string]: any;
9
9
  };
10
10
  get order(): number;
@@ -0,0 +1,4 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export declare class BorderImageOutset extends MasterCSSRule {
3
+ static propName: string;
4
+ }
@@ -0,0 +1,5 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export declare class BorderImageRepeat extends MasterCSSRule {
3
+ static matches: RegExp;
4
+ static propName: string;
5
+ }
@@ -0,0 +1,5 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export declare class BorderImageSlice extends MasterCSSRule {
3
+ static propName: string;
4
+ static unit: string;
5
+ }
@@ -0,0 +1,5 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export declare class BorderImageSource extends MasterCSSRule {
3
+ static matches: RegExp;
4
+ static propName: string;
5
+ }
@@ -0,0 +1,5 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export declare class BorderImageWidth extends MasterCSSRule {
3
+ static matches: RegExp;
4
+ static propName: string;
5
+ }
@@ -0,0 +1,5 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export declare class BorderImage extends MasterCSSRule {
3
+ static propName: string;
4
+ static unit: string;
5
+ }
@@ -0,0 +1,9 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export declare class BorderRadius extends MasterCSSRule {
3
+ static id: string;
4
+ static matches: RegExp;
5
+ get(declaration: any): {
6
+ [key: string]: any;
7
+ };
8
+ get order(): number;
9
+ }
@@ -0,0 +1,4 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export declare class BorderSpacing extends MasterCSSRule {
3
+ static propName: string;
4
+ }
@@ -0,0 +1,9 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export declare class BorderStyle extends MasterCSSRule {
3
+ static id: string;
4
+ static matches: RegExp;
5
+ get(declaration: any): {
6
+ [key: string]: any;
7
+ };
8
+ get order(): number;
9
+ }
@@ -0,0 +1,9 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export declare class BorderWidth extends MasterCSSRule {
3
+ static id: string;
4
+ static matches: RegExp;
5
+ get(declaration: any): {
6
+ [key: string]: any;
7
+ };
8
+ get order(): number;
9
+ }
@@ -1,9 +1,9 @@
1
- import { Style } from '../style';
2
- export declare class Border extends Style {
1
+ import { MasterCSSRule } from '../rule';
2
+ export declare class Border extends MasterCSSRule {
3
3
  static id: string;
4
4
  static matches: RegExp;
5
5
  static colorful: boolean;
6
- get props(): {
6
+ get(declaration: any): {
7
7
  [key: string]: any;
8
8
  };
9
9
  get order(): number;
@@ -0,0 +1,8 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export declare class BoxDecorationBreak extends MasterCSSRule {
3
+ static matches: RegExp;
4
+ static propName: string;
5
+ get(declaration: any): {
6
+ [key: string]: any;
7
+ };
8
+ }
@@ -0,0 +1,6 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export declare class BoxShadow extends MasterCSSRule {
3
+ static matches: RegExp;
4
+ static propName: string;
5
+ static colorful: boolean;
6
+ }
@@ -0,0 +1,5 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export declare class BoxSizing extends MasterCSSRule {
3
+ static matches: RegExp;
4
+ static propName: string;
5
+ }
@@ -0,0 +1,4 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export declare class BreakAfter extends MasterCSSRule {
3
+ static propName: string;
4
+ }
@@ -0,0 +1,4 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export declare class BreakBefore extends MasterCSSRule {
3
+ static propName: string;
4
+ }
@@ -0,0 +1,4 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export declare class BreakInside extends MasterCSSRule {
3
+ static propName: string;
4
+ }
@@ -0,0 +1,6 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export declare class CaretColor extends MasterCSSRule {
3
+ static propName: string;
4
+ static colorStarts: string;
5
+ static colorful: boolean;
6
+ }
@@ -0,0 +1,4 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export declare class Clear extends MasterCSSRule {
3
+ static propName: string;
4
+ }
@@ -0,0 +1,5 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export declare class ClipPath extends MasterCSSRule {
3
+ static matches: RegExp;
4
+ static propName: string;
5
+ }
@@ -0,0 +1,7 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export declare class Color extends MasterCSSRule {
3
+ static colorStarts: string;
4
+ static colorful: boolean;
5
+ static propName: string;
6
+ static unit: string;
7
+ }
@@ -0,0 +1,5 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export declare class ColumnSpan extends MasterCSSRule {
3
+ static matches: RegExp;
4
+ static propName: string;
5
+ }
@@ -0,0 +1,7 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export declare class Columns extends MasterCSSRule {
3
+ static matches: RegExp;
4
+ static propName: string;
5
+ static unit: string;
6
+ order: number;
7
+ }
@@ -0,0 +1,4 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export declare class Contain extends MasterCSSRule {
3
+ static propName: string;
4
+ }
@@ -0,0 +1,4 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export declare class Content extends MasterCSSRule {
3
+ static propName: string;
4
+ }
@@ -0,0 +1,5 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export declare class CounterIncrement extends MasterCSSRule {
3
+ static propName: string;
4
+ static unit: string;
5
+ }
@@ -0,0 +1,4 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export declare class Cursor extends MasterCSSRule {
3
+ static propName: string;
4
+ }
package/rules/cx.d.ts ADDED
@@ -0,0 +1,5 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export declare class Cx extends MasterCSSRule {
3
+ static propName: string;
4
+ static unit: string;
5
+ }
package/rules/cy.d.ts ADDED
@@ -0,0 +1,5 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export declare class Cy extends MasterCSSRule {
3
+ static propName: string;
4
+ static unit: string;
5
+ }
@@ -0,0 +1,4 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export declare class Direction extends MasterCSSRule {
3
+ static propName: string;
4
+ }
@@ -0,0 +1,5 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export declare class Display extends MasterCSSRule {
3
+ static matches: RegExp;
4
+ static propName: string;
5
+ }
@@ -0,0 +1,6 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export declare class Fill extends MasterCSSRule {
3
+ static propName: string;
4
+ static colorStarts: string;
5
+ static colorful: boolean;
6
+ }
@@ -0,0 +1,6 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export declare class Filter extends MasterCSSRule {
3
+ static matches: RegExp;
4
+ static propName: string;
5
+ parseValue(value: string): string;
6
+ }
@@ -0,0 +1,4 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export declare class FlexBasis extends MasterCSSRule {
3
+ static propName: string;
4
+ }
@@ -0,0 +1,5 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export declare class FlexDirection extends MasterCSSRule {
3
+ static matches: RegExp;
4
+ static propName: string;
5
+ }
@@ -0,0 +1,5 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export declare class FlexGrow extends MasterCSSRule {
3
+ static propName: string;
4
+ static unit: string;
5
+ }
@@ -0,0 +1,5 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export declare class FlexShrink extends MasterCSSRule {
3
+ static propName: string;
4
+ static unit: string;
5
+ }
@@ -0,0 +1,5 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export declare class FlexWrap extends MasterCSSRule {
3
+ static matches: RegExp;
4
+ static propName: string;
5
+ }
@@ -0,0 +1,6 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export declare class Flex extends MasterCSSRule {
3
+ static propName: string;
4
+ static unit: string;
5
+ order: number;
6
+ }
@@ -0,0 +1,4 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export declare class Float extends MasterCSSRule {
3
+ static propName: string;
4
+ }
@@ -0,0 +1,5 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export declare class FontFamily extends MasterCSSRule {
3
+ static matches: RegExp;
4
+ static propName: string;
5
+ }
@@ -0,0 +1,5 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export declare class FontSize extends MasterCSSRule {
3
+ static matches: RegExp;
4
+ static propName: string;
5
+ }
@@ -0,0 +1,9 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export declare class FontSmoothing extends MasterCSSRule {
3
+ static id: string;
4
+ static matches: RegExp;
5
+ static unit: string;
6
+ get(declaration: any): {
7
+ [key: string]: any;
8
+ };
9
+ }
@@ -0,0 +1,6 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export declare class FontStyle extends MasterCSSRule {
3
+ static matches: RegExp;
4
+ static propName: string;
5
+ static unit: string;
6
+ }
@@ -0,0 +1,5 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export declare class FontVariantNumeric extends MasterCSSRule {
3
+ static matches: RegExp;
4
+ static propName: string;
5
+ }
@@ -0,0 +1,6 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export declare class FontWeight extends MasterCSSRule {
3
+ static matches: RegExp;
4
+ static propName: string;
5
+ static unit: string;
6
+ }
@@ -0,0 +1,7 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export declare class Font extends MasterCSSRule {
3
+ static matches: RegExp;
4
+ static propName: string;
5
+ static unit: string;
6
+ order: number;
7
+ }