@master/css 2.0.0-beta.13 → 2.0.0-beta.131

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 (344) hide show
  1. package/README.md +102 -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/precedence.js +1 -0
  13. package/dist/cjs/config/root-size.js +1 -0
  14. package/dist/cjs/config/rules.js +1 -0
  15. package/dist/cjs/config/scope.js +1 -0
  16. package/dist/cjs/config/selectors.js +1 -0
  17. package/dist/cjs/config/semantics.js +1 -0
  18. package/dist/cjs/config/themes.js +1 -0
  19. package/dist/cjs/constants/box-underneath.js +1 -0
  20. package/dist/cjs/constants/content-extrema.js +1 -0
  21. package/dist/cjs/constants/selector-symbols.js +1 -0
  22. package/dist/cjs/constants/sizing-values.js +1 -0
  23. package/dist/cjs/constants/sorted-selectors.js +1 -0
  24. package/dist/cjs/constants/start-symbol.js +1 -0
  25. package/dist/cjs/css.js +1 -0
  26. package/dist/cjs/index.browser.js +1 -0
  27. package/dist/cjs/index.js +1 -0
  28. package/dist/cjs/methods/define-content.js +25 -0
  29. package/dist/cjs/methods/fill-color-scale.js +1 -0
  30. package/dist/cjs/methods/index.js +1 -0
  31. package/dist/cjs/methods/render-from-html.js +1 -0
  32. package/dist/cjs/methods/render-into-html.js +1 -0
  33. package/dist/cjs/methods/render.js +1 -0
  34. package/dist/cjs/polyfills/css-escape.js +1 -0
  35. package/dist/cjs/rule.js +1 -0
  36. package/dist/cjs/theme.js +1 -0
  37. package/dist/cjs/utils/concat-arrays.js +1 -0
  38. package/dist/cjs/utils/css-escape.js +1 -0
  39. package/dist/cjs/utils/delay.js +1 -0
  40. package/dist/cjs/utils/get-type.js +1 -0
  41. package/dist/cjs/utils/hex-to-rgb.js +1 -0
  42. package/dist/cjs/utils/is-plain-object.js +1 -0
  43. package/dist/cjs/utils/is-symbol.js +1 -0
  44. package/dist/cjs/utils/parse-rule-value.js +1 -0
  45. package/dist/cjs/utils/read-package.js +1 -0
  46. package/dist/cjs/utils/rgb-to-hex.js +1 -0
  47. package/dist/config/breakpoints.d.ts +1 -2
  48. package/dist/config/colors.d.ts +3 -4
  49. package/dist/config/functions.d.ts +7 -0
  50. package/dist/config/important.d.ts +1 -0
  51. package/dist/config/index.d.ts +59 -23
  52. package/dist/config/keyframes.d.ts +109 -0
  53. package/dist/config/observe.d.ts +1 -0
  54. package/dist/config/override.d.ts +1 -0
  55. package/dist/config/precedence.d.ts +1 -0
  56. package/dist/config/root-size.d.ts +1 -2
  57. package/dist/config/rules.d.ts +2 -3
  58. package/dist/config/scope.d.ts +1 -0
  59. package/dist/config/selectors.d.ts +1 -2
  60. package/dist/config/semantics.d.ts +142 -43
  61. package/dist/config/themes.d.ts +1 -2
  62. package/dist/constants/box-underneath.d.ts +5 -0
  63. package/dist/constants/content-extrema.d.ts +4 -0
  64. package/dist/constants/selector-symbols.d.ts +1 -0
  65. package/dist/constants/sizing-values.d.ts +7 -0
  66. package/dist/constants/sorted-selectors.d.ts +1 -0
  67. package/dist/constants/start-symbol.d.ts +1 -0
  68. package/dist/css.d.ts +58 -62
  69. package/dist/esm/bin/index.mjs +2 -0
  70. package/dist/esm/config/breakpoints.mjs +1 -0
  71. package/dist/esm/config/colors.mjs +1 -0
  72. package/dist/esm/config/functions.mjs +1 -0
  73. package/dist/esm/config/important.mjs +1 -0
  74. package/dist/esm/config/index.mjs +1 -0
  75. package/dist/esm/config/keyframes.mjs +1 -0
  76. package/dist/esm/config/observe.mjs +1 -0
  77. package/dist/esm/config/override.mjs +1 -0
  78. package/dist/esm/config/precedence.mjs +1 -0
  79. package/dist/esm/config/root-size.mjs +1 -0
  80. package/dist/esm/config/rules.mjs +1 -0
  81. package/dist/esm/config/scope.mjs +1 -0
  82. package/dist/esm/config/selectors.mjs +1 -0
  83. package/dist/esm/config/semantics.mjs +1 -0
  84. package/dist/esm/config/themes.mjs +1 -0
  85. package/dist/esm/constants/box-underneath.mjs +1 -0
  86. package/dist/esm/constants/content-extrema.mjs +1 -0
  87. package/dist/esm/constants/selector-symbols.mjs +1 -0
  88. package/dist/esm/constants/sizing-values.mjs +1 -0
  89. package/dist/esm/constants/sorted-selectors.mjs +1 -0
  90. package/dist/esm/constants/start-symbol.mjs +1 -0
  91. package/dist/esm/css.mjs +1 -0
  92. package/dist/esm/index.browser.mjs +1 -0
  93. package/dist/esm/index.mjs +1 -0
  94. package/dist/esm/methods/define-content.mjs +25 -0
  95. package/dist/esm/methods/fill-color-scale.mjs +1 -0
  96. package/dist/esm/methods/index.mjs +1 -0
  97. package/dist/esm/methods/render-from-html.mjs +1 -0
  98. package/dist/esm/methods/render-into-html.mjs +1 -0
  99. package/dist/esm/methods/render.mjs +1 -0
  100. package/dist/esm/polyfills/css-escape.mjs +1 -0
  101. package/dist/esm/rule.mjs +1 -0
  102. package/dist/esm/theme.mjs +1 -0
  103. package/dist/esm/utils/concat-arrays.mjs +1 -0
  104. package/dist/esm/utils/css-escape.mjs +1 -0
  105. package/dist/esm/utils/delay.mjs +1 -0
  106. package/dist/esm/utils/get-type.mjs +1 -0
  107. package/dist/esm/utils/hex-to-rgb.mjs +1 -0
  108. package/dist/esm/utils/is-plain-object.mjs +1 -0
  109. package/dist/esm/utils/is-symbol.mjs +1 -0
  110. package/dist/esm/utils/parse-rule-value.mjs +1 -0
  111. package/dist/esm/utils/read-package.mjs +1 -0
  112. package/dist/esm/utils/rgb-to-hex.mjs +1 -0
  113. package/dist/index.browser.d.ts +6 -1
  114. package/dist/index.browser.js +1 -2
  115. package/dist/index.d.ts +7 -20
  116. package/dist/index.js +25 -0
  117. package/dist/index.mjs +25 -2
  118. package/dist/methods/define-content.d.ts +5 -0
  119. package/dist/methods/fill-color-scale.d.ts +1 -0
  120. package/dist/methods/index.d.ts +5 -0
  121. package/dist/methods/render-from-html.d.ts +2 -0
  122. package/dist/methods/render-into-html.d.ts +2 -0
  123. package/dist/methods/render.d.ts +2 -0
  124. package/dist/polyfills/css-escape.d.ts +0 -1
  125. package/dist/rule.d.ts +61 -46
  126. package/dist/theme.d.ts +30 -0
  127. package/dist/utils/css-escape.d.ts +1 -0
  128. package/dist/utils/delay.d.ts +2 -0
  129. package/dist/utils/is-plain-object.d.ts +1 -1
  130. package/dist/utils/parse-rule-value.d.ts +5 -0
  131. package/dist/utils/read-package.d.ts +2 -0
  132. package/package.json +1 -162
  133. package/LICENSE +0 -21
  134. package/dist/apis/extend.d.ts +0 -5
  135. package/dist/apis/fill-color-scale.d.ts +0 -1
  136. package/dist/apis/render-from-html.d.ts +0 -3
  137. package/dist/apis/render-into-html.d.ts +0 -3
  138. package/dist/apis/render.d.ts +0 -3
  139. package/dist/config/scheme.d.ts +0 -7
  140. package/dist/config/values.d.ts +0 -126
  141. package/dist/index.browser.js.map +0 -7
  142. package/dist/index.cjs +0 -2
  143. package/dist/index.cjs.map +0 -7
  144. package/dist/index.mjs.map +0 -7
  145. package/dist/rules/accent-color.d.ts +0 -7
  146. package/dist/rules/align-content.d.ts +0 -6
  147. package/dist/rules/align-items.d.ts +0 -6
  148. package/dist/rules/align-self.d.ts +0 -6
  149. package/dist/rules/animation-delay.d.ts +0 -7
  150. package/dist/rules/animation-direction.d.ts +0 -6
  151. package/dist/rules/animation-duration.d.ts +0 -7
  152. package/dist/rules/animation-fill-mode.d.ts +0 -6
  153. package/dist/rules/animation-iteration-count.d.ts +0 -7
  154. package/dist/rules/animation-name.d.ts +0 -6
  155. package/dist/rules/animation-play-state.d.ts +0 -6
  156. package/dist/rules/animation-timing-function.d.ts +0 -6
  157. package/dist/rules/animation.d.ts +0 -8
  158. package/dist/rules/appearance.d.ts +0 -5
  159. package/dist/rules/aspect-radio.d.ts +0 -7
  160. package/dist/rules/backdrop-filter.d.ts +0 -11
  161. package/dist/rules/background-attachment.d.ts +0 -6
  162. package/dist/rules/background-blend-mode.d.ts +0 -5
  163. package/dist/rules/background-clip.d.ts +0 -9
  164. package/dist/rules/background-color.d.ts +0 -8
  165. package/dist/rules/background-image.d.ts +0 -7
  166. package/dist/rules/background-origin.d.ts +0 -6
  167. package/dist/rules/background-position.d.ts +0 -7
  168. package/dist/rules/background-repeat.d.ts +0 -6
  169. package/dist/rules/background-size.d.ts +0 -6
  170. package/dist/rules/background.d.ts +0 -8
  171. package/dist/rules/border-collapse.d.ts +0 -6
  172. package/dist/rules/border-color.d.ts +0 -11
  173. package/dist/rules/border-image-outset.d.ts +0 -5
  174. package/dist/rules/border-image-repeat.d.ts +0 -6
  175. package/dist/rules/border-image-slice.d.ts +0 -6
  176. package/dist/rules/border-image-source.d.ts +0 -6
  177. package/dist/rules/border-image-width.d.ts +0 -6
  178. package/dist/rules/border-image.d.ts +0 -6
  179. package/dist/rules/border-radius.d.ts +0 -9
  180. package/dist/rules/border-spacing.d.ts +0 -5
  181. package/dist/rules/border-style.d.ts +0 -9
  182. package/dist/rules/border-width.d.ts +0 -9
  183. package/dist/rules/border.d.ts +0 -10
  184. package/dist/rules/box-decoration-break.d.ts +0 -9
  185. package/dist/rules/box-shadow.d.ts +0 -7
  186. package/dist/rules/box-sizing.d.ts +0 -6
  187. package/dist/rules/break-after.d.ts +0 -5
  188. package/dist/rules/break-before.d.ts +0 -5
  189. package/dist/rules/break-inside.d.ts +0 -5
  190. package/dist/rules/caret-color.d.ts +0 -7
  191. package/dist/rules/clear.d.ts +0 -5
  192. package/dist/rules/clip-path.d.ts +0 -6
  193. package/dist/rules/color.d.ts +0 -8
  194. package/dist/rules/column-span.d.ts +0 -6
  195. package/dist/rules/columns.d.ts +0 -8
  196. package/dist/rules/contain.d.ts +0 -5
  197. package/dist/rules/content.d.ts +0 -5
  198. package/dist/rules/counter-increment.d.ts +0 -6
  199. package/dist/rules/cursor.d.ts +0 -5
  200. package/dist/rules/cx.d.ts +0 -6
  201. package/dist/rules/cy.d.ts +0 -6
  202. package/dist/rules/direction.d.ts +0 -5
  203. package/dist/rules/display.d.ts +0 -6
  204. package/dist/rules/fill.d.ts +0 -7
  205. package/dist/rules/filter.d.ts +0 -8
  206. package/dist/rules/flex-basis.d.ts +0 -5
  207. package/dist/rules/flex-direction.d.ts +0 -6
  208. package/dist/rules/flex-grow.d.ts +0 -6
  209. package/dist/rules/flex-shrink.d.ts +0 -6
  210. package/dist/rules/flex-wrap.d.ts +0 -6
  211. package/dist/rules/flex.d.ts +0 -7
  212. package/dist/rules/float.d.ts +0 -5
  213. package/dist/rules/font-family.d.ts +0 -6
  214. package/dist/rules/font-size.d.ts +0 -6
  215. package/dist/rules/font-smoothing.d.ts +0 -9
  216. package/dist/rules/font-style.d.ts +0 -7
  217. package/dist/rules/font-variant-numeric.d.ts +0 -6
  218. package/dist/rules/font-weight.d.ts +0 -7
  219. package/dist/rules/font.d.ts +0 -8
  220. package/dist/rules/gap.d.ts +0 -9
  221. package/dist/rules/grid-area.d.ts +0 -7
  222. package/dist/rules/grid-auto-columns.d.ts +0 -6
  223. package/dist/rules/grid-auto-flow.d.ts +0 -6
  224. package/dist/rules/grid-auto-rows.d.ts +0 -5
  225. package/dist/rules/grid-column-end.d.ts +0 -7
  226. package/dist/rules/grid-column-start.d.ts +0 -7
  227. package/dist/rules/grid-column.d.ts +0 -9
  228. package/dist/rules/grid-columns.d.ts +0 -10
  229. package/dist/rules/grid-row-end.d.ts +0 -6
  230. package/dist/rules/grid-row-start.d.ts +0 -6
  231. package/dist/rules/grid-row.d.ts +0 -9
  232. package/dist/rules/grid-rows.d.ts +0 -9
  233. package/dist/rules/grid-template-areas.d.ts +0 -5
  234. package/dist/rules/grid-template-columns.d.ts +0 -6
  235. package/dist/rules/grid-template-rows.d.ts +0 -5
  236. package/dist/rules/grid-template.d.ts +0 -6
  237. package/dist/rules/grid.d.ts +0 -6
  238. package/dist/rules/group.d.ts +0 -9
  239. package/dist/rules/height.d.ts +0 -6
  240. package/dist/rules/inset.d.ts +0 -9
  241. package/dist/rules/isolation.d.ts +0 -5
  242. package/dist/rules/justify-content.d.ts +0 -6
  243. package/dist/rules/justify-items.d.ts +0 -6
  244. package/dist/rules/justify-self.d.ts +0 -6
  245. package/dist/rules/letter-spacing.d.ts +0 -7
  246. package/dist/rules/line-clamp.d.ts +0 -9
  247. package/dist/rules/line-height.d.ts +0 -7
  248. package/dist/rules/lines.d.ts +0 -9
  249. package/dist/rules/list-style-image.d.ts +0 -6
  250. package/dist/rules/list-style-position.d.ts +0 -6
  251. package/dist/rules/list-style-type.d.ts +0 -6
  252. package/dist/rules/list-style.d.ts +0 -6
  253. package/dist/rules/margin.d.ts +0 -9
  254. package/dist/rules/mask-image.d.ts +0 -8
  255. package/dist/rules/max-height.d.ts +0 -6
  256. package/dist/rules/max-width.d.ts +0 -6
  257. package/dist/rules/min-height.d.ts +0 -6
  258. package/dist/rules/min-width.d.ts +0 -6
  259. package/dist/rules/mix-blend-mode.d.ts +0 -6
  260. package/dist/rules/object-fit.d.ts +0 -6
  261. package/dist/rules/object-position.d.ts +0 -6
  262. package/dist/rules/opacity.d.ts +0 -6
  263. package/dist/rules/order.d.ts +0 -7
  264. package/dist/rules/outline-color.d.ts +0 -7
  265. package/dist/rules/outline-offset.d.ts +0 -5
  266. package/dist/rules/outline-style.d.ts +0 -6
  267. package/dist/rules/outline-width.d.ts +0 -6
  268. package/dist/rules/outline.d.ts +0 -7
  269. package/dist/rules/overflow.d.ts +0 -9
  270. package/dist/rules/overscroll-behavior.d.ts +0 -8
  271. package/dist/rules/padding.d.ts +0 -9
  272. package/dist/rules/place-content.d.ts +0 -6
  273. package/dist/rules/place-items.d.ts +0 -6
  274. package/dist/rules/place-self.d.ts +0 -6
  275. package/dist/rules/placement.d.ts +0 -8
  276. package/dist/rules/pointer-events.d.ts +0 -5
  277. package/dist/rules/position.d.ts +0 -5
  278. package/dist/rules/quotes.d.ts +0 -5
  279. package/dist/rules/resize.d.ts +0 -5
  280. package/dist/rules/rx.d.ts +0 -6
  281. package/dist/rules/ry.d.ts +0 -6
  282. package/dist/rules/scroll-behavior.d.ts +0 -5
  283. package/dist/rules/scroll-margin.d.ts +0 -9
  284. package/dist/rules/scroll-padding.d.ts +0 -9
  285. package/dist/rules/scroll-snap-align.d.ts +0 -6
  286. package/dist/rules/scroll-snap-stop.d.ts +0 -6
  287. package/dist/rules/scroll-snap-type.d.ts +0 -6
  288. package/dist/rules/shape-image-threshold.d.ts +0 -6
  289. package/dist/rules/shape-margin.d.ts +0 -6
  290. package/dist/rules/shape-outside.d.ts +0 -6
  291. package/dist/rules/spacing.d.ts +0 -9
  292. package/dist/rules/stroke-dasharray.d.ts +0 -5
  293. package/dist/rules/stroke-dashoffset.d.ts +0 -5
  294. package/dist/rules/stroke-width.d.ts +0 -6
  295. package/dist/rules/stroke.d.ts +0 -6
  296. package/dist/rules/table-layout.d.ts +0 -5
  297. package/dist/rules/text-align.d.ts +0 -6
  298. package/dist/rules/text-decoration-color.d.ts +0 -7
  299. package/dist/rules/text-decoration-line.d.ts +0 -6
  300. package/dist/rules/text-decoration-style.d.ts +0 -6
  301. package/dist/rules/text-decoration-thickness.d.ts +0 -7
  302. package/dist/rules/text-decoration.d.ts +0 -8
  303. package/dist/rules/text-fill-color.d.ts +0 -10
  304. package/dist/rules/text-indent.d.ts +0 -5
  305. package/dist/rules/text-orientation.d.ts +0 -6
  306. package/dist/rules/text-overflow.d.ts +0 -6
  307. package/dist/rules/text-rendering.d.ts +0 -6
  308. package/dist/rules/text-shadow.d.ts +0 -6
  309. package/dist/rules/text-size.d.ts +0 -8
  310. package/dist/rules/text-stroke-color.d.ts +0 -10
  311. package/dist/rules/text-stroke-width.d.ts +0 -8
  312. package/dist/rules/text-stroke.d.ts +0 -8
  313. package/dist/rules/text-transform.d.ts +0 -6
  314. package/dist/rules/text-underline-offset.d.ts +0 -5
  315. package/dist/rules/touch-action.d.ts +0 -5
  316. package/dist/rules/transform-box.d.ts +0 -6
  317. package/dist/rules/transform-origin.d.ts +0 -7
  318. package/dist/rules/transform-style.d.ts +0 -6
  319. package/dist/rules/transform.d.ts +0 -9
  320. package/dist/rules/transition-delay.d.ts +0 -7
  321. package/dist/rules/transition-duration.d.ts +0 -7
  322. package/dist/rules/transition-property.d.ts +0 -6
  323. package/dist/rules/transition-timing-function.d.ts +0 -6
  324. package/dist/rules/transition.d.ts +0 -7
  325. package/dist/rules/user-drag.d.ts +0 -8
  326. package/dist/rules/user-select.d.ts +0 -8
  327. package/dist/rules/variable.d.ts +0 -9
  328. package/dist/rules/vertical-align.d.ts +0 -6
  329. package/dist/rules/visibility.d.ts +0 -5
  330. package/dist/rules/white-space.d.ts +0 -6
  331. package/dist/rules/width.d.ts +0 -6
  332. package/dist/rules/will-change.d.ts +0 -5
  333. package/dist/rules/word-break.d.ts +0 -6
  334. package/dist/rules/word-spacing.d.ts +0 -6
  335. package/dist/rules/writing-mode.d.ts +0 -6
  336. package/dist/rules/x.d.ts +0 -6
  337. package/dist/rules/y.d.ts +0 -6
  338. package/dist/rules/z-index.d.ts +0 -7
  339. package/dist/utils/get-border-props.d.ts +0 -3
  340. package/dist/utils/get-css-property-text.d.ts +0 -5
  341. package/dist/utils/normalize-css-calc-text.d.ts +0 -5
  342. package/dist/utils/parse-value-unit.d.ts +0 -2
  343. package/dist/utils/parse-value.d.ts +0 -6
  344. 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 o=Object.defineProperty;var d=Object.getOwnPropertyDescriptor;var f=Object.getOwnPropertyNames;var i=Object.prototype.hasOwnProperty;var l=(t,e)=>{for(var n in e)o(t,n,{get:e[n],enumerable:!0})},c=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let u of f(e))!i.call(t,u)&&u!==n&&o(t,u,{get:()=>e[u],enumerable:!(r=d(e,u))||r.enumerable});return t};var m=t=>c(o({},"__esModule",{value:!0}),t);var p={};l(p,{default:()=>a});module.exports=m(p);function a(){return setTimeout(()=>{})}0&&(module.exports={});
@@ -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 c=Object.create;var t=Object.defineProperty;var f=Object.getOwnPropertyDescriptor;var g=Object.getOwnPropertyNames;var k=Object.getPrototypeOf,m=Object.prototype.hasOwnProperty;var i=(a,e)=>{for(var o in e)t(a,o,{get:e[o],enumerable:!0})},p=(a,e,o,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of g(e))!m.call(a,r)&&r!==o&&t(a,r,{get:()=>e[r],enumerable:!(n=f(e,r))||n.enumerable});return a};var y=(a,e,o)=>(o=a!=null?c(k(a)):{},p(e||!a||!a.__esModule?t(o,"default",{value:a,enumerable:!0}):o,a)),J=a=>p(t({},"__esModule",{value:!0}),a);var d={};i(d,{readPackage:()=>P});module.exports=J(d);var s=y(require("fs-extra"));function P(a="./package.json"){return s.default.readJSONSync(a,{throws:!1})||{}}0&&(module.exports={readPackage});
@@ -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,63 @@
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
+ import { precedence } from './precedence';
15
+ declare const config: Config;
16
+ export { config, breakpoints, colors, rootSize, scope, selectors, semantics, themes, rules, override, observe, important, functions, keyframes, precedence };
17
+ import type { RuleConfig } from '../rule';
18
+ type Classes = {
19
+ [key: string]: string | Classes;
20
+ };
21
+ type Colors = {
22
+ [key: string]: string | Colors;
23
+ };
24
+ type Breakpoints = {
25
+ [key: string]: number | Breakpoints;
26
+ };
27
+ type MediaQueries = {
28
+ [key: string]: string | MediaQueries;
29
+ };
30
+ type Selectors = {
31
+ [key: string]: string | string[] | Selectors;
32
+ };
33
+ type SemanticsBase = {
34
+ [key: string]: string | number | SemanticsBase;
35
+ };
36
+ type Semantics = {
37
+ [key: string]: SemanticsBase;
38
+ };
39
+ export type Values = {
40
+ [key: string]: string | number | Values;
41
+ };
42
+ export interface Config {
43
+ classes?: Classes;
44
+ colors?: Colors;
45
+ breakpoints?: Breakpoints;
46
+ mediaQueries?: MediaQueries;
47
+ selectors?: Selectors;
48
+ semantics?: Semantics;
49
+ values?: Values;
50
+ rules?: Record<string, RuleConfig>;
14
51
  themes?: Record<string, {
15
- classes?: Record<string, string>;
16
- colors?: Record<string, string | Record<string, string>>;
52
+ classes?: Classes;
53
+ colors?: Colors;
17
54
  }> | string[];
18
55
  rootSize?: number;
19
- validateRule?: (rule: MasterCSSRule, css?: MasterCSS) => boolean;
20
- scheme?: {
21
- preference?: string;
22
- storage?: {
23
- sync?: boolean;
24
- key?: string;
25
- };
26
- };
56
+ scope?: string;
57
+ important?: boolean;
58
+ override?: boolean;
59
+ observe?: boolean;
60
+ functions?: Record<string, FunctionConfig>;
61
+ keyframes?: Record<string, Record<string, Record<string, string | number>>>;
62
+ precedence?: 'highest' | 'higher' | 'lowest';
27
63
  }
@@ -0,0 +1,109 @@
1
+ export declare const keyframes: {
2
+ fade: {
3
+ from: {
4
+ opacity: number;
5
+ };
6
+ to: {
7
+ opacity: number;
8
+ };
9
+ };
10
+ flash: {
11
+ 'from,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
+ '100%': {
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%,100%': {
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%,100%': {
58
+ transform: string;
59
+ opacity: number;
60
+ };
61
+ };
62
+ pulse: {
63
+ '0%': {
64
+ transform: string;
65
+ };
66
+ '50%': {
67
+ transform: string;
68
+ };
69
+ '100%': {
70
+ transform: string;
71
+ };
72
+ };
73
+ rotate: {
74
+ from: {
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
+ from: {
103
+ transform: string;
104
+ };
105
+ '100%': {
106
+ transform: string;
107
+ };
108
+ };
109
+ };
@@ -0,0 +1 @@
1
+ export declare const observe = true;
@@ -0,0 +1 @@
1
+ export declare const override = false;
@@ -0,0 +1 @@
1
+ export declare const precedence = "highest";
@@ -1,2 +1 @@
1
- declare const defaultRootSize = 16;
2
- export default defaultRootSize;
1
+ export declare const rootSize = 16;
@@ -1,3 +1,2 @@
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: Record<string, RuleConfig>;
@@ -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;
@@ -1,45 +1,145 @@
1
- declare const defaultSemantics: {
2
- square: string;
3
- video: string;
4
- rounded: string;
5
- round: string;
6
- hidden: string;
7
- hide: string;
8
- block: string;
9
- table: string;
10
- flex: string;
11
- grid: string;
12
- contents: string;
13
- inline: string;
14
- 'inline-block': string;
15
- 'inline-flex': string;
16
- 'inline-grid': string;
17
- 'inline-table': string;
18
- 'table-cell': string;
19
- 'table-caption': string;
20
- 'flow-root': string;
21
- 'list-item': string;
22
- 'table-row': string;
23
- 'table-column': string;
24
- 'table-row-group': string;
25
- 'table-column-group': string;
26
- 'table-header-group': string;
27
- 'table-footer-group': string;
28
- italic: string;
29
- oblique: string;
30
- isolate: string;
31
- overflow: string;
32
- untouchable: string;
33
- static: string;
34
- fixed: string;
35
- abs: string;
36
- rel: string;
37
- sticky: string;
38
- uppercase: string;
39
- lowercase: string;
40
- capitalize: string;
41
- visible: string;
42
- invisible: string;
1
+ export declare const semantics: {
2
+ square: {
3
+ 'aspect-ratio': string;
4
+ };
5
+ video: {
6
+ 'aspect-ratio': string;
7
+ };
8
+ rounded: {
9
+ 'border-radius': string;
10
+ };
11
+ round: {
12
+ 'border-radius': string;
13
+ };
14
+ hidden: {
15
+ display: string;
16
+ };
17
+ hide: {
18
+ display: string;
19
+ };
20
+ block: {
21
+ display: string;
22
+ };
23
+ table: {
24
+ display: string;
25
+ };
26
+ flex: {
27
+ display: string;
28
+ };
29
+ grid: {
30
+ display: string;
31
+ };
32
+ contents: {
33
+ display: string;
34
+ };
35
+ inline: {
36
+ display: string;
37
+ };
38
+ 'inline-block': {
39
+ display: string;
40
+ };
41
+ 'inline-flex': {
42
+ display: string;
43
+ };
44
+ 'inline-grid': {
45
+ display: string;
46
+ };
47
+ 'inline-table': {
48
+ display: string;
49
+ };
50
+ 'table-cell': {
51
+ display: string;
52
+ };
53
+ 'table-caption': {
54
+ display: string;
55
+ };
56
+ 'flow-root': {
57
+ display: string;
58
+ };
59
+ 'list-item': {
60
+ display: string;
61
+ };
62
+ 'table-row': {
63
+ display: string;
64
+ };
65
+ 'table-column': {
66
+ display: string;
67
+ };
68
+ 'table-row-group': {
69
+ display: string;
70
+ };
71
+ 'table-column-group': {
72
+ display: string;
73
+ };
74
+ 'table-header-group': {
75
+ display: string;
76
+ };
77
+ 'table-footer-group': {
78
+ display: string;
79
+ };
80
+ italic: {
81
+ 'font-style': string;
82
+ };
83
+ oblique: {
84
+ 'font-style': string;
85
+ };
86
+ isolate: {
87
+ isolation: string;
88
+ };
89
+ overflow: {
90
+ overflow: string;
91
+ };
92
+ untouchable: {
93
+ 'pointer-events': string;
94
+ };
95
+ static: {
96
+ position: string;
97
+ };
98
+ fixed: {
99
+ position: string;
100
+ };
101
+ abs: {
102
+ position: string;
103
+ };
104
+ rel: {
105
+ position: string;
106
+ };
107
+ sticky: {
108
+ position: string;
109
+ };
110
+ uppercase: {
111
+ 'text-transform': string;
112
+ };
113
+ lowercase: {
114
+ 'text-transform': string;
115
+ };
116
+ capitalize: {
117
+ 'text-transform': string;
118
+ };
119
+ visible: {
120
+ visibility: string;
121
+ };
122
+ invisible: {
123
+ visibility: string;
124
+ };
125
+ vw: {
126
+ width: string;
127
+ };
128
+ vh: {
129
+ height: string;
130
+ };
131
+ 'max-vw': {
132
+ 'max-width': string;
133
+ };
134
+ 'max-vh': {
135
+ 'max-height': string;
136
+ };
137
+ 'min-vw': {
138
+ 'min-width': string;
139
+ };
140
+ 'min-vh': {
141
+ 'min-height': string;
142
+ };
43
143
  'center-content': {
44
144
  'justify-content': string;
45
145
  'align-items': string;
@@ -79,4 +179,3 @@ declare const defaultSemantics: {
79
179
  overflow: string;
80
180
  };
81
181
  };
82
- export default defaultSemantics;
@@ -1,2 +1 @@
1
- declare const defaultThemes: string[];
2
- export default defaultThemes;
1
+ export declare const themes: string[];
@@ -0,0 +1,5 @@
1
+ export declare const BOX_UNDERNEATH: {
2
+ content: string;
3
+ border: string;
4
+ padding: string;
5
+ };
@@ -0,0 +1,4 @@
1
+ export declare const CONTENT_EXTREMA: {
2
+ min: string;
3
+ max: string;
4
+ };
@@ -0,0 +1 @@
1
+ export declare const SELECTOR_SYMBOLS: string[];
@@ -0,0 +1,7 @@
1
+ declare const SIZING_VALUES: {
2
+ full: string;
3
+ fit: string;
4
+ max: string;
5
+ min: string;
6
+ };
7
+ export { SIZING_VALUES };
@@ -0,0 +1 @@
1
+ export declare const SORTED_SELECTORS: string[];
@@ -1,5 +1,6 @@
1
1
  export declare const START_SYMBOL: {
2
2
  '(': string;
3
3
  '\'': string;
4
+ '"': string;
4
5
  '{': string;
5
6
  };