@riosst100/pwa-marketplace 1.2.6 → 1.2.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 (129) hide show
  1. package/.github/workflows/dependabot.yml +28 -28
  2. package/package.json +18 -18
  3. package/src/Utilities/graphQL.js +76 -76
  4. package/src/componentOverrideMapping.js +17 -16
  5. package/src/components/BecomeSeller/becomeSeller.js +335 -335
  6. package/src/components/BecomeSeller/becomeSeller.module.css +46 -46
  7. package/src/components/BecomeSellerLink/becomeSellerLink.js +52 -52
  8. package/src/components/BecomeSellerLink/becomeSellerLink.module.css +12 -12
  9. package/src/components/BecomeSellerPage/becomeSellerPage.js +45 -45
  10. package/src/components/BecomeSellerPage/becomeSellerPage.module.css +21 -21
  11. package/src/components/Filter/index.js +53 -53
  12. package/src/components/Header/becomeSellerLink.js +28 -28
  13. package/src/components/Header/becomeSellerLink.module.css +12 -12
  14. package/src/components/Header/websiteSwitcher.js +109 -109
  15. package/src/components/Pagination/index.js +49 -40
  16. package/src/components/PhoneTextInput/phoneTextInput.module.css +21 -21
  17. package/src/components/ProductItem/index.js +50 -50
  18. package/src/components/Search/index.js +16 -16
  19. package/src/components/Seller/index.js +1 -1
  20. package/src/components/Seller/seller.js +249 -42
  21. package/src/components/SellerAccountPage/sellerAccountPage.js +110 -110
  22. package/src/components/SellerAccountPage/sellerAccountPage.module.css +55 -55
  23. package/src/components/SellerCountry/sellerCountry.gql.js +11 -11
  24. package/src/components/SellerInformation/index.js +1 -1
  25. package/src/components/SellerInformation/sellerInformation.js +90 -84
  26. package/src/components/SellerLocation/index.js +1 -1
  27. package/src/components/SellerLocation/sellerLocation.js +19 -18
  28. package/src/components/SellerLocation/sellerLocationItem.js +27 -25
  29. package/src/components/SellerPage/sellerPage.js +9 -9
  30. package/src/components/SellerProducts/sellerProducts.js +47 -218
  31. package/src/components/SellerReview/index.js +1 -1
  32. package/src/components/SellerReview/sellerReview.js +143 -143
  33. package/src/components/SellerReviewItem/sellerReviewItem.js +60 -60
  34. package/src/components/SellerVerification/sellerVerification.js +198 -198
  35. package/src/components/SellerVerification/sellerVerification.module.css +47 -47
  36. package/src/components/SellerVerificationPage/sellerVerificationPage.js +43 -43
  37. package/src/components/SellerVerificationPage/sellerVerificationPage.module.css +21 -21
  38. package/src/components/SortBy/index.js +24 -16
  39. package/src/components/WebsiteSwitcher/websiteSwitcher.js +109 -109
  40. package/src/components/commons/Slider/index.js +13 -13
  41. package/src/components/commons/Tabs/index.js +64 -62
  42. package/src/index.js +6 -6
  43. package/src/intercept.js +113 -113
  44. package/src/moduleOverrideWebpackPlugin.js +70 -70
  45. package/src/overwrites/peregrine/lib/store/actions/user/asyncActions.js +96 -96
  46. package/src/overwrites/peregrine/lib/talons/AccountMenu/useAccountMenuItems.js +74 -74
  47. package/src/overwrites/peregrine/lib/talons/Adapter/useAdapter.js +208 -208
  48. package/src/overwrites/peregrine/lib/talons/Header/storeSwitcher.gql.js +45 -45
  49. package/src/overwrites/peregrine/lib/talons/Header/useStoreSwitcher.js +204 -204
  50. package/src/overwrites/peregrine/lib/talons/Region/useRegion.js +102 -102
  51. package/src/overwrites/peregrine/lib/talons/SignIn/signIn.gql.js +56 -56
  52. package/src/overwrites/peregrine/lib/talons/SignIn/useSignIn.js +226 -226
  53. package/src/overwrites/peregrine/lib/util/deriveErrorMessage.js +34 -34
  54. package/src/overwrites/pwa-buildpack/lib/queries/getAvailableStoresConfigData.graphql +11 -11
  55. package/src/overwrites/venia-ui/lib/components/Adapter/adapter.js +112 -112
  56. package/src/overwrites/venia-ui/lib/components/Header/header.js +130 -118
  57. package/src/overwrites/venia-ui/lib/components/Header/storeSwitcher.js +105 -105
  58. package/src/overwrites/venia-ui/lib/components/Header/switcherItem.js +47 -47
  59. package/src/overwrites/venia-ui/lib/components/MegaMenu/__tests__/MegaMenu.spec.js +91 -91
  60. package/src/overwrites/venia-ui/lib/components/MegaMenu/__tests__/MegaMenuItem.spec.js +123 -123
  61. package/src/overwrites/venia-ui/lib/components/MegaMenu/__tests__/Submenu.spec.js +61 -61
  62. package/src/overwrites/venia-ui/lib/components/MegaMenu/__tests__/SubmenuColumn.spec.js +50 -50
  63. package/src/overwrites/venia-ui/lib/components/MegaMenu/__tests__/__snapshots__/MegaMenu.spec.js.snap +114 -114
  64. package/src/overwrites/venia-ui/lib/components/MegaMenu/__tests__/__snapshots__/MegaMenuItem.spec.js.snap +71 -71
  65. package/src/overwrites/venia-ui/lib/components/MegaMenu/__tests__/__snapshots__/Submenu.spec.js.snap +59 -59
  66. package/src/overwrites/venia-ui/lib/components/MegaMenu/__tests__/__snapshots__/SubmenuColumn.spec.js.snap +34 -34
  67. package/src/overwrites/venia-ui/lib/components/MegaMenu/index.js +1 -1
  68. package/src/overwrites/venia-ui/lib/components/MegaMenu/megaMenu.js +90 -90
  69. package/src/overwrites/venia-ui/lib/components/MegaMenu/megaMenu.module.css +12 -12
  70. package/src/overwrites/venia-ui/lib/components/MegaMenu/megaMenuItem.js +156 -156
  71. package/src/overwrites/venia-ui/lib/components/MegaMenu/megaMenuItem.module.css +30 -30
  72. package/src/overwrites/venia-ui/lib/components/MegaMenu/submenu.js +89 -89
  73. package/src/overwrites/venia-ui/lib/components/MegaMenu/submenu.module.css +42 -42
  74. package/src/overwrites/venia-ui/lib/components/MegaMenu/submenuColumn.js +99 -99
  75. package/src/overwrites/venia-ui/lib/components/MegaMenu/submenuColumn.module.css +28 -28
  76. package/src/overwrites/venia-ui/lib/components/SearchBar/__stories__/searchBar.js +11 -11
  77. package/src/overwrites/venia-ui/lib/components/SearchBar/__tests__/__snapshots__/searchField.spec.js.snap +72 -72
  78. package/src/overwrites/venia-ui/lib/components/SearchBar/__tests__/__snapshots__/suggestedCategories.spec.js.snap +30 -30
  79. package/src/overwrites/venia-ui/lib/components/SearchBar/__tests__/__snapshots__/suggestedProduct.spec.js.snap +69 -69
  80. package/src/overwrites/venia-ui/lib/components/SearchBar/__tests__/__snapshots__/suggestedProducts.spec.js.snap +7 -7
  81. package/src/overwrites/venia-ui/lib/components/SearchBar/__tests__/__snapshots__/suggestions.spec.js.snap +12 -12
  82. package/src/overwrites/venia-ui/lib/components/SearchBar/__tests__/autocomplete.spec.js +52 -52
  83. package/src/overwrites/venia-ui/lib/components/SearchBar/__tests__/searchBar.spec.js +82 -82
  84. package/src/overwrites/venia-ui/lib/components/SearchBar/__tests__/searchField.spec.js +87 -87
  85. package/src/overwrites/venia-ui/lib/components/SearchBar/__tests__/suggestedCategories.spec.js +45 -45
  86. package/src/overwrites/venia-ui/lib/components/SearchBar/__tests__/suggestedProduct.spec.js +43 -43
  87. package/src/overwrites/venia-ui/lib/components/SearchBar/__tests__/suggestedProducts.spec.js +45 -45
  88. package/src/overwrites/venia-ui/lib/components/SearchBar/__tests__/suggestions.spec.js +110 -110
  89. package/src/overwrites/venia-ui/lib/components/SearchBar/autocomplete.js +172 -172
  90. package/src/overwrites/venia-ui/lib/components/SearchBar/autocomplete.module.css +62 -62
  91. package/src/overwrites/venia-ui/lib/components/SearchBar/index.js +1 -1
  92. package/src/overwrites/venia-ui/lib/components/SearchBar/searchBar.js +74 -74
  93. package/src/overwrites/venia-ui/lib/components/SearchBar/searchBar.module.css +49 -49
  94. package/src/overwrites/venia-ui/lib/components/SearchBar/searchField.js +40 -40
  95. package/src/overwrites/venia-ui/lib/components/SearchBar/suggestedCategories.js +48 -48
  96. package/src/overwrites/venia-ui/lib/components/SearchBar/suggestedCategories.module.css +13 -13
  97. package/src/overwrites/venia-ui/lib/components/SearchBar/suggestedCategory.js +49 -49
  98. package/src/overwrites/venia-ui/lib/components/SearchBar/suggestedProduct.js +97 -97
  99. package/src/overwrites/venia-ui/lib/components/SearchBar/suggestedProduct.module.css +24 -24
  100. package/src/overwrites/venia-ui/lib/components/SearchBar/suggestedProducts.js +43 -43
  101. package/src/overwrites/venia-ui/lib/components/SearchBar/suggestedProducts.module.css +13 -13
  102. package/src/overwrites/venia-ui/lib/components/SearchBar/suggestions.js +75 -75
  103. package/src/overwrites/venia-ui/lib/components/SearchBar/suggestions.module.css +6 -6
  104. package/src/overwrites/venia-ui/lib/components/StoreCodeRoute/storeCodeRoute.js +75 -75
  105. package/src/overwrites/venia-ui/lib/targets/venia-ui-intercept.js +70 -70
  106. package/src/queries/getAvailableWebsitesConfigData.graphql +14 -14
  107. package/src/queries/index.js +30 -30
  108. package/src/talons/BecomeSeller/becomeSeller.gql.js +45 -45
  109. package/src/talons/BecomeSeller/useBecomeSeller.js +145 -145
  110. package/src/talons/BecomeSellerLink/useBecomeSellerLink.js +11 -11
  111. package/src/talons/BecomeSellerPage/useBecomeSellerPage.js +76 -76
  112. package/src/talons/Header/useBecomeSellerLink.js +13 -13
  113. package/src/talons/Header/useWebsiteSwitcher.js +218 -218
  114. package/src/talons/Seller/seller.gql.js +139 -204
  115. package/src/talons/Seller/useSeller.js +66 -71
  116. package/src/talons/SellerAccountPage/useSellerAccountPage.js +174 -174
  117. package/src/talons/SellerCountry/useSellerCountry.js +25 -25
  118. package/src/talons/WebsiteByIp/getWebsiteByIp.gql.js +13 -13
  119. package/src/talons/WebsiteByIp/useWebsiteByIp.js +34 -34
  120. package/src/talons/WebsiteSwitcher/useWebsiteSwitcher.js +218 -218
  121. package/src/theme/vars.js +6 -6
  122. package/src/util/mapSeller.js +7 -7
  123. package/src/components/OperatingHours/index.js +0 -1
  124. package/src/components/OperatingHours/operatingHours.js +0 -32
  125. package/src/components/Seller/sellerAddressCard.js +0 -48
  126. package/src/components/SellerDetail/index.js +0 -1
  127. package/src/components/SellerDetail/sellerDetail.js +0 -158
  128. package/src/components/SellerPage/core.js +0 -10
  129. package/src/talons/SellerProducts/useSellerProducts.js +0 -129
@@ -1,42 +1,249 @@
1
- import React, { Fragment } from 'react';
2
- import { FormattedMessage } from 'react-intl';
3
- import { useSeller } from '@riosst100/pwa-marketplace/src/talons/Seller/useSeller';
4
- import ErrorView from '@magento/venia-ui/lib/components/ErrorView';
5
- import { StoreTitle, Meta } from '@magento/venia-ui/lib/components/Head';
6
- import mapSeller from '@riosst100/pwa-marketplace/src/util/mapSeller';
7
- import SellerDetail from '@riosst100/pwa-marketplace/src/components/SellerDetail';
8
-
9
- const Seller = props => {
10
- const talonProps = useSeller({
11
- mapSeller
12
- });
13
-
14
- const { error, loading, seller } = talonProps;
15
-
16
- if (loading && !seller)
17
- return '';
18
- // return <SellerShimmer />;
19
- if (error && !seller) return <ErrorView />;
20
- if (!seller) {
21
- return (
22
- <h1>
23
- <FormattedMessage
24
- id={'seller.notFound'}
25
- defaultMessage={
26
- 'Seller Not Found.'
27
- }
28
- />
29
- </h1>
30
- );
31
- }
32
-
33
- return (
34
- <Fragment>
35
- <StoreTitle>{seller.name}</StoreTitle>
36
- <Meta name="description" content={seller.description} />
37
- {seller && <SellerDetail seller={seller} />}
38
- </Fragment>
39
- );
40
- };
41
-
42
- export default Seller;
1
+ import React, { Fragment } from 'react';
2
+ import { FormattedMessage } from 'react-intl';
3
+ import { useSeller } from '@riosst100/pwa-marketplace/src/talons/Seller/useSeller';
4
+ import ErrorView from '@magento/venia-ui/lib/components/ErrorView';
5
+ import { StoreTitle, Meta } from '@magento/venia-ui/lib/components/Head';
6
+ import mapSeller from '@riosst100/pwa-marketplace/src/util/mapSeller';
7
+ import Slider from '@riosst100/pwa-marketplace/src/components/commons/Slider';
8
+ import Tabs from '@riosst100/pwa-marketplace/src/components/commons/Tabs';
9
+ import SellerProducts from '../SellerProducts';
10
+ import SellerInformation from '../SellerInformation';
11
+ import Reviews from '../SellerReview';
12
+ import {
13
+ Verify,
14
+ Sms,
15
+ Message,
16
+ Heart,
17
+ Share,
18
+ BoxTick,
19
+ Star1,
20
+ Shop,
21
+ } from 'iconsax-react';
22
+
23
+ const Seller = props => {
24
+ const talonProps = useSeller({
25
+ mapSeller
26
+ });
27
+
28
+ const { error, loading, seller } = talonProps;
29
+
30
+ if (loading && !seller)
31
+ return '';
32
+ // return <SellerShimmer />;
33
+ if (error && !seller) return <ErrorView />;
34
+ if (!seller) {
35
+ return (
36
+ <h1>
37
+ <FormattedMessage
38
+ id={'seller.notFound'}
39
+ defaultMessage={
40
+ 'Seller Not Found.'
41
+ }
42
+ />
43
+ </h1>
44
+ );
45
+ }
46
+
47
+ return (
48
+ <Fragment>
49
+ <StoreTitle>{seller.name}</StoreTitle>
50
+ <Meta name="description" content={seller.description} />
51
+ <SellerDetail seller={seller} />
52
+ </Fragment>
53
+ );
54
+ };
55
+
56
+ const SellerDetail = ({ seller }) => {
57
+ console.log("🚀 ~ SellerDetail ~ seller:", seller)
58
+ const dataTabs =
59
+ [
60
+ {
61
+ id: 'product-tab',
62
+ title: 'All Products',
63
+ content: <SellerProducts />
64
+ },
65
+ {
66
+ id: 'store-information',
67
+ title: 'Store Information',
68
+ content: <SellerInformation seller={seller} />
69
+ },
70
+ {
71
+ id: 'reviews',
72
+ title: 'Reviews',
73
+ content: <Reviews />
74
+ }
75
+ ];
76
+
77
+ return (
78
+ <div className=' py-8'>
79
+ <Slider seller={seller} rootClassname='mb-[30px]' />
80
+ <div className='flex xs_flex-col md_flex-row xs_items-center md_item-start lg_flex-row justify-between mb-[30px] p-[20px] rounded-[6px] border border-solid border-gray-100 shadow-[0px_0px_5px_3px_#d9d9d933]'>
81
+ <div className='flex xs_flex-col md_flex-row xs_items-center md_items-start items-start gap-[15px] relative'>
82
+ {seller?.thumbnail ? (
83
+ <img className="relative w-[100px] h-[100px] object-cover border border-gray-100 rounded-radius1" alt="Rectangle" src={seller ? seller.thumbnail : ''} />
84
+ ) : (
85
+ <div className='flex items-center justify-center bg-gray-300 border rounded-radius1 relative w-[100px] h-[100px]'>
86
+ <Shop size="48" color="#F2F2F2" variant="Outline" />
87
+ </div>
88
+ )}
89
+
90
+ <div className='flex flex-col xs_items-center md_items-start justify-between relative gap-y-[18px]'>
91
+ <div className='flex flex-col xs_items-center md_items-start gap-[6px] relative'>
92
+ <div className="gap-x-[10px] gap-y-1 flex xs_flex-col md_flex-row xs_items-center md_items-start relative">
93
+ <div className="relative w-fit mt-[-1.00px] font-semibold text-[20px] tracking-[0] leading-[24px] whitespace-nowrap">
94
+ {seller ? seller.name : ''}
95
+ </div>
96
+ <div className="flex items-center gap-[5px] relative">
97
+ <Verify variant='Bold' color='#4E31DB' size={20} />
98
+ <div className="relative w-fit font-medium text-[#192221b3] text-[12px] tracking-[0] leading-[normal] whitespace-nowrap">
99
+ Verified
100
+ </div>
101
+ </div>
102
+ </div>
103
+ <div class="relative w-fit font-normal text-[#999999] text-[12px] tracking-[0] leading-[14px] whitespace-nowrap">
104
+ Jurong west
105
+ </div>
106
+ </div>
107
+ <div className='flex flex-wrap items-start gap-4 relative'>
108
+ <button class="flex items-center justify-center gap-[5px] xs_p-[11px] lg_px-[20px] lg_py-[8px] relative bg-white rounded-[30px] border border-solid border-[#6243fa]">
109
+ <div class="flex items-center justify-center gap-[10px] relative">
110
+ <Sms color="#6243FA" size={14} variant="Outline" className='stroke-[#6243FA]' />
111
+ <div class="relative xs_hidden lg_flex w-fit font-medium text-[#6243fa] text-[14px] tracking-[0] leading-[20px] whitespace-nowrap">
112
+ Message
113
+ </div>
114
+ </div>
115
+ </button>
116
+ <button class="flex items-center justify-center gap-[5px] xs_p-[11px] lg_px-[20px] lg_py-[8px] relative bg-[#280135] rounded-[30px] border border-solid border-[#280135]">
117
+ <div class="flex items-center justify-center gap-[10px] relative">
118
+ <Message color='#FFFFFF' size={14} variant="Outline" className='stroke-[#FFFFFF]' />
119
+ <div class="relative xs_hidden lg_flex w-fit font-medium text-[#fff] text-[14px] tracking-[0] leading-[20px] whitespace-nowrap">
120
+ Chat With Seller
121
+ </div>
122
+ </div>
123
+ </button>
124
+ <button class="flex items-center justify-center gap-[5px] p-[11px] relative bg-white rounded-[30px] overflow-hidden border border-solid border-[#6243fa]">
125
+ <Heart color='#6243FA' size={14} variant="Outline" className='stroke-[#6243FA]' />
126
+ </button>
127
+ <button class="flex items-center justify-center gap-[5px] p-[11px] relative bg-white rounded-[30px] overflow-hidden border border-solid border-[#6243fa]">
128
+ <Share color='#6243FA' size={14} variant="Outline" className='stroke-[#6243FA]' />
129
+ </button>
130
+ </div>
131
+ </div>
132
+ </div>
133
+ <div class="flex items-center gap-[20px] px-[10px] py-[30px] relative">
134
+ <div class="flex flex-col items-center justify-center gap-[9px] p-[10px] relative">
135
+ <div class="flex items-center gap-[6px] relative">
136
+ <BoxTick color="#B9AEC5" variant="Outline" size={18} className='stroke-[#B9AEC5] stroke-[.5px]' />
137
+ <div class="[font-family:'Noto_Sans',Helvetica] font-semibold text-[#005947] text-[18px] relative w-fit tracking-[0] leading-[normal] whitespace-nowrap">
138
+ 121
139
+ </div>
140
+ </div>
141
+ <div class="relative w-fit [font-family:'Frederik-Regular',Helvetica] font-normal text-[#009a7b] text-[10px] tracking-[0] leading-[normal] whitespace-nowrap">
142
+ Total Sales
143
+ </div>
144
+ </div>
145
+ <img class="relative self-stretch w-px object-cover" alt="Line" src="https://c.animaapp.com/2pP7niVX/img/line-16.svg" />
146
+ <div class="flex flex-col items-center justify-center gap-[9px] p-[10px] relative">
147
+ <div class="flex items-center gap-[5px] relative">
148
+ <Star1 color='#F7C317' size={18} className='fill-[#F7C317]' />
149
+ <div class="relative self-stretch w-[25px] mt-[-1.00px] font-bold text-[#005947] text-[18px] tracking-[0] leading-[normal] whitespace-nowrap">
150
+ 4.7
151
+ </div>
152
+ </div>
153
+ <div class="relative w-fit [font-family:'Frederik-Regular',Helvetica] font-normal text-[#009a7b] text-[10px] tracking-[0] leading-[normal] whitespace-nowrap">
154
+ Rating &amp; Reviews
155
+ </div>
156
+ </div>
157
+ </div>
158
+ </div>
159
+ <Tabs
160
+ data={dataTabs}
161
+ tabContentWrapperClassName='!p-0'
162
+ hasContent
163
+ tabWrapperClassName='xl_gap-x-[60px]'
164
+ />
165
+ </div>
166
+ // <div className='py-8'>
167
+ // <Slider seller={seller} rootClassname='mb-[30px]' />
168
+ // <div className='flex items-center justify-between mb-[30px] p-[20px] rounded-[6px] border border-solid border-[#e6e9ea] shadow-[0px_0px_5px_3px_#d9d9d933]'>
169
+ // <div className='inline-flex items-center gap-[15px] relative flex-[0_0_auto]'>
170
+ // <img className="relative w-[100px] h-[100px] object-cover" alt="Rectangle" src={seller ? seller.thumbnail : ''} />
171
+ // <div className='inline-flex flex-col h-[100px] items-start justify-between relative flex-[0_0_auto]'>
172
+ // <div className='inline-flex flex-col items-start gap-[6px] relative flex-[0_0_auto]'>
173
+ // <div className="items-center gap-[10px] inline-flex relative flex-[0_0_auto]">
174
+ // <div className="relative w-fit mt-[-1.00px] font-semibold text-[#1b1b1b] text-[20px] tracking-[0] leading-[24px] whitespace-nowrap">
175
+ // {seller ? seller.name : ''}
176
+ // </div>
177
+ // <div className="inline-flex items-center gap-[5px] relative flex-[0_0_auto]">
178
+ // <Verify variant='Bold' color='#4E31DB' size={20} />
179
+ // <div className="relative w-fit font-medium text-[#192221b3] text-[12px] tracking-[0] leading-[normal] whitespace-nowrap">
180
+ // Verified
181
+ // </div>
182
+ // </div>
183
+ // </div>
184
+ // <div class="relative w-fit font-normal text-[#999999] text-[12px] tracking-[0] leading-[14px] whitespace-nowrap">
185
+ // Jurong west
186
+ // </div>
187
+ // </div>
188
+ // <div className='inline-flex items-start gap-[15px] relative flex-[0_0_auto]'>
189
+ // <div class="flex items-center justify-center gap-[5px] px-[20px] py-[8px] relative bg-white rounded-[30px] border border-solid border-[#6243fa]">
190
+ // <div class="inline-flex items-center justify-center gap-[10px] relative flex-[0_0_auto]">
191
+ // <Sms color="#6243FA" size={14} variant="Outline" className='stroke-[#6243FA]' />
192
+ // <div class="relative w-fit mt-[-1.00px] font-medium text-[#6243fa] text-[14px] tracking-[0] leading-[20px] whitespace-nowrap">
193
+ // Message
194
+ // </div>
195
+ // </div>
196
+ // </div>
197
+ // <div class="flex items-center justify-center gap-[5px] px-[20px] py-[8px] relative bg-[#280135] rounded-[30px] border border-solid border-[#280135]">
198
+ // <div class="inline-flex items-center justify-center gap-[10px] relative flex-[0_0_auto]">
199
+ // <Message color='#FFFFFF' size={14} variant="Outline" className='stroke-[#FFFFFF]' />
200
+ // <div class="relative w-fit mt-[-1.00px] font-medium text-[#fff] text-[14px] tracking-[0] leading-[20px] whitespace-nowrap">
201
+ // Chat With Seller
202
+ // </div>
203
+ // </div>
204
+ // </div>
205
+ // <div class="inline-flex items-center justify-center gap-[5px] p-[11px] relative flex-[0_0_auto] bg-white rounded-[30px] overflow-hidden border border-solid border-[#6243fa]">
206
+ // <Heart color='#6243FA' size={14} variant="Outline" className='stroke-[#6243FA]' />
207
+ // </div>
208
+ // <div class="inline-flex items-center justify-center gap-[5px] p-[11px] relative flex-[0_0_auto] bg-white rounded-[30px] overflow-hidden border border-solid border-[#6243fa]">
209
+ // <Share color='#6243FA' size={14} variant="Outline" className='stroke-[#6243FA]' />
210
+ // </div>
211
+ // </div>
212
+ // </div>
213
+ // </div>
214
+ // <div class="inline-flex items-center gap-[20px] px-[10px] py-[30px] relative flex-[0_0_auto]">
215
+ // <div class="inline-flex flex-col items-center justify-center gap-[9px] p-[10px] relative flex-[0_0_auto]">
216
+ // <div class="inline-flex items-center gap-[6px] relative flex-[0_0_auto]">
217
+ // <BoxTick color="#B9AEC5" variant="Outline" size={18} className='stroke-[#B9AEC5] stroke-[.5px]' />
218
+ // <div class="[font-family:'Noto_Sans',Helvetica] font-semibold text-[#005947] text-[18px] relative w-fit tracking-[0] leading-[normal] whitespace-nowrap">
219
+ // 121
220
+ // </div>
221
+ // </div>
222
+ // <div class="relative w-fit [font-family:'Frederik-Regular',Helvetica] font-normal text-[#009a7b] text-[10px] tracking-[0] leading-[normal] whitespace-nowrap">
223
+ // Total Sales
224
+ // </div>
225
+ // </div>
226
+ // <img class="relative self-stretch w-px object-cover" alt="Line" src="https://c.animaapp.com/2pP7niVX/img/line-16.svg" />
227
+ // <div class="inline-flex flex-col items-center justify-center gap-[9px] p-[10px] relative flex-[0_0_auto]">
228
+ // <div class="inline-flex items-center gap-[5px] relative flex-[0_0_auto]">
229
+ // <Star1 color='#F7C317' size={18} className='fill-[#F7C317]' />
230
+ // <div class="relative self-stretch w-[25px] mt-[-1.00px] font-bold text-[#005947] text-[18px] tracking-[0] leading-[normal] whitespace-nowrap">
231
+ // 4.7
232
+ // </div>
233
+ // </div>
234
+ // <div class="relative w-fit [font-family:'Frederik-Regular',Helvetica] font-normal text-[#009a7b] text-[10px] tracking-[0] leading-[normal] whitespace-nowrap">
235
+ // Rating &amp; Reviews
236
+ // </div>
237
+ // </div>
238
+ // </div>
239
+ // </div>
240
+ // <Tabs
241
+ // data={dataTabs}
242
+ // tabContentWrapperClassName='!p-0'
243
+ // hasContent
244
+ // />
245
+ // </div>
246
+ )
247
+ }
248
+
249
+ export default Seller;
@@ -1,110 +1,110 @@
1
- import React, { Fragment, Suspense } from 'react';
2
- import { shape, string } from 'prop-types';
3
- import { FormattedMessage, useIntl } from 'react-intl';
4
-
5
- import { useSellerAccountPage } from '@riosst100/pwa-marketplace/src/talons/SellerAccountPage/useSellerAccountPage';
6
- import { useStyle } from '@magento/venia-ui/lib/classify';
7
- // import SellerAccount from '@riosst100/pwa-marketplace/src/components/SellerAccount';
8
- import { StoreTitle } from '@magento/venia-ui/lib/components/Head';
9
- import defaultClasses from './sellerAccountPage.module.css';
10
- import { fullPageLoadingIndicator } from '@magento/venia-ui/lib/components/LoadingIndicator';
11
- import AccountInformationPageOperations from '@magento/venia-ui/lib/components/AccountInformationPage/accountInformationPage.gql.js';
12
- import Button from '@magento/venia-ui/lib/components/Button';
13
-
14
- const SellerAccountPage = props => {
15
- const classes = useStyle(defaultClasses, props.classes);
16
- const sellerAccountProps = useSellerAccountPage({
17
- ...AccountInformationPageOperations
18
- });
19
- const {
20
- handleCancel,
21
- formErrors,
22
- handleChangePassword,
23
- handleSubmit,
24
- initialValues,
25
- isDisabled,
26
- isUpdateMode,
27
- loadDataError,
28
- shouldShowNewPassword,
29
- showUpdateMode,
30
- recaptchaWidgetProps
31
- } = sellerAccountProps;
32
- const { formatMessage } = useIntl();
33
-
34
- let sellerAccountDetails = null;
35
- let sellerLoginAccount = null;
36
- if (!initialValues) {
37
- return fullPageLoadingIndicator;
38
- } else {
39
- const { customer } = initialValues;
40
- const customerName = `${customer.firstname} ${customer.lastname}`;
41
- const passwordValue = 'Same as current';
42
-
43
- sellerLoginAccount = (
44
- <Fragment>
45
- <div className={classes.accountDetails}>
46
- <span className={classes.nameLabel}>
47
- <FormattedMessage
48
- id={'global.sellerDashboardLoginAccountText'}
49
- defaultMessage={'Seller Dashboard Login Account'}
50
- />
51
- </span>
52
- <div className={classes.lineItemsContainer}>
53
- <span className={classes.emailLabel}>
54
- <FormattedMessage
55
- id={'global.email'}
56
- defaultMessage={'Email'}
57
- />
58
- </span>
59
- <span className={classes.emailValue}>
60
- {customer.email}
61
- </span>
62
- <span className={classes.passwordLabel}>
63
- <FormattedMessage
64
- id={'global.password'}
65
- defaultMessage={'Password'}
66
- />
67
- </span>
68
- <span className={classes.passwordValue}>
69
- {passwordValue}
70
- </span>
71
- </div>
72
- <div className={classes.editButtonContainer}>
73
- <a href={process.env.MAGENTO_BACKEND_URL + "/lofmarketplace/seller/login"} className={classes.editInformationButton}>
74
- <FormattedMessage
75
- id={'global.sellerDashboardText'}
76
- defaultMessage={'Seller Dashboard'}
77
- />
78
- </a>
79
- </div>
80
- </div>
81
- </Fragment>
82
- );
83
- }
84
-
85
- return (
86
- <div className={classes.root}>
87
- <StoreTitle>
88
- {formatMessage({
89
- id: 'sellerAccountPage.title',
90
- defaultMessage: 'Seller Account'
91
- })}
92
- </StoreTitle>
93
- {sellerLoginAccount}
94
- </div>
95
- )
96
- }
97
-
98
- export default SellerAccountPage;
99
-
100
- SellerAccountPage.defaultProps = {
101
- signedInRedirectUrl: '/seller-account',
102
- signInPageUrl: '/sign-in'
103
- };
104
-
105
- SellerAccountPage.propTypes = {
106
- classes: shape({
107
- root: string
108
- }),
109
- signedInRedirectUrl: string
110
- };
1
+ import React, { Fragment, Suspense } from 'react';
2
+ import { shape, string } from 'prop-types';
3
+ import { FormattedMessage, useIntl } from 'react-intl';
4
+
5
+ import { useSellerAccountPage } from '@riosst100/pwa-marketplace/src/talons/SellerAccountPage/useSellerAccountPage';
6
+ import { useStyle } from '@magento/venia-ui/lib/classify';
7
+ // import SellerAccount from '@riosst100/pwa-marketplace/src/components/SellerAccount';
8
+ import { StoreTitle } from '@magento/venia-ui/lib/components/Head';
9
+ import defaultClasses from './sellerAccountPage.module.css';
10
+ import { fullPageLoadingIndicator } from '@magento/venia-ui/lib/components/LoadingIndicator';
11
+ import AccountInformationPageOperations from '@magento/venia-ui/lib/components/AccountInformationPage/accountInformationPage.gql.js';
12
+ import Button from '@magento/venia-ui/lib/components/Button';
13
+
14
+ const SellerAccountPage = props => {
15
+ const classes = useStyle(defaultClasses, props.classes);
16
+ const sellerAccountProps = useSellerAccountPage({
17
+ ...AccountInformationPageOperations
18
+ });
19
+ const {
20
+ handleCancel,
21
+ formErrors,
22
+ handleChangePassword,
23
+ handleSubmit,
24
+ initialValues,
25
+ isDisabled,
26
+ isUpdateMode,
27
+ loadDataError,
28
+ shouldShowNewPassword,
29
+ showUpdateMode,
30
+ recaptchaWidgetProps
31
+ } = sellerAccountProps;
32
+ const { formatMessage } = useIntl();
33
+
34
+ let sellerAccountDetails = null;
35
+ let sellerLoginAccount = null;
36
+ if (!initialValues) {
37
+ return fullPageLoadingIndicator;
38
+ } else {
39
+ const { customer } = initialValues;
40
+ const customerName = `${customer.firstname} ${customer.lastname}`;
41
+ const passwordValue = 'Same as current';
42
+
43
+ sellerLoginAccount = (
44
+ <Fragment>
45
+ <div className={classes.accountDetails}>
46
+ <span className={classes.nameLabel}>
47
+ <FormattedMessage
48
+ id={'global.sellerDashboardLoginAccountText'}
49
+ defaultMessage={'Seller Dashboard Login Account'}
50
+ />
51
+ </span>
52
+ <div className={classes.lineItemsContainer}>
53
+ <span className={classes.emailLabel}>
54
+ <FormattedMessage
55
+ id={'global.email'}
56
+ defaultMessage={'Email'}
57
+ />
58
+ </span>
59
+ <span className={classes.emailValue}>
60
+ {customer.email}
61
+ </span>
62
+ <span className={classes.passwordLabel}>
63
+ <FormattedMessage
64
+ id={'global.password'}
65
+ defaultMessage={'Password'}
66
+ />
67
+ </span>
68
+ <span className={classes.passwordValue}>
69
+ {passwordValue}
70
+ </span>
71
+ </div>
72
+ <div className={classes.editButtonContainer}>
73
+ <a href={process.env.MAGENTO_BACKEND_URL + "/lofmarketplace/seller/login"} className={classes.editInformationButton}>
74
+ <FormattedMessage
75
+ id={'global.sellerDashboardText'}
76
+ defaultMessage={'Seller Dashboard'}
77
+ />
78
+ </a>
79
+ </div>
80
+ </div>
81
+ </Fragment>
82
+ );
83
+ }
84
+
85
+ return (
86
+ <div className={classes.root}>
87
+ <StoreTitle>
88
+ {formatMessage({
89
+ id: 'sellerAccountPage.title',
90
+ defaultMessage: 'Seller Account'
91
+ })}
92
+ </StoreTitle>
93
+ {sellerLoginAccount}
94
+ </div>
95
+ )
96
+ }
97
+
98
+ export default SellerAccountPage;
99
+
100
+ SellerAccountPage.defaultProps = {
101
+ signedInRedirectUrl: '/seller-account',
102
+ signInPageUrl: '/sign-in'
103
+ };
104
+
105
+ SellerAccountPage.propTypes = {
106
+ classes: shape({
107
+ root: string
108
+ }),
109
+ signedInRedirectUrl: string
110
+ };
@@ -1,55 +1,55 @@
1
- .root {
2
- composes: grid from global;
3
- composes: gap-y-md from global;
4
- composes: px-lg from global;
5
- composes: py-md from global;
6
- }
7
-
8
- .title {
9
- composes: font-bold from global;
10
- composes: font-serif from global;
11
- composes: justify-self-center from global;
12
- }
13
-
14
- .accountDetails {
15
- composes: gap-y-md from global;
16
- composes: grid from global;
17
- composes: grid-cols-1 from global;
18
-
19
- composes: lg_grid-cols-3 from global;
20
- }
21
-
22
- .lineItemsContainer {
23
- composes: gap-3 from global;
24
- composes: grid from global;
25
- composes: grid-cols-1 from global;
26
- composes: leading-normal from global;
27
- grid-column: 1 / span 1;
28
-
29
- composes: lg_gap-xs from global;
30
- composes: lg_grid-cols-2 from global;
31
- }
32
-
33
- .lineItemLabel {
34
- composes: font-bold from global;
35
- }
36
-
37
- .nameLabel,
38
- .emailLabel,
39
- .passwordLabel {
40
- composes: font-bold from global;
41
- }
42
-
43
- .nameValue,
44
- .emailValue,
45
- .passwordValue {
46
- }
47
-
48
- .editButtonContainer {
49
- grid-column: 1 / span 1;
50
- composes: text-center from global;
51
- }
52
-
53
- .editInformationButton {
54
- composes: root_normalPriority from '@magento/venia-ui/lib/components/Button/button.module.css';
55
- }
1
+ .root {
2
+ composes: grid from global;
3
+ composes: gap-y-md from global;
4
+ composes: px-lg from global;
5
+ composes: py-md from global;
6
+ }
7
+
8
+ .title {
9
+ composes: font-bold from global;
10
+ composes: font-serif from global;
11
+ composes: justify-self-center from global;
12
+ }
13
+
14
+ .accountDetails {
15
+ composes: gap-y-md from global;
16
+ composes: grid from global;
17
+ composes: grid-cols-1 from global;
18
+
19
+ composes: lg_grid-cols-3 from global;
20
+ }
21
+
22
+ .lineItemsContainer {
23
+ composes: gap-3 from global;
24
+ composes: grid from global;
25
+ composes: grid-cols-1 from global;
26
+ composes: leading-normal from global;
27
+ grid-column: 1 / span 1;
28
+
29
+ composes: lg_gap-xs from global;
30
+ composes: lg_grid-cols-2 from global;
31
+ }
32
+
33
+ .lineItemLabel {
34
+ composes: font-bold from global;
35
+ }
36
+
37
+ .nameLabel,
38
+ .emailLabel,
39
+ .passwordLabel {
40
+ composes: font-bold from global;
41
+ }
42
+
43
+ .nameValue,
44
+ .emailValue,
45
+ .passwordValue {
46
+ }
47
+
48
+ .editButtonContainer {
49
+ grid-column: 1 / span 1;
50
+ composes: text-center from global;
51
+ }
52
+
53
+ .editInformationButton {
54
+ composes: root_normalPriority from '@magento/venia-ui/lib/components/Button/button.module.css';
55
+ }
@@ -1,11 +1,11 @@
1
- import { gql } from '@apollo/client';
2
-
3
- export const GET_SELLER_COUNTRIES_QUERY = gql`
4
- query GetSellerCountries {
5
- sellerCountries {
6
- id
7
- full_name_english
8
- two_letter_abbreviation
9
- }
10
- }
11
- `;
1
+ import { gql } from '@apollo/client';
2
+
3
+ export const GET_SELLER_COUNTRIES_QUERY = gql`
4
+ query GetSellerCountries {
5
+ sellerCountries {
6
+ id
7
+ full_name_english
8
+ two_letter_abbreviation
9
+ }
10
+ }
11
+ `;
@@ -1 +1 @@
1
- export { default } from './sellerInformation';
1
+ export { default } from './sellerInformation';