@mittwald/flow-react-components 0.1.0-alpha.125 → 0.1.0-alpha.126
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 +40 -0
- package/dist/styles.css +1 -1
- package/dist/types/components/Table/Table.d.ts +7 -0
- package/dist/types/components/Table/components/TableBody/TableBody.d.ts +7 -0
- package/dist/types/components/Table/components/TableBody/index.d.ts +4 -0
- package/dist/types/components/Table/components/TableCell/TableCell.d.ts +7 -0
- package/dist/types/components/Table/components/TableCell/index.d.ts +4 -0
- package/dist/types/components/Table/components/TableColumn/TableColumn.d.ts +7 -0
- package/dist/types/components/Table/components/TableColumn/index.d.ts +4 -0
- package/dist/types/components/Table/components/TableHeader/TableHeader.d.ts +7 -0
- package/dist/types/components/Table/components/TableHeader/index.d.ts +4 -0
- package/dist/types/components/Table/components/TableRow/TableRow.d.ts +7 -0
- package/dist/types/components/Table/components/TableRow/index.d.ts +4 -0
- package/dist/types/components/Table/index.d.ts +9 -0
- package/dist/types/components/Table/stories/Default.stories.d.ts +7 -0
- package/package.json +8 -4
package/dist/Table.js
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
/* */
|
|
3
|
+
import o from "react";
|
|
4
|
+
import * as n from "react-aria-components";
|
|
5
|
+
import r from "clsx";
|
|
6
|
+
const m = "flow--table--table-container", b = "flow--table", d = "flow--table--header", N = "flow--table--body", i = "flow--table--cell", u = "flow--table--column", c = {
|
|
7
|
+
tableContainer: m,
|
|
8
|
+
table: b,
|
|
9
|
+
header: d,
|
|
10
|
+
body: N,
|
|
11
|
+
cell: i,
|
|
12
|
+
column: u
|
|
13
|
+
}, h = (e) => {
|
|
14
|
+
const { children: a, className: t, ...l } = e, s = r(c.table, t);
|
|
15
|
+
return /* @__PURE__ */ o.createElement("div", { className: c.tableContainer }, /* @__PURE__ */ o.createElement(n.Table, { className: s, ...l }, a));
|
|
16
|
+
}, w = (e) => {
|
|
17
|
+
const { children: a, className: t, ...l } = e, s = r(c.body, t);
|
|
18
|
+
return /* @__PURE__ */ o.createElement(n.TableBody, { className: s, ...l }, a);
|
|
19
|
+
}, T = (e) => {
|
|
20
|
+
const { children: a, className: t, ...l } = e, s = r(c.cell, t);
|
|
21
|
+
return /* @__PURE__ */ o.createElement(n.Cell, { className: s, ...l }, a);
|
|
22
|
+
}, y = (e) => {
|
|
23
|
+
const { children: a, className: t, ...l } = e, s = r(c.column, t);
|
|
24
|
+
return /* @__PURE__ */ o.createElement(n.Column, { isRowHeader: !0, className: s, ...l }, a);
|
|
25
|
+
}, E = (e) => {
|
|
26
|
+
const { children: a, className: t, ...l } = e, s = r(c.header, t);
|
|
27
|
+
return /* @__PURE__ */ o.createElement(n.TableHeader, { className: s, ...l }, a);
|
|
28
|
+
}, p = (e) => {
|
|
29
|
+
const { children: a, className: t, ...l } = e, s = r(c.row, t);
|
|
30
|
+
return /* @__PURE__ */ o.createElement(n.Row, { className: s, ...l }, a);
|
|
31
|
+
};
|
|
32
|
+
export {
|
|
33
|
+
h as Table,
|
|
34
|
+
w as TableBody,
|
|
35
|
+
T as TableCell,
|
|
36
|
+
y as TableColumn,
|
|
37
|
+
E as TableHeader,
|
|
38
|
+
p as TableRow,
|
|
39
|
+
h as default
|
|
40
|
+
};
|