UNPKG

@mopinion/survey

Version:

Collect customer feedback with the Mopinion survey library

33 lines (32 loc) 1.42 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = Spinner; var _preact = require("preact"); var _excluded = ["className", "width", "height"]; function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; } function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; } function Spinner(_ref) { var _ref$className = _ref.className, className = _ref$className === void 0 ? '' : _ref$className, _ref$width = _ref.width, width = _ref$width === void 0 ? '20px' : _ref$width, _ref$height = _ref.height, height = _ref$height === void 0 ? '20px' : _ref$height, props = _objectWithoutProperties(_ref, _excluded); return (0, _preact.h)("svg", { className: "is-loading ".concat(className), "aria-hidden": true, height: height, width: width, viewBox: "22 22 44 44" }, (0, _preact.h)("circle", { cx: "44", cy: "44", r: "20.2", fill: "none", "stroke-width": "3.6" })); } //# sourceMappingURL=Spinner.js.map