@mittwald/flow-react-components 0.1.0-alpha.383 → 0.1.0-alpha.385

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.
@@ -3,80 +3,79 @@
3
3
  import { f as d } from "./flowComponent-BQs9wMX_.js";
4
4
  import e from "react";
5
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";
6
+ import { f as n } from "./FormField.module-CqWpTQKP.js";
8
7
  import "./propsContext-DzAKlmhS.js";
9
- import { PropsContextProvider as E } from "./PropsContextProvider.js";
8
+ import { PropsContextProvider as k } from "./PropsContextProvider.js";
10
9
  import "@react-aria/utils";
11
10
  import "remeda";
12
- import { TunnelProvider as N, TunnelExit as i } from "@mittwald/react-tunnel";
13
- import { F as u } from "./FieldError-B_3nLHFz.js";
11
+ import { TunnelProvider as E, TunnelExit as a } from "@mittwald/react-tunnel";
12
+ import { F as N } from "./FieldError-B_3nLHFz.js";
14
13
  import g from "clsx";
15
14
  import "@tabler/icons-react";
16
15
  import "./Icon--OEo4TjW.js";
17
16
  import { I as b } from "./IconCheck-s8wGBc30.js";
18
- import { C as w } from "./ClearPropsContext-CUvsbMn8.js";
17
+ import { C as u } from "./ClearPropsContext-CUvsbMn8.js";
19
18
  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 = {
19
+ const z = "flow--segmented-control", w = "flow--segmented-control--segments", x = "flow--segmented-control--segmented-control-container", S = "flow--segmented-control--segment", o = {
21
20
  segmentedControl: z,
22
- segments: x,
23
- segmentedControlContainer: S,
21
+ segments: w,
22
+ segmentedControlContainer: x,
24
23
  "container-breakpoint-size-xs": "flow--segmented-control--container-breakpoint-size-xs",
25
- segment: h,
24
+ segment: S,
26
25
  "container-breakpoint-size-s": "flow--segmented-control--container-breakpoint-size-s",
27
26
  "container-breakpoint-size-m": "flow--segmented-control--container-breakpoint-size-m",
28
27
  "container-breakpoint-size-l": "flow--segmented-control--container-breakpoint-size-l",
29
28
  "container-breakpoint-size-xl": "flow--segmented-control--container-breakpoint-size-xl"
30
- }, M = d("SegmentedControl", (o) => {
29
+ }, h = (t) => `container-breakpoint-size-${t}`, K = d("SegmentedControl", (t) => {
31
30
  const {
32
31
  children: r,
33
32
  className: s,
34
33
  containerBreakpointSize: m = "m",
35
34
  refProp: l,
36
- ...a
37
- } = o, f = g(
38
- t.formField,
39
- n.segmentedControlContainer,
35
+ ...i
36
+ } = t, f = g(
37
+ n.formField,
38
+ o.segmentedControlContainer,
40
39
  s,
41
- n[k(m)]
40
+ o[h(m)]
42
41
  ), C = {
43
42
  Label: {
44
- className: t.label
43
+ className: n.label
45
44
  },
46
45
  FieldDescription: {
47
- className: t.fieldDescription,
46
+ className: n.fieldDescription,
48
47
  tunnelId: "fieldDescription"
49
48
  },
50
49
  FieldError: {
51
- className: t.customFieldError,
50
+ className: n.customFieldError,
52
51
  tunnelId: "fieldError"
53
52
  },
54
53
  Segment: {
55
54
  tunnelId: "segments",
56
- className: n.segment
55
+ className: o.segment
57
56
  }
58
57
  };
59
- return /* @__PURE__ */ e.createElement(p.RadioGroup, { ...a, className: f, ref: l }, /* @__PURE__ */ e.createElement(N, null, /* @__PURE__ */ e.createElement(
60
- E,
58
+ return /* @__PURE__ */ e.createElement(p.RadioGroup, { ...i, className: f, ref: l }, /* @__PURE__ */ e.createElement(E, null, /* @__PURE__ */ e.createElement(
59
+ k,
61
60
  {
62
61
  dependencies: ["segment"],
63
62
  props: C,
64
63
  mergeInParentContext: !0
65
64
  },
66
65
  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 }));
66
+ /* @__PURE__ */ e.createElement("div", { className: o.segmentedControl }, /* @__PURE__ */ e.createElement("div", { className: o.segments }, /* @__PURE__ */ e.createElement(a, { id: "segments" }))),
67
+ /* @__PURE__ */ e.createElement(a, { id: "fieldDescription" }),
68
+ /* @__PURE__ */ e.createElement(a, { id: "fieldError" })
69
+ )), /* @__PURE__ */ e.createElement(N, { className: n.fieldError }));
71
70
  }), F = "flow--segmented-control--segment", P = "flow--segmented-control--segment--checkmark", c = {
72
71
  segment: F,
73
72
  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 })));
73
+ }, M = d("Segment", (t) => {
74
+ const { children: r, className: s, refProp: m, ...l } = t, i = g(c.segment, s);
75
+ return /* @__PURE__ */ e.createElement(u, null, /* @__PURE__ */ e.createElement(p.Radio, { ...l, className: i, ref: m }, r, /* @__PURE__ */ e.createElement(b, { className: c.checkmark })));
77
76
  });
78
77
  export {
79
- O as Segment,
80
- M as SegmentedControl,
81
- M as default
78
+ M as Segment,
79
+ K as SegmentedControl,
80
+ K as default
82
81
  };