@weareconceptstudio/account 0.0.5 → 0.0.7

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.
Files changed (31) hide show
  1. package/dist/components/AddressForm/index.js +9 -12
  2. package/dist/components/AddressItem/index.js +3 -3
  3. package/dist/components/EmptyOrders/index.js +3 -3
  4. package/dist/components/EmptyOrders/style.js +1 -1
  5. package/dist/components/OrderDetails/index.js +1 -1
  6. package/dist/components/OrdersList/OrderItem/index.js +1 -1
  7. package/dist/components/OrdersList/index.js +1 -1
  8. package/dist/components/TotalCheckout/index.js +0 -1
  9. package/dist/components/cart/Items/Simple/Item/index.js +0 -1
  10. package/dist/components/cart/Items/Simple/ItemMobile/index.js +1 -1
  11. package/dist/components/ui/AccountButton/style.js +3 -1
  12. package/dist/components/ui/WarningMessageForPopup/index.js +7 -6
  13. package/dist/templates/AccountSettingsTemplate/AccountInfo/index.js +1 -1
  14. package/dist/templates/AccountSettingsTemplate/AccountInfo/utils.js +6 -6
  15. package/dist/templates/AccountTemplate/style.js +1 -1
  16. package/dist/templates/AddressesTemplate/index.js +2 -2
  17. package/dist/templates/CartTemplate/index.d.ts +3 -1
  18. package/dist/templates/CartTemplate/index.js +3 -3
  19. package/dist/templates/ForgotPasswordTemplate/index.js +1 -1
  20. package/dist/templates/ForgotPasswordTemplate/style.js +2 -2
  21. package/dist/templates/ResetPasswordTemplate/style.js +1 -1
  22. package/dist/templates/SignInTemplate/style.js +2 -2
  23. package/dist/translations/en.d.ts +1 -29
  24. package/dist/translations/en.js +1 -29
  25. package/dist/translations/hy.d.ts +158 -0
  26. package/dist/translations/hy.js +157 -0
  27. package/dist/translations/index.d.ts +345 -29
  28. package/dist/translations/index.js +3 -1
  29. package/dist/translations/ru.d.ts +188 -0
  30. package/dist/translations/ru.js +187 -0
  31. package/package.json +1 -1
@@ -61,8 +61,8 @@ const AddressForm = Memo(({ title, data, selected, createAddress, updateAddress
61
61
  form.current.setFieldsValue({ city_id: '' });
62
62
  }
63
63
  }, []);
64
- return (React.createElement(AddressFormStyle, { theme: theme(globalTheme) },
65
- React.createElement(Text, { tag: `h6`, text: title, className: `account-h6 account-font-bold account-primary-color1` }),
64
+ return (React.createElement(AddressFormStyle, { theme: theme(globalTheme), className: 'address-form-block' },
65
+ React.createElement(Text, { tag: `h6`, text: title, className: `account-h6 account-font-bold account-primary-color1 address-form-block-title` }),
66
66
  React.createElement(Form, { ref: form, onSubmit: onFinish, onChange: handleFormChange, initialValues: data },
67
67
  React.createElement("div", { className: `form-wrapper` },
68
68
  React.createElement(Form.Item, { name: 'country_id', label: 'country' },
@@ -87,16 +87,13 @@ const AddressForm = Memo(({ title, data, selected, createAddress, updateAddress
87
87
  React.createElement(Input.Number, { placeholder: 'zipCodePlaceholder' })),
88
88
  React.createElement(Form.Item, { name: 'phone', label: 'phone' },
89
89
  React.createElement(PhoneNumber, null))),
90
- React.createElement("div", { className: `default-info-wrap` }, !data?.is_default ? (React.createElement("div", { className: `banner-wrap cursor-pointer`, onClick: () => setIsChecked(!isChecked) }, isChecked ? (React.createElement("div", { className: 'checkbox-wrap', role: 'button' },
91
- React.createElement(CheckboxCheckedIcon, null))) : (React.createElement("div", { className: 'checkbox-wrap', role: 'button' },
92
- React.createElement(CheckboxIcon, null))))) : (React.createElement("div", null, "Test")
93
- // <Text
94
- // className={`account-p account-p2 account-font-medium account-primary-color1`}
95
- // text={`${selected.type === 'shipping' ? 'thisYourDefaultShippingAddress' : 'thisYourDefaultBillingAddress'}`}
96
- // />
97
- )),
90
+ React.createElement("div", { className: `default-info-wrap` }, !data?.is_default ? (React.createElement("div", { className: `banner-wrap cursor-pointer`, onClick: () => setIsChecked(!isChecked) },
91
+ isChecked ? (React.createElement("div", { className: 'checkbox-wrap', role: 'button' },
92
+ React.createElement(CheckboxCheckedIcon, null))) : (React.createElement("div", { className: 'checkbox-wrap', role: 'button' },
93
+ React.createElement(CheckboxIcon, null))),
94
+ React.createElement(Text, { className: `account-p account-p2 account-font-medium account-primary-color1 address-form-is-default-checkbox`, text: `${selected.type === 'shipping' ? 'makeYourDefaultShippingAddress' : 'makeYourDefaultBillingAddress'}` }))) : (React.createElement(Text, { className: `account-p account-p2 account-font-medium account-primary-color1 address-form-is-default`, text: `${selected.type === 'shipping' ? 'thisYourDefaultShippingAddress' : 'thisYourDefaultBillingAddress'}` }))),
98
95
  React.createElement("div", { className: `cancel-and-save-wrap` },
99
- React.createElement(AccountButton, { text: `cancel`, onClick: closePopup, btnType: `green-large-text` }),
100
- React.createElement(AccountButton, { type: 'submit', text: `saveAndApply`, btnType: `full-width`, className: `${isDisabled ? 'disabled' : ''}` })))));
96
+ React.createElement(AccountButton, { text: `cancel`, onClick: closePopup, btnType: `green-large-text`, className: `address-form-cancel-btn` }),
97
+ React.createElement(AccountButton, { type: 'submit', text: `saveAndApply`, btnType: `full-width`, className: `address-form-cancel-submit ${isDisabled ? 'disabled' : ''}` })))));
101
98
  });
102
99
  export default AddressForm;
@@ -28,14 +28,14 @@ const AddressItem = ({ title, data, checkout_review, select_address, type, onCli
28
28
  React.createElement(Text, { className: `account-p account-p3 account-font-regular account-primary-color1 col-wrap`, text: `${data.address_1}, ${data.address_2 ? data.address_2 + ',' : ''}` }),
29
29
  React.createElement(Text, { className: `account-p account-p3 account-font-regular account-primary-color1`, text: `${data.region}, ${data.zip_code}, ${data.city}, ${data.country}` }),
30
30
  React.createElement(Text, { className: `account-p account-p3 account-font-regular account-primary-color1 phone col-wrap`, text: `${data.phone_number}` })),
31
- data.is_default ? (React.createElement(Text, { className: `account-p account-p3 account-font-bold account-primary-color1 margin-style`, text: `${type === 'shipping' ? 'defaultShippingAddress' : 'defaultBillingAddress'}` })) : (React.createElement(Text, { className: `account-p account-p3 account-font-bold account-primary-color1 margin-style opacity-zero`, text: `empty` })),
31
+ data.is_default ? (React.createElement(Text, { className: `account-p account-p3 account-font-bold account-primary-color1 margin-style is-default`, text: `${type === 'shipping' ? 'defaultShippingAddress' : 'defaultBillingAddress'}` })) : (React.createElement(Text, { className: `account-p account-p3 account-font-bold account-primary-color1 margin-style opacity-zero`, text: `empty` })),
32
32
  select_address && (React.createElement("div", { className: `circle-selected-wrap cursor-pointer ${checkedId === data.id ? 'active' : ''}`, onClick: () => setCheckedId(data.id) },
33
33
  React.createElement("svg", { version: '1.1', viewBox: '0 0 32 32', xmlns: 'http://www.w3.org/2000/svg', className: `checkbox-icon ${checkedId === data.id ? 'selected' : 'note-selected'}` },
34
34
  React.createElement("path", { d: 'M13.345 30.462c-1.062 0-1.859-0.531-2.39-1.328l-9.56-16.996c-0.797-1.328-0.266-2.921 1.062-3.718 1.328-0.531 2.921 0 3.718 1.328l7.436 13.012 12.481-20.183c0.797-1.328 2.39-1.593 3.718-0.797s1.593 2.39 0.797 3.718l-14.871 23.635c-0.531 0.797-1.328 1.328-2.39 1.328z' }))))),
35
35
  !checkout_review && (React.createElement("div", { className: `edit-remove-wrapper` },
36
- React.createElement(AccountButton, { text: `edit`, btnType: `green-small-text`, onClick: handleEditAddressPopup }),
36
+ React.createElement(AccountButton, { text: `edit`, btnType: `green-small-text`, onClick: handleEditAddressPopup, className: 'btn-one-address-version' }),
37
37
  !select_address && !data.is_default && (React.createElement(React.Fragment, null,
38
38
  React.createElement("div", { className: `vertical-line` }),
39
- React.createElement(AccountButton, { text: `remove`, btnType: `green-small-text`, onClick: handleDeletePopup })))))))));
39
+ React.createElement(AccountButton, { text: `remove`, onClick: handleDeletePopup, btnType: `green-small-text`, className: 'btn-more-address-version' })))))))));
40
40
  };
41
41
  export default AddressItem;
@@ -5,8 +5,8 @@ import EmptyOrdersStyle from './style';
5
5
  //* Components
6
6
  import AccountButton from '../ui/AccountButton';
7
7
  const EmptyOrders = Memo(() => {
8
- return (React.createElement(EmptyOrdersStyle, null,
9
- React.createElement(Text, { tag: `h6`, className: `account-h6 account-font-bold account-primary-color1`, text: `emptyTitle` }),
10
- React.createElement(Text, { className: `account-p account-p2 account-font-regular account-primary-color1 description`, text: `emptyDesc` })));
8
+ return (React.createElement(EmptyOrdersStyle, { className: 'empty-orders' },
9
+ React.createElement(Text, { tag: `h6`, className: `account-h6 account-font-bold account-primary-color1 empty-orders-title`, text: `emptyTitle` }),
10
+ React.createElement(Text, { className: `account-p account-p2 account-font-regular account-primary-color1 empty-orders-description`, text: `emptyDesc` })));
11
11
  });
12
12
  export default EmptyOrders;
@@ -3,7 +3,7 @@ const EmptyOrdersStyle = styled.section `
3
3
  --account_descMTop: var(--sp3x);
4
4
  --account_descMBot: var(--sp7x);
5
5
 
6
- .description {
6
+ .empty-orders-description {
7
7
  margin-top: var(--account_descMTop);
8
8
  margin-bottom: var(--account_descMBot);
9
9
  }
@@ -13,7 +13,7 @@ const OrderDetails = memo(({ className, status, order_date, delivery_date, order
13
13
  React.createElement(Text, { className: `account-p account-p3 account-font-bold account-primary-color1` },
14
14
  translate('orderStatus'),
15
15
  ":"),
16
- status === 'delivered' ? (React.createElement(Text, { className: `account-p account-p4 account-font-bold account-primary-color1 account-primary-color5-bg status-item value`, text: 'delivered' })) : status === 'canceled' ? (React.createElement(Text, { className: `account-p account-p4 account-font-bold account-error-color account-secondary-color7-bg status-item value`, text: 'canceled' })) : (React.createElement(Text, { className: `account-p account-p4 account-font-bold account-secondary-color1 account-secondary-color8-bg status-item value`, text: 'inProgress' }))),
16
+ status === 'delivered' ? (React.createElement(Text, { className: `account-p account-p4 account-font-bold account-primary-color1 account-primary-color5-bg status-item value delivered`, text: 'delivered' })) : status === 'canceled' ? (React.createElement(Text, { className: `account-p account-p4 account-font-bold account-error-color account-secondary-color7-bg status-item value canceled`, text: 'canceled' })) : (React.createElement(Text, { className: `account-p account-p4 account-font-bold account-secondary-color1 account-secondary-color8-bg status-item value in-progress`, text: 'inProgress' }))),
17
17
  React.createElement("div", { className: `order-detail-item-wrap` },
18
18
  React.createElement(Text, { className: `account-p account-p3 account-font-bold account-primary-color1` },
19
19
  translate('orderDate'),
@@ -12,7 +12,7 @@ const OrderItem = Memo(({ data }) => {
12
12
  React.createElement(Text, { className: `account-p account-p4 account-font-medium account-primary-color1`, text: data.total_items })),
13
13
  React.createElement("div", { className: `col-item od-col-3 nowrap` },
14
14
  React.createElement(Text, { className: `account-p account-p4 account-font-medium account-primary-color1`, text: `ID ${data.order_number}` })),
15
- React.createElement("div", { className: `col-item od-col-4 nowrap` }, data.status === 'delivered' ? (React.createElement(Text, { className: `account-p account-p4 account-font-bold account-primary-color1 account-primary-color5-bg status-item`, text: 'delivered' })) : data.status === 'canceled' ? (React.createElement(Text, { className: `account-p account-p4 account-font-bold account-error-color account-secondary-color7-bg status-item`, text: 'canceled' })) : (React.createElement(Text, { className: `account-p account-p4 account-font-bold account-secondary-color1 account-secondary-color8-bg status-item`, text: 'inProgress' }))),
15
+ React.createElement("div", { className: `col-item od-col-4 nowrap` }, data.status === 'delivered' ? (React.createElement(Text, { className: `account-p account-p4 account-font-bold account-primary-color1 account-primary-color5-bg status-item delivered`, text: 'delivered' })) : data.status === 'canceled' ? (React.createElement(Text, { className: `account-p account-p4 account-font-bold account-error-color account-secondary-color7-bg status-item canceled`, text: 'canceled' })) : (React.createElement(Text, { className: `account-p account-p4 account-font-bold account-secondary-color1 account-secondary-color8-bg status-item in-progress`, text: 'inProgress' }))),
16
16
  React.createElement("div", { className: `col-item od-col-5 nowrap` },
17
17
  React.createElement(Text, { className: `account-p account-p4 account-font-medium account-primary-color1`, text: handlePriceCheckFunc(data.total_price, data.currency) })),
18
18
  React.createElement("div", { className: `col-item od-col-6 nowrap` },
@@ -45,7 +45,7 @@ const OrdersList = ({ data, total, pageSize, router, pathname, searchParams }) =
45
45
  React.createElement("div", { className: `left-item-wrap last` },
46
46
  React.createElement(Text, { className: `account-p account-p4 account-font-bold account-primary-color1`, text: `${translate('orderNumber')}:` }),
47
47
  React.createElement(Text, { className: `account-p account-p4 account-font-regular account-primary-color1 value`, text: `ID ${item.order_number}` }))),
48
- React.createElement("div", { className: `right-wrap` }, item.status === 'delivered' ? (React.createElement(Text, { className: `account-p account-p4 account-font-bold account-primary-color1 account-primary-color5-bg status-item`, text: 'delivered' })) : item.status === 'canceled' ? (React.createElement(Text, { className: `account-p account-p4 account-font-bold account-error-color account-secondary-color7-bg status-item`, text: 'canceled' })) : (React.createElement(Text, { className: `account-p account-p4 account-font-bold account-secondary-color1 account-secondary-color8-bg status-item`, text: 'inProgress' })))),
48
+ React.createElement("div", { className: `right-wrap` }, item.status === 'delivered' ? (React.createElement(Text, { className: `account-p account-p4 account-font-bold account-primary-color1 account-primary-color5-bg status-item delivered`, text: 'delivered' })) : item.status === 'canceled' ? (React.createElement(Text, { className: `account-p account-p4 account-font-bold account-error-color account-secondary-color7-bg status-item canceled`, text: 'canceled' })) : (React.createElement(Text, { className: `account-p account-p4 account-font-bold account-secondary-color1 account-secondary-color8-bg status-item in-progress`, text: 'inProgress' })))),
49
49
  React.createElement("div", { className: `last-col-wrap` },
50
50
  React.createElement("div", { className: `left-wrap` },
51
51
  React.createElement("div", { className: `left-item-wrap` },
@@ -16,7 +16,6 @@ const TotalCheckout = memo(({ isShipping, children, confirmation, buttonProps, i
16
16
  useEffect(() => {
17
17
  setHeaderHeight(document.getElementsByTagName('header')[0]?.clientHeight);
18
18
  }, [winWidth]);
19
- console.log(shippingCost);
20
19
  return (React.createElement(TotalCheckoutStyle, { "$headerHeight": headerHeight },
21
20
  React.createElement("div", { className: `cart-main-wrap` },
22
21
  React.createElement("div", { className: `left-panel-wrap panel` }, children),
@@ -39,7 +39,6 @@ const Item = memo(({ data, edit, favorite, remove, select, isLast, favorites, ac
39
39
  React.createElement("div", { className: `col-item tl-col-3 col-item-3 nowrap` }, data?.product?.sale_price ? (React.createElement("div", null,
40
40
  React.createElement(Text, { className: `account-p account-p3 account-font-bold account-secondary-color2 alignRight`, text: handlePriceCheckFunc(data?.product?.sale_price, currency) }),
41
41
  React.createElement(Text, { className: `account-p account-p3 account-font-regular account-primary-color2 line-through value align-right`, text: handlePriceCheckFunc(data.product?.price, currency) }))) : (React.createElement(Text, { className: `account-p account-p3 account-font-bold account-primary-color1 alignRight`, text: handlePriceCheckFunc(data.product?.price, currency) }))),
42
- console.log(data.total),
43
42
  React.createElement("div", { className: `col-item tl-col-4 col-item-4 nowrap` },
44
43
  React.createElement("div", { className: `col-item-inner-wrap` },
45
44
  React.createElement("div", { className: `flex-end-wrap` }, data?.product.sale_price ? (React.createElement("div", null,
@@ -39,7 +39,7 @@ const ItemMobile = memo(({ data, additionalParameters, isLast, favorites }) => {
39
39
  // className={`quantity-select-mobile-wrap`}
40
40
  // onChange={(val) => addToCart({ productId: data.product.id, variantId: data.selectedVariant.id, optionId: data.selectedOption.id, qty: val, update: true })}
41
41
  // />
42
- React.createElement(Select, { allowSearch: false, options: selectionList, value: 1, onChange: (val) => console.log(val) })) : (React.createElement("div", { className: `mobile-info-item` },
42
+ React.createElement(Select, { allowSearch: false, options: selectionList, value: 1, onChange: () => { } })) : (React.createElement("div", { className: `mobile-info-item` },
43
43
  React.createElement(Text, { className: `account-p account-p3 account-font-medium primaryColor1`, text: `quantityWithSymbol` }),
44
44
  "\u00A0",
45
45
  React.createElement(Text, { className: `account-p account-p3 account-font-medium primaryColor1`, text: data.qty }))))) : (React.createElement("div", { className: `mobile-info-item` },
@@ -25,7 +25,9 @@ const AccountButtonStyle = styled.div `
25
25
  border: 2px solid var(--account_primaryColor14);
26
26
  color: var(--account_backgroundColor);
27
27
  border-radius: var(--account_btnBorderRad);
28
- transition: 0.1s;
28
+ transition:
29
+ background-color var(--account_trTime) ease-out,
30
+ border var(--account_trTime) ease-out;
29
31
  display: inline-flex;
30
32
  justify-content: center;
31
33
  align-items: center;
@@ -9,12 +9,12 @@ import AccountButton from '../AccountButton';
9
9
  const WarningMessageForPopup = React.memo(({ isDelete = false, isThankYou = false, onRemove, title, description, globalData }) => {
10
10
  const { closePopup } = useUi();
11
11
  const globalTheme = useTheme();
12
- return (React.createElement(WarningMessageForPopupStyle, { theme: theme(globalTheme) },
13
- React.createElement(Text, { tag: `h6`, className: `account-h6 account-font-bold account-primary-color1`, text: title }),
12
+ return (React.createElement(WarningMessageForPopupStyle, { className: 'warning-message-block', theme: theme(globalTheme) },
13
+ React.createElement(Text, { tag: `h6`, className: `account-h6 account-font-bold account-primary-color1 warning-message-title`, text: title }),
14
14
  React.createElement(Text, { className: `account-p account-p2 account-font-regular account-primary-color1 confirm-delete-address-text`, text: description }),
15
- React.createElement("div", { className: `cancel-remove-wrap ${!isDelete && 'mobile-margin'}` }, isDelete ? (React.createElement(React.Fragment, null,
16
- React.createElement(AccountButton, { btnType: `green-large-text`, text: `cancel`, onClick: closePopup }),
17
- React.createElement(AccountButton, { text: `remove`, btnType: `full-width`, onClick: () => {
15
+ React.createElement("div", { className: `cancel-remove-wrap ${!isDelete ? 'mobile-margin' : ''}` }, isDelete ? (React.createElement(React.Fragment, null,
16
+ React.createElement(AccountButton, { text: `cancel`, onClick: closePopup, btnType: `green-large-text`, className: 'warning-message-popup-close' }),
17
+ React.createElement(AccountButton, { text: `remove`, btnType: `full-width`, className: 'warning-message-popup-remove', onClick: () => {
18
18
  onRemove();
19
19
  closePopup();
20
20
  } }))) : isThankYou ? (
@@ -24,8 +24,9 @@ const WarningMessageForPopup = React.memo(({ isDelete = false, isThankYou = fals
24
24
  // btnType={`full-width`}
25
25
  // text={`continueToShop`}
26
26
  // url={globalData?.menu_bar[0]?.slug}
27
+ // className={'warning-message-popup-continue'}
27
28
  // />
28
29
  // ) : null
29
- React.createElement("div", null, "Global Data")) : (React.createElement(AccountButton, { text: `done`, btnType: `full-width`, onClick: closePopup })))));
30
+ React.createElement("div", null, "Global Data")) : (React.createElement(AccountButton, { text: `done`, onClick: closePopup, btnType: `full-width`, className: 'warning-message-popup-done' })))));
30
31
  });
31
32
  export default WarningMessageForPopup;
@@ -23,7 +23,7 @@ const AccountInfo = ({ user, onAccountUpdate, displayFields = defaultDisplayFiel
23
23
  React.createElement(Text, { text: `accountInformation`, className: `account-p account-p1 account-font-bold account-primary-color1` }),
24
24
  !edit ? (React.createElement(React.Fragment, null,
25
25
  React.createElement("div", { className: `info-wrap` }, displayFields.map((displayField, index) => (React.createElement("div", { key: index, className: `info-item-wrap` },
26
- React.createElement(Text, { className: `account-p account-p3 account-font-bold account-primary-color1`, text: `${displayField.label}:` }),
26
+ React.createElement(Text, { className: `account-p account-p3 account-font-bold account-primary-color1`, text: `${displayField.label}` }),
27
27
  "\u00A0",
28
28
  React.createElement(Text, { className: `account-p account-p3 account-font-regular account-primary-color1`, text: user[displayField.value] || '-' }))))),
29
29
  React.createElement(AccountButton, { text: `edit`, btnType: `green-large-text`, onClick: () => setEdit(true) }))) : (React.createElement(React.Fragment, null,
@@ -1,8 +1,8 @@
1
1
  export const defaultDisplayFields = [
2
- { label: 'First Name', value: 'first_name' },
3
- { label: 'Last Name', value: 'last_name' },
4
- { label: 'Phone', value: 'phone' },
5
- { label: 'Email', value: 'email' },
2
+ { label: 'first_name', value: 'first_name' },
3
+ { label: 'last_name', value: 'last_name' },
4
+ { label: 'phone_', value: 'phone' },
5
+ { label: 'email_', value: 'email' },
6
6
  ];
7
7
  export const defaultFormFields = [
8
8
  {
@@ -28,14 +28,14 @@ export const defaultFormFields = [
28
28
  {
29
29
  fieldType: 'phone',
30
30
  labelProps: {
31
- label: 'Phone',
31
+ label: 'phone_input',
32
32
  name: 'phone',
33
33
  },
34
34
  },
35
35
  {
36
36
  fieldType: 'input',
37
37
  labelProps: {
38
- label: 'Email',
38
+ label: 'email',
39
39
  name: 'email',
40
40
  },
41
41
  fieldProps: {
@@ -60,7 +60,7 @@ const AccountStyle = styled.section `
60
60
 
61
61
  .sidebar-item {
62
62
  color: var(--account_primaryColor3);
63
- transition: color var(--account_trTime);
63
+ transition: color var(--account_trTime) ease-out;
64
64
  }
65
65
 
66
66
  @media (hover: hover) {
@@ -3,7 +3,7 @@ import { AddressWrap } from '../../components';
3
3
  import AddressesTemplateStyle from './style';
4
4
  const AddressesTemplate = ({ type = 'single', addresses }) => {
5
5
  return (React.createElement(AddressesTemplateStyle, null, type == 'single' ? (React.createElement(AddressWrap, { addresses: addresses })) : (React.createElement(React.Fragment, null,
6
- React.createElement(AddressWrap, { title: 'shippingAddress' }),
7
- React.createElement(AddressWrap, { title: 'billingAddress' })))));
6
+ React.createElement(AddressWrap, { title: 'shippingAddress', addresses: addresses }),
7
+ React.createElement(AddressWrap, { title: 'billingAddress', addresses: addresses })))));
8
8
  };
9
9
  export default AddressesTemplate;
@@ -1,5 +1,5 @@
1
1
  export default CartTemplate;
2
- declare function CartTemplate({ items, itemsCount, shippingCost, loading, children, shoppingUrl, subtotal, total, actions }: {
2
+ declare function CartTemplate({ items, itemsCount, shippingCost, loading, children, shoppingUrl, subtotal, total, actions, btnDisabled, checkoutUrl }: {
3
3
  items: any;
4
4
  itemsCount: any;
5
5
  shippingCost: any;
@@ -9,5 +9,7 @@ declare function CartTemplate({ items, itemsCount, shippingCost, loading, childr
9
9
  subtotal: any;
10
10
  total: any;
11
11
  actions: any;
12
+ btnDisabled: any;
13
+ checkoutUrl?: string;
12
14
  }): React.JSX.Element;
13
15
  import React from 'react';
@@ -2,14 +2,14 @@ import React from 'react';
2
2
  import { Container, Page } from '@weareconceptstudio/core';
3
3
  import { EmptyCart, TotalCheckout, AccountButton, SimpleCartItems } from '../../components';
4
4
  import CartTemplateStyle from './style';
5
- const CartTemplate = ({ items, itemsCount, shippingCost, loading, children, shoppingUrl, subtotal, total, actions }) => {
5
+ const CartTemplate = ({ items, itemsCount, shippingCost, loading, children, shoppingUrl, subtotal, total, actions, btnDisabled, checkoutUrl = '/checkout/' }) => {
6
6
  return (React.createElement(Page, { className: 'cart use-account' },
7
7
  React.createElement(Container, null,
8
8
  React.createElement(CartTemplateStyle, null,
9
9
  React.createElement(TotalCheckout, { total: total, subtotal: subtotal, itemsCount: itemsCount, shippingCost: shippingCost, buttonProps: {
10
- url: '/checkout/',
10
+ url: checkoutUrl,
11
11
  text: 'proceedToCheckout',
12
- disabled: true,
12
+ disabled: btnDisabled,
13
13
  } }, itemsCount > 0 ? (React.createElement(React.Fragment, null,
14
14
  React.createElement(SimpleCartItems, { data: items, smallFontSize: true, title: 'myCart', favorites: [], className: `cart-st-wrap`, additionalParameters: {
15
15
  edit: { item: true, list: false },
@@ -60,7 +60,7 @@ const ForgotPasswordTemplate = ({ onFormSubmit }) => {
60
60
  React.createElement(Text, { tag: 'h1', className: 'account-h2 account-font-bold account-primary-color1 title', text: 'forgotPassword' }),
61
61
  React.createElement(Text, { className: 'account-p account-p2 account-font-regular account-primary-color1 description', text: 'forgotPasswordDescription' }),
62
62
  React.createElement(Form, { onSubmit: handleFormFinish },
63
- React.createElement(Form.Item, { name: 'email', label: 'email' },
63
+ React.createElement(Form.Item, { name: 'email', label: 'email', rules: [{ type: 'email' }] },
64
64
  React.createElement(Input, { placeholder: 'emailPlaceholder' })),
65
65
  React.createElement("div", { className: 'loginExternalBlock' },
66
66
  React.createElement(Link, { href: '/sign-in' },
@@ -55,7 +55,7 @@ const ForgotPasswordTemplateStyle = styled.section `
55
55
  margin-top: var(--account_tryAgainWrapMTop);
56
56
 
57
57
  .try-again-text {
58
- transition: all var(--account_trTime) ease;
58
+ transition: color var(--account_trTime) ease-out;
59
59
  cursor: pointer;
60
60
 
61
61
  @media (hover: hover) {
@@ -78,7 +78,7 @@ const ForgotPasswordTemplateStyle = styled.section `
78
78
  margin-top: var(--account_loginExternalMTop);
79
79
 
80
80
  .login-external {
81
- transition: all var(--account_trTime) ease;
81
+ transition: color var(--account_trTime) ease-out;
82
82
 
83
83
  @media (hover: hover) {
84
84
  &:hover {
@@ -55,7 +55,7 @@ const ResetPasswordTemplateStyleStyle = styled.section `
55
55
  margin-top: var(--account_forgotPasswordMTop);
56
56
 
57
57
  .forgotLink {
58
- transition: all var(--account_trTime) ease;
58
+ transition: color var(--account_trTime) ease-out;
59
59
 
60
60
  @media (hover: hover) {
61
61
  &:hover {
@@ -40,7 +40,7 @@ const SignInTemplateStyle = styled.section `
40
40
  margin-top: var(--account_forgotPasswordMTop);
41
41
 
42
42
  .forgotLink {
43
- transition: all var(--account_trTime) ease;
43
+ transition: color var(--account_trTime) ease-out;
44
44
 
45
45
  @media (hover: hover) {
46
46
  &:hover {
@@ -64,7 +64,7 @@ const SignInTemplateStyle = styled.section `
64
64
  margin-left: var(--account_joinNowDistance);
65
65
 
66
66
  .joinNowLink {
67
- transition: all var(--account_trTime) ease;
67
+ transition: color var(--account_trTime) ease-out;
68
68
 
69
69
  @media (hover: hover) {
70
70
  &:hover {
@@ -1,31 +1,18 @@
1
1
  declare const _default: {
2
- login: string;
3
2
  saveAndApply: string;
4
3
  addNewAdd: string;
5
4
  editCart: string;
6
5
  shopNow: string;
7
6
  firstName: string;
8
- first_nameIsRequired: string;
9
7
  lastName: string;
10
- last_nameIsRequired: string;
11
8
  email: string;
12
- emailIsRequired: string;
13
- invalidEmailAddress: string;
14
9
  phone: string;
15
- phoneIsRequired: string;
16
- invalidPhoneNumber: string;
17
10
  password: string;
18
- passwordIsRequired: string;
19
- invalidPassword: string;
20
- invalidConfirmPassword: string;
21
- password_confirmationIsRequired: string;
22
- region: string;
23
- regionPlaceholder: string;
24
- regionIsRequired: string;
25
11
  noData: string;
26
12
  contactUs: string;
27
13
  privacyPolicy: string;
28
14
  welcomeBack: string;
15
+ login: string;
29
16
  forgotPasswordLink: string;
30
17
  accountText: string;
31
18
  joinNow: string;
@@ -71,11 +58,8 @@ declare const _default: {
71
58
  password_title: string;
72
59
  cancel: string;
73
60
  phone_input: string;
74
- current_passwordIsRequired: string;
75
- new_passwordIsRequired: string;
76
61
  enterCurrentPassword: string;
77
62
  enterNewPassword: string;
78
- products: string;
79
63
  firstNamePlaceholder: string;
80
64
  lastNamePlaceholder: string;
81
65
  emailPlaceholder: string;
@@ -190,8 +174,6 @@ declare const _default: {
190
174
  partnership: string;
191
175
  quantityWithSymbol: string;
192
176
  saveChanges: string;
193
- phone_numberIsRequired: string;
194
- region_idIsRequired: string;
195
177
  yourSettingsHaveBeenSaved: string;
196
178
  yourPasswordHaveBeenChanged: string;
197
179
  oopsNoResults: string;
@@ -233,20 +215,10 @@ declare const _default: {
233
215
  yourReview: string;
234
216
  upload: string;
235
217
  submitReview: string;
236
- ratingIsRequired: string;
237
- titleIsRequired: string;
238
- contentIsRequired: string;
239
218
  is_recommendedIsRequired: string;
240
- username: string;
241
- usernamePlaceholder: string;
242
- usernameIsRequired: string;
243
- userName: string;
244
- emptyFilterTitle: string;
245
- emptyFilterDesc: string;
246
219
  productReviewGuidelines: string;
247
220
  archiveRegistry: string;
248
221
  noteMessage: string;
249
- addItemsToRegistry: string;
250
222
  iRecommendThisProduct: string;
251
223
  removeRegistryPopupTitle: string;
252
224
  removeRegistryPopupDesc: string;
@@ -1,31 +1,18 @@
1
1
  export default {
2
- login: 'Login',
3
2
  saveAndApply: 'Save and Apply',
4
3
  addNewAdd: '+ Add a new address',
5
4
  editCart: 'Edit cart',
6
5
  shopNow: 'Shop now',
7
6
  firstName: 'First name',
8
- first_nameIsRequired: 'Please enter your first name.',
9
7
  lastName: 'Last name',
10
- last_nameIsRequired: 'Please enter your last name.',
11
8
  email: 'Email',
12
- emailIsRequired: 'Please enter your email.',
13
- invalidEmailAddress: 'Please enter a valid email address.',
14
9
  phone: 'Phone',
15
- phoneIsRequired: 'Please enter your phone.',
16
- invalidPhoneNumber: 'Please enter a valid phone number.',
17
10
  password: 'Password',
18
- passwordIsRequired: 'Please enter your password.',
19
- invalidPassword: 'Password must contain lowercase, uppercase, number and has been min 8 characters.',
20
- invalidConfirmPassword: 'Password confirmation is not correct.',
21
- password_confirmationIsRequired: 'Please enter your confirmed password.',
22
- region: 'Region',
23
- regionPlaceholder: 'Select region',
24
- regionIsRequired: 'Please enter your region.',
25
11
  noData: 'No data',
26
12
  contactUs: 'Contact us',
27
13
  privacyPolicy: 'Privacy policy',
28
14
  welcomeBack: 'Welcome back!',
15
+ login: 'Login',
29
16
  forgotPasswordLink: 'Forgot Password?',
30
17
  accountText: 'Don’t have an account?',
31
18
  joinNow: 'Join now',
@@ -71,11 +58,8 @@ export default {
71
58
  password_title: 'Password',
72
59
  cancel: 'Cancel',
73
60
  phone_input: 'Phone',
74
- current_passwordIsRequired: 'Please enter your current password.',
75
- new_passwordIsRequired: 'Please enter your new password.',
76
61
  enterCurrentPassword: 'Enter current password',
77
62
  enterNewPassword: 'Enter new password',
78
- products: 'products',
79
63
  firstNamePlaceholder: 'First name',
80
64
  lastNamePlaceholder: 'Last name',
81
65
  emailPlaceholder: 'Email',
@@ -190,8 +174,6 @@ export default {
190
174
  partnership: 'Partnership',
191
175
  quantityWithSymbol: 'Quantity:',
192
176
  saveChanges: 'Save changes',
193
- phone_numberIsRequired: 'Please enter your phone.',
194
- region_idIsRequired: 'Please enter your region.',
195
177
  yourSettingsHaveBeenSaved: 'Your settings have been saved.',
196
178
  yourPasswordHaveBeenChanged: 'Your password has been changed.',
197
179
  oopsNoResults: 'Oops, no results.',
@@ -233,20 +215,10 @@ export default {
233
215
  yourReview: 'Your review',
234
216
  upload: 'Upload',
235
217
  submitReview: 'Submit review',
236
- ratingIsRequired: 'Please rate the item.',
237
- titleIsRequired: 'Please add a title to your review.',
238
- contentIsRequired: 'Your review must be at least 25 characters in length. Please try again.',
239
218
  is_recommendedIsRequired: 'Please select.',
240
- username: 'Username',
241
- usernamePlaceholder: 'Username',
242
- usernameIsRequired: 'Please enter your username.',
243
- userName: 'Username:',
244
- emptyFilterTitle: 'No results matching your filters',
245
- emptyFilterDesc: 'Please adjust your criteria or explore other categories to discover the perfect shop.',
246
219
  productReviewGuidelines: 'Product review guidelines',
247
220
  archiveRegistry: 'Archive registry',
248
221
  noteMessage: 'Note message',
249
- addItemsToRegistry: 'Add items to registry',
250
222
  iRecommendThisProduct: 'I recommend this product',
251
223
  removeRegistryPopupTitle: "Are you sure you'd like to remove your registry?",
252
224
  removeRegistryPopupDesc: 'It will no longer be accessible in stores or online.',