@master/css 2.0.0-beta.14 → 2.0.0-beta.140

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 (335) hide show
  1. package/README.md +101 -109
  2. package/dist/bin/index.d.ts +2 -0
  3. package/dist/cjs/bin/index.js +2 -0
  4. package/dist/cjs/config/breakpoints.js +1 -0
  5. package/dist/cjs/config/colors.js +1 -0
  6. package/dist/cjs/config/functions.js +1 -0
  7. package/dist/cjs/config/important.js +1 -0
  8. package/dist/cjs/config/index.js +1 -0
  9. package/dist/cjs/config/keyframes.js +1 -0
  10. package/dist/cjs/config/observe.js +1 -0
  11. package/dist/cjs/config/override.js +1 -0
  12. package/dist/cjs/config/root-size.js +1 -0
  13. package/dist/cjs/config/rules.js +1 -0
  14. package/dist/cjs/config/scope.js +1 -0
  15. package/dist/cjs/config/selectors.js +1 -0
  16. package/dist/cjs/config/semantics.js +1 -0
  17. package/dist/cjs/config/themes.js +1 -0
  18. package/dist/cjs/constants/selector-symbols.js +1 -0
  19. package/dist/cjs/constants/start-symbol.js +1 -0
  20. package/dist/cjs/css.js +1 -0
  21. package/dist/cjs/index.browser.js +1 -0
  22. package/dist/cjs/index.js +1 -0
  23. package/dist/cjs/methods/define-content.js +25 -0
  24. package/dist/cjs/methods/extract-classes-from-html.js +1 -0
  25. package/dist/cjs/methods/fill-color-scale.js +1 -0
  26. package/dist/cjs/methods/index.js +1 -0
  27. package/dist/cjs/methods/render-from-html.js +1 -0
  28. package/dist/cjs/methods/render-into-html.js +1 -0
  29. package/dist/cjs/methods/render-rules-from-html.js +1 -0
  30. package/dist/cjs/methods/render-rules.js +1 -0
  31. package/dist/cjs/methods/render.js +1 -0
  32. package/dist/cjs/polyfills/css-escape.js +1 -0
  33. package/dist/cjs/rule.js +1 -0
  34. package/dist/cjs/theme.js +1 -0
  35. package/dist/cjs/utils/concat-arrays.js +1 -0
  36. package/dist/cjs/utils/css-escape.js +1 -0
  37. package/dist/cjs/utils/delay.js +1 -0
  38. package/dist/cjs/utils/get-type.js +1 -0
  39. package/dist/cjs/utils/hex-to-rgb.js +1 -0
  40. package/dist/cjs/utils/is-plain-object.js +1 -0
  41. package/dist/cjs/utils/is-symbol.js +1 -0
  42. package/dist/cjs/utils/parse-rule-value.js +1 -0
  43. package/dist/cjs/utils/rgb-to-hex.js +1 -0
  44. package/dist/config/breakpoints.d.ts +1 -2
  45. package/dist/config/colors.d.ts +3 -4
  46. package/dist/config/functions.d.ts +7 -0
  47. package/dist/config/important.d.ts +1 -0
  48. package/dist/config/index.d.ts +58 -23
  49. package/dist/config/keyframes.d.ts +109 -0
  50. package/dist/config/observe.d.ts +1 -0
  51. package/dist/config/override.d.ts +1 -0
  52. package/dist/config/root-size.d.ts +1 -2
  53. package/dist/config/rules.d.ts +267 -3
  54. package/dist/config/scope.d.ts +1 -0
  55. package/dist/config/selectors.d.ts +1 -2
  56. package/dist/config/semantics.d.ts +142 -43
  57. package/dist/config/themes.d.ts +1 -2
  58. package/dist/constants/selector-symbols.d.ts +1 -0
  59. package/dist/constants/start-symbol.d.ts +1 -0
  60. package/dist/css.d.ts +60 -62
  61. package/dist/esm/bin/index.mjs +2 -0
  62. package/dist/esm/config/breakpoints.mjs +1 -0
  63. package/dist/esm/config/colors.mjs +1 -0
  64. package/dist/esm/config/functions.mjs +1 -0
  65. package/dist/esm/config/important.mjs +1 -0
  66. package/dist/esm/config/index.mjs +1 -0
  67. package/dist/esm/config/keyframes.mjs +1 -0
  68. package/dist/esm/config/observe.mjs +1 -0
  69. package/dist/esm/config/override.mjs +1 -0
  70. package/dist/esm/config/root-size.mjs +1 -0
  71. package/dist/esm/config/rules.mjs +1 -0
  72. package/dist/esm/config/scope.mjs +1 -0
  73. package/dist/esm/config/selectors.mjs +1 -0
  74. package/dist/esm/config/semantics.mjs +1 -0
  75. package/dist/esm/config/themes.mjs +1 -0
  76. package/dist/esm/constants/selector-symbols.mjs +1 -0
  77. package/dist/esm/constants/start-symbol.mjs +1 -0
  78. package/dist/esm/css.mjs +1 -0
  79. package/dist/esm/index.browser.mjs +1 -0
  80. package/dist/esm/index.mjs +1 -0
  81. package/dist/esm/methods/define-content.mjs +25 -0
  82. package/dist/esm/methods/extract-classes-from-html.mjs +1 -0
  83. package/dist/esm/methods/fill-color-scale.mjs +1 -0
  84. package/dist/esm/methods/index.mjs +1 -0
  85. package/dist/esm/methods/render-from-html.mjs +1 -0
  86. package/dist/esm/methods/render-into-html.mjs +1 -0
  87. package/dist/esm/methods/render-rules-from-html.mjs +1 -0
  88. package/dist/esm/methods/render-rules.mjs +1 -0
  89. package/dist/esm/methods/render.mjs +1 -0
  90. package/dist/esm/polyfills/css-escape.mjs +1 -0
  91. package/dist/esm/rule.mjs +1 -0
  92. package/dist/esm/theme.mjs +1 -0
  93. package/dist/esm/utils/concat-arrays.mjs +1 -0
  94. package/dist/esm/utils/css-escape.mjs +1 -0
  95. package/dist/esm/utils/delay.mjs +1 -0
  96. package/dist/esm/utils/get-type.mjs +1 -0
  97. package/dist/esm/utils/hex-to-rgb.mjs +1 -0
  98. package/dist/esm/utils/is-plain-object.mjs +1 -0
  99. package/dist/esm/utils/is-symbol.mjs +1 -0
  100. package/dist/esm/utils/parse-rule-value.mjs +1 -0
  101. package/dist/esm/utils/rgb-to-hex.mjs +1 -0
  102. package/dist/index.browser.d.ts +6 -1
  103. package/dist/index.browser.js +1 -2
  104. package/dist/index.d.ts +7 -21
  105. package/dist/index.js +25 -0
  106. package/dist/index.mjs +25 -2
  107. package/dist/methods/define-content.d.ts +5 -0
  108. package/dist/methods/extract-classes-from-html.d.ts +1 -0
  109. package/dist/methods/fill-color-scale.d.ts +1 -0
  110. package/dist/methods/index.d.ts +8 -0
  111. package/dist/methods/render-from-html.d.ts +2 -0
  112. package/dist/methods/render-into-html.d.ts +2 -0
  113. package/dist/methods/render-rules-from-html.d.ts +3 -0
  114. package/dist/methods/render-rules.d.ts +3 -0
  115. package/dist/methods/render.d.ts +2 -0
  116. package/dist/polyfills/css-escape.d.ts +0 -1
  117. package/dist/rule.d.ts +61 -46
  118. package/dist/theme.d.ts +30 -0
  119. package/dist/utils/css-escape.d.ts +1 -0
  120. package/dist/utils/delay.d.ts +1 -0
  121. package/dist/utils/is-plain-object.d.ts +1 -1
  122. package/dist/utils/parse-rule-value.d.ts +5 -0
  123. package/package.json +1 -162
  124. package/LICENSE +0 -21
  125. package/dist/apis/extend.d.ts +0 -5
  126. package/dist/apis/fill-color-scale.d.ts +0 -1
  127. package/dist/apis/render-from-html.d.ts +0 -3
  128. package/dist/apis/render-into-html.d.ts +0 -3
  129. package/dist/apis/render.d.ts +0 -3
  130. package/dist/config/scheme.d.ts +0 -7
  131. package/dist/config/values.d.ts +0 -126
  132. package/dist/index.browser.js.map +0 -7
  133. package/dist/index.cjs +0 -2
  134. package/dist/index.cjs.map +0 -7
  135. package/dist/index.mjs.map +0 -7
  136. package/dist/rules/accent-color.d.ts +0 -7
  137. package/dist/rules/align-content.d.ts +0 -6
  138. package/dist/rules/align-items.d.ts +0 -6
  139. package/dist/rules/align-self.d.ts +0 -6
  140. package/dist/rules/animation-delay.d.ts +0 -7
  141. package/dist/rules/animation-direction.d.ts +0 -6
  142. package/dist/rules/animation-duration.d.ts +0 -7
  143. package/dist/rules/animation-fill-mode.d.ts +0 -6
  144. package/dist/rules/animation-iteration-count.d.ts +0 -7
  145. package/dist/rules/animation-name.d.ts +0 -6
  146. package/dist/rules/animation-play-state.d.ts +0 -6
  147. package/dist/rules/animation-timing-function.d.ts +0 -6
  148. package/dist/rules/animation.d.ts +0 -8
  149. package/dist/rules/appearance.d.ts +0 -5
  150. package/dist/rules/aspect-radio.d.ts +0 -7
  151. package/dist/rules/backdrop-filter.d.ts +0 -11
  152. package/dist/rules/background-attachment.d.ts +0 -6
  153. package/dist/rules/background-blend-mode.d.ts +0 -5
  154. package/dist/rules/background-clip.d.ts +0 -9
  155. package/dist/rules/background-color.d.ts +0 -8
  156. package/dist/rules/background-image.d.ts +0 -7
  157. package/dist/rules/background-origin.d.ts +0 -6
  158. package/dist/rules/background-position.d.ts +0 -7
  159. package/dist/rules/background-repeat.d.ts +0 -6
  160. package/dist/rules/background-size.d.ts +0 -6
  161. package/dist/rules/background.d.ts +0 -8
  162. package/dist/rules/border-collapse.d.ts +0 -6
  163. package/dist/rules/border-color.d.ts +0 -11
  164. package/dist/rules/border-image-outset.d.ts +0 -5
  165. package/dist/rules/border-image-repeat.d.ts +0 -6
  166. package/dist/rules/border-image-slice.d.ts +0 -6
  167. package/dist/rules/border-image-source.d.ts +0 -6
  168. package/dist/rules/border-image-width.d.ts +0 -6
  169. package/dist/rules/border-image.d.ts +0 -6
  170. package/dist/rules/border-radius.d.ts +0 -9
  171. package/dist/rules/border-spacing.d.ts +0 -5
  172. package/dist/rules/border-style.d.ts +0 -9
  173. package/dist/rules/border-width.d.ts +0 -9
  174. package/dist/rules/border.d.ts +0 -10
  175. package/dist/rules/box-decoration-break.d.ts +0 -9
  176. package/dist/rules/box-shadow.d.ts +0 -7
  177. package/dist/rules/box-sizing.d.ts +0 -6
  178. package/dist/rules/break-after.d.ts +0 -5
  179. package/dist/rules/break-before.d.ts +0 -5
  180. package/dist/rules/break-inside.d.ts +0 -5
  181. package/dist/rules/caret-color.d.ts +0 -7
  182. package/dist/rules/clear.d.ts +0 -5
  183. package/dist/rules/clip-path.d.ts +0 -6
  184. package/dist/rules/color.d.ts +0 -8
  185. package/dist/rules/column-span.d.ts +0 -6
  186. package/dist/rules/columns.d.ts +0 -8
  187. package/dist/rules/contain.d.ts +0 -5
  188. package/dist/rules/content.d.ts +0 -5
  189. package/dist/rules/counter-increment.d.ts +0 -6
  190. package/dist/rules/cursor.d.ts +0 -5
  191. package/dist/rules/cx.d.ts +0 -6
  192. package/dist/rules/cy.d.ts +0 -6
  193. package/dist/rules/direction.d.ts +0 -5
  194. package/dist/rules/display.d.ts +0 -6
  195. package/dist/rules/fill.d.ts +0 -7
  196. package/dist/rules/filter.d.ts +0 -8
  197. package/dist/rules/flex-basis.d.ts +0 -5
  198. package/dist/rules/flex-direction.d.ts +0 -6
  199. package/dist/rules/flex-grow.d.ts +0 -6
  200. package/dist/rules/flex-shrink.d.ts +0 -6
  201. package/dist/rules/flex-wrap.d.ts +0 -6
  202. package/dist/rules/flex.d.ts +0 -7
  203. package/dist/rules/float.d.ts +0 -5
  204. package/dist/rules/font-family.d.ts +0 -6
  205. package/dist/rules/font-size.d.ts +0 -6
  206. package/dist/rules/font-smoothing.d.ts +0 -9
  207. package/dist/rules/font-style.d.ts +0 -7
  208. package/dist/rules/font-variant-numeric.d.ts +0 -6
  209. package/dist/rules/font-weight.d.ts +0 -7
  210. package/dist/rules/font.d.ts +0 -8
  211. package/dist/rules/gap.d.ts +0 -9
  212. package/dist/rules/grid-area.d.ts +0 -7
  213. package/dist/rules/grid-auto-columns.d.ts +0 -6
  214. package/dist/rules/grid-auto-flow.d.ts +0 -6
  215. package/dist/rules/grid-auto-rows.d.ts +0 -5
  216. package/dist/rules/grid-column-end.d.ts +0 -7
  217. package/dist/rules/grid-column-start.d.ts +0 -7
  218. package/dist/rules/grid-column.d.ts +0 -9
  219. package/dist/rules/grid-columns.d.ts +0 -10
  220. package/dist/rules/grid-row-end.d.ts +0 -6
  221. package/dist/rules/grid-row-start.d.ts +0 -6
  222. package/dist/rules/grid-row.d.ts +0 -9
  223. package/dist/rules/grid-rows.d.ts +0 -9
  224. package/dist/rules/grid-template-areas.d.ts +0 -5
  225. package/dist/rules/grid-template-columns.d.ts +0 -6
  226. package/dist/rules/grid-template-rows.d.ts +0 -5
  227. package/dist/rules/grid-template.d.ts +0 -6
  228. package/dist/rules/grid.d.ts +0 -6
  229. package/dist/rules/group.d.ts +0 -9
  230. package/dist/rules/height.d.ts +0 -6
  231. package/dist/rules/inset.d.ts +0 -9
  232. package/dist/rules/isolation.d.ts +0 -5
  233. package/dist/rules/justify-content.d.ts +0 -6
  234. package/dist/rules/justify-items.d.ts +0 -6
  235. package/dist/rules/justify-self.d.ts +0 -6
  236. package/dist/rules/letter-spacing.d.ts +0 -7
  237. package/dist/rules/line-clamp.d.ts +0 -9
  238. package/dist/rules/line-height.d.ts +0 -7
  239. package/dist/rules/lines.d.ts +0 -9
  240. package/dist/rules/list-style-image.d.ts +0 -6
  241. package/dist/rules/list-style-position.d.ts +0 -6
  242. package/dist/rules/list-style-type.d.ts +0 -6
  243. package/dist/rules/list-style.d.ts +0 -6
  244. package/dist/rules/margin.d.ts +0 -9
  245. package/dist/rules/mask-image.d.ts +0 -8
  246. package/dist/rules/max-height.d.ts +0 -6
  247. package/dist/rules/max-width.d.ts +0 -6
  248. package/dist/rules/min-height.d.ts +0 -6
  249. package/dist/rules/min-width.d.ts +0 -6
  250. package/dist/rules/mix-blend-mode.d.ts +0 -6
  251. package/dist/rules/object-fit.d.ts +0 -6
  252. package/dist/rules/object-position.d.ts +0 -6
  253. package/dist/rules/opacity.d.ts +0 -6
  254. package/dist/rules/order.d.ts +0 -7
  255. package/dist/rules/outline-color.d.ts +0 -7
  256. package/dist/rules/outline-offset.d.ts +0 -5
  257. package/dist/rules/outline-style.d.ts +0 -6
  258. package/dist/rules/outline-width.d.ts +0 -6
  259. package/dist/rules/outline.d.ts +0 -7
  260. package/dist/rules/overflow.d.ts +0 -9
  261. package/dist/rules/overscroll-behavior.d.ts +0 -8
  262. package/dist/rules/padding.d.ts +0 -9
  263. package/dist/rules/place-content.d.ts +0 -6
  264. package/dist/rules/place-items.d.ts +0 -6
  265. package/dist/rules/place-self.d.ts +0 -6
  266. package/dist/rules/placement.d.ts +0 -8
  267. package/dist/rules/pointer-events.d.ts +0 -5
  268. package/dist/rules/position.d.ts +0 -5
  269. package/dist/rules/quotes.d.ts +0 -5
  270. package/dist/rules/resize.d.ts +0 -5
  271. package/dist/rules/rx.d.ts +0 -6
  272. package/dist/rules/ry.d.ts +0 -6
  273. package/dist/rules/scroll-behavior.d.ts +0 -5
  274. package/dist/rules/scroll-margin.d.ts +0 -9
  275. package/dist/rules/scroll-padding.d.ts +0 -9
  276. package/dist/rules/scroll-snap-align.d.ts +0 -6
  277. package/dist/rules/scroll-snap-stop.d.ts +0 -6
  278. package/dist/rules/scroll-snap-type.d.ts +0 -6
  279. package/dist/rules/shape-image-threshold.d.ts +0 -6
  280. package/dist/rules/shape-margin.d.ts +0 -6
  281. package/dist/rules/shape-outside.d.ts +0 -6
  282. package/dist/rules/spacing.d.ts +0 -9
  283. package/dist/rules/stroke-dasharray.d.ts +0 -5
  284. package/dist/rules/stroke-dashoffset.d.ts +0 -5
  285. package/dist/rules/stroke-width.d.ts +0 -6
  286. package/dist/rules/stroke.d.ts +0 -6
  287. package/dist/rules/table-layout.d.ts +0 -5
  288. package/dist/rules/text-align.d.ts +0 -6
  289. package/dist/rules/text-decoration-color.d.ts +0 -7
  290. package/dist/rules/text-decoration-line.d.ts +0 -6
  291. package/dist/rules/text-decoration-style.d.ts +0 -6
  292. package/dist/rules/text-decoration-thickness.d.ts +0 -7
  293. package/dist/rules/text-decoration.d.ts +0 -8
  294. package/dist/rules/text-fill-color.d.ts +0 -10
  295. package/dist/rules/text-indent.d.ts +0 -5
  296. package/dist/rules/text-orientation.d.ts +0 -6
  297. package/dist/rules/text-overflow.d.ts +0 -6
  298. package/dist/rules/text-rendering.d.ts +0 -6
  299. package/dist/rules/text-shadow.d.ts +0 -6
  300. package/dist/rules/text-size.d.ts +0 -8
  301. package/dist/rules/text-stroke-color.d.ts +0 -10
  302. package/dist/rules/text-stroke-width.d.ts +0 -8
  303. package/dist/rules/text-stroke.d.ts +0 -8
  304. package/dist/rules/text-transform.d.ts +0 -6
  305. package/dist/rules/text-underline-offset.d.ts +0 -5
  306. package/dist/rules/touch-action.d.ts +0 -5
  307. package/dist/rules/transform-box.d.ts +0 -6
  308. package/dist/rules/transform-origin.d.ts +0 -7
  309. package/dist/rules/transform-style.d.ts +0 -6
  310. package/dist/rules/transform.d.ts +0 -9
  311. package/dist/rules/transition-delay.d.ts +0 -7
  312. package/dist/rules/transition-duration.d.ts +0 -7
  313. package/dist/rules/transition-property.d.ts +0 -6
  314. package/dist/rules/transition-timing-function.d.ts +0 -6
  315. package/dist/rules/transition.d.ts +0 -7
  316. package/dist/rules/user-drag.d.ts +0 -8
  317. package/dist/rules/user-select.d.ts +0 -8
  318. package/dist/rules/variable.d.ts +0 -9
  319. package/dist/rules/vertical-align.d.ts +0 -6
  320. package/dist/rules/visibility.d.ts +0 -5
  321. package/dist/rules/white-space.d.ts +0 -6
  322. package/dist/rules/width.d.ts +0 -6
  323. package/dist/rules/will-change.d.ts +0 -5
  324. package/dist/rules/word-break.d.ts +0 -6
  325. package/dist/rules/word-spacing.d.ts +0 -6
  326. package/dist/rules/writing-mode.d.ts +0 -6
  327. package/dist/rules/x.d.ts +0 -6
  328. package/dist/rules/y.d.ts +0 -6
  329. package/dist/rules/z-index.d.ts +0 -7
  330. package/dist/utils/get-border-props.d.ts +0 -3
  331. package/dist/utils/get-css-property-text.d.ts +0 -5
  332. package/dist/utils/normalize-css-calc-text.d.ts +0 -5
  333. package/dist/utils/parse-value-unit.d.ts +0 -2
  334. package/dist/utils/parse-value.d.ts +0 -6
  335. package/readme.md +0 -118
@@ -0,0 +1 @@
1
+ var c=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var u=Object.getOwnPropertyNames;var f=Object.prototype.hasOwnProperty;var a=(r,t)=>{for(var i in t)c(r,i,{get:t[i],enumerable:!0})},h=(r,t,i,x)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of u(t))!f.call(r,n)&&n!==i&&c(r,n,{get:()=>t[n],enumerable:!(x=s(t,n))||x.enumerable});return r};var g=r=>h(c({},"__esModule",{value:!0}),r);var d={};a(d,{cssEscape:()=>S});module.exports=g(d);function S(r){if(typeof CSS<"u")return CSS.escape(r);if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");let t=String(r),i=t.length,x=-1,n="",e,o=t.charCodeAt(0);if(i==1&&o==45)return"\\"+t;for(;++x<i;){if(e=t.charCodeAt(x),e==0){n+="\uFFFD";continue}if(e>=1&&e<=31||e==127||x==0&&e>=48&&e<=57||x==1&&e>=48&&e<=57&&o==45){n+="\\"+e.toString(16)+" ";continue}if(e>=128||e==45||e==95||e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122){n+=t.charAt(x);continue}n+="\\"+t.charAt(x)}return n}0&&(module.exports={cssEscape});
@@ -0,0 +1 @@
1
+ var r=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var f=Object.prototype.hasOwnProperty;var l=(t,e)=>{for(var o in e)r(t,o,{get:e[o],enumerable:!0})},m=(t,e,o,u)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of d(e))!f.call(t,n)&&n!==o&&r(t,n,{get:()=>e[n],enumerable:!(u=a(e,n))||u.enumerable});return t};var s=t=>m(r({},"__esModule",{value:!0}),t);var c={};l(c,{default:()=>i});module.exports=s(c);function i(t=0){return new Promise(e=>{setTimeout(e,t)})}
@@ -0,0 +1 @@
1
+ var o=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var p=Object.getOwnPropertyNames;var g=Object.prototype.hasOwnProperty;var l=(t,e)=>{for(var r in e)o(t,r,{get:e[r],enumerable:!0})},y=(t,e,r,c)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of p(e))!g.call(t,n)&&n!==r&&o(t,n,{get:()=>e[n],enumerable:!(c=i(e,n))||c.enumerable});return t};var a=t=>y(o({},"__esModule",{value:!0}),t);var u={};l(u,{getType:()=>s});module.exports=a(u);function s(t){return Object.prototype.toString.call(t).slice(8,-1)}0&&(module.exports={getType});
@@ -0,0 +1 @@
1
+ var a=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var o=Object.prototype.hasOwnProperty;var p=(n,t)=>{for(var s in t)a(n,s,{get:t[s],enumerable:!0})},g=(n,t,s,e)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of i(t))!o.call(n,r)&&r!==s&&a(n,r,{get:()=>t[r],enumerable:!(e=c(t,r))||e.enumerable});return n};var I=n=>g(a({},"__esModule",{value:!0}),n);var f={};p(f,{hexToRgb:()=>b});module.exports=I(f);function b(n){n.startsWith("#")&&(n=n.slice(1));let t=n.match(/.{1,2}/g);return[parseInt(t[0],16),parseInt(t[1],16),parseInt(t[2],16)]}0&&(module.exports={hexToRgb});
@@ -0,0 +1 @@
1
+ var o=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var O=Object.getOwnPropertyNames;var j=Object.prototype.hasOwnProperty;var p=(t,e)=>{for(var n in e)o(t,n,{get:e[n],enumerable:!0})},s=(t,e,n,c)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of O(e))!j.call(t,r)&&r!==n&&o(t,r,{get:()=>e[r],enumerable:!(c=i(e,r))||c.enumerable});return t};var y=t=>s(o({},"__esModule",{value:!0}),t);var u={};p(u,{isPlainObject:()=>f});module.exports=y(u);var b=require("./get-type");function f(t){return(0,b.getType)(t)!=="Object"?!1:t.constructor===Object&&Object.getPrototypeOf(t)===Object.prototype}0&&(module.exports={isPlainObject});
@@ -0,0 +1 @@
1
+ var t=Object.defineProperty;var l=Object.getOwnPropertyDescriptor;var n=Object.getOwnPropertyNames;var p=Object.prototype.hasOwnProperty;var a=(o,y)=>{for(var r in y)t(o,r,{get:y[r],enumerable:!0})},b=(o,y,r,e)=>{if(y&&typeof y=="object"||typeof y=="function")for(let m of n(y))!p.call(o,m)&&m!==r&&t(o,m,{get:()=>y[m],enumerable:!(e=l(y,m))||e.enumerable});return o};var s=o=>b(t({},"__esModule",{value:!0}),o);var u={};a(u,{isSymbol:()=>f});module.exports=s(u);var i=require("./get-type");function f(o){return(0,i.getType)(o)==="Symbol"}0&&(module.exports={isSymbol});
@@ -0,0 +1 @@
1
+ var f=Object.defineProperty;var x=Object.getOwnPropertyDescriptor;var C=Object.getOwnPropertyNames;var N=Object.prototype.hasOwnProperty;var v=(e,t)=>{for(var r in t)f(e,r,{get:t[r],enumerable:!0})},w=(e,t,r,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of C(t))!N.call(e,n)&&n!==r&&f(e,n,{get:()=>t[n],enumerable:!(a=x(t,n))||a.enumerable});return e};var z=e=>w(f({},"__esModule",{value:!0}),e);var $={};v($,{parseRuleValue:()=>V});module.exports=z($);function V(e,t,r,a,n,p){let s="",g="",c;if(typeof e=="number")s=e,g=t||"";else{if(a){let d=!1,h=!1;e=e.replace(new RegExp(`(^|,| |\\()((?:${r.join("|")})(?:-(?:[0-9A-Za-z-]+))?)(?:\\/(\\.?[0-9]+%?))?(?=(\\)|\\}|,| |$))`,"gm"),(b,M,R,i)=>{h=!0;let m=a[R];if(m){let u;for(let l of p)if(u=m[l])break;if(u){d=!0;let l=u;if(i){let o=i.endsWith("%")?parseFloat(i)/100:+i;o=isNaN(o)?1:Math.min(Math.max(o,0),1),l+=Math.round(o*255).toString(16).toUpperCase().padStart(2,"0")}return M+l}}return b}),h&&(c=d)}s=e}return{value:s,unit:g,colorMatched:c}}0&&(module.exports={parseRuleValue});
@@ -0,0 +1 @@
1
+ var o=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var g=Object.getOwnPropertyNames;var u=Object.prototype.hasOwnProperty;var x=(t,r)=>{for(var e in r)o(t,e,{get:r[e],enumerable:!0})},b=(t,r,e,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of g(r))!u.call(t,n)&&n!==e&&o(t,n,{get:()=>r[n],enumerable:!(i=c(r,n))||i.enumerable});return t};var f=t=>b(o({},"__esModule",{value:!0}),t);var p={};x(p,{rgbToHex:()=>l});module.exports=f(p);function l(t,r,e){return((1<<24)+(t<<16)+(r<<8)+e).toString(16).slice(1)}0&&(module.exports={rgbToHex});
@@ -1,4 +1,4 @@
1
- declare const defaultBreakpoints: {
1
+ export declare const breakpoints: {
2
2
  '3xs': number;
3
3
  '2xs': number;
4
4
  xs: number;
@@ -10,4 +10,3 @@ declare const defaultBreakpoints: {
10
10
  '3xl': number;
11
11
  '4xl': number;
12
12
  };
13
- export default defaultBreakpoints;
@@ -1,4 +1,6 @@
1
- declare const defaultColors: {
1
+ export declare const colors: {
2
+ black: string;
3
+ white: string;
2
4
  slate: any;
3
5
  gray: any;
4
6
  brown: any;
@@ -19,7 +21,4 @@ declare const defaultColors: {
19
21
  pink: any;
20
22
  crimson: any;
21
23
  red: any;
22
- black: string;
23
- white: string;
24
24
  };
25
- export default defaultColors;
@@ -0,0 +1,7 @@
1
+ import { Rule } from '../rule';
2
+ export declare const functions: Record<string, FunctionConfig>;
3
+ export interface FunctionConfig {
4
+ unit?: string;
5
+ name?: string;
6
+ transform?(this: Rule, value: string): string;
7
+ }
@@ -0,0 +1 @@
1
+ export declare const important = false;
@@ -1,27 +1,62 @@
1
- import MasterCSSRule from '../rule';
2
- import MasterCSS from '../css';
3
- declare const defaultConfig: MasterCSSConfig;
4
- export default defaultConfig;
5
- export interface MasterCSSConfig {
6
- classes?: Record<string, string>;
7
- colors?: Record<string, string | Record<string, string>>;
8
- breakpoints?: Record<string, number>;
9
- mediaQueries?: Record<string, string>;
10
- selectors?: Record<string, string | string[]>;
11
- semantics?: Record<string, string | Record<string, string | number>>;
12
- values?: Record<string, Record<string, string | number>>;
13
- Rules?: typeof MasterCSSRule[];
1
+ import { breakpoints } from './breakpoints';
2
+ import { colors } from './colors';
3
+ import { rootSize } from './root-size';
4
+ import { scope } from './scope';
5
+ import { selectors } from './selectors';
6
+ import { semantics } from './semantics';
7
+ import { themes } from './themes';
8
+ import { rules } from './rules';
9
+ import { override } from './override';
10
+ import { observe } from './observe';
11
+ import { important } from './important';
12
+ import { keyframes } from './keyframes';
13
+ import { functions, FunctionConfig } from './functions';
14
+ declare const config: Config;
15
+ export { config, breakpoints, colors, rootSize, scope, selectors, semantics, themes, rules, override, observe, important, functions, keyframes };
16
+ import type { RuleConfig } from '../rule';
17
+ type Classes = {
18
+ [key: string]: string | Classes;
19
+ };
20
+ type Colors = {
21
+ [key: string]: string | Colors;
22
+ };
23
+ type Breakpoints = {
24
+ [key: string]: number | Breakpoints;
25
+ };
26
+ type MediaQueries = {
27
+ [key: string]: string | MediaQueries;
28
+ };
29
+ type Selectors = {
30
+ [key: string]: string | string[] | Selectors;
31
+ };
32
+ type SemanticsBase = {
33
+ [key: string]: string | number | SemanticsBase;
34
+ };
35
+ type Semantics = {
36
+ [key: string]: SemanticsBase;
37
+ };
38
+ export type Values = {
39
+ [key: string]: string | number | Values;
40
+ };
41
+ export interface Config {
42
+ classes?: Classes;
43
+ colors?: Colors;
44
+ breakpoints?: Breakpoints;
45
+ mediaQueries?: MediaQueries;
46
+ selectors?: Selectors;
47
+ semantics?: Semantics;
48
+ values?: Values;
49
+ rules?: Record<string, RuleConfig>;
14
50
  themes?: Record<string, {
15
- classes?: Record<string, string>;
16
- colors?: Record<string, string | Record<string, string>>;
51
+ classes?: Classes;
52
+ colors?: Colors;
17
53
  }> | string[];
18
54
  rootSize?: number;
19
- validateRule?: (rule: MasterCSSRule, css?: MasterCSS) => boolean;
20
- scheme?: {
21
- preference?: string;
22
- storage?: {
23
- sync?: boolean;
24
- key?: string;
25
- };
26
- };
55
+ scope?: string;
56
+ important?: boolean;
57
+ override?: boolean;
58
+ observe?: boolean;
59
+ functions?: Record<string, FunctionConfig>;
60
+ keyframes?: Record<string, Record<string, Record<string, string | number>>>;
61
+ precedence?: 'highest' | 'higher' | 'lowest';
27
62
  }
@@ -0,0 +1,109 @@
1
+ export declare const keyframes: {
2
+ fade: {
3
+ '0%': {
4
+ opacity: number;
5
+ };
6
+ to: {
7
+ opacity: number;
8
+ };
9
+ };
10
+ flash: {
11
+ '0%,50%,to': {
12
+ opacity: number;
13
+ };
14
+ '25%,75%': {
15
+ opacity: number;
16
+ };
17
+ };
18
+ float: {
19
+ '0%': {
20
+ transform: string;
21
+ };
22
+ '50%': {
23
+ transform: string;
24
+ };
25
+ to: {
26
+ transform: string;
27
+ };
28
+ };
29
+ heart: {
30
+ '0%': {
31
+ transform: string;
32
+ };
33
+ '14%': {
34
+ transform: string;
35
+ };
36
+ '28%': {
37
+ transform: string;
38
+ };
39
+ '42%': {
40
+ transform: string;
41
+ };
42
+ '70%': {
43
+ transform: string;
44
+ };
45
+ };
46
+ jump: {
47
+ '0%,to': {
48
+ transform: string;
49
+ 'animation-timing-function': string;
50
+ };
51
+ '50%': {
52
+ transform: string;
53
+ 'animation-timing-function': string;
54
+ };
55
+ };
56
+ ping: {
57
+ '75%,to': {
58
+ transform: string;
59
+ opacity: number;
60
+ };
61
+ };
62
+ pulse: {
63
+ '0%': {
64
+ transform: string;
65
+ };
66
+ '50%': {
67
+ transform: string;
68
+ };
69
+ to: {
70
+ transform: string;
71
+ };
72
+ };
73
+ rotate: {
74
+ '0%': {
75
+ transform: string;
76
+ };
77
+ to: {
78
+ transform: string;
79
+ };
80
+ };
81
+ shake: {
82
+ '0%': {
83
+ transform: string;
84
+ };
85
+ '6.5%': {
86
+ transform: string;
87
+ };
88
+ '18.5%': {
89
+ transform: string;
90
+ };
91
+ '31.5%': {
92
+ transform: string;
93
+ };
94
+ '43.5%': {
95
+ transform: string;
96
+ };
97
+ '50%': {
98
+ transform: string;
99
+ };
100
+ };
101
+ zoom: {
102
+ '0%': {
103
+ transform: string;
104
+ };
105
+ to: {
106
+ transform: string;
107
+ };
108
+ };
109
+ };
@@ -0,0 +1 @@
1
+ export declare const observe = true;
@@ -0,0 +1 @@
1
+ export declare const override = false;
@@ -1,2 +1 @@
1
- declare const defaultRootSize = 16;
2
- export default defaultRootSize;
1
+ export declare const rootSize = 16;
@@ -1,3 +1,267 @@
1
- import FontWeight from '../rules/font-weight';
2
- declare const DefaultRules: (typeof FontWeight)[];
3
- export default DefaultRules;
1
+ import { RuleConfig } from '../rule';
2
+ export declare const rules: {
3
+ filter: RuleConfig;
4
+ fill: RuleConfig;
5
+ flex: RuleConfig;
6
+ grid: RuleConfig;
7
+ group: RuleConfig;
8
+ variable: RuleConfig;
9
+ fontSize: RuleConfig;
10
+ fontWeight: RuleConfig;
11
+ fontFamily: RuleConfig;
12
+ fontSmoothing: RuleConfig;
13
+ fontStyle: RuleConfig;
14
+ fontVariantNumeric: RuleConfig;
15
+ fontFeatureSettings: RuleConfig;
16
+ font: RuleConfig;
17
+ color: RuleConfig;
18
+ marginLeft: RuleConfig;
19
+ marginRight: RuleConfig;
20
+ marginTop: RuleConfig;
21
+ marginBottom: RuleConfig;
22
+ marginX: RuleConfig;
23
+ marginY: RuleConfig;
24
+ margin: RuleConfig;
25
+ paddingLeft: RuleConfig;
26
+ paddingRight: RuleConfig;
27
+ paddingTop: RuleConfig;
28
+ paddingBottom: RuleConfig;
29
+ paddingX: RuleConfig;
30
+ paddingY: RuleConfig;
31
+ padding: RuleConfig;
32
+ flexBasis: RuleConfig;
33
+ flexWrap: RuleConfig;
34
+ flexGrow: RuleConfig;
35
+ flexShrink: RuleConfig;
36
+ flexDirection: RuleConfig;
37
+ display: RuleConfig;
38
+ width: RuleConfig;
39
+ height: RuleConfig;
40
+ minWidth: RuleConfig;
41
+ minHeight: RuleConfig;
42
+ box: RuleConfig;
43
+ minBox: RuleConfig;
44
+ maxBox: RuleConfig;
45
+ contain: RuleConfig;
46
+ content: RuleConfig;
47
+ counterIncrement: RuleConfig;
48
+ counterReset: RuleConfig;
49
+ letterSpacing: RuleConfig;
50
+ lineHeight: RuleConfig;
51
+ objectFit: RuleConfig;
52
+ objectPosition: RuleConfig;
53
+ textAlign: RuleConfig;
54
+ textDecorationColor: RuleConfig;
55
+ textDecorationStyle: RuleConfig;
56
+ textDecorationThickness: RuleConfig;
57
+ textDecorationLine: RuleConfig;
58
+ textDecoration: RuleConfig;
59
+ textUnderlineOffset: RuleConfig;
60
+ textOverflow: RuleConfig;
61
+ textOrientation: RuleConfig;
62
+ textTransform: RuleConfig;
63
+ textRendering: RuleConfig;
64
+ textIndent: RuleConfig;
65
+ verticalAlign: RuleConfig;
66
+ columns: RuleConfig;
67
+ whiteSpace: RuleConfig;
68
+ top: RuleConfig;
69
+ bottom: RuleConfig;
70
+ left: RuleConfig;
71
+ right: RuleConfig;
72
+ inset: RuleConfig;
73
+ lines: RuleConfig;
74
+ maxHeight: RuleConfig;
75
+ maxWidth: RuleConfig;
76
+ boxSizing: RuleConfig;
77
+ opacity: RuleConfig;
78
+ visibility: RuleConfig;
79
+ clear: RuleConfig;
80
+ float: RuleConfig;
81
+ isolation: RuleConfig;
82
+ overflowX: RuleConfig;
83
+ overflowY: RuleConfig;
84
+ overflow: RuleConfig;
85
+ overscrollBehaviorX: RuleConfig;
86
+ overscrollBehaviorY: RuleConfig;
87
+ overscrollBehavior: RuleConfig;
88
+ zIndex: RuleConfig;
89
+ position: RuleConfig;
90
+ cursor: RuleConfig;
91
+ pointerEvents: RuleConfig;
92
+ resize: RuleConfig;
93
+ touchAction: RuleConfig;
94
+ wordBreak: RuleConfig;
95
+ wordSpacing: RuleConfig;
96
+ userDrag: RuleConfig;
97
+ userSelect: RuleConfig;
98
+ textShadow: RuleConfig;
99
+ textSize: RuleConfig;
100
+ textFillColor: RuleConfig;
101
+ textStrokeWidth: RuleConfig;
102
+ textStrokeColor: RuleConfig;
103
+ textStroke: RuleConfig;
104
+ boxShadow: RuleConfig;
105
+ tableLayout: RuleConfig;
106
+ transformBox: RuleConfig;
107
+ transformStyle: RuleConfig;
108
+ transformOrigin: RuleConfig;
109
+ transform: RuleConfig;
110
+ transitionProperty: RuleConfig;
111
+ transitionTimingFunction: RuleConfig;
112
+ transitionDuration: RuleConfig;
113
+ transitionDelay: RuleConfig;
114
+ transition: RuleConfig;
115
+ animationDelay: RuleConfig;
116
+ animationDirection: RuleConfig;
117
+ animationDuration: RuleConfig;
118
+ animationFillMode: RuleConfig;
119
+ animationIterationCount: RuleConfig;
120
+ animationName: RuleConfig;
121
+ animationPlayState: RuleConfig;
122
+ animationTimingFunction: RuleConfig;
123
+ animation: RuleConfig;
124
+ borderCollapse: RuleConfig;
125
+ borderSpacing: RuleConfig;
126
+ borderTopColor: RuleConfig;
127
+ borderBottomColor: RuleConfig;
128
+ borderLeftColor: RuleConfig;
129
+ borderRightColor: RuleConfig;
130
+ borderXColor: RuleConfig;
131
+ borderYColor: RuleConfig;
132
+ borderColor: RuleConfig;
133
+ borderTopLeftRadius: RuleConfig;
134
+ borderTopRightRadius: RuleConfig;
135
+ borderBottomLeftRadius: RuleConfig;
136
+ borderBottomRightRadius: RuleConfig;
137
+ borderTopRadius: RuleConfig;
138
+ borderBottomRadius: RuleConfig;
139
+ borderLeftRadius: RuleConfig;
140
+ borderRightRadius: RuleConfig;
141
+ borderRadius: RuleConfig;
142
+ borderTopStyle: RuleConfig;
143
+ borderBottomStyle: RuleConfig;
144
+ borderLeftStyle: RuleConfig;
145
+ borderRightStyle: RuleConfig;
146
+ borderXStyle: RuleConfig;
147
+ borderYStyle: RuleConfig;
148
+ borderStyle: RuleConfig;
149
+ borderTopWidth: RuleConfig;
150
+ borderBottomWidth: RuleConfig;
151
+ borderLeftWidth: RuleConfig;
152
+ borderRightWidth: RuleConfig;
153
+ borderXWidth: RuleConfig;
154
+ borderYWidth: RuleConfig;
155
+ borderWidth: RuleConfig;
156
+ borderImageOutset: RuleConfig;
157
+ borderImageRepeat: RuleConfig;
158
+ borderImageSlice: RuleConfig;
159
+ borderImageSource: RuleConfig;
160
+ borderImageWidth: RuleConfig;
161
+ borderImage: RuleConfig;
162
+ borderTop: RuleConfig;
163
+ borderBottom: RuleConfig;
164
+ borderLeft: RuleConfig;
165
+ borderRight: RuleConfig;
166
+ borderX: RuleConfig;
167
+ borderY: RuleConfig;
168
+ border: RuleConfig;
169
+ backgroundAttachment: RuleConfig;
170
+ backgroundBlendMode: RuleConfig;
171
+ backgroundColor: RuleConfig;
172
+ backgroundClip: RuleConfig;
173
+ backgroundOrigin: RuleConfig;
174
+ backgroundPosition: RuleConfig;
175
+ backgroundRepeat: RuleConfig;
176
+ backgroundSize: RuleConfig;
177
+ backgroundImage: RuleConfig;
178
+ background: RuleConfig;
179
+ mixBlendMode: RuleConfig;
180
+ backdropFilter: RuleConfig;
181
+ strokeDasharray: RuleConfig;
182
+ strokeDashoffset: RuleConfig;
183
+ strokeWidth: RuleConfig;
184
+ stroke: RuleConfig;
185
+ x: RuleConfig;
186
+ y: RuleConfig;
187
+ cx: RuleConfig;
188
+ cy: RuleConfig;
189
+ rx: RuleConfig;
190
+ ry: RuleConfig;
191
+ gridColumnStart: RuleConfig;
192
+ gridColumnEnd: RuleConfig;
193
+ gridColumn: RuleConfig;
194
+ gridColumns: RuleConfig;
195
+ gridRowStart: RuleConfig;
196
+ gridRowEnd: RuleConfig;
197
+ gridRow: RuleConfig;
198
+ gridRows: RuleConfig;
199
+ gridAutoColumns: RuleConfig;
200
+ gridAutoFlow: RuleConfig;
201
+ gridAutoRows: RuleConfig;
202
+ gridTemplateAreas: RuleConfig;
203
+ gridTemplateColumns: RuleConfig;
204
+ gridTemplateRows: RuleConfig;
205
+ gridTemplate: RuleConfig;
206
+ gridArea: RuleConfig;
207
+ columnGap: RuleConfig;
208
+ rowGap: RuleConfig;
209
+ gap: RuleConfig;
210
+ order: RuleConfig;
211
+ breakInside: RuleConfig;
212
+ breakBefore: RuleConfig;
213
+ breakAfter: RuleConfig;
214
+ boxDecorationBreak: RuleConfig;
215
+ aspectRatio: RuleConfig;
216
+ columnSpan: RuleConfig;
217
+ alignContent: RuleConfig;
218
+ alignItems: RuleConfig;
219
+ alignSelf: RuleConfig;
220
+ justifyContent: RuleConfig;
221
+ justifyItems: RuleConfig;
222
+ justifySelf: RuleConfig;
223
+ placeContent: RuleConfig;
224
+ placeItems: RuleConfig;
225
+ placeSelf: RuleConfig;
226
+ listStylePosition: RuleConfig;
227
+ listStyleType: RuleConfig;
228
+ listStyleImage: RuleConfig;
229
+ listStyle: RuleConfig;
230
+ outlineColor: RuleConfig;
231
+ outlineOffset: RuleConfig;
232
+ outlineStyle: RuleConfig;
233
+ outlineWidth: RuleConfig;
234
+ outline: RuleConfig;
235
+ accentColor: RuleConfig;
236
+ appearance: RuleConfig;
237
+ caretColor: RuleConfig;
238
+ scrollBehavior: RuleConfig;
239
+ scrollMarginLeft: RuleConfig;
240
+ scrollMarginRight: RuleConfig;
241
+ scrollMarginTop: RuleConfig;
242
+ scrollMarginBottom: RuleConfig;
243
+ scrollMarginX: RuleConfig;
244
+ scrollMarginY: RuleConfig;
245
+ scrollMargin: RuleConfig;
246
+ scrollPaddingLeft: RuleConfig;
247
+ scrollPaddingRight: RuleConfig;
248
+ scrollPaddingTop: RuleConfig;
249
+ scrollPaddingBottom: RuleConfig;
250
+ scrollPaddingX: RuleConfig;
251
+ scrollPaddingY: RuleConfig;
252
+ scrollPadding: RuleConfig;
253
+ scrollSnapAlign: RuleConfig;
254
+ scrollSnapStop: RuleConfig;
255
+ scrollSnapType: RuleConfig;
256
+ willChange: RuleConfig;
257
+ writingMode: RuleConfig;
258
+ direction: RuleConfig;
259
+ shapeOutside: RuleConfig;
260
+ shapeMargin: RuleConfig;
261
+ shapeImageThreshold: RuleConfig;
262
+ clipPath: RuleConfig;
263
+ quotes: RuleConfig;
264
+ maskImage: RuleConfig;
265
+ } & {
266
+ [key: string]: RuleConfig;
267
+ };
@@ -0,0 +1 @@
1
+ export declare const scope = "";
@@ -1,4 +1,4 @@
1
- declare const defaultSelectors: {
1
+ export declare const selectors: {
2
2
  '::scrollbar': string;
3
3
  '::scrollbar-button': string;
4
4
  '::scrollbar-thumb': string;
@@ -16,4 +16,3 @@ declare const defaultSelectors: {
16
16
  ':odd': string;
17
17
  ':nth(': string;
18
18
  };
19
- export default defaultSelectors;