dce-reactkit 4.1.3 → 4.1.4

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/cjs/index.js CHANGED
@@ -3952,7 +3952,8 @@ const genCSV = (data, columns) => {
3952
3952
  let contents;
3953
3953
  const cell = datum[column.param];
3954
3954
  if (typeof cell === 'string'
3955
- || typeof cell === 'number') {
3955
+ || typeof cell === 'number'
3956
+ || typeof cell === 'boolean') {
3956
3957
  contents = String(cell);
3957
3958
  }
3958
3959
  else if (cell === null) {
@@ -3988,7 +3989,7 @@ const CSVDownloadButton = (props) => {
3988
3989
  /*------------------------------------------------------------------------*/
3989
3990
  /* -------------- Props ------------- */
3990
3991
  // Destructure all props
3991
- const { filename, csv, id, className, ariaLabel, style, onClick, children, } = props;
3992
+ const { filename, csv, id, className, ariaLabel, style, onClick, children, label = 'Download CSV', } = props;
3992
3993
  /*------------------------------------------------------------------------*/
3993
3994
  /* ------------------------------- Render ------------------------------- */
3994
3995
  /*------------------------------------------------------------------------*/
@@ -4002,7 +4003,7 @@ const CSVDownloadButton = (props) => {
4002
4003
  !children && (React__default["default"].createElement(React__default["default"].Fragment, null,
4003
4004
  React__default["default"].createElement(reactFontawesome.FontAwesomeIcon, { icon: freeSolidSvgIcons.faCloudDownloadAlt }),
4004
4005
  ' ',
4005
- "Download CSV")),
4006
+ label)),
4006
4007
  children));
4007
4008
  };
4008
4009