@weareconceptstudio/account 0.2.9 → 0.3.1

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 (82) hide show
  1. package/dist/components/AccountButton/style.js +2 -1
  2. package/dist/components/TotalCheckout/AddNewCard/index.d.ts +6 -0
  3. package/dist/components/TotalCheckout/AddNewCard/index.js +11 -0
  4. package/dist/components/TotalCheckout/AddNewCard/style.d.ts +2 -0
  5. package/dist/components/TotalCheckout/AddNewCard/style.js +90 -0
  6. package/dist/components/TotalCheckout/CardComp/index.d.ts +9 -0
  7. package/dist/components/TotalCheckout/CardComp/index.js +36 -0
  8. package/dist/components/TotalCheckout/CardComp/style.d.ts +2 -0
  9. package/dist/components/TotalCheckout/CardComp/style.js +203 -0
  10. package/dist/components/TotalCheckout/CommentComp/index.d.ts +3 -0
  11. package/dist/components/TotalCheckout/CommentComp/index.js +15 -0
  12. package/dist/components/TotalCheckout/CommentComp/style.d.ts +2 -0
  13. package/dist/components/TotalCheckout/CommentComp/style.js +33 -0
  14. package/dist/components/TotalCheckout/FreeShippingComp/index.d.ts +2 -2
  15. package/dist/components/TotalCheckout/FreeShippingComp/index.js +3 -4
  16. package/dist/components/TotalCheckout/FreeShippingComp/style.js +1 -1
  17. package/dist/components/TotalCheckout/MuramoneyComp/index.d.ts +9 -0
  18. package/dist/components/TotalCheckout/MuramoneyComp/index.js +32 -0
  19. package/dist/components/TotalCheckout/MuramoneyComp/style.d.ts +2 -0
  20. package/dist/components/TotalCheckout/MuramoneyComp/style.js +117 -0
  21. package/dist/components/TotalCheckout/MuramoneyComp/utils.d.ts +10 -0
  22. package/dist/components/TotalCheckout/MuramoneyComp/utils.js +14 -0
  23. package/dist/components/TotalCheckout/PaymentComp/index.d.ts +9 -0
  24. package/dist/components/TotalCheckout/PaymentComp/index.js +14 -0
  25. package/dist/components/TotalCheckout/PaymentComp/style.d.ts +2 -0
  26. package/dist/components/TotalCheckout/PaymentComp/style.js +50 -0
  27. package/dist/components/TotalCheckout/PaymentMethodsComp/index.d.ts +8 -0
  28. package/dist/components/TotalCheckout/PaymentMethodsComp/index.js +82 -0
  29. package/dist/components/TotalCheckout/PaymentMethodsComp/style.d.ts +2 -0
  30. package/dist/components/TotalCheckout/PaymentMethodsComp/style.js +162 -0
  31. package/dist/components/TotalCheckout/PromoCodeComp/index.d.ts +2 -1
  32. package/dist/components/TotalCheckout/PromoCodeComp/index.js +18 -15
  33. package/dist/components/TotalCheckout/PromoCodeComp/style.js +4 -11
  34. package/dist/components/TotalCheckout/SelectPaymentMethodPopup/index.d.ts +3 -0
  35. package/dist/components/TotalCheckout/SelectPaymentMethodPopup/index.js +65 -0
  36. package/dist/components/TotalCheckout/SelectPaymentMethodPopup/style.d.ts +2 -0
  37. package/dist/components/TotalCheckout/SelectPaymentMethodPopup/style.js +153 -0
  38. package/dist/components/TotalCheckout/index.js +26 -45
  39. package/dist/components/TotalCheckout/style.js +119 -17
  40. package/dist/modules/account/AccountBalanceTemplate/HeroBalance/ProgressBalance/ProgressComponent/index.js +0 -1
  41. package/dist/modules/account/AccountBalanceTemplate/HeroBalance/ProgressBalance/index.js +1 -3
  42. package/dist/modules/account/AccountBalanceTemplate/HeroBalance/index.js +1 -3
  43. package/dist/modules/account/AccountBalanceTemplate/StatusBalance/ItemStatus/index.js +1 -3
  44. package/dist/modules/address/SelectAddressPopup/index.js +38 -5
  45. package/dist/modules/address/SelectAddressPopup/style.js +6 -0
  46. package/dist/modules/address/ShippingBillingForm/index.js +4 -1
  47. package/dist/modules/cart/CartTemplate/index.js +2 -2
  48. package/dist/modules/cart/EmptyCart/icons.d.ts +2 -0
  49. package/dist/modules/cart/EmptyCart/icons.js +10 -0
  50. package/dist/modules/cart/EmptyCart/index.js +3 -1
  51. package/dist/modules/cart/EmptyCart/style.js +40 -0
  52. package/dist/modules/cart/SimpleItems/Item/index.js +1 -2
  53. package/dist/modules/cart/SimpleItems/ItemMobile/index.js +1 -2
  54. package/dist/modules/checkout/CheckoutTemplate/StepReview/index.js +22 -1
  55. package/dist/modules/checkout/ThankYouTemplate/icons.js +16 -3
  56. package/dist/modules/checkout/ThankYouTemplate/style.js +8 -1
  57. package/dist/modules/index.d.ts +1 -0
  58. package/dist/modules/index.js +1 -0
  59. package/dist/modules/order/OrderDetails/index.js +3 -3
  60. package/dist/modules/order/OrderStatus/index.d.ts +6 -0
  61. package/dist/modules/order/OrderStatus/index.js +25 -0
  62. package/dist/modules/order/OrderedItems/index.js +1 -2
  63. package/dist/modules/order/OrdersList/OrderItem/index.js +4 -3
  64. package/dist/modules/order/OrdersList/index.js +4 -4
  65. package/dist/modules/payment/PaymentMethodsTemplate/index.d.ts +3 -0
  66. package/dist/modules/payment/PaymentMethodsTemplate/index.js +41 -0
  67. package/dist/modules/payment/PaymentMethodsTemplate/style.d.ts +2 -0
  68. package/dist/modules/payment/PaymentMethodsTemplate/style.js +53 -0
  69. package/dist/modules/payment/index.d.ts +1 -0
  70. package/dist/modules/payment/index.js +1 -0
  71. package/dist/styles/theme.js +1 -0
  72. package/dist/styles/variables.js +1 -0
  73. package/dist/translations/en.d.ts +12 -0
  74. package/dist/translations/en.js +14 -2
  75. package/dist/translations/hy.d.ts +12 -0
  76. package/dist/translations/hy.js +14 -2
  77. package/dist/translations/index.d.ts +36 -0
  78. package/dist/translations/ru.d.ts +12 -0
  79. package/dist/translations/ru.js +14 -2
  80. package/package.json +1 -1
  81. package/dist/utils/_functions.d.ts +0 -2
  82. package/dist/utils/_functions.js +0 -18
@@ -181,7 +181,8 @@ const AccountButtonStyle = styled.div `
181
181
  }
182
182
  }
183
183
 
184
- &.promo-code-version {
184
+ &.promo-code-version,
185
+ &.muramoney-version {
185
186
  width: fit-content;
186
187
 
187
188
  a,
@@ -0,0 +1,6 @@
1
+ export default AddNewCard;
2
+ declare function AddNewCard({ title, className }: {
3
+ title: any;
4
+ className: any;
5
+ }): React.JSX.Element;
6
+ import React from 'react';
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { Text, Image } from '@weareconceptstudio/core';
3
+ //* Style
4
+ import AddNewCardStyle from './style';
5
+ const AddNewCard = ({ title, className }) => {
6
+ return (React.createElement(AddNewCardStyle, { className: `new-card-container ${className || ''}` },
7
+ React.createElement("div", { className: `new-card-wrap` },
8
+ React.createElement(Image, { src: '/images/card.svg', alt: 'card', className: 'ard-svg' }),
9
+ React.createElement(Text, { className: `account-add-card-text account-p account-p3 account-font-medium account-primary-color1`, text: title }))));
10
+ };
11
+ export default AddNewCard;
@@ -0,0 +1,2 @@
1
+ export default AddNewCardStyle;
2
+ declare const AddNewCardStyle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
@@ -0,0 +1,90 @@
1
+ import styled from 'styled-components';
2
+ const AddNewCardStyle = styled.div `
3
+ --account_addCardTextMTop: var(--sp2x);
4
+ --account_itemBorderRadius: var(--sp1-5x);
5
+ --account_itemDistance: var(--sp3x);
6
+ --account_addCardHeight: var(--sp46x);
7
+
8
+ background-color: var(--neutral15);
9
+ width: calc(50% - var(--account_itemDistance) / 2);
10
+ height: var(--account_addCardHeight);
11
+ border-radius: var(--account_itemBorderRadius);
12
+ cursor: pointer;
13
+
14
+ .new-card-wrap {
15
+ position: absolute;
16
+ left: 50%;
17
+ top: 50%;
18
+ transform: translate(-50%, -50%);
19
+ display: flex;
20
+ justify-content: center;
21
+ align-items: center;
22
+ flex-direction: column;
23
+ }
24
+
25
+ .account-add-card-text {
26
+ text-decoration: underline;
27
+ margin-top: var(--account_addCardTextMTop);
28
+ }
29
+
30
+ img {
31
+ position: unset !important;
32
+ height: unset !important;
33
+ width: unset !important;
34
+ inset: unset !important;
35
+ }
36
+
37
+ .image-cont {
38
+ position: unset !important;
39
+ padding-top: unset !important;
40
+ }
41
+
42
+ @media only screen and (max-width: ${(props) => props.theme.account.mediaQuery.account_DesktopSizeXLMin}) and (min-width: ${(props) => props.theme.account.mediaQuery.account_DesktopSizeL}) {
43
+ --account_addCardTextMTop: var(--sp1-5x);
44
+ --account_itemDistance: var(--sp3x);
45
+ --account_addCardHeight: var(--sp35x);
46
+ }
47
+
48
+ @media only screen and (max-width: ${(props) => props.theme.account.mediaQuery.account_DesktopSizeLMin}) and (min-width: ${(props) => props.theme.account.mediaQuery.account_DesktopSizeM}) {
49
+ --account_addCardTextMTop: var(--sp1-5x);
50
+ --account_itemDistance: var(--sp2x);
51
+ --account_addCardHeight: var(--sp27x);
52
+ }
53
+
54
+ @media only screen and (max-width: ${(props) => props.theme.account.mediaQuery.account_DesktopSizeMMin}) and (min-width: ${(props) => props.theme.account.mediaQuery.account_DesktopSizeS}) {
55
+ --account_addCardTextMTop: var(--sp1-5x);
56
+ --account_itemDistance: var(--sp2x);
57
+ --account_addCardHeight: var(--sp27x);
58
+ }
59
+
60
+ @media only screen and (max-width: ${(props) => props.theme.account.mediaQuery.account_DesktopSizeSMin}) and (min-width: ${(props) => props.theme.account.mediaQuery.account_DesktopSizeXS}) {
61
+ --account_addCardTextMTop: var(--sp1x);
62
+ --account_itemDistance: var(--sp2x);
63
+ --account_addCardHeight: var(--sp25x);
64
+ }
65
+
66
+ @media only screen and (max-width: ${(props) => props.theme.account.mediaQuery.account_DesktopSizeXSMin}) and (min-width: ${(props) => props.theme.account.mediaQuery.account_TabletSize}) {
67
+ --account_addCardTextMTop: var(--sp1x);
68
+ --account_itemDistance: var(--sp2x);
69
+ --account_addCardHeight: var(--sp24x);
70
+ }
71
+
72
+ @media only screen and (max-width: ${(props) => props.theme.account.mediaQuery.account_TabletSizeMin}) and (min-width: ${(props) => props.theme.account.mediaQuery.account_TabletSizeS}) {
73
+ --account_itemBorderRadius: var(--sp1x);
74
+ --account_addCardTextMTop: var(--sp1x);
75
+ --account_addCardHeight: var(--sp19x);
76
+ }
77
+
78
+ @media only screen and (max-width: ${(props) => props.theme.account.mediaQuery.account_TabletSizeSMin}) {
79
+ --account_addCardTextMTop: var(--sp1x);
80
+ --account_itemDistance: var(--sp2x);
81
+ --account_addCardHeight: var(--sp21x);
82
+ width: 100%;
83
+
84
+ .new-card-wrap {
85
+ left: 46%;
86
+ transform: translate(-46%, -50%);
87
+ }
88
+ }
89
+ `;
90
+ export default AddNewCardStyle;
@@ -0,0 +1,9 @@
1
+ export default CardComp;
2
+ declare function CardComp({ cardOption, className, selectedPayment, onSelect, onDelete }: {
3
+ cardOption: any;
4
+ className: any;
5
+ selectedPayment: any;
6
+ onSelect: any;
7
+ onDelete: any;
8
+ }): React.JSX.Element;
9
+ import React from 'react';
@@ -0,0 +1,36 @@
1
+ import React, { useCallback } from 'react';
2
+ import { Text, Image, useUi } from '@weareconceptstudio/core';
3
+ import WarningMessageForPopup from '../../WarningMessageForPopup';
4
+ import AccountButton from '../../AccountButton';
5
+ //* Style
6
+ import CardCompStyle from './style';
7
+ const isExpired = (expDate) => {
8
+ const [month, year] = expDate.split('/').map(Number);
9
+ const expDateObject = new Date(`20${year}`, month, 0);
10
+ return expDateObject < new Date();
11
+ };
12
+ const CardComp = ({ cardOption, className, selectedPayment, onSelect, onDelete }) => {
13
+ const expired = isExpired(cardOption.expDate);
14
+ const { openPopup } = useUi();
15
+ //! Handle Popups
16
+ const handleDeletePopup = useCallback(() => {
17
+ openPopup(React.createElement(WarningMessageForPopup, { isDelete: true, title: 'deleteCardMessage', description: 'confirmDeleteCard', onRemove: () => onDelete(cardOption.id) }), {
18
+ className: 'messagePopup',
19
+ accountIcon: true,
20
+ });
21
+ }, [onDelete, cardOption.id]);
22
+ return (React.createElement(CardCompStyle, { className: `card-container ${expired ? 'expired' : ''} ${className || ''}` },
23
+ React.createElement("div", { className: `card-wrap-top` },
24
+ React.createElement("div", { className: 'card-svg' }, cardOption && cardOption.type === 'MasterCard' ? (React.createElement(Image, { src: '/images/payment/mastercard.svg', alt: 'mastercard', className: 'mastercard-svg' })) : (React.createElement(Image, { src: '/images/payment/visa.svg', alt: 'visa', className: 'visa-svg' }))),
25
+ !expired ? (React.createElement("div", { key: cardOption.number, className: `circle-selected-wrap cursor-pointer ${selectedPayment === cardOption.number ? 'active' : ''}`, onClick: () => onSelect(cardOption.number) },
26
+ React.createElement("svg", { version: '1.1', viewBox: '0 0 32 32', xmlns: 'http://www.w3.org/2000/svg', className: `checkbox-icon ${selectedPayment === cardOption.number ? 'selected' : 'note-selected'}` },
27
+ 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' })))) : null),
28
+ React.createElement("div", { className: `card-wrap-center` },
29
+ React.createElement(Text, { className: `card-full-name account-p account-p3 account-font-regular ${expired ? 'account-primary-color3' : 'account_backgroundColor'}`, text: cardOption.fullName }),
30
+ React.createElement(Text, { className: `card-number
31
+ account-p account-p1 account-font-regular ${expired ? 'account-primary-color3' : 'account_backgroundColor'}`, text: cardOption.number })),
32
+ React.createElement("div", { className: `card-wrap-bottom` },
33
+ React.createElement(Text, { className: `account-p account-p3 account-font-regular ${expired ? 'account-primary-color3' : 'account_backgroundColor'}`, text: expired ? 'cardExpired' : `Exp. Date ${cardOption.expDate}` }),
34
+ React.createElement(AccountButton, { text: `remove`, onClick: handleDeletePopup, btnType: `green-small-text`, className: `account-card-remove-btn account-p account-p3 account-font-regular ${expired ? 'account-primary-color3' : 'account_backgroundColor'}` }))));
35
+ };
36
+ export default CardComp;
@@ -0,0 +1,2 @@
1
+ export default CardCompStyle;
2
+ declare const CardCompStyle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
@@ -0,0 +1,203 @@
1
+ import styled from 'styled-components';
2
+ const CardCompStyle = styled.div `
3
+ --account_addCardTextMTop: var(--sp2x);
4
+ --account_itemBorderRadius: var(--sp1-5x);
5
+ --account_itemInternalWrapPad: var(--sp4x);
6
+ --account_itemDistance: var(--sp3x);
7
+ --account_addCardHeight: var(--sp46x);
8
+ --account_circleSize: var(--sp4x);
9
+ --account_checkSize: var(--sp2x);
10
+
11
+ background: radial-gradient(1200.63% 320.19% at 200.62% 129.89%, #ff57b9 0%, #d700ff 78.18%);
12
+ border-radius: var(--account_itemBorderRadius);
13
+ width: calc(50% - var(--account_itemDistance) / 2);
14
+ height: var(--account_addCardHeight);
15
+ padding: var(--account_itemInternalWrapPad);
16
+ display: flex;
17
+ flex-direction: column;
18
+ justify-content: space-between;
19
+
20
+ &.expired {
21
+ background: #fff4f8;
22
+ border: 2px solid var(--account_primaryColor3);
23
+ width: calc(50% - (var(--account_itemDistance) / 2) - 2px);
24
+ }
25
+
26
+ .card-wrap-top,
27
+ .card-wrap-bottom {
28
+ display: flex;
29
+ justify-content: space-between;
30
+ }
31
+
32
+ .card-wrap-center {
33
+ display: flex;
34
+ flex-direction: column;
35
+ gap: 22px;
36
+ }
37
+
38
+ .card-svg {
39
+ background-color: var(--account_backgroundColor);
40
+ border-radius: 4px;
41
+ width: 64px;
42
+ height: 36px;
43
+ display: flex;
44
+ justify-content: center;
45
+ align-items: center;
46
+ }
47
+
48
+ .card-svg {
49
+ img {
50
+ width: 32px !important;
51
+ }
52
+ width: 64px;
53
+ height: 36px;
54
+ }
55
+
56
+ img {
57
+ position: absolute;
58
+ height: unset !important;
59
+ width: unset !important;
60
+ inset: unset !important;
61
+ top: 50%;
62
+ left: 50%;
63
+ transform: translate(-50%, -50%);
64
+ }
65
+
66
+ .image-cont {
67
+ position: relative;
68
+ padding-top: unset !important;
69
+ }
70
+
71
+ .circle-selected-wrap {
72
+ width: var(--account_circleSize) !important;
73
+ height: var(--account_circleSize) !important;
74
+ border-radius: 50%;
75
+ border: 2px solid var(--account_primaryColor5);
76
+ background-color: var(--account_backgroundColor);
77
+ display: flex;
78
+ align-items: center;
79
+ justify-content: center;
80
+ .selected,
81
+ .note-selected {
82
+ color: var(--account_backgroundColor);
83
+ }
84
+
85
+ &.active {
86
+ border: 2px solid var(--account_primaryColor1);
87
+ background-color: var(--account_primaryColor1);
88
+ }
89
+
90
+ .checkbox-icon {
91
+ display: flex;
92
+ justify-content: center;
93
+ align-items: center;
94
+
95
+ width: var(--account_checkSize);
96
+ height: var(--account_checkSize);
97
+ fill: var(--account_backgroundColor);
98
+ }
99
+ }
100
+
101
+ .account-card-remove-btn button {
102
+ font-weight: 400 !important;
103
+ }
104
+
105
+ .account-primary-color3 button {
106
+ color: var(--account_primaryColor3) !important;
107
+ }
108
+ .account_backgroundColor button {
109
+ color: var(--account_backgroundColor) !important;
110
+ }
111
+
112
+ @media only screen and (max-width: ${(props) => props.theme.account.mediaQuery.account_DesktopSizeXLMin}) and (min-width: ${(props) => props.theme.account.mediaQuery.account_DesktopSizeL}) {
113
+ --account_addCardTextMTop: var(--sp2x);
114
+ --account_itemInternalWrapPad: var(--sp3x);
115
+ --account_ItemDistance: var(--sp3x);
116
+ --account_circleSize: var(--sp3x);
117
+ --account_checkSize: var(--sp1-5x);
118
+ --account_addCardHeight: var(--sp35x);
119
+ }
120
+
121
+ @media only screen and (max-width: ${(props) => props.theme.account.mediaQuery.account_DesktopSizeLMin}) and (min-width: ${(props) => props.theme.account.mediaQuery.account_DesktopSizeM}) {
122
+ --account_addCardTextMTop: var(--sp2x);
123
+ --account_itemInternalWrapPad: var(--sp3x);
124
+ --account_ItemDistance: var(--sp2x);
125
+ --account_circleSize: var(--sp3x);
126
+ --account_checkSize: var(--sp1-5x);
127
+ --account_addCardHeight: var(--sp27x);
128
+ }
129
+
130
+ @media only screen and (max-width: ${(props) => props.theme.account.mediaQuery.account_DesktopSizeMMin}) and (min-width: ${(props) => props.theme.account.mediaQuery.account_DesktopSizeS}) {
131
+ --account_addCardTextMTop: var(--sp1-5x);
132
+ --account_itemInternalWrapPad: var(--sp3x);
133
+ --account_ItemDistance: var(--sp2x);
134
+ --account_circleSize: var(--sp3x);
135
+ --account_checkSize: var(--sp1-5x);
136
+ --account_addCardHeight: var(--sp27x);
137
+ }
138
+
139
+ @media only screen and (max-width: ${(props) => props.theme.account.mediaQuery.account_DesktopSizeSMin}) and (min-width: ${(props) => props.theme.account.mediaQuery.account_DesktopSizeXS}) {
140
+ --account_addCardTextMTop: var(--sp1x);
141
+ --account_itemInternalWrapPad: var(--sp2x);
142
+ --account_circleSize: var(--sp2-5x);
143
+ --account_ItemDistance: var(--sp2x);
144
+ --account_checkSize: var(--sp1x);
145
+ --account_addCardHeight: var(--sp25x);
146
+ }
147
+
148
+ @media only screen and (max-width: ${(props) => props.theme.account.mediaQuery.account_DesktopSizeXSMin}) and (min-width: ${(props) => props.theme.account.mediaQuery.account_TabletSize}) {
149
+ --account_addCardTextMTop: var(--sp1x);
150
+ --account_itemInternalWrapPad: var(--sp2x);
151
+ --account_ItemDistance: var(--sp2x);
152
+ --account_circleSize: var(--sp2-5x);
153
+ --account_checkSize: var(--sp1x);
154
+ --account_addCardHeight: var(--sp24x);
155
+ }
156
+
157
+ @media only screen and (max-width: ${(props) => props.theme.account.mediaQuery.account_TabletSizeMin}) and (min-width: ${(props) => props.theme.account.mediaQuery.account_TabletSizeS}) {
158
+ --account_addCardHeight: 167px;
159
+ --account_itemBorderRadius: var(--sp1x);
160
+ --account_itemInternalWrapPad: var(--sp2x);
161
+ --account_ItemDistance: var(--sp2x);
162
+ --account_circleSize: var(--sp2-5x);
163
+ --account_checkSize: var(--sp1x);
164
+ --account_addCardHeight: var(--sp19x);
165
+
166
+ .card-wrap-center {
167
+ gap: 4px;
168
+ }
169
+
170
+ .card-svg {
171
+ img {
172
+ width: 23px !important;
173
+ }
174
+ width: 38px;
175
+ height: 22px;
176
+ }
177
+ }
178
+
179
+ @media only screen and (max-width: ${(props) => props.theme.account.mediaQuery.account_TabletSizeSMin}) {
180
+ --account_addCardHeight: 139px;
181
+ --account_addCardTextMTop: var(--sp0-5x);
182
+ --account_itemInternalWrapPad: var(--sp1-5x);
183
+ --account_ItemDistance: var(--sp2x);
184
+ --account_circleSize: var(--sp2-5x);
185
+ --account_checkSize: var(--sp1x);
186
+ --account_addCardHeight: var(--sp21x);
187
+
188
+ width: 100% !important;
189
+
190
+ .card-wrap-center {
191
+ gap: 4px;
192
+ }
193
+
194
+ .card-svg {
195
+ img {
196
+ width: 23px !important;
197
+ }
198
+ width: 38px;
199
+ height: 22px;
200
+ }
201
+ }
202
+ `;
203
+ export default CardCompStyle;
@@ -0,0 +1,3 @@
1
+ export default CommentComp;
2
+ declare function CommentComp(): React.JSX.Element;
3
+ import React from 'react';
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ import { CollapseContainer, CollapseItem, Text } from '@weareconceptstudio/core';
3
+ import { Input } from '@weareconceptstudio/form';
4
+ import CommentCompStyle from './style';
5
+ const CommentComp = () => {
6
+ return (React.createElement(CommentCompStyle, { className: 'collapse-distance' },
7
+ React.createElement(CollapseContainer, null,
8
+ React.createElement(CollapseItem, { status: 'open', title: React.createElement(React.Fragment, null,
9
+ React.createElement("div", null,
10
+ React.createElement("svg", { width: '12', height: '12', fill: 'none', viewBox: '0 0 12 12', xmlns: 'http://www.w3.org/2000/svg' },
11
+ React.createElement("path", { d: 'M0 6H12', stroke: 'black', strokeWidth: '2' }),
12
+ React.createElement("path", { d: 'M6 12L6 0', stroke: 'black', strokeWidth: '2' }))),
13
+ React.createElement(Text, { className: 'account-p account-p4 account-primary-color1 account-font-medium comment-text', text: 'comment' })), description: React.createElement(Input.TextArea, { containerClassName: `comment-field`, placeholder: 'checkoutCommentPlaceholder', onChange: (e) => fillCheckoutData('note', e.target.value), className: `account-p account-p3 account-font-regular account-primary-color1` }) }))));
14
+ };
15
+ export default CommentComp;
@@ -0,0 +1,2 @@
1
+ export default CommentCompStyle;
2
+ declare const CommentCompStyle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
@@ -0,0 +1,33 @@
1
+ import styled from 'styled-components';
2
+ const CommentCompStyle = styled.div `
3
+ border-top: 1px solid rgba(0, 0, 0, 0.4);
4
+
5
+ /* //! 1920 */
6
+ @media only screen and (max-width: ${(props) => props.theme.account.mediaQuery.account_DesktopSizeXLMin}) and (min-width: ${(props) => props.theme.account.mediaQuery.account_DesktopSizeL}) {
7
+ }
8
+
9
+ /* //! 1510 */
10
+ @media only screen and (max-width: ${(props) => props.theme.account.mediaQuery.account_DesktopSizeLMin}) and (min-width: ${(props) => props.theme.account.mediaQuery.account_DesktopSizeM}) {
11
+ }
12
+
13
+ /* //! 1440 */
14
+ @media only screen and (max-width: ${(props) => props.theme.account.mediaQuery.account_DesktopSizeMMin}) and (min-width: ${(props) => props.theme.account.mediaQuery.account_DesktopSizeS}) {
15
+ }
16
+
17
+ /* //! 1280 */
18
+ @media only screen and (max-width: ${(props) => props.theme.account.mediaQuery.account_DesktopSizeSMin}) and (min-width: ${(props) => props.theme.account.mediaQuery.account_DesktopSizeXS}) {
19
+ }
20
+
21
+ /* //! 1024 */
22
+ @media only screen and (max-width: ${(props) => props.theme.account.mediaQuery.account_DesktopSizeXSMin}) and (min-width: ${(props) => props.theme.account.mediaQuery.account_TabletSize}) {
23
+ }
24
+
25
+ /* //! 768 */
26
+ @media only screen and (max-width: ${(props) => props.theme.account.mediaQuery.account_TabletSizeMin}) and (min-width: ${(props) => props.theme.account.mediaQuery.account_TabletSizeS}) {
27
+ }
28
+
29
+ /* //! Mobile */
30
+ @media only screen and (max-width: ${(props) => props.theme.account.mediaQuery.account_TabletSizeSMin}) {
31
+ }
32
+ `;
33
+ export default CommentCompStyle;
@@ -1,6 +1,6 @@
1
1
  export default FreeShippingComp;
2
- declare function FreeShippingComp({ fakeShippingCost, freeShippingRange, shippingCost, currency }: {
3
- fakeShippingCost: any;
2
+ declare function FreeShippingComp({ shippingCostValue, freeShippingRange, shippingCost, currency }: {
3
+ shippingCostValue: any;
4
4
  freeShippingRange: any;
5
5
  shippingCost: any;
6
6
  currency: any;
@@ -1,9 +1,8 @@
1
1
  import React from 'react';
2
- import { useTranslation } from '@weareconceptstudio/core';
3
- import { handlePriceCheckFunc } from '../../../utils/_functions';
2
+ import { handlePriceCheckFunc, useTranslation } from '@weareconceptstudio/core';
4
3
  //* Style
5
4
  import FreeShippingCompStyle from './style';
6
- const FreeShippingComp = ({ fakeShippingCost, freeShippingRange, shippingCost, currency }) => {
5
+ const FreeShippingComp = ({ shippingCostValue, freeShippingRange, shippingCost, currency }) => {
7
6
  const { translate } = useTranslation();
8
7
  return freeShippingRange ? (React.createElement(FreeShippingCompStyle, null,
9
8
  React.createElement("svg", { fill: 'none', viewBox: '0 0 24 24', xmlns: 'http://www.w3.org/2000/svg', className: 'free-shipping-comp-icon' },
@@ -17,7 +16,7 @@ const FreeShippingComp = ({ fakeShippingCost, freeShippingRange, shippingCost, c
17
16
  React.createElement("span", { className: 'free-shipping-comp-attr' },
18
17
  React.createElement("span", null, translate('youHaveReachedFreeShipping')),
19
18
  React.createElement("span", { className: 'range-value' },
20
- handlePriceCheckFunc(fakeShippingCost, currency),
19
+ handlePriceCheckFunc(shippingCostValue, currency),
21
20
  "!")))) : null;
22
21
  };
23
22
  export default FreeShippingComp;
@@ -10,7 +10,7 @@ const FreeShippingCompStyle = styled.div `
10
10
  gap: var(--account_freeShippingAttrGap);
11
11
 
12
12
  margin: var(--account_freeShippingBlockDistance) 0;
13
- margin-bottom: calc(var(--account_freeShippingBlockDistance) - var(--sp2x));
13
+ margin-bottom: 0;
14
14
  background-color: var(--account_surfaceColor);
15
15
  padding: var(--account_freeShippingBlockPadTB) var(--account_freeShippingBlockPadLR);
16
16
  border-radius: var(--sp1x);
@@ -0,0 +1,9 @@
1
+ export default MuramoneyComp;
2
+ declare function MuramoneyComp({ isMuramoney, currency, balance, useBalance, balanceHandler }: {
3
+ isMuramoney?: boolean;
4
+ currency: any;
5
+ balance: any;
6
+ useBalance: any;
7
+ balanceHandler: any;
8
+ }): React.JSX.Element;
9
+ import React from 'react';
@@ -0,0 +1,32 @@
1
+ import React, { useState } from 'react';
2
+ import { Text, CollapseItem, useTranslation, handlePriceCheckFunc } from '@weareconceptstudio/core';
3
+ import { FormBuilder } from '@weareconceptstudio/form';
4
+ import AccountButton from '../../AccountButton';
5
+ import { balanceFields } from './utils';
6
+ //* Style
7
+ import MuramoneyCompStyle from './style';
8
+ const MuramoneyComp = ({ isMuramoney = true, currency, balance, useBalance, balanceHandler }) => {
9
+ const { translate } = useTranslation();
10
+ //! States
11
+ const [disable, setDisable] = useState(false);
12
+ //! On Finish
13
+ const onFinish = (values) => {
14
+ setDisable(true);
15
+ balanceHandler(values.balance);
16
+ };
17
+ return isMuramoney ? (React.createElement(MuramoneyCompStyle, { className: 'collapse-distance' },
18
+ React.createElement(CollapseItem, { disable: disable, title: React.createElement(React.Fragment, null,
19
+ React.createElement("div", null,
20
+ React.createElement("svg", { width: '12', height: '12', fill: 'none', viewBox: '0 0 12 12', xmlns: 'http://www.w3.org/2000/svg' },
21
+ React.createElement("path", { d: 'M0 6H12', stroke: 'black', strokeWidth: '2' }),
22
+ React.createElement("path", { d: 'M6 12L6 0', stroke: 'black', strokeWidth: '2' }))),
23
+ React.createElement(Text, { className: 'account-p account-p4 account-primary-color1 account-font-medium muramoney-text' }, `${translate('useYourMoney')} (${handlePriceCheckFunc(balance, currency)} ${translate('balanceLowercase')})`)), description: React.createElement(React.Fragment, null, useBalance ? (React.createElement("div", { className: `muramoney-success-block` },
24
+ React.createElement(Text, { className: 'account-p account-p4 account-primary-color2 account-font-medium muramoney-success-text' }, handlePriceCheckFunc(useBalance, currency)),
25
+ React.createElement(Text, { text: 'remove', className: 'account-p account-p4 account-primary-color2 account-font-medium muramoney-remove-text', onClick: () => {
26
+ balanceHandler(null);
27
+ } }))) : (React.createElement(FormBuilder, { onSubmit: onFinish, fields: balanceFields, className: `muramoney-block`, formOptions: {
28
+ className: 'muramoney-container',
29
+ } },
30
+ React.createElement(AccountButton, { text: `add`, type: 'submit', btnType: `muramoney-version` })))) }))) : null;
31
+ };
32
+ export default MuramoneyComp;
@@ -0,0 +1,2 @@
1
+ export default MuramoneyCompStyle;
2
+ declare const MuramoneyCompStyle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
@@ -0,0 +1,117 @@
1
+ import styled from 'styled-components';
2
+ const MuramoneyCompStyle = styled.div `
3
+ --account_muramoneyCompDistance: var(--sp5x);
4
+
5
+ --account_muramoneyInputPadTB: var(--sp2x);
6
+ --account_muramoneyInputPadLR: var(--sp2x);
7
+ --account_muramoneyContainerGap: var(--sp2x);
8
+
9
+ border-top: 1px solid rgba(0, 0, 0, 0.4);
10
+
11
+ .muramoney-container {
12
+ display: flex;
13
+ justify-content: space-between;
14
+ gap: var(--account_muramoneyContainerGap);
15
+ }
16
+
17
+ .muramoney-version {
18
+ width: fit-content !important;
19
+ height: fit-content !important;
20
+ margin-top: unset !important;
21
+ }
22
+
23
+ .muramoney-block {
24
+ flex: 1;
25
+
26
+ .base-input {
27
+ padding: var(--account_muramoneyInputPadTB) var(--account_muramoneyInputPadLR) !important;
28
+ border: 2px solid var(--account_primaryColor2) !important;
29
+ }
30
+ }
31
+
32
+ .muramoney-text {
33
+ width: fit-content;
34
+ transition: color var(--account_trTime) ease-out;
35
+ cursor: pointer;
36
+ }
37
+
38
+ .muramoney-success-block {
39
+ display: flex;
40
+ gap: var(--account_muramoneyContainerGap);
41
+ justify-content: space-between;
42
+ padding: var(--account_muramoneyInputPadTB) var(--account_muramoneyInputPadLR);
43
+ border-radius: var(--sp1x);
44
+ border: 2px solid var(--account_surfaceColor);
45
+ background-color: var(--account_surfaceColor);
46
+ }
47
+
48
+ .muramoney-remove-text {
49
+ text-decoration-line: underline;
50
+ text-decoration-style: solid;
51
+ text-decoration-skip-ink: none;
52
+ text-decoration-thickness: auto;
53
+ text-underline-offset: auto;
54
+ text-underline-position: from-font;
55
+ transition: color var(--account_trTime) ease-out;
56
+ cursor: pointer;
57
+
58
+ /* //! Mouse Detect */
59
+ @media (pointer: fine) {
60
+ @media (hover: hover) {
61
+ &:hover {
62
+ color: var(--account_primaryColor3);
63
+ }
64
+ }
65
+ }
66
+ }
67
+
68
+ /* //! 1920 */
69
+ @media only screen and (max-width: ${(props) => props.theme.account.mediaQuery.account_DesktopSizeXLMin}) and (min-width: ${(props) => props.theme.account.mediaQuery.account_DesktopSizeL}) {
70
+ --account_muramoneyCompDistance: var(--sp3-5x);
71
+
72
+ --account_muramoneyContainerGap: var(--sp2x);
73
+ }
74
+
75
+ /* //! 1510 */
76
+ @media only screen and (max-width: ${(props) => props.theme.account.mediaQuery.account_DesktopSizeLMin}) and (min-width: ${(props) => props.theme.account.mediaQuery.account_DesktopSizeM}) {
77
+ --account_muramoneyCompDistance: var(--sp4x);
78
+
79
+ --account_muramoneyContainerGap: var(--sp2x);
80
+ }
81
+
82
+ /* //! 1440 */
83
+ @media only screen and (max-width: ${(props) => props.theme.account.mediaQuery.account_DesktopSizeMMin}) and (min-width: ${(props) => props.theme.account.mediaQuery.account_DesktopSizeS}) {
84
+ --account_muramoneyCompDistance: var(--sp3x);
85
+
86
+ --account_muramoneyContainerGap: var(--sp2x);
87
+ }
88
+
89
+ /* //! 1280 */
90
+ @media only screen and (max-width: ${(props) => props.theme.account.mediaQuery.account_DesktopSizeSMin}) and (min-width: ${(props) => props.theme.account.mediaQuery.account_DesktopSizeXS}) {
91
+ --account_muramoneyCompDistance: var(--sp3x);
92
+
93
+ --account_muramoneyContainerGap: var(--sp1x);
94
+ }
95
+
96
+ /* //! 1024 */
97
+ @media only screen and (max-width: ${(props) => props.theme.account.mediaQuery.account_DesktopSizeXSMin}) and (min-width: ${(props) => props.theme.account.mediaQuery.account_TabletSize}) {
98
+ --account_muramoneyCompDistance: var(--sp3x);
99
+
100
+ --account_muramoneyContainerGap: var(--sp1x);
101
+ }
102
+
103
+ /* //! 768 */
104
+ @media only screen and (max-width: ${(props) => props.theme.account.mediaQuery.account_TabletSizeMin}) and (min-width: ${(props) => props.theme.account.mediaQuery.account_TabletSizeS}) {
105
+ --account_muramoneyCompDistance: var(--sp3x);
106
+
107
+ --account_muramoneyContainerGap: var(--sp1x);
108
+ }
109
+
110
+ /* //! Mobile */
111
+ @media only screen and (max-width: ${(props) => props.theme.account.mediaQuery.account_TabletSizeSMin}) {
112
+ --account_muramoneyCompDistance: var(--sp3x);
113
+
114
+ --account_muramoneyContainerGap: var(--sp1x);
115
+ }
116
+ `;
117
+ export default MuramoneyCompStyle;
@@ -0,0 +1,10 @@
1
+ export declare const balanceFields: {
2
+ fieldType: string;
3
+ labelProps: {
4
+ name: string;
5
+ errorKey: string;
6
+ };
7
+ fieldProps: {
8
+ placeholder: string;
9
+ };
10
+ }[];