@mittwald/flow-react-components 0.1.0-alpha.122 → 0.1.0-alpha.124
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-9wwB377E.js → Accordion-Bszrsi-4.js} +4 -4
- package/dist/Accordion.js +1 -1
- package/dist/Action-7EQNT1az.js +217 -0
- package/dist/Action.js +1 -1
- package/dist/Avatar.js +22 -22
- package/dist/Breadcrumb.js +3 -3
- package/dist/{Button-BGCNzfmU.js → Button-tEtjVHFC.js} +6 -6
- package/dist/Button.js +1 -1
- package/dist/ButtonGroup.js +16 -16
- package/dist/{Checkbox-HtVxajw_.js → Checkbox-CHueH9FZ.js} +4 -4
- package/dist/Checkbox.js +1 -1
- package/dist/CheckboxButton-Ch3zxviG.js +29 -0
- package/dist/CheckboxButton.js +1 -1
- package/dist/CheckboxGroup.js +15 -15
- package/dist/{Content-CPAYV7wp.js → Content-xPY804ey.js} +1 -1
- package/dist/Content.js +1 -1
- package/dist/{ContextMenu-BGfJXwpB.js → ContextMenu-ChxMleeO.js} +3 -3
- package/dist/ContextMenu.js +2 -2
- package/dist/CopyButton.js +5 -5
- package/dist/FieldDescription.js +2 -2
- package/dist/{FieldError--Qpixa12.js → FieldError-Bl_SXH5M.js} +3 -3
- package/dist/FieldError.js +1 -1
- package/dist/Header.js +1 -1
- package/dist/HeaderNavigation.js +1 -1
- package/dist/{Heading-CYit9Nf-.js → Heading-CSfMC_V6.js} +2 -2
- package/dist/Heading.js +1 -1
- package/dist/{Icon-DhFv_0k_.js → Icon-DXq5lwp4.js} +7 -6
- package/dist/Icon.js +1 -1
- package/dist/{IconCheck-D8ys0_F5.js → IconCheck-BLXj9z4I.js} +1 -1
- package/dist/{IconCheckboxEmpty-DRlqWMgD.js → IconCheckboxEmpty-CseDZ77J.js} +1 -1
- package/dist/{IconCheckboxIndeterminate-CfK_tk87.js → IconCheckboxIndeterminate-BdEkNKEg.js} +1 -1
- package/dist/{IconChevronDown-gLJKgegq.js → IconChevronDown-DGMWVrr9.js} +1 -1
- package/dist/{IconChevronRight-CqgfPevo.js → IconChevronRight-Sd5qEgz9.js} +1 -1
- package/dist/{IconClose-BEe9M79E.js → IconClose-BuJDcvk1.js} +1 -1
- package/dist/{IconContextMenu-B9OI5d_u.js → IconContextMenu-BtDEfs_U.js} +1 -1
- package/dist/{IconCopy-A7uxuck-.js → IconCopy-Y4GR1Z03.js} +1 -1
- package/dist/{IconDanger-ALKH8dEk.js → IconDanger-D3n1sEDX.js} +1 -1
- package/dist/{IconPending-BV6Loio6.js → IconPending-C0IPPa0F.js} +1 -1
- package/dist/{IconPlus-eFn-agxn.js → IconPlus-BL-Zqbnv.js} +1 -1
- package/dist/{IconRadioOn--oXSoOvP.js → IconRadioOn-D0pCkmJ4.js} +1 -1
- package/dist/{IconSearch-BO1yNi13.js → IconSearch-B9UA2NmT.js} +1 -1
- package/dist/{IconSucceeded-d8xQyLF2.js → IconSucceeded-B4DEKa6J.js} +1 -1
- package/dist/{IconWarning-CAgZzx72.js → IconWarning-CmSsxAnH.js} +1 -1
- package/dist/Icons.js +16 -16
- package/dist/{IllustratedMessage-D1xVzeZO.js → IllustratedMessage-BUg2-svi.js} +1 -1
- package/dist/IllustratedMessage.js +1 -1
- package/dist/Image.js +5 -5
- package/dist/Initials.js +1 -1
- package/dist/InlineAlert.js +4 -4
- package/dist/{Label-DWCo1l63.js → Label-CfPzBQtx.js} +1 -1
- package/dist/Label.js +1 -1
- package/dist/LabeledValue.js +1 -1
- package/dist/LayoutCard.js +2 -2
- package/dist/{Link-BK57CeBv.js → Link-BNozTXoN.js} +2 -2
- package/dist/Link.js +1 -1
- package/dist/List.js +199 -204
- package/dist/{LoadingSpinner-BV4S5RsS.js → LoadingSpinner-smFm5pXR.js} +2 -2
- package/dist/LoadingSpinner.js +1 -1
- package/dist/MenuItem-CgrBX4na.js +54 -0
- package/dist/MenuItem.js +1 -1
- package/dist/Modal.js +13 -6
- package/dist/Navigation.js +3 -3
- package/dist/NumberField.js +7 -7
- package/dist/OffCanvas.js +7 -7
- package/dist/Overlay-CUZ1KZa8.js +33 -0
- package/dist/OverlayTrigger.js +3 -3
- package/dist/Popover-B6bARCOK.js +17 -0
- package/dist/ProgressBar.js +1 -1
- package/dist/PropsContextProvider-ChpH8eF2.js +81 -0
- package/dist/RadioGroup.js +46 -37
- package/dist/Section.js +18 -18
- package/dist/Select.js +6 -6
- package/dist/Skeleton-CKLaTmDR.js +22 -0
- package/dist/Skeleton.js +1 -1
- package/dist/StatusBadge.js +3 -3
- package/dist/{StatusIcon-CvIY_c35.js → StatusIcon-CzfeqAZQ.js} +3 -3
- package/dist/StatusIcon.js +1 -1
- package/dist/Switch.js +5 -5
- package/dist/Tabs.js +47 -39
- package/dist/{Text-DXApO_Re.js → Text-DOQUStg_.js} +2 -2
- package/dist/Text.js +1 -1
- package/dist/TextArea.js +2 -2
- package/dist/TextField.js +2 -2
- package/dist/{TextFieldBase-C7g5i_rC.js → TextFieldBase-B6lQlCmE.js} +2 -2
- package/dist/context-CEG7VfKL.js +58 -0
- package/dist/controller.js +1 -1
- package/dist/{flowComponent-Dha_9C4F.js → flowComponent-Cv_SURLH.js} +35 -34
- package/dist/hooks.js +1 -1
- package/dist/{index-0qLHBjoi.js → index-BlZLqtIV.js} +8 -8
- package/dist/react-hook-form.js +2 -2
- package/dist/styles.css +1 -1
- package/dist/types/components/Action/Action.d.ts +2 -12
- package/dist/types/components/Action/components/ActionButton.d.ts +4 -0
- package/dist/types/components/Action/components/ActionLink.d.ts +4 -0
- package/dist/types/components/Action/components/ConfirmationModal.d.ts +4 -0
- package/dist/types/components/Action/components/ConfirmationModalButton.d.ts +4 -0
- package/dist/types/components/Action/context.d.ts +15 -0
- package/dist/types/components/Action/index.d.ts +1 -1
- package/dist/types/components/Action/lib/execution/ActionExecution.d.ts +2 -2
- package/dist/types/components/Action/lib/execution/ActionState.d.ts +1 -1
- package/dist/types/components/Action/lib/execution/useActionController.d.ts +2 -3
- package/dist/types/components/Action/stories/Default.stories.d.ts +1 -1
- package/dist/types/components/Action/stories/EdgeCases.stories.d.ts +1 -1
- package/dist/types/components/Action/types.d.ts +11 -0
- package/dist/types/components/List/components/Items/ListItem/ListItem.d.ts +6 -0
- package/dist/types/components/List/components/Items/ListItem/index.d.ts +4 -0
- package/dist/types/components/List/index.d.ts +1 -0
- package/dist/types/components/List/stories/ListItem.stories.d.ts +1 -0
- package/dist/types/components/Modal/Modal.d.ts +1 -0
- package/dist/types/components/Overlay/Overlay.d.ts +1 -0
- package/dist/types/components/Popover/Popover.d.ts +3 -1
- package/dist/types/components/Popover/stories/Default.stories.d.ts +1 -0
- package/dist/types/components/Popover/stories/EdgeCases.stories.d.ts +7 -0
- package/dist/types/components/Skeleton/Skeleton.d.ts +4 -1
- package/dist/types/lib/promises/sleep.d.ts +1 -0
- package/package.json +24 -28
- package/dist/Action-5b_DWWiS.js +0 -191
- package/dist/CheckboxButton-BPC6RfJj.js +0 -29
- package/dist/MenuItem-CzSUuXS-.js +0 -49
- package/dist/Overlay-ofdfFqqi.js +0 -28
- package/dist/Popover-MmxZkKu3.js +0 -15
- package/dist/Popover.js +0 -7
- package/dist/PropsContextProvider-DZvwqHLP.js +0 -64
- package/dist/Skeleton-D97e6aVe.js +0 -14
- package/dist/context-DJetA3qV.js +0 -8
- package/dist/types/components/Action/lib/execution/breakAction.d.ts +0 -2
- package/dist/types/components/Action/lib/execution/useActionFunction.d.ts +0 -4
- package/dist/types/components/List/components/Items/Item/Item.d.ts +0 -5
- package/dist/types/components/List/components/Items/Item/index.d.ts +0 -5
- /package/dist/types/components/List/components/Items/{Item → ListItem}/FallbackRenderer.d.ts +0 -0
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-DXq5lwp4.js";
|
|
8
|
+
import { I as p } from "./IconCheck-BLXj9z4I.js";
|
|
9
|
+
import { I as h } from "./IconClose-BuJDcvk1.js";
|
|
10
|
+
import { L as w } from "./Label-CfPzBQtx.js";
|
|
11
11
|
import { C as d } from "./ClearPropsContext-CeCMjUK9.js";
|
|
12
12
|
import "./propsContext-CauylOgH.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-Cv_SURLH.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/Tabs.js
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
/* */
|
|
3
3
|
import e, { useRef as h, useState as x, useEffect as M, useId as g, createContext as I, useContext as P } from "react";
|
|
4
|
-
import * as
|
|
4
|
+
import * as E from "react-aria-components";
|
|
5
5
|
import { MenuTrigger as y } from "react-aria-components";
|
|
6
|
-
import
|
|
7
|
-
import { TunnelExit as
|
|
8
|
-
import { f as O } from "./flowComponent-
|
|
6
|
+
import u from "clsx";
|
|
7
|
+
import { TunnelExit as C, TunnelProvider as S, TunnelEntry as f } from "@mittwald/react-tunnel";
|
|
8
|
+
import { f as O } from "./flowComponent-Cv_SURLH.js";
|
|
9
9
|
import { useCallbackRef as B } from "use-callback-ref";
|
|
10
|
-
import { C as K } from "./ContextMenu-
|
|
11
|
-
import { M as A } from "./MenuItem-
|
|
12
|
-
import { B as L } from "./Button-
|
|
10
|
+
import { C as K } from "./ContextMenu-ChxMleeO.js";
|
|
11
|
+
import { M as A } from "./MenuItem-CgrBX4na.js";
|
|
12
|
+
import { B as L } from "./Button-tEtjVHFC.js";
|
|
13
13
|
import "@tabler/icons-react";
|
|
14
|
-
import "./Icon-
|
|
15
|
-
import { I as F } from "./IconContextMenu-
|
|
16
|
-
import { T as R } from "./Text-
|
|
14
|
+
import "./Icon-DXq5lwp4.js";
|
|
15
|
+
import { I as F } from "./IconContextMenu-BtDEfs_U.js";
|
|
16
|
+
import { T as R } from "./Text-DOQUStg_.js";
|
|
17
17
|
import "./propsContext-CauylOgH.js";
|
|
18
|
-
import { P as W } from "./PropsContextProvider-
|
|
18
|
+
import { P as W } from "./PropsContextProvider-ChpH8eF2.js";
|
|
19
19
|
import "@react-aria/utils";
|
|
20
20
|
import "remeda";
|
|
21
21
|
const $ = "flow--tabs", k = "flow--tabs--list", j = {
|
|
22
22
|
tabs: $,
|
|
23
23
|
list: k
|
|
24
|
-
}, q = "flow--tabs--tab-list", z = "flow--tabs--tab-list--context-menu-button", D = "flow--tabs--tab-list--titles", G = "flow--tabs--tab-list--collapsed",
|
|
24
|
+
}, q = "flow--tabs--tab-list", z = "flow--tabs--tab-list--context-menu-button", D = "flow--tabs--tab-list--titles", G = "flow--tabs--tab-list--collapsed", b = {
|
|
25
25
|
tabList: q,
|
|
26
26
|
contextMenuButton: z,
|
|
27
27
|
titles: D,
|
|
@@ -50,22 +50,22 @@ const $ = "flow--tabs", k = "flow--tabs--list", j = {
|
|
|
50
50
|
ref: o,
|
|
51
51
|
isOverflowing: n
|
|
52
52
|
};
|
|
53
|
-
}, J = "flow--tabs--tab-title", Q = "flow--tabs--tab-title--text", U = "flow--tabs--tab-title--menu-item",
|
|
53
|
+
}, J = "flow--tabs--tab-title", Q = "flow--tabs--tab-title--text", U = "flow--tabs--tab-title--menu-item", p = {
|
|
54
54
|
tabTitle: J,
|
|
55
55
|
text: Q,
|
|
56
56
|
menuItem: U
|
|
57
57
|
}, V = (s) => {
|
|
58
|
-
const { className: n, ...r } = s, o =
|
|
59
|
-
return /* @__PURE__ */ e.createElement("div", { ...r, className: o, "data-selected": !0 }, /* @__PURE__ */ e.createElement(
|
|
58
|
+
const { className: n, ...r } = s, o = u(n, p.tabTitle);
|
|
59
|
+
return /* @__PURE__ */ e.createElement("div", { ...r, className: o, "data-selected": !0 }, /* @__PURE__ */ e.createElement(C, { id: "ActiveTitle" }));
|
|
60
60
|
}, X = (s) => {
|
|
61
|
-
const { selection: n, disabledKeys: r, onContextMenuSelectionChange: o } = s, a = g(), c = H(), l = c.isOverflowing, t =
|
|
61
|
+
const { selection: n, disabledKeys: r, onContextMenuSelectionChange: o } = s, a = g(), c = H(), l = c.isOverflowing, t = u(b.tabList, l && b.collapsed), i = (N) => {
|
|
62
62
|
const [v] = N;
|
|
63
63
|
v && o(v);
|
|
64
|
-
},
|
|
64
|
+
}, m = /* @__PURE__ */ e.createElement(E.TabList, { className: b.titles, ref: c.ref }, /* @__PURE__ */ e.createElement(C, { id: "Titles" })), d = l && /* @__PURE__ */ e.createElement(V, { id: a }), T = l && /* @__PURE__ */ e.createElement(y, null, /* @__PURE__ */ e.createElement(
|
|
65
65
|
L,
|
|
66
66
|
{
|
|
67
67
|
variant: "soft",
|
|
68
|
-
className:
|
|
68
|
+
className: b.contextMenuButton,
|
|
69
69
|
color: "secondary",
|
|
70
70
|
"aria-labelledby": a
|
|
71
71
|
},
|
|
@@ -78,61 +78,69 @@ const $ = "flow--tabs", k = "flow--tabs--list", j = {
|
|
|
78
78
|
selectionMode: "navigation",
|
|
79
79
|
onSelectionChange: i
|
|
80
80
|
},
|
|
81
|
-
/* @__PURE__ */ e.createElement(
|
|
81
|
+
/* @__PURE__ */ e.createElement(C, { id: "ContextMenuItems" })
|
|
82
82
|
));
|
|
83
|
-
return /* @__PURE__ */ e.createElement("div", { className: t },
|
|
83
|
+
return /* @__PURE__ */ e.createElement("div", { className: t }, m, d, T);
|
|
84
84
|
}, Te = O("Tabs", (s) => {
|
|
85
|
-
const {
|
|
85
|
+
const {
|
|
86
|
+
children: n,
|
|
87
|
+
className: r,
|
|
88
|
+
defaultSelectedKey: o,
|
|
89
|
+
disabledKeys: a,
|
|
90
|
+
refProp: c,
|
|
91
|
+
...l
|
|
92
|
+
} = s, t = u(j.tabs, r), [i, m] = x(
|
|
86
93
|
o
|
|
87
94
|
);
|
|
88
95
|
return /* @__PURE__ */ e.createElement(S, null, n, /* @__PURE__ */ e.createElement(
|
|
89
|
-
|
|
96
|
+
E.Tabs,
|
|
90
97
|
{
|
|
91
98
|
slot: null,
|
|
92
|
-
className:
|
|
93
|
-
...
|
|
94
|
-
selectedKey:
|
|
95
|
-
onSelectionChange:
|
|
96
|
-
disabledKeys: a
|
|
99
|
+
className: t,
|
|
100
|
+
...l,
|
|
101
|
+
selectedKey: i,
|
|
102
|
+
onSelectionChange: m,
|
|
103
|
+
disabledKeys: a,
|
|
104
|
+
ref: c
|
|
97
105
|
},
|
|
98
106
|
/* @__PURE__ */ e.createElement(
|
|
99
107
|
X,
|
|
100
108
|
{
|
|
101
|
-
selection:
|
|
102
|
-
onContextMenuSelectionChange:
|
|
109
|
+
selection: i,
|
|
110
|
+
onContextMenuSelectionChange: m,
|
|
103
111
|
disabledKeys: a
|
|
104
112
|
}
|
|
105
113
|
),
|
|
106
|
-
/* @__PURE__ */ e.createElement(
|
|
114
|
+
/* @__PURE__ */ e.createElement(C, { id: "Panels" })
|
|
107
115
|
));
|
|
108
116
|
}), w = I({
|
|
109
117
|
id: "undefined"
|
|
110
118
|
}), Y = () => P(w), Z = w.Provider, ve = (s) => {
|
|
111
|
-
const { children: n, className: r, ...o } = s, { id: a } = Y(), c =
|
|
112
|
-
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
119
|
+
const { children: n, className: r, ...o } = s, { id: a } = Y(), c = u(p.tabTitle, r);
|
|
120
|
+
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(f, { id: "Titles" }, /* @__PURE__ */ e.createElement(E.Tab, { ...o, id: a, className: c }, (l) => /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(R, { 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(A, { className: p.menuItem, id: a }, n)));
|
|
113
121
|
}, _ = "flow--tabs--tab--tab-panel", ee = {
|
|
114
122
|
tabPanel: _
|
|
115
123
|
}, xe = (s) => {
|
|
116
|
-
const { children: n, className: r, id: o, ...a } = s, c =
|
|
117
|
-
const
|
|
124
|
+
const { children: n, className: r, id: o, ...a } = s, c = u(ee.tabPanel, r), l = g(), t = o ?? l, i = (m) => {
|
|
125
|
+
const d = m.state.selectedKey === t, T = {
|
|
118
126
|
Content: {
|
|
119
|
-
isActive:
|
|
127
|
+
isActive: d
|
|
120
128
|
},
|
|
121
129
|
Section: {
|
|
122
|
-
isActive:
|
|
130
|
+
isActive: d
|
|
123
131
|
}
|
|
124
132
|
};
|
|
125
133
|
return /* @__PURE__ */ e.createElement(
|
|
126
134
|
W,
|
|
127
135
|
{
|
|
128
136
|
props: T,
|
|
129
|
-
dependencies: [
|
|
137
|
+
dependencies: [d, n]
|
|
130
138
|
},
|
|
131
139
|
n
|
|
132
140
|
);
|
|
133
141
|
};
|
|
134
|
-
return /* @__PURE__ */ e.createElement(
|
|
135
|
-
|
|
142
|
+
return /* @__PURE__ */ e.createElement(f, { id: "Panels" }, /* @__PURE__ */ e.createElement(Z, { value: { id: t } }, /* @__PURE__ */ e.createElement(
|
|
143
|
+
E.TabPanel,
|
|
136
144
|
{
|
|
137
145
|
className: c,
|
|
138
146
|
shouldForceMount: !0,
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
import e from "react";
|
|
4
4
|
import * as f from "react-aria-components";
|
|
5
5
|
import { C as x } from "./ClearPropsContext-CeCMjUK9.js";
|
|
6
|
-
import { P as E } from "./PropsContextProvider-
|
|
6
|
+
import { P as E } from "./PropsContextProvider-ChpH8eF2.js";
|
|
7
7
|
import "@react-aria/utils";
|
|
8
8
|
import "./propsContext-CauylOgH.js";
|
|
9
9
|
import "remeda";
|
|
10
10
|
import u from "invariant";
|
|
11
|
-
import { f as T } from "./flowComponent-
|
|
11
|
+
import { f as T } from "./flowComponent-Cv_SURLH.js";
|
|
12
12
|
import { E as d } from "./EmulatedBoldText-Dtox8Wd1.js";
|
|
13
13
|
import { W as C } from "./Wrap-DGT1h1o3.js";
|
|
14
14
|
const A = T("Text", (r) => {
|
package/dist/Text.js
CHANGED
package/dist/TextArea.js
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
/* */
|
|
3
3
|
import e from "react";
|
|
4
4
|
import * as n from "react-aria-components";
|
|
5
|
-
import { T as p } from "./TextFieldBase-
|
|
5
|
+
import { T as p } from "./TextFieldBase-B6lQlCmE.js";
|
|
6
6
|
import { C as i } from "./ClearPropsContext-CeCMjUK9.js";
|
|
7
7
|
import "./propsContext-CauylOgH.js";
|
|
8
8
|
import "@react-aria/utils";
|
|
9
9
|
import "remeda";
|
|
10
10
|
import "dot-prop";
|
|
11
|
-
import { f as c } from "./flowComponent-
|
|
11
|
+
import { f as c } from "./flowComponent-Cv_SURLH.js";
|
|
12
12
|
const f = "flow--text-area", x = {
|
|
13
13
|
textArea: f
|
|
14
14
|
}, P = c("TextArea", (t) => {
|
package/dist/TextField.js
CHANGED
|
@@ -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-
|
|
5
|
+
import { T as a } from "./TextFieldBase-B6lQlCmE.js";
|
|
6
6
|
import { C as n } from "./ClearPropsContext-CeCMjUK9.js";
|
|
7
7
|
import "./propsContext-CauylOgH.js";
|
|
8
8
|
import "@react-aria/utils";
|
|
9
9
|
import "remeda";
|
|
10
10
|
import "dot-prop";
|
|
11
|
-
import { f as p } from "./flowComponent-
|
|
11
|
+
import { f as p } from "./flowComponent-Cv_SURLH.js";
|
|
12
12
|
const c = "flow--text-field", f = {
|
|
13
13
|
textField: c
|
|
14
14
|
}, w = p("TextField", (t) => {
|
|
@@ -5,11 +5,11 @@ import * as n from "react-aria-components";
|
|
|
5
5
|
import { s as e } from "./FormField.module-DHK6nIcD.js";
|
|
6
6
|
import p from "clsx";
|
|
7
7
|
import { C as d } from "./ClearPropsContext-CeCMjUK9.js";
|
|
8
|
-
import { P as f } from "./PropsContextProvider-
|
|
8
|
+
import { P as f } from "./PropsContextProvider-ChpH8eF2.js";
|
|
9
9
|
import "@react-aria/utils";
|
|
10
10
|
import "./propsContext-CauylOgH.js";
|
|
11
11
|
import "remeda";
|
|
12
|
-
import { F as E } from "./FieldError
|
|
12
|
+
import { F as E } from "./FieldError-Bl_SXH5M.js";
|
|
13
13
|
const g = c(
|
|
14
14
|
(o, F) => {
|
|
15
15
|
const { children: t, className: s, input: a, ...i } = o, l = p(e.formField, s), m = {
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
/* */
|
|
3
|
+
var u = Object.defineProperty;
|
|
4
|
+
var m = (e, t, o) => t in e ? u(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o;
|
|
5
|
+
var a = (e, t, o) => (m(e, typeof t != "symbol" ? t + "" : t, o), o);
|
|
6
|
+
import { useRef as C, createContext as f, useMemo as d, useContext as p } from "react";
|
|
7
|
+
import { O as i, u as l } from "./index-BlZLqtIV.js";
|
|
8
|
+
import { makeObservable as v, observable as x, action as w } from "mobx";
|
|
9
|
+
import { u as b } from "./useSelector-DpU7_HMO.js";
|
|
10
|
+
class r {
|
|
11
|
+
constructor() {
|
|
12
|
+
a(this, "state", "isIdle");
|
|
13
|
+
v(this, {
|
|
14
|
+
state: x,
|
|
15
|
+
updateState: w
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
static useNew() {
|
|
19
|
+
return C(new r()).current;
|
|
20
|
+
}
|
|
21
|
+
updateState(t) {
|
|
22
|
+
this.state = t;
|
|
23
|
+
}
|
|
24
|
+
useState() {
|
|
25
|
+
return b(() => this.state, [this]);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
const c = f({
|
|
29
|
+
actionProps: {},
|
|
30
|
+
state: new r(),
|
|
31
|
+
overlayController: new i(),
|
|
32
|
+
confirmationModalController: new i(),
|
|
33
|
+
needsConfirmation: !1
|
|
34
|
+
}), M = c.Provider, h = () => p(c), N = (e) => {
|
|
35
|
+
const t = h(), o = l(), n = r.useNew(), s = l();
|
|
36
|
+
return d(
|
|
37
|
+
() => ({
|
|
38
|
+
actionProps: e,
|
|
39
|
+
parentContext: t,
|
|
40
|
+
overlayController: o,
|
|
41
|
+
state: n,
|
|
42
|
+
confirmationModalController: s,
|
|
43
|
+
needsConfirmation: !1
|
|
44
|
+
}),
|
|
45
|
+
[
|
|
46
|
+
e,
|
|
47
|
+
t,
|
|
48
|
+
o,
|
|
49
|
+
n,
|
|
50
|
+
s
|
|
51
|
+
]
|
|
52
|
+
);
|
|
53
|
+
};
|
|
54
|
+
export {
|
|
55
|
+
M as A,
|
|
56
|
+
N as a,
|
|
57
|
+
h as u
|
|
58
|
+
};
|
package/dist/controller.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
/* */
|
|
3
|
-
import u, { isValidElement as
|
|
3
|
+
import u, { isValidElement as d, forwardRef as C } from "react";
|
|
4
4
|
import { C as f } from "./ClearPropsContext-CeCMjUK9.js";
|
|
5
5
|
import { u as x } from "./propsContext-CauylOgH.js";
|
|
6
6
|
import { mergeProps as P } from "@react-aria/utils";
|
|
7
7
|
import { pickBy as y, omit as h } from "remeda";
|
|
8
8
|
import "dot-prop";
|
|
9
|
-
import { P as
|
|
10
|
-
import { TunnelEntry as
|
|
11
|
-
const
|
|
9
|
+
import { P as E } from "./PropsContextProvider-ChpH8eF2.js";
|
|
10
|
+
import { TunnelEntry as b } from "@mittwald/react-tunnel";
|
|
11
|
+
const F = {
|
|
12
12
|
Action: !0,
|
|
13
13
|
Avatar: !0,
|
|
14
14
|
Button: !0,
|
|
@@ -47,71 +47,72 @@ const k = {
|
|
|
47
47
|
TextArea: !0,
|
|
48
48
|
TextField: !0
|
|
49
49
|
}, c = Object.keys(
|
|
50
|
-
|
|
50
|
+
F
|
|
51
51
|
);
|
|
52
|
-
function
|
|
52
|
+
function k(t) {
|
|
53
53
|
return !!t && typeof t == "object" && "__dynamicProp" in t;
|
|
54
54
|
}
|
|
55
55
|
function m(t) {
|
|
56
56
|
return typeof t == "string" && c.includes(t);
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function w(t) {
|
|
59
59
|
return !m(t);
|
|
60
60
|
}
|
|
61
|
-
const
|
|
61
|
+
const R = (t, r) => {
|
|
62
62
|
const e = {};
|
|
63
|
-
for (const
|
|
64
|
-
if (
|
|
65
|
-
const
|
|
66
|
-
|
|
63
|
+
for (const n in t)
|
|
64
|
+
if (w(n)) {
|
|
65
|
+
const o = t[n];
|
|
66
|
+
k(o) && (e[n] = o.__dynamicProp(r));
|
|
67
67
|
}
|
|
68
68
|
return e;
|
|
69
69
|
};
|
|
70
|
-
function
|
|
70
|
+
function g(t) {
|
|
71
71
|
return !!t && typeof t == "object" && "children" in t && !!t.children;
|
|
72
72
|
}
|
|
73
|
-
const
|
|
74
|
-
if (!
|
|
73
|
+
const v = (t) => y(t, (r, e) => m(e)), B = (t, r) => {
|
|
74
|
+
if (!g(r))
|
|
75
75
|
return {};
|
|
76
76
|
const e = r.children;
|
|
77
|
-
if (!Array.isArray(e) && !
|
|
77
|
+
if (!Array.isArray(e) && !d(e))
|
|
78
78
|
return {};
|
|
79
|
-
const
|
|
80
|
-
return Object.keys(
|
|
81
|
-
children: /* @__PURE__ */ u.createElement(
|
|
79
|
+
const n = v(t);
|
|
80
|
+
return Object.keys(n).length === 0 ? {} : {
|
|
81
|
+
children: /* @__PURE__ */ u.createElement(E, { props: n, mergeInParentContext: !0 }, r.children)
|
|
82
82
|
};
|
|
83
|
-
},
|
|
84
|
-
const e = x()[t],
|
|
83
|
+
}, T = (t, r) => {
|
|
84
|
+
const e = x()[t], n = e ? R(e, r) : void 0, o = e ? B(e, r) : void 0;
|
|
85
85
|
return P(
|
|
86
86
|
e && h(e, c),
|
|
87
87
|
r,
|
|
88
|
-
|
|
89
|
-
|
|
88
|
+
n,
|
|
89
|
+
o
|
|
90
90
|
);
|
|
91
|
-
};
|
|
91
|
+
}, A = (t) => /* @__PURE__ */ u.createElement(u.Fragment, null, t.children());
|
|
92
92
|
function I(t, r) {
|
|
93
|
-
return C((e,
|
|
94
|
-
const { render:
|
|
93
|
+
return C((e, n) => {
|
|
94
|
+
const { render: o, tunnelId: s, ...a } = T(
|
|
95
95
|
t,
|
|
96
96
|
e
|
|
97
97
|
), p = {
|
|
98
|
-
refProp:
|
|
99
|
-
...
|
|
98
|
+
refProp: n,
|
|
99
|
+
...a
|
|
100
100
|
};
|
|
101
101
|
let i = /* @__PURE__ */ u.createElement(r, { ...p });
|
|
102
|
-
if (
|
|
103
|
-
const
|
|
102
|
+
if (o) {
|
|
103
|
+
const l = I(
|
|
104
104
|
t,
|
|
105
105
|
r
|
|
106
106
|
);
|
|
107
|
-
i = /* @__PURE__ */ u.createElement(f, null,
|
|
108
|
-
|
|
107
|
+
i = /* @__PURE__ */ u.createElement(f, null, /* @__PURE__ */ u.createElement(A, null, () => o(
|
|
108
|
+
l,
|
|
109
109
|
p
|
|
110
|
-
));
|
|
110
|
+
)));
|
|
111
111
|
}
|
|
112
|
-
return s && (i = /* @__PURE__ */ u.createElement(
|
|
112
|
+
return s && (i = /* @__PURE__ */ u.createElement(b, { id: s }, i)), i;
|
|
113
113
|
});
|
|
114
114
|
}
|
|
115
115
|
export {
|
|
116
|
+
A as R,
|
|
116
117
|
I as f
|
|
117
118
|
};
|
package/dist/hooks.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
/* */
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var i = (t, e, o) => (
|
|
6
|
-
import { makeObservable as
|
|
7
|
-
import {
|
|
3
|
+
var p = Object.defineProperty;
|
|
4
|
+
var a = (t, e, o) => e in t ? p(t, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : t[e] = o;
|
|
5
|
+
var i = (t, e, o) => (a(t, typeof e != "symbol" ? e + "" : e, o), o);
|
|
6
|
+
import { makeObservable as c, observable as O, action as s } from "mobx";
|
|
7
|
+
import { useRef as m, createContext as C, useContext as b } from "react";
|
|
8
8
|
import { u as d } from "./useSelector-DpU7_HMO.js";
|
|
9
9
|
class n {
|
|
10
10
|
constructor(e = !1) {
|
|
11
11
|
i(this, "isOpen");
|
|
12
|
-
|
|
13
|
-
isOpen:
|
|
12
|
+
c(this, {
|
|
13
|
+
isOpen: O,
|
|
14
14
|
open: s.bound,
|
|
15
15
|
close: s.bound,
|
|
16
16
|
toggle: s.bound,
|
|
@@ -18,7 +18,7 @@ class n {
|
|
|
18
18
|
}), this.isOpen = e;
|
|
19
19
|
}
|
|
20
20
|
static useNew(e) {
|
|
21
|
-
return m(new n(e))
|
|
21
|
+
return m(new n(e)).current;
|
|
22
22
|
}
|
|
23
23
|
open() {
|
|
24
24
|
this.isOpen = !0;
|
package/dist/react-hook-form.js
CHANGED
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
import r, { createContext as x, useContext as F } from "react";
|
|
4
4
|
import { Controller as h } from "react-hook-form";
|
|
5
5
|
import "./propsContext-CauylOgH.js";
|
|
6
|
-
import { P as v } from "./PropsContextProvider-
|
|
6
|
+
import { P as v } from "./PropsContextProvider-ChpH8eF2.js";
|
|
7
7
|
import "@react-aria/utils";
|
|
8
8
|
import "remeda";
|
|
9
9
|
import { d as E } from "./dynamic-ClpUSmEt.js";
|
|
10
|
-
import { F as P } from "./FieldError
|
|
10
|
+
import { F as P } from "./FieldError-Bl_SXH5M.js";
|
|
11
11
|
const d = x({}), b = d.Provider, g = () => F(d);
|
|
12
12
|
function k(o) {
|
|
13
13
|
var l;
|