PluginProbe
Gutenberg / 22.9.0
Gutenberg v22.9.0
23.9.1 23.9.0 23.8.0 23.7.2 23.7.1 23.7.0 23.6.1 23.6.2 23.6.0 23.5.3 23.5.2 23.5.1 23.5.0 23.4.0 23.3.2 23.3.1 23.3.0 23.2.0 23.2.1 23.2.2 23.1.1 23.1.0 23.0.1 12.6.0 7.4.0 All 402 releases
gutenberg / build / scripts / primitives / index.js

index.js in Gutenberg 22.9.0, at build/scripts/primitives/index.js

128 lines 5.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 "use strict";
2 var wp;
3 (wp ||= {}).primitives = (() => {
4 var __create = Object.create;
5 var __defProp = Object.defineProperty;
6 var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7 var __getOwnPropNames = Object.getOwnPropertyNames;
8 var __getProtoOf = Object.getPrototypeOf;
9 var __hasOwnProp = Object.prototype.hasOwnProperty;
10 var __commonJS = (cb, mod) => function __require() {
11 return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
12 };
13 var __export = (target, all) => {
14 for (var name in all)
15 __defProp(target, name, { get: all[name], enumerable: true });
16 };
17 var __copyProps = (to, from, except, desc) => {
18 if (from && typeof from === "object" || typeof from === "function") {
19 for (let key of __getOwnPropNames(from))
20 if (!__hasOwnProp.call(to, key) && key !== except)
21 __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
22 }
23 return to;
24 };
25 var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
26 // If the importer is in node compatibility mode or this is not an ESM
27 // file that has been converted to a CommonJS file using a Babel-
28 // compatible transform (i.e. "__esModule" has not been set), then set
29 // "default" to the CommonJS "module.exports" for node compatibility.
30 isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
31 mod
32 ));
33 var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
34
35 // package-external:@wordpress/element
36 var require_element = __commonJS({
37 "package-external:@wordpress/element"(exports, module) {
38 module.exports = window.wp.element;
39 }
40 });
41
42 // vendor-external:react/jsx-runtime
43 var require_jsx_runtime = __commonJS({
44 "vendor-external:react/jsx-runtime"(exports, module) {
45 module.exports = window.ReactJSXRuntime;
46 }
47 });
48
49 // packages/primitives/build-module/index.mjs
50 var index_exports = {};
51 __export(index_exports, {
52 BlockQuotation: () => BlockQuotation,
53 Circle: () => Circle,
54 Defs: () => Defs,
55 G: () => G,
56 HorizontalRule: () => HorizontalRule,
57 Line: () => Line,
58 LinearGradient: () => LinearGradient,
59 Path: () => Path,
60 Polygon: () => Polygon,
61 RadialGradient: () => RadialGradient,
62 Rect: () => Rect,
63 SVG: () => SVG,
64 Stop: () => Stop,
65 View: () => View
66 });
67
68 // node_modules/clsx/dist/clsx.mjs
69 function r(e) {
70 var t, f, n = "";
71 if ("string" == typeof e || "number" == typeof e) n += e;
72 else if ("object" == typeof e) if (Array.isArray(e)) {
73 var o = e.length;
74 for (t = 0; t < o; t++) e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
75 } else for (f in e) e[f] && (n && (n += " "), n += f);
76 return n;
77 }
78 function clsx() {
79 for (var e, t, f = 0, n = "", o = arguments.length; f < o; f++) (e = arguments[f]) && (t = r(e)) && (n && (n += " "), n += t);
80 return n;
81 }
82 var clsx_default = clsx;
83
84 // packages/primitives/build-module/svg/index.mjs
85 var import_element = __toESM(require_element(), 1);
86 var import_jsx_runtime = __toESM(require_jsx_runtime(), 1);
87 var Circle = (props) => (0, import_element.createElement)("circle", props);
88 var G = (props) => (0, import_element.createElement)("g", props);
89 var Line = (props) => (0, import_element.createElement)("line", props);
90 var Path = (props) => (0, import_element.createElement)("path", props);
91 var Polygon = (props) => (0, import_element.createElement)("polygon", props);
92 var Rect = (props) => (0, import_element.createElement)("rect", props);
93 var Defs = (props) => (0, import_element.createElement)("defs", props);
94 var RadialGradient = (props) => (0, import_element.createElement)("radialGradient", props);
95 var LinearGradient = (props) => (0, import_element.createElement)("linearGradient", props);
96 var Stop = (props) => (0, import_element.createElement)("stop", props);
97 var SVG = (0, import_element.forwardRef)(
98 /**
99 * @param {SVGProps} props isPressed indicates whether the SVG should appear as pressed.
100 * Other props will be passed through to svg component.
101 * @param {React.ForwardedRef<SVGSVGElement>} ref The forwarded ref to the SVG element.
102 *
103 * @return {React.JSX.Element} Stop component
104 */
105 ({ className, isPressed, ...props }, ref) => {
106 const appliedProps = {
107 ...props,
108 className: clsx_default(className, { "is-pressed": isPressed }) || void 0,
109 "aria-hidden": true,
110 focusable: false
111 };
112 return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("svg", { ...appliedProps, ref });
113 }
114 );
115 SVG.displayName = "SVG";
116
117 // packages/primitives/build-module/horizontal-rule/index.mjs
118 var HorizontalRule = "hr";
119
120 // packages/primitives/build-module/block-quotation/index.mjs
121 var BlockQuotation = "blockquote";
122
123 // packages/primitives/build-module/view/index.mjs
124 var View = "div";
125 return __toCommonJS(index_exports);
126 })();
127 //# sourceMappingURL=index.js.map
128