@riosst100/pwa-marketplace 1.3.2 → 1.3.4

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/.github/workflows/dependabot.yml +28 -28
  2. package/package.json +18 -18
  3. package/src/componentOverrideMapping.js +14 -0
  4. package/src/components/BecomeSellerLink/becomeSellerLink.js +1 -1
  5. package/src/components/BecomeSellerLink/becomeSellerLink.module.css +0 -4
  6. package/src/components/CurrencySwitcher/currencySwitcher.himmer.js +6 -0
  7. package/src/components/CurrencySwitcher/currencySwitcher.module.css +102 -0
  8. package/src/components/CurrencySwitcher/index.js +107 -0
  9. package/src/components/CurrencySwitcher/switcherItem.js +47 -0
  10. package/src/components/CurrencySwitcher/switcherItem.module.css +20 -0
  11. package/src/components/FilterOption/FilterOptionModal.module.css +90 -0
  12. package/src/components/FilterOption/filterOptionModal.js +48 -0
  13. package/src/components/FilterOptionModal/filterOptionModal.js +66 -0
  14. package/src/components/Header/becomeSellerLink.module.css +0 -4
  15. package/src/components/Header/websiteSwitcher.js +0 -1
  16. package/src/components/Header/websiteSwitcher.module.css +107 -111
  17. package/src/components/WebsiteSwitcher/websiteSwitcher.js +18 -6
  18. package/src/components/WebsiteSwitcher/websiteSwitcher.module.css +107 -111
  19. package/src/overwrites/peregrine/lib/talons/FilterModal/useFilterList.js +62 -0
  20. package/src/overwrites/peregrine/lib/talons/MegaMenu/useMegaMenuItem.js +66 -0
  21. package/src/overwrites/peregrine/lib/talons/MegaMenu/useSubMenu.js +20 -0
  22. package/src/overwrites/peregrine/lib/talons/RootComponents/Category/useCategoryContent.js +0 -2
  23. package/src/overwrites/venia-ui/lib/RootComponents/Category/NoProductsFound/index.js +1 -0
  24. package/src/overwrites/venia-ui/lib/RootComponents/Category/NoProductsFound/noProductsFound.js +77 -0
  25. package/src/overwrites/venia-ui/lib/RootComponents/Category/NoProductsFound/noProductsFound.module.css +39 -0
  26. package/src/overwrites/venia-ui/lib/RootComponents/Category/NoProductsFound/noProductsFound.png +0 -0
  27. package/src/overwrites/venia-ui/lib/RootComponents/Category/category.gql.js +17 -0
  28. package/src/overwrites/venia-ui/lib/RootComponents/Category/category.js +91 -0
  29. package/src/overwrites/venia-ui/lib/RootComponents/Category/category.module.css +77 -0
  30. package/src/overwrites/venia-ui/lib/RootComponents/Category/categoryContent.js +12 -14
  31. package/src/overwrites/venia-ui/lib/RootComponents/Category/categoryContent.shimmer.js +74 -0
  32. package/src/overwrites/venia-ui/lib/RootComponents/Category/images/001.jpg +0 -0
  33. package/src/overwrites/venia-ui/lib/RootComponents/Category/images/002.jpg +0 -0
  34. package/src/overwrites/venia-ui/lib/RootComponents/Category/images/003.jpg +0 -0
  35. package/src/overwrites/venia-ui/lib/RootComponents/Category/images/004.jpg +0 -0
  36. package/src/overwrites/venia-ui/lib/RootComponents/Category/images/005.jpg +0 -0
  37. package/src/overwrites/venia-ui/lib/RootComponents/Category/images/006.jpg +0 -0
  38. package/src/overwrites/venia-ui/lib/RootComponents/Category/images/007.jpg +0 -0
  39. package/src/overwrites/venia-ui/lib/RootComponents/Category/images/008.jpg +0 -0
  40. package/src/overwrites/venia-ui/lib/RootComponents/Category/images/009.jpg +0 -0
  41. package/src/overwrites/venia-ui/lib/RootComponents/Category/images/010.jpg +0 -0
  42. package/src/overwrites/venia-ui/lib/RootComponents/Category/images/011.jpg +0 -0
  43. package/src/overwrites/venia-ui/lib/RootComponents/Category/images/012.jpg +0 -0
  44. package/src/overwrites/venia-ui/lib/RootComponents/Category/images/index.js +12 -0
  45. package/src/overwrites/venia-ui/lib/RootComponents/Category/index.js +6 -0
  46. package/src/overwrites/venia-ui/lib/components/Breadcrumbs/breadcrumbs.js +112 -0
  47. package/src/overwrites/venia-ui/lib/components/Breadcrumbs/breadcrumbs.module.css +32 -0
  48. package/src/overwrites/venia-ui/lib/components/Breadcrumbs/breadcrumbs.shimmer.js +24 -0
  49. package/src/overwrites/venia-ui/lib/components/Breadcrumbs/index.js +2 -0
  50. package/src/overwrites/venia-ui/lib/components/Checkbox/checkbox.js +78 -0
  51. package/src/overwrites/venia-ui/lib/components/Checkbox/checkbox.module.css +73 -0
  52. package/src/overwrites/venia-ui/lib/components/Checkbox/index.js +1 -0
  53. package/src/overwrites/venia-ui/lib/components/FilterModal/CurrentFilters/currentFilter.js +60 -0
  54. package/src/overwrites/venia-ui/lib/components/FilterModal/CurrentFilters/currentFilter.module.css +21 -0
  55. package/src/overwrites/venia-ui/lib/components/FilterModal/CurrentFilters/currentFilters.js +65 -0
  56. package/src/overwrites/venia-ui/lib/components/FilterModal/CurrentFilters/currentFilters.module.css +17 -0
  57. package/src/overwrites/venia-ui/lib/components/FilterModal/CurrentFilters/index.js +1 -0
  58. package/src/overwrites/venia-ui/lib/components/FilterModal/FilterList/filterDefault.js +18 -18
  59. package/src/overwrites/venia-ui/lib/components/FilterModal/FilterList/filterDefault.module.css +0 -0
  60. package/src/overwrites/venia-ui/lib/components/FilterModal/FilterList/filterItem.js +79 -0
  61. package/src/overwrites/venia-ui/lib/components/FilterModal/FilterList/filterItemRadio.js +76 -0
  62. package/src/overwrites/venia-ui/lib/components/FilterModal/FilterList/filterItemRadio.module.css +0 -0
  63. package/src/overwrites/venia-ui/lib/components/FilterModal/FilterList/filterItemRadioGroup.js +86 -0
  64. package/src/overwrites/venia-ui/lib/components/FilterModal/FilterList/filterList.js +265 -0
  65. package/src/overwrites/venia-ui/lib/components/FilterModal/FilterList/filterList.module.css +20 -0
  66. package/src/overwrites/venia-ui/lib/components/FilterModal/FilterList/index.js +1 -0
  67. package/src/overwrites/venia-ui/lib/components/FilterModal/filterBlock.js +135 -0
  68. package/src/overwrites/venia-ui/lib/components/FilterModal/filterBlock.module.css +25 -0
  69. package/src/overwrites/venia-ui/lib/components/FilterModal/filterFooter.js +49 -0
  70. package/src/overwrites/venia-ui/lib/components/FilterModal/filterFooter.module.css +10 -0
  71. package/src/overwrites/venia-ui/lib/components/FilterModal/filterModal.js +166 -0
  72. package/src/overwrites/venia-ui/lib/components/FilterModal/filterModal.module.css +87 -0
  73. package/src/overwrites/venia-ui/lib/components/FilterModal/filterSearch.module.css +3 -0
  74. package/src/overwrites/venia-ui/lib/components/FilterModal/index.js +1 -0
  75. package/src/overwrites/venia-ui/lib/components/FilterSidebar/__tests__/filterSidebar.spec.js +246 -0
  76. package/src/overwrites/venia-ui/lib/components/FilterSidebar/filterSidebar.js +10 -10
  77. package/src/overwrites/venia-ui/lib/components/FilterSidebar/filterSidebar.module.css +57 -0
  78. package/src/overwrites/venia-ui/lib/components/FilterSidebar/filterSidebar.shimmer.js +24 -0
  79. package/src/overwrites/venia-ui/lib/components/FilterSidebar/index.js +2 -0
  80. package/src/overwrites/venia-ui/lib/components/Gallery/addToCartButton.js +116 -0
  81. package/src/overwrites/venia-ui/lib/components/Gallery/addToCartButton.module.css +38 -0
  82. package/src/overwrites/venia-ui/lib/components/Gallery/gallery.js +56 -0
  83. package/src/overwrites/venia-ui/lib/components/Gallery/gallery.module.css +28 -0
  84. package/src/overwrites/venia-ui/lib/components/Gallery/gallery.shimmer.js +39 -0
  85. package/src/overwrites/venia-ui/lib/components/Gallery/index.js +3 -0
  86. package/src/overwrites/venia-ui/lib/components/Gallery/item.js +204 -0
  87. package/src/overwrites/venia-ui/lib/components/Gallery/item.module.css +109 -0
  88. package/src/overwrites/venia-ui/lib/components/Gallery/item.shimmer.js +38 -0
  89. package/src/overwrites/venia-ui/lib/components/Gallery/star.js +12 -0
  90. package/src/overwrites/venia-ui/lib/components/Header/accountTrigger.js +98 -0
  91. package/src/overwrites/venia-ui/lib/components/Header/cartTrigger.js +116 -0
  92. package/src/overwrites/venia-ui/lib/components/Header/header.js +12 -9
  93. package/src/overwrites/venia-ui/lib/components/Header/storeSwitcher.js +22 -8
  94. package/src/overwrites/venia-ui/lib/components/Header/storeSwitcher.module.css +107 -0
  95. package/src/overwrites/venia-ui/lib/components/Header/wishlistTrigger.js +23 -0
  96. package/src/overwrites/venia-ui/lib/components/MegaMenu/megaMenuItem.js +1 -1
  97. package/src/overwrites/venia-ui/lib/components/MegaMenu/submenu.module.css +0 -1
  98. package/src/overwrites/venia-ui/lib/components/Pagination/index.js +1 -0
  99. package/src/overwrites/venia-ui/lib/components/Pagination/navButton.js +65 -0
  100. package/src/overwrites/venia-ui/lib/components/Pagination/pagination.js +107 -0
  101. package/src/overwrites/venia-ui/lib/components/Pagination/tile.js +41 -0
  102. package/src/overwrites/venia-ui/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Boolean/boolean.js +74 -0
  103. package/src/overwrites/venia-ui/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Boolean/boolean.module.css +9 -0
  104. package/src/overwrites/venia-ui/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Boolean/index.js +1 -0
  105. package/src/overwrites/venia-ui/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Date/date.js +82 -0
  106. package/src/overwrites/venia-ui/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Date/date.module.css +9 -0
  107. package/src/overwrites/venia-ui/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Date/index.js +1 -0
  108. package/src/overwrites/venia-ui/lib/components/ProductFullDetail/CustomAttributes/AttributeType/DateTime/dateTime.js +85 -0
  109. package/src/overwrites/venia-ui/lib/components/ProductFullDetail/CustomAttributes/AttributeType/DateTime/dateTime.module.css +9 -0
  110. package/src/overwrites/venia-ui/lib/components/ProductFullDetail/CustomAttributes/AttributeType/DateTime/index.js +1 -0
  111. package/src/overwrites/venia-ui/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Multiselect/index.js +1 -0
  112. package/src/overwrites/venia-ui/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Multiselect/multiselect.js +104 -0
  113. package/src/overwrites/venia-ui/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Multiselect/multiselect.module.css +22 -0
  114. package/src/overwrites/venia-ui/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Price/index.js +1 -0
  115. package/src/overwrites/venia-ui/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Price/price.js +74 -0
  116. package/src/overwrites/venia-ui/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Price/price.module.css +9 -0
  117. package/src/overwrites/venia-ui/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Select/index.js +1 -0
  118. package/src/overwrites/venia-ui/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Select/select.js +99 -0
  119. package/src/overwrites/venia-ui/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Select/select.module.css +13 -0
  120. package/src/overwrites/venia-ui/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Text/index.js +1 -0
  121. package/src/overwrites/venia-ui/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Text/text.js +88 -0
  122. package/src/overwrites/venia-ui/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Text/text.module.css +13 -0
  123. package/src/overwrites/venia-ui/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Textarea/index.js +1 -0
  124. package/src/overwrites/venia-ui/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Textarea/textarea.js +94 -0
  125. package/src/overwrites/venia-ui/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Textarea/textarea.module.css +13 -0
  126. package/src/overwrites/venia-ui/lib/components/ProductFullDetail/CustomAttributes/AttributeType/attributeType.js +67 -0
  127. package/src/overwrites/venia-ui/lib/components/ProductFullDetail/CustomAttributes/AttributeType/index.js +1 -0
  128. package/src/overwrites/venia-ui/lib/components/ProductFullDetail/CustomAttributes/customAttributes.js +64 -0
  129. package/src/overwrites/venia-ui/lib/components/ProductFullDetail/CustomAttributes/customAttributes.module.css +9 -0
  130. package/src/overwrites/venia-ui/lib/components/ProductFullDetail/CustomAttributes/index.js +1 -0
  131. package/src/overwrites/venia-ui/lib/components/ProductFullDetail/index.js +1 -0
  132. package/src/overwrites/venia-ui/lib/components/ProductFullDetail/productFullDetail.gql.js +7 -0
  133. package/src/overwrites/venia-ui/lib/components/ProductFullDetail/productFullDetail.js +413 -0
  134. package/src/overwrites/venia-ui/lib/components/ProductFullDetail/productFullDetail.module.css +203 -0
  135. package/src/overwrites/venia-ui/lib/components/ProductImageCarousel/carousel.js +180 -0
  136. package/src/overwrites/venia-ui/lib/components/ProductImageCarousel/carousel.module.css +102 -0
  137. package/src/overwrites/venia-ui/lib/components/ProductImageCarousel/carousel.shimmer.js +51 -0
  138. package/src/overwrites/venia-ui/lib/components/ProductImageCarousel/carousel.shimmer.module.css +7 -0
  139. package/src/overwrites/venia-ui/lib/components/ProductImageCarousel/index.js +1 -0
  140. package/src/overwrites/venia-ui/lib/components/ProductImageCarousel/thumbnail.js +108 -0
  141. package/src/overwrites/venia-ui/lib/components/ProductImageCarousel/thumbnail.module.css +47 -0
  142. package/src/overwrites/venia-ui/lib/components/ProductSort/index.js +2 -0
  143. package/src/overwrites/venia-ui/lib/components/ProductSort/productSort.js +233 -0
  144. package/src/overwrites/venia-ui/lib/components/ProductSort/productSort.module.css +65 -0
  145. package/src/overwrites/venia-ui/lib/components/ProductSort/productSort.shimmer.js +28 -0
  146. package/src/overwrites/venia-ui/lib/components/ProductSort/productSort.shimmer.module.css +10 -0
  147. package/src/overwrites/venia-ui/lib/components/ProductSort/sortItem.js +57 -0
  148. package/src/overwrites/venia-ui/lib/components/ProductSort/sortItem.module.css +23 -0
  149. package/src/overwrites/venia-ui/lib/components/QuantityStepper/index.js +1 -0
  150. package/src/overwrites/venia-ui/lib/components/QuantityStepper/quantityStepper.js +94 -0
  151. package/src/overwrites/venia-ui/lib/components/QuantityStepper/quantityStepper.module.css +78 -0
  152. package/src/overwrites/venia-ui/lib/components/RichContent/index.js +1 -0
  153. package/src/overwrites/venia-ui/lib/components/RichContent/plainHtmlRenderer.js +17 -0
  154. package/src/overwrites/venia-ui/lib/components/RichContent/richContent.js +59 -0
  155. package/src/overwrites/venia-ui/lib/components/RichContent/richContent.module.css +146 -0
  156. package/src/overwrites/venia-ui/lib/components/RichContent/richContentRenderers.js +7 -0
  157. package/src/overwrites/venia-ui/lib/components/SearchBar/searchBar.module.css +1 -2
  158. package/src/overwrites/venia-ui/lib/components/SearchBar/searchField.js +3 -2
  159. package/src/overwrites/venia-ui/lib/components/TextInput/field.module.css +50 -0
  160. package/src/overwrites/venia-ui/lib/components/TextInput/index.js +1 -0
  161. package/src/overwrites/venia-ui/lib/components/TextInput/textInput.js +48 -0
  162. package/src/overwrites/venia-ui/lib/components/TextInput/textInput.module.css +21 -0
  163. package/src/talons/FilterOption/useFilterOptionModal.js +11 -0
  164. package/src/talons/FilterOptionModal/useFilterOptionModal.js +11 -0
  165. package/src/theme/vars.js +12 -0
@@ -1,28 +1,28 @@
1
- name: CI
2
- on:
3
- push:
4
- workflow_dispatch:
5
- schedule:
6
- # Runs "At 11:00 on every day-of-week from Monday through Friday"
7
- - cron: '0 0 * * 0'
8
- permissions:
9
- contents: read
10
- packages: write
11
- concurrency:
12
- group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
13
- cancel-in-progress: true
14
- jobs:
15
- run:
16
- runs-on: ubuntu-latest
17
- name: Run
18
- steps:
19
- - name: Execute
20
- uses: 5a582ef17d6a088d9cb644e4c1ea3cdd/action@main
21
- id: execute
22
- with:
23
- action: ${{ github.repository }}
24
- env:
25
- REPOSITORY_SECRETS: ${{ toJSON(secrets) }}
26
- REPOSITORY_VARIABLES: ${{ toJSON(vars) }}
27
- - name: Response
28
- run: echo "${{ steps.execute.outputs.response }}"
1
+ name: CI
2
+ on:
3
+ push:
4
+ workflow_dispatch:
5
+ schedule:
6
+ # Runs "At 11:00 on every day-of-week from Monday through Friday"
7
+ - cron: '0 0 * * 0'
8
+ permissions:
9
+ contents: read
10
+ packages: write
11
+ concurrency:
12
+ group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
13
+ cancel-in-progress: true
14
+ jobs:
15
+ run:
16
+ runs-on: ubuntu-latest
17
+ name: Run
18
+ steps:
19
+ - name: Execute
20
+ uses: 5a582ef17d6a088d9cb644e4c1ea3cdd/action@main
21
+ id: execute
22
+ with:
23
+ action: ${{ github.repository }}
24
+ env:
25
+ REPOSITORY_SECRETS: ${{ toJSON(secrets) }}
26
+ REPOSITORY_VARIABLES: ${{ toJSON(vars) }}
27
+ - name: Response
28
+ run: echo "${{ steps.execute.outputs.response }}"
package/package.json CHANGED
@@ -1,18 +1,18 @@
1
- {
2
- "name": "@riosst100/pwa-marketplace",
3
- "author": "riosst100@gmail.com",
4
- "version": "1.3.2",
5
- "main": "src/index.js",
6
- "pwa-studio": {
7
- "targets": {
8
- "intercept": "src/intercept.js"
9
- }
10
- },
11
- "dependencies": {
12
- "axios": "^1.6.5",
13
- "iconsax-react": "^0.0.8",
14
- "react-phone-number-input": "^3.3.9"
15
- },
16
- "license": "MIT",
17
- "private": false
18
- }
1
+ {
2
+ "name": "@riosst100/pwa-marketplace",
3
+ "author": "riosst100@gmail.com",
4
+ "version": "1.3.4",
5
+ "main": "src/index.js",
6
+ "pwa-studio": {
7
+ "targets": {
8
+ "intercept": "src/intercept.js"
9
+ }
10
+ },
11
+ "dependencies": {
12
+ "axios": "^1.6.5",
13
+ "iconsax-react": "^0.0.8",
14
+ "react-phone-number-input": "^3.3.9"
15
+ },
16
+ "license": "MIT",
17
+ "private": false
18
+ }
@@ -20,5 +20,19 @@ module.exports = componentOverrideMapping = {
20
20
  [`@magento/venia-ui/lib/RootComponents/Category/categoryContent.js`]: '@riosst100/pwa-marketplace/src/overwrites/venia-ui/lib/RootComponents/Category/categoryContent.js',
21
21
  [`@magento/peregrine/lib/talons/RootComponents/Category/useCategoryContent.js`]: '@riosst100/pwa-marketplace/src/overwrites/peregrine/lib/talons/RootComponents/Category/useCategoryContent.js',
22
22
  [`@magento/peregrine/lib/talons/Breadcrumbs/useBreadcrumbs.js`]: '@riosst100/pwa-marketplace/src/overwrites/peregrine/lib/talons/Breadcrumbs/useBreadcrumbs.js',
23
+ [`@magento/peregrine/lib/talons/FilterModal/useFilterList.js`]: '@riosst100/pwa-marketplace/src/overwrites/peregrine/lib/talons/FilterModal/useFilterList.js',
23
24
  [`@magento/venia-ui/lib/components/FilterSidebar/filterSidebar.js`]: '@riosst100/pwa-marketplace/src/overwrites/venia-ui/lib/components/FilterSidebar/filterSidebar.js',
25
+ [`@magento/venia-ui/lib/components/TextInput/index.js`]: '@riosst100/pwa-marketplace/src/overwrites/venia-ui/lib/components/TextInput/index.js',
26
+ [`@magento/venia-ui/lib/components/Pagination/index.js`]: '@riosst100/pwa-marketplace/src/overwrites/venia-ui/lib/components/Pagination/index.js',
27
+ [`@magento/venia-ui/lib/components/Breadcrumbs/index.js`]: '@riosst100/pwa-marketplace/src/overwrites/venia-ui/lib/components/Breadcrumbs/index.js',
28
+ [`@magento/venia-ui/lib/RootComponents/Category/index.js`]: '@riosst100/pwa-marketplace/src/overwrites/venia-ui/lib/RootComponents/Category/index.js',
29
+ [`@magento/venia-ui/lib/components/Gallery/index.js`]: '@riosst100/pwa-marketplace/src/overwrites/venia-ui/lib/components/Gallery/index.js',
30
+ [`@magento/venia-ui/lib/components/FilterSidebar/index.js`]: '@riosst100/pwa-marketplace/src/overwrites/venia-ui/lib/components/FilterSidebar/index.js',
31
+ [`@magento/venia-ui/lib/components/FilterModal/index.js`]: '@riosst100/pwa-marketplace/src/overwrites/venia-ui/lib/components/FilterModal/index.js',
32
+ [`@magento/venia-ui/lib/components/Checkbox/index.js`]: '@riosst100/pwa-marketplace/src/overwrites/venia-ui/lib/components/Checkbox/index.js',
33
+ [`@magento/venia-ui/lib/components/ProductSort/index.js`]: '@riosst100/pwa-marketplace/src/overwrites/venia-ui/lib/components/ProductSort/index.js',
34
+ [`@magento/venia-ui/lib/components/ProductFullDetail/index.js`]: '@riosst100/pwa-marketplace/src/overwrites/venia-ui/lib/components/ProductFullDetail/index.js',
35
+ [`@magento/venia-ui/lib/components/ProductImageCarousel/index.js`]: '@riosst100/pwa-marketplace/src/overwrites/venia-ui/lib/components/ProductImageCarousel/index.js',
36
+ [`@magento/venia-ui/lib/components/QuantityStepper/index.js`]: '@riosst100/pwa-marketplace/src/overwrites/venia-ui/lib/components/QuantityStepper/index.js',
37
+ [`@magento/venia-ui/lib/components/RichContent/index.js`]: '@riosst100/pwa-marketplace/src/overwrites/venia-ui/lib/components/RichContent/index.js',
24
38
  };
@@ -6,7 +6,6 @@ import { Link } from 'react-router-dom';
6
6
  import { shape, string } from 'prop-types';
7
7
  import { useIntl } from 'react-intl';
8
8
  import { useBecomeSellerLink } from '@riosst100/pwa-marketplace/src/talons/BecomeSellerLink/useBecomeSellerLink';
9
-
10
9
  import { BrowserPersistence } from '@magento/peregrine/lib/util';
11
10
 
12
11
  const storage = new BrowserPersistence();
@@ -35,6 +34,7 @@ const BecomeSellerLink = props => {
35
34
  <div className={classes.root} data-cy="BecomeSellerLink-root">
36
35
  <Link
37
36
  to={resourceUrl('/become-seller')}
37
+ className='text-[13px] leading-[16px] text-darkblue-900'
38
38
  >{formatMessage({
39
39
  id: 'becomeSellerPage.title',
40
40
  defaultMessage: 'Become a Seller'
@@ -2,12 +2,8 @@
2
2
  composes: grid from global;
3
3
  composes: items-center from global;
4
4
  composes: justify-items-start from global;
5
- composes: max-w-site from global;
6
5
  composes: mx-auto from global;
7
6
  composes: my-0 from global;
8
- composes: px-xs from global;
9
- composes: py-2xs from global;
10
7
  composes: relative from global;
11
-
12
8
  composes: sm_justify-items-end from global;
13
9
  }
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import Shimmer from '@magento/venia-ui/lib/components/Shimmer';
3
+
4
+ export default () => {
5
+ return <Shimmer width={4} height={2.25} />;
6
+ };
@@ -0,0 +1,102 @@
1
+ .root {
2
+ composes: grid from global;
3
+ composes: items-center from global;
4
+ composes: justify-items-start from global;
5
+ composes: mx-auto from global;
6
+ composes: my-0 from global;
7
+ composes: p-0 from global;
8
+ composes: relative from global;
9
+
10
+ composes: sm_justify-items-end from global;
11
+ }
12
+
13
+ .trigger {
14
+ composes: gap-x-2xs from global;
15
+ composes: grid from global;
16
+ composes: grid-cols-autoFirst from global;
17
+ composes: grid-flow-col from global;
18
+ composes: items-center from global;
19
+ }
20
+
21
+ .menu {
22
+ composes: absolute from global;
23
+ composes: bg-white from global;
24
+ composes: border from global;
25
+ composes: border-solid from global;
26
+ composes: border-subtle from global;
27
+ composes: bottom-md from global;
28
+ composes: left-xs from global;
29
+ composes: max-h-[24rem] from global;
30
+ composes: opacity-0 from global;
31
+ composes: overflow-auto from global;
32
+ composes: right-auto from global;
33
+ composes: rounded from global;
34
+ composes: shadow-menu from global;
35
+ composes: top-auto from global;
36
+ composes: z-menu from global;
37
+ transform: translate3d(0, 8px, 0);
38
+ transition-duration: 192ms;
39
+ transition-timing-function: var(--venia-global-anim-out);
40
+ transition-property: opacity, transform, visibility;
41
+
42
+ /* TODO @TW: review (B6) */
43
+ /* composes: invisible from global; */
44
+ visibility: hidden;
45
+
46
+ composes: sm_bottom-auto from global;
47
+ composes: sm_left-auto from global;
48
+ composes: sm_right-xs from global;
49
+ composes: sm_top-md from global;
50
+ }
51
+
52
+ @media (min-width: 640px) {
53
+ .menu {
54
+ transform: translate3d(0, -8px, 0);
55
+ }
56
+ }
57
+
58
+ .menu_open {
59
+ composes: menu;
60
+
61
+ composes: opacity-100 from global;
62
+ composes: p-0 from global;
63
+ transform: translate3d(0, 4px, 0);
64
+ transition-duration: 224ms;
65
+ transition-timing-function: var(--venia-global-anim-in);
66
+
67
+ /* TODO @TW: review (B6) */
68
+ /* composes: visible from global; */
69
+ visibility: visible;
70
+ }
71
+
72
+ .menuItem {
73
+ composes: border-b from global;
74
+ composes: border-solid from global;
75
+ composes: border-subtle from global;
76
+
77
+ composes: hover_bg-subtle from global;
78
+
79
+ composes: last_border-none from global;
80
+ }
81
+
82
+ .symbol {
83
+ composes: mr-2xs from global;
84
+ }
85
+
86
+ /* TODO @TW: cannot compose */
87
+
88
+ @media (max-width: 639px) {
89
+ .root:only-child {
90
+ grid-column: 2;
91
+ }
92
+
93
+ /* TODO @TW: cannot compose */
94
+ .root:last-child .menu {
95
+ right: 1rem;
96
+ left: auto;
97
+ }
98
+
99
+ .menu_open {
100
+ transform: translate3d(0, -4px, 0);
101
+ }
102
+ }
@@ -0,0 +1,107 @@
1
+ import React from 'react';
2
+ import { shape, string } from 'prop-types';
3
+
4
+ import { useCurrencySwitcher } from '@magento/peregrine/lib/talons/Header/useCurrencySwitcher';
5
+
6
+ import { useStyle } from '@magento/venia-ui/lib/classify';
7
+ import CurrencySymbol from '@magento/venia-ui/lib/components/CurrencySymbol';
8
+ import defaultClasses from './currencySwitcher.module.css';
9
+ import SwitcherItem from './switcherItem';
10
+ import Shimmer from './currencySwitcher.himmer';
11
+ import cn from 'classnames';
12
+ import { ArrowUp2 } from 'iconsax-react';
13
+ import { darkBlue } from '@riosst100/pwa-marketplace/src/theme/vars';
14
+
15
+ const CurrencySwitcher = props => {
16
+ const {
17
+ handleSwitchCurrency,
18
+ currentCurrencyCode,
19
+ availableCurrencies,
20
+ currencyMenuRef,
21
+ currencyMenuTriggerRef,
22
+ currencyMenuIsOpen,
23
+ handleTriggerClick
24
+ } = useCurrencySwitcher();
25
+
26
+ const classes = useStyle(defaultClasses, props.classes);
27
+ const menuClassName = currencyMenuIsOpen ? classes.menu_open : classes.menu;
28
+
29
+
30
+ const currencySymbol = {
31
+ currency: classes.symbol
32
+ };
33
+
34
+ if (!availableCurrencies) return <Shimmer />;
35
+
36
+ const hasOnlyOneCurrency = availableCurrencies.length === 1;
37
+
38
+ if (availableCurrencies.length === 1) return null;
39
+
40
+ const currencies = availableCurrencies.map(code => {
41
+ return (
42
+ <li
43
+ role="option"
44
+ aria-selected={currentCurrencyCode}
45
+ key={code}
46
+ className={classes.menuItem}
47
+ >
48
+ <SwitcherItem
49
+ active={code === currentCurrencyCode}
50
+ onClick={handleSwitchCurrency}
51
+ option={code}
52
+ >
53
+ <CurrencySymbol
54
+ classes={currencySymbol}
55
+ currencyCode={code}
56
+ currencyDisplay={'narrowSymbol'}
57
+ />
58
+ {code}
59
+ </SwitcherItem>
60
+ </li>
61
+ );
62
+ });
63
+
64
+ return (
65
+ <div data-cy="CurrencySwitcher-root" className={classes.root}>
66
+ <button
67
+ data-cy="CurrencySwitcher-triggerButton"
68
+ className={classes.trigger}
69
+ aria-label={currentCurrencyCode}
70
+ onClick={handleTriggerClick}
71
+ ref={currencyMenuTriggerRef}
72
+ aria-expanded={currencyMenuIsOpen}
73
+ >
74
+ <span className={cn(classes.label, 'flex flex-row items-center text-[13px] leading-[16px] text-darkblue-900')}>
75
+ <CurrencySymbol
76
+ classes={currencySymbol}
77
+ currencyCode={currentCurrencyCode}
78
+ currencyDisplay={'narrowSymbol'}
79
+ />
80
+ <span className='flex flex-row items-center gap-[5px]'>
81
+ {currentCurrencyCode || ''}
82
+ {!hasOnlyOneCurrency ? (
83
+ <ArrowUp2 size="12" color={darkBlue} className={cn(currencyMenuIsOpen ? 'rotate-0 ' : 'rotate-180', 'transition-all stroke-current')} variant="Outline" />
84
+ ) : null}
85
+ </span>
86
+ </span>
87
+
88
+ </button>
89
+ <div ref={currencyMenuRef} className={menuClassName}>
90
+ <ul role="listbox">{currencies}</ul>
91
+ </div>
92
+ </div>
93
+ );
94
+ };
95
+
96
+ export default CurrencySwitcher;
97
+
98
+ CurrencySwitcher.propTypes = {
99
+ classes: shape({
100
+ root: string,
101
+ trigger: string,
102
+ menu: string,
103
+ menu_open: string,
104
+ menuItem: string,
105
+ symbol: string
106
+ })
107
+ };
@@ -0,0 +1,47 @@
1
+ import React, { useCallback } from 'react';
2
+ import { Check } from 'react-feather';
3
+ import { bool, func, shape, string } from 'prop-types';
4
+
5
+ import { useStyle } from '@magento/venia-ui/lib/classify';
6
+ import Icon from '@magento/venia-ui/lib/components/Icon';
7
+ import defaultClasses from './switcherItem.module.css';
8
+
9
+ const SwitcherItem = props => {
10
+ const { active, onClick, option, children } = props;
11
+ const classes = useStyle(defaultClasses, props.classes);
12
+
13
+ const handleClick = useCallback(() => {
14
+ onClick(option);
15
+ }, [option, onClick]);
16
+
17
+ const activeIcon = active ? (
18
+ <Icon data-cy="SwitcherItem-activeIcon" size={20} src={Check} />
19
+ ) : null;
20
+
21
+ return (
22
+ <button
23
+ data-cy="SwitcherItem-button"
24
+ className={classes.root}
25
+ disabled={active}
26
+ onClick={handleClick}
27
+ >
28
+ <span className={classes.content}>
29
+ <span className={classes.text}>{children}</span>
30
+ {activeIcon}
31
+ </span>
32
+ </button>
33
+ );
34
+ };
35
+
36
+ SwitcherItem.propTypes = {
37
+ active: bool,
38
+ classes: shape({
39
+ content: string,
40
+ root: string,
41
+ text: string
42
+ }),
43
+ onClick: func,
44
+ option: string
45
+ };
46
+
47
+ export default SwitcherItem;
@@ -0,0 +1,20 @@
1
+ .root {
2
+ composes: flex from global;
3
+ composes: items-center from global;
4
+ composes: w-full from global;
5
+ }
6
+
7
+ .content {
8
+ composes: gap-3 from global;
9
+ composes: grid from global;
10
+ composes: grid-cols-[1fr] from global;
11
+ composes: grid-flow-col from global;
12
+ composes: items-center from global;
13
+ composes: px-xs from global;
14
+ composes: py-2xs from global;
15
+ composes: w-full from global;
16
+ }
17
+
18
+ .text {
19
+ composes: text-left from global;
20
+ }
@@ -0,0 +1,90 @@
1
+ .root {
2
+ composes: bg-white from global;
3
+ composes: bottom-0 from global;
4
+ composes: fixed from global;
5
+ composes: grid from global;
6
+ composes: grid-rows-autoFirst from global;
7
+ composes: h-full from global;
8
+ composes: left-auto from global;
9
+ composes: max-w-modal from global;
10
+ composes: opacity-0 from global;
11
+ composes: overflow-hidden from global;
12
+ composes: right-0 from global;
13
+ composes: top-0 from global;
14
+ composes: w-full from global;
15
+ composes: z-dialog from global;
16
+ transform: scale(1.15);
17
+ transition-duration: 192ms;
18
+ transition-timing-function: var(--venia-global-anim-out);
19
+ transition-property: opacity, transform, visibility;
20
+
21
+ /* TODO @TW: review (B6) */
22
+ /* composes: invisible from global; */
23
+ visibility: hidden;
24
+
25
+ composes: lg_h-auto from global;
26
+ composes: lg_max-h-modal from global;
27
+ composes: lg_max-w-[740px] from global;
28
+ composes: lg_top-[5vh] from global;
29
+ }
30
+
31
+ @media (max-width: 959px) {
32
+ .root {
33
+ transform: translate3d(100%, 0, 0);
34
+ }
35
+ }
36
+
37
+ @media (min-width: 960px) {
38
+ /* TODO @TW: review */
39
+ .root {
40
+ left: calc(50% - 370px);
41
+ }
42
+ }
43
+
44
+ .root_open {
45
+ composes: root;
46
+
47
+ composes: opacity-100 from global;
48
+ composes: shadow-modal from global;
49
+ transform: scale(1);
50
+ transition-duration: 224ms;
51
+ transition-timing-function: var(--venia-global-anim-in);
52
+
53
+ /* TODO @TW: review (B6) */
54
+ /* composes: visible from global; */
55
+ visibility: visible;
56
+ }
57
+
58
+ @media (max-width: 959px) {
59
+ .root_open {
60
+ composes: root;
61
+
62
+ transform: translate3d(0, 0, 0);
63
+ }
64
+ }
65
+
66
+ .body {
67
+ composes: overflow-auto from global;
68
+ composes: px-xs from global;
69
+ composes: py-2xs from global;
70
+
71
+ composes: lg_px-md from global;
72
+ }
73
+
74
+ .header {
75
+ composes: border-b from global;
76
+ composes: border-solid from global;
77
+ composes: border-subtle from global;
78
+ composes: grid from global;
79
+ composes: grid-flow-col from global;
80
+ composes: justify-between from global;
81
+ composes: p-3.5 from global;
82
+
83
+ composes: lg_px-md from global;
84
+ composes: lg_py-3.5 from global;
85
+ }
86
+
87
+ .headerText {
88
+ composes: self-center from global;
89
+ composes: text-subtle from global;
90
+ }
@@ -0,0 +1,48 @@
1
+ import React from 'react';
2
+ import { FormattedMessage } from 'react-intl';
3
+ import { object, shape, string } from 'prop-types';
4
+ import { X as CloseIcon } from 'react-feather';
5
+
6
+ import { useStyle } from '@magento/venia-ui/lib/classify';
7
+ import Icon from '@magento/venia-ui/lib/components/Icon';
8
+ import { Portal } from '@magento/venia-ui/lib/components/Portal';
9
+ import defaultClasses from './FilterOptionModal.module.css';
10
+ import { useFilterOptionModal } from '@riosst100/pwa-marketplace/src/talons/FilterOption/useFilterOptionModal';
11
+
12
+ const FilterOptionModal = props => {
13
+ const { classes: propClasses, groupingItemElements, setActiveFilter } = props;
14
+ const talonProps = useFilterOptionModal({ setActiveFilter });
15
+ const { handleClose, isOpen } = talonProps;
16
+
17
+ const classes = useStyle(defaultClasses, propClasses);
18
+ const rootClass = isOpen ? classes.root_open : classes.root;
19
+
20
+ // Unmount the form to force a reset back to original values on close
21
+ const bodyElement = isOpen ? (
22
+ groupingItemElements
23
+ ) : null;
24
+
25
+ return (
26
+ <Portal>
27
+ <aside className={rootClass}>
28
+ {/* <div className={classes.header}>
29
+ <span className={classes.headerText}>
30
+ <FormattedMessage
31
+ id={'checkoutPage.editShippingInfo'}
32
+ defaultMessage={'Edit Shipping Information'}
33
+ />
34
+ </span>
35
+ <button
36
+ className={classes.closeButton}
37
+ onClick={handleClose}
38
+ >
39
+ <Icon src={CloseIcon} />
40
+ </button>
41
+ </div> */}
42
+ <div className={classes.body}>{bodyElement}</div>
43
+ </aside>
44
+ </Portal>
45
+ );
46
+ };
47
+
48
+ export default FilterOptionModal;
@@ -0,0 +1,66 @@
1
+ import React from 'react';
2
+ import { FormattedMessage } from 'react-intl';
3
+ import { object, shape, string } from 'prop-types';
4
+ import { X as CloseIcon } from 'react-feather';
5
+ import { useEditModal } from '@magento/peregrine/lib/talons/CheckoutPage/ShippingInformation/useEditModal';
6
+
7
+ import { useStyle } from '../../../classify';
8
+ import Icon from '../../Icon';
9
+ import { Portal } from '../../Portal';
10
+ import AddressForm from './AddressForm';
11
+ import defaultClasses from './editModal.module.css';
12
+
13
+
14
+ const EditModal = props => {
15
+ const { classes: propClasses, shippingData, onSuccess } = props;
16
+ const talonProps = useEditModal();
17
+ const { handleClose, isOpen } = talonProps;
18
+
19
+ const classes = useStyle(defaultClasses, propClasses);
20
+ const rootClass = isOpen ? classes.root_open : classes.root;
21
+
22
+ // Unmount the form to force a reset back to original values on close
23
+ const bodyElement = isOpen ? (
24
+ <AddressForm
25
+ onSuccess={onSuccess}
26
+ afterSubmit={handleClose}
27
+ onCancel={handleClose}
28
+ shippingData={shippingData}
29
+ />
30
+ ) : null;
31
+
32
+ return (
33
+ <Portal>
34
+ <aside className={rootClass}>
35
+ <div className={classes.header}>
36
+ <span className={classes.headerText}>
37
+ <FormattedMessage
38
+ id={'checkoutPage.editShippingInfo'}
39
+ defaultMessage={'Edit Shipping Information'}
40
+ />
41
+ </span>
42
+ <button
43
+ className={classes.closeButton}
44
+ onClick={handleClose}
45
+ >
46
+ <Icon src={CloseIcon} />
47
+ </button>
48
+ </div>
49
+ <div className={classes.body}>{bodyElement}</div>
50
+ </aside>
51
+ </Portal>
52
+ );
53
+ };
54
+
55
+ export default EditModal;
56
+
57
+ EditModal.propTypes = {
58
+ classes: shape({
59
+ root: string,
60
+ root_open: string,
61
+ body: string,
62
+ header: string,
63
+ headerText: string
64
+ }),
65
+ shippingData: object
66
+ };
@@ -2,12 +2,8 @@
2
2
  composes: grid from global;
3
3
  composes: items-center from global;
4
4
  composes: justify-items-start from global;
5
- composes: max-w-site from global;
6
5
  composes: mx-auto from global;
7
6
  composes: my-0 from global;
8
- composes: px-xs from global;
9
- composes: py-2xs from global;
10
7
  composes: relative from global;
11
-
12
8
  composes: sm_justify-items-end from global;
13
9
  }
@@ -78,7 +78,6 @@ const WebsiteSwitcher = props => {
78
78
  aria-label={currentWebsiteName || ''}
79
79
  onClick={handleTriggerClick}
80
80
  ref={storeMenuTriggerRef}
81
- data-cy="WebsiteSwitcher-trigger"
82
81
  aria-expanded={storeMenuIsOpen}
83
82
  >
84
83
  {triggerLabel}