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.
@@ -8,7 +8,7 @@ export type LoaderButtonColors = {
8
8
  loadingBorderColor?: string;
9
9
  loadingTextColor?: string;
10
10
  };
11
- export type LoaderButtonProps = {
11
+ export type LoaderButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement> & {
12
12
  children?: ReactNode;
13
13
  className?: string;
14
14
  disabled?: boolean;
@@ -18,5 +18,5 @@ export type LoaderButtonProps = {
18
18
  style?: CSSProperties;
19
19
  variant?: LoaderButtonVariant;
20
20
  };
21
- export declare const LoaderButton: ({ children, className, colors, disabled, finished, onClick, style, variant, }: LoaderButtonProps) => React.JSX.Element;
21
+ export declare const LoaderButton: ({ children, className, colors, disabled, finished, variant, ...props }: LoaderButtonProps) => React.JSX.Element;
22
22
  //# sourceMappingURL=LoaderButton.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"LoaderButton.d.ts","sourceRoot":"","sources":["../../../src/components/common/LoaderButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EACZ,aAAa,EACb,SAAS,EAIV,MAAM,OAAO,CAAA;AAId,MAAM,MAAM,mBAAmB,GAC3B,SAAS,GACT,WAAW,GACX,UAAU,GACV,UAAU,GACV,SAAS,GACT,SAAS,CAAA;AAEb,MAAM,MAAM,kBAAkB,GAAG;IAC/B,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,sBAAsB,CAAC,EAAE,MAAM,CAAA;IAC/B,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAC1B,CAAA;AAED,MAAM,MAAM,iBAAiB,GAAG;IAC9B,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,SAAS,CAAC,EAAE,M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CAAA;AAEH,eAAO,MAAM,YAAY,2EAQtB,iBAAiB,sBAkDnB,CAAA"}
@@ -29,6 +29,24 @@ export declare const GrayOverlayContainer: import("styled-components/dist/types"
29
29
  ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
30
30
  }, never>, never>> & string;
31
31
  export declare const ButtonsColumn: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
32
- export declare const WideButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("./LoaderButton").LoaderButtonProps, never>> & string & Omit<({ children, className, colors, disabled, finished, onClick, style, variant, }: import("./LoaderButton").LoaderButtonProps) => import("react").JSX.Element, keyof import("react").Component<any, {}, any>>;
33
- export declare const WideBorderButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("./LoaderButton").LoaderButtonProps, never>, never>> & string;
32
+ export declare const WideButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").ButtonHTMLAttributes<HTMLButtonElement> & {
33
+ children?: import("react").ReactNode;
34
+ className?: string;
35
+ disabled?: boolean;
36
+ finished?: boolean;
37
+ colors?: import("./LoaderButton").LoaderButtonColors;
38
+ onClick?: () => void;
39
+ style?: import("react").CSSProperties;
40
+ variant?: import("./LoaderButton").LoaderButtonVariant;
41
+ }, never>> & string & Omit<({ children, className, colors, disabled, finished, variant, ...props }: import("./LoaderButton").LoaderButtonProps) => import("react").JSX.Element, keyof import("react").Component<any, {}, any>>;
42
+ export declare const WideBorderButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").ButtonHTMLAttributes<HTMLButtonElement> & {
43
+ children?: import("react").ReactNode;
44
+ className?: string;
45
+ disabled?: boolean;
46
+ finished?: boolean;
47
+ colors?: import("./LoaderButton").LoaderButtonColors;
48
+ onClick?: () => void;
49
+ style?: import("react").CSSProperties;
50
+ variant?: import("./LoaderButton").LoaderButtonVariant;
51
+ }, never>, never>> & string;
34
52
  //# sourceMappingURL=overlay.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"overlay.d.ts","sourceRoot":"","sources":["../../../src/components/common/overlay.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;0GAM5B,CAAA;AAED,eAAO,MAAM,YAAY,6NAaxB,CAAA;AAED,eAAO,MAAM,qBAAqB,6NAmBjC,CAAA;AAED,eAAO,MAAM,eAAe,6NAc3B,CAAA;AAED,eAAO,MAAM,oBAAoB;;;;;;;;;2BAEhC,CAAA;AAED,eAAO,MAAM,aAAa,6NAMzB,CAAA;AAED,eAAO,MAAM,UAAU,wXAGtB,CAAA;AAED,eAAO,MAAM,gBAAgB,mNAM5B,CAAA"}
1
+ {"version":3,"file":"overlay.d.ts","sourceRoot":"","sources":["../../../src/components/common/overlay.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;0GAM5B,CAAA;AAED,eAAO,MAAM,YAAY,6NAaxB,CAAA;AAED,eAAO,MAAM,qBAAqB,6NAmBjC,CAAA;AAED,eAAO,MAAM,eAAe,6NAc3B,CAAA;AAED,eAAO,MAAM,oBAAoB;;;;;;;;;2BAEhC,CAAA;AAED,eAAO,MAAM,aAAa,6NAMzB,CAAA;AAED,eAAO,MAAM,UAAU;;;;;;;;;8NAGtB,CAAA;AAED,eAAO,MAAM,gBAAgB;;;;;;;;;2BAM5B,CAAA"}
@@ -234,7 +234,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
234
234
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
235
235
  };
236
236
 
237
- var webSdkVersion = '2.2.83';
237
+ var webSdkVersion = '2.2.84';
238
238
 
239
239
  function getPlatform() {
240
240
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -444,10 +444,9 @@ var LoaderButton = function LoaderButton(_a) {
444
444
  colors = _b === void 0 ? {} : _b,
445
445
  disabled = _a.disabled,
446
446
  finished = _a.finished,
447
- onClick = _a.onClick,
448
- style = _a.style,
449
447
  _c = _a.variant,
450
- variant = _c === void 0 ? 'primary' : _c;
448
+ variant = _c === void 0 ? 'primary' : _c,
449
+ props = __rest(_a, ["children", "className", "colors", "disabled", "finished", "variant"]);
451
450
  var buttonRef = React.useRef(null);
452
451
  var laddaRef = React.useRef(null);
453
452
  var _d = React.useState(false),
@@ -478,19 +477,18 @@ var LoaderButton = function LoaderButton(_a) {
478
477
  var _a;
479
478
  if (laddaLoaded && finished) (_a = laddaRef.current) === null || _a === void 0 ? void 0 : _a.stop();
480
479
  }, [finished, laddaLoaded]);
481
- return /*#__PURE__*/React__namespace.default.createElement(StyledButton, {
480
+ return /*#__PURE__*/React__namespace.default.createElement(StyledButton, _assign({
482
481
  className: "ladda-button ".concat(className, " ").concat(disabled ? 'disabled' : ''),
483
482
  "data-style": "expand-right",
483
+ type: "button",
484
484
  disabled: disabled,
485
485
  ref: buttonRef,
486
- onClick: onClick,
487
486
  "$backgroundColor": colors.backgroundColor,
488
487
  "$textColor": colors.textColor,
489
488
  "$disabledBackgroundColor": colors.loadingBackgroundColor,
490
489
  "$disabledTextColor": colors.loadingTextColor,
491
- "$variant": variant,
492
- style: style
493
- }, /*#__PURE__*/React__namespace.default.createElement("span", {
490
+ "$variant": variant
491
+ }, props), /*#__PURE__*/React__namespace.default.createElement("span", {
494
492
  className: "ladda-label"
495
493
  }, children));
496
494
  };