@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.
Files changed (42) hide show
  1. package/lib/commonjs/components/BottomSheet/BottomSheetComponent.js +127 -111
  2. package/lib/commonjs/components/Checkbox/context.js +1 -1
  3. package/lib/commonjs/components/DeprecatedFAB.js +21 -3
  4. package/lib/commonjs/components/TabView/TabView.js +13 -7
  5. package/lib/commonjs/index.js +0 -21
  6. package/lib/commonjs/mappings/NativeBase/Layout.js +98 -0
  7. package/lib/module/components/Banner.js +25 -4
  8. package/lib/module/index.js +0 -3
  9. package/lib/module/mappings/NativeBase/Layout.js +91 -0
  10. package/lib/typescript/src/index.d.ts +0 -3
  11. package/lib/typescript/src/index.d.ts.map +1 -1
  12. package/lib/typescript/src/mappings/NativeBase/Layout.d.ts +97 -0
  13. package/lib/typescript/src/mappings/NativeBase/Layout.d.ts.map +1 -0
  14. package/package.json +3 -3
  15. package/src/index.js +0 -3
  16. package/src/index.tsx +0 -3
  17. package/src/mappings/NativeBase/Layout.js +102 -0
  18. package/src/mappings/NativeBase/Layout.ts +117 -0
  19. package/lib/commonjs/components/Row.js +0 -73
  20. package/lib/commonjs/components/RowBodyIcon.js +0 -45
  21. package/lib/commonjs/components/RowHeadlineImageCaption.js +0 -45
  22. package/lib/commonjs/components/RowHeadlineImageIcon.js +0 -51
  23. package/lib/module/components/Row.js +0 -63
  24. package/lib/module/components/RowBodyIcon.js +0 -35
  25. package/lib/module/components/RowHeadlineImageCaption.js +0 -35
  26. package/lib/module/components/RowHeadlineImageIcon.js +0 -41
  27. package/lib/typescript/src/components/Row.d.ts +0 -21
  28. package/lib/typescript/src/components/Row.d.ts.map +0 -1
  29. package/lib/typescript/src/components/RowBodyIcon.d.ts +0 -16
  30. package/lib/typescript/src/components/RowBodyIcon.d.ts.map +0 -1
  31. package/lib/typescript/src/components/RowHeadlineImageCaption.d.ts +0 -16
  32. package/lib/typescript/src/components/RowHeadlineImageCaption.d.ts.map +0 -1
  33. package/lib/typescript/src/components/RowHeadlineImageIcon.d.ts +0 -18
  34. package/lib/typescript/src/components/RowHeadlineImageIcon.d.ts.map +0 -1
  35. package/src/components/Row.js +0 -48
  36. package/src/components/Row.tsx +0 -108
  37. package/src/components/RowBodyIcon.js +0 -8
  38. package/src/components/RowBodyIcon.tsx +0 -47
  39. package/src/components/RowHeadlineImageCaption.js +0 -12
  40. package/src/components/RowHeadlineImageCaption.tsx +0 -49
  41. package/src/components/RowHeadlineImageIcon.js +0 -14
  42. 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);