@umami/react-zen 0.250.0 → 0.251.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.js CHANGED
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  'use strict';
2
3
 
3
4
  var accordion = require('@base-ui/react/accordion');
@@ -4940,21 +4941,32 @@ function DataTable({
4940
4941
  /* @__PURE__ */ jsxRuntime.jsx(TableBody, { children: rows.map((row, index) => {
4941
4942
  return (
4942
4943
  // biome-ignore lint/suspicious/noArrayIndexKey: row data may not have unique ids
4943
- /* @__PURE__ */ jsxRuntime.jsx(TableRow, { id: String(row.id), style: { gridTemplateColumns: gridTemplateColumns2 }, children: columns?.map(({ id, as, hidden, className: className2, children: children2, ...cellProps }) => {
4944
- if (hidden) {
4945
- return null;
4944
+ /* @__PURE__ */ jsxRuntime.jsx(TableRow, { id: String(row.id), style: { gridTemplateColumns: gridTemplateColumns2 }, children: columns?.map(
4945
+ ({
4946
+ id,
4947
+ label: _label,
4948
+ width: _width,
4949
+ as,
4950
+ hidden,
4951
+ className: className2,
4952
+ children: children2,
4953
+ ...cellProps
4954
+ }) => {
4955
+ if (hidden) {
4956
+ return null;
4957
+ }
4958
+ const value = typeof children2 === "function" ? children2(row, index) : children2 || row[id];
4959
+ return /* @__PURE__ */ react.createElement(
4960
+ TableCell,
4961
+ {
4962
+ ...cellProps,
4963
+ key: id,
4964
+ className: cn("items-center", className2)
4965
+ },
4966
+ as ? react.createElement(as, {}, value) : value
4967
+ );
4946
4968
  }
4947
- const value = typeof children2 === "function" ? children2(row, index) : children2 || row[id];
4948
- return /* @__PURE__ */ react.createElement(
4949
- TableCell,
4950
- {
4951
- ...cellProps,
4952
- key: id,
4953
- className: cn("items-center", className2)
4954
- },
4955
- as ? react.createElement(as, {}, value) : value
4956
- );
4957
- }) }, index)
4969
+ ) }, index)
4958
4970
  );
4959
4971
  }) })
4960
4972
  ]
@@ -7056,10 +7068,7 @@ function StatusLight(props) {
7056
7068
  ...domProps,
7057
7069
  alignItems: "center",
7058
7070
  gap: "2",
7059
- className: cn(
7060
- "text-[length:var(--zen-font-size-sm)]/[var(--zen-line-height-sm)]",
7061
- className
7062
- ),
7071
+ className: cn("text-[length:var(--zen-font-size-sm)]/[var(--zen-line-height-sm)]", className),
7063
7072
  children: [
7064
7073
  /* @__PURE__ */ jsxRuntime.jsx(StatusDot, { color, variant }),
7065
7074
  children