@mittwald/flow-react-components 0.1.0-alpha.274 → 0.1.0-alpha.276

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/List.js CHANGED
@@ -47,7 +47,7 @@ import { I as Vt } from "./IconSearch-CSaVgGtE.js";
47
47
  import { d as S, a as P } from "./deepFindOfType-6pG0fH7S.js";
48
48
  import { ListLoaderAsyncResource as kt, TypedListLoaderAsyncResource as At } from "./List/ListLoaderAsyncResource.js";
49
49
  import { S as Mt } from "./Skeleton-CKLaTmDR.js";
50
- import { T as Ee, d as Fe, c as Te, a as Ce, e as Ie, b as Le } from "./TableRow-BsPgWqkU.js";
50
+ import { a as Ee, e as Fe, d as Te, b as Ce, T as Ie, c as Le } from "./TableRow-DNTJVTkO.js";
51
51
  import { A as Bt } from "./ActionGroup-CPMad0DR.js";
52
52
  const Dt = "flow--list--items--item--view", xt = "flow--list--items--item--view--title", Nt = "flow--list--items--item--view--top-content", Rt = "flow--list--items--item--view--content", $t = "flow--list--items--item--view--action", zt = "flow--list--items--item--view--avatar", Ut = "flow--list--items--item--view--text", Kt = "flow--list--items--item--view--heading", m = {
53
53
  view: Dt,
package/dist/Table.js CHANGED
@@ -1,13 +1,16 @@
1
1
  "use client"
2
2
  /* */
3
- import { T as e } from "./TableRow-BsPgWqkU.js";
4
- import { a as b, b as s, c as T, d as r, e as d } from "./TableRow-BsPgWqkU.js";
3
+ import { T as a, a as t } from "./TableRow-DNTJVTkO.js";
4
+ import { b as m, c as f, d as c, e as d } from "./TableRow-DNTJVTkO.js";
5
+ import o from "react";
6
+ const b = (e) => /* @__PURE__ */ o.createElement(a, { ...e, footer: !0 });
5
7
  export {
6
- e as Table,
7
- b as TableBody,
8
- s as TableCell,
9
- T as TableColumn,
10
- r as TableHeader,
11
- d as TableRow,
12
- e as default
8
+ t as Table,
9
+ m as TableBody,
10
+ f as TableCell,
11
+ c as TableColumn,
12
+ b as TableFooterRow,
13
+ d as TableHeader,
14
+ a as TableRow,
15
+ t as default
13
16
  };
@@ -0,0 +1,52 @@
1
+ "use client"
2
+ /* */
3
+ import s, { Suspense as b } from "react";
4
+ import * as r from "react-aria-components";
5
+ import n from "clsx";
6
+ import { S as d } from "./SkeletonText-B5ZghZhO.js";
7
+ const f = "flow--table--table-container", i = "flow--table", N = "flow--table--header", u = "flow--table--body", w = "flow--table--footer", C = "flow--table--cell", h = "flow--table--column", c = {
8
+ tableContainer: f,
9
+ table: i,
10
+ header: N,
11
+ body: u,
12
+ footer: w,
13
+ cell: C,
14
+ column: h
15
+ }, y = (t) => {
16
+ const { children: a, className: e, ...l } = t, o = n(c.table, e);
17
+ return /* @__PURE__ */ s.createElement("div", { className: c.tableContainer }, /* @__PURE__ */ s.createElement(r.Table, { className: o, ...l }, a));
18
+ }, x = (t) => {
19
+ const { children: a, className: e, ...l } = t, o = n(c.body, e);
20
+ return /* @__PURE__ */ s.createElement(r.TableBody, { className: o, ...l }, a);
21
+ }, R = (t) => {
22
+ const { children: a, className: e, ...l } = t, o = n(c.cell, e);
23
+ return /* @__PURE__ */ s.createElement(r.Cell, { className: o, ...l }, /* @__PURE__ */ s.createElement(b, { fallback: /* @__PURE__ */ s.createElement(d, { width: "100px" }) }, a));
24
+ }, H = (t) => {
25
+ const { children: a, className: e, ...l } = t, o = n(c.column, e);
26
+ return /* @__PURE__ */ s.createElement(r.Column, { isRowHeader: !0, className: o, ...l }, a);
27
+ }, S = (t) => {
28
+ const { children: a, className: e, ...l } = t, o = n(c.header, e);
29
+ return /* @__PURE__ */ s.createElement(r.TableHeader, { className: o, ...l }, a);
30
+ }, k = (t) => {
31
+ const { children: a, className: e, footer: l, ...o } = t;
32
+ return /* @__PURE__ */ s.createElement(
33
+ r.Row,
34
+ {
35
+ className: (m) => n(
36
+ c.row,
37
+ l && c.footer,
38
+ typeof e == "function" ? e(m) : e
39
+ ),
40
+ ...o
41
+ },
42
+ a
43
+ );
44
+ };
45
+ export {
46
+ k as T,
47
+ y as a,
48
+ x as b,
49
+ R as c,
50
+ H as d,
51
+ S as e
52
+ };