@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.
Files changed (73) hide show
  1. package/build/index.js +62 -69
  2. package/build/index.js.map +7 -1
  3. package/build/styles/background/index.js +76 -34
  4. package/build/styles/background/index.js.map +7 -1
  5. package/build/styles/border/index.js +61 -48
  6. package/build/styles/border/index.js.map +7 -1
  7. package/build/styles/color/background.js +31 -13
  8. package/build/styles/color/background.js.map +7 -1
  9. package/build/styles/color/gradient.js +31 -13
  10. package/build/styles/color/gradient.js.map +7 -1
  11. package/build/styles/color/index.js +36 -13
  12. package/build/styles/color/index.js.map +7 -1
  13. package/build/styles/color/text.js +26 -13
  14. package/build/styles/color/text.js.map +7 -1
  15. package/build/styles/constants.js +33 -8
  16. package/build/styles/constants.js.map +7 -1
  17. package/build/styles/dimensions/index.js +38 -15
  18. package/build/styles/dimensions/index.js.map +7 -1
  19. package/build/styles/index.js +54 -19
  20. package/build/styles/index.js.map +7 -1
  21. package/build/styles/outline/index.js +36 -23
  22. package/build/styles/outline/index.js.map +7 -1
  23. package/build/styles/shadow/index.js +26 -13
  24. package/build/styles/shadow/index.js.map +7 -1
  25. package/build/styles/spacing/index.js +35 -12
  26. package/build/styles/spacing/index.js.map +7 -1
  27. package/build/styles/spacing/margin.js +28 -15
  28. package/build/styles/spacing/margin.js.map +7 -1
  29. package/build/styles/spacing/padding.js +28 -15
  30. package/build/styles/spacing/padding.js.map +7 -1
  31. package/build/styles/typography/index.js +105 -31
  32. package/build/styles/typography/index.js.map +7 -1
  33. package/build/styles/utils.js +90 -132
  34. package/build/styles/utils.js.map +7 -1
  35. package/build/types.js +16 -5
  36. package/build/types.js.map +7 -1
  37. package/build-module/index.js +40 -61
  38. package/build-module/index.js.map +7 -1
  39. package/build-module/styles/background/index.js +58 -30
  40. package/build-module/styles/background/index.js.map +7 -1
  41. package/build-module/styles/border/index.js +42 -44
  42. package/build-module/styles/border/index.js.map +7 -1
  43. package/build-module/styles/color/background.js +13 -9
  44. package/build-module/styles/color/background.js.map +7 -1
  45. package/build-module/styles/color/gradient.js +13 -9
  46. package/build-module/styles/color/gradient.js.map +7 -1
  47. package/build-module/styles/color/index.js +8 -8
  48. package/build-module/styles/color/index.js.map +7 -1
  49. package/build-module/styles/color/text.js +8 -9
  50. package/build-module/styles/color/text.js.map +7 -1
  51. package/build-module/styles/constants.js +9 -4
  52. package/build-module/styles/constants.js.map +7 -1
  53. package/build-module/styles/dimensions/index.js +20 -11
  54. package/build-module/styles/dimensions/index.js.map +7 -1
  55. package/build-module/styles/index.js +22 -13
  56. package/build-module/styles/index.js.map +7 -1
  57. package/build-module/styles/outline/index.js +14 -15
  58. package/build-module/styles/outline/index.js.map +7 -1
  59. package/build-module/styles/shadow/index.js +8 -9
  60. package/build-module/styles/shadow/index.js.map +7 -1
  61. package/build-module/styles/spacing/index.js +7 -7
  62. package/build-module/styles/spacing/index.js.map +7 -1
  63. package/build-module/styles/spacing/margin.js +10 -11
  64. package/build-module/styles/spacing/margin.js.map +7 -1
  65. package/build-module/styles/spacing/padding.js +10 -11
  66. package/build-module/styles/spacing/padding.js.map +7 -1
  67. package/build-module/styles/typography/index.js +87 -27
  68. package/build-module/styles/typography/index.js.map +7 -1
  69. package/build-module/styles/utils.js +72 -128
  70. package/build-module/styles/utils.js.map +7 -1
  71. package/build-module/types.js +1 -2
  72. package/build-module/types.js.map +7 -1
  73. package/package.json +10 -3
@@ -1,15 +1,38 @@
1
1
  "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
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.default = void 0;
8
- var _background = _interopRequireDefault(require("./background"));
9
- var _gradient = _interopRequireDefault(require("./gradient"));
10
- var _text = _interopRequireDefault(require("./text"));
11
- /**
12
- * Internal dependencies
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
- {"version":3,"names":["_background","_interopRequireDefault","require","_gradient","_text","_default","exports","default","text","gradient","background"],"sources":["@wordpress/style-engine/src/styles/color/index.ts"],"sourcesContent":["/**\n * Internal dependencies\n */\nimport background from './background';\nimport gradient from './gradient';\nimport text from './text';\n\nexport default [ text, gradient, background ];\n"],"mappings":";;;;;;;AAGA,IAAAA,WAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,SAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,KAAA,GAAAH,sBAAA,CAAAC,OAAA;AALA;AACA;AACA;AAFA,IAAAG,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAOe,CAAEC,aAAI,EAAEC,iBAAQ,EAAEC,mBAAU,CAAE","ignoreList":[]}
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.defineProperty(exports, "__esModule", {
4
- value: true
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.default = void 0;
7
- var _utils = require("../utils");
8
- /**
9
- * Internal dependencies
10
- */
11
-
23
+ module.exports = __toCommonJS(text_exports);
24
+ var import_utils = require("../utils");
12
25
  const text = {
13
- name: 'text',
26
+ name: "text",
14
27
  generate: (style, options) => {
15
- return (0, _utils.generateRule)(style, options, ['color', 'text'], 'color');
28
+ return (0, import_utils.generateRule)(style, options, ["color", "text"], "color");
16
29
  }
17
30
  };
18
- var _default = exports.default = text;
19
- //# sourceMappingURL=text.js.map
31
+ var text_default = text;
32
+ //# sourceMappingURL=text.js.map
@@ -1 +1,7 @@
1
- {"version":3,"names":["_utils","require","text","name","generate","style","options","generateRule","_default","exports","default"],"sources":["@wordpress/style-engine/src/styles/color/text.ts"],"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"],"mappings":";;;;;;AAIA,IAAAA,MAAA,GAAAC,OAAA;AAJA;AACA;AACA;;AAIA,MAAMC,IAAI,GAAG;EACZC,IAAI,EAAE,MAAM;EACZC,QAAQ,EAAEA,CAAEC,KAAY,EAAEC,OAAqB,KAAM;IACpD,OAAO,IAAAC,mBAAY,EAAEF,KAAK,EAAEC,OAAO,EAAE,CAAE,OAAO,EAAE,MAAM,CAAE,EAAE,OAAQ,CAAC;EACpE;AACD,CAAC;AAAC,IAAAE,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEaR,IAAI","ignoreList":[]}
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.defineProperty(exports, "__esModule", {
4
- value: true
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
- exports.VARIABLE_REFERENCE_PREFIX = exports.VARIABLE_PATH_SEPARATOR_TOKEN_STYLE = exports.VARIABLE_PATH_SEPARATOR_TOKEN_ATTRIBUTE = void 0;
7
- const VARIABLE_REFERENCE_PREFIX = exports.VARIABLE_REFERENCE_PREFIX = 'var:';
8
- const VARIABLE_PATH_SEPARATOR_TOKEN_ATTRIBUTE = exports.VARIABLE_PATH_SEPARATOR_TOKEN_ATTRIBUTE = '|';
9
- const VARIABLE_PATH_SEPARATOR_TOKEN_STYLE = exports.VARIABLE_PATH_SEPARATOR_TOKEN_STYLE = '--';
10
- //# sourceMappingURL=constants.js.map
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
- {"version":3,"names":["VARIABLE_REFERENCE_PREFIX","exports","VARIABLE_PATH_SEPARATOR_TOKEN_ATTRIBUTE","VARIABLE_PATH_SEPARATOR_TOKEN_STYLE"],"sources":["@wordpress/style-engine/src/styles/constants.ts"],"sourcesContent":["export const VARIABLE_REFERENCE_PREFIX = 'var:';\nexport const VARIABLE_PATH_SEPARATOR_TOKEN_ATTRIBUTE = '|';\nexport const VARIABLE_PATH_SEPARATOR_TOKEN_STYLE = '--';\n"],"mappings":";;;;;;AAAO,MAAMA,yBAAyB,GAAAC,OAAA,CAAAD,yBAAA,GAAG,MAAM;AACxC,MAAME,uCAAuC,GAAAD,OAAA,CAAAC,uCAAA,GAAG,GAAG;AACnD,MAAMC,mCAAmC,GAAAF,OAAA,CAAAE,mCAAA,GAAG,IAAI","ignoreList":[]}
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.defineProperty(exports, "__esModule", {
4
- value: true
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.default = void 0;
7
- var _utils = require("../utils");
8
- /**
9
- * Internal dependencies
10
- */
11
-
23
+ module.exports = __toCommonJS(dimensions_exports);
24
+ var import_utils = require("../utils");
12
25
  const minHeight = {
13
- name: 'minHeight',
26
+ name: "minHeight",
14
27
  generate: (style, options) => {
15
- return (0, _utils.generateRule)(style, options, ['dimensions', 'minHeight'], 'minHeight');
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: 'aspectRatio',
37
+ name: "aspectRatio",
20
38
  generate: (style, options) => {
21
- return (0, _utils.generateRule)(style, options, ['dimensions', 'aspectRatio'], 'aspectRatio');
39
+ return (0, import_utils.generateRule)(
40
+ style,
41
+ options,
42
+ ["dimensions", "aspectRatio"],
43
+ "aspectRatio"
44
+ );
22
45
  }
23
46
  };
24
- var _default = exports.default = [minHeight, aspectRatio];
25
- //# sourceMappingURL=index.js.map
47
+ var dimensions_default = [minHeight, aspectRatio];
48
+ //# sourceMappingURL=index.js.map
@@ -1 +1,7 @@
1
- {"version":3,"names":["_utils","require","minHeight","name","generate","style","options","generateRule","aspectRatio","_default","exports","default"],"sources":["@wordpress/style-engine/src/styles/dimensions/index.ts"],"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"],"mappings":";;;;;;AAIA,IAAAA,MAAA,GAAAC,OAAA;AAJA;AACA;AACA;;AAIA,MAAMC,SAAS,GAAG;EACjBC,IAAI,EAAE,WAAW;EACjBC,QAAQ,EAAEA,CAAEC,KAAY,EAAEC,OAAqB,KAAM;IACpD,OAAO,IAAAC,mBAAY,EAClBF,KAAK,EACLC,OAAO,EACP,CAAE,YAAY,EAAE,WAAW,CAAE,EAC7B,WACD,CAAC;EACF;AACD,CAAC;AAED,MAAME,WAAW,GAAG;EACnBL,IAAI,EAAE,aAAa;EACnBC,QAAQ,EAAEA,CAAEC,KAAY,EAAEC,OAAqB,KAAM;IACpD,OAAO,IAAAC,mBAAY,EAClBF,KAAK,EACLC,OAAO,EACP,CAAE,YAAY,EAAE,aAAa,CAAE,EAC/B,aACD,CAAC;EACF;AACD,CAAC;AAAC,IAAAG,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEa,CAAET,SAAS,EAAEM,WAAW,CAAE","ignoreList":[]}
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
+ }
@@ -1,21 +1,56 @@
1
1
  "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
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.styleDefinitions = void 0;
8
- var _border = _interopRequireDefault(require("./border"));
9
- var _color = _interopRequireDefault(require("./color"));
10
- var _dimensions = _interopRequireDefault(require("./dimensions"));
11
- var _background = _interopRequireDefault(require("./background"));
12
- var _shadow = _interopRequireDefault(require("./shadow"));
13
- var _outline = _interopRequireDefault(require("./outline"));
14
- var _spacing = _interopRequireDefault(require("./spacing"));
15
- var _typography = _interopRequireDefault(require("./typography"));
16
- /**
17
- * Internal dependencies
18
- */
19
-
20
- const styleDefinitions = exports.styleDefinitions = [..._border.default, ..._color.default, ..._dimensions.default, ..._outline.default, ..._spacing.default, ..._typography.default, ..._shadow.default, ..._background.default];
21
- //# sourceMappingURL=index.js.map
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
- {"version":3,"names":["_border","_interopRequireDefault","require","_color","_dimensions","_background","_shadow","_outline","_spacing","_typography","styleDefinitions","exports","border","color","dimensions","outline","spacing","typography","shadow","background"],"sources":["@wordpress/style-engine/src/styles/index.ts"],"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"],"mappings":";;;;;;;AAGA,IAAAA,OAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,WAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,WAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,OAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,QAAA,GAAAN,sBAAA,CAAAC,OAAA;AACA,IAAAM,QAAA,GAAAP,sBAAA,CAAAC,OAAA;AACA,IAAAO,WAAA,GAAAR,sBAAA,CAAAC,OAAA;AAVA;AACA;AACA;;AAUO,MAAMQ,gBAAgB,GAAAC,OAAA,CAAAD,gBAAA,GAAG,CAC/B,GAAGE,eAAM,EACT,GAAGC,cAAK,EACR,GAAGC,mBAAU,EACb,GAAGC,gBAAO,EACV,GAAGC,gBAAO,EACV,GAAGC,mBAAU,EACb,GAAGC,eAAM,EACT,GAAGC,mBAAU,CACb","ignoreList":[]}
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.defineProperty(exports, "__esModule", {
4
- value: true
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.default = void 0;
7
- var _utils = require("../utils");
8
- /**
9
- * Internal dependencies
10
- */
11
-
23
+ module.exports = __toCommonJS(outline_exports);
24
+ var import_utils = require("../utils");
12
25
  const color = {
13
- name: 'color',
14
- generate: (style, options, path = ['outline', 'color'], ruleKey = 'outlineColor') => {
15
- return (0, _utils.generateRule)(style, options, path, ruleKey);
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: 'offset',
20
- generate: (style, options, path = ['outline', 'offset'], ruleKey = 'outlineOffset') => {
21
- return (0, _utils.generateRule)(style, options, path, ruleKey);
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: 'style',
26
- generate: (style, options, path = ['outline', 'style'], ruleKey = 'outlineStyle') => {
27
- return (0, _utils.generateRule)(style, options, path, ruleKey);
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: 'width',
32
- generate: (style, options, path = ['outline', 'width'], ruleKey = 'outlineWidth') => {
33
- return (0, _utils.generateRule)(style, options, path, ruleKey);
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 _default = exports.default = [color, outlineStyle, offset, width];
37
- //# sourceMappingURL=index.js.map
49
+ var outline_default = [color, outlineStyle, offset, width];
50
+ //# sourceMappingURL=index.js.map
@@ -1 +1,7 @@
1
- {"version":3,"names":["_utils","require","color","name","generate","style","options","path","ruleKey","generateRule","offset","outlineStyle","width","_default","exports","default"],"sources":["@wordpress/style-engine/src/styles/outline/index.ts"],"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"],"mappings":";;;;;;AAIA,IAAAA,MAAA,GAAAC,OAAA;AAJA;AACA;AACA;;AAIA,MAAMC,KAAK,GAAG;EACbC,IAAI,EAAE,OAAO;EACbC,QAAQ,EAAEA,CACTC,KAAY,EACZC,OAAqB,EACrBC,IAAc,GAAG,CAAE,SAAS,EAAE,OAAO,CAAE,EACvCC,OAAe,GAAG,cAAc,KACR;IACxB,OAAO,IAAAC,mBAAY,EAAEJ,KAAK,EAAEC,OAAO,EAAEC,IAAI,EAAEC,OAAQ,CAAC;EACrD;AACD,CAAC;AAED,MAAME,MAAM,GAAG;EACdP,IAAI,EAAE,QAAQ;EACdC,QAAQ,EAAEA,CACTC,KAAY,EACZC,OAAqB,EACrBC,IAAc,GAAG,CAAE,SAAS,EAAE,QAAQ,CAAE,EACxCC,OAAe,GAAG,eAAe,KACT;IACxB,OAAO,IAAAC,mBAAY,EAAEJ,KAAK,EAAEC,OAAO,EAAEC,IAAI,EAAEC,OAAQ,CAAC;EACrD;AACD,CAAC;AAED,MAAMG,YAAY,GAAG;EACpBR,IAAI,EAAE,OAAO;EACbC,QAAQ,EAAEA,CACTC,KAAY,EACZC,OAAqB,EACrBC,IAAc,GAAG,CAAE,SAAS,EAAE,OAAO,CAAE,EACvCC,OAAe,GAAG,cAAc,KACR;IACxB,OAAO,IAAAC,mBAAY,EAAEJ,KAAK,EAAEC,OAAO,EAAEC,IAAI,EAAEC,OAAQ,CAAC;EACrD;AACD,CAAC;AAED,MAAMI,KAAK,GAAG;EACbT,IAAI,EAAE,OAAO;EACbC,QAAQ,EAAEA,CACTC,KAAY,EACZC,OAAqB,EACrBC,IAAc,GAAG,CAAE,SAAS,EAAE,OAAO,CAAE,EACvCC,OAAe,GAAG,cAAc,KACR;IACxB,OAAO,IAAAC,mBAAY,EAAEJ,KAAK,EAAEC,OAAO,EAAEC,IAAI,EAAEC,OAAQ,CAAC;EACrD;AACD,CAAC;AAAC,IAAAK,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEa,CAAEb,KAAK,EAAES,YAAY,EAAED,MAAM,EAAEE,KAAK,CAAE","ignoreList":[]}
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.defineProperty(exports, "__esModule", {
4
- value: true
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.default = void 0;
7
- var _utils = require("../utils");
8
- /**
9
- * Internal dependencies
10
- */
11
-
23
+ module.exports = __toCommonJS(shadow_exports);
24
+ var import_utils = require("../utils");
12
25
  const shadow = {
13
- name: 'shadow',
26
+ name: "shadow",
14
27
  generate: (style, options) => {
15
- return (0, _utils.generateRule)(style, options, ['shadow'], 'boxShadow');
28
+ return (0, import_utils.generateRule)(style, options, ["shadow"], "boxShadow");
16
29
  }
17
30
  };
18
- var _default = exports.default = [shadow];
19
- //# sourceMappingURL=index.js.map
31
+ var shadow_default = [shadow];
32
+ //# sourceMappingURL=index.js.map
@@ -1 +1,7 @@
1
- {"version":3,"names":["_utils","require","shadow","name","generate","style","options","generateRule","_default","exports","default"],"sources":["@wordpress/style-engine/src/styles/shadow/index.ts"],"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"],"mappings":";;;;;;AAIA,IAAAA,MAAA,GAAAC,OAAA;AAJA;AACA;AACA;;AAIA,MAAMC,MAAM,GAAG;EACdC,IAAI,EAAE,QAAQ;EACdC,QAAQ,EAAEA,CAAEC,KAAY,EAAEC,OAAqB,KAAM;IACpD,OAAO,IAAAC,mBAAY,EAAEF,KAAK,EAAEC,OAAO,EAAE,CAAE,QAAQ,CAAE,EAAE,WAAY,CAAC;EACjE;AACD,CAAC;AAAC,IAAAE,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEa,CAAER,MAAM,CAAE","ignoreList":[]}
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 _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
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.default = void 0;
8
- var _padding = _interopRequireDefault(require("./padding"));
9
- var _margin = _interopRequireDefault(require("./margin"));
10
- /**
11
- * Internal dependencies
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
- {"version":3,"names":["_padding","_interopRequireDefault","require","_margin","_default","exports","default","margin","padding"],"sources":["@wordpress/style-engine/src/styles/spacing/index.ts"],"sourcesContent":["/**\n * Internal dependencies\n */\nimport padding from './padding';\nimport margin from './margin';\n\nexport default [ margin, padding ];\n"],"mappings":";;;;;;;AAGA,IAAAA,QAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAF,sBAAA,CAAAC,OAAA;AAJA;AACA;AACA;AAFA,IAAAE,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAMe,CAAEC,eAAM,EAAEC,gBAAO,CAAE","ignoreList":[]}
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.defineProperty(exports, "__esModule", {
4
- value: true
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.default = void 0;
7
- var _utils = require("../utils");
8
- /**
9
- * Internal dependencies
10
- */
11
-
23
+ module.exports = __toCommonJS(margin_exports);
24
+ var import_utils = require("../utils");
12
25
  const margin = {
13
- name: 'margin',
26
+ name: "margin",
14
27
  generate: (style, options) => {
15
- return (0, _utils.generateBoxRules)(style, options, ['spacing', 'margin'], {
16
- default: 'margin',
17
- individual: 'margin%s'
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 _default = exports.default = margin;
22
- //# sourceMappingURL=margin.js.map
34
+ var margin_default = margin;
35
+ //# sourceMappingURL=margin.js.map
@@ -1 +1,7 @@
1
- {"version":3,"names":["_utils","require","margin","name","generate","style","options","generateBoxRules","default","individual","_default","exports"],"sources":["@wordpress/style-engine/src/styles/spacing/margin.ts"],"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"],"mappings":";;;;;;AAIA,IAAAA,MAAA,GAAAC,OAAA;AAJA;AACA;AACA;;AAIA,MAAMC,MAAM,GAAG;EACdC,IAAI,EAAE,QAAQ;EACdC,QAAQ,EAAEA,CAAEC,KAAY,EAAEC,OAAqB,KAAM;IACpD,OAAO,IAAAC,uBAAgB,EAAEF,KAAK,EAAEC,OAAO,EAAE,CAAE,SAAS,EAAE,QAAQ,CAAE,EAAE;MACjEE,OAAO,EAAE,QAAQ;MACjBC,UAAU,EAAE;IACb,CAAE,CAAC;EACJ;AACD,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAH,OAAA,GAEaN,MAAM","ignoreList":[]}
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
+ }