@master/css 2.0.0-beta.27 → 2.0.0-beta.29
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.
- package/dist/config/index.d.ts +11 -6
- package/dist/config/rules.d.ts +194 -1
- package/dist/css.d.ts +14 -14
- package/dist/index.browser.js +1 -1
- package/dist/index.browser.js.map +3 -3
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +3 -3
- package/dist/index.d.ts +4 -4
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +3 -3
- package/dist/rule.d.ts +18 -18
- package/dist/rules/accent-color.d.ts +3 -3
- package/dist/rules/align-content.d.ts +3 -3
- package/dist/rules/align-items.d.ts +3 -3
- package/dist/rules/align-self.d.ts +3 -3
- package/dist/rules/animation-delay.d.ts +3 -3
- package/dist/rules/animation-direction.d.ts +3 -3
- package/dist/rules/animation-duration.d.ts +3 -3
- package/dist/rules/animation-fill-mode.d.ts +3 -3
- package/dist/rules/animation-iteration-count.d.ts +3 -3
- package/dist/rules/animation-name.d.ts +3 -3
- package/dist/rules/animation-play-state.d.ts +3 -3
- package/dist/rules/animation-timing-function.d.ts +3 -3
- package/dist/rules/animation.d.ts +3 -3
- package/dist/rules/appearance.d.ts +3 -3
- package/dist/rules/aspect-radio.d.ts +3 -3
- package/dist/rules/backdrop-filter.d.ts +5 -5
- package/dist/rules/background-attachment.d.ts +3 -3
- package/dist/rules/background-blend-mode.d.ts +3 -3
- package/dist/rules/background-clip.d.ts +3 -3
- package/dist/rules/background-color.d.ts +3 -3
- package/dist/rules/background-image.d.ts +3 -3
- package/dist/rules/background-origin.d.ts +3 -3
- package/dist/rules/background-position.d.ts +3 -3
- package/dist/rules/background-repeat.d.ts +3 -3
- package/dist/rules/background-size.d.ts +3 -3
- package/dist/rules/background.d.ts +3 -3
- package/dist/rules/border-collapse.d.ts +3 -3
- package/dist/rules/border-color.d.ts +3 -3
- package/dist/rules/border-image-outset.d.ts +3 -3
- package/dist/rules/border-image-repeat.d.ts +3 -3
- package/dist/rules/border-image-slice.d.ts +3 -3
- package/dist/rules/border-image-source.d.ts +3 -3
- package/dist/rules/border-image-width.d.ts +3 -3
- package/dist/rules/border-image.d.ts +3 -3
- package/dist/rules/border-radius.d.ts +3 -3
- package/dist/rules/border-spacing.d.ts +3 -3
- package/dist/rules/border-style.d.ts +3 -3
- package/dist/rules/border-width.d.ts +3 -3
- package/dist/rules/border.d.ts +3 -3
- package/dist/rules/box-decoration-break.d.ts +3 -3
- package/dist/rules/box-shadow.d.ts +3 -3
- package/dist/rules/box-sizing.d.ts +3 -3
- package/dist/rules/break-after.d.ts +3 -3
- package/dist/rules/break-before.d.ts +3 -3
- package/dist/rules/break-inside.d.ts +3 -3
- package/dist/rules/caret-color.d.ts +3 -3
- package/dist/rules/clear.d.ts +3 -3
- package/dist/rules/clip-path.d.ts +3 -3
- package/dist/rules/color.d.ts +3 -3
- package/dist/rules/column-span.d.ts +3 -3
- package/dist/rules/columns.d.ts +3 -3
- package/dist/rules/contain.d.ts +3 -3
- package/dist/rules/content.d.ts +3 -3
- package/dist/rules/counter-increment.d.ts +3 -3
- package/dist/rules/counter-reset.d.ts +3 -3
- package/dist/rules/cursor.d.ts +3 -3
- package/dist/rules/cx.d.ts +3 -3
- package/dist/rules/cy.d.ts +3 -3
- package/dist/rules/direction.d.ts +3 -3
- package/dist/rules/display.d.ts +3 -3
- package/dist/rules/fill.d.ts +3 -3
- package/dist/rules/filter.d.ts +5 -5
- package/dist/rules/flex-basis.d.ts +3 -3
- package/dist/rules/flex-direction.d.ts +3 -3
- package/dist/rules/flex-grow.d.ts +3 -3
- package/dist/rules/flex-shrink.d.ts +3 -3
- package/dist/rules/flex-wrap.d.ts +3 -3
- package/dist/rules/flex.d.ts +3 -3
- package/dist/rules/float.d.ts +3 -3
- package/dist/rules/font-family.d.ts +3 -3
- package/dist/rules/font-size.d.ts +3 -3
- package/dist/rules/font-smoothing.d.ts +3 -3
- package/dist/rules/font-style.d.ts +3 -3
- package/dist/rules/font-variant-numeric.d.ts +3 -3
- package/dist/rules/font-weight.d.ts +3 -3
- package/dist/rules/font.d.ts +3 -3
- package/dist/rules/gap.d.ts +3 -3
- package/dist/rules/grid-area.d.ts +3 -3
- package/dist/rules/grid-auto-columns.d.ts +3 -3
- package/dist/rules/grid-auto-flow.d.ts +3 -3
- package/dist/rules/grid-auto-rows.d.ts +3 -3
- package/dist/rules/grid-column-end.d.ts +3 -3
- package/dist/rules/grid-column-start.d.ts +3 -3
- package/dist/rules/grid-column.d.ts +3 -3
- package/dist/rules/grid-columns.d.ts +3 -3
- package/dist/rules/grid-row-end.d.ts +3 -3
- package/dist/rules/grid-row-start.d.ts +3 -3
- package/dist/rules/grid-row.d.ts +3 -3
- package/dist/rules/grid-rows.d.ts +3 -3
- package/dist/rules/grid-template-areas.d.ts +3 -3
- package/dist/rules/grid-template-columns.d.ts +3 -3
- package/dist/rules/grid-template-rows.d.ts +3 -3
- package/dist/rules/grid-template.d.ts +3 -3
- package/dist/rules/grid.d.ts +3 -3
- package/dist/rules/group.d.ts +5 -5
- package/dist/rules/height.d.ts +3 -3
- package/dist/rules/inset.d.ts +3 -3
- package/dist/rules/isolation.d.ts +3 -3
- package/dist/rules/justify-content.d.ts +3 -3
- package/dist/rules/justify-items.d.ts +3 -3
- package/dist/rules/justify-self.d.ts +3 -3
- package/dist/rules/letter-spacing.d.ts +3 -3
- package/dist/rules/line-clamp.d.ts +3 -3
- package/dist/rules/line-height.d.ts +3 -3
- package/dist/rules/lines.d.ts +3 -3
- package/dist/rules/list-style-image.d.ts +3 -3
- package/dist/rules/list-style-position.d.ts +3 -3
- package/dist/rules/list-style-type.d.ts +3 -3
- package/dist/rules/list-style.d.ts +3 -3
- package/dist/rules/margin.d.ts +3 -3
- package/dist/rules/mask-image.d.ts +3 -3
- package/dist/rules/max-height.d.ts +3 -3
- package/dist/rules/max-width.d.ts +3 -3
- package/dist/rules/min-height.d.ts +3 -3
- package/dist/rules/min-width.d.ts +3 -3
- package/dist/rules/mix-blend-mode.d.ts +3 -3
- package/dist/rules/object-fit.d.ts +3 -3
- package/dist/rules/object-position.d.ts +3 -3
- package/dist/rules/opacity.d.ts +3 -3
- package/dist/rules/order.d.ts +3 -3
- package/dist/rules/outline-color.d.ts +3 -3
- package/dist/rules/outline-offset.d.ts +3 -3
- package/dist/rules/outline-style.d.ts +3 -3
- package/dist/rules/outline-width.d.ts +3 -3
- package/dist/rules/outline.d.ts +3 -3
- package/dist/rules/overflow.d.ts +3 -3
- package/dist/rules/overscroll-behavior.d.ts +3 -3
- package/dist/rules/padding.d.ts +3 -3
- package/dist/rules/place-content.d.ts +3 -3
- package/dist/rules/place-items.d.ts +3 -3
- package/dist/rules/place-self.d.ts +3 -3
- package/dist/rules/placement.d.ts +3 -3
- package/dist/rules/pointer-events.d.ts +3 -3
- package/dist/rules/position.d.ts +3 -3
- package/dist/rules/quotes.d.ts +3 -3
- package/dist/rules/resize.d.ts +3 -3
- package/dist/rules/rx.d.ts +3 -3
- package/dist/rules/ry.d.ts +3 -3
- package/dist/rules/scroll-behavior.d.ts +3 -3
- package/dist/rules/scroll-margin.d.ts +3 -3
- package/dist/rules/scroll-padding.d.ts +3 -3
- package/dist/rules/scroll-snap-align.d.ts +3 -3
- package/dist/rules/scroll-snap-stop.d.ts +3 -3
- package/dist/rules/scroll-snap-type.d.ts +3 -3
- package/dist/rules/shape-image-threshold.d.ts +3 -3
- package/dist/rules/shape-margin.d.ts +3 -3
- package/dist/rules/shape-outside.d.ts +3 -3
- package/dist/rules/spacing.d.ts +3 -3
- package/dist/rules/stroke-dasharray.d.ts +3 -3
- package/dist/rules/stroke-dashoffset.d.ts +3 -3
- package/dist/rules/stroke-width.d.ts +3 -3
- package/dist/rules/stroke.d.ts +3 -3
- package/dist/rules/table-layout.d.ts +3 -3
- package/dist/rules/text-align.d.ts +3 -3
- package/dist/rules/text-decoration-color.d.ts +3 -3
- package/dist/rules/text-decoration-line.d.ts +3 -3
- package/dist/rules/text-decoration-style.d.ts +3 -3
- package/dist/rules/text-decoration-thickness.d.ts +3 -3
- package/dist/rules/text-decoration.d.ts +3 -3
- package/dist/rules/text-fill-color.d.ts +3 -3
- package/dist/rules/text-indent.d.ts +3 -3
- package/dist/rules/text-orientation.d.ts +3 -3
- package/dist/rules/text-overflow.d.ts +3 -3
- package/dist/rules/text-rendering.d.ts +3 -3
- package/dist/rules/text-shadow.d.ts +3 -3
- package/dist/rules/text-size.d.ts +3 -3
- package/dist/rules/text-stroke-color.d.ts +3 -3
- package/dist/rules/text-stroke-width.d.ts +3 -3
- package/dist/rules/text-stroke.d.ts +3 -3
- package/dist/rules/text-transform.d.ts +3 -3
- package/dist/rules/text-underline-offset.d.ts +3 -3
- package/dist/rules/touch-action.d.ts +3 -3
- package/dist/rules/transform-box.d.ts +3 -3
- package/dist/rules/transform-origin.d.ts +3 -3
- package/dist/rules/transform-style.d.ts +3 -3
- package/dist/rules/transform.d.ts +5 -5
- package/dist/rules/transition-delay.d.ts +3 -3
- package/dist/rules/transition-duration.d.ts +3 -3
- package/dist/rules/transition-property.d.ts +3 -3
- package/dist/rules/transition-timing-function.d.ts +3 -3
- package/dist/rules/transition.d.ts +3 -3
- package/dist/rules/user-drag.d.ts +3 -3
- package/dist/rules/user-select.d.ts +3 -3
- package/dist/rules/variable.d.ts +3 -3
- package/dist/rules/vertical-align.d.ts +3 -3
- package/dist/rules/visibility.d.ts +3 -3
- package/dist/rules/white-space.d.ts +3 -3
- package/dist/rules/width.d.ts +3 -3
- package/dist/rules/will-change.d.ts +3 -3
- package/dist/rules/word-break.d.ts +3 -3
- package/dist/rules/word-spacing.d.ts +3 -3
- package/dist/rules/writing-mode.d.ts +3 -3
- package/dist/rules/x.d.ts +3 -3
- package/dist/rules/y.d.ts +3 -3
- package/dist/rules/z-index.d.ts +3 -3
- package/dist/utils/parse-value-unit.d.ts +2 -2
- package/package.json +1 -1
package/dist/config/index.d.ts
CHANGED
|
@@ -1,22 +1,27 @@
|
|
|
1
|
-
import
|
|
1
|
+
import DefaultRules from './rules';
|
|
2
|
+
import Rule from '../rule';
|
|
2
3
|
import MasterCSS from '../css';
|
|
3
|
-
declare const defaultConfig:
|
|
4
|
+
declare const defaultConfig: Config;
|
|
4
5
|
export default defaultConfig;
|
|
5
|
-
export interface
|
|
6
|
+
export interface Config {
|
|
6
7
|
classes?: Record<string, string>;
|
|
7
8
|
colors?: Record<string, string | Record<string, string>>;
|
|
8
9
|
breakpoints?: Record<string, number>;
|
|
9
10
|
mediaQueries?: Record<string, string>;
|
|
10
11
|
selectors?: Record<string, string | string[]>;
|
|
11
12
|
semantics?: Record<string, string | Record<string, string | number>>;
|
|
12
|
-
values?:
|
|
13
|
-
|
|
13
|
+
values?: {
|
|
14
|
+
[id in typeof DefaultRules[number]['id']]?: Record<string, string | number>;
|
|
15
|
+
} & {
|
|
16
|
+
[key: string]: Record<string, string | number> | string | number;
|
|
17
|
+
};
|
|
18
|
+
Rules?: typeof Rule[];
|
|
14
19
|
themes?: Record<string, {
|
|
15
20
|
classes?: Record<string, string>;
|
|
16
21
|
colors?: Record<string, string | Record<string, string>>;
|
|
17
22
|
}> | string[];
|
|
18
23
|
rootSize?: number;
|
|
19
|
-
validateRule?: (rule:
|
|
24
|
+
validateRule?: (rule: Rule, css?: MasterCSS) => boolean;
|
|
20
25
|
scheme?: {
|
|
21
26
|
preference?: string;
|
|
22
27
|
storage?: {
|
package/dist/config/rules.d.ts
CHANGED
|
@@ -1,3 +1,196 @@
|
|
|
1
1
|
import FontWeight from '../rules/font-weight';
|
|
2
|
-
|
|
2
|
+
import FontFamily from '../rules/font-family';
|
|
3
|
+
import FontSize from '../rules/font-size';
|
|
4
|
+
import Spacing from '../rules/spacing';
|
|
5
|
+
import Width from '../rules/width';
|
|
6
|
+
import Height from '../rules/height';
|
|
7
|
+
import MinWidth from '../rules/min-width';
|
|
8
|
+
import MinHeight from '../rules/min-height';
|
|
9
|
+
import LetterSpacing from '../rules/letter-spacing';
|
|
10
|
+
import FontSmoothing from '../rules/font-smoothing';
|
|
11
|
+
import FontStyle from '../rules/font-style';
|
|
12
|
+
import FontVariantNumeric from '../rules/font-variant-numeric';
|
|
13
|
+
import LineHeight from '../rules/line-height';
|
|
14
|
+
import ObjectFit from '../rules/object-fit';
|
|
15
|
+
import ObjectPosition from '../rules/object-position';
|
|
16
|
+
import TextAlign from '../rules/text-align';
|
|
17
|
+
import TextDecoration from '../rules/text-decoration';
|
|
18
|
+
import TextTransform from '../rules/text-transform';
|
|
19
|
+
import VerticalAlign from '../rules/vertical-align';
|
|
20
|
+
import Lines from '../rules/lines';
|
|
21
|
+
import TransformOrigin from '../rules/transform-origin';
|
|
22
|
+
import TransformStyle from '../rules/transform-style';
|
|
23
|
+
import TransformBox from '../rules/transform-box';
|
|
24
|
+
import Transform from '../rules/transform';
|
|
25
|
+
import Transition from '../rules/transition';
|
|
26
|
+
import TransitionDelay from '../rules/transition-delay';
|
|
27
|
+
import TransitionDuration from '../rules/transition-duration';
|
|
28
|
+
import TransitionProperty from '../rules/transition-property';
|
|
29
|
+
import TransitionTimingFunction from '../rules/transition-timing-function';
|
|
30
|
+
import MaxHeight from '../rules/max-height';
|
|
31
|
+
import MaxWidth from '../rules/max-width';
|
|
32
|
+
import Display from '../rules/display';
|
|
33
|
+
import BoxSizing from '../rules/box-sizing';
|
|
34
|
+
import Opacity from '../rules/opacity';
|
|
35
|
+
import Visibility from '../rules/visibility';
|
|
36
|
+
import Clear from '../rules/clear';
|
|
37
|
+
import Float from '../rules/float';
|
|
38
|
+
import Isolation from '../rules/isolation';
|
|
39
|
+
import Overflow from '../rules/overflow';
|
|
40
|
+
import OverscrollBehavior from '../rules/overscroll-behavior';
|
|
41
|
+
import ZIndex from '../rules/z-index';
|
|
42
|
+
import AnimationDelay from '../rules/animation-delay';
|
|
43
|
+
import AnimationDirection from '../rules/animation-direction';
|
|
44
|
+
import AnimationFillMode from '../rules/animation-fill-mode';
|
|
45
|
+
import AnimationIterationCount from '../rules/animation-iteration-count';
|
|
46
|
+
import AnimationName from '../rules/animation-name';
|
|
47
|
+
import AnimationPlayState from '../rules/animation-play-state';
|
|
48
|
+
import AnimationTimingFunction from '../rules/animation-timing-function';
|
|
49
|
+
import Animation from '../rules/animation';
|
|
50
|
+
import BorderColor from '../rules/border-color';
|
|
51
|
+
import BorderRadius from '../rules/border-radius';
|
|
52
|
+
import BorderStyle from '../rules/border-style';
|
|
53
|
+
import BorderWidth from '../rules/border-width';
|
|
54
|
+
import Border from '../rules/border';
|
|
55
|
+
import BackgroundAttachment from '../rules/background-attachment';
|
|
56
|
+
import BackgroundBlendMode from '../rules/background-blend-mode';
|
|
57
|
+
import BackgroundClip from '../rules/background-clip';
|
|
58
|
+
import BackgroundColor from '../rules/background-color';
|
|
59
|
+
import BackgroundOrigin from '../rules/background-origin';
|
|
60
|
+
import BackgroundPosition from '../rules/background-position';
|
|
61
|
+
import BackgroundRepeat from '../rules/background-repeat';
|
|
62
|
+
import BackgroundSize from '../rules/background-size';
|
|
63
|
+
import BackgroundImage from '../rules/background-image';
|
|
64
|
+
import Background from '../rules/background';
|
|
65
|
+
import MixBlendMode from '../rules/mix-blend-mode';
|
|
66
|
+
import Position from '../rules/position';
|
|
67
|
+
import Placement from '../rules/placement';
|
|
68
|
+
import BackdropFilter from '../rules/backdrop-filter';
|
|
69
|
+
import Fill from '../rules/fill';
|
|
70
|
+
import Stroke from '../rules/stroke';
|
|
71
|
+
import StrokeWidth from '../rules/stroke-width';
|
|
72
|
+
import Filter from '../rules/filter';
|
|
73
|
+
import Cursor from '../rules/cursor';
|
|
74
|
+
import PointerEvents from '../rules/pointer-events';
|
|
75
|
+
import Resize from '../rules/resize';
|
|
76
|
+
import TouchAction from '../rules/touch-action';
|
|
77
|
+
import UserDrag from '../rules/user-drag';
|
|
78
|
+
import UserSelect from '../rules/user-select';
|
|
79
|
+
import BoxShadow from '../rules/box-shadow';
|
|
80
|
+
import TextShadow from '../rules/text-shadow';
|
|
81
|
+
import TextSize from '../rules/text-size';
|
|
82
|
+
import WordBreak from '../rules/word-break';
|
|
83
|
+
import GridColumns from '../rules/grid-columns';
|
|
84
|
+
import GridRows from '../rules/grid-rows';
|
|
85
|
+
import Gap from '../rules/gap';
|
|
86
|
+
import WordSpacing from '../rules/word-spacing';
|
|
87
|
+
import Variable from '../rules/variable';
|
|
88
|
+
import AspectRadio from '../rules/aspect-radio';
|
|
89
|
+
import BoxDecorationBreak from '../rules/box-decoration-break';
|
|
90
|
+
import BreakAfter from '../rules/break-after';
|
|
91
|
+
import BreakBefore from '../rules/break-before';
|
|
92
|
+
import BreakInside from '../rules/break-inside';
|
|
93
|
+
import FlexShrink from '../rules/flex-shrink';
|
|
94
|
+
import FlexDirection from '../rules/flex-direction';
|
|
95
|
+
import FlexGrow from '../rules/flex-grow';
|
|
96
|
+
import FlexWrap from '../rules/flex-wrap';
|
|
97
|
+
import FlexBasis from '../rules/flex-basis';
|
|
98
|
+
import Flex from '../rules/flex';
|
|
99
|
+
import Order from '../rules/order';
|
|
100
|
+
import GridColumn from '../rules/grid-column';
|
|
101
|
+
import ColumnSpan from '../rules/column-span';
|
|
102
|
+
import GridRow from '../rules/grid-row';
|
|
103
|
+
import Color from '../rules/color';
|
|
104
|
+
import AlignContent from '../rules/align-content';
|
|
105
|
+
import AlignItems from '../rules/align-items';
|
|
106
|
+
import AlignSelf from '../rules/align-self';
|
|
107
|
+
import GridAutoColumns from '../rules/grid-auto-columns';
|
|
108
|
+
import GridAutoFlow from '../rules/grid-auto-flow';
|
|
109
|
+
import GridAutoRows from '../rules/grid-auto-rows';
|
|
110
|
+
import JustifyContent from '../rules/justify-content';
|
|
111
|
+
import JustifyItems from '../rules/justify-items';
|
|
112
|
+
import JustifySelf from '../rules/justify-self';
|
|
113
|
+
import PlaceContent from '../rules/place-content';
|
|
114
|
+
import PlaceItems from '../rules/place-items';
|
|
115
|
+
import PlaceSelf from '../rules/place-self';
|
|
116
|
+
import Padding from '../rules/padding';
|
|
117
|
+
import Margin from '../rules/margin';
|
|
118
|
+
import TextOverflow from '../rules/text-overflow';
|
|
119
|
+
import ListStylePosition from '../rules/list-style-position';
|
|
120
|
+
import ListStyleType from '../rules/list-style-type';
|
|
121
|
+
import ListStyle from '../rules/list-style';
|
|
122
|
+
import TextDecorationColor from '../rules/text-decoration-color';
|
|
123
|
+
import TextDecorationStyle from '../rules/text-decoration-style';
|
|
124
|
+
import TextDecorationThickness from '../rules/text-decoration-thickness';
|
|
125
|
+
import TextIndent from '../rules/text-indent';
|
|
126
|
+
import Content from '../rules/content';
|
|
127
|
+
import OutlineColor from '../rules/outline-color';
|
|
128
|
+
import OutlineOffset from '../rules/outline-offset';
|
|
129
|
+
import OutlineStyle from '../rules/outline-style';
|
|
130
|
+
import OutlineWidth from '../rules/outline-width';
|
|
131
|
+
import Outline from '../rules/outline';
|
|
132
|
+
import BorderCollapse from '../rules/border-collapse';
|
|
133
|
+
import BorderSpacing from '../rules/border-spacing';
|
|
134
|
+
import TableLayout from '../rules/table-layout';
|
|
135
|
+
import AccentColor from '../rules/accent-color';
|
|
136
|
+
import Appearance from '../rules/appearance';
|
|
137
|
+
import CaretColor from '../rules/caret-color';
|
|
138
|
+
import ScrollBehavior from '../rules/scroll-behavior';
|
|
139
|
+
import ScrollMargin from '../rules/scroll-margin';
|
|
140
|
+
import ScrollPadding from '../rules/scroll-padding';
|
|
141
|
+
import ScrollSnapAlign from '../rules/scroll-snap-align';
|
|
142
|
+
import ScrollSnapStop from '../rules/scroll-snap-stop';
|
|
143
|
+
import ScrollSnapType from '../rules/scroll-snap-type';
|
|
144
|
+
import WillChange from '../rules/will-change';
|
|
145
|
+
import TextUnderlineOffset from '../rules/text-underline-offset';
|
|
146
|
+
import Inset from '../rules/inset';
|
|
147
|
+
import Columns from '../rules/columns';
|
|
148
|
+
import WhiteSpace from '../rules/white-space';
|
|
149
|
+
import TextOrientation from '../rules/text-orientation';
|
|
150
|
+
import WritingMode from '../rules/writing-mode';
|
|
151
|
+
import Contain from '../rules/contain';
|
|
152
|
+
import AnimationDuration from '../rules/animation-duration';
|
|
153
|
+
import TextRendering from '../rules/text-rendering';
|
|
154
|
+
import Direction from '../rules/direction';
|
|
155
|
+
import TextDecorationLine from '../rules/text-decoration-line';
|
|
156
|
+
import GridColumnStart from '../rules/grid-column-start';
|
|
157
|
+
import ListStyleImage from '../rules/list-style-image';
|
|
158
|
+
import ShapeOutside from '../rules/shape-outside';
|
|
159
|
+
import ShapeMargin from '../rules/shape-margin';
|
|
160
|
+
import ShapeImageThreshold from '../rules/shape-image-threshold';
|
|
161
|
+
import ClipPath from '../rules/clip-path';
|
|
162
|
+
import Grid from '../rules/grid';
|
|
163
|
+
import Font from '../rules/font';
|
|
164
|
+
import Quotes from '../rules/quotes';
|
|
165
|
+
import GridTemplate from '../rules/grid-template';
|
|
166
|
+
import GridRowStart from '../rules/grid-row-start';
|
|
167
|
+
import GridTemplateAreas from '../rules/grid-template-areas';
|
|
168
|
+
import GridTemplateColumns from '../rules/grid-template-columns';
|
|
169
|
+
import GridTemplateRows from '../rules/grid-template-rows';
|
|
170
|
+
import GridArea from '../rules/grid-area';
|
|
171
|
+
import GridColumnEnd from '../rules/grid-column-end';
|
|
172
|
+
import GridRowEnd from '../rules/grid-row-end';
|
|
173
|
+
import MaskImage from '../rules/mask-image';
|
|
174
|
+
import TextFillColor from '../rules/text-fill-color';
|
|
175
|
+
import TextStroke from '../rules/text-stroke';
|
|
176
|
+
import TextStrokeWidth from '../rules/text-stroke-width';
|
|
177
|
+
import TextStrokeColor from '../rules/text-stroke-color';
|
|
178
|
+
import StrokeDasharray from '../rules/stroke-dasharray';
|
|
179
|
+
import StrokeDashoffset from '../rules/stroke-dashoffset';
|
|
180
|
+
import X from '../rules/x';
|
|
181
|
+
import Y from '../rules/y';
|
|
182
|
+
import Cx from '../rules/cx';
|
|
183
|
+
import Cy from '../rules/cy';
|
|
184
|
+
import Rx from '../rules/rx';
|
|
185
|
+
import Ry from '../rules/ry';
|
|
186
|
+
import BorderImageOutset from '../rules/border-image-outset';
|
|
187
|
+
import BorderImageRepeat from '../rules/border-image-repeat';
|
|
188
|
+
import BorderImageSlice from '../rules/border-image-slice';
|
|
189
|
+
import BorderImageSource from '../rules/border-image-source';
|
|
190
|
+
import BorderImageWidth from '../rules/border-image-width';
|
|
191
|
+
import BorderImage from '../rules/border-image';
|
|
192
|
+
import Group from '../rules/group';
|
|
193
|
+
import CounterIncrement from '../rules/counter-increment';
|
|
194
|
+
import counterReset from '../rules/counter-reset';
|
|
195
|
+
declare const DefaultRules: (typeof FontWeight | typeof FontFamily | typeof FontSize | typeof Spacing | typeof Width | typeof Height | typeof MinWidth | typeof MinHeight | typeof LetterSpacing | typeof FontSmoothing | typeof FontStyle | typeof FontVariantNumeric | typeof LineHeight | typeof ObjectFit | typeof ObjectPosition | typeof TextAlign | typeof TextDecoration | typeof TextTransform | typeof VerticalAlign | typeof Lines | typeof TransformOrigin | typeof TransformStyle | typeof TransformBox | typeof Transform | typeof Transition | typeof TransitionDelay | typeof TransitionDuration | typeof TransitionProperty | typeof TransitionTimingFunction | typeof MaxHeight | typeof MaxWidth | typeof Display | typeof BoxSizing | typeof Opacity | typeof Visibility | typeof Clear | typeof Float | typeof Isolation | typeof Overflow | typeof OverscrollBehavior | typeof ZIndex | typeof AnimationDelay | typeof AnimationDirection | typeof AnimationFillMode | typeof AnimationIterationCount | typeof AnimationName | typeof AnimationPlayState | typeof AnimationTimingFunction | typeof Animation | typeof BorderColor | typeof BorderRadius | typeof BorderStyle | typeof BorderWidth | typeof Border | typeof BackgroundAttachment | typeof BackgroundBlendMode | typeof BackgroundClip | typeof BackgroundColor | typeof BackgroundOrigin | typeof BackgroundPosition | typeof BackgroundRepeat | typeof BackgroundSize | typeof BackgroundImage | typeof Background | typeof MixBlendMode | typeof Position | typeof Placement | typeof BackdropFilter | typeof Fill | typeof Stroke | typeof StrokeWidth | typeof Filter | typeof Cursor | typeof PointerEvents | typeof Resize | typeof TouchAction | typeof UserDrag | typeof UserSelect | typeof BoxShadow | typeof TextShadow | typeof TextSize | typeof WordBreak | typeof GridColumns | typeof GridRows | typeof Gap | typeof WordSpacing | typeof Variable | typeof AspectRadio | typeof BoxDecorationBreak | typeof BreakAfter | typeof BreakBefore | typeof BreakInside | typeof FlexShrink | typeof FlexDirection | typeof FlexGrow | typeof FlexWrap | typeof FlexBasis | typeof Flex | typeof Order | typeof GridColumn | typeof ColumnSpan | typeof GridRow | typeof Color | typeof AlignContent | typeof AlignItems | typeof AlignSelf | typeof GridAutoColumns | typeof GridAutoFlow | typeof GridAutoRows | typeof JustifyContent | typeof JustifyItems | typeof JustifySelf | typeof PlaceContent | typeof PlaceItems | typeof PlaceSelf | typeof Padding | typeof Margin | typeof TextOverflow | typeof ListStylePosition | typeof ListStyleType | typeof ListStyle | typeof TextDecorationColor | typeof TextDecorationStyle | typeof TextDecorationThickness | typeof TextIndent | typeof Content | typeof OutlineColor | typeof OutlineOffset | typeof OutlineStyle | typeof OutlineWidth | typeof Outline | typeof BorderCollapse | typeof BorderSpacing | typeof TableLayout | typeof AccentColor | typeof Appearance | typeof CaretColor | typeof ScrollBehavior | typeof ScrollMargin | typeof ScrollPadding | typeof ScrollSnapAlign | typeof ScrollSnapStop | typeof ScrollSnapType | typeof WillChange | typeof TextUnderlineOffset | typeof Inset | typeof Columns | typeof WhiteSpace | typeof TextOrientation | typeof WritingMode | typeof Contain | typeof AnimationDuration | typeof TextRendering | typeof Direction | typeof TextDecorationLine | typeof GridColumnStart | typeof ListStyleImage | typeof ShapeOutside | typeof ShapeMargin | typeof ShapeImageThreshold | typeof ClipPath | typeof Grid | typeof Font | typeof Quotes | typeof GridTemplate | typeof GridRowStart | typeof GridTemplateAreas | typeof GridTemplateColumns | typeof GridTemplateRows | typeof GridArea | typeof GridColumnEnd | typeof GridRowEnd | typeof MaskImage | typeof TextFillColor | typeof TextStroke | typeof TextStrokeWidth | typeof TextStrokeColor | typeof StrokeDasharray | typeof StrokeDashoffset | typeof X | typeof Y | typeof Cx | typeof Cy | typeof Rx | typeof Ry | typeof BorderImageOutset | typeof BorderImageRepeat | typeof BorderImageSlice | typeof BorderImageSource | typeof BorderImageWidth | typeof BorderImage | typeof Group | typeof CounterIncrement | typeof counterReset)[];
|
|
3
196
|
export default DefaultRules;
|
package/dist/css.d.ts
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import
|
|
1
|
+
import type { Config } from './config';
|
|
2
|
+
import Rule from './rule';
|
|
3
3
|
declare const MutationObserver: ObjectConstructor | {
|
|
4
4
|
new (callback: MutationCallback): MutationObserver;
|
|
5
5
|
prototype: MutationObserver;
|
|
6
6
|
};
|
|
7
|
-
export declare type
|
|
8
|
-
config?:
|
|
7
|
+
export declare type Options = {
|
|
8
|
+
config?: Config;
|
|
9
9
|
override?: boolean;
|
|
10
10
|
observe?: boolean;
|
|
11
11
|
};
|
|
12
12
|
export default class MasterCSS extends MutationObserver {
|
|
13
13
|
#private;
|
|
14
|
-
options?:
|
|
14
|
+
options?: Options;
|
|
15
15
|
static instances: MasterCSS[];
|
|
16
16
|
static root: MasterCSS;
|
|
17
17
|
/**
|
|
18
18
|
* 全部 sheet 根據目前蒐集到的所有 DOM class 重新 findAndNew
|
|
19
19
|
*/
|
|
20
|
-
static refresh(config:
|
|
20
|
+
static refresh(config: Config): void;
|
|
21
21
|
readonly style: HTMLStyleElement;
|
|
22
|
-
readonly rules:
|
|
23
|
-
readonly ruleOfClass: Record<string,
|
|
22
|
+
readonly rules: Rule[];
|
|
23
|
+
readonly ruleOfClass: Record<string, Rule>;
|
|
24
24
|
readonly countOfClass: {};
|
|
25
25
|
readonly host: Element;
|
|
26
26
|
readonly root: Document | ShadowRoot;
|
|
27
27
|
readonly ready: boolean;
|
|
28
|
-
readonly config:
|
|
28
|
+
readonly config: Config;
|
|
29
29
|
semantics: [RegExp, string][];
|
|
30
30
|
classes: Record<string, string[]>;
|
|
31
31
|
colorsThemesMap: Record<string, Record<string, Record<string, string>>>;
|
|
@@ -37,7 +37,7 @@ export default class MasterCSS extends MutationObserver {
|
|
|
37
37
|
values: Record<string, Record<string, string | number>>;
|
|
38
38
|
globalValues: Record<string, string | number>;
|
|
39
39
|
private schemeMQL;
|
|
40
|
-
constructor(options?:
|
|
40
|
+
constructor(options?: Options);
|
|
41
41
|
get storageScheme(): string;
|
|
42
42
|
set scheme(scheme: string);
|
|
43
43
|
get scheme(): string;
|
|
@@ -49,13 +49,13 @@ export default class MasterCSS extends MutationObserver {
|
|
|
49
49
|
observe(root: Document | ShadowRoot, options?: MutationObserverInit): this;
|
|
50
50
|
disconnect(): void;
|
|
51
51
|
/**
|
|
52
|
-
* 尋找匹配的
|
|
52
|
+
* 尋找匹配的 Rule 生成實例
|
|
53
53
|
*/
|
|
54
|
-
findAndNew(name: string):
|
|
54
|
+
findAndNew(name: string): Rule | Rule[];
|
|
55
55
|
/**
|
|
56
56
|
* 根據目前蒐集到的所有 DOM class 重新 findAndNew
|
|
57
57
|
*/
|
|
58
|
-
refresh(config:
|
|
58
|
+
refresh(config: Config): void;
|
|
59
59
|
destroy(): void;
|
|
60
60
|
/**
|
|
61
61
|
* 1. where
|
|
@@ -69,7 +69,7 @@ export default class MasterCSS extends MutationObserver {
|
|
|
69
69
|
* 9. media width
|
|
70
70
|
* 10. media width selectors
|
|
71
71
|
*/
|
|
72
|
-
insert(rule:
|
|
72
|
+
insert(rule: Rule): void;
|
|
73
73
|
delete(className: string): void;
|
|
74
74
|
findAndInsert(className: string): void;
|
|
75
75
|
get text(): string;
|