@mittwald/flow-react-components 0.1.0-alpha.279 → 0.1.0-alpha.280

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/Table.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use client"
2
2
  /* */
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";
3
+ import { T as a, a as t } from "./TableRow-C2VaotTp.js";
4
+ import { b as m, c as f, d as c, e as d } from "./TableRow-C2VaotTp.js";
5
5
  import o from "react";
6
6
  const b = (e) => /* @__PURE__ */ o.createElement(a, { ...e, footer: !0 });
7
7
  export {
@@ -3,31 +3,36 @@
3
3
  import s, { Suspense as b } from "react";
4
4
  import * as r from "react-aria-components";
5
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,
6
+ import { S as i } from "./SkeletonText-B5ZghZhO.js";
7
+ const d = "flow--table--table-container", f = "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: d,
9
+ table: f,
10
10
  header: N,
11
11
  body: u,
12
12
  footer: w,
13
13
  cell: C,
14
- column: h
14
+ column: h,
15
+ "vertical-align-middle": "flow--table--vertical-align-middle"
15
16
  }, 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) => {
17
+ const { children: a, className: e, verticalAlign: l = "top", ...o } = t, m = n(
18
+ c.table,
19
+ c[`vertical-align-${l}`],
20
+ e
21
+ );
22
+ return /* @__PURE__ */ s.createElement("div", { className: c.tableContainer }, /* @__PURE__ */ s.createElement(r.Table, { className: m, ...o }, a));
23
+ }, v = (t) => {
19
24
  const { children: a, className: e, ...l } = t, o = n(c.body, e);
20
25
  return /* @__PURE__ */ s.createElement(r.TableBody, { className: o, ...l }, a);
21
- }, R = (t) => {
26
+ }, g = (t) => {
22
27
  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) => {
28
+ return /* @__PURE__ */ s.createElement(r.Cell, { className: o, ...l }, /* @__PURE__ */ s.createElement(b, { fallback: /* @__PURE__ */ s.createElement(i, { width: "100px" }) }, a));
29
+ }, x = (t) => {
25
30
  const { children: a, className: e, ...l } = t, o = n(c.column, e);
26
31
  return /* @__PURE__ */ s.createElement(r.Column, { isRowHeader: !0, className: o, ...l }, a);
27
- }, S = (t) => {
32
+ }, R = (t) => {
28
33
  const { children: a, className: e, ...l } = t, o = n(c.header, e);
29
34
  return /* @__PURE__ */ s.createElement(r.TableHeader, { className: o, ...l }, a);
30
- }, k = (t) => {
35
+ }, H = (t) => {
31
36
  const { children: a, className: e, footer: l, ...o } = t;
32
37
  return /* @__PURE__ */ s.createElement(
33
38
  r.Row,
@@ -43,10 +48,10 @@ const f = "flow--table--table-container", i = "flow--table", N = "flow--table--h
43
48
  );
44
49
  };
45
50
  export {
46
- k as T,
51
+ H as T,
47
52
  y as a,
48
- x as b,
49
- R as c,
50
- H as d,
51
- S as e
53
+ v as b,
54
+ g as c,
55
+ x as d,
56
+ R as e
52
57
  };