@wordpress/primitives 4.32.0 → 4.32.1-next.47f435fc9.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 (37) hide show
  1. package/build/block-quotation/index.js +27 -6
  2. package/build/block-quotation/index.js.map +7 -1
  3. package/build/horizontal-rule/index.js +27 -6
  4. package/build/horizontal-rule/index.js.map +7 -1
  5. package/build/index.js +27 -48
  6. package/build/index.js.map +7 -1
  7. package/build/svg/index.js +87 -127
  8. package/build/svg/index.js.map +7 -1
  9. package/build/view/index.js +27 -6
  10. package/build/view/index.js.map +7 -1
  11. package/build-module/block-quotation/index.js +5 -2
  12. package/build-module/block-quotation/index.js.map +7 -1
  13. package/build-module/horizontal-rule/index.js +5 -2
  14. package/build-module/horizontal-rule/index.js.map +7 -1
  15. package/build-module/index.js +5 -5
  16. package/build-module/index.js.map +7 -1
  17. package/build-module/svg/index.js +46 -113
  18. package/build-module/svg/index.js.map +7 -1
  19. package/build-module/view/index.js +5 -2
  20. package/build-module/view/index.js.map +7 -1
  21. package/package.json +10 -4
  22. package/build/block-quotation/index.native.js +0 -67
  23. package/build/block-quotation/index.native.js.map +0 -1
  24. package/build/horizontal-rule/index.native.js +0 -60
  25. package/build/horizontal-rule/index.native.js.map +0 -1
  26. package/build/svg/index.native.js +0 -126
  27. package/build/svg/index.native.js.map +0 -1
  28. package/build/view/index.native.js +0 -13
  29. package/build/view/index.native.js.map +0 -1
  30. package/build-module/block-quotation/index.native.js +0 -57
  31. package/build-module/block-quotation/index.native.js.map +0 -1
  32. package/build-module/horizontal-rule/index.native.js +0 -52
  33. package/build-module/horizontal-rule/index.native.js.map +0 -1
  34. package/build-module/svg/index.native.js +0 -52
  35. package/build-module/svg/index.native.js.map +0 -1
  36. package/build-module/view/index.native.js +0 -5
  37. package/build-module/view/index.native.js.map +0 -1
@@ -1,8 +1,29 @@
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 block_quotation_exports = {};
20
+ __export(block_quotation_exports, {
21
+ BlockQuotation: () => BlockQuotation
5
22
  });
6
- exports.BlockQuotation = void 0;
7
- const BlockQuotation = exports.BlockQuotation = 'blockquote';
8
- //# sourceMappingURL=index.js.map
23
+ module.exports = __toCommonJS(block_quotation_exports);
24
+ const BlockQuotation = "blockquote";
25
+ // Annotate the CommonJS export names for ESM import in node:
26
+ 0 && (module.exports = {
27
+ BlockQuotation
28
+ });
29
+ //# sourceMappingURL=index.js.map
@@ -1 +1,7 @@
1
- {"version":3,"names":["BlockQuotation","exports"],"sources":["@wordpress/primitives/src/block-quotation/index.js"],"sourcesContent":["export const BlockQuotation = 'blockquote';\n"],"mappings":";;;;;;AAAO,MAAMA,cAAc,GAAAC,OAAA,CAAAD,cAAA,GAAG,YAAY","ignoreList":[]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/block-quotation/index.js"],
4
+ "sourcesContent": ["export const BlockQuotation = 'blockquote';\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,iBAAiB;",
6
+ "names": []
7
+ }
@@ -1,8 +1,29 @@
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 horizontal_rule_exports = {};
20
+ __export(horizontal_rule_exports, {
21
+ HorizontalRule: () => HorizontalRule
5
22
  });
6
- exports.HorizontalRule = void 0;
7
- const HorizontalRule = exports.HorizontalRule = 'hr';
8
- //# sourceMappingURL=index.js.map
23
+ module.exports = __toCommonJS(horizontal_rule_exports);
24
+ const HorizontalRule = "hr";
25
+ // Annotate the CommonJS export names for ESM import in node:
26
+ 0 && (module.exports = {
27
+ HorizontalRule
28
+ });
29
+ //# sourceMappingURL=index.js.map
@@ -1 +1,7 @@
1
- {"version":3,"names":["HorizontalRule","exports"],"sources":["@wordpress/primitives/src/horizontal-rule/index.js"],"sourcesContent":["export const HorizontalRule = 'hr';\n"],"mappings":";;;;;;AAAO,MAAMA,cAAc,GAAAC,OAAA,CAAAD,cAAA,GAAG,IAAI","ignoreList":[]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/horizontal-rule/index.js"],
4
+ "sourcesContent": ["export const HorizontalRule = 'hr';\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,iBAAiB;",
6
+ "names": []
7
+ }
package/build/index.js CHANGED
@@ -1,50 +1,29 @@
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 __copyProps = (to, from, except, desc) => {
7
+ if (from && typeof from === "object" || typeof from === "function") {
8
+ for (let key of __getOwnPropNames(from))
9
+ if (!__hasOwnProp.call(to, key) && key !== except)
10
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
+ }
12
+ return to;
13
+ };
14
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
15
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
16
+ var index_exports = {};
17
+ module.exports = __toCommonJS(index_exports);
18
+ __reExport(index_exports, require("./svg"), module.exports);
19
+ __reExport(index_exports, require("./horizontal-rule"), module.exports);
20
+ __reExport(index_exports, require("./block-quotation"), module.exports);
21
+ __reExport(index_exports, require("./view"), module.exports);
22
+ // Annotate the CommonJS export names for ESM import in node:
23
+ 0 && (module.exports = {
24
+ ...require("./svg"),
25
+ ...require("./horizontal-rule"),
26
+ ...require("./block-quotation"),
27
+ ...require("./view")
5
28
  });
6
- var _svg = require("./svg");
7
- Object.keys(_svg).forEach(function (key) {
8
- if (key === "default" || key === "__esModule") return;
9
- if (key in exports && exports[key] === _svg[key]) return;
10
- Object.defineProperty(exports, key, {
11
- enumerable: true,
12
- get: function () {
13
- return _svg[key];
14
- }
15
- });
16
- });
17
- var _horizontalRule = require("./horizontal-rule");
18
- Object.keys(_horizontalRule).forEach(function (key) {
19
- if (key === "default" || key === "__esModule") return;
20
- if (key in exports && exports[key] === _horizontalRule[key]) return;
21
- Object.defineProperty(exports, key, {
22
- enumerable: true,
23
- get: function () {
24
- return _horizontalRule[key];
25
- }
26
- });
27
- });
28
- var _blockQuotation = require("./block-quotation");
29
- Object.keys(_blockQuotation).forEach(function (key) {
30
- if (key === "default" || key === "__esModule") return;
31
- if (key in exports && exports[key] === _blockQuotation[key]) return;
32
- Object.defineProperty(exports, key, {
33
- enumerable: true,
34
- get: function () {
35
- return _blockQuotation[key];
36
- }
37
- });
38
- });
39
- var _view = require("./view");
40
- Object.keys(_view).forEach(function (key) {
41
- if (key === "default" || key === "__esModule") return;
42
- if (key in exports && exports[key] === _view[key]) return;
43
- Object.defineProperty(exports, key, {
44
- enumerable: true,
45
- get: function () {
46
- return _view[key];
47
- }
48
- });
49
- });
50
- //# sourceMappingURL=index.js.map
29
+ //# sourceMappingURL=index.js.map
@@ -1 +1,7 @@
1
- {"version":3,"names":["_svg","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_horizontalRule","_blockQuotation","_view"],"sources":["@wordpress/primitives/src/index.js"],"sourcesContent":["export * from './svg';\nexport * from './horizontal-rule';\nexport * from './block-quotation';\nexport * from './view';\n"],"mappings":";;;;;AAAA,IAAAA,IAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,IAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,IAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,IAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,eAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,eAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,eAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAC,eAAA,CAAAL,GAAA;IAAA;EAAA;AAAA;AACA,IAAAM,eAAA,GAAAV,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAQ,eAAA,EAAAP,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAM,eAAA,CAAAN,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAE,eAAA,CAAAN,GAAA;IAAA;EAAA;AAAA;AACA,IAAAO,KAAA,GAAAX,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAS,KAAA,EAAAR,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAO,KAAA,CAAAP,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAG,KAAA,CAAAP,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/index.js"],
4
+ "sourcesContent": ["export * from './svg';\nexport * from './horizontal-rule';\nexport * from './block-quotation';\nexport * from './view';\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA,0BAAc,kBAAd;AACA,0BAAc,8BADd;AAEA,0BAAc,8BAFd;AAGA,0BAAc,mBAHd;",
6
+ "names": []
7
+ }
@@ -1,130 +1,90 @@
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 svg_exports = {};
30
+ __export(svg_exports, {
31
+ Circle: () => Circle,
32
+ Defs: () => Defs,
33
+ G: () => G,
34
+ Line: () => Line,
35
+ LinearGradient: () => LinearGradient,
36
+ Path: () => Path,
37
+ Polygon: () => Polygon,
38
+ RadialGradient: () => RadialGradient,
39
+ Rect: () => Rect,
40
+ SVG: () => SVG,
41
+ Stop: () => Stop
6
42
  });
7
- exports.Stop = exports.SVG = exports.Rect = exports.RadialGradient = exports.Polygon = exports.Path = exports.LinearGradient = exports.Line = exports.G = exports.Defs = exports.Circle = void 0;
8
- var _clsx = _interopRequireDefault(require("clsx"));
9
- var _element = require("@wordpress/element");
10
- var _jsxRuntime = require("react/jsx-runtime");
11
- /**
12
- * External dependencies
13
- */
14
-
15
- /**
16
- * WordPress dependencies
17
- */
18
-
19
- /** @typedef {{isPressed?: boolean} & import('react').ComponentPropsWithoutRef<'svg'>} SVGProps */
20
-
21
- /**
22
- * @param {import('react').ComponentPropsWithoutRef<'circle'>} props
23
- *
24
- * @return {JSX.Element} Circle component
25
- */
26
- const Circle = props => (0, _element.createElement)('circle', props);
27
-
28
- /**
29
- * @param {import('react').ComponentPropsWithoutRef<'g'>} props
30
- *
31
- * @return {JSX.Element} G component
32
- */
33
- exports.Circle = Circle;
34
- const G = props => (0, _element.createElement)('g', props);
35
-
36
- /**
37
- * @param {import('react').ComponentPropsWithoutRef<'line'>} props
38
- *
39
- * @return {JSX.Element} Path component
40
- */
41
- exports.G = G;
42
- const Line = props => (0, _element.createElement)('line', props);
43
-
44
- /**
45
- * @param {import('react').ComponentPropsWithoutRef<'path'>} props
46
- *
47
- * @return {JSX.Element} Path component
48
- */
49
- exports.Line = Line;
50
- const Path = props => (0, _element.createElement)('path', props);
51
-
52
- /**
53
- * @param {import('react').ComponentPropsWithoutRef<'polygon'>} props
54
- *
55
- * @return {JSX.Element} Polygon component
56
- */
57
- exports.Path = Path;
58
- const Polygon = props => (0, _element.createElement)('polygon', props);
59
-
60
- /**
61
- * @param {import('react').ComponentPropsWithoutRef<'rect'>} props
62
- *
63
- * @return {JSX.Element} Rect component
64
- */
65
- exports.Polygon = Polygon;
66
- const Rect = props => (0, _element.createElement)('rect', props);
67
-
68
- /**
69
- * @param {import('react').ComponentPropsWithoutRef<'defs'>} props
70
- *
71
- * @return {JSX.Element} Defs component
72
- */
73
- exports.Rect = Rect;
74
- const Defs = props => (0, _element.createElement)('defs', props);
75
-
76
- /**
77
- * @param {import('react').ComponentPropsWithoutRef<'radialGradient'>} props
78
- *
79
- * @return {JSX.Element} RadialGradient component
80
- */
81
- exports.Defs = Defs;
82
- const RadialGradient = props => (0, _element.createElement)('radialGradient', props);
83
-
84
- /**
85
- * @param {import('react').ComponentPropsWithoutRef<'linearGradient'>} props
86
- *
87
- * @return {JSX.Element} LinearGradient component
88
- */
89
- exports.RadialGradient = RadialGradient;
90
- const LinearGradient = props => (0, _element.createElement)('linearGradient', props);
91
-
92
- /**
93
- * @param {import('react').ComponentPropsWithoutRef<'stop'>} props
94
- *
95
- * @return {JSX.Element} Stop component
96
- */
97
- exports.LinearGradient = LinearGradient;
98
- const Stop = props => (0, _element.createElement)('stop', props);
99
- exports.Stop = Stop;
100
- const SVG = exports.SVG = (0, _element.forwardRef)(
101
- /**
102
- * @param {SVGProps} props isPressed indicates whether the SVG should appear as pressed.
103
- * Other props will be passed through to svg component.
104
- * @param {import('react').ForwardedRef<SVGSVGElement>} ref The forwarded ref to the SVG element.
105
- *
106
- * @return {JSX.Element} Stop component
107
- */
108
- ({
109
- className,
110
- isPressed,
111
- ...props
112
- }, ref) => {
113
- const appliedProps = {
114
- ...props,
115
- className: (0, _clsx.default)(className, {
116
- 'is-pressed': isPressed
117
- }) || undefined,
118
- 'aria-hidden': true,
119
- focusable: false
120
- };
121
-
122
- // Disable reason: We need to have a way to render HTML tag for web.
123
- // eslint-disable-next-line react/forbid-elements
124
- return /*#__PURE__*/(0, _jsxRuntime.jsx)("svg", {
125
- ...appliedProps,
126
- ref: ref
127
- });
43
+ module.exports = __toCommonJS(svg_exports);
44
+ var import_jsx_runtime = require("react/jsx-runtime");
45
+ var import_clsx = __toESM(require("clsx"));
46
+ var import_element = require("@wordpress/element");
47
+ const Circle = (props) => (0, import_element.createElement)("circle", props);
48
+ const G = (props) => (0, import_element.createElement)("g", props);
49
+ const Line = (props) => (0, import_element.createElement)("line", props);
50
+ const Path = (props) => (0, import_element.createElement)("path", props);
51
+ const Polygon = (props) => (0, import_element.createElement)("polygon", props);
52
+ const Rect = (props) => (0, import_element.createElement)("rect", props);
53
+ const Defs = (props) => (0, import_element.createElement)("defs", props);
54
+ const RadialGradient = (props) => (0, import_element.createElement)("radialGradient", props);
55
+ const LinearGradient = (props) => (0, import_element.createElement)("linearGradient", props);
56
+ const Stop = (props) => (0, import_element.createElement)("stop", props);
57
+ const SVG = (0, import_element.forwardRef)(
58
+ /**
59
+ * @param {SVGProps} props isPressed indicates whether the SVG should appear as pressed.
60
+ * Other props will be passed through to svg component.
61
+ * @param {import('react').ForwardedRef<SVGSVGElement>} ref The forwarded ref to the SVG element.
62
+ *
63
+ * @return {JSX.Element} Stop component
64
+ */
65
+ ({ className, isPressed, ...props }, ref) => {
66
+ const appliedProps = {
67
+ ...props,
68
+ className: (0, import_clsx.default)(className, { "is-pressed": isPressed }) || void 0,
69
+ "aria-hidden": true,
70
+ focusable: false
71
+ };
72
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("svg", { ...appliedProps, ref });
73
+ }
74
+ );
75
+ SVG.displayName = "SVG";
76
+ // Annotate the CommonJS export names for ESM import in node:
77
+ 0 && (module.exports = {
78
+ Circle,
79
+ Defs,
80
+ G,
81
+ Line,
82
+ LinearGradient,
83
+ Path,
84
+ Polygon,
85
+ RadialGradient,
86
+ Rect,
87
+ SVG,
88
+ Stop
128
89
  });
129
- SVG.displayName = 'SVG';
130
- //# sourceMappingURL=index.js.map
90
+ //# sourceMappingURL=index.js.map
@@ -1 +1,7 @@
1
- {"version":3,"names":["_clsx","_interopRequireDefault","require","_element","_jsxRuntime","Circle","props","createElement","exports","G","Line","Path","Polygon","Rect","Defs","RadialGradient","LinearGradient","Stop","SVG","forwardRef","className","isPressed","ref","appliedProps","clsx","undefined","focusable","jsx","displayName"],"sources":["@wordpress/primitives/src/svg/index.js"],"sourcesContent":["/**\n * External dependencies\n */\nimport clsx from 'clsx';\n\n/**\n * WordPress dependencies\n */\nimport { createElement, forwardRef } from '@wordpress/element';\n\n/** @typedef {{isPressed?: boolean} & import('react').ComponentPropsWithoutRef<'svg'>} SVGProps */\n\n/**\n * @param {import('react').ComponentPropsWithoutRef<'circle'>} props\n *\n * @return {JSX.Element} Circle component\n */\nexport const Circle = ( props ) => createElement( 'circle', props );\n\n/**\n * @param {import('react').ComponentPropsWithoutRef<'g'>} props\n *\n * @return {JSX.Element} G component\n */\nexport const G = ( props ) => createElement( 'g', props );\n\n/**\n * @param {import('react').ComponentPropsWithoutRef<'line'>} props\n *\n * @return {JSX.Element} Path component\n */\nexport const Line = ( props ) => createElement( 'line', props );\n\n/**\n * @param {import('react').ComponentPropsWithoutRef<'path'>} props\n *\n * @return {JSX.Element} Path component\n */\nexport const Path = ( props ) => createElement( 'path', props );\n\n/**\n * @param {import('react').ComponentPropsWithoutRef<'polygon'>} props\n *\n * @return {JSX.Element} Polygon component\n */\nexport const Polygon = ( props ) => createElement( 'polygon', props );\n\n/**\n * @param {import('react').ComponentPropsWithoutRef<'rect'>} props\n *\n * @return {JSX.Element} Rect component\n */\nexport const Rect = ( props ) => createElement( 'rect', props );\n\n/**\n * @param {import('react').ComponentPropsWithoutRef<'defs'>} props\n *\n * @return {JSX.Element} Defs component\n */\nexport const Defs = ( props ) => createElement( 'defs', props );\n\n/**\n * @param {import('react').ComponentPropsWithoutRef<'radialGradient'>} props\n *\n * @return {JSX.Element} RadialGradient component\n */\nexport const RadialGradient = ( props ) =>\n\tcreateElement( 'radialGradient', props );\n\n/**\n * @param {import('react').ComponentPropsWithoutRef<'linearGradient'>} props\n *\n * @return {JSX.Element} LinearGradient component\n */\nexport const LinearGradient = ( props ) =>\n\tcreateElement( 'linearGradient', props );\n\n/**\n * @param {import('react').ComponentPropsWithoutRef<'stop'>} props\n *\n * @return {JSX.Element} Stop component\n */\nexport const Stop = ( props ) => createElement( 'stop', props );\n\nexport const SVG = forwardRef(\n\t/**\n\t * @param {SVGProps} props isPressed indicates whether the SVG should appear as pressed.\n\t * Other props will be passed through to svg component.\n\t * @param {import('react').ForwardedRef<SVGSVGElement>} ref The forwarded ref to the SVG element.\n\t *\n\t * @return {JSX.Element} Stop component\n\t */\n\t( { className, isPressed, ...props }, ref ) => {\n\t\tconst appliedProps = {\n\t\t\t...props,\n\t\t\tclassName:\n\t\t\t\tclsx( className, { 'is-pressed': isPressed } ) || undefined,\n\t\t\t'aria-hidden': true,\n\t\t\tfocusable: false,\n\t\t};\n\n\t\t// Disable reason: We need to have a way to render HTML tag for web.\n\t\t// eslint-disable-next-line react/forbid-elements\n\t\treturn <svg { ...appliedProps } ref={ ref } />;\n\t}\n);\nSVG.displayName = 'SVG';\n"],"mappings":";;;;;;;AAGA,IAAAA,KAAA,GAAAC,sBAAA,CAAAC,OAAA;AAKA,IAAAC,QAAA,GAAAD,OAAA;AAA+D,IAAAE,WAAA,GAAAF,OAAA;AAR/D;AACA;AACA;;AAGA;AACA;AACA;;AAGA;;AAEA;AACA;AACA;AACA;AACA;AACO,MAAMG,MAAM,GAAKC,KAAK,IAAM,IAAAC,sBAAa,EAAE,QAAQ,EAAED,KAAM,CAAC;;AAEnE;AACA;AACA;AACA;AACA;AAJAE,OAAA,CAAAH,MAAA,GAAAA,MAAA;AAKO,MAAMI,CAAC,GAAKH,KAAK,IAAM,IAAAC,sBAAa,EAAE,GAAG,EAAED,KAAM,CAAC;;AAEzD;AACA;AACA;AACA;AACA;AAJAE,OAAA,CAAAC,CAAA,GAAAA,CAAA;AAKO,MAAMC,IAAI,GAAKJ,KAAK,IAAM,IAAAC,sBAAa,EAAE,MAAM,EAAED,KAAM,CAAC;;AAE/D;AACA;AACA;AACA;AACA;AAJAE,OAAA,CAAAE,IAAA,GAAAA,IAAA;AAKO,MAAMC,IAAI,GAAKL,KAAK,IAAM,IAAAC,sBAAa,EAAE,MAAM,EAAED,KAAM,CAAC;;AAE/D;AACA;AACA;AACA;AACA;AAJAE,OAAA,CAAAG,IAAA,GAAAA,IAAA;AAKO,MAAMC,OAAO,GAAKN,KAAK,IAAM,IAAAC,sBAAa,EAAE,SAAS,EAAED,KAAM,CAAC;;AAErE;AACA;AACA;AACA;AACA;AAJAE,OAAA,CAAAI,OAAA,GAAAA,OAAA;AAKO,MAAMC,IAAI,GAAKP,KAAK,IAAM,IAAAC,sBAAa,EAAE,MAAM,EAAED,KAAM,CAAC;;AAE/D;AACA;AACA;AACA;AACA;AAJAE,OAAA,CAAAK,IAAA,GAAAA,IAAA;AAKO,MAAMC,IAAI,GAAKR,KAAK,IAAM,IAAAC,sBAAa,EAAE,MAAM,EAAED,KAAM,CAAC;;AAE/D;AACA;AACA;AACA;AACA;AAJAE,OAAA,CAAAM,IAAA,GAAAA,IAAA;AAKO,MAAMC,cAAc,GAAKT,KAAK,IACpC,IAAAC,sBAAa,EAAE,gBAAgB,EAAED,KAAM,CAAC;;AAEzC;AACA;AACA;AACA;AACA;AAJAE,OAAA,CAAAO,cAAA,GAAAA,cAAA;AAKO,MAAMC,cAAc,GAAKV,KAAK,IACpC,IAAAC,sBAAa,EAAE,gBAAgB,EAAED,KAAM,CAAC;;AAEzC;AACA;AACA;AACA;AACA;AAJAE,OAAA,CAAAQ,cAAA,GAAAA,cAAA;AAKO,MAAMC,IAAI,GAAKX,KAAK,IAAM,IAAAC,sBAAa,EAAE,MAAM,EAAED,KAAM,CAAC;AAACE,OAAA,CAAAS,IAAA,GAAAA,IAAA;AAEzD,MAAMC,GAAG,GAAAV,OAAA,CAAAU,GAAA,GAAG,IAAAC,mBAAU;AAC5B;AACD;AACA;AACA;AACA;AACA;AACA;AACC,CAAE;EAAEC,SAAS;EAAEC,SAAS;EAAE,GAAGf;AAAM,CAAC,EAAEgB,GAAG,KAAM;EAC9C,MAAMC,YAAY,GAAG;IACpB,GAAGjB,KAAK;IACRc,SAAS,EACR,IAAAI,aAAI,EAAEJ,SAAS,EAAE;MAAE,YAAY,EAAEC;IAAU,CAAE,CAAC,IAAII,SAAS;IAC5D,aAAa,EAAE,IAAI;IACnBC,SAAS,EAAE;EACZ,CAAC;;EAED;EACA;EACA,oBAAO,IAAAtB,WAAA,CAAAuB,GAAA;IAAA,GAAUJ,YAAY;IAAGD,GAAG,EAAGA;EAAK,CAAE,CAAC;AAC/C,CACD,CAAC;AACDJ,GAAG,CAACU,WAAW,GAAG,KAAK","ignoreList":[]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/svg/index.js"],
4
+ "sourcesContent": ["/**\n * External dependencies\n */\nimport clsx from 'clsx';\n\n/**\n * WordPress dependencies\n */\nimport { createElement, forwardRef } from '@wordpress/element';\n\n/** @typedef {{isPressed?: boolean} & import('react').ComponentPropsWithoutRef<'svg'>} SVGProps */\n\n/**\n * @param {import('react').ComponentPropsWithoutRef<'circle'>} props\n *\n * @return {JSX.Element} Circle component\n */\nexport const Circle = ( props ) => createElement( 'circle', props );\n\n/**\n * @param {import('react').ComponentPropsWithoutRef<'g'>} props\n *\n * @return {JSX.Element} G component\n */\nexport const G = ( props ) => createElement( 'g', props );\n\n/**\n * @param {import('react').ComponentPropsWithoutRef<'line'>} props\n *\n * @return {JSX.Element} Path component\n */\nexport const Line = ( props ) => createElement( 'line', props );\n\n/**\n * @param {import('react').ComponentPropsWithoutRef<'path'>} props\n *\n * @return {JSX.Element} Path component\n */\nexport const Path = ( props ) => createElement( 'path', props );\n\n/**\n * @param {import('react').ComponentPropsWithoutRef<'polygon'>} props\n *\n * @return {JSX.Element} Polygon component\n */\nexport const Polygon = ( props ) => createElement( 'polygon', props );\n\n/**\n * @param {import('react').ComponentPropsWithoutRef<'rect'>} props\n *\n * @return {JSX.Element} Rect component\n */\nexport const Rect = ( props ) => createElement( 'rect', props );\n\n/**\n * @param {import('react').ComponentPropsWithoutRef<'defs'>} props\n *\n * @return {JSX.Element} Defs component\n */\nexport const Defs = ( props ) => createElement( 'defs', props );\n\n/**\n * @param {import('react').ComponentPropsWithoutRef<'radialGradient'>} props\n *\n * @return {JSX.Element} RadialGradient component\n */\nexport const RadialGradient = ( props ) =>\n\tcreateElement( 'radialGradient', props );\n\n/**\n * @param {import('react').ComponentPropsWithoutRef<'linearGradient'>} props\n *\n * @return {JSX.Element} LinearGradient component\n */\nexport const LinearGradient = ( props ) =>\n\tcreateElement( 'linearGradient', props );\n\n/**\n * @param {import('react').ComponentPropsWithoutRef<'stop'>} props\n *\n * @return {JSX.Element} Stop component\n */\nexport const Stop = ( props ) => createElement( 'stop', props );\n\nexport const SVG = forwardRef(\n\t/**\n\t * @param {SVGProps} props isPressed indicates whether the SVG should appear as pressed.\n\t * Other props will be passed through to svg component.\n\t * @param {import('react').ForwardedRef<SVGSVGElement>} ref The forwarded ref to the SVG element.\n\t *\n\t * @return {JSX.Element} Stop component\n\t */\n\t( { className, isPressed, ...props }, ref ) => {\n\t\tconst appliedProps = {\n\t\t\t...props,\n\t\t\tclassName:\n\t\t\t\tclsx( className, { 'is-pressed': isPressed } ) || undefined,\n\t\t\t'aria-hidden': true,\n\t\t\tfocusable: false,\n\t\t};\n\n\t\t// Disable reason: We need to have a way to render HTML tag for web.\n\t\t// eslint-disable-next-line react/forbid-elements\n\t\treturn <svg { ...appliedProps } ref={ ref } />;\n\t}\n);\nSVG.displayName = 'SVG';\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAuGS;AApGT,kBAAiB;AAKjB,qBAA0C;AASnC,MAAM,SAAS,CAAE,cAAW,8BAAe,UAAU,KAAM;AAO3D,MAAM,IAAI,CAAE,cAAW,8BAAe,KAAK,KAAM;AAOjD,MAAM,OAAO,CAAE,cAAW,8BAAe,QAAQ,KAAM;AAOvD,MAAM,OAAO,CAAE,cAAW,8BAAe,QAAQ,KAAM;AAOvD,MAAM,UAAU,CAAE,cAAW,8BAAe,WAAW,KAAM;AAO7D,MAAM,OAAO,CAAE,cAAW,8BAAe,QAAQ,KAAM;AAOvD,MAAM,OAAO,CAAE,cAAW,8BAAe,QAAQ,KAAM;AAOvD,MAAM,iBAAiB,CAAE,cAC/B,8BAAe,kBAAkB,KAAM;AAOjC,MAAM,iBAAiB,CAAE,cAC/B,8BAAe,kBAAkB,KAAM;AAOjC,MAAM,OAAO,CAAE,cAAW,8BAAe,QAAQ,KAAM;AAEvD,MAAM,UAAM;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQlB,CAAE,EAAE,WAAW,WAAW,GAAG,MAAM,GAAG,QAAS;AAC9C,UAAM,eAAe;AAAA,MACpB,GAAG;AAAA,MACH,eACC,YAAAA,SAAM,WAAW,EAAE,cAAc,UAAU,CAAE,KAAK;AAAA,MACnD,eAAe;AAAA,MACf,WAAW;AAAA,IACZ;AAIA,WAAO,4CAAC,SAAM,GAAG,cAAe,KAAY;AAAA,EAC7C;AACD;AACA,IAAI,cAAc;",
6
+ "names": ["clsx"]
7
+ }
@@ -1,8 +1,29 @@
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 view_exports = {};
20
+ __export(view_exports, {
21
+ View: () => View
5
22
  });
6
- exports.View = void 0;
7
- const View = exports.View = 'div';
8
- //# sourceMappingURL=index.js.map
23
+ module.exports = __toCommonJS(view_exports);
24
+ const View = "div";
25
+ // Annotate the CommonJS export names for ESM import in node:
26
+ 0 && (module.exports = {
27
+ View
28
+ });
29
+ //# sourceMappingURL=index.js.map
@@ -1 +1,7 @@
1
- {"version":3,"names":["View","exports"],"sources":["@wordpress/primitives/src/view/index.js"],"sourcesContent":["export const View = 'div';\n"],"mappings":";;;;;;AAAO,MAAMA,IAAI,GAAAC,OAAA,CAAAD,IAAA,GAAG,KAAK","ignoreList":[]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/view/index.js"],
4
+ "sourcesContent": ["export const View = 'div';\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,OAAO;",
6
+ "names": []
7
+ }
@@ -1,2 +1,5 @@
1
- export const BlockQuotation = 'blockquote';
2
- //# sourceMappingURL=index.js.map
1
+ const BlockQuotation = "blockquote";
2
+ export {
3
+ BlockQuotation
4
+ };
5
+ //# sourceMappingURL=index.js.map
@@ -1 +1,7 @@
1
- {"version":3,"names":["BlockQuotation"],"sources":["@wordpress/primitives/src/block-quotation/index.js"],"sourcesContent":["export const BlockQuotation = 'blockquote';\n"],"mappings":"AAAA,OAAO,MAAMA,cAAc,GAAG,YAAY","ignoreList":[]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/block-quotation/index.js"],
4
+ "sourcesContent": ["export const BlockQuotation = 'blockquote';\n"],
5
+ "mappings": "AAAO,MAAM,iBAAiB;",
6
+ "names": []
7
+ }
@@ -1,2 +1,5 @@
1
- export const HorizontalRule = 'hr';
2
- //# sourceMappingURL=index.js.map
1
+ const HorizontalRule = "hr";
2
+ export {
3
+ HorizontalRule
4
+ };
5
+ //# sourceMappingURL=index.js.map
@@ -1 +1,7 @@
1
- {"version":3,"names":["HorizontalRule"],"sources":["@wordpress/primitives/src/horizontal-rule/index.js"],"sourcesContent":["export const HorizontalRule = 'hr';\n"],"mappings":"AAAA,OAAO,MAAMA,cAAc,GAAG,IAAI","ignoreList":[]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/horizontal-rule/index.js"],
4
+ "sourcesContent": ["export const HorizontalRule = 'hr';\n"],
5
+ "mappings": "AAAO,MAAM,iBAAiB;",
6
+ "names": []
7
+ }
@@ -1,5 +1,5 @@
1
- export * from './svg';
2
- export * from './horizontal-rule';
3
- export * from './block-quotation';
4
- export * from './view';
5
- //# sourceMappingURL=index.js.map
1
+ export * from "./svg";
2
+ export * from "./horizontal-rule";
3
+ export * from "./block-quotation";
4
+ export * from "./view";
5
+ //# sourceMappingURL=index.js.map
@@ -1 +1,7 @@
1
- {"version":3,"names":[],"sources":["@wordpress/primitives/src/index.js"],"sourcesContent":["export * from './svg';\nexport * from './horizontal-rule';\nexport * from './block-quotation';\nexport * from './view';\n"],"mappings":"AAAA,cAAc,OAAO;AACrB,cAAc,mBAAmB;AACjC,cAAc,mBAAmB;AACjC,cAAc,QAAQ","ignoreList":[]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/index.js"],
4
+ "sourcesContent": ["export * from './svg';\nexport * from './horizontal-rule';\nexport * from './block-quotation';\nexport * from './view';\n"],
5
+ "mappings": "AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;",
6
+ "names": []
7
+ }