@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
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.CardImage = exports.ImageContent = exports.HeadingContainer = exports.TextContent = exports.CardWithIllustrationText = void 0;
|
|
7
|
+
const react_native_1 = require("react-native");
|
|
8
|
+
const styled_native_1 = __importDefault(require("../../../styled.native"));
|
|
9
|
+
const shared_styles_1 = require("../shared.styles");
|
|
10
|
+
exports.CardWithIllustrationText = (0, styled_native_1.default)(shared_styles_1.CardWithMinHeight)(({ theme, isSmall, hasBadge }) => ({
|
|
11
|
+
paddingTop: hasBadge ? theme.space[800] : theme.space[400],
|
|
12
|
+
display: 'flex',
|
|
13
|
+
flexDirection: isSmall ? 'column-reverse' : 'row',
|
|
14
|
+
}));
|
|
15
|
+
exports.TextContent = (0, styled_native_1.default)(react_native_1.View)(({ isSmall, theme }) => ({
|
|
16
|
+
flex: isSmall ? undefined : 1,
|
|
17
|
+
paddingRight: isSmall ? 0 : theme.space[100],
|
|
18
|
+
alignSelf: isSmall ? undefined : 'flex-end',
|
|
19
|
+
}));
|
|
20
|
+
exports.HeadingContainer = (0, styled_native_1.default)(react_native_1.View)(({ theme, isSmall }) => ({
|
|
21
|
+
marginBottom: isSmall ? 0 : theme.space[200],
|
|
22
|
+
}));
|
|
23
|
+
exports.ImageContent = (0, styled_native_1.default)(react_native_1.View)(({ theme, isSmall, hasBadge }) => ({
|
|
24
|
+
width: isSmall ? theme.space[1600] : theme.space[3000],
|
|
25
|
+
height: isSmall ? theme.space[1600] : theme.space[3000],
|
|
26
|
+
justifyContent: 'center',
|
|
27
|
+
alignItems: 'center',
|
|
28
|
+
alignSelf: isSmall ? undefined : 'center',
|
|
29
|
+
marginTop: hasBadge && !isSmall ? -theme.space[400] : 0,
|
|
30
|
+
}));
|
|
31
|
+
exports.CardImage = (0, styled_native_1.default)(react_native_1.Image)({
|
|
32
|
+
width: '100%',
|
|
33
|
+
height: '100%',
|
|
34
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './IllustrationTextCard';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./IllustrationTextCard"), exports);
|
|
@@ -2,11 +2,11 @@ import React from 'react';
|
|
|
2
2
|
import { ImageSourcePropType } from 'react-native';
|
|
3
3
|
type Props = {
|
|
4
4
|
image?: ImageSourcePropType;
|
|
5
|
-
|
|
5
|
+
badgeText?: string;
|
|
6
6
|
heading: string;
|
|
7
7
|
subHeading?: string;
|
|
8
8
|
size?: 'default' | 'small';
|
|
9
|
-
onPress
|
|
9
|
+
onPress: () => void;
|
|
10
10
|
};
|
|
11
11
|
export declare const LinkTextCard: React.FC<Props>;
|
|
12
12
|
export {};
|
|
@@ -3,13 +3,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.LinkTextCard = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const react_native_1 = require("react-native");
|
|
6
|
-
const
|
|
7
|
-
const
|
|
6
|
+
const P_1 = require("../../P");
|
|
7
|
+
const Strong_1 = require("../../Strong");
|
|
8
|
+
const components_1 = require("../components");
|
|
8
9
|
const utils_1 = require("../utils");
|
|
9
10
|
const LinkTextCard_styles_1 = require("./LinkTextCard.styles");
|
|
10
|
-
const LinkTextCard = ({ image,
|
|
11
|
-
const hasBadge = !!
|
|
12
|
-
const CardContent = ((0, jsx_runtime_1.jsxs)(LinkTextCard_styles_1.CardWithLinkText, { isSmall: (0, utils_1.checkIsSmall)(size), hasBadge: hasBadge, onPress: onPress, children: [(0, jsx_runtime_1.jsxs)(LinkTextCard_styles_1.TextContent, { isSmall: (0, utils_1.checkIsSmall)(size), children: [(0, jsx_runtime_1.jsx)(react_native_1.View, { children: (0, jsx_runtime_1.jsx)(LinkTextCard_styles_1.Heading, { isSmall: (0, utils_1.checkIsSmall)(size), children: (0, jsx_runtime_1.jsx)(
|
|
11
|
+
const LinkTextCard = ({ image, badgeText, heading, subHeading, size, onPress, }) => {
|
|
12
|
+
const hasBadge = !!badgeText;
|
|
13
|
+
const CardContent = ((0, jsx_runtime_1.jsxs)(LinkTextCard_styles_1.CardWithLinkText, { isSmall: (0, utils_1.checkIsSmall)(size), hasBadge: hasBadge, onPress: onPress, children: [(0, jsx_runtime_1.jsxs)(LinkTextCard_styles_1.TextContent, { isSmall: (0, utils_1.checkIsSmall)(size), children: [(0, jsx_runtime_1.jsx)(react_native_1.View, { children: (0, jsx_runtime_1.jsx)(LinkTextCard_styles_1.Heading, { isSmall: (0, utils_1.checkIsSmall)(size), children: (0, jsx_runtime_1.jsx)(Strong_1.Strong, { children: heading }) }) }), !(0, utils_1.checkIsSmall)(size) && !!subHeading && ((0, jsx_runtime_1.jsx)(react_native_1.View, { children: (0, jsx_runtime_1.jsx)(P_1.P, { children: subHeading }) }))] }), (0, jsx_runtime_1.jsx)(LinkTextCard_styles_1.ImageContent, { isSmall: (0, utils_1.checkIsSmall)(size), hasBadge: hasBadge, children: (0, jsx_runtime_1.jsx)(LinkTextCard_styles_1.CardImage, { source: image
|
|
13
14
|
? image
|
|
14
15
|
: {
|
|
15
16
|
uri: 'https://www.ovobyus.com/transform/eed55bf8-f059-4acb-a043-2d0a6d12537f/homepage-supporting-house-image',
|
|
@@ -17,6 +18,6 @@ const LinkTextCard = ({ image, badge, heading, subHeading, size, onPress, }) =>
|
|
|
17
18
|
if (!hasBadge) {
|
|
18
19
|
return CardContent;
|
|
19
20
|
}
|
|
20
|
-
return ((0, jsx_runtime_1.
|
|
21
|
+
return ((0, jsx_runtime_1.jsx)(components_1.ContainerWithCardBadge, { badgeText: badgeText, children: CardContent }));
|
|
21
22
|
};
|
|
22
23
|
exports.LinkTextCard = LinkTextCard;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Image, View } from 'react-native';
|
|
2
|
-
export declare const CardWithLinkText: import("styled-components").StyledComponent<({ children, displayStyle, background, onPress, ...rest }: import("../../Card/Card").CardProps) => import("react/jsx-runtime").JSX.Element, {
|
|
2
|
+
export declare const CardWithLinkText: 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 CardWithLinkText: import("styled-components").StyledCompone
|
|
|
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 CardWithLinkText: import("styled-components").StyledCompone
|
|
|
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 CardWithLinkText: import("styled-components").StyledCompone
|
|
|
88
90
|
bright: string;
|
|
89
91
|
onBrand: string;
|
|
90
92
|
onBrandVariant: string;
|
|
93
|
+
accessible: string;
|
|
91
94
|
};
|
|
92
95
|
};
|
|
93
96
|
outline: {
|
|
@@ -616,6 +619,7 @@ export declare const TextContent: import("styled-components").StyledComponent<ty
|
|
|
616
619
|
"30": string;
|
|
617
620
|
"40": string;
|
|
618
621
|
"50": string;
|
|
622
|
+
"55": string;
|
|
619
623
|
"56": string;
|
|
620
624
|
"60": string;
|
|
621
625
|
"70": string;
|
|
@@ -658,6 +662,7 @@ export declare const TextContent: import("styled-components").StyledComponent<ty
|
|
|
658
662
|
onBrandVariant: string;
|
|
659
663
|
aiGradientFrom: string;
|
|
660
664
|
aiGradientTo: string;
|
|
665
|
+
accessible: string;
|
|
661
666
|
fixed: {
|
|
662
667
|
brand: string;
|
|
663
668
|
dark: string;
|
|
@@ -666,6 +671,7 @@ export declare const TextContent: import("styled-components").StyledComponent<ty
|
|
|
666
671
|
bright: string;
|
|
667
672
|
onBrand: string;
|
|
668
673
|
onBrandVariant: string;
|
|
674
|
+
accessible: string;
|
|
669
675
|
};
|
|
670
676
|
};
|
|
671
677
|
outline: {
|
|
@@ -1193,6 +1199,7 @@ export declare const ImageContent: import("styled-components").StyledComponent<t
|
|
|
1193
1199
|
"30": string;
|
|
1194
1200
|
"40": string;
|
|
1195
1201
|
"50": string;
|
|
1202
|
+
"55": string;
|
|
1196
1203
|
"56": string;
|
|
1197
1204
|
"60": string;
|
|
1198
1205
|
"70": string;
|
|
@@ -1235,6 +1242,7 @@ export declare const ImageContent: import("styled-components").StyledComponent<t
|
|
|
1235
1242
|
onBrandVariant: string;
|
|
1236
1243
|
aiGradientFrom: string;
|
|
1237
1244
|
aiGradientTo: string;
|
|
1245
|
+
accessible: string;
|
|
1238
1246
|
fixed: {
|
|
1239
1247
|
brand: string;
|
|
1240
1248
|
dark: string;
|
|
@@ -1243,6 +1251,7 @@ export declare const ImageContent: import("styled-components").StyledComponent<t
|
|
|
1243
1251
|
bright: string;
|
|
1244
1252
|
onBrand: string;
|
|
1245
1253
|
onBrandVariant: string;
|
|
1254
|
+
accessible: string;
|
|
1246
1255
|
};
|
|
1247
1256
|
};
|
|
1248
1257
|
outline: {
|
|
@@ -1728,7 +1737,10 @@ export declare const ImageContent: import("styled-components").StyledComponent<t
|
|
|
1728
1737
|
selectedTint: string;
|
|
1729
1738
|
};
|
|
1730
1739
|
};
|
|
1731
|
-
}, {
|
|
1740
|
+
}, {
|
|
1741
|
+
isSmall?: boolean;
|
|
1742
|
+
hasBadge?: boolean;
|
|
1743
|
+
}, never>;
|
|
1732
1744
|
export declare const CardImage: import("styled-components").StyledComponent<typeof Image, {
|
|
1733
1745
|
color: {
|
|
1734
1746
|
neutral: {
|
|
@@ -1768,6 +1780,7 @@ export declare const CardImage: import("styled-components").StyledComponent<type
|
|
|
1768
1780
|
"30": string;
|
|
1769
1781
|
"40": string;
|
|
1770
1782
|
"50": string;
|
|
1783
|
+
"55": string;
|
|
1771
1784
|
"56": string;
|
|
1772
1785
|
"60": string;
|
|
1773
1786
|
"70": string;
|
|
@@ -1810,6 +1823,7 @@ export declare const CardImage: import("styled-components").StyledComponent<type
|
|
|
1810
1823
|
onBrandVariant: string;
|
|
1811
1824
|
aiGradientFrom: string;
|
|
1812
1825
|
aiGradientTo: string;
|
|
1826
|
+
accessible: string;
|
|
1813
1827
|
fixed: {
|
|
1814
1828
|
brand: string;
|
|
1815
1829
|
dark: string;
|
|
@@ -1818,6 +1832,7 @@ export declare const CardImage: import("styled-components").StyledComponent<type
|
|
|
1818
1832
|
bright: string;
|
|
1819
1833
|
onBrand: string;
|
|
1820
1834
|
onBrandVariant: string;
|
|
1835
|
+
accessible: string;
|
|
1821
1836
|
};
|
|
1822
1837
|
};
|
|
1823
1838
|
outline: {
|
|
@@ -2347,6 +2362,7 @@ export declare const Heading: import("styled-components").StyledComponent<(props
|
|
|
2347
2362
|
"30": string;
|
|
2348
2363
|
"40": string;
|
|
2349
2364
|
"50": string;
|
|
2365
|
+
"55": string;
|
|
2350
2366
|
"56": string;
|
|
2351
2367
|
"60": string;
|
|
2352
2368
|
"70": string;
|
|
@@ -2389,6 +2405,7 @@ export declare const Heading: import("styled-components").StyledComponent<(props
|
|
|
2389
2405
|
onBrandVariant: string;
|
|
2390
2406
|
aiGradientFrom: string;
|
|
2391
2407
|
aiGradientTo: string;
|
|
2408
|
+
accessible: string;
|
|
2392
2409
|
fixed: {
|
|
2393
2410
|
brand: string;
|
|
2394
2411
|
dark: string;
|
|
@@ -2397,6 +2414,7 @@ export declare const Heading: import("styled-components").StyledComponent<(props
|
|
|
2397
2414
|
bright: string;
|
|
2398
2415
|
onBrand: string;
|
|
2399
2416
|
onBrandVariant: string;
|
|
2417
|
+
accessible: string;
|
|
2400
2418
|
};
|
|
2401
2419
|
};
|
|
2402
2420
|
outline: {
|
|
@@ -13,16 +13,19 @@ exports.CardWithLinkText = (0, styled_native_1.default)(Card_1.Card)(({ theme, i
|
|
|
13
13
|
display: 'flex',
|
|
14
14
|
flexDirection: isSmall ? 'column-reverse' : 'row',
|
|
15
15
|
}));
|
|
16
|
-
exports.TextContent = (0, styled_native_1.default)(react_native_1.View)(({ isSmall }) => ({
|
|
16
|
+
exports.TextContent = (0, styled_native_1.default)(react_native_1.View)(({ isSmall, theme }) => ({
|
|
17
17
|
flex: isSmall ? undefined : 1,
|
|
18
|
-
paddingRight: isSmall ? 0 :
|
|
18
|
+
paddingRight: isSmall ? 0 : theme.space[100],
|
|
19
|
+
alignSelf: isSmall ? undefined : 'flex-end',
|
|
19
20
|
}));
|
|
20
|
-
exports.ImageContent = (0, styled_native_1.default)(react_native_1.View)({
|
|
21
|
-
width:
|
|
22
|
-
height:
|
|
21
|
+
exports.ImageContent = (0, styled_native_1.default)(react_native_1.View)(({ theme, isSmall, hasBadge }) => ({
|
|
22
|
+
width: isSmall ? theme.space[1600] : theme.space[2000],
|
|
23
|
+
height: isSmall ? theme.space[1600] : theme.space[2000],
|
|
23
24
|
justifyContent: 'center',
|
|
24
25
|
alignItems: 'center',
|
|
25
|
-
|
|
26
|
+
alignSelf: isSmall ? undefined : 'center',
|
|
27
|
+
marginTop: hasBadge && !isSmall ? -theme.space[400] : 0,
|
|
28
|
+
}));
|
|
26
29
|
exports.CardImage = (0, styled_native_1.default)(react_native_1.Image)({
|
|
27
30
|
width: '100%',
|
|
28
31
|
height: '100%',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { View } from 'react-native';
|
|
2
|
-
export declare const CardWithProgressBar: import("styled-components").StyledComponent<({ children, displayStyle, background, onPress, ...rest }: import("../../Card/Card").CardProps) => import("react/jsx-runtime").JSX.Element, {
|
|
2
|
+
export declare const CardWithProgressBar: 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 CardWithProgressBar: import("styled-components").StyledComp
|
|
|
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 CardWithProgressBar: import("styled-components").StyledComp
|
|
|
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 CardWithProgressBar: import("styled-components").StyledComp
|
|
|
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 MarkerContainer: import("styled-components").StyledComponen
|
|
|
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 MarkerContainer: import("styled-components").StyledComponen
|
|
|
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 MarkerContainer: import("styled-components").StyledComponen
|
|
|
665
670
|
bright: string;
|
|
666
671
|
onBrand: string;
|
|
667
672
|
onBrandVariant: string;
|
|
673
|
+
accessible: string;
|
|
668
674
|
};
|
|
669
675
|
};
|
|
670
676
|
outline: {
|
|
@@ -1190,6 +1196,7 @@ export declare const ValueWrapper: import("styled-components").StyledComponent<t
|
|
|
1190
1196
|
"30": string;
|
|
1191
1197
|
"40": string;
|
|
1192
1198
|
"50": string;
|
|
1199
|
+
"55": string;
|
|
1193
1200
|
"56": string;
|
|
1194
1201
|
"60": string;
|
|
1195
1202
|
"70": string;
|
|
@@ -1232,6 +1239,7 @@ export declare const ValueWrapper: import("styled-components").StyledComponent<t
|
|
|
1232
1239
|
onBrandVariant: string;
|
|
1233
1240
|
aiGradientFrom: string;
|
|
1234
1241
|
aiGradientTo: string;
|
|
1242
|
+
accessible: string;
|
|
1235
1243
|
fixed: {
|
|
1236
1244
|
brand: string;
|
|
1237
1245
|
dark: string;
|
|
@@ -1240,6 +1248,7 @@ export declare const ValueWrapper: import("styled-components").StyledComponent<t
|
|
|
1240
1248
|
bright: string;
|
|
1241
1249
|
onBrand: string;
|
|
1242
1250
|
onBrandVariant: string;
|
|
1251
|
+
accessible: string;
|
|
1243
1252
|
};
|
|
1244
1253
|
};
|
|
1245
1254
|
outline: {
|
|
@@ -1768,6 +1777,7 @@ export declare const ValueTextContainer: import("styled-components").StyledCompo
|
|
|
1768
1777
|
"30": string;
|
|
1769
1778
|
"40": string;
|
|
1770
1779
|
"50": string;
|
|
1780
|
+
"55": string;
|
|
1771
1781
|
"56": string;
|
|
1772
1782
|
"60": string;
|
|
1773
1783
|
"70": string;
|
|
@@ -1810,6 +1820,7 @@ export declare const ValueTextContainer: import("styled-components").StyledCompo
|
|
|
1810
1820
|
onBrandVariant: string;
|
|
1811
1821
|
aiGradientFrom: string;
|
|
1812
1822
|
aiGradientTo: string;
|
|
1823
|
+
accessible: string;
|
|
1813
1824
|
fixed: {
|
|
1814
1825
|
brand: string;
|
|
1815
1826
|
dark: string;
|
|
@@ -1818,6 +1829,7 @@ export declare const ValueTextContainer: import("styled-components").StyledCompo
|
|
|
1818
1829
|
bright: string;
|
|
1819
1830
|
onBrand: string;
|
|
1820
1831
|
onBrandVariant: string;
|
|
1832
|
+
accessible: string;
|
|
1821
1833
|
};
|
|
1822
1834
|
};
|
|
1823
1835
|
outline: {
|
|
@@ -2343,6 +2355,7 @@ export declare const ProgressBarWrapper: import("styled-components").StyledCompo
|
|
|
2343
2355
|
"30": string;
|
|
2344
2356
|
"40": string;
|
|
2345
2357
|
"50": string;
|
|
2358
|
+
"55": string;
|
|
2346
2359
|
"56": string;
|
|
2347
2360
|
"60": string;
|
|
2348
2361
|
"70": string;
|
|
@@ -2385,6 +2398,7 @@ export declare const ProgressBarWrapper: import("styled-components").StyledCompo
|
|
|
2385
2398
|
onBrandVariant: string;
|
|
2386
2399
|
aiGradientFrom: string;
|
|
2387
2400
|
aiGradientTo: string;
|
|
2401
|
+
accessible: string;
|
|
2388
2402
|
fixed: {
|
|
2389
2403
|
brand: string;
|
|
2390
2404
|
dark: string;
|
|
@@ -2393,6 +2407,7 @@ export declare const ProgressBarWrapper: import("styled-components").StyledCompo
|
|
|
2393
2407
|
bright: string;
|
|
2394
2408
|
onBrand: string;
|
|
2395
2409
|
onBrandVariant: string;
|
|
2410
|
+
accessible: string;
|
|
2396
2411
|
};
|
|
2397
2412
|
};
|
|
2398
2413
|
outline: {
|
|
@@ -2918,6 +2933,7 @@ export declare const ProgressBarContainer: import("styled-components").StyledCom
|
|
|
2918
2933
|
"30": string;
|
|
2919
2934
|
"40": string;
|
|
2920
2935
|
"50": string;
|
|
2936
|
+
"55": string;
|
|
2921
2937
|
"56": string;
|
|
2922
2938
|
"60": string;
|
|
2923
2939
|
"70": string;
|
|
@@ -2960,6 +2976,7 @@ export declare const ProgressBarContainer: import("styled-components").StyledCom
|
|
|
2960
2976
|
onBrandVariant: string;
|
|
2961
2977
|
aiGradientFrom: string;
|
|
2962
2978
|
aiGradientTo: string;
|
|
2979
|
+
accessible: string;
|
|
2963
2980
|
fixed: {
|
|
2964
2981
|
brand: string;
|
|
2965
2982
|
dark: string;
|
|
@@ -2968,6 +2985,7 @@ export declare const ProgressBarContainer: import("styled-components").StyledCom
|
|
|
2968
2985
|
bright: string;
|
|
2969
2986
|
onBrand: string;
|
|
2970
2987
|
onBrandVariant: string;
|
|
2988
|
+
accessible: string;
|
|
2971
2989
|
};
|
|
2972
2990
|
};
|
|
2973
2991
|
outline: {
|
|
@@ -3493,6 +3511,7 @@ export declare const EPCBarMarkerLayer: import("styled-components").StyledCompon
|
|
|
3493
3511
|
"30": string;
|
|
3494
3512
|
"40": string;
|
|
3495
3513
|
"50": string;
|
|
3514
|
+
"55": string;
|
|
3496
3515
|
"56": string;
|
|
3497
3516
|
"60": string;
|
|
3498
3517
|
"70": string;
|
|
@@ -3535,6 +3554,7 @@ export declare const EPCBarMarkerLayer: import("styled-components").StyledCompon
|
|
|
3535
3554
|
onBrandVariant: string;
|
|
3536
3555
|
aiGradientFrom: string;
|
|
3537
3556
|
aiGradientTo: string;
|
|
3557
|
+
accessible: string;
|
|
3538
3558
|
fixed: {
|
|
3539
3559
|
brand: string;
|
|
3540
3560
|
dark: string;
|
|
@@ -3543,6 +3563,7 @@ export declare const EPCBarMarkerLayer: import("styled-components").StyledCompon
|
|
|
3543
3563
|
bright: string;
|
|
3544
3564
|
onBrand: string;
|
|
3545
3565
|
onBrandVariant: string;
|
|
3566
|
+
accessible: string;
|
|
3546
3567
|
};
|
|
3547
3568
|
};
|
|
3548
3569
|
outline: {
|
|
@@ -4068,6 +4089,7 @@ export declare const EPCBarSegment: import("styled-components").StyledComponent<
|
|
|
4068
4089
|
"30": string;
|
|
4069
4090
|
"40": string;
|
|
4070
4091
|
"50": string;
|
|
4092
|
+
"55": string;
|
|
4071
4093
|
"56": string;
|
|
4072
4094
|
"60": string;
|
|
4073
4095
|
"70": string;
|
|
@@ -4110,6 +4132,7 @@ export declare const EPCBarSegment: import("styled-components").StyledComponent<
|
|
|
4110
4132
|
onBrandVariant: string;
|
|
4111
4133
|
aiGradientFrom: string;
|
|
4112
4134
|
aiGradientTo: string;
|
|
4135
|
+
accessible: string;
|
|
4113
4136
|
fixed: {
|
|
4114
4137
|
brand: string;
|
|
4115
4138
|
dark: string;
|
|
@@ -4118,6 +4141,7 @@ export declare const EPCBarSegment: import("styled-components").StyledComponent<
|
|
|
4118
4141
|
bright: string;
|
|
4119
4142
|
onBrand: string;
|
|
4120
4143
|
onBrandVariant: string;
|
|
4144
|
+
accessible: string;
|
|
4121
4145
|
};
|
|
4122
4146
|
};
|
|
4123
4147
|
outline: {
|
|
@@ -4643,6 +4667,7 @@ export declare const ValueBarRemainder: import("styled-components").StyledCompon
|
|
|
4643
4667
|
"30": string;
|
|
4644
4668
|
"40": string;
|
|
4645
4669
|
"50": string;
|
|
4670
|
+
"55": string;
|
|
4646
4671
|
"56": string;
|
|
4647
4672
|
"60": string;
|
|
4648
4673
|
"70": string;
|
|
@@ -4685,6 +4710,7 @@ export declare const ValueBarRemainder: import("styled-components").StyledCompon
|
|
|
4685
4710
|
onBrandVariant: string;
|
|
4686
4711
|
aiGradientFrom: string;
|
|
4687
4712
|
aiGradientTo: string;
|
|
4713
|
+
accessible: string;
|
|
4688
4714
|
fixed: {
|
|
4689
4715
|
brand: string;
|
|
4690
4716
|
dark: string;
|
|
@@ -4693,6 +4719,7 @@ export declare const ValueBarRemainder: import("styled-components").StyledCompon
|
|
|
4693
4719
|
bright: string;
|
|
4694
4720
|
onBrand: string;
|
|
4695
4721
|
onBrandVariant: string;
|
|
4722
|
+
accessible: string;
|
|
4696
4723
|
};
|
|
4697
4724
|
};
|
|
4698
4725
|
outline: {
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ImageSourcePropType } from 'react-native';
|
|
2
|
+
import { CardProps } from '../../Card/Card';
|
|
3
|
+
type SizeProp = 'default' | 'small';
|
|
4
|
+
type Props = CardProps & {
|
|
5
|
+
heading: string;
|
|
6
|
+
illustration?: ImageSourcePropType | string;
|
|
7
|
+
onPress: () => void;
|
|
8
|
+
size?: SizeProp;
|
|
9
|
+
loading?: boolean;
|
|
10
|
+
};
|
|
11
|
+
export declare const QuickLinkCard: React.FC<Props>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.QuickLinkCard = void 0;
|
|
15
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
16
|
+
const react_native_1 = require("react-native");
|
|
17
|
+
const __1 = require("../..");
|
|
18
|
+
const utils_1 = require("../utils");
|
|
19
|
+
const QuickLinkCard_styles_1 = require("./QuickLinkCard.styles");
|
|
20
|
+
const QuickLinkCard = (_a) => {
|
|
21
|
+
var { heading, illustration, onPress, size = 'default', loading = false } = _a, rest = __rest(_a, ["heading", "illustration", "onPress", "size", "loading"]);
|
|
22
|
+
const showContent = !loading;
|
|
23
|
+
return ((0, jsx_runtime_1.jsxs)(QuickLinkCard_styles_1.CardWithQuickLink, Object.assign({ onPress: onPress }, rest, { children: [(0, jsx_runtime_1.jsxs)(react_native_1.View, { children: [loading && (0, jsx_runtime_1.jsx)(__1.SkeletonText, { lines: 2 }), showContent && ((0, jsx_runtime_1.jsx)(QuickLinkCard_styles_1.HeadingText, { children: (0, jsx_runtime_1.jsx)(__1.Strong, { children: heading }) }))] }), loading && ((0, jsx_runtime_1.jsx)(QuickLinkCard_styles_1.ImageSkeletonContainer, { children: (0, jsx_runtime_1.jsx)(__1.SkeletonCircle, {}) })), showContent && illustration && ((0, jsx_runtime_1.jsx)(QuickLinkCard_styles_1.ImageContent, { children: (0, jsx_runtime_1.jsx)(QuickLinkCard_styles_1.Illustration, { isSmall: (0, utils_1.checkIsSmall)(size), source: typeof illustration === 'string'
|
|
24
|
+
? { uri: illustration }
|
|
25
|
+
: illustration, resizeMode: "contain" }) }))] })));
|
|
26
|
+
};
|
|
27
|
+
exports.QuickLinkCard = QuickLinkCard;
|