@stokr/components-library 3.0.16-alpha.9 → 3.0.17

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.
@@ -28,7 +28,8 @@ const ConfirmModalComponent = ({
28
28
  buttonProps,
29
29
  cancelButtonProps,
30
30
  barStyle,
31
- style
31
+ style,
32
+ maxWidth
32
33
  }) => {
33
34
  const [titleHeight, setTitleHeight] = useState(0);
34
35
  const observerRef = useRef(null);
@@ -72,6 +73,7 @@ const ConfirmModalComponent = ({
72
73
  onClose: handleCancel,
73
74
  maxHeight: "90vh",
74
75
  boxStyles: { minHeight: "unset", ...style || {} },
76
+ maxWidth,
75
77
  ...modalProps,
76
78
  children: [
77
79
  /* @__PURE__ */ jsx(ModalInner, { children: /* @__PURE__ */ jsxs(ContainerWithLine, { height: titleHeight, lineColor, children: [
@@ -318,11 +318,7 @@ class AuthProviderClass extends Component {
318
318
  };
319
319
  patchUserObject = (user, firebaseUser) => {
320
320
  if (!user || !firebaseUser) return;
321
- const merged = Object.assign(
322
- Object.create(Object.getPrototypeOf(firebaseUser)),
323
- firebaseUser,
324
- user
325
- );
321
+ const merged = Object.assign(Object.create(Object.getPrototypeOf(firebaseUser)), firebaseUser, user);
326
322
  merged.active = merged.emailVerified;
327
323
  return merged;
328
324
  };
@@ -720,6 +716,7 @@ class AuthProviderClass extends Component {
720
716
  ConfirmModalComponent,
721
717
  {
722
718
  isOpen: true,
719
+ maxWidth: "600px",
723
720
  confirmText: "OK",
724
721
  onCancel: this.clearLoggedOutDueToInactivity,
725
722
  onConfirm: this.clearLoggedOutDueToInactivity,
@@ -732,6 +729,7 @@ class AuthProviderClass extends Component {
732
729
  ConfirmModalComponent,
733
730
  {
734
731
  isOpen: true,
732
+ maxWidth: "600px",
735
733
  confirmText: "OK",
736
734
  onCancel: this.clearLoggedOutDueToCookieExpiry,
737
735
  onConfirm: this.clearLoggedOutDueToCookieExpiry,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stokr/components-library",
3
- "version": "3.0.16-alpha.9",
3
+ "version": "3.0.17",
4
4
  "description": "STOKR - Components Library",
5
5
  "author": "Bilal Hodzic <bilal@stokr.io>",
6
6
  "license": "MIT",