@moneylion/react-native-offer-carousel 1.0.5 → 1.0.7
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/lib/commonjs/capabilities/core/src/system/cnfContext/schemas/Brand.js +45 -9
- package/lib/commonjs/capabilities/core/src/system/cnfContext/schemas/Brand.js.map +1 -1
- package/lib/commonjs/capabilities/offer-catalog/src/api/offerCatalogApi.js.map +1 -1
- package/lib/commonjs/capabilities/ui/elements/src/components/MarkdownText/components.js +2 -2
- package/lib/commonjs/capabilities/ui/elements/src/components/MarkdownText/components.js.map +1 -1
- package/lib/commonjs/components/Button/index.js +4 -21
- package/lib/commonjs/components/Button/index.js.map +1 -1
- package/lib/commonjs/components/Cards/VideosCard/VideosCard.js +3 -3
- package/lib/commonjs/components/Common/BaseOfferCard/Stat/Stat.js +4 -4
- package/lib/commonjs/components/Common/BaseOfferCard/Stat/Stat.js.map +1 -1
- package/lib/commonjs/components/Common/BaseOfferCard/index.js +16 -15
- package/lib/commonjs/components/Common/BaseOfferCard/index.js.map +1 -1
- package/lib/commonjs/components/Common/DynamicOfferCard/CallToAction.js +2 -0
- package/lib/commonjs/components/Common/DynamicOfferCard/CallToAction.js.map +1 -1
- package/lib/commonjs/components/Common/DynamicOfferCard/SeeMore.js +1 -1
- package/lib/commonjs/components/Common/DynamicOfferCard/SeeMore.js.map +1 -1
- package/lib/commonjs/components/Common/DynamicOfferCard/index.js +3 -2
- package/lib/commonjs/components/Common/DynamicOfferCard/index.js.map +1 -1
- package/lib/commonjs/components/DynamicOffers/DynamicOffers.js +2 -2
- package/lib/commonjs/components/DynamicOffers/DynamicOffers.js.map +1 -1
- package/lib/commonjs/components/DynamicOffers/DynamicOffersContainer.js +1 -1
- package/lib/commonjs/components/DynamicOffers/DynamicOffersContainer.js.map +1 -1
- package/lib/commonjs/components/DynamicOffers/Render/DynamicOffersRender.js +5 -5
- package/lib/commonjs/components/DynamicOffers/Render/DynamicOffersRender.js.map +1 -1
- package/lib/commonjs/components/DynamicOffers/Render/FallbackOfferTemplate.js +2 -2
- package/lib/commonjs/components/DynamicOffers/Render/FallbackOfferTemplate.js.map +1 -1
- package/lib/commonjs/components/DynamicOffers/Render/Offer.js +5 -4
- package/lib/commonjs/components/DynamicOffers/Render/Offer.js.map +1 -1
- package/lib/commonjs/components/Layouts/CreditCardOfferCard/index.js +4 -3
- package/lib/commonjs/components/Layouts/CreditCardOfferCard/index.js.map +1 -1
- package/lib/commonjs/components/Layouts/CreditCardOfferCard/statsBuilder.js +1 -1
- package/lib/commonjs/components/Layouts/DefaultOfferCard/index.js +2 -2
- package/lib/commonjs/components/Layouts/DefaultOfferCard/index.js.map +1 -1
- package/lib/commonjs/components/Layouts/DefaultOfferCard/statsBuilder.js +1 -1
- package/lib/commonjs/components/Layouts/HeadlineWithDescriptionCard/index.js +2 -2
- package/lib/commonjs/components/Layouts/HeadlineWithDescriptionCard/index.js.map +1 -1
- package/lib/commonjs/components/Modal/DescriptionPoints.js +2 -2
- package/lib/commonjs/components/Modal/DescriptionPoints.js.map +1 -1
- package/lib/commonjs/components/Modal/Disclaimer.js +2 -2
- package/lib/commonjs/components/Modal/Disclaimer.js.map +1 -1
- package/lib/commonjs/components/Modal/OfferDetailsModal.js +6 -2
- package/lib/commonjs/components/Modal/OfferDetailsModal.js.map +1 -1
- package/lib/commonjs/components/MoneyLionOfferCarousel.js +14 -16
- package/lib/commonjs/components/MoneyLionOfferCarousel.js.map +1 -1
- package/lib/commonjs/components/Text/index.js +18 -38
- package/lib/commonjs/components/Text/index.js.map +1 -1
- package/lib/commonjs/components/View/index.js +11 -94
- package/lib/commonjs/components/View/index.js.map +1 -1
- package/lib/commonjs/config/mocks/cnfContext.js +44 -8
- package/lib/commonjs/config/mocks/cnfContext.js.map +1 -1
- package/lib/commonjs/context/ThemeProvider.js +2 -2
- package/lib/commonjs/context/ThemeProvider.js.map +1 -1
- package/lib/commonjs/pageData.js +4 -3
- package/lib/commonjs/pageData.js.map +1 -1
- package/lib/commonjs/services/getDynamicOffers.js.map +1 -1
- package/lib/commonjs/services/getProductTypesByQuery.js +1 -1
- package/lib/commonjs/services/getProductTypesByQuery.js.map +1 -1
- package/lib/commonjs/utils/formatOfferUrl.js +1 -1
- package/lib/commonjs/utils/getOffersByProductTypes.js +2 -2
- package/lib/commonjs/utils/getOffersByProductTypes.js.map +1 -1
- package/lib/commonjs/utils/selectDynamicOffers.js.map +1 -1
- package/lib/module/capabilities/core/src/system/cnfContext/schemas/Brand.js +45 -9
- package/lib/module/capabilities/core/src/system/cnfContext/schemas/Brand.js.map +1 -1
- package/lib/module/capabilities/offer-catalog/src/api/offerCatalogApi.js.map +1 -1
- package/lib/module/capabilities/ui/elements/src/components/MarkdownText/components.js +2 -3
- package/lib/module/capabilities/ui/elements/src/components/MarkdownText/components.js.map +1 -1
- package/lib/module/components/Button/index.js +4 -21
- package/lib/module/components/Button/index.js.map +1 -1
- package/lib/module/components/Cards/VideosCard/VideosCard.js +3 -3
- package/lib/module/components/Common/BaseOfferCard/Stat/Stat.js +4 -4
- package/lib/module/components/Common/BaseOfferCard/Stat/Stat.js.map +1 -1
- package/lib/module/components/Common/BaseOfferCard/index.js +16 -15
- package/lib/module/components/Common/BaseOfferCard/index.js.map +1 -1
- package/lib/module/components/Common/DynamicOfferCard/CallToAction.js +2 -0
- package/lib/module/components/Common/DynamicOfferCard/CallToAction.js.map +1 -1
- package/lib/module/components/Common/DynamicOfferCard/SeeMore.js +1 -1
- package/lib/module/components/Common/DynamicOfferCard/SeeMore.js.map +1 -1
- package/lib/module/components/Common/DynamicOfferCard/index.js +3 -2
- package/lib/module/components/Common/DynamicOfferCard/index.js.map +1 -1
- package/lib/module/components/DynamicOffers/DynamicOffers.js +2 -2
- package/lib/module/components/DynamicOffers/DynamicOffers.js.map +1 -1
- package/lib/module/components/DynamicOffers/DynamicOffersContainer.js +1 -1
- package/lib/module/components/DynamicOffers/DynamicOffersContainer.js.map +1 -1
- package/lib/module/components/DynamicOffers/Render/DynamicOffersRender.js +5 -5
- package/lib/module/components/DynamicOffers/Render/DynamicOffersRender.js.map +1 -1
- package/lib/module/components/DynamicOffers/Render/FallbackOfferTemplate.js +2 -2
- package/lib/module/components/DynamicOffers/Render/FallbackOfferTemplate.js.map +1 -1
- package/lib/module/components/DynamicOffers/Render/Offer.js +5 -4
- package/lib/module/components/DynamicOffers/Render/Offer.js.map +1 -1
- package/lib/module/components/Layouts/CreditCardOfferCard/index.js +4 -3
- package/lib/module/components/Layouts/CreditCardOfferCard/index.js.map +1 -1
- package/lib/module/components/Layouts/CreditCardOfferCard/statsBuilder.js +1 -1
- package/lib/module/components/Layouts/CreditCardOfferCard/statsBuilder.js.map +1 -1
- package/lib/module/components/Layouts/DefaultOfferCard/index.js +2 -2
- package/lib/module/components/Layouts/DefaultOfferCard/index.js.map +1 -1
- package/lib/module/components/Layouts/DefaultOfferCard/statsBuilder.js +1 -1
- package/lib/module/components/Layouts/DefaultOfferCard/statsBuilder.js.map +1 -1
- package/lib/module/components/Layouts/HeadlineWithDescriptionCard/index.js +2 -2
- package/lib/module/components/Layouts/HeadlineWithDescriptionCard/index.js.map +1 -1
- package/lib/module/components/Modal/DescriptionPoints.js +2 -2
- package/lib/module/components/Modal/DescriptionPoints.js.map +1 -1
- package/lib/module/components/Modal/Disclaimer.js +2 -2
- package/lib/module/components/Modal/Disclaimer.js.map +1 -1
- package/lib/module/components/Modal/OfferDetailsModal.js +6 -2
- package/lib/module/components/Modal/OfferDetailsModal.js.map +1 -1
- package/lib/module/components/MoneyLionOfferCarousel.js +14 -16
- package/lib/module/components/MoneyLionOfferCarousel.js.map +1 -1
- package/lib/module/components/Text/index.js +17 -38
- package/lib/module/components/Text/index.js.map +1 -1
- package/lib/module/components/View/index.js +12 -95
- package/lib/module/components/View/index.js.map +1 -1
- package/lib/module/config/mocks/cnfContext.js +44 -8
- package/lib/module/config/mocks/cnfContext.js.map +1 -1
- package/lib/module/context/ThemeProvider.js +2 -2
- package/lib/module/context/ThemeProvider.js.map +1 -1
- package/lib/module/pageData.js +4 -3
- package/lib/module/pageData.js.map +1 -1
- package/lib/module/services/getDynamicOffers.js.map +1 -1
- package/lib/module/services/getProductTypesByQuery.js +1 -1
- package/lib/module/services/getProductTypesByQuery.js.map +1 -1
- package/lib/module/utils/formatOfferUrl.js +1 -1
- package/lib/module/utils/formatOfferUrl.js.map +1 -1
- package/lib/module/utils/getOffersByProductTypes.js +3 -2
- package/lib/module/utils/getOffersByProductTypes.js.map +1 -1
- package/lib/module/utils/selectDynamicOffers.js.map +1 -1
- package/lib/typescript/src/capabilities/core/src/system/cnfContext/schemas/Brand.d.ts +90 -18
- package/lib/typescript/src/capabilities/core/src/system/cnfContext/schemas/Brand.d.ts.map +1 -1
- package/lib/typescript/src/capabilities/offer-catalog/src/api/offerCatalogApi.d.ts +1 -1
- package/lib/typescript/src/capabilities/offer-catalog/src/api/offerCatalogApi.d.ts.map +1 -1
- package/lib/typescript/src/capabilities/ui/elements/src/components/MarkdownText/components.d.ts +3 -2
- package/lib/typescript/src/capabilities/ui/elements/src/components/MarkdownText/components.d.ts.map +1 -1
- package/lib/typescript/src/components/Button/index.d.ts +3 -3
- package/lib/typescript/src/components/Button/index.d.ts.map +1 -1
- package/lib/typescript/src/components/Common/BaseOfferCard/index.d.ts +4 -4
- package/lib/typescript/src/components/Common/BaseOfferCard/index.d.ts.map +1 -1
- package/lib/typescript/src/components/Common/DynamicOfferCard/CallToAction.d.ts +2 -2
- package/lib/typescript/src/components/Common/DynamicOfferCard/CallToAction.d.ts.map +1 -1
- package/lib/typescript/src/components/Common/DynamicOfferCard/SeeMore.d.ts +1 -1
- package/lib/typescript/src/components/Common/DynamicOfferCard/SeeMore.d.ts.map +1 -1
- package/lib/typescript/src/components/Common/DynamicOfferCard/index.d.ts +3 -3
- package/lib/typescript/src/components/Common/DynamicOfferCard/index.d.ts.map +1 -1
- package/lib/typescript/src/components/DynamicOffers/DynamicOffers.d.ts +2 -2
- package/lib/typescript/src/components/DynamicOffers/DynamicOffers.d.ts.map +1 -1
- package/lib/typescript/src/components/DynamicOffers/Render/DynamicOffersRender.d.ts +3 -3
- package/lib/typescript/src/components/DynamicOffers/Render/DynamicOffersRender.d.ts.map +1 -1
- package/lib/typescript/src/components/DynamicOffers/Render/FallbackOfferTemplate.d.ts +3 -3
- package/lib/typescript/src/components/DynamicOffers/Render/FallbackOfferTemplate.d.ts.map +1 -1
- package/lib/typescript/src/components/DynamicOffers/Render/Offer.d.ts +5 -4
- package/lib/typescript/src/components/DynamicOffers/Render/Offer.d.ts.map +1 -1
- package/lib/typescript/src/components/Layouts/CreditCardOfferCard/index.d.ts +3 -3
- package/lib/typescript/src/components/Layouts/CreditCardOfferCard/index.d.ts.map +1 -1
- package/lib/typescript/src/components/Layouts/CreditCardOfferCard/statsBuilder.d.ts +2 -2
- package/lib/typescript/src/components/Layouts/CreditCardOfferCard/statsBuilder.d.ts.map +1 -1
- package/lib/typescript/src/components/Layouts/DefaultOfferCard/index.d.ts +3 -3
- package/lib/typescript/src/components/Layouts/DefaultOfferCard/index.d.ts.map +1 -1
- package/lib/typescript/src/components/Layouts/DefaultOfferCard/statsBuilder.d.ts +3 -3
- package/lib/typescript/src/components/Layouts/DefaultOfferCard/statsBuilder.d.ts.map +1 -1
- package/lib/typescript/src/components/Layouts/HeadlineWithDescriptionCard/index.d.ts +3 -3
- package/lib/typescript/src/components/Layouts/HeadlineWithDescriptionCard/index.d.ts.map +1 -1
- package/lib/typescript/src/components/Modal/Disclaimer.d.ts.map +1 -1
- package/lib/typescript/src/components/Modal/OfferDetailsModal.d.ts +1 -1
- package/lib/typescript/src/components/Modal/OfferDetailsModal.d.ts.map +1 -1
- package/lib/typescript/src/components/MoneyLionOfferCarousel.d.ts +2 -0
- package/lib/typescript/src/components/MoneyLionOfferCarousel.d.ts.map +1 -1
- package/lib/typescript/src/components/Text/index.d.ts +2 -2
- package/lib/typescript/src/components/Text/index.d.ts.map +1 -1
- package/lib/typescript/src/components/View/index.d.ts +4 -2
- package/lib/typescript/src/components/View/index.d.ts.map +1 -1
- package/lib/typescript/src/config/mocks/cnfContext.d.ts.map +1 -1
- package/lib/typescript/src/context/EventHandlerProvider.d.ts +1 -1
- package/lib/typescript/src/context/EventHandlerProvider.d.ts.map +1 -1
- package/lib/typescript/src/context/ThemeProvider.d.ts +47 -11
- package/lib/typescript/src/context/ThemeProvider.d.ts.map +1 -1
- package/lib/typescript/src/pageData.d.ts +2 -1
- package/lib/typescript/src/pageData.d.ts.map +1 -1
- package/lib/typescript/src/services/getDynamicOffers.d.ts +3 -3
- package/lib/typescript/src/services/getDynamicOffers.d.ts.map +1 -1
- package/lib/typescript/src/utils/addClientTagsToOfferLinks.d.ts +1 -1
- package/lib/typescript/src/utils/addClientTagsToOfferLinks.d.ts.map +1 -1
- package/lib/typescript/src/utils/formatOfferUrl.d.ts +6 -1
- package/lib/typescript/src/utils/formatOfferUrl.d.ts.map +1 -1
- package/lib/typescript/src/utils/getDefaultProductType.d.ts +1 -1
- package/lib/typescript/src/utils/getDefaultProductType.d.ts.map +1 -1
- package/lib/typescript/src/utils/getEnableUseCachedOffers.d.ts +1 -1
- package/lib/typescript/src/utils/getEnableUseCachedOffers.d.ts.map +1 -1
- package/lib/typescript/src/utils/getOffersBasedOnLayout.d.ts +1 -1
- package/lib/typescript/src/utils/getOffersBasedOnLayout.d.ts.map +1 -1
- package/lib/typescript/src/utils/getOffersByProductTypes.d.ts +1 -1
- package/lib/typescript/src/utils/getOffersByProductTypes.d.ts.map +1 -1
- package/lib/typescript/src/utils/getProductTypesDefinition.d.ts +1 -1
- package/lib/typescript/src/utils/getProductTypesDefinition.d.ts.map +1 -1
- package/lib/typescript/src/utils/selectDynamicOffers.d.ts +1 -1
- package/lib/typescript/src/utils/selectDynamicOffers.d.ts.map +1 -1
- package/lib/typescript/src/utils/sortOffersByRecommendationScore.d.ts +1 -1
- package/lib/typescript/src/utils/sortOffersByRecommendationScore.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/capabilities/core/src/system/cnfContext/schemas/Brand.ts +46 -10
- package/src/capabilities/offer-catalog/src/api/offerCatalogApi.ts +1 -1
- package/src/capabilities/ui/elements/src/components/MarkdownText/components.tsx +4 -4
- package/src/components/Button/index.tsx +7 -20
- package/src/components/Cards/VideosCard/VideosCard.tsx +3 -3
- package/src/components/Common/BaseOfferCard/Stat/Stat.tsx +4 -4
- package/src/components/Common/BaseOfferCard/index.tsx +36 -17
- package/src/components/Common/DynamicOfferCard/CallToAction.tsx +3 -1
- package/src/components/Common/DynamicOfferCard/SeeMore.tsx +2 -2
- package/src/components/Common/DynamicOfferCard/index.tsx +5 -4
- package/src/components/DynamicOffers/DynamicOffers.tsx +3 -3
- package/src/components/DynamicOffers/DynamicOffersContainer.tsx +1 -1
- package/src/components/DynamicOffers/Render/DynamicOffersRender.tsx +7 -7
- package/src/components/DynamicOffers/Render/FallbackOfferTemplate.tsx +4 -4
- package/src/components/DynamicOffers/Render/Offer.tsx +9 -6
- package/src/components/Layouts/CreditCardOfferCard/index.tsx +6 -6
- package/src/components/Layouts/CreditCardOfferCard/statsBuilder.tsx +2 -2
- package/src/components/Layouts/DefaultOfferCard/index.tsx +4 -5
- package/src/components/Layouts/DefaultOfferCard/statsBuilder.tsx +2 -2
- package/src/components/Layouts/HeadlineWithDescriptionCard/index.tsx +4 -4
- package/src/components/Modal/DescriptionPoints.tsx +2 -2
- package/src/components/Modal/Disclaimer.tsx +6 -2
- package/src/components/Modal/OfferDetailsModal.tsx +12 -7
- package/src/components/MoneyLionOfferCarousel.tsx +20 -14
- package/src/components/Text/index.tsx +10 -45
- package/src/components/View/index.tsx +14 -72
- package/src/config/mocks/cnfContext.ts +44 -8
- package/src/context/EventHandlerProvider.tsx +1 -1
- package/src/context/ThemeProvider.tsx +51 -14
- package/src/pageData.ts +5 -3
- package/src/services/getDynamicOffers.ts +5 -5
- package/src/services/getProductTypesByQuery.ts +1 -1
- package/src/utils/addClientTagsToOfferLinks.ts +1 -1
- package/src/utils/formatOfferUrl.ts +1 -1
- package/src/utils/getDefaultProductType.ts +1 -1
- package/src/utils/getEnableUseCachedOffers.ts +1 -1
- package/src/utils/getOffersBasedOnLayout.ts +1 -1
- package/src/utils/getOffersByProductTypes.ts +4 -3
- package/src/utils/getProductTypesDefinition.ts +1 -1
- package/src/utils/selectDynamicOffers.ts +1 -2
- package/src/utils/sortOffersByRecommendationScore.ts +1 -1
- package/lib/commonjs/utils/getDefaultPaletteColor.js +0 -20
- package/lib/commonjs/utils/getDefaultPaletteColor.js.map +0 -1
- package/lib/module/utils/getDefaultPaletteColor.js +0 -13
- package/lib/module/utils/getDefaultPaletteColor.js.map +0 -1
- package/lib/typescript/src/utils/getDefaultPaletteColor.d.ts +0 -3
- package/lib/typescript/src/utils/getDefaultPaletteColor.d.ts.map +0 -1
- package/src/utils/getDefaultPaletteColor.ts +0 -15
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
2
|
-
// Text.tsx
|
|
3
2
|
import React from "react";
|
|
4
3
|
import { Text as RNText, StyleSheet } from "react-native";
|
|
5
4
|
import { useTheme } from "../../context/ThemeProvider";
|
|
@@ -10,13 +9,8 @@ import { useTheme } from "../../context/ThemeProvider";
|
|
|
10
9
|
|
|
11
10
|
// Define text decoration
|
|
12
11
|
|
|
13
|
-
// Define text color
|
|
14
|
-
|
|
15
12
|
// Define text weight
|
|
16
13
|
|
|
17
|
-
// // Define wrap options
|
|
18
|
-
// export type TextWrap = "balance";
|
|
19
|
-
|
|
20
14
|
// Define props
|
|
21
15
|
|
|
22
16
|
const Text = ({
|
|
@@ -28,32 +22,40 @@ const Text = ({
|
|
|
28
22
|
style,
|
|
29
23
|
...restProps
|
|
30
24
|
}) => {
|
|
25
|
+
const themeContext = useTheme();
|
|
31
26
|
const {
|
|
32
|
-
fontFamily
|
|
33
|
-
|
|
27
|
+
fontFamily,
|
|
28
|
+
theme
|
|
29
|
+
} = themeContext || {
|
|
30
|
+
fontFamily: {},
|
|
31
|
+
theme: {}
|
|
32
|
+
};
|
|
34
33
|
|
|
35
34
|
// Create style array
|
|
36
35
|
const styleArray = [styles.base];
|
|
37
36
|
|
|
38
37
|
// Add variant styles
|
|
39
|
-
|
|
40
38
|
if (variant) {
|
|
41
39
|
styleArray.push(styles[variant]);
|
|
42
40
|
}
|
|
43
41
|
|
|
44
42
|
// Add font family styles
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
43
|
+
if (fontFamily && fontFamily[weight || "normal"]) {
|
|
44
|
+
styleArray.push({
|
|
45
|
+
fontFamily: fontFamily[weight || "normal"]
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
48
|
|
|
49
49
|
// Add weight styles
|
|
50
50
|
styleArray.push({
|
|
51
51
|
fontWeight: weight === "medium" ? "500" : weight
|
|
52
52
|
});
|
|
53
53
|
|
|
54
|
-
// Add color styles
|
|
55
|
-
if (color) {
|
|
56
|
-
styleArray.push(
|
|
54
|
+
// Add color styles from theme
|
|
55
|
+
if (color && theme[color]) {
|
|
56
|
+
styleArray.push({
|
|
57
|
+
color: theme[color]
|
|
58
|
+
});
|
|
57
59
|
}
|
|
58
60
|
|
|
59
61
|
// Add decoration styles
|
|
@@ -74,7 +76,6 @@ const Text = ({
|
|
|
74
76
|
};
|
|
75
77
|
|
|
76
78
|
// Define styles
|
|
77
|
-
// Note: In a real implementation, these would be derived from a theme or design system
|
|
78
79
|
const styles = StyleSheet.create({
|
|
79
80
|
"base": {
|
|
80
81
|
fontFamily: "System"
|
|
@@ -141,28 +142,6 @@ const styles = StyleSheet.create({
|
|
|
141
142
|
"caption-2": {
|
|
142
143
|
fontSize: 12,
|
|
143
144
|
lineHeight: 16
|
|
144
|
-
},
|
|
145
|
-
// Colors
|
|
146
|
-
"color-neutral": {
|
|
147
|
-
color: "#2E2E2E"
|
|
148
|
-
},
|
|
149
|
-
"color-neutral-faded": {
|
|
150
|
-
color: "#6A6A6A"
|
|
151
|
-
},
|
|
152
|
-
"color-critical": {
|
|
153
|
-
color: "#D32F2F"
|
|
154
|
-
},
|
|
155
|
-
"color-warning": {
|
|
156
|
-
color: "#F57C00"
|
|
157
|
-
},
|
|
158
|
-
"color-positive": {
|
|
159
|
-
color: "#388E3C"
|
|
160
|
-
},
|
|
161
|
-
"color-primary": {
|
|
162
|
-
color: "#007c6a"
|
|
163
|
-
},
|
|
164
|
-
"color-disabled": {
|
|
165
|
-
color: "#AAAAAA"
|
|
166
145
|
}
|
|
167
146
|
});
|
|
168
147
|
export default Text;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Text","RNText","StyleSheet","useTheme","variant","weight","color","decoration","children","style","restProps","fontFamily","styleArray","styles","base","push","fontWeight","textDecorationLine","createElement","_extends","ellipsizeMode","create","fontSize","lineHeight"],"sourceRoot":"../../../../src","sources":["components/Text/index.tsx"],"mappings":";AAAA
|
|
1
|
+
{"version":3,"names":["React","Text","RNText","StyleSheet","useTheme","variant","weight","color","decoration","children","style","restProps","themeContext","fontFamily","theme","styleArray","styles","base","push","fontWeight","textDecorationLine","createElement","_extends","ellipsizeMode","create","fontSize","lineHeight"],"sourceRoot":"../../../../src","sources":["components/Text/index.tsx"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SACCC,IAAI,IAAIC,MAAM,EACdC,UAAU,QAIJ,cAAc;AACrB,SAASC,QAAQ,QAA0B,6BAA6B;;AAExE;;AAegB;;AAEhB;;AAGA;;AAGA;;AAUA,MAAMH,IAAyB,GAAGA,CAAC;EAClCI,OAAO;EACPC,MAAM;EACNC,KAAK;EACLC,UAAU;EACVC,QAAQ;EACRC,KAAK;EACL,GAAGC;AACJ,CAAC,KAAK;EACL,MAAMC,YAAY,GAAGR,QAAQ,CAAC,CAAC;EAC/B,MAAM;IAAES,UAAU;I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E;IACZN,UAAU,EAAE,MAAM;IAClBO,UAAU,EAAE;EACb,CAAC;EACD,SAAS,EAAE;IACVD,QAAQ,EAAE,EAAE;IACZN,UAAU,EAAE,MAAM;IAClBO,UAAU,EAAE;EACb,CAAC;EACD,SAAS,EAAE;IACVD,QAAQ,EAAE,EAAE;IACZN,UAAU,EAAE,MAAM;IAClBO,UAAU,EAAE;EACb,CAAC;EACD,SAAS,EAAE;IACVD,QAAQ,EAAE,EAAE;IACZN,UAAU,EAAE,MAAM;IAClBO,UAAU,EAAE;EACb,CAAC;EACD,SAAS,EAAE;IACVD,QAAQ,EAAE,EAAE;IACZN,UAAU,EAAE,MAAM;IAClBO,UAAU,EAAE;EACb,CAAC;EACD,SAAS,EAAE;IACVD,QAAQ,EAAE,EAAE;IACZN,UAAU,EAAE,MAAM;IAClBO,UAAU,EAAE;EACb,CAAC;EACD,YAAY,EAAE;IACbD,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE;EACb,CAAC;EACD,YAAY,EAAE;IACbD,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE;EACb,CAAC;EACD,YAAY,EAAE;IACbD,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE;EACb,CAAC;EACD,QAAQ,EAAE;IACTD,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE;EACb,CAAC;EACD,QAAQ,EAAE;IACTD,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE;EACb,CAAC;EACD,QAAQ,EAAE;IACTD,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE;EACb,CAAC;EACD,WAAW,EAAE;IACZD,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE;EACb,CAAC;EACD,WAAW,EAAE;IACZD,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE;EACb;AACD,CAAC,CAAC;AAEF,eAAezB,IAAI","ignoreList":[]}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
2
2
|
import React from "react";
|
|
3
|
-
import { View as RNView
|
|
3
|
+
import { View as RNView } from "react-native";
|
|
4
|
+
import { useTheme } from "../../context/ThemeProvider";
|
|
4
5
|
const View = ({
|
|
5
6
|
children,
|
|
6
7
|
style,
|
|
@@ -18,19 +19,24 @@ const View = ({
|
|
|
18
19
|
testID,
|
|
19
20
|
...rest
|
|
20
21
|
}) => {
|
|
21
|
-
|
|
22
|
-
|
|
22
|
+
const themeContext = useTheme();
|
|
23
|
+
const theme = (themeContext === null || themeContext === void 0 ? void 0 : themeContext.theme) || {};
|
|
24
|
+
|
|
25
|
+
// Create a single style object directly
|
|
23
26
|
const containerStyles = {
|
|
24
27
|
// Background color handling
|
|
25
28
|
...(backgroundColor && {
|
|
26
|
-
backgroundColor:
|
|
29
|
+
backgroundColor: theme[backgroundColor] || backgroundColor
|
|
27
30
|
}),
|
|
28
31
|
// Border color handling
|
|
29
32
|
...(borderColor && {
|
|
30
|
-
|
|
33
|
+
borderWidth: 1,
|
|
34
|
+
borderColor: theme[borderColor]
|
|
31
35
|
}),
|
|
32
36
|
// Direction handling
|
|
33
|
-
...(direction &&
|
|
37
|
+
...(direction && {
|
|
38
|
+
flexDirection: direction
|
|
39
|
+
}),
|
|
34
40
|
// Dimension styles - applied only when provided
|
|
35
41
|
...(height !== undefined && {
|
|
36
42
|
height
|
|
@@ -62,94 +68,5 @@ const View = ({
|
|
|
62
68
|
testID: (attributes === null || attributes === void 0 ? void 0 : attributes["data-testid"]) || testID
|
|
63
69
|
}, rest), children);
|
|
64
70
|
};
|
|
65
|
-
const styles = StyleSheet.create({
|
|
66
|
-
"bgneutral": {
|
|
67
|
-
backgroundColor: "#e0e0e0"
|
|
68
|
-
},
|
|
69
|
-
"bgneutral-faded": {
|
|
70
|
-
backgroundColor: "#f5f5f5"
|
|
71
|
-
},
|
|
72
|
-
"bgcritical": {
|
|
73
|
-
backgroundColor: "#f44336"
|
|
74
|
-
},
|
|
75
|
-
"bgcritical-faded": {
|
|
76
|
-
backgroundColor: "#ffebee"
|
|
77
|
-
},
|
|
78
|
-
"bgpositive": {
|
|
79
|
-
backgroundColor: "#4caf50"
|
|
80
|
-
},
|
|
81
|
-
"bgpositive-faded": {
|
|
82
|
-
backgroundColor: "#e8f5e9"
|
|
83
|
-
},
|
|
84
|
-
"bgwarning": {
|
|
85
|
-
backgroundColor: "#ff9800"
|
|
86
|
-
},
|
|
87
|
-
"bgwarning-faded": {
|
|
88
|
-
backgroundColor: "#fff3e0"
|
|
89
|
-
},
|
|
90
|
-
"bgprimary": {
|
|
91
|
-
backgroundColor: "#2196f3"
|
|
92
|
-
},
|
|
93
|
-
"bgprimary-faded": {
|
|
94
|
-
backgroundColor: "#ebfff9"
|
|
95
|
-
},
|
|
96
|
-
"bgelevation-base": {
|
|
97
|
-
backgroundColor: "#fafafa"
|
|
98
|
-
},
|
|
99
|
-
"bgelevation-raised": {
|
|
100
|
-
backgroundColor: "#eeeeee"
|
|
101
|
-
},
|
|
102
|
-
"bgelevation-overlay": {
|
|
103
|
-
backgroundColor: "#bdbdbd"
|
|
104
|
-
},
|
|
105
|
-
"bgpage": {
|
|
106
|
-
backgroundColor: "#ffffff"
|
|
107
|
-
},
|
|
108
|
-
"bgpage-faded": {
|
|
109
|
-
backgroundColor: "#f5f5f5"
|
|
110
|
-
},
|
|
111
|
-
"bgdisabled": {
|
|
112
|
-
backgroundColor: "#bdbdbd"
|
|
113
|
-
},
|
|
114
|
-
"bgdisabled-faded": {
|
|
115
|
-
backgroundColor: "#e0e0e0"
|
|
116
|
-
},
|
|
117
|
-
"bgbrand": {
|
|
118
|
-
backgroundColor: "#6200ea"
|
|
119
|
-
},
|
|
120
|
-
"bgwhite": {
|
|
121
|
-
backgroundColor: "#ffffff"
|
|
122
|
-
},
|
|
123
|
-
"bgblack": {
|
|
124
|
-
backgroundColor: "#000000"
|
|
125
|
-
},
|
|
126
|
-
"borderneutral": {
|
|
127
|
-
borderColor: "#bdbdbd"
|
|
128
|
-
},
|
|
129
|
-
"borderpositive": {
|
|
130
|
-
borderColor: "#388e3c"
|
|
131
|
-
},
|
|
132
|
-
"borderwarning": {
|
|
133
|
-
borderColor: "#f57c00"
|
|
134
|
-
},
|
|
135
|
-
"bordercritical": {
|
|
136
|
-
borderColor: "#d32f2f"
|
|
137
|
-
},
|
|
138
|
-
"borderprimary": {
|
|
139
|
-
borderColor: "#1976d2"
|
|
140
|
-
},
|
|
141
|
-
"directionrow": {
|
|
142
|
-
flexDirection: "row"
|
|
143
|
-
},
|
|
144
|
-
"directionrow-reverse": {
|
|
145
|
-
flexDirection: "row-reverse"
|
|
146
|
-
},
|
|
147
|
-
"directioncolumn": {
|
|
148
|
-
flexDirection: "column"
|
|
149
|
-
},
|
|
150
|
-
"directioncolumn-reverse": {
|
|
151
|
-
flexDirection: "column-reverse"
|
|
152
|
-
}
|
|
153
|
-
});
|
|
154
71
|
export default View;
|
|
155
72
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","View","RNView","
|
|
1
|
+
{"version":3,"names":["React","View","RNView","useTheme","children","style","backgroundColor","borderColor","direction","height","maxHeight","minHeight","width","maxWidth","minWidth","gap","attributes","testID","rest","themeContext","theme","containerStyles","borderWidth","flexDirection","undefined","createElement","_extends"],"sourceRoot":"../../../../src","sources":["components/View/index.tsx"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,IAAIC,MAAM,QAAwB,cAAc;AAC7D,SAASC,QAAQ,QAA0B,6BAA6B;AAqBxE,MAAMF,IAAyB,GAAGA,CAAC;EAClCG,QAAQ;EACRC,KAAK;EACLC,eAAe;EACfC,WAAW;EACXC,SAAS;EACTC,MAAM;EACNC,SAAS;EACTC,SAAS;EACTC,KAAK;EACLC,QAAQ;EACRC,QAAQ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AC1CC,IAAI,GAEPd,QACM,CAAC;AAEX,CAAC;AAED,eAAeH,IAAI","ignoreList":[]}
|
|
@@ -34,14 +34,50 @@ export const localCnfContext = {
|
|
|
34
34
|
icon: null
|
|
35
35
|
},
|
|
36
36
|
type: "business",
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
37
|
+
themeColors: {
|
|
38
|
+
backgroundCritical: "#ff7200",
|
|
39
|
+
backgroundCriticalFaded: "#fff2e8",
|
|
40
|
+
backgroundCriticalHighlighted: "#ee6a00",
|
|
41
|
+
backgroundDisabled: "#eeeeee",
|
|
42
|
+
backgroundDisabledFaded: "#f6f6f6",
|
|
43
|
+
backgroundElevationBase: "#ffffff",
|
|
44
|
+
backgroundElevationOverlay: "#ffffff",
|
|
45
|
+
backgroundElevationRaised: "#ffffff",
|
|
46
|
+
backgroundNeutral: "#e2e2e2",
|
|
47
|
+
backgroundNeutralFaded: "#f5f5f5",
|
|
48
|
+
backgroundNeutralHighlighted: "#d7d7d7",
|
|
49
|
+
backgroundPage: "#ffffff",
|
|
50
|
+
backgroundPageFaded: "#f9f9f9",
|
|
51
|
+
backgroundPositive: "#00e5c4",
|
|
52
|
+
backgroundPositiveFaded: "#e8fffc",
|
|
53
|
+
backgroundPositiveHighlighted: "#00d9b9",
|
|
54
|
+
backgroundPrimary: "#00e5c4",
|
|
55
|
+
backgroundPrimaryFaded: "#e8fffc",
|
|
56
|
+
backgroundPrimaryHighlighted: "#00d9b9",
|
|
57
|
+
backgroundWarning: "#facc15",
|
|
58
|
+
backgroundWarningFaded: "#fffae9",
|
|
59
|
+
backgroundWarningHighlighted: "#edc113",
|
|
60
|
+
black: "#000000",
|
|
61
|
+
borderCritical: "#d35d00",
|
|
62
|
+
borderCriticalFaded: "#fce3ce",
|
|
63
|
+
borderDisabled: "#e2e2e2",
|
|
64
|
+
borderNeutral: "#bbbbbb",
|
|
65
|
+
borderNeutralFaded: "#e1e1e1",
|
|
66
|
+
borderPositive: "#00bfa3",
|
|
67
|
+
borderPositiveFaded: "#b8faf2",
|
|
68
|
+
borderPrimary: "#00bfa3",
|
|
69
|
+
borderPrimaryFaded: "#b8faf2",
|
|
70
|
+
borderWarning: "#cfa90f",
|
|
71
|
+
borderWarningFaded: "#faedbb",
|
|
72
|
+
brand: "#00e5c4",
|
|
73
|
+
foregroundCritical: "#a94900",
|
|
74
|
+
foregroundDisabled: "#cccccc",
|
|
75
|
+
foregroundNeutral: "#181818",
|
|
76
|
+
foregroundNeutralFaded: "#666666",
|
|
77
|
+
foregroundPositive: "#007362",
|
|
78
|
+
foregroundPrimary: "#007362",
|
|
79
|
+
foregroundWarning: "#7b6305",
|
|
80
|
+
white: "#ffffff"
|
|
45
81
|
},
|
|
46
82
|
isLicensed: true,
|
|
47
83
|
allowedMarks: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["localCnfContext","app","id","name","registry","repository","syncStatus","createdAt","updatedAt","syncTimestamp","brand","displayName","domain","logos","horizontal","autoCrop","prefix","filename","mimeType","filesize","width","height","aiInference","status","error","url","icon","type","
|
|
1
|
+
{"version":3,"names":["localCnfContext","app","id","name","registry","repository","syncStatus","createdAt","updatedAt","syncTimestamp","brand","displayName","domain","logos","horizontal","autoCrop","prefix","filename","mimeType","filesize","width","height","aiInference","status","error","url","icon","type","themeColors","backgroundCritical","backgroundCriticalFaded","backgroundCriticalHighlighted","backgroundDisabled","backgroundDisabledFaded","backgroundElevationBase","backgroundElevationOverlay","backgroundElevationRaised","backgroundNeutral","backgroundNeutralFaded","backgroundNeutralHighlighted","backgroundPage","backgroundPageFaded","backgroundPositive","backgroundPositiveFaded","backgroundPositiveHighlighted","backgroundPrimary","backgroundPrimaryFaded","backgroundPrimaryHighlighted","backgroundWarning","backgroundWarningFaded","backgroundWarningHighlighted","black","borderCritical","borderCriticalFaded","borderDisabled","borderNeutral","borderNeutralFaded","borderPositive","borderPositiveFaded","borderPrimary","borderPrimaryFaded","borderWarning","borderWarningFaded","foregroundCritical","foregroundDisabled","foregroundNeutral","foregroundNeutralFaded","foregroundPositive","foregroundPrimary","foregroundWarning","white","isLicensed","allowedMarks","logo","links","home","terms","support","privacy","configuration","hideFooter","enableUseCachedOffers","defaultProductTypeSlug","partnersOverrideDefinition","overrideUrl","financialInstitutionUuid","productTypesDefinition","partnerPageUrl","productTypeSlug","request","zone","channel","path","pathname","query","searchParams","host","cnfAppBaseUrl","signals","deviceSignals","state","code","postalCode","city","ipAddress","country","isMobile","os","userAgent","partnerSignals","clientTags","test","referral","lead","uuid","subaccount","companyUuid","publicToken","supplySubaccountUuid","tags","key","value","isDev"],"sourceRoot":"../../../../src","sources":["config/mocks/cnfContext.ts"],"mappings":"AAEA,OAAO,MAAMA,eAA2B,GAAG;EAC1CC,GAAG,EAAE;IACJC,EAAE,EAAE,0BAA0B;IAC9BC,IAAI,EAAE,qBAAqB;IAC3BC,QAAQ,EAAE,8CAA8C;IACxDC,UAAU,EAAE,qBAAqB;IACjCC,UAAU,EAAE,KAAK;IACjBC,SAAS,EAAE,0BAA0B;IACrCC,SAAS,EAAE,0BAA0B;IACrCC,aAAa,EAAE;EAChB,CAAC;EACDC,KAAK,EAAE;IACNR,EAAE,EAAE,0BAA0B;IAC9BS,WAAW,EAAE,OAAO;IACpBC,MAAM,EAAE,WAAW;IACnBC,KAAK,EAAE;MACNC,UAAU,EAAE;QACXZ,EAAE,EAAE,0BAA0B;QAC9Ba,QAAQ,EAAE,KAAK;QACfC,MAAM,EAAE,cAAc;QACtBC,QAAQ,EAAE,gBAAgB;QAC1BC,QAAQ,EAAE,eAAe;QACzBC,QAAQ,EAAE,IAAI;QACdC,KAAK,EAAE,EAAE;QACTC,MAAM,EAAE,EAAE;QACVd,SAAS,EAAE,0BAA0B;QACrCC,SAAS,EAAE,0BAA0B;QACrCc,WAAW,EAAE;UACZC,MAAM,EAAE,OAAO;UACfC,KAAK,EAAE;QACR,CAAC;Q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AE,EAAE;MACbC,OAAO,EAAE,IAAI;MACbC,QAAQ,EAAE,KAAK;MACfC,EAAE,EAAE,6BAA6B;MACjCC,SAAS,EACR;IACF,CAAC;IACDC,cAAc,EAAE;MACfC,UAAU,EAAE;QACXC,IAAI,EAAE;MACP;IACD,CAAC;IACDC,QAAQ,EAAE,CAAC,CAAC;IACZC,IAAI,EAAE;MACLC,IAAI,EAAE;IACP;EACD,CAAC;EACD;EACAC,UAAU,EAAE;IACXjH,EAAE,EAAE,0BAA0B;IAC9BC,IAAI,EAAE,gCAAgC;IACtCgH,UAAU,EAAE,IAAI;IAChBC,WAAW,EAAE,0BAA0B;IACvCC,WAAW,EACV,0EAA0E;IAC3EC,oBAAoB,EAAE,sCAAsC;IAC5DC,IAAI,EAAE,CACL;MAAEC,GAAG,EAAE,QAAQ;MAAEC,KAAK,EAAE,KAAK;MAAEvH,EAAE,EAAE;IAA2B,CAAC,EAC/D;MAAEsH,GAAG,EAAE,KAAK;MAAEC,KAAK,EAAE,gBAAgB;MAAEvH,EAAE,EAAE;IAA2B,CAAC,CACvE;IACDK,SAAS,EAAE,0BAA0B;IACrCC,SAAS,EAAE;EACZ,CAAC;EACDkH,KAAK,EAAE;AACR,CAAC","ignoreList":[]}
|
|
@@ -14,12 +14,12 @@ export const useTheme = () => {
|
|
|
14
14
|
return context;
|
|
15
15
|
};
|
|
16
16
|
export const ThemeProvider = ({
|
|
17
|
-
|
|
17
|
+
themeColors = {},
|
|
18
18
|
// should be safe to assert as ThemePalette since the fallback colors are already handled by the consumers of ThemeProvider
|
|
19
19
|
fontFamily = {},
|
|
20
20
|
children
|
|
21
21
|
}) => {
|
|
22
|
-
const [theme, setTheme] = useState(
|
|
22
|
+
const [theme, setTheme] = useState(themeColors);
|
|
23
23
|
const [fonts, setFonts] = useState({
|
|
24
24
|
...defaultFontFamily,
|
|
25
25
|
...fontFamily
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","createContext","useContext","useState","Platform","defaultFontFamily","normal","OS","medium","bold","ThemeContext","useTheme","context","Error","ThemeProvider","
|
|
1
|
+
{"version":3,"names":["React","createContext","useContext","useState","Platform","defaultFontFamily","normal","OS","medium","bold","ThemeContext","useTheme","context","Error","ThemeProvider","themeColors","fontFamily","children","theme","setTheme","fonts","setFonts","updateTheme","newTheme","prevTheme","updateFontFamily","newFontFamily","prevFonts","contextValue","createElement","Provider","value"],"sourceRoot":"../../../src","sources":["context/ThemeProvider.tsx"],"mappings":"AAAA,OAAOA,KAAK,IACXC,aAAa,EAGbC,UAAU,EACVC,QAAQ,QACF,OAAO;AACd,SAASC,QAAQ,QAAQ,cAAc;AAsDvC,MAAMC,iBAA6B,GAAG;EACrCC,MAAM,EAAEF,QAAQ,CAACG,EAAE,KAAK,SAAS,GAAG,YAAY,GAAG,QAAQ;EAC3DC,MAAM,EAAEJ,QAAQ,CAACG,EAAE,KAAK,SAAS,GAAG,mBAAmB,GAAG,QAAQ;EAClEE,IAAI,EAAEL,QAAQ,CAACG,EAAE,KAAK,SAAS,GAAG,iBAAiB,GAAG;AACvD,CAAC;AASD,OAAO,MAAMG,YAAY,gBAAGT,aAAa,CAA0B,IAAI,CAAC;AAExE,OAAO,MAAMU,QAAQ,GAAGA,CAAA,KAAM;EAC7B,MAAMC,OAAO,GAAGV,UAAU,CAACQ,YAAY,CAAC;EACxC,IAAI,CAACE,OAAO,EAAE;IACb,MAAM,IAAIC,KAAK,CAAC,8CAA8C,CAAC;EAChE;EACA,OAAOD,OAAO;AACf,CAAC;AAQD,OAAO,MAAME,aAAqC,GAAGA,CAAC;EACrDC,WAAW,GAAG,CAAC,CAAgB;EAAE;EACjCC,UAAU,GAAG,CAAC,CAAC;EACfC;AACD,CAAC,KAAK;EACL,MAAM,CAACC,KAAK,EAAEC,QAAQ,CAAC,GAAGhB,QAAQ,CAAcY,WAAW,CAAC;EAC5D,MAAM,CAACK,KAAK,EAAEC,QAAQ,CAAC,GAAGlB,QAAQ,CAAa;IAC9C,GAAGE,iBAAiB;IACpB,GAAGW;EACJ,CAAC,CAAC;EAEF,MAAMM,WAAW,GAAIC,QAA8B,IAAK;IACvDJ,QAAQ,CAAEK,SAAS,KAAM;MACxB,GAAGA,SAAS;MACZ,GAAGD;IACJ,CAAC,CAAC,CAAC;EACJ,CAAC;EAED,MAAME,gBAAgB,GAAIC,aAAkC,IAAK;IAChEL,QAAQ,CAAEM,SAAS,KAAM;MACxB,GAAGA,SAAS;MACZ,GAAGD;IACJ,CAAC,CAAC,CAAC;EACJ,CAAC;EAED,MAAME,YAAY,GAAG;IACpBV,KAAK;IACLF,UAAU,EAAEI,KAAK;IACjBE,WAAW;IACXG;EACD,CAAC;EAED,oBACCzB,KAAA,CAAA6B,aAAA,CAACnB,YAAY,CAACoB,QAAQ;IAACC,KAAK,EAAEH;EAAa,GACzCX,QACqB,CAAC;AAE1B,CAAC","ignoreList":[]}
|
package/lib/module/pageData.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getIsDevEnvironment } from "
|
|
1
|
+
import { getIsDevEnvironment } from "./capabilities/offer-catalog/src/utils/contextUtil";
|
|
2
2
|
import { getDynamicOffers } from "./services/getDynamicOffers";
|
|
3
3
|
// import { getDynamicOffers } from "./services/getDynamicOffers";
|
|
4
4
|
import { getDefaultProductType, getLayout, getProductTypesDefinition, resolveProductTypes } from "./utils";
|
|
@@ -14,7 +14,8 @@ export async function getPageData({
|
|
|
14
14
|
tags,
|
|
15
15
|
displayLayout,
|
|
16
16
|
searchAPIToken,
|
|
17
|
-
showProductTypeLabel
|
|
17
|
+
showProductTypeLabel,
|
|
18
|
+
showCardBorder
|
|
18
19
|
} = params;
|
|
19
20
|
|
|
20
21
|
// Resolve Tags
|
|
@@ -77,7 +78,7 @@ export async function getPageData({
|
|
|
77
78
|
offers,
|
|
78
79
|
currentCountry,
|
|
79
80
|
// videosContent,
|
|
80
|
-
|
|
81
|
+
showCardBorder,
|
|
81
82
|
// shouldHideFooter,
|
|
82
83
|
showProductTypeLabel,
|
|
83
84
|
displayLayout: safeDisplayLayout
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["getIsDevEnvironment","getDynamicOffers","getDefaultProductType","getLayout","getProductTypesDefinition","resolveProductTypes","getEnableUseCachedOffers","getPageData","context","params","onRateTableSubmit","productType","query","tags","displayLayout","searchAPIToken","showProductTypeLabel","resolvedTags","trim","enableUseCachedOffers","defaultProductType","isDev","productTypesDefinition","partnersOverrideDefinition","currentCountry","signals","deviceSignals","country","safeTags","encodeURI","safeDisplayLayout","productTypes","resultType","timestamp","Date","toISOString","offers","isError","leadUuid","rateTableUuid"],"sourceRoot":"../../src","sources":["pageData.ts"],"mappings":"AACA,SAASA,mBAAmB,QAAQ,
|
|
1
|
+
{"version":3,"names":["getIsDevEnvironment","getDynamicOffers","getDefaultProductType","getLayout","getProductTypesDefinition","resolveProductTypes","getEnableUseCachedOffers","getPageData","context","params","onRateTableSubmit","productType","query","tags","displayLayout","searchAPIToken","showProductTypeLabel","showCardBorder","resolvedTags","trim","enableUseCachedOffers","defaultProductType","isDev","productTypesDefinition","partnersOverrideDefinition","currentCountry","signals","deviceSignals","country","safeTags","encodeURI","safeDisplayLayout","productTypes","resultType","timestamp","Date","toISOString","offers","isError","leadUuid","rateTableUuid"],"sourceRoot":"../../src","sources":["pageData.ts"],"mappings":"AACA,SAASA,mBAAmB,QAAQ,oDAAoD;AAIxF,SAASC,gBAAgB,QAAQ,6BAA6B;AAC9D;AACA,SACCC,qBAAqB,EACrBC,SAAS,EACTC,yBAAyB,EACzBC,mBAAmB,QACb,SAAS;AAChB,SAASC,wBAAwB,QAAQ,kCAAkC;AAQ3E,OAAO,eAAeC,WAAWA,CAAC;EACjCC,OAAO;EACPC,MAAM;EACNC;AACiB,CAAC,EAAE;EACpB,MAAM;IACLC,WAAW;IACXC,KAAK;IACLC,IAAI;IACJC,aAAa;IACbC,cAAc;IACdC,oBAAoB;IACpBC;EACD,CAAC,GAAGR,MAAM;;EAEV;EACA,MAA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ACNiB,OAAO;IACPC,QAAQ;IACRC,aAAa;IACb;IACAH,MAAM;IACNZ,cAAc;IACd;IACAR,cAAc;IACd;IACAD,oBAAoB;IACpBF,aAAa,EAAEiB;EAChB,CAAC;AACF","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["isEmpty","addClientTagsToOfferLinks","getOffersByProductTypes","selectDynamicOffers","sortOffersByRecommendationScore","pipe","formatOfferUrl","getOffersBasedOnLayout","getDynamicOffers","tags","displayLayout","defaultProductType","productTypes","resultType","enableUseCachedOffers","productTypesDefinition","partnersOverrideDefinition","context","initialOffersData","offersData","offers","sortedOffers","isError","leadUuid","rateTableUuid","uuid"],"sourceRoot":"../../../src","sources":["services/getDynamicOffers.ts"],"mappings":"AAAA,SAASA,OAAO,QAAQ,QAAQ;
|
|
1
|
+
{"version":3,"names":["isEmpty","addClientTagsToOfferLinks","getOffersByProductTypes","selectDynamicOffers","sortOffersByRecommendationScore","pipe","formatOfferUrl","getOffersBasedOnLayout","getDynamicOffers","tags","displayLayout","defaultProductType","productTypes","resultType","enableUseCachedOffers","productTypesDefinition","partnersOverrideDefinition","context","initialOffersData","offersData","offers","sortedOffers","isError","leadUuid","rateTableUuid","uuid"],"sourceRoot":"../../../src","sources":["services/getDynamicOffers.ts"],"mappings":"AAAA,SAASA,OAAO,QAAQ,QAAQ;AAChC,SACCC,yBAAyB,EACzBC,uBAAuB,EACvBC,mBAAmB,QAEb,UAAU;AAKjB,SAASC,+BAA+B,QAAQ,0CAA0C;AAC1F,SAASC,IAAI,QAAQ,QAAQ;AAC7B,SAASC,cAAc,QAAQ,yBAAyB;AACxD,SAASC,sBAAsB,QAAQ,iCAAiC;AA0BxE;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,gBAAgB,GAAG,MAAAA,CAAO;EACtCC,IAAI;EACJC,aAAa;EACbC,kBAAkB;EAClBC,YAAY;EACZC,UAAU;EACVC,qBAAqB;EACrBC,sBAAsB;EACtBC,0BAA0B;EAC1BC;AACqC,CAAC,KAAK;EAC3C;EACA,MAAMC,iBAAiB,GAAG,MAAMhB,uBAAuB,CAAC;IACvDY,qBAAqB;IACrBF,YAAY;IACZH,IAAI;IACJQ;EACD,CAAC,CAAC;;EAEF;EACA;EACA,MAAME,UAAU,GAAGnB,OAAO,CAACkB,iBAAiB,aAAjBA,iBAAiB,uBAAjBA,iBAAiB,CAAEE,MAAM,CAAC,GAClD,MAAMlB,uBAAuB,CAAC;IAC9BY,qBAAqB;IACrBF,YAAY,EAAE,CAACD,kBAAkB,CAAC;IAClCF,IAAI;IACJQ;EACD,CAAC,CAAC,GACDC,iBAAiB;EAEpB,MAAMG,YAAY,GACjBR,UAAU,KAAK,OAAO,GACnBV,mBAAmB,CAACgB,UAAU,CAACC,MAAM,EAAER,YAAY,CAAC,GACpDR,+BAA+B,CAACe,UAAU,CAACC,MAAM,CAAC;EAEtD,OAAO;IACNA,MAAM,EAAEf,IAAI,CACXgB,YAAY,EACZf,cAAc,CAACS,sBAAsB,EAAEC,0BAA0B,CAAC,EAClEf,yBAAyB,CAACa,qBAAqB,EAAEL,IAAI,CAAC,EACtDF,sBAAsB,CAACG,aAAa,CACrC,CAAC;IACDY,OAAO,EAAEH,UAAU,CAACG,OAAO;IAC3BC,QAAQ,EAAEJ,UAAU,CAACI,QAAQ;IAC7BC,aAAa,EAAEL,UAAU,CAACM;EAC3B,CAAC;AACF,CAAC","ignoreList":[]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { pipe } from "effect";
|
|
2
|
-
import { orderProductTypesByRank } from "../../src/capabilities/core/src/domain/third-party-search";
|
|
3
2
|
import { getEwsSearchApiBaseUrl } from "../apiEnvironment";
|
|
3
|
+
import { orderProductTypesByRank } from "../capabilities/core/src/domain/third-party-search";
|
|
4
4
|
/**
|
|
5
5
|
* Get product types by query
|
|
6
6
|
* @param query {string} - The query to get the product types for
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["pipe","
|
|
1
|
+
{"version":3,"names":["pipe","getEwsSearchApiBaseUrl","orderProductTypesByRank","getProductTypesByQuery","query","searchAPIToken","isDev","url","encodeURIComponent","headers","Authorization","response","fetch","ok","Error","productTypes","json","error","console","JSON","stringify"],"sourceRoot":"../../../src","sources":["services/getProductTypesByQuery.ts"],"mappings":"AAAA,SAASA,IAAI,QAAQ,QAAQ;AAC7B,SAASC,sBAAsB,QAAQ,mBAAmB;AAC1D,SAASC,uBAAuB,QAAQ,oDAAoD;AAQ5F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO,MAAMC,sBAAsB,GAAG,MAAAA,CAAO;EAC5CC,KAAK;EACLC,cAAc;EACdC;AAC4B,CAAC,KAAK;EAClC,MAAMC,GAAG,GAAG,GAAGN,sBAAsB,CAACK,KAAK,CAAC,+BAA+BE,kBAAkB,CAACJ,KAAK,CAAC,EAAE;EACtG,MAAMK,OAAO,GAAG;IACfC,aAAa,EAAE,UAAUL,cAAc;EACxC,CAAC;EACD,IAAI;IACH,MAAMM,QAAQ,GAAG,MAAMC,KAAK,CAACL,GAAG,EAAE;MAAEE;IAAQ,CAAC,CAAC;IAC9C,IAAI,CAACE,QAAQ,CAACE,EAAE,EAAE;MACjB,MAAM,IAAIC,KAAK,CAAC,CAAC;IAClB;IACA,MAAMC,YAAY,GAAG,MAAMJ,QAAQ,CAACK,IAAI,CAAC,CAAC;IAE1C,OAAOhB,IAAI,CAACe,YAAY,EAAEb,uBAAuB,CAAC;EACnD,CAAC,CAAC,OAAOe,KAAK,EAAE;IACfC,OAAO,CAACD,KAAK,CAAC,oCAAoC,EAAEE,IAAI,CAACC,SAAS,CAACH,KAAK,CAAC,CAAC;IAC1E,OAAO,EAAE;EACV;AACD,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["getOfferUrl","formatOfferUrl","productTypesDefinition","partnersOverrideDefinition","offers","map","offer","url","overrideUrl"],"sourceRoot":"../../../src","sources":["utils/formatOfferUrl.ts"],"mappings":"AAAA,SACCA,WAAW,QAIL,
|
|
1
|
+
{"version":3,"names":["getOfferUrl","formatOfferUrl","productTypesDefinition","partnersOverrideDefinition","offers","map","offer","url","overrideUrl"],"sourceRoot":"../../../src","sources":["utils/formatOfferUrl.ts"],"mappings":"AAAA,SACCA,WAAW,QAIL,mCAAmC;;AAE1C;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,cAAc,GAC1BA,CACCC,sBAA+C,EAC/CC,0BAA6C,KAE7CC,MAAmB,IAAK;EACxB,OAAOA,MAAM,CAACC,GAAG,CAAEC,KAAK,IAAK;IAC5B,MAAM;MAAEC,GAAG;MAAEC;IAAY,CAAC,GAAGR,WAAW,CAAC;MACxCM,KAAK;MACLJ,sBAAsB;MACtBC;IACD,CAAC,CAAC;IAEF,OAAO;MACN,GAAGG,KAAK;MACRC,GAAG;MACHC;IACD,CAAC;EACF,CAAC,CAAC;AACH,CAAC","ignoreList":[]}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { getCachedOffersByProductTypes, getOffersForProductTypes } from "
|
|
2
|
-
import { parseClientTags } from "
|
|
1
|
+
import { getCachedOffersByProductTypes, getOffersForProductTypes } from "../capabilities/offer-catalog/src/api/offerCatalogApi";
|
|
2
|
+
import { parseClientTags } from "../capabilities/offer-catalog/src/utils/contextUtil";
|
|
3
|
+
|
|
3
4
|
/**
|
|
4
5
|
* Retrieves offers by product types.
|
|
5
6
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["getCachedOffersByProductTypes","getOffersForProductTypes","parseClientTags","getOffersByProductTypes","enableUseCachedOffers","productTypes","tags","context"],"sourceRoot":"../../../src","sources":["utils/getOffersByProductTypes.ts"],"mappings":"AACA,SACCA,6BAA6B,EAC7BC,wBAAwB,QAClB,
|
|
1
|
+
{"version":3,"names":["getCachedOffersByProductTypes","getOffersForProductTypes","parseClientTags","getOffersByProductTypes","enableUseCachedOffers","productTypes","tags","context"],"sourceRoot":"../../../src","sources":["utils/getOffersByProductTypes.ts"],"mappings":"AACA,SACCA,6BAA6B,EAC7BC,wBAAwB,QAClB,uDAAuD;AAC9D,SAASC,eAAe,QAAQ,qDAAqD;;AAErF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,uBAAuB,GAAG,MAAAA,CAAO;EAC7CC,qBAAqB;EACrBC,YAAY;EACZC,IAAI;EACJC;AAMD,CAAC,KAAK;EACL;EACA,IAAIH,qBAAqB,EAAE;IAC1B,OAAO,MAAMJ,6BAA6B,CAACO,OAAO,CAAC,CAACF,YAAY,CAAC;EAClE;EAEA,OAAO,MAAMJ,wBAAwB,CAACM,OAAO,CAAC,CAC7CF,YAAY,EACZH,eAAe,CAACI,IAAI,CACrB,CAAC;AACF,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["sortOffersByRecommendationScore","selectDynamicOffers","offers","productTypes","resultOffers","flatMap","productType","filter","offer","slice"],"sourceRoot":"../../../src","sources":["utils/selectDynamicOffers.ts"],"mappings":"AACA,SAASA,+BAA+B,QAAQ,mCAAmC;
|
|
1
|
+
{"version":3,"names":["sortOffersByRecommendationScore","selectDynamicOffers","offers","productTypes","resultOffers","flatMap","productType","filter","offer","slice"],"sourceRoot":"../../../src","sources":["utils/selectDynamicOffers.ts"],"mappings":"AACA,SAASA,+BAA+B,QAAQ,mCAAmC;AAEnF,OAAO,MAAMC,mBAAmB,GAAGA,CAClCC,MAAmB,EACnBC,YAAsB,KAClB;EACJ,MAAMC,YAAY,GAAGD,YAAY,CAC/BE,OAAO,CAAEC,WAAW,IACpBN,+BAA+B,CAC9BE,MAAM,CAACK,MAAM,CAAEC,KAAK,IAAKA,KAAK,CAACF,WAAW,KAAKA,WAAW,CAC3D,CACD,CAAC,CACAG,KAAK,CAAC,CAAC,EAAE,EAAE,CAAgB;EAE7B,OAAOL,YAAY;AACpB,CAAC","ignoreList":[]}
|
|
@@ -1,13 +1,49 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
|
-
export type
|
|
3
|
-
declare const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
2
|
+
export type ThemeColors = Schema.Schema.Type<typeof ThemeColors>;
|
|
3
|
+
declare const ThemeColors: Schema.Struct<{
|
|
4
|
+
backgroundPrimary: typeof Schema.String;
|
|
5
|
+
backgroundPrimaryFaded: typeof Schema.String;
|
|
6
|
+
backgroundPrimaryHighlighted: typeof Schema.String;
|
|
7
|
+
backgroundCritical: typeof Schema.String;
|
|
8
|
+
backgroundCriticalFaded: typeof Schema.String;
|
|
9
|
+
backgroundCriticalHighlighted: typeof Schema.String;
|
|
10
|
+
backgroundWarning: typeof Schema.String;
|
|
11
|
+
backgroundWarningFaded: typeof Schema.String;
|
|
12
|
+
backgroundWarningHighlighted: typeof Schema.String;
|
|
13
|
+
backgroundPositive: typeof Schema.String;
|
|
14
|
+
backgroundPositiveFaded: typeof Schema.String;
|
|
15
|
+
backgroundPositiveHighlighted: typeof Schema.String;
|
|
16
|
+
backgroundNeutral: typeof Schema.String;
|
|
17
|
+
backgroundNeutralFaded: typeof Schema.String;
|
|
18
|
+
backgroundNeutralHighlighted: typeof Schema.String;
|
|
19
|
+
backgroundDisabled: typeof Schema.String;
|
|
20
|
+
backgroundDisabledFaded: typeof Schema.String;
|
|
21
|
+
backgroundElevationBase: typeof Schema.String;
|
|
22
|
+
backgroundElevationRaised: typeof Schema.String;
|
|
23
|
+
backgroundElevationOverlay: typeof Schema.String;
|
|
24
|
+
backgroundPage: typeof Schema.String;
|
|
25
|
+
backgroundPageFaded: typeof Schema.String;
|
|
26
|
+
borderPrimary: typeof Schema.String;
|
|
27
|
+
borderPrimaryFaded: typeof Schema.String;
|
|
28
|
+
borderCritical: typeof Schema.String;
|
|
29
|
+
borderCriticalFaded: typeof Schema.String;
|
|
30
|
+
borderWarning: typeof Schema.String;
|
|
31
|
+
borderWarningFaded: typeof Schema.String;
|
|
32
|
+
borderPositive: typeof Schema.String;
|
|
33
|
+
borderPositiveFaded: typeof Schema.String;
|
|
34
|
+
borderNeutral: typeof Schema.String;
|
|
35
|
+
borderNeutralFaded: typeof Schema.String;
|
|
36
|
+
borderDisabled: typeof Schema.String;
|
|
37
|
+
foregroundPrimary: typeof Schema.String;
|
|
38
|
+
foregroundCritical: typeof Schema.String;
|
|
39
|
+
foregroundWarning: typeof Schema.String;
|
|
40
|
+
foregroundPositive: typeof Schema.String;
|
|
41
|
+
foregroundNeutral: typeof Schema.String;
|
|
42
|
+
foregroundNeutralFaded: typeof Schema.String;
|
|
43
|
+
foregroundDisabled: typeof Schema.String;
|
|
44
|
+
brand: typeof Schema.String;
|
|
45
|
+
white: typeof Schema.String;
|
|
46
|
+
black: typeof Schema.String;
|
|
11
47
|
}>;
|
|
12
48
|
export type Links = Schema.Schema.Type<typeof Links>;
|
|
13
49
|
declare const Links: Schema.Struct<{
|
|
@@ -103,15 +139,51 @@ declare const BrandFields: Schema.Struct<{
|
|
|
103
139
|
displayName: typeof Schema.String;
|
|
104
140
|
isLicensed: Schema.optional<typeof Schema.Boolean>;
|
|
105
141
|
hideLicensedLogo: Schema.optional<typeof Schema.Boolean>;
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
142
|
+
themeColors: Schema.Struct<{
|
|
143
|
+
backgroundPrimary: typeof Schema.String;
|
|
144
|
+
backgroundPrimaryFaded: typeof Schema.String;
|
|
145
|
+
backgroundPrimaryHighlighted: typeof Schema.String;
|
|
146
|
+
backgroundCritical: typeof Schema.String;
|
|
147
|
+
backgroundCriticalFaded: typeof Schema.String;
|
|
148
|
+
backgroundCriticalHighlighted: typeof Schema.String;
|
|
149
|
+
backgroundWarning: typeof Schema.String;
|
|
150
|
+
backgroundWarningFaded: typeof Schema.String;
|
|
151
|
+
backgroundWarningHighlighted: typeof Schema.String;
|
|
152
|
+
backgroundPositive: typeof Schema.String;
|
|
153
|
+
backgroundPositiveFaded: typeof Schema.String;
|
|
154
|
+
backgroundPositiveHighlighted: typeof Schema.String;
|
|
155
|
+
backgroundNeutral: typeof Schema.String;
|
|
156
|
+
backgroundNeutralFaded: typeof Schema.String;
|
|
157
|
+
backgroundNeutralHighlighted: typeof Schema.String;
|
|
158
|
+
backgroundDisabled: typeof Schema.String;
|
|
159
|
+
backgroundDisabledFaded: typeof Schema.String;
|
|
160
|
+
backgroundElevationBase: typeof Schema.String;
|
|
161
|
+
backgroundElevationRaised: typeof Schema.String;
|
|
162
|
+
backgroundElevationOverlay: typeof Schema.String;
|
|
163
|
+
backgroundPage: typeof Schema.String;
|
|
164
|
+
backgroundPageFaded: typeof Schema.String;
|
|
165
|
+
borderPrimary: typeof Schema.String;
|
|
166
|
+
borderPrimaryFaded: typeof Schema.String;
|
|
167
|
+
borderCritical: typeof Schema.String;
|
|
168
|
+
borderCriticalFaded: typeof Schema.String;
|
|
169
|
+
borderWarning: typeof Schema.String;
|
|
170
|
+
borderWarningFaded: typeof Schema.String;
|
|
171
|
+
borderPositive: typeof Schema.String;
|
|
172
|
+
borderPositiveFaded: typeof Schema.String;
|
|
173
|
+
borderNeutral: typeof Schema.String;
|
|
174
|
+
borderNeutralFaded: typeof Schema.String;
|
|
175
|
+
borderDisabled: typeof Schema.String;
|
|
176
|
+
foregroundPrimary: typeof Schema.String;
|
|
177
|
+
foregroundCritical: typeof Schema.String;
|
|
178
|
+
foregroundWarning: typeof Schema.String;
|
|
179
|
+
foregroundPositive: typeof Schema.String;
|
|
180
|
+
foregroundNeutral: typeof Schema.String;
|
|
181
|
+
foregroundNeutralFaded: typeof Schema.String;
|
|
182
|
+
foregroundDisabled: typeof Schema.String;
|
|
183
|
+
brand: typeof Schema.String;
|
|
184
|
+
white: typeof Schema.String;
|
|
185
|
+
black: typeof Schema.String;
|
|
186
|
+
}>;
|
|
115
187
|
links: Schema.optional<Schema.Struct<{
|
|
116
188
|
home: Schema.optional<typeof Schema.String>;
|
|
117
189
|
terms: Schema.optional<typeof Schema.String>;
|