@gpa-gemstone/react-table 1.2.39 → 1.2.41

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.
@@ -98,10 +98,9 @@ function SelectTable(props) {
98
98
  cols: __spreadArray([
99
99
  { key: 'gemstone-checkbox', field: props.KeyField, label: '', headerStyle: { width: '4em' }, rowStyle: { width: '4em' }, content: function (item) {
100
100
  var index = selected.findIndex(function (i) { return i === item[props.KeyField]; });
101
- if (index > -1)
102
- return React.createElement("div", { style: { marginTop: '16px', textAlign: 'center' } },
103
- React.createElement("i", { className: "fa fa-check-square-o fa-3x" }));
104
- return null;
101
+ var iconClass = index > -1 ? 'fa-check-square-o' : 'fa-square-o';
102
+ return React.createElement("div", { style: { textAlign: 'center', verticalAlign: 'middle' } },
103
+ React.createElement("i", { className: "fa " + iconClass + " fa-3x" }));
105
104
  } }
106
105
  ], props.cols, true),
107
106
  data: data,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gpa-gemstone/react-table",
3
- "version": "1.2.39",
3
+ "version": "1.2.41",
4
4
  "description": "Table for GPA web applications",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -42,8 +42,8 @@
42
42
  "typescript": "4.4.4"
43
43
  },
44
44
  "dependencies": {
45
- "@gpa-gemstone/gpa-symbols": "0.0.30",
46
- "@gpa-gemstone/helper-functions": "0.0.29",
45
+ "@gpa-gemstone/gpa-symbols": "0.0.31",
46
+ "@gpa-gemstone/helper-functions": "0.0.30",
47
47
  "@types/lodash": "^4.14.171",
48
48
  "@types/react": "^17.0.14",
49
49
  "lodash": "^4.17.21",