@master/css 2.0.0-rc.69 → 2.0.0-rc.70
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 +6 -8
- package/dist/index.d.ts +2 -40
- package/dist/index.mjs +1 -42
- package/package.json +1 -1
- package/src/base.css +1 -0
- package/src/index.css +1 -0
- package/src/theme.css +1 -0
- package/src/utilities.css +1 -0
- package/src/variants.css +1 -0
- package/dist/_virtual/_commonjsHelpers.cjs +0 -10
- package/dist/_virtual/_commonjsHelpers.mjs +0 -7
- package/dist/_virtual/css-escape.cjs +0 -5
- package/dist/_virtual/css-escape.mjs +0 -3
- package/dist/animation-rule.cjs +0 -24
- package/dist/animation-rule.d.ts +0 -11
- package/dist/animation-rule.mjs +0 -22
- package/dist/bin/index.cjs +0 -11
- package/dist/bin/index.d.ts +0 -1
- package/dist/bin/index.mjs +0 -9
- package/dist/common.cjs +0 -208
- package/dist/common.d.ts +0 -40
- package/dist/common.mjs +0 -180
- package/dist/config/animations.cjs +0 -113
- package/dist/config/animations.d.ts +0 -110
- package/dist/config/animations.mjs +0 -111
- package/dist/config/at.cjs +0 -19
- package/dist/config/at.d.ts +0 -16
- package/dist/config/at.mjs +0 -17
- package/dist/config/functions.cjs +0 -141
- package/dist/config/functions.d.ts +0 -138
- package/dist/config/functions.mjs +0 -139
- package/dist/config/index.cjs +0 -40
- package/dist/config/index.d.ts +0 -12
- package/dist/config/index.mjs +0 -29
- package/dist/config/modes.cjs +0 -312
- package/dist/config/modes.d.ts +0 -309
- package/dist/config/modes.mjs +0 -310
- package/dist/config/rules.cjs +0 -2277
- package/dist/config/rules.d.ts +0 -1485
- package/dist/config/rules.mjs +0 -2275
- package/dist/config/screens.cjs +0 -17
- package/dist/config/screens.d.ts +0 -14
- package/dist/config/screens.mjs +0 -15
- package/dist/config/selectors.cjs +0 -25
- package/dist/config/selectors.d.ts +0 -22
- package/dist/config/selectors.mjs +0 -23
- package/dist/config/utilities.cjs +0 -446
- package/dist/config/utilities.d.ts +0 -443
- package/dist/config/utilities.mjs +0 -444
- package/dist/config/variables.cjs +0 -99
- package/dist/config/variables.d.ts +0 -423
- package/dist/config/variables.mjs +0 -97
- package/dist/core.cjs +0 -674
- package/dist/core.d.ts +0 -128
- package/dist/core.mjs +0 -672
- package/dist/create.cjs +0 -10
- package/dist/create.d.ts +0 -3
- package/dist/create.mjs +0 -8
- package/dist/declarers/core.group.cjs +0 -99
- package/dist/declarers/core.group.d.ts +0 -2
- package/dist/declarers/core.group.mjs +0 -97
- package/dist/declarers/core.variable.cjs +0 -9
- package/dist/declarers/core.variable.d.ts +0 -4
- package/dist/declarers/core.variable.mjs +0 -7
- package/dist/declarers/index.cjs +0 -13
- package/dist/declarers/index.d.ts +0 -10
- package/dist/declarers/index.mjs +0 -11
- package/dist/declarers/pair.cjs +0 -12
- package/dist/declarers/pair.d.ts +0 -4
- package/dist/declarers/pair.mjs +0 -10
- package/dist/factories/with-syntax-layer.cjs +0 -83
- package/dist/factories/with-syntax-layer.d.ts +0 -26
- package/dist/factories/with-syntax-layer.mjs +0 -81
- package/dist/function-transformers/core.calc.cjs +0 -225
- package/dist/function-transformers/core.calc.d.ts +0 -2
- package/dist/function-transformers/core.calc.mjs +0 -223
- package/dist/function-transformers/core.variable.cjs +0 -23
- package/dist/function-transformers/core.variable.d.ts +0 -7
- package/dist/function-transformers/core.variable.mjs +0 -21
- package/dist/function-transformers/index.cjs +0 -11
- package/dist/function-transformers/index.d.ts +0 -8
- package/dist/function-transformers/index.mjs +0 -9
- package/dist/index.cjs +0 -118
- package/dist/layer.cjs +0 -52
- package/dist/layer.d.ts +0 -16
- package/dist/layer.mjs +0 -50
- package/dist/non-layer.cjs +0 -55
- package/dist/non-layer.d.ts +0 -12
- package/dist/non-layer.mjs +0 -53
- package/dist/polyfills/css-escape.cjs +0 -9
- package/dist/polyfills/css-escape.d.ts +0 -0
- package/dist/polyfills/css-escape.mjs +0 -7
- package/dist/polyfills/css-escape2.cjs +0 -76
- package/dist/polyfills/css-escape2.mjs +0 -74
- package/dist/register-global.cjs +0 -7
- package/dist/register-global.d.ts +0 -5
- package/dist/register-global.mjs +0 -5
- package/dist/rule.cjs +0 -16
- package/dist/rule.d.ts +0 -7
- package/dist/rule.mjs +0 -14
- package/dist/shared/utils/css-escape.cjs +0 -56
- package/dist/shared/utils/css-escape.mjs +0 -54
- package/dist/shared/utils/find-native-css-rule-index.cjs +0 -12
- package/dist/shared/utils/find-native-css-rule-index.mjs +0 -10
- package/dist/syntax-layer.cjs +0 -8
- package/dist/syntax-layer.d.ts +0 -18
- package/dist/syntax-layer.mjs +0 -6
- package/dist/syntax-rule-type.cjs +0 -27
- package/dist/syntax-rule-type.d.ts +0 -28
- package/dist/syntax-rule-type.mjs +0 -25
- package/dist/syntax-rule.cjs +0 -506
- package/dist/syntax-rule.d.ts +0 -44
- package/dist/syntax-rule.mjs +0 -504
- package/dist/transformers/auto-fill-solid.cjs +0 -31
- package/dist/transformers/auto-fill-solid.d.ts +0 -2
- package/dist/transformers/auto-fill-solid.mjs +0 -29
- package/dist/transformers/index.cjs +0 -9
- package/dist/transformers/index.d.ts +0 -6
- package/dist/transformers/index.mjs +0 -7
- package/dist/types/common.cjs +0 -2
- package/dist/types/common.d.ts +0 -1
- package/dist/types/common.mjs +0 -1
- package/dist/types/config.cjs +0 -2
- package/dist/types/config.d.ts +0 -79
- package/dist/types/config.mjs +0 -1
- package/dist/types/syntax.cjs +0 -2
- package/dist/types/syntax.d.ts +0 -89
- package/dist/types/syntax.mjs +0 -1
- package/dist/utils/compare-rule-priority.cjs +0 -143
- package/dist/utils/compare-rule-priority.d.ts +0 -7
- package/dist/utils/compare-rule-priority.mjs +0 -138
- package/dist/utils/equal-at-rules.cjs +0 -22
- package/dist/utils/equal-at-rules.d.ts +0 -2
- package/dist/utils/equal-at-rules.mjs +0 -20
- package/dist/utils/equal-declarations.cjs +0 -10
- package/dist/utils/equal-declarations.d.ts +0 -2
- package/dist/utils/equal-declarations.mjs +0 -8
- package/dist/utils/equal-selectors.cjs +0 -69
- package/dist/utils/equal-selectors.d.ts +0 -2
- package/dist/utils/equal-selectors.mjs +0 -67
- package/dist/utils/equal-variants.cjs +0 -10
- package/dist/utils/equal-variants.d.ts +0 -2
- package/dist/utils/equal-variants.mjs +0 -8
- package/dist/utils/extend-config.cjs +0 -97
- package/dist/utils/extend-config.d.ts +0 -11
- package/dist/utils/extend-config.mjs +0 -95
- package/dist/utils/flatten-meta-object.cjs +0 -38
- package/dist/utils/flatten-meta-object.d.ts +0 -13
- package/dist/utils/flatten-meta-object.mjs +0 -36
- package/dist/utils/flatten-object.cjs +0 -19
- package/dist/utils/flatten-object.d.ts +0 -1
- package/dist/utils/flatten-object.mjs +0 -17
- package/dist/utils/generate-at.cjs +0 -30
- package/dist/utils/generate-at.d.ts +0 -2
- package/dist/utils/generate-at.mjs +0 -28
- package/dist/utils/generate-css.cjs +0 -13
- package/dist/utils/generate-css.d.ts +0 -1
- package/dist/utils/generate-css.mjs +0 -11
- package/dist/utils/generate-selector.cjs +0 -50
- package/dist/utils/generate-selector.d.ts +0 -2
- package/dist/utils/generate-selector.mjs +0 -48
- package/dist/utils/get-single-at-number-rule-node.cjs +0 -9
- package/dist/utils/get-single-at-number-rule-node.d.ts +0 -2
- package/dist/utils/get-single-at-number-rule-node.mjs +0 -7
- package/dist/utils/hex-to-rgb.cjs +0 -30
- package/dist/utils/hex-to-rgb.d.ts +0 -1
- package/dist/utils/hex-to-rgb.mjs +0 -28
- package/dist/utils/is-core-rule.cjs +0 -9
- package/dist/utils/is-core-rule.d.ts +0 -1
- package/dist/utils/is-core-rule.mjs +0 -7
- package/dist/utils/minify-extended-config.cjs +0 -64
- package/dist/utils/minify-extended-config.d.ts +0 -9
- package/dist/utils/minify-extended-config.mjs +0 -62
- package/dist/utils/nest-meta-object.cjs +0 -25
- package/dist/utils/nest-meta-object.d.ts +0 -7
- package/dist/utils/nest-meta-object.mjs +0 -23
- package/dist/utils/parse-at.cjs +0 -156
- package/dist/utils/parse-at.d.ts +0 -39
- package/dist/utils/parse-at.mjs +0 -154
- package/dist/utils/parse-pair.cjs +0 -48
- package/dist/utils/parse-pair.d.ts +0 -8
- package/dist/utils/parse-pair.mjs +0 -46
- package/dist/utils/parse-selector.cjs +0 -114
- package/dist/utils/parse-selector.d.ts +0 -19
- package/dist/utils/parse-selector.mjs +0 -112
- package/dist/utils/parse-value.cjs +0 -39
- package/dist/utils/parse-value.d.ts +0 -2
- package/dist/utils/parse-value.mjs +0 -37
- package/dist/utils/replace-char-outside-quotes.cjs +0 -21
- package/dist/utils/replace-char-outside-quotes.d.ts +0 -1
- package/dist/utils/replace-char-outside-quotes.mjs +0 -19
- package/dist/utils/sort-readable-classes.cjs +0 -86
- package/dist/utils/sort-readable-classes.d.ts +0 -7
- package/dist/utils/sort-readable-classes.mjs +0 -84
- package/dist/utils/split-char-outside-quotes.cjs +0 -29
- package/dist/utils/split-char-outside-quotes.d.ts +0 -1
- package/dist/utils/split-char-outside-quotes.mjs +0 -27
- package/dist/variable-rule.cjs +0 -92
- package/dist/variable-rule.d.ts +0 -33
- package/dist/variable-rule.mjs +0 -87
package/README.md
CHANGED
|
@@ -48,22 +48,20 @@
|
|
|
48
48
|
<img alt="Follow @mastercorg" src="https://img.shields.io/static/v1?label=%20&message=twitter&color=f6f7f8&logo=twitter&style=for-the-badge">
|
|
49
49
|
</picture>
|
|
50
50
|
</a>
|
|
51
|
-
<a aria-label="Github Actions" href="https://github.com/master-co/css/actions/workflows/release.yml">
|
|
51
|
+
<a aria-label="Github Actions" href="https://github.com/master-co/css/actions/workflows/ci-release.yml">
|
|
52
52
|
<picture>
|
|
53
|
-
<source media="(prefers-color-scheme: dark)" srcset="https://img.shields.io/github/actions/workflow/status/master-co/css/release.yml?branch=rc&label=%20&message=twitter&color=212022&logo=githubactions&style=for-the-badge">
|
|
54
|
-
<source media="(prefers-color-scheme: light)" srcset="https://img.shields.io/github/actions/workflow/status/master-co/css/release.yml?branch=rc&label=%20&message=twitter&color=f6f7f8&logo=githubactions&style=for-the-badge&logoColor=%23000">
|
|
55
|
-
<img alt="Github release actions" src="https://img.shields.io/github/actions/workflow/status/master-co/css/release.yml?branch=rc&label=%20&message=twitter&color=f6f7f8&logo=githubactions&style=for-the-badge&logoColor=%23000">
|
|
53
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://img.shields.io/github/actions/workflow/status/master-co/css/ci-release.yml?branch=rc&label=%20&message=twitter&color=212022&logo=githubactions&style=for-the-badge">
|
|
54
|
+
<source media="(prefers-color-scheme: light)" srcset="https://img.shields.io/github/actions/workflow/status/master-co/css/ci-release.yml?branch=rc&label=%20&message=twitter&color=f6f7f8&logo=githubactions&style=for-the-badge&logoColor=%23000">
|
|
55
|
+
<img alt="Github release actions" src="https://img.shields.io/github/actions/workflow/status/master-co/css/ci-release.yml?branch=rc&label=%20&message=twitter&color=f6f7f8&logo=githubactions&style=for-the-badge&logoColor=%23000">
|
|
56
56
|
</picture>
|
|
57
57
|
</a>
|
|
58
58
|
</p>
|
|
59
59
|
|
|
60
60
|
</div>
|
|
61
61
|
|
|
62
|
-
##
|
|
63
|
-
Visit [rc.css.master.co](https://rc.css.master.co) to view the full documentation.
|
|
62
|
+
## Getting started
|
|
64
63
|
|
|
65
|
-
|
|
66
|
-
Check out the [official guides](https://rc.css.master.co/docs) to get started with Master CSS.
|
|
64
|
+
Read the [installation guide](https://rc.css.master.co/guide/installation) to set up Master CSS for an application.
|
|
67
65
|
|
|
68
66
|
## Community
|
|
69
67
|
The Master CSS community can be found here:
|
package/dist/index.d.ts
CHANGED
|
@@ -1,40 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export * from './core';
|
|
4
|
-
export * from './syntax-rule';
|
|
5
|
-
export * from './rule';
|
|
6
|
-
export { default as Layer } from './layer';
|
|
7
|
-
export { default as SyntaxLayer } from './syntax-layer';
|
|
8
|
-
export { default as NonLayer } from './non-layer';
|
|
9
|
-
export { default as SyntaxRuleType } from './syntax-rule-type';
|
|
10
|
-
export { default as VariableRule } from './variable-rule';
|
|
11
|
-
export { default as AnimationRule } from './animation-rule';
|
|
12
|
-
export { default as createCSS } from './create';
|
|
13
|
-
export * from './types/config';
|
|
14
|
-
export * from './types/syntax';
|
|
15
|
-
export * from './types/common';
|
|
16
|
-
export { default as withSyntaxLayer } from './factories/with-syntax-layer';
|
|
17
|
-
export { default as extendConfig } from './utils/extend-config';
|
|
18
|
-
export { default as sortReadableClasses } from './utils/sort-readable-classes';
|
|
19
|
-
export { default as equalAtRules } from './utils/equal-at-rules';
|
|
20
|
-
export { default as equalSelectors } from './utils/equal-selectors';
|
|
21
|
-
export { default as equalVariants } from './utils/equal-variants';
|
|
22
|
-
export { default as equalDeclarations } from './utils/equal-declarations';
|
|
23
|
-
export { default as generateCSS } from './utils/generate-css';
|
|
24
|
-
export { default as isCoreRule } from './utils/is-core-rule';
|
|
25
|
-
export { default as parsePair } from './utils/parse-pair';
|
|
26
|
-
export { default as parseValue } from './utils/parse-value';
|
|
27
|
-
export { default as parseAt } from './utils/parse-at';
|
|
28
|
-
export { default as generateAt } from './utils/generate-at';
|
|
29
|
-
export { default as parseSelector } from './utils/parse-selector';
|
|
30
|
-
export { default as generateSelector } from './utils/generate-selector';
|
|
31
|
-
export { default as getSingleAtNumberRuleNode } from './utils/get-single-at-number-rule-node';
|
|
32
|
-
export { default as compareRulePriority } from './utils/compare-rule-priority';
|
|
33
|
-
export { default as flattenObject } from './utils/flatten-object';
|
|
34
|
-
export { default as flattenMetaObject } from './utils/flatten-meta-object';
|
|
35
|
-
export { default as nestMetaObject } from './utils/nest-meta-object';
|
|
36
|
-
export { default as minifyExtendedConfig } from './utils/minify-extended-config';
|
|
37
|
-
export type * from './utils/parse-at';
|
|
38
|
-
export type * from './utils/parse-selector';
|
|
39
|
-
export type * from './utils/extend-config';
|
|
40
|
-
export { default as MasterCSS, default } from './core';
|
|
1
|
+
export { default, MasterCSS, Layer, ThemeLayer, UtilityLayer, NonLayer, Rule, VariableRule, AnimationRule, compareRulePriority, createHydrationManifest } from '@master/css-engine';
|
|
2
|
+
export type { CompiledUtility, GeneratedRule, MasterCSSGeneratedRuleIR, MasterCSSCreateOptions, MasterCSSOptions, MasterCSSManifest, MasterCSSManifestSettings, MasterCSSManifestUtility, MasterCSSManifestUtilityLayerName, MasterCSSManifestVariant, MasterCSSManifestVariable, MasterCSSManifestVariableNumericValue, MasterCSSEmittedGlobals, MasterCSSHydrationManifest, NativeCSSDeclaration, NativeCSSDeclarationMatcher } from '@master/css-engine';
|
package/dist/index.mjs
CHANGED
|
@@ -1,42 +1 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export { ANIMATION_SIGN, AT_COMPARABLE_FEATURES, AT_COMPARISON_OPERATORS, AT_IDENTIFIERS, AT_LOGICAL_OPERATORS, AT_SIGN, BASE_UNIT_REGEX, BORDER_STYLE_VALUES, CLASS_ATTRIBUTES, CLASS_DECLARATIONS, CLASS_FUNCTIONS, COLOR_VALUE_REGEX, COMPARISION_OPERATORS, DELIMITER_SIGN, IMAGE_VALUE_REGEX, NUMBER_VALUE_REGEX, QUERY_COMPARISON_OPERATORS, QUERY_LOGICAL_OPERATORS, SELECTOR_COMBINATORS, SELECTOR_SIGNS, SEPARATOR_SIGN, SEPARATOR_SIGNS, TRANSITION_SIGN, UNIT_REGEX, VALUE_DELIMITERS, VALUE_UNITS, __UNSORTED__ } from './common.mjs';
|
|
3
|
-
export { default as MasterCSS, default } from './core.mjs';
|
|
4
|
-
export { SyntaxRule } from './syntax-rule.mjs';
|
|
5
|
-
export { Rule } from './rule.mjs';
|
|
6
|
-
export { default as Layer } from './layer.mjs';
|
|
7
|
-
export { default as SyntaxLayer } from './syntax-layer.mjs';
|
|
8
|
-
export { default as NonLayer } from './non-layer.mjs';
|
|
9
|
-
export { default as SyntaxRuleType } from './syntax-rule-type.mjs';
|
|
10
|
-
export { default as VariableRule } from './variable-rule.mjs';
|
|
11
|
-
export { default as AnimationRule } from './animation-rule.mjs';
|
|
12
|
-
export { default as createCSS } from './create.mjs';
|
|
13
|
-
export { default as withSyntaxLayer } from './factories/with-syntax-layer.mjs';
|
|
14
|
-
export { default as extendConfig } from './utils/extend-config.mjs';
|
|
15
|
-
export { default as sortReadableClasses } from './utils/sort-readable-classes.mjs';
|
|
16
|
-
export { default as equalAtRules } from './utils/equal-at-rules.mjs';
|
|
17
|
-
export { default as equalSelectors } from './utils/equal-selectors.mjs';
|
|
18
|
-
export { default as equalVariants } from './utils/equal-variants.mjs';
|
|
19
|
-
export { default as equalDeclarations } from './utils/equal-declarations.mjs';
|
|
20
|
-
export { default as generateCSS } from './utils/generate-css.mjs';
|
|
21
|
-
export { default as isCoreRule } from './utils/is-core-rule.mjs';
|
|
22
|
-
export { default as parsePair } from './utils/parse-pair.mjs';
|
|
23
|
-
export { default as parseValue } from './utils/parse-value.mjs';
|
|
24
|
-
export { default as parseAt } from './utils/parse-at.mjs';
|
|
25
|
-
export { default as generateAt } from './utils/generate-at.mjs';
|
|
26
|
-
export { default as parseSelector } from './utils/parse-selector.mjs';
|
|
27
|
-
export { default as generateSelector } from './utils/generate-selector.mjs';
|
|
28
|
-
export { default as getSingleAtNumberRuleNode } from './utils/get-single-at-number-rule-node.mjs';
|
|
29
|
-
export { default as compareRulePriority } from './utils/compare-rule-priority.mjs';
|
|
30
|
-
export { default as flattenObject } from './utils/flatten-object.mjs';
|
|
31
|
-
export { default as flattenMetaObject } from './utils/flatten-meta-object.mjs';
|
|
32
|
-
export { default as nestMetaObject } from './utils/nest-meta-object.mjs';
|
|
33
|
-
export { default as minifyExtendedConfig } from './utils/minify-extended-config.mjs';
|
|
34
|
-
export { default as at } from './config/at.mjs';
|
|
35
|
-
export { default as selectors } from './config/selectors.mjs';
|
|
36
|
-
export { default as utilities } from './config/utilities.mjs';
|
|
37
|
-
export { default as rules } from './config/rules.mjs';
|
|
38
|
-
export { default as functions } from './config/functions.mjs';
|
|
39
|
-
export { default as animations } from './config/animations.mjs';
|
|
40
|
-
export { default as variables } from './config/variables.mjs';
|
|
41
|
-
export { default as modes } from './config/modes.mjs';
|
|
42
|
-
export { default as screens } from './config/screens.mjs';
|
|
1
|
+
export { AnimationRule, Layer, MasterCSS, NonLayer, Rule, ThemeLayer, UtilityLayer, VariableRule, compareRulePriority, createHydrationManifest, default } from '@master/css-engine';
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@master/css","type":"module","scripts":{"build":"techor build \"src/**/*.ts\"","dev":"pnpm build --watch","test":"vitest","bench":"vitest bench","type-check":"tsc --noEmit","lint":"eslint"},"license":"MIT","description":"The CSS language and framework for rapidly building modern and high-performance websites","author":"Aoyue Design LLC.","funding":"https://rc.css.master.co/sponsor","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/core"},"keywords":["style","styles","html","variants","virtual","virtual-css","utility","css","ui","lightweight","class","webpack","plugin","integration","vite","parcel","build-tools","mastercss"],"sideEffects":
|
|
1
|
+
{"name":"@master/css","type":"module","scripts":{"build":"techor build \"src/**/*.ts\" --formats esm","dev":"pnpm build --watch","test":"vitest","bench":"vitest bench","type-check":"tsc --noEmit","lint":"eslint"},"license":"MIT","description":"The CSS language and framework for rapidly building modern and high-performance websites","author":"Aoyue Design LLC.","funding":"https://rc.css.master.co/sponsor","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/core"},"keywords":["style","styles","html","variants","virtual","virtual-css","utility","css","ui","lightweight","class","webpack","plugin","integration","vite","parcel","build-tools","mastercss"],"sideEffects":["./src/*.css"],"main":"./dist/index.mjs","jsnext:main":"./dist/index.mjs","esnext":"./dist/index.mjs","module":"./dist/index.mjs","style":"./src/index.css","types":"./dist/index.d.ts","exports":{".":{"style":"./src/index.css","types":"./dist/index.d.ts","import":"./dist/index.mjs","default":"./dist/index.mjs"},"./index.css":"./src/index.css","./base.css":"./src/base.css","./theme.css":"./src/theme.css","./variants.css":"./src/variants.css","./utilities.css":"./src/utilities.css"},"files":["dist","src/*.css"],"publishConfig":{"access":"public","provenance":true},"dependencies":{"@master/css-engine":"^2.0.0-rc.70","@master/css-preset":"^2.0.0-rc.70"},"version":"2.0.0-rc.70"}
|
package/src/base.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import "@master/css-preset/base.css";
|
package/src/index.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import "@master/css-preset";
|
package/src/theme.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import "@master/css-preset/theme.css";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import "@master/css-preset/utilities.css";
|
package/src/variants.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import "@master/css-preset/variants.css";
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
4
|
-
|
|
5
|
-
function getDefaultExportFromCjs (x) {
|
|
6
|
-
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
exports.commonjsGlobal = commonjsGlobal;
|
|
10
|
-
exports.getDefaultExportFromCjs = getDefaultExportFromCjs;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
2
|
-
|
|
3
|
-
function getDefaultExportFromCjs (x) {
|
|
4
|
-
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
export { commonjsGlobal, getDefaultExportFromCjs };
|
package/dist/animation-rule.cjs
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
class AnimationRule {
|
|
4
|
-
name;
|
|
5
|
-
keyframes;
|
|
6
|
-
css;
|
|
7
|
-
native;
|
|
8
|
-
constructor(name, keyframes, css){
|
|
9
|
-
this.name = name;
|
|
10
|
-
this.keyframes = keyframes;
|
|
11
|
-
this.css = css;
|
|
12
|
-
}
|
|
13
|
-
get key() {
|
|
14
|
-
return this.name;
|
|
15
|
-
}
|
|
16
|
-
get text() {
|
|
17
|
-
return `@keyframes ${this.name}{` + Object.entries(this.keyframes).reduce((acc, [key, variables])=>{
|
|
18
|
-
const variableText = Object.entries(variables).map(([name, value])=>`${name}:${value}`).join(';');
|
|
19
|
-
return acc + `${key}{${variableText}}`;
|
|
20
|
-
}, '') + '}';
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
module.exports = AnimationRule;
|
package/dist/animation-rule.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import MasterCSS from './core';
|
|
2
|
-
import { AnimationDefinitions } from './types/config';
|
|
3
|
-
export default class AnimationRule {
|
|
4
|
-
readonly name: string;
|
|
5
|
-
readonly keyframes: AnimationDefinitions;
|
|
6
|
-
readonly css: MasterCSS;
|
|
7
|
-
native?: CSSKeyframeRule;
|
|
8
|
-
constructor(name: string, keyframes: AnimationDefinitions, css: MasterCSS);
|
|
9
|
-
get key(): string;
|
|
10
|
-
get text(): string;
|
|
11
|
-
}
|
package/dist/animation-rule.mjs
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
class AnimationRule {
|
|
2
|
-
name;
|
|
3
|
-
keyframes;
|
|
4
|
-
css;
|
|
5
|
-
native;
|
|
6
|
-
constructor(name, keyframes, css){
|
|
7
|
-
this.name = name;
|
|
8
|
-
this.keyframes = keyframes;
|
|
9
|
-
this.css = css;
|
|
10
|
-
}
|
|
11
|
-
get key() {
|
|
12
|
-
return this.name;
|
|
13
|
-
}
|
|
14
|
-
get text() {
|
|
15
|
-
return `@keyframes ${this.name}{` + Object.entries(this.keyframes).reduce((acc, [key, variables])=>{
|
|
16
|
-
const variableText = Object.entries(variables).map(([name, value])=>`${name}:${value}`).join(';');
|
|
17
|
-
return acc + `${key}{${variableText}}`;
|
|
18
|
-
}, '') + '}';
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export { AnimationRule as default };
|
package/dist/bin/index.cjs
DELETED
package/dist/bin/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/bin/index.mjs
DELETED
package/dist/common.cjs
DELETED
|
@@ -1,208 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const VALUE_DELIMITERS = {
|
|
4
|
-
'(': ')',
|
|
5
|
-
'\'': '\'',
|
|
6
|
-
'"': '"',
|
|
7
|
-
'{': '}'
|
|
8
|
-
};
|
|
9
|
-
const BASE_UNIT_REGEX = /^([+-]?(?:\d+(?:\.?\d+)?|\.\d+))x$/m // 1x, 1.1x, -1x, -.1x
|
|
10
|
-
;
|
|
11
|
-
const TRANSITION_SIGN = '~';
|
|
12
|
-
const ANIMATION_SIGN = '@';
|
|
13
|
-
const SELECTOR_SIGNS = [
|
|
14
|
-
':',
|
|
15
|
-
'_',
|
|
16
|
-
'>',
|
|
17
|
-
'+',
|
|
18
|
-
'~'
|
|
19
|
-
];
|
|
20
|
-
const SELECTOR_COMBINATORS = [
|
|
21
|
-
'_',
|
|
22
|
-
'>',
|
|
23
|
-
'+',
|
|
24
|
-
'~'
|
|
25
|
-
];
|
|
26
|
-
const QUERY_COMPARISON_OPERATORS = [
|
|
27
|
-
'>',
|
|
28
|
-
'<',
|
|
29
|
-
'='
|
|
30
|
-
];
|
|
31
|
-
const QUERY_LOGICAL_OPERATORS = [
|
|
32
|
-
'&'
|
|
33
|
-
];
|
|
34
|
-
const SEPARATOR_SIGNS = [
|
|
35
|
-
',',
|
|
36
|
-
'|'
|
|
37
|
-
];
|
|
38
|
-
const DELIMITER_SIGN = '|';
|
|
39
|
-
const SEPARATOR_SIGN = ',';
|
|
40
|
-
const AT_SIGN = '@';
|
|
41
|
-
const VALUE_UNITS = [
|
|
42
|
-
'%',
|
|
43
|
-
'cm',
|
|
44
|
-
'mm',
|
|
45
|
-
'q',
|
|
46
|
-
'in',
|
|
47
|
-
'pt',
|
|
48
|
-
'pc',
|
|
49
|
-
'px',
|
|
50
|
-
'em',
|
|
51
|
-
'rem',
|
|
52
|
-
'ex',
|
|
53
|
-
'rex',
|
|
54
|
-
'cap',
|
|
55
|
-
'rcap',
|
|
56
|
-
'ch',
|
|
57
|
-
'rch',
|
|
58
|
-
'ic',
|
|
59
|
-
'ric',
|
|
60
|
-
'lh',
|
|
61
|
-
'rlh',
|
|
62
|
-
'vw',
|
|
63
|
-
'svw',
|
|
64
|
-
'lvw',
|
|
65
|
-
'dvw',
|
|
66
|
-
'vh',
|
|
67
|
-
'svh',
|
|
68
|
-
'lvh',
|
|
69
|
-
'dvh',
|
|
70
|
-
'vi',
|
|
71
|
-
'svi',
|
|
72
|
-
'lvi',
|
|
73
|
-
'dvi',
|
|
74
|
-
'vb',
|
|
75
|
-
'svb',
|
|
76
|
-
'lvb',
|
|
77
|
-
'dvb',
|
|
78
|
-
'vmin',
|
|
79
|
-
'svmin',
|
|
80
|
-
'lvmin',
|
|
81
|
-
'dvmin',
|
|
82
|
-
'vmax',
|
|
83
|
-
'svmax',
|
|
84
|
-
'lvmax',
|
|
85
|
-
'dvmax',
|
|
86
|
-
'cqw',
|
|
87
|
-
'cqh',
|
|
88
|
-
'cqi',
|
|
89
|
-
'cqb',
|
|
90
|
-
'cqmin',
|
|
91
|
-
'cqmax',
|
|
92
|
-
'deg',
|
|
93
|
-
'grad',
|
|
94
|
-
'rad',
|
|
95
|
-
'turn',
|
|
96
|
-
's',
|
|
97
|
-
'ms',
|
|
98
|
-
'hz',
|
|
99
|
-
'khz',
|
|
100
|
-
'dpi',
|
|
101
|
-
'dpcm',
|
|
102
|
-
'dppx',
|
|
103
|
-
'x',
|
|
104
|
-
'fr',
|
|
105
|
-
'db',
|
|
106
|
-
'st'
|
|
107
|
-
];
|
|
108
|
-
const UNIT_REGEX = /^([+-.]?\d+(?:\.?\d+)?)(%|cm|mm|q|in|pt|pc|px|em|rem|ex|rex|cap|rcap|ch|rch|ic|ric|lh|rlh|vw|svw|lvw|dvw|vh|svh|lvh|dvh|vi|svi|lvi|dvi|vb|svb|lvb|dvb|vmin|svmin|lvmin|dvmin|vmax|svmax|lvmax|dvmax|cqw|cqh|cqi|cqb|cqmin|cqmax|deg|grad|rad|turn|s|ms|hz|khz|dpi|dpcm|dppx|x|fr|db|st)?$/;
|
|
109
|
-
const IMAGE_VALUE_REGEX = /(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\(.*\)/;
|
|
110
|
-
const COLOR_VALUE_REGEX = /(?:#|(?:color|color-contrast|color-mix|hwb|lab|lch|oklab|oklch|rgb|rgba|hsl|hsla|light-dark)\(.*\)|(?:\$colors)(?![a-zA-Z0-9-]))/;
|
|
111
|
-
const NUMBER_VALUE_REGEX = /(?:[\d.]|(?:max|min|calc|clamp)\([^|]*\))/;
|
|
112
|
-
const CLASS_ATTRIBUTES = [
|
|
113
|
-
'class',
|
|
114
|
-
'className'
|
|
115
|
-
];
|
|
116
|
-
const CLASS_DECLARATIONS = [
|
|
117
|
-
'components'
|
|
118
|
-
];
|
|
119
|
-
const CLASS_FUNCTIONS = [
|
|
120
|
-
'clsx',
|
|
121
|
-
'cva',
|
|
122
|
-
'ctl',
|
|
123
|
-
'cv',
|
|
124
|
-
'class',
|
|
125
|
-
'classnames',
|
|
126
|
-
'classVariant',
|
|
127
|
-
'styled(?:\\s+)?(?:\\.\\w+)?',
|
|
128
|
-
'classList(?:\\s+)?\\.(?:add|remove|toggle|replace)'
|
|
129
|
-
];
|
|
130
|
-
const BORDER_STYLE_VALUES = [
|
|
131
|
-
'none',
|
|
132
|
-
'auto',
|
|
133
|
-
'hidden',
|
|
134
|
-
'dotted',
|
|
135
|
-
'dashed',
|
|
136
|
-
'solid',
|
|
137
|
-
'double',
|
|
138
|
-
'groove',
|
|
139
|
-
'ridge',
|
|
140
|
-
'inset',
|
|
141
|
-
'outset'
|
|
142
|
-
];
|
|
143
|
-
const AT_COMPARISON_OPERATORS = [
|
|
144
|
-
'>=',
|
|
145
|
-
'<=',
|
|
146
|
-
'>',
|
|
147
|
-
'<',
|
|
148
|
-
'='
|
|
149
|
-
];
|
|
150
|
-
const AT_LOGICAL_OPERATORS = {
|
|
151
|
-
'&': 'and',
|
|
152
|
-
'!': 'not',
|
|
153
|
-
// native
|
|
154
|
-
'not': 'not',
|
|
155
|
-
'and': 'and',
|
|
156
|
-
'or': 'or',
|
|
157
|
-
'only': 'only',
|
|
158
|
-
',': 'or'
|
|
159
|
-
};
|
|
160
|
-
// the order is intentional and should not be changed
|
|
161
|
-
const AT_IDENTIFIERS = [
|
|
162
|
-
'container',
|
|
163
|
-
'starting-style',
|
|
164
|
-
'supports',
|
|
165
|
-
'media',
|
|
166
|
-
'layer'
|
|
167
|
-
];
|
|
168
|
-
const COMPARISION_OPERATORS = [
|
|
169
|
-
'>=',
|
|
170
|
-
'<=',
|
|
171
|
-
'>',
|
|
172
|
-
'<',
|
|
173
|
-
'='
|
|
174
|
-
];
|
|
175
|
-
const AT_COMPARABLE_FEATURES = [
|
|
176
|
-
'width',
|
|
177
|
-
'height',
|
|
178
|
-
'resolution'
|
|
179
|
-
];
|
|
180
|
-
const __UNSORTED__ = '__UNSORTED__';
|
|
181
|
-
|
|
182
|
-
exports.ANIMATION_SIGN = ANIMATION_SIGN;
|
|
183
|
-
exports.AT_COMPARABLE_FEATURES = AT_COMPARABLE_FEATURES;
|
|
184
|
-
exports.AT_COMPARISON_OPERATORS = AT_COMPARISON_OPERATORS;
|
|
185
|
-
exports.AT_IDENTIFIERS = AT_IDENTIFIERS;
|
|
186
|
-
exports.AT_LOGICAL_OPERATORS = AT_LOGICAL_OPERATORS;
|
|
187
|
-
exports.AT_SIGN = AT_SIGN;
|
|
188
|
-
exports.BASE_UNIT_REGEX = BASE_UNIT_REGEX;
|
|
189
|
-
exports.BORDER_STYLE_VALUES = BORDER_STYLE_VALUES;
|
|
190
|
-
exports.CLASS_ATTRIBUTES = CLASS_ATTRIBUTES;
|
|
191
|
-
exports.CLASS_DECLARATIONS = CLASS_DECLARATIONS;
|
|
192
|
-
exports.CLASS_FUNCTIONS = CLASS_FUNCTIONS;
|
|
193
|
-
exports.COLOR_VALUE_REGEX = COLOR_VALUE_REGEX;
|
|
194
|
-
exports.COMPARISION_OPERATORS = COMPARISION_OPERATORS;
|
|
195
|
-
exports.DELIMITER_SIGN = DELIMITER_SIGN;
|
|
196
|
-
exports.IMAGE_VALUE_REGEX = IMAGE_VALUE_REGEX;
|
|
197
|
-
exports.NUMBER_VALUE_REGEX = NUMBER_VALUE_REGEX;
|
|
198
|
-
exports.QUERY_COMPARISON_OPERATORS = QUERY_COMPARISON_OPERATORS;
|
|
199
|
-
exports.QUERY_LOGICAL_OPERATORS = QUERY_LOGICAL_OPERATORS;
|
|
200
|
-
exports.SELECTOR_COMBINATORS = SELECTOR_COMBINATORS;
|
|
201
|
-
exports.SELECTOR_SIGNS = SELECTOR_SIGNS;
|
|
202
|
-
exports.SEPARATOR_SIGN = SEPARATOR_SIGN;
|
|
203
|
-
exports.SEPARATOR_SIGNS = SEPARATOR_SIGNS;
|
|
204
|
-
exports.TRANSITION_SIGN = TRANSITION_SIGN;
|
|
205
|
-
exports.UNIT_REGEX = UNIT_REGEX;
|
|
206
|
-
exports.VALUE_DELIMITERS = VALUE_DELIMITERS;
|
|
207
|
-
exports.VALUE_UNITS = VALUE_UNITS;
|
|
208
|
-
exports.__UNSORTED__ = __UNSORTED__;
|
package/dist/common.d.ts
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
export declare const VALUE_DELIMITERS: {
|
|
2
|
-
'(': string;
|
|
3
|
-
'\'': string;
|
|
4
|
-
'"': string;
|
|
5
|
-
'{': string;
|
|
6
|
-
};
|
|
7
|
-
export declare const BASE_UNIT_REGEX: RegExp;
|
|
8
|
-
export declare const TRANSITION_SIGN = "~";
|
|
9
|
-
export declare const ANIMATION_SIGN = "@";
|
|
10
|
-
export declare const SELECTOR_SIGNS: string[];
|
|
11
|
-
export declare const SELECTOR_COMBINATORS: string[];
|
|
12
|
-
export declare const QUERY_COMPARISON_OPERATORS: string[];
|
|
13
|
-
export declare const QUERY_LOGICAL_OPERATORS: string[];
|
|
14
|
-
export declare const SEPARATOR_SIGNS: string[];
|
|
15
|
-
export declare const DELIMITER_SIGN = "|";
|
|
16
|
-
export declare const SEPARATOR_SIGN = ",";
|
|
17
|
-
export declare const AT_SIGN = "@";
|
|
18
|
-
export declare const VALUE_UNITS: string[];
|
|
19
|
-
export declare const UNIT_REGEX: RegExp;
|
|
20
|
-
export declare const IMAGE_VALUE_REGEX: RegExp;
|
|
21
|
-
export declare const COLOR_VALUE_REGEX: RegExp;
|
|
22
|
-
export declare const NUMBER_VALUE_REGEX: RegExp;
|
|
23
|
-
export declare const CLASS_ATTRIBUTES: string[];
|
|
24
|
-
export declare const CLASS_DECLARATIONS: string[];
|
|
25
|
-
export declare const CLASS_FUNCTIONS: string[];
|
|
26
|
-
export declare const BORDER_STYLE_VALUES: string[];
|
|
27
|
-
export declare const AT_COMPARISON_OPERATORS: string[];
|
|
28
|
-
export declare const AT_LOGICAL_OPERATORS: {
|
|
29
|
-
'&': string;
|
|
30
|
-
'!': string;
|
|
31
|
-
not: string;
|
|
32
|
-
and: string;
|
|
33
|
-
or: string;
|
|
34
|
-
only: string;
|
|
35
|
-
',': string;
|
|
36
|
-
};
|
|
37
|
-
export declare const AT_IDENTIFIERS: string[];
|
|
38
|
-
export declare const COMPARISION_OPERATORS: string[];
|
|
39
|
-
export declare const AT_COMPARABLE_FEATURES: string[];
|
|
40
|
-
export declare const __UNSORTED__ = "__UNSORTED__";
|