@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 +27 -18
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +27 -18
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -2
package/dist/index.mjs
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
'use client';
|
|
1
2
|
import { Accordion as Accordion$1 } from '@base-ui/react/accordion';
|
|
2
3
|
import * as lucide_react_star from 'lucide-react';
|
|
3
4
|
import { forwardRef, createContext, isValidElement, cloneElement, Children, useState, useRef, useCallback, useEffect, useContext, useId, useMemo, Fragment as Fragment$1, createElement, useLayoutEffect } from 'react';
|
|
@@ -4915,21 +4916,32 @@ function DataTable({
|
|
|
4915
4916
|
/* @__PURE__ */ jsx(TableBody, { children: rows.map((row, index) => {
|
|
4916
4917
|
return (
|
|
4917
4918
|
// biome-ignore lint/suspicious/noArrayIndexKey: row data may not have unique ids
|
|
4918
|
-
/* @__PURE__ */ jsx(TableRow, { id: String(row.id), style: { gridTemplateColumns: gridTemplateColumns2 }, children: columns?.map(
|
|
4919
|
-
|
|
4920
|
-
|
|
4919
|
+
/* @__PURE__ */ jsx(TableRow, { id: String(row.id), style: { gridTemplateColumns: gridTemplateColumns2 }, children: columns?.map(
|
|
4920
|
+
({
|
|
4921
|
+
id,
|
|
4922
|
+
label: _label,
|
|
4923
|
+
width: _width,
|
|
4924
|
+
as,
|
|
4925
|
+
hidden,
|
|
4926
|
+
className: className2,
|
|
4927
|
+
children: children2,
|
|
4928
|
+
...cellProps
|
|
4929
|
+
}) => {
|
|
4930
|
+
if (hidden) {
|
|
4931
|
+
return null;
|
|
4932
|
+
}
|
|
4933
|
+
const value = typeof children2 === "function" ? children2(row, index) : children2 || row[id];
|
|
4934
|
+
return /* @__PURE__ */ createElement(
|
|
4935
|
+
TableCell,
|
|
4936
|
+
{
|
|
4937
|
+
...cellProps,
|
|
4938
|
+
key: id,
|
|
4939
|
+
className: cn("items-center", className2)
|
|
4940
|
+
},
|
|
4941
|
+
as ? createElement(as, {}, value) : value
|
|
4942
|
+
);
|
|
4921
4943
|
}
|
|
4922
|
-
|
|
4923
|
-
return /* @__PURE__ */ createElement(
|
|
4924
|
-
TableCell,
|
|
4925
|
-
{
|
|
4926
|
-
...cellProps,
|
|
4927
|
-
key: id,
|
|
4928
|
-
className: cn("items-center", className2)
|
|
4929
|
-
},
|
|
4930
|
-
as ? createElement(as, {}, value) : value
|
|
4931
|
-
);
|
|
4932
|
-
}) }, index)
|
|
4944
|
+
) }, index)
|
|
4933
4945
|
);
|
|
4934
4946
|
}) })
|
|
4935
4947
|
]
|
|
@@ -7031,10 +7043,7 @@ function StatusLight(props) {
|
|
|
7031
7043
|
...domProps,
|
|
7032
7044
|
alignItems: "center",
|
|
7033
7045
|
gap: "2",
|
|
7034
|
-
className: cn(
|
|
7035
|
-
"text-[length:var(--zen-font-size-sm)]/[var(--zen-line-height-sm)]",
|
|
7036
|
-
className
|
|
7037
|
-
),
|
|
7046
|
+
className: cn("text-[length:var(--zen-font-size-sm)]/[var(--zen-line-height-sm)]", className),
|
|
7038
7047
|
children: [
|
|
7039
7048
|
/* @__PURE__ */ jsx(StatusDot, { color, variant }),
|
|
7040
7049
|
children
|