@wordpress/style-engine 2.32.0 → 2.32.1-next.ff1cebbba.0
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/build/index.js +62 -69
- package/build/index.js.map +7 -1
- package/build/styles/background/index.js +76 -34
- package/build/styles/background/index.js.map +7 -1
- package/build/styles/border/index.js +61 -48
- package/build/styles/border/index.js.map +7 -1
- package/build/styles/color/background.js +31 -13
- package/build/styles/color/background.js.map +7 -1
- package/build/styles/color/gradient.js +31 -13
- package/build/styles/color/gradient.js.map +7 -1
- package/build/styles/color/index.js +36 -13
- package/build/styles/color/index.js.map +7 -1
- package/build/styles/color/text.js +26 -13
- package/build/styles/color/text.js.map +7 -1
- package/build/styles/constants.js +33 -8
- package/build/styles/constants.js.map +7 -1
- package/build/styles/dimensions/index.js +38 -15
- package/build/styles/dimensions/index.js.map +7 -1
- package/build/styles/index.js +54 -19
- package/build/styles/index.js.map +7 -1
- package/build/styles/outline/index.js +36 -23
- package/build/styles/outline/index.js.map +7 -1
- package/build/styles/shadow/index.js +26 -13
- package/build/styles/shadow/index.js.map +7 -1
- package/build/styles/spacing/index.js +35 -12
- package/build/styles/spacing/index.js.map +7 -1
- package/build/styles/spacing/margin.js +28 -15
- package/build/styles/spacing/margin.js.map +7 -1
- package/build/styles/spacing/padding.js +28 -15
- package/build/styles/spacing/padding.js.map +7 -1
- package/build/styles/typography/index.js +105 -31
- package/build/styles/typography/index.js.map +7 -1
- package/build/styles/utils.js +90 -132
- package/build/styles/utils.js.map +7 -1
- package/build/types.js +16 -5
- package/build/types.js.map +7 -1
- package/build-module/index.js +40 -61
- package/build-module/index.js.map +7 -1
- package/build-module/styles/background/index.js +58 -30
- package/build-module/styles/background/index.js.map +7 -1
- package/build-module/styles/border/index.js +42 -44
- package/build-module/styles/border/index.js.map +7 -1
- package/build-module/styles/color/background.js +13 -9
- package/build-module/styles/color/background.js.map +7 -1
- package/build-module/styles/color/gradient.js +13 -9
- package/build-module/styles/color/gradient.js.map +7 -1
- package/build-module/styles/color/index.js +8 -8
- package/build-module/styles/color/index.js.map +7 -1
- package/build-module/styles/color/text.js +8 -9
- package/build-module/styles/color/text.js.map +7 -1
- package/build-module/styles/constants.js +9 -4
- package/build-module/styles/constants.js.map +7 -1
- package/build-module/styles/dimensions/index.js +20 -11
- package/build-module/styles/dimensions/index.js.map +7 -1
- package/build-module/styles/index.js +22 -13
- package/build-module/styles/index.js.map +7 -1
- package/build-module/styles/outline/index.js +14 -15
- package/build-module/styles/outline/index.js.map +7 -1
- package/build-module/styles/shadow/index.js +8 -9
- package/build-module/styles/shadow/index.js.map +7 -1
- package/build-module/styles/spacing/index.js +7 -7
- package/build-module/styles/spacing/index.js.map +7 -1
- package/build-module/styles/spacing/margin.js +10 -11
- package/build-module/styles/spacing/margin.js.map +7 -1
- package/build-module/styles/spacing/padding.js +10 -11
- package/build-module/styles/spacing/padding.js.map +7 -1
- package/build-module/styles/typography/index.js +87 -27
- package/build-module/styles/typography/index.js.map +7 -1
- package/build-module/styles/utils.js +72 -128
- package/build-module/styles/utils.js.map +7 -1
- package/build-module/types.js +1 -2
- package/build-module/types.js.map +7 -1
- package/package.json +10 -3
|
@@ -1,15 +1,38 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
Object.
|
|
5
|
-
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
var color_exports = {};
|
|
30
|
+
__export(color_exports, {
|
|
31
|
+
default: () => color_default
|
|
6
32
|
});
|
|
7
|
-
exports
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
*/
|
|
14
|
-
var _default = exports.default = [_text.default, _gradient.default, _background.default];
|
|
15
|
-
//# sourceMappingURL=index.js.map
|
|
33
|
+
module.exports = __toCommonJS(color_exports);
|
|
34
|
+
var import_background = __toESM(require("./background"));
|
|
35
|
+
var import_gradient = __toESM(require("./gradient"));
|
|
36
|
+
var import_text = __toESM(require("./text"));
|
|
37
|
+
var color_default = [import_text.default, import_gradient.default, import_background.default];
|
|
38
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/styles/color/index.ts"],
|
|
4
|
+
"sourcesContent": ["/**\n * Internal dependencies\n */\nimport background from './background';\nimport gradient from './gradient';\nimport text from './text';\n\nexport default [ text, gradient, background ];\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,wBAAuB;AACvB,sBAAqB;AACrB,kBAAiB;AAEjB,IAAO,gBAAQ,CAAE,YAAAA,SAAM,gBAAAC,SAAU,kBAAAC,OAAW;",
|
|
6
|
+
"names": ["text", "gradient", "background"]
|
|
7
|
+
}
|
|
@@ -1,19 +1,32 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.
|
|
4
|
-
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var text_exports = {};
|
|
20
|
+
__export(text_exports, {
|
|
21
|
+
default: () => text_default
|
|
5
22
|
});
|
|
6
|
-
exports
|
|
7
|
-
var
|
|
8
|
-
/**
|
|
9
|
-
* Internal dependencies
|
|
10
|
-
*/
|
|
11
|
-
|
|
23
|
+
module.exports = __toCommonJS(text_exports);
|
|
24
|
+
var import_utils = require("../utils");
|
|
12
25
|
const text = {
|
|
13
|
-
name:
|
|
26
|
+
name: "text",
|
|
14
27
|
generate: (style, options) => {
|
|
15
|
-
return (0,
|
|
28
|
+
return (0, import_utils.generateRule)(style, options, ["color", "text"], "color");
|
|
16
29
|
}
|
|
17
30
|
};
|
|
18
|
-
var
|
|
19
|
-
//# sourceMappingURL=text.js.map
|
|
31
|
+
var text_default = text;
|
|
32
|
+
//# sourceMappingURL=text.js.map
|
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/styles/color/text.ts"],
|
|
4
|
+
"sourcesContent": ["/**\n * Internal dependencies\n */\nimport type { Style, StyleOptions } from '../../types';\nimport { generateRule } from '../utils';\n\nconst text = {\n\tname: 'text',\n\tgenerate: ( style: Style, options: StyleOptions ) => {\n\t\treturn generateRule( style, options, [ 'color', 'text' ], 'color' );\n\t},\n};\n\nexport default text;\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAIA,mBAA6B;AAE7B,MAAM,OAAO;AAAA,EACZ,MAAM;AAAA,EACN,UAAU,CAAE,OAAc,YAA2B;AACpD,eAAO,2BAAc,OAAO,SAAS,CAAE,SAAS,MAAO,GAAG,OAAQ;AAAA,EACnE;AACD;AAEA,IAAO,eAAQ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,10 +1,35 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.
|
|
4
|
-
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var constants_exports = {};
|
|
20
|
+
__export(constants_exports, {
|
|
21
|
+
VARIABLE_PATH_SEPARATOR_TOKEN_ATTRIBUTE: () => VARIABLE_PATH_SEPARATOR_TOKEN_ATTRIBUTE,
|
|
22
|
+
VARIABLE_PATH_SEPARATOR_TOKEN_STYLE: () => VARIABLE_PATH_SEPARATOR_TOKEN_STYLE,
|
|
23
|
+
VARIABLE_REFERENCE_PREFIX: () => VARIABLE_REFERENCE_PREFIX
|
|
5
24
|
});
|
|
6
|
-
|
|
7
|
-
const VARIABLE_REFERENCE_PREFIX =
|
|
8
|
-
const VARIABLE_PATH_SEPARATOR_TOKEN_ATTRIBUTE =
|
|
9
|
-
const VARIABLE_PATH_SEPARATOR_TOKEN_STYLE =
|
|
10
|
-
|
|
25
|
+
module.exports = __toCommonJS(constants_exports);
|
|
26
|
+
const VARIABLE_REFERENCE_PREFIX = "var:";
|
|
27
|
+
const VARIABLE_PATH_SEPARATOR_TOKEN_ATTRIBUTE = "|";
|
|
28
|
+
const VARIABLE_PATH_SEPARATOR_TOKEN_STYLE = "--";
|
|
29
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
30
|
+
0 && (module.exports = {
|
|
31
|
+
VARIABLE_PATH_SEPARATOR_TOKEN_ATTRIBUTE,
|
|
32
|
+
VARIABLE_PATH_SEPARATOR_TOKEN_STYLE,
|
|
33
|
+
VARIABLE_REFERENCE_PREFIX
|
|
34
|
+
});
|
|
35
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/styles/constants.ts"],
|
|
4
|
+
"sourcesContent": ["export const VARIABLE_REFERENCE_PREFIX = 'var:';\nexport const VARIABLE_PATH_SEPARATOR_TOKEN_ATTRIBUTE = '|';\nexport const VARIABLE_PATH_SEPARATOR_TOKEN_STYLE = '--';\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,4BAA4B;AAClC,MAAM,0CAA0C;AAChD,MAAM,sCAAsC;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,25 +1,48 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.
|
|
4
|
-
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var dimensions_exports = {};
|
|
20
|
+
__export(dimensions_exports, {
|
|
21
|
+
default: () => dimensions_default
|
|
5
22
|
});
|
|
6
|
-
exports
|
|
7
|
-
var
|
|
8
|
-
/**
|
|
9
|
-
* Internal dependencies
|
|
10
|
-
*/
|
|
11
|
-
|
|
23
|
+
module.exports = __toCommonJS(dimensions_exports);
|
|
24
|
+
var import_utils = require("../utils");
|
|
12
25
|
const minHeight = {
|
|
13
|
-
name:
|
|
26
|
+
name: "minHeight",
|
|
14
27
|
generate: (style, options) => {
|
|
15
|
-
return (0,
|
|
28
|
+
return (0, import_utils.generateRule)(
|
|
29
|
+
style,
|
|
30
|
+
options,
|
|
31
|
+
["dimensions", "minHeight"],
|
|
32
|
+
"minHeight"
|
|
33
|
+
);
|
|
16
34
|
}
|
|
17
35
|
};
|
|
18
36
|
const aspectRatio = {
|
|
19
|
-
name:
|
|
37
|
+
name: "aspectRatio",
|
|
20
38
|
generate: (style, options) => {
|
|
21
|
-
return (0,
|
|
39
|
+
return (0, import_utils.generateRule)(
|
|
40
|
+
style,
|
|
41
|
+
options,
|
|
42
|
+
["dimensions", "aspectRatio"],
|
|
43
|
+
"aspectRatio"
|
|
44
|
+
);
|
|
22
45
|
}
|
|
23
46
|
};
|
|
24
|
-
var
|
|
25
|
-
//# sourceMappingURL=index.js.map
|
|
47
|
+
var dimensions_default = [minHeight, aspectRatio];
|
|
48
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/styles/dimensions/index.ts"],
|
|
4
|
+
"sourcesContent": ["/**\n * Internal dependencies\n */\nimport type { Style, StyleOptions } from '../../types';\nimport { generateRule } from '../utils';\n\nconst minHeight = {\n\tname: 'minHeight',\n\tgenerate: ( style: Style, options: StyleOptions ) => {\n\t\treturn generateRule(\n\t\t\tstyle,\n\t\t\toptions,\n\t\t\t[ 'dimensions', 'minHeight' ],\n\t\t\t'minHeight'\n\t\t);\n\t},\n};\n\nconst aspectRatio = {\n\tname: 'aspectRatio',\n\tgenerate: ( style: Style, options: StyleOptions ) => {\n\t\treturn generateRule(\n\t\t\tstyle,\n\t\t\toptions,\n\t\t\t[ 'dimensions', 'aspectRatio' ],\n\t\t\t'aspectRatio'\n\t\t);\n\t},\n};\n\nexport default [ minHeight, aspectRatio ];\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAIA,mBAA6B;AAE7B,MAAM,YAAY;AAAA,EACjB,MAAM;AAAA,EACN,UAAU,CAAE,OAAc,YAA2B;AACpD,eAAO;AAAA,MACN;AAAA,MACA;AAAA,MACA,CAAE,cAAc,WAAY;AAAA,MAC5B;AAAA,IACD;AAAA,EACD;AACD;AAEA,MAAM,cAAc;AAAA,EACnB,MAAM;AAAA,EACN,UAAU,CAAE,OAAc,YAA2B;AACpD,eAAO;AAAA,MACN;AAAA,MACA;AAAA,MACA,CAAE,cAAc,aAAc;AAAA,MAC9B;AAAA,IACD;AAAA,EACD;AACD;AAEA,IAAO,qBAAQ,CAAE,WAAW,WAAY;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
package/build/styles/index.js
CHANGED
|
@@ -1,21 +1,56 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
Object.
|
|
5
|
-
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
var styles_exports = {};
|
|
30
|
+
__export(styles_exports, {
|
|
31
|
+
styleDefinitions: () => styleDefinitions
|
|
6
32
|
});
|
|
7
|
-
exports
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
var
|
|
12
|
-
var
|
|
13
|
-
var
|
|
14
|
-
var
|
|
15
|
-
var
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
33
|
+
module.exports = __toCommonJS(styles_exports);
|
|
34
|
+
var import_border = __toESM(require("./border"));
|
|
35
|
+
var import_color = __toESM(require("./color"));
|
|
36
|
+
var import_dimensions = __toESM(require("./dimensions"));
|
|
37
|
+
var import_background = __toESM(require("./background"));
|
|
38
|
+
var import_shadow = __toESM(require("./shadow"));
|
|
39
|
+
var import_outline = __toESM(require("./outline"));
|
|
40
|
+
var import_spacing = __toESM(require("./spacing"));
|
|
41
|
+
var import_typography = __toESM(require("./typography"));
|
|
42
|
+
const styleDefinitions = [
|
|
43
|
+
...import_border.default,
|
|
44
|
+
...import_color.default,
|
|
45
|
+
...import_dimensions.default,
|
|
46
|
+
...import_outline.default,
|
|
47
|
+
...import_spacing.default,
|
|
48
|
+
...import_typography.default,
|
|
49
|
+
...import_shadow.default,
|
|
50
|
+
...import_background.default
|
|
51
|
+
];
|
|
52
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
53
|
+
0 && (module.exports = {
|
|
54
|
+
styleDefinitions
|
|
55
|
+
});
|
|
56
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/styles/index.ts"],
|
|
4
|
+
"sourcesContent": ["/**\n * Internal dependencies\n */\nimport border from './border';\nimport color from './color';\nimport dimensions from './dimensions';\nimport background from './background';\nimport shadow from './shadow';\nimport outline from './outline';\nimport spacing from './spacing';\nimport typography from './typography';\n\nexport const styleDefinitions = [\n\t...border,\n\t...color,\n\t...dimensions,\n\t...outline,\n\t...spacing,\n\t...typography,\n\t...shadow,\n\t...background,\n];\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,oBAAmB;AACnB,mBAAkB;AAClB,wBAAuB;AACvB,wBAAuB;AACvB,oBAAmB;AACnB,qBAAoB;AACpB,qBAAoB;AACpB,wBAAuB;AAEhB,MAAM,mBAAmB;AAAA,EAC/B,GAAG,cAAAA;AAAA,EACH,GAAG,aAAAC;AAAA,EACH,GAAG,kBAAAC;AAAA,EACH,GAAG,eAAAC;AAAA,EACH,GAAG,eAAAC;AAAA,EACH,GAAG,kBAAAC;AAAA,EACH,GAAG,cAAAC;AAAA,EACH,GAAG,kBAAAC;AACJ;",
|
|
6
|
+
"names": ["border", "color", "dimensions", "outline", "spacing", "typography", "shadow", "background"]
|
|
7
|
+
}
|
|
@@ -1,37 +1,50 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.
|
|
4
|
-
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var outline_exports = {};
|
|
20
|
+
__export(outline_exports, {
|
|
21
|
+
default: () => outline_default
|
|
5
22
|
});
|
|
6
|
-
exports
|
|
7
|
-
var
|
|
8
|
-
/**
|
|
9
|
-
* Internal dependencies
|
|
10
|
-
*/
|
|
11
|
-
|
|
23
|
+
module.exports = __toCommonJS(outline_exports);
|
|
24
|
+
var import_utils = require("../utils");
|
|
12
25
|
const color = {
|
|
13
|
-
name:
|
|
14
|
-
generate: (style, options, path = [
|
|
15
|
-
return (0,
|
|
26
|
+
name: "color",
|
|
27
|
+
generate: (style, options, path = ["outline", "color"], ruleKey = "outlineColor") => {
|
|
28
|
+
return (0, import_utils.generateRule)(style, options, path, ruleKey);
|
|
16
29
|
}
|
|
17
30
|
};
|
|
18
31
|
const offset = {
|
|
19
|
-
name:
|
|
20
|
-
generate: (style, options, path = [
|
|
21
|
-
return (0,
|
|
32
|
+
name: "offset",
|
|
33
|
+
generate: (style, options, path = ["outline", "offset"], ruleKey = "outlineOffset") => {
|
|
34
|
+
return (0, import_utils.generateRule)(style, options, path, ruleKey);
|
|
22
35
|
}
|
|
23
36
|
};
|
|
24
37
|
const outlineStyle = {
|
|
25
|
-
name:
|
|
26
|
-
generate: (style, options, path = [
|
|
27
|
-
return (0,
|
|
38
|
+
name: "style",
|
|
39
|
+
generate: (style, options, path = ["outline", "style"], ruleKey = "outlineStyle") => {
|
|
40
|
+
return (0, import_utils.generateRule)(style, options, path, ruleKey);
|
|
28
41
|
}
|
|
29
42
|
};
|
|
30
43
|
const width = {
|
|
31
|
-
name:
|
|
32
|
-
generate: (style, options, path = [
|
|
33
|
-
return (0,
|
|
44
|
+
name: "width",
|
|
45
|
+
generate: (style, options, path = ["outline", "width"], ruleKey = "outlineWidth") => {
|
|
46
|
+
return (0, import_utils.generateRule)(style, options, path, ruleKey);
|
|
34
47
|
}
|
|
35
48
|
};
|
|
36
|
-
var
|
|
37
|
-
//# sourceMappingURL=index.js.map
|
|
49
|
+
var outline_default = [color, outlineStyle, offset, width];
|
|
50
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/styles/outline/index.ts"],
|
|
4
|
+
"sourcesContent": ["/**\n * Internal dependencies\n */\nimport type { GeneratedCSSRule, Style, StyleOptions } from '../../types';\nimport { generateRule } from '../utils';\n\nconst color = {\n\tname: 'color',\n\tgenerate: (\n\t\tstyle: Style,\n\t\toptions: StyleOptions,\n\t\tpath: string[] = [ 'outline', 'color' ],\n\t\truleKey: string = 'outlineColor'\n\t): GeneratedCSSRule[] => {\n\t\treturn generateRule( style, options, path, ruleKey );\n\t},\n};\n\nconst offset = {\n\tname: 'offset',\n\tgenerate: (\n\t\tstyle: Style,\n\t\toptions: StyleOptions,\n\t\tpath: string[] = [ 'outline', 'offset' ],\n\t\truleKey: string = 'outlineOffset'\n\t): GeneratedCSSRule[] => {\n\t\treturn generateRule( style, options, path, ruleKey );\n\t},\n};\n\nconst outlineStyle = {\n\tname: 'style',\n\tgenerate: (\n\t\tstyle: Style,\n\t\toptions: StyleOptions,\n\t\tpath: string[] = [ 'outline', 'style' ],\n\t\truleKey: string = 'outlineStyle'\n\t): GeneratedCSSRule[] => {\n\t\treturn generateRule( style, options, path, ruleKey );\n\t},\n};\n\nconst width = {\n\tname: 'width',\n\tgenerate: (\n\t\tstyle: Style,\n\t\toptions: StyleOptions,\n\t\tpath: string[] = [ 'outline', 'width' ],\n\t\truleKey: string = 'outlineWidth'\n\t): GeneratedCSSRule[] => {\n\t\treturn generateRule( style, options, path, ruleKey );\n\t},\n};\n\nexport default [ color, outlineStyle, offset, width ];\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAIA,mBAA6B;AAE7B,MAAM,QAAQ;AAAA,EACb,MAAM;AAAA,EACN,UAAU,CACT,OACA,SACA,OAAiB,CAAE,WAAW,OAAQ,GACtC,UAAkB,mBACM;AACxB,eAAO,2BAAc,OAAO,SAAS,MAAM,OAAQ;AAAA,EACpD;AACD;AAEA,MAAM,SAAS;AAAA,EACd,MAAM;AAAA,EACN,UAAU,CACT,OACA,SACA,OAAiB,CAAE,WAAW,QAAS,GACvC,UAAkB,oBACM;AACxB,eAAO,2BAAc,OAAO,SAAS,MAAM,OAAQ;AAAA,EACpD;AACD;AAEA,MAAM,eAAe;AAAA,EACpB,MAAM;AAAA,EACN,UAAU,CACT,OACA,SACA,OAAiB,CAAE,WAAW,OAAQ,GACtC,UAAkB,mBACM;AACxB,eAAO,2BAAc,OAAO,SAAS,MAAM,OAAQ;AAAA,EACpD;AACD;AAEA,MAAM,QAAQ;AAAA,EACb,MAAM;AAAA,EACN,UAAU,CACT,OACA,SACA,OAAiB,CAAE,WAAW,OAAQ,GACtC,UAAkB,mBACM;AACxB,eAAO,2BAAc,OAAO,SAAS,MAAM,OAAQ;AAAA,EACpD;AACD;AAEA,IAAO,kBAAQ,CAAE,OAAO,cAAc,QAAQ,KAAM;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,19 +1,32 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.
|
|
4
|
-
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var shadow_exports = {};
|
|
20
|
+
__export(shadow_exports, {
|
|
21
|
+
default: () => shadow_default
|
|
5
22
|
});
|
|
6
|
-
exports
|
|
7
|
-
var
|
|
8
|
-
/**
|
|
9
|
-
* Internal dependencies
|
|
10
|
-
*/
|
|
11
|
-
|
|
23
|
+
module.exports = __toCommonJS(shadow_exports);
|
|
24
|
+
var import_utils = require("../utils");
|
|
12
25
|
const shadow = {
|
|
13
|
-
name:
|
|
26
|
+
name: "shadow",
|
|
14
27
|
generate: (style, options) => {
|
|
15
|
-
return (0,
|
|
28
|
+
return (0, import_utils.generateRule)(style, options, ["shadow"], "boxShadow");
|
|
16
29
|
}
|
|
17
30
|
};
|
|
18
|
-
var
|
|
19
|
-
//# sourceMappingURL=index.js.map
|
|
31
|
+
var shadow_default = [shadow];
|
|
32
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/styles/shadow/index.ts"],
|
|
4
|
+
"sourcesContent": ["/**\n * Internal dependencies\n */\nimport type { Style, StyleOptions } from '../../types';\nimport { generateRule } from '../utils';\n\nconst shadow = {\n\tname: 'shadow',\n\tgenerate: ( style: Style, options: StyleOptions ) => {\n\t\treturn generateRule( style, options, [ 'shadow' ], 'boxShadow' );\n\t},\n};\n\nexport default [ shadow ];\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAIA,mBAA6B;AAE7B,MAAM,SAAS;AAAA,EACd,MAAM;AAAA,EACN,UAAU,CAAE,OAAc,YAA2B;AACpD,eAAO,2BAAc,OAAO,SAAS,CAAE,QAAS,GAAG,WAAY;AAAA,EAChE;AACD;AAEA,IAAO,iBAAQ,CAAE,MAAO;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,14 +1,37 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
Object.
|
|
5
|
-
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
var spacing_exports = {};
|
|
30
|
+
__export(spacing_exports, {
|
|
31
|
+
default: () => spacing_default
|
|
6
32
|
});
|
|
7
|
-
exports
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
*/
|
|
13
|
-
var _default = exports.default = [_margin.default, _padding.default];
|
|
14
|
-
//# sourceMappingURL=index.js.map
|
|
33
|
+
module.exports = __toCommonJS(spacing_exports);
|
|
34
|
+
var import_padding = __toESM(require("./padding"));
|
|
35
|
+
var import_margin = __toESM(require("./margin"));
|
|
36
|
+
var spacing_default = [import_margin.default, import_padding.default];
|
|
37
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/styles/spacing/index.ts"],
|
|
4
|
+
"sourcesContent": ["/**\n * Internal dependencies\n */\nimport padding from './padding';\nimport margin from './margin';\n\nexport default [ margin, padding ];\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,qBAAoB;AACpB,oBAAmB;AAEnB,IAAO,kBAAQ,CAAE,cAAAA,SAAQ,eAAAC,OAAQ;",
|
|
6
|
+
"names": ["margin", "padding"]
|
|
7
|
+
}
|
|
@@ -1,22 +1,35 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.
|
|
4
|
-
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var margin_exports = {};
|
|
20
|
+
__export(margin_exports, {
|
|
21
|
+
default: () => margin_default
|
|
5
22
|
});
|
|
6
|
-
exports
|
|
7
|
-
var
|
|
8
|
-
/**
|
|
9
|
-
* Internal dependencies
|
|
10
|
-
*/
|
|
11
|
-
|
|
23
|
+
module.exports = __toCommonJS(margin_exports);
|
|
24
|
+
var import_utils = require("../utils");
|
|
12
25
|
const margin = {
|
|
13
|
-
name:
|
|
26
|
+
name: "margin",
|
|
14
27
|
generate: (style, options) => {
|
|
15
|
-
return (0,
|
|
16
|
-
default:
|
|
17
|
-
individual:
|
|
28
|
+
return (0, import_utils.generateBoxRules)(style, options, ["spacing", "margin"], {
|
|
29
|
+
default: "margin",
|
|
30
|
+
individual: "margin%s"
|
|
18
31
|
});
|
|
19
32
|
}
|
|
20
33
|
};
|
|
21
|
-
var
|
|
22
|
-
//# sourceMappingURL=margin.js.map
|
|
34
|
+
var margin_default = margin;
|
|
35
|
+
//# sourceMappingURL=margin.js.map
|
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/styles/spacing/margin.ts"],
|
|
4
|
+
"sourcesContent": ["/**\n * Internal dependencies\n */\nimport type { Style, StyleOptions } from '../../types';\nimport { generateBoxRules } from '../utils';\n\nconst margin = {\n\tname: 'margin',\n\tgenerate: ( style: Style, options: StyleOptions ) => {\n\t\treturn generateBoxRules( style, options, [ 'spacing', 'margin' ], {\n\t\t\tdefault: 'margin',\n\t\t\tindividual: 'margin%s',\n\t\t} );\n\t},\n};\n\nexport default margin;\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAIA,mBAAiC;AAEjC,MAAM,SAAS;AAAA,EACd,MAAM;AAAA,EACN,UAAU,CAAE,OAAc,YAA2B;AACpD,eAAO,+BAAkB,OAAO,SAAS,CAAE,WAAW,QAAS,GAAG;AAAA,MACjE,SAAS;AAAA,MACT,YAAY;AAAA,IACb,CAAE;AAAA,EACH;AACD;AAEA,IAAO,iBAAQ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|