@master/css 2.0.0-alpha.49 → 2.0.0-alpha.50

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 (261) hide show
  1. package/config/breakpoints.d.ts +12 -0
  2. package/config/colors.d.ts +24 -0
  3. package/config/index.d.ts +11 -0
  4. package/config/root-size.d.ts +1 -0
  5. package/config/rules.d.ts +2 -0
  6. package/config/selectors.d.ts +18 -0
  7. package/config/semantics.d.ts +81 -0
  8. package/config/themes.d.ts +1 -0
  9. package/config/values.d.ts +125 -0
  10. package/config.test.d.ts +1 -0
  11. package/configure.d.ts +2 -0
  12. package/configure.test.d.ts +1 -0
  13. package/constants/start-symbol.d.ts +5 -0
  14. package/core.d.ts +68 -0
  15. package/fill-color-scale.d.ts +1 -0
  16. package/grouping-selectors.test.d.ts +1 -0
  17. package/index.d.ts +9 -552
  18. package/index.esm.js +2 -0
  19. package/index.js +2 -25
  20. package/init.d.ts +3 -0
  21. package/interfaces/config.d.ts +16 -0
  22. package/interfaces/declaration.d.ts +5 -0
  23. package/interfaces/media-feature-rule.d.ts +7 -0
  24. package/interfaces/media.d.ts +8 -0
  25. package/package.json +3 -3
  26. package/render-from-html.d.ts +3 -0
  27. package/render-into-html.d.ts +3 -0
  28. package/render.d.ts +3 -0
  29. package/render.test.d.ts +1 -0
  30. package/rule.d.ts +53 -0
  31. package/rule.test.d.ts +1 -0
  32. package/rules/accent-color.d.ts +7 -0
  33. package/rules/accent.test.d.ts +1 -0
  34. package/rules/align-content.d.ts +6 -0
  35. package/rules/align-items.d.ts +6 -0
  36. package/rules/align-self.d.ts +6 -0
  37. package/rules/animation-delay.d.ts +7 -0
  38. package/rules/animation-direction.d.ts +6 -0
  39. package/rules/animation-duration.d.ts +7 -0
  40. package/rules/animation-fill-mode.d.ts +6 -0
  41. package/rules/animation-iteration-count.d.ts +7 -0
  42. package/rules/animation-name.d.ts +6 -0
  43. package/rules/animation-play-state.d.ts +6 -0
  44. package/rules/animation-timing-function.d.ts +6 -0
  45. package/rules/animation.d.ts +8 -0
  46. package/rules/appearance.d.ts +5 -0
  47. package/rules/area.test.d.ts +1 -0
  48. package/rules/aspect-radio.d.ts +7 -0
  49. package/rules/backdrop-filter.d.ts +10 -0
  50. package/rules/background-attachment.d.ts +6 -0
  51. package/rules/background-blend-mode.d.ts +5 -0
  52. package/rules/background-clip.d.ts +9 -0
  53. package/rules/background-color.d.ts +8 -0
  54. package/rules/background-image.d.ts +7 -0
  55. package/rules/background-origin.d.ts +6 -0
  56. package/rules/background-position.d.ts +7 -0
  57. package/rules/background-repeat.d.ts +6 -0
  58. package/rules/background-size.d.ts +6 -0
  59. package/rules/background.d.ts +8 -0
  60. package/rules/background.test.d.ts +1 -0
  61. package/rules/border-collapse.d.ts +6 -0
  62. package/rules/border-color.d.ts +11 -0
  63. package/rules/border-image-outset.d.ts +5 -0
  64. package/rules/border-image-repeat.d.ts +6 -0
  65. package/rules/border-image-slice.d.ts +6 -0
  66. package/rules/border-image-source.d.ts +6 -0
  67. package/rules/border-image-width.d.ts +6 -0
  68. package/rules/border-image.d.ts +6 -0
  69. package/rules/border-radius.d.ts +9 -0
  70. package/rules/border-spacing.d.ts +5 -0
  71. package/rules/border-style.d.ts +9 -0
  72. package/rules/border-width.d.ts +9 -0
  73. package/rules/border.d.ts +10 -0
  74. package/rules/box-decoration-break.d.ts +9 -0
  75. package/rules/box-shadow.d.ts +7 -0
  76. package/rules/box-sizing.d.ts +6 -0
  77. package/rules/break-after.d.ts +5 -0
  78. package/rules/break-before.d.ts +5 -0
  79. package/rules/break-inside.d.ts +5 -0
  80. package/rules/caret-color.d.ts +7 -0
  81. package/rules/caret.test.d.ts +1 -0
  82. package/rules/clear.d.ts +5 -0
  83. package/rules/clip-path.d.ts +6 -0
  84. package/rules/color.d.ts +8 -0
  85. package/rules/color.test.d.ts +1 -0
  86. package/rules/column-span.d.ts +6 -0
  87. package/rules/columns.d.ts +8 -0
  88. package/rules/contain.d.ts +5 -0
  89. package/rules/content.d.ts +5 -0
  90. package/rules/content.test.d.ts +1 -0
  91. package/rules/counter-increment.d.ts +6 -0
  92. package/rules/cursor.d.ts +5 -0
  93. package/rules/cx.d.ts +6 -0
  94. package/rules/cy.d.ts +6 -0
  95. package/rules/direction.d.ts +5 -0
  96. package/rules/display.d.ts +6 -0
  97. package/rules/fill.d.ts +7 -0
  98. package/rules/filter.d.ts +7 -0
  99. package/rules/flex-basis.d.ts +5 -0
  100. package/rules/flex-direction.d.ts +6 -0
  101. package/rules/flex-grow.d.ts +6 -0
  102. package/rules/flex-shrink.d.ts +6 -0
  103. package/rules/flex-wrap.d.ts +6 -0
  104. package/rules/flex.d.ts +7 -0
  105. package/rules/float.d.ts +5 -0
  106. package/rules/font-family.d.ts +6 -0
  107. package/rules/font-size.d.ts +6 -0
  108. package/rules/font-smoothing.d.ts +9 -0
  109. package/rules/font-style.d.ts +7 -0
  110. package/rules/font-variant-numeric.d.ts +6 -0
  111. package/rules/font-weight.d.ts +7 -0
  112. package/rules/font-weight.test.d.ts +1 -0
  113. package/rules/font.d.ts +8 -0
  114. package/rules/gap.d.ts +9 -0
  115. package/rules/grid-area.d.ts +7 -0
  116. package/rules/grid-auto-columns.d.ts +6 -0
  117. package/rules/grid-auto-flow.d.ts +6 -0
  118. package/rules/grid-auto-rows.d.ts +5 -0
  119. package/rules/grid-column-end.d.ts +7 -0
  120. package/rules/grid-column-start.d.ts +7 -0
  121. package/rules/grid-column.d.ts +9 -0
  122. package/rules/grid-column.test.d.ts +1 -0
  123. package/rules/grid-columns.d.ts +10 -0
  124. package/rules/grid-row-end.d.ts +6 -0
  125. package/rules/grid-row-start.d.ts +6 -0
  126. package/rules/grid-row.d.ts +9 -0
  127. package/rules/grid-rows.d.ts +9 -0
  128. package/rules/grid-template-areas.d.ts +5 -0
  129. package/rules/grid-template-columns.d.ts +6 -0
  130. package/rules/grid-template-rows.d.ts +5 -0
  131. package/rules/grid-template.d.ts +6 -0
  132. package/rules/grid.d.ts +6 -0
  133. package/rules/group.d.ts +9 -0
  134. package/rules/group.test.d.ts +1 -0
  135. package/rules/height.d.ts +6 -0
  136. package/rules/inset.d.ts +9 -0
  137. package/rules/isolation.d.ts +5 -0
  138. package/rules/justify-content.d.ts +6 -0
  139. package/rules/justify-items.d.ts +6 -0
  140. package/rules/justify-self.d.ts +6 -0
  141. package/rules/letter-spacing.d.ts +7 -0
  142. package/rules/line-clamp.d.ts +9 -0
  143. package/rules/line-height.d.ts +7 -0
  144. package/rules/lines.d.ts +9 -0
  145. package/rules/list-style-image.d.ts +6 -0
  146. package/rules/list-style-position.d.ts +6 -0
  147. package/rules/list-style-type.d.ts +6 -0
  148. package/rules/list-style.d.ts +6 -0
  149. package/rules/margin.d.ts +9 -0
  150. package/rules/mask-image.d.ts +8 -0
  151. package/rules/max-height.d.ts +6 -0
  152. package/rules/max-width.d.ts +6 -0
  153. package/rules/max-width.test.d.ts +1 -0
  154. package/rules/min-height.d.ts +6 -0
  155. package/rules/min-width.d.ts +6 -0
  156. package/rules/mix-blend-mode.d.ts +6 -0
  157. package/rules/object-fit.d.ts +6 -0
  158. package/rules/object-position.d.ts +6 -0
  159. package/rules/opacity.d.ts +6 -0
  160. package/rules/order.d.ts +7 -0
  161. package/rules/outline-color.d.ts +7 -0
  162. package/rules/outline-offset.d.ts +5 -0
  163. package/rules/outline-style.d.ts +6 -0
  164. package/rules/outline-width.d.ts +6 -0
  165. package/rules/outline.d.ts +7 -0
  166. package/rules/outline.test.d.ts +1 -0
  167. package/rules/overflow.d.ts +9 -0
  168. package/rules/overflow.test.d.ts +1 -0
  169. package/rules/overscroll-behavior.d.ts +8 -0
  170. package/rules/padding.d.ts +9 -0
  171. package/rules/place-content.d.ts +6 -0
  172. package/rules/place-items.d.ts +6 -0
  173. package/rules/place-self.d.ts +6 -0
  174. package/rules/placement.d.ts +8 -0
  175. package/rules/pointer-events.d.ts +5 -0
  176. package/rules/position.d.ts +5 -0
  177. package/rules/quotes.d.ts +5 -0
  178. package/rules/resize.d.ts +5 -0
  179. package/rules/rx.d.ts +6 -0
  180. package/rules/ry.d.ts +6 -0
  181. package/rules/scroll-behavior.d.ts +5 -0
  182. package/rules/scroll-margin.d.ts +9 -0
  183. package/rules/scroll-padding.d.ts +9 -0
  184. package/rules/scroll-snap-align.d.ts +6 -0
  185. package/rules/scroll-snap-stop.d.ts +6 -0
  186. package/rules/scroll-snap-type.d.ts +6 -0
  187. package/rules/scroll-snap-type.test.d.ts +1 -0
  188. package/rules/semantics.test.d.ts +1 -0
  189. package/rules/shape-image-threshold.d.ts +6 -0
  190. package/rules/shape-margin.d.ts +6 -0
  191. package/rules/shape-outside.d.ts +6 -0
  192. package/rules/spacing.d.ts +9 -0
  193. package/rules/stroke-dasharray.d.ts +5 -0
  194. package/rules/stroke-dashoffset.d.ts +5 -0
  195. package/rules/stroke-width.d.ts +6 -0
  196. package/rules/stroke.d.ts +6 -0
  197. package/rules/table-layout.d.ts +5 -0
  198. package/rules/text-align.d.ts +6 -0
  199. package/rules/text-decoration-color.d.ts +7 -0
  200. package/rules/text-decoration-line.d.ts +6 -0
  201. package/rules/text-decoration-style.d.ts +6 -0
  202. package/rules/text-decoration-thickness.d.ts +7 -0
  203. package/rules/text-decoration.d.ts +8 -0
  204. package/rules/text-fill-color.d.ts +10 -0
  205. package/rules/text-fill-color.test.d.ts +1 -0
  206. package/rules/text-indent.d.ts +5 -0
  207. package/rules/text-orientation.d.ts +6 -0
  208. package/rules/text-overflow.d.ts +6 -0
  209. package/rules/text-rendering.d.ts +6 -0
  210. package/rules/text-shadow.d.ts +6 -0
  211. package/rules/text-size.d.ts +8 -0
  212. package/rules/text-stroke-color.d.ts +10 -0
  213. package/rules/text-stroke-width.d.ts +8 -0
  214. package/rules/text-stroke.d.ts +8 -0
  215. package/rules/text-transform.d.ts +6 -0
  216. package/rules/text-underline-offset.d.ts +5 -0
  217. package/rules/text.test.d.ts +1 -0
  218. package/rules/touch-action.d.ts +5 -0
  219. package/rules/transform-box.d.ts +6 -0
  220. package/rules/transform-origin.d.ts +7 -0
  221. package/rules/transform-style.d.ts +6 -0
  222. package/rules/transform.d.ts +8 -0
  223. package/rules/transform.test.d.ts +1 -0
  224. package/rules/transition-delay.d.ts +7 -0
  225. package/rules/transition-duration.d.ts +7 -0
  226. package/rules/transition-property.d.ts +6 -0
  227. package/rules/transition-timing-function.d.ts +6 -0
  228. package/rules/transition.d.ts +7 -0
  229. package/rules/transition.test.d.ts +1 -0
  230. package/rules/user-drag.d.ts +8 -0
  231. package/rules/user-select.d.ts +8 -0
  232. package/rules/variable.d.ts +9 -0
  233. package/rules/vertical-align.d.ts +6 -0
  234. package/rules/visibility.d.ts +5 -0
  235. package/rules/white-space.d.ts +6 -0
  236. package/rules/width.d.ts +6 -0
  237. package/rules/will-change.d.ts +5 -0
  238. package/rules/word-break.d.ts +6 -0
  239. package/rules/word-spacing.d.ts +6 -0
  240. package/rules/writing-mode.d.ts +6 -0
  241. package/rules/writing-mode.test.d.ts +1 -0
  242. package/rules/x.d.ts +6 -0
  243. package/rules/y.d.ts +6 -0
  244. package/rules/z-index.d.ts +7 -0
  245. package/selectors.test.d.ts +1 -0
  246. package/utils/concat-arrays.d.ts +1 -0
  247. package/utils/get-border-props.d.ts +3 -0
  248. package/utils/get-css-property-text.d.ts +5 -0
  249. package/utils/get-type.d.ts +7 -0
  250. package/utils/hex-to-rgb.d.ts +1 -0
  251. package/utils/is-plain-object.d.ts +8 -0
  252. package/utils/is-symbol.d.ts +7 -0
  253. package/utils/merge.d.ts +5 -0
  254. package/utils/normalize-css-calc-text.d.ts +5 -0
  255. package/utils/parse-value-unit.d.ts +1 -0
  256. package/utils/parse-value.d.ts +6 -0
  257. package/utils/rgb-to-hex.d.ts +1 -0
  258. package/utils/test-css.d.ts +3 -0
  259. package/esm/index.js +0 -4
  260. package/esm/index.js.map +0 -1
  261. package/index.js.map +0 -1
package/index.d.ts CHANGED
@@ -1,552 +1,9 @@
1
- interface MasterCSSMediaFeatureRule {
2
- token: string;
3
- tokenType?: string;
4
- operator?: string;
5
- value?: number;
6
- unit?: string;
7
- }
8
-
9
- interface MasterCSSMedia {
10
- token: string;
11
- features?: {
12
- [key: string]: MasterCSSMediaFeatureRule;
13
- };
14
- type?: string;
15
- }
16
-
17
- interface MasterCSSDeclaration {
18
- value: string;
19
- unit: string;
20
- important: boolean;
21
- }
22
-
23
- declare const PRIORITY_SELECTORS: string[];
24
- interface RuleMatching {
25
- origin: 'matches' | 'semantics' | 'symbol';
26
- value?: string;
27
- }
28
- declare class MasterCSSRule {
29
- readonly className: string;
30
- readonly matching: RuleMatching;
31
- css: MasterCSS;
32
- readonly prefix: string;
33
- readonly symbol: string;
34
- readonly token: string;
35
- readonly prefixSelectors: string[];
36
- readonly suffixSelectors: string[];
37
- readonly important: boolean;
38
- readonly media: MasterCSSMedia;
39
- readonly at: Record<string, string>;
40
- readonly direction: string;
41
- readonly themeName: string;
42
- readonly unitToken: string;
43
- readonly hasWhere: boolean;
44
- readonly prioritySelectorIndex: number;
45
- readonly natives: {
46
- unit: string;
47
- value: string | Record<string, string | number>;
48
- text: string;
49
- themeName: string;
50
- cssRule?: CSSRule;
51
- }[];
52
- static id: string;
53
- static propName: string;
54
- static matches: RegExp;
55
- static colorStarts: string;
56
- static symbol: string;
57
- static unit: string;
58
- static colorful: boolean;
59
- static match(name: string, colorNames: string[]): RuleMatching;
60
- constructor(className: string, matching: RuleMatching, css: MasterCSS);
61
- }
62
- interface MasterCSSRule {
63
- readonly order?: number;
64
- parseValue(value: string): string;
65
- get(declaration: MasterCSSDeclaration): Record<string, any>;
66
- getThemeProps(declaration: MasterCSSDeclaration, css: MasterCSS): Record<string, Record<string, string>>;
67
- }
68
- declare global {
69
- interface Window {
70
- MasterCSSRule: typeof MasterCSSRule;
71
- }
72
- }
73
-
74
- interface MasterCSSConfig {
75
- classes?: Record<string, string>;
76
- colors?: Record<string, string | Record<string, string>>;
77
- breakpoints?: Record<string, number>;
78
- mediaQueries?: Record<string, string>;
79
- selectors?: Record<string, string | string[]>;
80
- semantics?: Record<string, string | Record<string, string | number>>;
81
- values?: Record<string, Record<string, string | number>>;
82
- Rules?: typeof MasterCSSRule[];
83
- themes?: Record<string, {
84
- classes?: Record<string, string>;
85
- colors?: Record<string, string | Record<string, string>>;
86
- }> | string[];
87
- rootSize?: number;
88
- }
89
-
90
- declare function init(config?: MasterCSSConfig): MasterCSS;
91
-
92
- declare const MutationObserver: ObjectConstructor | {
93
- new (callback: MutationCallback): MutationObserver;
94
- prototype: MutationObserver;
95
- };
96
- declare class MasterCSS extends MutationObserver {
97
- config: MasterCSSConfig;
98
- container?: Element;
99
- static init: typeof init;
100
- static defaultConfig: MasterCSSConfig;
101
- static instances: MasterCSS[];
102
- static root: MasterCSS;
103
- /**
104
- * 全部 sheet 根據目前蒐集到的所有 DOM class 重新 findAndNew
105
- */
106
- static refresh(config: MasterCSSConfig): void;
107
- readonly style: HTMLStyleElement;
108
- readonly rules: MasterCSSRule[];
109
- readonly ruleOfName: Record<string, MasterCSSRule>;
110
- readonly countOfName: {};
111
- private cache;
112
- semantics: [RegExp, string][];
113
- classes: Record<string, string[]>;
114
- colorsThemesMap: Record<string, Record<string, Record<string, string>>>;
115
- colorNames: string[];
116
- themeNames: string[];
117
- relationThemesMap: Record<string, Record<string, string[]>>;
118
- relations: Record<string, string[]>;
119
- selectors: {
120
- single: [RegExp, string][];
121
- multiple: [RegExp, string[]][];
122
- };
123
- constructor(config?: MasterCSSConfig, container?: Element);
124
- observe(target: Node, options?: MutationObserverInit): this;
125
- disconnect(): void;
126
- /**
127
- * 尋找匹配的 MasterCSSRule 生成實例
128
- */
129
- findAndNew(name: string): MasterCSSRule | MasterCSSRule[];
130
- /**
131
- * 根據目前蒐集到的所有 DOM class 重新 findAndNew
132
- */
133
- refresh(config: MasterCSSConfig): void;
134
- destroy(): void;
135
- /**
136
- * 1. where
137
- * 2. normal
138
- * 3. where selectors
139
- * 4. normal selectors
140
- * 5. media where
141
- * 6. media normal
142
- * 7. media selectors
143
- * 8. media width where
144
- * 9. media width
145
- * 10. media width selectors
146
- */
147
- insert(rule: MasterCSSRule): void;
148
- delete(className: string): void;
149
- findAndInsert(className: string): void;
150
- }
151
- declare global {
152
- interface Window {
153
- MasterCSS: typeof MasterCSS;
154
- }
155
- }
156
-
157
- /*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */
158
- (function (root, factory) {
159
- // https://github.com/umdjs/umd/blob/master/returnExports.js
160
- if (typeof exports == 'object') {
161
- // For Node.js.
162
- module.exports = factory(root);
163
- } else if (typeof define == 'function' && define.amd) {
164
- // For AMD. Register as an anonymous module.
165
- define([], factory.bind(root, root));
166
- } else {
167
- // For browser globals (not exposing the function separately).
168
- factory(root);
169
- }
170
- }(typeof global != 'undefined' ? global : undefined, function (root) {
171
-
172
- if (root.CSS && root.CSS.escape) {
173
- return root.CSS.escape;
174
- }
175
-
176
- // https://drafts.csswg.org/cssom/#serialize-an-identifier
177
- var cssEscape = function (value) {
178
- if (arguments.length == 0) {
179
- throw new TypeError('`CSS.escape` requires an argument.');
180
- }
181
- var string = String(value);
182
- var length = string.length;
183
- var index = -1;
184
- var codeUnit;
185
- var result = '';
186
- var firstCodeUnit = string.charCodeAt(0);
187
-
188
- if (
189
- // If the character is the first character and is a `-` (U+002D), and
190
- // there is no second character, […]
191
- length == 1 &&
192
- firstCodeUnit == 0x002D
193
- ) {
194
- return '\\' + string;
195
- }
196
-
197
- while (++index < length) {
198
- codeUnit = string.charCodeAt(index);
199
- // Note: there’s no need to special-case astral symbols, surrogate
200
- // pairs, or lone surrogates.
201
-
202
- // If the character is NULL (U+0000), then the REPLACEMENT CHARACTER
203
- // (U+FFFD).
204
- if (codeUnit == 0x0000) {
205
- result += '\uFFFD';
206
- continue;
207
- }
208
-
209
- if (
210
- // If the character is in the range [\1-\1F] (U+0001 to U+001F) or is
211
- // U+007F, […]
212
- (codeUnit >= 0x0001 && codeUnit <= 0x001F) || codeUnit == 0x007F ||
213
- // If the character is the first character and is in the range [0-9]
214
- // (U+0030 to U+0039), […]
215
- (index == 0 && codeUnit >= 0x0030 && codeUnit <= 0x0039) ||
216
- // If the character is the second character and is in the range [0-9]
217
- // (U+0030 to U+0039) and the first character is a `-` (U+002D), […]
218
- (
219
- index == 1 &&
220
- codeUnit >= 0x0030 && codeUnit <= 0x0039 &&
221
- firstCodeUnit == 0x002D
222
- )
223
- ) {
224
- // https://drafts.csswg.org/cssom/#escape-a-character-as-code-point
225
- result += '\\' + codeUnit.toString(16) + ' ';
226
- continue;
227
- }
228
-
229
- // If the character is not handled by one of the above rules and is
230
- // greater than or equal to U+0080, is `-` (U+002D) or `_` (U+005F), or
231
- // is in one of the ranges [0-9] (U+0030 to U+0039), [A-Z] (U+0041 to
232
- // U+005A), or [a-z] (U+0061 to U+007A), […]
233
- if (
234
- codeUnit >= 0x0080 ||
235
- codeUnit == 0x002D ||
236
- codeUnit == 0x005F ||
237
- codeUnit >= 0x0030 && codeUnit <= 0x0039 ||
238
- codeUnit >= 0x0041 && codeUnit <= 0x005A ||
239
- codeUnit >= 0x0061 && codeUnit <= 0x007A
240
- ) {
241
- // the character itself
242
- result += string.charAt(index);
243
- continue;
244
- }
245
-
246
- // Otherwise, the escaped character.
247
- // https://drafts.csswg.org/cssom/#escape-a-character
248
- result += '\\' + string.charAt(index);
249
- }
250
- return result;
251
- };
252
-
253
- if (!root.CSS) {
254
- root.CSS = {};
255
- }
256
-
257
- root.CSS.escape = cssEscape;
258
- return cssEscape;
259
-
260
- }));
261
-
262
- declare function render(classes: string[], css?: MasterCSS): string;
263
-
264
- declare function renderFromHTML(html: string, css?: MasterCSS): string;
265
-
266
- declare function renderIntoHTML(html: string, css?: MasterCSS): string;
267
-
268
- declare function configure(...configurations: MasterCSSConfig[]): MasterCSSConfig;
269
-
270
- declare const defaultBreakpoints: {
271
- '3xs': number;
272
- '2xs': number;
273
- xs: number;
274
- sm: number;
275
- md: number;
276
- lg: number;
277
- xl: number;
278
- '2xl': number;
279
- '3xl': number;
280
- '4xl': number;
281
- };
282
-
283
- declare const defaultColors: {
284
- slate: any;
285
- gray: any;
286
- brown: any;
287
- orange: any;
288
- gold: any;
289
- yellow: any;
290
- grass: any;
291
- green: any;
292
- beryl: any;
293
- teal: any;
294
- cyan: any;
295
- sky: any;
296
- blue: any;
297
- indigo: any;
298
- violet: any;
299
- purple: any;
300
- fuchsia: any;
301
- pink: any;
302
- crimson: any;
303
- red: any;
304
- black: string;
305
- white: string;
306
- };
307
-
308
- declare const defaultRootSize = 16;
309
-
310
- declare const defaultSelectors: {
311
- '::scrollbar': string;
312
- '::scrollbar-button': string;
313
- '::scrollbar-thumb': string;
314
- '::scrollbar-track': string;
315
- '::scrollbar-track-piece': string;
316
- '::scrollbar-corner': string;
317
- '::slider-thumb': string[];
318
- '::slider-runnable-track': string[];
319
- '::meter': string;
320
- '::resizer': string;
321
- '::progress': string;
322
- ':first': string;
323
- ':last': string;
324
- ':even': string;
325
- ':odd': string;
326
- ':nth(': string;
327
- };
328
-
329
- declare const defaultSemantics: {
330
- square: string;
331
- video: string;
332
- rounded: string;
333
- round: string;
334
- hidden: string;
335
- hide: string;
336
- block: string;
337
- table: string;
338
- flex: string;
339
- grid: string;
340
- contents: string;
341
- inline: string;
342
- 'inline-block': string;
343
- 'inline-flex': string;
344
- 'inline-grid': string;
345
- 'inline-table': string;
346
- 'table-cell': string;
347
- 'table-caption': string;
348
- 'flow-root': string;
349
- 'list-item': string;
350
- 'table-row': string;
351
- 'table-column': string;
352
- 'table-row-group': string;
353
- 'table-column-group': string;
354
- 'table-header-group': string;
355
- 'table-footer-group': string;
356
- italic: string;
357
- oblique: string;
358
- isolate: string;
359
- overflow: string;
360
- untouchable: string;
361
- static: string;
362
- fixed: string;
363
- abs: string;
364
- rel: string;
365
- sticky: string;
366
- uppercase: string;
367
- lowercase: string;
368
- capitalize: string;
369
- visible: string;
370
- invisible: string;
371
- 'center-content': {
372
- 'justify-content': string;
373
- 'align-items': string;
374
- };
375
- 'sr-only': {
376
- position: string;
377
- width: string;
378
- height: string;
379
- padding: string;
380
- margin: string;
381
- overflow: string;
382
- clip: string;
383
- 'white-space': string;
384
- 'border-width': string;
385
- };
386
- full: {
387
- width: string;
388
- height: string;
389
- };
390
- center: {
391
- left: number;
392
- right: number;
393
- 'margin-left': string;
394
- 'margin-right': string;
395
- };
396
- middle: {
397
- top: number;
398
- bottom: number;
399
- 'margin-top': string;
400
- 'margin-bottom': string;
401
- };
402
- 'break-spaces': {
403
- 'white-space': string;
404
- };
405
- 'break-word': {
406
- 'overflow-wrap': string;
407
- overflow: string;
408
- };
409
- };
410
-
411
- declare const defaultThemes: string[];
412
-
413
- declare const defaultValues: {
414
- BackgroundClip: {
415
- content: string;
416
- border: string;
417
- padding: string;
418
- };
419
- BackgroundOrigin: {
420
- content: string;
421
- border: string;
422
- padding: string;
423
- };
424
- BoxSizing: {
425
- content: string;
426
- border: string;
427
- };
428
- ClipPath: {
429
- margin: string;
430
- fill: string;
431
- stroke: string;
432
- view: string;
433
- content: string;
434
- border: string;
435
- padding: string;
436
- };
437
- FlexDirection: {
438
- col: string;
439
- 'col-reverse': string;
440
- };
441
- FontFamily: {
442
- mono: string;
443
- sans: string;
444
- serif: string;
445
- };
446
- FontWeight: {
447
- thin: number;
448
- extralight: number;
449
- light: number;
450
- regular: number;
451
- medium: number;
452
- semibold: number;
453
- bold: number;
454
- extrabold: number;
455
- heavy: number;
456
- };
457
- GridAutoColumns: {
458
- min: string;
459
- max: string;
460
- };
461
- GridAutoRows: {
462
- min: string;
463
- max: string;
464
- };
465
- GridTemplateColumns: {
466
- min: string;
467
- max: string;
468
- };
469
- GridTemplateRows: {
470
- min: string;
471
- max: string;
472
- };
473
- Order: {
474
- first: number;
475
- last: number;
476
- };
477
- Position: {
478
- abs: string;
479
- rel: string;
480
- };
481
- ShapeOutside: {
482
- margin: string;
483
- content: string;
484
- border: string;
485
- padding: string;
486
- };
487
- TransformBox: {
488
- fill: string;
489
- stroke: string;
490
- view: string;
491
- content: string;
492
- border: string;
493
- padding: string;
494
- };
495
- Width: {
496
- full: string;
497
- fit: string;
498
- max: string;
499
- min: string;
500
- };
501
- MinWidth: {
502
- full: string;
503
- fit: string;
504
- max: string;
505
- min: string;
506
- };
507
- MinHeight: {
508
- full: string;
509
- fit: string;
510
- max: string;
511
- min: string;
512
- };
513
- MaxWidth: {
514
- full: string;
515
- fit: string;
516
- max: string;
517
- min: string;
518
- };
519
- MaxHeight: {
520
- full: string;
521
- fit: string;
522
- max: string;
523
- min: string;
524
- };
525
- Height: {
526
- full: string;
527
- fit: string;
528
- max: string;
529
- min: string;
530
- };
531
- FlexBasis: {
532
- full: string;
533
- fit: string;
534
- max: string;
535
- min: string;
536
- };
537
- };
538
-
539
- declare class export_default extends MasterCSSRule {
540
- static id: string;
541
- static matches: RegExp;
542
- static propName: string;
543
- static unit: string;
544
- }
545
-
546
- declare const DefaultRules: (typeof export_default)[];
547
-
548
- declare const defaultConfig: MasterCSSConfig;
549
-
550
- declare function fillColorScale(data: any): any;
551
-
552
- export { DefaultRules, MasterCSSRule, PRIORITY_SELECTORS, RuleMatching, configure, MasterCSS as default, defaultBreakpoints, defaultColors, defaultConfig, defaultRootSize, defaultSelectors, defaultSemantics, defaultThemes, defaultValues, fillColorScale, init, render, renderFromHTML, renderIntoHTML };
1
+ export { default } from './core';
2
+ export * from './rule';
3
+ export * from './init';
4
+ export * from './render';
5
+ export * from './render-from-html';
6
+ export * from './render-into-html';
7
+ export * from './configure';
8
+ export * from './config';
9
+ export * from './fill-color-scale';