@riosst100/pwa-marketplace 1.8.1 → 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 (60) 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/PhoneTextInput/index.js +1 -1
  20. package/src/components/PhoneTextInput/phoneTextInput.js +62 -62
  21. package/src/components/ProductListTab/index.js +4 -4
  22. package/src/components/ProductListTab/productListTab.module.css +64 -64
  23. package/src/components/ProductListTab/productListTab.shimmer.js +24 -24
  24. package/src/components/SellerCountry/index.js +1 -1
  25. package/src/components/SellerCountry/sellerCountry.js +71 -71
  26. package/src/components/SellerCountry/sellerCountry.module.css +3 -3
  27. package/src/components/ShopByCategory/index.js +2 -2
  28. package/src/components/ShopByCategory/shopByCategory.js +69 -69
  29. package/src/components/ShopByCategory/shopByCategory.module.css +58 -58
  30. package/src/components/ShopByCategory/shopByCategory.shimmer.js +24 -24
  31. package/src/components/SubCategory/subCategory.js +1 -1
  32. package/src/components/WebsiteSwitcher/websiteSwitcher.shimmer.js +6 -6
  33. package/src/components/WebsiteSwitcher/websiteSwitcherItem.js +47 -47
  34. package/src/components/WebsiteSwitcher/websiteSwitcherItem.module.css +20 -20
  35. package/src/overwrites/peregrine/lib/talons/MegaMenu/megaMenu.gql.js +96 -96
  36. package/src/overwrites/peregrine/lib/talons/MegaMenu/useMegaMenu.js +199 -199
  37. package/src/overwrites/peregrine/lib/talons/MegaMenu/useMegaMenuItem.js +66 -66
  38. package/src/overwrites/peregrine/lib/talons/MegaMenu/useSubMenu.js +20 -20
  39. package/src/overwrites/peregrine/lib/talons/ProductFullDetail/useProductFullDetail.js +642 -642
  40. package/src/overwrites/peregrine/lib/talons/RootComponents/Category/category.gql.js +49 -49
  41. package/src/overwrites/peregrine/lib/talons/RootComponents/Category/useCategory.js +227 -227
  42. package/src/overwrites/peregrine/lib/talons/RootComponents/Product/product.gql.js +31 -31
  43. package/src/overwrites/peregrine/lib/talons/RootComponents/Product/productDetailFragment.gql.js +235 -235
  44. package/src/overwrites/venia-ui/lib/components/Header/cartTrigger.module.css +47 -47
  45. package/src/overwrites/venia-ui/lib/components/RadioGroup/radio.js +60 -60
  46. package/src/overwrites/venia-ui/lib/components/RadioGroup/radio.module.css +70 -70
  47. package/src/talons/AttributesBlock/attributesBlock.gql.js +15 -15
  48. package/src/talons/CustomFilters/customFilters.gql.js +45 -45
  49. package/src/talons/CustomFilters/useCustomFilters.js +5 -2
  50. package/src/talons/FilterTop/filterTop.gql.js +45 -45
  51. package/src/talons/FilterTop/index.js +1 -1
  52. package/src/talons/FilterTop/useFilterTop.js +5 -4
  53. package/src/talons/Header/websiteSwitcher.gql.js +45 -45
  54. package/src/talons/SellerReview/sellerReview.gql.js +53 -53
  55. package/src/talons/ShopByCategory/index.js +1 -1
  56. package/src/talons/ShopByCategory/shopByCategory.gql.js +38 -38
  57. package/src/talons/ShopByCategory/useShopByCategory.js +69 -69
  58. package/src/talons/SubCategory/subCategory.gql.js +15 -15
  59. package/src/talons/SubCategory/useSubCategory.js +3 -3
  60. package/src/talons/WebsiteSwitcher/websiteSwitcher.gql.js +45 -45
@@ -1,235 +1,235 @@
1
- import { gql } from '@apollo/client';
2
-
3
- export const ProductDetailsFragment = gql`
4
- fragment ProductDetailsFragment on ProductInterface {
5
- __typename
6
- # eslint-disable-next-line @graphql-eslint/require-id-when-available
7
- categories {
8
- uid
9
- breadcrumbs {
10
- category_uid
11
- }
12
- }
13
- seller {
14
- name
15
- url_key
16
- city
17
- country
18
- }
19
- description {
20
- html
21
- }
22
- short_description {
23
- html
24
- }
25
- id
26
- uid
27
- # eslint-disable-next-line @graphql-eslint/require-id-when-available
28
- media_gallery_entries {
29
- uid
30
- label
31
- position
32
- disabled
33
- file
34
- }
35
- meta_description
36
- name
37
- special_price
38
- special_from_date
39
- special_to_date
40
- price {
41
- regularPrice {
42
- amount {
43
- currency
44
- value
45
- }
46
- }
47
- }
48
- price_range {
49
- maximum_price {
50
- final_price {
51
- currency
52
- value
53
- }
54
- regular_price {
55
- currency
56
- value
57
- }
58
- discount {
59
- amount_off
60
- }
61
- }
62
- }
63
- sku
64
- auction_data {
65
- is_auction
66
- status
67
- customer_id
68
- starting_price
69
- reserve_price
70
- days
71
- min_qty
72
- max_qty
73
- start_auction_time
74
- stop_auction_time
75
- auction_status
76
- increment_opt
77
- increment_price
78
- auto_auction_opt
79
- featured_auction
80
- buy_it_now
81
- max_amount
82
- min_amount
83
- current_time_stamp
84
- continue_time
85
- limit_bids
86
- time_zone
87
- stop_auction_utc_time
88
- start_auction_utc_time
89
- today_time
90
- start_auction_time_stamp
91
- stop_auction_time_stamp
92
- new_auction_start
93
- customer_name
94
- max_bids
95
- }
96
- preorder {
97
- is_preorder
98
- preorder_notes
99
- preorder_availability
100
- }
101
- term_and_conditions
102
- shipping_policy
103
- return_policy
104
- small_image {
105
- url
106
- }
107
- stock_status
108
- url_key
109
- custom_attributes {
110
- selected_attribute_options {
111
- attribute_option {
112
- uid
113
- label
114
- is_default
115
- }
116
- }
117
- entered_attribute_value {
118
- value
119
- }
120
- attribute_metadata {
121
- uid
122
- code
123
- label
124
- attribute_labels {
125
- store_code
126
- label
127
- }
128
- data_type
129
- is_system
130
- entity_type
131
- ui_input {
132
- ui_input_type
133
- is_html_allowed
134
- }
135
- ... on ProductAttributeMetadata {
136
- used_in_components
137
- }
138
- }
139
- }
140
- ... on ConfigurableProduct {
141
- # eslint-disable-next-line @graphql-eslint/require-id-when-available
142
- configurable_options {
143
- attribute_code
144
- attribute_id
145
- uid
146
- label
147
- # eslint-disable-next-line @graphql-eslint/require-id-when-available
148
- values {
149
- uid
150
- default_label
151
- label
152
- store_label
153
- use_default_value
154
- value_index
155
- swatch_data {
156
- ... on ImageSwatchData {
157
- thumbnail
158
- }
159
- value
160
- }
161
- }
162
- }
163
- variants {
164
- attributes {
165
- code
166
- value_index
167
- }
168
- # eslint-disable-next-line @graphql-eslint/require-id-when-available
169
- product {
170
- uid
171
- # eslint-disable-next-line @graphql-eslint/require-id-when-available
172
- media_gallery_entries {
173
- uid
174
- disabled
175
- file
176
- label
177
- position
178
- }
179
- sku
180
- stock_status
181
- price {
182
- regularPrice {
183
- amount {
184
- currency
185
- value
186
- }
187
- }
188
- }
189
- price_range {
190
- maximum_price {
191
- final_price {
192
- currency
193
- value
194
- }
195
- discount {
196
- amount_off
197
- }
198
- }
199
- }
200
- custom_attributes {
201
- selected_attribute_options {
202
- attribute_option {
203
- uid
204
- label
205
- is_default
206
- }
207
- }
208
- entered_attribute_value {
209
- value
210
- }
211
- attribute_metadata {
212
- uid
213
- code
214
- label
215
- attribute_labels {
216
- store_code
217
- label
218
- }
219
- data_type
220
- is_system
221
- entity_type
222
- ui_input {
223
- ui_input_type
224
- is_html_allowed
225
- }
226
- ... on ProductAttributeMetadata {
227
- used_in_components
228
- }
229
- }
230
- }
231
- }
232
- }
233
- }
234
- }
235
- `;
1
+ import { gql } from '@apollo/client';
2
+
3
+ export const ProductDetailsFragment = gql`
4
+ fragment ProductDetailsFragment on ProductInterface {
5
+ __typename
6
+ # eslint-disable-next-line @graphql-eslint/require-id-when-available
7
+ categories {
8
+ uid
9
+ breadcrumbs {
10
+ category_uid
11
+ }
12
+ }
13
+ seller {
14
+ name
15
+ url_key
16
+ city
17
+ country
18
+ }
19
+ description {
20
+ html
21
+ }
22
+ short_description {
23
+ html
24
+ }
25
+ id
26
+ uid
27
+ # eslint-disable-next-line @graphql-eslint/require-id-when-available
28
+ media_gallery_entries {
29
+ uid
30
+ label
31
+ position
32
+ disabled
33
+ file
34
+ }
35
+ meta_description
36
+ name
37
+ special_price
38
+ special_from_date
39
+ special_to_date
40
+ price {
41
+ regularPrice {
42
+ amount {
43
+ currency
44
+ value
45
+ }
46
+ }
47
+ }
48
+ price_range {
49
+ maximum_price {
50
+ final_price {
51
+ currency
52
+ value
53
+ }
54
+ regular_price {
55
+ currency
56
+ value
57
+ }
58
+ discount {
59
+ amount_off
60
+ }
61
+ }
62
+ }
63
+ sku
64
+ auction_data {
65
+ is_auction
66
+ status
67
+ customer_id
68
+ starting_price
69
+ reserve_price
70
+ days
71
+ min_qty
72
+ max_qty
73
+ start_auction_time
74
+ stop_auction_time
75
+ auction_status
76
+ increment_opt
77
+ increment_price
78
+ auto_auction_opt
79
+ featured_auction
80
+ buy_it_now
81
+ max_amount
82
+ min_amount
83
+ current_time_stamp
84
+ continue_time
85
+ limit_bids
86
+ time_zone
87
+ stop_auction_utc_time
88
+ start_auction_utc_time
89
+ today_time
90
+ start_auction_time_stamp
91
+ stop_auction_time_stamp
92
+ new_auction_start
93
+ customer_name
94
+ max_bids
95
+ }
96
+ preorder {
97
+ is_preorder
98
+ preorder_notes
99
+ preorder_availability
100
+ }
101
+ term_and_conditions
102
+ shipping_policy
103
+ return_policy
104
+ small_image {
105
+ url
106
+ }
107
+ stock_status
108
+ url_key
109
+ custom_attributes {
110
+ selected_attribute_options {
111
+ attribute_option {
112
+ uid
113
+ label
114
+ is_default
115
+ }
116
+ }
117
+ entered_attribute_value {
118
+ value
119
+ }
120
+ attribute_metadata {
121
+ uid
122
+ code
123
+ label
124
+ attribute_labels {
125
+ store_code
126
+ label
127
+ }
128
+ data_type
129
+ is_system
130
+ entity_type
131
+ ui_input {
132
+ ui_input_type
133
+ is_html_allowed
134
+ }
135
+ ... on ProductAttributeMetadata {
136
+ used_in_components
137
+ }
138
+ }
139
+ }
140
+ ... on ConfigurableProduct {
141
+ # eslint-disable-next-line @graphql-eslint/require-id-when-available
142
+ configurable_options {
143
+ attribute_code
144
+ attribute_id
145
+ uid
146
+ label
147
+ # eslint-disable-next-line @graphql-eslint/require-id-when-available
148
+ values {
149
+ uid
150
+ default_label
151
+ label
152
+ store_label
153
+ use_default_value
154
+ value_index
155
+ swatch_data {
156
+ ... on ImageSwatchData {
157
+ thumbnail
158
+ }
159
+ value
160
+ }
161
+ }
162
+ }
163
+ variants {
164
+ attributes {
165
+ code
166
+ value_index
167
+ }
168
+ # eslint-disable-next-line @graphql-eslint/require-id-when-available
169
+ product {
170
+ uid
171
+ # eslint-disable-next-line @graphql-eslint/require-id-when-available
172
+ media_gallery_entries {
173
+ uid
174
+ disabled
175
+ file
176
+ label
177
+ position
178
+ }
179
+ sku
180
+ stock_status
181
+ price {
182
+ regularPrice {
183
+ amount {
184
+ currency
185
+ value
186
+ }
187
+ }
188
+ }
189
+ price_range {
190
+ maximum_price {
191
+ final_price {
192
+ currency
193
+ value
194
+ }
195
+ discount {
196
+ amount_off
197
+ }
198
+ }
199
+ }
200
+ custom_attributes {
201
+ selected_attribute_options {
202
+ attribute_option {
203
+ uid
204
+ label
205
+ is_default
206
+ }
207
+ }
208
+ entered_attribute_value {
209
+ value
210
+ }
211
+ attribute_metadata {
212
+ uid
213
+ code
214
+ label
215
+ attribute_labels {
216
+ store_code
217
+ label
218
+ }
219
+ data_type
220
+ is_system
221
+ entity_type
222
+ ui_input {
223
+ ui_input_type
224
+ is_html_allowed
225
+ }
226
+ ... on ProductAttributeMetadata {
227
+ used_in_components
228
+ }
229
+ }
230
+ }
231
+ }
232
+ }
233
+ }
234
+ }
235
+ `;
@@ -1,47 +1,47 @@
1
- .counter {
2
- composes: absolute from global;
3
- composes: bg-brand-dark from global;
4
- composes: font-semibold from global;
5
- composes: leading-tight from global;
6
- composes: left-sm from global;
7
- composes: min-w-[1.25rem] from global;
8
- composes: px-1 from global;
9
- composes: py-0 from global;
10
- composes: rounded-full from global;
11
- composes: text-white from global;
12
- composes: top-1.5 from global;
13
- }
14
-
15
- .trigger {
16
- composes: root from '@magento/venia-ui/lib/components/clickable.module.css';
17
-
18
- composes: content-center from global;
19
- composes: flex from global;
20
- composes: h-[3rem] from global;
21
- composes: justify-center from global;
22
- composes: min-w-[3rem] from global;
23
- composes: relative from global;
24
- composes: z-foreground from global;
25
- }
26
-
27
- .triggerContainer {
28
- composes: hidden from global;
29
- composes: items-center from global;
30
- composes: h-lg from global;
31
-
32
- composes: lg_grid from global;
33
- }
34
-
35
- .triggerContainer_open {
36
- composes: triggerContainer;
37
-
38
- composes: shadow-headerTrigger from global;
39
- }
40
-
41
- .link {
42
- composes: trigger;
43
-
44
- composes: flex from global;
45
-
46
- composes: lg_hidden from global;
47
- }
1
+ .counter {
2
+ composes: absolute from global;
3
+ composes: bg-brand-dark from global;
4
+ composes: font-semibold from global;
5
+ composes: leading-tight from global;
6
+ composes: left-sm from global;
7
+ composes: min-w-[1.25rem] from global;
8
+ composes: px-1 from global;
9
+ composes: py-0 from global;
10
+ composes: rounded-full from global;
11
+ composes: text-white from global;
12
+ composes: top-1.5 from global;
13
+ }
14
+
15
+ .trigger {
16
+ composes: root from '@magento/venia-ui/lib/components/clickable.module.css';
17
+
18
+ composes: content-center from global;
19
+ composes: flex from global;
20
+ composes: h-[3rem] from global;
21
+ composes: justify-center from global;
22
+ composes: min-w-[3rem] from global;
23
+ composes: relative from global;
24
+ composes: z-foreground from global;
25
+ }
26
+
27
+ .triggerContainer {
28
+ composes: hidden from global;
29
+ composes: items-center from global;
30
+ composes: h-lg from global;
31
+
32
+ composes: lg_grid from global;
33
+ }
34
+
35
+ .triggerContainer_open {
36
+ composes: triggerContainer;
37
+
38
+ composes: shadow-headerTrigger from global;
39
+ }
40
+
41
+ .link {
42
+ composes: trigger;
43
+
44
+ composes: flex from global;
45
+
46
+ composes: lg_hidden from global;
47
+ }
@@ -1,60 +1,60 @@
1
- import React from 'react';
2
- import { Circle } from 'react-feather';
3
- import { node, shape, string } from 'prop-types';
4
- import { Radio as InformedRadio } from 'informed';
5
-
6
- import { useStyle } from '@magento/venia-ui/lib/classify';
7
- import defaultClasses from './radio.module.css';
8
-
9
- /* TODO: change lint config to use `label-has-associated-control` */
10
- /* eslint-disable jsx-a11y/label-has-for */
11
-
12
- const RadioOption = props => {
13
- const {
14
- ariaLabel,
15
- classes: propClasses,
16
- id,
17
- label,
18
- value,
19
- ...rest
20
- } = props;
21
- const classes = useStyle(defaultClasses, propClasses);
22
-
23
- return (
24
- <label
25
- className={classes.root}
26
- htmlFor={id}
27
- aria-label={ariaLabel ? ariaLabel : ''}
28
- >
29
- <InformedRadio
30
- {...rest}
31
- className={classes.input}
32
- id={id}
33
- value={value}
34
- />
35
- <span className={classes.icon}>
36
- <Circle />
37
- </span>
38
- <span className={classes.label}>
39
- {label || (value != null ? value : '')}
40
- </span>
41
- </label>
42
- );
43
- };
44
-
45
- export default RadioOption;
46
-
47
- RadioOption.propTypes = {
48
- ariaLabel: string,
49
- classes: shape({
50
- icon: string,
51
- input: string,
52
- label: string,
53
- root: string
54
- }),
55
- id: string.isRequired,
56
- label: node.isRequired,
57
- value: node.isRequired
58
- };
59
-
60
- /* eslint-enable jsx-a11y/label-has-for */
1
+ import React from 'react';
2
+ import { Circle } from 'react-feather';
3
+ import { node, shape, string } from 'prop-types';
4
+ import { Radio as InformedRadio } from 'informed';
5
+
6
+ import { useStyle } from '@magento/venia-ui/lib/classify';
7
+ import defaultClasses from './radio.module.css';
8
+
9
+ /* TODO: change lint config to use `label-has-associated-control` */
10
+ /* eslint-disable jsx-a11y/label-has-for */
11
+
12
+ const RadioOption = props => {
13
+ const {
14
+ ariaLabel,
15
+ classes: propClasses,
16
+ id,
17
+ label,
18
+ value,
19
+ ...rest
20
+ } = props;
21
+ const classes = useStyle(defaultClasses, propClasses);
22
+
23
+ return (
24
+ <label
25
+ className={classes.root}
26
+ htmlFor={id}
27
+ aria-label={ariaLabel ? ariaLabel : ''}
28
+ >
29
+ <InformedRadio
30
+ {...rest}
31
+ className={classes.input}
32
+ id={id}
33
+ value={value}
34
+ />
35
+ <span className={classes.icon}>
36
+ <Circle />
37
+ </span>
38
+ <span className={classes.label}>
39
+ {label || (value != null ? value : '')}
40
+ </span>
41
+ </label>
42
+ );
43
+ };
44
+
45
+ export default RadioOption;
46
+
47
+ RadioOption.propTypes = {
48
+ ariaLabel: string,
49
+ classes: shape({
50
+ icon: string,
51
+ input: string,
52
+ label: string,
53
+ root: string
54
+ }),
55
+ id: string.isRequired,
56
+ label: node.isRequired,
57
+ value: node.isRequired
58
+ };
59
+
60
+ /* eslint-enable jsx-a11y/label-has-for */