@weareconceptstudio/account 0.6.4 → 0.6.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,17 +1,16 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { CollapseItem, Text } from '@weareconceptstudio/core';
|
|
3
3
|
import { Input } from '@weareconceptstudio/form';
|
|
4
4
|
import { useCart } from '../../../modules';
|
|
5
5
|
import CommentCompStyle from './style';
|
|
6
6
|
const CommentComp = ({ isShipping }) => {
|
|
7
7
|
const { fillCheckoutData, isCheckoutPage } = useCart();
|
|
8
8
|
return isCheckoutPage && typeof isShipping === 'boolean' && !isShipping ? (React.createElement(CommentCompStyle, { className: 'collapse-distance' },
|
|
9
|
-
React.createElement(
|
|
10
|
-
|
|
11
|
-
React.createElement("
|
|
12
|
-
React.createElement("
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
React.createElement(Text, { className: 'account-p account-p4 account-primary-color1 account-font-medium comment-text', text: 'account.order_balance.comment' })), description: React.createElement(Input.TextArea, { containerClassName: `comment-field`, placeholder: 'account.cart_checkout.checkoutCommentPlaceholder', onChange: (e) => fillCheckoutData('note', e.target.value), className: `account-p account-p3 account-font-regular account-primary-color1` }) })))) : null;
|
|
9
|
+
React.createElement(CollapseItem, { status: 'open', title: React.createElement(React.Fragment, null,
|
|
10
|
+
React.createElement("div", { className: 'inner-wrapper-icon' },
|
|
11
|
+
React.createElement("svg", { width: '12', height: '12', fill: 'none', viewBox: '0 0 12 12', xmlns: 'http://www.w3.org/2000/svg' },
|
|
12
|
+
React.createElement("path", { d: 'M0 6H12', stroke: 'black', strokeWidth: '2' }),
|
|
13
|
+
React.createElement("path", { d: 'M6 12L6 0', stroke: 'black', strokeWidth: '2' }))),
|
|
14
|
+
React.createElement(Text, { className: 'account-p account-p4 account-primary-color1 account-font-medium comment-text', text: 'account.order_balance.comment' })), description: React.createElement(Input.TextArea, { containerClassName: `comment-field`, placeholder: 'account.cart_checkout.checkoutCommentPlaceholder', onChange: (e) => fillCheckoutData('note', e.target.value), className: `account-p account-p3 account-font-regular account-primary-color1` }) }))) : null;
|
|
16
15
|
};
|
|
17
16
|
export default CommentComp;
|
|
@@ -39,10 +39,10 @@ const TotalCheckout = memo(({ isShipping, children, confirmation, buttonProps })
|
|
|
39
39
|
React.createElement(Text, { className: `account-p account-p2 account-font-bold account-primary-color1 sticky-wrap-currency2`, text: itemsCount ? handlePriceCheckFunc(total, currency) : `0 ${currency}` })),
|
|
40
40
|
React.createElement(GiftComp, null),
|
|
41
41
|
React.createElement(FreeShippingComp, null),
|
|
42
|
-
React.createElement(CollapseContainer, { className: 'collapse-container-wrapper' },
|
|
42
|
+
React.createElement(CollapseContainer, { className: 'collapse-container-wrapper', multiple: true },
|
|
43
43
|
React.createElement(PromoCodeComp, null),
|
|
44
|
-
React.createElement(BalanceComp, null)
|
|
45
|
-
|
|
44
|
+
React.createElement(BalanceComp, null),
|
|
45
|
+
React.createElement(CommentComp, { isShipping: isShipping })))),
|
|
46
46
|
React.createElement(AccountButton, { url: buttonProps.url, btnType: `full-width`, text: buttonProps.text, type: buttonProps.type, disabled: checkoutBtnDisabled, loading: buttonProps.loadingButton, className: `sticky-wrap-btn text-center`, onClick: () => buttonProps.handleClick && buttonProps.handleClick() })))) : (React.createElement(SkeletonTotalCheckout, null))))));
|
|
47
47
|
});
|
|
48
48
|
export default TotalCheckout;
|
package/dist/translations/hy.js
CHANGED
|
@@ -50,8 +50,8 @@ export default {
|
|
|
50
50
|
orderHistory: 'Պատվերների պատմություն',
|
|
51
51
|
name: 'Անուն',
|
|
52
52
|
namePlaceholder: 'Անուն',
|
|
53
|
-
firstName: '
|
|
54
|
-
firstNamePlaceholder: '
|
|
53
|
+
firstName: 'Անուն',
|
|
54
|
+
firstNamePlaceholder: 'Անուն',
|
|
55
55
|
lastName: 'Ազգանուն',
|
|
56
56
|
lastNamePlaceholder: 'Ազգանուն',
|
|
57
57
|
email: 'Էլ. փոստ',
|