indicator-ui 0.1.100 → 0.1.101

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/dist/index.js CHANGED
@@ -71766,28 +71766,35 @@ __webpack_require__.r(__webpack_exports__);
71766
71766
  /* harmony import */ var _assets__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../assets */ "./src/ui/Loaders/assets/index.ts");
71767
71767
  /* harmony import */ var _styles__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../styles */ "./src/ui/Loaders/styles/index.ts");
71768
71768
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
71769
+ var _excluded = ["size", "style", "supportingText", "width", "height", "additionStyles", "theme", "className"];
71770
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
71771
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
71769
71772
  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
71770
71773
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
71771
71774
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
71775
+ 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; }
71776
+ 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; }
71772
71777
 
71773
71778
 
71774
71779
 
71775
71780
 
71776
- function LoadingIndicator(_ref) {
71781
+ function LoadingIndicator(props) {
71777
71782
  var _clsx;
71778
- var _ref$size = _ref.size,
71779
- size = _ref$size === void 0 ? 'small' : _ref$size,
71780
- _ref$style = _ref.style,
71781
- style = _ref$style === void 0 ? 'line-simple' : _ref$style,
71782
- _ref$supportingText = _ref.supportingText,
71783
- supportingText = _ref$supportingText === void 0 ? false : _ref$supportingText,
71784
- _ref$width = _ref.width,
71785
- width = _ref$width === void 0 ? 'fill' : _ref$width,
71786
- _ref$height = _ref.height,
71787
- height = _ref$height === void 0 ? 'fill' : _ref$height,
71788
- additionStyles = _ref.additionStyles,
71789
- _ref$theme = _ref.theme,
71790
- theme = _ref$theme === void 0 ? 'light' : _ref$theme;
71783
+ var _props$size = props.size,
71784
+ size = _props$size === void 0 ? 'small' : _props$size,
71785
+ _props$style = props.style,
71786
+ style = _props$style === void 0 ? 'line-simple' : _props$style,
71787
+ _props$supportingText = props.supportingText,
71788
+ supportingText = _props$supportingText === void 0 ? false : _props$supportingText,
71789
+ _props$width = props.width,
71790
+ width = _props$width === void 0 ? 'fill' : _props$width,
71791
+ _props$height = props.height,
71792
+ height = _props$height === void 0 ? 'fill' : _props$height,
71793
+ additionStyles = props.additionStyles,
71794
+ _props$theme = props.theme,
71795
+ theme = _props$theme === void 0 ? 'light' : _props$theme,
71796
+ className = props.className,
71797
+ otherProps = _objectWithoutProperties(props, _excluded);
71791
71798
  var getText = function getText() {
71792
71799
  switch (supportingText) {
71793
71800
  case true:
@@ -71814,13 +71821,13 @@ function LoadingIndicator(_ref) {
71814
71821
  return (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_assets__WEBPACK_IMPORTED_MODULE_2__.LineSimpleSVG, {});
71815
71822
  }
71816
71823
  };
71817
- return (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", {
71818
- className: (0,clsx__WEBPACK_IMPORTED_MODULE_1__["default"])(_styles__WEBPACK_IMPORTED_MODULE_3__.LoadingIndicatorStyle.LoadingIndicator, (_clsx = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_clsx, _styles__WEBPACK_IMPORTED_MODULE_3__.LoadingIndicatorStyle.small, size === 'small'), _styles__WEBPACK_IMPORTED_MODULE_3__.LoadingIndicatorStyle.medium, size === 'medium'), _styles__WEBPACK_IMPORTED_MODULE_3__.LoadingIndicatorStyle.large, size === 'large'), _styles__WEBPACK_IMPORTED_MODULE_3__.LoadingIndicatorStyle.ultra, size === 'ultra'), _styles__WEBPACK_IMPORTED_MODULE_3__.LoadingIndicatorStyle.ultra, size === 'ultra'), _styles__WEBPACK_IMPORTED_MODULE_3__.LoadingIndicatorStyle.widthFill, width === 'fill'), _styles__WEBPACK_IMPORTED_MODULE_3__.LoadingIndicatorStyle.widthHug, width === 'hug'), _styles__WEBPACK_IMPORTED_MODULE_3__.LoadingIndicatorStyle.heightFill, height === 'fill'), _styles__WEBPACK_IMPORTED_MODULE_3__.LoadingIndicatorStyle.lineSimple, style === 'line-simple'), _styles__WEBPACK_IMPORTED_MODULE_3__.LoadingIndicatorStyle.lineSpinner, style === 'line-spinner'), _defineProperty(_defineProperty(_clsx, _styles__WEBPACK_IMPORTED_MODULE_3__.LoadingIndicatorStyle.dotCircle, style === 'dot-circle'), _styles__WEBPACK_IMPORTED_MODULE_3__.LoadingIndicatorStyle.darkTheme, theme === 'dark')), additionStyles),
71824
+ return (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", _objectSpread(_objectSpread({}, otherProps), {}, {
71825
+ className: (0,clsx__WEBPACK_IMPORTED_MODULE_1__["default"])(_styles__WEBPACK_IMPORTED_MODULE_3__.LoadingIndicatorStyle.LoadingIndicator, (_clsx = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_clsx, _styles__WEBPACK_IMPORTED_MODULE_3__.LoadingIndicatorStyle.small, size === 'small'), _styles__WEBPACK_IMPORTED_MODULE_3__.LoadingIndicatorStyle.medium, size === 'medium'), _styles__WEBPACK_IMPORTED_MODULE_3__.LoadingIndicatorStyle.large, size === 'large'), _styles__WEBPACK_IMPORTED_MODULE_3__.LoadingIndicatorStyle.ultra, size === 'ultra'), _styles__WEBPACK_IMPORTED_MODULE_3__.LoadingIndicatorStyle.ultra, size === 'ultra'), _styles__WEBPACK_IMPORTED_MODULE_3__.LoadingIndicatorStyle.widthFill, width === 'fill'), _styles__WEBPACK_IMPORTED_MODULE_3__.LoadingIndicatorStyle.widthHug, width === 'hug'), _styles__WEBPACK_IMPORTED_MODULE_3__.LoadingIndicatorStyle.heightFill, height === 'fill'), _styles__WEBPACK_IMPORTED_MODULE_3__.LoadingIndicatorStyle.lineSimple, style === 'line-simple'), _styles__WEBPACK_IMPORTED_MODULE_3__.LoadingIndicatorStyle.lineSpinner, style === 'line-spinner'), _defineProperty(_defineProperty(_clsx, _styles__WEBPACK_IMPORTED_MODULE_3__.LoadingIndicatorStyle.dotCircle, style === 'dot-circle'), _styles__WEBPACK_IMPORTED_MODULE_3__.LoadingIndicatorStyle.darkTheme, theme === 'dark')), className, additionStyles),
71819
71826
  children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", {
71820
71827
  className: _styles__WEBPACK_IMPORTED_MODULE_3__.LoadingIndicatorStyle.icon,
71821
71828
  children: getSpinner()
71822
71829
  }), getText()]
71823
- });
71830
+ }));
71824
71831
  }
71825
71832
 
71826
71833
  /***/ }),