@mittwald/flow-react-components 0.1.0-alpha.421 → 0.1.0-alpha.423
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/CHANGELOG.md +26 -0
- package/dist/css/Table.css +1 -1
- package/dist/js/List.js +1 -1
- package/dist/js/Table-D9mxW7Dh.js +73 -0
- package/dist/js/Table.js +2 -2
- package/dist/js/all.css +1 -1
- package/dist/js/react-hook-form.js +6 -3
- package/dist/js/types/components/List/typedList.d.ts +1 -1
- package/dist/js/types/components/Table/components/TableCell/TableCell.d.ts +2 -0
- package/dist/js/types/components/Table/components/TableColumn/TableColumn.d.ts +4 -1
- package/dist/js/types/components/Table/stories/Default.stories.d.ts +1 -0
- package/package.json +4 -4
- package/dist/js/Table-Cgwv_qa_.js +0 -58
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,32 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See
|
|
4
4
|
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [0.1.0-alpha.423](https://github.com/mittwald/flow/compare/0.1.0-alpha.422...0.1.0-alpha.423) (2025-02-14)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- **Field:** Fix Switch is not reacting to Form defaultValue bug
|
|
11
|
+
([#1171](https://github.com/mittwald/flow/issues/1171))
|
|
12
|
+
([72a63f4](https://github.com/mittwald/flow/commit/72a63f467be3a206fbbfe77010395a1be060388d))
|
|
13
|
+
|
|
14
|
+
# Change Log
|
|
15
|
+
|
|
16
|
+
All notable changes to this project will be documented in this file. See
|
|
17
|
+
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
18
|
+
|
|
19
|
+
# [0.1.0-alpha.422](https://github.com/mittwald/flow/compare/0.1.0-alpha.421...0.1.0-alpha.422) (2025-02-12)
|
|
20
|
+
|
|
21
|
+
### Features
|
|
22
|
+
|
|
23
|
+
- **table:** add option to horizontally center columns
|
|
24
|
+
([#1147](https://github.com/mittwald/flow/issues/1147))
|
|
25
|
+
([a1f8752](https://github.com/mittwald/flow/commit/a1f875216faa01d1147b12baedcb50b6f9d2abda))
|
|
26
|
+
|
|
27
|
+
# Change Log
|
|
28
|
+
|
|
29
|
+
All notable changes to this project will be documented in this file. See
|
|
30
|
+
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
31
|
+
|
|
6
32
|
# [0.1.0-alpha.421](https://github.com/mittwald/flow/compare/0.1.0-alpha.420...0.1.0-alpha.421) (2025-02-12)
|
|
7
33
|
|
|
8
34
|
### Features
|
package/dist/css/Table.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.flow--table--table-container{width:100%;overflow-x:auto}.flow--table{border-radius:var(--table--corner-radius);overflow:hidden;width:100%;border-width:var(--table--border-width);border-style:var(--table--border-style);border-color:var(--table--border-color);border-spacing:0;background-color:var(--table--background-color)}.flow--table .flow--table--column{font-weight:var(--table--header-font-weight)
|
|
1
|
+
.flow--table--table-container{width:100%;overflow-x:auto}.flow--table{border-radius:var(--table--corner-radius);overflow:hidden;width:100%;border-width:var(--table--border-width);border-style:var(--table--border-style);border-color:var(--table--border-color);border-spacing:0;background-color:var(--table--background-color)}.flow--table .flow--table--column{font-weight:var(--table--header-font-weight)}.flow--table .flow--table--cell,.flow--table .flow--table--column{padding-inline:var(--table--padding-x);padding-block:var(--table--padding-y);text-align:start;vertical-align:top;border-style:var(--table--border-style);border-color:var(--table--border-color);border-width:0}.flow--table .flow--table--cell>svg,.flow--table .flow--table--column>svg{vertical-align:bottom}.flow--table .flow--table--cell.flow--table--horizontal-align-center,.flow--table .flow--table--column.flow--table--horizontal-align-center{text-align:center}.flow--table .flow--table--header .flow--table--column{border-block-end-width:var(--table--header-border-width)}.flow--table .flow--table--header:empty{display:none}.flow--table .flow--table--body .flow--table--row:where(:nth-of-type(odd):not(.flow--table--footer)){background-color:var(--table--background-color-accent)}.flow--table .flow--table--body .flow--table--row:not(:last-child) .flow--table--cell{border-block-end-width:var(--table--border-width)}.flow--table .flow--table--body .flow--table--row.flow--table--footer .flow--table--cell{border-block-start-width:var(--table--border-width)}.flow--table.flow--table--vertical-align-middle .flow--table--cell,.flow--table.flow--table--vertical-align-middle .flow--table--column{vertical-align:middle}
|
package/dist/js/List.js
CHANGED
|
@@ -50,7 +50,7 @@ import { I as $e } from "./IllustratedMessage-DB1AH-Oq.js";
|
|
|
50
50
|
import { I as Ue } from "./IconSearch-DMgHpqPU.js";
|
|
51
51
|
import { deepFind as Ke, deepForEach as ze } from "react-children-utilities";
|
|
52
52
|
import { ListLoaderAsyncResource as Oe, TypedListLoaderAsyncResource as He } from "./List/ListLoaderAsyncResource.js";
|
|
53
|
-
import { a as Pt, e as Vt, d as At, b as Mt, T as kt, c as Bt } from "./Table-
|
|
53
|
+
import { a as Pt, e as Vt, d as At, b as Mt, T as kt, c as Bt } from "./Table-D9mxW7Dh.js";
|
|
54
54
|
import { A as qe } from "./ActionGroup-CkZ5q2Vq.js";
|
|
55
55
|
const Ge = "flow--list--items--item--view", We = "flow--list--items--item--view--content", je = "flow--list--items--item--view--title", Je = "flow--list--items--item--view--sub-title", Ye = "flow--list--items--item--view--avatar", Qe = "flow--list--items--item--view--heading", Xe = "flow--list--items--item--view--text", Ze = "flow--list--items--item--view--top-content", _e = "flow--list--items--item--view--action", ts = "flow--list--items--item--view--bottom-content", es = "flow--list--items--item--view--tile", ss = "flow--list--items--item--view--avatar-container", is = "flow--list--items--item--view--badge", h = {
|
|
56
56
|
view: Ge,
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
/* */
|
|
3
|
+
import r, { Suspense as d } from "react";
|
|
4
|
+
import * as c from "react-aria-components";
|
|
5
|
+
import m from "clsx";
|
|
6
|
+
import { S as f } from "./SkeletonText-B5ZghZhO.js";
|
|
7
|
+
const w = "flow--table--table-container", N = "flow--table", h = "flow--table--column", u = "flow--table--cell", C = "flow--table--header", T = "flow--table--body", g = "flow--table--row", E = "flow--table--footer", n = {
|
|
8
|
+
tableContainer: w,
|
|
9
|
+
table: N,
|
|
10
|
+
column: h,
|
|
11
|
+
cell: u,
|
|
12
|
+
"horizontal-align-center": "flow--table--horizontal-align-center",
|
|
13
|
+
header: C,
|
|
14
|
+
body: T,
|
|
15
|
+
row: g,
|
|
16
|
+
footer: E,
|
|
17
|
+
"vertical-align-middle": "flow--table--vertical-align-middle"
|
|
18
|
+
}, x = (t) => {
|
|
19
|
+
const { children: a, className: e, ...l } = t, o = m(n.body, e);
|
|
20
|
+
return /* @__PURE__ */ r.createElement(c.TableBody, { className: o, ...l }, a);
|
|
21
|
+
}, A = (t) => {
|
|
22
|
+
const {
|
|
23
|
+
children: a,
|
|
24
|
+
className: e,
|
|
25
|
+
rowHeader: l,
|
|
26
|
+
horizontalAlign: o = "start",
|
|
27
|
+
...s
|
|
28
|
+
} = t, i = m(
|
|
29
|
+
n.cell,
|
|
30
|
+
n[`horizontal-align-${o}`],
|
|
31
|
+
e
|
|
32
|
+
), b = /* @__PURE__ */ r.createElement(d, { fallback: /* @__PURE__ */ r.createElement(f, { width: "100px" }) }, a);
|
|
33
|
+
return l ? /* @__PURE__ */ r.createElement(p, { className: i, ...s }, b) : /* @__PURE__ */ r.createElement(c.Cell, { className: i, ...s }, b);
|
|
34
|
+
}, p = (t) => {
|
|
35
|
+
const { children: a, className: e, horizontalAlign: l = "start", ...o } = t, s = m(
|
|
36
|
+
n.column,
|
|
37
|
+
n[`horizontal-align-${l}`],
|
|
38
|
+
e
|
|
39
|
+
);
|
|
40
|
+
return /* @__PURE__ */ r.createElement(c.Column, { isRowHeader: !0, className: s, ...o }, a);
|
|
41
|
+
}, H = (t) => {
|
|
42
|
+
const { children: a, className: e, ...l } = t, o = m(n.header, e);
|
|
43
|
+
return /* @__PURE__ */ r.createElement(c.TableHeader, { className: o, ...l }, a);
|
|
44
|
+
}, R = (t) => {
|
|
45
|
+
const { children: a, className: e, footer: l, ...o } = t;
|
|
46
|
+
return /* @__PURE__ */ r.createElement(
|
|
47
|
+
c.Row,
|
|
48
|
+
{
|
|
49
|
+
className: (s) => m(
|
|
50
|
+
n.row,
|
|
51
|
+
l && n.footer,
|
|
52
|
+
typeof e == "function" ? e(s) : e
|
|
53
|
+
),
|
|
54
|
+
...o
|
|
55
|
+
},
|
|
56
|
+
a
|
|
57
|
+
);
|
|
58
|
+
}, S = (t) => {
|
|
59
|
+
const { children: a, className: e, verticalAlign: l = "top", ...o } = t, s = m(
|
|
60
|
+
n.table,
|
|
61
|
+
n[`vertical-align-${l}`],
|
|
62
|
+
e
|
|
63
|
+
);
|
|
64
|
+
return /* @__PURE__ */ r.createElement("div", { className: n.tableContainer }, /* @__PURE__ */ r.createElement(c.Table, { className: s, ...o }, a));
|
|
65
|
+
};
|
|
66
|
+
export {
|
|
67
|
+
R as T,
|
|
68
|
+
S as a,
|
|
69
|
+
x as b,
|
|
70
|
+
A as c,
|
|
71
|
+
p as d,
|
|
72
|
+
H as e
|
|
73
|
+
};
|
package/dist/js/Table.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
/* */
|
|
3
|
-
import { T as a, a as t } from "./Table-
|
|
4
|
-
import { b as m, c as f, d as c, e as d } from "./Table-
|
|
3
|
+
import { T as a, a as t } from "./Table-D9mxW7Dh.js";
|
|
4
|
+
import { b as m, c as f, d as c, e as d } from "./Table-D9mxW7Dh.js";
|
|
5
5
|
import o from "react";
|
|
6
6
|
const b = (e) => /* @__PURE__ */ o.createElement(a, { ...e, footer: !0 });
|
|
7
7
|
export {
|