@ubnt/store.core 9.27.0-beta.2 → 9.27.0
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.
- package/CHANGELOG.md +3 -31
- package/lib/_virtual/_virtual_multi-entry.js +2 -15
- package/lib/_virtual/_virtual_multi-entry.js.map +1 -1
- package/lib/_virtual/_virtual_multi-entry.mjs +0 -2
- package/lib/_virtual/_virtual_multi-entry.mjs.map +1 -1
- package/lib/assets/close.svg +1 -4
- package/lib/assets/close2.svg +4 -1
- package/lib/assets/minus4.svg +8 -8
- package/lib/assets/minus5.svg +8 -8
- package/lib/assets/pause.svg +3 -3
- package/lib/assets/pause2.svg +3 -3
- package/lib/assets/plus5.svg +9 -9
- package/lib/assets/plus6.svg +9 -9
- package/lib/assets/ucgMax.jpg +0 -0
- package/lib/assets/ucgMax2.jpg +0 -0
- package/lib/assets/ucgUltra.jpg +0 -0
- package/lib/assets/ucgUltra2.jpg +0 -0
- package/lib/components/Button/CartButton.d.ts +11 -1
- package/lib/components/Button/CartButton.js +43 -5
- package/lib/components/Button/CartButton.js.map +1 -1
- package/lib/components/Button/CartButton.mjs +43 -5
- package/lib/components/Button/CartButton.mjs.map +1 -1
- package/lib/components/CustomImage/CustomImage.js +1 -1
- package/lib/components/CustomImage/CustomImage.mjs +1 -1
- package/lib/components/FeaturesSection_deprecated/FeaturesSection.js +1 -1
- package/lib/components/FeaturesSection_deprecated/FeaturesSection.mjs +1 -1
- package/lib/components/FeaturesSection_deprecated/assets/close.svg.js +1 -1
- package/lib/components/FeaturesSection_deprecated/assets/close.svg.mjs +2 -2
- package/lib/components/GridGallery/GridModal/GridModal.js +1 -1
- package/lib/components/GridGallery/GridModal/GridModal.mjs +1 -1
- package/lib/components/Header/CartModalV2/CartModal.js +1 -1
- package/lib/components/Header/CartModalV2/CartModal.mjs +1 -1
- package/lib/components/Header/CartModalV2/Item/Item.styles.d.ts +1 -1
- package/lib/components/Header/Header.js +1 -1
- package/lib/components/Header/Header.mjs +1 -1
- package/lib/components/LandingPageSidebar/LandingPageSidebar.js +1 -1
- package/lib/components/LandingPageSidebar/LandingPageSidebar.mjs +1 -1
- package/lib/components/MicrositeVideoSlideshow/MicrositeVideoSlideshow.js +1 -1
- package/lib/components/MicrositeVideoSlideshow/MicrositeVideoSlideshow.mjs +1 -1
- package/lib/components/MicrositeVideoSlideshow/assets/pause.svg.js +1 -1
- package/lib/components/MicrositeVideoSlideshow/assets/pause.svg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgMax.jpg.js +5 -5
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgMax.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgUltra.jpg.js +5 -5
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgUltra.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/ucgMax.jpg.js +1 -1
- package/lib/components/ModelCompareV3/assets/Consoles/ucgMax.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/ucgUltra.jpg.js +1 -1
- package/lib/components/ModelCompareV3/assets/Consoles/ucgUltra.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/data/CloudGateways.js +6 -6
- package/lib/components/ModelCompareV3/data/CloudGateways.mjs +4 -4
- package/lib/components/ModelCompareV3/data/products/ucgMax.js +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgMax.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgUltra.js +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgUltra.mjs +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.js +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/minus.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/minus.svg.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/plus.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/plus.svg.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.js +2 -2
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/minus.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/minus.svg.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/plus.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/plus.svg.mjs +2 -2
- package/lib/components/Search/Input/Input.js +1 -1
- package/lib/components/Search/Input/Input.mjs +1 -1
- package/lib/components/VideoPlayerNew/VideoPlayer.js +1 -1
- package/lib/components/VideoPlayerNew/VideoPlayer.mjs +1 -1
- package/lib/components/VideoPlayerNew/assets/pause.svg.js +1 -1
- package/lib/components/VideoPlayerNew/assets/pause.svg.mjs +2 -2
- package/lib/constants/icons/generic/close.svg.js +1 -1
- package/lib/constants/icons/generic/close.svg.mjs +2 -2
- package/lib/constants/icons/generic/index.js +1 -1
- package/lib/constants/icons/generic/index.mjs +1 -1
- package/lib/constants/icons/options/colors/black.svg.js +5 -5
- package/lib/constants/icons/options/colors/index.js +3 -3
- package/lib/constants/icons/options/styles/black.svg.js +5 -5
- package/lib/constants/icons/options/styles/index.js +3 -3
- package/lib/constants/optionIcons.js +6 -6
- package/lib/constants/optionIcons.mjs +4 -4
- package/lib/constants/proStoreCategories/mapping/index.d.ts +0 -2
- package/lib/constants/proStoreCategories/mapping/index.js +54 -48
- package/lib/constants/proStoreCategories/mapping/index.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/index.mjs +54 -48
- package/lib/constants/proStoreCategories/mapping/index.mjs.map +1 -1
- package/lib/constants/proStoreCategories/mapping/redirects.js +1 -9
- package/lib/constants/proStoreCategories/mapping/redirects.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/redirects.mjs +1 -9
- package/lib/constants/proStoreCategories/mapping/redirects.mjs.map +1 -1
- package/lib/constants/proStoreCategories/mapping/unifi.d.ts +4 -4
- package/lib/constants/proStoreCategories/mapping/unifi.js +3 -3
- package/lib/constants/proStoreCategories/mapping/unifi.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/unifi.mjs +3 -3
- package/lib/constants/proStoreCategories/mapping/unifi.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/ar.json.js +1 -2
- package/lib/constants/proStoreCategories/translations/ar.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/ar.json.mjs +1 -2
- package/lib/constants/proStoreCategories/translations/ar.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/de.json.js +1 -2
- package/lib/constants/proStoreCategories/translations/de.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/de.json.mjs +1 -2
- package/lib/constants/proStoreCategories/translations/de.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/el.json.js +1 -2
- package/lib/constants/proStoreCategories/translations/el.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/el.json.mjs +1 -2
- package/lib/constants/proStoreCategories/translations/el.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/en.json.js +0 -4
- package/lib/constants/proStoreCategories/translations/en.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/en.json.mjs +1 -4
- package/lib/constants/proStoreCategories/translations/en.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/es.json.js +1 -2
- package/lib/constants/proStoreCategories/translations/es.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/es.json.mjs +1 -2
- package/lib/constants/proStoreCategories/translations/es.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/fr.json.js +2 -3
- package/lib/constants/proStoreCategories/translations/fr.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/fr.json.mjs +2 -3
- package/lib/constants/proStoreCategories/translations/fr.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/it.json.js +1 -2
- package/lib/constants/proStoreCategories/translations/it.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/it.json.mjs +1 -2
- package/lib/constants/proStoreCategories/translations/it.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/ja.json.js +1 -2
- package/lib/constants/proStoreCategories/translations/ja.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/ja.json.mjs +1 -2
- package/lib/constants/proStoreCategories/translations/ja.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/pt-BR.json.js +1 -2
- package/lib/constants/proStoreCategories/translations/pt-BR.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/pt-BR.json.mjs +1 -2
- package/lib/constants/proStoreCategories/translations/pt-BR.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.js +2 -3
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs +2 -3
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js +2 -3
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs +2 -3
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs.map +1 -1
- package/lib/helpers/index.d.ts +0 -1
- package/lib/helpers/index.js +0 -11
- package/lib/helpers/index.js.map +1 -1
- package/lib/helpers/index.mjs +0 -1
- package/lib/helpers/index.mjs.map +1 -1
- package/lib/types/index.d.ts +0 -1
- package/lib/types/index.js +0 -2
- package/lib/types/index.js.map +1 -1
- package/lib/types/index.mjs +0 -1
- package/lib/types/index.mjs.map +1 -1
- package/lib/utils/array.d.ts +0 -4
- package/lib/utils/array.js +0 -10
- package/lib/utils/array.js.map +1 -1
- package/lib/utils/array.mjs +1 -10
- package/lib/utils/array.mjs.map +1 -1
- package/lib/utils/money/constants.d.ts +0 -7
- package/lib/utils/money/constants.js +1 -9
- package/lib/utils/money/constants.js.map +1 -1
- package/lib/utils/money/constants.mjs +2 -10
- package/lib/utils/money/constants.mjs.map +1 -1
- package/lib/utils/money/tax.private.d.ts +8 -0
- package/lib/utils/money/tax.private.js +14 -5
- package/lib/utils/money/tax.private.js.map +1 -1
- package/lib/utils/money/tax.private.mjs +16 -8
- package/lib/utils/money/tax.private.mjs.map +1 -1
- package/package.json +51 -51
- package/lib/helpers/product.d.ts +0 -87
- package/lib/helpers/product.js +0 -346
- package/lib/helpers/product.js.map +0 -1
- package/lib/helpers/product.mjs +0 -335
- package/lib/helpers/product.mjs.map +0 -1
- package/lib/helpers/product.test.d.ts +0 -1
- package/lib/types/product.d.ts +0 -87
- package/lib/types/product.js +0 -14
- package/lib/types/product.js.map +0 -1
- package/lib/types/product.mjs +0 -13
- package/lib/types/product.mjs.map +0 -1
- package/lib/utils/productSort.d.ts +0 -41
- package/lib/utils/productSort.js +0 -67
- package/lib/utils/productSort.js.map +0 -1
- package/lib/utils/productSort.mjs +0 -60
- package/lib/utils/productSort.mjs.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -6,40 +6,19 @@
|
|
|
6
6
|
|
|
7
7
|
## Releases
|
|
8
8
|
|
|
9
|
-
### 9.27.0
|
|
9
|
+
### 9.27.0
|
|
10
10
|
|
|
11
|
-
- [Feat] [NEP-
|
|
12
|
-
|
|
13
|
-
### 9.27.0-beta.1
|
|
14
|
-
|
|
15
|
-
- [Refactor] Refactor how we calculate tax to have control over rounding and precision!!! Will have output offsets by a up or down!
|
|
16
|
-
|
|
17
|
-
### 9.27.0-beta.0
|
|
18
|
-
|
|
19
|
-
- Upstream master
|
|
20
|
-
- [Feat] [NEP-3699](https://ubiquiti.atlassian.net/browse/NEP-3699) Clean up collections in pro store mapping
|
|
11
|
+
- [Feat] [NEP-3788](https://ubiquiti.atlassian.net/browse/nep-3788) Add ability to preLabel to `<CartButton/>`
|
|
21
12
|
|
|
22
13
|
### 9.26.0
|
|
23
14
|
|
|
24
|
-
-[Feat] [MIC-435](https://ubiquiti.atlassian.net/browse/MIC-435) Reorganize Building Bridge page in ui.com
|
|
15
|
+
- [Feat] [MIC-435](https://ubiquiti.atlassian.net/browse/MIC-435) Reorganize Building Bridge page in ui.com
|
|
25
16
|
|
|
26
17
|
### 9.25.0
|
|
27
18
|
|
|
28
19
|
- [Feat] [MIC-436](https://ubiquiti.atlassian.net/browse/MIC-436) Update Video Recorders compare table data
|
|
29
20
|
- [Feat] [NEP-3799](https://ubiquiti.atlassian.net/browse/NEP-3799) Add PoE+++ key feature icon and update 2 existing ones
|
|
30
21
|
|
|
31
|
-
### 9.24.0-beta.1
|
|
32
|
-
|
|
33
|
-
- [Feat] [NEP-3802](https://ubiquiti.atlassian.net/browse/NEP-3802) Add new collection - Enterprise Campus
|
|
34
|
-
|
|
35
|
-
### 9.24.0-beta.0
|
|
36
|
-
|
|
37
|
-
> Upstream master + changes
|
|
38
|
-
|
|
39
|
-
- [Refactor] Refactor how we calculate tax to have control over rounding and precision!!! Will have output offsets by a
|
|
40
|
-
up or down!
|
|
41
|
-
- [Feat] [MIC-431](https://ubiquiti.atlassian.net/browse/MIC-431) Add `UDB` and `UDB Pro` to Model Compare
|
|
42
|
-
|
|
43
22
|
### 9.24.0
|
|
44
23
|
|
|
45
24
|
- [Feat] [MIC-430](https://ubiquiti.atlassian.net/browse/MIC-430) Add `UMR Ultra` to Model Compare
|
|
@@ -64,13 +43,6 @@
|
|
|
64
43
|
- [chore] Update deps
|
|
65
44
|
- [Feat] [MIC-431](https://ubiquiti.atlassian.net/browse/MIC-431) Add `UDB` and `UDB Pro` to Model Compare
|
|
66
45
|
|
|
67
|
-
### 9.23.0-beta.0
|
|
68
|
-
|
|
69
|
-
- [Feat] [NEP-3704](https://ubiquiti.atlassian.net/browse/NEP-3704) Add "Device Bridge" collection to pro store categories
|
|
70
|
-
- [Feat] [NEP-3300](https://ubiquiti.atlassian.net/browse/NEP-3300) Add NAS category in pro store
|
|
71
|
-
- [Feat] [MIC-378](https://ubiquiti.atlassian.net/browse/MIC-378) Add product helper functions
|
|
72
|
-
- [Feat] [NEP-3699](https://ubiquiti.atlassian.net/browse/NEP-3699) Clean up collections in pro store mapping
|
|
73
|
-
|
|
74
46
|
### 9.22.1
|
|
75
47
|
|
|
76
48
|
- [Feat] [MIC-424](https://ubiquiti.atlassian.net/browse/MIC-424) Remove "Coming soon" from `ENVR` from Model compare
|
|
@@ -69,7 +69,6 @@ var useTranslation = require('../hooks/useTranslation.js');
|
|
|
69
69
|
var useScrollToY = require('../hooks/useScrollToY.js');
|
|
70
70
|
var constants = require('../types/constants.js');
|
|
71
71
|
var generated = require('../types/generated.js');
|
|
72
|
-
var product = require('../types/product.js');
|
|
73
72
|
var url = require('../utils/url.js');
|
|
74
73
|
var misc = require('../utils/money/misc.js');
|
|
75
74
|
var number = require('../utils/number.js');
|
|
@@ -87,7 +86,7 @@ var measures = require('../utils/measures.js');
|
|
|
87
86
|
var errors = require('../utils/errors.js');
|
|
88
87
|
var tags = require('../utils/tags.js');
|
|
89
88
|
var wattage = require('../utils/wattage.js');
|
|
90
|
-
var product
|
|
89
|
+
var product = require('../utils/product.js');
|
|
91
90
|
var asset = require('../utils/asset.js');
|
|
92
91
|
var imageOptimizer = require('../utils/imageOptimizer.js');
|
|
93
92
|
var styles = require('../utils/styles.js');
|
|
@@ -95,7 +94,6 @@ var storeId = require('../utils/storeId.js');
|
|
|
95
94
|
var index$V = require('../constants/proStoreCategories/index.js');
|
|
96
95
|
var index$W = require('../constants/proStoreFilters/index.js');
|
|
97
96
|
var proStoreCategories = require('../helpers/proStoreCategories.js');
|
|
98
|
-
var product$2 = require('../helpers/product.js');
|
|
99
97
|
var smartcat = require('../apis/smartcat.js');
|
|
100
98
|
exports.Avatar = index;
|
|
101
99
|
exports.Button = index$1;
|
|
@@ -169,7 +167,6 @@ exports.Unit = generated.Unit;
|
|
|
169
167
|
exports.UnitSystem = generated.UnitSystem;
|
|
170
168
|
exports.UserAssignedCountryCode = generated.UserAssignedCountryCode;
|
|
171
169
|
exports.ValidateTaxStatus = generated.ValidateTaxStatus;
|
|
172
|
-
exports.DisplayProductStatus = product.DisplayProductStatus;
|
|
173
170
|
exports.url = url;
|
|
174
171
|
exports.money = misc;
|
|
175
172
|
exports.number = number;
|
|
@@ -187,7 +184,7 @@ exports.measures = measures;
|
|
|
187
184
|
exports.errors = errors;
|
|
188
185
|
exports.tags = tags;
|
|
189
186
|
exports.wattage = wattage;
|
|
190
|
-
exports.product = product
|
|
187
|
+
exports.product = product;
|
|
191
188
|
exports.asset = asset;
|
|
192
189
|
exports.imageOptimizer = imageOptimizer;
|
|
193
190
|
exports.styles = styles;
|
|
@@ -202,15 +199,5 @@ exports.getSubCategoryIdByCollectionSlug = proStoreCategories.getSubCategoryIdBy
|
|
|
202
199
|
exports.isValidSubCategory = proStoreCategories.isValidSubCategory;
|
|
203
200
|
exports.parseCategories = proStoreCategories.parseCategories;
|
|
204
201
|
exports.useTranslatedCategories = proStoreCategories.useTranslatedCategories;
|
|
205
|
-
exports.COLLECTION_SECTION_OTHER_ID = product$2.COLLECTION_SECTION_OTHER_ID;
|
|
206
|
-
exports.HDDProductSlugs = product$2.HDDProductSlugs;
|
|
207
|
-
exports.MagicCollectionTags = product$2.MagicCollectionTags;
|
|
208
|
-
exports.ProductOptions = product$2.ProductOptions;
|
|
209
|
-
exports.createSectionHierarchy = product$2.createSectionHierarchy;
|
|
210
|
-
exports.getProStoreCategory = product$2.getProStoreCategory;
|
|
211
|
-
exports.getProductGroups = product$2.getProductGroups;
|
|
212
|
-
exports.getStoreProducts = product$2.getStoreProducts;
|
|
213
|
-
exports.isNonNullish = product$2.isNonNullish;
|
|
214
|
-
exports.removeExcludedProducts = product$2.removeExcludedProducts;
|
|
215
202
|
exports.smartcat = smartcat;
|
|
216
203
|
//# sourceMappingURL=_virtual_multi-entry.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_virtual_multi-entry.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"_virtual_multi-entry.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -122,7 +122,6 @@ export { useTranslation, useTranslationRaw } from '../hooks/useTranslation.mjs';
|
|
|
122
122
|
export { useScrollToY } from '../hooks/useScrollToY.mjs';
|
|
123
123
|
export { AddressUsageType, Language } from '../types/constants.mjs';
|
|
124
124
|
export { AddressType, CountryCode, Currency, GlobalStoreId, ProductLine, StoreId, Unit, UnitSystem, UserAssignedCountryCode, ValidateTaxStatus } from '../types/generated.mjs';
|
|
125
|
-
export { DisplayProductStatus } from '../types/product.mjs';
|
|
126
125
|
import * as url from '../utils/url.mjs';
|
|
127
126
|
export { url };
|
|
128
127
|
import * as misc from '../utils/money/misc.mjs';
|
|
@@ -172,7 +171,6 @@ export { index$V as proStoreCategories };
|
|
|
172
171
|
import * as index$W from '../constants/proStoreFilters/index.mjs';
|
|
173
172
|
export { index$W as proStoreFilters };
|
|
174
173
|
export { getCategoriesBySubcategory, getLocalizedCategories, getProductLineByCategory, getProductLineBySubcategory, getSubCategoryIdByCollectionSlug, isValidSubCategory, parseCategories, useTranslatedCategories } from '../helpers/proStoreCategories.mjs';
|
|
175
|
-
export { COLLECTION_SECTION_OTHER_ID, HDDProductSlugs, MagicCollectionTags, ProductOptions, createSectionHierarchy, getProStoreCategory, getProductGroups, getStoreProducts, isNonNullish, removeExcludedProducts } from '../helpers/product.mjs';
|
|
176
174
|
import * as smartcat from '../apis/smartcat.mjs';
|
|
177
175
|
export { smartcat };
|
|
178
176
|
//# sourceMappingURL=_virtual_multi-entry.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_virtual_multi-entry.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"_virtual_multi-entry.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/lib/assets/close.svg
CHANGED
|
@@ -1,4 +1 @@
|
|
|
1
|
-
<svg width="
|
|
2
|
-
xmlns="http://www.w3.org/2000/svg">
|
|
3
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M5.2175 18.6475C4.9275 18.9375 4.9275 19.4175 5.2175 19.7075C5.5075 19.9975 5.9875 19.9975 6.2775 19.7075L12.4675 13.5175L18.6575 19.7075C18.9475 19.9975 19.4275 19.9975 19.7175 19.7075C20.0075 19.4175 20.0075 18.9375 19.7175 18.6475L13.5275 12.4675L19.7175 6.2775C20.0075 5.9875 20.0075 5.5075 19.7175 5.2175C19.4275 4.9275 18.9475 4.9275 18.6575 5.2175L12.4675 11.4075L6.2775 5.2175C5.9875 4.9275 5.5075 4.9275 5.2175 5.2175C4.9275 5.5075 4.9275 5.9875 5.2175 6.2775L11.4075 12.4675L5.2175 18.6475Z" fill="currentColor"/>
|
|
4
|
-
</svg>
|
|
1
|
+
<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="0.105713" y="12.7274" width="18" height="1.5" rx="0.75" transform="rotate(-45 0.105713 12.7274)" fill="currentColor"/><rect width="18" height="1.5" rx="0.75" transform="matrix(-0.707107 -0.707107 -0.707107 0.707107 13.8943 12.7274)" fill="currentColor"/></svg>
|
package/lib/assets/close2.svg
CHANGED
|
@@ -1 +1,4 @@
|
|
|
1
|
-
<svg width="
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" fill="none"
|
|
2
|
+
xmlns="http://www.w3.org/2000/svg">
|
|
3
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M5.2175 18.6475C4.9275 18.9375 4.9275 19.4175 5.2175 19.7075C5.5075 19.9975 5.9875 19.9975 6.2775 19.7075L12.4675 13.5175L18.6575 19.7075C18.9475 19.9975 19.4275 19.9975 19.7175 19.7075C20.0075 19.4175 20.0075 18.9375 19.7175 18.6475L13.5275 12.4675L19.7175 6.2775C20.0075 5.9875 20.0075 5.5075 19.7175 5.2175C19.4275 4.9275 18.9475 4.9275 18.6575 5.2175L12.4675 11.4075L6.2775 5.2175C5.9875 4.9275 5.5075 4.9275 5.2175 5.2175C4.9275 5.5075 4.9275 5.9875 5.2175 6.2775L11.4075 12.4675L5.2175 18.6475Z" fill="currentColor"/>
|
|
4
|
+
</svg>
|
package/lib/assets/minus4.svg
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
<svg width="
|
|
2
|
-
<mask id="
|
|
3
|
-
<g clip-path="url(#
|
|
4
|
-
<path d="
|
|
1
|
+
<svg width="11" height="10" viewBox="0 0 11 10" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<mask id="mask0_658_406" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="11" height="10">
|
|
3
|
+
<g clip-path="url(#clip0_658_406)">
|
|
4
|
+
<path d="M10.2546 4.35H0.587891V5.31667H10.2546V4.35Z" fill="#838691"/>
|
|
5
5
|
</g>
|
|
6
6
|
</mask>
|
|
7
|
-
<g mask="url(#
|
|
8
|
-
<rect x="0.
|
|
7
|
+
<g mask="url(#mask0_658_406)">
|
|
8
|
+
<rect x="0.587891" width="9.66667" height="9.66667" fill="#838691"/>
|
|
9
9
|
</g>
|
|
10
10
|
<defs>
|
|
11
|
-
<clipPath id="
|
|
12
|
-
<rect width="
|
|
11
|
+
<clipPath id="clip0_658_406">
|
|
12
|
+
<rect width="9.66667" height="9.66667" fill="white" transform="translate(0.587891)"/>
|
|
13
13
|
</clipPath>
|
|
14
14
|
</defs>
|
|
15
15
|
</svg>
|
package/lib/assets/minus5.svg
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
<svg width="
|
|
2
|
-
<mask id="
|
|
3
|
-
<g clip-path="url(#
|
|
4
|
-
<path d="
|
|
1
|
+
<svg width="6" height="6" viewBox="0 0 6 6" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<mask id="mask0_426_15898" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="6" height="6">
|
|
3
|
+
<g clip-path="url(#clip0_426_15898)">
|
|
4
|
+
<path d="M5.16287 2.9397H0.697754V3.38621H5.16287V2.9397Z" fill="#838691"/>
|
|
5
5
|
</g>
|
|
6
6
|
</mask>
|
|
7
|
-
<g mask="url(#
|
|
8
|
-
<rect x="0.
|
|
7
|
+
<g mask="url(#mask0_426_15898)">
|
|
8
|
+
<rect x="0.697754" y="0.930176" width="4.46512" height="4.46512" fill="#838691"/>
|
|
9
9
|
</g>
|
|
10
10
|
<defs>
|
|
11
|
-
<clipPath id="
|
|
12
|
-
<rect width="
|
|
11
|
+
<clipPath id="clip0_426_15898">
|
|
12
|
+
<rect width="4.46512" height="4.46512" fill="white" transform="translate(0.697754 0.930176)"/>
|
|
13
13
|
</clipPath>
|
|
14
14
|
</defs>
|
|
15
15
|
</svg>
|
package/lib/assets/pause.svg
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<svg width="
|
|
2
|
-
<rect x="
|
|
3
|
-
<rect x="
|
|
1
|
+
<svg width="13" height="17" viewBox="0 0 13 17" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<rect x="0.232422" width="4" height="17" rx="2" fill="#393A3F"/>
|
|
3
|
+
<rect x="8.23242" width="4" height="17" rx="2" fill="#393A3F"/>
|
|
4
4
|
</svg>
|
package/lib/assets/pause2.svg
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<svg width="
|
|
2
|
-
<rect x="
|
|
3
|
-
<rect x="
|
|
1
|
+
<svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<rect x="6" y="3" width="3" height="16" rx="1.5" fill="#393A3F"/>
|
|
3
|
+
<rect x="12" y="3" width="3" height="16" rx="1.5" fill="#393A3F"/>
|
|
4
4
|
</svg>
|
package/lib/assets/plus5.svg
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
<svg width="
|
|
2
|
-
<mask id="
|
|
3
|
-
<g clip-path="url(#
|
|
4
|
-
<path d="
|
|
5
|
-
<path d="
|
|
1
|
+
<svg width="10" height="10" viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<mask id="mask0_658_411" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="10" height="10">
|
|
3
|
+
<g clip-path="url(#clip0_658_411)">
|
|
4
|
+
<path d="M9.86637 4.35H0.199707V5.31667H9.86637V4.35Z" fill="#838691"/>
|
|
5
|
+
<path d="M4.5498 -2.86102e-06L4.5498 9.66666H5.51647L5.51647 -2.86102e-06H4.5498Z" fill="#838691"/>
|
|
6
6
|
</g>
|
|
7
7
|
</mask>
|
|
8
|
-
<g mask="url(#
|
|
9
|
-
<rect x="0.
|
|
8
|
+
<g mask="url(#mask0_658_411)">
|
|
9
|
+
<rect x="0.199707" width="9.66667" height="9.66667" fill="#838691"/>
|
|
10
10
|
</g>
|
|
11
11
|
<defs>
|
|
12
|
-
<clipPath id="
|
|
13
|
-
<rect width="
|
|
12
|
+
<clipPath id="clip0_658_411">
|
|
13
|
+
<rect width="9.66667" height="9.66667" fill="white" transform="translate(0.199707)"/>
|
|
14
14
|
</clipPath>
|
|
15
15
|
</defs>
|
|
16
16
|
</svg>
|
package/lib/assets/plus6.svg
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
<svg width="
|
|
2
|
-
<mask id="
|
|
3
|
-
<g clip-path="url(#
|
|
4
|
-
<path d="
|
|
5
|
-
<path d="
|
|
1
|
+
<svg width="6" height="6" viewBox="0 0 6 6" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<mask id="mask0_426_15903" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="6" height="6">
|
|
3
|
+
<g clip-path="url(#clip0_426_15903)">
|
|
4
|
+
<path d="M5.30227 2.9397H0.837158V3.38621H5.30227V2.9397Z" fill="#838691"/>
|
|
5
|
+
<path d="M2.84668 0.930147L2.84668 5.39526H3.29319L3.29319 0.930147H2.84668Z" fill="#838691"/>
|
|
6
6
|
</g>
|
|
7
7
|
</mask>
|
|
8
|
-
<g mask="url(#
|
|
9
|
-
<rect x="0.
|
|
8
|
+
<g mask="url(#mask0_426_15903)">
|
|
9
|
+
<rect x="0.837158" y="0.930176" width="4.46512" height="4.46512" fill="#838691"/>
|
|
10
10
|
</g>
|
|
11
11
|
<defs>
|
|
12
|
-
<clipPath id="
|
|
13
|
-
<rect width="
|
|
12
|
+
<clipPath id="clip0_426_15903">
|
|
13
|
+
<rect width="4.46512" height="4.46512" fill="white" transform="translate(0.837158 0.930176)"/>
|
|
14
14
|
</clipPath>
|
|
15
15
|
</defs>
|
|
16
16
|
</svg>
|
package/lib/assets/ucgMax.jpg
CHANGED
|
Binary file
|
package/lib/assets/ucgMax2.jpg
CHANGED
|
Binary file
|
package/lib/assets/ucgUltra.jpg
CHANGED
|
Binary file
|
package/lib/assets/ucgUltra2.jpg
CHANGED
|
Binary file
|
|
@@ -2,6 +2,16 @@ import type { ButtonProps } from "./Button.types";
|
|
|
2
2
|
export interface CartButtonProps extends ButtonProps {
|
|
3
3
|
icon?: "cart" | "plus";
|
|
4
4
|
hideIcon?: boolean;
|
|
5
|
+
/**
|
|
6
|
+
* (optional) Mini-Text to display before the label, used for additional context. See example for more details
|
|
7
|
+
* @example
|
|
8
|
+
* preLabel="Available again week of"
|
|
9
|
+
* label="Oct. 10"
|
|
10
|
+
*/
|
|
11
|
+
preLabel?: string;
|
|
12
|
+
/**
|
|
13
|
+
* (optional) Label to display on the button. If not provided, only the icon will be displayed
|
|
14
|
+
*/
|
|
5
15
|
label?: string;
|
|
6
16
|
}
|
|
7
|
-
export declare const CartButton: ({ icon, hideIcon, label, ...props }: CartButtonProps) => JSX.Element;
|
|
17
|
+
export declare const CartButton: ({ icon, hideIcon, preLabel, label, ...props }: CartButtonProps) => JSX.Element;
|
|
@@ -20,9 +20,25 @@ var CartPlusIcon__default = /*#__PURE__*/_interopDefault(CartPlusIcon);
|
|
|
20
20
|
var CartIcon__default = /*#__PURE__*/_interopDefault(CartIcon);
|
|
21
21
|
"use strict";
|
|
22
22
|
const ButtonStyled = styled__default["default"](Button.Button)`
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
${({
|
|
24
|
+
label,
|
|
25
|
+
preLabel
|
|
26
|
+
}) => {
|
|
27
|
+
if (!!label && !!preLabel) {
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
if (label) {
|
|
31
|
+
return styled.css`
|
|
32
|
+
padding: 10px 15px;
|
|
33
|
+
height: 40px;
|
|
34
|
+
`;
|
|
35
|
+
}
|
|
36
|
+
return styled.css`
|
|
37
|
+
padding: 10px 15px;
|
|
38
|
+
width: 40px;
|
|
39
|
+
height: 40px;
|
|
40
|
+
`;
|
|
41
|
+
}}
|
|
26
42
|
|
|
27
43
|
${({
|
|
28
44
|
label
|
|
@@ -35,9 +51,25 @@ const ButtonInnerWrap = styled__default["default"].div`
|
|
|
35
51
|
align-items: center;
|
|
36
52
|
gap: 8px;
|
|
37
53
|
`;
|
|
54
|
+
const Labels = styled__default["default"].div`
|
|
55
|
+
display: inline-flex;
|
|
56
|
+
flex-direction: column;
|
|
57
|
+
`;
|
|
58
|
+
const PreLabel = styled__default["default"].span`
|
|
59
|
+
/* Size relative to regular label size, e.g if 14px label than 10px preLabel */
|
|
60
|
+
font-size: 0.714em;
|
|
61
|
+
line-height: 1.2;
|
|
62
|
+
font-weight: 400;
|
|
63
|
+
`;
|
|
64
|
+
const Label = styled__default["default"].span`
|
|
65
|
+
font-weight: ${({
|
|
66
|
+
$bold
|
|
67
|
+
}) => $bold ? "bold" : "normal"};
|
|
68
|
+
`;
|
|
38
69
|
const CartButton = function CartButton2({
|
|
39
70
|
icon = "cart",
|
|
40
71
|
hideIcon,
|
|
72
|
+
preLabel,
|
|
41
73
|
label,
|
|
42
74
|
...props
|
|
43
75
|
}) {
|
|
@@ -52,13 +84,19 @@ const CartButton = function CartButton2({
|
|
|
52
84
|
return /* @__PURE__ */jsxRuntime.jsx(ButtonStyled, {
|
|
53
85
|
...props,
|
|
54
86
|
label,
|
|
87
|
+
preLabel,
|
|
55
88
|
children: /* @__PURE__ */jsxRuntime.jsxs(ButtonInnerWrap, {
|
|
56
89
|
children: [!hideIcon && /* @__PURE__ */jsxRuntime.jsx(StyleableSvgImage.StyleableSvgImage, {
|
|
57
90
|
src: Icon,
|
|
58
91
|
width: 20,
|
|
59
92
|
height: 16
|
|
60
|
-
}), !!label && /* @__PURE__ */jsxRuntime.
|
|
61
|
-
children:
|
|
93
|
+
}), (!!preLabel || !!label) && /* @__PURE__ */jsxRuntime.jsxs(Labels, {
|
|
94
|
+
children: [!!preLabel && /* @__PURE__ */jsxRuntime.jsx(PreLabel, {
|
|
95
|
+
children: preLabel
|
|
96
|
+
}), !!label && /* @__PURE__ */jsxRuntime.jsx(Label, {
|
|
97
|
+
$bold: !!preLabel,
|
|
98
|
+
children: label
|
|
99
|
+
})]
|
|
62
100
|
})]
|
|
63
101
|
})
|
|
64
102
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CartButton.js","sources":["../../../src/components/Button/CartButton.tsx"],"sourcesContent":["import { useMemo } from \"react\";\nimport styled, { css } from \"styled-components\";\n\nimport CartIcon from \"../../assets/icons/cart.svg\";\nimport CartPlusIcon from \"../../assets/icons/cartPlus.svg\";\nimport { StyleableSvgImage } from \"../StyleableSvgImage\";\nimport { Button } from \"./Button\";\nimport type { ButtonProps } from \"./Button.types\";\n\nexport interface CartButtonProps extends ButtonProps {\n icon?: \"cart\" | \"plus\";\n hideIcon?: boolean;\n label?: string;\n}\n\nconst ButtonStyled = styled(Button)<CartButtonProps>`\n padding: 10px 15px;\n
|
|
1
|
+
{"version":3,"file":"CartButton.js","sources":["../../../src/components/Button/CartButton.tsx"],"sourcesContent":["import { useMemo } from \"react\";\nimport styled, { css } from \"styled-components\";\n\nimport CartIcon from \"../../assets/icons/cart.svg\";\nimport CartPlusIcon from \"../../assets/icons/cartPlus.svg\";\nimport { StyleableSvgImage } from \"../StyleableSvgImage\";\nimport { Button } from \"./Button\";\nimport type { ButtonProps } from \"./Button.types\";\n\nexport interface CartButtonProps extends ButtonProps {\n icon?: \"cart\" | \"plus\";\n hideIcon?: boolean;\n /**\n * (optional) Mini-Text to display before the label, used for additional context. See example for more details\n * @example\n * preLabel=\"Available again week of\"\n * label=\"Oct. 10\"\n */\n preLabel?: string;\n /**\n * (optional) Label to display on the button. If not provided, only the icon will be displayed\n */\n label?: string;\n}\n\nconst ButtonStyled = styled(Button)<CartButtonProps>`\n ${({ label, preLabel }) => {\n // If both label and preLabel don't force any sizing;\n if (!!label && !!preLabel) {\n return;\n }\n\n /**\n * For historical reasons, we have to set a fixed height and padding for button. I get the height to match the\n * design but the padding is way bigger than it can be, would make sense to just vertically align content.\n * FIXME: investigate if we can remove padding and just vertically align content\n */\n if (label) {\n return css`\n padding: 10px 15px;\n height: 40px;\n `;\n }\n\n // And otherwise rendering just icon force both width and height to be 40px\n return css`\n padding: 10px 15px;\n width: 40px;\n height: 40px;\n `;\n }}\n\n ${({ label }) =>\n !!label &&\n css`\n width: auto;\n `}\n`;\n\nconst ButtonInnerWrap = styled.div`\n display: flex;\n align-items: center;\n gap: 8px;\n`;\n\nconst Labels = styled.div`\n display: inline-flex;\n flex-direction: column;\n`;\nconst PreLabel = styled.span`\n /* Size relative to regular label size, e.g if 14px label than 10px preLabel */\n font-size: 0.714em;\n line-height: 1.2;\n font-weight: 400;\n`;\nconst Label = styled.span<{ $bold?: boolean }>`\n font-weight: ${({ $bold }) => ($bold ? \"bold\" : \"normal\")};\n`;\n\nexport const CartButton = function CartButton({\n icon = \"cart\",\n hideIcon,\n preLabel,\n label,\n ...props\n}: CartButtonProps) {\n const Icon = useMemo(() => {\n switch (icon) {\n case \"cart\":\n return CartIcon;\n\n case \"plus\":\n return CartPlusIcon;\n }\n }, [icon]);\n\n // #############################################################################\n // Render\n // #############################################################################\n return (\n <ButtonStyled {...props} label={label} preLabel={preLabel}>\n <ButtonInnerWrap>\n {!hideIcon && <StyleableSvgImage src={Icon} width={20} height={16} />}\n {(!!preLabel || !!label) && (\n <Labels>\n {!!preLabel && <PreLabel>{preLabel}</PreLabel>}\n {!!label && (\n <Label\n // Enforce bold label if preLabel is present as per design, preLabel is always regular weight\n $bold={!!preLabel}\n >\n {label}\n </Label>\n )}\n </Labels>\n )}\n </ButtonInnerWrap>\n </ButtonStyled>\n );\n};\n"],"names":["ButtonStyled","styled","Button","label","preLabel","css","ButtonInnerWrap","div","Labels","PreLabel","span","Label","$bold","CartButton","CartButton2","icon","hideIcon","props","Icon","useMemo","CartIcon","CartPlusIcon","children","StyleableSvgImage","src","width","height","jsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAyBA,MAAMA,YAAA,GAAeC,eAAAA,CAAAA,SAAAA,EAAOC,MAAAA,CAAAA,MAAM,CAAA;AAAA,IAC9B,CAAC;EAAEC,KAAO;EAAAC;CAAe,KAAA;EAEzB,IAAI,CAAC,CAACD,KAAS,IAAA,CAAC,CAACC,QAAU,EAAA;IACzB;EACF;EAOA,IAAID,KAAO,EAAA;IACF,OAAAE,UAAA;AAAA;AAAA;AAAA,OAAA;EAIT;EAGO,OAAAA,UAAA;AAAA;AAAA;AAAA;AAAA,KAAA;AAKT,CAAC;AAAA;AAAA,IAEC,CAAC;EAAEF;AAAA,CACH,KAAA,CAAC,CAACA,KACF,IAAAE,MAAAA,CAAAA,GAAA;AAAA;AAAA,KAEC;AAAA,CAAA;AAGL,MAAMC,kBAAkBL,eAAO,CAAA,SAAA,CAAA,CAAAM,GAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAM/B,MAAMC,SAASP,eAAO,CAAA,SAAA,CAAA,CAAAM,GAAA;AAAA;AAAA;AAAA,CAAA;AAItB,MAAME,WAAWR,eAAO,CAAA,SAAA,CAAA,CAAAS,IAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAMxB,MAAMC,QAAQV,eAAO,CAAA,SAAA,CAAA,CAAAS,IAAA;AAAA,iBACJ,CAAC;EAAEE;AAAA,CAAa,KAAAA,KAAA,GAAQ,SAAS,QAAS;AAAA,CAAA;AAG9C,MAAAC,UAAA,GAAa,SAASA,WAAWC,CAAA;EAC5CC,IAAO,GAAA,MAAA;EACPC,QAAA;EACAZ,QAAA;EACAD,KAAA;EACA,GAAGc;AACL,CAAoB,EAAA;EACZ,MAAAC,IAAA,GAAOC,KAAAA,CAAAA,QAAQ,MAAM;IACzB,QAAQJ,IAAM;MACZ,KAAK,MAAA;QACI,OAAAK,4BAAA;MAET,KAAK,MAAA;QACI,OAAAC,gCAAA;IACX;EAAA,CACF,EAAG,CAACN,IAAI,CAAC,CAAA;EAKT,OAAA,8BACGf,YAAc,EAAA;IAAA,GAAGiB;IAAOd,KAAc;IAAAC,QAAA;IACrCkB,yCAAChB,eACE,EAAA;MAAAgB,QAAA,EAAA,CAAC,CAAAN,QAAA,kCAAaO,iBAAkB,CAAAA,iBAAA,EAAA;QAAAC,GAAA,EAAKN;QAAMO,KAAO,EAAA,EAAA;QAAIC,QAAQ;OAAI,CAAA,EAAA,CACjE,CAAC,CAACtB,QAAA,IAAY,CAAC,CAACD,KAAA,KAAA,+BACfK,MACE,EAAA;QAAAc,QAAA,EAAA,CAAA,CAAC,CAAClB,QAAA,IAAA,eAAauB,UAAA,CAAAA,GAAA,CAAAlB,QAAA,EAAA;UAAUa,QAAS,EAAAlB;SAAA,CAAA,EAClC,CAAC,CAACD,KACD,IAAA,eAAAwB,UAAA,CAAAA,GAAA,CAAChB,KAAA,EAAA;UAECC,KAAA,EAAO,CAAC,CAACR,QAAA;UAERkB,QAAA,EAAAnB;QAAA,CACH,CAAA;OAEJ,CAAA;IAEJ,CAAA;EACF,CAAA,CAAA;AAEJ,CAAA;"}
|
|
@@ -10,9 +10,25 @@ import CartIcon__default from "../../assets/cart.svg";
|
|
|
10
10
|
import { StyleableSvgImage } from '../StyleableSvgImage/StyleableSvgImage.mjs';
|
|
11
11
|
"use strict";
|
|
12
12
|
const ButtonStyled = styled(Button)`
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
${({
|
|
14
|
+
label,
|
|
15
|
+
preLabel
|
|
16
|
+
}) => {
|
|
17
|
+
if (!!label && !!preLabel) {
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
if (label) {
|
|
21
|
+
return css`
|
|
22
|
+
padding: 10px 15px;
|
|
23
|
+
height: 40px;
|
|
24
|
+
`;
|
|
25
|
+
}
|
|
26
|
+
return css`
|
|
27
|
+
padding: 10px 15px;
|
|
28
|
+
width: 40px;
|
|
29
|
+
height: 40px;
|
|
30
|
+
`;
|
|
31
|
+
}}
|
|
16
32
|
|
|
17
33
|
${({
|
|
18
34
|
label
|
|
@@ -25,9 +41,25 @@ const ButtonInnerWrap = styled.div`
|
|
|
25
41
|
align-items: center;
|
|
26
42
|
gap: 8px;
|
|
27
43
|
`;
|
|
44
|
+
const Labels = styled.div`
|
|
45
|
+
display: inline-flex;
|
|
46
|
+
flex-direction: column;
|
|
47
|
+
`;
|
|
48
|
+
const PreLabel = styled.span`
|
|
49
|
+
/* Size relative to regular label size, e.g if 14px label than 10px preLabel */
|
|
50
|
+
font-size: 0.714em;
|
|
51
|
+
line-height: 1.2;
|
|
52
|
+
font-weight: 400;
|
|
53
|
+
`;
|
|
54
|
+
const Label = styled.span`
|
|
55
|
+
font-weight: ${({
|
|
56
|
+
$bold
|
|
57
|
+
}) => $bold ? "bold" : "normal"};
|
|
58
|
+
`;
|
|
28
59
|
const CartButton = function CartButton2({
|
|
29
60
|
icon = "cart",
|
|
30
61
|
hideIcon,
|
|
62
|
+
preLabel,
|
|
31
63
|
label,
|
|
32
64
|
...props
|
|
33
65
|
}) {
|
|
@@ -42,13 +74,19 @@ const CartButton = function CartButton2({
|
|
|
42
74
|
return /* @__PURE__ */jsx(ButtonStyled, {
|
|
43
75
|
...props,
|
|
44
76
|
label,
|
|
77
|
+
preLabel,
|
|
45
78
|
children: /* @__PURE__ */jsxs(ButtonInnerWrap, {
|
|
46
79
|
children: [!hideIcon && /* @__PURE__ */jsx(StyleableSvgImage, {
|
|
47
80
|
src: Icon,
|
|
48
81
|
width: 20,
|
|
49
82
|
height: 16
|
|
50
|
-
}), !!label && /* @__PURE__ */
|
|
51
|
-
children:
|
|
83
|
+
}), (!!preLabel || !!label) && /* @__PURE__ */jsxs(Labels, {
|
|
84
|
+
children: [!!preLabel && /* @__PURE__ */jsx(PreLabel, {
|
|
85
|
+
children: preLabel
|
|
86
|
+
}), !!label && /* @__PURE__ */jsx(Label, {
|
|
87
|
+
$bold: !!preLabel,
|
|
88
|
+
children: label
|
|
89
|
+
})]
|
|
52
90
|
})]
|
|
53
91
|
})
|
|
54
92
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CartButton.mjs","sources":["../../../src/components/Button/CartButton.tsx"],"sourcesContent":["import { useMemo } from \"react\";\nimport styled, { css } from \"styled-components\";\n\nimport CartIcon from \"../../assets/icons/cart.svg\";\nimport CartPlusIcon from \"../../assets/icons/cartPlus.svg\";\nimport { StyleableSvgImage } from \"../StyleableSvgImage\";\nimport { Button } from \"./Button\";\nimport type { ButtonProps } from \"./Button.types\";\n\nexport interface CartButtonProps extends ButtonProps {\n icon?: \"cart\" | \"plus\";\n hideIcon?: boolean;\n label?: string;\n}\n\nconst ButtonStyled = styled(Button)<CartButtonProps>`\n padding: 10px 15px;\n
|
|
1
|
+
{"version":3,"file":"CartButton.mjs","sources":["../../../src/components/Button/CartButton.tsx"],"sourcesContent":["import { useMemo } from \"react\";\nimport styled, { css } from \"styled-components\";\n\nimport CartIcon from \"../../assets/icons/cart.svg\";\nimport CartPlusIcon from \"../../assets/icons/cartPlus.svg\";\nimport { StyleableSvgImage } from \"../StyleableSvgImage\";\nimport { Button } from \"./Button\";\nimport type { ButtonProps } from \"./Button.types\";\n\nexport interface CartButtonProps extends ButtonProps {\n icon?: \"cart\" | \"plus\";\n hideIcon?: boolean;\n /**\n * (optional) Mini-Text to display before the label, used for additional context. See example for more details\n * @example\n * preLabel=\"Available again week of\"\n * label=\"Oct. 10\"\n */\n preLabel?: string;\n /**\n * (optional) Label to display on the button. If not provided, only the icon will be displayed\n */\n label?: string;\n}\n\nconst ButtonStyled = styled(Button)<CartButtonProps>`\n ${({ label, preLabel }) => {\n // If both label and preLabel don't force any sizing;\n if (!!label && !!preLabel) {\n return;\n }\n\n /**\n * For historical reasons, we have to set a fixed height and padding for button. I get the height to match the\n * design but the padding is way bigger than it can be, would make sense to just vertically align content.\n * FIXME: investigate if we can remove padding and just vertically align content\n */\n if (label) {\n return css`\n padding: 10px 15px;\n height: 40px;\n `;\n }\n\n // And otherwise rendering just icon force both width and height to be 40px\n return css`\n padding: 10px 15px;\n width: 40px;\n height: 40px;\n `;\n }}\n\n ${({ label }) =>\n !!label &&\n css`\n width: auto;\n `}\n`;\n\nconst ButtonInnerWrap = styled.div`\n display: flex;\n align-items: center;\n gap: 8px;\n`;\n\nconst Labels = styled.div`\n display: inline-flex;\n flex-direction: column;\n`;\nconst PreLabel = styled.span`\n /* Size relative to regular label size, e.g if 14px label than 10px preLabel */\n font-size: 0.714em;\n line-height: 1.2;\n font-weight: 400;\n`;\nconst Label = styled.span<{ $bold?: boolean }>`\n font-weight: ${({ $bold }) => ($bold ? \"bold\" : \"normal\")};\n`;\n\nexport const CartButton = function CartButton({\n icon = \"cart\",\n hideIcon,\n preLabel,\n label,\n ...props\n}: CartButtonProps) {\n const Icon = useMemo(() => {\n switch (icon) {\n case \"cart\":\n return CartIcon;\n\n case \"plus\":\n return CartPlusIcon;\n }\n }, [icon]);\n\n // #############################################################################\n // Render\n // #############################################################################\n return (\n <ButtonStyled {...props} label={label} preLabel={preLabel}>\n <ButtonInnerWrap>\n {!hideIcon && <StyleableSvgImage src={Icon} width={20} height={16} />}\n {(!!preLabel || !!label) && (\n <Labels>\n {!!preLabel && <PreLabel>{preLabel}</PreLabel>}\n {!!label && (\n <Label\n // Enforce bold label if preLabel is present as per design, preLabel is always regular weight\n $bold={!!preLabel}\n >\n {label}\n </Label>\n )}\n </Labels>\n )}\n </ButtonInnerWrap>\n </ButtonStyled>\n );\n};\n"],"names":["ButtonStyled","styled","Button","label","preLabel","css","ButtonInnerWrap","div","Labels","PreLabel","span","Label","$bold","CartButton","CartButton2","icon","hideIcon","props","Icon","useMemo","CartIcon","CartPlusIcon","children","StyleableSvgImage","src","width","height","jsx"],"mappings":";;;;;;;;;;;AAyBA,MAAMA,YAAA,GAAeC,OAAOC,MAAM,CAAA;AAAA,IAC9B,CAAC;EAAEC,KAAO;EAAAC;CAAe,KAAA;EAEzB,IAAI,CAAC,CAACD,KAAS,IAAA,CAAC,CAACC,QAAU,EAAA;IACzB;EACF;EAOA,IAAID,KAAO,EAAA;IACF,OAAAE,GAAA;AAAA;AAAA;AAAA,OAAA;EAIT;EAGO,OAAAA,GAAA;AAAA;AAAA;AAAA;AAAA,KAAA;AAKT,CAAC;AAAA;AAAA,IAEC,CAAC;EAAEF;AAAA,CACH,KAAA,CAAC,CAACA,KACF,IAAAE,GAAA;AAAA;AAAA,KAEC;AAAA,CAAA;AAGL,MAAMC,kBAAkBL,MAAO,CAAAM,GAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAM/B,MAAMC,SAASP,MAAO,CAAAM,GAAA;AAAA;AAAA;AAAA,CAAA;AAItB,MAAME,WAAWR,MAAO,CAAAS,IAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAMxB,MAAMC,QAAQV,MAAO,CAAAS,IAAA;AAAA,iBACJ,CAAC;EAAEE;AAAA,CAAa,KAAAA,KAAA,GAAQ,SAAS,QAAS;AAAA,CAAA;AAG9C,MAAAC,UAAA,GAAa,SAASA,WAAWC,CAAA;EAC5CC,IAAO,GAAA,MAAA;EACPC,QAAA;EACAZ,QAAA;EACAD,KAAA;EACA,GAAGc;AACL,CAAoB,EAAA;EACZ,MAAAC,IAAA,GAAOC,QAAQ,MAAM;IACzB,QAAQJ,IAAM;MACZ,KAAK,MAAA;QACI,OAAAK,iBAAA;MAET,KAAK,MAAA;QACI,OAAAC,qBAAA;IACX;EAAA,CACF,EAAG,CAACN,IAAI,CAAC,CAAA;EAKT,OAAA,mBACGf,YAAc,EAAA;IAAA,GAAGiB;IAAOd,KAAc;IAAAC,QAAA;IACrCkB,8BAAChB,eACE,EAAA;MAAAgB,QAAA,EAAA,CAAC,CAAAN,QAAA,uBAAaO,iBAAkB,EAAA;QAAAC,GAAA,EAAKN;QAAMO,KAAO,EAAA,EAAA;QAAIC,QAAQ;OAAI,CAAA,EAAA,CACjE,CAAC,CAACtB,QAAA,IAAY,CAAC,CAACD,KAAA,KAAA,oBACfK,MACE,EAAA;QAAAc,QAAA,EAAA,CAAA,CAAC,CAAClB,QAAA,IAAA,eAAauB,GAAA,CAAAlB,QAAA,EAAA;UAAUa,QAAS,EAAAlB;SAAA,CAAA,EAClC,CAAC,CAACD,KACD,IAAA,eAAAwB,GAAA,CAAChB,KAAA,EAAA;UAECC,KAAA,EAAO,CAAC,CAACR,QAAA;UAERkB,QAAA,EAAAnB;QAAA,CACH,CAAA;OAEJ,CAAA;IAEJ,CAAA;EACF,CAAA,CAAA;AAEJ,CAAA;"}
|
|
@@ -12,7 +12,7 @@ require('../StyleableSvgImage/index.js');
|
|
|
12
12
|
var CustomImage_styles = require('./CustomImage.styles.js');
|
|
13
13
|
var FallbackImageIcon = require("../../assets/fallbackImage.svg");
|
|
14
14
|
var StyleableSvgImage = require('../StyleableSvgImage/StyleableSvgImage.js');
|
|
15
|
-
var CloseIcon = require("../../assets/
|
|
15
|
+
var CloseIcon = require("../../assets/close.svg");
|
|
16
16
|
var ZoomInIcon = require("../../assets/zoom-in.svg");
|
|
17
17
|
function _interopDefault(e) {
|
|
18
18
|
return e && e.__esModule ? e : {
|
|
@@ -10,7 +10,7 @@ import '../StyleableSvgImage/index.mjs';
|
|
|
10
10
|
import { ImageWrapOuter, ImageWrap, FallbackImageWrap, ImageSkeletonLoader, FullscreenImageWrap, FullscreenCloseButton, FullscreenButton, ZoomIcon } from './CustomImage.styles.mjs';
|
|
11
11
|
import FallbackImageIcon__default from "../../assets/fallbackImage.svg";
|
|
12
12
|
import { StyleableSvgImage } from '../StyleableSvgImage/StyleableSvgImage.mjs';
|
|
13
|
-
import CloseIcon__default from "../../assets/
|
|
13
|
+
import CloseIcon__default from "../../assets/close.svg";
|
|
14
14
|
import ZoomInIcon__default from "../../assets/zoom-in.svg";
|
|
15
15
|
"use strict";
|
|
16
16
|
const isNextImageLoading = imageEl => {
|
|
@@ -14,7 +14,7 @@ var FeaturesSection_styles = require('./FeaturesSection.styles.js');
|
|
|
14
14
|
var useLockBodyScrollCustom = require('../../hooks/useLockBodyScrollCustom.js');
|
|
15
15
|
var Container = require('../Container/Container.js');
|
|
16
16
|
var StyleableSvgImage = require('../StyleableSvgImage/StyleableSvgImage.js');
|
|
17
|
-
var CloseSvg = require("../../assets/
|
|
17
|
+
var CloseSvg = require("../../assets/close2.svg");
|
|
18
18
|
function _interopDefault(e) {
|
|
19
19
|
return e && e.__esModule ? e : {
|
|
20
20
|
default: e
|
|
@@ -12,7 +12,7 @@ import { WrapOuter, OverlayWrap, OverlayClose, Wrap, MetaWrap, SubHeading, Headi
|
|
|
12
12
|
import { useLockBodyScrollCustom } from '../../hooks/useLockBodyScrollCustom.mjs';
|
|
13
13
|
import { Container } from '../Container/Container.mjs';
|
|
14
14
|
import { StyleableSvgImage } from '../StyleableSvgImage/StyleableSvgImage.mjs';
|
|
15
|
-
import CloseSvg__default from "../../assets/
|
|
15
|
+
import CloseSvg__default from "../../assets/close2.svg";
|
|
16
16
|
"use strict";
|
|
17
17
|
const FEATURES_DEFAULT_PLAYBACK = 500;
|
|
18
18
|
const parseTime = time => parseFloat(time.toFixed(3));
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "../../../assets/
|
|
2
|
-
export { default } from "../../../assets/
|
|
1
|
+
export * from "../../../assets/close2.svg";
|
|
2
|
+
export { default } from "../../../assets/close2.svg";
|
|
3
3
|
//# sourceMappingURL=close.svg.mjs.map
|
|
@@ -8,7 +8,7 @@ var Header_styles = require('../../Header/Header.styles.js');
|
|
|
8
8
|
require('../../StyleableSvgImage/index.js');
|
|
9
9
|
var GridModal_styles = require('./GridModal.styles.js');
|
|
10
10
|
var StyleableSvgImage = require('../../StyleableSvgImage/StyleableSvgImage.js');
|
|
11
|
-
var CloseIcon = require("../../../assets/
|
|
11
|
+
var CloseIcon = require("../../../assets/close.svg");
|
|
12
12
|
function _interopDefault(e) {
|
|
13
13
|
return e && e.__esModule ? e : {
|
|
14
14
|
default: e
|
|
@@ -6,7 +6,7 @@ import { HEADER_HEIGHT } from '../../Header/Header.styles.mjs';
|
|
|
6
6
|
import '../../StyleableSvgImage/index.mjs';
|
|
7
7
|
import { Wrap, Container, CloseButton, Video } from './GridModal.styles.mjs';
|
|
8
8
|
import { StyleableSvgImage } from '../../StyleableSvgImage/StyleableSvgImage.mjs';
|
|
9
|
-
import CloseIcon__default from "../../../assets/
|
|
9
|
+
import CloseIcon__default from "../../../assets/close.svg";
|
|
10
10
|
"use strict";
|
|
11
11
|
const GridModal = function CartModal({
|
|
12
12
|
open,
|
|
@@ -9,7 +9,7 @@ var CartModal_styles = require('./CartModal.styles.js');
|
|
|
9
9
|
require('./Item/index.js');
|
|
10
10
|
var StyleableSvgImage = require('../../StyleableSvgImage/StyleableSvgImage.js');
|
|
11
11
|
var CartIcon = require("../../../assets/cart.svg");
|
|
12
|
-
var CloseIcon = require("../../../assets/
|
|
12
|
+
var CloseIcon = require("../../../assets/close.svg");
|
|
13
13
|
var Item = require('./Item/Item.js');
|
|
14
14
|
function _interopDefault(e) {
|
|
15
15
|
return e && e.__esModule ? e : {
|