| @@ -1,284 +1 @@ | ||
| 1 | -/******/ (function() { // webpackBootstrap | |
| 2 | -/******/ var __webpack_modules__ = ({ | |
| 3 | - | |
| 4 | -/***/ 4184: | |
| 5 | -/***/ (function(module, exports) { | |
| 6 | - | |
| 7 | -var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! | |
| 8 | - Copyright (c) 2018 Jed Watson. | |
| 9 | - Licensed under the MIT License (MIT), see | |
| 10 | - http://jedwatson.github.io/classnames | |
| 11 | -*/ | |
| 12 | -/* global define */ | |
| 13 | - | |
| 14 | -(function () { | |
| 15 | - 'use strict'; | |
| 16 | - | |
| 17 | - var hasOwn = {}.hasOwnProperty; | |
| 18 | - | |
| 19 | - function classNames() { | |
| 20 | - var classes = []; | |
| 21 | - | |
| 22 | - for (var i = 0; i < arguments.length; i++) { | |
| 23 | - var arg = arguments[i]; | |
| 24 | - if (!arg) continue; | |
| 25 | - | |
| 26 | - var argType = typeof arg; | |
| 27 | - | |
| 28 | - if (argType === 'string' || argType === 'number') { | |
| 29 | - classes.push(arg); | |
| 30 | - } else if (Array.isArray(arg)) { | |
| 31 | - if (arg.length) { | |
| 32 | - var inner = classNames.apply(null, arg); | |
| 33 | - if (inner) { | |
| 34 | - classes.push(inner); | |
| 35 | - } | |
| 36 | - } | |
| 37 | - } else if (argType === 'object') { | |
| 38 | - if (arg.toString === Object.prototype.toString) { | |
| 39 | - for (var key in arg) { | |
| 40 | - if (hasOwn.call(arg, key) && arg[key]) { | |
| 41 | - classes.push(key); | |
| 42 | - } | |
| 43 | - } | |
| 44 | - } else { | |
| 45 | - classes.push(arg.toString()); | |
| 46 | - } | |
| 47 | - } | |
| 48 | - } | |
| 49 | - | |
| 50 | - return classes.join(' '); | |
| 51 | - } | |
| 52 | - | |
| 53 | - if ( true && module.exports) { | |
| 54 | - classNames.default = classNames; | |
| 55 | - module.exports = classNames; | |
| 56 | - } else if (true) { | |
| 57 | - // register as 'classnames', consistent with npm package name | |
| 58 | - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function () { | |
| 59 | - return classNames; | |
| 60 | - }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), | |
| 61 | - __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); | |
| 62 | - } else {} | |
| 63 | -}()); | |
| 64 | - | |
| 65 | - | |
| 66 | -/***/ }) | |
| 67 | - | |
| 68 | -/******/ }); | |
| 69 | -/************************************************************************/ | |
| 70 | -/******/ // The module cache | |
| 71 | -/******/ var __webpack_module_cache__ = {}; | |
| 72 | -/******/ | |
| 73 | -/******/ // The require function | |
| 74 | -/******/ function __webpack_require__(moduleId) { | |
| 75 | -/******/ // Check if module is in cache | |
| 76 | -/******/ var cachedModule = __webpack_module_cache__[moduleId]; | |
| 77 | -/******/ if (cachedModule !== undefined) { | |
| 78 | -/******/ return cachedModule.exports; | |
| 79 | -/******/ } | |
| 80 | -/******/ // Create a new module (and put it into the cache) | |
| 81 | -/******/ var module = __webpack_module_cache__[moduleId] = { | |
| 82 | -/******/ // no module.id needed | |
| 83 | -/******/ // no module.loaded needed | |
| 84 | -/******/ exports: {} | |
| 85 | -/******/ }; | |
| 86 | -/******/ | |
| 87 | -/******/ // Execute the module function | |
| 88 | -/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); | |
| 89 | -/******/ | |
| 90 | -/******/ // Return the exports of the module | |
| 91 | -/******/ return module.exports; | |
| 92 | -/******/ } | |
| 93 | -/******/ | |
| 94 | -/************************************************************************/ | |
| 95 | -/******/ /* webpack/runtime/compat get default export */ | |
| 96 | -/******/ !function() { | |
| 97 | -/******/ // getDefaultExport function for compatibility with non-harmony modules | |
| 98 | -/******/ __webpack_require__.n = function(module) { | |
| 99 | -/******/ var getter = module && module.__esModule ? | |
| 100 | -/******/ function() { return module['default']; } : | |
| 101 | -/******/ function() { return module; }; | |
| 102 | -/******/ __webpack_require__.d(getter, { a: getter }); | |
| 103 | -/******/ return getter; | |
| 104 | -/******/ }; | |
| 105 | -/******/ }(); | |
| 106 | -/******/ | |
| 107 | -/******/ /* webpack/runtime/define property getters */ | |
| 108 | -/******/ !function() { | |
| 109 | -/******/ // define getter functions for harmony exports | |
| 110 | -/******/ __webpack_require__.d = function(exports, definition) { | |
| 111 | -/******/ for(var key in definition) { | |
| 112 | -/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { | |
| 113 | -/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); | |
| 114 | -/******/ } | |
| 115 | -/******/ } | |
| 116 | -/******/ }; | |
| 117 | -/******/ }(); | |
| 118 | -/******/ | |
| 119 | -/******/ /* webpack/runtime/hasOwnProperty shorthand */ | |
| 120 | -/******/ !function() { | |
| 121 | -/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); } | |
| 122 | -/******/ }(); | |
| 123 | -/******/ | |
| 124 | -/******/ /* webpack/runtime/make namespace object */ | |
| 125 | -/******/ !function() { | |
| 126 | -/******/ // define __esModule on exports | |
| 127 | -/******/ __webpack_require__.r = function(exports) { | |
| 128 | -/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { | |
| 129 | -/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); | |
| 130 | -/******/ } | |
| 131 | -/******/ Object.defineProperty(exports, '__esModule', { value: true }); | |
| 132 | -/******/ }; | |
| 133 | -/******/ }(); | |
| 134 | -/******/ | |
| 135 | -/************************************************************************/ | |
| 136 | -var __webpack_exports__ = {}; | |
| 137 | -// This entry need to be wrapped in an IIFE because it need to be in strict mode. | |
| 138 | -!function() { | |
| 139 | -"use strict"; | |
| 140 | -// ESM COMPAT FLAG | |
| 141 | -__webpack_require__.r(__webpack_exports__); | |
| 142 | - | |
| 143 | -// EXPORTS | |
| 144 | -__webpack_require__.d(__webpack_exports__, { | |
| 145 | - "BlockQuotation": function() { return /* reexport */ BlockQuotation; }, | |
| 146 | - "Circle": function() { return /* reexport */ Circle; }, | |
| 147 | - "Defs": function() { return /* reexport */ Defs; }, | |
| 148 | - "G": function() { return /* reexport */ G; }, | |
| 149 | - "HorizontalRule": function() { return /* reexport */ HorizontalRule; }, | |
| 150 | - "LinearGradient": function() { return /* reexport */ LinearGradient; }, | |
| 151 | - "Path": function() { return /* reexport */ Path; }, | |
| 152 | - "Polygon": function() { return /* reexport */ Polygon; }, | |
| 153 | - "RadialGradient": function() { return /* reexport */ RadialGradient; }, | |
| 154 | - "Rect": function() { return /* reexport */ Rect; }, | |
| 155 | - "SVG": function() { return /* reexport */ SVG; }, | |
| 156 | - "Stop": function() { return /* reexport */ Stop; }, | |
| 157 | - "View": function() { return /* reexport */ View; } | |
| 158 | -}); | |
| 159 | - | |
| 160 | -// EXTERNAL MODULE: ./node_modules/classnames/index.js | |
| 161 | -var classnames = __webpack_require__(4184); | |
| 162 | -var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames); | |
| 163 | -;// CONCATENATED MODULE: external ["wp","element"] | |
| 164 | -var external_wp_element_namespaceObject = window["wp"]["element"]; | |
| 165 | -;// CONCATENATED MODULE: ./packages/primitives/build-module/svg/index.js | |
| 166 | -/** | |
| 167 | - * External dependencies | |
| 168 | - */ | |
| 169 | - | |
| 170 | -/** | |
| 171 | - * WordPress dependencies | |
| 172 | - */ | |
| 173 | - | |
| 174 | - | |
| 175 | -/** @typedef {{isPressed?: boolean} & import('react').ComponentPropsWithoutRef<'svg'>} SVGProps */ | |
| 176 | - | |
| 177 | -/** | |
| 178 | - * @param {import('react').ComponentPropsWithoutRef<'circle'>} props | |
| 179 | - * | |
| 180 | - * @return {JSX.Element} Circle component | |
| 181 | - */ | |
| 182 | - | |
| 183 | -const Circle = props => (0,external_wp_element_namespaceObject.createElement)('circle', props); | |
| 184 | -/** | |
| 185 | - * @param {import('react').ComponentPropsWithoutRef<'g'>} props | |
| 186 | - * | |
| 187 | - * @return {JSX.Element} G component | |
| 188 | - */ | |
| 189 | - | |
| 190 | -const G = props => (0,external_wp_element_namespaceObject.createElement)('g', props); | |
| 191 | -/** | |
| 192 | - * @param {import('react').ComponentPropsWithoutRef<'path'>} props | |
| 193 | - * | |
| 194 | - * @return {JSX.Element} Path component | |
| 195 | - */ | |
| 196 | - | |
| 197 | -const Path = props => (0,external_wp_element_namespaceObject.createElement)('path', props); | |
| 198 | -/** | |
| 199 | - * @param {import('react').ComponentPropsWithoutRef<'polygon'>} props | |
| 200 | - * | |
| 201 | - * @return {JSX.Element} Polygon component | |
| 202 | - */ | |
| 203 | - | |
| 204 | -const Polygon = props => (0,external_wp_element_namespaceObject.createElement)('polygon', props); | |
| 205 | -/** | |
| 206 | - * @param {import('react').ComponentPropsWithoutRef<'rect'>} props | |
| 207 | - * | |
| 208 | - * @return {JSX.Element} Rect component | |
| 209 | - */ | |
| 210 | - | |
| 211 | -const Rect = props => (0,external_wp_element_namespaceObject.createElement)('rect', props); | |
| 212 | -/** | |
| 213 | - * @param {import('react').ComponentPropsWithoutRef<'defs'>} props | |
| 214 | - * | |
| 215 | - * @return {JSX.Element} Defs component | |
| 216 | - */ | |
| 217 | - | |
| 218 | -const Defs = props => (0,external_wp_element_namespaceObject.createElement)('defs', props); | |
| 219 | -/** | |
| 220 | - * @param {import('react').ComponentPropsWithoutRef<'radialGradient'>} props | |
| 221 | - * | |
| 222 | - * @return {JSX.Element} RadialGradient component | |
| 223 | - */ | |
| 224 | - | |
| 225 | -const RadialGradient = props => (0,external_wp_element_namespaceObject.createElement)('radialGradient', props); | |
| 226 | -/** | |
| 227 | - * @param {import('react').ComponentPropsWithoutRef<'linearGradient'>} props | |
| 228 | - * | |
| 229 | - * @return {JSX.Element} LinearGradient component | |
| 230 | - */ | |
| 231 | - | |
| 232 | -const LinearGradient = props => (0,external_wp_element_namespaceObject.createElement)('linearGradient', props); | |
| 233 | -/** | |
| 234 | - * @param {import('react').ComponentPropsWithoutRef<'stop'>} props | |
| 235 | - * | |
| 236 | - * @return {JSX.Element} Stop component | |
| 237 | - */ | |
| 238 | - | |
| 239 | -const Stop = props => (0,external_wp_element_namespaceObject.createElement)('stop', props); | |
| 240 | -/** | |
| 241 | - * | |
| 242 | - * @param {SVGProps} props isPressed indicates whether the SVG should appear as pressed. | |
| 243 | - * Other props will be passed through to svg component. | |
| 244 | - * | |
| 245 | - * @return {JSX.Element} Stop component | |
| 246 | - */ | |
| 247 | - | |
| 248 | -const SVG = _ref => { | |
| 249 | - let { | |
| 250 | - className, | |
| 251 | - isPressed, | |
| 252 | - ...props | |
| 253 | - } = _ref; | |
| 254 | - const appliedProps = { ...props, | |
| 255 | - className: classnames_default()(className, { | |
| 256 | - 'is-pressed': isPressed | |
| 257 | - }) || undefined, | |
| 258 | - 'aria-hidden': true, | |
| 259 | - focusable: false | |
| 260 | - }; // Disable reason: We need to have a way to render HTML tag for web. | |
| 261 | - // eslint-disable-next-line react/forbid-elements | |
| 262 | - | |
| 263 | - return (0,external_wp_element_namespaceObject.createElement)("svg", appliedProps); | |
| 264 | -}; | |
| 265 | -//# sourceMappingURL=index.js.map | |
| 266 | -;// CONCATENATED MODULE: ./packages/primitives/build-module/horizontal-rule/index.js | |
| 267 | -const HorizontalRule = 'hr'; | |
| 268 | -//# sourceMappingURL=index.js.map | |
| 269 | -;// CONCATENATED MODULE: ./packages/primitives/build-module/block-quotation/index.js | |
| 270 | -const BlockQuotation = 'blockquote'; | |
| 271 | -//# sourceMappingURL=index.js.map | |
| 272 | -;// CONCATENATED MODULE: ./packages/primitives/build-module/view/index.js | |
| 273 | -const View = 'div'; | |
| 274 | -//# sourceMappingURL=index.js.map | |
| 275 | -;// CONCATENATED MODULE: ./packages/primitives/build-module/index.js | |
| 276 | - | |
| 277 | - | |
| 278 | - | |
| 279 | - | |
| 280 | -//# sourceMappingURL=index.js.map | |
| 281 | -}(); | |
| 282 | -(window.wp = window.wp || {}).primitives = __webpack_exports__; | |
| 283 | -/******/ })() | |
| 284 | -; | |
| 1 | +this.wp=this.wp||{},this.wp.primitives=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=407)}({0:function(e,t){!function(){e.exports=this.wp.element}()},10:function(e,t,r){var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var u=typeof n;if("string"===u||"number"===u)e.push(n);else if(Array.isArray(n))e.push(o.apply(null,n));else if("object"===u)for(var c in n)r.call(n,c)&&n[c]&&e.push(c)}}return e.join(" ")}e.exports?e.exports=o:void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},14:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(41);function o(e,t){if(null==e)return{};var r,o,u=Object(n.a)(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(o=0;o<c.length;o++)r=c[o],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(u[r]=e[r])}return u}},407:function(e,t,r){"use strict";r.r(t),r.d(t,"Circle",(function(){return a})),r.d(t,"G",(function(){return l})),r.d(t,"Path",(function(){return s})),r.d(t,"Polygon",(function(){return p})),r.d(t,"Rect",(function(){return b})),r.d(t,"Defs",(function(){return d})),r.d(t,"RadialGradient",(function(){return O})),r.d(t,"LinearGradient",(function(){return y})),r.d(t,"Stop",(function(){return j})),r.d(t,"SVG",(function(){return m})),r.d(t,"HorizontalRule",(function(){return v})),r.d(t,"BlockQuotation",(function(){return g}));var n=r(5),o=r(14),u=r(10),c=r.n(u),i=r(0);function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var a=function(e){return Object(i.createElement)("circle",e)},l=function(e){return Object(i.createElement)("g",e)},s=function(e){return Object(i.createElement)("path",e)},p=function(e){return Object(i.createElement)("polygon",e)},b=function(e){return Object(i.createElement)("rect",e)},d=function(e){return Object(i.createElement)("defs",e)},O=function(e){return Object(i.createElement)("radialGradient",e)},y=function(e){return Object(i.createElement)("linearGradient",e)},j=function(e){return Object(i.createElement)("stop",e)},m=function(e){var t=e.className,r=e.isPressed,u=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach((function(t){Object(n.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},Object(o.a)(e,["className","isPressed"]),{className:c()(t,{"is-pressed":r})||void 0,role:"img","aria-hidden":!0,focusable:!1});return Object(i.createElement)("svg",u)},v="hr",g="blockquote"},41:function(e,t,r){"use strict";function n(e,t){if(null==e)return{};var r,n,o={},u=Object.keys(e);for(n=0;n<u.length;n++)r=u[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}r.d(t,"a",(function(){return n}))},5:function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,"a",(function(){return n}))}}); | |