ui-kit-ck-consultant 0.6.20 → 0.6.22

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/dist/index.js CHANGED
@@ -909,18 +909,18 @@ var Table = /*#__PURE__*/function (_React$Component) {
909
909
 
910
910
  if (table) {
911
911
  var thead = _this.getArray(table.props.children).find(function (child) {
912
- return child.type === 'thead';
912
+ return child.type.name === 'Thead';
913
913
  });
914
914
 
915
915
  var tbody = _this.getArray(table.props.children).find(function (child) {
916
- return child.type === 'tbody';
916
+ return child.type.name === 'Tbody';
917
917
  });
918
918
 
919
919
  if (thead) {
920
920
  console.log('head');
921
921
 
922
922
  var headerRow = _this.getArray(thead.props.children).find(function (row) {
923
- return row.type === 'tr';
923
+ return row.type.name === 'Tr';
924
924
  });
925
925
 
926
926
  if (headerRow) {
@@ -938,7 +938,7 @@ var Table = /*#__PURE__*/function (_React$Component) {
938
938
  console.log('body');
939
939
 
940
940
  _this.getArray(tbody.props.children).forEach(function (row) {
941
- if (row.type === 'tr') {
941
+ if (row.type === 'Tr') {
942
942
  var rowData = _this.getArray(row.props.children).map(function (td) {
943
943
  return td.props && td.props.children ? _this.extractText(td.props.children) : '';
944
944
  }).join(';');