@mittwald/flow-react-components 0.1.0-alpha.143 → 0.1.0-alpha.145
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/dist/{Accordion-QhhkJhTO.js → Accordion-S70SYWwS.js} +3 -3
- package/dist/Accordion.js +1 -1
- package/dist/Action-BW80BkOP.js +291 -0
- package/dist/Action.js +1 -1
- package/dist/ActionGroup.js +1 -1
- package/dist/Avatar.js +1 -1
- package/dist/Breadcrumb.js +2 -2
- package/dist/{Button-BS1F0zPs.js → Button-Bs4J6es6.js} +5 -5
- package/dist/Button.js +1 -1
- package/dist/{Checkbox-CD6v6jqo.js → Checkbox-zg7icNVe.js} +4 -4
- package/dist/Checkbox.js +1 -1
- package/dist/{CheckboxButton-I0WYBLv2.js → CheckboxButton-CbLlDhsH.js} +2 -2
- package/dist/CheckboxButton.js +1 -1
- package/dist/CheckboxGroup.js +3 -3
- package/dist/{Content-DlB-BYko.js → Content-arM8nm8H.js} +1 -1
- package/dist/Content.js +1 -1
- package/dist/ContextMenu.js +3 -3
- package/dist/ContextMenuTrigger-Cm0Tlmv1.js +83 -0
- package/dist/ContextualHelp.js +39 -22
- package/dist/CopyButton.js +5 -5
- package/dist/CounterBadge.js +1 -1
- package/dist/{FieldDescription-Brg52RqE.js → FieldDescription-jVeMFUA3.js} +2 -2
- package/dist/FieldDescription.js +1 -1
- package/dist/{FieldError-D_VRyiJG.js → FieldError-eiEmcuuK.js} +3 -3
- package/dist/FieldError.js +1 -1
- package/dist/{Header-BetbThNR.js → Header-DAaa854y.js} +1 -1
- package/dist/Header.js +1 -1
- package/dist/{Heading-CfQzGjxY.js → Heading-ob3LPLN8.js} +1 -1
- package/dist/Heading.js +1 -1
- package/dist/{Icon-D4bkU_pz.js → Icon-CvhSELPq.js} +1 -1
- package/dist/Icon.js +1 -1
- package/dist/{IconCheck-CMWmQYpS.js → IconCheck-Bx3sPenK.js} +1 -1
- package/dist/{IconCheckboxEmpty-DQLeOSmS.js → IconCheckboxEmpty-CzAVypP3.js} +1 -1
- package/dist/{IconCheckboxIndeterminate-DoNQre-9.js → IconCheckboxIndeterminate-CKiaFL3c.js} +1 -1
- package/dist/{IconChevronDown-HLDPe1kj.js → IconChevronDown-BjpRbARt.js} +1 -1
- package/dist/{IconChevronRight-DmCZeDFh.js → IconChevronRight-BKNi_Ug_.js} +1 -1
- package/dist/{IconChevronUp-CUKpaGeP.js → IconChevronUp-D1VuNDfJ.js} +1 -1
- package/dist/{IconClose-FTrJdf_N.js → IconClose-DVwhXp3R.js} +1 -1
- package/dist/{IconContextMenu-Bmk1_j_0.js → IconContextMenu-B7agrmqo.js} +1 -1
- package/dist/{IconCopy-DH_CNzXF.js → IconCopy-D2sPjH5b.js} +1 -1
- package/dist/{IconDanger-PwvUWqzQ.js → IconDanger-C-H0zYrp.js} +1 -1
- package/dist/{IconInfo-Dzy8qZId.js → IconInfo-DDhh409U.js} +1 -1
- package/dist/{IconPending-BV7TXz8_.js → IconPending-DCgEsvHk.js} +1 -1
- package/dist/{IconPlus-CAQpgAH5.js → IconPlus-Uxpaa4X_.js} +1 -1
- package/dist/{IconRadioOn-BIS8wd64.js → IconRadioOn-8P7k8SVa.js} +1 -1
- package/dist/{IconSearch-DadOOeXe.js → IconSearch-DAPXXri4.js} +1 -1
- package/dist/{IconSucceeded-KKiDIenP.js → IconSucceeded-YONbnUQb.js} +1 -1
- package/dist/{IconWarning-DHYHv9V-.js → IconWarning-zl3wRgfI.js} +1 -1
- package/dist/Icons.js +18 -18
- package/dist/Image.js +1 -1
- package/dist/Initials.js +1 -1
- package/dist/InlineAlert.js +2 -2
- package/dist/{Label-5xy35UpX.js → Label-25wKJcpL.js} +1 -1
- package/dist/Label.js +1 -1
- package/dist/LayoutCard.js +1 -1
- package/dist/{Link-CcYCy_KC.js → Link-Bal042NI.js} +1 -1
- package/dist/Link.js +1 -1
- package/dist/List.js +143 -143
- package/dist/{LoadingSpinner-CoSM7GIL.js → LoadingSpinner-bd5Is2yg.js} +2 -2
- package/dist/LoadingSpinner.js +1 -1
- package/dist/{MenuItem-Dny58Rqq.js → MenuItem-CCEquV9i.js} +5 -5
- package/dist/MenuItem.js +1 -1
- package/dist/Modal.js +23 -12
- package/dist/{ModalOverlay-BSu4UEnW.js → ModalOverlay-TJdwgPq0.js} +12 -11
- package/dist/Navigation.js +2 -2
- package/dist/Notification.js +5 -5
- package/dist/NumberField.js +7 -7
- package/dist/OffCanvas.js +49 -27
- package/dist/OverlayContextProvider-BBz2Hde8.js +20 -0
- package/dist/OverlayTrigger-CZdXqASS.js +25 -0
- package/dist/Popover-DrXvRfAg.js +44 -0
- package/dist/RadioGroup.js +5 -5
- package/dist/Section.js +1 -1
- package/dist/Select.js +59 -54
- package/dist/Slider.js +4 -4
- package/dist/StatusBadge.js +3 -3
- package/dist/{StatusIcon-J28z-uQ4.js → StatusIcon-YOrSQbPf.js} +4 -4
- package/dist/StatusIcon.js +1 -1
- package/dist/Switch.js +5 -5
- package/dist/Tabs.js +7 -7
- package/dist/{Text-D6e-S6em.js → Text-BgxTAtk1.js} +1 -1
- package/dist/Text.js +1 -1
- package/dist/TextArea.js +2 -2
- package/dist/TextField.js +2 -2
- package/dist/{TextFieldBase-Ciy6scGP.js → TextFieldBase-HHASqigh.js} +2 -2
- package/dist/context-Bdh6m_8S.js +44 -0
- package/dist/controller.js +4 -3
- package/dist/{flowComponent-CPKCCJEg.js → flowComponent-CWmvUeHT.js} +5 -2
- package/dist/hooks.js +1 -1
- package/dist/react-hook-form.js +2 -2
- package/dist/types/components/Action/models/ActionModel.d.ts +5 -3
- package/dist/types/components/Action/types.d.ts +4 -3
- package/dist/types/components/ContextMenu/components/ContextMenuTrigger/ContextMenuTrigger.d.ts +3 -4
- package/dist/types/components/ContextualHelp/ContextualHelp.d.ts +2 -2
- package/dist/types/components/ContextualHelp/components/ContextualHelpTrigger/ContextualHelpTrigger.d.ts +3 -4
- package/dist/types/components/Modal/components/ModalTrigger/ModalTrigger.d.ts +3 -4
- package/dist/types/components/OffCanvas/OffCanvas.d.ts +4 -3
- package/dist/types/components/OffCanvas/components/OffCanvasTrigger/OffCanvasTrigger.d.ts +3 -2
- package/dist/types/components/OverlayTrigger/OverlayTrigger.d.ts +14 -2
- package/dist/types/components/OverlayTrigger/OverlayTrigger.test.d.ts +1 -0
- package/dist/types/components/Popover/Popover.d.ts +1 -1
- package/dist/types/components/Popover/components/PopoverTrigger/PopoverTrigger.d.ts +3 -2
- package/dist/types/components/Select/Select.d.ts +2 -0
- package/dist/types/components/propTypes/index.d.ts +6 -0
- package/dist/types/lib/controller/overlay/OverlayContextProvider.d.ts +10 -0
- package/dist/types/lib/controller/overlay/context.d.ts +49 -2
- package/dist/types/lib/controller/overlay/useOverlayController.d.ts +2 -1
- package/dist/types/lib/propsContext/propsContext.d.ts +6 -0
- package/dist/types/lib/slotContext/slotContext.d.ts +3 -0
- package/dist/useOverlayController-C88Gnnhi.js +10 -0
- package/package.json +4 -4
- package/dist/Action-C4Ncwjzf.js +0 -287
- package/dist/ContextMenuTrigger-DjZx2IST.js +0 -52
- package/dist/OverlayTrigger-DbjMkqKf.js +0 -20
- package/dist/Popover-B-COTLld.js +0 -41
- package/dist/useOverlayController-CGKumeGL.js +0 -49
package/dist/Modal.js
CHANGED
|
@@ -7,10 +7,10 @@ import { P as c } from "./PropsContextProvider-C6Z4XGp6.js";
|
|
|
7
7
|
import "@react-aria/utils";
|
|
8
8
|
import "remeda";
|
|
9
9
|
import { TunnelProvider as f, TunnelExit as p } from "@mittwald/react-tunnel";
|
|
10
|
-
import { f as u } from "./flowComponent-
|
|
11
|
-
import { M as g } from "./ModalOverlay-
|
|
10
|
+
import { f as u } from "./flowComponent-CWmvUeHT.js";
|
|
11
|
+
import { M as g } from "./ModalOverlay-TJdwgPq0.js";
|
|
12
12
|
import * as v from "react-aria-components";
|
|
13
|
-
import { O as w } from "./OverlayTrigger-
|
|
13
|
+
import { O as w } from "./OverlayTrigger-CZdXqASS.js";
|
|
14
14
|
const z = "flow--modal", C = "flow--modal--action-group", E = "flow--modal--content", T = "flow--modal--off-canvas", e = {
|
|
15
15
|
modal: z,
|
|
16
16
|
"modal-zoom": "flow--modal--modal-zoom",
|
|
@@ -22,17 +22,17 @@ const z = "flow--modal", C = "flow--modal--action-group", E = "flow--modal--cont
|
|
|
22
22
|
offCanvas: T,
|
|
23
23
|
"modal-slide-in": "flow--modal--modal-slide-in",
|
|
24
24
|
"modal-slide-up": "flow--modal--modal-slide-up"
|
|
25
|
-
}, D = u("Modal", (
|
|
25
|
+
}, D = u("Modal", (t) => {
|
|
26
26
|
const {
|
|
27
|
-
size:
|
|
27
|
+
size: l = "s",
|
|
28
28
|
offCanvas: a,
|
|
29
|
-
controller:
|
|
30
|
-
children:
|
|
31
|
-
refProp:
|
|
29
|
+
controller: r,
|
|
30
|
+
children: n,
|
|
31
|
+
refProp: y,
|
|
32
32
|
...m
|
|
33
|
-
} =
|
|
33
|
+
} = t, s = d(
|
|
34
34
|
e.modal,
|
|
35
|
-
e[`size-${
|
|
35
|
+
e[`size-${l}`],
|
|
36
36
|
a && e.offCanvas
|
|
37
37
|
), i = {
|
|
38
38
|
Content: {
|
|
@@ -47,8 +47,19 @@ const z = "flow--modal", C = "flow--modal--action-group", E = "flow--modal--cont
|
|
|
47
47
|
tunnelId: "buttons"
|
|
48
48
|
}
|
|
49
49
|
};
|
|
50
|
-
return /* @__PURE__ */ o.createElement(g, { className: s, controller:
|
|
51
|
-
}), F = (
|
|
50
|
+
return /* @__PURE__ */ o.createElement(g, { className: s, controller: r, ...m }, /* @__PURE__ */ o.createElement(c, { props: i }, /* @__PURE__ */ o.createElement(f, null, /* @__PURE__ */ o.createElement("div", { className: e.content }, n), /* @__PURE__ */ o.createElement(p, { id: "buttons" }))));
|
|
51
|
+
}), F = (t) => {
|
|
52
|
+
const { children: l, ...a } = t;
|
|
53
|
+
return /* @__PURE__ */ o.createElement(
|
|
54
|
+
w,
|
|
55
|
+
{
|
|
56
|
+
overlayType: "Modal",
|
|
57
|
+
...a,
|
|
58
|
+
component: v.DialogTrigger
|
|
59
|
+
},
|
|
60
|
+
l
|
|
61
|
+
);
|
|
62
|
+
};
|
|
52
63
|
export {
|
|
53
64
|
D as Modal,
|
|
54
65
|
F as ModalTrigger,
|
|
@@ -2,32 +2,33 @@
|
|
|
2
2
|
/* */
|
|
3
3
|
import * as r from "react-aria-components";
|
|
4
4
|
import e from "react";
|
|
5
|
-
import
|
|
6
|
-
import { u as p, a as u } from "./useOverlayController-CGKumeGL.js";
|
|
5
|
+
import p from "clsx";
|
|
7
6
|
import "mobx";
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
import { u as v } from "./useOverlayController-C88Gnnhi.js";
|
|
8
|
+
import { O as d } from "./OverlayContextProvider-BBz2Hde8.js";
|
|
9
|
+
const f = "flow--modal-overlay--overlay", u = {
|
|
10
|
+
overlay: f,
|
|
10
11
|
"overlay-fade": "flow--modal-overlay--overlay-fade"
|
|
11
|
-
},
|
|
12
|
+
}, F = (l) => {
|
|
12
13
|
const {
|
|
13
14
|
controller: t,
|
|
14
15
|
children: a,
|
|
15
16
|
isDismissable: s = !0,
|
|
16
17
|
className: n
|
|
17
|
-
} = l, m =
|
|
18
|
+
} = l, m = v("Modal", {
|
|
18
19
|
reuseControllerFromContext: !0
|
|
19
|
-
}), o = t ?? m, c = o.useIsOpen(),
|
|
20
|
+
}), o = t ?? m, c = o.useIsOpen(), i = p(u.overlay, n);
|
|
20
21
|
return /* @__PURE__ */ e.createElement(
|
|
21
22
|
r.ModalOverlay,
|
|
22
23
|
{
|
|
23
|
-
className:
|
|
24
|
+
className: i,
|
|
24
25
|
isDismissable: s,
|
|
25
26
|
isOpen: c,
|
|
26
|
-
onOpenChange: (
|
|
27
|
+
onOpenChange: (y) => o.setOpen(y)
|
|
27
28
|
},
|
|
28
|
-
/* @__PURE__ */ e.createElement(r.Modal, null, /* @__PURE__ */ e.createElement(r.Dialog, null, /* @__PURE__ */ e.createElement(
|
|
29
|
+
/* @__PURE__ */ e.createElement(r.Modal, null, /* @__PURE__ */ e.createElement(r.Dialog, null, /* @__PURE__ */ e.createElement(d, { type: "Modal", controller: o }, a)))
|
|
29
30
|
);
|
|
30
31
|
};
|
|
31
32
|
export {
|
|
32
|
-
M
|
|
33
|
+
F as M
|
|
33
34
|
};
|
package/dist/Navigation.js
CHANGED
|
@@ -9,8 +9,8 @@ import { P as l } from "./PropsContextProvider-C6Z4XGp6.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-
|
|
12
|
+
import { A as x } from "./Accordion-S70SYWwS.js";
|
|
13
|
+
import { C as N } from "./Content-arM8nm8H.js";
|
|
14
14
|
const C = "flow--navigation", I = "flow--navigation--item", b = "flow--navigation--icon", P = "flow--navigation--text", w = "flow--navigation--control-icon", r = {
|
|
15
15
|
navigation: C,
|
|
16
16
|
item: I,
|
package/dist/Notification.js
CHANGED
|
@@ -6,12 +6,12 @@ import "./propsContext-DzAKlmhS.js";
|
|
|
6
6
|
import { P as w } from "./PropsContextProvider-C6Z4XGp6.js";
|
|
7
7
|
import "@react-aria/utils";
|
|
8
8
|
import "remeda";
|
|
9
|
-
import { S as g } from "./StatusIcon-
|
|
10
|
-
import { L as h } from "./Link-
|
|
11
|
-
import { B as k } from "./Button-
|
|
9
|
+
import { S as g } from "./StatusIcon-YOrSQbPf.js";
|
|
10
|
+
import { L as h } from "./Link-Bal042NI.js";
|
|
11
|
+
import { B as k } from "./Button-Bs4J6es6.js";
|
|
12
12
|
import "@tabler/icons-react";
|
|
13
|
-
import "./Icon-
|
|
14
|
-
import { I as x } from "./IconClose-
|
|
13
|
+
import "./Icon-CvhSELPq.js";
|
|
14
|
+
import { I as x } from "./IconClose-DVwhXp3R.js";
|
|
15
15
|
const N = "flow--notification", C = "flow--notification--link", E = "flow--notification--status-icon", I = "flow--notification--heading", L = "flow--notification--text", P = "flow--notification--close", v = "flow--notification--info", y = "flow--notification--has-link", B = "flow--notification--warning", S = "flow--notification--danger", z = "flow--notification--success", o = {
|
|
16
16
|
notification: N,
|
|
17
17
|
link: C,
|
package/dist/NumberField.js
CHANGED
|
@@ -9,14 +9,14 @@ import { P as I } from "./PropsContextProvider-C6Z4XGp6.js";
|
|
|
9
9
|
import "@react-aria/utils";
|
|
10
10
|
import "./propsContext-DzAKlmhS.js";
|
|
11
11
|
import "remeda";
|
|
12
|
-
import { F as b } from "./FieldError-
|
|
13
|
-
import { B as m } from "./Button-
|
|
12
|
+
import { F as b } from "./FieldError-eiEmcuuK.js";
|
|
13
|
+
import { B as m } from "./Button-Bs4J6es6.js";
|
|
14
14
|
import "@tabler/icons-react";
|
|
15
|
-
import "./Icon-
|
|
16
|
-
import { I as C } from "./IconChevronDown-
|
|
17
|
-
import { I as h } from "./IconChevronUp-
|
|
18
|
-
import { I as P, a as F } from "./IconPlus-
|
|
19
|
-
import { f as w } from "./flowComponent-
|
|
15
|
+
import "./Icon-CvhSELPq.js";
|
|
16
|
+
import { I as C } from "./IconChevronDown-BjpRbARt.js";
|
|
17
|
+
import { I as h } from "./IconChevronUp-D1VuNDfJ.js";
|
|
18
|
+
import { I as P, a as F } from "./IconPlus-Uxpaa4X_.js";
|
|
19
|
+
import { f as w } from "./flowComponent-CWmvUeHT.js";
|
|
20
20
|
const B = "flow--number-field--group", g = "flow--number-field--input", v = "flow--number-field--decrement-button", x = "flow--number-field--increment-button", y = "flow--number-field--coarse-pointer-icon", D = "flow--number-field--touch-icon", o = {
|
|
21
21
|
group: B,
|
|
22
22
|
input: g,
|
package/dist/OffCanvas.js
CHANGED
|
@@ -1,29 +1,40 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
/* */
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
3
|
+
import o from "react";
|
|
4
|
+
import i from "clsx";
|
|
5
|
+
import "mobx";
|
|
6
|
+
import { u as p } from "./useOverlayController-C88Gnnhi.js";
|
|
7
|
+
import { B as v } from "./Button-Bs4J6es6.js";
|
|
6
8
|
import "@tabler/icons-react";
|
|
7
|
-
import "./Icon-
|
|
8
|
-
import { I as
|
|
9
|
-
import { A as
|
|
10
|
-
import { M as
|
|
9
|
+
import "./Icon-CvhSELPq.js";
|
|
10
|
+
import { I as d } from "./IconClose-DVwhXp3R.js";
|
|
11
|
+
import { A as C } from "./Action-BW80BkOP.js";
|
|
12
|
+
import { M as u } from "./ModalOverlay-TJdwgPq0.js";
|
|
11
13
|
import "./propsContext-DzAKlmhS.js";
|
|
12
|
-
import { P as
|
|
14
|
+
import { P as O } from "./PropsContextProvider-C6Z4XGp6.js";
|
|
13
15
|
import "@react-aria/utils";
|
|
14
16
|
import "remeda";
|
|
15
|
-
import { TunnelProvider as
|
|
16
|
-
import { H as E } from "./Header-
|
|
17
|
-
import
|
|
18
|
-
import { O as
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
import { TunnelProvider as g, TunnelExit as y } from "@mittwald/react-tunnel";
|
|
18
|
+
import { H as E } from "./Header-DAaa854y.js";
|
|
19
|
+
import { f as h } from "./flowComponent-CWmvUeHT.js";
|
|
20
|
+
import { O as x } from "./OverlayContextProvider-BBz2Hde8.js";
|
|
21
|
+
import * as P from "react-aria-components";
|
|
22
|
+
import { O as w } from "./OverlayTrigger-CZdXqASS.js";
|
|
23
|
+
const T = "flow--off-canvas", B = "flow--off-canvas--header", N = "flow--off-canvas--close-button", t = {
|
|
24
|
+
offCanvas: T,
|
|
21
25
|
"off-canvas-slide-in": "flow--off-canvas--off-canvas-slide-in",
|
|
22
26
|
"off-canvas-slide-out": "flow--off-canvas--off-canvas-slide-out",
|
|
23
|
-
header:
|
|
24
|
-
closeButton:
|
|
25
|
-
},
|
|
26
|
-
const {
|
|
27
|
+
header: B,
|
|
28
|
+
closeButton: N
|
|
29
|
+
}, U = h("OffCanvas", (e) => {
|
|
30
|
+
const {
|
|
31
|
+
controller: r,
|
|
32
|
+
refProp: a,
|
|
33
|
+
children: l,
|
|
34
|
+
className: s
|
|
35
|
+
} = e, f = i(t.offCanvas, s), m = p("OffCanvas", {
|
|
36
|
+
reuseControllerFromContext: !0
|
|
37
|
+
}), n = r ?? m, c = {
|
|
27
38
|
Heading: {
|
|
28
39
|
slot: "title",
|
|
29
40
|
tunnelId: "heading",
|
|
@@ -31,18 +42,29 @@ const h = "flow--off-canvas", O = "flow--off-canvas--header", w = "flow--off-can
|
|
|
31
42
|
level: 2
|
|
32
43
|
}
|
|
33
44
|
};
|
|
34
|
-
return /* @__PURE__ */
|
|
35
|
-
|
|
45
|
+
return /* @__PURE__ */ o.createElement(u, { controller: n, className: f }, /* @__PURE__ */ o.createElement(x, { type: "OffCanvas", controller: n }, /* @__PURE__ */ o.createElement(O, { props: c }, /* @__PURE__ */ o.createElement(g, null, /* @__PURE__ */ o.createElement(E, { className: t.header }, /* @__PURE__ */ o.createElement(y, { id: "heading" }), /* @__PURE__ */ o.createElement(C, { closeOverlay: "OffCanvas" }, /* @__PURE__ */ o.createElement(
|
|
46
|
+
v,
|
|
36
47
|
{
|
|
37
48
|
variant: "plain",
|
|
38
49
|
color: "secondary",
|
|
39
|
-
className:
|
|
50
|
+
className: t.closeButton
|
|
40
51
|
},
|
|
41
|
-
/* @__PURE__ */
|
|
42
|
-
))),
|
|
43
|
-
},
|
|
52
|
+
/* @__PURE__ */ o.createElement(d, null)
|
|
53
|
+
))), l))));
|
|
54
|
+
}), W = (e) => {
|
|
55
|
+
const { children: r, ...a } = e;
|
|
56
|
+
return /* @__PURE__ */ o.createElement(
|
|
57
|
+
w,
|
|
58
|
+
{
|
|
59
|
+
overlayType: "OffCanvas",
|
|
60
|
+
...a,
|
|
61
|
+
component: P.DialogTrigger
|
|
62
|
+
},
|
|
63
|
+
r
|
|
64
|
+
);
|
|
65
|
+
};
|
|
44
66
|
export {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
67
|
+
U as OffCanvas,
|
|
68
|
+
W as OffCanvasTrigger,
|
|
69
|
+
U as default
|
|
48
70
|
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
/* */
|
|
3
|
+
import a from "react";
|
|
4
|
+
import { u as l, o as c } from "./context-Bdh6m_8S.js";
|
|
5
|
+
const i = (e) => {
|
|
6
|
+
const { type: t, controller: r, children: o } = e, n = l();
|
|
7
|
+
return /* @__PURE__ */ a.createElement(
|
|
8
|
+
c.Provider,
|
|
9
|
+
{
|
|
10
|
+
value: {
|
|
11
|
+
...n,
|
|
12
|
+
[t]: r
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
o
|
|
16
|
+
);
|
|
17
|
+
};
|
|
18
|
+
export {
|
|
19
|
+
i as O
|
|
20
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
/* */
|
|
3
|
+
import r from "react";
|
|
4
|
+
import { O as m } from "./context-Bdh6m_8S.js";
|
|
5
|
+
import "./propsContext-DzAKlmhS.js";
|
|
6
|
+
import { P as i } from "./PropsContextProvider-C6Z4XGp6.js";
|
|
7
|
+
import "@react-aria/utils";
|
|
8
|
+
import "remeda";
|
|
9
|
+
import { O as c } from "./OverlayContextProvider-BBz2Hde8.js";
|
|
10
|
+
const g = (o) => {
|
|
11
|
+
const {
|
|
12
|
+
overlayType: t,
|
|
13
|
+
isDefaultOpen: n = !1,
|
|
14
|
+
component: p,
|
|
15
|
+
children: s
|
|
16
|
+
} = o, e = m.useNew(n), a = e.useIsOpen(), l = {
|
|
17
|
+
Button: {
|
|
18
|
+
onPress: e.open
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
return /* @__PURE__ */ r.createElement(c, { type: t, controller: e }, /* @__PURE__ */ r.createElement(i, { props: l, mergeInParentContext: !0 }, /* @__PURE__ */ r.createElement(p, { isOpen: a }, s)));
|
|
22
|
+
};
|
|
23
|
+
export {
|
|
24
|
+
g as O
|
|
25
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
/* */
|
|
3
|
+
import o from "react";
|
|
4
|
+
import * as r from "react-aria-components";
|
|
5
|
+
import w from "clsx";
|
|
6
|
+
import "mobx";
|
|
7
|
+
import { u as O } from "./useOverlayController-C88Gnnhi.js";
|
|
8
|
+
import { f as C } from "./flowComponent-CWmvUeHT.js";
|
|
9
|
+
import { O as h } from "./OverlayContextProvider-BBz2Hde8.js";
|
|
10
|
+
const u = "flow--popover", x = "flow--popover--content", E = "flow--popover--tip", t = {
|
|
11
|
+
popover: u,
|
|
12
|
+
content: x,
|
|
13
|
+
tip: E,
|
|
14
|
+
"popover-slide": "flow--popover--popover-slide"
|
|
15
|
+
}, B = C("Popover", (n) => {
|
|
16
|
+
const {
|
|
17
|
+
children: p,
|
|
18
|
+
className: s,
|
|
19
|
+
controller: l,
|
|
20
|
+
withTip: a,
|
|
21
|
+
refProp: c,
|
|
22
|
+
defaultOpen: m = !1,
|
|
23
|
+
...i
|
|
24
|
+
} = n, v = O("Popover", {
|
|
25
|
+
reuseControllerFromContext: !0,
|
|
26
|
+
defaultOpen: m
|
|
27
|
+
}), e = l ?? v, f = e.useIsOpen(), P = w(t.popover, s);
|
|
28
|
+
return /* @__PURE__ */ o.createElement(
|
|
29
|
+
r.Popover,
|
|
30
|
+
{
|
|
31
|
+
...i,
|
|
32
|
+
className: P,
|
|
33
|
+
containerPadding: 16,
|
|
34
|
+
ref: c,
|
|
35
|
+
isOpen: f,
|
|
36
|
+
onOpenChange: (d) => e.setOpen(d)
|
|
37
|
+
},
|
|
38
|
+
a && /* @__PURE__ */ o.createElement(r.OverlayArrow, { className: t.tip }, /* @__PURE__ */ o.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16" }, /* @__PURE__ */ o.createElement("path", { d: "M0 0 L8 8 L16 0" }))),
|
|
39
|
+
/* @__PURE__ */ o.createElement(r.Dialog, { className: t.content }, /* @__PURE__ */ o.createElement(h, { type: "Popover", controller: e }, p))
|
|
40
|
+
);
|
|
41
|
+
});
|
|
42
|
+
export {
|
|
43
|
+
B as P
|
|
44
|
+
};
|
package/dist/RadioGroup.js
CHANGED
|
@@ -8,18 +8,18 @@ import { P as C, m as I } from "./PropsContextProvider-C6Z4XGp6.js";
|
|
|
8
8
|
import "@react-aria/utils";
|
|
9
9
|
import "remeda";
|
|
10
10
|
import { d as P } from "./dynamic-ClpUSmEt.js";
|
|
11
|
-
import { F as b } from "./FieldError-
|
|
11
|
+
import { F as b } from "./FieldError-eiEmcuuK.js";
|
|
12
12
|
import { C as k } from "./ColumnLayout-FMONjI17.js";
|
|
13
13
|
import { TunnelProvider as y, TunnelExit as m } from "@mittwald/react-tunnel";
|
|
14
14
|
import { s as c } from "./FormField.module-DHK6nIcD.js";
|
|
15
15
|
import { d as F } from "./deepFindOfType-6pG0fH7S.js";
|
|
16
16
|
import { C as w } from "./ClearPropsContext-CUvsbMn8.js";
|
|
17
17
|
import "@tabler/icons-react";
|
|
18
|
-
import "./Icon-
|
|
19
|
-
import { I as B, a as v } from "./IconRadioOn-
|
|
20
|
-
import { f as N } from "./flowComponent-
|
|
18
|
+
import "./Icon-CvhSELPq.js";
|
|
19
|
+
import { I as B, a as v } from "./IconRadioOn-8P7k8SVa.js";
|
|
20
|
+
import { f as N } from "./flowComponent-CWmvUeHT.js";
|
|
21
21
|
import "dot-prop";
|
|
22
|
-
import { I as D } from "./IconCheck-
|
|
22
|
+
import { I as D } from "./IconCheck-Bx3sPenK.js";
|
|
23
23
|
const T = "flow--radio-group", O = "flow--radio-group--segmented-group", $ = "flow--radio-group--segments", L = "flow--radio-group--segment", A = "flow--radio-group--checkmark", a = {
|
|
24
24
|
radioGroup: T,
|
|
25
25
|
segmentedGroup: O,
|
package/dist/Section.js
CHANGED
|
@@ -6,7 +6,7 @@ import "./propsContext-DzAKlmhS.js";
|
|
|
6
6
|
import { P as p } from "./PropsContextProvider-C6Z4XGp6.js";
|
|
7
7
|
import "@react-aria/utils";
|
|
8
8
|
import "remeda";
|
|
9
|
-
import { f as d } from "./flowComponent-
|
|
9
|
+
import { f as d } from "./flowComponent-CWmvUeHT.js";
|
|
10
10
|
import { A as f } from "./Activity-CmfZpgOM.js";
|
|
11
11
|
const u = "flow--section", h = "flow--section--header", w = "flow--section--status-badge", e = {
|
|
12
12
|
section: u,
|
package/dist/Select.js
CHANGED
|
@@ -1,86 +1,91 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
/* */
|
|
3
3
|
import e from "react";
|
|
4
|
-
import * as
|
|
4
|
+
import * as i from "react-aria-components";
|
|
5
5
|
import "./propsContext-DzAKlmhS.js";
|
|
6
|
-
import { P as
|
|
6
|
+
import { P as h } from "./PropsContextProvider-C6Z4XGp6.js";
|
|
7
7
|
import "@react-aria/utils";
|
|
8
8
|
import "remeda";
|
|
9
|
-
import { s as
|
|
10
|
-
import { F as
|
|
9
|
+
import { s as c } from "./FormField.module-DHK6nIcD.js";
|
|
10
|
+
import { F as w } from "./FieldError-eiEmcuuK.js";
|
|
11
11
|
import f from "clsx";
|
|
12
12
|
import "@tabler/icons-react";
|
|
13
|
-
import "./Icon-
|
|
14
|
-
import { I as
|
|
15
|
-
import { f as E } from "./flowComponent-
|
|
16
|
-
import { P as
|
|
13
|
+
import "./Icon-CvhSELPq.js";
|
|
14
|
+
import { I as P } from "./IconChevronDown-BjpRbARt.js";
|
|
15
|
+
import { f as E } from "./flowComponent-CWmvUeHT.js";
|
|
16
|
+
import { P as F } from "./Popover-DrXvRfAg.js";
|
|
17
17
|
import "mobx";
|
|
18
|
-
import { u as
|
|
18
|
+
import { u as C } from "./useOverlayController-C88Gnnhi.js";
|
|
19
19
|
import "dot-prop";
|
|
20
|
-
import
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
},
|
|
20
|
+
import "./context-Bdh6m_8S.js";
|
|
21
|
+
import { TunnelProvider as y, TunnelExit as I } from "@mittwald/react-tunnel";
|
|
22
|
+
import { O as B } from "./OverlayContextProvider-BBz2Hde8.js";
|
|
23
|
+
const D = "flow--select", L = "flow--select--toggle", u = {
|
|
24
|
+
select: D,
|
|
25
|
+
toggle: L
|
|
26
|
+
}, $ = "flow--select--options--popover", b = "flow--select--options", d = {
|
|
27
|
+
popover: $,
|
|
28
|
+
options: b
|
|
29
|
+
}, R = (o) => {
|
|
30
|
+
const { className: t, children: r, ...n } = o, l = f(d.options, t), s = C("Select");
|
|
31
|
+
return /* @__PURE__ */ e.createElement(F, { className: d.popover, controller: s }, /* @__PURE__ */ e.createElement(i.ListBox, { className: l, ...n }, r));
|
|
32
|
+
}, le = E("Select", (o) => {
|
|
31
33
|
const {
|
|
32
34
|
children: t,
|
|
33
|
-
className:
|
|
34
|
-
onChange:
|
|
35
|
+
className: r,
|
|
36
|
+
onChange: n = () => {
|
|
35
37
|
},
|
|
36
|
-
onSelectionChange:
|
|
38
|
+
onSelectionChange: l = () => {
|
|
37
39
|
},
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
40
|
+
controller: s,
|
|
41
|
+
refProp: m,
|
|
42
|
+
...N
|
|
43
|
+
} = o, g = f(
|
|
41
44
|
u.select,
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
),
|
|
45
|
+
c.formField,
|
|
46
|
+
r
|
|
47
|
+
), x = {
|
|
45
48
|
Label: {
|
|
46
|
-
className:
|
|
49
|
+
className: c.label,
|
|
47
50
|
optional: !o.isRequired
|
|
48
51
|
},
|
|
49
52
|
FieldDescription: {
|
|
50
|
-
className:
|
|
53
|
+
className: c.fieldDescription
|
|
51
54
|
},
|
|
52
55
|
FieldError: {
|
|
53
|
-
className:
|
|
56
|
+
className: c.customFieldError
|
|
54
57
|
},
|
|
55
58
|
Option: {
|
|
56
59
|
tunnelId: "options"
|
|
57
60
|
}
|
|
58
|
-
},
|
|
59
|
-
|
|
60
|
-
},
|
|
61
|
+
}, v = (a) => {
|
|
62
|
+
n(String(a)), l(a);
|
|
63
|
+
}, O = C("Select", {
|
|
64
|
+
reuseControllerFromContext: !0
|
|
65
|
+
}), p = s ?? O, S = p.useIsOpen();
|
|
61
66
|
return /* @__PURE__ */ e.createElement(
|
|
62
|
-
|
|
67
|
+
i.Select,
|
|
63
68
|
{
|
|
64
|
-
...
|
|
65
|
-
className:
|
|
66
|
-
ref:
|
|
67
|
-
onSelectionChange:
|
|
68
|
-
onOpenChange: (a) =>
|
|
69
|
-
isOpen:
|
|
69
|
+
...N,
|
|
70
|
+
className: g,
|
|
71
|
+
ref: m,
|
|
72
|
+
onSelectionChange: v,
|
|
73
|
+
onOpenChange: (a) => p.setOpen(a),
|
|
74
|
+
isOpen: S
|
|
70
75
|
},
|
|
71
|
-
/* @__PURE__ */ e.createElement(
|
|
76
|
+
/* @__PURE__ */ e.createElement(B, { type: "Select", controller: p }, /* @__PURE__ */ e.createElement(h, { props: x }, /* @__PURE__ */ e.createElement(y, null, /* @__PURE__ */ e.createElement(i.Button, { className: u.toggle }, /* @__PURE__ */ e.createElement(i.SelectValue, null), /* @__PURE__ */ e.createElement(P, null)), t, /* @__PURE__ */ e.createElement(R, null, /* @__PURE__ */ e.createElement(I, { id: "options" })), /* @__PURE__ */ e.createElement(w, { className: c.fieldError }))))
|
|
72
77
|
);
|
|
73
|
-
}),
|
|
74
|
-
option:
|
|
75
|
-
icon:
|
|
76
|
-
text:
|
|
77
|
-
controlIcon:
|
|
78
|
-
},
|
|
79
|
-
const { className: t, children:
|
|
80
|
-
return /* @__PURE__ */ e.createElement(
|
|
78
|
+
}), T = "flow--select--option", q = "flow--select--option--icon", A = "flow--select--option--text", V = "flow--select--option--control-icon", j = {
|
|
79
|
+
option: T,
|
|
80
|
+
icon: q,
|
|
81
|
+
text: A,
|
|
82
|
+
controlIcon: V
|
|
83
|
+
}, se = E("Option", (o) => {
|
|
84
|
+
const { className: t, children: r, value: n, refProp: l, ...s } = o, m = f(j.option, t);
|
|
85
|
+
return /* @__PURE__ */ e.createElement(i.ListBoxItem, { className: m, ref: l, ...s, id: n }, r);
|
|
81
86
|
});
|
|
82
87
|
export {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
88
|
+
se as Option,
|
|
89
|
+
le as Select,
|
|
90
|
+
le as default
|
|
86
91
|
};
|
package/dist/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-
|
|
4
|
+
import { f as E } from "./flowComponent-CWmvUeHT.js";
|
|
5
5
|
import * as n from "react-aria-components";
|
|
6
6
|
import h from "clsx";
|
|
7
7
|
import "./propsContext-DzAKlmhS.js";
|
|
8
8
|
import { P as v } from "./PropsContextProvider-C6Z4XGp6.js";
|
|
9
9
|
import "@react-aria/utils";
|
|
10
10
|
import "remeda";
|
|
11
|
-
import { B as i } from "./Button-
|
|
11
|
+
import { B as i } from "./Button-Bs4J6es6.js";
|
|
12
12
|
import "@tabler/icons-react";
|
|
13
|
-
import "./Icon-
|
|
14
|
-
import { I as w, a as N } from "./IconPlus-
|
|
13
|
+
import "./Icon-CvhSELPq.js";
|
|
14
|
+
import { I as w, a as N } from "./IconPlus-Uxpaa4X_.js";
|
|
15
15
|
import { useLocalizedStringFormatter as k } from "react-aria";
|
|
16
16
|
const x = "flow--slider", P = "flow--slider--text", S = "flow--slider--value", g = "flow--slider--track", y = "flow--slider--fill", I = "flow--slider--initial-marker", M = "flow--slider--thumb", T = "flow--slider--increment", C = "flow--slider--decrement", z = "flow--slider--disabled", t = {
|
|
17
17
|
slider: x,
|
package/dist/StatusBadge.js
CHANGED
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
/* */
|
|
3
3
|
import t from "react";
|
|
4
4
|
import l from "clsx";
|
|
5
|
-
import { S as f } from "./StatusIcon-
|
|
6
|
-
import { T as i } from "./Text-
|
|
5
|
+
import { S as f } from "./StatusIcon-YOrSQbPf.js";
|
|
6
|
+
import { T as i } from "./Text-BgxTAtk1.js";
|
|
7
7
|
import { C as u } from "./ClearPropsContext-CUvsbMn8.js";
|
|
8
8
|
import "./propsContext-DzAKlmhS.js";
|
|
9
9
|
import "@react-aria/utils";
|
|
10
10
|
import "remeda";
|
|
11
11
|
import "dot-prop";
|
|
12
|
-
import { f as d } from "./flowComponent-
|
|
12
|
+
import { f as d } from "./flowComponent-CWmvUeHT.js";
|
|
13
13
|
const g = "flow--status-badge", p = "flow--status-badge--text", w = "flow--status-badge--info", x = "flow--status-badge--success", b = "flow--status-badge--warning", B = "flow--status-badge--danger", s = {
|
|
14
14
|
statusBadge: g,
|
|
15
15
|
text: p,
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
/* */
|
|
3
3
|
import t from "react";
|
|
4
4
|
import "@tabler/icons-react";
|
|
5
|
-
import "./Icon-
|
|
6
|
-
import { I as m } from "./IconDanger-
|
|
7
|
-
import { I as f } from "./IconInfo-
|
|
8
|
-
import { I, a as l } from "./IconWarning-
|
|
5
|
+
import "./Icon-CvhSELPq.js";
|
|
6
|
+
import { I as m } from "./IconDanger-C-H0zYrp.js";
|
|
7
|
+
import { I as f } from "./IconInfo-DDhh409U.js";
|
|
8
|
+
import { I, a as l } from "./IconWarning-zl3wRgfI.js";
|
|
9
9
|
import { useLocalizedStringFormatter as g } from "react-aria";
|
|
10
10
|
import { C as p } from "./ClearPropsContext-CUvsbMn8.js";
|
|
11
11
|
import "./propsContext-DzAKlmhS.js";
|
package/dist/StatusIcon.js
CHANGED
package/dist/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-
|
|
8
|
-
import { I as p } from "./IconCheck-
|
|
9
|
-
import { I as h } from "./IconClose-
|
|
10
|
-
import { L as w } from "./Label-
|
|
7
|
+
import "./Icon-CvhSELPq.js";
|
|
8
|
+
import { I as p } from "./IconCheck-Bx3sPenK.js";
|
|
9
|
+
import { I as h } from "./IconClose-DVwhXp3R.js";
|
|
10
|
+
import { L as w } from "./Label-25wKJcpL.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-
|
|
16
|
+
import { f as b } from "./flowComponent-CWmvUeHT.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",
|