@master/css 2.0.0-alpha.4 → 2.0.0-alpha.40
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/color.scss +1 -1
- package/config/index.d.ts +11 -0
- package/configure.d.ts +2 -0
- package/constants/css-property-keyword.d.ts +0 -7
- package/css.d.ts +68 -0
- package/index.d.ts +9 -6
- package/index.js +2 -1
- package/index.js.map +1 -0
- package/init.d.ts +3 -0
- package/interfaces/config.d.ts +16 -0
- package/interfaces/declaration.d.ts +5 -0
- package/interfaces/{style-media-feature.d.ts → media-feature-rule.d.ts} +1 -1
- package/interfaces/media.d.ts +8 -0
- package/master-css.min.js +2 -1
- package/package.json +1 -1
- package/render-from-html.d.ts +3 -0
- package/render-into-html.d.ts +3 -0
- package/render.d.ts +2 -7
- package/render.js +2 -1
- package/render.js.map +1 -0
- package/rule.d.ts +51 -0
- package/rules/accent-color.d.ts +7 -0
- package/rules/align-content.d.ts +6 -0
- package/rules/align-items.d.ts +6 -0
- package/rules/align-self.d.ts +6 -0
- package/rules/animation-delay.d.ts +7 -0
- package/rules/animation-direction.d.ts +6 -0
- package/rules/animation-duration.d.ts +7 -0
- package/rules/animation-fill-mode.d.ts +6 -0
- package/rules/animation-iteration-count.d.ts +7 -0
- package/rules/animation-name.d.ts +6 -0
- package/rules/animation-play-state.d.ts +6 -0
- package/rules/animation-timing-function.d.ts +6 -0
- package/rules/animation.d.ts +8 -0
- package/rules/appearance.d.ts +5 -0
- package/rules/aspect-radio.d.ts +7 -0
- package/rules/backdrop-filter.d.ts +10 -0
- package/rules/background-attachment.d.ts +6 -0
- package/rules/background-blend-mode.d.ts +5 -0
- package/rules/background-clip.d.ts +9 -0
- package/rules/background-color.d.ts +8 -0
- package/rules/background-image.d.ts +7 -0
- package/rules/background-origin.d.ts +6 -0
- package/rules/background-position.d.ts +7 -0
- package/rules/background-repeat.d.ts +6 -0
- package/rules/background-size.d.ts +6 -0
- package/rules/background.d.ts +8 -0
- package/rules/border-collapse.d.ts +6 -0
- package/{styles → rules}/border-color.d.ts +3 -3
- package/rules/border-image-outset.d.ts +5 -0
- package/rules/border-image-repeat.d.ts +6 -0
- package/rules/border-image-slice.d.ts +6 -0
- package/rules/border-image-source.d.ts +6 -0
- package/rules/border-image-width.d.ts +6 -0
- package/rules/border-image.d.ts +6 -0
- package/rules/border-radius.d.ts +9 -0
- package/rules/border-spacing.d.ts +5 -0
- package/rules/border-style.d.ts +9 -0
- package/rules/border-width.d.ts +9 -0
- package/{styles → rules}/border.d.ts +3 -3
- package/rules/box-decoration-break.d.ts +9 -0
- package/rules/box-shadow.d.ts +7 -0
- package/rules/box-sizing.d.ts +6 -0
- package/rules/break-after.d.ts +5 -0
- package/rules/break-before.d.ts +5 -0
- package/rules/break-inside.d.ts +5 -0
- package/rules/caret-color.d.ts +7 -0
- package/rules/clear.d.ts +5 -0
- package/rules/clip-path.d.ts +6 -0
- package/rules/color.d.ts +8 -0
- package/rules/column-span.d.ts +6 -0
- package/rules/columns.d.ts +8 -0
- package/rules/contain.d.ts +5 -0
- package/rules/content.d.ts +5 -0
- package/rules/counter-increment.d.ts +6 -0
- package/rules/cursor.d.ts +5 -0
- package/rules/cx.d.ts +6 -0
- package/rules/cy.d.ts +6 -0
- package/rules/direction.d.ts +5 -0
- package/rules/display.d.ts +6 -0
- package/rules/fill.d.ts +7 -0
- package/rules/filter.d.ts +7 -0
- package/rules/flex-basis.d.ts +5 -0
- package/rules/flex-direction.d.ts +6 -0
- package/rules/flex-grow.d.ts +6 -0
- package/rules/flex-shrink.d.ts +6 -0
- package/rules/flex-wrap.d.ts +6 -0
- package/rules/flex.d.ts +7 -0
- package/rules/float.d.ts +5 -0
- package/rules/font-family.d.ts +6 -0
- package/rules/font-size.d.ts +6 -0
- package/rules/font-smoothing.d.ts +9 -0
- package/rules/font-style.d.ts +7 -0
- package/rules/font-variant-numeric.d.ts +6 -0
- package/rules/font-weight.d.ts +7 -0
- package/rules/font.d.ts +8 -0
- package/rules/gap.d.ts +9 -0
- package/rules/grid-area.d.ts +7 -0
- package/rules/grid-auto-columns.d.ts +6 -0
- package/rules/grid-auto-flow.d.ts +6 -0
- package/rules/grid-auto-rows.d.ts +5 -0
- package/rules/grid-column-end.d.ts +7 -0
- package/rules/grid-column-start.d.ts +7 -0
- package/rules/grid-column.d.ts +9 -0
- package/rules/grid-columns.d.ts +10 -0
- package/rules/grid-row-end.d.ts +6 -0
- package/rules/grid-row-start.d.ts +6 -0
- package/rules/grid-row.d.ts +9 -0
- package/rules/grid-rows.d.ts +9 -0
- package/rules/grid-template-areas.d.ts +5 -0
- package/rules/grid-template-columns.d.ts +6 -0
- package/rules/grid-template-rows.d.ts +5 -0
- package/rules/grid-template.d.ts +6 -0
- package/rules/grid.d.ts +6 -0
- package/rules/group.d.ts +9 -0
- package/rules/height.d.ts +6 -0
- package/rules/inset.d.ts +9 -0
- package/rules/isolation.d.ts +5 -0
- package/rules/justify-content.d.ts +6 -0
- package/rules/justify-items.d.ts +6 -0
- package/rules/justify-self.d.ts +6 -0
- package/rules/letter-spacing.d.ts +7 -0
- package/rules/line-height.d.ts +7 -0
- package/rules/lines.d.ts +9 -0
- package/rules/list-style-image.d.ts +6 -0
- package/rules/list-style-position.d.ts +6 -0
- package/rules/list-style-type.d.ts +6 -0
- package/rules/list-style.d.ts +6 -0
- package/rules/margin.d.ts +9 -0
- package/rules/mask-image.d.ts +8 -0
- package/rules/max-height.d.ts +6 -0
- package/rules/max-width.d.ts +6 -0
- package/rules/min-height.d.ts +6 -0
- package/rules/min-width.d.ts +6 -0
- package/rules/mix-blend-mode.d.ts +6 -0
- package/rules/object-fit.d.ts +6 -0
- package/rules/object-position.d.ts +6 -0
- package/rules/opacity.d.ts +6 -0
- package/rules/order.d.ts +7 -0
- package/rules/outline-color.d.ts +7 -0
- package/rules/outline-offset.d.ts +5 -0
- package/rules/outline-style.d.ts +6 -0
- package/rules/outline-width.d.ts +6 -0
- package/rules/outline.d.ts +7 -0
- package/rules/overflow.d.ts +9 -0
- package/rules/overscroll-behavior.d.ts +8 -0
- package/rules/padding.d.ts +9 -0
- package/rules/place-content.d.ts +6 -0
- package/rules/place-items.d.ts +6 -0
- package/rules/place-self.d.ts +6 -0
- package/rules/placement.d.ts +8 -0
- package/rules/pointer-events.d.ts +5 -0
- package/rules/position.d.ts +5 -0
- package/rules/quotes.d.ts +5 -0
- package/rules/resize.d.ts +5 -0
- package/rules/rx.d.ts +6 -0
- package/rules/ry.d.ts +6 -0
- package/rules/scroll-behavior.d.ts +5 -0
- package/rules/scroll-margin.d.ts +9 -0
- package/rules/scroll-padding.d.ts +9 -0
- package/rules/scroll-snap-align.d.ts +6 -0
- package/rules/scroll-snap-stop.d.ts +6 -0
- package/rules/scroll-snap-type.d.ts +6 -0
- package/rules/shape-image-threshold.d.ts +6 -0
- package/rules/shape-margin.d.ts +6 -0
- package/rules/shape-outside.d.ts +6 -0
- package/rules/spacing.d.ts +9 -0
- package/rules/stroke-dasharray.d.ts +5 -0
- package/rules/stroke-dashoffset.d.ts +5 -0
- package/rules/stroke-width.d.ts +6 -0
- package/rules/stroke.d.ts +6 -0
- package/rules/table-layout.d.ts +5 -0
- package/rules/text-align.d.ts +6 -0
- package/rules/text-decoration-color.d.ts +7 -0
- package/rules/text-decoration-line.d.ts +6 -0
- package/rules/text-decoration-style.d.ts +6 -0
- package/rules/text-decoration-thickness.d.ts +7 -0
- package/rules/text-decoration.d.ts +8 -0
- package/{styles → rules}/text-fill-color.d.ts +3 -3
- package/rules/text-indent.d.ts +5 -0
- package/rules/text-orientation.d.ts +6 -0
- package/rules/text-overflow.d.ts +6 -0
- package/rules/text-rendering.d.ts +6 -0
- package/rules/text-shadow.d.ts +6 -0
- package/rules/text-size.d.ts +8 -0
- package/{styles → rules}/text-stroke-color.d.ts +3 -3
- package/rules/text-stroke-width.d.ts +8 -0
- package/rules/text-stroke.d.ts +8 -0
- package/rules/text-transform.d.ts +6 -0
- package/rules/text-underline-offset.d.ts +5 -0
- package/rules/touch-action.d.ts +5 -0
- package/rules/transform-box.d.ts +6 -0
- package/rules/transform-origin.d.ts +7 -0
- package/rules/transform-style.d.ts +6 -0
- package/rules/transform.d.ts +8 -0
- package/rules/transition-delay.d.ts +7 -0
- package/rules/transition-duration.d.ts +7 -0
- package/rules/transition-property.d.ts +6 -0
- package/rules/transition-timing-function.d.ts +6 -0
- package/rules/transition.d.ts +7 -0
- package/rules/user-drag.d.ts +8 -0
- package/rules/user-select.d.ts +8 -0
- package/rules/variable.d.ts +9 -0
- package/rules/vertical-align.d.ts +6 -0
- package/rules/visibility.d.ts +5 -0
- package/rules/white-space.d.ts +6 -0
- package/rules/width.d.ts +6 -0
- package/rules/will-change.d.ts +5 -0
- package/rules/word-break.d.ts +6 -0
- package/rules/word-spacing.d.ts +6 -0
- package/rules/writing-mode.d.ts +6 -0
- package/rules/x.d.ts +6 -0
- package/rules/y.d.ts +6 -0
- package/rules/z-index.d.ts +7 -0
- package/utils/concat-arrays.d.ts +1 -0
- package/utils/get-border-props.d.ts +2 -2
- package/utils/get-type.d.ts +7 -0
- package/utils/is-plain-object.d.ts +8 -0
- package/utils/is-symbol.d.ts +7 -0
- package/utils/merge.d.ts +5 -0
- package/utils/parse-value.d.ts +3 -2
- package/breakpoints.js +0 -1
- package/colors.js +0 -1
- package/interfaces/style-media.d.ts +0 -8
- package/sheet.d.ts +0 -55
- package/style.d.ts +0 -69
- package/styles/accent-color.d.ts +0 -6
- package/styles/align-content.d.ts +0 -5
- package/styles/align-items.d.ts +0 -5
- package/styles/align-self.d.ts +0 -5
- package/styles/animation-delay.d.ts +0 -6
- package/styles/animation-direction.d.ts +0 -5
- package/styles/animation-duration.d.ts +0 -6
- package/styles/animation-fill-mode.d.ts +0 -5
- package/styles/animation-iteration-count.d.ts +0 -6
- package/styles/animation-name.d.ts +0 -5
- package/styles/animation-play-state.d.ts +0 -5
- package/styles/animation-timing-function.d.ts +0 -5
- package/styles/animation.d.ts +0 -7
- package/styles/appearance.d.ts +0 -4
- package/styles/aspect-radio.d.ts +0 -10
- package/styles/backdrop-filter.d.ts +0 -9
- package/styles/background-attachment.d.ts +0 -5
- package/styles/background-blend-mode.d.ts +0 -4
- package/styles/background-clip.d.ts +0 -13
- package/styles/background-color.d.ts +0 -7
- package/styles/background-image.d.ts +0 -6
- package/styles/background-origin.d.ts +0 -10
- package/styles/background-position.d.ts +0 -6
- package/styles/background-repeat.d.ts +0 -5
- package/styles/background-size.d.ts +0 -5
- package/styles/background.d.ts +0 -7
- package/styles/border-collapse.d.ts +0 -5
- package/styles/border-image-outset.d.ts +0 -4
- package/styles/border-image-repeat.d.ts +0 -5
- package/styles/border-image-slice.d.ts +0 -5
- package/styles/border-image-source.d.ts +0 -5
- package/styles/border-image-width.d.ts +0 -5
- package/styles/border-image.d.ts +0 -5
- package/styles/border-radius.d.ts +0 -13
- package/styles/border-spacing.d.ts +0 -4
- package/styles/border-style.d.ts +0 -9
- package/styles/border-width.d.ts +0 -9
- package/styles/box-decoration-break.d.ts +0 -8
- package/styles/box-shadow.d.ts +0 -6
- package/styles/box-sizing.d.ts +0 -9
- package/styles/break-after.d.ts +0 -4
- package/styles/break-before.d.ts +0 -4
- package/styles/break-inside.d.ts +0 -4
- package/styles/caret-color.d.ts +0 -6
- package/styles/clear.d.ts +0 -4
- package/styles/clip-path.d.ts +0 -14
- package/styles/color.d.ts +0 -7
- package/styles/column-span.d.ts +0 -5
- package/styles/columns.d.ts +0 -7
- package/styles/contain.d.ts +0 -4
- package/styles/content.d.ts +0 -4
- package/styles/counter-increment.d.ts +0 -5
- package/styles/cursor.d.ts +0 -4
- package/styles/cx.d.ts +0 -5
- package/styles/cy.d.ts +0 -5
- package/styles/direction.d.ts +0 -4
- package/styles/display.d.ts +0 -29
- package/styles/fill.d.ts +0 -6
- package/styles/filter.d.ts +0 -6
- package/styles/flex-basis.d.ts +0 -10
- package/styles/flex-direction.d.ts +0 -9
- package/styles/flex-grow.d.ts +0 -5
- package/styles/flex-shrink.d.ts +0 -5
- package/styles/flex-wrap.d.ts +0 -5
- package/styles/flex.d.ts +0 -6
- package/styles/float.d.ts +0 -4
- package/styles/font-family.d.ts +0 -10
- package/styles/font-size.d.ts +0 -5
- package/styles/font-smoothing.d.ts +0 -9
- package/styles/font-style.d.ts +0 -10
- package/styles/font-variant-numeric.d.ts +0 -5
- package/styles/font-weight.d.ts +0 -17
- package/styles/font.d.ts +0 -7
- package/styles/gap.d.ts +0 -9
- package/styles/grid-area.d.ts +0 -6
- package/styles/grid-auto-columns.d.ts +0 -9
- package/styles/grid-auto-flow.d.ts +0 -5
- package/styles/grid-auto-rows.d.ts +0 -8
- package/styles/grid-column-end.d.ts +0 -6
- package/styles/grid-column-start.d.ts +0 -6
- package/styles/grid-column.d.ts +0 -8
- package/styles/grid-columns.d.ts +0 -9
- package/styles/grid-row-end.d.ts +0 -5
- package/styles/grid-row-start.d.ts +0 -5
- package/styles/grid-row.d.ts +0 -8
- package/styles/grid-rows.d.ts +0 -8
- package/styles/grid-template-areas.d.ts +0 -4
- package/styles/grid-template-columns.d.ts +0 -9
- package/styles/grid-template-rows.d.ts +0 -8
- package/styles/grid-template.d.ts +0 -5
- package/styles/grid.d.ts +0 -5
- package/styles/group.d.ts +0 -9
- package/styles/height.d.ts +0 -11
- package/styles/index.d.ts +0 -17
- package/styles/inset.d.ts +0 -8
- package/styles/isolation.d.ts +0 -7
- package/styles/justify-content.d.ts +0 -5
- package/styles/justify-items.d.ts +0 -5
- package/styles/justify-self.d.ts +0 -5
- package/styles/letter-spacing.d.ts +0 -6
- package/styles/line-height.d.ts +0 -6
- package/styles/lines.d.ts +0 -9
- package/styles/list-style-image.d.ts +0 -5
- package/styles/list-style-position.d.ts +0 -5
- package/styles/list-style-type.d.ts +0 -5
- package/styles/list-style.d.ts +0 -5
- package/styles/margin.d.ts +0 -9
- package/styles/mask-image.d.ts +0 -7
- package/styles/max-height.d.ts +0 -11
- package/styles/max-width.d.ts +0 -11
- package/styles/min-height.d.ts +0 -11
- package/styles/min-width.d.ts +0 -11
- package/styles/mix-blend-mode.d.ts +0 -5
- package/styles/object-fit.d.ts +0 -5
- package/styles/object-position.d.ts +0 -5
- package/styles/opacity.d.ts +0 -5
- package/styles/order.d.ts +0 -10
- package/styles/outline-color.d.ts +0 -6
- package/styles/outline-offset.d.ts +0 -4
- package/styles/outline-style.d.ts +0 -5
- package/styles/outline-width.d.ts +0 -5
- package/styles/outline.d.ts +0 -6
- package/styles/overflow.d.ts +0 -12
- package/styles/overscroll-behavior.d.ts +0 -8
- package/styles/padding.d.ts +0 -9
- package/styles/place-content.d.ts +0 -5
- package/styles/place-items.d.ts +0 -5
- package/styles/place-self.d.ts +0 -5
- package/styles/placement.d.ts +0 -7
- package/styles/pointer-events.d.ts +0 -7
- package/styles/position.d.ts +0 -15
- package/styles/quotes.d.ts +0 -4
- package/styles/resize.d.ts +0 -4
- package/styles/rx.d.ts +0 -5
- package/styles/ry.d.ts +0 -5
- package/styles/scroll-behavior.d.ts +0 -4
- package/styles/scroll-margin.d.ts +0 -9
- package/styles/scroll-padding.d.ts +0 -9
- package/styles/scroll-snap-align.d.ts +0 -5
- package/styles/scroll-snap-stop.d.ts +0 -5
- package/styles/scroll-snap-type.d.ts +0 -5
- package/styles/shape-image-threshold.d.ts +0 -5
- package/styles/shape-margin.d.ts +0 -5
- package/styles/shape-outside.d.ts +0 -11
- package/styles/spacing.d.ts +0 -9
- package/styles/stroke-dasharray.d.ts +0 -4
- package/styles/stroke-dashoffset.d.ts +0 -4
- package/styles/stroke-width.d.ts +0 -5
- package/styles/stroke.d.ts +0 -5
- package/styles/table-layout.d.ts +0 -4
- package/styles/text-align.d.ts +0 -5
- package/styles/text-decoration-color.d.ts +0 -6
- package/styles/text-decoration-line.d.ts +0 -5
- package/styles/text-decoration-style.d.ts +0 -5
- package/styles/text-decoration-thickness.d.ts +0 -6
- package/styles/text-decoration.d.ts +0 -7
- package/styles/text-indent.d.ts +0 -4
- package/styles/text-orientation.d.ts +0 -5
- package/styles/text-overflow.d.ts +0 -5
- package/styles/text-rendering.d.ts +0 -5
- package/styles/text-shadow.d.ts +0 -5
- package/styles/text-size.d.ts +0 -8
- package/styles/text-stroke-width.d.ts +0 -8
- package/styles/text-stroke.d.ts +0 -8
- package/styles/text-transform.d.ts +0 -10
- package/styles/text-underline-offset.d.ts +0 -4
- package/styles/touch-action.d.ts +0 -4
- package/styles/transform-box.d.ts +0 -12
- package/styles/transform-origin.d.ts +0 -6
- package/styles/transform-style.d.ts +0 -5
- package/styles/transform.d.ts +0 -7
- package/styles/transition-delay.d.ts +0 -6
- package/styles/transition-duration.d.ts +0 -6
- package/styles/transition-property.d.ts +0 -5
- package/styles/transition-timing-function.d.ts +0 -5
- package/styles/transition.d.ts +0 -6
- package/styles/user-drag.d.ts +0 -7
- package/styles/user-select.d.ts +0 -7
- package/styles/utility.d.ts +0 -43
- package/styles/variable.d.ts +0 -9
- package/styles/vertical-align.d.ts +0 -5
- package/styles/visibility.d.ts +0 -8
- package/styles/white-space.d.ts +0 -5
- package/styles/width.d.ts +0 -11
- package/styles/will-change.d.ts +0 -4
- package/styles/word-break.d.ts +0 -5
- package/styles/word-spacing.d.ts +0 -4
- package/styles/writing-mode.d.ts +0 -5
- package/styles/x.d.ts +0 -5
- package/styles/y.d.ts +0 -5
- package/styles/z-index.d.ts +0 -6
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export
|
|
1
|
+
import { MasterCSSRule } from '../rule';
|
|
2
|
+
export default class extends MasterCSSRule {
|
|
3
3
|
static id: string;
|
|
4
4
|
static matches: RegExp;
|
|
5
5
|
static colorStarts: string;
|
|
6
6
|
static colorful: boolean;
|
|
7
|
-
get
|
|
7
|
+
get(declaration: any): {
|
|
8
8
|
[key: string]: any;
|
|
9
9
|
};
|
|
10
10
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export
|
|
1
|
+
import { MasterCSSRule } from '../rule';
|
|
2
|
+
export default class extends MasterCSSRule {
|
|
3
3
|
static id: string;
|
|
4
4
|
static matches: RegExp;
|
|
5
5
|
static colorStarts: string;
|
|
6
6
|
static colorful: boolean;
|
|
7
|
-
get
|
|
7
|
+
get(declaration: any): {
|
|
8
8
|
[key: string]: any;
|
|
9
9
|
};
|
|
10
10
|
}
|
package/rules/width.d.ts
ADDED
package/rules/x.d.ts
ADDED
package/rules/y.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function concatArrays(originVal: any, newVal: any): any | any[];
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare function getBorderProps(name: string,
|
|
2
|
-
[x: string]:
|
|
1
|
+
export declare function getBorderProps(name: string, declaration: any, suffix?: string): {
|
|
2
|
+
[x: string]: any;
|
|
3
3
|
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare type PlainObject = Record<string | number | symbol, any>;
|
|
2
|
+
/**
|
|
3
|
+
* Returns whether the payload is a plain JavaScript object (excluding special classes or objects with other prototypes)
|
|
4
|
+
*
|
|
5
|
+
* @param {*} payload
|
|
6
|
+
* @returns {payload is PlainObject}
|
|
7
|
+
*/
|
|
8
|
+
export declare function isPlainObject(payload: any): payload is PlainObject;
|
package/utils/merge.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
declare type ExpandDeep<T> = T extends Record<string | number | symbol, unknown> ? {
|
|
2
|
+
[K in keyof T]: ExpandDeep<T[K]>;
|
|
3
|
+
} : T extends Array<infer E> ? Array<ExpandDeep<E>> : T;
|
|
4
|
+
export declare function mergeAndConcat<T extends Record<string, any>, Tn extends Record<string, any>[]>(object: T, ...otherObjects: Tn): ExpandDeep<any>;
|
|
5
|
+
export {};
|
package/utils/parse-value.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export declare function parseValue(token: string | number, defaultUnit?: string,
|
|
2
|
-
value:
|
|
1
|
+
export declare function parseValue(token: string | number, defaultUnit?: string, colorsThemesMap?: Record<string, Record<string, Record<string, string>>>, values?: Record<string, string | number>, rootSize?: number, themes?: string[]): {
|
|
2
|
+
value: string;
|
|
3
3
|
unit: string;
|
|
4
4
|
unitToken: string;
|
|
5
|
+
colorMatched?: boolean;
|
|
5
6
|
};
|
package/breakpoints.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["@master/css"]=t():e["@master/css"]=t()}(this,(function(){return e={642:e=>{e.exports={"3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560}}},t={},o=function o(r){var s=t[r];if(void 0!==s)return s.exports;var x=t[r]={exports:{}};return e[r](x,x.exports,o),x.exports}(642),o;var e,t,o}));
|
package/colors.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
!function(f,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["@master/css"]=e():f["@master/css"]=e()}(this,(function(){return f={580:f=>{f.exports={fade:{10:"131518",20:"24262d",30:"363944",40:"4c515f",50:"63697c",60:"878d9f",70:"a6abb8",80:"c3c6cf",90:"f4f4f6"},gray:{10:"151515",20:"242424",30:"39393b",40:"515153",50:"6a6a6c",60:"8d8d8f",70:"aaaaac",80:"c6c6c8",90:"f4f4f6"},brown:{10:"1c130f",20:"31221b",30:"4b3429",40:"6a4a3a",50:"8a604c",60:"af836e",70:"c4a394",80:"d8c2b8",90:"f8f3f1"},orange:{10:"221205",20:"3a1f08",30:"582f0d",40:"7c4312",50:"a15717",60:"d5731e",70:"e79855",80:"efbd92",90:"fcf1e7"},gold:{10:"1e1400",20:"342300",30:"4e3400",40:"6e4900",50:"906000",60:"c08000",70:"e89a00",80:"ffba30",90:"fff3da"},yellow:{10:"1b1500",20:"2f2500",30:"473800",40:"634f00",50:"806700",60:"ac8a00",70:"d0a700",80:"f0c100",90:"fff5ca"},grass:{10:"101803",20:"1c2a05",30:"2a4008",40:"3c5a0b",50:"4e750e",60:"689c13",70:"7dbc17",80:"92da1a",90:"ebfad4"},green:{10:"011a0b",20:"022d13",30:"03441d",40:"055f28",50:"067b34",60:"08a345",70:"0ac553",80:"0be561",90:"d5fde5"},beryl:{10:"001912",20:"002b1f",30:"00432f",40:"005d41",50:"007954",60:"00a170",70:"00c387",80:"00e19c",90:"c9ffee"},teal:{10:"001918",20:"002b28",30:"00413d",40:"005b55",50:"00776f",60:"009f94",70:"00bfb2",80:"00ddce",90:"c5fffb"},cyan:{10:"00181f",20:"002a35",30:"003f51",40:"005973",50:"007391",60:"0099c1",70:"00b9e9",80:"3dd7ff",90:"dff8ff"},sky:{10:"021726",20:"032841",30:"043c61",40:"065489",50:"086eb3",60:"0b92ee",70:"4db3f7",80:"8ccefa",90:"eaf6fe"},blue:{10:"051338",20:"09205e",30:"0d318d",40:"1344c4",50:"175fe9",60:"538cee",70:"81acf3",80:"a5c7fd",90:"edf4fe"},indigo:{10:"161031",20:"24195e",30:"332592",40:"4835cc",50:"5a5bd5",60:"7d84e8",70:"a1a5ee",80:"bfc2f4",90:"f1f2ff"},violet:{10:"1f0839",20:"310e63",30:"491595",40:"641ed2",50:"7949e5",60:"9e77f5",70:"b89bf9",80:"d0bdfb",90:"f5f1ff"},purple:{10:"220736",20:"390c5b",30:"551287",40:"7719bd",50:"9832e4",60:"b56cec",70:"ca96f1",80:"dcbaf6",90:"f9f0ff"},fuchsia:{10:"2b0720",20:"470b3d",30:"68105f",40:"8e1691",50:"b61cbb",60:"e04ee5",70:"ea86ed",80:"f1b1f3",90:"feefff"},pink:{10:"2d0519",20:"4c082b",30:"720c40",40:"9d1059",50:"ca1473",60:"ee52a3",70:"f388c0",80:"f7b2d6",90:"fff0f8"},crimson:{10:"33020f",20:"500317",30:"780522",40:"a20d35",50:"ce1a4b",60:"ea5b82",70:"f58ba7",80:"ffb1c6",90:"fff1f4"},red:{10:"350001",20:"530001",30:"780506",40:"a60708",50:"d11a1e",60:"eb5f63",70:"fa8b8d",80:"fdb3b5",90:"fff1f1"},black:"000000",white:"ffffff"}}},e={},a=function a(c){var b=e[c];if(void 0!==b)return b.exports;var d=e[c]={exports:{}};return f[c](d,d.exports,a),d.exports}(580),a;var f,e,a}));
|
package/sheet.d.ts
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { Style } from './style';
|
|
2
|
-
declare const MutationObserver: {
|
|
3
|
-
new (callback: MutationCallback): MutationObserver;
|
|
4
|
-
prototype: MutationObserver;
|
|
5
|
-
} | ObjectConstructor;
|
|
6
|
-
export declare class StyleSheet extends MutationObserver {
|
|
7
|
-
private container?;
|
|
8
|
-
constructor(container?: Element);
|
|
9
|
-
readonly element: HTMLStyleElement;
|
|
10
|
-
readonly styles: Style[];
|
|
11
|
-
readonly styleOfName: {};
|
|
12
|
-
readonly countOfName: {};
|
|
13
|
-
static root: StyleSheet;
|
|
14
|
-
static Styles: typeof Style[];
|
|
15
|
-
observe(target: Node, options?: MutationObserverInit): this;
|
|
16
|
-
disconnect(): void;
|
|
17
|
-
/**
|
|
18
|
-
* 尋找匹配的 Style 生成實例
|
|
19
|
-
*/
|
|
20
|
-
static findAndNew(name: string): Style | Style[];
|
|
21
|
-
/**
|
|
22
|
-
* 尋找匹配的 Style
|
|
23
|
-
*/
|
|
24
|
-
static find(name: string): typeof Style | (typeof Style)[];
|
|
25
|
-
/**
|
|
26
|
-
* 全部 sheet 根據目前蒐集到的所有 DOM class 重新 findAndNew
|
|
27
|
-
*/
|
|
28
|
-
static refresh(): void;
|
|
29
|
-
/**
|
|
30
|
-
* 根據目前蒐集到的所有 DOM class 重新 findAndNew
|
|
31
|
-
*/
|
|
32
|
-
refresh(): void;
|
|
33
|
-
destroy(): void;
|
|
34
|
-
/**
|
|
35
|
-
* 1. where
|
|
36
|
-
* 2. normal
|
|
37
|
-
* 3. where selectors
|
|
38
|
-
* 4. normal selectors
|
|
39
|
-
* 5. media where
|
|
40
|
-
* 6. media normal
|
|
41
|
-
* 7. media selectors
|
|
42
|
-
* 8. media width where
|
|
43
|
-
* 9. media width
|
|
44
|
-
* 10. media width selectors
|
|
45
|
-
*/
|
|
46
|
-
insert(style: Style): void;
|
|
47
|
-
delete(className: string): void;
|
|
48
|
-
findAndInsert(className: string): void;
|
|
49
|
-
}
|
|
50
|
-
declare global {
|
|
51
|
-
interface Window {
|
|
52
|
-
MasterStyleSheet: typeof StyleSheet;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
export {};
|
package/style.d.ts
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { StyleMedia } from './interfaces/style-media';
|
|
2
|
-
import { StyleSheet } from './sheet';
|
|
3
|
-
export interface StyleMatching {
|
|
4
|
-
origin: 'matches' | 'semantics' | 'symbol';
|
|
5
|
-
value?: string;
|
|
6
|
-
}
|
|
7
|
-
export declare const sheets: StyleSheet[];
|
|
8
|
-
export declare class Style {
|
|
9
|
-
readonly name: string;
|
|
10
|
-
readonly matching?: StyleMatching;
|
|
11
|
-
readonly prefix: string;
|
|
12
|
-
readonly symbol: string;
|
|
13
|
-
readonly value: any | {
|
|
14
|
-
[key: string]: string;
|
|
15
|
-
};
|
|
16
|
-
readonly token: string;
|
|
17
|
-
readonly prefixSelector: string;
|
|
18
|
-
readonly suffixSelector: string;
|
|
19
|
-
readonly important: boolean;
|
|
20
|
-
readonly media: StyleMedia;
|
|
21
|
-
readonly at: Record<string, string>;
|
|
22
|
-
readonly direction: string;
|
|
23
|
-
readonly colorScheme: string;
|
|
24
|
-
readonly unit: string;
|
|
25
|
-
readonly unitToken: string;
|
|
26
|
-
readonly text: string;
|
|
27
|
-
readonly hasWhere: boolean;
|
|
28
|
-
readonly prioritySelectorIndex: number;
|
|
29
|
-
cssRule: CSSRule;
|
|
30
|
-
static id: string;
|
|
31
|
-
static key: string;
|
|
32
|
-
static matches: RegExp;
|
|
33
|
-
static colorStarts: string;
|
|
34
|
-
static symbol: string;
|
|
35
|
-
static unit: string;
|
|
36
|
-
static colorful: boolean;
|
|
37
|
-
static rootSize: number;
|
|
38
|
-
static readonly values: Record<string, any>;
|
|
39
|
-
static readonly semantics: {
|
|
40
|
-
[key: string]: any;
|
|
41
|
-
};
|
|
42
|
-
static readonly breakpoints: {
|
|
43
|
-
[key: string]: number;
|
|
44
|
-
};
|
|
45
|
-
static readonly mediaQueries: {
|
|
46
|
-
[key: string]: string;
|
|
47
|
-
};
|
|
48
|
-
static readonly sheets: StyleSheet[];
|
|
49
|
-
static readonly colors: Record<string, any>;
|
|
50
|
-
static readonly classes: Record<string, string | string[]>;
|
|
51
|
-
static readonly colorNames: string[];
|
|
52
|
-
static readonly relations: Record<string, string[]>;
|
|
53
|
-
static readonly colorSchemes: string[];
|
|
54
|
-
static match(name: string): StyleMatching;
|
|
55
|
-
constructor(name: string, matching?: StyleMatching);
|
|
56
|
-
static extend(property: 'classes' | 'breakpoints' | 'colors' | 'mediaQueries', ...settings: Record<string, any>[]): typeof Style;
|
|
57
|
-
}
|
|
58
|
-
export interface Style {
|
|
59
|
-
readonly parseValue?: any;
|
|
60
|
-
readonly props?: {
|
|
61
|
-
[key: string]: any;
|
|
62
|
-
};
|
|
63
|
-
readonly order?: number;
|
|
64
|
-
}
|
|
65
|
-
declare global {
|
|
66
|
-
interface Window {
|
|
67
|
-
MasterStyle: typeof Style;
|
|
68
|
-
}
|
|
69
|
-
}
|