@ubnt/store.core 9.27.0-beta.1 → 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 -27
- 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/udmPro.jpg +0 -0
- package/lib/assets/udmPro2.jpg +0 -0
- package/lib/assets/udmProSpecial.jpg +0 -0
- package/lib/assets/udmProSpecial2.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/Header/CartModalV2/Item/Item.styles.d.ts +1 -1
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmPro.jpg.js +5 -5
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmPro.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProSpecial.jpg.js +5 -5
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProSpecial.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/udmPro.jpg.js +1 -1
- package/lib/components/ModelCompareV3/assets/Consoles/udmPro.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/udmProSpecial.jpg.js +1 -1
- package/lib/components/ModelCompareV3/assets/Consoles/udmProSpecial.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/udmPro.js +1 -1
- package/lib/components/ModelCompareV3/data/products/udmPro.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProSpecial.js +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProSpecial.mjs +1 -1
- 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,36 +6,19 @@
|
|
|
6
6
|
|
|
7
7
|
## Releases
|
|
8
8
|
|
|
9
|
-
### 9.27.0
|
|
9
|
+
### 9.27.0
|
|
10
10
|
|
|
11
|
-
- [
|
|
12
|
-
|
|
13
|
-
### 9.27.0-beta.0
|
|
14
|
-
|
|
15
|
-
- Upstream master
|
|
16
|
-
- [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/>`
|
|
17
12
|
|
|
18
13
|
### 9.26.0
|
|
19
14
|
|
|
20
|
-
-[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
|
|
21
16
|
|
|
22
17
|
### 9.25.0
|
|
23
18
|
|
|
24
19
|
- [Feat] [MIC-436](https://ubiquiti.atlassian.net/browse/MIC-436) Update Video Recorders compare table data
|
|
25
20
|
- [Feat] [NEP-3799](https://ubiquiti.atlassian.net/browse/NEP-3799) Add PoE+++ key feature icon and update 2 existing ones
|
|
26
21
|
|
|
27
|
-
### 9.24.0-beta.1
|
|
28
|
-
|
|
29
|
-
- [Feat] [NEP-3802](https://ubiquiti.atlassian.net/browse/NEP-3802) Add new collection - Enterprise Campus
|
|
30
|
-
|
|
31
|
-
### 9.24.0-beta.0
|
|
32
|
-
|
|
33
|
-
> Upstream master + changes
|
|
34
|
-
|
|
35
|
-
- [Refactor] Refactor how we calculate tax to have control over rounding and precision!!! Will have output offsets by a
|
|
36
|
-
up or down!
|
|
37
|
-
- [Feat] [MIC-431](https://ubiquiti.atlassian.net/browse/MIC-431) Add `UDB` and `UDB Pro` to Model Compare
|
|
38
|
-
|
|
39
22
|
### 9.24.0
|
|
40
23
|
|
|
41
24
|
- [Feat] [MIC-430](https://ubiquiti.atlassian.net/browse/MIC-430) Add `UMR Ultra` to Model Compare
|
|
@@ -60,13 +43,6 @@
|
|
|
60
43
|
- [chore] Update deps
|
|
61
44
|
- [Feat] [MIC-431](https://ubiquiti.atlassian.net/browse/MIC-431) Add `UDB` and `UDB Pro` to Model Compare
|
|
62
45
|
|
|
63
|
-
### 9.23.0-beta.0
|
|
64
|
-
|
|
65
|
-
- [Feat] [NEP-3704](https://ubiquiti.atlassian.net/browse/NEP-3704) Add "Device Bridge" collection to pro store categories
|
|
66
|
-
- [Feat] [NEP-3300](https://ubiquiti.atlassian.net/browse/NEP-3300) Add NAS category in pro store
|
|
67
|
-
- [Feat] [MIC-378](https://ubiquiti.atlassian.net/browse/MIC-378) Add product helper functions
|
|
68
|
-
- [Feat] [NEP-3699](https://ubiquiti.atlassian.net/browse/NEP-3699) Clean up collections in pro store mapping
|
|
69
|
-
|
|
70
46
|
### 9.22.1
|
|
71
47
|
|
|
72
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/udmPro.jpg
CHANGED
|
Binary file
|
package/lib/assets/udmPro2.jpg
CHANGED
|
Binary file
|
|
Binary file
|
|
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;"}
|
|
@@ -5,7 +5,7 @@ export declare const ProductMeta: import("styled-components").StyledComponent<"d
|
|
|
5
5
|
export declare const ProductTitle: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
6
6
|
export declare const ProductPrice: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
7
7
|
export declare const ProductPriceSmall: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
8
|
-
export declare const CartButton: import("styled-components").StyledComponent<({ icon, hideIcon, label, ...props }: import("../../../Button").CartButtonProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
|
|
8
|
+
export declare const CartButton: import("styled-components").StyledComponent<({ icon, hideIcon, preLabel, label, ...props }: import("../../../Button").CartButtonProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
|
|
9
9
|
export declare const ControlsWrap: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
10
10
|
export declare const ControlsButton: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {
|
|
11
11
|
$loading?: boolean;
|
|
@@ -3,24 +3,24 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
var
|
|
6
|
+
var _externalAssets_CCo8CEpV = require("../../../../../assets/udmPro2.jpg");
|
|
7
7
|
function _interopDefault(e) {
|
|
8
8
|
return e && e.__esModule ? e : {
|
|
9
9
|
default: e
|
|
10
10
|
};
|
|
11
11
|
}
|
|
12
|
-
var
|
|
12
|
+
var _externalAssets_CCo8CEpV__default = /*#__PURE__*/_interopDefault(_externalAssets_CCo8CEpV);
|
|
13
13
|
Object.defineProperty(exports, "default", {
|
|
14
14
|
enumerable: true,
|
|
15
15
|
get: function () {
|
|
16
|
-
return
|
|
16
|
+
return _externalAssets_CCo8CEpV__default["default"];
|
|
17
17
|
}
|
|
18
18
|
});
|
|
19
|
-
Object.keys(
|
|
19
|
+
Object.keys(_externalAssets_CCo8CEpV).forEach(function (k) {
|
|
20
20
|
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
21
21
|
enumerable: true,
|
|
22
22
|
get: function () {
|
|
23
|
-
return
|
|
23
|
+
return _externalAssets_CCo8CEpV[k];
|
|
24
24
|
}
|
|
25
25
|
});
|
|
26
26
|
});
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "../../../../../assets/
|
|
2
|
-
export { default } from "../../../../../assets/
|
|
1
|
+
export * from "../../../../../assets/udmPro2.jpg";
|
|
2
|
+
export { default } from "../../../../../assets/udmPro2.jpg";
|
|
3
3
|
//# sourceMappingURL=udmPro.jpg.mjs.map
|
|
@@ -3,24 +3,24 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
var
|
|
6
|
+
var _externalAssets_CBGnWxM$ = require("../../../../../assets/udmProSpecial2.jpg");
|
|
7
7
|
function _interopDefault(e) {
|
|
8
8
|
return e && e.__esModule ? e : {
|
|
9
9
|
default: e
|
|
10
10
|
};
|
|
11
11
|
}
|
|
12
|
-
var
|
|
12
|
+
var _externalAssets_CBGnWxM$__default = /*#__PURE__*/_interopDefault(_externalAssets_CBGnWxM$);
|
|
13
13
|
Object.defineProperty(exports, "default", {
|
|
14
14
|
enumerable: true,
|
|
15
15
|
get: function () {
|
|
16
|
-
return
|
|
16
|
+
return _externalAssets_CBGnWxM$__default["default"];
|
|
17
17
|
}
|
|
18
18
|
});
|
|
19
|
-
Object.keys(
|
|
19
|
+
Object.keys(_externalAssets_CBGnWxM$).forEach(function (k) {
|
|
20
20
|
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
21
21
|
enumerable: true,
|
|
22
22
|
get: function () {
|
|
23
|
-
return
|
|
23
|
+
return _externalAssets_CBGnWxM$[k];
|
|
24
24
|
}
|
|
25
25
|
});
|
|
26
26
|
});
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "../../../../../assets/
|
|
2
|
-
export { default } from "../../../../../assets/
|
|
1
|
+
export * from "../../../../../assets/udmProSpecial2.jpg";
|
|
2
|
+
export { default } from "../../../../../assets/udmProSpecial2.jpg";
|
|
3
3
|
//# sourceMappingURL=udmProSpecial.jpg.mjs.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "../../../../assets/
|
|
2
|
-
export { default } from "../../../../assets/
|
|
1
|
+
export * from "../../../../assets/udmPro.jpg";
|
|
2
|
+
export { default } from "../../../../assets/udmPro.jpg";
|
|
3
3
|
//# sourceMappingURL=udmPro.jpg.mjs.map
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
var image = require("../../../../assets/
|
|
6
|
+
var image = require("../../../../assets/udmProSpecial.jpg");
|
|
7
7
|
function _interopDefault(e) {
|
|
8
8
|
return e && e.__esModule ? e : {
|
|
9
9
|
default: e
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "../../../../assets/
|
|
2
|
-
export { default } from "../../../../assets/
|
|
1
|
+
export * from "../../../../assets/udmProSpecial.jpg";
|
|
2
|
+
export { default } from "../../../../assets/udmProSpecial.jpg";
|
|
3
3
|
//# sourceMappingURL=udmProSpecial.jpg.mjs.map
|
|
@@ -23,8 +23,8 @@ var unifiAppSuite = require('./properties/unifiAppSuite.js');
|
|
|
23
23
|
var unifiDevices = require('./properties/unifiDevices.js');
|
|
24
24
|
var wanPorts = require('./properties/wanPorts.js');
|
|
25
25
|
var _externalAssets_CMbJW0VT = require("../../../assets/udmProMax2.jpg");
|
|
26
|
-
var
|
|
27
|
-
var
|
|
26
|
+
var _externalAssets_CCo8CEpV = require("../../../assets/udmPro2.jpg");
|
|
27
|
+
var _externalAssets_CBGnWxM$ = require("../../../assets/udmProSpecial2.jpg");
|
|
28
28
|
var image = require("../../../assets/udw2.jpg");
|
|
29
29
|
var _externalAssets_ReJhRoVe = require("../../../assets/ucgMax2.jpg");
|
|
30
30
|
var _externalAssets_sWF40Ihh = require("../../../assets/ucgUltra2.jpg");
|
|
@@ -37,8 +37,8 @@ function _interopDefault(e) {
|
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
39
|
var _externalAssets_CMbJW0VT__default = /*#__PURE__*/_interopDefault(_externalAssets_CMbJW0VT);
|
|
40
|
-
var
|
|
41
|
-
var
|
|
40
|
+
var _externalAssets_CCo8CEpV__default = /*#__PURE__*/_interopDefault(_externalAssets_CCo8CEpV);
|
|
41
|
+
var _externalAssets_CBGnWxM$__default = /*#__PURE__*/_interopDefault(_externalAssets_CBGnWxM$);
|
|
42
42
|
var image__default = /*#__PURE__*/_interopDefault(image);
|
|
43
43
|
var _externalAssets_ReJhRoVe__default = /*#__PURE__*/_interopDefault(_externalAssets_ReJhRoVe);
|
|
44
44
|
var _externalAssets_sWF40Ihh__default = /*#__PURE__*/_interopDefault(_externalAssets_sWF40Ihh);
|
|
@@ -61,13 +61,13 @@ const udmProMax = {
|
|
|
61
61
|
const udmPro = {
|
|
62
62
|
...udmPro$1.udmPro,
|
|
63
63
|
description: "udmPro.customDescription",
|
|
64
|
-
image: getImage(
|
|
64
|
+
image: getImage(_externalAssets_CCo8CEpV__default["default"])
|
|
65
65
|
};
|
|
66
66
|
const udmProSpecial = {
|
|
67
67
|
...udmProSpecial$1.udmProSpecial,
|
|
68
68
|
title: "udmProSpecial.customTitle",
|
|
69
69
|
description: "udmProSpecial.customDescription",
|
|
70
|
-
image: getImage(
|
|
70
|
+
image: getImage(_externalAssets_CBGnWxM$__default["default"])
|
|
71
71
|
};
|
|
72
72
|
const udw = {
|
|
73
73
|
...udw$1.udw,
|
|
@@ -21,8 +21,8 @@ import { unifiAppSuite } from './properties/unifiAppSuite.mjs';
|
|
|
21
21
|
import { unifiDevices } from './properties/unifiDevices.mjs';
|
|
22
22
|
import { wanPorts } from './properties/wanPorts.mjs';
|
|
23
23
|
import _externalAssets_CMbJW0VT__default from "../../../assets/udmProMax2.jpg";
|
|
24
|
-
import
|
|
25
|
-
import
|
|
24
|
+
import _externalAssets_CCo8CEpV__default from "../../../assets/udmPro2.jpg";
|
|
25
|
+
import _externalAssets_CBGnWxM$__default from "../../../assets/udmProSpecial2.jpg";
|
|
26
26
|
import image__default from "../../../assets/udw2.jpg";
|
|
27
27
|
import _externalAssets_ReJhRoVe__default from "../../../assets/ucgMax2.jpg";
|
|
28
28
|
import _externalAssets_sWF40Ihh__default from "../../../assets/ucgUltra2.jpg";
|
|
@@ -46,13 +46,13 @@ const udmProMax = {
|
|
|
46
46
|
const udmPro = {
|
|
47
47
|
...udmPro$1,
|
|
48
48
|
description: "udmPro.customDescription",
|
|
49
|
-
image: getImage(
|
|
49
|
+
image: getImage(_externalAssets_CCo8CEpV__default)
|
|
50
50
|
};
|
|
51
51
|
const udmProSpecial = {
|
|
52
52
|
...udmProSpecial$1,
|
|
53
53
|
title: "udmProSpecial.customTitle",
|
|
54
54
|
description: "udmProSpecial.customDescription",
|
|
55
|
-
image: getImage(
|
|
55
|
+
image: getImage(_externalAssets_CBGnWxM$__default)
|
|
56
56
|
};
|
|
57
57
|
const udw = {
|
|
58
58
|
...udw$1,
|
|
@@ -20,7 +20,7 @@ var unifiDevices = require('../properties/unifiDevices.js');
|
|
|
20
20
|
var unifiPowerBackup = require('../properties/unifiPowerBackup.js');
|
|
21
21
|
var wanPorts = require('../properties/wanPorts.js');
|
|
22
22
|
var unifi = require('../../../../constants/proStoreCategories/mapping/unifi.js');
|
|
23
|
-
var image = require("../../../../assets/
|
|
23
|
+
var image = require("../../../../assets/udmPro.jpg");
|
|
24
24
|
var StyleableSvgImage = require('../../../StyleableSvgImage/StyleableSvgImage.js');
|
|
25
25
|
var applications = require("../../../../assets/applications.svg");
|
|
26
26
|
var nextAiInspection = require('../properties/nextAiInspection.js');
|
|
@@ -18,7 +18,7 @@ import { unifiDevices } from '../properties/unifiDevices.mjs';
|
|
|
18
18
|
import { unifiPowerBackup } from '../properties/unifiPowerBackup.mjs';
|
|
19
19
|
import { wanPorts } from '../properties/wanPorts.mjs';
|
|
20
20
|
import { UniFiCategoryId } from '../../../../constants/proStoreCategories/mapping/unifi.mjs';
|
|
21
|
-
import image__default from "../../../../assets/
|
|
21
|
+
import image__default from "../../../../assets/udmPro.jpg";
|
|
22
22
|
import { StyleableSvgImage } from '../../../StyleableSvgImage/StyleableSvgImage.mjs';
|
|
23
23
|
import applications__default from "../../../../assets/applications.svg";
|
|
24
24
|
import { nextAiInspection } from '../properties/nextAiInspection.mjs';
|
|
@@ -20,7 +20,7 @@ var unifiDevices = require('../properties/unifiDevices.js');
|
|
|
20
20
|
var unifiPowerBackup = require('../properties/unifiPowerBackup.js');
|
|
21
21
|
var wanPorts = require('../properties/wanPorts.js');
|
|
22
22
|
var unifi = require('../../../../constants/proStoreCategories/mapping/unifi.js');
|
|
23
|
-
var image = require("../../../../assets/
|
|
23
|
+
var image = require("../../../../assets/udmProSpecial.jpg");
|
|
24
24
|
var StyleableSvgImage = require('../../../StyleableSvgImage/StyleableSvgImage.js');
|
|
25
25
|
var applications = require("../../../../assets/applications.svg");
|
|
26
26
|
var nextAiInspection = require('../properties/nextAiInspection.js');
|
|
@@ -18,7 +18,7 @@ import { unifiDevices } from '../properties/unifiDevices.mjs';
|
|
|
18
18
|
import { unifiPowerBackup } from '../properties/unifiPowerBackup.mjs';
|
|
19
19
|
import { wanPorts } from '../properties/wanPorts.mjs';
|
|
20
20
|
import { UniFiCategoryId } from '../../../../constants/proStoreCategories/mapping/unifi.mjs';
|
|
21
|
-
import image__default from "../../../../assets/
|
|
21
|
+
import image__default from "../../../../assets/udmProSpecial.jpg";
|
|
22
22
|
import { StyleableSvgImage } from '../../../StyleableSvgImage/StyleableSvgImage.mjs';
|
|
23
23
|
import applications__default from "../../../../assets/applications.svg";
|
|
24
24
|
import { nextAiInspection } from '../properties/nextAiInspection.mjs';
|
|
@@ -37,7 +37,6 @@ export declare const getProStoreCategoryMapping: (translations?: {
|
|
|
37
37
|
"EdgeMAX Routing": string;
|
|
38
38
|
"EdgeMAX Switching": string;
|
|
39
39
|
Enterprise: string;
|
|
40
|
-
"Enterprise Campus": string;
|
|
41
40
|
"Enterprise Scale": string;
|
|
42
41
|
Express: string;
|
|
43
42
|
Fiber: string;
|
|
@@ -57,7 +56,6 @@ export declare const getProStoreCategoryMapping: (translations?: {
|
|
|
57
56
|
"Mega Capacity": string;
|
|
58
57
|
"Mobile Routing": string;
|
|
59
58
|
Mounting: string;
|
|
60
|
-
NAS: string;
|
|
61
59
|
"NVRs & Viewport": string;
|
|
62
60
|
"New Integrations": string;
|
|
63
61
|
Other: string;
|