@mittwald/flow-react-components 0.1.0-alpha.84 → 0.1.0-alpha.86

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/Icons.js CHANGED
@@ -1,23 +1,23 @@
1
1
  "use client"
2
2
  /* */
3
3
  import n from "react";
4
- import { IconAppWindow as o, IconArrowLeft as l, IconClock as c, IconChevronLeft as a, IconCode as r, IconCalendarCheck as I, IconBuilding as m, IconLayoutBoard as s, IconDatabase as E, IconCalendar as u, IconTrash as i, IconWorld as p, IconMail as h, IconExternalLink as d, IconFilter as f, IconEyeCancel as C, IconHome as x, IconList as S, IconPower as g, IconUsersGroup as v, IconBell as L, IconArchive as b, IconDice3 as k, IconSearch as w, IconListSearch as D, IconServer as $, IconSettings as M, IconEye as y, IconAdjustmentsHorizontal as B, IconDoor as H, IconSubtask as A, IconHeadset as F, IconFileX as R, IconLayoutGrid as V } from "@tabler/icons-react";
4
+ import { IconAppWindow as o, IconArrowLeft as l, IconClock as c, IconChevronLeft as a, IconCode as r, IconCalendarCheck as I, IconBuilding as m, IconLayoutBoard as s, IconDatabase as E, IconCalendar as u, IconTrash as i, IconWorld as p, IconMail as h, IconExternalLink as d, IconFilter as f, IconEyeCancel as C, IconHome as x, IconInbox as S, IconList as v, IconPower as b, IconUsersGroup as g, IconBell as k, IconArchive as L, IconDice3 as w, IconDeviceFloppy as D, IconSearch as $, IconListSearch as y, IconServer as F, IconSettings as M, IconShare3 as B, IconEye as H, IconAdjustmentsHorizontal as P, IconShield as A, IconShieldCheckFilled as R, IconDoor as V, IconSubtask as O, IconHeadset as T, IconFileX as j, IconLayoutGrid as z } from "@tabler/icons-react";
5
5
  import { I as t } from "./Icon-DwHDa4pA.js";
6
- import { I as be } from "./IconCheck-CubzEVji.js";
7
- import { I as we, a as De } from "./IconCheckboxEmpty-BlU9hQOh.js";
8
- import { I as Me } from "./IconCheckboxIndeterminate-B-p8FuLS.js";
9
- import { I as Be } from "./IconChevronDown-C205topB.js";
10
- import { I as Ae } from "./IconChevronRight-CFcrQPos.js";
11
- import { a as Re, I as Ve, b as Pe } from "./IconPlus-Bz-UoRuD.js";
12
- import { I as je } from "./IconClose-7gyfEXz1.js";
13
- import { I as We } from "./IconContextMenu-DYOFg7qU.js";
14
- import { I as Oe } from "./IconCopy-CHksIqDs.js";
15
- import { I as Ne } from "./IconDanger-MdCt1mDP.js";
16
- import { a as qe, I as Je } from "./IconSucceeded-CHjiCCzR.js";
17
- import { I as Qe, a as Ye, b as Ze } from "./IconWarning-Dbq3oj5j.js";
18
- import { I as en } from "./IconPending-CyQhZCfI.js";
19
- import { a as tn, I as cn } from "./IconRadioOn-ghpksMxd.js";
20
- const z = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(o, null)), W = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(l, null)), G = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(c, null)), O = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(a, null)), U = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(r, null)), N = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(I, null)), X = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(m, null)), q = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(s, null)), J = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(E, null)), K = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(u, null)), Q = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(i, null)), Y = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(p, null)), Z = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(h, null)), _ = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(d, null)), ee = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(f, null)), ne = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(C, null)), te = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(x, null)), ce = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(S, null)), oe = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(g, null)), le = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(v, null)), ae = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(L, null)), re = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(b, null)), Ie = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(k, null)), me = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(w, null)), se = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(D, null)), Ee = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement($, null)), ue = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(M, null)), ie = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(y, null)), pe = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(B, null)), he = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(H, null)), de = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(A, null)), fe = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(F, null)), Ce = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(R, null)), xe = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(V, null)), Se = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(c, null)), ge = (e) => /* @__PURE__ */ n.createElement(
6
+ import { I as Pe } from "./IconCheck-CubzEVji.js";
7
+ import { I as Re, a as Ve } from "./IconCheckboxEmpty-BlU9hQOh.js";
8
+ import { I as Te } from "./IconCheckboxIndeterminate-B-p8FuLS.js";
9
+ import { I as ze } from "./IconChevronDown-C205topB.js";
10
+ import { I as Ge } from "./IconChevronRight-CFcrQPos.js";
11
+ import { a as Ne, I as Xe, b as qe } from "./IconPlus-Bz-UoRuD.js";
12
+ import { I as Ke } from "./IconClose-7gyfEXz1.js";
13
+ import { I as Ye } from "./IconContextMenu-DYOFg7qU.js";
14
+ import { I as _e } from "./IconCopy-CHksIqDs.js";
15
+ import { I as nn } from "./IconDanger-MdCt1mDP.js";
16
+ import { a as cn, I as on } from "./IconSucceeded-CHjiCCzR.js";
17
+ import { I as an, a as rn, b as In } from "./IconWarning-Dbq3oj5j.js";
18
+ import { I as sn } from "./IconPending-CyQhZCfI.js";
19
+ import { a as un, I as pn } from "./IconRadioOn-ghpksMxd.js";
20
+ const N = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(o, null)), X = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(l, null)), q = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(c, null)), J = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(a, null)), K = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(r, null)), Q = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(I, null)), Y = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(m, null)), Z = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(s, null)), _ = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(E, null)), ee = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(u, null)), ne = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(i, null)), te = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(p, null)), ce = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(h, null)), oe = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(d, null)), le = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(f, null)), ae = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(C, null)), re = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(x, null)), Ie = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(S, null)), me = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(v, null)), se = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(b, null)), Ee = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(g, null)), ue = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(k, null)), ie = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(L, null)), pe = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(w, null)), he = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(D, null)), de = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement($, null)), fe = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(y, null)), Ce = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(F, null)), xe = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(M, null)), Se = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(B, null)), ve = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(H, null)), be = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(P, null)), ge = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(A, null)), ke = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(R, null)), Le = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(V, null)), we = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(O, null)), De = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(T, null)), $e = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(j, null)), ye = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(z, null)), Fe = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(c, null)), Me = (e) => /* @__PURE__ */ n.createElement(
21
21
  t,
22
22
  {
23
23
  ...e
@@ -29,61 +29,66 @@ const z = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.
29
29
  `
30
30
  );
31
31
  export {
32
- z as IconApp,
33
- W as IconBackLink,
34
- G as IconBackup,
35
- be as IconCheck,
36
- we as IconCheckboxChecked,
37
- De as IconCheckboxEmpty,
38
- Me as IconCheckboxIndeterminate,
39
- Be as IconChevronDown,
40
- O as IconChevronLeft,
41
- Ae as IconChevronRight,
42
- Re as IconChevronUp,
43
- je as IconClose,
44
- U as IconCode,
45
- We as IconContextMenu,
46
- Oe as IconCopy,
47
- N as IconCronjob,
48
- X as IconCustomer,
49
- Ne as IconDanger,
50
- q as IconDashboard,
51
- J as IconDatabase,
52
- K as IconDate,
53
- Q as IconDelete,
54
- Y as IconDomain,
55
- Z as IconEmail,
56
- _ as IconExternalLink,
57
- qe as IconFailed,
58
- ee as IconFilter,
59
- ne as IconHide,
60
- te as IconHome,
61
- Qe as IconInfo,
62
- ce as IconListView,
63
- oe as IconLogout,
64
- le as IconMember,
65
- Ve as IconMinus,
66
- ge as IconMittwald,
67
- ae as IconNotification,
68
- en as IconPending,
69
- Pe as IconPlus,
70
- re as IconProject,
71
- tn as IconRadioOff,
72
- cn as IconRadioOn,
73
- Ie as IconRandom,
74
- me as IconSearch,
75
- se as IconSearchEngine,
76
- Ee as IconServer,
77
- ue as IconSettings,
78
- ie as IconShow,
79
- pe as IconSorting,
80
- he as IconSshSftp,
81
- de as IconSubdomain,
82
- Je as IconSucceeded,
83
- Ye as IconSuccess,
84
- fe as IconSupport,
85
- Ce as IconTerminate,
86
- xe as IconTileView,
87
- Se as IconTime,
88
- Ze as IconWarning
32
+ N as IconApp,
33
+ X as IconBackLink,
34
+ q as IconBackup,
35
+ Pe as IconCheck,
36
+ Re as IconCheckboxChecked,
37
+ Ve as IconCheckboxEmpty,
38
+ Te as IconCheckboxIndeterminate,
39
+ ze as IconChevronDown,
40
+ J as IconChevronLeft,
41
+ Ge as IconChevronRight,
42
+ Ne as IconChevronUp,
43
+ Ke as IconClose,
44
+ K as IconCode,
45
+ Ye as IconContextMenu,
46
+ _e as IconCopy,
47
+ Q as IconCronjob,
48
+ Y as IconCustomer,
49
+ nn as IconDanger,
50
+ Z as IconDashboard,
51
+ _ as IconDatabase,
52
+ ee as IconDate,
53
+ ne as IconDelete,
54
+ te as IconDomain,
55
+ ce as IconEmail,
56
+ oe as IconExternalLink,
57
+ cn as IconFailed,
58
+ le as IconFilter,
59
+ ae as IconHide,
60
+ re as IconHome,
61
+ Ie as IconInbox,
62
+ an as IconInfo,
63
+ me as IconListView,
64
+ se as IconLogout,
65
+ Ee as IconMember,
66
+ Xe as IconMinus,
67
+ Me as IconMittwald,
68
+ ue as IconNotification,
69
+ sn as IconPending,
70
+ qe as IconPlus,
71
+ ie as IconProject,
72
+ un as IconRadioOff,
73
+ pn as IconRadioOn,
74
+ pe as IconRandom,
75
+ he as IconSave,
76
+ de as IconSearch,
77
+ fe as IconSearchEngine,
78
+ Ce as IconServer,
79
+ xe as IconSettings,
80
+ Se as IconShare,
81
+ ve as IconShow,
82
+ be as IconSorting,
83
+ ge as IconSpamProtectionOff,
84
+ ke as IconSpamProtectionOn,
85
+ Le as IconSshSftp,
86
+ we as IconSubdomain,
87
+ on as IconSucceeded,
88
+ rn as IconSuccess,
89
+ De as IconSupport,
90
+ $e as IconTerminate,
91
+ ye as IconTileView,
92
+ Fe as IconTime,
93
+ In as IconWarning
89
94
  };
@@ -7,7 +7,7 @@ import "@react-aria/utils";
7
7
  import "./propsContext-CauylOgH.js";
8
8
  import "remeda";
9
9
  import p from "clsx";
10
- import { S as u } from "./StatusIcon-DYuGj4gU.js";
10
+ import { S as u } from "./StatusIcon-BMyHmLNg.js";
11
11
  import { f as d } from "./flowComponent-dvQga3NG.js";
12
12
  const w = "flow--inline-alert", g = "flow--inline-alert--status-icon", C = "flow--inline-alert--heading", I = "flow--inline-alert--content", N = "flow--inline-alert--info", h = "flow--inline-alert--warning", x = "flow--inline-alert--danger", A = "flow--inline-alert--success", n = {
13
13
  inlineAlert: w,
@@ -2,7 +2,7 @@
2
2
  /* */
3
3
  import t from "react";
4
4
  import l from "clsx";
5
- import { S as f } from "./StatusIcon-DYuGj4gU.js";
5
+ import { S as f } from "./StatusIcon-BMyHmLNg.js";
6
6
  import { T as i } from "./Text-CKd46eHq.js";
7
7
  import { C as u } from "./ClearPropsContext-CeCMjUK9.js";
8
8
  import "./propsContext-CauylOgH.js";
@@ -0,0 +1,49 @@
1
+ "use client"
2
+ /* */
3
+ import t from "react";
4
+ import "@tabler/icons-react";
5
+ import "./Icon-DwHDa4pA.js";
6
+ import { I as m } from "./IconDanger-MdCt1mDP.js";
7
+ import { I as f, a as l, b as I } from "./IconWarning-Dbq3oj5j.js";
8
+ import { useLocalizedStringFormatter as g } from "react-aria";
9
+ import { C as p } from "./ClearPropsContext-CeCMjUK9.js";
10
+ import "./propsContext-CauylOgH.js";
11
+ import "@react-aria/utils";
12
+ import "remeda";
13
+ import "dot-prop";
14
+ import w from "clsx";
15
+ const S = {
16
+ "de-DE": {
17
+ "statusIcon.danger": "Status Fehler",
18
+ "statusIcon.info": "Status Information",
19
+ "statusIcon.success": "Status Erfolg",
20
+ "statusIcon.warning": "Status Warnung"
21
+ },
22
+ "en-EN": {
23
+ "statusIcon.danger": "Status error",
24
+ "statusIcon.info": "Status information",
25
+ "statusIcon.success": "Status success",
26
+ "statusIcon.warning": "Status warning"
27
+ }
28
+ }, d = "flow--status-icon--info", E = "flow--status-icon", C = "flow--status-icon--warning", N = "flow--status-icon--danger", x = "flow--status-icon--success", o = {
29
+ info: d,
30
+ statusIcon: E,
31
+ warning: C,
32
+ danger: N,
33
+ success: x
34
+ }, F = {
35
+ danger: m,
36
+ info: f,
37
+ success: l,
38
+ warning: I
39
+ }, q = (n) => {
40
+ const { status: s = "info", className: a, ...c } = n, r = w(o.statusIcon, o[s], a), e = g(S), i = F[s], u = {
41
+ className: r,
42
+ "aria-label": e.format(`statusIcon.${s}`),
43
+ ...c
44
+ };
45
+ return /* @__PURE__ */ t.createElement(p, null, /* @__PURE__ */ t.createElement(i, { ...u }));
46
+ };
47
+ export {
48
+ q as S
49
+ };
@@ -1,6 +1,6 @@
1
1
  "use client"
2
2
  /* */
3
- import { S as a } from "./StatusIcon-DYuGj4gU.js";
3
+ import { S as a } from "./StatusIcon-BMyHmLNg.js";
4
4
  export {
5
5
  a as StatusIcon,
6
6
  a as default
package/dist/Tabs.js CHANGED
@@ -1,10 +1,10 @@
1
1
  "use client"
2
2
  /* */
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";
3
+ import e, { useRef as h, useState as C, useEffect as M, useId as p, createContext as I, useContext as y } from "react";
4
+ import * as E from "react-aria-components";
5
5
  import { MenuTrigger as O } from "react-aria-components";
6
6
  import m from "clsx";
7
- import { TunnelExit as u, TunnelProvider as P, TunnelEntry as b } from "@mittwald/react-tunnel";
7
+ import { TunnelExit as f, TunnelProvider as P, TunnelEntry as u } from "@mittwald/react-tunnel";
8
8
  import { f as S } from "./flowComponent-dvQga3NG.js";
9
9
  import { useCallbackRef as B } from "use-callback-ref";
10
10
  import { C as K } from "./ContextMenu-BeySGa4K.js";
@@ -17,51 +17,53 @@ import { T as R } from "./Text-CKd46eHq.js";
17
17
  const W = "flow--tabs", $ = "flow--tabs--list", k = {
18
18
  tabs: W,
19
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 = {
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", b = {
21
21
  tabList: j,
22
22
  contextMenuButton: q,
23
23
  titles: z,
24
24
  collapsed: D
25
25
  }, G = () => {
26
- const s = M(), [n, r] = T(!1), o = B(null, (t) => {
27
- a(), c(t);
28
- }), l = ([
26
+ const s = h(), [n, r] = C(!1), o = B(null, (t) => {
27
+ l(), c(t);
28
+ }), a = ([
29
29
  t
30
30
  ]) => {
31
31
  t && r(!t.isIntersecting);
32
32
  }, c = (t = o.current) => {
33
33
  if (t && t instanceof Element) {
34
- const i = new IntersectionObserver(l, {
34
+ const i = new IntersectionObserver(a, {
35
35
  root: t.parentElement,
36
36
  // 1 = invoke callback when the element is 100% visible within the parent element
37
37
  threshold: 1
38
38
  });
39
39
  s.current = i, i.observe(t);
40
40
  }
41
- }, a = () => {
41
+ }, l = () => {
42
42
  var t;
43
43
  (t = s.current) == null || t.disconnect();
44
44
  };
45
- return N(() => (c(), a), [s.current]), {
45
+ return M(() => (c(), l), [s.current]), {
46
46
  ref: o,
47
47
  isOverflowing: n
48
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(
49
+ }, H = "flow--tabs--tab-title", J = "flow--tabs--tab-title--text", Q = "flow--tabs--tab-title--menu-item", d = {
50
+ tabTitle: H,
51
+ text: J,
52
+ menuItem: Q
53
+ }, U = (s) => {
54
+ const { className: n, ...r } = s, o = m(n, d.tabTitle);
55
+ return /* @__PURE__ */ e.createElement("div", { ...r, className: o, "data-selected": !0 }, /* @__PURE__ */ e.createElement(f, { id: "ActiveTitle" }));
56
+ }, V = (s) => {
57
+ const { selection: n, disabledKeys: r, onContextMenuSelectionChange: o } = s, a = p(), c = G(), l = c.isOverflowing, t = m(b.tabList, l && b.collapsed), i = (N) => {
58
+ const [T] = N;
59
+ T && o(T);
60
+ }, v = /* @__PURE__ */ e.createElement(E.TabList, { className: b.titles, ref: c.ref }, /* @__PURE__ */ e.createElement(f, { id: "Titles" })), g = l && /* @__PURE__ */ e.createElement(U, { id: a }), w = l && /* @__PURE__ */ e.createElement(O, null, /* @__PURE__ */ e.createElement(
59
61
  F,
60
62
  {
61
63
  style: "soft",
62
- className: d.contextMenuButton,
64
+ className: b.contextMenuButton,
63
65
  variant: "secondary",
64
- "aria-labelledby": l
66
+ "aria-labelledby": a
65
67
  },
66
68
  /* @__PURE__ */ e.createElement(A, null)
67
69
  ), /* @__PURE__ */ e.createElement(
@@ -72,60 +74,60 @@ const W = "flow--tabs", $ = "flow--tabs--list", k = {
72
74
  selectionMode: "navigation",
73
75
  onSelectionChange: i
74
76
  },
75
- /* @__PURE__ */ e.createElement(u, { id: "ContextMenuItems" })
77
+ /* @__PURE__ */ e.createElement(f, { id: "ContextMenuItems" })
76
78
  ));
77
- return /* @__PURE__ */ e.createElement("div", { className: t }, x, g, h);
79
+ return /* @__PURE__ */ e.createElement("div", { className: t }, v, g, w);
78
80
  }, de = S("Tabs", (s) => {
79
- const { children: n, className: r, defaultSelectedKey: o, disabledKeys: l, ...c } = s, a = m(k.tabs, r), [t, i] = T(
81
+ const { children: n, className: r, defaultSelectedKey: o, disabledKeys: a, ...c } = s, l = m(k.tabs, r), [t, i] = C(
80
82
  o
81
83
  );
82
84
  return /* @__PURE__ */ e.createElement(P, null, n, /* @__PURE__ */ e.createElement(
83
- f.Tabs,
85
+ E.Tabs,
84
86
  {
85
- className: a,
87
+ className: l,
86
88
  ...c,
87
89
  selectedKey: t,
88
90
  onSelectionChange: i,
89
- disabledKeys: l
91
+ disabledKeys: a
90
92
  },
91
93
  /* @__PURE__ */ e.createElement(
92
- Q,
94
+ V,
93
95
  {
94
96
  selection: t,
95
97
  onContextMenuSelectionChange: i,
96
- disabledKeys: l
98
+ disabledKeys: a
97
99
  }
98
100
  ),
99
- /* @__PURE__ */ e.createElement(u, { id: "Panels" })
101
+ /* @__PURE__ */ e.createElement(f, { id: "Panels" })
100
102
  ));
101
- }), v = y({
103
+ }), x = I({
102
104
  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) => {
105
+ }), X = () => y(x), Y = x.Provider, fe = (s) => {
106
+ const { children: n, className: r, ...o } = s, { id: a } = X(), c = m(d.tabTitle, r);
107
+ return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(u, { 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: d.text }, n)), /* @__PURE__ */ e.createElement(u, { id: "ActiveTitle" }, l.isSelected && n)))), /* @__PURE__ */ e.createElement(u, { id: "ContextMenuItems" }, /* @__PURE__ */ e.createElement(L, { className: d.menuItem, id: a }, n)));
108
+ }, Z = "flow--tabs--tab--tab-panel", _ = {
109
+ tabPanel: Z
110
+ }, Ee = (s) => {
109
111
  const {
110
112
  children: n,
111
113
  className: r,
112
114
  shouldForceMount: o = !0,
113
- id: l,
115
+ id: a,
114
116
  ...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,
117
+ } = s, l = m(_.tabPanel, r), t = p(), i = a ?? t;
118
+ return /* @__PURE__ */ e.createElement(u, { id: "Panels" }, /* @__PURE__ */ e.createElement(
119
+ E.TabPanel,
118
120
  {
119
- className: a,
121
+ className: l,
120
122
  shouldForceMount: o,
121
123
  id: i,
122
124
  ...c
123
125
  },
124
- /* @__PURE__ */ e.createElement(V, { value: { id: i } }, n)
126
+ /* @__PURE__ */ e.createElement(Y, { value: { id: i } }, n)
125
127
  ));
126
128
  };
127
129
  export {
128
- ue as Tab,
129
- be as TabTitle,
130
+ Ee as Tab,
131
+ fe as TabTitle,
130
132
  de as Tabs
131
133
  };