@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.
- package/CHANGELOG.md +18 -0
- package/dist/css/Badge.css +1 -1
- package/dist/css/RadioGroup.css +1 -1
- package/dist/css/SegmentedControl.css +1 -0
- package/dist/css/globals.css +1 -1
- package/dist/js/{Accordion-CLh-WVKQ.js → Accordion-B5k7dJpn.js} +7 -7
- package/dist/js/Accordion.js +1 -1
- package/dist/js/{Action-CTsmaTAj.js → Action-CiJBykBu.js} +2 -2
- package/dist/js/Action.js +1 -1
- package/dist/js/{ActionGroup-BSMe9-_g.js → ActionGroup-DqTdnFoM.js} +7 -7
- package/dist/js/ActionGroup.js +1 -1
- package/dist/js/Alert.js +6 -6
- package/dist/js/AlertBadge.js +3 -3
- package/dist/js/{AlertIcon-DVhG5kft.js → AlertIcon-4pw8iuBh.js} +4 -4
- package/dist/js/AlertIcon.js +1 -1
- package/dist/js/Avatar.js +6 -6
- package/dist/js/{Badge-A_AVQhYv.js → Badge-Bz0TmmU0.js} +8 -8
- package/dist/js/Badge.js +1 -1
- package/dist/js/Breadcrumb.js +3 -3
- package/dist/js/{Button-2HD10hUM.js → Button-a4Hq_zmE.js} +6 -6
- package/dist/js/Button.js +1 -1
- package/dist/js/{CalendarHeader-B_wBEdu9.js → CalendarHeader-o7J1eLg1.js} +4 -4
- package/dist/js/{Checkbox-bubWvoY0.js → Checkbox-B8cVD_TG.js} +4 -4
- package/dist/js/Checkbox.js +1 -1
- package/dist/js/{CheckboxButton-TQpHIv1l.js → CheckboxButton-COo3XHBr.js} +6 -6
- package/dist/js/CheckboxButton.js +1 -1
- package/dist/js/CheckboxGroup.js +6 -6
- package/dist/js/CodeBlock.js +1 -1
- package/dist/js/{Content-B981TFby.js → Content-ytee2WFF.js} +1 -1
- package/dist/js/Content.js +1 -1
- package/dist/js/ContextMenu.js +3 -3
- package/dist/js/{ContextMenuTrigger-CoquhvdC.js → ContextMenuTrigger-Ciwiz8WT.js} +5 -5
- package/dist/js/ContextualHelp.js +8 -8
- package/dist/js/{CopyButton-BXC9KLjg.js → CopyButton-rkjTnjDf.js} +5 -5
- package/dist/js/CopyButton.js +1 -1
- package/dist/js/CounterBadge.js +1 -1
- package/dist/js/DatePicker.js +8 -8
- package/dist/js/DateRangePicker.js +8 -8
- package/dist/js/{FieldDescription-DHpNcxEx.js → FieldDescription-Cj-qCYxv.js} +2 -2
- package/dist/js/FieldDescription.js +1 -1
- package/dist/js/{FieldError-CHLQJ4Gj.js → FieldError-BZ6oyvAN.js} +3 -3
- package/dist/js/FieldError.js +1 -1
- package/dist/js/{Header-BBMzw1aI.js → Header-Bry5NM9X.js} +2 -2
- package/dist/js/Header.js +1 -1
- package/dist/js/HeaderNavigation.js +5 -5
- package/dist/js/{Heading-0QgZ0l4d.js → Heading-pQpU1iQY.js} +7 -7
- package/dist/js/Heading.js +1 -1
- package/dist/js/{Icon-C4X3yGm5.js → Icon-C3JkDOTi.js} +1 -1
- package/dist/js/Icon.js +1 -1
- package/dist/js/{IconCalendar-D2Tj_EMm.js → IconCalendar-CXEqxrD-.js} +1 -1
- package/dist/js/{IconCheck-DekklS7k.js → IconCheck-B49auJJP.js} +1 -1
- package/dist/js/{IconCheckboxEmpty-CfjSEpzD.js → IconCheckboxEmpty-CC7q-vMC.js} +1 -1
- package/dist/js/{IconCheckboxIndeterminate-DZmFq0tz.js → IconCheckboxIndeterminate-Bc54gPFD.js} +1 -1
- package/dist/js/{IconChevronDown-CZczuUPE.js → IconChevronDown-Cr-rCT6d.js} +1 -1
- package/dist/js/{IconChevronRight-YIS8aZq-.js → IconChevronRight-35lfOS6U.js} +1 -1
- package/dist/js/{IconChevronUp-CqIMOmST.js → IconChevronUp-DI1A2wmc.js} +1 -1
- package/dist/js/{IconClose-e8kUonqZ.js → IconClose-GXU9h7Kw.js} +1 -1
- package/dist/js/{IconContextMenu-CJrHGK7Z.js → IconContextMenu-BpfOb36j.js} +1 -1
- package/dist/js/{IconCopy-ZnjfAd5h.js → IconCopy-D3-038qg.js} +1 -1
- package/dist/js/{IconDanger-CyNGm5Up.js → IconDanger-m38r1QkL.js} +1 -1
- package/dist/js/{IconExternalLink-N3R0tAsR.js → IconExternalLink-QotyR7i7.js} +1 -1
- package/dist/js/{IconInfo-1rd0-Xxv.js → IconInfo-CmzJdfyz.js} +1 -1
- package/dist/js/{IconPending-CuEvSKSd.js → IconPending-CfmgrRZl.js} +1 -1
- package/dist/js/{IconPlus-DwSox2Ic.js → IconPlus-CYExXr8n.js} +1 -1
- package/dist/js/{IconRadioOn-g1K-YraZ.js → IconRadioOn-BQIVoyg4.js} +1 -1
- package/dist/js/{IconSearch-BvRfybT9.js → IconSearch-ph_8JDDS.js} +1 -1
- package/dist/js/{IconSucceeded-Cvd1w6gm.js → IconSucceeded-BHReEzlW.js} +1 -1
- package/dist/js/{IconView-CCa_Jcj-.js → IconView-BvWozvJX.js} +1 -1
- package/dist/js/{IconWarning-Do0iVJtZ.js → IconWarning-BSzhRWnw.js} +1 -1
- package/dist/js/Icons.js +21 -21
- package/dist/js/{IllustratedMessage-CeYE8bxs.js → IllustratedMessage-C5caKyh6.js} +1 -1
- package/dist/js/IllustratedMessage.js +1 -1
- package/dist/js/Image.js +1 -1
- package/dist/js/Initials.js +1 -1
- package/dist/js/{Label-CR5X8sAG.js → Label-BvdZBeD-.js} +1 -1
- package/dist/js/Label.js +1 -1
- package/dist/js/LabeledValue.js +4 -4
- package/dist/js/LayoutCard.js +6 -6
- package/dist/js/{Link-ZeLBPQ3N.js → Link-tZe6DMG9.js} +7 -7
- package/dist/js/Link.js +1 -1
- package/dist/js/List.js +16 -16
- package/dist/js/{LoadingSpinner-Bgq-8G86.js → LoadingSpinner-CAmMgo37.js} +2 -2
- package/dist/js/LoadingSpinner.js +1 -1
- package/dist/js/{MenuItem-Dx4r1r63.js → MenuItem-DljCXugV.js} +16 -16
- package/dist/js/MenuItem.js +1 -1
- package/dist/js/Modal.js +8 -8
- package/dist/js/Navigation.js +6 -6
- package/dist/js/Notification.js +10 -10
- package/dist/js/NumberField.js +11 -11
- package/dist/js/{OverlayTrigger-bD8_mPel.js → OverlayTrigger-BmB63e4e.js} +1 -1
- package/dist/js/{Popover-BzuJdYCR.js → Popover-C4jNPNSb.js} +2 -2
- package/dist/js/Popover.js +2 -2
- package/dist/js/ProgressBar.js +1 -1
- package/dist/js/PropsContextProvider.js +60 -5
- package/dist/js/RadioGroup.js +52 -94
- package/dist/js/{SearchField-b883cfcL.js → SearchField-Bg9uM0FY.js} +11 -11
- package/dist/js/SearchField.js +1 -1
- package/dist/js/{Section-D8qboOw9.js → Section-DA5veGmg.js} +6 -6
- package/dist/js/Section.js +1 -1
- package/dist/js/SegmentedControl.js +82 -0
- package/dist/js/Select.js +7 -7
- package/dist/js/Slider.js +5 -5
- package/dist/js/Switch.js +5 -5
- package/dist/js/Tabs.js +12 -12
- package/dist/js/{Text-CZaLuq4c.js → Text-CtABaZjp.js} +10 -10
- package/dist/js/Text.js +1 -1
- package/dist/js/TextArea.js +2 -2
- package/dist/js/TextField.js +2 -2
- package/dist/js/{TextFieldBase-DGpU7liT.js → TextFieldBase-CjA7G_xB.js} +8 -8
- package/dist/js/TimeField.js +6 -6
- package/dist/js/all.css +1 -1
- package/dist/js/{flowComponent-C_3mQGhG.js → flowComponent-E-Gp2Toe.js} +8 -6
- package/dist/js/react-hook-form.js +25 -24
- package/dist/js/types/components/RadioGroup/RadioGroup.d.ts +1 -3
- package/dist/js/types/components/RadioGroup/stories/Default.stories.d.ts +0 -3
- package/dist/js/types/components/SegmentedControl/SegmentedControl.d.ts +7 -0
- package/dist/js/types/components/SegmentedControl/components/Segment/Segment.d.ts +7 -0
- package/dist/js/types/components/SegmentedControl/components/Segment/index.d.ts +3 -0
- package/dist/js/types/components/SegmentedControl/index.d.ts +4 -0
- package/dist/js/types/components/SegmentedControl/stories/Default.stories.d.ts +8 -0
- package/dist/js/types/components/propTypes/index.d.ts +4 -0
- package/dist/js/types/lib/controller/overlay/context.d.ts +2 -0
- package/dist/js/types/lib/propsContext/propsContext.d.ts +4 -0
- package/dist/js/types/lib/slotContext/slotContext.d.ts +2 -0
- package/package.json +9 -4
- package/dist/js/PropsContextProvider-C6Z4XGp6.js +0 -64
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
/* */
|
|
3
3
|
import r from "react";
|
|
4
4
|
import "@tabler/icons-react";
|
|
5
|
-
import "./Icon-
|
|
6
|
-
import { I as e } from "./IconPending-
|
|
5
|
+
import "./Icon-C3JkDOTi.js";
|
|
6
|
+
import { I as e } from "./IconPending-CfmgrRZl.js";
|
|
7
7
|
import t from "clsx";
|
|
8
8
|
const a = "flow--loading-spinner", p = "flow--loading-spinner--spin", l = {
|
|
9
9
|
loadingSpinner: a,
|
|
@@ -4,50 +4,50 @@ import e from "react";
|
|
|
4
4
|
import * as I from "react-aria-components";
|
|
5
5
|
import f from "clsx";
|
|
6
6
|
import "./propsContext-DzAKlmhS.js";
|
|
7
|
-
import {
|
|
7
|
+
import { PropsContextProvider as i } from "./PropsContextProvider.js";
|
|
8
8
|
import "@react-aria/utils";
|
|
9
9
|
import "remeda";
|
|
10
10
|
import "@tabler/icons-react";
|
|
11
|
-
import "./Icon-
|
|
12
|
-
import { I as x, a as d } from "./IconCheckboxEmpty-
|
|
13
|
-
import { I as E, a as C } from "./IconRadioOn-
|
|
14
|
-
import { T as p } from "./Text-
|
|
11
|
+
import "./Icon-C3JkDOTi.js";
|
|
12
|
+
import { I as x, a as d } from "./IconCheckboxEmpty-CC7q-vMC.js";
|
|
13
|
+
import { I as E, a as C } from "./IconRadioOn-BQIVoyg4.js";
|
|
14
|
+
import { T as p } from "./Text-CtABaZjp.js";
|
|
15
15
|
import { d as h } from "./deepFindOfType-6pG0fH7S.js";
|
|
16
16
|
import { W as M } from "./Wrap-DGT1h1o3.js";
|
|
17
|
-
import { f as N } from "./flowComponent-
|
|
18
|
-
const w = "flow--menu-item",
|
|
17
|
+
import { f as N } from "./flowComponent-E-Gp2Toe.js";
|
|
18
|
+
const w = "flow--menu-item", T = "flow--menu-item--icon", g = "flow--menu-item--text", P = "flow--menu-item--control-icon", c = {
|
|
19
19
|
menuItem: w,
|
|
20
|
-
icon:
|
|
21
|
-
text:
|
|
22
|
-
controlIcon:
|
|
20
|
+
icon: T,
|
|
21
|
+
text: g,
|
|
22
|
+
controlIcon: P
|
|
23
23
|
}, k = (o, t) => !!h(o, t), y = (o) => {
|
|
24
24
|
const {
|
|
25
25
|
selectionMode: t,
|
|
26
26
|
isSelected: n,
|
|
27
27
|
selectionVariant: m = "control",
|
|
28
28
|
children: r
|
|
29
|
-
} = o,
|
|
29
|
+
} = o, l = {
|
|
30
30
|
Icon: {
|
|
31
31
|
className: c.icon
|
|
32
32
|
},
|
|
33
33
|
Text: {
|
|
34
34
|
className: c.text
|
|
35
35
|
}
|
|
36
|
-
},
|
|
36
|
+
}, s = {
|
|
37
37
|
Icon: {
|
|
38
38
|
className: f(c.controlIcon, c.icon)
|
|
39
39
|
}
|
|
40
40
|
}, a = t === "none" || m === "navigation" ? null : t === "single" && n ? /* @__PURE__ */ e.createElement(E, null) : t === "single" && !n ? /* @__PURE__ */ e.createElement(C, null) : t === "multiple" && n ? /* @__PURE__ */ e.createElement(x, null) : /* @__PURE__ */ e.createElement(d, null), u = k(r, p);
|
|
41
|
-
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(i, { props:
|
|
41
|
+
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(i, { props: s }, a), /* @__PURE__ */ e.createElement(i, { props: l }, /* @__PURE__ */ e.createElement(M, { if: !u }, /* @__PURE__ */ e.createElement(p, null, r))));
|
|
42
42
|
}, D = N("MenuItem", (o) => {
|
|
43
43
|
const {
|
|
44
44
|
children: t,
|
|
45
45
|
className: n,
|
|
46
46
|
selectionVariant: m,
|
|
47
47
|
refProp: r,
|
|
48
|
-
...
|
|
49
|
-
} = o,
|
|
50
|
-
return /* @__PURE__ */ e.createElement(I.MenuItem, { ...
|
|
48
|
+
...l
|
|
49
|
+
} = o, s = f(c.menuItem, n);
|
|
50
|
+
return /* @__PURE__ */ e.createElement(I.MenuItem, { ...l, className: s, ref: r }, (a) => /* @__PURE__ */ e.createElement(y, { ...a, selectionVariant: m }, t));
|
|
51
51
|
});
|
|
52
52
|
export {
|
|
53
53
|
D as M
|
package/dist/js/MenuItem.js
CHANGED
package/dist/js/Modal.js
CHANGED
|
@@ -3,21 +3,21 @@
|
|
|
3
3
|
import o from "react";
|
|
4
4
|
import p from "clsx";
|
|
5
5
|
import "./propsContext-DzAKlmhS.js";
|
|
6
|
-
import {
|
|
6
|
+
import { PropsContextProvider as v } from "./PropsContextProvider.js";
|
|
7
7
|
import "@react-aria/utils";
|
|
8
8
|
import "remeda";
|
|
9
9
|
import { TunnelProvider as g, TunnelExit as y } from "@mittwald/react-tunnel";
|
|
10
|
-
import { f as C } from "./flowComponent-
|
|
10
|
+
import { f as C } from "./flowComponent-E-Gp2Toe.js";
|
|
11
11
|
import * as n from "react-aria-components";
|
|
12
12
|
import "mobx";
|
|
13
13
|
import { u as w } from "./useOverlayController-D8pgx8nV.js";
|
|
14
|
-
import { O as E, a as h } from "./OverlayTrigger-
|
|
15
|
-
import { H as O } from "./Header-
|
|
16
|
-
import { A as M } from "./Action-
|
|
17
|
-
import { B as N } from "./Button-
|
|
14
|
+
import { O as E, a as h } from "./OverlayTrigger-BmB63e4e.js";
|
|
15
|
+
import { H as O } from "./Header-Bry5NM9X.js";
|
|
16
|
+
import { A as M } from "./Action-CiJBykBu.js";
|
|
17
|
+
import { B as N } from "./Button-a4Hq_zmE.js";
|
|
18
18
|
import "@tabler/icons-react";
|
|
19
|
-
import "./Icon-
|
|
20
|
-
import { I as x } from "./IconClose-
|
|
19
|
+
import "./Icon-C3JkDOTi.js";
|
|
20
|
+
import { I as x } from "./IconClose-GXU9h7Kw.js";
|
|
21
21
|
const z = "flow--modal", P = "flow--modal--off-canvas", T = "flow--modal--header", B = "flow--modal--content", A = "flow--modal--action-group", G = "flow--modal--left", H = "flow--modal--close-button", e = {
|
|
22
22
|
modal: z,
|
|
23
23
|
offCanvas: P,
|
package/dist/js/Navigation.js
CHANGED
|
@@ -5,18 +5,18 @@ import d from "clsx";
|
|
|
5
5
|
import { d as v } from "./deepFindOfType-6pG0fH7S.js";
|
|
6
6
|
import { W as E } from "./Wrap-DGT1h1o3.js";
|
|
7
7
|
import "./propsContext-DzAKlmhS.js";
|
|
8
|
-
import {
|
|
8
|
+
import { PropsContextProvider as l } from "./PropsContextProvider.js";
|
|
9
9
|
import "@react-aria/utils";
|
|
10
10
|
import "remeda";
|
|
11
11
|
import { TunnelProvider as u, TunnelExit as p } from "@mittwald/react-tunnel";
|
|
12
|
-
import { A as x } from "./Accordion-
|
|
13
|
-
import { C as N } from "./Content-
|
|
14
|
-
const C = "flow--navigation", I = "flow--navigation--item", b = "flow--navigation--icon",
|
|
12
|
+
import { A as x } from "./Accordion-B5k7dJpn.js";
|
|
13
|
+
import { C as N } from "./Content-ytee2WFF.js";
|
|
14
|
+
const C = "flow--navigation", I = "flow--navigation--item", b = "flow--navigation--icon", w = "flow--navigation--text", P = "flow--navigation--control-icon", r = {
|
|
15
15
|
navigation: C,
|
|
16
16
|
item: I,
|
|
17
17
|
icon: b,
|
|
18
|
-
text:
|
|
19
|
-
controlIcon:
|
|
18
|
+
text: w,
|
|
19
|
+
controlIcon: P
|
|
20
20
|
}, z = (i) => {
|
|
21
21
|
const { className: t, children: n, ...s } = i, c = d(r.navigation, t), o = !!v(n, y), a = {
|
|
22
22
|
Link: {
|
package/dist/js/Notification.js
CHANGED
|
@@ -3,22 +3,22 @@
|
|
|
3
3
|
import o from "react";
|
|
4
4
|
import g from "clsx";
|
|
5
5
|
import "./propsContext-DzAKlmhS.js";
|
|
6
|
-
import {
|
|
6
|
+
import { PropsContextProvider as w } from "./PropsContextProvider.js";
|
|
7
7
|
import "@react-aria/utils";
|
|
8
8
|
import "remeda";
|
|
9
9
|
import { d as h } from "./dynamic-ClpUSmEt.js";
|
|
10
|
-
import { A as k } from "./AlertIcon-
|
|
11
|
-
import { L as x } from "./Link-
|
|
12
|
-
import { B as C } from "./Button-
|
|
10
|
+
import { A as k } from "./AlertIcon-4pw8iuBh.js";
|
|
11
|
+
import { L as x } from "./Link-tZe6DMG9.js";
|
|
12
|
+
import { B as C } from "./Button-a4Hq_zmE.js";
|
|
13
13
|
import "@tabler/icons-react";
|
|
14
|
-
import "./Icon-
|
|
15
|
-
import { I as N } from "./IconClose-
|
|
16
|
-
const E = "flow--notification", L = "flow--notification--link",
|
|
14
|
+
import "./Icon-C3JkDOTi.js";
|
|
15
|
+
import { I as N } from "./IconClose-GXU9h7Kw.js";
|
|
16
|
+
const E = "flow--notification", L = "flow--notification--link", v = "flow--notification--heading", y = "flow--notification--text", P = "flow--notification--close", A = "flow--notification--info", B = "flow--notification--has-link", I = "flow--notification--warning", z = "flow--notification--danger", F = "flow--notification--success", t = {
|
|
17
17
|
notification: E,
|
|
18
18
|
link: L,
|
|
19
|
-
heading:
|
|
20
|
-
text:
|
|
21
|
-
close:
|
|
19
|
+
heading: v,
|
|
20
|
+
text: y,
|
|
21
|
+
close: P,
|
|
22
22
|
info: A,
|
|
23
23
|
hasLink: B,
|
|
24
24
|
warning: I,
|
package/dist/js/NumberField.js
CHANGED
|
@@ -5,25 +5,25 @@ import * as t from "react-aria-components";
|
|
|
5
5
|
import { f as o } from "./FormField.module-CqWpTQKP.js";
|
|
6
6
|
import u from "clsx";
|
|
7
7
|
import { C as f } from "./ClearPropsContext-CUvsbMn8.js";
|
|
8
|
-
import {
|
|
8
|
+
import { PropsContextProvider as d } from "./PropsContextProvider.js";
|
|
9
9
|
import "@react-aria/utils";
|
|
10
10
|
import "./propsContext-DzAKlmhS.js";
|
|
11
11
|
import "remeda";
|
|
12
|
-
import { F as E } from "./FieldError-
|
|
13
|
-
import { B as m } from "./Button-
|
|
12
|
+
import { F as E } from "./FieldError-BZ6oyvAN.js";
|
|
13
|
+
import { B as m } from "./Button-a4Hq_zmE.js";
|
|
14
14
|
import "@tabler/icons-react";
|
|
15
|
-
import "./Icon-
|
|
16
|
-
import { I as N } from "./IconChevronDown-
|
|
17
|
-
import { I as b } from "./IconChevronUp-
|
|
18
|
-
import { I, a as F } from "./IconPlus-
|
|
19
|
-
import { f as
|
|
20
|
-
const
|
|
21
|
-
group:
|
|
15
|
+
import "./Icon-C3JkDOTi.js";
|
|
16
|
+
import { I as N } from "./IconChevronDown-Cr-rCT6d.js";
|
|
17
|
+
import { I as b } from "./IconChevronUp-DI1A2wmc.js";
|
|
18
|
+
import { I, a as F } from "./IconPlus-CYExXr8n.js";
|
|
19
|
+
import { f as C } from "./flowComponent-E-Gp2Toe.js";
|
|
20
|
+
const P = "flow--number-field--group", B = "flow--number-field--input", w = "flow--number-field--decrement-button", v = "flow--number-field--increment-button", x = "flow--number-field--coarse-pointer-icon", r = {
|
|
21
|
+
group: P,
|
|
22
22
|
input: B,
|
|
23
23
|
decrementButton: w,
|
|
24
24
|
incrementButton: v,
|
|
25
25
|
coarsePointerIcon: x
|
|
26
|
-
}, J =
|
|
26
|
+
}, J = C("NumberField", (n) => {
|
|
27
27
|
const { children: a, className: s, refProp: l, ...c } = n, i = u(o.formField, s), p = {
|
|
28
28
|
Label: {
|
|
29
29
|
className: o.label,
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import e from "react";
|
|
4
4
|
import { u as m, o as v, O as y } from "./context-Cf7tqFtF.js";
|
|
5
5
|
import "./propsContext-DzAKlmhS.js";
|
|
6
|
-
import {
|
|
6
|
+
import { PropsContextProvider as O } from "./PropsContextProvider.js";
|
|
7
7
|
import "@react-aria/utils";
|
|
8
8
|
import "remeda";
|
|
9
9
|
const u = (r) => {
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
/* */
|
|
3
3
|
import * as o from "react-aria-components";
|
|
4
4
|
import e from "react";
|
|
5
|
-
import { a as y, O as E } from "./OverlayTrigger-
|
|
6
|
-
import { f as a } from "./flowComponent-
|
|
5
|
+
import { a as y, O as E } from "./OverlayTrigger-BmB63e4e.js";
|
|
6
|
+
import { f as a } from "./flowComponent-E-Gp2Toe.js";
|
|
7
7
|
import l from "clsx";
|
|
8
8
|
import "mobx";
|
|
9
9
|
import { u as x } from "./useOverlayController-D8pgx8nV.js";
|
package/dist/js/Popover.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
/* */
|
|
3
|
-
import { P as r } from "./Popover-
|
|
4
|
-
import { a as p } from "./Popover-
|
|
3
|
+
import { P as r } from "./Popover-C4jNPNSb.js";
|
|
4
|
+
import { a as p } from "./Popover-C4jNPNSb.js";
|
|
5
5
|
export {
|
|
6
6
|
r as Popover,
|
|
7
7
|
p as PopoverTrigger,
|
package/dist/js/ProgressBar.js
CHANGED
|
@@ -5,7 +5,7 @@ import s from "react";
|
|
|
5
5
|
import d from "clsx";
|
|
6
6
|
import { useLocalizedStringFormatter as N, useNumberFormatter as v } from "react-aria";
|
|
7
7
|
import "./propsContext-DzAKlmhS.js";
|
|
8
|
-
import {
|
|
8
|
+
import { PropsContextProvider as x } from "./PropsContextProvider.js";
|
|
9
9
|
import "@react-aria/utils";
|
|
10
10
|
import "remeda";
|
|
11
11
|
const B = "flow--progress-bar", E = "flow--progress-bar--label", z = "flow--progress-bar--value", P = "flow--progress-bar--bar", V = "flow--progress-bar--fill", $ = "flow--progress-bar--info", h = "flow--progress-bar--success", y = "flow--progress-bar--danger", C = "flow--progress-bar--warning", r = {
|
|
@@ -1,9 +1,64 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
/* */
|
|
3
|
-
import "react";
|
|
4
|
-
import "./propsContext-DzAKlmhS.js";
|
|
5
|
-
import {
|
|
3
|
+
import u, { useMemo as m, isValidElement as f, cloneElement as C } from "react";
|
|
4
|
+
import { u as v, p as E } from "./propsContext-DzAKlmhS.js";
|
|
5
|
+
import { mergeProps as h } from "@react-aria/utils";
|
|
6
|
+
import { isObjectType as c } from "remeda";
|
|
7
|
+
import { setProperty as x } from "dot-prop";
|
|
8
|
+
const N = (t = {}) => (...r) => {
|
|
9
|
+
const { mergeClassNames: n = !0, mergeEventHandler: s = !0 } = t, e = h(...r);
|
|
10
|
+
if (c(e)) {
|
|
11
|
+
if (!n)
|
|
12
|
+
for (const o of r)
|
|
13
|
+
c(o) && "className" in e && "className" in o && (e.className = o.className);
|
|
14
|
+
if (!s) {
|
|
15
|
+
for (const o of r)
|
|
16
|
+
if (c(o))
|
|
17
|
+
for (const [p, a] of Object.entries(o))
|
|
18
|
+
/^on[A-Z]/.test(p) && x(e, p, a);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
return e;
|
|
22
|
+
}, b = N({
|
|
23
|
+
mergeClassNames: !1,
|
|
24
|
+
mergeEventHandler: !1
|
|
25
|
+
}), j = (t = {}, r = {}) => {
|
|
26
|
+
const n = Object.keys({
|
|
27
|
+
...t,
|
|
28
|
+
...r
|
|
29
|
+
});
|
|
30
|
+
return Object.fromEntries(
|
|
31
|
+
n.map((s) => [
|
|
32
|
+
s,
|
|
33
|
+
b(
|
|
34
|
+
t[s],
|
|
35
|
+
r[s]
|
|
36
|
+
)
|
|
37
|
+
])
|
|
38
|
+
);
|
|
39
|
+
}, V = (t) => {
|
|
40
|
+
const {
|
|
41
|
+
props: r,
|
|
42
|
+
dependencies: n = [],
|
|
43
|
+
mergeInParentContext: s = !1,
|
|
44
|
+
children: e,
|
|
45
|
+
...o
|
|
46
|
+
} = t, p = v(), a = m(() => r, n), i = m(
|
|
47
|
+
() => s ? j(p, r) : r,
|
|
48
|
+
[a, p, s]
|
|
49
|
+
), l = f(e) ? {
|
|
50
|
+
...o,
|
|
51
|
+
...e.props
|
|
52
|
+
} : o, d = [
|
|
53
|
+
e,
|
|
54
|
+
...Object.entries(l).flatMap((g) => g)
|
|
55
|
+
], P = m(
|
|
56
|
+
() => f(e) ? C(e, l) : e,
|
|
57
|
+
d
|
|
58
|
+
);
|
|
59
|
+
return /* @__PURE__ */ u.createElement(E.Provider, { value: i }, P);
|
|
60
|
+
};
|
|
6
61
|
export {
|
|
7
|
-
|
|
8
|
-
|
|
62
|
+
V as PropsContextProvider,
|
|
63
|
+
V as default
|
|
9
64
|
};
|
package/dist/js/RadioGroup.js
CHANGED
|
@@ -1,79 +1,54 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
/* */
|
|
3
|
-
import
|
|
4
|
-
import * as
|
|
5
|
-
import
|
|
3
|
+
import o from "react";
|
|
4
|
+
import * as N from "react-aria-components";
|
|
5
|
+
import u from "clsx";
|
|
6
6
|
import "./propsContext-DzAKlmhS.js";
|
|
7
|
-
import {
|
|
7
|
+
import { PropsContextProvider as C } from "./PropsContextProvider.js";
|
|
8
8
|
import "@react-aria/utils";
|
|
9
9
|
import "remeda";
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import { f as c } from "./FormField.module-CqWpTQKP.js";
|
|
10
|
+
import { F as g } from "./FieldError-BZ6oyvAN.js";
|
|
11
|
+
import { C as G } from "./ColumnLayout-Bvw578tz.js";
|
|
12
|
+
import { TunnelProvider as I, TunnelExit as c } from "@mittwald/react-tunnel";
|
|
13
|
+
import { f as l } from "./FormField.module-CqWpTQKP.js";
|
|
15
14
|
import { d as P } from "./deepFindOfType-6pG0fH7S.js";
|
|
16
|
-
import { C as
|
|
15
|
+
import { C as R } from "./ClearPropsContext-CUvsbMn8.js";
|
|
17
16
|
import "@tabler/icons-react";
|
|
18
|
-
import "./Icon-
|
|
19
|
-
import { I as
|
|
20
|
-
import { f
|
|
17
|
+
import "./Icon-C3JkDOTi.js";
|
|
18
|
+
import { I as w, a as B } from "./IconRadioOn-BQIVoyg4.js";
|
|
19
|
+
import { f } from "./flowComponent-E-Gp2Toe.js";
|
|
21
20
|
import "dot-prop";
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
radioGroupContainer: j,
|
|
31
|
-
"container-breakpoint-size-xs": "flow--radio-group--container-breakpoint-size-xs",
|
|
32
|
-
"container-breakpoint-size-s": "flow--radio-group--container-breakpoint-size-s",
|
|
33
|
-
"container-breakpoint-size-m": "flow--radio-group--container-breakpoint-size-m",
|
|
34
|
-
"container-breakpoint-size-l": "flow--radio-group--container-breakpoint-size-l",
|
|
35
|
-
"container-breakpoint-size-xl": "flow--radio-group--container-breakpoint-size-xl"
|
|
36
|
-
}, q = "flow--radio-group--radio-button", H = "flow--radio-group--radio-button--content", J = "flow--radio-group--radio-button--label", f = {
|
|
37
|
-
radioButton: q,
|
|
38
|
-
content: H,
|
|
39
|
-
label: J
|
|
40
|
-
}, K = N("RadioButton", (n) => {
|
|
41
|
-
const { children: t, className: a, refProp: o, ...i } = n, s = E(f.radioButton, a), l = {
|
|
21
|
+
const y = "flow--radio-group", m = {
|
|
22
|
+
radioGroup: y
|
|
23
|
+
}, h = "flow--radio-group--radio-button", D = "flow--radio-group--radio-button--content", T = "flow--radio-group--radio-button--label", d = {
|
|
24
|
+
radioButton: h,
|
|
25
|
+
content: D,
|
|
26
|
+
label: T
|
|
27
|
+
}, v = f("RadioButton", (r) => {
|
|
28
|
+
const { children: e, className: t, refProp: a, ...n } = r, s = u(d.radioButton, t), i = {
|
|
42
29
|
Text: {
|
|
43
|
-
className:
|
|
30
|
+
className: d.label
|
|
44
31
|
},
|
|
45
32
|
Content: {
|
|
46
|
-
className:
|
|
33
|
+
className: d.content
|
|
47
34
|
}
|
|
48
35
|
};
|
|
49
|
-
return /* @__PURE__ */
|
|
50
|
-
}),
|
|
51
|
-
const {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
m: s,
|
|
57
|
-
l,
|
|
58
|
-
containerBreakpointSize: d = "m",
|
|
59
|
-
refProp: w,
|
|
60
|
-
...R
|
|
61
|
-
} = n, x = E(
|
|
62
|
-
c.formField,
|
|
63
|
-
r.radioGroupContainer,
|
|
64
|
-
a,
|
|
65
|
-
r[T(d)]
|
|
66
|
-
);
|
|
67
|
-
let p = {
|
|
36
|
+
return /* @__PURE__ */ o.createElement(R, null, /* @__PURE__ */ o.createElement($, { ...n, className: s, ref: a }, /* @__PURE__ */ o.createElement(C, { props: i }, e)));
|
|
37
|
+
}), _ = f("RadioGroup", (r) => {
|
|
38
|
+
const { children: e, className: t, s: a, m: n, l: s, refProp: i, ...b } = r, x = u(
|
|
39
|
+
l.formField,
|
|
40
|
+
m.radioGroupContainer,
|
|
41
|
+
t
|
|
42
|
+
), F = {
|
|
68
43
|
Label: {
|
|
69
|
-
className:
|
|
44
|
+
className: l.label
|
|
70
45
|
},
|
|
71
46
|
FieldDescription: {
|
|
72
|
-
className:
|
|
47
|
+
className: l.fieldDescription,
|
|
73
48
|
tunnelId: "fieldDescription"
|
|
74
49
|
},
|
|
75
50
|
FieldError: {
|
|
76
|
-
className:
|
|
51
|
+
className: l.customFieldError,
|
|
77
52
|
tunnelId: "fieldError"
|
|
78
53
|
},
|
|
79
54
|
RadioButton: {
|
|
@@ -82,47 +57,30 @@ const O = "flow--radio-group", S = "flow--radio-group--segmented-group", L = "fl
|
|
|
82
57
|
Radio: {
|
|
83
58
|
tunnelId: "radios"
|
|
84
59
|
}
|
|
85
|
-
};
|
|
86
|
-
|
|
87
|
-
Radio: {
|
|
88
|
-
className: r.segment,
|
|
89
|
-
unstyled: !0,
|
|
90
|
-
children: h((G) => /* @__PURE__ */ e.createElement(e.Fragment, null, G.children, /* @__PURE__ */ e.createElement(D, { className: r.checkmark })))
|
|
91
|
-
}
|
|
92
|
-
}));
|
|
93
|
-
const u = !!P(t, K);
|
|
94
|
-
return o === "segmented" && u && console.warn(
|
|
95
|
-
"<RadioButton/> is not supported in 'segmented' variant of <RadioGroup />"
|
|
96
|
-
), /* @__PURE__ */ e.createElement(k.RadioGroup, { ...R, className: x, ref: w }, /* @__PURE__ */ e.createElement(I, null, /* @__PURE__ */ e.createElement(
|
|
60
|
+
}, E = !!P(e, v);
|
|
61
|
+
return /* @__PURE__ */ o.createElement(N.RadioGroup, { ...b, className: x, ref: i }, /* @__PURE__ */ o.createElement(I, null, /* @__PURE__ */ o.createElement(
|
|
97
62
|
C,
|
|
98
63
|
{
|
|
99
|
-
|
|
100
|
-
|
|
64
|
+
dependencies: ["radio"],
|
|
65
|
+
props: F,
|
|
101
66
|
mergeInParentContext: !0
|
|
102
67
|
},
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
/* @__PURE__ */
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
},
|
|
114
|
-
|
|
115
|
-
children: t,
|
|
116
|
-
className: a,
|
|
117
|
-
unstyled: o = !1,
|
|
118
|
-
refProp: i,
|
|
119
|
-
...s
|
|
120
|
-
} = n, l = o ? a : E(g.radio, a);
|
|
121
|
-
return /* @__PURE__ */ e.createElement(b, null, /* @__PURE__ */ e.createElement(k.Radio, { ...s, className: l, ref: i }, ({ isSelected: d }) => /* @__PURE__ */ e.createElement(e.Fragment, null, d ? !o && /* @__PURE__ */ e.createElement(y, { className: g.icon }) : !o && /* @__PURE__ */ e.createElement(v, { className: g.icon }), t)));
|
|
68
|
+
e,
|
|
69
|
+
E && /* @__PURE__ */ o.createElement(G, { s: a, m: n, l: s, className: m.radioGroup }, /* @__PURE__ */ o.createElement(c, { id: "radios" })),
|
|
70
|
+
!E && /* @__PURE__ */ o.createElement("div", { className: m.radioGroup }, /* @__PURE__ */ o.createElement(c, { id: "radios" })),
|
|
71
|
+
/* @__PURE__ */ o.createElement(c, { id: "fieldDescription" }),
|
|
72
|
+
/* @__PURE__ */ o.createElement(c, { id: "fieldError" })
|
|
73
|
+
)), /* @__PURE__ */ o.createElement(g, { className: l.fieldError }));
|
|
74
|
+
}), O = "flow--radio-group--radio", L = "flow--radio-group--radio--icon", p = {
|
|
75
|
+
radio: O,
|
|
76
|
+
icon: L
|
|
77
|
+
}, $ = f("Radio", (r) => {
|
|
78
|
+
const { children: e, className: t, refProp: a, ...n } = r, s = u(p.radio, t);
|
|
79
|
+
return /* @__PURE__ */ o.createElement(R, null, /* @__PURE__ */ o.createElement(N.Radio, { ...n, className: s, ref: a }, ({ isSelected: i }) => /* @__PURE__ */ o.createElement(o.Fragment, null, i ? /* @__PURE__ */ o.createElement(w, { className: p.icon }) : /* @__PURE__ */ o.createElement(B, { className: p.icon }), e)));
|
|
122
80
|
});
|
|
123
81
|
export {
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
82
|
+
$ as Radio,
|
|
83
|
+
v as RadioButton,
|
|
84
|
+
_ as RadioGroup,
|
|
85
|
+
_ as default
|
|
128
86
|
};
|
|
@@ -5,25 +5,25 @@ import * as s from "react-aria-components";
|
|
|
5
5
|
import { f as r } from "./FormField.module-CqWpTQKP.js";
|
|
6
6
|
import f from "clsx";
|
|
7
7
|
import { C as d } from "./ClearPropsContext-CUvsbMn8.js";
|
|
8
|
-
import {
|
|
8
|
+
import { PropsContextProvider as h } from "./PropsContextProvider.js";
|
|
9
9
|
import "@react-aria/utils";
|
|
10
10
|
import "./propsContext-DzAKlmhS.js";
|
|
11
11
|
import "remeda";
|
|
12
|
-
import { F as u } from "./FieldError-
|
|
13
|
-
import { f as F } from "./flowComponent-
|
|
14
|
-
import { B as E } from "./Button-
|
|
12
|
+
import { F as u } from "./FieldError-BZ6oyvAN.js";
|
|
13
|
+
import { f as F } from "./flowComponent-E-Gp2Toe.js";
|
|
14
|
+
import { B as E } from "./Button-a4Hq_zmE.js";
|
|
15
15
|
import "@tabler/icons-react";
|
|
16
|
-
import "./Icon-
|
|
17
|
-
import { I as N } from "./IconClose-
|
|
18
|
-
import { I as C } from "./IconSearch-
|
|
16
|
+
import "./Icon-C3JkDOTi.js";
|
|
17
|
+
import { I as N } from "./IconClose-GXU9h7Kw.js";
|
|
18
|
+
import { I as C } from "./IconSearch-ph_8JDDS.js";
|
|
19
19
|
import { useLocalizedStringFormatter as S } from "react-aria";
|
|
20
|
-
const I = "flow--search-field", w = "flow--search-field--clear-button", x = "flow--search-field--search-icon", B = "flow--search-field--input-container",
|
|
20
|
+
const I = "flow--search-field", w = "flow--search-field--clear-button", x = "flow--search-field--search-icon", B = "flow--search-field--input-container", b = "flow--search-field--input", t = {
|
|
21
21
|
searchField: I,
|
|
22
22
|
clearButton: w,
|
|
23
23
|
searchIcon: x,
|
|
24
24
|
inputContainer: B,
|
|
25
|
-
input:
|
|
26
|
-
},
|
|
25
|
+
input: b
|
|
26
|
+
}, P = { "de-DE": {
|
|
27
27
|
"searchField.search": "Suche"
|
|
28
28
|
}, "en-EN": {
|
|
29
29
|
"searchField.search": "Search"
|
|
@@ -32,7 +32,7 @@ const I = "flow--search-field", w = "flow--search-field--clear-button", x = "flo
|
|
|
32
32
|
r.formField,
|
|
33
33
|
t.searchField,
|
|
34
34
|
l
|
|
35
|
-
), a = S(
|
|
35
|
+
), a = S(P).format("searchField.search"), p = {
|
|
36
36
|
Label: {
|
|
37
37
|
className: r.label,
|
|
38
38
|
optional: !o.isRequired
|
package/dist/js/SearchField.js
CHANGED
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
import e, { useId as u } from "react";
|
|
4
4
|
import x from "clsx";
|
|
5
5
|
import "./propsContext-DzAKlmhS.js";
|
|
6
|
-
import {
|
|
6
|
+
import { PropsContextProvider as c } from "./PropsContextProvider.js";
|
|
7
7
|
import "@react-aria/utils";
|
|
8
8
|
import "remeda";
|
|
9
|
-
import { f as
|
|
9
|
+
import { f as a } from "./flowComponent-E-Gp2Toe.js";
|
|
10
10
|
import * as s from "react-aria-components";
|
|
11
11
|
import { s as C } from "./ContextMenu.module-BZingr2B.js";
|
|
12
12
|
const g = "flow--section", h = "flow--section--heading", i = {
|
|
13
13
|
section: g,
|
|
14
14
|
heading: h
|
|
15
|
-
}, S =
|
|
15
|
+
}, S = a(
|
|
16
16
|
"ContextMenuSection",
|
|
17
17
|
(n) => {
|
|
18
18
|
const { children: t } = n, o = {
|
|
@@ -21,9 +21,9 @@ const g = "flow--section", h = "flow--section--heading", i = {
|
|
|
21
21
|
wrapWith: /* @__PURE__ */ e.createElement(s.Header, null)
|
|
22
22
|
}
|
|
23
23
|
};
|
|
24
|
-
return /* @__PURE__ */ e.createElement(s.Section, { className: C.section }, /* @__PURE__ */ e.createElement(
|
|
24
|
+
return /* @__PURE__ */ e.createElement(s.Section, { className: C.section }, /* @__PURE__ */ e.createElement(c, { props: o, mergeInParentContext: !0 }, t));
|
|
25
25
|
}
|
|
26
|
-
), M =
|
|
26
|
+
), M = a("Section", (n) => {
|
|
27
27
|
const {
|
|
28
28
|
children: t,
|
|
29
29
|
className: o,
|
|
@@ -48,7 +48,7 @@ const g = "flow--section", h = "flow--section--heading", i = {
|
|
|
48
48
|
"aria-labelledby": r
|
|
49
49
|
}
|
|
50
50
|
};
|
|
51
|
-
return /* @__PURE__ */ e.createElement("section", { ...p, className: d, ref: l }, /* @__PURE__ */ e.createElement(
|
|
51
|
+
return /* @__PURE__ */ e.createElement("section", { ...p, className: d, ref: l }, /* @__PURE__ */ e.createElement(c, { props: f, mergeInParentContext: !0 }, t));
|
|
52
52
|
});
|
|
53
53
|
export {
|
|
54
54
|
M as S
|