@master/css 2.0.0-alpha.6 → 2.0.0-alpha.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 (469) hide show
  1. package/esm/config/breakpoints.d.ts +12 -0
  2. package/esm/config/breakpoints.js +12 -0
  3. package/esm/config/colors.d.ts +24 -0
  4. package/esm/config/colors.js +264 -0
  5. package/esm/config/index.d.ts +2 -0
  6. package/esm/config/index.js +18 -0
  7. package/esm/config/root-size.d.ts +1 -0
  8. package/esm/config/root-size.js +1 -0
  9. package/esm/config/rules.d.ts +2 -0
  10. package/esm/config/rules.js +388 -0
  11. package/esm/config/selectors.d.ts +18 -0
  12. package/esm/config/selectors.js +18 -0
  13. package/esm/config/semantics.d.ts +81 -0
  14. package/esm/config/semantics.js +81 -0
  15. package/esm/config/themes.d.ts +1 -0
  16. package/esm/config/themes.js +1 -0
  17. package/esm/config/values.d.ts +125 -0
  18. package/esm/config/values.js +83 -0
  19. package/esm/configure.d.ts +2 -0
  20. package/esm/configure.js +10 -0
  21. package/esm/constants/start-symbol.d.ts +5 -0
  22. package/esm/constants/start-symbol.js +5 -0
  23. package/esm/css.d.ts +65 -0
  24. package/esm/css.js +884 -0
  25. package/esm/fill-color-scale.d.ts +1 -0
  26. package/esm/fill-color-scale.js +59 -0
  27. package/esm/index.d.ts +18 -0
  28. package/esm/index.js +18 -0
  29. package/esm/init.d.ts +3 -0
  30. package/esm/init.js +12 -0
  31. package/esm/interfaces/config.d.ts +18 -0
  32. package/esm/interfaces/config.js +1 -0
  33. package/esm/interfaces/declaration.d.ts +5 -0
  34. package/esm/interfaces/declaration.js +1 -0
  35. package/esm/interfaces/media-feature-rule.d.ts +7 -0
  36. package/esm/interfaces/media-feature-rule.js +1 -0
  37. package/esm/interfaces/media.d.ts +8 -0
  38. package/esm/interfaces/media.js +1 -0
  39. package/esm/polyfills/css-escape.d.ts +2 -0
  40. package/esm/polyfills/css-escape.js +90 -0
  41. package/esm/render-from-html.d.ts +3 -0
  42. package/esm/render-from-html.js +18 -0
  43. package/esm/render-into-html.d.ts +3 -0
  44. package/esm/render-into-html.js +9 -0
  45. package/esm/render.d.ts +3 -0
  46. package/esm/render.js +13 -0
  47. package/esm/rule.d.ts +54 -0
  48. package/esm/rule.js +604 -0
  49. package/esm/rules/accent-color.d.ts +7 -0
  50. package/esm/rules/accent-color.js +7 -0
  51. package/esm/rules/align-content.d.ts +6 -0
  52. package/esm/rules/align-content.js +6 -0
  53. package/esm/rules/align-items.d.ts +6 -0
  54. package/esm/rules/align-items.js +6 -0
  55. package/esm/rules/align-self.d.ts +6 -0
  56. package/esm/rules/align-self.js +6 -0
  57. package/esm/rules/animation-delay.d.ts +7 -0
  58. package/esm/rules/animation-delay.js +7 -0
  59. package/esm/rules/animation-direction.d.ts +6 -0
  60. package/esm/rules/animation-direction.js +6 -0
  61. package/esm/rules/animation-duration.d.ts +7 -0
  62. package/esm/rules/animation-duration.js +7 -0
  63. package/esm/rules/animation-fill-mode.d.ts +6 -0
  64. package/esm/rules/animation-fill-mode.js +6 -0
  65. package/esm/rules/animation-iteration-count.d.ts +7 -0
  66. package/esm/rules/animation-iteration-count.js +7 -0
  67. package/esm/rules/animation-name.d.ts +6 -0
  68. package/esm/rules/animation-name.js +6 -0
  69. package/esm/rules/animation-play-state.d.ts +6 -0
  70. package/esm/rules/animation-play-state.js +6 -0
  71. package/esm/rules/animation-timing-function.d.ts +6 -0
  72. package/esm/rules/animation-timing-function.js +6 -0
  73. package/esm/rules/animation.d.ts +8 -0
  74. package/esm/rules/animation.js +8 -0
  75. package/esm/rules/appearance.d.ts +5 -0
  76. package/esm/rules/appearance.js +5 -0
  77. package/esm/rules/aspect-radio.d.ts +7 -0
  78. package/esm/rules/aspect-radio.js +7 -0
  79. package/esm/rules/backdrop-filter.d.ts +11 -0
  80. package/esm/rules/backdrop-filter.js +26 -0
  81. package/esm/rules/background-attachment.d.ts +6 -0
  82. package/esm/rules/background-attachment.js +6 -0
  83. package/esm/rules/background-blend-mode.d.ts +5 -0
  84. package/esm/rules/background-blend-mode.js +5 -0
  85. package/esm/rules/background-clip.d.ts +9 -0
  86. package/esm/rules/background-clip.js +12 -0
  87. package/esm/rules/background-color.d.ts +8 -0
  88. package/esm/rules/background-color.js +8 -0
  89. package/esm/rules/background-image.d.ts +7 -0
  90. package/esm/rules/background-image.js +7 -0
  91. package/esm/rules/background-origin.d.ts +6 -0
  92. package/esm/rules/background-origin.js +6 -0
  93. package/esm/rules/background-position.d.ts +7 -0
  94. package/esm/rules/background-position.js +7 -0
  95. package/esm/rules/background-repeat.d.ts +6 -0
  96. package/esm/rules/background-repeat.js +6 -0
  97. package/esm/rules/background-size.d.ts +6 -0
  98. package/esm/rules/background-size.js +6 -0
  99. package/esm/rules/background.d.ts +8 -0
  100. package/esm/rules/background.js +8 -0
  101. package/esm/rules/border-collapse.d.ts +6 -0
  102. package/esm/rules/border-collapse.js +6 -0
  103. package/esm/rules/border-color.d.ts +11 -0
  104. package/esm/rules/border-color.js +14 -0
  105. package/esm/rules/border-image-outset.d.ts +5 -0
  106. package/esm/rules/border-image-outset.js +5 -0
  107. package/esm/rules/border-image-repeat.d.ts +6 -0
  108. package/esm/rules/border-image-repeat.js +6 -0
  109. package/esm/rules/border-image-slice.d.ts +6 -0
  110. package/esm/rules/border-image-slice.js +6 -0
  111. package/esm/rules/border-image-source.d.ts +6 -0
  112. package/esm/rules/border-image-source.js +6 -0
  113. package/esm/rules/border-image-width.d.ts +6 -0
  114. package/esm/rules/border-image-width.js +6 -0
  115. package/esm/rules/border-image.d.ts +6 -0
  116. package/esm/rules/border-image.js +6 -0
  117. package/esm/rules/border-radius.d.ts +9 -0
  118. package/esm/rules/border-radius.js +73 -0
  119. package/esm/rules/border-spacing.d.ts +5 -0
  120. package/esm/rules/border-spacing.js +5 -0
  121. package/esm/rules/border-style.d.ts +9 -0
  122. package/esm/rules/border-style.js +12 -0
  123. package/esm/rules/border-width.d.ts +9 -0
  124. package/esm/rules/border-width.js +12 -0
  125. package/esm/rules/border.d.ts +10 -0
  126. package/esm/rules/border.js +13 -0
  127. package/esm/rules/box-decoration-break.d.ts +9 -0
  128. package/esm/rules/box-decoration-break.js +13 -0
  129. package/esm/rules/box-shadow.d.ts +7 -0
  130. package/esm/rules/box-shadow.js +7 -0
  131. package/esm/rules/box-sizing.d.ts +6 -0
  132. package/esm/rules/box-sizing.js +6 -0
  133. package/esm/rules/break-after.d.ts +5 -0
  134. package/esm/rules/break-after.js +5 -0
  135. package/esm/rules/break-before.d.ts +5 -0
  136. package/esm/rules/break-before.js +5 -0
  137. package/esm/rules/break-inside.d.ts +5 -0
  138. package/esm/rules/break-inside.js +5 -0
  139. package/esm/rules/caret-color.d.ts +7 -0
  140. package/esm/rules/caret-color.js +7 -0
  141. package/esm/rules/clear.d.ts +5 -0
  142. package/esm/rules/clear.js +5 -0
  143. package/esm/rules/clip-path.d.ts +6 -0
  144. package/esm/rules/clip-path.js +6 -0
  145. package/esm/rules/color.d.ts +8 -0
  146. package/esm/rules/color.js +8 -0
  147. package/esm/rules/column-span.d.ts +6 -0
  148. package/esm/rules/column-span.js +6 -0
  149. package/esm/rules/columns.d.ts +8 -0
  150. package/esm/rules/columns.js +8 -0
  151. package/esm/rules/contain.d.ts +5 -0
  152. package/esm/rules/contain.js +5 -0
  153. package/esm/rules/content.d.ts +5 -0
  154. package/esm/rules/content.js +5 -0
  155. package/esm/rules/counter-increment.d.ts +6 -0
  156. package/esm/rules/counter-increment.js +6 -0
  157. package/esm/rules/cursor.d.ts +5 -0
  158. package/esm/rules/cursor.js +5 -0
  159. package/esm/rules/cx.d.ts +6 -0
  160. package/esm/rules/cx.js +6 -0
  161. package/esm/rules/cy.d.ts +6 -0
  162. package/esm/rules/cy.js +6 -0
  163. package/esm/rules/direction.d.ts +5 -0
  164. package/esm/rules/direction.js +5 -0
  165. package/esm/rules/display.d.ts +6 -0
  166. package/esm/rules/display.js +6 -0
  167. package/esm/rules/fill.d.ts +7 -0
  168. package/esm/rules/fill.js +7 -0
  169. package/esm/rules/filter.d.ts +8 -0
  170. package/esm/rules/filter.js +19 -0
  171. package/esm/rules/flex-basis.d.ts +5 -0
  172. package/esm/rules/flex-basis.js +5 -0
  173. package/esm/rules/flex-direction.d.ts +6 -0
  174. package/esm/rules/flex-direction.js +6 -0
  175. package/esm/rules/flex-grow.d.ts +6 -0
  176. package/esm/rules/flex-grow.js +6 -0
  177. package/esm/rules/flex-shrink.d.ts +6 -0
  178. package/esm/rules/flex-shrink.js +6 -0
  179. package/esm/rules/flex-wrap.d.ts +6 -0
  180. package/esm/rules/flex-wrap.js +6 -0
  181. package/esm/rules/flex.d.ts +7 -0
  182. package/esm/rules/flex.js +7 -0
  183. package/esm/rules/float.d.ts +5 -0
  184. package/esm/rules/float.js +5 -0
  185. package/esm/rules/font-family.d.ts +6 -0
  186. package/esm/rules/font-family.js +6 -0
  187. package/esm/rules/font-size.d.ts +6 -0
  188. package/esm/rules/font-size.js +6 -0
  189. package/esm/rules/font-smoothing.d.ts +9 -0
  190. package/esm/rules/font-smoothing.js +34 -0
  191. package/esm/rules/font-style.d.ts +7 -0
  192. package/esm/rules/font-style.js +7 -0
  193. package/esm/rules/font-variant-numeric.d.ts +6 -0
  194. package/esm/rules/font-variant-numeric.js +6 -0
  195. package/esm/rules/font-weight.d.ts +7 -0
  196. package/esm/rules/font-weight.js +7 -0
  197. package/esm/rules/font.d.ts +8 -0
  198. package/esm/rules/font.js +8 -0
  199. package/esm/rules/gap.d.ts +9 -0
  200. package/esm/rules/gap.js +16 -0
  201. package/esm/rules/grid-area.d.ts +7 -0
  202. package/esm/rules/grid-area.js +7 -0
  203. package/esm/rules/grid-auto-columns.d.ts +6 -0
  204. package/esm/rules/grid-auto-columns.js +6 -0
  205. package/esm/rules/grid-auto-flow.d.ts +6 -0
  206. package/esm/rules/grid-auto-flow.js +6 -0
  207. package/esm/rules/grid-auto-rows.d.ts +5 -0
  208. package/esm/rules/grid-auto-rows.js +5 -0
  209. package/esm/rules/grid-column-end.d.ts +7 -0
  210. package/esm/rules/grid-column-end.js +7 -0
  211. package/esm/rules/grid-column-start.d.ts +7 -0
  212. package/esm/rules/grid-column-start.js +7 -0
  213. package/esm/rules/grid-column.d.ts +9 -0
  214. package/esm/rules/grid-column.js +13 -0
  215. package/esm/rules/grid-columns.d.ts +10 -0
  216. package/esm/rules/grid-columns.js +20 -0
  217. package/esm/rules/grid-row-end.d.ts +6 -0
  218. package/esm/rules/grid-row-end.js +6 -0
  219. package/esm/rules/grid-row-start.d.ts +6 -0
  220. package/esm/rules/grid-row-start.js +6 -0
  221. package/esm/rules/grid-row.d.ts +9 -0
  222. package/esm/rules/grid-row.js +13 -0
  223. package/esm/rules/grid-rows.d.ts +9 -0
  224. package/esm/rules/grid-rows.js +20 -0
  225. package/esm/rules/grid-template-areas.d.ts +5 -0
  226. package/esm/rules/grid-template-areas.js +5 -0
  227. package/esm/rules/grid-template-columns.d.ts +6 -0
  228. package/esm/rules/grid-template-columns.js +6 -0
  229. package/esm/rules/grid-template-rows.d.ts +5 -0
  230. package/esm/rules/grid-template-rows.js +5 -0
  231. package/esm/rules/grid-template.d.ts +6 -0
  232. package/esm/rules/grid-template.js +6 -0
  233. package/esm/rules/grid.d.ts +6 -0
  234. package/esm/rules/grid.js +6 -0
  235. package/esm/rules/group.d.ts +9 -0
  236. package/esm/rules/group.js +104 -0
  237. package/esm/rules/height.d.ts +6 -0
  238. package/esm/rules/height.js +6 -0
  239. package/esm/rules/inset.d.ts +9 -0
  240. package/esm/rules/inset.js +11 -0
  241. package/esm/rules/isolation.d.ts +5 -0
  242. package/esm/rules/isolation.js +5 -0
  243. package/esm/rules/justify-content.d.ts +6 -0
  244. package/esm/rules/justify-content.js +6 -0
  245. package/esm/rules/justify-items.d.ts +6 -0
  246. package/esm/rules/justify-items.js +6 -0
  247. package/esm/rules/justify-self.d.ts +6 -0
  248. package/esm/rules/justify-self.js +6 -0
  249. package/esm/rules/letter-spacing.d.ts +7 -0
  250. package/esm/rules/letter-spacing.js +7 -0
  251. package/esm/rules/line-clamp.d.ts +9 -0
  252. package/esm/rules/line-clamp.js +11 -0
  253. package/esm/rules/line-height.d.ts +7 -0
  254. package/esm/rules/line-height.js +7 -0
  255. package/esm/rules/lines.d.ts +9 -0
  256. package/esm/rules/lines.js +16 -0
  257. package/esm/rules/list-style-image.d.ts +6 -0
  258. package/esm/rules/list-style-image.js +6 -0
  259. package/esm/rules/list-style-position.d.ts +6 -0
  260. package/esm/rules/list-style-position.js +6 -0
  261. package/esm/rules/list-style-type.d.ts +6 -0
  262. package/esm/rules/list-style-type.js +6 -0
  263. package/esm/rules/list-style.d.ts +6 -0
  264. package/esm/rules/list-style.js +6 -0
  265. package/esm/rules/margin.d.ts +9 -0
  266. package/esm/rules/margin.js +13 -0
  267. package/esm/rules/mask-image.d.ts +8 -0
  268. package/esm/rules/mask-image.js +11 -0
  269. package/esm/rules/max-height.d.ts +6 -0
  270. package/esm/rules/max-height.js +6 -0
  271. package/esm/rules/max-width.d.ts +6 -0
  272. package/esm/rules/max-width.js +6 -0
  273. package/esm/rules/min-height.d.ts +6 -0
  274. package/esm/rules/min-height.js +6 -0
  275. package/esm/rules/min-width.d.ts +6 -0
  276. package/esm/rules/min-width.js +6 -0
  277. package/esm/rules/mix-blend-mode.d.ts +6 -0
  278. package/esm/rules/mix-blend-mode.js +6 -0
  279. package/esm/rules/object-fit.d.ts +6 -0
  280. package/esm/rules/object-fit.js +6 -0
  281. package/esm/rules/object-position.d.ts +6 -0
  282. package/esm/rules/object-position.js +6 -0
  283. package/esm/rules/opacity.d.ts +6 -0
  284. package/esm/rules/opacity.js +6 -0
  285. package/esm/rules/order.d.ts +7 -0
  286. package/esm/rules/order.js +8 -0
  287. package/esm/rules/outline-color.d.ts +7 -0
  288. package/esm/rules/outline-color.js +7 -0
  289. package/esm/rules/outline-offset.d.ts +5 -0
  290. package/esm/rules/outline-offset.js +5 -0
  291. package/esm/rules/outline-style.d.ts +6 -0
  292. package/esm/rules/outline-style.js +6 -0
  293. package/esm/rules/outline-width.d.ts +6 -0
  294. package/esm/rules/outline-width.js +6 -0
  295. package/esm/rules/outline.d.ts +7 -0
  296. package/esm/rules/outline.js +7 -0
  297. package/esm/rules/overflow.d.ts +9 -0
  298. package/esm/rules/overflow.js +26 -0
  299. package/esm/rules/overscroll-behavior.d.ts +8 -0
  300. package/esm/rules/overscroll-behavior.js +15 -0
  301. package/esm/rules/padding.d.ts +9 -0
  302. package/esm/rules/padding.js +13 -0
  303. package/esm/rules/place-content.d.ts +6 -0
  304. package/esm/rules/place-content.js +6 -0
  305. package/esm/rules/place-items.d.ts +6 -0
  306. package/esm/rules/place-items.js +6 -0
  307. package/esm/rules/place-self.d.ts +6 -0
  308. package/esm/rules/place-self.js +6 -0
  309. package/esm/rules/placement.d.ts +8 -0
  310. package/esm/rules/placement.js +29 -0
  311. package/esm/rules/pointer-events.d.ts +5 -0
  312. package/esm/rules/pointer-events.js +5 -0
  313. package/esm/rules/position.d.ts +5 -0
  314. package/esm/rules/position.js +5 -0
  315. package/esm/rules/quotes.d.ts +5 -0
  316. package/esm/rules/quotes.js +5 -0
  317. package/esm/rules/resize.d.ts +5 -0
  318. package/esm/rules/resize.js +5 -0
  319. package/esm/rules/rx.d.ts +6 -0
  320. package/esm/rules/rx.js +6 -0
  321. package/esm/rules/ry.d.ts +6 -0
  322. package/esm/rules/ry.js +6 -0
  323. package/esm/rules/scroll-behavior.d.ts +5 -0
  324. package/esm/rules/scroll-behavior.js +5 -0
  325. package/esm/rules/scroll-margin.d.ts +9 -0
  326. package/esm/rules/scroll-margin.js +45 -0
  327. package/esm/rules/scroll-padding.d.ts +9 -0
  328. package/esm/rules/scroll-padding.js +45 -0
  329. package/esm/rules/scroll-snap-align.d.ts +6 -0
  330. package/esm/rules/scroll-snap-align.js +6 -0
  331. package/esm/rules/scroll-snap-stop.d.ts +6 -0
  332. package/esm/rules/scroll-snap-stop.js +6 -0
  333. package/esm/rules/scroll-snap-type.d.ts +6 -0
  334. package/esm/rules/scroll-snap-type.js +6 -0
  335. package/esm/rules/shape-image-threshold.d.ts +6 -0
  336. package/esm/rules/shape-image-threshold.js +6 -0
  337. package/esm/rules/shape-margin.d.ts +6 -0
  338. package/esm/rules/shape-margin.js +6 -0
  339. package/esm/rules/shape-outside.d.ts +6 -0
  340. package/esm/rules/shape-outside.js +6 -0
  341. package/esm/rules/spacing.d.ts +9 -0
  342. package/esm/rules/spacing.js +48 -0
  343. package/esm/rules/stroke-dasharray.d.ts +5 -0
  344. package/esm/rules/stroke-dasharray.js +5 -0
  345. package/esm/rules/stroke-dashoffset.d.ts +5 -0
  346. package/esm/rules/stroke-dashoffset.js +5 -0
  347. package/esm/rules/stroke-width.d.ts +6 -0
  348. package/esm/rules/stroke-width.js +6 -0
  349. package/esm/rules/stroke.d.ts +6 -0
  350. package/esm/rules/stroke.js +6 -0
  351. package/esm/rules/table-layout.d.ts +5 -0
  352. package/esm/rules/table-layout.js +5 -0
  353. package/esm/rules/text-align.d.ts +6 -0
  354. package/esm/rules/text-align.js +6 -0
  355. package/esm/rules/text-decoration-color.d.ts +7 -0
  356. package/esm/rules/text-decoration-color.js +7 -0
  357. package/esm/rules/text-decoration-line.d.ts +6 -0
  358. package/esm/rules/text-decoration-line.js +6 -0
  359. package/esm/rules/text-decoration-style.d.ts +6 -0
  360. package/esm/rules/text-decoration-style.js +6 -0
  361. package/esm/rules/text-decoration-thickness.d.ts +7 -0
  362. package/esm/rules/text-decoration-thickness.js +7 -0
  363. package/esm/rules/text-decoration.d.ts +8 -0
  364. package/esm/rules/text-decoration.js +8 -0
  365. package/esm/rules/text-fill-color.d.ts +10 -0
  366. package/esm/rules/text-fill-color.js +12 -0
  367. package/esm/rules/text-indent.d.ts +5 -0
  368. package/esm/rules/text-indent.js +5 -0
  369. package/esm/rules/text-orientation.d.ts +6 -0
  370. package/esm/rules/text-orientation.js +6 -0
  371. package/esm/rules/text-overflow.d.ts +6 -0
  372. package/esm/rules/text-overflow.js +6 -0
  373. package/esm/rules/text-rendering.d.ts +6 -0
  374. package/esm/rules/text-rendering.js +6 -0
  375. package/esm/rules/text-shadow.d.ts +6 -0
  376. package/esm/rules/text-shadow.js +6 -0
  377. package/esm/rules/text-size.d.ts +8 -0
  378. package/esm/rules/text-size.js +17 -0
  379. package/esm/rules/text-stroke-color.d.ts +10 -0
  380. package/esm/rules/text-stroke-color.js +12 -0
  381. package/esm/rules/text-stroke-width.d.ts +8 -0
  382. package/esm/rules/text-stroke-width.js +10 -0
  383. package/esm/rules/text-stroke.d.ts +8 -0
  384. package/esm/rules/text-stroke.js +10 -0
  385. package/esm/rules/text-transform.d.ts +6 -0
  386. package/esm/rules/text-transform.js +6 -0
  387. package/esm/rules/text-underline-offset.d.ts +5 -0
  388. package/esm/rules/text-underline-offset.js +5 -0
  389. package/esm/rules/touch-action.d.ts +5 -0
  390. package/esm/rules/touch-action.js +5 -0
  391. package/esm/rules/transform-box.d.ts +6 -0
  392. package/esm/rules/transform-box.js +6 -0
  393. package/esm/rules/transform-origin.d.ts +7 -0
  394. package/esm/rules/transform-origin.js +7 -0
  395. package/esm/rules/transform-style.d.ts +6 -0
  396. package/esm/rules/transform-style.js +6 -0
  397. package/esm/rules/transform.d.ts +9 -0
  398. package/esm/rules/transform.js +44 -0
  399. package/esm/rules/transition-delay.d.ts +7 -0
  400. package/esm/rules/transition-delay.js +7 -0
  401. package/esm/rules/transition-duration.d.ts +7 -0
  402. package/esm/rules/transition-duration.js +7 -0
  403. package/esm/rules/transition-property.d.ts +6 -0
  404. package/esm/rules/transition-property.js +6 -0
  405. package/esm/rules/transition-timing-function.d.ts +6 -0
  406. package/esm/rules/transition-timing-function.js +6 -0
  407. package/esm/rules/transition.d.ts +7 -0
  408. package/esm/rules/transition.js +7 -0
  409. package/esm/rules/user-drag.d.ts +8 -0
  410. package/esm/rules/user-drag.js +12 -0
  411. package/esm/rules/user-select.d.ts +8 -0
  412. package/esm/rules/user-select.js +12 -0
  413. package/esm/rules/variable.d.ts +9 -0
  414. package/esm/rules/variable.js +11 -0
  415. package/esm/rules/vertical-align.d.ts +6 -0
  416. package/esm/rules/vertical-align.js +6 -0
  417. package/esm/rules/visibility.d.ts +5 -0
  418. package/esm/rules/visibility.js +5 -0
  419. package/esm/rules/white-space.d.ts +6 -0
  420. package/esm/rules/white-space.js +6 -0
  421. package/esm/rules/width.d.ts +6 -0
  422. package/esm/rules/width.js +6 -0
  423. package/esm/rules/will-change.d.ts +5 -0
  424. package/esm/rules/will-change.js +5 -0
  425. package/esm/rules/word-break.d.ts +6 -0
  426. package/esm/rules/word-break.js +6 -0
  427. package/esm/rules/word-spacing.d.ts +6 -0
  428. package/esm/rules/word-spacing.js +6 -0
  429. package/esm/rules/writing-mode.d.ts +6 -0
  430. package/esm/rules/writing-mode.js +6 -0
  431. package/esm/rules/x.d.ts +6 -0
  432. package/esm/rules/x.js +6 -0
  433. package/esm/rules/y.d.ts +6 -0
  434. package/esm/rules/y.js +6 -0
  435. package/esm/rules/z-index.d.ts +7 -0
  436. package/esm/rules/z-index.js +7 -0
  437. package/esm/utils/concat-arrays.d.ts +1 -0
  438. package/esm/utils/concat-arrays.js +7 -0
  439. package/esm/utils/extend.d.ts +5 -0
  440. package/esm/utils/extend.js +60 -0
  441. package/esm/utils/get-border-props.d.ts +3 -0
  442. package/esm/utils/get-border-props.js +43 -0
  443. package/esm/utils/get-css-property-text.d.ts +5 -0
  444. package/esm/utils/get-css-property-text.js +7 -0
  445. package/esm/utils/get-type.d.ts +7 -0
  446. package/esm/utils/get-type.js +9 -0
  447. package/esm/utils/hex-to-rgb.d.ts +1 -0
  448. package/esm/utils/hex-to-rgb.js +7 -0
  449. package/esm/utils/is-plain-object.d.ts +8 -0
  450. package/esm/utils/is-plain-object.js +12 -0
  451. package/esm/utils/is-symbol.d.ts +7 -0
  452. package/esm/utils/is-symbol.js +10 -0
  453. package/esm/utils/normalize-css-calc-text.d.ts +5 -0
  454. package/esm/utils/normalize-css-calc-text.js +55 -0
  455. package/esm/utils/parse-value-unit.d.ts +2 -0
  456. package/esm/utils/parse-value-unit.js +47 -0
  457. package/esm/utils/parse-value.d.ts +6 -0
  458. package/esm/utils/parse-value.js +84 -0
  459. package/esm/utils/rgb-to-hex.d.ts +1 -0
  460. package/esm/utils/rgb-to-hex.js +3 -0
  461. package/esm/utils/test-css.d.ts +3 -0
  462. package/esm/utils/test-css.js +15 -0
  463. package/index.js +2 -1
  464. package/package.json +13 -2
  465. package/breakpoints.js +0 -1
  466. package/color.scss +0 -1
  467. package/colors.js +0 -1
  468. package/master-css.min.js +0 -1
  469. package/render.js +0 -1
@@ -0,0 +1,7 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export default class extends MasterCSSRule {
3
+ static id: string;
4
+ static matches: RegExp;
5
+ static propName: string;
6
+ static unit: string;
7
+ }
@@ -0,0 +1,7 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export default class default_1 extends MasterCSSRule {
3
+ static id = 'FontStyle';
4
+ static matches = /^f(ont)?:(normal|italic|oblique)(?!\|)/;
5
+ static propName = 'font-style';
6
+ static unit = 'deg';
7
+ }
@@ -0,0 +1,6 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export default class extends MasterCSSRule {
3
+ static id: string;
4
+ static matches: RegExp;
5
+ static propName: string;
6
+ }
@@ -0,0 +1,6 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export default class default_1 extends MasterCSSRule {
3
+ static id = 'FontVariantNumeric';
4
+ static matches = /^f(ont)?:(ordinal|slashed-zero|lining-nums|oldstyle-nums|proportional-nums|tabular-nums|diagonal-fractions|stacked-fractions)(?!\|)/;
5
+ static propName = 'font-variant-numeric';
6
+ }
@@ -0,0 +1,7 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export default class extends MasterCSSRule {
3
+ static id: string;
4
+ static matches: RegExp;
5
+ static propName: string;
6
+ static unit: string;
7
+ }
@@ -0,0 +1,7 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export default class default_1 extends MasterCSSRule {
3
+ static id = 'FontWeight';
4
+ static matches = /^f(ont)?:(thin|extralight|light|regular|medium|semibold|bold|bolder|extrabold|heavy)(?!\|)/;
5
+ static propName = 'font-weight';
6
+ static unit = '';
7
+ }
@@ -0,0 +1,8 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export default class extends MasterCSSRule {
3
+ static id: string;
4
+ static matches: RegExp;
5
+ static propName: string;
6
+ static unit: string;
7
+ order: number;
8
+ }
@@ -0,0 +1,8 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export default class default_1 extends MasterCSSRule {
3
+ static id = 'Font';
4
+ static matches = /^f:./;
5
+ static propName = 'font';
6
+ static unit = '';
7
+ order = -1;
8
+ }
@@ -0,0 +1,9 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export default class extends MasterCSSRule {
3
+ static id: string;
4
+ static matches: RegExp;
5
+ get(declaration: any): {
6
+ [key: string]: any;
7
+ };
8
+ order: number;
9
+ }
@@ -0,0 +1,16 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export default class default_1 extends MasterCSSRule {
3
+ static id = 'Gap';
4
+ static matches = /^gap(-x|-y)?:./;
5
+ get(declaration) {
6
+ switch (this.prefix[4]) {
7
+ case 'x':
8
+ return { 'column-gap': declaration };
9
+ case 'y':
10
+ return { 'row-gap': declaration };
11
+ default:
12
+ return { gap: declaration };
13
+ }
14
+ }
15
+ order = -1;
16
+ }
@@ -0,0 +1,7 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export default class extends MasterCSSRule {
3
+ static id: string;
4
+ static propName: string;
5
+ static unit: string;
6
+ order: number;
7
+ }
@@ -0,0 +1,7 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export default class default_1 extends MasterCSSRule {
3
+ static id = 'GridArea';
4
+ static propName = 'grid-area';
5
+ static unit = '';
6
+ order = -1;
7
+ }
@@ -0,0 +1,6 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export default class extends MasterCSSRule {
3
+ static id: string;
4
+ static matches: RegExp;
5
+ static propName: string;
6
+ }
@@ -0,0 +1,6 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export default class default_1 extends MasterCSSRule {
3
+ static id = 'GridAutoColumns';
4
+ static matches = /^grid-auto-cols:./;
5
+ static propName = 'grid-auto-columns';
6
+ }
@@ -0,0 +1,6 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export default class extends MasterCSSRule {
3
+ static id: string;
4
+ static matches: RegExp;
5
+ static propName: string;
6
+ }
@@ -0,0 +1,6 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export default class default_1 extends MasterCSSRule {
3
+ static id = 'GridAutoFlow';
4
+ static matches = /^grid-flow:./;
5
+ static propName = 'grid-auto-flow';
6
+ }
@@ -0,0 +1,5 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export default class extends MasterCSSRule {
3
+ static id: string;
4
+ static propName: string;
5
+ }
@@ -0,0 +1,5 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export default class default_1 extends MasterCSSRule {
3
+ static id = 'GridAutoRows';
4
+ static propName = 'grid-auto-rows';
5
+ }
@@ -0,0 +1,7 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export default class extends MasterCSSRule {
3
+ static id: string;
4
+ static matches: RegExp;
5
+ static propName: string;
6
+ static unit: string;
7
+ }
@@ -0,0 +1,7 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export default class default_1 extends MasterCSSRule {
3
+ static id = 'GridColumnEnd';
4
+ static matches = /^grid-col-end:./;
5
+ static propName = 'grid-column-end';
6
+ static unit = '';
7
+ }
@@ -0,0 +1,7 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export default class extends MasterCSSRule {
3
+ static id: string;
4
+ static matches: RegExp;
5
+ static propName: string;
6
+ static unit: string;
7
+ }
@@ -0,0 +1,7 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export default class default_1 extends MasterCSSRule {
3
+ static id = 'GridColumnStart';
4
+ static matches = /^grid-col-start:./;
5
+ static propName = 'grid-column-start';
6
+ static unit = '';
7
+ }
@@ -0,0 +1,9 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export default class extends MasterCSSRule {
3
+ static id: string;
4
+ static matches: RegExp;
5
+ static propName: string;
6
+ static unit: string;
7
+ parseValue(value: string): string;
8
+ order: number;
9
+ }
@@ -0,0 +1,13 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export default class default_1 extends MasterCSSRule {
3
+ static id = 'GridColumn';
4
+ static matches = /^grid-col(?:umn)?(?:-span)?:./;
5
+ static propName = 'grid-column';
6
+ static unit = '';
7
+ parseValue(value) {
8
+ return this.prefix.slice(-5, -1) === 'span' && value !== 'auto'
9
+ ? 'span' + ' ' + value + '/' + 'span' + ' ' + value
10
+ : value;
11
+ }
12
+ order = -1;
13
+ }
@@ -0,0 +1,10 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export default class extends MasterCSSRule {
3
+ static id: string;
4
+ static matches: RegExp;
5
+ static propName: string;
6
+ static unit: string;
7
+ get(declaration: any): {
8
+ [key: string]: any;
9
+ };
10
+ }
@@ -0,0 +1,20 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export default class default_1 extends MasterCSSRule {
3
+ static id = 'GridColumns';
4
+ static matches = /^grid-cols:./;
5
+ static propName = 'grid-columns';
6
+ static unit = '';
7
+ get(declaration) {
8
+ return {
9
+ display: { ...declaration, value: 'grid' },
10
+ 'grid-template-columns': {
11
+ ...this,
12
+ value: 'repeat'
13
+ + '(' + declaration.value
14
+ + ','
15
+ + 'minmax'
16
+ + '(' + 0 + ',' + 1 + 'fr' + '))'
17
+ },
18
+ };
19
+ }
20
+ }
@@ -0,0 +1,6 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export default class extends MasterCSSRule {
3
+ static id: string;
4
+ static propName: string;
5
+ static unit: string;
6
+ }
@@ -0,0 +1,6 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export default class default_1 extends MasterCSSRule {
3
+ static id = 'GridRowEnd';
4
+ static propName = 'grid-row-end';
5
+ static unit = '';
6
+ }
@@ -0,0 +1,6 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export default class extends MasterCSSRule {
3
+ static id: string;
4
+ static propName: string;
5
+ static unit: string;
6
+ }
@@ -0,0 +1,6 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export default class default_1 extends MasterCSSRule {
3
+ static id = 'GridRowStart';
4
+ static propName = 'grid-row-start';
5
+ static unit = '';
6
+ }
@@ -0,0 +1,9 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export default class extends MasterCSSRule {
3
+ static id: string;
4
+ static matches: RegExp;
5
+ static propName: string;
6
+ static unit: string;
7
+ parseValue(value: string): string;
8
+ order: number;
9
+ }
@@ -0,0 +1,13 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export default class default_1 extends MasterCSSRule {
3
+ static id = 'GridRow';
4
+ static matches = /^grid-row-span:./;
5
+ static propName = 'grid-row';
6
+ static unit = '';
7
+ parseValue(value) {
8
+ return this.prefix.slice(-5, -1) === 'span' && value !== 'auto'
9
+ ? 'span' + ' ' + value + '/' + 'span' + ' ' + value
10
+ : value;
11
+ }
12
+ order = -1;
13
+ }
@@ -0,0 +1,9 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export default class extends MasterCSSRule {
3
+ static id: string;
4
+ static propName: string;
5
+ static unit: string;
6
+ get(declaration: any): {
7
+ [key: string]: any;
8
+ };
9
+ }
@@ -0,0 +1,20 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export default class default_1 extends MasterCSSRule {
3
+ static id = 'GridRows';
4
+ static propName = 'grid-rows';
5
+ static unit = '';
6
+ get(declaration) {
7
+ return {
8
+ display: { ...declaration, value: 'grid' },
9
+ 'grid-auto-flow': { ...declaration, value: 'column' },
10
+ 'grid-template-rows': {
11
+ ...declaration,
12
+ value: 'repeat'
13
+ + '(' + declaration.value
14
+ + ','
15
+ + 'minmax'
16
+ + '(' + 0 + ',' + 1 + 'fr' + '))'
17
+ },
18
+ };
19
+ }
20
+ }
@@ -0,0 +1,5 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export default class extends MasterCSSRule {
3
+ static id: string;
4
+ static propName: string;
5
+ }
@@ -0,0 +1,5 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export default class default_1 extends MasterCSSRule {
3
+ static id = 'GridTemplateAreas';
4
+ static propName = 'grid-template-areas';
5
+ }
@@ -0,0 +1,6 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export default class extends MasterCSSRule {
3
+ static id: string;
4
+ static matches: RegExp;
5
+ static propName: string;
6
+ }
@@ -0,0 +1,6 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export default class default_1 extends MasterCSSRule {
3
+ static id = 'GridTemplateColumns';
4
+ static matches = /^grid-template-cols:./;
5
+ static propName = 'grid-template-columns';
6
+ }
@@ -0,0 +1,5 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export default class extends MasterCSSRule {
3
+ static id: string;
4
+ static propName: string;
5
+ }
@@ -0,0 +1,5 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export default class default_1 extends MasterCSSRule {
3
+ static id = 'GridTemplateRows';
4
+ static propName = 'grid-template-rows';
5
+ }
@@ -0,0 +1,6 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export default class extends MasterCSSRule {
3
+ static id: string;
4
+ static propName: string;
5
+ order: number;
6
+ }
@@ -0,0 +1,6 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export default class default_1 extends MasterCSSRule {
3
+ static id = 'GridTemplate';
4
+ static propName = 'grid-template';
5
+ order = -1;
6
+ }
@@ -0,0 +1,6 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export default class extends MasterCSSRule {
3
+ static id: string;
4
+ static propName: string;
5
+ order: number;
6
+ }
@@ -0,0 +1,6 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export default class default_1 extends MasterCSSRule {
3
+ static id = 'Grid';
4
+ static propName = 'grid';
5
+ order = -1;
6
+ }
@@ -0,0 +1,9 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ import MasterCSS from '../css';
3
+ import { MasterCSSDeclaration } from 'src/interfaces/declaration';
4
+ export default class extends MasterCSSRule {
5
+ static id: string;
6
+ static matches: RegExp;
7
+ static unit: string;
8
+ getThemeProps(declaration: MasterCSSDeclaration, css: MasterCSS): Record<string, Record<string, string>>;
9
+ }
@@ -0,0 +1,104 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ import { START_SYMBOL } from '../constants/start-symbol';
3
+ const bracketRegexp = /\{(.*)\}/;
4
+ export default class default_1 extends MasterCSSRule {
5
+ static id = 'Group';
6
+ static matches = /^(?:.+?[*_>~+])?\{.+?\}/;
7
+ static unit = '';
8
+ getThemeProps(declaration, css) {
9
+ const themePropsMap = {};
10
+ const addProp = (themeName, propertyName) => {
11
+ const indexOfColon = propertyName.indexOf(':');
12
+ if (indexOfColon !== -1) {
13
+ if (!(themeName in themePropsMap)) {
14
+ themePropsMap[themeName] = {};
15
+ }
16
+ const props = themePropsMap[themeName];
17
+ const name = propertyName.slice(0, indexOfColon);
18
+ if (!(name in props)) {
19
+ props[name] = propertyName.slice(indexOfColon + 1);
20
+ }
21
+ }
22
+ };
23
+ const handleRule = (rule) => {
24
+ const addProps = (themeName, cssText) => {
25
+ const cssProperties = cssText.slice(CSS.escape(rule.className).length).match(bracketRegexp)[1].split(';');
26
+ for (const eachCssProperty of cssProperties) {
27
+ addProp(themeName, eachCssProperty);
28
+ }
29
+ };
30
+ if (this.themeName) {
31
+ const currentThemeNative = rule.natives.find(eachNative => eachNative.themeName === this.themeName) ?? rule.natives.find(eachNative => !eachNative.themeName);
32
+ if (currentThemeNative) {
33
+ addProps(this.themeName, currentThemeNative.text);
34
+ }
35
+ }
36
+ else {
37
+ for (const eachNative of rule.natives) {
38
+ addProps(eachNative.themeName, eachNative.text);
39
+ }
40
+ }
41
+ };
42
+ const names = [];
43
+ let currentName = '';
44
+ const addName = () => {
45
+ if (currentName) {
46
+ names.push(currentName);
47
+ currentName = '';
48
+ }
49
+ };
50
+ let i = 1;
51
+ (function analyze(end) {
52
+ for (; i < declaration.value.length; i++) {
53
+ const char = declaration.value[i];
54
+ if (!end) {
55
+ if (char === ';') {
56
+ addName();
57
+ continue;
58
+ }
59
+ if (char === '}') {
60
+ break;
61
+ }
62
+ }
63
+ currentName += char;
64
+ if (end === char) {
65
+ if (end === '\'') {
66
+ let count = 0;
67
+ for (let j = currentName.length - 2;; j--) {
68
+ if (currentName[j] !== '\\') {
69
+ break;
70
+ }
71
+ count++;
72
+ }
73
+ if (count % 2) {
74
+ continue;
75
+ }
76
+ }
77
+ break;
78
+ }
79
+ else if (char in START_SYMBOL && end !== '\'') {
80
+ i++;
81
+ analyze(START_SYMBOL[char]);
82
+ }
83
+ }
84
+ })(undefined);
85
+ addName();
86
+ for (const eachName of names) {
87
+ const result = css.findAndNew(eachName);
88
+ if (Array.isArray(result)) {
89
+ for (const eachRule of result) {
90
+ handleRule(eachRule);
91
+ }
92
+ }
93
+ else {
94
+ if (result) {
95
+ handleRule(result);
96
+ }
97
+ else {
98
+ addProp(this.themeName ?? '', eachName);
99
+ }
100
+ }
101
+ }
102
+ return themePropsMap;
103
+ }
104
+ }
@@ -0,0 +1,6 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export default class extends MasterCSSRule {
3
+ static id: string;
4
+ static matches: RegExp;
5
+ static propName: string;
6
+ }
@@ -0,0 +1,6 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export default class default_1 extends MasterCSSRule {
3
+ static id = 'Height';
4
+ static matches = /^h:./;
5
+ static propName = 'height';
6
+ }
@@ -0,0 +1,9 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export default class extends MasterCSSRule {
3
+ static id: string;
4
+ static matches: RegExp;
5
+ static propName: string;
6
+ get(declaration: any): {
7
+ [key: string]: any;
8
+ };
9
+ }
@@ -0,0 +1,11 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export default class default_1 extends MasterCSSRule {
3
+ static id = 'Inset';
4
+ static matches = /^(?:top|bottom|left|right):./;
5
+ static propName = 'inset';
6
+ get(declaration) {
7
+ return {
8
+ [this.prefix.slice(0, -1)]: declaration
9
+ };
10
+ }
11
+ }
@@ -0,0 +1,5 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export default class extends MasterCSSRule {
3
+ static id: string;
4
+ static propName: string;
5
+ }
@@ -0,0 +1,5 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export default class default_1 extends MasterCSSRule {
3
+ static id = 'Isolation';
4
+ static propName = 'isolation';
5
+ }
@@ -0,0 +1,6 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export default class extends MasterCSSRule {
3
+ static id: string;
4
+ static matches: RegExp;
5
+ static propName: string;
6
+ }
@@ -0,0 +1,6 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export default class default_1 extends MasterCSSRule {
3
+ static id = 'JustifyContent';
4
+ static matches = /^jc:./;
5
+ static propName = 'justify-content';
6
+ }
@@ -0,0 +1,6 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export default class extends MasterCSSRule {
3
+ static id: string;
4
+ static matches: RegExp;
5
+ static propName: string;
6
+ }
@@ -0,0 +1,6 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export default class default_1 extends MasterCSSRule {
3
+ static id = 'JustifyItems';
4
+ static matches = /^ji:./;
5
+ static propName = 'justify-items';
6
+ }
@@ -0,0 +1,6 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export default class extends MasterCSSRule {
3
+ static id: string;
4
+ static matches: RegExp;
5
+ static propName: string;
6
+ }
@@ -0,0 +1,6 @@
1
+ import { MasterCSSRule } from '../rule';
2
+ export default class default_1 extends MasterCSSRule {
3
+ static id = 'JustifySelf';
4
+ static matches = /^js:./;
5
+ static propName = 'justify-self';
6
+ }