@draftbit/core 46.10.3-93b2ea.2 → 46.10.3-b95a8c.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 (88) hide show
  1. package/lib/commonjs/components/Checkbox/CheckboxRow.js +6 -23
  2. package/lib/commonjs/components/Checkbox/context.js +1 -1
  3. package/lib/commonjs/index.js +0 -47
  4. package/lib/commonjs/mappings/NativeBase/Layout.js +107 -0
  5. package/lib/module/constants.js +1 -0
  6. package/lib/module/index.js +0 -5
  7. package/lib/module/mappings/NativeBase/Layout.js +100 -0
  8. package/lib/typescript/src/index.d.ts +0 -5
  9. package/lib/typescript/src/index.d.ts.map +1 -1
  10. package/lib/typescript/src/mappings/NativeBase/Layout.d.ts +133 -0
  11. package/lib/typescript/src/mappings/NativeBase/Layout.d.ts.map +1 -0
  12. package/package.json +3 -3
  13. package/src/index.js +0 -5
  14. package/src/index.tsx +0 -6
  15. package/src/mappings/NativeBase/Layout.js +116 -0
  16. package/src/mappings/NativeBase/Layout.ts +137 -0
  17. package/lib/commonjs/components/Container.js +0 -93
  18. package/lib/commonjs/components/Row.js +0 -73
  19. package/lib/commonjs/components/RowBodyIcon.js +0 -45
  20. package/lib/commonjs/components/RowHeadlineImageCaption.js +0 -45
  21. package/lib/commonjs/components/RowHeadlineImageIcon.js +0 -51
  22. package/lib/commonjs/components/Table/Table.js +0 -123
  23. package/lib/commonjs/components/Table/TableCell.js +0 -49
  24. package/lib/commonjs/components/Table/TableCommon.js +0 -30
  25. package/lib/commonjs/components/Table/TableRow.js +0 -61
  26. package/lib/commonjs/components/Table/index.js +0 -27
  27. package/lib/commonjs/mappings/Container.js +0 -37
  28. package/lib/commonjs/mappings/Table.js +0 -140
  29. package/lib/module/components/Container.js +0 -83
  30. package/lib/module/components/Row.js +0 -63
  31. package/lib/module/components/RowBodyIcon.js +0 -35
  32. package/lib/module/components/RowHeadlineImageCaption.js +0 -35
  33. package/lib/module/components/RowHeadlineImageIcon.js +0 -41
  34. package/lib/module/components/Table/Table.js +0 -114
  35. package/lib/module/components/Table/TableCell.js +0 -41
  36. package/lib/module/components/Table/TableCommon.js +0 -21
  37. package/lib/module/components/Table/TableRow.js +0 -53
  38. package/lib/module/components/Table/index.js +0 -3
  39. package/lib/module/mappings/Container.js +0 -30
  40. package/lib/module/mappings/Table.js +0 -133
  41. package/lib/typescript/src/components/Container.d.ts +0 -21
  42. package/lib/typescript/src/components/Container.d.ts.map +0 -1
  43. package/lib/typescript/src/components/Row.d.ts +0 -21
  44. package/lib/typescript/src/components/Row.d.ts.map +0 -1
  45. package/lib/typescript/src/components/RowBodyIcon.d.ts +0 -16
  46. package/lib/typescript/src/components/RowBodyIcon.d.ts.map +0 -1
  47. package/lib/typescript/src/components/RowHeadlineImageCaption.d.ts +0 -16
  48. package/lib/typescript/src/components/RowHeadlineImageCaption.d.ts.map +0 -1
  49. package/lib/typescript/src/components/RowHeadlineImageIcon.d.ts +0 -18
  50. package/lib/typescript/src/components/RowHeadlineImageIcon.d.ts.map +0 -1
  51. package/lib/typescript/src/components/Table/Table.d.ts +0 -19
  52. package/lib/typescript/src/components/Table/Table.d.ts.map +0 -1
  53. package/lib/typescript/src/components/Table/TableCell.d.ts +0 -9
  54. package/lib/typescript/src/components/Table/TableCell.d.ts.map +0 -1
  55. package/lib/typescript/src/components/Table/TableCommon.d.ts +0 -20
  56. package/lib/typescript/src/components/Table/TableCommon.d.ts.map +0 -1
  57. package/lib/typescript/src/components/Table/TableRow.d.ts +0 -14
  58. package/lib/typescript/src/components/Table/TableRow.d.ts.map +0 -1
  59. package/lib/typescript/src/components/Table/index.d.ts +0 -4
  60. package/lib/typescript/src/components/Table/index.d.ts.map +0 -1
  61. package/lib/typescript/src/mappings/Container.d.ts +0 -55
  62. package/lib/typescript/src/mappings/Container.d.ts.map +0 -1
  63. package/lib/typescript/src/mappings/Table.d.ts +0 -337
  64. package/lib/typescript/src/mappings/Table.d.ts.map +0 -1
  65. package/src/components/Container.js +0 -43
  66. package/src/components/Container.tsx +0 -116
  67. package/src/components/Row.js +0 -48
  68. package/src/components/Row.tsx +0 -108
  69. package/src/components/RowBodyIcon.js +0 -8
  70. package/src/components/RowBodyIcon.tsx +0 -47
  71. package/src/components/RowHeadlineImageCaption.js +0 -12
  72. package/src/components/RowHeadlineImageCaption.tsx +0 -49
  73. package/src/components/RowHeadlineImageIcon.js +0 -14
  74. package/src/components/RowHeadlineImageIcon.tsx +0 -61
  75. package/src/components/Table/Table.js +0 -93
  76. package/src/components/Table/Table.tsx +0 -176
  77. package/src/components/Table/TableCell.js +0 -31
  78. package/src/components/Table/TableCell.tsx +0 -63
  79. package/src/components/Table/TableCommon.js +0 -12
  80. package/src/components/Table/TableCommon.ts +0 -40
  81. package/src/components/Table/TableRow.js +0 -37
  82. package/src/components/Table/TableRow.tsx +0 -77
  83. package/src/components/Table/index.js +0 -3
  84. package/src/components/Table/index.tsx +0 -3
  85. package/src/mappings/Container.js +0 -30
  86. package/src/mappings/Container.ts +0 -41
  87. package/src/mappings/Table.js +0 -150
  88. package/src/mappings/Table.ts +0 -170
@@ -1,49 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var _react = _interopRequireDefault(require("react"));
8
- var _reactNative = require("react-native");
9
- var _TableCommon = require("./TableCommon");
10
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
- const TableCell = _ref => {
12
- let {
13
- borderWidth,
14
- borderColor,
15
- borderStyle,
16
- drawTopBorder = false,
17
- drawBottomBorder = false,
18
- drawStartBorder = false,
19
- drawEndBorder = true,
20
- cellVerticalPadding,
21
- cellHorizontalPadding,
22
- children,
23
- style
24
- } = _ref;
25
- const parentContextValue = _react.default.useContext(_TableCommon.TableStyleContext);
26
- const borderViewStyle = (0, _TableCommon.generateBorderStyles)({
27
- borderColor: borderColor || parentContextValue.borderColor,
28
- borderWidth: borderWidth || parentContextValue.borderWidth,
29
- borderStyle: borderStyle || parentContextValue.borderStyle,
30
- drawTopBorder,
31
- drawBottomBorder,
32
- drawStartBorder,
33
- drawEndBorder
34
- });
35
- return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
36
- style: [styles.cellContainer, borderViewStyle, {
37
- paddingVertical: cellVerticalPadding || parentContextValue.cellVerticalPadding,
38
- paddingHorizontal: cellHorizontalPadding || parentContextValue.cellHorizontalPadding
39
- }, style]
40
- }, children);
41
- };
42
- const styles = _reactNative.StyleSheet.create({
43
- cellContainer: {
44
- flex: 1,
45
- flexDirection: "row"
46
- }
47
- });
48
- var _default = TableCell;
49
- exports.default = _default;
@@ -1,30 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.TableStyleContext = void 0;
7
- exports.generateBorderStyles = generateBorderStyles;
8
- var _react = _interopRequireDefault(require("react"));
9
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
10
- const TableStyleContext = /*#__PURE__*/_react.default.createContext({});
11
- exports.TableStyleContext = TableStyleContext;
12
- function generateBorderStyles(_ref) {
13
- let {
14
- borderColor,
15
- borderWidth,
16
- borderStyle,
17
- drawTopBorder,
18
- drawBottomBorder,
19
- drawStartBorder,
20
- drawEndBorder
21
- } = _ref;
22
- return {
23
- borderColor,
24
- borderStyle,
25
- borderTopWidth: drawTopBorder ? borderWidth : 0,
26
- borderBottomWidth: drawBottomBorder ? borderWidth : 0,
27
- borderStartWidth: drawStartBorder ? borderWidth : 0,
28
- borderEndWidth: drawEndBorder ? borderWidth : 0
29
- };
30
- }
@@ -1,61 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var _react = _interopRequireDefault(require("react"));
8
- var _reactNative = require("react-native");
9
- var _TableCommon = require("./TableCommon");
10
- var _theming = require("../../theming");
11
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
- const TableRow = _ref => {
13
- let {
14
- borderWidth,
15
- borderColor,
16
- borderStyle,
17
- drawTopBorder = false,
18
- drawBottomBorder = true,
19
- drawStartBorder = true,
20
- drawEndBorder = false,
21
- cellVerticalPadding,
22
- cellHorizontalPadding,
23
- isTableHeader = false,
24
- children,
25
- style,
26
- theme
27
- } = _ref;
28
- const parentContextValue = _react.default.useContext(_TableCommon.TableStyleContext);
29
-
30
- //Create context to use and pass to children based on own props or fall back to parent provided context
31
- const contextValue = {
32
- borderColor: borderColor || parentContextValue.borderColor,
33
- borderStyle: borderStyle || parentContextValue.borderStyle,
34
- borderWidth: borderWidth || parentContextValue.borderWidth,
35
- cellHorizontalPadding: cellHorizontalPadding || parentContextValue.cellHorizontalPadding,
36
- cellVerticalPadding: cellVerticalPadding || parentContextValue.cellVerticalPadding
37
- };
38
- const borderViewStyle = (0, _TableCommon.generateBorderStyles)({
39
- borderColor: contextValue.borderColor,
40
- borderWidth: contextValue.borderWidth,
41
- borderStyle: contextValue.borderStyle,
42
- drawTopBorder,
43
- drawBottomBorder,
44
- drawStartBorder,
45
- drawEndBorder
46
- });
47
- return /*#__PURE__*/_react.default.createElement(_TableCommon.TableStyleContext.Provider, {
48
- value: contextValue
49
- }, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
50
- style: [borderViewStyle, isTableHeader ? {
51
- backgroundColor: theme.colors.primary
52
- } : {}, style, styles.cellsContainer]
53
- }, children));
54
- };
55
- const styles = _reactNative.StyleSheet.create({
56
- cellsContainer: {
57
- flexDirection: "row"
58
- }
59
- });
60
- var _default = (0, _theming.withTheme)(TableRow);
61
- exports.default = _default;
@@ -1,27 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- Object.defineProperty(exports, "Table", {
7
- enumerable: true,
8
- get: function () {
9
- return _Table.default;
10
- }
11
- });
12
- Object.defineProperty(exports, "TableCell", {
13
- enumerable: true,
14
- get: function () {
15
- return _TableCell.default;
16
- }
17
- });
18
- Object.defineProperty(exports, "TableRow", {
19
- enumerable: true,
20
- get: function () {
21
- return _TableRow.default;
22
- }
23
- });
24
- var _Table = _interopRequireDefault(require("./Table"));
25
- var _TableRow = _interopRequireDefault(require("./TableRow"));
26
- var _TableCell = _interopRequireDefault(require("./TableCell"));
27
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -1,37 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.SEED_DATA = void 0;
7
- var _types = require("@draftbit/types");
8
- const SEED_DATA = {
9
- name: "Container",
10
- tag: "Container",
11
- description: "A container component with gutter padding",
12
- category: _types.COMPONENT_TYPES.deprecated,
13
- stylesPanelSections: _types.CONTAINER_COMPONENT_STYLES_SECTIONS,
14
- layout: {
15
- height: 250
16
- },
17
- props: {
18
- useThemeGutterPadding: {
19
- group: _types.GROUPS.basic,
20
- label: "Use gutter padding",
21
- description: "When true, uses the theme gutter spacing as the container's horizontal padding",
22
- formType: _types.FORM_TYPES.boolean,
23
- propType: _types.PROP_TYPES.BOOLEAN,
24
- defaultValue: false,
25
- editable: false,
26
- required: true
27
- },
28
- backgroundImage: (0, _types.createImageProp)({
29
- label: "Background Image",
30
- description: "Apply a custom background image",
31
- defaultValue: null
32
- }),
33
- backgroundImageResizeMode: (0, _types.createResizeModeProp)(),
34
- elevation: (0, _types.createElevationType)(0)
35
- }
36
- };
37
- exports.SEED_DATA = SEED_DATA;
@@ -1,140 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.SEED_DATA = void 0;
7
- var _types = require("@draftbit/types");
8
- const SHARED_SEED_DATA_PROPS = {
9
- borderWidth: (0, _types.createStaticNumberProp)({
10
- label: "Border Width",
11
- description: "Specifies the width of the border. Passed down to child Table(Row/Cell) components unless overridden",
12
- required: false,
13
- defaultValue: null
14
- }),
15
- borderColor: (0, _types.createColorProp)({
16
- label: "Border Color",
17
- description: "Specifies the color of the border. Passed down to child Table(Row/Cell) components unless overridden",
18
- defaultValue: null
19
- }),
20
- borderStyle: (0, _types.createTextEnumProp)({
21
- label: "Border Style",
22
- description: "Specifies the style of the border. Passed down to child Table(Row/Cell) components unless overridden",
23
- options: ["solid", "dotted", "dashed"],
24
- defaultValue: null
25
- }),
26
- drawTopBorder: (0, _types.createStaticBoolProp)({
27
- label: "Draw Top Border",
28
- description: "Whether to draw the top border at this layer of the Table tree or not",
29
- defaultValue: false
30
- }),
31
- drawBottomBorder: (0, _types.createStaticBoolProp)({
32
- label: "Draw Bottom Border",
33
- description: "Whether to draw the bottom border at this layer of the Table tree or not",
34
- defaultValue: false
35
- }),
36
- drawStartBorder: (0, _types.createStaticBoolProp)({
37
- label: "Draw Start Border",
38
- description: "Whether to draw the start border at this layer of the Table tree or not",
39
- defaultValue: false
40
- }),
41
- drawEndBorder: (0, _types.createStaticBoolProp)({
42
- label: "Draw End Border",
43
- description: "Whether to draw the end border at this layer of the Table tree or not",
44
- defaultValue: false
45
- }),
46
- cellVerticalPadding: (0, _types.createStaticNumberProp)({
47
- label: "Cell Vertical Padding",
48
- description: "Specifies the vertical padding of the cell. Passed down to TableCell components unless overridden",
49
- required: false,
50
- defaultValue: null
51
- }),
52
- cellHorizontalPadding: (0, _types.createStaticNumberProp)({
53
- label: "Cell Horizontal Padding",
54
- description: "Specifies the horizontal padding of the cell. Passed down to TableCell components unless overridden",
55
- required: false,
56
- defaultValue: null
57
- })
58
- };
59
- const SEED_DATA = [{
60
- name: "Table",
61
- tag: "Table",
62
- description: "Top level table container",
63
- category: _types.COMPONENT_TYPES.table,
64
- stylesPanelSections: [_types.StylesPanelSections.Size, _types.StylesPanelSections.Margins, _types.StylesPanelSections.Position, _types.StylesPanelSections.Effects, _types.StylesPanelSections.Background, _types.StylesPanelSections.LayoutSelectedItem],
65
- layout: {
66
- flex: 1
67
- },
68
- props: {
69
- ...SHARED_SEED_DATA_PROPS,
70
- borderWidth: {
71
- ...SHARED_SEED_DATA_PROPS.borderWidth,
72
- defaultValue: 1
73
- },
74
- borderColor: {
75
- ...SHARED_SEED_DATA_PROPS.borderColor,
76
- defaultValue: "divider"
77
- },
78
- borderStyle: {
79
- ...SHARED_SEED_DATA_PROPS.borderStyle,
80
- defaultValue: "solid"
81
- },
82
- drawTopBorder: {
83
- ...SHARED_SEED_DATA_PROPS.drawTopBorder,
84
- defaultValue: true
85
- },
86
- cellVerticalPadding: {
87
- ...SHARED_SEED_DATA_PROPS.cellVerticalPadding,
88
- defaultValue: 10
89
- },
90
- cellHorizontalPadding: {
91
- ...SHARED_SEED_DATA_PROPS.cellHorizontalPadding,
92
- defaultValue: 10
93
- },
94
- showsVerticalScrollIndicator: (0, _types.createStaticBoolProp)({
95
- label: "Show Vertical Scroll Indicator",
96
- description: "When true, shows a vertical scroll indicator. The default value is true.",
97
- defaultValue: true
98
- })
99
- }
100
- }, {
101
- name: "Table Row",
102
- tag: "TableRow",
103
- description: "Table Row container",
104
- category: _types.COMPONENT_TYPES.table,
105
- stylesPanelSections: [_types.StylesPanelSections.Background],
106
- props: {
107
- ...SHARED_SEED_DATA_PROPS,
108
- drawStartBorder: {
109
- ...SHARED_SEED_DATA_PROPS.drawStartBorder,
110
- defaultValue: true
111
- },
112
- drawBottomBorder: {
113
- ...SHARED_SEED_DATA_PROPS.drawBottomBorder,
114
- defaultValue: true
115
- },
116
- isTableHeader: (0, _types.createStaticBoolProp)({
117
- label: "Header",
118
- description: "Whether this row is a header or not (changes background and sticks while scrolling)",
119
- defaultValue: false
120
- })
121
- }
122
- }, {
123
- name: "Table Cell",
124
- tag: "TableCell",
125
- description: "Table Cell container",
126
- category: _types.COMPONENT_TYPES.table,
127
- stylesPanelSections: [_types.StylesPanelSections.LayoutFlexItems, _types.StylesPanelSections.LayoutSelectedItem, _types.StylesPanelSections.LayoutContent, _types.StylesPanelSections.Background, _types.StylesPanelSections.Size, _types.StylesPanelSections.MarginsAndPaddings, _types.StylesPanelSections.Position, _types.StylesPanelSections.Effects],
128
- layout: {
129
- flex: 1,
130
- flexDirection: "row"
131
- },
132
- props: {
133
- ...SHARED_SEED_DATA_PROPS,
134
- drawEndBorder: {
135
- ...SHARED_SEED_DATA_PROPS.drawEndBorder,
136
- defaultValue: true
137
- }
138
- }
139
- }];
140
- exports.SEED_DATA = SEED_DATA;
@@ -1,83 +0,0 @@
1
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
- import * as React from "react";
3
- import { View, ImageBackground, StyleSheet } from "react-native";
4
- import { withTheme } from "../theming";
5
- import Elevation from "./Elevation";
6
- const Container = _ref => {
7
- let {
8
- useThemeGutterPadding,
9
- borderColor,
10
- borderWidth,
11
- backgroundColor,
12
- backgroundImage,
13
- backgroundImageResizeMode,
14
- elevation,
15
- style,
16
- children,
17
- theme,
18
- // eslint-disable-line @typescript-eslint/no-unused-vars
19
- ...rest
20
- } = _ref;
21
- const {
22
- flex,
23
- flexGrow,
24
- flexWrap,
25
- flexBasis,
26
- flexShrink,
27
- flexDirection,
28
- alignContent,
29
- justifyContent,
30
- alignItems,
31
- padding,
32
- paddingTop,
33
- paddingBottom,
34
- paddingLeft,
35
- paddingRight,
36
- paddingVertical,
37
- paddingHorizontal,
38
- ...styleProp
39
- } = StyleSheet.flatten(style) || {};
40
- const containerStyle = {
41
- backgroundColor,
42
- borderColor,
43
- borderWidth,
44
- width: "100%",
45
- ...styleProp
46
- };
47
- const innerStyle = {
48
- flex,
49
- flexGrow,
50
- flexWrap,
51
- flexBasis,
52
- flexShrink,
53
- flexDirection,
54
- alignContent,
55
- justifyContent,
56
- alignItems,
57
- padding,
58
- paddingTop,
59
- paddingBottom,
60
- paddingLeft,
61
- paddingRight,
62
- paddingVertical,
63
- paddingHorizontal: paddingHorizontal || useThemeGutterPadding ? 16 : 0
64
- };
65
- const Wrap = elevation ? Elevation : View;
66
- if (elevation) containerStyle.elevation = elevation;
67
- return /*#__PURE__*/React.createElement(Wrap, _extends({
68
- style: [containerStyle, style]
69
- }, rest), backgroundImage ? /*#__PURE__*/React.createElement(ImageBackground, {
70
- source: typeof backgroundImage === "string" ? {
71
- uri: backgroundImage
72
- } : backgroundImage,
73
- resizeMode: backgroundImageResizeMode,
74
- style: {
75
- flex: 1
76
- }
77
- }, /*#__PURE__*/React.createElement(View, {
78
- style: innerStyle
79
- }, children)) : /*#__PURE__*/React.createElement(View, {
80
- style: innerStyle
81
- }, children));
82
- };
83
- export default withTheme(Container);
@@ -1,63 +0,0 @@
1
- import * as React from "react";
2
- import { View, Text, Image, StyleSheet } from "react-native";
3
- import { withTheme } from "../theming";
4
- import Config from "./Config";
5
- const Row = _ref => {
6
- let {
7
- titleTypeStyle,
8
- titleColor,
9
- subtitleTypeStyle,
10
- subtitleColor,
11
- title,
12
- subtitle,
13
- multilineSubtitle,
14
- image,
15
- right,
16
- style
17
- } = _ref;
18
- return /*#__PURE__*/React.createElement(View, {
19
- style: [styles.container, {
20
- padding: 16
21
- }, style]
22
- }, /*#__PURE__*/React.createElement(View, {
23
- style: styles.leftContainer
24
- }, image && /*#__PURE__*/React.createElement(Image, {
25
- source: typeof image === "string" ? {
26
- uri: image
27
- } : image,
28
- style: {
29
- marginRight: 12,
30
- width: subtitle ? Config.rowMultiLineImageSize : Config.rowSingleLineImageSize,
31
- height: subtitle ? Config.rowMultiLineImageSize : Config.rowSingleLineImageSize
32
- }
33
- }), /*#__PURE__*/React.createElement(View, {
34
- style: styles.textContainer
35
- }, /*#__PURE__*/React.createElement(Text, {
36
- style: [titleTypeStyle, {
37
- color: titleColor
38
- }],
39
- numberOfLines: 1
40
- }, title), subtitle ? /*#__PURE__*/React.createElement(Text, {
41
- style: [subtitleTypeStyle, {
42
- color: subtitleColor,
43
- marginTop: 4
44
- }],
45
- numberOfLines: multilineSubtitle ? undefined : 1
46
- }, subtitle) : null)), right && right());
47
- };
48
- const styles = StyleSheet.create({
49
- leftContainer: {
50
- flexDirection: "row",
51
- flex: 1
52
- },
53
- container: {
54
- flexDirection: "row",
55
- justifyContent: "space-between",
56
- alignItems: "center"
57
- },
58
- textContainer: {
59
- flex: 1,
60
- justifyContent: "center"
61
- }
62
- });
63
- export default withTheme(Row);
@@ -1,35 +0,0 @@
1
- import * as React from "react";
2
- import { withTheme } from "../theming";
3
- import Row from "./Row";
4
- import Config from "./Config";
5
- const RowBodyIcon = _ref => {
6
- let {
7
- Icon,
8
- title,
9
- subtitle,
10
- icon,
11
- style,
12
- theme: {
13
- colors,
14
- typography
15
- }
16
- } = _ref;
17
- return /*#__PURE__*/React.createElement(Row, {
18
- titleTypeStyle: typography.body1,
19
- titleColor: colors.medium,
20
- subtitleTypeStyle: typography.subtitle2,
21
- subtitleColor: colors.light,
22
- title: title,
23
- subtitle: subtitle,
24
- right: () => /*#__PURE__*/React.createElement(Icon, {
25
- name: icon,
26
- size: Config.rowSingleLineIconSize,
27
- color: colors.light,
28
- style: {
29
- marginLeft: 16
30
- }
31
- }),
32
- style: style
33
- });
34
- };
35
- export default withTheme(RowBodyIcon);
@@ -1,35 +0,0 @@
1
- import * as React from "react";
2
- import { Text } from "react-native";
3
- import { withTheme } from "../theming";
4
- import Row from "./Row";
5
- const RowHeadlineImageCaption = _ref => {
6
- let {
7
- title,
8
- subtitle,
9
- caption,
10
- image,
11
- style,
12
- theme: {
13
- colors,
14
- typography
15
- }
16
- } = _ref;
17
- return /*#__PURE__*/React.createElement(Row, {
18
- titleTypeStyle: typography.headline6,
19
- titleColor: colors.strong,
20
- subtitleTypeStyle: typography.body2,
21
- subtitleColor: colors.medium,
22
- title: title,
23
- subtitle: subtitle,
24
- image: image,
25
- right: () => /*#__PURE__*/React.createElement(Text, {
26
- style: {
27
- ...typography.caption,
28
- color: colors.strong,
29
- marginLeft: 16
30
- }
31
- }, caption),
32
- style: style
33
- });
34
- };
35
- export default withTheme(RowHeadlineImageCaption);
@@ -1,41 +0,0 @@
1
- import * as React from "react";
2
- import { withTheme } from "../theming";
3
- import Row from "./Row";
4
- import Config from "./Config";
5
- const RowHeadlineImageIcon = _ref => {
6
- let {
7
- Icon,
8
- icon,
9
- title,
10
- image,
11
- subtitle,
12
- multilineSubtitle = false,
13
- style,
14
- theme: {
15
- colors,
16
- typography
17
- }
18
- } = _ref;
19
- return /*#__PURE__*/React.createElement(Row, {
20
- titleTypeStyle: typography.headline6,
21
- titleColor: colors.strong,
22
- subtitleTypeStyle: typography.body2,
23
- subtitleColor: colors.medium,
24
- title: title,
25
- subtitle: subtitle,
26
- multilineSubtitle: multilineSubtitle,
27
- image: image,
28
- right: () => /*#__PURE__*/React.createElement(Icon, {
29
- name: icon,
30
- size: multilineSubtitle ? Config.rowMultiLineIconSize : Config.rowSingleLineIconSize,
31
- color: colors.light,
32
- style: {
33
- marginLeft: 16,
34
- alignSelf: multilineSubtitle ? "flex-start" : "center",
35
- marginTop: multilineSubtitle ? 4 : 0
36
- }
37
- }),
38
- style: style
39
- });
40
- };
41
- export default withTheme(RowHeadlineImageIcon);