@draftbit/core 46.10.3-c96e98.2 → 46.10.3-d37409.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.
@@ -9,6 +9,8 @@ var _reactNative = require("react-native");
9
9
  var _theming = require("../../theming");
10
10
  var _TableCommon = require("./TableCommon");
11
11
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
+ //Comment
13
+ //
12
14
  const Table = _ref => {
13
15
  let {
14
16
  theme,
@@ -86,7 +88,7 @@ const Table = _ref => {
86
88
  });
87
89
  const allHeaders = flattenedPossibleHeaders.filter(item => isTableHeader(item.props));
88
90
  if (allHeaders.length) {
89
- return allHeaders[0]; //Only 1 header taken
91
+ return allHeaders[0]; //Only 1 header rendered
90
92
  }
91
93
 
92
94
  return null;
@@ -118,6 +120,8 @@ const styles = _reactNative.StyleSheet.create({
118
120
  flex: 1
119
121
  }
120
122
  });
123
+
124
+ //Comment
125
+ //
121
126
  var _default = (0, _theming.withTheme)(Table);
122
- exports.default = _default;
123
- exports.default = _default;
127
+ exports.default = _default;exports.default = _default;
@@ -2,6 +2,8 @@ import React from "react";
2
2
  import { ScrollView, View, StyleSheet } from "react-native";
3
3
  import { withTheme } from "../../theming";
4
4
  import { generateBorderStyles, TableStyleContext } from "./TableCommon";
5
+ //Comment
6
+ //
5
7
  const Table = _ref => {
6
8
  let {
7
9
  theme,
@@ -79,7 +81,7 @@ const Table = _ref => {
79
81
  });
80
82
  const allHeaders = flattenedPossibleHeaders.filter(item => isTableHeader(item.props));
81
83
  if (allHeaders.length) {
82
- return allHeaders[0]; //Only 1 header taken
84
+ return allHeaders[0]; //Only 1 header rendered
83
85
  }
84
86
 
85
87
  return null;
@@ -111,4 +113,7 @@ const styles = StyleSheet.create({
111
113
  flex: 1
112
114
  }
113
115
  });
114
- export default withTheme(Table);rt default withTheme(Table);
116
+
117
+ //Comment
118
+ //
119
+ export default withTheme(Table);t default withTheme(Table);
@@ -1 +1 @@
1
- {"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../../../src/components/Table/Table.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAEL,SAAS,EACT,SAAS,EAGT,eAAe,EAChB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAElD,OAAO,EAEL,UAAU,EAGX,MAAM,eAAe,CAAC;AAEvB,MAAM,WAAW,KAAK,CAAC,CAAC,CAAE,SAAQ,UAAU,EAAE,eAAe;IAC3D,IAAI,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC;IAChB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IAClD,UAAU,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE;QAAE,IAAI,EAAE,CAAC,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,KAAK,GAAG,CAAC,OAAO,CAAC;IAC1E,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,KAAK,EAAE,KAAK,CAAC;CACd;;;;AAuJD,wBAAgC"}
1
+ {"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../../../src/components/Table/Table.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAEL,SAAS,EACT,SAAS,EAGT,eAAe,EAChB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAElD,OAAO,EAEL,UAAU,EAGX,MAAM,eAAe,CAAC;AAEvB,MAAM,WAAW,KAAK,CAAC,CAAC,CAAE,SAAQ,UAAU,EAAE,eAAe;IAC3D,IAAI,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC;IAChB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IAClD,UAAU,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE;QAAE,IAAI,EAAE,CAAC,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,KAAK,GAAG,CAAC,OAAO,CAAC;IAC1E,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,KAAK,EAAE,KAAK,CAAC;CACd;;;;AA2JD,wBAAgC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@draftbit/core",
3
- "version": "46.10.3-c96e98.2+c96e98e",
3
+ "version": "46.10.3-d37409.2+d37409a",
4
4
  "description": "Core (non-native) Components",
5
5
  "main": "lib/commonjs/index.js",
6
6
  "module": "lib/module/index.js",
@@ -41,7 +41,7 @@
41
41
  "dependencies": {
42
42
  "@date-io/date-fns": "^1.3.13",
43
43
  "@draftbit/react-theme-provider": "^2.1.1",
44
- "@draftbit/types": "^46.10.3-c96e98.2+c96e98e",
44
+ "@draftbit/types": "^46.10.3-d37409.2+d37409a",
45
45
  "@material-ui/core": "^4.11.0",
46
46
  "@material-ui/pickers": "^3.2.10",
47
47
  "@react-native-community/slider": "4.2.3",
@@ -100,5 +100,5 @@
100
100
  ]
101
101
  ]
102
102
  },
103
- "gitHead": "c96e98ee804b614089b9961afdfebc1216d840db"
103
+ "gitHead": "d37409ab185fb81e9d3d5a2e4dba67a8f25a2969"
104
104
  }
@@ -2,6 +2,8 @@ import React from "react";
2
2
  import { ScrollView, View, StyleSheet, } from "react-native";
3
3
  import { withTheme } from "../../theming";
4
4
  import { generateBorderStyles, TableStyleContext, } from "./TableCommon";
5
+ //Comment
6
+ //
5
7
  const Table = ({ theme, borderWidth = 1, borderColor = theme.colors.divider, borderStyle = "solid", drawTopBorder = true, drawBottomBorder = false, drawStartBorder = false, drawEndBorder = false, cellVerticalPadding = 10, cellHorizontalPadding = 10, data, keyExtractor, renderItem, children: childrenProp, style, ...rest }) => {
6
8
  //Both 'renderItem' and 'data' are optional to allow direct children. But if one is included, both need to be included
7
9
  if ((data && !renderItem) || (renderItem && !data)) {
@@ -60,7 +62,7 @@ const Table = ({ theme, borderWidth = 1, borderColor = theme.colors.divider, bor
60
62
  });
61
63
  const allHeaders = flattenedPossibleHeaders.filter((item) => isTableHeader(item.props));
62
64
  if (allHeaders.length) {
63
- return allHeaders[0]; //Only 1 header taken
65
+ return allHeaders[0]; //Only 1 header rendered
64
66
  }
65
67
  return null;
66
68
  }, [validChildren, isTableHeader]);
@@ -90,4 +92,6 @@ const styles = StyleSheet.create({
90
92
  flex: 1,
91
93
  },
92
94
  });
95
+ //Comment
96
+ //
93
97
  export default withTheme(Table);
@@ -24,6 +24,8 @@ export interface Props<T> extends TableProps, ScrollViewProps {
24
24
  theme: Theme;
25
25
  }
26
26
 
27
+ //Comment
28
+ //
27
29
  const Table = <T extends object>({
28
30
  theme,
29
31
  borderWidth = 1,
@@ -134,7 +136,7 @@ const Table = <T extends object>({
134
136
  isTableHeader(item.props)
135
137
  );
136
138
  if (allHeaders.length) {
137
- return allHeaders[0]; //Only 1 header taken
139
+ return allHeaders[0]; //Only 1 header rendered
138
140
  }
139
141
  return null;
140
142
  }, [validChildren, isTableHeader]);
@@ -173,4 +175,6 @@ const styles = StyleSheet.create({
173
175
  },
174
176
  });
175
177
 
178
+ //Comment
179
+ //
176
180
  export default withTheme(Table);