melonykit 0.15.10 → 0.15.11
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 +5 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2227,10 +2227,10 @@ var Q = {
|
|
|
2227
2227
|
};
|
|
2228
2228
|
//#endregion
|
|
2229
2229
|
//#region src/components/_table.jsx
|
|
2230
|
-
function Yt({ columns: e = [], rows: t = [], width: n, height: r, showLineNumbers: i = !0, sortBy: a,
|
|
2231
|
-
let
|
|
2230
|
+
function Yt({ columns: e = [], rows: t = [], width: n, height: r, showLineNumbers: i = !0, sortBy: a, sortDirection: l = "asc", className: u }) {
|
|
2231
|
+
let d = tn(t, e, a, l);
|
|
2232
2232
|
return /* @__PURE__ */ s(o, { children: /* @__PURE__ */ s("div", {
|
|
2233
|
-
className: V($.base,
|
|
2233
|
+
className: V($.base, u),
|
|
2234
2234
|
style: {
|
|
2235
2235
|
width: n,
|
|
2236
2236
|
height: r
|
|
@@ -2248,14 +2248,14 @@ function Yt({ columns: e = [], rows: t = [], width: n, height: r, showLineNumber
|
|
|
2248
2248
|
onClick: (t) => e.onClick?.(t, e),
|
|
2249
2249
|
children: e.label
|
|
2250
2250
|
}, e.key))] }) }),
|
|
2251
|
-
/* @__PURE__ */ s("tbody", { children:
|
|
2251
|
+
/* @__PURE__ */ s("tbody", { children: d.length === 0 ? /* @__PURE__ */ s("tr", { children: /* @__PURE__ */ s("td", {
|
|
2252
2252
|
className: $.empty,
|
|
2253
2253
|
colSpan: Math.max(e.length + Number(i), 1),
|
|
2254
2254
|
children: /* @__PURE__ */ s("span", {
|
|
2255
2255
|
className: $.emptyContent,
|
|
2256
2256
|
children: "Keine Einträge ..."
|
|
2257
2257
|
})
|
|
2258
|
-
}) }) :
|
|
2258
|
+
}) }) : d.map((t, n) => /* @__PURE__ */ c("tr", { children: [i && /* @__PURE__ */ s("td", {
|
|
2259
2259
|
className: $.number,
|
|
2260
2260
|
children: n + 1
|
|
2261
2261
|
}), e.map((e) => /* @__PURE__ */ s("td", {
|