@draftbit/core 46.10.2-9a00ea.2 → 46.10.2-a6ec8c.2
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/components/BottomSheet/BottomSheetComponent.js +127 -111
- package/lib/commonjs/components/Checkbox/context.js +1 -1
- package/lib/commonjs/components/DeprecatedFAB.js +21 -3
- package/lib/commonjs/components/TabView/TabView.js +13 -7
- package/lib/commonjs/index.js +0 -21
- package/lib/commonjs/mappings/NativeBase/Layout.js +98 -0
- package/lib/module/components/Banner.js +25 -4
- package/lib/module/index.js +0 -3
- package/lib/module/mappings/NativeBase/Layout.js +91 -0
- package/lib/typescript/src/index.d.ts +0 -3
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/mappings/NativeBase/Layout.d.ts +97 -0
- package/lib/typescript/src/mappings/NativeBase/Layout.d.ts.map +1 -0
- package/package.json +3 -3
- package/src/index.js +0 -3
- package/src/index.tsx +0 -3
- package/src/mappings/NativeBase/Layout.js +102 -0
- package/src/mappings/NativeBase/Layout.ts +117 -0
- package/lib/commonjs/components/Row.js +0 -73
- package/lib/commonjs/components/RowBodyIcon.js +0 -45
- package/lib/commonjs/components/RowHeadlineImageCaption.js +0 -45
- package/lib/commonjs/components/RowHeadlineImageIcon.js +0 -51
- package/lib/module/components/Row.js +0 -63
- package/lib/module/components/RowBodyIcon.js +0 -35
- package/lib/module/components/RowHeadlineImageCaption.js +0 -35
- package/lib/module/components/RowHeadlineImageIcon.js +0 -41
- package/lib/typescript/src/components/Row.d.ts +0 -21
- package/lib/typescript/src/components/Row.d.ts.map +0 -1
- package/lib/typescript/src/components/RowBodyIcon.d.ts +0 -16
- package/lib/typescript/src/components/RowBodyIcon.d.ts.map +0 -1
- package/lib/typescript/src/components/RowHeadlineImageCaption.d.ts +0 -16
- package/lib/typescript/src/components/RowHeadlineImageCaption.d.ts.map +0 -1
- package/lib/typescript/src/components/RowHeadlineImageIcon.d.ts +0 -18
- package/lib/typescript/src/components/RowHeadlineImageIcon.d.ts.map +0 -1
- package/src/components/Row.js +0 -48
- package/src/components/Row.tsx +0 -108
- package/src/components/RowBodyIcon.js +0 -8
- package/src/components/RowBodyIcon.tsx +0 -47
- package/src/components/RowHeadlineImageCaption.js +0 -12
- package/src/components/RowHeadlineImageCaption.tsx +0 -49
- package/src/components/RowHeadlineImageIcon.js +0 -14
- package/src/components/RowHeadlineImageIcon.tsx +0 -61
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { withTheme } from "../theming";
|
|
3
|
-
import type { Theme } from "../styles/DefaultTheme";
|
|
4
|
-
import type { IconSlot } from "../interfaces/Icon";
|
|
5
|
-
|
|
6
|
-
import Row from "./Row";
|
|
7
|
-
import Config from "./Config";
|
|
8
|
-
import { ImageSourcePropType, StyleProp, ViewStyle } from "react-native";
|
|
9
|
-
|
|
10
|
-
type Props = {
|
|
11
|
-
title?: string;
|
|
12
|
-
image: string | ImageSourcePropType;
|
|
13
|
-
subtitle?: string;
|
|
14
|
-
multilineSubtitle?: boolean;
|
|
15
|
-
icon: string;
|
|
16
|
-
style?: StyleProp<ViewStyle>;
|
|
17
|
-
theme: Theme;
|
|
18
|
-
} & IconSlot;
|
|
19
|
-
|
|
20
|
-
const RowHeadlineImageIcon: React.FC<React.PropsWithChildren<Props>> = ({
|
|
21
|
-
Icon,
|
|
22
|
-
icon,
|
|
23
|
-
title,
|
|
24
|
-
image,
|
|
25
|
-
subtitle,
|
|
26
|
-
multilineSubtitle = false,
|
|
27
|
-
style,
|
|
28
|
-
theme: { colors, typography },
|
|
29
|
-
}) => {
|
|
30
|
-
return (
|
|
31
|
-
<Row
|
|
32
|
-
titleTypeStyle={typography.headline6}
|
|
33
|
-
titleColor={colors.strong}
|
|
34
|
-
subtitleTypeStyle={typography.body2}
|
|
35
|
-
subtitleColor={colors.medium}
|
|
36
|
-
title={title}
|
|
37
|
-
subtitle={subtitle}
|
|
38
|
-
multilineSubtitle={multilineSubtitle}
|
|
39
|
-
image={image}
|
|
40
|
-
right={() => (
|
|
41
|
-
<Icon
|
|
42
|
-
name={icon}
|
|
43
|
-
size={
|
|
44
|
-
multilineSubtitle
|
|
45
|
-
? Config.rowMultiLineIconSize
|
|
46
|
-
: Config.rowSingleLineIconSize
|
|
47
|
-
}
|
|
48
|
-
color={colors.light}
|
|
49
|
-
style={{
|
|
50
|
-
marginLeft: 16,
|
|
51
|
-
alignSelf: multilineSubtitle ? "flex-start" : "center",
|
|
52
|
-
marginTop: multilineSubtitle ? 4 : 0,
|
|
53
|
-
}}
|
|
54
|
-
/>
|
|
55
|
-
)}
|
|
56
|
-
style={style}
|
|
57
|
-
/>
|
|
58
|
-
);
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
export default withTheme(RowHeadlineImageIcon);
|