@riosst100/pwa-marketplace 1.8.0 → 1.8.2

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 (63) hide show
  1. package/i18n/id_ID.json +508 -508
  2. package/package.json +1 -2
  3. package/src/components/CustomSubCategory/subCategory.js +0 -14
  4. package/src/components/FilterTop/FilterBlockList/filterTopItemGroup.module.css +1 -1
  5. package/src/components/FilterTop/filterTop.js +2 -2
  6. package/src/components/FilterTop/filterTop.module.css +1 -1
  7. package/src/components/FilterTopBackup/CustomFilters/customFilter.js +83 -83
  8. package/src/components/FilterTopBackup/CustomFilters/customFilter.module.css +21 -21
  9. package/src/components/FilterTopBackup/CustomFilters/customFilters.js +131 -131
  10. package/src/components/FilterTopBackup/CustomFilters/customFilters.module.css +22 -22
  11. package/src/components/FilterTopBackup/CustomFilters/index.js +1 -1
  12. package/src/components/FilterTopBackup/filterTop.js +14 -14
  13. package/src/components/FilterTopBackup/filterTop.module.css +22 -22
  14. package/src/components/FilterTopBackup/filterTop.shimmer.js +24 -24
  15. package/src/components/FilterTopBackup/index.js +2 -2
  16. package/src/components/Header/websiteSwitcher.shimmer.js +6 -6
  17. package/src/components/Header/websiteSwitcherItem.js +47 -47
  18. package/src/components/Header/websiteSwitcherItem.module.css +20 -20
  19. package/src/components/LegoSets/legoSets.js +21 -72
  20. package/src/components/PhoneTextInput/index.js +1 -1
  21. package/src/components/PhoneTextInput/phoneTextInput.js +62 -62
  22. package/src/components/ProductListTab/index.js +4 -4
  23. package/src/components/ProductListTab/productListTab.module.css +64 -64
  24. package/src/components/ProductListTab/productListTab.shimmer.js +24 -24
  25. package/src/components/SellerCountry/index.js +1 -1
  26. package/src/components/SellerCountry/sellerCountry.js +71 -71
  27. package/src/components/SellerCountry/sellerCountry.module.css +3 -3
  28. package/src/components/ShopByCategory/index.js +2 -2
  29. package/src/components/ShopByCategory/shopByCategory.js +69 -69
  30. package/src/components/ShopByCategory/shopByCategory.module.css +58 -58
  31. package/src/components/ShopByCategory/shopByCategory.shimmer.js +24 -24
  32. package/src/components/SubCategory/subCategory.js +1 -1
  33. package/src/components/WebsiteSwitcher/websiteSwitcher.shimmer.js +6 -6
  34. package/src/components/WebsiteSwitcher/websiteSwitcherItem.js +47 -47
  35. package/src/components/WebsiteSwitcher/websiteSwitcherItem.module.css +20 -20
  36. package/src/overwrites/peregrine/lib/talons/MegaMenu/megaMenu.gql.js +96 -96
  37. package/src/overwrites/peregrine/lib/talons/MegaMenu/useMegaMenu.js +199 -199
  38. package/src/overwrites/peregrine/lib/talons/MegaMenu/useMegaMenuItem.js +66 -66
  39. package/src/overwrites/peregrine/lib/talons/MegaMenu/useSubMenu.js +20 -20
  40. package/src/overwrites/peregrine/lib/talons/ProductFullDetail/useProductFullDetail.js +642 -642
  41. package/src/overwrites/peregrine/lib/talons/RootComponents/Category/category.gql.js +49 -49
  42. package/src/overwrites/peregrine/lib/talons/RootComponents/Category/useCategory.js +227 -227
  43. package/src/overwrites/peregrine/lib/talons/RootComponents/Product/product.gql.js +31 -31
  44. package/src/overwrites/peregrine/lib/talons/RootComponents/Product/productDetailFragment.gql.js +235 -235
  45. package/src/overwrites/venia-ui/lib/components/Header/cartTrigger.module.css +47 -47
  46. package/src/overwrites/venia-ui/lib/components/RadioGroup/radio.js +60 -60
  47. package/src/overwrites/venia-ui/lib/components/RadioGroup/radio.module.css +70 -70
  48. package/src/talons/AttributesBlock/attributesBlock.gql.js +15 -15
  49. package/src/talons/CustomFilters/customFilters.gql.js +45 -45
  50. package/src/talons/CustomFilters/useCustomFilters.js +5 -2
  51. package/src/talons/FilterTop/filterTop.gql.js +45 -45
  52. package/src/talons/FilterTop/index.js +1 -1
  53. package/src/talons/FilterTop/useFilterTop.js +9 -3
  54. package/src/talons/Header/websiteSwitcher.gql.js +45 -45
  55. package/src/talons/LegoSets/legoSets.gql.js +2 -2
  56. package/src/talons/LegoSets/useLegoSets.js +6 -56
  57. package/src/talons/SellerReview/sellerReview.gql.js +53 -53
  58. package/src/talons/ShopByCategory/index.js +1 -1
  59. package/src/talons/ShopByCategory/shopByCategory.gql.js +38 -38
  60. package/src/talons/ShopByCategory/useShopByCategory.js +69 -69
  61. package/src/talons/SubCategory/subCategory.gql.js +15 -15
  62. package/src/talons/SubCategory/useSubCategory.js +3 -3
  63. package/src/talons/WebsiteSwitcher/websiteSwitcher.gql.js +45 -45
@@ -1,47 +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/icon';
7
- import defaultClasses from './websiteSwitcherItem.module.css';
8
-
9
- const WebsiteSwitcherItem = props => {
10
- const { active, onClick, option, option2, children } = props;
11
- const classes = useStyle(defaultClasses, props.classes);
12
-
13
- const handleClick = useCallback(() => {
14
- onClick(option, option2);
15
- }, [option, option2, onClick]);
16
-
17
- const activeIcon = active ? (
18
- <Icon data-cy="WebsiteSwitcherItem-activeIcon" size={20} src={Check} />
19
- ) : null;
20
-
21
- return (
22
- <button
23
- data-cy="WebsiteSwitcherItem-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
- WebsiteSwitcherItem.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 WebsiteSwitcherItem;
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/icon';
7
+ import defaultClasses from './websiteSwitcherItem.module.css';
8
+
9
+ const WebsiteSwitcherItem = props => {
10
+ const { active, onClick, option, option2, children } = props;
11
+ const classes = useStyle(defaultClasses, props.classes);
12
+
13
+ const handleClick = useCallback(() => {
14
+ onClick(option, option2);
15
+ }, [option, option2, onClick]);
16
+
17
+ const activeIcon = active ? (
18
+ <Icon data-cy="WebsiteSwitcherItem-activeIcon" size={20} src={Check} />
19
+ ) : null;
20
+
21
+ return (
22
+ <button
23
+ data-cy="WebsiteSwitcherItem-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
+ WebsiteSwitcherItem.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 WebsiteSwitcherItem;
@@ -1,20 +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
- }
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
+ }
@@ -1,96 +1,96 @@
1
- import { gql } from '@apollo/client';
2
- export const GET_STORE_CONFIG_DATA = gql`
3
- query GetStoreConfigForMegaMenu {
4
- # eslint-disable-next-line @graphql-eslint/require-id-when-available
5
- storeConfig {
6
- store_code
7
- category_url_suffix
8
- }
9
- }
10
- `;
11
-
12
- export const GET_MEGA_MENU = gql`
13
- query getMegaMenu {
14
- # eslint-disable-next-line @graphql-eslint/require-id-when-available
15
- categoryList {
16
- uid
17
- name
18
- # eslint-disable-next-line @graphql-eslint/require-id-when-available
19
- children {
20
- uid
21
- include_in_menu
22
- name
23
- position
24
- url_path
25
- custom_submenu {
26
- name
27
- attribute {
28
- code
29
- value
30
- }
31
- path
32
- }
33
- shop_by {
34
- name
35
- code
36
- items {
37
- name
38
- option_id
39
- url_path
40
- }
41
- }
42
- # eslint-disable-next-line @graphql-eslint/require-id-when-available
43
- children {
44
- uid
45
- include_in_menu
46
- name
47
- position
48
- url_path
49
- custom_submenu {
50
- name
51
- attribute {
52
- code
53
- value
54
- }
55
- path
56
- }
57
- shop_by {
58
- name
59
- items {
60
- name
61
- url_path
62
- }
63
- }
64
- # eslint-disable-next-line @graphql-eslint/require-id-when-available
65
- children {
66
- uid
67
- include_in_menu
68
- name
69
- position
70
- url_path
71
- custom_submenu {
72
- name
73
- attribute {
74
- code
75
- value
76
- }
77
- path
78
- }
79
- shop_by {
80
- name
81
- items {
82
- name
83
- url_path
84
- }
85
- }
86
- }
87
- }
88
- }
89
- }
90
- }
91
- `;
92
-
93
- export default {
94
- getMegaMenuQuery: GET_MEGA_MENU,
95
- getStoreConfigQuery: GET_STORE_CONFIG_DATA
96
- };
1
+ import { gql } from '@apollo/client';
2
+ export const GET_STORE_CONFIG_DATA = gql`
3
+ query GetStoreConfigForMegaMenu {
4
+ # eslint-disable-next-line @graphql-eslint/require-id-when-available
5
+ storeConfig {
6
+ store_code
7
+ category_url_suffix
8
+ }
9
+ }
10
+ `;
11
+
12
+ export const GET_MEGA_MENU = gql`
13
+ query getMegaMenu {
14
+ # eslint-disable-next-line @graphql-eslint/require-id-when-available
15
+ categoryList {
16
+ uid
17
+ name
18
+ # eslint-disable-next-line @graphql-eslint/require-id-when-available
19
+ children {
20
+ uid
21
+ include_in_menu
22
+ name
23
+ position
24
+ url_path
25
+ custom_submenu {
26
+ name
27
+ attribute {
28
+ code
29
+ value
30
+ }
31
+ path
32
+ }
33
+ shop_by {
34
+ name
35
+ code
36
+ items {
37
+ name
38
+ option_id
39
+ url_path
40
+ }
41
+ }
42
+ # eslint-disable-next-line @graphql-eslint/require-id-when-available
43
+ children {
44
+ uid
45
+ include_in_menu
46
+ name
47
+ position
48
+ url_path
49
+ custom_submenu {
50
+ name
51
+ attribute {
52
+ code
53
+ value
54
+ }
55
+ path
56
+ }
57
+ shop_by {
58
+ name
59
+ items {
60
+ name
61
+ url_path
62
+ }
63
+ }
64
+ # eslint-disable-next-line @graphql-eslint/require-id-when-available
65
+ children {
66
+ uid
67
+ include_in_menu
68
+ name
69
+ position
70
+ url_path
71
+ custom_submenu {
72
+ name
73
+ attribute {
74
+ code
75
+ value
76
+ }
77
+ path
78
+ }
79
+ shop_by {
80
+ name
81
+ items {
82
+ name
83
+ url_path
84
+ }
85
+ }
86
+ }
87
+ }
88
+ }
89
+ }
90
+ }
91
+ `;
92
+
93
+ export default {
94
+ getMegaMenuQuery: GET_MEGA_MENU,
95
+ getStoreConfigQuery: GET_STORE_CONFIG_DATA
96
+ };