@master/css 2.0.0-alpha.1 → 2.0.0-alpha.11

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