@master/css 2.0.0-beta.8 → 2.0.0-beta.80
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/README.md +95 -109
- package/dist/apis/extend.d.ts +2 -2
- package/dist/config/breakpoints.d.ts +2 -2
- package/dist/config/colors.d.ts +2 -2
- package/dist/config/index.d.ts +38 -16
- package/dist/config/root-size.d.ts +2 -2
- package/dist/config/rules.d.ts +195 -2
- package/dist/config/scheme.d.ts +2 -3
- package/dist/config/selectors.d.ts +2 -2
- package/dist/config/semantics.d.ts +2 -2
- package/dist/config/themes.d.ts +2 -2
- package/dist/config/values.d.ts +2 -2
- package/dist/constants/start-symbol.d.ts +1 -0
- package/dist/css.d.ts +45 -30
- package/dist/index.browser.d.ts +1 -0
- package/dist/index.browser.js +1 -2
- package/dist/index.cjs +1 -0
- package/dist/index.d.ts +15 -15
- package/dist/index.mjs +1 -0
- package/dist/rule.d.ts +23 -26
- package/dist/rules/accent-color.d.ts +3 -4
- package/dist/rules/align-content.d.ts +4 -5
- package/dist/rules/align-items.d.ts +4 -5
- package/dist/rules/align-self.d.ts +4 -5
- package/dist/rules/animation-delay.d.ts +4 -5
- package/dist/rules/animation-direction.d.ts +4 -5
- package/dist/rules/animation-duration.d.ts +4 -5
- package/dist/rules/animation-fill-mode.d.ts +4 -5
- package/dist/rules/animation-iteration-count.d.ts +4 -5
- package/dist/rules/animation-name.d.ts +4 -5
- package/dist/rules/animation-play-state.d.ts +4 -5
- package/dist/rules/animation-timing-function.d.ts +4 -5
- package/dist/rules/animation.d.ts +3 -4
- package/dist/rules/appearance.d.ts +3 -4
- package/dist/rules/aspect-ratio.d.ts +6 -0
- package/dist/rules/backdrop-filter.d.ts +7 -7
- package/dist/rules/background-attachment.d.ts +4 -5
- package/dist/rules/background-blend-mode.d.ts +3 -4
- package/dist/rules/background-clip.d.ts +4 -5
- package/dist/rules/background-color.d.ts +3 -4
- package/dist/rules/background-image.d.ts +4 -5
- package/dist/rules/background-origin.d.ts +4 -5
- package/dist/rules/background-position.d.ts +4 -5
- package/dist/rules/background-repeat.d.ts +4 -5
- package/dist/rules/background-size.d.ts +4 -5
- package/dist/rules/background.d.ts +4 -5
- package/dist/rules/border-collapse.d.ts +4 -5
- package/dist/rules/border-color.d.ts +5 -4
- package/dist/rules/border-image-outset.d.ts +3 -4
- package/dist/rules/border-image-repeat.d.ts +4 -5
- package/dist/rules/border-image-slice.d.ts +3 -4
- package/dist/rules/border-image-source.d.ts +4 -5
- package/dist/rules/border-image-width.d.ts +4 -5
- package/dist/rules/border-image.d.ts +3 -4
- package/dist/rules/border-radius.d.ts +5 -4
- package/dist/rules/border-spacing.d.ts +3 -4
- package/dist/rules/border-style.d.ts +5 -4
- package/dist/rules/border-width.d.ts +5 -4
- package/dist/rules/border.d.ts +5 -4
- package/dist/rules/box-decoration-break.d.ts +4 -5
- package/dist/rules/box-shadow.d.ts +4 -5
- package/dist/rules/box-sizing.d.ts +4 -5
- package/dist/rules/break-after.d.ts +3 -4
- package/dist/rules/break-before.d.ts +3 -4
- package/dist/rules/break-inside.d.ts +3 -4
- package/dist/rules/caret-color.d.ts +3 -4
- package/dist/rules/clear.d.ts +3 -4
- package/dist/rules/clip-path.d.ts +4 -5
- package/dist/rules/color.d.ts +4 -5
- package/dist/rules/column-span.d.ts +4 -5
- package/dist/rules/columns.d.ts +4 -5
- package/dist/rules/contain.d.ts +3 -4
- package/dist/rules/content.d.ts +3 -4
- package/dist/rules/counter-increment.d.ts +3 -4
- package/dist/rules/counter-reset.d.ts +5 -0
- package/dist/rules/cursor.d.ts +3 -4
- package/dist/rules/cx.d.ts +3 -4
- package/dist/rules/cy.d.ts +3 -4
- package/dist/rules/direction.d.ts +3 -4
- package/dist/rules/display.d.ts +4 -5
- package/dist/rules/fill.d.ts +3 -4
- package/dist/rules/filter.d.ts +7 -7
- package/dist/rules/flex-basis.d.ts +3 -4
- package/dist/rules/flex-direction.d.ts +4 -5
- package/dist/rules/flex-grow.d.ts +3 -4
- package/dist/rules/flex-shrink.d.ts +3 -4
- package/dist/rules/flex-wrap.d.ts +4 -5
- package/dist/rules/flex.d.ts +3 -4
- package/dist/rules/float.d.ts +3 -4
- package/dist/rules/font-family.d.ts +4 -5
- package/dist/rules/font-feature-settings.d.ts +5 -0
- package/dist/rules/font-size.d.ts +4 -5
- package/dist/rules/font-smoothing.d.ts +5 -4
- package/dist/rules/font-style.d.ts +4 -5
- package/dist/rules/font-variant-numeric.d.ts +4 -5
- package/dist/rules/font-weight.d.ts +4 -5
- package/dist/rules/font.d.ts +4 -5
- package/dist/rules/gap.d.ts +5 -4
- package/dist/rules/grid-area.d.ts +3 -4
- package/dist/rules/grid-auto-columns.d.ts +4 -5
- package/dist/rules/grid-auto-flow.d.ts +4 -5
- package/dist/rules/grid-auto-rows.d.ts +3 -4
- package/dist/rules/grid-column-end.d.ts +4 -5
- package/dist/rules/grid-column-start.d.ts +4 -5
- package/dist/rules/grid-column.d.ts +4 -5
- package/dist/rules/grid-columns.d.ts +4 -5
- package/dist/rules/grid-row-end.d.ts +3 -4
- package/dist/rules/grid-row-start.d.ts +3 -4
- package/dist/rules/grid-row.d.ts +4 -5
- package/dist/rules/grid-rows.d.ts +3 -4
- package/dist/rules/grid-template-areas.d.ts +3 -4
- package/dist/rules/grid-template-columns.d.ts +4 -5
- package/dist/rules/grid-template-rows.d.ts +3 -4
- package/dist/rules/grid-template.d.ts +3 -4
- package/dist/rules/grid.d.ts +3 -4
- package/dist/rules/group.d.ts +7 -6
- package/dist/rules/height.d.ts +4 -5
- package/dist/rules/inset.d.ts +4 -5
- package/dist/rules/isolation.d.ts +3 -4
- package/dist/rules/justify-content.d.ts +4 -5
- package/dist/rules/justify-items.d.ts +4 -5
- package/dist/rules/justify-self.d.ts +4 -5
- package/dist/rules/letter-spacing.d.ts +4 -5
- package/dist/rules/line-clamp.d.ts +3 -4
- package/dist/rules/line-height.d.ts +4 -5
- package/dist/rules/lines.d.ts +5 -4
- package/dist/rules/list-style-image.d.ts +4 -5
- package/dist/rules/list-style-position.d.ts +4 -5
- package/dist/rules/list-style-type.d.ts +4 -5
- package/dist/rules/list-style.d.ts +3 -4
- package/dist/rules/margin.d.ts +5 -4
- package/dist/rules/mask-image.d.ts +3 -4
- package/dist/rules/max-height.d.ts +4 -5
- package/dist/rules/max-width.d.ts +4 -5
- package/dist/rules/min-height.d.ts +4 -5
- package/dist/rules/min-width.d.ts +4 -5
- package/dist/rules/mix-blend-mode.d.ts +4 -5
- package/dist/rules/object-fit.d.ts +4 -5
- package/dist/rules/object-position.d.ts +4 -5
- package/dist/rules/opacity.d.ts +3 -4
- package/dist/rules/order.d.ts +4 -5
- package/dist/rules/outline-color.d.ts +3 -4
- package/dist/rules/outline-offset.d.ts +3 -4
- package/dist/rules/outline-style.d.ts +4 -5
- package/dist/rules/outline-width.d.ts +4 -5
- package/dist/rules/outline.d.ts +3 -4
- package/dist/rules/overflow.d.ts +5 -4
- package/dist/rules/overscroll-behavior.d.ts +5 -4
- package/dist/rules/padding.d.ts +5 -4
- package/dist/rules/place-content.d.ts +3 -4
- package/dist/rules/place-items.d.ts +3 -4
- package/dist/rules/place-self.d.ts +3 -4
- package/dist/rules/pointer-events.d.ts +3 -4
- package/dist/rules/position.d.ts +3 -4
- package/dist/rules/quotes.d.ts +3 -4
- package/dist/rules/resize.d.ts +3 -4
- package/dist/rules/rx.d.ts +3 -4
- package/dist/rules/ry.d.ts +3 -4
- package/dist/rules/scroll-behavior.d.ts +3 -4
- package/dist/rules/scroll-margin.d.ts +5 -4
- package/dist/rules/scroll-padding.d.ts +5 -4
- package/dist/rules/scroll-snap-align.d.ts +4 -5
- package/dist/rules/scroll-snap-stop.d.ts +4 -5
- package/dist/rules/scroll-snap-type.d.ts +4 -5
- package/dist/rules/shape-image-threshold.d.ts +3 -4
- package/dist/rules/shape-margin.d.ts +4 -5
- package/dist/rules/shape-outside.d.ts +4 -5
- package/dist/rules/spacing.d.ts +5 -4
- package/dist/rules/stroke-dasharray.d.ts +3 -4
- package/dist/rules/stroke-dashoffset.d.ts +3 -4
- package/dist/rules/stroke-width.d.ts +4 -5
- package/dist/rules/stroke.d.ts +3 -4
- package/dist/rules/table-layout.d.ts +3 -4
- package/dist/rules/text-align.d.ts +4 -5
- package/dist/rules/text-decoration-color.d.ts +3 -4
- package/dist/rules/text-decoration-line.d.ts +4 -5
- package/dist/rules/text-decoration-style.d.ts +4 -5
- package/dist/rules/text-decoration-thickness.d.ts +4 -5
- package/dist/rules/text-decoration.d.ts +4 -5
- package/dist/rules/text-fill-color.d.ts +5 -4
- package/dist/rules/text-indent.d.ts +3 -4
- package/dist/rules/text-orientation.d.ts +4 -5
- package/dist/rules/text-overflow.d.ts +4 -5
- package/dist/rules/text-rendering.d.ts +4 -5
- package/dist/rules/text-shadow.d.ts +3 -4
- package/dist/rules/text-size.d.ts +5 -4
- package/dist/rules/text-stroke-color.d.ts +5 -4
- package/dist/rules/text-stroke-width.d.ts +5 -4
- package/dist/rules/text-stroke.d.ts +5 -4
- package/dist/rules/text-transform.d.ts +4 -5
- package/dist/rules/text-underline-offset.d.ts +3 -4
- package/dist/rules/touch-action.d.ts +3 -4
- package/dist/rules/transform-box.d.ts +4 -5
- package/dist/rules/transform-origin.d.ts +4 -5
- package/dist/rules/transform-style.d.ts +4 -5
- package/dist/rules/transform.d.ts +6 -7
- package/dist/rules/transition-delay.d.ts +4 -5
- package/dist/rules/transition-duration.d.ts +4 -5
- package/dist/rules/transition-property.d.ts +4 -5
- package/dist/rules/transition-timing-function.d.ts +4 -5
- package/dist/rules/transition.d.ts +3 -4
- package/dist/rules/user-drag.d.ts +3 -4
- package/dist/rules/user-select.d.ts +3 -4
- package/dist/rules/variable.d.ts +5 -4
- package/dist/rules/vertical-align.d.ts +4 -5
- package/dist/rules/visibility.d.ts +3 -4
- package/dist/rules/white-space.d.ts +3 -4
- package/dist/rules/width.d.ts +4 -5
- package/dist/rules/will-change.d.ts +3 -4
- package/dist/rules/word-break.d.ts +3 -4
- package/dist/rules/word-spacing.d.ts +3 -4
- package/dist/rules/writing-mode.d.ts +4 -5
- package/dist/rules/x.d.ts +3 -4
- package/dist/rules/y.d.ts +3 -4
- package/dist/rules/z-index.d.ts +4 -5
- package/dist/utils/analyze-unit-value.d.ts +4 -0
- package/dist/utils/delay.d.ts +2 -0
- package/dist/utils/is-plain-object.d.ts +1 -1
- package/dist/utils/normalize-css-calc-text.d.ts +1 -1
- package/dist/utils/parse-value-unit.d.ts +2 -2
- package/dist/utils/parse-value.d.ts +1 -2
- package/dist/utils/test-css.d.ts +3 -0
- package/package.json +1 -163
- package/LICENSE +0 -21
- package/dist/apis/configure.d.ts +0 -2
- package/dist/apis/init.d.ts +0 -3
- package/dist/index.browser.js.map +0 -7
- package/dist/index.cjs.js +0 -2
- package/dist/index.cjs.js.map +0 -7
- package/dist/index.esm.js +0 -2
- package/dist/index.esm.js.map +0 -7
- package/dist/rules/aspect-radio.d.ts +0 -7
- package/dist/rules/placement.d.ts +0 -8
- package/readme.md +0 -118
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
export default class extends
|
|
3
|
-
static id:
|
|
4
|
-
static matches:
|
|
1
|
+
import Rule from '../rule';
|
|
2
|
+
export default class extends Rule {
|
|
3
|
+
static id: "TextSize";
|
|
4
|
+
static matches: string;
|
|
5
|
+
static get prop(): string;
|
|
5
6
|
get(declaration: any): {
|
|
6
7
|
[key: string]: any;
|
|
7
8
|
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
export default class extends
|
|
3
|
-
static id:
|
|
4
|
-
static matches:
|
|
1
|
+
import Rule from '../rule';
|
|
2
|
+
export default class extends Rule {
|
|
3
|
+
static id: "TextStrokeColor";
|
|
4
|
+
static matches: string;
|
|
5
5
|
static colorStarts: string;
|
|
6
6
|
static colorful: boolean;
|
|
7
|
+
static get prop(): string;
|
|
7
8
|
get(declaration: any): {
|
|
8
9
|
[key: string]: any;
|
|
9
10
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
export default class extends
|
|
3
|
-
static id:
|
|
4
|
-
static matches:
|
|
1
|
+
import Rule from '../rule';
|
|
2
|
+
export default class extends Rule {
|
|
3
|
+
static id: "TextStrokeWidth";
|
|
4
|
+
static matches: string;
|
|
5
|
+
static get prop(): string;
|
|
5
6
|
get(declaration: any): {
|
|
6
7
|
[key: string]: any;
|
|
7
8
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
export default class extends
|
|
3
|
-
static id:
|
|
4
|
-
static matches:
|
|
1
|
+
import Rule from '../rule';
|
|
2
|
+
export default class extends Rule {
|
|
3
|
+
static id: "TextStroke";
|
|
4
|
+
static matches: string;
|
|
5
|
+
static get prop(): string;
|
|
5
6
|
get(declaration: any): {
|
|
6
7
|
[key: string]: any;
|
|
7
8
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
export default class extends
|
|
3
|
-
static id:
|
|
4
|
-
static matches:
|
|
5
|
-
static propName: string;
|
|
1
|
+
import Rule from '../rule';
|
|
2
|
+
export default class extends Rule {
|
|
3
|
+
static id: "TextTransform";
|
|
4
|
+
static matches: string;
|
|
6
5
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
export default class extends
|
|
3
|
-
static id:
|
|
4
|
-
static matches:
|
|
5
|
-
static propName: string;
|
|
1
|
+
import Rule from '../rule';
|
|
2
|
+
export default class extends Rule {
|
|
3
|
+
static id: "TransformBox";
|
|
4
|
+
static matches: string;
|
|
6
5
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
export default class extends
|
|
3
|
-
static id:
|
|
4
|
-
static matches:
|
|
5
|
-
static propName: string;
|
|
1
|
+
import Rule from '../rule';
|
|
2
|
+
export default class extends Rule {
|
|
3
|
+
static id: "TransformOrigin";
|
|
4
|
+
static matches: string;
|
|
6
5
|
static unit: string;
|
|
7
6
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
export default class extends
|
|
3
|
-
static id:
|
|
4
|
-
static matches:
|
|
5
|
-
static propName: string;
|
|
1
|
+
import Rule from '../rule';
|
|
2
|
+
export default class extends Rule {
|
|
3
|
+
static id: "TransformStyle";
|
|
4
|
+
static matches: string;
|
|
6
5
|
}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import
|
|
3
|
-
export default class extends
|
|
4
|
-
static id:
|
|
5
|
-
static matches:
|
|
6
|
-
static propName: string;
|
|
1
|
+
import type { Config } from '../config';
|
|
2
|
+
import Rule from '../rule';
|
|
3
|
+
export default class extends Rule {
|
|
4
|
+
static id: "Transform";
|
|
5
|
+
static matches: string;
|
|
7
6
|
static unit: string;
|
|
8
|
-
parseValue(value: string, { rootSize }:
|
|
7
|
+
parseValue(value: string, { rootSize }: Config): string;
|
|
9
8
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
export default class extends
|
|
3
|
-
static id:
|
|
4
|
-
static matches:
|
|
5
|
-
static propName: string;
|
|
1
|
+
import Rule from '../rule';
|
|
2
|
+
export default class extends Rule {
|
|
3
|
+
static id: "TransitionDelay";
|
|
4
|
+
static matches: string;
|
|
6
5
|
static unit: string;
|
|
7
6
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
export default class extends
|
|
3
|
-
static id:
|
|
4
|
-
static matches:
|
|
5
|
-
static propName: string;
|
|
1
|
+
import Rule from '../rule';
|
|
2
|
+
export default class extends Rule {
|
|
3
|
+
static id: "TransitionDuration";
|
|
4
|
+
static matches: string;
|
|
6
5
|
static unit: string;
|
|
7
6
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
export default class extends
|
|
3
|
-
static id:
|
|
4
|
-
static matches:
|
|
5
|
-
static propName: string;
|
|
1
|
+
import Rule from '../rule';
|
|
2
|
+
export default class extends Rule {
|
|
3
|
+
static id: "TransitionProperty";
|
|
4
|
+
static matches: string;
|
|
6
5
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
export default class extends
|
|
3
|
-
static id:
|
|
4
|
-
static matches:
|
|
5
|
-
static propName: string;
|
|
1
|
+
import Rule from '../rule';
|
|
2
|
+
export default class extends Rule {
|
|
3
|
+
static id: "TransitionTimingFunction";
|
|
4
|
+
static matches: string;
|
|
6
5
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
export default class extends
|
|
3
|
-
static id:
|
|
1
|
+
import Rule from '../rule';
|
|
2
|
+
export default class extends Rule {
|
|
3
|
+
static id: "Transition";
|
|
4
4
|
static symbol: string;
|
|
5
|
-
static propName: string;
|
|
6
5
|
order: number;
|
|
7
6
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
export default class extends
|
|
3
|
-
static id:
|
|
4
|
-
static propName: string;
|
|
1
|
+
import Rule from '../rule';
|
|
2
|
+
export default class extends Rule {
|
|
3
|
+
static id: "UserDrag";
|
|
5
4
|
get(declaration: any): {
|
|
6
5
|
[key: string]: any;
|
|
7
6
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
export default class extends
|
|
3
|
-
static id:
|
|
4
|
-
static propName: string;
|
|
1
|
+
import Rule from '../rule';
|
|
2
|
+
export default class extends Rule {
|
|
3
|
+
static id: "UserSelect";
|
|
5
4
|
get(declaration: any): {
|
|
6
5
|
[key: string]: any;
|
|
7
6
|
};
|
package/dist/rules/variable.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
export default class extends
|
|
3
|
-
static id:
|
|
4
|
-
static matches:
|
|
1
|
+
import Rule from '../rule';
|
|
2
|
+
export default class extends Rule {
|
|
3
|
+
static id: "Variable";
|
|
4
|
+
static matches: string;
|
|
5
5
|
static unit: string;
|
|
6
|
+
static get prop(): string;
|
|
6
7
|
get(declaration: any): {
|
|
7
8
|
[key: string]: any;
|
|
8
9
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
export default class extends
|
|
3
|
-
static id:
|
|
4
|
-
static matches:
|
|
5
|
-
static propName: string;
|
|
1
|
+
import Rule from '../rule';
|
|
2
|
+
export default class extends Rule {
|
|
3
|
+
static id: "VerticalAlign";
|
|
4
|
+
static matches: string;
|
|
6
5
|
}
|
package/dist/rules/width.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
export default class extends
|
|
3
|
-
static id:
|
|
4
|
-
static matches:
|
|
5
|
-
static propName: string;
|
|
1
|
+
import Rule from '../rule';
|
|
2
|
+
export default class extends Rule {
|
|
3
|
+
static id: "Width";
|
|
4
|
+
static matches: string;
|
|
6
5
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
export default class extends
|
|
3
|
-
static id:
|
|
4
|
-
static matches:
|
|
5
|
-
static propName: string;
|
|
1
|
+
import Rule from '../rule';
|
|
2
|
+
export default class extends Rule {
|
|
3
|
+
static id: "WritingMode";
|
|
4
|
+
static matches: string;
|
|
6
5
|
}
|
package/dist/rules/x.d.ts
CHANGED
package/dist/rules/y.d.ts
CHANGED
package/dist/rules/z-index.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
export default class extends
|
|
3
|
-
static id:
|
|
4
|
-
static matches:
|
|
5
|
-
static propName: string;
|
|
1
|
+
import Rule from '../rule';
|
|
2
|
+
export default class extends Rule {
|
|
3
|
+
static id: "ZIndex";
|
|
4
|
+
static matches: string;
|
|
6
5
|
static unit: string;
|
|
7
6
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare function parseValueUnit(value: string, getUnit: (method: string) => string, { rootSize }:
|
|
1
|
+
import type { Config } from '../config';
|
|
2
|
+
export declare function parseValueUnit(value: string, getUnit: (method: string) => string, { rootSize }: Config): string;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
export declare function parseValue(token: string | number, defaultUnit?: string, colorsThemesMap?: Record<string, Record<string, Record<string, string>>>,
|
|
1
|
+
export declare function parseValue(token: string | number, defaultUnit?: string, colorsThemesMap?: Record<string, Record<string, Record<string, string>>>, rootSize?: number, themes?: string[]): {
|
|
2
2
|
value: string;
|
|
3
3
|
unit: string;
|
|
4
|
-
unitToken: string;
|
|
5
4
|
colorMatched?: boolean;
|
|
6
5
|
};
|
package/package.json
CHANGED
|
@@ -1,163 +1 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@master/css",
|
|
3
|
-
"license": "MIT",
|
|
4
|
-
"description": "A Virtual CSS language with enhanced syntax. ( ~13KB )",
|
|
5
|
-
"author": "Aoyue Design LLC.",
|
|
6
|
-
"funding": "https://docs.master.co/css/donate",
|
|
7
|
-
"homepage": "https://css.master.co",
|
|
8
|
-
"repository": {
|
|
9
|
-
"type": "git",
|
|
10
|
-
"url": "https://github.com/master-co/css.git"
|
|
11
|
-
},
|
|
12
|
-
"keywords": [
|
|
13
|
-
"style",
|
|
14
|
-
"styles",
|
|
15
|
-
"html",
|
|
16
|
-
"variants",
|
|
17
|
-
"virtual",
|
|
18
|
-
"virtual-css",
|
|
19
|
-
"utility",
|
|
20
|
-
"css",
|
|
21
|
-
"ui",
|
|
22
|
-
"lightweight",
|
|
23
|
-
"class",
|
|
24
|
-
"webpack",
|
|
25
|
-
"plugin",
|
|
26
|
-
"integration",
|
|
27
|
-
"vite",
|
|
28
|
-
"parcel",
|
|
29
|
-
"build-tools",
|
|
30
|
-
"mastercss"
|
|
31
|
-
],
|
|
32
|
-
"sideEffects": [
|
|
33
|
-
"./src/polyfills/css-escape.ts"
|
|
34
|
-
],
|
|
35
|
-
"scripts": {
|
|
36
|
-
"build:iife": "esbuild src/index.ts --bundle --outfile=dist/index.browser.js --format=iife",
|
|
37
|
-
"build:cjs": "esbuild src/index.ts --bundle --outfile=dist/index.cjs.js --format=cjs --platform=node",
|
|
38
|
-
"build:esm": "esbuild src/index.ts --bundle --outfile=dist/index.esm.js --format=esm --platform=node",
|
|
39
|
-
"build:css": "esbuild src/index.css --bundle --outfile=dist/index.css",
|
|
40
|
-
"dev:iife": "npm run build:iife -- --watch",
|
|
41
|
-
"dev:cjs": "npm run build:cjs -- --watch",
|
|
42
|
-
"dev:esm": "npm run build:esm -- --watch",
|
|
43
|
-
"prod": "rm -rf dist && npm run build:cjs -- --minify --sourcemap && npm run build:iife -- --minify --sourcemap && npm run build:esm -- --minify --sourcemap && tsc",
|
|
44
|
-
"test": "jest",
|
|
45
|
-
"lint": "eslint ./src"
|
|
46
|
-
},
|
|
47
|
-
"type": "module",
|
|
48
|
-
"main": "./dist/index.cjs.js",
|
|
49
|
-
"jsnext:main": "./dist/index.esm.js",
|
|
50
|
-
"browser": "./dist/index.browser.js",
|
|
51
|
-
"esnext": "./dist/index.esm.js",
|
|
52
|
-
"module": "./dist/index.esm.js",
|
|
53
|
-
"types": "./dist/index.d.ts",
|
|
54
|
-
"exports": {
|
|
55
|
-
".": {
|
|
56
|
-
"require": "./dist/index.cjs.js",
|
|
57
|
-
"import": "./dist/index.esm.js",
|
|
58
|
-
"types": "./dist/index.d.ts"
|
|
59
|
-
}
|
|
60
|
-
},
|
|
61
|
-
"jest": {
|
|
62
|
-
"testEnvironment": "node",
|
|
63
|
-
"transform": {
|
|
64
|
-
"^.+\\.(t|j)sx?$": "@swc/jest"
|
|
65
|
-
},
|
|
66
|
-
"testMatch": [
|
|
67
|
-
"<rootDir>/tests/*.ts",
|
|
68
|
-
"<rootDir>/src/**/*.test.ts"
|
|
69
|
-
]
|
|
70
|
-
},
|
|
71
|
-
"private": false,
|
|
72
|
-
"publishConfig": {
|
|
73
|
-
"access": "public"
|
|
74
|
-
},
|
|
75
|
-
"engines": {
|
|
76
|
-
"node": ">=14"
|
|
77
|
-
},
|
|
78
|
-
"release": {
|
|
79
|
-
"plugins": [
|
|
80
|
-
[
|
|
81
|
-
"@semantic-release/commit-analyzer",
|
|
82
|
-
{
|
|
83
|
-
"preset": "angular",
|
|
84
|
-
"releaseRules": [
|
|
85
|
-
{
|
|
86
|
-
"type": "docs",
|
|
87
|
-
"scope": "README",
|
|
88
|
-
"release": "patch"
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
"type": "refactor",
|
|
92
|
-
"release": "patch"
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
"type": "style",
|
|
96
|
-
"release": "patch"
|
|
97
|
-
}
|
|
98
|
-
],
|
|
99
|
-
"parserOpts": {
|
|
100
|
-
"noteKeywords": [
|
|
101
|
-
"BREAKING CHANGE",
|
|
102
|
-
"BREAKING CHANGES"
|
|
103
|
-
]
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
],
|
|
107
|
-
"@semantic-release/release-notes-generator",
|
|
108
|
-
[
|
|
109
|
-
"@semantic-release/exec",
|
|
110
|
-
{
|
|
111
|
-
"prepareCmd": "npm run prod"
|
|
112
|
-
}
|
|
113
|
-
],
|
|
114
|
-
[
|
|
115
|
-
"@semantic-release/github",
|
|
116
|
-
{
|
|
117
|
-
"assets": [
|
|
118
|
-
{
|
|
119
|
-
"path": "dist/index.browser.js",
|
|
120
|
-
"label": "master-css.min.js"
|
|
121
|
-
}
|
|
122
|
-
]
|
|
123
|
-
}
|
|
124
|
-
],
|
|
125
|
-
[
|
|
126
|
-
"@semantic-release/npm"
|
|
127
|
-
]
|
|
128
|
-
],
|
|
129
|
-
"branches": [
|
|
130
|
-
"+([0-9])?(.{+([0-9]),x}).x",
|
|
131
|
-
"main",
|
|
132
|
-
"next",
|
|
133
|
-
"next-major",
|
|
134
|
-
{
|
|
135
|
-
"name": "beta",
|
|
136
|
-
"prerelease": true
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
"name": "alpha",
|
|
140
|
-
"prerelease": true
|
|
141
|
-
}
|
|
142
|
-
]
|
|
143
|
-
},
|
|
144
|
-
"files": [
|
|
145
|
-
"dist"
|
|
146
|
-
],
|
|
147
|
-
"devDependencies": {
|
|
148
|
-
"@semantic-release/exec": "^6.0.3",
|
|
149
|
-
"@swc/core": "^1.3.9",
|
|
150
|
-
"@swc/jest": "^0.2.23",
|
|
151
|
-
"@types/jest": "^29.2.0",
|
|
152
|
-
"@types/node": "^18.11.0",
|
|
153
|
-
"@typescript-eslint/eslint-plugin": "^5.40.1",
|
|
154
|
-
"@typescript-eslint/parser": "^5.40.1",
|
|
155
|
-
"esbuild": "^0.15.10",
|
|
156
|
-
"eslint": "^8.25.0",
|
|
157
|
-
"jest": "^29.2.2",
|
|
158
|
-
"semantic-release": "^19.0.5",
|
|
159
|
-
"typescript": "^4.8.4",
|
|
160
|
-
"dedent": "^0.7.0"
|
|
161
|
-
},
|
|
162
|
-
"version": "2.0.0-beta.8"
|
|
163
|
-
}
|
|
1
|
+
{"name":"@master/css","scripts":{"build":"aron pack --platform=node","dev":"npm run build -- --watch","test":"jest","type-check":"tsc --noEmit","lint":"eslint src"},"license":"MIT","description":"A Virtual CSS language with enhanced syntax ~13KB","author":"Aoyue Design LLC.","funding":"https://docs.master.co/css/donate","homepage":"https://css.master.co","bugs":{"url":"https://github.com/master-co/css/issues"},"repository":{"type":"git","url":"https://github.com/master-co/css.git","directory":"packages/css"},"keywords":["style","styles","html","variants","virtual","virtual-css","utility","css","ui","lightweight","class","webpack","plugin","integration","vite","parcel","build-tools","mastercss"],"sideEffects":["./src/polyfills/css-escape.ts"],"main":"./dist/index.cjs","jsnext:main":"./dist/index.mjs","browser":"./dist/index.browser.js","esnext":"./dist/index.mjs","module":"./dist/index.mjs","types":"./dist/index.d.ts","exports":{".":{"require":"./dist/index.cjs","import":"./dist/index.mjs","types":"./dist/index.d.ts"}},"files":["dist"],"dependencies":{"@master/keyframes.css":"^2.0.0-beta.80","@master/normal.css":"^2.0.0-beta.80"},"version":"2.0.0-beta.80"}
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
The MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) Aoyue Design LLC.
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in
|
|
13
|
-
all copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
-
THE SOFTWARE.
|
package/dist/apis/configure.d.ts
DELETED
package/dist/apis/init.d.ts
DELETED