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.
@@ -211,7 +211,7 @@
211
211
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
212
212
  };
213
213
 
214
- var webSdkVersion = '2.2.83';
214
+ var webSdkVersion = '2.2.84';
215
215
 
216
216
  function getPlatform() {
217
217
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -421,10 +421,9 @@
421
421
  colors = _b === void 0 ? {} : _b,
422
422
  disabled = _a.disabled,
423
423
  finished = _a.finished,
424
- onClick = _a.onClick,
425
- style = _a.style,
426
424
  _c = _a.variant,
427
- variant = _c === void 0 ? 'primary' : _c;
425
+ variant = _c === void 0 ? 'primary' : _c,
426
+ props = __rest(_a, ["children", "className", "colors", "disabled", "finished", "variant"]);
428
427
  var buttonRef = React.useRef(null);
429
428
  var laddaRef = React.useRef(null);
430
429
  var _d = React.useState(false),
@@ -455,19 +454,18 @@
455
454
  var _a;
456
455
  if (laddaLoaded && finished) (_a = laddaRef.current) === null || _a === void 0 ? void 0 : _a.stop();
457
456
  }, [finished, laddaLoaded]);
458
- return /*#__PURE__*/React.createElement(StyledButton, {
457
+ return /*#__PURE__*/React.createElement(StyledButton, _assign({
459
458
  className: "ladda-button ".concat(className, " ").concat(disabled ? 'disabled' : ''),
460
459
  "data-style": "expand-right",
460
+ type: "button",
461
461
  disabled: disabled,
462
462
  ref: buttonRef,
463
- onClick: onClick,
464
463
  "$backgroundColor": colors.backgroundColor,
465
464
  "$textColor": colors.textColor,
466
465
  "$disabledBackgroundColor": colors.loadingBackgroundColor,
467
466
  "$disabledTextColor": colors.loadingTextColor,
468
- "$variant": variant,
469
- style: style
470
- }, /*#__PURE__*/React.createElement("span", {
467
+ "$variant": variant
468
+ }, props), /*#__PURE__*/React.createElement("span", {
471
469
  className: "ladda-label"
472
470
  }, children));
473
471
  };