@moneylion/react-native-offer-carousel 1.0.6 → 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/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/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 +12 -11
- 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 +1 -0
- package/lib/commonjs/components/Common/DynamicOfferCard/index.js.map +1 -1
- package/lib/commonjs/components/Layouts/CreditCardOfferCard/index.js +2 -1
- package/lib/commonjs/components/Layouts/CreditCardOfferCard/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 +12 -14
- 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 +10 -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/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/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/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 +12 -11
- 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 +1 -0
- package/lib/module/components/Common/DynamicOfferCard/index.js.map +1 -1
- package/lib/module/components/Layouts/CreditCardOfferCard/index.js +2 -1
- package/lib/module/components/Layouts/CreditCardOfferCard/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 +12 -14
- 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 +11 -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/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/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 +2 -2
- package/lib/typescript/src/components/Common/BaseOfferCard/index.d.ts.map +1 -1
- package/lib/typescript/src/components/Common/DynamicOfferCard/CallToAction.d.ts +1 -1
- package/lib/typescript/src/components/Common/DynamicOfferCard/CallToAction.d.ts.map +1 -1
- package/lib/typescript/src/components/Common/DynamicOfferCard/index.d.ts.map +1 -1
- package/lib/typescript/src/components/Layouts/CreditCardOfferCard/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.map +1 -1
- package/lib/typescript/src/components/MoneyLionOfferCarousel.d.ts +1 -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/ThemeProvider.d.ts +47 -11
- package/lib/typescript/src/context/ThemeProvider.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/ui/elements/src/components/MarkdownText/components.tsx +4 -4
- package/src/components/Button/index.tsx +7 -20
- package/src/components/Common/BaseOfferCard/Stat/Stat.tsx +4 -4
- package/src/components/Common/BaseOfferCard/index.tsx +32 -13
- package/src/components/Common/DynamicOfferCard/CallToAction.tsx +2 -0
- package/src/components/Common/DynamicOfferCard/SeeMore.tsx +1 -1
- package/src/components/Common/DynamicOfferCard/index.tsx +1 -0
- package/src/components/Layouts/CreditCardOfferCard/index.tsx +2 -1
- package/src/components/Modal/DescriptionPoints.tsx +2 -2
- package/src/components/Modal/Disclaimer.tsx +6 -2
- package/src/components/Modal/OfferDetailsModal.tsx +11 -6
- package/src/components/MoneyLionOfferCarousel.tsx +16 -11
- package/src/components/Text/index.tsx +10 -45
- package/src/components/View/index.tsx +13 -66
- package/src/config/mocks/cnfContext.ts +44 -8
- package/src/context/ThemeProvider.tsx +51 -14
- 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,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>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Brand.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/capabilities/core/src/system/cnfContext/schemas/Brand.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"Brand.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/capabilities/core/src/system/cnfContext/schemas/Brand.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,WAAW,CAAC,CAAC;AACjE,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4Cf,CAAC;AAEH,MAAM,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,KAAK,CAAC,CAAC;AACrD,QAAA,MAAM,KAAK;;;;;EAKT,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,WAAW,CAAC,CAAC;AACjE,QAAA,MAAM,WAAW;;;EAGf,CAAC;AAEH,MAAM,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,KAAK,CAAC,CAAC;AACrD,QAAA,MAAM,KAAK;;;;;;;;;;;;;;;;;EAcT,CAAC;AAEH,MAAM,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,KAAK,CAAC,CAAC;AACrD,QAAA,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGT,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,UAAU,CAAC,CAAC;AAC/D,QAAA,MAAM,UAAU,gGAQf,CAAC;AAEF,MAAM,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,IAAI,CAAC,CAAC;AACnD,QAAA,MAAM,IAAI;;EAER,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,YAAY,CAAC,CAAC;AACnE,QAAA,MAAM,YAAY;;;EAGhB,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,YAAY,CAAC,CAAC;AACnE,QAAA,MAAM,YAAY;;;;EAIhB,CAAC;AAEH,KAAK,WAAW,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,WAAW,CAAC,CAAC;AAC1D,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAef,CAAC;AAEH,MAAM,MAAM,KAAK,GAAG,WAAW,GAAG;IACjC,aAAa,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;CAC7B,CAAC;AAEF,eAAO,MAAM,KAAK,qCAiBhB,CAAC"}
|
package/lib/typescript/src/capabilities/ui/elements/src/components/MarkdownText/components.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { type RenderRules } from "react-native-markdown-display";
|
|
2
|
-
import { type
|
|
2
|
+
import { type TextWeight, type Variant } from "../../../../../../components/Text";
|
|
3
|
+
import type { ThemeColors } from "../../../../../core/src";
|
|
3
4
|
export declare const createMarkdownComponents: ({ numberOfLines, variant, weight, color, }: {
|
|
4
5
|
numberOfLines?: number | undefined;
|
|
5
6
|
variant?: Variant | undefined;
|
|
6
7
|
weight?: TextWeight | undefined;
|
|
7
|
-
color?:
|
|
8
|
+
color?: "backgroundPrimary" | "backgroundPrimaryFaded" | "backgroundPrimaryHighlighted" | "backgroundCritical" | "backgroundCriticalFaded" | "backgroundCriticalHighlighted" | "backgroundWarning" | "backgroundWarningFaded" | "backgroundWarningHighlighted" | "backgroundPositive" | "backgroundPositiveFaded" | "backgroundPositiveHighlighted" | "backgroundNeutral" | "backgroundNeutralFaded" | "backgroundNeutralHighlighted" | "backgroundDisabled" | "backgroundDisabledFaded" | "backgroundElevationBase" | "backgroundElevationRaised" | "backgroundElevationOverlay" | "backgroundPage" | "backgroundPageFaded" | "borderPrimary" | "borderPrimaryFaded" | "borderCritical" | "borderCriticalFaded" | "borderWarning" | "borderWarningFaded" | "borderPositive" | "borderPositiveFaded" | "borderNeutral" | "borderNeutralFaded" | "borderDisabled" | "foregroundPrimary" | "foregroundCritical" | "foregroundWarning" | "foregroundPositive" | "foregroundNeutral" | "foregroundNeutralFaded" | "foregroundDisabled" | "brand" | "white" | "black" | undefined;
|
|
8
9
|
}) => RenderRules;
|
|
9
10
|
//# sourceMappingURL=components.d.ts.map
|
package/lib/typescript/src/capabilities/ui/elements/src/components/MarkdownText/components.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/capabilities/ui/elements/src/components/MarkdownText/components.tsx"],"names":[],"mappings":"AAIA,OAAO,EAGN,KAAK,WAAW,EAChB,MAAM,+BAA+B,CAAC;AACvC,OAAa,EACZ,KAAK,
|
|
1
|
+
{"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/capabilities/ui/elements/src/components/MarkdownText/components.tsx"],"names":[],"mappings":"AAIA,OAAO,EAGN,KAAK,WAAW,EAChB,MAAM,+BAA+B,CAAC;AACvC,OAAa,EACZ,KAAK,UAAU,EACf,KAAK,OAAO,EACZ,MAAM,mCAAmC,CAAC;AAC3C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAQ3D,eAAO,MAAM,wBAAwB;;;;;MAUjC,WAwHH,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React, { type ReactNode } from "react";
|
|
2
2
|
import { TouchableOpacity, type StyleProp, type ViewStyle, type TouchableOpacityProps } from "react-native";
|
|
3
|
-
import { type
|
|
4
|
-
|
|
3
|
+
import { type ThemeColors } from "../../context/ThemeProvider";
|
|
4
|
+
type Colors = keyof ThemeColors;
|
|
5
5
|
export interface ButtonProps extends TouchableOpacityProps {
|
|
6
|
-
color
|
|
6
|
+
color: Colors;
|
|
7
7
|
loading?: boolean;
|
|
8
8
|
highlighted?: boolean;
|
|
9
9
|
disabled?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Button/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAc,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAC1D,OAAO,EACN,gBAAgB,EAIhB,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,qBAAqB,EAC1B,MAAM,cAAc,CAAC;AACtB,OAAO,EAAY,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Button/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAc,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAC1D,OAAO,EACN,gBAAgB,EAIhB,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,qBAAqB,EAC1B,MAAM,cAAc,CAAC;AACtB,OAAO,EAAY,KAAK,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAqBzE,KAAK,MAAM,GAAG,MAAM,WAAW,CAAC;AAEhC,MAAM,WAAW,WAAY,SAAQ,qBAAqB;IACzD,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC7B;AAED,QAAA,MAAM,MAAM,sFAwDV,CAAC;AA4BH,eAAe,MAAM,CAAC"}
|
|
@@ -6,12 +6,12 @@ import { type ViewProps } from "../../View";
|
|
|
6
6
|
import { ThumborImage } from "../../../capabilities/ui/elements/src";
|
|
7
7
|
declare const BaseOfferCard: {
|
|
8
8
|
({ children, showCardBorder, ...rest }: ViewProps & {
|
|
9
|
-
showCardBorder
|
|
9
|
+
showCardBorder?: boolean | undefined;
|
|
10
10
|
}): React.JSX.Element;
|
|
11
11
|
Container: ({ children, ...rest }: ViewProps) => React.JSX.Element;
|
|
12
12
|
TopContainer: ({ children, ...viewProps }: ViewProps) => React.JSX.Element;
|
|
13
13
|
Stats: ({ children, ...viewProps }: ViewProps) => React.JSX.Element;
|
|
14
|
-
CallToAction: ({ children, ...rest }: ComponentProps<typeof Button>) => React.JSX.Element;
|
|
14
|
+
CallToAction: ({ color, children, ...rest }: ComponentProps<typeof Button>) => React.JSX.Element;
|
|
15
15
|
ChosenBy: ({ children, ...rest }: ViewProps) => React.JSX.Element;
|
|
16
16
|
BottomBar: ({ children, ...viewProps }: ViewProps) => React.JSX.Element;
|
|
17
17
|
Content: typeof Content;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Common/BaseOfferCard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAGnD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,OAAa,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAClD,OAAa,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAElD,OAAO,EAAE,YAAY,EAAE,MAAM,uCAAuC,CAAC;AAMrE,QAAA,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Common/BaseOfferCard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAGnD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,OAAa,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAClD,OAAa,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAElD,OAAO,EAAE,YAAY,EAAE,MAAM,uCAAuC,CAAC;AAMrE,QAAA,MAAM,aAAa;;;;uCAkBuB,SAAS;+CAgFD,SAAS;;iDAgIxD,eAAe,aAAa,CAAC;sCAlGS,SAAS;4CAYH,SAAS;;8CAtEP,SAAS;0BAalD,KAAK,eAAe,mBAAmB,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;sCA+D5B,SAAS;yCAYN,SAAS;;2BAcjB,MAAM,EAAE;;;2BAexB,MAAM,EAAE;;;;;;;;;wBA7JD,SAAS;6BAY5B,KAAK,eAAe,mBAAmB,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;iDAgBjB,SAAS;yCAgDjB,SAAS;yCAWT,SAAS;CArGpD,CAAC;AA4OF,OAAO,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -9,5 +9,5 @@ export type CTAProps = ComponentProps<typeof Button & {
|
|
|
9
9
|
context: "offer" | "offer_details";
|
|
10
10
|
offerIndex: number;
|
|
11
11
|
};
|
|
12
|
-
export declare const CallToAction: ({ children, offer, context, offerIndex, ...rest }: CTAProps) => React.JSX.Element;
|
|
12
|
+
export declare const CallToAction: ({ color, children, offer, context, offerIndex, ...rest }: CTAProps) => React.JSX.Element;
|
|
13
13
|
//# sourceMappingURL=CallToAction.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CallToAction.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Common/DynamicOfferCard/CallToAction.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAEnD,OAAO,KAAK,MAAM,MAAM,cAAc,CAAC;AAGvC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAEzE,MAAM,MAAM,QAAQ,GAAG,cAAc,CAAC,OAAO,MAAM,GAAG;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC,GAAG;IACzE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,SAAS,CAAC;IACjB,OAAO,EAAE,OAAO,GAAG,eAAe,CAAC;IACnC,UAAU,EAAE,MAAM,CAAC;CAEnB,CAAC;AAEF,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"CallToAction.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Common/DynamicOfferCard/CallToAction.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAEnD,OAAO,KAAK,MAAM,MAAM,cAAc,CAAC;AAGvC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAEzE,MAAM,MAAM,QAAQ,GAAG,cAAc,CAAC,OAAO,MAAM,GAAG;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC,GAAG;IACzE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,SAAS,CAAC;IACjB,OAAO,EAAE,OAAO,GAAG,eAAe,CAAC;IACnC,UAAU,EAAE,MAAM,CAAC;CAEnB,CAAC;AAEF,eAAO,MAAM,YAAY,6DAOtB,QAAQ,sBA0BV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Common/DynamicOfferCard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAEzE,KAAK,4BAA4B,GAAG;IACnC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,EAAE,SAAS,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,OAAO,CAAC;IACxB,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAC/B,CAAC;AAEF,iBAAS,gBAAgB,CAAC,EACzB,QAAQ,EACR,KAAK,EACL,UAAU,EACV,cAAc,EACd,oBAAoB,GACpB,EAAE,4BAA4B,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Common/DynamicOfferCard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAEzE,KAAK,4BAA4B,GAAG;IACnC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,EAAE,SAAS,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,OAAO,CAAC;IACxB,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAC/B,CAAC;AAEF,iBAAS,gBAAgB,CAAC,EACzB,QAAQ,EACR,KAAK,EACL,UAAU,EACV,cAAc,EACd,oBAAoB,GACpB,EAAE,4BAA4B,qBAsC9B;AAED,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Layouts/CreditCardOfferCard/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,mBAAmB,IAAI,+BAA+B,EAAE,MAAM,kBAAkB,CAAC;AAO/F,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAEzE,KAAK,wBAAwB,GAAG;IAC/B,kBAAkB,EAAE,+BAA+B,CAAC;IACpD,KAAK,EAAE,SAAS,CAAC;IACjB,cAAc,EAAE,OAAO,CAAC;IACxB,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,UAAU,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,eAAO,MAAM,mBAAmB,qFAM7B,wBAAwB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Layouts/CreditCardOfferCard/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,mBAAmB,IAAI,+BAA+B,EAAE,MAAM,kBAAkB,CAAC;AAO/F,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAEzE,KAAK,wBAAwB,GAAG;IAC/B,kBAAkB,EAAE,+BAA+B,CAAC;IACpD,KAAK,EAAE,SAAS,CAAC;IACjB,cAAc,EAAE,OAAO,CAAC;IACxB,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,UAAU,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,eAAO,MAAM,mBAAmB,qFAM7B,wBAAwB,sBAiE1B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Disclaimer.d.ts","sourceRoot":"","sources":["../../../../../src/components/Modal/Disclaimer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,wBAAgB,UAAU,CAAC,EAAE,UAAU,EAAE,EAAE;IAAE,UAAU,EAAE,MAAM,CAAA;CAAE,
|
|
1
|
+
{"version":3,"file":"Disclaimer.d.ts","sourceRoot":"","sources":["../../../../../src/components/Modal/Disclaimer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,wBAAgB,UAAU,CAAC,EAAE,UAAU,EAAE,EAAE;IAAE,UAAU,EAAE,MAAM,CAAA;CAAE,qBAahE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OfferDetailsModal.d.ts","sourceRoot":"","sources":["../../../../../src/components/Modal/OfferDetailsModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAgB1B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAEtE,KAAK,sBAAsB,GAAG;IAC7B,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,SAAS,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,IAAI,CAAC;CACpB,CAAC;AAIF,eAAO,MAAM,iBAAiB,6CAK3B,sBAAsB,
|
|
1
|
+
{"version":3,"file":"OfferDetailsModal.d.ts","sourceRoot":"","sources":["../../../../../src/components/Modal/OfferDetailsModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAgB1B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAEtE,KAAK,sBAAsB,GAAG;IAC7B,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,SAAS,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,IAAI,CAAC;CACpB,CAAC;AAIF,eAAO,MAAM,iBAAiB,6CAK3B,sBAAsB,sBAwDxB,CAAC"}
|
|
@@ -16,6 +16,7 @@ export type MoneyLionOfferCarouselProps = {
|
|
|
16
16
|
showProductTypeLabel?: boolean;
|
|
17
17
|
isDev: boolean;
|
|
18
18
|
showCardBorder?: boolean;
|
|
19
|
+
showDescriptionPoints?: boolean;
|
|
19
20
|
};
|
|
20
21
|
export declare const MoneyLionOfferCarousel: (props: MoneyLionOfferCarouselProps & Omit<EventHandlerContextType, "rateTableUuid" | "leadUuid">) => React.JSX.Element;
|
|
21
22
|
//# sourceMappingURL=MoneyLionOfferCarousel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MoneyLionOfferCarousel.d.ts","sourceRoot":"","sources":["../../../../src/components/MoneyLionOfferCarousel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAInD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAMvC,OAAO,EAAiB,KAAK,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAC1E,OAAO,EAEN,KAAK,uBAAuB,EAC5B,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"MoneyLionOfferCarousel.d.ts","sourceRoot":"","sources":["../../../../src/components/MoneyLionOfferCarousel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAInD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAMvC,OAAO,EAAiB,KAAK,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAC1E,OAAO,EAEN,KAAK,uBAAuB,EAC5B,MAAM,iCAAiC,CAAC;AAKzC,MAAM,MAAM,2BAA2B,GAAG;IACzC,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,eAAe,EAAE,MAAM,CAAC;IACxB,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,UAAU,CAAC,EAAE,OAAO,CAAC,UAAU,CAAC,CAAC;IACjC,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,KAAK,EAAE,OAAO,CAAC;IACf,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,qBAAqB,CAAC,EAAE,OAAO,CAAC;CAChC,CAAC;AA8BF,eAAO,MAAM,sBAAsB,UAC3B,2BAA2B,GACjC,KAAK,uBAAuB,EAAE,eAAe,GAAG,UAAU,CAAC,sBAgJ5D,CAAC"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { type TextStyle, type StyleProp, type TextProps as RNTextProps } from "react-native";
|
|
3
|
+
import { type ThemeColors } from "../../context/ThemeProvider";
|
|
3
4
|
export type Variant = "title-1" | "title-2" | "title-3" | "title-4" | "title-5" | "title-6" | "featured-1" | "featured-2" | "featured-3" | "body-1" | "body-2" | "body-3" | "caption-1" | "caption-2";
|
|
4
5
|
export type TextDecoration = "line-through";
|
|
5
|
-
export type TextColor = "neutral" | "neutral-faded" | "critical" | "warning" | "positive" | "primary" | "disabled";
|
|
6
6
|
export type TextWeight = "normal" | "medium" | "bold";
|
|
7
7
|
export interface TextProps extends Omit<RNTextProps, "style"> {
|
|
8
8
|
variant?: Variant;
|
|
9
9
|
weight?: TextWeight;
|
|
10
|
-
color?:
|
|
10
|
+
color?: keyof ThemeColors;
|
|
11
11
|
decoration?: TextDecoration;
|
|
12
12
|
children?: React.ReactNode;
|
|
13
13
|
style?: StyleProp<TextStyle>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Text/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Text/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAGN,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,SAAS,IAAI,WAAW,EAC7B,MAAM,cAAc,CAAC;AACtB,OAAO,EAAY,KAAK,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAGzE,MAAM,MAAM,OAAO,GAChB,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,GACT,YAAY,GACZ,YAAY,GACZ,YAAY,GACZ,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,WAAW,GACX,WAAW,CAAC;AAGf,MAAM,MAAM,cAAc,GAAG,cAAc,CAAC;AAG5C,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,QAAQ,GAAG,MAAM,CAAC;AAGtD,MAAM,WAAW,SAAU,SAAQ,IAAI,CAAC,WAAW,EAAE,OAAO,CAAC;IAC5D,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,WAAW,CAAC;IAC1B,UAAU,CAAC,EAAE,cAAc,CAAC;IAC5B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC7B;AAED,QAAA,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAgD7B,CAAC;AAwEF,eAAe,IAAI,CAAC"}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { type ViewStyle } from "react-native";
|
|
3
|
+
import { type ThemeColors } from "../../context/ThemeProvider";
|
|
4
|
+
type Colors = keyof ThemeColors;
|
|
3
5
|
export interface ViewProps {
|
|
4
6
|
children?: React.ReactNode;
|
|
5
7
|
style?: ViewStyle;
|
|
6
|
-
backgroundColor?:
|
|
7
|
-
borderColor?:
|
|
8
|
+
backgroundColor?: Colors;
|
|
9
|
+
borderColor?: Colors;
|
|
8
10
|
direction?: "row" | "row-reverse" | "column" | "column-reverse";
|
|
9
11
|
height?: number | string;
|
|
10
12
|
maxHeight?: number | string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/View/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAkB,KAAK,SAAS,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/View/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAkB,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9D,OAAO,EAAY,KAAK,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAEzE,KAAK,MAAM,GAAG,MAAM,WAAW,CAAC;AAEhC,MAAM,WAAW,SAAS;IACzB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,KAAK,GAAG,aAAa,GAAG,QAAQ,GAAG,gBAAgB,CAAC;IAChE,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IACpC,MAAM,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,QAAA,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CA4D7B,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cnfContext.d.ts","sourceRoot":"","sources":["../../../../../src/config/mocks/cnfContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0DAA0D,CAAC;AAE3F,eAAO,MAAM,eAAe,EAAE,
|
|
1
|
+
{"version":3,"file":"cnfContext.d.ts","sourceRoot":"","sources":["../../../../../src/config/mocks/cnfContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0DAA0D,CAAC;AAE3F,eAAO,MAAM,eAAe,EAAE,UAyK7B,CAAC"}
|
|
@@ -1,12 +1,48 @@
|
|
|
1
1
|
import React, { type FC, type ReactNode } from "react";
|
|
2
|
-
export interface
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
export interface ThemeColors {
|
|
3
|
+
backgroundPrimary: string;
|
|
4
|
+
backgroundPrimaryFaded: string;
|
|
5
|
+
backgroundPrimaryHighlighted: string;
|
|
6
|
+
backgroundCritical: string;
|
|
7
|
+
backgroundCriticalFaded: string;
|
|
8
|
+
backgroundCriticalHighlighted: string;
|
|
9
|
+
backgroundWarning: string;
|
|
10
|
+
backgroundWarningFaded: string;
|
|
11
|
+
backgroundWarningHighlighted: string;
|
|
12
|
+
backgroundPositive: string;
|
|
13
|
+
backgroundPositiveFaded: string;
|
|
14
|
+
backgroundPositiveHighlighted: string;
|
|
15
|
+
backgroundNeutral: string;
|
|
16
|
+
backgroundNeutralFaded: string;
|
|
17
|
+
backgroundNeutralHighlighted: string;
|
|
18
|
+
backgroundDisabled: string;
|
|
19
|
+
backgroundDisabledFaded: string;
|
|
20
|
+
backgroundElevationBase: string;
|
|
21
|
+
backgroundElevationRaised: string;
|
|
22
|
+
backgroundElevationOverlay: string;
|
|
23
|
+
backgroundPage: string;
|
|
24
|
+
backgroundPageFaded: string;
|
|
25
|
+
borderPrimary: string;
|
|
26
|
+
borderPrimaryFaded: string;
|
|
27
|
+
borderCritical: string;
|
|
28
|
+
borderCriticalFaded: string;
|
|
29
|
+
borderWarning: string;
|
|
30
|
+
borderWarningFaded: string;
|
|
31
|
+
borderPositive: string;
|
|
32
|
+
borderPositiveFaded: string;
|
|
33
|
+
borderNeutral: string;
|
|
34
|
+
borderNeutralFaded: string;
|
|
35
|
+
borderDisabled: string;
|
|
36
|
+
foregroundPrimary: string;
|
|
37
|
+
foregroundCritical: string;
|
|
38
|
+
foregroundWarning: string;
|
|
39
|
+
foregroundPositive: string;
|
|
40
|
+
foregroundNeutral: string;
|
|
41
|
+
foregroundNeutralFaded: string;
|
|
42
|
+
foregroundDisabled: string;
|
|
43
|
+
brand: string;
|
|
44
|
+
white: string;
|
|
45
|
+
black: string;
|
|
10
46
|
}
|
|
11
47
|
export interface FontFamily {
|
|
12
48
|
normal?: string;
|
|
@@ -14,15 +50,15 @@ export interface FontFamily {
|
|
|
14
50
|
bold?: string;
|
|
15
51
|
}
|
|
16
52
|
interface ThemeContextType {
|
|
17
|
-
theme:
|
|
53
|
+
theme: ThemeColors;
|
|
18
54
|
fontFamily: FontFamily;
|
|
19
|
-
updateTheme: (newTheme: Partial<
|
|
55
|
+
updateTheme: (newTheme: Partial<ThemeColors>) => void;
|
|
20
56
|
updateFontFamily: (newFontFamily: Partial<FontFamily>) => void;
|
|
21
57
|
}
|
|
22
58
|
export declare const ThemeContext: React.Context<ThemeContextType | null>;
|
|
23
59
|
export declare const useTheme: () => ThemeContextType;
|
|
24
60
|
interface ThemeProviderProps {
|
|
25
|
-
|
|
61
|
+
themeColors?: ThemeColors;
|
|
26
62
|
fontFamily?: Partial<FontFamily>;
|
|
27
63
|
children: ReactNode;
|
|
28
64
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemeProvider.d.ts","sourceRoot":"","sources":["../../../../src/context/ThemeProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAEb,KAAK,EAAE,EACP,KAAK,SAAS,EAGd,MAAM,OAAO,CAAC;AAGf,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"ThemeProvider.d.ts","sourceRoot":"","sources":["../../../../src/context/ThemeProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAEb,KAAK,EAAE,EACP,KAAK,SAAS,EAGd,MAAM,OAAO,CAAC;AAGf,MAAM,WAAW,WAAW;IAC3B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,sBAAsB,EAAE,MAAM,CAAC;IAC/B,4BAA4B,EAAE,MAAM,CAAC;IACrC,kBAAkB,EAAE,MAAM,CAAC;IAC3B,uBAAuB,EAAE,MAAM,CAAC;IAChC,6BAA6B,EAAE,MAAM,CAAC;IACtC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,sBAAsB,EAAE,MAAM,CAAC;IAC/B,4BAA4B,EAAE,MAAM,CAAC;IACrC,kBAAkB,EAAE,MAAM,CAAC;IAC3B,uBAAuB,EAAE,MAAM,CAAC;IAChC,6BAA6B,EAAE,MAAM,CAAC;IACtC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,sBAAsB,EAAE,MAAM,CAAC;IAC/B,4BAA4B,EAAE,MAAM,CAAC;IACrC,kBAAkB,EAAE,MAAM,CAAC;IAC3B,uBAAuB,EAAE,MAAM,CAAC;IAChC,uBAAuB,EAAE,MAAM,CAAC;IAChC,yBAAyB,EAAE,MAAM,CAAC;IAClC,0BAA0B,EAAE,MAAM,CAAC;IACnC,cAAc,EAAE,MAAM,CAAC;IACvB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,aAAa,EAAE,MAAM,CAAC;IACtB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,cAAc,EAAE,MAAM,CAAC;IACvB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,aAAa,EAAE,MAAM,CAAC;IACtB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,cAAc,EAAE,MAAM,CAAC;IACvB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,aAAa,EAAE,MAAM,CAAC;IACtB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,cAAc,EAAE,MAAM,CAAC;IACvB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,sBAAsB,EAAE,MAAM,CAAC;IAC/B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,UAAU;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;CACd;AAQD,UAAU,gBAAgB;IACzB,KAAK,EAAE,WAAW,CAAC;IACnB,UAAU,EAAE,UAAU,CAAC;IACvB,WAAW,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;IACtD,gBAAgB,EAAE,CAAC,aAAa,EAAE,OAAO,CAAC,UAAU,CAAC,KAAK,IAAI,CAAC;CAC/D;AAED,eAAO,MAAM,YAAY,wCAA+C,CAAC;AAEzE,eAAO,MAAM,QAAQ,wBAMpB,CAAC;AAEF,UAAU,kBAAkB;IAC3B,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,UAAU,CAAC,EAAE,OAAO,CAAC,UAAU,CAAC,CAAC;IACjC,QAAQ,EAAE,SAAS,CAAC;CACpB;AAED,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,kBAAkB,CAqChD,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,14 +1,50 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
2
|
|
|
3
|
-
export type
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
3
|
+
export type ThemeColors = Schema.Schema.Type<typeof ThemeColors>;
|
|
4
|
+
const ThemeColors = Schema.Struct({
|
|
5
|
+
backgroundPrimary: Schema.String,
|
|
6
|
+
backgroundPrimaryFaded: Schema.String,
|
|
7
|
+
backgroundPrimaryHighlighted: Schema.String,
|
|
8
|
+
backgroundCritical: Schema.String,
|
|
9
|
+
backgroundCriticalFaded: Schema.String,
|
|
10
|
+
backgroundCriticalHighlighted: Schema.String,
|
|
11
|
+
backgroundWarning: Schema.String,
|
|
12
|
+
backgroundWarningFaded: Schema.String,
|
|
13
|
+
backgroundWarningHighlighted: Schema.String,
|
|
14
|
+
backgroundPositive: Schema.String,
|
|
15
|
+
backgroundPositiveFaded: Schema.String,
|
|
16
|
+
backgroundPositiveHighlighted: Schema.String,
|
|
17
|
+
backgroundNeutral: Schema.String,
|
|
18
|
+
backgroundNeutralFaded: Schema.String,
|
|
19
|
+
backgroundNeutralHighlighted: Schema.String,
|
|
20
|
+
backgroundDisabled: Schema.String,
|
|
21
|
+
backgroundDisabledFaded: Schema.String,
|
|
22
|
+
backgroundElevationBase: Schema.String,
|
|
23
|
+
backgroundElevationRaised: Schema.String,
|
|
24
|
+
backgroundElevationOverlay: Schema.String,
|
|
25
|
+
backgroundPage: Schema.String,
|
|
26
|
+
backgroundPageFaded: Schema.String,
|
|
27
|
+
borderPrimary: Schema.String,
|
|
28
|
+
borderPrimaryFaded: Schema.String,
|
|
29
|
+
borderCritical: Schema.String,
|
|
30
|
+
borderCriticalFaded: Schema.String,
|
|
31
|
+
borderWarning: Schema.String,
|
|
32
|
+
borderWarningFaded: Schema.String,
|
|
33
|
+
borderPositive: Schema.String,
|
|
34
|
+
borderPositiveFaded: Schema.String,
|
|
35
|
+
borderNeutral: Schema.String,
|
|
36
|
+
borderNeutralFaded: Schema.String,
|
|
37
|
+
borderDisabled: Schema.String,
|
|
38
|
+
foregroundPrimary: Schema.String,
|
|
39
|
+
foregroundCritical: Schema.String,
|
|
40
|
+
foregroundWarning: Schema.String,
|
|
41
|
+
foregroundPositive: Schema.String,
|
|
42
|
+
foregroundNeutral: Schema.String,
|
|
43
|
+
foregroundNeutralFaded: Schema.String,
|
|
44
|
+
foregroundDisabled: Schema.String,
|
|
45
|
+
brand: Schema.String,
|
|
46
|
+
white: Schema.String,
|
|
47
|
+
black: Schema.String,
|
|
12
48
|
});
|
|
13
49
|
|
|
14
50
|
export type Links = Schema.Schema.Type<typeof Links>;
|
|
@@ -84,7 +120,7 @@ const BrandFields = Schema.Struct({
|
|
|
84
120
|
displayName: Schema.String,
|
|
85
121
|
isLicensed: Schema.optional(Schema.Boolean),
|
|
86
122
|
hideLicensedLogo: Schema.optional(Schema.Boolean),
|
|
87
|
-
|
|
123
|
+
themeColors: ThemeColors,
|
|
88
124
|
links: Schema.optional(Links),
|
|
89
125
|
logos: Schema.optional(Logos),
|
|
90
126
|
font: Schema.optional(Font),
|
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
type RenderRules,
|
|
9
9
|
} from "react-native-markdown-display";
|
|
10
10
|
import Text, {
|
|
11
|
-
type TextColor,
|
|
12
11
|
type TextWeight,
|
|
13
12
|
type Variant,
|
|
14
13
|
} from "../../../../../../components/Text";
|
|
14
|
+
import type { ThemeColors } from "../../../../../core/src";
|
|
15
15
|
|
|
16
16
|
// Helper to create text variants
|
|
17
17
|
const createTextVariant =
|
|
@@ -28,7 +28,7 @@ export const createMarkdownComponents = ({
|
|
|
28
28
|
numberOfLines?: number;
|
|
29
29
|
variant?: Variant;
|
|
30
30
|
weight?: TextWeight;
|
|
31
|
-
color?:
|
|
31
|
+
color?: keyof ThemeColors;
|
|
32
32
|
}): RenderRules => {
|
|
33
33
|
// Keep track of the first list item
|
|
34
34
|
let isFirstListItem = true;
|
|
@@ -78,7 +78,7 @@ export const createMarkdownComponents = ({
|
|
|
78
78
|
key={node.key || `${node.type}-${node.index}`}
|
|
79
79
|
variant={variant}
|
|
80
80
|
weight={weight}
|
|
81
|
-
color={
|
|
81
|
+
color={color}
|
|
82
82
|
style={styles.linkText}
|
|
83
83
|
onPress={() => openUrl(node.attributes.href || "")}
|
|
84
84
|
>
|
|
@@ -115,7 +115,7 @@ export const createMarkdownComponents = ({
|
|
|
115
115
|
key={node.key || `${node.type}-${node.index}`}
|
|
116
116
|
variant={variant || "body-3"}
|
|
117
117
|
weight={weight}
|
|
118
|
-
color={color
|
|
118
|
+
color={color}
|
|
119
119
|
>
|
|
120
120
|
<Text variant={"body-1"}>{prefix}• </Text>
|
|
121
121
|
{children}
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
type ViewStyle,
|
|
9
9
|
type TouchableOpacityProps,
|
|
10
10
|
} from "react-native";
|
|
11
|
-
import { useTheme, type
|
|
11
|
+
import { useTheme, type ThemeColors } from "../../context/ThemeProvider";
|
|
12
12
|
import Text from "../Text";
|
|
13
13
|
|
|
14
14
|
// Helper function to determine text color based on background color
|
|
@@ -29,10 +29,10 @@ const getContrastColor = (hexColor: string): string => {
|
|
|
29
29
|
return luminance > 0.5 ? "#000000" : "#FFFFFF";
|
|
30
30
|
};
|
|
31
31
|
|
|
32
|
-
|
|
32
|
+
type Colors = keyof ThemeColors;
|
|
33
33
|
|
|
34
34
|
export interface ButtonProps extends TouchableOpacityProps {
|
|
35
|
-
color
|
|
35
|
+
color: Colors;
|
|
36
36
|
loading?: boolean;
|
|
37
37
|
highlighted?: boolean;
|
|
38
38
|
disabled?: boolean;
|
|
@@ -42,7 +42,7 @@ export interface ButtonProps extends TouchableOpacityProps {
|
|
|
42
42
|
|
|
43
43
|
const Button = forwardRef<TouchableOpacity, ButtonProps>((props, ref) => {
|
|
44
44
|
const {
|
|
45
|
-
color
|
|
45
|
+
color,
|
|
46
46
|
highlighted = false,
|
|
47
47
|
loading = false,
|
|
48
48
|
disabled = false,
|
|
@@ -57,24 +57,11 @@ const Button = forwardRef<TouchableOpacity, ButtonProps>((props, ref) => {
|
|
|
57
57
|
const theme = themeContext?.theme || {};
|
|
58
58
|
|
|
59
59
|
// Convert palette colors to actual styles
|
|
60
|
-
const
|
|
61
|
-
|
|
62
|
-
case "promotional":
|
|
63
|
-
return theme.promotional || "#007AFF"; // TODO: remove fallback color
|
|
64
|
-
case "positive":
|
|
65
|
-
return theme.positive;
|
|
66
|
-
case "critical":
|
|
67
|
-
return theme.critical || "#FF3B30"; // TODO: remove fallback color
|
|
68
|
-
case "highlight":
|
|
69
|
-
return theme.highlight || "#FF9500"; // TODO: remove fallback color
|
|
70
|
-
case "neutral":
|
|
71
|
-
return theme.neutral || "#8E8E93"; // TODO: remove fallback color
|
|
72
|
-
default:
|
|
73
|
-
return "#8E8E93";
|
|
74
|
-
}
|
|
60
|
+
const getThemeColor = (colorKey: Colors) => {
|
|
61
|
+
return theme[colorKey];
|
|
75
62
|
};
|
|
76
63
|
|
|
77
|
-
const backgroundColor =
|
|
64
|
+
const backgroundColor = getThemeColor(color);
|
|
78
65
|
const textColor = getContrastColor(backgroundColor);
|
|
79
66
|
|
|
80
67
|
return (
|
|
@@ -24,13 +24,13 @@ function smartCapitalize(text: string): string {
|
|
|
24
24
|
const VerticalStat = (props: StatProps) => {
|
|
25
25
|
return (
|
|
26
26
|
<View style={styles.verticalStatContainer}>
|
|
27
|
-
<Text variant="featured-2" color="
|
|
27
|
+
<Text variant="featured-2" color={"foregroundNeutral"} weight={"bold"}>
|
|
28
28
|
{String(props.content).trim()}
|
|
29
29
|
</Text>
|
|
30
30
|
<MarkdownText
|
|
31
31
|
variant={"body-3"}
|
|
32
32
|
weight={"normal"}
|
|
33
|
-
color={"
|
|
33
|
+
color={"foregroundNeutralFaded"}
|
|
34
34
|
content={props.label.trim()}
|
|
35
35
|
/>
|
|
36
36
|
</View>
|
|
@@ -67,10 +67,10 @@ export const Stat = ({
|
|
|
67
67
|
>
|
|
68
68
|
<MarkdownText
|
|
69
69
|
variant={"body-3"}
|
|
70
|
-
color={"
|
|
70
|
+
color={"foregroundNeutralFaded"}
|
|
71
71
|
content={label.trim()}
|
|
72
72
|
/>
|
|
73
|
-
<Text variant="body-3" color="
|
|
73
|
+
<Text variant="body-3" color="foregroundNeutral" weight="bold">
|
|
74
74
|
{smartCapitalize(String(content).trim())}
|
|
75
75
|
</Text>
|
|
76
76
|
</View>
|