@digigov/react-core 0.25.1 → 0.25.3

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/CHANGELOG.md CHANGED
@@ -1,6 +1,13 @@
1
1
  # Change Log - @digigov/react-core
2
2
 
3
- This log was last generated on Tue, 13 Jun 2023 09:12:26 GMT and should not be manually modified.
3
+ This log was last generated on Mon, 19 Jun 2023 10:05:47 GMT and should not be manually modified.
4
+
5
+ ## 0.25.2
6
+ Mon, 19 Jun 2023 10:05:47 GMT
7
+
8
+ ### Patches
9
+
10
+ - Add correct padding in table cell when zebra mode is used
4
11
 
5
12
  ## 0.25.0
6
13
  Tue, 13 Jun 2023 09:12:26 GMT
@@ -33,7 +33,7 @@ var TableNoDataRow = /*#__PURE__*/_react["default"].forwardRef(function TableNoD
33
33
  as: "td",
34
34
  colSpan: 100,
35
35
  ref: ref,
36
- className: (0, _clsx["default"])(className, true && 'govgr-table__cell--no-data')
36
+ className: (0, _clsx["default"])(className, true && ['govgr-table__cell', 'govgr-table__cell--no-data'])
37
37
  }, props), children));
38
38
  });
39
39
 
@@ -20,7 +20,7 @@ export var TableNoDataRow = /*#__PURE__*/React.forwardRef(function TableNoDataRo
20
20
  as: "td",
21
21
  colSpan: 100,
22
22
  ref: ref,
23
- className: clsx(className, true && 'govgr-table__cell--no-data')
23
+ className: clsx(className, true && ['govgr-table__cell', 'govgr-table__cell--no-data'])
24
24
  }, props), children));
25
25
  });
26
26
  export default TableNoDataRow;
@@ -20,7 +20,7 @@ export var TableNoDataRow = /*#__PURE__*/React.forwardRef(function TableNoDataRo
20
20
  as: "td",
21
21
  colSpan: 100,
22
22
  ref: ref,
23
- className: clsx(className, true && 'govgr-table__cell--no-data')
23
+ className: clsx(className, true && ['govgr-table__cell', 'govgr-table__cell--no-data'])
24
24
  }, props), children));
25
25
  });
26
26
  export default TableNoDataRow;
package/esm/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Digigov v0.25.1
1
+ /** @license Digigov v0.25.3
2
2
  *
3
3
  * This source code is licensed under the BSD-2-Clause license found in the
4
4
  * LICENSE file in the root directory of this source tree.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digigov/react-core",
3
- "version": "0.25.1",
3
+ "version": "0.25.3",
4
4
  "description": "@digigov react core components",
5
5
  "author": "GRNET Developers <devs@lists.grnet.gr>",
6
6
  "license": "BSD-2-Clause",
@@ -11,7 +11,7 @@
11
11
  "directory": "dist"
12
12
  },
13
13
  "peerDependencies": {
14
- "@digigov/css": "0.38.0",
14
+ "@digigov/css": "0.38.1",
15
15
  "clsx": "1.1.1",
16
16
  "react": "^16.8.0 || ^17.0.0",
17
17
  "react-dom": "^16.8.0 || ^17.0.0"
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import Base, { BaseProps } from '@digigov/react-core/Base';
3
3
  import clsx from 'clsx';
4
4
 
5
- export interface TableNoDataRowProps extends BaseProps<'td'> {}
5
+ export interface TableNoDataRowProps extends BaseProps<'td'> { }
6
6
  /**
7
7
  * Use TableNoDataRow inside the Table component when there is no data to show.
8
8
  * you can use colSpan prop attribute to expand the td width
@@ -18,6 +18,7 @@ export const TableNoDataRow = React.forwardRef<
18
18
  colSpan={100}
19
19
  ref={ref}
20
20
  className={clsx(className, {
21
+ 'govgr-table__cell': true,
21
22
  'govgr-table__cell--no-data': true,
22
23
  })}
23
24
  {...props}