@ovotech/element-native 5.5.0 → 5.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Accordion/styles.d.ts +9 -0
- package/dist/components/ActionList/Action.d.ts +23 -0
- package/dist/components/ActionList/Action.js +29 -0
- package/dist/components/ActionList/ActionList.d.ts +11 -27
- package/dist/components/ActionList/ActionList.js +9 -25
- package/dist/components/ActionList/ActionListItems/DataListItem.d.ts +23 -0
- package/dist/components/ActionList/ActionListItems/DataListItem.js +21 -0
- package/dist/components/ActionList/ActionListItems/EditableListItem.d.ts +43 -0
- package/dist/components/ActionList/ActionListItems/EditableListItem.js +134 -0
- package/dist/components/ActionList/ActionListItems/NavigationListItem.d.ts +16 -0
- package/dist/components/ActionList/ActionListItems/NavigationListItem.js +30 -0
- package/dist/components/ActionList/ActionListItems/ProgressRing.d.ts +7 -0
- package/dist/components/ActionList/ActionListItems/ProgressRing.js +66 -0
- package/dist/components/ActionList/ActionListItems/ToggleListItem.d.ts +9 -0
- package/dist/components/ActionList/ActionListItems/ToggleListItem.js +13 -0
- package/dist/components/ActionList/ActionListItems/styles.d.ts +10433 -0
- package/dist/components/ActionList/ActionListItems/styles.js +171 -0
- package/dist/components/ActionList/components/ActionListHeading.d.ts +9 -0
- package/dist/components/ActionList/components/ActionListHeading.js +11 -0
- package/dist/components/ActionList/index.d.ts +6 -1
- package/dist/components/ActionList/index.js +11 -2
- package/dist/components/ActionList/styled.d.ts +1187 -7
- package/dist/components/ActionList/styled.js +24 -9
- package/dist/components/Badge/Badge.d.ts +3 -0
- package/dist/components/Button/Button.js +1 -1
- package/dist/components/Button/Button.styles.d.ts +12 -0
- package/dist/components/Card/Card.d.ts +7 -4
- package/dist/components/Card/Card.js +44 -22
- package/dist/components/Card/Card.styles.d.ts +11 -1
- package/dist/components/Card/Card.styles.js +7 -11
- package/dist/components/Cards/AccountCard/AccountCard.styles.d.ts +24 -0
- package/dist/components/Cards/BalanceCard/BalanceCard.styles.d.ts +46 -1
- package/dist/components/Cards/BalanceCard/BalanceCard.styles.js +2 -2
- package/dist/components/Cards/DisruptiveCard/DisruptiveCard.d.ts +13 -0
- package/dist/components/Cards/DisruptiveCard/DisruptiveCard.js +45 -0
- package/dist/components/Cards/DisruptiveCard/DisruptiveCard.styles.d.ts +580 -0
- package/dist/components/Cards/DisruptiveCard/DisruptiveCard.styles.js +11 -0
- package/dist/components/Cards/DisruptiveCard/index.d.ts +1 -0
- package/dist/components/Cards/DisruptiveCard/index.js +17 -0
- package/dist/components/Cards/HeroImageCard/HeroImageCard.d.ts +12 -0
- package/dist/components/Cards/HeroImageCard/HeroImageCard.js +65 -0
- package/dist/components/Cards/HeroImageCard/HeroImageCard.styles.d.ts +1741 -0
- package/dist/components/Cards/HeroImageCard/HeroImageCard.styles.js +27 -0
- package/dist/components/Cards/HeroImageCard/index.d.ts +1 -0
- package/dist/components/Cards/HeroImageCard/index.js +17 -0
- package/dist/components/Cards/IconDataCard/IconDataCard.styles.d.ts +12 -0
- package/dist/components/Cards/IconTextCard/IconTextCard.js +3 -16
- package/dist/components/Cards/IconTextCard/IconTextCard.styles.d.ts +10 -576
- package/dist/components/Cards/IconTextCard/IconTextCard.styles.js +1 -6
- package/dist/components/Cards/IllustrationTextCard/IllustrationTextCard.d.ts +14 -0
- package/dist/components/Cards/IllustrationTextCard/IllustrationTextCard.js +26 -0
- package/dist/components/Cards/IllustrationTextCard/IllustrationTextCard.styles.d.ts +2903 -0
- package/dist/components/Cards/IllustrationTextCard/IllustrationTextCard.styles.js +34 -0
- package/dist/components/Cards/IllustrationTextCard/index.d.ts +1 -0
- package/dist/components/Cards/IllustrationTextCard/index.js +17 -0
- package/dist/components/Cards/LinkTextCard/LinkTextCard.d.ts +2 -2
- package/dist/components/Cards/LinkTextCard/LinkTextCard.js +7 -6
- package/dist/components/Cards/LinkTextCard/LinkTextCard.styles.d.ts +20 -2
- package/dist/components/Cards/LinkTextCard/LinkTextCard.styles.js +9 -6
- package/dist/components/Cards/ProgressBarCard/ProgressBarCard.styles.d.ts +28 -1
- package/dist/components/Cards/QuickLinkCard/QuickLinkCard.d.ts +12 -0
- package/dist/components/Cards/QuickLinkCard/QuickLinkCard.js +27 -0
- package/dist/components/Cards/QuickLinkCard/QuickLinkCard.styles.d.ts +2897 -0
- package/dist/components/Cards/QuickLinkCard/QuickLinkCard.styles.js +31 -0
- package/dist/components/Cards/QuickLinkCard/index.d.ts +1 -0
- package/dist/components/Cards/QuickLinkCard/index.js +17 -0
- package/dist/components/Cards/ServicesImageCard/ServicesImageCard.d.ts +12 -0
- package/dist/components/Cards/ServicesImageCard/ServicesImageCard.js +24 -0
- package/dist/components/Cards/ServicesImageCard/ServicesImageCard.styles.d.ts +2902 -0
- package/dist/components/Cards/ServicesImageCard/ServicesImageCard.styles.js +38 -0
- package/dist/components/Cards/ServicesImageCard/index.d.ts +1 -0
- package/dist/components/Cards/ServicesImageCard/index.js +17 -0
- package/dist/components/Cards/components.d.ts +15 -0
- package/dist/components/Cards/components.js +24 -0
- package/dist/components/Cards/index.d.ts +5 -0
- package/dist/components/Cards/index.js +11 -1
- package/dist/components/Cards/shared.styles.d.ts +2835 -505
- package/dist/components/Cards/shared.styles.js +18 -2
- package/dist/components/Cards/utils.d.ts +1 -0
- package/dist/components/Cards/utils.js +13 -1
- package/dist/components/Checkbox/Checkbox.d.ts +2 -13
- package/dist/components/Checkbox/Checkbox.js +3 -49
- package/dist/components/Checkbox/styled.d.ts +3483 -0
- package/dist/components/Checkbox/styled.js +52 -0
- package/dist/components/Checkbox/types.d.ts +16 -0
- package/dist/components/Checkbox/types.js +2 -0
- package/dist/components/CurrencyInput/CurrencyInput.d.ts +2 -1
- package/dist/components/CurrencyInput/CurrencyInput.js +11 -4
- package/dist/components/CurrencyInput/styled.d.ts +2318 -0
- package/dist/components/CurrencyInput/styled.js +39 -0
- package/dist/components/DataTable/styles.d.ts +39 -0
- package/dist/components/Disclosure/Disclosure.d.ts +3 -0
- package/dist/components/Divider/Divider.d.ts +1 -1
- package/dist/components/Divider/Divider.js +3 -1
- package/dist/components/Em/Em.d.ts +3 -0
- package/dist/components/EmailInput/EmailInput.d.ts +4 -1
- package/dist/components/EmailInput/EmailInput.js +18 -2
- package/dist/components/EmptyState/EmptyState.d.ts +2 -0
- package/dist/components/EmptyState/EmptyState.js +17 -0
- package/dist/components/EmptyState/EmptyState.test.d.ts +1 -0
- package/dist/components/EmptyState/EmptyState.test.js +92 -0
- package/dist/components/EmptyState/index.d.ts +1 -0
- package/dist/components/EmptyState/index.js +17 -0
- package/dist/components/EmptyState/styles.d.ts +1156 -0
- package/dist/components/EmptyState/styles.js +23 -0
- package/dist/components/EmptyState/types.d.ts +18 -0
- package/dist/components/EmptyState/types.js +2 -0
- package/dist/components/ErrorText/ErrorText.d.ts +3 -0
- package/dist/components/Field/Field.d.ts +3 -2
- package/dist/components/Field/Field.js +3 -2
- package/dist/components/Grid/Col.d.ts +3 -0
- package/dist/components/HintText/HintText.d.ts +3 -0
- package/dist/components/Input/Input.d.ts +2 -1
- package/dist/components/Input/Input.js +6 -97
- package/dist/components/Input/styled.d.ts +1747 -0
- package/dist/components/Input/styled.js +96 -0
- package/dist/components/LabelText/LabelText.d.ts +3 -0
- package/dist/components/LargeValueReference/LargeValueReference.d.ts +11 -0
- package/dist/components/LargeValueReference/LargeValueReference.js +49 -0
- package/dist/components/LargeValueReference/index.d.ts +1 -0
- package/dist/components/LargeValueReference/index.js +17 -0
- package/dist/components/LargeValueReference/styles.d.ts +1741 -0
- package/dist/components/LargeValueReference/styles.js +29 -0
- package/dist/components/LineThrough/LineThrough.d.ts +3 -0
- package/dist/components/List/styled.d.ts +12 -0
- package/dist/components/Margin/Margin.d.ts +3 -0
- package/dist/components/NavHeader/NavHeader.styles.d.ts +33 -0
- package/dist/components/Notification/Notification.styles.d.ts +27 -0
- package/dist/components/PasswordInput/PasswordInput.styled.d.ts +4 -3
- package/dist/components/PasswordInput/PasswordInput.styled.js +5 -3
- package/dist/components/PasswordInput/PasswordVisibilityToggle.js +2 -8
- package/dist/components/RadioCard/RadioCard.d.ts +2 -1
- package/dist/components/RadioCard/RadioCard.js +7 -57
- package/dist/components/RadioCard/RadioCard.styles.d.ts +2901 -0
- package/dist/components/RadioCard/RadioCard.styles.js +97 -0
- package/dist/components/SelectField/Select.d.ts +5 -579
- package/dist/components/SelectField/Select.js +7 -107
- package/dist/components/SelectField/SelectField.d.ts +2 -2
- package/dist/components/SelectField/SelectField.js +2 -2
- package/dist/components/SelectField/styled.d.ts +4642 -0
- package/dist/components/SelectField/styled.js +118 -0
- package/dist/components/SkeletonText/SkeletonText.js +4 -4
- package/dist/components/Strong/Strong.d.ts +3 -0
- package/dist/components/SubLabelText/SubLabelText.d.ts +3 -0
- package/dist/components/Tabs/Tab.d.ts +3 -0
- package/dist/components/TextareaInput/TextareaInput.js +12 -6
- package/dist/components/Toggle/Toggle.d.ts +3 -1
- package/dist/components/Toggle/Toggle.js +4 -6
- package/dist/components/Toggle/styles.d.ts +13 -0
- package/dist/components/Toggle/styles.js +3 -3
- package/dist/components/index.d.ts +3 -0
- package/dist/components/index.js +3 -0
- package/dist/esm/components/ActionList/Action.js +26 -0
- package/dist/esm/components/ActionList/ActionList.js +12 -28
- package/dist/esm/components/ActionList/ActionListItems/DataListItem.js +17 -0
- package/dist/esm/components/ActionList/ActionListItems/EditableListItem.js +131 -0
- package/dist/esm/components/ActionList/ActionListItems/NavigationListItem.js +26 -0
- package/dist/esm/components/ActionList/ActionListItems/ProgressRing.js +29 -0
- package/dist/esm/components/ActionList/ActionListItems/ToggleListItem.js +9 -0
- package/dist/esm/components/ActionList/ActionListItems/styles.js +135 -0
- package/dist/esm/components/ActionList/components/ActionListHeading.js +7 -0
- package/dist/esm/components/ActionList/index.js +6 -1
- package/dist/esm/components/ActionList/styled.js +23 -8
- package/dist/esm/components/Button/Button.js +1 -1
- package/dist/esm/components/Card/Card.js +45 -23
- package/dist/esm/components/Card/Card.styles.js +8 -12
- package/dist/esm/components/Cards/BalanceCard/BalanceCard.styles.js +2 -2
- package/dist/esm/components/Cards/DisruptiveCard/DisruptiveCard.js +41 -0
- package/dist/esm/components/Cards/DisruptiveCard/DisruptiveCard.styles.js +5 -0
- package/dist/esm/components/Cards/DisruptiveCard/index.js +1 -0
- package/dist/esm/components/Cards/HeroImageCard/HeroImageCard.js +28 -0
- package/dist/esm/components/Cards/HeroImageCard/HeroImageCard.styles.js +21 -0
- package/dist/esm/components/Cards/HeroImageCard/index.js +1 -0
- package/dist/esm/components/Cards/IconTextCard/IconTextCard.js +5 -18
- package/dist/esm/components/Cards/IconTextCard/IconTextCard.styles.js +0 -5
- package/dist/esm/components/Cards/IllustrationTextCard/IllustrationTextCard.js +22 -0
- package/dist/esm/components/Cards/IllustrationTextCard/IllustrationTextCard.styles.js +28 -0
- package/dist/esm/components/Cards/IllustrationTextCard/index.js +1 -0
- package/dist/esm/components/Cards/LinkTextCard/LinkTextCard.js +7 -6
- package/dist/esm/components/Cards/LinkTextCard/LinkTextCard.styles.js +9 -6
- package/dist/esm/components/Cards/QuickLinkCard/QuickLinkCard.js +23 -0
- package/dist/esm/components/Cards/QuickLinkCard/QuickLinkCard.styles.js +25 -0
- package/dist/esm/components/Cards/QuickLinkCard/index.js +1 -0
- package/dist/esm/components/Cards/ServicesImageCard/ServicesImageCard.js +20 -0
- package/dist/esm/components/Cards/ServicesImageCard/ServicesImageCard.styles.js +32 -0
- package/dist/esm/components/Cards/ServicesImageCard/index.js +1 -0
- package/dist/esm/components/Cards/components.js +19 -0
- package/dist/esm/components/Cards/index.js +5 -0
- package/dist/esm/components/Cards/shared.styles.js +17 -1
- package/dist/esm/components/Cards/utils.js +11 -0
- package/dist/esm/components/Checkbox/Checkbox.js +2 -45
- package/dist/esm/components/Checkbox/styled.js +46 -0
- package/dist/esm/components/Checkbox/types.js +1 -0
- package/dist/esm/components/CurrencyInput/CurrencyInput.js +12 -5
- package/dist/esm/components/CurrencyInput/styled.js +33 -0
- package/dist/esm/components/Divider/Divider.js +3 -1
- package/dist/esm/components/EmailInput/EmailInput.js +18 -2
- package/dist/esm/components/EmptyState/EmptyState.js +13 -0
- package/dist/esm/components/EmptyState/EmptyState.test.js +90 -0
- package/dist/esm/components/EmptyState/index.js +1 -0
- package/dist/esm/components/EmptyState/styles.js +17 -0
- package/dist/esm/components/EmptyState/types.js +1 -0
- package/dist/esm/components/Field/Field.js +3 -2
- package/dist/esm/components/Input/Input.js +6 -64
- package/dist/esm/components/Input/styled.js +60 -0
- package/dist/esm/components/LargeValueReference/LargeValueReference.js +45 -0
- package/dist/esm/components/LargeValueReference/index.js +1 -0
- package/dist/esm/components/LargeValueReference/styles.js +23 -0
- package/dist/esm/components/PasswordInput/PasswordInput.styled.js +5 -3
- package/dist/esm/components/PasswordInput/PasswordVisibilityToggle.js +2 -8
- package/dist/esm/components/RadioCard/RadioCard.js +5 -52
- package/dist/esm/components/RadioCard/RadioCard.styles.js +61 -0
- package/dist/esm/components/SelectField/Select.js +7 -74
- package/dist/esm/components/SelectField/SelectField.js +3 -3
- package/dist/esm/components/SelectField/styled.js +82 -0
- package/dist/esm/components/SkeletonText/SkeletonText.js +4 -4
- package/dist/esm/components/TextareaInput/TextareaInput.js +12 -6
- package/dist/esm/components/Toggle/Toggle.js +4 -6
- package/dist/esm/components/Toggle/styles.js +3 -3
- package/dist/esm/components/index.js +3 -0
- package/dist/esm/hooks/use-font-scaling.js +32 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/test/utils.js +12 -0
- package/dist/esm/utils/utils.js +12 -1
- package/dist/hooks/use-font-scaling.d.ts +26 -0
- package/dist/hooks/use-font-scaling.js +35 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/styled.native.d.ts +18 -0
- package/dist/test/utils.d.ts +4 -0
- package/dist/test/utils.js +28 -0
- package/dist/utils/utils.d.ts +11 -1
- package/dist/utils/utils.js +12 -0
- package/package.json +4 -4
- package/dist/components/ErrorWrapper/styles.d.ts +0 -0
- package/dist/components/ErrorWrapper/styles.js +0 -1
- package/dist/esm/components/ErrorWrapper/styles.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { View } from 'react-native';
|
|
2
|
-
export declare const CardWithBalance: import("styled-components").StyledComponent<({ children, displayStyle, background, onPress, ...rest }: import("../../Card/Card").CardProps) => import("react/jsx-runtime").JSX.Element, {
|
|
2
|
+
export declare const CardWithBalance: import("styled-components").StyledComponent<({ children, displayStyle, background, onPress, onSelect, ...rest }: import("../../Card/Card").CardProps) => import("react/jsx-runtime").JSX.Element, {
|
|
3
3
|
color: {
|
|
4
4
|
neutral: {
|
|
5
5
|
"20": string;
|
|
@@ -38,6 +38,7 @@ export declare const CardWithBalance: import("styled-components").StyledComponen
|
|
|
38
38
|
"30": string;
|
|
39
39
|
"40": string;
|
|
40
40
|
"50": string;
|
|
41
|
+
"55": string;
|
|
41
42
|
"56": string;
|
|
42
43
|
"60": string;
|
|
43
44
|
"70": string;
|
|
@@ -80,6 +81,7 @@ export declare const CardWithBalance: import("styled-components").StyledComponen
|
|
|
80
81
|
onBrandVariant: string;
|
|
81
82
|
aiGradientFrom: string;
|
|
82
83
|
aiGradientTo: string;
|
|
84
|
+
accessible: string;
|
|
83
85
|
fixed: {
|
|
84
86
|
brand: string;
|
|
85
87
|
dark: string;
|
|
@@ -88,6 +90,7 @@ export declare const CardWithBalance: import("styled-components").StyledComponen
|
|
|
88
90
|
bright: string;
|
|
89
91
|
onBrand: string;
|
|
90
92
|
onBrandVariant: string;
|
|
93
|
+
accessible: string;
|
|
91
94
|
};
|
|
92
95
|
};
|
|
93
96
|
outline: {
|
|
@@ -615,6 +618,7 @@ export declare const CardWrapper: import("styled-components").StyledComponent<ty
|
|
|
615
618
|
"30": string;
|
|
616
619
|
"40": string;
|
|
617
620
|
"50": string;
|
|
621
|
+
"55": string;
|
|
618
622
|
"56": string;
|
|
619
623
|
"60": string;
|
|
620
624
|
"70": string;
|
|
@@ -657,6 +661,7 @@ export declare const CardWrapper: import("styled-components").StyledComponent<ty
|
|
|
657
661
|
onBrandVariant: string;
|
|
658
662
|
aiGradientFrom: string;
|
|
659
663
|
aiGradientTo: string;
|
|
664
|
+
accessible: string;
|
|
660
665
|
fixed: {
|
|
661
666
|
brand: string;
|
|
662
667
|
dark: string;
|
|
@@ -665,6 +670,7 @@ export declare const CardWrapper: import("styled-components").StyledComponent<ty
|
|
|
665
670
|
bright: string;
|
|
666
671
|
onBrand: string;
|
|
667
672
|
onBrandVariant: string;
|
|
673
|
+
accessible: string;
|
|
668
674
|
};
|
|
669
675
|
};
|
|
670
676
|
outline: {
|
|
@@ -1192,6 +1198,7 @@ export declare const ImageWrapper: import("styled-components").StyledComponent<t
|
|
|
1192
1198
|
"30": string;
|
|
1193
1199
|
"40": string;
|
|
1194
1200
|
"50": string;
|
|
1201
|
+
"55": string;
|
|
1195
1202
|
"56": string;
|
|
1196
1203
|
"60": string;
|
|
1197
1204
|
"70": string;
|
|
@@ -1234,6 +1241,7 @@ export declare const ImageWrapper: import("styled-components").StyledComponent<t
|
|
|
1234
1241
|
onBrandVariant: string;
|
|
1235
1242
|
aiGradientFrom: string;
|
|
1236
1243
|
aiGradientTo: string;
|
|
1244
|
+
accessible: string;
|
|
1237
1245
|
fixed: {
|
|
1238
1246
|
brand: string;
|
|
1239
1247
|
dark: string;
|
|
@@ -1242,6 +1250,7 @@ export declare const ImageWrapper: import("styled-components").StyledComponent<t
|
|
|
1242
1250
|
bright: string;
|
|
1243
1251
|
onBrand: string;
|
|
1244
1252
|
onBrandVariant: string;
|
|
1253
|
+
accessible: string;
|
|
1245
1254
|
};
|
|
1246
1255
|
};
|
|
1247
1256
|
outline: {
|
|
@@ -1769,6 +1778,7 @@ export declare const EyebrowContainer: import("styled-components").StyledCompone
|
|
|
1769
1778
|
"30": string;
|
|
1770
1779
|
"40": string;
|
|
1771
1780
|
"50": string;
|
|
1781
|
+
"55": string;
|
|
1772
1782
|
"56": string;
|
|
1773
1783
|
"60": string;
|
|
1774
1784
|
"70": string;
|
|
@@ -1811,6 +1821,7 @@ export declare const EyebrowContainer: import("styled-components").StyledCompone
|
|
|
1811
1821
|
onBrandVariant: string;
|
|
1812
1822
|
aiGradientFrom: string;
|
|
1813
1823
|
aiGradientTo: string;
|
|
1824
|
+
accessible: string;
|
|
1814
1825
|
fixed: {
|
|
1815
1826
|
brand: string;
|
|
1816
1827
|
dark: string;
|
|
@@ -1819,6 +1830,7 @@ export declare const EyebrowContainer: import("styled-components").StyledCompone
|
|
|
1819
1830
|
bright: string;
|
|
1820
1831
|
onBrand: string;
|
|
1821
1832
|
onBrandVariant: string;
|
|
1833
|
+
accessible: string;
|
|
1822
1834
|
};
|
|
1823
1835
|
};
|
|
1824
1836
|
outline: {
|
|
@@ -2344,6 +2356,7 @@ export declare const BalanceContainer: import("styled-components").StyledCompone
|
|
|
2344
2356
|
"30": string;
|
|
2345
2357
|
"40": string;
|
|
2346
2358
|
"50": string;
|
|
2359
|
+
"55": string;
|
|
2347
2360
|
"56": string;
|
|
2348
2361
|
"60": string;
|
|
2349
2362
|
"70": string;
|
|
@@ -2386,6 +2399,7 @@ export declare const BalanceContainer: import("styled-components").StyledCompone
|
|
|
2386
2399
|
onBrandVariant: string;
|
|
2387
2400
|
aiGradientFrom: string;
|
|
2388
2401
|
aiGradientTo: string;
|
|
2402
|
+
accessible: string;
|
|
2389
2403
|
fixed: {
|
|
2390
2404
|
brand: string;
|
|
2391
2405
|
dark: string;
|
|
@@ -2394,6 +2408,7 @@ export declare const BalanceContainer: import("styled-components").StyledCompone
|
|
|
2394
2408
|
bright: string;
|
|
2395
2409
|
onBrand: string;
|
|
2396
2410
|
onBrandVariant: string;
|
|
2411
|
+
accessible: string;
|
|
2397
2412
|
};
|
|
2398
2413
|
};
|
|
2399
2414
|
outline: {
|
|
@@ -2919,6 +2934,7 @@ export declare const BadgeContainer: import("styled-components").StyledComponent
|
|
|
2919
2934
|
"30": string;
|
|
2920
2935
|
"40": string;
|
|
2921
2936
|
"50": string;
|
|
2937
|
+
"55": string;
|
|
2922
2938
|
"56": string;
|
|
2923
2939
|
"60": string;
|
|
2924
2940
|
"70": string;
|
|
@@ -2961,6 +2977,7 @@ export declare const BadgeContainer: import("styled-components").StyledComponent
|
|
|
2961
2977
|
onBrandVariant: string;
|
|
2962
2978
|
aiGradientFrom: string;
|
|
2963
2979
|
aiGradientTo: string;
|
|
2980
|
+
accessible: string;
|
|
2964
2981
|
fixed: {
|
|
2965
2982
|
brand: string;
|
|
2966
2983
|
dark: string;
|
|
@@ -2969,6 +2986,7 @@ export declare const BadgeContainer: import("styled-components").StyledComponent
|
|
|
2969
2986
|
bright: string;
|
|
2970
2987
|
onBrand: string;
|
|
2971
2988
|
onBrandVariant: string;
|
|
2989
|
+
accessible: string;
|
|
2972
2990
|
};
|
|
2973
2991
|
};
|
|
2974
2992
|
outline: {
|
|
@@ -3498,6 +3516,7 @@ export declare const PayGText: import("styled-components").StyledComponent<(prop
|
|
|
3498
3516
|
"30": string;
|
|
3499
3517
|
"40": string;
|
|
3500
3518
|
"50": string;
|
|
3519
|
+
"55": string;
|
|
3501
3520
|
"56": string;
|
|
3502
3521
|
"60": string;
|
|
3503
3522
|
"70": string;
|
|
@@ -3540,6 +3559,7 @@ export declare const PayGText: import("styled-components").StyledComponent<(prop
|
|
|
3540
3559
|
onBrandVariant: string;
|
|
3541
3560
|
aiGradientFrom: string;
|
|
3542
3561
|
aiGradientTo: string;
|
|
3562
|
+
accessible: string;
|
|
3543
3563
|
fixed: {
|
|
3544
3564
|
brand: string;
|
|
3545
3565
|
dark: string;
|
|
@@ -3548,6 +3568,7 @@ export declare const PayGText: import("styled-components").StyledComponent<(prop
|
|
|
3548
3568
|
bright: string;
|
|
3549
3569
|
onBrand: string;
|
|
3550
3570
|
onBrandVariant: string;
|
|
3571
|
+
accessible: string;
|
|
3551
3572
|
};
|
|
3552
3573
|
};
|
|
3553
3574
|
outline: {
|
|
@@ -4077,6 +4098,7 @@ export declare const PayMText: import("styled-components").StyledComponent<(prop
|
|
|
4077
4098
|
"30": string;
|
|
4078
4099
|
"40": string;
|
|
4079
4100
|
"50": string;
|
|
4101
|
+
"55": string;
|
|
4080
4102
|
"56": string;
|
|
4081
4103
|
"60": string;
|
|
4082
4104
|
"70": string;
|
|
@@ -4119,6 +4141,7 @@ export declare const PayMText: import("styled-components").StyledComponent<(prop
|
|
|
4119
4141
|
onBrandVariant: string;
|
|
4120
4142
|
aiGradientFrom: string;
|
|
4121
4143
|
aiGradientTo: string;
|
|
4144
|
+
accessible: string;
|
|
4122
4145
|
fixed: {
|
|
4123
4146
|
brand: string;
|
|
4124
4147
|
dark: string;
|
|
@@ -4127,6 +4150,7 @@ export declare const PayMText: import("styled-components").StyledComponent<(prop
|
|
|
4127
4150
|
bright: string;
|
|
4128
4151
|
onBrand: string;
|
|
4129
4152
|
onBrandVariant: string;
|
|
4153
|
+
accessible: string;
|
|
4130
4154
|
};
|
|
4131
4155
|
};
|
|
4132
4156
|
outline: {
|
|
@@ -4652,6 +4676,7 @@ export declare const CtaBarContainer: import("styled-components").StyledComponen
|
|
|
4652
4676
|
"30": string;
|
|
4653
4677
|
"40": string;
|
|
4654
4678
|
"50": string;
|
|
4679
|
+
"55": string;
|
|
4655
4680
|
"56": string;
|
|
4656
4681
|
"60": string;
|
|
4657
4682
|
"70": string;
|
|
@@ -4694,6 +4719,7 @@ export declare const CtaBarContainer: import("styled-components").StyledComponen
|
|
|
4694
4719
|
onBrandVariant: string;
|
|
4695
4720
|
aiGradientFrom: string;
|
|
4696
4721
|
aiGradientTo: string;
|
|
4722
|
+
accessible: string;
|
|
4697
4723
|
fixed: {
|
|
4698
4724
|
brand: string;
|
|
4699
4725
|
dark: string;
|
|
@@ -4702,6 +4728,7 @@ export declare const CtaBarContainer: import("styled-components").StyledComponen
|
|
|
4702
4728
|
bright: string;
|
|
4703
4729
|
onBrand: string;
|
|
4704
4730
|
onBrandVariant: string;
|
|
4731
|
+
accessible: string;
|
|
4705
4732
|
};
|
|
4706
4733
|
};
|
|
4707
4734
|
outline: {
|
|
@@ -5227,6 +5254,7 @@ export declare const CtaBar: import("styled-components").StyledComponent<import(
|
|
|
5227
5254
|
"30": string;
|
|
5228
5255
|
"40": string;
|
|
5229
5256
|
"50": string;
|
|
5257
|
+
"55": string;
|
|
5230
5258
|
"56": string;
|
|
5231
5259
|
"60": string;
|
|
5232
5260
|
"70": string;
|
|
@@ -5269,6 +5297,7 @@ export declare const CtaBar: import("styled-components").StyledComponent<import(
|
|
|
5269
5297
|
onBrandVariant: string;
|
|
5270
5298
|
aiGradientFrom: string;
|
|
5271
5299
|
aiGradientTo: string;
|
|
5300
|
+
accessible: string;
|
|
5272
5301
|
fixed: {
|
|
5273
5302
|
brand: string;
|
|
5274
5303
|
dark: string;
|
|
@@ -5277,6 +5306,7 @@ export declare const CtaBar: import("styled-components").StyledComponent<import(
|
|
|
5277
5306
|
bright: string;
|
|
5278
5307
|
onBrand: string;
|
|
5279
5308
|
onBrandVariant: string;
|
|
5309
|
+
accessible: string;
|
|
5280
5310
|
};
|
|
5281
5311
|
};
|
|
5282
5312
|
outline: {
|
|
@@ -5804,6 +5834,7 @@ export declare const CreditContainer: import("styled-components").StyledComponen
|
|
|
5804
5834
|
"30": string;
|
|
5805
5835
|
"40": string;
|
|
5806
5836
|
"50": string;
|
|
5837
|
+
"55": string;
|
|
5807
5838
|
"56": string;
|
|
5808
5839
|
"60": string;
|
|
5809
5840
|
"70": string;
|
|
@@ -5846,6 +5877,7 @@ export declare const CreditContainer: import("styled-components").StyledComponen
|
|
|
5846
5877
|
onBrandVariant: string;
|
|
5847
5878
|
aiGradientFrom: string;
|
|
5848
5879
|
aiGradientTo: string;
|
|
5880
|
+
accessible: string;
|
|
5849
5881
|
fixed: {
|
|
5850
5882
|
brand: string;
|
|
5851
5883
|
dark: string;
|
|
@@ -5854,6 +5886,7 @@ export declare const CreditContainer: import("styled-components").StyledComponen
|
|
|
5854
5886
|
bright: string;
|
|
5855
5887
|
onBrand: string;
|
|
5856
5888
|
onBrandVariant: string;
|
|
5889
|
+
accessible: string;
|
|
5857
5890
|
};
|
|
5858
5891
|
};
|
|
5859
5892
|
outline: {
|
|
@@ -6456,6 +6489,7 @@ export declare const StyledDisplay4: import("styled-components").StyledComponent
|
|
|
6456
6489
|
"30": string;
|
|
6457
6490
|
"40": string;
|
|
6458
6491
|
"50": string;
|
|
6492
|
+
"55": string;
|
|
6459
6493
|
"56": string;
|
|
6460
6494
|
"60": string;
|
|
6461
6495
|
"70": string;
|
|
@@ -6498,6 +6532,7 @@ export declare const StyledDisplay4: import("styled-components").StyledComponent
|
|
|
6498
6532
|
onBrandVariant: string;
|
|
6499
6533
|
aiGradientFrom: string;
|
|
6500
6534
|
aiGradientTo: string;
|
|
6535
|
+
accessible: string;
|
|
6501
6536
|
fixed: {
|
|
6502
6537
|
brand: string;
|
|
6503
6538
|
dark: string;
|
|
@@ -6506,6 +6541,7 @@ export declare const StyledDisplay4: import("styled-components").StyledComponent
|
|
|
6506
6541
|
bright: string;
|
|
6507
6542
|
onBrand: string;
|
|
6508
6543
|
onBrandVariant: string;
|
|
6544
|
+
accessible: string;
|
|
6509
6545
|
};
|
|
6510
6546
|
};
|
|
6511
6547
|
outline: {
|
|
@@ -7035,6 +7071,7 @@ export declare const StyledHeading1: import("styled-components").StyledComponent
|
|
|
7035
7071
|
"30": string;
|
|
7036
7072
|
"40": string;
|
|
7037
7073
|
"50": string;
|
|
7074
|
+
"55": string;
|
|
7038
7075
|
"56": string;
|
|
7039
7076
|
"60": string;
|
|
7040
7077
|
"70": string;
|
|
@@ -7077,6 +7114,7 @@ export declare const StyledHeading1: import("styled-components").StyledComponent
|
|
|
7077
7114
|
onBrandVariant: string;
|
|
7078
7115
|
aiGradientFrom: string;
|
|
7079
7116
|
aiGradientTo: string;
|
|
7117
|
+
accessible: string;
|
|
7080
7118
|
fixed: {
|
|
7081
7119
|
brand: string;
|
|
7082
7120
|
dark: string;
|
|
@@ -7085,6 +7123,7 @@ export declare const StyledHeading1: import("styled-components").StyledComponent
|
|
|
7085
7123
|
bright: string;
|
|
7086
7124
|
onBrand: string;
|
|
7087
7125
|
onBrandVariant: string;
|
|
7126
|
+
accessible: string;
|
|
7088
7127
|
};
|
|
7089
7128
|
};
|
|
7090
7129
|
outline: {
|
|
@@ -7610,6 +7649,7 @@ export declare const ErrorContainer: import("styled-components").StyledComponent
|
|
|
7610
7649
|
"30": string;
|
|
7611
7650
|
"40": string;
|
|
7612
7651
|
"50": string;
|
|
7652
|
+
"55": string;
|
|
7613
7653
|
"56": string;
|
|
7614
7654
|
"60": string;
|
|
7615
7655
|
"70": string;
|
|
@@ -7652,6 +7692,7 @@ export declare const ErrorContainer: import("styled-components").StyledComponent
|
|
|
7652
7692
|
onBrandVariant: string;
|
|
7653
7693
|
aiGradientFrom: string;
|
|
7654
7694
|
aiGradientTo: string;
|
|
7695
|
+
accessible: string;
|
|
7655
7696
|
fixed: {
|
|
7656
7697
|
brand: string;
|
|
7657
7698
|
dark: string;
|
|
@@ -7660,6 +7701,7 @@ export declare const ErrorContainer: import("styled-components").StyledComponent
|
|
|
7660
7701
|
bright: string;
|
|
7661
7702
|
onBrand: string;
|
|
7662
7703
|
onBrandVariant: string;
|
|
7704
|
+
accessible: string;
|
|
7663
7705
|
};
|
|
7664
7706
|
};
|
|
7665
7707
|
outline: {
|
|
@@ -8185,6 +8227,7 @@ export declare const LoadingTextContainer: import("styled-components").StyledCom
|
|
|
8185
8227
|
"30": string;
|
|
8186
8228
|
"40": string;
|
|
8187
8229
|
"50": string;
|
|
8230
|
+
"55": string;
|
|
8188
8231
|
"56": string;
|
|
8189
8232
|
"60": string;
|
|
8190
8233
|
"70": string;
|
|
@@ -8227,6 +8270,7 @@ export declare const LoadingTextContainer: import("styled-components").StyledCom
|
|
|
8227
8270
|
onBrandVariant: string;
|
|
8228
8271
|
aiGradientFrom: string;
|
|
8229
8272
|
aiGradientTo: string;
|
|
8273
|
+
accessible: string;
|
|
8230
8274
|
fixed: {
|
|
8231
8275
|
brand: string;
|
|
8232
8276
|
dark: string;
|
|
@@ -8235,6 +8279,7 @@ export declare const LoadingTextContainer: import("styled-components").StyledCom
|
|
|
8235
8279
|
bright: string;
|
|
8236
8280
|
onBrand: string;
|
|
8237
8281
|
onBrandVariant: string;
|
|
8282
|
+
accessible: string;
|
|
8238
8283
|
};
|
|
8239
8284
|
};
|
|
8240
8285
|
outline: {
|
|
@@ -76,10 +76,10 @@ exports.CreditContainer = (0, styled_native_1.default)(react_native_1.View)(({ t
|
|
|
76
76
|
paddingBottom: theme.space[200],
|
|
77
77
|
}));
|
|
78
78
|
exports.StyledDisplay4 = (0, styled_native_1.default)(Display_1.Display4)(({ theme }) => ({
|
|
79
|
-
lineHeight: theme.font.lineHeight.d3.mediaQuery.sm
|
|
79
|
+
lineHeight: `${theme.font.lineHeight.d3.mediaQuery.sm}px`,
|
|
80
80
|
}));
|
|
81
81
|
exports.StyledHeading1 = (0, styled_native_1.default)(Heading_1.Heading1)(({ theme }) => ({
|
|
82
|
-
lineHeight: theme.font.lineHeight.d4.mediaQuery.sm
|
|
82
|
+
lineHeight: `${theme.font.lineHeight.d4.mediaQuery.sm}px`,
|
|
83
83
|
}));
|
|
84
84
|
exports.ErrorContainer = (0, styled_native_1.default)(react_native_1.View)(({ theme }) => ({
|
|
85
85
|
flexDirection: 'column',
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IconNameExtended } from '../../../providers';
|
|
2
|
+
export type CardVariant = 'success' | 'info' | 'warning';
|
|
3
|
+
type BaseProps = {
|
|
4
|
+
heading: string;
|
|
5
|
+
size?: 'default' | 'small';
|
|
6
|
+
};
|
|
7
|
+
type DisruptiveCardProps = BaseProps & {
|
|
8
|
+
variant?: CardVariant;
|
|
9
|
+
subHeading?: string;
|
|
10
|
+
icon?: IconNameExtended;
|
|
11
|
+
};
|
|
12
|
+
export declare const DisruptiveCard: React.FC<DisruptiveCardProps>;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DisruptiveCard = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const react_1 = require("react");
|
|
6
|
+
const __1 = require("../..");
|
|
7
|
+
const styled_native_1 = require("../../../styled.native");
|
|
8
|
+
const utils_1 = require("../utils");
|
|
9
|
+
const DisruptiveCard_styles_1 = require("./DisruptiveCard.styles");
|
|
10
|
+
const CARD_ICONS = {
|
|
11
|
+
success: 'check-circle',
|
|
12
|
+
info: 'info',
|
|
13
|
+
warning: 'info',
|
|
14
|
+
};
|
|
15
|
+
const getVariantStyles = (variant, theme) => {
|
|
16
|
+
switch (variant) {
|
|
17
|
+
case 'success':
|
|
18
|
+
return {
|
|
19
|
+
iconTextColor: theme.color.alert.success,
|
|
20
|
+
background: theme.color.brand.bright,
|
|
21
|
+
};
|
|
22
|
+
case 'info':
|
|
23
|
+
return {
|
|
24
|
+
iconTextColor: theme.color.alert.info,
|
|
25
|
+
background: theme.color.alert.infoTint,
|
|
26
|
+
};
|
|
27
|
+
case 'warning':
|
|
28
|
+
default:
|
|
29
|
+
return {
|
|
30
|
+
iconTextColor: theme.color.alert.warning,
|
|
31
|
+
background: theme.color.alert.warningTint,
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
const DisruptiveHeading = ({ heading, size = 'default', color, }) => {
|
|
36
|
+
const HeadingComponent = (0, utils_1.checkIsSmall)(size) ? __1.Heading3 : __1.Heading2;
|
|
37
|
+
const headingStyle = (0, react_1.useMemo)(() => ({ color }), [color]);
|
|
38
|
+
return (0, jsx_runtime_1.jsx)(HeadingComponent, { style: headingStyle, children: heading });
|
|
39
|
+
};
|
|
40
|
+
const DisruptiveCard = ({ variant = 'success', icon, heading, subHeading, size = 'default', }) => {
|
|
41
|
+
const theme = (0, styled_native_1.useTheme)();
|
|
42
|
+
const { iconTextColor, background } = getVariantStyles(variant, theme);
|
|
43
|
+
return ((0, jsx_runtime_1.jsx)(DisruptiveCard_styles_1.CardDisruptive, { background: background, isSmall: true, children: (0, jsx_runtime_1.jsxs)(__1.Stack, { spaceBetween: 1, children: [(0, jsx_runtime_1.jsx)(__1.Icon, { name: icon !== null && icon !== void 0 ? icon : CARD_ICONS[variant], size: 32, color: iconTextColor }), (0, jsx_runtime_1.jsx)(DisruptiveHeading, { color: iconTextColor, heading: heading, size: size }), subHeading && !(0, utils_1.checkIsSmall)(size) && ((0, jsx_runtime_1.jsx)(__1.P, { style: { color: iconTextColor }, children: subHeading }))] }) }));
|
|
44
|
+
};
|
|
45
|
+
exports.DisruptiveCard = DisruptiveCard;
|