@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
@@ -0,0 +1,12 @@
1
+ export declare const defaultBreakpoints: {
2
+ '3xs': number;
3
+ '2xs': number;
4
+ xs: number;
5
+ sm: number;
6
+ md: number;
7
+ lg: number;
8
+ xl: number;
9
+ '2xl': number;
10
+ '3xl': number;
11
+ '4xl': number;
12
+ };
@@ -0,0 +1,24 @@
1
+ export declare const defaultColors: {
2
+ slate: any;
3
+ gray: any;
4
+ brown: any;
5
+ orange: any;
6
+ gold: any;
7
+ yellow: any;
8
+ grass: any;
9
+ green: any;
10
+ beryl: any;
11
+ teal: any;
12
+ cyan: any;
13
+ sky: any;
14
+ blue: any;
15
+ indigo: any;
16
+ violet: any;
17
+ purple: any;
18
+ fuchsia: any;
19
+ pink: any;
20
+ crimson: any;
21
+ red: any;
22
+ black: string;
23
+ white: string;
24
+ };
@@ -0,0 +1,11 @@
1
+ import { MasterCSSConfig } from '../interfaces/config';
2
+ import { defaultBreakpoints } from './breakpoints';
3
+ import { defaultColors } from './colors';
4
+ import { defaultRootSize } from './root-size';
5
+ import { defaultSelectors } from './selectors';
6
+ import { defaultSemantics } from './semantics';
7
+ import { defaultThemes } from './themes';
8
+ import { defaultValues } from './values';
9
+ import { DefaultRules } from './rules';
10
+ declare const defaultConfig: MasterCSSConfig;
11
+ export { defaultColors, defaultBreakpoints, defaultSemantics, defaultValues, defaultSelectors, defaultThemes, DefaultRules, defaultRootSize, defaultConfig };
@@ -0,0 +1 @@
1
+ export declare const defaultRootSize = 16;
@@ -0,0 +1,2 @@
1
+ import FontWeight from '../rules/font-weight';
2
+ export declare const DefaultRules: (typeof FontWeight)[];
@@ -0,0 +1,18 @@
1
+ export declare const defaultSelectors: {
2
+ '::scrollbar': string;
3
+ '::scrollbar-button': string;
4
+ '::scrollbar-thumb': string;
5
+ '::scrollbar-track': string;
6
+ '::scrollbar-track-piece': string;
7
+ '::scrollbar-corner': string;
8
+ '::slider-thumb': string[];
9
+ '::slider-runnable-track': string[];
10
+ '::meter': string;
11
+ '::resizer': string;
12
+ '::progress': string;
13
+ ':first': string;
14
+ ':last': string;
15
+ ':even': string;
16
+ ':odd': string;
17
+ ':nth(': string;
18
+ };
@@ -0,0 +1,81 @@
1
+ export 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;
43
+ 'center-content': {
44
+ 'justify-content': string;
45
+ 'align-items': string;
46
+ };
47
+ 'sr-only': {
48
+ position: string;
49
+ width: string;
50
+ height: string;
51
+ padding: string;
52
+ margin: string;
53
+ overflow: string;
54
+ clip: string;
55
+ 'white-space': string;
56
+ 'border-width': string;
57
+ };
58
+ full: {
59
+ width: string;
60
+ height: string;
61
+ };
62
+ center: {
63
+ left: number;
64
+ right: number;
65
+ 'margin-left': string;
66
+ 'margin-right': string;
67
+ };
68
+ middle: {
69
+ top: number;
70
+ bottom: number;
71
+ 'margin-top': string;
72
+ 'margin-bottom': string;
73
+ };
74
+ 'break-spaces': {
75
+ 'white-space': string;
76
+ };
77
+ 'break-word': {
78
+ 'overflow-wrap': string;
79
+ overflow: string;
80
+ };
81
+ };
@@ -0,0 +1 @@
1
+ export declare const defaultThemes: string[];
@@ -0,0 +1,125 @@
1
+ export declare const defaultValues: {
2
+ BackgroundClip: {
3
+ content: string;
4
+ border: string;
5
+ padding: string;
6
+ };
7
+ BackgroundOrigin: {
8
+ content: string;
9
+ border: string;
10
+ padding: string;
11
+ };
12
+ BoxSizing: {
13
+ content: string;
14
+ border: string;
15
+ };
16
+ ClipPath: {
17
+ margin: string;
18
+ fill: string;
19
+ stroke: string;
20
+ view: string;
21
+ content: string;
22
+ border: string;
23
+ padding: string;
24
+ };
25
+ FlexDirection: {
26
+ col: string;
27
+ 'col-reverse': string;
28
+ };
29
+ FontFamily: {
30
+ mono: string;
31
+ sans: string;
32
+ serif: string;
33
+ };
34
+ FontWeight: {
35
+ thin: number;
36
+ extralight: number;
37
+ light: number;
38
+ regular: number;
39
+ medium: number;
40
+ semibold: number;
41
+ bold: number;
42
+ extrabold: number;
43
+ heavy: number;
44
+ };
45
+ GridAutoColumns: {
46
+ min: string;
47
+ max: string;
48
+ };
49
+ GridAutoRows: {
50
+ min: string;
51
+ max: string;
52
+ };
53
+ GridTemplateColumns: {
54
+ min: string;
55
+ max: string;
56
+ };
57
+ GridTemplateRows: {
58
+ min: string;
59
+ max: string;
60
+ };
61
+ Order: {
62
+ first: number;
63
+ last: number;
64
+ };
65
+ Position: {
66
+ abs: string;
67
+ rel: string;
68
+ };
69
+ ShapeOutside: {
70
+ margin: string;
71
+ content: string;
72
+ border: string;
73
+ padding: string;
74
+ };
75
+ TransformBox: {
76
+ fill: string;
77
+ stroke: string;
78
+ view: string;
79
+ content: string;
80
+ border: string;
81
+ padding: string;
82
+ };
83
+ Width: {
84
+ full: string;
85
+ fit: string;
86
+ max: string;
87
+ min: string;
88
+ };
89
+ MinWidth: {
90
+ full: string;
91
+ fit: string;
92
+ max: string;
93
+ min: string;
94
+ };
95
+ MinHeight: {
96
+ full: string;
97
+ fit: string;
98
+ max: string;
99
+ min: string;
100
+ };
101
+ MaxWidth: {
102
+ full: string;
103
+ fit: string;
104
+ max: string;
105
+ min: string;
106
+ };
107
+ MaxHeight: {
108
+ full: string;
109
+ fit: string;
110
+ max: string;
111
+ min: string;
112
+ };
113
+ Height: {
114
+ full: string;
115
+ fit: string;
116
+ max: string;
117
+ min: string;
118
+ };
119
+ FlexBasis: {
120
+ full: string;
121
+ fit: string;
122
+ max: string;
123
+ min: string;
124
+ };
125
+ };
@@ -0,0 +1 @@
1
+ export {};
package/configure.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ import { MasterCSSConfig } from './interfaces/config';
2
+ export declare function configure(...configurations: MasterCSSConfig[]): MasterCSSConfig;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,5 @@
1
+ export declare const START_SYMBOL: {
2
+ '(': string;
3
+ '\'': string;
4
+ '{': string;
5
+ };
package/core.d.ts ADDED
@@ -0,0 +1,68 @@
1
+ import { init } from './init';
2
+ import { MasterCSSConfig } from './interfaces/config';
3
+ import { MasterCSSRule } from './rule';
4
+ declare const MutationObserver: ObjectConstructor | {
5
+ new (callback: MutationCallback): MutationObserver;
6
+ prototype: MutationObserver;
7
+ };
8
+ export default class MasterCSS extends MutationObserver {
9
+ config: MasterCSSConfig;
10
+ container?: Element;
11
+ static init: typeof init;
12
+ static defaultConfig: MasterCSSConfig;
13
+ static instances: MasterCSS[];
14
+ static root: MasterCSS;
15
+ /**
16
+ * 全部 sheet 根據目前蒐集到的所有 DOM class 重新 findAndNew
17
+ */
18
+ static refresh(config: MasterCSSConfig): void;
19
+ readonly style: HTMLStyleElement;
20
+ readonly rules: MasterCSSRule[];
21
+ readonly ruleOfName: Record<string, MasterCSSRule>;
22
+ readonly countOfName: {};
23
+ private cache;
24
+ semantics: [RegExp, string][];
25
+ classes: Record<string, string[]>;
26
+ colorsThemesMap: Record<string, Record<string, Record<string, string>>>;
27
+ colorNames: string[];
28
+ themeNames: string[];
29
+ relationThemesMap: Record<string, Record<string, string[]>>;
30
+ relations: Record<string, string[]>;
31
+ selectors: {
32
+ single: [RegExp, string][];
33
+ multiple: [RegExp, string[]][];
34
+ };
35
+ constructor(config?: MasterCSSConfig, container?: Element);
36
+ observe(target: Node, options?: MutationObserverInit): this;
37
+ disconnect(): void;
38
+ /**
39
+ * 尋找匹配的 MasterCSSRule 生成實例
40
+ */
41
+ findAndNew(name: string): MasterCSSRule | MasterCSSRule[];
42
+ /**
43
+ * 根據目前蒐集到的所有 DOM class 重新 findAndNew
44
+ */
45
+ refresh(config: MasterCSSConfig): void;
46
+ destroy(): void;
47
+ /**
48
+ * 1. where
49
+ * 2. normal
50
+ * 3. where selectors
51
+ * 4. normal selectors
52
+ * 5. media where
53
+ * 6. media normal
54
+ * 7. media selectors
55
+ * 8. media width where
56
+ * 9. media width
57
+ * 10. media width selectors
58
+ */
59
+ insert(rule: MasterCSSRule): void;
60
+ delete(className: string): void;
61
+ findAndInsert(className: string): void;
62
+ }
63
+ declare global {
64
+ interface Window {
65
+ MasterCSS: typeof MasterCSS;
66
+ }
67
+ }
68
+ export {};
@@ -0,0 +1 @@
1
+ export declare function fillColorScale(data: any): any;
@@ -0,0 +1 @@
1
+ export {};