@mittwald/flow-react-components 0.2.0-alpha.24 → 0.2.0-alpha.26
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 +13 -0
- package/dist/js/ContextMenu.js +8 -7
- package/dist/js/ContextMenuContent-D2RjW6il.js +121 -0
- package/dist/js/{DialogTriggerView-NI0s4hWl.js → DialogTriggerView-L7WD5ojU.js} +5 -4
- package/dist/js/Fragment-DLqk6JTD.js +8 -0
- package/dist/js/Fragment.js +3 -5
- package/dist/js/List.js +420 -393
- package/dist/js/MenuItem-BGGLM0sj.js +61 -0
- package/dist/js/MenuItem.js +1 -1
- package/dist/js/MenuTrigger-B6S1um5d.js +8 -0
- package/dist/js/Modal.js +1 -1
- package/dist/js/OverlayTrigger.js +5 -3
- package/dist/js/Popover.js +1 -1
- package/dist/js/Tabs.js +40 -42
- package/dist/js/all.css +1 -1
- package/dist/js/types/components/ContextMenu/ContextMenu.d.ts +1 -2
- package/dist/js/types/components/ContextMenu/ContextMenu.d.ts.map +1 -1
- package/dist/js/types/components/ContextMenu/components/ContextMenuContent/ContextMenuContent.d.ts +7 -0
- package/dist/js/types/components/ContextMenu/components/ContextMenuContent/ContextMenuContent.d.ts.map +1 -0
- package/dist/js/types/components/ContextMenu/components/ContextMenuContent/index.d.ts +3 -0
- package/dist/js/types/components/ContextMenu/components/ContextMenuContent/index.d.ts.map +1 -0
- package/dist/js/types/components/ContextMenu/components/ContextMenuContent/view.d.ts +8 -0
- package/dist/js/types/components/ContextMenu/components/{ContextMenuTrigger → ContextMenuContent}/view.d.ts.map +1 -1
- package/dist/js/types/components/ContextMenu/components/ContextMenuTrigger/ContextMenuTrigger.d.ts +0 -1
- package/dist/js/types/components/ContextMenu/components/ContextMenuTrigger/ContextMenuTrigger.d.ts.map +1 -1
- package/dist/js/types/components/ContextMenu/index.d.ts +1 -1
- package/dist/js/types/components/ContextMenu/index.d.ts.map +1 -1
- package/dist/js/types/components/List/components/Header/components/FilterPicker/FilterPicker.d.ts.map +1 -1
- package/dist/js/types/components/List/components/Header/components/SortingPicker/SortingPicker.d.ts.map +1 -1
- package/dist/js/types/components/List/components/Header/components/ViewModeMenu/ViewModeMenu.d.ts.map +1 -1
- package/dist/js/types/components/List/components/ListItemView/ListItemView.d.ts +6 -0
- package/dist/js/types/components/List/components/ListItemView/ListItemView.d.ts.map +1 -0
- package/dist/js/types/components/List/components/ListItemView/components/ListItemViewContent/ListItemViewContent.d.ts +11 -0
- package/dist/js/types/components/List/components/ListItemView/components/ListItemViewContent/ListItemViewContent.d.ts.map +1 -0
- package/dist/js/types/components/List/components/ListItemView/components/ListItemViewContent/index.d.ts +5 -0
- package/dist/js/types/components/List/components/ListItemView/components/ListItemViewContent/index.d.ts.map +1 -0
- package/dist/js/types/components/List/components/ListItemView/components/ListItemViewContent/view.d.ts +8 -0
- package/dist/js/types/components/List/components/ListItemView/components/ListItemViewContent/view.d.ts.map +1 -0
- package/dist/js/types/components/List/components/ListItemView/index.d.ts +5 -0
- package/dist/js/types/components/List/components/ListItemView/index.d.ts.map +1 -0
- package/dist/js/types/components/List/index.d.ts +1 -1
- package/dist/js/types/components/List/index.d.ts.map +1 -1
- package/dist/js/types/components/List/typedList.d.ts +1 -3
- package/dist/js/types/components/List/typedList.d.ts.map +1 -1
- package/dist/js/types/components/MenuItem/components/MenuItemContent/MenuItemContent.d.ts.map +1 -0
- package/dist/js/types/components/MenuItem/components/MenuItemContent/index.d.ts +2 -0
- package/dist/js/types/components/MenuItem/components/MenuItemContent/index.d.ts.map +1 -0
- package/dist/js/types/components/OverlayTrigger/components/DialogTrigger/DialogTrigger.d.ts.map +1 -0
- package/dist/js/types/components/OverlayTrigger/components/DialogTrigger/index.d.ts.map +1 -0
- package/dist/js/types/components/OverlayTrigger/components/{view.d.ts → DialogTrigger/view.d.ts} +1 -1
- package/dist/js/types/components/OverlayTrigger/components/DialogTrigger/view.d.ts.map +1 -0
- package/dist/js/types/components/OverlayTrigger/components/MenuTrigger/MenuTrigger.d.ts +7 -0
- package/dist/js/types/components/OverlayTrigger/components/MenuTrigger/MenuTrigger.d.ts.map +1 -0
- package/dist/js/types/components/OverlayTrigger/components/MenuTrigger/index.d.ts +2 -0
- package/dist/js/types/components/OverlayTrigger/components/MenuTrigger/index.d.ts.map +1 -0
- package/dist/js/types/components/OverlayTrigger/components/MenuTrigger/view.d.ts +8 -0
- package/dist/js/types/components/OverlayTrigger/components/MenuTrigger/view.d.ts.map +1 -0
- package/dist/js/types/components/OverlayTrigger/index.d.ts +1 -0
- package/dist/js/types/components/OverlayTrigger/index.d.ts.map +1 -1
- package/dist/js/types/views/ContextMenuContentView.d.ts +5 -0
- package/dist/js/types/views/{ContextMenuTriggerView.d.ts.map → ContextMenuContentView.d.ts.map} +1 -1
- package/dist/js/types/views/ListItemViewContentView.d.ts +5 -0
- package/dist/js/types/views/ListItemViewContentView.d.ts.map +1 -0
- package/dist/js/types/views/MenuTriggerView.d.ts +5 -0
- package/dist/js/types/views/MenuTriggerView.d.ts.map +1 -0
- package/package.json +4 -4
- package/dist/js/ContextMenuTrigger-kUBBSyaN.js +0 -104
- package/dist/js/MenuItem-D0A7OXWd.js +0 -63
- package/dist/js/types/components/ContextMenu/components/ContextMenuTrigger/view.d.ts +0 -8
- package/dist/js/types/components/ContextMenu/view.d.ts +0 -8
- package/dist/js/types/components/ContextMenu/view.d.ts.map +0 -1
- package/dist/js/types/components/List/components/Items/components/Item/components/View/View.d.ts +0 -6
- package/dist/js/types/components/List/components/Items/components/Item/components/View/View.d.ts.map +0 -1
- package/dist/js/types/components/List/components/Items/components/Item/components/View/index.d.ts +0 -4
- package/dist/js/types/components/List/components/Items/components/Item/components/View/index.d.ts.map +0 -1
- package/dist/js/types/components/MenuItem/components/MenuItemContent.d.ts.map +0 -1
- package/dist/js/types/components/OverlayTrigger/components/DialogTrigger.d.ts.map +0 -1
- package/dist/js/types/components/OverlayTrigger/components/index.d.ts.map +0 -1
- package/dist/js/types/components/OverlayTrigger/components/view.d.ts.map +0 -1
- package/dist/js/types/views/ContextMenuTriggerView.d.ts +0 -5
- package/dist/js/types/views/ContextMenuView.d.ts +0 -5
- package/dist/js/types/views/ContextMenuView.d.ts.map +0 -1
- /package/dist/js/types/components/MenuItem/components/{MenuItemContent.d.ts → MenuItemContent/MenuItemContent.d.ts} +0 -0
- /package/dist/js/types/components/OverlayTrigger/components/{DialogTrigger.d.ts → DialogTrigger/DialogTrigger.d.ts} +0 -0
- /package/dist/js/types/components/OverlayTrigger/components/{index.d.ts → DialogTrigger/index.d.ts} +0 -0
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
/* */
|
|
3
|
+
import { jsxs as I, Fragment as u, jsx as o } from "react/jsx-runtime";
|
|
4
|
+
import "react";
|
|
5
|
+
import * as h from "react-aria-components";
|
|
6
|
+
import l from "clsx";
|
|
7
|
+
import "./propsContext-DzAKlmhS.js";
|
|
8
|
+
import { PropsContextProvider as p } from "./PropsContextProvider.js";
|
|
9
|
+
import "@tabler/icons-react";
|
|
10
|
+
import "@mittwald/react-tunnel";
|
|
11
|
+
import { f as d } from "./flowComponent-B8dC8eRj.js";
|
|
12
|
+
import "@react-aria/utils";
|
|
13
|
+
import "remeda";
|
|
14
|
+
import "./viewComponentContext-HXEKmx_D.js";
|
|
15
|
+
import { I as x, a as w } from "./IconCheckboxEmpty-CJsL0HKI.js";
|
|
16
|
+
import { I as C, a as N } from "./IconRadioOn-CbW3RjJ2.js";
|
|
17
|
+
import { S as f } from "./Switch-Bg5jHbFG.js";
|
|
18
|
+
import { W as v } from "./Wrap-DGT1h1o3.js";
|
|
19
|
+
import { T as M } from "./Text-CW_CzcoD.js";
|
|
20
|
+
const S = "flow--menu-item", g = "flow--menu-item--icon", y = "flow--menu-item--text", O = "flow--menu-item--control-icon", R = "flow--menu-item--avatar", t = {
|
|
21
|
+
menuItem: S,
|
|
22
|
+
switch: "flow--menu-item--switch",
|
|
23
|
+
icon: g,
|
|
24
|
+
text: y,
|
|
25
|
+
controlIcon: O,
|
|
26
|
+
avatar: R
|
|
27
|
+
}, k = (s) => {
|
|
28
|
+
const {
|
|
29
|
+
selectionMode: n,
|
|
30
|
+
isSelected: e,
|
|
31
|
+
selectionVariant: c = "control",
|
|
32
|
+
children: i
|
|
33
|
+
} = s, m = {
|
|
34
|
+
Icon: {
|
|
35
|
+
className: t.icon
|
|
36
|
+
},
|
|
37
|
+
Text: {
|
|
38
|
+
className: t.text
|
|
39
|
+
},
|
|
40
|
+
Avatar: {
|
|
41
|
+
className: t.avatar
|
|
42
|
+
}
|
|
43
|
+
}, a = {
|
|
44
|
+
Icon: {
|
|
45
|
+
className: l(t.controlIcon, t.icon)
|
|
46
|
+
},
|
|
47
|
+
Switch: {
|
|
48
|
+
className: l(t.controlIcon, t.switch)
|
|
49
|
+
}
|
|
50
|
+
}, r = n === "none" || c === "navigation" ? null : c === "switch" && e ? /* @__PURE__ */ o(f, { isReadOnly: !0, isSelected: !0 }) : c === "switch" && !e ? /* @__PURE__ */ o(f, { isReadOnly: !0 }) : n === "single" && e ? /* @__PURE__ */ o(C, {}) : n === "single" && !e ? /* @__PURE__ */ o(N, {}) : n === "multiple" && e ? /* @__PURE__ */ o(x, {}) : /* @__PURE__ */ o(w, {});
|
|
51
|
+
return /* @__PURE__ */ I(u, { children: [
|
|
52
|
+
/* @__PURE__ */ o(p, { props: a, children: r }),
|
|
53
|
+
/* @__PURE__ */ o(p, { props: m, children: /* @__PURE__ */ o(v, { if: !!r, children: /* @__PURE__ */ o(M, { children: i }) }) })
|
|
54
|
+
] });
|
|
55
|
+
}, K = d("MenuItem", (s) => {
|
|
56
|
+
const { children: n, className: e, selectionVariant: c, ref: i, ...m } = s, a = l(t.menuItem, e);
|
|
57
|
+
return /* @__PURE__ */ o(h.MenuItem, { ...m, className: a, ref: i, children: (r) => /* @__PURE__ */ o(k, { ...r, selectionVariant: c, children: n }) });
|
|
58
|
+
});
|
|
59
|
+
export {
|
|
60
|
+
K as M
|
|
61
|
+
};
|
package/dist/js/MenuItem.js
CHANGED
package/dist/js/Modal.js
CHANGED
|
@@ -16,7 +16,7 @@ import { I as N } from "./IconClose-B4zJVugN.js";
|
|
|
16
16
|
import { H } from "./Header-6rzaR_ZQ.js";
|
|
17
17
|
import { B as O } from "./ButtonView-inzXKZFE.js";
|
|
18
18
|
import { O as T } from "./OverlayTrigger-lqEEBZnu.js";
|
|
19
|
-
import { D as M } from "./DialogTriggerView-
|
|
19
|
+
import { D as M } from "./DialogTriggerView-L7WD5ojU.js";
|
|
20
20
|
const P = "flow--modal", G = "flow--modal--off-canvas", V = "flow--modal--header", A = "flow--modal--content", B = "flow--modal--action-group", I = "flow--modal--left", o = {
|
|
21
21
|
modal: P,
|
|
22
22
|
offCanvas: G,
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
/* */
|
|
3
|
-
import { O as
|
|
3
|
+
import { O as e } from "./OverlayTrigger-lqEEBZnu.js";
|
|
4
4
|
import { D as g } from "./DialogTrigger-BQe3ovfI.js";
|
|
5
|
+
import { M as t } from "./MenuTrigger-B6S1um5d.js";
|
|
5
6
|
export {
|
|
6
7
|
g as DialogTrigger,
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
t as MenuTrigger,
|
|
9
|
+
e as OverlayTrigger,
|
|
10
|
+
e as default
|
|
9
11
|
};
|
package/dist/js/Popover.js
CHANGED
|
@@ -5,7 +5,7 @@ import "react";
|
|
|
5
5
|
import { O as t } from "./OverlayTrigger-lqEEBZnu.js";
|
|
6
6
|
import "react-aria-components";
|
|
7
7
|
import { f as i } from "./flowComponent-B8dC8eRj.js";
|
|
8
|
-
import { D as m } from "./DialogTriggerView-
|
|
8
|
+
import { D as m } from "./DialogTriggerView-L7WD5ojU.js";
|
|
9
9
|
import { P as l } from "./Popover-Ck5nKNR3.js";
|
|
10
10
|
import { a as y } from "./Popover-Ck5nKNR3.js";
|
|
11
11
|
const T = i("PopoverTrigger", (o) => {
|
package/dist/js/Tabs.js
CHANGED
|
@@ -7,7 +7,7 @@ import u from "clsx";
|
|
|
7
7
|
import { TunnelExit as C, TunnelProvider as A, TunnelEntry as f } from "@mittwald/react-tunnel";
|
|
8
8
|
import { f as B } from "./flowComponent-B8dC8eRj.js";
|
|
9
9
|
import { useCallbackRef as E } from "use-callback-ref";
|
|
10
|
-
import { a as K, C as L } from "./
|
|
10
|
+
import { a as K, C as L } from "./ContextMenuContent-D2RjW6il.js";
|
|
11
11
|
import "./propsContext-DzAKlmhS.js";
|
|
12
12
|
import "@react-aria/utils";
|
|
13
13
|
import "remeda";
|
|
@@ -15,17 +15,15 @@ import "dot-prop";
|
|
|
15
15
|
import "@tabler/icons-react";
|
|
16
16
|
import "./viewComponentContext-HXEKmx_D.js";
|
|
17
17
|
import { I as W } from "./IconContextMenu-DnwSrGtk.js";
|
|
18
|
-
import "invariant";
|
|
19
|
-
import "react-children-utilities";
|
|
20
|
-
import "object-code";
|
|
21
18
|
import "react-aria";
|
|
19
|
+
import "invariant";
|
|
22
20
|
import "mobx";
|
|
23
21
|
import "./context-BaYmTa0I.js";
|
|
24
22
|
import "./Action-C1Tw5pqL.js";
|
|
25
23
|
import "./getActionGroupSlot-CekBnXeM.js";
|
|
26
24
|
import { B as F } from "./Button-WawPguWq.js";
|
|
27
25
|
import { T as R } from "./Text-CW_CzcoD.js";
|
|
28
|
-
import { M as $ } from "./MenuItem-
|
|
26
|
+
import { M as $ } from "./MenuItem-BGGLM0sj.js";
|
|
29
27
|
import { PropsContextProvider as j } from "./PropsContextProvider.js";
|
|
30
28
|
import { A as N } from "./Activity-BekrxIf7.js";
|
|
31
29
|
const k = "flow--tabs", q = "flow--tabs--list", z = {
|
|
@@ -37,26 +35,26 @@ const k = "flow--tabs", q = "flow--tabs--list", z = {
|
|
|
37
35
|
titles: H,
|
|
38
36
|
collapsed: J
|
|
39
37
|
}, Q = () => {
|
|
40
|
-
const n = y(null), [s,
|
|
41
|
-
|
|
42
|
-
}),
|
|
38
|
+
const n = y(null), [s, a] = g(!1), o = E(null, (e) => {
|
|
39
|
+
r(), i(e);
|
|
40
|
+
}), l = ([
|
|
43
41
|
e
|
|
44
42
|
]) => {
|
|
45
|
-
e &&
|
|
46
|
-
},
|
|
43
|
+
e && a(!e.isIntersecting);
|
|
44
|
+
}, i = (e = o.current) => {
|
|
47
45
|
if (e && e instanceof Element) {
|
|
48
|
-
const c = new IntersectionObserver(
|
|
46
|
+
const c = new IntersectionObserver(l, {
|
|
49
47
|
root: e.parentElement,
|
|
50
48
|
// 1 = invoke callback when the element is 100% visible within the parent element
|
|
51
49
|
threshold: 1
|
|
52
50
|
});
|
|
53
51
|
n.current = c, c.observe(e);
|
|
54
52
|
}
|
|
55
|
-
},
|
|
53
|
+
}, r = () => {
|
|
56
54
|
var e;
|
|
57
55
|
(e = n.current) == null || e.disconnect();
|
|
58
56
|
};
|
|
59
|
-
return P(() => (
|
|
57
|
+
return P(() => (i(), r), [n.current]), {
|
|
60
58
|
ref: o,
|
|
61
59
|
isOverflowing: s
|
|
62
60
|
};
|
|
@@ -65,26 +63,26 @@ const k = "flow--tabs", q = "flow--tabs--list", z = {
|
|
|
65
63
|
text: V,
|
|
66
64
|
menuItem: X
|
|
67
65
|
}, Y = (n) => {
|
|
68
|
-
const { className: s, ...
|
|
69
|
-
return /* @__PURE__ */ t("div", { ...
|
|
66
|
+
const { className: s, ...a } = n, o = u(s, h.tabTitle);
|
|
67
|
+
return /* @__PURE__ */ t("div", { ...a, className: o, "data-selected": !0, children: /* @__PURE__ */ t(C, { id: "ActiveTitle" }) });
|
|
70
68
|
}, Z = (n) => {
|
|
71
|
-
const { selection: s, disabledKeys:
|
|
69
|
+
const { selection: s, disabledKeys: a, onContextMenuSelectionChange: o } = n, l = M(), i = Q(), r = i.isOverflowing, e = u(p.tabList, r && p.collapsed), c = (x) => {
|
|
72
70
|
o(x);
|
|
73
|
-
}, d = /* @__PURE__ */ t(T.TabList, { className: p.titles, ref:
|
|
71
|
+
}, d = /* @__PURE__ */ t(T.TabList, { className: p.titles, ref: i.ref, children: /* @__PURE__ */ t(C, { id: "Titles" }) }), b = r && /* @__PURE__ */ t(Y, { id: l }), v = r && /* @__PURE__ */ m(K, { children: [
|
|
74
72
|
/* @__PURE__ */ t(
|
|
75
73
|
F,
|
|
76
74
|
{
|
|
77
75
|
variant: "soft",
|
|
78
76
|
className: p.contextMenuButton,
|
|
79
77
|
color: "secondary",
|
|
80
|
-
"aria-labelledby":
|
|
78
|
+
"aria-labelledby": l,
|
|
81
79
|
children: /* @__PURE__ */ t(W, {})
|
|
82
80
|
}
|
|
83
81
|
),
|
|
84
82
|
/* @__PURE__ */ t(
|
|
85
83
|
L,
|
|
86
84
|
{
|
|
87
|
-
disabledKeys:
|
|
85
|
+
disabledKeys: a,
|
|
88
86
|
selectedKeys: s ? [s] : void 0,
|
|
89
87
|
selectionMode: "navigation",
|
|
90
88
|
onAction: (x) => c(x),
|
|
@@ -97,15 +95,15 @@ const k = "flow--tabs", q = "flow--tabs--list", z = {
|
|
|
97
95
|
b,
|
|
98
96
|
v
|
|
99
97
|
] });
|
|
100
|
-
},
|
|
98
|
+
}, Ot = B("Tabs", (n) => {
|
|
101
99
|
const {
|
|
102
100
|
children: s,
|
|
103
|
-
className:
|
|
101
|
+
className: a,
|
|
104
102
|
defaultSelectedKey: o,
|
|
105
|
-
disabledKeys:
|
|
106
|
-
ref:
|
|
107
|
-
...
|
|
108
|
-
} = n, e = u(z.tabs,
|
|
103
|
+
disabledKeys: l,
|
|
104
|
+
ref: i,
|
|
105
|
+
...r
|
|
106
|
+
} = n, e = u(z.tabs, a), [c, d] = g(
|
|
109
107
|
o
|
|
110
108
|
);
|
|
111
109
|
return /* @__PURE__ */ m(A, { children: [
|
|
@@ -115,18 +113,18 @@ const k = "flow--tabs", q = "flow--tabs--list", z = {
|
|
|
115
113
|
{
|
|
116
114
|
slot: null,
|
|
117
115
|
className: e,
|
|
118
|
-
...
|
|
116
|
+
...r,
|
|
119
117
|
selectedKey: c,
|
|
120
118
|
onSelectionChange: d,
|
|
121
|
-
disabledKeys:
|
|
122
|
-
ref:
|
|
119
|
+
disabledKeys: l,
|
|
120
|
+
ref: i,
|
|
123
121
|
children: [
|
|
124
122
|
/* @__PURE__ */ t(
|
|
125
123
|
Z,
|
|
126
124
|
{
|
|
127
125
|
selection: c,
|
|
128
126
|
onContextMenuSelectionChange: d,
|
|
129
|
-
disabledKeys:
|
|
127
|
+
disabledKeys: l
|
|
130
128
|
}
|
|
131
129
|
),
|
|
132
130
|
/* @__PURE__ */ t(C, { id: "Panels" })
|
|
@@ -136,19 +134,19 @@ const k = "flow--tabs", q = "flow--tabs--list", z = {
|
|
|
136
134
|
] });
|
|
137
135
|
}), I = O({
|
|
138
136
|
id: "undefined"
|
|
139
|
-
}), _ = () => S(I), tt = I.Provider,
|
|
140
|
-
const { children: s, className:
|
|
137
|
+
}), _ = () => S(I), tt = I.Provider, St = (n) => {
|
|
138
|
+
const { children: s, className: a, ...o } = n, { id: l } = _(), i = u(h.tabTitle, a);
|
|
141
139
|
return /* @__PURE__ */ m(w, { children: [
|
|
142
|
-
/* @__PURE__ */ t(f, { id: "Titles", children: /* @__PURE__ */ t(T.Tab, { ...o, id:
|
|
140
|
+
/* @__PURE__ */ t(f, { id: "Titles", children: /* @__PURE__ */ t(T.Tab, { ...o, id: l, className: i, children: (r) => /* @__PURE__ */ m(w, { children: [
|
|
143
141
|
/* @__PURE__ */ t(R, { emulateBoldWidth: !0, children: /* @__PURE__ */ t("span", { className: h.text, children: s }) }),
|
|
144
|
-
/* @__PURE__ */ t(f, { id: "ActiveTitle", children:
|
|
142
|
+
/* @__PURE__ */ t(f, { id: "ActiveTitle", children: r.isSelected && s })
|
|
145
143
|
] }) }) }),
|
|
146
|
-
/* @__PURE__ */ t(f, { id: "ContextMenuItems", children: /* @__PURE__ */ t($, { className: h.menuItem, id:
|
|
144
|
+
/* @__PURE__ */ t(f, { id: "ContextMenuItems", children: /* @__PURE__ */ t($, { className: h.menuItem, id: l, children: s }) })
|
|
147
145
|
] });
|
|
148
146
|
}, et = "flow--tabs--tab--tab-panel", st = {
|
|
149
147
|
tabPanel: et
|
|
150
|
-
},
|
|
151
|
-
const { children: s, className:
|
|
148
|
+
}, At = (n) => {
|
|
149
|
+
const { children: s, className: a, id: o, ...l } = n, i = u(st.tabPanel, a), r = M(), e = o ?? r, c = (d) => {
|
|
152
150
|
const b = d.state.selectedKey === e;
|
|
153
151
|
return /* @__PURE__ */ t(
|
|
154
152
|
j,
|
|
@@ -169,17 +167,17 @@ const k = "flow--tabs", q = "flow--tabs--list", z = {
|
|
|
169
167
|
return /* @__PURE__ */ t(f, { id: "Panels", children: /* @__PURE__ */ t(tt, { value: { id: e }, children: /* @__PURE__ */ t(
|
|
170
168
|
T.TabPanel,
|
|
171
169
|
{
|
|
172
|
-
className:
|
|
170
|
+
className: i,
|
|
173
171
|
shouldForceMount: !0,
|
|
174
172
|
id: e,
|
|
175
|
-
...
|
|
173
|
+
...l,
|
|
176
174
|
children: c
|
|
177
175
|
}
|
|
178
176
|
) }) });
|
|
179
177
|
};
|
|
180
178
|
export {
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
179
|
+
At as Tab,
|
|
180
|
+
St as TabTitle,
|
|
181
|
+
Ot as Tabs,
|
|
182
|
+
Ot as default
|
|
185
183
|
};
|