techsbcn-storybook 0.19.0 → 0.20.0
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/techsbcn-storybook.cjs.development.js +2 -2
- package/dist/techsbcn-storybook.cjs.development.js.map +1 -1
- package/dist/techsbcn-storybook.cjs.production.min.js +1 -1
- package/dist/techsbcn-storybook.cjs.production.min.js.map +1 -1
- package/dist/techsbcn-storybook.esm.js +2 -2
- package/dist/techsbcn-storybook.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/tables/SimpleTableComponent/SimpleTableComponent.tsx +1 -1
- package/src/components/tables/TableComponent/TableComponent.tsx +1 -1
|
@@ -561,7 +561,7 @@ var TableComponent = function TableComponent(props) {
|
|
|
561
561
|
} else return props.values[value.toUpperCase()];
|
|
562
562
|
}
|
|
563
563
|
|
|
564
|
-
if (column.isDate && value) return new Date(value).toLocaleDateString(
|
|
564
|
+
if (column.isDate && value) return new Date(value).toLocaleDateString();
|
|
565
565
|
if (column.isPrice && value) return Number(value).toFixed(2).replace('.', ',').toLocaleString().replace(/(\d)(?=(\d{3})+(?!\d))/g, '$1.') + " " + props.values.SYMBOL_EURO;
|
|
566
566
|
|
|
567
567
|
if (column.isImage && value) {
|
|
@@ -957,7 +957,7 @@ var SimpleTableComponent = function SimpleTableComponent(props) {
|
|
|
957
957
|
} else return props.values[value.toUpperCase()];
|
|
958
958
|
}
|
|
959
959
|
|
|
960
|
-
if (column.isDate && value) return new Date(value).toLocaleDateString(
|
|
960
|
+
if (column.isDate && value) return new Date(value).toLocaleDateString();
|
|
961
961
|
if (column.isPrice && value) return Number(value).toFixed(2).replace('.', ',').toLocaleString().replace(/(\d)(?=(\d{3})+(?!\d))/g, '$1.') + " " + props.values.SYMBOL_EURO;
|
|
962
962
|
|
|
963
963
|
if (column.isImage && value) {
|