@mittwald/flow-react-components 0.1.0-alpha.163 → 0.1.0-alpha.166

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.
Files changed (30) hide show
  1. package/dist/ContextMenu.js +2 -2
  2. package/dist/ContextMenu.module-BfwGh62L.js +10 -0
  3. package/dist/{ContextMenuTrigger-BQd2xsku.js → ContextMenuTrigger-D8BGdVFU.js} +28 -30
  4. package/dist/Label-DJKxRIAA.js +34 -0
  5. package/dist/Label.js +1 -1
  6. package/dist/List.js +132 -116
  7. package/dist/NumberField.js +41 -55
  8. package/dist/PropsContextProvider.js +9 -0
  9. package/dist/RadioGroup.js +42 -41
  10. package/dist/Section.js +19 -19
  11. package/dist/Switch.js +1 -1
  12. package/dist/Tabs.js +1 -1
  13. package/dist/getContainerBreakpointSizeClassName-BrcFDcCY.js +6 -0
  14. package/dist/react-hook-form.js +80 -64
  15. package/dist/styles.css +1 -1
  16. package/dist/types/components/ContextMenu/components/ContextMenuSection/ContextMenuSection.d.ts +1 -1
  17. package/dist/types/components/Label/Label.d.ts +1 -0
  18. package/dist/types/components/List/components/Items/ListItem/ListItem.d.ts +2 -2
  19. package/dist/types/components/List/stories/ListItem.stories.d.ts +1 -0
  20. package/dist/types/components/Tabs/components/Tab/context.d.ts +0 -1
  21. package/dist/types/components/propTypes/index.d.ts +2 -1
  22. package/dist/types/integrations/react-hook-form/components/ActionGroupWrapper/SubmitButtonStateProvider.d.ts +7 -0
  23. package/dist/types/integrations/react-hook-form/components/AutoFormResetEffect/AutoFormResetEffect.d.ts +7 -0
  24. package/dist/types/lib/propsContext/dynamicProps/dynamic.d.ts +2 -1
  25. package/dist/types/lib/propsContext/dynamicProps/resolveDynamicProps.d.ts +2 -2
  26. package/dist/types/lib/propsContext/nestedPropsContext/pickPropsContext.d.ts +2 -1
  27. package/dist/types/lib/propsContext/nestedPropsContext/wrapChildrenWithNestedPropsContext.d.ts +2 -2
  28. package/dist/types/lib/propsContext/useProps.d.ts +2 -2
  29. package/package.json +40 -36
  30. package/dist/Label-BlTqklNB.js +0 -32
@@ -1,7 +1,7 @@
1
1
  "use client"
2
2
  /* */
3
- import { C as t } from "./ContextMenuTrigger-BQd2xsku.js";
4
- import { a } from "./ContextMenuTrigger-BQd2xsku.js";
3
+ import { C as t } from "./ContextMenuTrigger-D8BGdVFU.js";
4
+ import { a } from "./ContextMenuTrigger-D8BGdVFU.js";
5
5
  import { M as n } from "./MenuItem-u7V4XOL3.js";
6
6
  export {
7
7
  t as ContextMenu,
@@ -0,0 +1,10 @@
1
+ "use client"
2
+ /* */
3
+ const o = "flow--context-menu", t = "flow--context-menu--section", e = "flow--context-menu--popover", n = {
4
+ contextMenu: o,
5
+ section: t,
6
+ popover: e
7
+ };
8
+ export {
9
+ n as s
10
+ };
@@ -1,8 +1,9 @@
1
1
  "use client"
2
2
  /* */
3
3
  import e from "react";
4
- import * as c from "react-aria-components";
5
- import { f as d } from "./flowComponent-TgbbWDzO.js";
4
+ import * as i from "react-aria-components";
5
+ import { s } from "./ContextMenu.module-BfwGh62L.js";
6
+ import { f as g } from "./flowComponent-TgbbWDzO.js";
6
7
  import { P } from "./Popover-B1m8lc6F.js";
7
8
  import "mobx";
8
9
  import { u as E } from "./useOverlayController-D8N4X2rc.js";
@@ -14,39 +15,36 @@ import "remeda";
14
15
  import { O as T } from "./OverlayContextProvider-DJzKzUwy.js";
15
16
  import { A } from "./Action-DYTtbQCP.js";
16
17
  import { O as h } from "./OverlayTrigger-Bdb65OEJ.js";
17
- const w = "flow--context-menu", F = "flow--context-menu--popover", a = {
18
- contextMenu: w,
19
- popover: F
20
- }, H = d("ContextMenu", (t) => {
18
+ const G = g("ContextMenu", (t) => {
21
19
  const {
22
20
  children: r,
23
21
  onAction: n,
24
22
  selectionMode: o,
25
- selectedKeys: i,
26
- defaultSelectedKeys: m,
23
+ selectedKeys: m,
24
+ defaultSelectedKeys: c,
27
25
  disabledKeys: p,
28
- onSelectionChange: u,
29
- refProp: C,
26
+ onSelectionChange: C,
27
+ refProp: u,
30
28
  controller: v,
31
- ...x
32
- } = t, M = E("ContextMenu", {
29
+ ...f
30
+ } = t, x = E("ContextMenu", {
33
31
  reuseControllerFromContext: !0
34
- }), l = v ?? M, f = o === "navigation" ? "single" : o, s = o === "navigation" ? "navigation" : "control", y = {
32
+ }), l = v ?? x, y = o === "navigation" ? "none" : o, a = o === "navigation" ? "navigation" : "control", M = {
35
33
  MenuItem: {
36
- selectionVariant: s
34
+ selectionVariant: a
37
35
  },
38
36
  Section: {
39
37
  MenuItem: {
40
- selectionVariant: s
38
+ selectionVariant: a
41
39
  },
42
40
  renderContextMenuSection: !0
43
41
  }
44
- }, g = o === "single" || o === "navigation" ? "ContextMenu" : void 0;
42
+ }, d = o === "single" || o === "navigation" ? "ContextMenu" : void 0;
45
43
  return /* @__PURE__ */ e.createElement(O, null, /* @__PURE__ */ e.createElement(
46
44
  P,
47
45
  {
48
- ...x,
49
- className: a.popover,
46
+ ...f,
47
+ className: s.popover,
50
48
  controller: l
51
49
  },
52
50
  /* @__PURE__ */ e.createElement(
@@ -56,34 +54,34 @@ const w = "flow--context-menu", F = "flow--context-menu--popover", a = {
56
54
  controller: l
57
55
  },
58
56
  /* @__PURE__ */ e.createElement(
59
- c.Menu,
57
+ i.Menu,
60
58
  {
61
- className: a.contextMenu,
59
+ className: s.contextMenu,
62
60
  onAction: n,
63
- selectionMode: f,
64
- selectedKeys: i,
65
- defaultSelectedKeys: m,
61
+ selectionMode: y,
62
+ selectedKeys: m,
63
+ defaultSelectedKeys: c,
66
64
  disabledKeys: p,
67
- onSelectionChange: u,
68
- ref: C
65
+ onSelectionChange: C,
66
+ ref: u
69
67
  },
70
- /* @__PURE__ */ e.createElement(S, { props: y }, /* @__PURE__ */ e.createElement(A, { closeOverlay: g }, r))
68
+ /* @__PURE__ */ e.createElement(S, { props: M }, /* @__PURE__ */ e.createElement(A, { closeOverlay: d }, r))
71
69
  )
72
70
  )
73
71
  ));
74
- }), J = (t) => {
72
+ }), H = (t) => {
75
73
  const { children: r, ...n } = t;
76
74
  return /* @__PURE__ */ e.createElement(
77
75
  h,
78
76
  {
79
77
  overlayType: "ContextMenu",
80
78
  ...n,
81
- component: c.MenuTrigger
79
+ component: i.MenuTrigger
82
80
  },
83
81
  r
84
82
  );
85
83
  };
86
84
  export {
87
- H as C,
88
- J as a
85
+ G as C,
86
+ H as a
89
87
  };
@@ -0,0 +1,34 @@
1
+ "use client"
2
+ /* */
3
+ import l from "react";
4
+ import * as f from "react-aria-components";
5
+ import d from "clsx";
6
+ import { C } from "./ClearPropsContext-CUvsbMn8.js";
7
+ import "./propsContext-DzAKlmhS.js";
8
+ import "@react-aria/utils";
9
+ import "remeda";
10
+ import "dot-prop";
11
+ import { useLocalizedStringFormatter as L } from "react-aria";
12
+ import { f as u } from "./flowComponent-TgbbWDzO.js";
13
+ const E = "flow--label", N = "flow--label--disabled", e = {
14
+ label: E,
15
+ disabled: N
16
+ }, w = { "de-DE": {
17
+ "label.optional": "(optional)"
18
+ }, "en-EN": {
19
+ "label.optional": "(optional)"
20
+ } }, A = u("Label", (t) => {
21
+ const {
22
+ children: a,
23
+ className: o,
24
+ optional: r,
25
+ isDisabled: s,
26
+ refProp: i,
27
+ unstyled: n = !1,
28
+ ...m
29
+ } = t, p = L(w), c = n ? o : d(e.label, s && e.disabled, o), b = " " + p.format("label.optional");
30
+ return /* @__PURE__ */ l.createElement(C, null, /* @__PURE__ */ l.createElement(f.Label, { ...m, className: c, ref: i }, a, r && b));
31
+ });
32
+ export {
33
+ A as L
34
+ };
package/dist/Label.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use client"
2
2
  /* */
3
- import { L as e } from "./Label-BlTqklNB.js";
3
+ import { L as e } from "./Label-DJKxRIAA.js";
4
4
  export {
5
5
  e as Label,
6
6
  e as default