@mittwald/flow-react-components 0.1.0-alpha.360 → 0.1.0-alpha.361
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 +9 -0
- package/dist/css/Section.css +1 -1
- package/dist/js/CheckboxGroup.js +1 -1
- package/dist/js/ColumnLayout-BhsG7J-Z.js +43 -0
- package/dist/js/ColumnLayout.js +1 -1
- package/dist/js/FileCardList.js +1 -1
- package/dist/js/List.js +1 -1
- package/dist/js/RadioGroup.js +1 -1
- package/dist/js/Section-MvkaA4tm.js +61 -0
- package/dist/js/Section.js +1 -1
- package/dist/js/all.css +1 -1
- package/package.json +4 -4
- package/dist/js/ColumnLayout-CLtV-itI.js +0 -35
- package/dist/js/Section-C0X09K6_.js +0 -55
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,15 @@
|
|
|
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.361](https://github.com/mittwald/flow/compare/0.1.0-alpha.360...0.1.0-alpha.361) (2024-11-28)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @mittwald/flow-react-components
|
|
9
|
+
|
|
10
|
+
# Change Log
|
|
11
|
+
|
|
12
|
+
All notable changes to this project will be documented in this file. See
|
|
13
|
+
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
14
|
+
|
|
6
15
|
# [0.1.0-alpha.360](https://github.com/mittwald/flow/compare/0.1.0-alpha.359...0.1.0-alpha.360) (2024-11-28)
|
|
7
16
|
|
|
8
17
|
**Note:** Version bump only for package @mittwald/flow-react-components
|
package/dist/css/Section.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.flow--section{display:flex;flex-direction:column;row-gap:var(--section--content-to-content-spacing);container-type:inline-size}.flow--section
|
|
1
|
+
.flow--section{display:flex;flex-direction:column;row-gap:var(--section--content-to-content-spacing);container-type:inline-size}+.flow--section:not(.flow--section--hide-separator) .flow--section{margin-block-start:var(--section--section-to-section-spacing);border-block-start-width:var(--section--border-width);border-block-start-style:var(--section--border-style);border-block-start-color:var(--section--border-color);padding-block-start:var(--section--section-to-section-spacing)}.flow--section .flow--section--heading:not(:first-child){margin-top:var(--section--sub-heading-spacing)}
|
package/dist/js/CheckboxGroup.js
CHANGED
|
@@ -11,7 +11,7 @@ import { F as E } from "./FieldError-1vrCcwXu.js";
|
|
|
11
11
|
import { C as k } from "./CheckboxButton-xdeKio9Y.js";
|
|
12
12
|
import { TunnelProvider as C, TunnelExit as r } from "@mittwald/react-tunnel";
|
|
13
13
|
import { f as o } from "./FormField.module-CqWpTQKP.js";
|
|
14
|
-
import { C as N } from "./ColumnLayout-
|
|
14
|
+
import { C as N } from "./ColumnLayout-BhsG7J-Z.js";
|
|
15
15
|
import { f as F } from "./flowComponent-Bs2i5Rrn.js";
|
|
16
16
|
import { d as G } from "./deepHas-KHS5X1F_.js";
|
|
17
17
|
const D = "flow--checkbox-group", s = {
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
/* */
|
|
3
|
+
import a from "react";
|
|
4
|
+
import E from "clsx";
|
|
5
|
+
import "./propsContext-DzAKlmhS.js";
|
|
6
|
+
import { PropsContextProvider as h } from "./PropsContextProvider.js";
|
|
7
|
+
import "@react-aria/utils";
|
|
8
|
+
import "remeda";
|
|
9
|
+
const x = "flow--column-layout--column-layout-container", N = "flow--column-layout", i = {
|
|
10
|
+
columnLayoutContainer: x,
|
|
11
|
+
columnLayout: N
|
|
12
|
+
}, c = (o) => {
|
|
13
|
+
if (o.length < 1)
|
|
14
|
+
throw new Error("Column layout array is empty");
|
|
15
|
+
return o.map((n) => `${n}fr`).join(" ");
|
|
16
|
+
}, j = (o) => {
|
|
17
|
+
const {
|
|
18
|
+
children: m,
|
|
19
|
+
className: n,
|
|
20
|
+
s: t,
|
|
21
|
+
m: l,
|
|
22
|
+
l: u,
|
|
23
|
+
gap: e = "m",
|
|
24
|
+
rowGap: p = e,
|
|
25
|
+
columnGap: y = e,
|
|
26
|
+
elementType: C = "div",
|
|
27
|
+
"aria-label": f
|
|
28
|
+
} = o, r = t ? c(t) : void 0, s = l ? c(l) : t ? r : void 0, L = u ? c(u) : l || t ? s : void 0, d = {
|
|
29
|
+
"--column-layout--columns-s": r,
|
|
30
|
+
"--column-layout--columns-m": s,
|
|
31
|
+
"--column-layout--columns-l": L,
|
|
32
|
+
"--column-layout--row-gap": `var(--column-layout--gap--${p})`,
|
|
33
|
+
"--column-layout--column-gap": `var(--column-layout--gap--${y})`
|
|
34
|
+
}, g = E(i.columnLayoutContainer, n), v = C, w = {
|
|
35
|
+
Section: {
|
|
36
|
+
hideSeparator: !0
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
return /* @__PURE__ */ a.createElement("div", { className: g, style: d }, /* @__PURE__ */ a.createElement(v, { "aria-label": f, className: i.columnLayout }, /* @__PURE__ */ a.createElement(h, { props: w }, m)));
|
|
40
|
+
};
|
|
41
|
+
export {
|
|
42
|
+
j as C
|
|
43
|
+
};
|
package/dist/js/ColumnLayout.js
CHANGED
package/dist/js/FileCardList.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
/* */
|
|
3
3
|
import e from "react";
|
|
4
|
-
import { C as p } from "./ColumnLayout-
|
|
4
|
+
import { C as p } from "./ColumnLayout-BhsG7J-Z.js";
|
|
5
5
|
import "./propsContext-DzAKlmhS.js";
|
|
6
6
|
import { PropsContextProvider as s } from "./PropsContextProvider.js";
|
|
7
7
|
import "@react-aria/utils";
|
package/dist/js/List.js
CHANGED
|
@@ -31,7 +31,7 @@ import "./context-BaYmTa0I.js";
|
|
|
31
31
|
import { u as vt } from "./useOnChange-C1Quwyuz.js";
|
|
32
32
|
import { S as yt } from "./SearchField-DbuaeZzD.js";
|
|
33
33
|
import { H as Z } from "./Heading-B8EYcl-r.js";
|
|
34
|
-
import { S as wt } from "./Section-
|
|
34
|
+
import { S as wt } from "./Section-MvkaA4tm.js";
|
|
35
35
|
import { getProperty as Et } from "dot-prop";
|
|
36
36
|
import { hash as Ie } from "object-code";
|
|
37
37
|
import x from "zod";
|
package/dist/js/RadioGroup.js
CHANGED
|
@@ -8,7 +8,7 @@ import { PropsContextProvider as C } from "./PropsContextProvider.js";
|
|
|
8
8
|
import "@react-aria/utils";
|
|
9
9
|
import "remeda";
|
|
10
10
|
import { F } from "./FieldError-1vrCcwXu.js";
|
|
11
|
-
import { C as G } from "./ColumnLayout-
|
|
11
|
+
import { C as G } from "./ColumnLayout-BhsG7J-Z.js";
|
|
12
12
|
import { TunnelProvider as I, TunnelExit as c } from "@mittwald/react-tunnel";
|
|
13
13
|
import { f as l } from "./FormField.module-CqWpTQKP.js";
|
|
14
14
|
import { C as R } from "./ClearPropsContext-CUvsbMn8.js";
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
/* */
|
|
3
|
+
import e, { useId as h } from "react";
|
|
4
|
+
import S from "clsx";
|
|
5
|
+
import "./propsContext-DzAKlmhS.js";
|
|
6
|
+
import { PropsContextProvider as i } from "./PropsContextProvider.js";
|
|
7
|
+
import "@react-aria/utils";
|
|
8
|
+
import "remeda";
|
|
9
|
+
import { f as c } from "./flowComponent-Bs2i5Rrn.js";
|
|
10
|
+
import * as s from "react-aria-components";
|
|
11
|
+
import { s as x } from "./ContextMenu.module-_LC3xtX0.js";
|
|
12
|
+
const C = "flow--section", g = "flow--section--hide-separator", E = "flow--section--heading", a = {
|
|
13
|
+
section: C,
|
|
14
|
+
hideSeparator: g,
|
|
15
|
+
heading: E
|
|
16
|
+
}, w = c(
|
|
17
|
+
"ContextMenuSection",
|
|
18
|
+
(o) => {
|
|
19
|
+
const { children: t } = o, r = {
|
|
20
|
+
Heading: {
|
|
21
|
+
level: 5,
|
|
22
|
+
wrapWith: /* @__PURE__ */ e.createElement(s.Header, null)
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
return /* @__PURE__ */ e.createElement(s.Section, { className: x.section }, /* @__PURE__ */ e.createElement(i, { props: r, mergeInParentContext: !0 }, t));
|
|
26
|
+
}
|
|
27
|
+
), A = c("Section", (o) => {
|
|
28
|
+
const {
|
|
29
|
+
children: t,
|
|
30
|
+
className: r,
|
|
31
|
+
refProp: l,
|
|
32
|
+
renderContextMenuSection: m,
|
|
33
|
+
hideSeparator: p,
|
|
34
|
+
...d
|
|
35
|
+
} = o;
|
|
36
|
+
if (!t)
|
|
37
|
+
return null;
|
|
38
|
+
if (m)
|
|
39
|
+
return /* @__PURE__ */ e.createElement(w, null, t);
|
|
40
|
+
const f = S(
|
|
41
|
+
a.section,
|
|
42
|
+
r,
|
|
43
|
+
p
|
|
44
|
+
), n = h(), u = {
|
|
45
|
+
Heading: {
|
|
46
|
+
level: 2,
|
|
47
|
+
id: n,
|
|
48
|
+
className: a.heading
|
|
49
|
+
},
|
|
50
|
+
Header: {
|
|
51
|
+
renderSectionHeader: !0
|
|
52
|
+
},
|
|
53
|
+
List: {
|
|
54
|
+
"aria-labelledby": n
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
return /* @__PURE__ */ e.createElement("section", { ...d, className: f, ref: l }, /* @__PURE__ */ e.createElement(i, { props: u, mergeInParentContext: !0 }, t));
|
|
58
|
+
});
|
|
59
|
+
export {
|
|
60
|
+
A as S
|
|
61
|
+
};
|