@mittwald/flow-react-components 0.1.0-alpha.70 → 0.1.0-alpha.71
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/ButtonGroup.js +12 -11
- package/dist/{ContextMenu-BdvZvLg7.js → ContextMenu-DJ4VRDCG.js} +17 -15
- package/dist/ContextMenu.js +1 -1
- package/dist/IllustratedMessage.js +19 -18
- package/dist/List.js +19 -19
- package/dist/Tabs.js +122 -36
- package/dist/styles.css +1 -1
- package/dist/types/components/ContextMenu/ContextMenu.d.ts +1 -1
- package/dist/types/components/Tabs/components/Tab/context.d.ts +1 -1
- package/dist/types/components/Tabs/components/TabList/TabList.d.ts +10 -0
- package/dist/types/components/Tabs/components/TabList/index.d.ts +1 -0
- package/dist/types/components/Tabs/components/TabTitle/TabTitleCollapsed.d.ts +8 -0
- package/dist/types/lib/hooks/dom/useObserveOverflow.d.ts +8 -0
- package/dist/types/lib/propsContext/propsContext.d.ts +35 -35
- package/package.json +35 -34
package/dist/ButtonGroup.js
CHANGED
|
@@ -1,26 +1,27 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
/* */
|
|
3
3
|
import o from "react";
|
|
4
|
-
import { C as
|
|
5
|
-
import { P as
|
|
4
|
+
import { C as c } from "./ClearPropsContext-CeCMjUK9.js";
|
|
5
|
+
import { P as m } from "./PropsContextProvider-DZvwqHLP.js";
|
|
6
6
|
import { u as l } from "./useProps-Dx3m8kCJ.js";
|
|
7
7
|
import { d as i } from "./dynamic-ClpUSmEt.js";
|
|
8
8
|
import d from "clsx";
|
|
9
9
|
import { f } from "./flowComponent-BuF0s2uG.js";
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
const b = "flow--button-group--button-group-container", C = "flow--button-group", G = "flow--button-group--secondary", t = {
|
|
11
|
+
buttonGroupContainer: b,
|
|
12
|
+
buttonGroup: C,
|
|
13
|
+
secondary: G
|
|
14
|
+
}, B = f("ButtonGroup", (r) => {
|
|
15
|
+
const { children: n, className: e, ...s } = l("ButtonGroup", r), a = d(t.buttonGroupContainer, e), u = {
|
|
15
16
|
Button: {
|
|
16
17
|
className: i(
|
|
17
|
-
(
|
|
18
|
+
(p) => p.variant === "secondary" ? t.secondary : void 0
|
|
18
19
|
)
|
|
19
20
|
}
|
|
20
21
|
};
|
|
21
|
-
return /* @__PURE__ */ o.createElement(
|
|
22
|
+
return /* @__PURE__ */ o.createElement(c, null, /* @__PURE__ */ o.createElement("div", { ...s, className: a }, /* @__PURE__ */ o.createElement("div", { className: t.buttonGroup, role: "group" }, /* @__PURE__ */ o.createElement(m, { props: u }, n))));
|
|
22
23
|
});
|
|
23
24
|
export {
|
|
24
|
-
|
|
25
|
-
|
|
25
|
+
B as ButtonGroup,
|
|
26
|
+
B as default
|
|
26
27
|
};
|
|
@@ -1,45 +1,47 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
/* */
|
|
3
3
|
import e from "react";
|
|
4
|
-
import * as
|
|
5
|
-
import { f as
|
|
4
|
+
import * as u from "react-aria-components";
|
|
5
|
+
import { f as d } from "./flowComponent-BuF0s2uG.js";
|
|
6
6
|
import { P as x } from "./Popover-MmxZkKu3.js";
|
|
7
7
|
import { C } from "./ClearPropsContext-CeCMjUK9.js";
|
|
8
8
|
import { P as M } from "./PropsContextProvider-DZvwqHLP.js";
|
|
9
9
|
import "@react-aria/utils";
|
|
10
10
|
import "./propsContext-CauylOgH.js";
|
|
11
11
|
import "remeda";
|
|
12
|
-
const
|
|
13
|
-
contextMenu:
|
|
14
|
-
},
|
|
12
|
+
const P = "flow--context-menu", g = {
|
|
13
|
+
contextMenu: P
|
|
14
|
+
}, b = d("ContextMenu", (o) => {
|
|
15
15
|
const {
|
|
16
16
|
children: n,
|
|
17
17
|
onAction: r,
|
|
18
18
|
selectionMode: t,
|
|
19
19
|
selectedKeys: s,
|
|
20
20
|
defaultSelectedKeys: a,
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
disabledKeys: i,
|
|
22
|
+
onSelectionChange: c,
|
|
23
|
+
ref: l,
|
|
23
24
|
...m
|
|
24
|
-
} = o,
|
|
25
|
+
} = o, p = t === "navigation" ? "single" : t, f = {
|
|
25
26
|
MenuItem: {
|
|
26
27
|
selectionVariant: t === "navigation" ? "navigation" : "control"
|
|
27
28
|
}
|
|
28
29
|
};
|
|
29
30
|
return /* @__PURE__ */ e.createElement(C, null, /* @__PURE__ */ e.createElement(x, { ...m }, /* @__PURE__ */ e.createElement(
|
|
30
|
-
|
|
31
|
+
u.Menu,
|
|
31
32
|
{
|
|
32
|
-
className:
|
|
33
|
+
className: g.contextMenu,
|
|
33
34
|
onAction: r,
|
|
34
|
-
selectionMode:
|
|
35
|
+
selectionMode: p,
|
|
35
36
|
selectedKeys: s,
|
|
36
37
|
defaultSelectedKeys: a,
|
|
37
|
-
|
|
38
|
-
|
|
38
|
+
disabledKeys: i,
|
|
39
|
+
onSelectionChange: c,
|
|
40
|
+
ref: l
|
|
39
41
|
},
|
|
40
|
-
/* @__PURE__ */ e.createElement(M, { props:
|
|
42
|
+
/* @__PURE__ */ e.createElement(M, { props: f }, n)
|
|
41
43
|
)));
|
|
42
44
|
});
|
|
43
45
|
export {
|
|
44
|
-
|
|
46
|
+
b as C
|
|
45
47
|
};
|
package/dist/ContextMenu.js
CHANGED
|
@@ -1,42 +1,43 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
/* */
|
|
3
|
-
import
|
|
3
|
+
import t from "react";
|
|
4
4
|
import c from "clsx";
|
|
5
5
|
import "./propsContext-CauylOgH.js";
|
|
6
6
|
import { P as m } from "./PropsContextProvider-DZvwqHLP.js";
|
|
7
7
|
import "@react-aria/utils";
|
|
8
8
|
import "remeda";
|
|
9
|
-
const d = "flow--illustrated-message", g = "flow--illustrated-message--icon",
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
const d = "flow--illustrated-message--illustrated-message-container", g = "flow--illustrated-message", u = "flow--illustrated-message--icon", f = "flow--illustrated-message--heading", p = "flow--illustrated-message--text", x = "flow--illustrated-message--button", v = "flow--illustrated-message--negative", e = {
|
|
10
|
+
illustratedMessageContainer: d,
|
|
11
|
+
illustratedMessage: g,
|
|
12
|
+
icon: u,
|
|
13
|
+
heading: f,
|
|
13
14
|
text: p,
|
|
14
|
-
button:
|
|
15
|
-
negative:
|
|
16
|
-
},
|
|
17
|
-
const { className: a, children:
|
|
18
|
-
|
|
19
|
-
|
|
15
|
+
button: x,
|
|
16
|
+
negative: v
|
|
17
|
+
}, E = (s) => {
|
|
18
|
+
const { className: a, children: l, variant: o = "info", ...n } = s, i = c(
|
|
19
|
+
e.illustratedMessageContainer,
|
|
20
|
+
e[o],
|
|
20
21
|
a
|
|
21
22
|
), r = {
|
|
22
23
|
Icon: {
|
|
23
|
-
className:
|
|
24
|
+
className: e.icon,
|
|
24
25
|
size: "l"
|
|
25
26
|
},
|
|
26
27
|
Heading: {
|
|
27
|
-
className:
|
|
28
|
+
className: e.heading
|
|
28
29
|
},
|
|
29
30
|
Text: {
|
|
30
|
-
className:
|
|
31
|
+
className: e.text
|
|
31
32
|
},
|
|
32
33
|
Button: {
|
|
33
|
-
className:
|
|
34
|
+
className: e.button,
|
|
34
35
|
variant: "accent"
|
|
35
36
|
}
|
|
36
37
|
};
|
|
37
|
-
return /* @__PURE__ */
|
|
38
|
+
return /* @__PURE__ */ t.createElement("div", { ...n, className: i }, /* @__PURE__ */ t.createElement("div", { className: e.illustratedMessage }, /* @__PURE__ */ t.createElement(m, { props: r }, l)));
|
|
38
39
|
};
|
|
39
40
|
export {
|
|
40
|
-
|
|
41
|
-
|
|
41
|
+
E as IllustratedMessage,
|
|
42
|
+
E as default
|
|
42
43
|
};
|
package/dist/List.js
CHANGED
|
@@ -4,7 +4,7 @@ var Q = Object.defineProperty;
|
|
|
4
4
|
var X = (i, t, e) => t in i ? Q(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
|
|
5
5
|
var o = (i, t, e) => (X(i, typeof t != "symbol" ? t + "" : t, e), e);
|
|
6
6
|
import r, { createContext as Y, useContext as Z, createElement as _, useEffect as C, useState as tt, Suspense as et } from "react";
|
|
7
|
-
import { C as x } from "./ContextMenu-
|
|
7
|
+
import { C as x } from "./ContextMenu-DJ4VRDCG.js";
|
|
8
8
|
import { M as U, d as at } from "./MenuItem-DbXZNJo6.js";
|
|
9
9
|
import * as O from "react-aria-components";
|
|
10
10
|
import { MenuTrigger as st } from "react-aria-components";
|
|
@@ -23,14 +23,14 @@ import { useLocalObservable as dt } from "mobx-react-lite";
|
|
|
23
23
|
import { autorun as ht, runInAction as gt, makeObservable as pt, observable as k, computed as D, action as y } from "mobx";
|
|
24
24
|
import { getAsyncResource as P } from "@mittwald/react-use-promise";
|
|
25
25
|
import { times as ft } from "remeda";
|
|
26
|
-
import { u as
|
|
26
|
+
import { u as V } from "./useSelector-DpU7_HMO.js";
|
|
27
27
|
import "./propsContext-CauylOgH.js";
|
|
28
28
|
import { P as bt } from "./PropsContextProvider-DZvwqHLP.js";
|
|
29
29
|
import "@react-aria/utils";
|
|
30
30
|
import { W as St } from "./Wrap-DGT1h1o3.js";
|
|
31
31
|
import { L as yt } from "./Link-C26cRsUe.js";
|
|
32
32
|
import { I as Ct } from "./IconContextMenu-bD7n5nvt.js";
|
|
33
|
-
import { d as f, a as
|
|
33
|
+
import { d as f, a as M } from "./deepFindOfType-6pG0fH7S.js";
|
|
34
34
|
import { I as vt } from "./InlineCode-BV2i5uN0.js";
|
|
35
35
|
import { ListLoaderAsyncResource as Ft } from "./List/ListLoaderAsyncResource.js";
|
|
36
36
|
const J = Y({}), m = () => Z(J).list, Tt = (i) => /* @__PURE__ */ r.createElement(r.Fragment, null, i.children()), Et = () => m().loader.getLoaderInvocationHooks().map((t, e) => /* @__PURE__ */ r.createElement(Tt, { key: e }, () => {
|
|
@@ -50,7 +50,7 @@ const J = Y({}), m = () => Z(J).list, Tt = (i) => /* @__PURE__ */ r.createElemen
|
|
|
50
50
|
},
|
|
51
51
|
"en-EN": {
|
|
52
52
|
options: "Options",
|
|
53
|
-
paginationInfo: "Showing {
|
|
53
|
+
paginationInfo: "Showing {visibleItemsCount} of {totalItemsCount}",
|
|
54
54
|
paginationInfoFiltered: "Showing {visibleItemsCount} of {filteredItemsCount} (unfiltered total count {totalItemsCount})",
|
|
55
55
|
resetAll: "Reset filters",
|
|
56
56
|
setSorting: "Sorting: {property}",
|
|
@@ -98,10 +98,10 @@ const J = Y({}), m = () => Z(J).list, Tt = (i) => /* @__PURE__ */ r.createElemen
|
|
|
98
98
|
},
|
|
99
99
|
e
|
|
100
100
|
));
|
|
101
|
-
}, Bt = "flow--list--header", At = "flow--list--header--picker-list",
|
|
101
|
+
}, Bt = "flow--list--header", At = "flow--list--header--picker-list", N = {
|
|
102
102
|
header: Bt,
|
|
103
103
|
pickerList: At
|
|
104
|
-
}, kt = "flow--list--header--active-filters", Dt = "flow--list--header--clear-button",
|
|
104
|
+
}, kt = "flow--list--header--active-filters", Dt = "flow--list--header--clear-button", R = {
|
|
105
105
|
activeFilters: kt,
|
|
106
106
|
clearButton: Dt
|
|
107
107
|
}, Pt = () => {
|
|
@@ -118,24 +118,24 @@ const J = Y({}), m = () => Z(J).list, Tt = (i) => /* @__PURE__ */ r.createElemen
|
|
|
118
118
|
/* @__PURE__ */ r.createElement(rt, null)
|
|
119
119
|
))
|
|
120
120
|
);
|
|
121
|
-
return t.length <= 0 ? null : /* @__PURE__ */ r.createElement("div", { className:
|
|
121
|
+
return t.length <= 0 ? null : /* @__PURE__ */ r.createElement("div", { className: R.activeFilters }, t, /* @__PURE__ */ r.createElement(
|
|
122
122
|
h,
|
|
123
123
|
{
|
|
124
|
-
className:
|
|
124
|
+
className: R.clearButton,
|
|
125
125
|
size: "s",
|
|
126
126
|
style: "plain",
|
|
127
127
|
onPress: () => i.clearFilters()
|
|
128
128
|
},
|
|
129
129
|
/* @__PURE__ */ r.createElement(v, { locales: g }, "resetAll")
|
|
130
130
|
));
|
|
131
|
-
},
|
|
131
|
+
}, Vt = (i) => {
|
|
132
132
|
const { className: t } = i, a = m().filters.map((s) => /* @__PURE__ */ r.createElement(It, { key: s.property, filter: s }));
|
|
133
|
-
return /* @__PURE__ */ r.createElement("div", { className: K(t,
|
|
134
|
-
},
|
|
135
|
-
list:
|
|
133
|
+
return /* @__PURE__ */ r.createElement("div", { className: K(t, N.header) }, /* @__PURE__ */ r.createElement("div", { className: N.pickerList }, /* @__PURE__ */ r.createElement(Lt, null), a), /* @__PURE__ */ r.createElement(Pt, null));
|
|
134
|
+
}, Mt = "flow--list", Nt = {
|
|
135
|
+
list: Mt
|
|
136
136
|
};
|
|
137
137
|
var u;
|
|
138
|
-
let
|
|
138
|
+
let Rt = (u = class {
|
|
139
139
|
constructor(t, e, a) {
|
|
140
140
|
o(this, "id");
|
|
141
141
|
o(this, "data");
|
|
@@ -158,7 +158,7 @@ class F {
|
|
|
158
158
|
return new F(t);
|
|
159
159
|
}
|
|
160
160
|
get entries() {
|
|
161
|
-
return this.list.reactTable.table.getRowModel().rows.map((t) =>
|
|
161
|
+
return this.list.reactTable.table.getRowModel().rows.map((t) => Rt.fromRow(this, t));
|
|
162
162
|
}
|
|
163
163
|
}
|
|
164
164
|
class zt {
|
|
@@ -428,13 +428,13 @@ class E {
|
|
|
428
428
|
return (this.dataBatches.length === 0 ? this.prevDataBatches : this.dataBatches).flatMap((e) => e);
|
|
429
429
|
}
|
|
430
430
|
useMergedData() {
|
|
431
|
-
return
|
|
431
|
+
return V(() => this.mergedData);
|
|
432
432
|
}
|
|
433
433
|
get isLoading() {
|
|
434
434
|
return this.batchLoadingStates.some((t) => t === "loading");
|
|
435
435
|
}
|
|
436
436
|
useIsLoading() {
|
|
437
|
-
return
|
|
437
|
+
return V(() => this.isLoading);
|
|
438
438
|
}
|
|
439
439
|
}
|
|
440
440
|
const Ht = [];
|
|
@@ -680,8 +680,8 @@ function qe(i) {
|
|
|
680
680
|
} : void 0
|
|
681
681
|
}, S = (p) => /* @__PURE__ */ r.createElement(ee, { data: p }), G = qt.useNew({
|
|
682
682
|
loader: d,
|
|
683
|
-
filters:
|
|
684
|
-
sorting:
|
|
683
|
+
filters: M(t, re).map((p) => p.props),
|
|
684
|
+
sorting: M(t, ne).map((p) => p.props),
|
|
685
685
|
render: ((A = f(t, ie)) == null ? void 0 : A.props.children) ?? S,
|
|
686
686
|
...a,
|
|
687
687
|
batchesController: {
|
|
@@ -696,7 +696,7 @@ function qe(i) {
|
|
|
696
696
|
}
|
|
697
697
|
},
|
|
698
698
|
/* @__PURE__ */ r.createElement(Et, null),
|
|
699
|
-
/* @__PURE__ */ r.createElement("div", { className:
|
|
699
|
+
/* @__PURE__ */ r.createElement("div", { className: Nt.list }, /* @__PURE__ */ r.createElement(Vt, null), /* @__PURE__ */ r.createElement(ae, null), /* @__PURE__ */ r.createElement(de, null))
|
|
700
700
|
);
|
|
701
701
|
}
|
|
702
702
|
export {
|
package/dist/Tabs.js
CHANGED
|
@@ -1,45 +1,131 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
/* */
|
|
3
|
-
import
|
|
4
|
-
import * as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
},
|
|
21
|
-
|
|
22
|
-
|
|
3
|
+
import e, { useRef as M, useState as T, useEffect as N, useId as C, createContext as y, useContext as I } from "react";
|
|
4
|
+
import * as f from "react-aria-components";
|
|
5
|
+
import { MenuTrigger as O } from "react-aria-components";
|
|
6
|
+
import m from "clsx";
|
|
7
|
+
import { TunnelExit as u, TunnelProvider as P, TunnelEntry as b } from "@mittwald/react-tunnel";
|
|
8
|
+
import { f as S } from "./flowComponent-BuF0s2uG.js";
|
|
9
|
+
import { useCallbackRef as B } from "use-callback-ref";
|
|
10
|
+
import { C as K } from "./ContextMenu-DJ4VRDCG.js";
|
|
11
|
+
import { M as L } from "./MenuItem-DbXZNJo6.js";
|
|
12
|
+
import { B as F } from "./Button-B2GKVrxY.js";
|
|
13
|
+
import "@tabler/icons-react";
|
|
14
|
+
import "./Icon-DdQwrIup.js";
|
|
15
|
+
import { I as A } from "./IconContextMenu-bD7n5nvt.js";
|
|
16
|
+
import { T as R } from "./Text-CBzyk1oM.js";
|
|
17
|
+
const W = "flow--tabs", $ = "flow--tabs--list", k = {
|
|
18
|
+
tabs: W,
|
|
19
|
+
list: $
|
|
20
|
+
}, j = "flow--tabs--tab-list", q = "flow--tabs--tab-list--context-menu-button", z = "flow--tabs--tab-list--titles", D = "flow--tabs--tab-list--collapsed", d = {
|
|
21
|
+
tabList: j,
|
|
22
|
+
contextMenuButton: q,
|
|
23
|
+
titles: z,
|
|
24
|
+
collapsed: D
|
|
25
|
+
}, G = () => {
|
|
26
|
+
const s = M(), [n, r] = T(!1), o = B(null, (t) => {
|
|
27
|
+
a(), c(t);
|
|
28
|
+
}), l = ([
|
|
29
|
+
t
|
|
30
|
+
]) => {
|
|
31
|
+
t && r(!t.isIntersecting);
|
|
32
|
+
}, c = (t = o.current) => {
|
|
33
|
+
if (t && t instanceof Element) {
|
|
34
|
+
const i = new IntersectionObserver(l, {
|
|
35
|
+
root: t.parentElement,
|
|
36
|
+
// 1 = invoke callback when the element is 100% visible within the parent element
|
|
37
|
+
threshold: 1
|
|
38
|
+
});
|
|
39
|
+
s.current = i, i.observe(t);
|
|
40
|
+
}
|
|
41
|
+
}, a = () => {
|
|
42
|
+
var t;
|
|
43
|
+
(t = s.current) == null || t.disconnect();
|
|
44
|
+
};
|
|
45
|
+
return N(() => (c(), a), [s.current]), {
|
|
46
|
+
ref: o,
|
|
47
|
+
isOverflowing: n
|
|
48
|
+
};
|
|
49
|
+
}, H = "flow--tabs--tab-title", p = {
|
|
50
|
+
tabTitle: H
|
|
51
|
+
}, J = (s) => {
|
|
52
|
+
const { className: n, ...r } = s, o = m(n, p.tabTitle);
|
|
53
|
+
return /* @__PURE__ */ e.createElement("div", { ...r, className: o, "data-selected": !0 }, /* @__PURE__ */ e.createElement(u, { id: "ActiveTitle" }));
|
|
54
|
+
}, Q = (s) => {
|
|
55
|
+
const { selection: n, disabledKeys: r, onContextMenuSelectionChange: o } = s, l = C(), c = G(), a = c.isOverflowing, t = m(d.tabList, a && d.collapsed), i = (w) => {
|
|
56
|
+
const [E] = w;
|
|
57
|
+
E && o(E);
|
|
58
|
+
}, x = /* @__PURE__ */ e.createElement(f.TabList, { className: d.titles, ref: c.ref }, /* @__PURE__ */ e.createElement(u, { id: "Titles" })), g = a && /* @__PURE__ */ e.createElement(J, { id: l }), h = a && /* @__PURE__ */ e.createElement(O, null, /* @__PURE__ */ e.createElement(
|
|
59
|
+
F,
|
|
60
|
+
{
|
|
61
|
+
style: "soft",
|
|
62
|
+
className: d.contextMenuButton,
|
|
63
|
+
variant: "secondary",
|
|
64
|
+
"aria-labelledby": l
|
|
65
|
+
},
|
|
66
|
+
/* @__PURE__ */ e.createElement(A, null)
|
|
67
|
+
), /* @__PURE__ */ e.createElement(
|
|
68
|
+
K,
|
|
69
|
+
{
|
|
70
|
+
disabledKeys: r,
|
|
71
|
+
selectedKeys: n ? [n] : void 0,
|
|
72
|
+
selectionMode: "navigation",
|
|
73
|
+
onSelectionChange: i
|
|
74
|
+
},
|
|
75
|
+
/* @__PURE__ */ e.createElement(u, { id: "ContextMenuItems" })
|
|
76
|
+
));
|
|
77
|
+
return /* @__PURE__ */ e.createElement("div", { className: t }, x, g, h);
|
|
78
|
+
}, de = S("Tabs", (s) => {
|
|
79
|
+
const { children: n, className: r, defaultSelectedKey: o, disabledKeys: l, ...c } = s, a = m(k.tabs, r), [t, i] = T(
|
|
80
|
+
o
|
|
81
|
+
);
|
|
82
|
+
return /* @__PURE__ */ e.createElement(P, null, n, /* @__PURE__ */ e.createElement(
|
|
83
|
+
f.Tabs,
|
|
84
|
+
{
|
|
85
|
+
className: a,
|
|
86
|
+
...c,
|
|
87
|
+
selectedKey: t,
|
|
88
|
+
onSelectionChange: i,
|
|
89
|
+
disabledKeys: l
|
|
90
|
+
},
|
|
91
|
+
/* @__PURE__ */ e.createElement(
|
|
92
|
+
Q,
|
|
93
|
+
{
|
|
94
|
+
selection: t,
|
|
95
|
+
onContextMenuSelectionChange: i,
|
|
96
|
+
disabledKeys: l
|
|
97
|
+
}
|
|
98
|
+
),
|
|
99
|
+
/* @__PURE__ */ e.createElement(u, { id: "Panels" })
|
|
100
|
+
));
|
|
101
|
+
}), v = y({
|
|
102
|
+
id: "undefined"
|
|
103
|
+
}), U = () => I(v), V = v.Provider, be = (s) => {
|
|
104
|
+
const { children: n, className: r, ...o } = s, { id: l } = U(), c = m(p.tabTitle, r);
|
|
105
|
+
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(b, { id: "Titles" }, /* @__PURE__ */ e.createElement(f.Tab, { ...o, id: l, className: c }, (a) => /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(R, { emulateBoldWidth: !0 }, n), /* @__PURE__ */ e.createElement(b, { id: "ActiveTitle" }, a.isSelected && n)))), /* @__PURE__ */ e.createElement(b, { id: "ContextMenuItems" }, /* @__PURE__ */ e.createElement(L, { id: l }, n)));
|
|
106
|
+
}, X = "flow--tabs--tab--tab-panel", Y = {
|
|
107
|
+
tabPanel: X
|
|
108
|
+
}, ue = (s) => {
|
|
23
109
|
const {
|
|
24
|
-
children:
|
|
25
|
-
className:
|
|
26
|
-
shouldForceMount:
|
|
27
|
-
id:
|
|
28
|
-
...
|
|
29
|
-
} =
|
|
30
|
-
return /* @__PURE__ */
|
|
31
|
-
|
|
110
|
+
children: n,
|
|
111
|
+
className: r,
|
|
112
|
+
shouldForceMount: o = !0,
|
|
113
|
+
id: l,
|
|
114
|
+
...c
|
|
115
|
+
} = s, a = m(Y.tabPanel, r), t = C(), i = l ?? t;
|
|
116
|
+
return /* @__PURE__ */ e.createElement(b, { id: "Panels" }, /* @__PURE__ */ e.createElement(
|
|
117
|
+
f.TabPanel,
|
|
32
118
|
{
|
|
33
|
-
className:
|
|
34
|
-
shouldForceMount:
|
|
119
|
+
className: a,
|
|
120
|
+
shouldForceMount: o,
|
|
35
121
|
id: i,
|
|
36
|
-
...
|
|
122
|
+
...c
|
|
37
123
|
},
|
|
38
|
-
|
|
39
|
-
))
|
|
124
|
+
/* @__PURE__ */ e.createElement(V, { value: { id: i } }, n)
|
|
125
|
+
));
|
|
40
126
|
};
|
|
41
127
|
export {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
128
|
+
ue as Tab,
|
|
129
|
+
be as TabTitle,
|
|
130
|
+
de as Tabs
|
|
45
131
|
};
|