@mittwald/flow-react-components 0.1.0-alpha.215 → 0.1.0-alpha.216

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.
@@ -8,11 +8,11 @@ import { P as u } from "./PropsContextProvider-C6Z4XGp6.js";
8
8
  import "@react-aria/utils";
9
9
  import "remeda";
10
10
  import { TunnelProvider as p, TunnelExit as f } from "@mittwald/react-tunnel";
11
- const I = "flow--section--section-header", g = "flow--section--section-header--actions", a = {
11
+ const I = "flow--section--section-header", g = "flow--section--section-header--actions", l = {
12
12
  sectionHeader: I,
13
13
  actions: g
14
14
  }, E = (n) => {
15
- const { children: t, className: o } = n, r = m(a.sectionHeader, o), s = {
15
+ const { children: t, className: o } = n, r = m(l.sectionHeader, o), s = {
16
16
  Switch: {
17
17
  labelPosition: "leading",
18
18
  tunnelId: "actions"
@@ -47,23 +47,24 @@ const I = "flow--section--section-header", g = "flow--section--section-header--a
47
47
  },
48
48
  Heading: {
49
49
  level: 2,
50
- className: a.heading
50
+ className: l.heading,
51
+ levelVisual: 4
51
52
  }
52
53
  };
53
- return /* @__PURE__ */ e.createElement("header", { className: r }, /* @__PURE__ */ e.createElement(u, { props: s }, /* @__PURE__ */ e.createElement(p, null, t, /* @__PURE__ */ e.createElement("div", { className: a.actions }, /* @__PURE__ */ e.createElement(f, { id: "actions" })))));
54
+ return /* @__PURE__ */ e.createElement("header", { className: r }, /* @__PURE__ */ e.createElement(u, { props: s }, /* @__PURE__ */ e.createElement(p, null, t, /* @__PURE__ */ e.createElement("div", { className: l.actions }, /* @__PURE__ */ e.createElement(f, { id: "actions" })))));
54
55
  }, C = d("Header", (n) => {
55
56
  const {
56
57
  children: t,
57
58
  refProp: o,
58
59
  elementType: r = "header",
59
60
  renderSectionHeader: s,
60
- className: l,
61
+ className: a,
61
62
  ...c
62
63
  } = n;
63
64
  if (s)
64
- return /* @__PURE__ */ e.createElement(E, { className: l }, t);
65
+ return /* @__PURE__ */ e.createElement(E, { className: a }, t);
65
66
  const i = r;
66
- return /* @__PURE__ */ e.createElement(i, { ...c, className: l, ref: o }, t);
67
+ return /* @__PURE__ */ e.createElement(i, { ...c, className: a, ref: o }, t);
67
68
  });
68
69
  export {
69
70
  C as H
package/dist/Header.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use client"
2
2
  /* */
3
- import { H as e } from "./Header-DUWPZjAq.js";
3
+ import { H as e } from "./Header-DvtpqjDj.js";
4
4
  export {
5
5
  e as Header,
6
6
  e as default
package/dist/List.js CHANGED
@@ -29,7 +29,7 @@ import "./context-Cf7tqFtF.js";
29
29
  import { u as at } from "./useOnChange-C1Quwyuz.js";
30
30
  import { S as it } from "./SearchField-DstUFmq4.js";
31
31
  import { H as K } from "./Heading-BEC6iPfF.js";
32
- import { S as nt } from "./Section-DTR9rFAc.js";
32
+ import { S as nt } from "./Section-B0hiMFoD.js";
33
33
  import { I as rt } from "./IconSettings-CisOFpPV.js";
34
34
  import { getProperty as ot } from "dot-prop";
35
35
  import { hash as pe } from "object-code";
package/dist/Modal.js CHANGED
@@ -12,7 +12,7 @@ import * as n from "react-aria-components";
12
12
  import "mobx";
13
13
  import { u as g } from "./useOverlayController-D8pgx8nV.js";
14
14
  import { O as w } from "./OverlayContextProvider-xvILXWn5.js";
15
- import { H as E } from "./Header-DUWPZjAq.js";
15
+ import { H as E } from "./Header-DvtpqjDj.js";
16
16
  import { A as O } from "./Action-Dp_7RavF.js";
17
17
  import { B as h } from "./Button-DQtavSbo.js";
18
18
  import "@tabler/icons-react";
@@ -10,9 +10,9 @@ import { f as c } from "./flowComponent-DHPUcYyM.js";
10
10
  import { A as C } from "./Activity-CmfZpgOM.js";
11
11
  import * as s from "react-aria-components";
12
12
  import { s as S } from "./ContextMenu.module-BZingr2B.js";
13
- const E = "flow--section", P = {
13
+ const E = "flow--section", v = {
14
14
  section: E
15
- }, g = c(
15
+ }, P = c(
16
16
  "ContextMenuSection",
17
17
  (r) => {
18
18
  const { children: t } = r, o = {
@@ -35,11 +35,12 @@ const E = "flow--section", P = {
35
35
  if (!t)
36
36
  return null;
37
37
  if (m)
38
- return /* @__PURE__ */ e.createElement(g, null, t);
39
- const d = x(P.section, o), n = f(), u = {
38
+ return /* @__PURE__ */ e.createElement(P, null, t);
39
+ const u = x(v.section, o), n = f(), d = {
40
40
  Heading: {
41
41
  level: 2,
42
- id: n
42
+ id: n,
43
+ levelVisual: 4
43
44
  },
44
45
  Header: {
45
46
  renderSectionHeader: !0
@@ -48,7 +49,7 @@ const E = "flow--section", P = {
48
49
  "aria-labelledby": n
49
50
  }
50
51
  };
51
- return /* @__PURE__ */ e.createElement(C, { isActive: a }, /* @__PURE__ */ e.createElement("section", { ...p, className: d, ref: l }, /* @__PURE__ */ e.createElement(i, { props: u, mergeInParentContext: !0 }, t)));
52
+ return /* @__PURE__ */ e.createElement(C, { isActive: a }, /* @__PURE__ */ e.createElement("section", { ...p, className: u, ref: l }, /* @__PURE__ */ e.createElement(i, { props: d, mergeInParentContext: !0 }, t)));
52
53
  });
53
54
  export {
54
55
  b as S
package/dist/Section.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use client"
2
2
  /* */
3
- import { S as t } from "./Section-DTR9rFAc.js";
3
+ import { S as t } from "./Section-B0hiMFoD.js";
4
4
  export {
5
5
  t as Section,
6
6
  t as default
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mittwald/flow-react-components",
3
- "version": "0.1.0-alpha.215",
3
+ "version": "0.1.0-alpha.216",
4
4
  "type": "module",
5
5
  "description": "A React implementation of Flow, mittwald’s design system",
6
6
  "homepage": "https://mittwald.github.io/flow",
@@ -301,7 +301,7 @@
301
301
  "@chakra-ui/live-region": "^2.1.0",
302
302
  "@internationalized/date": "^3.5.5",
303
303
  "@internationalized/string-compiler": "^3.2.4",
304
- "@mittwald/react-tunnel": "^0.1.0-alpha.215",
304
+ "@mittwald/react-tunnel": "^0.1.0-alpha.216",
305
305
  "@mittwald/react-use-promise": "^2.4.0",
306
306
  "@react-aria/utils": "^3.25.2",
307
307
  "@react-types/shared": "^3.24.1",
@@ -327,7 +327,7 @@
327
327
  },
328
328
  "devDependencies": {
329
329
  "@faker-js/faker": "^8.4.1",
330
- "@mittwald/flow-design-tokens": "^0.1.0-alpha.215",
330
+ "@mittwald/flow-design-tokens": "^0.1.0-alpha.216",
331
331
  "@mittwald/react-use-promise": "^2.4.0",
332
332
  "@nx/storybook": "^19.6.4",
333
333
  "@storybook/addon-a11y": "^8.2.9",
@@ -405,5 +405,5 @@
405
405
  "optional": true
406
406
  }
407
407
  },
408
- "gitHead": "507e9bf585c25bb42c3f79828c207f1419bba26f"
408
+ "gitHead": "b23a825034e51b28ba6b382cb82e9fecd8820859"
409
409
  }