@weareconceptstudio/account 0.3.0 → 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.
- package/dist/components/AccountButton/style.js +2 -1
- package/dist/components/TotalCheckout/AddNewCard/index.d.ts +6 -0
- package/dist/components/TotalCheckout/AddNewCard/index.js +11 -0
- package/dist/components/TotalCheckout/AddNewCard/style.d.ts +2 -0
- package/dist/components/TotalCheckout/AddNewCard/style.js +90 -0
- package/dist/components/TotalCheckout/CardComp/index.d.ts +9 -0
- package/dist/components/TotalCheckout/CardComp/index.js +36 -0
- package/dist/components/TotalCheckout/CardComp/style.d.ts +2 -0
- package/dist/components/TotalCheckout/CardComp/style.js +203 -0
- package/dist/components/TotalCheckout/CommentComp/index.d.ts +3 -0
- package/dist/components/TotalCheckout/CommentComp/index.js +15 -0
- package/dist/components/TotalCheckout/CommentComp/style.d.ts +2 -0
- package/dist/components/TotalCheckout/CommentComp/style.js +33 -0
- package/dist/components/TotalCheckout/FreeShippingComp/index.d.ts +2 -2
- package/dist/components/TotalCheckout/FreeShippingComp/index.js +3 -4
- package/dist/components/TotalCheckout/FreeShippingComp/style.js +1 -1
- package/dist/components/TotalCheckout/MuramoneyComp/index.d.ts +9 -0
- package/dist/components/TotalCheckout/MuramoneyComp/index.js +32 -0
- package/dist/components/TotalCheckout/MuramoneyComp/style.d.ts +2 -0
- package/dist/components/TotalCheckout/MuramoneyComp/style.js +117 -0
- package/dist/components/TotalCheckout/MuramoneyComp/utils.d.ts +10 -0
- package/dist/components/TotalCheckout/MuramoneyComp/utils.js +14 -0
- package/dist/components/TotalCheckout/PaymentComp/index.d.ts +9 -0
- package/dist/components/TotalCheckout/PaymentComp/index.js +14 -0
- package/dist/components/TotalCheckout/PaymentComp/style.d.ts +2 -0
- package/dist/components/TotalCheckout/PaymentComp/style.js +50 -0
- package/dist/components/TotalCheckout/PaymentMethodsComp/index.d.ts +8 -0
- package/dist/components/TotalCheckout/PaymentMethodsComp/index.js +82 -0
- package/dist/components/TotalCheckout/PaymentMethodsComp/style.d.ts +2 -0
- package/dist/components/TotalCheckout/PaymentMethodsComp/style.js +162 -0
- package/dist/components/TotalCheckout/PromoCodeComp/index.d.ts +2 -1
- package/dist/components/TotalCheckout/PromoCodeComp/index.js +18 -15
- package/dist/components/TotalCheckout/PromoCodeComp/style.js +4 -11
- package/dist/components/TotalCheckout/SelectPaymentMethodPopup/index.d.ts +3 -0
- package/dist/components/TotalCheckout/SelectPaymentMethodPopup/index.js +65 -0
- package/dist/components/TotalCheckout/SelectPaymentMethodPopup/style.d.ts +2 -0
- package/dist/components/TotalCheckout/SelectPaymentMethodPopup/style.js +153 -0
- package/dist/components/TotalCheckout/index.js +26 -45
- package/dist/components/TotalCheckout/style.js +119 -17
- package/dist/modules/account/AccountBalanceTemplate/HeroBalance/ProgressBalance/ProgressComponent/index.js +0 -1
- package/dist/modules/account/AccountBalanceTemplate/HeroBalance/ProgressBalance/index.js +1 -3
- package/dist/modules/account/AccountBalanceTemplate/HeroBalance/index.js +1 -3
- package/dist/modules/account/AccountBalanceTemplate/StatusBalance/ItemStatus/index.js +1 -3
- package/dist/modules/address/SelectAddressPopup/index.js +38 -5
- package/dist/modules/address/SelectAddressPopup/style.js +6 -0
- package/dist/modules/cart/CartTemplate/index.js +2 -2
- package/dist/modules/cart/EmptyCart/icons.d.ts +2 -0
- package/dist/modules/cart/EmptyCart/icons.js +10 -0
- package/dist/modules/cart/EmptyCart/index.js +3 -1
- package/dist/modules/cart/EmptyCart/style.js +40 -0
- package/dist/modules/cart/SimpleItems/Item/index.js +1 -2
- package/dist/modules/cart/SimpleItems/ItemMobile/index.js +1 -2
- package/dist/modules/checkout/CheckoutTemplate/StepReview/index.js +22 -1
- package/dist/modules/checkout/ThankYouTemplate/icons.js +16 -3
- package/dist/modules/checkout/ThankYouTemplate/style.js +8 -1
- package/dist/modules/index.d.ts +1 -0
- package/dist/modules/index.js +1 -0
- package/dist/modules/order/OrderDetails/index.js +3 -3
- package/dist/modules/order/OrderStatus/index.d.ts +6 -0
- package/dist/modules/order/OrderStatus/index.js +25 -0
- package/dist/modules/order/OrderedItems/index.js +1 -2
- package/dist/modules/order/OrdersList/OrderItem/index.js +4 -3
- package/dist/modules/order/OrdersList/index.js +4 -4
- package/dist/modules/payment/PaymentMethodsTemplate/index.d.ts +3 -0
- package/dist/modules/payment/PaymentMethodsTemplate/index.js +41 -0
- package/dist/modules/payment/PaymentMethodsTemplate/style.d.ts +2 -0
- package/dist/modules/payment/PaymentMethodsTemplate/style.js +53 -0
- package/dist/modules/payment/index.d.ts +1 -0
- package/dist/modules/payment/index.js +1 -0
- package/dist/styles/theme.js +1 -0
- package/dist/styles/variables.js +1 -0
- package/dist/translations/en.d.ts +12 -0
- package/dist/translations/en.js +14 -2
- package/dist/translations/hy.d.ts +12 -0
- package/dist/translations/hy.js +14 -2
- package/dist/translations/index.d.ts +36 -0
- package/dist/translations/ru.d.ts +12 -0
- package/dist/translations/ru.js +14 -2
- package/package.json +1 -1
- package/dist/utils/_functions.d.ts +0 -2
- package/dist/utils/_functions.js +0 -18
|
@@ -162,6 +162,13 @@ declare const _default: {
|
|
|
162
162
|
billing: string;
|
|
163
163
|
selectShippingAddress: string;
|
|
164
164
|
selectBillingAddress: string;
|
|
165
|
+
selectPaymentMethod: string;
|
|
166
|
+
paymentMethods: string;
|
|
167
|
+
myCards: string;
|
|
168
|
+
addNewCard: string;
|
|
169
|
+
cardExpired: string;
|
|
170
|
+
deleteCardMessage: string;
|
|
171
|
+
confirmDeleteCard: string;
|
|
165
172
|
all: string;
|
|
166
173
|
by: string;
|
|
167
174
|
view: string;
|
|
@@ -192,6 +199,11 @@ declare const _default: {
|
|
|
192
199
|
titleExpired: string;
|
|
193
200
|
descriptionExpired: string;
|
|
194
201
|
linkTextResentExpired: string;
|
|
202
|
+
useYourMoney: string;
|
|
203
|
+
balanceLowercase: string;
|
|
204
|
+
comment: string;
|
|
205
|
+
muramoneyPlaceholder: string;
|
|
206
|
+
discount: string;
|
|
195
207
|
};
|
|
196
208
|
hy: {
|
|
197
209
|
editCart: string;
|
|
@@ -356,6 +368,13 @@ declare const _default: {
|
|
|
356
368
|
billing: string;
|
|
357
369
|
selectShippingAddress: string;
|
|
358
370
|
selectBillingAddress: string;
|
|
371
|
+
selectPaymentMethod: string;
|
|
372
|
+
paymentMethods: string;
|
|
373
|
+
myCards: string;
|
|
374
|
+
addNewCard: string;
|
|
375
|
+
cardExpired: string;
|
|
376
|
+
deleteCardMessage: string;
|
|
377
|
+
confirmDeleteCard: string;
|
|
359
378
|
all: string;
|
|
360
379
|
by: string;
|
|
361
380
|
view: string;
|
|
@@ -386,6 +405,11 @@ declare const _default: {
|
|
|
386
405
|
titleExpired: string;
|
|
387
406
|
descriptionExpired: string;
|
|
388
407
|
linkTextResentExpired: string;
|
|
408
|
+
useYourMoney: string;
|
|
409
|
+
balanceLowercase: string;
|
|
410
|
+
comment: string;
|
|
411
|
+
muramoneyPlaceholder: string;
|
|
412
|
+
discount: string;
|
|
389
413
|
};
|
|
390
414
|
ru: {
|
|
391
415
|
editCart: string;
|
|
@@ -550,6 +574,13 @@ declare const _default: {
|
|
|
550
574
|
billing: string;
|
|
551
575
|
selectShippingAddress: string;
|
|
552
576
|
selectBillingAddress: string;
|
|
577
|
+
selectPaymentMethod: string;
|
|
578
|
+
paymentMethods: string;
|
|
579
|
+
myCards: string;
|
|
580
|
+
addNewCard: string;
|
|
581
|
+
cardExpired: string;
|
|
582
|
+
deleteCardMessage: string;
|
|
583
|
+
confirmDeleteCard: string;
|
|
553
584
|
all: string;
|
|
554
585
|
by: string;
|
|
555
586
|
view: string;
|
|
@@ -580,6 +611,11 @@ declare const _default: {
|
|
|
580
611
|
titleExpired: string;
|
|
581
612
|
descriptionExpired: string;
|
|
582
613
|
linkTextResentExpired: string;
|
|
614
|
+
useYourMoney: string;
|
|
615
|
+
balanceLowercase: string;
|
|
616
|
+
comment: string;
|
|
617
|
+
muramoneyPlaceholder: string;
|
|
618
|
+
discount: string;
|
|
583
619
|
};
|
|
584
620
|
};
|
|
585
621
|
export default _default;
|
|
@@ -161,6 +161,13 @@ declare const _default: {
|
|
|
161
161
|
billing: string;
|
|
162
162
|
selectShippingAddress: string;
|
|
163
163
|
selectBillingAddress: string;
|
|
164
|
+
selectPaymentMethod: string;
|
|
165
|
+
paymentMethods: string;
|
|
166
|
+
myCards: string;
|
|
167
|
+
addNewCard: string;
|
|
168
|
+
cardExpired: string;
|
|
169
|
+
deleteCardMessage: string;
|
|
170
|
+
confirmDeleteCard: string;
|
|
164
171
|
all: string;
|
|
165
172
|
by: string;
|
|
166
173
|
view: string;
|
|
@@ -191,5 +198,10 @@ declare const _default: {
|
|
|
191
198
|
titleExpired: string;
|
|
192
199
|
descriptionExpired: string;
|
|
193
200
|
linkTextResentExpired: string;
|
|
201
|
+
useYourMoney: string;
|
|
202
|
+
balanceLowercase: string;
|
|
203
|
+
comment: string;
|
|
204
|
+
muramoneyPlaceholder: string;
|
|
205
|
+
discount: string;
|
|
194
206
|
};
|
|
195
207
|
export default _default;
|
package/dist/translations/ru.js
CHANGED
|
@@ -173,6 +173,13 @@ export default {
|
|
|
173
173
|
billing: 'Billing',
|
|
174
174
|
selectShippingAddress: 'Select shipping address',
|
|
175
175
|
selectBillingAddress: 'Select billing address',
|
|
176
|
+
selectPaymentMethod: 'Select payment method',
|
|
177
|
+
paymentMethods: 'Payment methods',
|
|
178
|
+
myCards: 'My cards',
|
|
179
|
+
addNewCard: '+ Add a new card',
|
|
180
|
+
cardExpired: 'Card has been expired',
|
|
181
|
+
deleteCardMessage: 'Are you sure delete this card?',
|
|
182
|
+
confirmDeleteCard: 'Please confirm you want to delete this card.',
|
|
176
183
|
all: 'All',
|
|
177
184
|
by: 'By',
|
|
178
185
|
view: 'View',
|
|
@@ -182,7 +189,7 @@ export default {
|
|
|
182
189
|
reorder: 'Reorder',
|
|
183
190
|
backToShop: 'Back to shop',
|
|
184
191
|
forgotErrorDescription: 'You will receive an email with a recovery link code within 1 minute․',
|
|
185
|
-
gotPromotionCode: '
|
|
192
|
+
gotPromotionCode: 'Got a promotion code?',
|
|
186
193
|
//! Account balance
|
|
187
194
|
balanceStatus: 'status',
|
|
188
195
|
priceValue: 'AMD',
|
|
@@ -200,10 +207,15 @@ export default {
|
|
|
200
207
|
balanceCategoryActivity: 'activity',
|
|
201
208
|
balanceCategoryAmount: 'amount',
|
|
202
209
|
balanceHowToEarn: 'How to earn?',
|
|
203
|
-
//!
|
|
210
|
+
//! Promo code
|
|
204
211
|
promoCodePlaceholder: 'Type your code',
|
|
205
212
|
//! Expired password
|
|
206
213
|
titleExpired: 'Link expired',
|
|
207
214
|
descriptionExpired: 'To reset your password, return to the login page and select “forgot your password” to send new email.',
|
|
208
215
|
linkTextResentExpired: 'Back To log in page',
|
|
216
|
+
useYourMoney: 'Use your muramoney',
|
|
217
|
+
balanceLowercase: 'balance',
|
|
218
|
+
comment: 'Comment',
|
|
219
|
+
muramoneyPlaceholder: 'Type amount',
|
|
220
|
+
discount: 'Discount',
|
|
209
221
|
};
|
package/package.json
CHANGED
package/dist/utils/_functions.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export const numToLocalString = (num) => {
|
|
2
|
-
if (typeof num === 'string') {
|
|
3
|
-
return Number(num).toLocaleString();
|
|
4
|
-
}
|
|
5
|
-
else if (num !== undefined) {
|
|
6
|
-
return num.toLocaleString();
|
|
7
|
-
}
|
|
8
|
-
};
|
|
9
|
-
export const handlePriceCheckFunc = (price, currency = null) => {
|
|
10
|
-
let val;
|
|
11
|
-
val = price ? (typeof price === 'string' ? price.split('-') : price) : price == 0 ? 0 : null;
|
|
12
|
-
if (typeof val === 'object' && val?.length > 1) {
|
|
13
|
-
return `${numToLocalString(val[0])} ${currency} - ${numToLocalString(val[1])} ${currency}`;
|
|
14
|
-
}
|
|
15
|
-
else {
|
|
16
|
-
return `${numToLocalString(typeof val === 'object' ? val[0] : val)} ${currency}`;
|
|
17
|
-
}
|
|
18
|
-
};
|