@weareconceptstudio/account 0.2.4 → 0.2.5

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.
@@ -1,6 +1,7 @@
1
1
  export default WarningMessage;
2
- declare function WarningMessage({ error, isSent, successTitle, successSubtitle }: {
2
+ declare function WarningMessage({ error, errorSubtitle, isSent, successTitle, successSubtitle }: {
3
3
  error: any;
4
+ errorSubtitle: any;
4
5
  isSent: any;
5
6
  successTitle: any;
6
7
  successSubtitle: any;
@@ -2,9 +2,9 @@ import React from 'react';
2
2
  import { Text } from '@weareconceptstudio/core';
3
3
  //* Style
4
4
  import WarningMessageStyle from './style';
5
- const WarningMessage = ({ error, isSent, successTitle, successSubtitle }) => {
5
+ const WarningMessage = ({ error, errorSubtitle, isSent, successTitle, successSubtitle }) => {
6
6
  return ((isSent || error) && (React.createElement(WarningMessageStyle, { className: `message-container account-${error ? 'error' : 'success'}-color-bg` },
7
7
  React.createElement(Text, { className: `account-p account-p4 message-title account-font-bold account-${error ? 'error' : 'success'}-color`, text: error || successTitle }),
8
- !error && (React.createElement(Text, { className: `account-p account-p4 message-subtitle account-font-regular account-${error ? 'error' : 'success'}-color`, text: successSubtitle })))));
8
+ React.createElement(Text, { className: `account-p account-p4 message-subtitle account-font-regular account-${error ? 'error' : 'success'}-color`, text: error ? errorSubtitle : successSubtitle }))));
9
9
  };
10
10
  export default WarningMessage;
@@ -75,13 +75,13 @@ const ForgotPasswordTemplate = ({ signInUrl = '/sign-in' }) => {
75
75
  React.createElement(AccountButton, { text: `submit`, type: `submit`, btnType: `full-width` })))) : (React.createElement(React.Fragment, null,
76
76
  React.createElement(Text, { tag: 'h2', className: 'account-h2 account-font-bold account-primary-color1 title', text: 'thankYou' }),
77
77
  React.createElement("div", { className: 'recovery-wrap' },
78
- React.createElement(Text, { className: 'account-p account-p2 account-font-medium account-primary-color1', text: 'recoveryText' }),
78
+ React.createElement(Text, { className: 'account-p account-p2 account-font-medium account-primary-color1 recovery-text', text: 'recoveryText' }),
79
79
  "\u00A0",
80
- React.createElement(Text, { className: 'account-p account-p2 account-font-bold account-primary-color1', text: forgotState.email })),
80
+ React.createElement(Text, { className: 'account-p account-p2 account-font-bold account-primary-color1 recovery-email', text: forgotState.email })),
81
81
  React.createElement("div", { className: 'try-again-wrap' },
82
- React.createElement(Text, { className: `account-p account-p2 account-font-medium account-primary-color1`, text: `tryAgainText` }),
82
+ React.createElement(Text, { className: `account-p account-p2 account-font-medium account-primary-color1 try-text`, text: `tryAgainText` }),
83
83
  "\u00A0",
84
84
  React.createElement(Text, { text: `tryAgain`, onClick: handleTryAgain, className: `account-p account-p2 account-font-bold account-primary-color1 underline try-again-text ${forgotState.isBtnDisabled ? 'disabled' : ''}` })),
85
- React.createElement(WarningMessage, { error: forgotState.error, isSent: forgotState.isSent, successTitle: 'recoverPassword', successSubtitle: 'recoverPasswordDesc' })))))));
85
+ React.createElement(WarningMessage, { error: forgotState.error, errorSubtitle: 'forgotErrorDescription', isSent: forgotState.isSent, successTitle: 'recoverPassword', successSubtitle: 'recoverPasswordDesc' })))))));
86
86
  };
87
87
  export default ForgotPasswordTemplate;
@@ -107,6 +107,10 @@ const CartItemsStyle = styled.section `
107
107
  width: var(--account_col1Width);
108
108
  padding-left: calc(var(--account_col1Distance) / 2);
109
109
  padding-right: calc(var(--account_col1Distance) / 2);
110
+
111
+ img {
112
+ object-fit: contain;
113
+ }
110
114
  }
111
115
 
112
116
  .tl-col-2 {
@@ -560,6 +564,10 @@ const CartItemsStyle = styled.section `
560
564
 
561
565
  .image-cont {
562
566
  padding-top: 125% !important;
567
+
568
+ img {
569
+ object-fit: contain;
570
+ }
563
571
  }
564
572
  }
565
573
 
@@ -74,6 +74,10 @@ const OrderedItemsStyle = styled.div `
74
74
  width: var(--account_col1Width);
75
75
  padding-left: calc(var(--account_col1Distance) / 2);
76
76
  padding-right: calc(var(--account_col1Distance) / 2);
77
+
78
+ img {
79
+ object-fit: contain;
80
+ }
77
81
  }
78
82
 
79
83
  .tl-col-2 {
@@ -604,6 +608,10 @@ const OrderedItemsStyle = styled.div `
604
608
 
605
609
  .image-cont {
606
610
  padding-top: 125% !important;
611
+
612
+ img {
613
+ object-fit: contain;
614
+ }
607
615
  }
608
616
  }
609
617
 
@@ -168,5 +168,6 @@ declare const _default: {
168
168
  review: string;
169
169
  reorder: string;
170
170
  backToShop: string;
171
+ forgotErrorDescription: string;
171
172
  };
172
173
  export default _default;
@@ -180,4 +180,5 @@ export default {
180
180
  review: 'Review',
181
181
  reorder: 'Reorder',
182
182
  backToShop: 'Back to shop',
183
+ forgotErrorDescription: 'You will receive an email with a recovery link code within 1 minute․',
183
184
  };
@@ -168,5 +168,6 @@ declare const _default: {
168
168
  review: string;
169
169
  reorder: string;
170
170
  backToShop: string;
171
+ forgotErrorDescription: string;
171
172
  };
172
173
  export default _default;
@@ -180,4 +180,5 @@ export default {
180
180
  review: 'Review',
181
181
  reorder: 'Reorder',
182
182
  backToShop: 'Back to shop',
183
+ forgotErrorDescription: 'You will receive an email with a recovery link code within 1 minute․',
183
184
  };
@@ -169,6 +169,7 @@ declare const _default: {
169
169
  review: string;
170
170
  reorder: string;
171
171
  backToShop: string;
172
+ forgotErrorDescription: string;
172
173
  };
173
174
  hy: {
174
175
  editCart: string;
@@ -340,6 +341,7 @@ declare const _default: {
340
341
  review: string;
341
342
  reorder: string;
342
343
  backToShop: string;
344
+ forgotErrorDescription: string;
343
345
  };
344
346
  ru: {
345
347
  editCart: string;
@@ -511,6 +513,7 @@ declare const _default: {
511
513
  review: string;
512
514
  reorder: string;
513
515
  backToShop: string;
516
+ forgotErrorDescription: string;
514
517
  };
515
518
  };
516
519
  export default _default;
@@ -168,5 +168,6 @@ declare const _default: {
168
168
  review: string;
169
169
  reorder: string;
170
170
  backToShop: string;
171
+ forgotErrorDescription: string;
171
172
  };
172
173
  export default _default;
@@ -180,4 +180,5 @@ export default {
180
180
  review: 'Review',
181
181
  reorder: 'Reorder',
182
182
  backToShop: 'Back to shop',
183
+ forgotErrorDescription: 'You will receive an email with a recovery link code within 1 minute․',
183
184
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@weareconceptstudio/account",
3
- "version": "0.2.4",
3
+ "version": "0.2.5",
4
4
  "description": "Concept Studio Account",
5
5
  "author": "Concept Studio",
6
6
  "license": "ISC",