@master/css 2.0.0-beta.11 → 2.0.0-beta.111

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 (242) hide show
  1. package/README.md +102 -109
  2. package/dist/apis/render-from-html.d.ts +2 -2
  3. package/dist/apis/render-into-html.d.ts +2 -2
  4. package/dist/apis/render.d.ts +2 -2
  5. package/dist/config/breakpoints.d.ts +2 -2
  6. package/dist/config/colors.d.ts +2 -2
  7. package/dist/config/important.d.ts +2 -0
  8. package/dist/config/index.d.ts +44 -16
  9. package/dist/config/observe.d.ts +2 -0
  10. package/dist/config/override.d.ts +2 -0
  11. package/dist/config/root-size.d.ts +2 -2
  12. package/dist/config/rules.d.ts +198 -2
  13. package/dist/config/scheme.d.ts +2 -2
  14. package/dist/config/scope.d.ts +2 -0
  15. package/dist/config/selectors.d.ts +2 -2
  16. package/dist/config/semantics.d.ts +143 -43
  17. package/dist/config/themes.d.ts +2 -2
  18. package/dist/config/values.d.ts +2 -2
  19. package/dist/constants/start-symbol.d.ts +1 -0
  20. package/dist/css.d.ts +44 -31
  21. package/dist/index.browser.d.ts +1 -0
  22. package/dist/index.browser.js +1 -2
  23. package/dist/index.cjs +1 -2
  24. package/dist/index.d.ts +16 -15
  25. package/dist/index.mjs +1 -2
  26. package/dist/rule.d.ts +26 -26
  27. package/dist/rules/accent-color.d.ts +3 -4
  28. package/dist/rules/align-content.d.ts +4 -5
  29. package/dist/rules/align-items.d.ts +4 -5
  30. package/dist/rules/align-self.d.ts +4 -5
  31. package/dist/rules/animation-delay.d.ts +4 -5
  32. package/dist/rules/animation-direction.d.ts +4 -5
  33. package/dist/rules/animation-duration.d.ts +4 -5
  34. package/dist/rules/animation-fill-mode.d.ts +4 -5
  35. package/dist/rules/animation-iteration-count.d.ts +4 -5
  36. package/dist/rules/animation-name.d.ts +4 -5
  37. package/dist/rules/animation-play-state.d.ts +4 -5
  38. package/dist/rules/animation-timing-function.d.ts +4 -5
  39. package/dist/rules/animation.d.ts +3 -4
  40. package/dist/rules/appearance.d.ts +3 -4
  41. package/dist/rules/aspect-ratio.d.ts +6 -0
  42. package/dist/rules/backdrop-filter.d.ts +7 -7
  43. package/dist/rules/background-attachment.d.ts +4 -5
  44. package/dist/rules/background-blend-mode.d.ts +3 -4
  45. package/dist/rules/background-clip.d.ts +4 -5
  46. package/dist/rules/background-color.d.ts +3 -4
  47. package/dist/rules/background-image.d.ts +4 -5
  48. package/dist/rules/background-origin.d.ts +4 -5
  49. package/dist/rules/background-position.d.ts +4 -5
  50. package/dist/rules/background-repeat.d.ts +4 -5
  51. package/dist/rules/background-size.d.ts +4 -5
  52. package/dist/rules/background.d.ts +4 -5
  53. package/dist/rules/border-collapse.d.ts +4 -5
  54. package/dist/rules/border-color.d.ts +5 -4
  55. package/dist/rules/border-image-outset.d.ts +3 -4
  56. package/dist/rules/border-image-repeat.d.ts +4 -5
  57. package/dist/rules/border-image-slice.d.ts +3 -4
  58. package/dist/rules/border-image-source.d.ts +4 -5
  59. package/dist/rules/border-image-width.d.ts +4 -5
  60. package/dist/rules/border-image.d.ts +3 -4
  61. package/dist/rules/border-radius.d.ts +5 -4
  62. package/dist/rules/border-spacing.d.ts +3 -4
  63. package/dist/rules/border-style.d.ts +5 -4
  64. package/dist/rules/border-width.d.ts +5 -4
  65. package/dist/rules/border.d.ts +5 -4
  66. package/dist/rules/box-decoration-break.d.ts +4 -5
  67. package/dist/rules/box-shadow.d.ts +4 -5
  68. package/dist/rules/box-sizing.d.ts +4 -5
  69. package/dist/rules/break-after.d.ts +3 -4
  70. package/dist/rules/break-before.d.ts +3 -4
  71. package/dist/rules/break-inside.d.ts +3 -4
  72. package/dist/rules/caret-color.d.ts +3 -4
  73. package/dist/rules/clear.d.ts +3 -4
  74. package/dist/rules/clip-path.d.ts +4 -5
  75. package/dist/rules/color.d.ts +4 -5
  76. package/dist/rules/column-span.d.ts +4 -5
  77. package/dist/rules/columns.d.ts +4 -5
  78. package/dist/rules/contain.d.ts +3 -4
  79. package/dist/rules/content.d.ts +3 -4
  80. package/dist/rules/counter-increment.d.ts +3 -4
  81. package/dist/rules/counter-reset.d.ts +5 -0
  82. package/dist/rules/cursor.d.ts +3 -4
  83. package/dist/rules/cx.d.ts +3 -4
  84. package/dist/rules/cy.d.ts +3 -4
  85. package/dist/rules/direction.d.ts +3 -4
  86. package/dist/rules/display.d.ts +4 -5
  87. package/dist/rules/fill.d.ts +3 -4
  88. package/dist/rules/filter.d.ts +7 -7
  89. package/dist/rules/flex-basis.d.ts +3 -4
  90. package/dist/rules/flex-direction.d.ts +4 -5
  91. package/dist/rules/flex-grow.d.ts +3 -4
  92. package/dist/rules/flex-shrink.d.ts +3 -4
  93. package/dist/rules/flex-wrap.d.ts +4 -5
  94. package/dist/rules/flex.d.ts +3 -4
  95. package/dist/rules/float.d.ts +3 -4
  96. package/dist/rules/font-family.d.ts +4 -5
  97. package/dist/rules/font-feature-settings.d.ts +5 -0
  98. package/dist/rules/font-size.d.ts +4 -5
  99. package/dist/rules/font-smoothing.d.ts +5 -4
  100. package/dist/rules/font-style.d.ts +4 -5
  101. package/dist/rules/font-variant-numeric.d.ts +4 -5
  102. package/dist/rules/font-weight.d.ts +4 -5
  103. package/dist/rules/font.d.ts +4 -5
  104. package/dist/rules/gap.d.ts +5 -4
  105. package/dist/rules/grid-area.d.ts +3 -4
  106. package/dist/rules/grid-auto-columns.d.ts +4 -5
  107. package/dist/rules/grid-auto-flow.d.ts +4 -5
  108. package/dist/rules/grid-auto-rows.d.ts +3 -4
  109. package/dist/rules/grid-column-end.d.ts +4 -5
  110. package/dist/rules/grid-column-start.d.ts +4 -5
  111. package/dist/rules/grid-column.d.ts +4 -5
  112. package/dist/rules/grid-columns.d.ts +4 -5
  113. package/dist/rules/grid-row-end.d.ts +3 -4
  114. package/dist/rules/grid-row-start.d.ts +3 -4
  115. package/dist/rules/grid-row.d.ts +4 -5
  116. package/dist/rules/grid-rows.d.ts +3 -4
  117. package/dist/rules/grid-template-areas.d.ts +3 -4
  118. package/dist/rules/grid-template-columns.d.ts +4 -5
  119. package/dist/rules/grid-template-rows.d.ts +3 -4
  120. package/dist/rules/grid-template.d.ts +3 -4
  121. package/dist/rules/grid.d.ts +3 -4
  122. package/dist/rules/group.d.ts +10 -6
  123. package/dist/rules/height.d.ts +4 -5
  124. package/dist/rules/inset.d.ts +4 -5
  125. package/dist/rules/isolation.d.ts +3 -4
  126. package/dist/rules/justify-content.d.ts +4 -5
  127. package/dist/rules/justify-items.d.ts +4 -5
  128. package/dist/rules/justify-self.d.ts +4 -5
  129. package/dist/rules/letter-spacing.d.ts +4 -5
  130. package/dist/rules/line-clamp.d.ts +3 -4
  131. package/dist/rules/line-height.d.ts +4 -5
  132. package/dist/rules/lines.d.ts +5 -4
  133. package/dist/rules/list-style-image.d.ts +4 -5
  134. package/dist/rules/list-style-position.d.ts +4 -5
  135. package/dist/rules/list-style-type.d.ts +4 -5
  136. package/dist/rules/list-style.d.ts +3 -4
  137. package/dist/rules/margin.d.ts +5 -4
  138. package/dist/rules/mask-image.d.ts +3 -4
  139. package/dist/rules/max-height.d.ts +4 -5
  140. package/dist/rules/max-wh.d.ts +12 -0
  141. package/dist/rules/max-width.d.ts +4 -5
  142. package/dist/rules/min-height.d.ts +4 -5
  143. package/dist/rules/min-wh.d.ts +12 -0
  144. package/dist/rules/min-width.d.ts +4 -5
  145. package/dist/rules/mix-blend-mode.d.ts +4 -5
  146. package/dist/rules/object-fit.d.ts +4 -5
  147. package/dist/rules/object-position.d.ts +4 -5
  148. package/dist/rules/opacity.d.ts +3 -4
  149. package/dist/rules/order.d.ts +4 -5
  150. package/dist/rules/outline-color.d.ts +3 -4
  151. package/dist/rules/outline-offset.d.ts +3 -4
  152. package/dist/rules/outline-style.d.ts +4 -5
  153. package/dist/rules/outline-width.d.ts +4 -5
  154. package/dist/rules/outline.d.ts +3 -4
  155. package/dist/rules/overflow.d.ts +5 -4
  156. package/dist/rules/overscroll-behavior.d.ts +5 -4
  157. package/dist/rules/padding.d.ts +5 -4
  158. package/dist/rules/place-content.d.ts +3 -4
  159. package/dist/rules/place-items.d.ts +3 -4
  160. package/dist/rules/place-self.d.ts +3 -4
  161. package/dist/rules/pointer-events.d.ts +3 -4
  162. package/dist/rules/position.d.ts +3 -4
  163. package/dist/rules/quotes.d.ts +3 -4
  164. package/dist/rules/resize.d.ts +3 -4
  165. package/dist/rules/rx.d.ts +3 -4
  166. package/dist/rules/ry.d.ts +3 -4
  167. package/dist/rules/scroll-behavior.d.ts +3 -4
  168. package/dist/rules/scroll-margin.d.ts +5 -4
  169. package/dist/rules/scroll-padding.d.ts +5 -4
  170. package/dist/rules/scroll-snap-align.d.ts +4 -5
  171. package/dist/rules/scroll-snap-stop.d.ts +4 -5
  172. package/dist/rules/scroll-snap-type.d.ts +4 -5
  173. package/dist/rules/shape-image-threshold.d.ts +3 -4
  174. package/dist/rules/shape-margin.d.ts +4 -5
  175. package/dist/rules/shape-outside.d.ts +4 -5
  176. package/dist/rules/spacing.d.ts +5 -4
  177. package/dist/rules/stroke-dasharray.d.ts +3 -4
  178. package/dist/rules/stroke-dashoffset.d.ts +3 -4
  179. package/dist/rules/stroke-width.d.ts +4 -5
  180. package/dist/rules/stroke.d.ts +3 -4
  181. package/dist/rules/table-layout.d.ts +3 -4
  182. package/dist/rules/text-align.d.ts +4 -5
  183. package/dist/rules/text-decoration-color.d.ts +3 -4
  184. package/dist/rules/text-decoration-line.d.ts +4 -5
  185. package/dist/rules/text-decoration-style.d.ts +4 -5
  186. package/dist/rules/text-decoration-thickness.d.ts +4 -5
  187. package/dist/rules/text-decoration.d.ts +4 -5
  188. package/dist/rules/text-fill-color.d.ts +5 -4
  189. package/dist/rules/text-indent.d.ts +3 -4
  190. package/dist/rules/text-orientation.d.ts +4 -5
  191. package/dist/rules/text-overflow.d.ts +4 -5
  192. package/dist/rules/text-rendering.d.ts +4 -5
  193. package/dist/rules/text-shadow.d.ts +3 -4
  194. package/dist/rules/text-size.d.ts +5 -4
  195. package/dist/rules/text-stroke-color.d.ts +5 -4
  196. package/dist/rules/text-stroke-width.d.ts +5 -4
  197. package/dist/rules/text-stroke.d.ts +5 -4
  198. package/dist/rules/text-transform.d.ts +4 -5
  199. package/dist/rules/text-underline-offset.d.ts +3 -4
  200. package/dist/rules/touch-action.d.ts +3 -4
  201. package/dist/rules/transform-box.d.ts +4 -5
  202. package/dist/rules/transform-origin.d.ts +4 -5
  203. package/dist/rules/transform-style.d.ts +4 -5
  204. package/dist/rules/transform.d.ts +6 -7
  205. package/dist/rules/transition-delay.d.ts +4 -5
  206. package/dist/rules/transition-duration.d.ts +4 -5
  207. package/dist/rules/transition-property.d.ts +4 -5
  208. package/dist/rules/transition-timing-function.d.ts +4 -5
  209. package/dist/rules/transition.d.ts +3 -4
  210. package/dist/rules/user-drag.d.ts +3 -4
  211. package/dist/rules/user-select.d.ts +3 -4
  212. package/dist/rules/variable.d.ts +5 -4
  213. package/dist/rules/vertical-align.d.ts +4 -5
  214. package/dist/rules/visibility.d.ts +3 -4
  215. package/dist/rules/wh.d.ts +12 -0
  216. package/dist/rules/white-space.d.ts +3 -4
  217. package/dist/rules/width.d.ts +4 -5
  218. package/dist/rules/will-change.d.ts +3 -4
  219. package/dist/rules/word-break.d.ts +3 -4
  220. package/dist/rules/word-spacing.d.ts +3 -4
  221. package/dist/rules/writing-mode.d.ts +4 -5
  222. package/dist/rules/x.d.ts +3 -4
  223. package/dist/rules/y.d.ts +3 -4
  224. package/dist/rules/z-index.d.ts +4 -5
  225. package/dist/utils/analyze-unit-value.d.ts +4 -0
  226. package/dist/utils/analyze-value-token.d.ts +3 -0
  227. package/dist/utils/delay.d.ts +2 -0
  228. package/dist/utils/is-plain-object.d.ts +1 -1
  229. package/dist/utils/normalize-css-calc-text.d.ts +1 -1
  230. package/dist/utils/parse-value-unit.d.ts +2 -2
  231. package/dist/utils/parse-value.d.ts +1 -2
  232. package/dist/utils/test-css.d.ts +3 -0
  233. package/package.json +1 -162
  234. package/LICENSE +0 -21
  235. package/dist/apis/extend.d.ts +0 -5
  236. package/dist/apis/init.d.ts +0 -3
  237. package/dist/index.browser.js.map +0 -7
  238. package/dist/index.cjs.map +0 -7
  239. package/dist/index.mjs.map +0 -7
  240. package/dist/rules/aspect-radio.d.ts +0 -7
  241. package/dist/rules/placement.d.ts +0 -8
  242. package/readme.md +0 -118
@@ -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
+ 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,4 @@ declare const defaultSemantics: {
79
179
  overflow: string;
80
180
  };
81
181
  };
82
- export default defaultSemantics;
182
+ export default semantics;
@@ -1,2 +1,2 @@
1
- declare const defaultThemes: string[];
2
- export default defaultThemes;
1
+ declare const themes: string[];
2
+ export default themes;
@@ -1,4 +1,4 @@
1
- declare const defaultValues: {
1
+ declare const values: {
2
2
  BackgroundClip: {
3
3
  content: string;
4
4
  border: string;
@@ -123,4 +123,4 @@ declare const defaultValues: {
123
123
  min: string;
124
124
  };
125
125
  };
126
- export default defaultValues;
126
+ export default values;
@@ -1,5 +1,6 @@
1
1
  export declare const START_SYMBOL: {
2
2
  '(': string;
3
3
  '\'': string;
4
+ '"': string;
4
5
  '{': string;
5
6
  };
package/dist/css.d.ts CHANGED
@@ -1,38 +1,40 @@
1
- import init from './apis/init';
2
- import type { MasterCSSConfig } from './config';
3
- import MasterCSSRule from './rule';
1
+ import type { Config } from './config';
2
+ import Rule, { RuleMatching } from './rule';
4
3
  declare const MutationObserver: ObjectConstructor | {
5
4
  new (callback: MutationCallback): MutationObserver;
6
5
  prototype: MutationObserver;
7
6
  };
8
7
  export default class MasterCSS extends MutationObserver {
9
8
  #private;
10
- config?: MasterCSSConfig;
11
- root?: Document | ShadowRoot;
12
- static init: typeof init;
13
- static defaultConfig: MasterCSSConfig;
9
+ config?: Config;
14
10
  static instances: MasterCSS[];
15
11
  static root: MasterCSS;
16
12
  /**
17
- * 全部 sheet 根據目前蒐集到的所有 DOM class 重新 findAndNew
13
+ * 全部 sheet 根據目前蒐集到的所有 DOM class 重新 create
18
14
  */
19
- static refresh(config: MasterCSSConfig): void;
15
+ static refresh(config: Config): void;
20
16
  readonly style: HTMLStyleElement;
21
- readonly rules: MasterCSSRule[];
22
- readonly ruleOfClass: Record<string, MasterCSSRule>;
17
+ readonly rules: Rule[];
18
+ readonly ruleOfClass: Record<string, Rule>;
23
19
  readonly countOfClass: {};
24
20
  readonly host: Element;
21
+ readonly root: Document | ShadowRoot;
25
22
  readonly ready: boolean;
26
- semantics: [RegExp, string][];
23
+ semantics: [RegExp, [string, string | Record<string, string>]][];
27
24
  classes: Record<string, string[]>;
28
- colorsThemesMap: Record<string, Record<string, Record<string, string>>>;
25
+ colorThemesMap: Record<string, Record<string, string>>;
29
26
  colorNames: string[];
30
27
  themeNames: string[];
31
28
  relationThemesMap: Record<string, Record<string, string[]>>;
32
29
  relations: Record<string, string[]>;
33
30
  selectors: Record<string, [RegExp, string[]][]>;
31
+ values: Record<string, Record<string, string | number>>;
32
+ globalValues: Record<string, string | number>;
33
+ breakpoints: Record<string, number>;
34
+ mediaQueries: Record<string, string>;
35
+ matches: Record<string, RegExp>;
34
36
  private schemeMQL;
35
- constructor(config?: MasterCSSConfig, root?: Document | ShadowRoot);
37
+ constructor(config?: Config);
36
38
  get storageScheme(): string;
37
39
  set scheme(scheme: string);
38
40
  get scheme(): string;
@@ -41,32 +43,43 @@ export default class MasterCSS extends MutationObserver {
41
43
  private removeSchemeListener;
42
44
  private onThemeChange;
43
45
  private cache;
44
- observe(options?: MutationObserverInit): this;
46
+ observe(root: Document | ShadowRoot | null, options?: MutationObserverInit): this;
45
47
  disconnect(): void;
46
48
  /**
47
- * 尋找匹配的 MasterCSSRule 生成實例
49
+ * 比對是否為 Master CSS 的類名語法
48
50
  */
49
- findAndNew(name: string): MasterCSSRule | MasterCSSRule[];
51
+ match(className: string): RuleMatching;
50
52
  /**
51
- * 根據目前蒐集到的所有 DOM class 重新 findAndNew
53
+ * 透過類名 ( 包含 .classes ) 生成 rules[]
52
54
  */
53
- refresh(config: MasterCSSConfig): void;
55
+ create(className: string): Rule[];
56
+ /**
57
+ * 根據蒐集到的所有 DOM class 重新 create
58
+ */
59
+ refresh(config: Config): void;
54
60
  destroy(): void;
55
61
  /**
56
- * 1. where
57
- * 2. normal
58
- * 3. where selectors
59
- * 4. normal selectors
60
- * 5. media where
61
- * 6. media normal
62
- * 7. media selectors
63
- * 8. media width where
64
- * 9. media width
65
- * 10. media width selectors
62
+ * 透過類名來刪除對應的 Rules
66
63
  */
67
- insert(rule: MasterCSSRule): void;
68
64
  delete(className: string): void;
69
- findAndInsert(className: string): void;
65
+ /**
66
+ * 依類名插入規則
67
+ */
68
+ insert(eachClassName: string): boolean;
69
+ /**
70
+ * 加工插入規則
71
+ * 1. where
72
+ * 2. normal
73
+ * 3. where selectors
74
+ * 4. normal selectors
75
+ * 5. media where
76
+ * 6. media normal
77
+ * 7. media selectors
78
+ * 8. media width where
79
+ * 9. media width
80
+ * 10. media width selectors
81
+ */
82
+ insertRules(rules: Rule[]): void;
70
83
  get text(): string;
71
84
  }
72
85
  declare global {
@@ -0,0 +1 @@
1
+ export {};