@umami/react-zen 0.108.0 → 0.110.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/index.css CHANGED
@@ -3327,20 +3327,23 @@ body a.Button_button__NDYwM {
3327
3327
  }
3328
3328
 
3329
3329
  /* virtual-css:css:30dc0f59418ffcc16fc4fc9d2cfc50c3 */
3330
- .Text_truncate__N2RhO {
3330
+ .Text_text__ZGQ3O {
3331
+ color: var(--font-color);
3332
+ }
3333
+ .Text_truncate__OTFiO {
3331
3334
  display: inline-block;
3332
3335
  white-space: nowrap;
3333
3336
  overflow: hidden;
3334
3337
  text-overflow: ellipsis;
3335
3338
  max-width: 100%;
3336
3339
  }
3337
- .Text_italic__OTQxO {
3340
+ .Text_italic__MzkyY {
3338
3341
  font-style: italic;
3339
3342
  }
3340
- .Text_underline__ZjA1M {
3343
+ .Text_underline__MmQxO {
3341
3344
  text-decoration: underline;
3342
3345
  }
3343
- .Text_strikethrough__NTlhM {
3346
+ .Text_strikethrough__NzFlM {
3344
3347
  text-decoration: line-through;
3345
3348
  }
3346
3349
 
@@ -3779,17 +3782,14 @@ body a.Button_button__NDYwM {
3779
3782
  }
3780
3783
 
3781
3784
  /* virtual-css:css:e32e6d85b42dfdfd441346c5ed822361 */
3782
- .DataTable_datatable__ZmQ3Z {
3785
+ .DataTable_datatable__MWRkN {
3783
3786
  position: relative;
3784
3787
  font-size: var(--font-size);
3785
3788
  color: var(--font-color);
3786
3789
  }
3787
- .DataTable_cell__NzZlM {
3790
+ .DataTable_cell__MmMyM {
3788
3791
  align-items: center;
3789
3792
  }
3790
- .DataTable_hidden__M2MxN {
3791
- display: none;
3792
- }
3793
3793
 
3794
3794
  /* virtual-css:css:e66162403f9946d7217dc462fee28120 */
3795
3795
  .Dots_dots__YzQxM {
package/dist/index.js CHANGED
@@ -29834,7 +29834,7 @@ var import_classnames12 = __toESM(require_classnames());
29834
29834
  var import_classnames11 = __toESM(require_classnames());
29835
29835
 
29836
29836
  // css-modules:E:\dev\umami-react-zen\src\components\Text.module.css
29837
- var Text_default = { "truncate": "Text_truncate__N2RhO", "italic": "Text_italic__OTQxO", "underline": "Text_underline__ZjA1M", "strikethrough": "Text_strikethrough__NTlhM" };
29837
+ var Text_default = { "text": "Text_text__ZGQ3O", "truncate": "Text_truncate__OTFiO", "italic": "Text_italic__MzkyY", "underline": "Text_underline__MmQxO", "strikethrough": "Text_strikethrough__NzFlM" };
29838
29838
 
29839
29839
  // src/components/Text.tsx
29840
29840
  var import_jsx_runtime18 = require("react/jsx-runtime");
@@ -30357,7 +30357,7 @@ function TableCell({ children, className, align, ...props }) {
30357
30357
  }
30358
30358
 
30359
30359
  // css-modules:E:\dev\umami-react-zen\src\components\DataTable.module.css
30360
- var DataTable_default = { "datatable": "DataTable_datatable__ZmQ3Z", "cell": "DataTable_cell__NzZlM", "hidden": "DataTable_hidden__M2MxN" };
30360
+ var DataTable_default = { "datatable": "DataTable_datatable__MWRkN", "cell": "DataTable_cell__MmMyM" };
30361
30361
 
30362
30362
  // src/components/DataTable.tsx
30363
30363
  var import_jsx_runtime33 = require("react/jsx-runtime");
@@ -30377,20 +30377,23 @@ function DataTable({ data = [], className, children, ...props }) {
30377
30377
  }
30378
30378
  return /* @__PURE__ */ (0, import_react180.createElement)(TableColumn, { ...columnProps, key: id, id }, label);
30379
30379
  }) }),
30380
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(TableBody, { items, children: (row) => {
30380
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(TableBody, { children: items.map((row, index) => {
30381
30381
  return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(TableRow, { style: { gridTemplateColumns: gridTemplateColumns2 }, children: columns.map(({ id, as, hidden, className: className2, children: children2, ...cellProps }) => {
30382
+ if (hidden) {
30383
+ return null;
30384
+ }
30382
30385
  const value = typeof children2 === "function" ? children2(row) : children2 || row[id];
30383
30386
  return /* @__PURE__ */ (0, import_react180.createElement)(
30384
30387
  TableCell,
30385
30388
  {
30386
30389
  ...cellProps,
30387
30390
  key: id,
30388
- className: (0, import_classnames24.default)(DataTable_default.cell, className2, hidden && DataTable_default.hidden)
30391
+ className: (0, import_classnames24.default)(DataTable_default.cell, className2)
30389
30392
  },
30390
30393
  as ? (0, import_react179.createElement)(as, {}, value) : value
30391
30394
  );
30392
- }) });
30393
- } })
30395
+ }) }, index);
30396
+ }) })
30394
30397
  ] });
30395
30398
  }
30396
30399
  function DataColumn(props) {
package/dist/index.mjs CHANGED
@@ -29721,7 +29721,7 @@ var import_classnames12 = __toESM(require_classnames());
29721
29721
  var import_classnames11 = __toESM(require_classnames());
29722
29722
 
29723
29723
  // css-modules:E:\dev\umami-react-zen\src\components\Text.module.css
29724
- var Text_default = { "truncate": "Text_truncate__N2RhO", "italic": "Text_italic__OTQxO", "underline": "Text_underline__ZjA1M", "strikethrough": "Text_strikethrough__NTlhM" };
29724
+ var Text_default = { "text": "Text_text__ZGQ3O", "truncate": "Text_truncate__OTFiO", "italic": "Text_italic__MzkyY", "underline": "Text_underline__MmQxO", "strikethrough": "Text_strikethrough__NzFlM" };
29725
29725
 
29726
29726
  // src/components/Text.tsx
29727
29727
  import { jsx as jsx18 } from "react/jsx-runtime";
@@ -30244,7 +30244,7 @@ function TableCell({ children, className, align, ...props }) {
30244
30244
  }
30245
30245
 
30246
30246
  // css-modules:E:\dev\umami-react-zen\src\components\DataTable.module.css
30247
- var DataTable_default = { "datatable": "DataTable_datatable__ZmQ3Z", "cell": "DataTable_cell__NzZlM", "hidden": "DataTable_hidden__M2MxN" };
30247
+ var DataTable_default = { "datatable": "DataTable_datatable__MWRkN", "cell": "DataTable_cell__MmMyM" };
30248
30248
 
30249
30249
  // src/components/DataTable.tsx
30250
30250
  import { jsx as jsx33, jsxs as jsxs16 } from "react/jsx-runtime";
@@ -30264,20 +30264,23 @@ function DataTable({ data = [], className, children, ...props }) {
30264
30264
  }
30265
30265
  return /* @__PURE__ */ createElement6(TableColumn, { ...columnProps, key: id, id }, label);
30266
30266
  }) }),
30267
- /* @__PURE__ */ jsx33(TableBody, { items, children: (row) => {
30267
+ /* @__PURE__ */ jsx33(TableBody, { children: items.map((row, index) => {
30268
30268
  return /* @__PURE__ */ jsx33(TableRow, { style: { gridTemplateColumns: gridTemplateColumns2 }, children: columns.map(({ id, as, hidden, className: className2, children: children2, ...cellProps }) => {
30269
+ if (hidden) {
30270
+ return null;
30271
+ }
30269
30272
  const value = typeof children2 === "function" ? children2(row) : children2 || row[id];
30270
30273
  return /* @__PURE__ */ createElement6(
30271
30274
  TableCell,
30272
30275
  {
30273
30276
  ...cellProps,
30274
30277
  key: id,
30275
- className: (0, import_classnames24.default)(DataTable_default.cell, className2, hidden && DataTable_default.hidden)
30278
+ className: (0, import_classnames24.default)(DataTable_default.cell, className2)
30276
30279
  },
30277
30280
  as ? createElement5(as, {}, value) : value
30278
30281
  );
30279
- }) });
30280
- } })
30282
+ }) }, index);
30283
+ }) })
30281
30284
  ] });
30282
30285
  }
30283
30286
  function DataColumn(props) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umami/react-zen",
3
- "version": "0.108.0",
3
+ "version": "0.110.0",
4
4
  "description": "Modern, minimalist React component library",
5
5
  "author": "Umami <hello@umami.is>",
6
6
  "license": "MIT",
package/styles.css CHANGED
@@ -3645,20 +3645,23 @@ body a.Button_button__NDYwM {
3645
3645
  }
3646
3646
 
3647
3647
  /* virtual-css:css:30dc0f59418ffcc16fc4fc9d2cfc50c3 */
3648
- .Text_truncate__N2RhO {
3648
+ .Text_text__ZGQ3O {
3649
+ color: var(--font-color);
3650
+ }
3651
+ .Text_truncate__OTFiO {
3649
3652
  display: inline-block;
3650
3653
  white-space: nowrap;
3651
3654
  overflow: hidden;
3652
3655
  text-overflow: ellipsis;
3653
3656
  max-width: 100%;
3654
3657
  }
3655
- .Text_italic__OTQxO {
3658
+ .Text_italic__MzkyY {
3656
3659
  font-style: italic;
3657
3660
  }
3658
- .Text_underline__ZjA1M {
3661
+ .Text_underline__MmQxO {
3659
3662
  text-decoration: underline;
3660
3663
  }
3661
- .Text_strikethrough__NTlhM {
3664
+ .Text_strikethrough__NzFlM {
3662
3665
  text-decoration: line-through;
3663
3666
  }
3664
3667
 
@@ -4097,17 +4100,14 @@ body a.Button_button__NDYwM {
4097
4100
  }
4098
4101
 
4099
4102
  /* virtual-css:css:e32e6d85b42dfdfd441346c5ed822361 */
4100
- .DataTable_datatable__ZmQ3Z {
4103
+ .DataTable_datatable__MWRkN {
4101
4104
  position: relative;
4102
4105
  font-size: var(--font-size);
4103
4106
  color: var(--font-color);
4104
4107
  }
4105
- .DataTable_cell__NzZlM {
4108
+ .DataTable_cell__MmMyM {
4106
4109
  align-items: center;
4107
4110
  }
4108
- .DataTable_hidden__M2MxN {
4109
- display: none;
4110
- }
4111
4111
 
4112
4112
  /* virtual-css:css:e66162403f9946d7217dc462fee28120 */
4113
4113
  .Dots_dots__YzQxM {