@weareconceptstudio/account 0.0.0 → 0.0.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 (165) hide show
  1. package/dist/AccountConfig.d.ts +5 -0
  2. package/dist/AccountConfig.js +21 -0
  3. package/dist/components/AccountButton/index.d.ts +3 -0
  4. package/dist/components/AccountButton/index.js +22 -0
  5. package/dist/components/AccountButton/style.d.ts +2 -0
  6. package/dist/components/AccountButton/style.js +249 -0
  7. package/dist/components/AddressForm/index.d.ts +3 -0
  8. package/dist/components/AddressForm/index.js +100 -0
  9. package/dist/components/AddressForm/style.d.ts +2 -0
  10. package/dist/components/AddressForm/style.js +180 -0
  11. package/dist/components/AddressItem/index.d.ts +3 -0
  12. package/dist/components/AddressItem/index.js +41 -0
  13. package/dist/components/AddressItem/style.d.ts +2 -0
  14. package/dist/components/AddressItem/style.js +191 -0
  15. package/dist/components/CustomCheckbox/index.d.ts +7 -0
  16. package/dist/components/CustomCheckbox/index.js +15 -0
  17. package/dist/components/CustomCheckbox/style.d.ts +2 -0
  18. package/dist/components/CustomCheckbox/style.js +85 -0
  19. package/dist/components/EmptyCart/index.d.ts +5 -0
  20. package/dist/components/EmptyCart/index.js +14 -0
  21. package/dist/components/EmptyCart/style.d.ts +2 -0
  22. package/dist/components/EmptyCart/style.js +62 -0
  23. package/dist/components/EmptyOrders/index.d.ts +3 -0
  24. package/dist/components/EmptyOrders/index.js +12 -0
  25. package/dist/components/EmptyOrders/style.d.ts +2 -0
  26. package/dist/components/EmptyOrders/style.js +46 -0
  27. package/dist/components/FormInputCode/index.d.ts +24 -0
  28. package/dist/components/FormInputCode/index.js +145 -0
  29. package/dist/components/FormInputCode/style.d.ts +2 -0
  30. package/dist/components/FormInputCode/style.js +109 -0
  31. package/dist/components/OrderDetails/index.d.ts +3 -0
  32. package/dist/components/OrderDetails/index.js +48 -0
  33. package/dist/components/OrderDetails/style.d.ts +2 -0
  34. package/dist/components/OrderDetails/style.js +90 -0
  35. package/dist/components/OrderedItems/ReviewPopup/index.d.ts +0 -0
  36. package/dist/components/OrderedItems/ReviewPopup/index.js +202 -0
  37. package/dist/components/OrderedItems/ReviewPopup/style.d.ts +2 -0
  38. package/dist/components/OrderedItems/ReviewPopup/style.js +329 -0
  39. package/dist/components/OrderedItems/index.d.ts +7 -0
  40. package/dist/components/OrderedItems/index.js +108 -0
  41. package/dist/components/OrderedItems/style.d.ts +2 -0
  42. package/dist/components/OrderedItems/style.js +783 -0
  43. package/dist/components/OrdersList/OrderItem/index.d.ts +3 -0
  44. package/dist/components/OrdersList/OrderItem/index.js +21 -0
  45. package/dist/components/OrdersList/index.d.ts +10 -0
  46. package/dist/components/OrdersList/index.js +68 -0
  47. package/dist/components/OrdersList/style.d.ts +2 -0
  48. package/dist/components/OrdersList/style.js +373 -0
  49. package/dist/components/Pagination/index.d.ts +3 -0
  50. package/dist/components/Pagination/index.js +18 -0
  51. package/dist/components/Pagination/style.d.ts +2 -0
  52. package/dist/components/Pagination/style.js +72 -0
  53. package/dist/components/SelectShippingBilling/index.d.ts +3 -0
  54. package/dist/components/SelectShippingBilling/index.js +31 -0
  55. package/dist/components/SelectShippingBilling/style.d.ts +2 -0
  56. package/dist/components/SelectShippingBilling/style.js +112 -0
  57. package/dist/components/Sequence/index.d.ts +5 -0
  58. package/dist/components/Sequence/index.js +65 -0
  59. package/dist/components/Sequence/style.d.ts +2 -0
  60. package/dist/components/Sequence/style.js +317 -0
  61. package/dist/components/ShippingBillingForm/index.d.ts +3 -0
  62. package/dist/components/ShippingBillingForm/index.js +96 -0
  63. package/dist/components/ShippingBillingForm/style.d.ts +2 -0
  64. package/dist/components/ShippingBillingForm/style.js +77 -0
  65. package/dist/components/ShippingBillingInfo/index.d.ts +3 -0
  66. package/dist/components/ShippingBillingInfo/index.js +22 -0
  67. package/dist/components/ShippingBillingInfo/style.d.ts +2 -0
  68. package/dist/components/ShippingBillingInfo/style.js +98 -0
  69. package/dist/components/TotalCheckout/index.d.ts +3 -0
  70. package/dist/components/TotalCheckout/index.js +49 -0
  71. package/dist/components/TotalCheckout/style.d.ts +2 -0
  72. package/dist/components/TotalCheckout/style.js +211 -0
  73. package/dist/components/WarningMessage/index.d.ts +3 -0
  74. package/dist/components/WarningMessage/index.js +10 -0
  75. package/dist/components/WarningMessage/style.d.ts +2 -0
  76. package/dist/components/WarningMessage/style.js +34 -0
  77. package/dist/components/WarningMessageForPopup/index.d.ts +3 -0
  78. package/dist/components/WarningMessageForPopup/index.js +31 -0
  79. package/dist/components/WarningMessageForPopup/style.d.ts +2 -0
  80. package/dist/components/WarningMessageForPopup/style.js +82 -0
  81. package/dist/components/index.d.ts +18 -0
  82. package/dist/components/index.js +18 -0
  83. package/dist/index.d.ts +1 -0
  84. package/dist/index.js +2 -0
  85. package/dist/styles/helperClass.d.ts +2 -0
  86. package/dist/styles/helperClass.js +278 -0
  87. package/dist/styles/theme.d.ts +2 -0
  88. package/dist/styles/theme.js +63 -0
  89. package/dist/styles/typography.d.ts +2 -0
  90. package/dist/styles/typography.js +129 -0
  91. package/dist/styles/variables.d.ts +2 -0
  92. package/dist/styles/variables.js +401 -0
  93. package/dist/templates/AccountSettingsTemplate/AccountInfo/index.d.ts +38 -0
  94. package/dist/templates/AccountSettingsTemplate/AccountInfo/index.js +37 -0
  95. package/dist/templates/AccountSettingsTemplate/AccountInfo/style.d.ts +2 -0
  96. package/dist/templates/AccountSettingsTemplate/AccountInfo/style.js +165 -0
  97. package/dist/templates/AccountSettingsTemplate/AccountInfo/utils.d.ts +32 -0
  98. package/dist/templates/AccountSettingsTemplate/AccountInfo/utils.js +45 -0
  99. package/dist/templates/AccountSettingsTemplate/AccountPassword/index.d.ts +15 -0
  100. package/dist/templates/AccountSettingsTemplate/AccountPassword/index.js +36 -0
  101. package/dist/templates/AccountSettingsTemplate/AccountPassword/style.d.ts +2 -0
  102. package/dist/templates/AccountSettingsTemplate/AccountPassword/style.js +141 -0
  103. package/dist/templates/AccountSettingsTemplate/AccountPassword/utils.d.ts +10 -0
  104. package/dist/templates/AccountSettingsTemplate/AccountPassword/utils.js +22 -0
  105. package/dist/templates/AccountSettingsTemplate/index.d.ts +11 -0
  106. package/dist/templates/AccountSettingsTemplate/index.js +10 -0
  107. package/dist/templates/AccountSettingsTemplate/style.d.ts +2 -0
  108. package/dist/templates/AccountSettingsTemplate/style.js +37 -0
  109. package/dist/templates/AccountTemplate/index.d.ts +8 -0
  110. package/dist/templates/AccountTemplate/index.js +32 -0
  111. package/dist/templates/AccountTemplate/style.d.ts +2 -0
  112. package/dist/templates/AccountTemplate/style.js +293 -0
  113. package/dist/templates/AddressesTemplate/index.d.ts +3 -0
  114. package/dist/templates/AddressesTemplate/index.js +21 -0
  115. package/dist/templates/AddressesTemplate/style.d.ts +2 -0
  116. package/dist/templates/AddressesTemplate/style.js +89 -0
  117. package/dist/templates/CartTemplate/index.d.ts +3 -0
  118. package/dist/templates/CartTemplate/index.js +23 -0
  119. package/dist/templates/CartTemplate/style.d.ts +2 -0
  120. package/dist/templates/CartTemplate/style.js +37 -0
  121. package/dist/templates/CheckoutTemplate/index.d.ts +9 -0
  122. package/dist/templates/CheckoutTemplate/index.js +155 -0
  123. package/dist/templates/CheckoutTemplate/style.d.ts +2 -0
  124. package/dist/templates/CheckoutTemplate/style.js +173 -0
  125. package/dist/templates/ForgotPasswordTemplate/index.d.ts +5 -2
  126. package/dist/templates/ForgotPasswordTemplate/index.js +86 -3
  127. package/dist/templates/ForgotPasswordTemplate/style.d.ts +2 -0
  128. package/dist/templates/ForgotPasswordTemplate/style.js +186 -0
  129. package/dist/templates/OrderHistoryTemplate/index.d.ts +7 -0
  130. package/dist/templates/OrderHistoryTemplate/index.js +9 -0
  131. package/dist/templates/OrderHistoryTemplate/style.d.ts +2 -0
  132. package/dist/templates/OrderHistoryTemplate/style.js +3 -0
  133. package/dist/templates/OrderIndividualTemplate/index.d.ts +5 -0
  134. package/dist/templates/OrderIndividualTemplate/index.js +21 -0
  135. package/dist/templates/OrderIndividualTemplate/style.d.ts +2 -0
  136. package/dist/templates/OrderIndividualTemplate/style.js +3 -0
  137. package/dist/templates/ResetPasswordTemplate/index.d.ts +7 -2
  138. package/dist/templates/ResetPasswordTemplate/index.js +35 -2
  139. package/dist/templates/ResetPasswordTemplate/style.d.ts +2 -0
  140. package/dist/templates/ResetPasswordTemplate/style.js +163 -0
  141. package/dist/templates/SignInTemplate/index.d.ts +5 -2
  142. package/dist/templates/SignInTemplate/index.js +27 -2
  143. package/dist/templates/SignInTemplate/style.d.ts +2 -0
  144. package/dist/templates/SignInTemplate/style.js +168 -0
  145. package/dist/templates/SignUpTemplate/defaultFormFields.d.ts +11 -0
  146. package/dist/templates/SignUpTemplate/defaultFormFields.js +42 -0
  147. package/dist/templates/SignUpTemplate/index.d.ts +6 -2
  148. package/dist/templates/SignUpTemplate/index.js +33 -3
  149. package/dist/templates/SignUpTemplate/style.d.ts +2 -0
  150. package/dist/templates/SignUpTemplate/style.js +175 -0
  151. package/dist/templates/VerifyEmailAddressTemplate/index.d.ts +3 -0
  152. package/dist/templates/VerifyEmailAddressTemplate/index.js +105 -0
  153. package/dist/templates/VerifyEmailAddressTemplate/style.d.ts +2 -0
  154. package/dist/templates/VerifyEmailAddressTemplate/style.js +165 -0
  155. package/dist/templates/index.d.ts +8 -0
  156. package/dist/templates/index.js +11 -0
  157. package/dist/translations/en.d.ts +257 -0
  158. package/dist/translations/en.js +256 -0
  159. package/dist/translations/index.d.ts +259 -0
  160. package/dist/translations/index.js +2 -0
  161. package/dist/utils/_functions.d.ts +5 -0
  162. package/dist/utils/_functions.js +28 -0
  163. package/dist/utils/icons.d.ts +3 -0
  164. package/dist/utils/icons.js +27 -0
  165. package/package.json +5 -6
@@ -0,0 +1,3 @@
1
+ export default ShippingBillingInfo;
2
+ declare const ShippingBillingInfo: React.NamedExoticComponent<object>;
3
+ import React from 'react';
@@ -0,0 +1,22 @@
1
+ import React, { memo } from 'react';
2
+ import { Text } from '@weareconceptstudio/core';
3
+ //* Style
4
+ import ShippingBillingInfoStyle from './style';
5
+ const ShippingBillingInfo = memo(({ className, shipping_address, billing_address }) => {
6
+ return (React.createElement(ShippingBillingInfoStyle, { className: `${className || ''}` },
7
+ React.createElement(Text, { className: `account-p account-p1 account-font-bold account-primary-color1`, text: 'shippingAndBillingInfo' }),
8
+ React.createElement("div", { className: `info-space-line` }),
9
+ React.createElement("div", { className: `info-wrap shipped` },
10
+ React.createElement(Text, { className: `account-p account-p3 account-font-bold account-primary-color1 value`, text: `shippedTo` }),
11
+ React.createElement(Text, { className: `account-p account-p3 account-font-regular account-primary-color1 nowrap`, text: `${shipping_address.first_name} ${shipping_address.last_name}` }),
12
+ React.createElement(Text, { className: `account-p account-p3 account-font-regular account-primary-color1 nowrap`, text: `${shipping_address.address_1}, ${shipping_address.address_2 ? shipping_address.address_2 + ',' : ''}` }),
13
+ React.createElement(Text, { className: `account-p account-p3 account-font-regular account-primary-color1 nowrap`, text: `${shipping_address.region.name}, ${shipping_address.zip_code}, ${shipping_address.city.name}, ${shipping_address.country.name}` }),
14
+ React.createElement(Text, { className: `account-p account-p3 account-font-regular account-primary-color1 phone`, text: `${shipping_address.phone_number}` })),
15
+ billing_address !== null && (React.createElement("div", { className: `info-wrap billed` },
16
+ React.createElement(Text, { className: `account-p account-p3 account-font-bold account-primary-color1 value`, text: `billedTo` }),
17
+ React.createElement(Text, { className: `account-p account-p3 account-font-regular account-primary-color1 nowrap`, text: `${billing_address.first_name} ${billing_address.last_name}` }),
18
+ React.createElement(Text, { className: `account-p account-p3 account-font-regular account-primary-color1 nowrap`, text: `${billing_address.address_1}, ${billing_address.address_2 ? billing_address.address_2 + ',' : ''}` }),
19
+ React.createElement(Text, { className: `account-p account-p3 account-font-regular account-primary-color1 nowrap`, text: `${billing_address.region.name}, ${billing_address.zip_code}, ${billing_address.city.name}, ${billing_address.country.name}` }),
20
+ React.createElement(Text, { className: `account-p account-p3 account-font-regular account-primary-color1 phone`, text: `${billing_address.phone_number}` })))));
21
+ });
22
+ export default ShippingBillingInfo;
@@ -0,0 +1,2 @@
1
+ export default ShippingBillingInfoStyle;
2
+ declare const ShippingBillingInfoStyle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, never>> & string;
@@ -0,0 +1,98 @@
1
+ import styled from 'styled-components';
2
+ const ShippingBillingInfoStyle = styled.section `
3
+ --account_spaceLineMTop: var(--sp3x);
4
+ --account_spaceLineMBot: var(--sp5x);
5
+ --account_valueMBot: var(--sp2x);
6
+ --account_billedMTop: var(--sp5x);
7
+ --account_phoneMTop: var(--sp1x);
8
+ --account_infoWrapWidth: 57%;
9
+
10
+ .info-space-line {
11
+ width: 100%;
12
+ border-bottom: 2px solid var(--account_primaryColor1);
13
+ margin-top: var(--account_spaceLineMTop);
14
+ margin-bottom: var(--account_spaceLineMBot);
15
+ }
16
+
17
+ .info-wrap {
18
+ width: var(--account_infoWrapWidth);
19
+
20
+ .value {
21
+ margin-bottom: var(--account_valueMBot);
22
+ }
23
+
24
+ .phone {
25
+ margin-top: var(--account_phoneMTop);
26
+ }
27
+ }
28
+
29
+ .billed {
30
+ margin-top: var(--account_billedMTop);
31
+ }
32
+
33
+ @media only screen and (max-width: ${(props) => props.theme.account.mediaQuery.account_DesktopSizeXLMin}) and (min-width: ${(props) => props.theme.account.mediaQuery.account_DesktopSizeL}) {
34
+ --account_spaceLineMTop: var(--sp2x);
35
+ --account_spaceLineMBot: var(--sp4x);
36
+ --account_valueMBot: var(--sp1x);
37
+ --account_billedMTop: var(--sp4x);
38
+ --account_phoneMTop: var(--sp1x);
39
+ --account_infoWrapWidth: 46.3%;
40
+ }
41
+
42
+ @media only screen and (max-width: ${(props) => props.theme.account.mediaQuery.account_DesktopSizeLMin}) and (min-width: ${(props) => props.theme.account.mediaQuery.account_DesktopSizeM}) {
43
+ --account_spaceLineMTop: var(--sp2x);
44
+ --account_spaceLineMBot: var(--sp4x);
45
+ --account_valueMBot: var(--sp1x);
46
+ --account_billedMTop: var(--sp4x);
47
+ --account_phoneMTop: var(--sp1x);
48
+ --account_infoWrapWidth: 58.3%;
49
+ }
50
+
51
+ @media only screen and (max-width: ${(props) => props.theme.account.mediaQuery.account_DesktopSizeMMin}) and (min-width: ${(props) => props.theme.account.mediaQuery.account_DesktopSizeS}) {
52
+ --account_spaceLineMTop: var(--sp2x);
53
+ --account_spaceLineMBot: var(--sp3x);
54
+ --account_valueMBot: var(--sp1x);
55
+ --account_billedMTop: var(--sp3x);
56
+ --account_phoneMTop: var(--sp1x);
57
+ --account_infoWrapWidth: 61.3%;
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_spaceLineMTop: var(--sp2x);
62
+ --account_spaceLineMBot: var(--sp3x);
63
+ --account_valueMBot: var(--sp1x);
64
+ --account_billedMTop: var(--sp3x);
65
+ --account_phoneMTop: var(--sp1x);
66
+ --account_infoWrapWidth: 66.3%;
67
+ }
68
+
69
+ @media only screen and (max-width: ${(props) => props.theme.account.mediaQuery.account_DesktopSizeXSMin}) and (min-width: ${(props) => props.theme.account.mediaQuery.account_TabletSize}) {
70
+ --account_spaceLineMTop: var(--sp2x);
71
+ --account_spaceLineMBot: var(--sp3x);
72
+ --account_valueMBot: var(--sp1x);
73
+ --account_billedMTop: var(--sp3x);
74
+ --account_phoneMTop: var(--sp1x);
75
+ --account_infoWrapWidth: 82.3%;
76
+ }
77
+
78
+ @media only screen and (max-width: ${(props) => props.theme.account.mediaQuery.account_TabletSizeMin}) and (min-width: ${(props) => props.theme.account.mediaQuery.account_TabletSizeS}) {
79
+ --account_spaceLineMTop: var(--sp2x);
80
+ --account_spaceLineMBot: var(--sp2x);
81
+ --account_valueMBot: var(--sp1x);
82
+ --account_billedMTop: var(--sp2x);
83
+ --account_phoneMTop: var(--sp1x);
84
+ --account_infoWrapWidth: 74.3%;
85
+ }
86
+
87
+ @media only screen and (max-width: ${(props) => props.theme.account.mediaQuery.account_TabletSizeSMin}) {
88
+ --account_spaceLineMTop: var(--sp2x);
89
+ --account_spaceLineMBot: var(--sp2x);
90
+ --account_valueMBot: var(--sp1x);
91
+ --account_billedMTop: var(--sp2x);
92
+ --account_phoneMTop: var(--sp1x);
93
+ --account_infoWrapWidth: 67.3%;
94
+
95
+ margin-top: var(--sp5x);
96
+ }
97
+ `;
98
+ export default ShippingBillingInfoStyle;
@@ -0,0 +1,3 @@
1
+ export default TotalCheckout;
2
+ declare const TotalCheckout: React.NamedExoticComponent<object>;
3
+ import React from 'react';
@@ -0,0 +1,49 @@
1
+ import React, { memo, useState, useEffect } from 'react';
2
+ import { Text, useUi } from '@weareconceptstudio/core';
3
+ import { Input } from '@weareconceptstudio/form';
4
+ import AccountButton from '../AccountButton';
5
+ //* Utils
6
+ import { handlePriceCheckFunc, numToLocalString } from '../../utils/_functions';
7
+ //* Style
8
+ import TotalCheckoutStyle from './style';
9
+ //TODO: Input filed textarea
10
+ // TODO: itemsCount, subtotal, total, loading, currency, shippingCost
11
+ const TotalCheckout = memo(({ isShipping, children, confirmation, buttonProps, itemsCount, subtotal, total, loading, currency, shippingCost }) => {
12
+ const { winWidth } = useUi();
13
+ //! States
14
+ const [headerHeight, setHeaderHeight] = useState();
15
+ const [note, setNote] = useState();
16
+ //! useEffect
17
+ useEffect(() => {
18
+ setHeaderHeight(document.getElementsByTagName('header')[0]?.clientHeight);
19
+ }, [winWidth]);
20
+ return (React.createElement(TotalCheckoutStyle, { "$headerHeight": headerHeight },
21
+ React.createElement("div", { className: `cart-main-wrap` },
22
+ React.createElement("div", { className: `left-panel-wrap panel` }, children),
23
+ React.createElement("div", { className: `right-panel-wrap panel ${confirmation ? 'display-none-wrap' : ''}` }, !confirmation && (React.createElement("div", { className: `max-width-wrapper sticky-wrap` },
24
+ React.createElement(Text, { className: `account-p account-p2 account-font-bold account-primary-color1`, text: `orderSummary` }),
25
+ React.createElement("div", { className: `od-line` }),
26
+ React.createElement("div", { className: `od-item-wrap` },
27
+ React.createElement(Text, { className: `account-p account-p2 account-font-regular account-primary-color1`, text: `subtotal` }),
28
+ React.createElement(Text, { className: `account-p account-p2 account-font-regular account-primary-color1`, text: itemsCount ? handlePriceCheckFunc(subtotal, currency) : `0 ${currency}` })),
29
+ React.createElement("div", { className: `od-item-wrap` },
30
+ React.createElement(Text, { className: `account-p account-p2 account-font-regular account-primary-color1`, text: `shipping` }),
31
+ React.createElement(Text, { className: `account-p account-p2 account-font-regular account-primary-color1`, text: `${String(shippingCost).toLowerCase() === 'free' || shippingCost === '-' ? shippingCost : `${numToLocalString(shippingCost)} ${currency}`}` })),
32
+ React.createElement("div", { className: `od-item-wrap` },
33
+ React.createElement(Text, { className: `account-p account-p2 account-font-bold account-primary-color1`, text: `total` }),
34
+ React.createElement(Text, { className: `account-p account-p2 account-font-bold account-primary-color1`, text: itemsCount ? handlePriceCheckFunc(total, currency) : `0 ${currency}` })),
35
+ typeof isShipping === 'boolean' && !isShipping ? (
36
+ // <Input.TextArea
37
+ // value={note}
38
+ // autoSize={{ minRows: 5, maxRows: 10 }}
39
+ // onChange={(e) => setNote(e.target.value)}
40
+ // placeholder={translate('checkoutCommentPlaceholder')}
41
+ // className={`comment-field account-p account-p3 account-font-regular account-primary-color1`}
42
+ // />
43
+ React.createElement("div", { style: {
44
+ textAlign: 'center',
45
+ margin: '16px 0',
46
+ }, className: 'account-p account-p3 account-font-regular account-primary-color1' }, "Input Filed Textarea")) : null,
47
+ React.createElement(AccountButton, { url: buttonProps.url, btnType: `full-width`, text: buttonProps.text, type: buttonProps.type, onClick: () => buttonProps.handleClick && buttonProps.handleClick(note), className: `${!itemsCount || loading || buttonProps.disabled ? 'disabled' : ''}` })))))));
48
+ });
49
+ export default TotalCheckout;
@@ -0,0 +1,2 @@
1
+ export default TotalCheckoutStyle;
2
+ declare const TotalCheckoutStyle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, never>> & string;
@@ -0,0 +1,211 @@
1
+ import styled from 'styled-components';
2
+ const TotalCheckoutStyle = styled.section `
3
+ --account_distance: var(--sp14x);
4
+ --account_rightPanelWrapWidth: var(--sp85x);
5
+ --account_cartMainWrapPadTop: var(--sp8x);
6
+ --account_leftPanelWrapWidth: calc(100% - var(--account_rightPanelWrapWidth));
7
+
8
+ //! Right Layout Sizes
9
+ --account_odLineMTop: var(--sp2x);
10
+ --account_odLineMBot: var(--sp6x);
11
+ --account_itemMTop: var(--sp3x);
12
+ --account_commentMarginTop: var(--sp6x);
13
+ --account_commentPadding: var(--sp2x) var(--sp3x);
14
+ --account_btnMTop: var(--sp2x);
15
+
16
+ .cart-main-wrap {
17
+ display: flex;
18
+ flex-wrap: wrap;
19
+ margin-left: calc(-1 * calc(var(--account_distance)));
20
+ padding-top: var(--account_cartMainWrapPadTop);
21
+ padding-bottom: var(--account_sectionDistance);
22
+
23
+ .left-panel-wrap {
24
+ width: var(--account_leftPanelWrapWidth);
25
+ padding: 0 var(--account_distance);
26
+ }
27
+
28
+ .right-panel-wrap {
29
+ max-width: var(--account_rightPanelWrapWidth);
30
+ width: 100%;
31
+
32
+ .max-width-wrapper {
33
+ .od-line {
34
+ width: 100%;
35
+ border-bottom: 2px solid var(--account_primaryColor1);
36
+ margin-top: var(--account_odLineMTop);
37
+ margin-bottom: var(--account_odLineMBot);
38
+ }
39
+
40
+ .od-item-wrap {
41
+ display: flex;
42
+ justify-content: space-between;
43
+ align-items: center;
44
+
45
+ &:not(:first-child) {
46
+ margin-top: var(--account_itemMTop);
47
+ }
48
+ }
49
+
50
+ .comment-field {
51
+ width: 100%;
52
+ height: var(--sp10x);
53
+ padding: var(--account_commentPadding);
54
+ margin-top: var(--account_commentMarginTop);
55
+ vertical-align: top;
56
+ border: 2px solid var(--account_primaryColor5);
57
+ border-radius: var(--sp1x);
58
+ background: transparent;
59
+ -ms-overflow-style: none; /* IE and Edge */
60
+ scrollbar-width: none;
61
+
62
+ ::-webkit-scrollbar {
63
+ display: none;
64
+ }
65
+
66
+ ::placeholder {
67
+ color: var(--account_primaryColor3);
68
+ opacity: 1;
69
+ }
70
+
71
+ :-ms-input-placeholder {
72
+ color: var(--account_primaryColor3);
73
+ }
74
+
75
+ ::-ms-input-placeholder {
76
+ color: var(--account_primaryColor3);
77
+ }
78
+ }
79
+
80
+ .btn-wrap {
81
+ width: 100%;
82
+ margin-top: var(--account_btnMTop);
83
+ }
84
+ }
85
+
86
+ //! Sticky Wrapper
87
+ .sticky-wrap {
88
+ position: sticky;
89
+ height: fit-content;
90
+ top: calc(${(props) => props.$headerHeight}px + var(--account_cartMainWrapPadTop));
91
+ }
92
+ }
93
+ }
94
+
95
+ .display-none-wrap {
96
+ display: none !important;
97
+ }
98
+
99
+ @media only screen and (max-width: ${(props) => props.theme.account.mediaQuery.account_DesktopSizeXLMin}) and (min-width: ${(props) => props.theme.account.mediaQuery.account_DesktopSizeL}) {
100
+ --account_distance: var(--sp8x);
101
+ --account_rightPanelWrapWidth: var(--sp66x);
102
+ --account_cartMainWrapPadTop: var(--sp5x);
103
+
104
+ //! Right Layout Sizes
105
+ --account_odLineMTop: var(--sp2x);
106
+ --account_odLineMBot: var(--sp4x);
107
+ --account_itemMTop: var(--sp2x);
108
+ --account_commentMarginTop: var(--sp4x);
109
+ --account_commentPadding: var(--sp2x);
110
+ --account_btnMTop: var(--sp2x);
111
+ }
112
+
113
+ @media only screen and (max-width: ${(props) => props.theme.account.mediaQuery.account_DesktopSizeLMin}) and (min-width: ${(props) => props.theme.account.mediaQuery.account_DesktopSizeM}) {
114
+ --account_distance: var(--sp8x);
115
+ --account_rightPanelWrapWidth: var(--sp50x);
116
+ --account_cartMainWrapPadTop: var(--sp5x);
117
+
118
+ //! Right Layout Sizes
119
+ --account_odLineMTop: var(--sp2x);
120
+ --account_odLineMBot: var(--sp4x);
121
+ --account_itemMTop: var(--sp2x);
122
+ --account_commentMarginTop: var(--sp4x);
123
+ --account_commentPadding: var(--sp1x) var(--sp2x);
124
+ --account_btnMTop: var(--sp2x);
125
+ }
126
+
127
+ @media only screen and (max-width: ${(props) => props.theme.account.mediaQuery.account_DesktopSizeMMin}) and (min-width: ${(props) => props.theme.account.mediaQuery.account_DesktopSizeS}) {
128
+ --account_distance: var(--sp6x);
129
+ --account_rightPanelWrapWidth: var(--sp50x);
130
+ --account_cartMainWrapPadTop: var(--sp4x);
131
+
132
+ //! Right Layout Sizes
133
+ --account_odLineMTop: var(--sp2x);
134
+ --account_odLineMBot: var(--sp3x);
135
+ --account_itemMTop: var(--sp2x);
136
+ --account_commentMarginTop: var(--sp3x);
137
+ --account_commentPadding: var(--sp1x) var(--sp2x);
138
+ --account_btnMTop: var(--sp2x);
139
+ }
140
+
141
+ @media only screen and (max-width: ${(props) => props.theme.account.mediaQuery.account_DesktopSizeSMin}) and (min-width: ${(props) => props.theme.account.mediaQuery.account_DesktopSizeXS}) {
142
+ --account_distance: var(--sp5x);
143
+ --account_rightPanelWrapWidth: var(--sp46x);
144
+ --account_cartMainWrapPadTop: var(--sp4x);
145
+
146
+ //! Right Layout Sizes
147
+ --account_odLineMTop: var(--sp2x);
148
+ --account_odLineMBot: var(--sp3x);
149
+ --account_itemMTop: var(--sp2x);
150
+ --account_commentMarginTop: var(--sp3x);
151
+ --account_commentPadding: var(--sp1x) var(--sp2x);
152
+ --account_btnMTop: var(--sp2x);
153
+ }
154
+
155
+ @media only screen and (max-width: ${(props) => props.theme.account.mediaQuery.account_DesktopSizeXSMin}) and (min-width: ${(props) => props.theme.account.mediaQuery.account_TabletSize}) {
156
+ --account_distance: var(--sp3x);
157
+ --account_rightPanelWrapWidth: var(--sp38x);
158
+ --account_cartMainWrapPadTop: var(--sp4x);
159
+
160
+ //! Right Layout Sizes
161
+ --account_odLineMTop: var(--sp2x);
162
+ --account_odLineMBot: var(--sp3x);
163
+ --account_itemMTop: var(--sp1x);
164
+ --account_commentMarginTop: var(--sp3x);
165
+ --account_commentPadding: var(--sp1x) var(--sp2x);
166
+ --account_btnMTop: var(--sp2x);
167
+ }
168
+
169
+ @media only screen and (max-width: ${(props) => props.theme.account.mediaQuery.account_TabletSizeMin}) and (min-width: ${(props) => props.theme.account.mediaQuery.account_TabletSizeS}) {
170
+ --account_distance: 0;
171
+ --account_rightPanelWrapWidth: 100%;
172
+ --account_leftPanelWrapWidth: 100%;
173
+ --account_cartMainWrapPadTop: var(--sp4x);
174
+
175
+ //! Right Layout Sizes
176
+ --account_odLineMTop: var(--sp2x);
177
+ --account_odLineMBot: var(--sp3x);
178
+ --account_itemMTop: var(--sp1x);
179
+ --account_commentMarginTop: var(--sp3x);
180
+ --account_commentPadding: var(--sp1x) var(--sp2x);
181
+ --account_btnMTop: var(--sp2x);
182
+
183
+ .cart-main-wrap {
184
+ .right-panel-wrap {
185
+ margin-top: var(--sp12x);
186
+ }
187
+ }
188
+ }
189
+
190
+ @media only screen and (max-width: ${(props) => props.theme.account.mediaQuery.account_TabletSizeSMin}) {
191
+ --account_distance: 0;
192
+ --account_rightPanelWrapWidth: 100%;
193
+ --account_leftPanelWrapWidth: 100%;
194
+ --account_cartMainWrapPadTop: var(--sp4x);
195
+
196
+ //! Right Layout Sizes
197
+ --account_odLineMTop: var(--sp2x);
198
+ --account_odLineMBot: var(--sp3x);
199
+ --account_itemMTop: var(--sp1x);
200
+ --account_commentMarginTop: var(--sp3x);
201
+ --account_commentPadding: var(--sp1x) var(--sp2x);
202
+ --account_btnMTop: var(--sp2x);
203
+
204
+ .cart-main-wrap {
205
+ .right-panel-wrap {
206
+ margin-top: var(--sp8x);
207
+ }
208
+ }
209
+ }
210
+ `;
211
+ export default TotalCheckoutStyle;
@@ -0,0 +1,3 @@
1
+ export default WarningMessage;
2
+ declare const WarningMessage: React.NamedExoticComponent<object>;
3
+ import React from 'react';
@@ -0,0 +1,10 @@
1
+ import React, { memo as Memo } from 'react';
2
+ import { Text } from '@weareconceptstudio/core';
3
+ //* Style
4
+ import WarningMessageStyle from './style';
5
+ const WarningMessage = Memo(({ error, isSent, successTitle, successSubtitle }) => {
6
+ return ((isSent || error) && (React.createElement(WarningMessageStyle, { className: `message-container ${error ? 'error' : 'success'}Color-bg` },
7
+ React.createElement(Text, { className: `account-p account-p4 message-title account-font-bold ${error ? 'error' : 'success'}Color`, text: error || successTitle }),
8
+ !error && (React.createElement(Text, { className: `account-p account-p4 message-subtitle account-font-regular ${error ? 'error' : 'success'}Color`, text: successSubtitle })))));
9
+ });
10
+ export default WarningMessage;
@@ -0,0 +1,2 @@
1
+ export default WarningMessageStyle;
2
+ declare const WarningMessageStyle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
@@ -0,0 +1,34 @@
1
+ import styled from 'styled-components';
2
+ const WarningMessageStyle = styled.div `
3
+ --account_messageMarginTop: var(--sp5x);
4
+ --account_messagePadding: var(--sp3x);
5
+
6
+ &.message-container {
7
+ margin-top: var(--account_messageMarginTop);
8
+ padding: var(--account_messagePadding);
9
+ border-radius: var(--sp1x);
10
+
11
+ &.account-success-color-bg {
12
+ border: 2px solid var(--account_successColor);
13
+ }
14
+
15
+ &.account-error-color-bg {
16
+ border: 2px solid var(--account_errorColor);
17
+ }
18
+
19
+ .message-subtitle {
20
+ margin-top: var(--sp1x);
21
+ }
22
+ }
23
+
24
+ @media only screen and (max-width: ${(props) => props.theme.account.mediaQuery.account_TabletSizeMin}) and (min-width: ${(props) => props.theme.account.mediaQuery.account_TabletSizeS}) {
25
+ --account_messageMarginTop: var(--sp3x);
26
+ --account_messagePadding: var(--sp2x);
27
+ }
28
+
29
+ @media only screen and (max-width: ${(props) => props.theme.account.mediaQuery.account_TabletSizeSMin}) {
30
+ --account_messageMarginTop: var(--sp3x);
31
+ --account_messagePadding: var(--sp2x);
32
+ }
33
+ `;
34
+ export default WarningMessageStyle;
@@ -0,0 +1,3 @@
1
+ export default WarningMessageForPopup;
2
+ declare const WarningMessageForPopup: React.NamedExoticComponent<object>;
3
+ import React from 'react';
@@ -0,0 +1,31 @@
1
+ import React from 'react';
2
+ import { useUi, Text } from '@weareconceptstudio/core';
3
+ import { useTheme } from 'styled-components';
4
+ import theme from '../../styles/theme';
5
+ //* Style
6
+ import WarningMessageForPopupStyle from './style';
7
+ //* Components
8
+ import AccountButton from '../AccountButton';
9
+ const WarningMessageForPopup = React.memo(({ isDelete = false, isThankYou = false, onRemove, title, description, globalData }) => {
10
+ const { closePopup } = useUi();
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 }),
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: () => {
18
+ onRemove();
19
+ closePopup();
20
+ } }))) : isThankYou ? (
21
+ // globalData?.menu_bar[0]?.slug ? (
22
+ // <AccountButton
23
+ // onClick={closePopup}
24
+ // btnType={`full-width`}
25
+ // text={`continueToShop`}
26
+ // url={globalData?.menu_bar[0]?.slug}
27
+ // />
28
+ // ) : null
29
+ React.createElement("div", null, "Global Data")) : (React.createElement(AccountButton, { text: `done`, btnType: `full-width`, onClick: closePopup })))));
30
+ });
31
+ export default WarningMessageForPopup;
@@ -0,0 +1,2 @@
1
+ export default WarningMessageForPopupStyle;
2
+ declare const WarningMessageForPopupStyle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
@@ -0,0 +1,82 @@
1
+ import styled from 'styled-components';
2
+ const WarningMessageForPopupStyle = styled.div `
3
+ --account_confirmDeleteAddressTextMTop: var(--sp3x);
4
+ --account_cancelRemoveWrapMTop: var(--sp7x);
5
+ --account_distance: var(--sp5x);
6
+
7
+ .confirm-delete-address-text {
8
+ margin-top: var(--account_confirmDeleteAddressTextMTop);
9
+ }
10
+
11
+ .cancel-remove-wrap {
12
+ display: flex;
13
+ justify-content: flex-end;
14
+ align-items: center;
15
+ margin-top: var(--account_cancelRemoveWrapMTop);
16
+
17
+ .btn-wrap {
18
+ &:last-child {
19
+ margin-left: var(--account_distance);
20
+ }
21
+ }
22
+ }
23
+
24
+ @media only screen and (max-width: ${(props) => props.theme.account.mediaQuery.account_DesktopSizeXLMin}) and (min-width: ${(props) => props.theme.account.mediaQuery.account_DesktopSizeL}) {
25
+ --account_confirmDeleteAddressTextMTop: var(--sp1x);
26
+ --account_cancelRemoveWrapMTop: var(--sp4x);
27
+ --account_distance: var(--sp4x);
28
+ }
29
+
30
+ @media only screen and (max-width: ${(props) => props.theme.account.mediaQuery.account_DesktopSizeLMin}) and (min-width: ${(props) => props.theme.account.mediaQuery.account_DesktopSizeM}) {
31
+ --account_confirmDeleteAddressTextMTop: var(--sp2x);
32
+ --account_cancelRemoveWrapMTop: var(--sp3x);
33
+ --account_distance: var(--sp3x);
34
+ }
35
+
36
+ @media only screen and (max-width: ${(props) => props.theme.account.mediaQuery.account_DesktopSizeMMin}) and (min-width: ${(props) => props.theme.account.mediaQuery.account_DesktopSizeS}) {
37
+ --account_confirmDeleteAddressTextMTop: var(--sp2x);
38
+ --account_cancelRemoveWrapMTop: var(--sp3x);
39
+ --account_distance: var(--sp3x);
40
+ }
41
+
42
+ @media only screen and (max-width: ${(props) => props.theme.account.mediaQuery.account_DesktopSizeSMin}) and (min-width: ${(props) => props.theme.account.mediaQuery.account_DesktopSizeXS}) {
43
+ --account_confirmDeleteAddressTextMTop: var(--sp2x);
44
+ --account_cancelRemoveWrapMTop: var(--sp3x);
45
+ --account_distance: var(--sp2-5x);
46
+ }
47
+
48
+ @media only screen and (max-width: ${(props) => props.theme.account.mediaQuery.account_DesktopSizeXSMin}) and (min-width: ${(props) => props.theme.account.mediaQuery.account_TabletSize}) {
49
+ --account_confirmDeleteAddressTextMTop: var(--sp1-5x);
50
+ --account_cancelRemoveWrapMTop: var(--sp3x);
51
+ --account_distance: var(--sp2-5x);
52
+ }
53
+
54
+ @media only screen and (max-width: ${(props) => props.theme.account.mediaQuery.account_TabletSizeMin}) and (min-width: ${(props) => props.theme.account.mediaQuery.account_TabletSizeS}) {
55
+ --account_confirmDeleteAddressTextMTop: var(--sp1-5x);
56
+ --account_cancelRemoveWrapMTop: var(--sp3x);
57
+ --account_distance: var(--sp2-5x);
58
+ }
59
+
60
+ @media only screen and (max-width: ${(props) => props.theme.account.mediaQuery.account_TabletSizeSMin}) {
61
+ --account_confirmDeleteAddressTextMTop: var(--sp1-5x);
62
+ --account_cancelRemoveWrapMTop: var(--sp3x);
63
+ --account_distance: var(--sp2x);
64
+
65
+ .cancel-remove-wrap {
66
+ flex-direction: column-reverse;
67
+
68
+ .btn-wrap {
69
+ &:last-child {
70
+ width: 100%;
71
+ margin-left: 0;
72
+ margin-bottom: var(--account_distance);
73
+ }
74
+ }
75
+
76
+ &.mobile-margin {
77
+ margin-top: var(--sp8x);
78
+ }
79
+ }
80
+ }
81
+ `;
82
+ export default WarningMessageForPopupStyle;
@@ -0,0 +1,18 @@
1
+ export { default as AddressForm } from './AddressForm';
2
+ export { default as AddressItem } from './AddressItem';
3
+ export { default as EmptyCart } from './EmptyCart';
4
+ export { default as EmptyOrders } from './EmptyOrders';
5
+ export { default as OrderDetails } from './OrderDetails';
6
+ export { default as OrderedItems } from './OrderedItems';
7
+ export { default as OrdersList } from './OrdersList';
8
+ export { default as Pagination } from './Pagination';
9
+ export { default as ShippingBillingInfo } from './ShippingBillingInfo';
10
+ export { default as TotalCheckout } from './TotalCheckout';
11
+ export { default as WarningMessage } from './WarningMessage';
12
+ export { default as WarningMessageForPopup } from './WarningMessageForPopup';
13
+ export { default as Sequence } from './Sequence';
14
+ export { default as ShippingBillingForm } from './ShippingBillingForm';
15
+ export { default as CustomCheckbox } from './CustomCheckbox';
16
+ export { default as SelectShippingBilling } from './SelectShippingBilling';
17
+ export { default as FormInputCode } from './FormInputCode';
18
+ export { default as AccountButton } from './AccountButton';
@@ -0,0 +1,18 @@
1
+ export { default as AddressForm } from './AddressForm';
2
+ export { default as AddressItem } from './AddressItem';
3
+ export { default as EmptyCart } from './EmptyCart';
4
+ export { default as EmptyOrders } from './EmptyOrders';
5
+ export { default as OrderDetails } from './OrderDetails';
6
+ export { default as OrderedItems } from './OrderedItems';
7
+ export { default as OrdersList } from './OrdersList';
8
+ export { default as Pagination } from './Pagination';
9
+ export { default as ShippingBillingInfo } from './ShippingBillingInfo';
10
+ export { default as TotalCheckout } from './TotalCheckout';
11
+ export { default as WarningMessage } from './WarningMessage';
12
+ export { default as WarningMessageForPopup } from './WarningMessageForPopup';
13
+ export { default as Sequence } from './Sequence';
14
+ export { default as ShippingBillingForm } from './ShippingBillingForm';
15
+ export { default as CustomCheckbox } from './CustomCheckbox';
16
+ export { default as SelectShippingBilling } from './SelectShippingBilling';
17
+ export { default as FormInputCode } from './FormInputCode';
18
+ export { default as AccountButton } from './AccountButton';
package/dist/index.d.ts CHANGED
@@ -1 +1,2 @@
1
+ export * from './AccountConfig';
1
2
  export * from './templates';
package/dist/index.js CHANGED
@@ -1 +1,3 @@
1
+ 'use client';
2
+ export * from './AccountConfig';
1
3
  export * from './templates';
@@ -0,0 +1,2 @@
1
+ export default AccountHelperClass;
2
+ declare const AccountHelperClass: import("react").NamedExoticComponent<import("styled-components").ExecutionProps & object>;