@mittwald/flow-react-components 0.1.0-alpha.307 → 0.1.0-alpha.309

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 (126) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/css/Badge.css +1 -1
  3. package/dist/css/RadioGroup.css +1 -1
  4. package/dist/css/SegmentedControl.css +1 -0
  5. package/dist/css/globals.css +1 -1
  6. package/dist/js/{Accordion-CLh-WVKQ.js → Accordion-B5k7dJpn.js} +7 -7
  7. package/dist/js/Accordion.js +1 -1
  8. package/dist/js/{Action-CTsmaTAj.js → Action-CiJBykBu.js} +2 -2
  9. package/dist/js/Action.js +1 -1
  10. package/dist/js/{ActionGroup-BSMe9-_g.js → ActionGroup-DqTdnFoM.js} +7 -7
  11. package/dist/js/ActionGroup.js +1 -1
  12. package/dist/js/Alert.js +6 -6
  13. package/dist/js/AlertBadge.js +3 -3
  14. package/dist/js/{AlertIcon-DVhG5kft.js → AlertIcon-4pw8iuBh.js} +4 -4
  15. package/dist/js/AlertIcon.js +1 -1
  16. package/dist/js/Avatar.js +6 -6
  17. package/dist/js/{Badge-A_AVQhYv.js → Badge-Bz0TmmU0.js} +8 -8
  18. package/dist/js/Badge.js +1 -1
  19. package/dist/js/Breadcrumb.js +3 -3
  20. package/dist/js/{Button-2HD10hUM.js → Button-a4Hq_zmE.js} +6 -6
  21. package/dist/js/Button.js +1 -1
  22. package/dist/js/{CalendarHeader-B_wBEdu9.js → CalendarHeader-o7J1eLg1.js} +4 -4
  23. package/dist/js/{Checkbox-bubWvoY0.js → Checkbox-B8cVD_TG.js} +4 -4
  24. package/dist/js/Checkbox.js +1 -1
  25. package/dist/js/{CheckboxButton-TQpHIv1l.js → CheckboxButton-COo3XHBr.js} +6 -6
  26. package/dist/js/CheckboxButton.js +1 -1
  27. package/dist/js/CheckboxGroup.js +6 -6
  28. package/dist/js/CodeBlock.js +1 -1
  29. package/dist/js/{Content-B981TFby.js → Content-ytee2WFF.js} +1 -1
  30. package/dist/js/Content.js +1 -1
  31. package/dist/js/ContextMenu.js +3 -3
  32. package/dist/js/{ContextMenuTrigger-CoquhvdC.js → ContextMenuTrigger-Ciwiz8WT.js} +5 -5
  33. package/dist/js/ContextualHelp.js +8 -8
  34. package/dist/js/{CopyButton-BXC9KLjg.js → CopyButton-rkjTnjDf.js} +5 -5
  35. package/dist/js/CopyButton.js +1 -1
  36. package/dist/js/CounterBadge.js +1 -1
  37. package/dist/js/DatePicker.js +8 -8
  38. package/dist/js/DateRangePicker.js +8 -8
  39. package/dist/js/{FieldDescription-DHpNcxEx.js → FieldDescription-Cj-qCYxv.js} +2 -2
  40. package/dist/js/FieldDescription.js +1 -1
  41. package/dist/js/{FieldError-CHLQJ4Gj.js → FieldError-BZ6oyvAN.js} +3 -3
  42. package/dist/js/FieldError.js +1 -1
  43. package/dist/js/{Header-BBMzw1aI.js → Header-Bry5NM9X.js} +2 -2
  44. package/dist/js/Header.js +1 -1
  45. package/dist/js/HeaderNavigation.js +5 -5
  46. package/dist/js/{Heading-0QgZ0l4d.js → Heading-pQpU1iQY.js} +7 -7
  47. package/dist/js/Heading.js +1 -1
  48. package/dist/js/{Icon-C4X3yGm5.js → Icon-C3JkDOTi.js} +1 -1
  49. package/dist/js/Icon.js +1 -1
  50. package/dist/js/{IconCalendar-D2Tj_EMm.js → IconCalendar-CXEqxrD-.js} +1 -1
  51. package/dist/js/{IconCheck-DekklS7k.js → IconCheck-B49auJJP.js} +1 -1
  52. package/dist/js/{IconCheckboxEmpty-CfjSEpzD.js → IconCheckboxEmpty-CC7q-vMC.js} +1 -1
  53. package/dist/js/{IconCheckboxIndeterminate-DZmFq0tz.js → IconCheckboxIndeterminate-Bc54gPFD.js} +1 -1
  54. package/dist/js/{IconChevronDown-CZczuUPE.js → IconChevronDown-Cr-rCT6d.js} +1 -1
  55. package/dist/js/{IconChevronRight-YIS8aZq-.js → IconChevronRight-35lfOS6U.js} +1 -1
  56. package/dist/js/{IconChevronUp-CqIMOmST.js → IconChevronUp-DI1A2wmc.js} +1 -1
  57. package/dist/js/{IconClose-e8kUonqZ.js → IconClose-GXU9h7Kw.js} +1 -1
  58. package/dist/js/{IconContextMenu-CJrHGK7Z.js → IconContextMenu-BpfOb36j.js} +1 -1
  59. package/dist/js/{IconCopy-ZnjfAd5h.js → IconCopy-D3-038qg.js} +1 -1
  60. package/dist/js/{IconDanger-CyNGm5Up.js → IconDanger-m38r1QkL.js} +1 -1
  61. package/dist/js/{IconExternalLink-N3R0tAsR.js → IconExternalLink-QotyR7i7.js} +1 -1
  62. package/dist/js/{IconInfo-1rd0-Xxv.js → IconInfo-CmzJdfyz.js} +1 -1
  63. package/dist/js/{IconPending-CuEvSKSd.js → IconPending-CfmgrRZl.js} +1 -1
  64. package/dist/js/{IconPlus-DwSox2Ic.js → IconPlus-CYExXr8n.js} +1 -1
  65. package/dist/js/{IconRadioOn-g1K-YraZ.js → IconRadioOn-BQIVoyg4.js} +1 -1
  66. package/dist/js/{IconSearch-BvRfybT9.js → IconSearch-ph_8JDDS.js} +1 -1
  67. package/dist/js/{IconSucceeded-Cvd1w6gm.js → IconSucceeded-BHReEzlW.js} +1 -1
  68. package/dist/js/{IconView-CCa_Jcj-.js → IconView-BvWozvJX.js} +1 -1
  69. package/dist/js/{IconWarning-Do0iVJtZ.js → IconWarning-BSzhRWnw.js} +1 -1
  70. package/dist/js/Icons.js +21 -21
  71. package/dist/js/{IllustratedMessage-CeYE8bxs.js → IllustratedMessage-C5caKyh6.js} +1 -1
  72. package/dist/js/IllustratedMessage.js +1 -1
  73. package/dist/js/Image.js +1 -1
  74. package/dist/js/Initials.js +1 -1
  75. package/dist/js/{Label-CR5X8sAG.js → Label-BvdZBeD-.js} +1 -1
  76. package/dist/js/Label.js +1 -1
  77. package/dist/js/LabeledValue.js +4 -4
  78. package/dist/js/LayoutCard.js +6 -6
  79. package/dist/js/{Link-ZeLBPQ3N.js → Link-tZe6DMG9.js} +7 -7
  80. package/dist/js/Link.js +1 -1
  81. package/dist/js/List.js +16 -16
  82. package/dist/js/{LoadingSpinner-Bgq-8G86.js → LoadingSpinner-CAmMgo37.js} +2 -2
  83. package/dist/js/LoadingSpinner.js +1 -1
  84. package/dist/js/{MenuItem-Dx4r1r63.js → MenuItem-DljCXugV.js} +16 -16
  85. package/dist/js/MenuItem.js +1 -1
  86. package/dist/js/Modal.js +8 -8
  87. package/dist/js/Navigation.js +6 -6
  88. package/dist/js/Notification.js +10 -10
  89. package/dist/js/NumberField.js +11 -11
  90. package/dist/js/{OverlayTrigger-bD8_mPel.js → OverlayTrigger-BmB63e4e.js} +1 -1
  91. package/dist/js/{Popover-BzuJdYCR.js → Popover-C4jNPNSb.js} +2 -2
  92. package/dist/js/Popover.js +2 -2
  93. package/dist/js/ProgressBar.js +1 -1
  94. package/dist/js/PropsContextProvider.js +60 -5
  95. package/dist/js/RadioGroup.js +52 -94
  96. package/dist/js/{SearchField-b883cfcL.js → SearchField-Bg9uM0FY.js} +11 -11
  97. package/dist/js/SearchField.js +1 -1
  98. package/dist/js/{Section-D8qboOw9.js → Section-DA5veGmg.js} +6 -6
  99. package/dist/js/Section.js +1 -1
  100. package/dist/js/SegmentedControl.js +82 -0
  101. package/dist/js/Select.js +7 -7
  102. package/dist/js/Slider.js +5 -5
  103. package/dist/js/Switch.js +5 -5
  104. package/dist/js/Tabs.js +12 -12
  105. package/dist/js/{Text-CZaLuq4c.js → Text-CtABaZjp.js} +10 -10
  106. package/dist/js/Text.js +1 -1
  107. package/dist/js/TextArea.js +2 -2
  108. package/dist/js/TextField.js +2 -2
  109. package/dist/js/{TextFieldBase-DGpU7liT.js → TextFieldBase-CjA7G_xB.js} +8 -8
  110. package/dist/js/TimeField.js +6 -6
  111. package/dist/js/all.css +1 -1
  112. package/dist/js/{flowComponent-C_3mQGhG.js → flowComponent-E-Gp2Toe.js} +8 -6
  113. package/dist/js/react-hook-form.js +25 -24
  114. package/dist/js/types/components/RadioGroup/RadioGroup.d.ts +1 -3
  115. package/dist/js/types/components/RadioGroup/stories/Default.stories.d.ts +0 -3
  116. package/dist/js/types/components/SegmentedControl/SegmentedControl.d.ts +7 -0
  117. package/dist/js/types/components/SegmentedControl/components/Segment/Segment.d.ts +7 -0
  118. package/dist/js/types/components/SegmentedControl/components/Segment/index.d.ts +3 -0
  119. package/dist/js/types/components/SegmentedControl/index.d.ts +4 -0
  120. package/dist/js/types/components/SegmentedControl/stories/Default.stories.d.ts +8 -0
  121. package/dist/js/types/components/propTypes/index.d.ts +4 -0
  122. package/dist/js/types/lib/controller/overlay/context.d.ts +2 -0
  123. package/dist/js/types/lib/propsContext/propsContext.d.ts +4 -0
  124. package/dist/js/types/lib/slotContext/slotContext.d.ts +2 -0
  125. package/package.json +9 -4
  126. package/dist/js/PropsContextProvider-C6Z4XGp6.js +0 -64
@@ -0,0 +1,82 @@
1
+ "use client"
2
+ /* */
3
+ import { f as d } from "./flowComponent-E-Gp2Toe.js";
4
+ import e from "react";
5
+ import * as p from "react-aria-components";
6
+ import { f as t } from "./FormField.module-CqWpTQKP.js";
7
+ import { g as k } from "./getContainerBreakpointSizeClassName-BrcFDcCY.js";
8
+ import "./propsContext-DzAKlmhS.js";
9
+ import { PropsContextProvider as E } from "./PropsContextProvider.js";
10
+ import "@react-aria/utils";
11
+ import "remeda";
12
+ import { TunnelProvider as N, TunnelExit as i } from "@mittwald/react-tunnel";
13
+ import { F as u } from "./FieldError-BZ6oyvAN.js";
14
+ import g from "clsx";
15
+ import "@tabler/icons-react";
16
+ import "./Icon-C3JkDOTi.js";
17
+ import { I as b } from "./IconCheck-B49auJJP.js";
18
+ import { C as w } from "./ClearPropsContext-CUvsbMn8.js";
19
+ import "dot-prop";
20
+ const z = "flow--segmented-control", x = "flow--segmented-control--segments", S = "flow--segmented-control--segmented-control-container", h = "flow--segmented-control--segment", n = {
21
+ segmentedControl: z,
22
+ segments: x,
23
+ segmentedControlContainer: S,
24
+ "container-breakpoint-size-xs": "flow--segmented-control--container-breakpoint-size-xs",
25
+ segment: h,
26
+ "container-breakpoint-size-s": "flow--segmented-control--container-breakpoint-size-s",
27
+ "container-breakpoint-size-m": "flow--segmented-control--container-breakpoint-size-m",
28
+ "container-breakpoint-size-l": "flow--segmented-control--container-breakpoint-size-l",
29
+ "container-breakpoint-size-xl": "flow--segmented-control--container-breakpoint-size-xl"
30
+ }, M = d("SegmentedControl", (o) => {
31
+ const {
32
+ children: r,
33
+ className: s,
34
+ containerBreakpointSize: m = "m",
35
+ refProp: l,
36
+ ...a
37
+ } = o, f = g(
38
+ t.formField,
39
+ n.segmentedControlContainer,
40
+ s,
41
+ n[k(m)]
42
+ ), C = {
43
+ Label: {
44
+ className: t.label
45
+ },
46
+ FieldDescription: {
47
+ className: t.fieldDescription,
48
+ tunnelId: "fieldDescription"
49
+ },
50
+ FieldError: {
51
+ className: t.customFieldError,
52
+ tunnelId: "fieldError"
53
+ },
54
+ Segment: {
55
+ tunnelId: "segments",
56
+ className: n.segment
57
+ }
58
+ };
59
+ return /* @__PURE__ */ e.createElement(p.RadioGroup, { ...a, className: f, ref: l }, /* @__PURE__ */ e.createElement(N, null, /* @__PURE__ */ e.createElement(
60
+ E,
61
+ {
62
+ dependencies: ["segment"],
63
+ props: C,
64
+ mergeInParentContext: !0
65
+ },
66
+ r,
67
+ /* @__PURE__ */ e.createElement("div", { className: n.segmentedControl }, /* @__PURE__ */ e.createElement("div", { className: n.segments }, /* @__PURE__ */ e.createElement(i, { id: "segments" }))),
68
+ /* @__PURE__ */ e.createElement(i, { id: "fieldDescription" }),
69
+ /* @__PURE__ */ e.createElement(i, { id: "fieldError" })
70
+ )), /* @__PURE__ */ e.createElement(u, { className: t.fieldError }));
71
+ }), F = "flow--segmented-control--segment", P = "flow--segmented-control--segment--checkmark", c = {
72
+ segment: F,
73
+ checkmark: P
74
+ }, O = d("Segment", (o) => {
75
+ const { children: r, className: s, refProp: m, ...l } = o, a = g(c.segment, s);
76
+ return /* @__PURE__ */ e.createElement(w, null, /* @__PURE__ */ e.createElement(p.Radio, { ...l, className: a, ref: m }, r, /* @__PURE__ */ e.createElement(b, { className: c.checkmark })));
77
+ });
78
+ export {
79
+ O as Segment,
80
+ M as SegmentedControl,
81
+ M as default
82
+ };
package/dist/js/Select.js CHANGED
@@ -3,21 +3,21 @@
3
3
  import e from "react";
4
4
  import * as i from "react-aria-components";
5
5
  import "./propsContext-DzAKlmhS.js";
6
- import { P as h } from "./PropsContextProvider-C6Z4XGp6.js";
6
+ import { PropsContextProvider as h } from "./PropsContextProvider.js";
7
7
  import "@react-aria/utils";
8
8
  import "remeda";
9
9
  import { f as c } from "./FormField.module-CqWpTQKP.js";
10
- import { F as w } from "./FieldError-CHLQJ4Gj.js";
10
+ import { F as w } from "./FieldError-BZ6oyvAN.js";
11
11
  import f from "clsx";
12
12
  import "@tabler/icons-react";
13
- import "./Icon-C4X3yGm5.js";
14
- import { I as F } from "./IconChevronDown-CZczuUPE.js";
15
- import { f as E } from "./flowComponent-C_3mQGhG.js";
16
- import { P } from "./Popover-BzuJdYCR.js";
13
+ import "./Icon-C3JkDOTi.js";
14
+ import { I as F } from "./IconChevronDown-Cr-rCT6d.js";
15
+ import { f as E } from "./flowComponent-E-Gp2Toe.js";
16
+ import { P } from "./Popover-C4jNPNSb.js";
17
17
  import "mobx";
18
18
  import { u as C } from "./useOverlayController-D8pgx8nV.js";
19
19
  import { TunnelProvider as y, TunnelExit as I } from "@mittwald/react-tunnel";
20
- import { O as B } from "./OverlayTrigger-bD8_mPel.js";
20
+ import { O as B } from "./OverlayTrigger-BmB63e4e.js";
21
21
  const D = "flow--select", L = "flow--select--toggle", u = {
22
22
  select: D,
23
23
  toggle: L
package/dist/js/Slider.js CHANGED
@@ -1,17 +1,17 @@
1
1
  "use client"
2
2
  /* */
3
3
  import e from "react";
4
- import { f as E } from "./flowComponent-C_3mQGhG.js";
4
+ import { f as E } from "./flowComponent-E-Gp2Toe.js";
5
5
  import * as n from "react-aria-components";
6
6
  import h from "clsx";
7
7
  import "./propsContext-DzAKlmhS.js";
8
- import { P as v } from "./PropsContextProvider-C6Z4XGp6.js";
8
+ import { PropsContextProvider as v } from "./PropsContextProvider.js";
9
9
  import "@react-aria/utils";
10
10
  import "remeda";
11
- import { B as i } from "./Button-2HD10hUM.js";
11
+ import { B as i } from "./Button-a4Hq_zmE.js";
12
12
  import "@tabler/icons-react";
13
- import "./Icon-C4X3yGm5.js";
14
- import { I as w, a as N } from "./IconPlus-DwSox2Ic.js";
13
+ import "./Icon-C3JkDOTi.js";
14
+ import { I as w, a as N } from "./IconPlus-CYExXr8n.js";
15
15
  import { useLocalizedStringFormatter as k } from "react-aria";
16
16
  const x = "flow--slider", P = "flow--slider--text", S = "flow--slider--value", T = "flow--slider--track", g = "flow--slider--fill", y = "flow--slider--initial-marker", F = "flow--slider--thumb", I = "flow--slider--increment", M = "flow--slider--decrement", C = "flow--slider--disabled", r = {
17
17
  slider: x,
package/dist/js/Switch.js CHANGED
@@ -4,16 +4,16 @@ import e from "react";
4
4
  import * as n from "react-aria-components";
5
5
  import f from "clsx";
6
6
  import "@tabler/icons-react";
7
- import "./Icon-C4X3yGm5.js";
8
- import { I as p } from "./IconCheck-DekklS7k.js";
9
- import { I as h } from "./IconClose-e8kUonqZ.js";
10
- import { L as w } from "./Label-CR5X8sAG.js";
7
+ import "./Icon-C3JkDOTi.js";
8
+ import { I as p } from "./IconCheck-B49auJJP.js";
9
+ import { I as h } from "./IconClose-GXU9h7Kw.js";
10
+ import { L as w } from "./Label-BvdZBeD-.js";
11
11
  import { C as d } from "./ClearPropsContext-CUvsbMn8.js";
12
12
  import "./propsContext-DzAKlmhS.js";
13
13
  import "@react-aria/utils";
14
14
  import "remeda";
15
15
  import "dot-prop";
16
- import { f as b } from "./flowComponent-C_3mQGhG.js";
16
+ import { f as b } from "./flowComponent-E-Gp2Toe.js";
17
17
  const E = "flow--switch--track", C = "flow--switch--handle", N = "flow--switch--label", t = {
18
18
  switch: "flow--switch",
19
19
  "label-leading": "flow--switch--label-leading",
package/dist/js/Tabs.js CHANGED
@@ -1,20 +1,20 @@
1
1
  "use client"
2
2
  /* */
3
- import e, { useRef as h, useState as w, useEffect as M, useId as N, createContext as I, useContext as P } from "react";
3
+ import e, { useRef as h, useState as w, useEffect as M, useId as N, createContext as I, useContext as y } from "react";
4
4
  import * as C from "react-aria-components";
5
5
  import u from "clsx";
6
- import { TunnelExit as E, TunnelProvider as y, TunnelEntry as f } from "@mittwald/react-tunnel";
7
- import { f as O } from "./flowComponent-C_3mQGhG.js";
6
+ import { TunnelExit as E, TunnelProvider as P, TunnelEntry as f } from "@mittwald/react-tunnel";
7
+ import { f as O } from "./flowComponent-E-Gp2Toe.js";
8
8
  import { useCallbackRef as S } from "use-callback-ref";
9
- import { a as A, C as B } from "./ContextMenuTrigger-CoquhvdC.js";
10
- import { M as K } from "./MenuItem-Dx4r1r63.js";
11
- import { B as L } from "./Button-2HD10hUM.js";
9
+ import { a as A, C as B } from "./ContextMenuTrigger-Ciwiz8WT.js";
10
+ import { M as K } from "./MenuItem-DljCXugV.js";
11
+ import { B as L } from "./Button-a4Hq_zmE.js";
12
12
  import "@tabler/icons-react";
13
- import "./Icon-C4X3yGm5.js";
14
- import { I as W } from "./IconContextMenu-CJrHGK7Z.js";
15
- import { T as F } from "./Text-CZaLuq4c.js";
13
+ import "./Icon-C3JkDOTi.js";
14
+ import { I as W } from "./IconContextMenu-BpfOb36j.js";
15
+ import { T as F } from "./Text-CtABaZjp.js";
16
16
  import "./propsContext-DzAKlmhS.js";
17
- import { P as R } from "./PropsContextProvider-C6Z4XGp6.js";
17
+ import { PropsContextProvider as R } from "./PropsContextProvider.js";
18
18
  import "@react-aria/utils";
19
19
  import "remeda";
20
20
  import { A as x } from "./Activity-CmfZpgOM.js";
@@ -91,7 +91,7 @@ const $ = "flow--tabs", k = "flow--tabs--list", j = {
91
91
  } = s, t = u(j.tabs, r), [i, m] = w(
92
92
  o
93
93
  );
94
- return /* @__PURE__ */ e.createElement(y, null, n, /* @__PURE__ */ e.createElement(
94
+ return /* @__PURE__ */ e.createElement(P, null, n, /* @__PURE__ */ e.createElement(
95
95
  C.Tabs,
96
96
  {
97
97
  slot: null,
@@ -114,7 +114,7 @@ const $ = "flow--tabs", k = "flow--tabs--list", j = {
114
114
  ));
115
115
  }), g = I({
116
116
  id: "undefined"
117
- }), Y = () => P(g), Z = g.Provider, ve = (s) => {
117
+ }), Y = () => y(g), Z = g.Provider, ve = (s) => {
118
118
  const { children: n, className: r, ...o } = s, { id: a } = Y(), c = u(p.tabTitle, r);
119
119
  return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(f, { id: "Titles" }, /* @__PURE__ */ e.createElement(C.Tab, { ...o, id: a, className: c }, (l) => /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(F, { emulateBoldWidth: !0 }, /* @__PURE__ */ e.createElement("span", { className: p.text }, n)), /* @__PURE__ */ e.createElement(f, { id: "ActiveTitle" }, l.isSelected && n)))), /* @__PURE__ */ e.createElement(f, { id: "ContextMenuItems" }, /* @__PURE__ */ e.createElement(K, { className: p.menuItem, id: a }, n)));
120
120
  }, _ = "flow--tabs--tab--tab-panel", ee = {
@@ -3,16 +3,16 @@
3
3
  import t from "react";
4
4
  import * as E from "react-aria-components";
5
5
  import { C as u } from "./ClearPropsContext-CUvsbMn8.js";
6
- import { P as T } from "./PropsContextProvider-C6Z4XGp6.js";
6
+ import { PropsContextProvider as T } from "./PropsContextProvider.js";
7
7
  import "@react-aria/utils";
8
8
  import "./propsContext-DzAKlmhS.js";
9
9
  import "remeda";
10
10
  import C from "invariant";
11
- import { f as h } from "./flowComponent-C_3mQGhG.js";
12
- import { E as P } from "./EmulatedBoldText-Dtox8Wd1.js";
13
- import { W as g } from "./Wrap-DGT1h1o3.js";
14
- import y from "clsx";
15
- const k = "flow--text", w = "flow--text--light", N = "flow--text--dark", l = {
11
+ import { f as h } from "./flowComponent-E-Gp2Toe.js";
12
+ import { E as g } from "./EmulatedBoldText-Dtox8Wd1.js";
13
+ import { W as y } from "./Wrap-DGT1h1o3.js";
14
+ import P from "clsx";
15
+ const k = "flow--text", w = "flow--text--light", N = "flow--text--dark", s = {
16
16
  text: k,
17
17
  light: w,
18
18
  dark: N
@@ -25,19 +25,19 @@ const k = "flow--text", w = "flow--text--light", N = "flow--text--dark", l = {
25
25
  refProp: r,
26
26
  color: n,
27
27
  ...c
28
- } = o, f = y(l.text, n && l[n], i), m = { ...c, className: f }, x = {
28
+ } = o, f = P(s.text, n && s[n], i), m = { ...c, className: f }, x = {
29
29
  Link: {
30
30
  inline: !0
31
31
  }
32
- }, s = /* @__PURE__ */ t.createElement(T, { props: x }, /* @__PURE__ */ t.createElement(g, { if: p }, /* @__PURE__ */ t.createElement(P, null, a)));
32
+ }, l = /* @__PURE__ */ t.createElement(T, { props: x }, /* @__PURE__ */ t.createElement(y, { if: p }, /* @__PURE__ */ t.createElement(g, null, a)));
33
33
  if (!o.slot) {
34
34
  const d = e;
35
- return /* @__PURE__ */ t.createElement(d, { ...m, ref: r }, s);
35
+ return /* @__PURE__ */ t.createElement(d, { ...m, ref: r }, l);
36
36
  }
37
37
  return C(
38
38
  typeof e == "string",
39
39
  "'elementType' in Text component must be of type string"
40
- ), /* @__PURE__ */ t.createElement(u, null, /* @__PURE__ */ t.createElement(E.Text, { ...m, elementType: e, ref: r }, s));
40
+ ), /* @__PURE__ */ t.createElement(u, null, /* @__PURE__ */ t.createElement(E.Text, { ...m, elementType: e, ref: r }, l));
41
41
  });
42
42
  export {
43
43
  F as T
package/dist/js/Text.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use client"
2
2
  /* */
3
- import { T as a } from "./Text-CZaLuq4c.js";
3
+ import { T as a } from "./Text-CtABaZjp.js";
4
4
  export {
5
5
  a as Text,
6
6
  a as default
@@ -2,13 +2,13 @@
2
2
  /* */
3
3
  import o, { useRef as h } from "react";
4
4
  import * as x from "react-aria-components";
5
- import { T as g } from "./TextFieldBase-DGpU7liT.js";
5
+ import { T as g } from "./TextFieldBase-CjA7G_xB.js";
6
6
  import { C as u } from "./ClearPropsContext-CUvsbMn8.js";
7
7
  import "./propsContext-DzAKlmhS.js";
8
8
  import { mergeRefs as d } from "@react-aria/utils";
9
9
  import "remeda";
10
10
  import "dot-prop";
11
- import { f as A } from "./flowComponent-C_3mQGhG.js";
11
+ import { f as A } from "./flowComponent-E-Gp2Toe.js";
12
12
  const H = "flow--text-area", R = {
13
13
  textArea: H
14
14
  }, B = A("TextArea", (n) => {
@@ -2,13 +2,13 @@
2
2
  /* */
3
3
  import e from "react";
4
4
  import * as s from "react-aria-components";
5
- import { T as a } from "./TextFieldBase-DGpU7liT.js";
5
+ import { T as a } from "./TextFieldBase-CjA7G_xB.js";
6
6
  import { C as n } from "./ClearPropsContext-CUvsbMn8.js";
7
7
  import "./propsContext-DzAKlmhS.js";
8
8
  import "@react-aria/utils";
9
9
  import "remeda";
10
10
  import "dot-prop";
11
- import { f as p } from "./flowComponent-C_3mQGhG.js";
11
+ import { f as p } from "./flowComponent-E-Gp2Toe.js";
12
12
  const c = "flow--text-field", f = {
13
13
  textField: c
14
14
  }, w = p("TextField", (t) => {
@@ -5,14 +5,14 @@ import * as N from "react-aria-components";
5
5
  import { f as t } from "./FormField.module-CqWpTQKP.js";
6
6
  import $ from "clsx";
7
7
  import { C as D } from "./ClearPropsContext-CUvsbMn8.js";
8
- import { P as B } from "./PropsContextProvider-C6Z4XGp6.js";
8
+ import { PropsContextProvider as B } from "./PropsContextProvider.js";
9
9
  import "@react-aria/utils";
10
10
  import "./propsContext-DzAKlmhS.js";
11
11
  import "remeda";
12
- import { F as P } from "./FieldError-CHLQJ4Gj.js";
13
- import { F as R } from "./FieldDescription-DHpNcxEx.js";
14
- import { useLocalizedStringFormatter as g } from "react-aria";
15
- const L = { "de-DE": {
12
+ import { F as R } from "./FieldError-BZ6oyvAN.js";
13
+ import { F as g } from "./FieldDescription-Cj-qCYxv.js";
14
+ import { useLocalizedStringFormatter as L } from "react-aria";
15
+ const P = { "de-DE": {
16
16
  "textFieldBase.characters": (e, r) => `${r.select({ 0: () => `${e.count}`, other: () => `${e.count}/${e.maxCount}` }, e.maxCount)} Zeichen`
17
17
  }, "en-EN": {
18
18
  "textFieldBase.characters": (e, r) => `${r.select({ 0: () => `${e.count}`, other: () => `${e.count}/${e.maxCount}` }, e.maxCount)} characters`
@@ -21,7 +21,7 @@ const L = { "de-DE": {
21
21
  var n;
22
22
  const { children: s, className: i, input: l, showCharacterCount: a, ...m } = e, [d, u] = E(
23
23
  ((n = e.value) == null ? void 0 : n.length) ?? 0
24
- ), f = $(t.formField, i), h = g(L), C = {
24
+ ), f = $(t.formField, i), h = L(P), C = {
25
25
  Label: {
26
26
  className: t.label,
27
27
  optional: !e.isRequired
@@ -50,8 +50,8 @@ const L = { "de-DE": {
50
50
  },
51
51
  l,
52
52
  /* @__PURE__ */ o.createElement(B, { props: C }, s),
53
- a && /* @__PURE__ */ o.createElement(R, { className: t.fieldDescription }, x),
54
- /* @__PURE__ */ o.createElement(P, { className: t.fieldError })
53
+ a && /* @__PURE__ */ o.createElement(g, { className: t.fieldDescription }, x),
54
+ /* @__PURE__ */ o.createElement(R, { className: t.fieldError })
55
55
  ));
56
56
  }
57
57
  );
@@ -2,17 +2,17 @@
2
2
  /* */
3
3
  import e from "react";
4
4
  import * as r from "react-aria-components";
5
- import { f as p } from "./flowComponent-C_3mQGhG.js";
5
+ import { f as p } from "./flowComponent-E-Gp2Toe.js";
6
6
  import "./propsContext-DzAKlmhS.js";
7
- import { P as d } from "./PropsContextProvider-C6Z4XGp6.js";
7
+ import { PropsContextProvider as d } from "./PropsContextProvider.js";
8
8
  import "@react-aria/utils";
9
9
  import "remeda";
10
10
  import { f as t } from "./FormField.module-CqWpTQKP.js";
11
- import { F as f } from "./FieldError-CHLQJ4Gj.js";
11
+ import { F as f } from "./FieldError-BZ6oyvAN.js";
12
12
  import u from "clsx";
13
13
  const F = "flow--time-field--date-input", E = {
14
14
  dateInput: F
15
- }, g = p("TimeField", (o) => {
15
+ }, h = p("TimeField", (o) => {
16
16
  const { children: a, errorMessage: i, className: l, ...s } = o, m = u(t.formField, l), n = {
17
17
  Label: {
18
18
  className: t.label,
@@ -29,6 +29,6 @@ const F = "flow--time-field--date-input", E = {
29
29
  return /* @__PURE__ */ e.createElement(r.TimeField, { hourCycle: 24, className: m, ...s }, /* @__PURE__ */ e.createElement(d, { props: n }, a), /* @__PURE__ */ e.createElement(f, { className: t.fieldError }, i), /* @__PURE__ */ e.createElement(r.DateInput, { className: E.dateInput }, (c) => /* @__PURE__ */ e.createElement(r.DateSegment, { segment: c })));
30
30
  });
31
31
  export {
32
- g as TimeField,
33
- g as default
32
+ h as TimeField,
33
+ h as default
34
34
  };