idmission-web-sdk 2.2.83 → 2.2.84

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/sdk2.esm.js CHANGED
@@ -203,7 +203,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
203
203
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
204
204
  };
205
205
 
206
- var webSdkVersion = '2.2.83';
206
+ var webSdkVersion = '2.2.84';
207
207
 
208
208
  function getPlatform() {
209
209
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -413,10 +413,9 @@ var LoaderButton = function LoaderButton(_a) {
413
413
  colors = _b === void 0 ? {} : _b,
414
414
  disabled = _a.disabled,
415
415
  finished = _a.finished,
416
- onClick = _a.onClick,
417
- style = _a.style,
418
416
  _c = _a.variant,
419
- variant = _c === void 0 ? 'primary' : _c;
417
+ variant = _c === void 0 ? 'primary' : _c,
418
+ props = __rest(_a, ["children", "className", "colors", "disabled", "finished", "variant"]);
420
419
  var buttonRef = useRef(null);
421
420
  var laddaRef = useRef(null);
422
421
  var _d = useState(false),
@@ -447,19 +446,18 @@ var LoaderButton = function LoaderButton(_a) {
447
446
  var _a;
448
447
  if (laddaLoaded && finished) (_a = laddaRef.current) === null || _a === void 0 ? void 0 : _a.stop();
449
448
  }, [finished, laddaLoaded]);
450
- return /*#__PURE__*/React__default.createElement(StyledButton, {
449
+ return /*#__PURE__*/React__default.createElement(StyledButton, _assign({
451
450
  className: "ladda-button ".concat(className, " ").concat(disabled ? 'disabled' : ''),
452
451
  "data-style": "expand-right",
452
+ type: "button",
453
453
  disabled: disabled,
454
454
  ref: buttonRef,
455
- onClick: onClick,
456
455
  "$backgroundColor": colors.backgroundColor,
457
456
  "$textColor": colors.textColor,
458
457
  "$disabledBackgroundColor": colors.loadingBackgroundColor,
459
458
  "$disabledTextColor": colors.loadingTextColor,
460
- "$variant": variant,
461
- style: style
462
- }, /*#__PURE__*/React__default.createElement("span", {
459
+ "$variant": variant
460
+ }, props), /*#__PURE__*/React__default.createElement("span", {
463
461
  className: "ladda-label"
464
462
  }, children));
465
463
  };