UNPKG

@hyper.fun/mui-button

Version:

👉 https://hyper.fun/c/mui-button/1.3.1 - material-ui button by mui

91 lines (79 loc) • 3.96 kB
import * as __WEBPACK_EXTERNAL_MODULE_react_to_hfc_332758a3__ from "react-to-hfc"; import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react"; import * as __WEBPACK_EXTERNAL_MODULE__mui_material_Button_index_js_e2121c1c__ from "@mui/material/Button/index.js"; /******/ // The require scope /******/ var __wp_require__ = {}; /******/ /************************************************************************/ /******/ /* webpack/runtime/define property getters */ /******/ (() => { /******/ // define getter functions for harmony exports /******/ __wp_require__.d = (exports, definition) => { /******/ for(var key in definition) { /******/ if(__wp_require__.o(definition, key) && !__wp_require__.o(exports, key)) { /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); /******/ } /******/ } /******/ }; /******/ })(); /******/ /******/ /* webpack/runtime/hasOwnProperty shorthand */ /******/ (() => { /******/ __wp_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) /******/ })(); /******/ /************************************************************************/ var __wp_exports__ = {}; // EXPORTS __wp_require__.d(__wp_exports__, { "Z": () => (/* binding */ src) }); ;// CONCATENATED MODULE: ./.hfc/propnames.js /* harmony default export */ const propnames = ([["variant", "href", "fullWidth", "disabled", "disableRipple", "disableElevation", "disableFocusRipple", "className", "color", "classes", "size"], ["onClick"], ["default", "startIcon", "endIcon", "icon"]]); ;// CONCATENATED MODULE: external "react-to-hfc" var x = y => { var x = {}; __wp_require__.d(x, y); return x; } var y = x => () => x const external_react_to_hfc_namespaceObject = x({ ["reactToHfc"]: () => __WEBPACK_EXTERNAL_MODULE_react_to_hfc_332758a3__.reactToHfc }); ;// CONCATENATED MODULE: external "react" var external_react_x = y => { var x = {}; __wp_require__.d(x, y); return x; } var external_react_y = x => () => x const external_react_namespaceObject = external_react_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_react__["default"] }); ;// CONCATENATED MODULE: external "@mui/material/Button/index.js" var index_js_x = y => { var x = {}; __wp_require__.d(x, y); return x; } var index_js_y = x => () => x const index_js_namespaceObject = index_js_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE__mui_material_Button_index_js_e2121c1c__["default"] }); ;// CONCATENATED MODULE: ./src/component.jsx function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } function Component(ps) { const children = ps.default ? /*#__PURE__*/external_react_namespaceObject["default"].createElement(ps.default, { __tag: "span" }) : null; return /*#__PURE__*/external_react_namespaceObject["default"].createElement(index_js_namespaceObject["default"], _extends({}, ps, { startIcon: ps.startIcon ? /*#__PURE__*/external_react_namespaceObject["default"].createElement(ps.startIcon, { __props: { style: { display: "contents" } } }) : null, endIcon: ps.endIcon ? /*#__PURE__*/external_react_namespaceObject["default"].createElement(ps.endIcon, { __props: { style: { display: "contents" } } }) : null, default: null }), children); } ;// CONCATENATED MODULE: ./src/index.js /* harmony default export */ const src = ((0,external_react_to_hfc_namespaceObject.reactToHfc)(Component, { tag: "div", props: propnames, connected(container, props) { container.style.display = "contents"; }, disconnected() {} })); var __wp_exports__default = __wp_exports__.Z; export { __wp_exports__default as default };