@wordpress/primitives 4.32.0 → 4.32.1-next.b8c8708f3.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/block-quotation/index.js +27 -6
- package/build/block-quotation/index.js.map +7 -1
- package/build/horizontal-rule/index.js +27 -6
- package/build/horizontal-rule/index.js.map +7 -1
- package/build/index.js +27 -48
- package/build/index.js.map +7 -1
- package/build/svg/index.js +87 -127
- package/build/svg/index.js.map +7 -1
- package/build/view/index.js +27 -6
- package/build/view/index.js.map +7 -1
- package/build-module/block-quotation/index.js +5 -2
- package/build-module/block-quotation/index.js.map +7 -1
- package/build-module/horizontal-rule/index.js +5 -2
- package/build-module/horizontal-rule/index.js.map +7 -1
- package/build-module/index.js +5 -5
- package/build-module/index.js.map +7 -1
- package/build-module/svg/index.js +46 -113
- package/build-module/svg/index.js.map +7 -1
- package/build-module/view/index.js +5 -2
- package/build-module/view/index.js.map +7 -1
- package/package.json +10 -4
- package/build/block-quotation/index.native.js +0 -67
- package/build/block-quotation/index.native.js.map +0 -1
- package/build/horizontal-rule/index.native.js +0 -60
- package/build/horizontal-rule/index.native.js.map +0 -1
- package/build/svg/index.native.js +0 -126
- package/build/svg/index.native.js.map +0 -1
- package/build/view/index.native.js +0 -13
- package/build/view/index.native.js.map +0 -1
- package/build-module/block-quotation/index.native.js +0 -57
- package/build-module/block-quotation/index.native.js.map +0 -1
- package/build-module/horizontal-rule/index.native.js +0 -52
- package/build-module/horizontal-rule/index.native.js.map +0 -1
- package/build-module/svg/index.native.js +0 -52
- package/build-module/svg/index.native.js.map +0 -1
- package/build-module/view/index.native.js +0 -5
- package/build-module/view/index.native.js.map +0 -1
|
@@ -1,8 +1,29 @@
|
|
|
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 block_quotation_exports = {};
|
|
20
|
+
__export(block_quotation_exports, {
|
|
21
|
+
BlockQuotation: () => BlockQuotation
|
|
5
22
|
});
|
|
6
|
-
exports
|
|
7
|
-
const BlockQuotation =
|
|
8
|
-
|
|
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
|
-
{
|
|
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.
|
|
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 horizontal_rule_exports = {};
|
|
20
|
+
__export(horizontal_rule_exports, {
|
|
21
|
+
HorizontalRule: () => HorizontalRule
|
|
5
22
|
});
|
|
6
|
-
exports
|
|
7
|
-
const HorizontalRule =
|
|
8
|
-
|
|
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
|
-
{
|
|
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.
|
|
4
|
-
|
|
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
|
-
|
|
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
|
package/build/index.js.map
CHANGED
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{
|
|
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
|
+
}
|
package/build/svg/index.js
CHANGED
|
@@ -1,130 +1,90 @@
|
|
|
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 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
|
-
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
exports
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
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
|
-
|
|
130
|
-
//# sourceMappingURL=index.js.map
|
|
90
|
+
//# sourceMappingURL=index.js.map
|
package/build/svg/index.js.map
CHANGED
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{
|
|
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
|
+
}
|
package/build/view/index.js
CHANGED
|
@@ -1,8 +1,29 @@
|
|
|
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 view_exports = {};
|
|
20
|
+
__export(view_exports, {
|
|
21
|
+
View: () => View
|
|
5
22
|
});
|
|
6
|
-
exports
|
|
7
|
-
const View =
|
|
8
|
-
|
|
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
|
package/build/view/index.js.map
CHANGED
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{
|
|
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 +1,7 @@
|
|
|
1
|
-
{
|
|
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 +1,7 @@
|
|
|
1
|
-
{
|
|
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
|
+
}
|
package/build-module/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
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
|
-
{
|
|
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
|
+
}
|