@ck-ui/component-library 2.0.1 → 2.0.2

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.
Files changed (99) hide show
  1. package/dist/assets/Sidebar-D5jVJ-ln.css +1 -0
  2. package/dist/assets/index-B5N2Zvs1.css +1 -0
  3. package/dist/assets/index-B8lwBNV9.css +1 -0
  4. package/dist/assets/index-BD0iilmm.css +1 -0
  5. package/dist/assets/index-BioJVhpT.css +1 -0
  6. package/dist/assets/index-C6j9Ze5V.css +1 -0
  7. package/dist/assets/index-CSofT_ix.css +1 -0
  8. package/dist/assets/index-C_Tn9jS-.css +1 -0
  9. package/dist/assets/index-DrxnMAdp.css +1 -0
  10. package/dist/assets/index-tIl-UucG.css +1 -0
  11. package/dist/assets/styles-BCYQ4rbx.css +1 -0
  12. package/dist/components/DateRangePicker/DateRangePicker.d.ts.map +1 -1
  13. package/dist/components/DateRangePicker/DateRangePicker.js +244 -192
  14. package/dist/components/DateRangePicker/_types/dateRangePicker.types.d.ts +5 -3
  15. package/dist/components/DateRangePicker/_types/dateRangePicker.types.d.ts.map +1 -1
  16. package/dist/components/PopupAndDialogBox/_types/popupAndDialog.types.d.ts +3 -0
  17. package/dist/components/PopupAndDialogBox/_types/popupAndDialog.types.d.ts.map +1 -1
  18. package/dist/components/PopupAndDialogBox/components/DialogFooter.d.ts.map +1 -1
  19. package/dist/components/PopupAndDialogBox/components/DialogFooter.js +36 -29
  20. package/dist/components/Sidebar/Sidebar.d.ts +2 -2
  21. package/dist/components/Sidebar/Sidebar.d.ts.map +1 -1
  22. package/dist/components/Sidebar/Sidebar.js +112 -40
  23. package/dist/components/Sidebar/Sidebar.types.d.ts +5 -51
  24. package/dist/components/Sidebar/Sidebar.types.d.ts.map +1 -1
  25. package/dist/components/Sidebar/Sidebar.utils.d.ts +1 -1
  26. package/dist/components/Sidebar/Sidebar.utils.d.ts.map +1 -1
  27. package/dist/components/Sidebar/components/CollapsedTooltip/index.d.ts.map +1 -1
  28. package/dist/components/Sidebar/components/CollapsedTooltip/index.js +5 -33
  29. package/dist/components/Sidebar/components/ContactUsButton/index.d.ts.map +1 -1
  30. package/dist/components/Sidebar/components/ContactUsButton/index.js +11 -7
  31. package/dist/components/Sidebar/components/ExploreSection/index.d.ts +1 -1
  32. package/dist/components/Sidebar/components/ExploreSection/index.d.ts.map +1 -1
  33. package/dist/components/Sidebar/components/ExploreSection/index.js +22 -16
  34. package/dist/components/Sidebar/components/GptCard/index.d.ts +1 -1
  35. package/dist/components/Sidebar/components/GptCard/index.d.ts.map +1 -1
  36. package/dist/components/Sidebar/components/GptCard/index.js +27 -15
  37. package/dist/components/Sidebar/components/IconRenderer/index.js +10 -8
  38. package/dist/components/Sidebar/components/MenuItemWrapper/index.d.ts +1 -1
  39. package/dist/components/Sidebar/components/MenuItemWrapper/index.d.ts.map +1 -1
  40. package/dist/components/Sidebar/components/MenuItemWrapper/index.js +2 -8
  41. package/dist/components/Sidebar/components/MenuRenderer/CollapsedMenu.d.ts +11 -0
  42. package/dist/components/Sidebar/components/MenuRenderer/CollapsedMenu.d.ts.map +1 -0
  43. package/dist/components/Sidebar/components/MenuRenderer/CollapsedMenu.js +84 -0
  44. package/dist/components/Sidebar/components/MenuRenderer/ExpandedMenu.d.ts +12 -0
  45. package/dist/components/Sidebar/components/MenuRenderer/ExpandedMenu.d.ts.map +1 -0
  46. package/dist/components/Sidebar/components/MenuRenderer/ExpandedMenu.js +42 -0
  47. package/dist/components/Sidebar/components/MenuRenderer/index.d.ts +1 -1
  48. package/dist/components/Sidebar/components/MenuRenderer/index.d.ts.map +1 -1
  49. package/dist/components/Sidebar/components/MenuRenderer/index.js +25 -73
  50. package/dist/components/Sidebar/components/ModuleSwitchButton/index.d.ts +1 -1
  51. package/dist/components/Sidebar/components/ModuleSwitchButton/index.d.ts.map +1 -1
  52. package/dist/components/Sidebar/components/ModuleSwitchButton/index.js +17 -12
  53. package/dist/components/Sidebar/components/SectionLabel/index.d.ts +4 -2
  54. package/dist/components/Sidebar/components/SectionLabel/index.d.ts.map +1 -1
  55. package/dist/components/Sidebar/components/SectionLabel/index.js +6 -4
  56. package/dist/components/Sidebar/components/SubMenuWrapper/index.d.ts +1 -1
  57. package/dist/components/Sidebar/components/SubMenuWrapper/index.d.ts.map +1 -1
  58. package/dist/components/Sidebar/components/SubMenuWrapper/index.js +30 -18
  59. package/dist/components/Sidebar/components/index.d.ts +11 -0
  60. package/dist/components/Sidebar/components/index.d.ts.map +1 -0
  61. package/dist/components/Sidebar/components/index.js +22 -0
  62. package/dist/components/Sidebar/hooks/index.d.ts +4 -0
  63. package/dist/components/Sidebar/hooks/index.d.ts.map +1 -0
  64. package/dist/components/Sidebar/hooks/index.js +8 -0
  65. package/dist/components/Sidebar/hooks/useActiveDetection.d.ts +1 -1
  66. package/dist/components/Sidebar/hooks/useActiveDetection.d.ts.map +1 -1
  67. package/dist/components/Sidebar/hooks/useMenuState.d.ts +5 -3
  68. package/dist/components/Sidebar/hooks/useMenuState.d.ts.map +1 -1
  69. package/dist/components/Sidebar/hooks/useModuleSwitch.d.ts +4 -2
  70. package/dist/components/Sidebar/hooks/useModuleSwitch.d.ts.map +1 -1
  71. package/dist/components/Sidebar/index.d.ts +16 -1
  72. package/dist/components/Sidebar/index.d.ts.map +1 -1
  73. package/dist/components/Sidebar/index.js +40 -3
  74. package/dist/components/Sidebar/types/explore.types.d.ts +8 -0
  75. package/dist/components/Sidebar/types/explore.types.d.ts.map +1 -0
  76. package/dist/components/Sidebar/types/explore.types.js +1 -0
  77. package/dist/components/Sidebar/types/gpt.types.d.ts +9 -0
  78. package/dist/components/Sidebar/types/gpt.types.d.ts.map +1 -0
  79. package/dist/components/Sidebar/types/gpt.types.js +1 -0
  80. package/dist/components/Sidebar/types/index.d.ts +6 -0
  81. package/dist/components/Sidebar/types/index.d.ts.map +1 -0
  82. package/dist/components/Sidebar/types/index.js +1 -0
  83. package/dist/components/Sidebar/types/menu.types.d.ts +12 -0
  84. package/dist/components/Sidebar/types/menu.types.d.ts.map +1 -0
  85. package/dist/components/Sidebar/types/menu.types.js +1 -0
  86. package/dist/components/Sidebar/types/module.types.d.ts +8 -0
  87. package/dist/components/Sidebar/types/module.types.d.ts.map +1 -0
  88. package/dist/components/Sidebar/types/module.types.js +1 -0
  89. package/dist/components/Sidebar/types/sidebar.types.d.ts +48 -0
  90. package/dist/components/Sidebar/types/sidebar.types.d.ts.map +1 -0
  91. package/dist/components/Sidebar/types/sidebar.types.js +1 -0
  92. package/dist/index-DKHB_5Ee.js +52 -0
  93. package/dist/main.d.ts +6 -0
  94. package/dist/main.d.ts.map +1 -1
  95. package/dist/main.js +60 -49
  96. package/dist/styles.module-V3iL6ubH.js +11 -0
  97. package/package.json +1 -1
  98. package/dist/assets/styles-Dz05pjuA.css +0 -1
  99. package/dist/styles.module-BIdwTiuE.js +0 -66
@@ -1,4 +1,4 @@
1
- import { SidebarMenuItem } from '../../Sidebar.types';
1
+ import { SidebarMenuItem } from '../../types';
2
2
  interface MenuItemWrapperProps {
3
3
  item: SidebarMenuItem;
4
4
  active: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../lib/components/Sidebar/components/MenuItemWrapper/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAK3D,UAAU,oBAAoB;IAC5B,IAAI,EAAE,eAAe,CAAC;IACtB,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,eAAe,CAAC,EAAE,CAAC,IAAI,EAAE,eAAe,KAAK,IAAI,CAAC;CACnD;AAED,wBAAgB,eAAe,CAAC,EAC9B,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,IAAW,EAAE,KAAS,EAAE,UAAU,EAAE,eAAe,GAC7E,EAAE,oBAAoB,2CAsCtB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../lib/components/Sidebar/components/MenuItemWrapper/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAKnD,UAAU,oBAAoB;IAC5B,IAAI,EAAE,eAAe,CAAC;IACtB,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,eAAe,CAAC,EAAE,CAAC,IAAI,EAAE,eAAe,KAAK,IAAI,CAAC;CACnD;AAED,wBAAgB,eAAe,CAAC,EAC9B,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,IAAW,EAAE,KAAS,EAAE,UAAU,EAAE,eAAe,GAC7E,EAAE,oBAAoB,2CAkCtB"}
@@ -1,7 +1,7 @@
1
1
  import { jsxs as u, jsx as r } from "react/jsx-runtime";
2
2
  import { IconRenderer as f } from "../IconRenderer/index.js";
3
3
  import { addBreakOpportunities as N } from "../../Sidebar.utils.js";
4
- import { s as e } from "../../../../styles.module-BIdwTiuE.js";
4
+ import { s as e } from "../../../../styles.module-V3iL6ubH.js";
5
5
  function $({
6
6
  item: n,
7
7
  active: s,
@@ -26,13 +26,7 @@ function $({
26
26
  tabIndex: 0,
27
27
  "aria-current": s ? "page" : void 0,
28
28
  children: [
29
- p && /* @__PURE__ */ r(
30
- "span",
31
- {
32
- className: e["active-indicator"],
33
- style: { left: `-${l}px` }
34
- }
35
- ),
29
+ p && /* @__PURE__ */ r("span", { className: e["active-indicator"], style: { left: `-${l}px` } }),
36
30
  c && /* @__PURE__ */ r("span", { className: e["menu-icon"], children: /* @__PURE__ */ r(f, { icon: n.icon }) }),
37
31
  !i && /* @__PURE__ */ r("span", { className: e["menu-content"], children: N(n.name) })
38
32
  ]
@@ -0,0 +1,11 @@
1
+ import { SidebarMenuItem as MenuItem } from '../../types';
2
+ interface CollapsedMenuProps {
3
+ menuItems: MenuItem[];
4
+ isActive: (item: MenuItem) => boolean;
5
+ isTreeActive: (item: MenuItem) => boolean;
6
+ onNavigate: (path: string) => void;
7
+ onMenuItemClick?: (item: MenuItem) => void;
8
+ }
9
+ export declare function CollapsedMenu({ menuItems, isActive, isTreeActive, onNavigate, onMenuItemClick }: CollapsedMenuProps): import("react/jsx-runtime").JSX.Element;
10
+ export {};
11
+ //# sourceMappingURL=CollapsedMenu.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CollapsedMenu.d.ts","sourceRoot":"","sources":["../../../../../lib/components/Sidebar/components/MenuRenderer/CollapsedMenu.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,IAAI,QAAQ,EAAE,MAAM,aAAa,CAAC;AAO/D,UAAU,kBAAkB;IAC1B,SAAS,EAAE,QAAQ,EAAE,CAAC;IACtB,QAAQ,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,OAAO,CAAC;IACtC,YAAY,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,OAAO,CAAC;IAC1C,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,eAAe,CAAC,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAC;CAC5C;AAED,wBAAgB,aAAa,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,YAAY,EAAE,UAAU,EAAE,eAAe,EAAE,EAAE,kBAAkB,2CA6FnH"}
@@ -0,0 +1,84 @@
1
+ import { jsx as r, jsxs as c, Fragment as N } from "react/jsx-runtime";
2
+ import { useCallback as h } from "react";
3
+ import { C as m, p as n } from "../../../../index-DKHB_5Ee.js";
4
+ import { IconRenderer as t } from "../IconRenderer/index.js";
5
+ import { addBreakOpportunities as u } from "../../Sidebar.utils.js";
6
+ import { s as v } from "../../../../styles.module-V3iL6ubH.js";
7
+ function $({ menuItems: f, isActive: l, isTreeActive: d, onNavigate: a, onMenuItemClick: s }) {
8
+ const b = h((e, i) => {
9
+ const o = e.dashboardServices && e.dashboardServices.length > 0, p = d(e);
10
+ return o ? /* @__PURE__ */ r(
11
+ m,
12
+ {
13
+ active: p,
14
+ icon: /* @__PURE__ */ r("span", { className: v["menu-icon"], children: /* @__PURE__ */ r(t, { icon: e.icon }) }),
15
+ popupClassName: i <= 1 ? n["single-child-popover"] : "",
16
+ children: /* @__PURE__ */ c("div", { className: n["popover-menu"], children: [
17
+ /* @__PURE__ */ r("div", { className: n["popover-title"], children: e.name }),
18
+ /* @__PURE__ */ r("div", { className: n["popover-children"], children: e.dashboardServices.map((C) => w(C)) })
19
+ ] })
20
+ },
21
+ e.name
22
+ ) : /* @__PURE__ */ r(
23
+ m,
24
+ {
25
+ active: l(e),
26
+ icon: /* @__PURE__ */ r("span", { className: v["menu-icon"], children: /* @__PURE__ */ r(t, { icon: e.icon }) }),
27
+ onClick: () => {
28
+ e.url && a(e.url), s?.(e);
29
+ },
30
+ children: /* @__PURE__ */ r("div", { className: n["popover-title-single"], children: e.name })
31
+ },
32
+ e.name
33
+ );
34
+ }, [l, d, a, s]), w = h((e) => e.dashboardServices && e.dashboardServices.length > 0 ? /* @__PURE__ */ c("div", { className: n["popover-child-with-sub"], children: [
35
+ /* @__PURE__ */ r(
36
+ m,
37
+ {
38
+ active: d(e),
39
+ icon: null,
40
+ label: e.name,
41
+ popupClassName: n["nested-popover"],
42
+ children: /* @__PURE__ */ c("div", { className: n["popover-menu"], children: [
43
+ /* @__PURE__ */ r("div", { className: n["popover-title"], children: e.name }),
44
+ /* @__PURE__ */ r("div", { className: n["popover-children"], children: e.dashboardServices.map((o) => /* @__PURE__ */ r(
45
+ "div",
46
+ {
47
+ className: `${n["popover-child-item"]} ${l(o) ? n.active : ""}`,
48
+ onClick: () => {
49
+ o.url && a(o.url), s?.(o);
50
+ },
51
+ onKeyDown: (p) => {
52
+ (p.key === "Enter" || p.key === " ") && (p.preventDefault(), o.url && a(o.url), s?.(o));
53
+ },
54
+ role: "menuitem",
55
+ tabIndex: 0,
56
+ children: u(o.name)
57
+ },
58
+ o.name
59
+ )) })
60
+ ] })
61
+ }
62
+ ),
63
+ /* @__PURE__ */ r("span", { className: n["popover-child-arrow"], children: /* @__PURE__ */ r("svg", { width: "6", height: "10", viewBox: "0 0 6 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": "true", children: /* @__PURE__ */ r("path", { d: "M1 1L5 5L1 9", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) }) })
64
+ ] }, e.name) : /* @__PURE__ */ r(
65
+ "div",
66
+ {
67
+ className: `${n["popover-child-item"]} ${l(e) ? n.active : ""}`,
68
+ onClick: () => {
69
+ e.url && a(e.url), s?.(e);
70
+ },
71
+ onKeyDown: (o) => {
72
+ (o.key === "Enter" || o.key === " ") && (o.preventDefault(), e.url && a(e.url), s?.(e));
73
+ },
74
+ role: "menuitem",
75
+ tabIndex: 0,
76
+ children: u(e.name)
77
+ },
78
+ e.name
79
+ ), [l, d, a, s]);
80
+ return /* @__PURE__ */ r(N, { children: f.map((e, i) => b(e, i)) });
81
+ }
82
+ export {
83
+ $ as CollapsedMenu
84
+ };
@@ -0,0 +1,12 @@
1
+ import { SidebarMenuItem as MenuItem } from '../../types';
2
+ interface ExpandedMenuProps {
3
+ menuItems: MenuItem[];
4
+ currentPath: string;
5
+ isActive: (item: MenuItem) => boolean;
6
+ isTreeActive: (item: MenuItem) => boolean;
7
+ onNavigate: (path: string) => void;
8
+ onMenuItemClick?: (item: MenuItem) => void;
9
+ }
10
+ export declare function ExpandedMenu({ menuItems, currentPath, isActive, isTreeActive, onNavigate, onMenuItemClick }: ExpandedMenuProps): import("react/jsx-runtime").JSX.Element;
11
+ export {};
12
+ //# sourceMappingURL=ExpandedMenu.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExpandedMenu.d.ts","sourceRoot":"","sources":["../../../../../lib/components/Sidebar/components/MenuRenderer/ExpandedMenu.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,IAAI,QAAQ,EAAE,MAAM,aAAa,CAAC;AAK/D,UAAU,iBAAiB;IACzB,SAAS,EAAE,QAAQ,EAAE,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,OAAO,CAAC;IACtC,YAAY,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,OAAO,CAAC;IAC1C,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,eAAe,CAAC,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAC;CAC5C;AAED,wBAAgB,YAAY,CAAC,EAAE,SAAS,EAAE,WAAW,EAAE,QAAQ,EAAE,YAAY,EAAE,UAAU,EAAE,eAAe,EAAE,EAAE,iBAAiB,2CAkD9H"}
@@ -0,0 +1,42 @@
1
+ import { jsx as n, Fragment as x } from "react/jsx-runtime";
2
+ import { useMemo as v, useCallback as L } from "react";
3
+ import { MenuItemWrapper as W } from "../MenuItemWrapper/index.js";
4
+ import { SubMenuWrapper as y } from "../SubMenuWrapper/index.js";
5
+ import { useMenuState as C } from "../../hooks/useMenuState.js";
6
+ function m({ menuItems: e, currentPath: u, isActive: a, isTreeActive: s, onNavigate: d, onMenuItemClick: p }) {
7
+ const { openByLevel: c, toggleMenu: t } = C({ menuItems: e, currentPath: u }), h = v(
8
+ () => e.filter((r) => r.dashboardServices && r.dashboardServices.length > 0),
9
+ [e]
10
+ ), l = L((r, o = 0) => {
11
+ const g = r.dashboardServices && r.dashboardServices.length > 0, f = `${o}-${r.name}`, S = !!c[f], b = s(r), i = o === 0 && h.length === 1;
12
+ return g ? /* @__PURE__ */ n(
13
+ y,
14
+ {
15
+ item: r,
16
+ isOpen: S,
17
+ active: b,
18
+ collapsed: !1,
19
+ level: o,
20
+ isSingleTopLevel: i,
21
+ onToggle: () => t(f, o, r),
22
+ children: r.dashboardServices.map((M) => l(M, o + 1))
23
+ },
24
+ r.name
25
+ ) : /* @__PURE__ */ n(
26
+ W,
27
+ {
28
+ item: r,
29
+ active: a(r),
30
+ collapsed: !1,
31
+ level: o,
32
+ onNavigate: d,
33
+ onMenuItemClick: p
34
+ },
35
+ r.name
36
+ );
37
+ }, [c, a, s, t, d, p, h]);
38
+ return /* @__PURE__ */ n(x, { children: e.map((r) => l(r, 0)) });
39
+ }
40
+ export {
41
+ m as ExpandedMenu
42
+ };
@@ -1,4 +1,4 @@
1
- import { SidebarMenuItem as MenuItem } from '../../Sidebar.types';
1
+ import { SidebarMenuItem as MenuItem } from '../../types';
2
2
  interface MenuRendererProps {
3
3
  menuItems: MenuItem[];
4
4
  currentPath: string;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../lib/components/Sidebar/components/MenuRenderer/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,IAAI,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAYvE,UAAU,iBAAiB;IACzB,SAAS,EAAE,QAAQ,EAAE,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;IACnB,qBAAqB,CAAC,EAAE,OAAO,EAAE,CAAC;IAClC,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,eAAe,CAAC,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAC;CAC5C;AAED,wBAAgB,YAAY,CAAC,EAAE,SAAS,EAAE,WAAW,EAAE,SAAS,EAAE,qBAAqB,EAAE,UAAU,EAAE,eAAe,EAAE,EAAE,iBAAiB,2CA4GxI"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../lib/components/Sidebar/components/MenuRenderer/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,IAAI,QAAQ,EAAE,MAAM,aAAa,CAAC;AAQ/D,UAAU,iBAAiB;IACzB,SAAS,EAAE,QAAQ,EAAE,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;IACnB,qBAAqB,CAAC,EAAE,OAAO,EAAE,CAAC;IAClC,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,eAAe,CAAC,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAC;CAC5C;AAED,wBAAgB,YAAY,CAAC,EAAE,SAAS,EAAE,WAAW,EAAE,SAAS,EAAE,qBAAqB,EAAE,UAAU,EAAE,eAAe,EAAE,EAAE,iBAAiB,2CAwCxI"}
@@ -1,77 +1,29 @@
1
- import { jsx as n, jsxs as v } from "react/jsx-runtime";
2
- import { useMemo as W, useCallback as f } from "react";
3
- import { MenuItemWrapper as g } from "../MenuItemWrapper/index.js";
4
- import { SubMenuWrapper as A } from "../SubMenuWrapper/index.js";
5
- import { CollapsedTooltip as b } from "../CollapsedTooltip/index.js";
6
- import { IconRenderer as L } from "../IconRenderer/index.js";
7
- import { useActiveDetection as B } from "../../hooks/useActiveDetection.js";
8
- import { useMenuState as K } from "../../hooks/useMenuState.js";
9
- import { SectionLabel as O } from "../SectionLabel/index.js";
10
- import { MULTICLOUD_VIEW_KEY as N, CHAT_BOT_KEY as _ } from "../../Sidebar.constants.js";
11
- import { addBreakOpportunities as T } from "../../Sidebar.utils.js";
12
- import { s as o } from "../../../../styles.module-BIdwTiuE.js";
13
- function Q({ menuItems: d, currentPath: S, collapsed: t, multicloudExploreList: y, onNavigate: i, onMenuItemClick: l }) {
14
- const { isActive: c, isTreeActive: p } = B({ currentPath: S, allItems: d }), { openByLevel: w, toggleMenu: C } = K({ menuItems: d, currentPath: S }), k = W(
15
- () => d.filter((e) => e.dashboardServices && e.dashboardServices.length > 0),
16
- [d]
17
- ), u = f((e, a) => {
18
- const r = e.dashboardServices && e.dashboardServices.length > 0, s = p(e);
19
- return r ? /* @__PURE__ */ n(b, { active: s, icon: /* @__PURE__ */ n("span", { className: o["menu-icon"], children: /* @__PURE__ */ n(L, { icon: e.icon }) }), popupClassName: a <= 1 ? o["single-child-popover"] : "", children: /* @__PURE__ */ v("div", { className: o["popover-menu"], children: [
20
- /* @__PURE__ */ n("div", { className: o["popover-title"], children: e.name }),
21
- /* @__PURE__ */ n("div", { className: o["popover-children"], children: e.dashboardServices.map((m) => x(m)) })
22
- ] }) }, e.name) : /* @__PURE__ */ n(b, { active: c(e), icon: /* @__PURE__ */ n("span", { className: o["menu-icon"], children: /* @__PURE__ */ n(L, { icon: e.icon }) }), onClick: () => {
23
- e.url && i(e.url), l?.(e);
24
- }, children: /* @__PURE__ */ n("div", { className: o["popover-title-single"], children: e.name }) }, e.name);
25
- }, [c, p, i, l]), x = f((e) => e.dashboardServices && e.dashboardServices.length > 0 ? /* @__PURE__ */ v("div", { className: o["popover-child-with-sub"], children: [
26
- /* @__PURE__ */ n(b, { active: p(e), icon: null, label: e.name, popupClassName: o["nested-popover"], children: /* @__PURE__ */ v("div", { className: o["popover-menu"], children: [
27
- /* @__PURE__ */ n("div", { className: o["popover-title"], children: e.name }),
28
- /* @__PURE__ */ n("div", { className: o["popover-children"], children: e.dashboardServices.map((r) => /* @__PURE__ */ n(
29
- "div",
30
- {
31
- className: `${o["popover-child-item"]} ${c(r) ? o.active : ""}`,
32
- onClick: () => {
33
- r.url && i(r.url), l?.(r);
34
- },
35
- onKeyDown: (s) => {
36
- (s.key === "Enter" || s.key === " ") && (s.preventDefault(), r.url && i(r.url), l?.(r));
37
- },
38
- role: "menuitem",
39
- tabIndex: 0,
40
- children: T(r.name)
41
- },
42
- r.name
43
- )) })
44
- ] }) }),
45
- /* @__PURE__ */ n("span", { className: o["popover-child-arrow"], children: /* @__PURE__ */ n("svg", { width: "6", height: "10", viewBox: "0 0 6 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": "true", children: /* @__PURE__ */ n("path", { d: "M1 1L5 5L1 9", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) }) })
46
- ] }, e.name) : /* @__PURE__ */ n(
47
- "div",
48
- {
49
- className: `${o["popover-child-item"]} ${c(e) ? o.active : ""}`,
50
- onClick: () => {
51
- e.url && i(e.url), l?.(e);
52
- },
53
- onKeyDown: (r) => {
54
- (r.key === "Enter" || r.key === " ") && (r.preventDefault(), e.url && i(e.url), l?.(e));
55
- },
56
- role: "menuitem",
57
- tabIndex: 0,
58
- children: T(e.name)
59
- },
60
- e.name
61
- ), [c, p, i, l]), h = f((e, a = 0) => {
62
- const r = e.dashboardServices && e.dashboardServices.length > 0, s = `${a}-${e.name}`, m = !!w[s], D = p(e), $ = a === 0 && k.length === 1;
63
- return r ? /* @__PURE__ */ n(A, { item: e, isOpen: m, active: D, collapsed: !1, level: a, isSingleTopLevel: $, onToggle: () => C(s, a, e), children: e.dashboardServices.map((E) => h(E, a + 1)) }, e.name) : /* @__PURE__ */ n(g, { item: e, active: c(e), collapsed: !1, level: a, onNavigate: i, onMenuItemClick: l }, e.name);
64
- }, [w, c, p, C, i, l, k]);
65
- if (y && y.length > 0 && d.length > 0) {
66
- const e = d.filter((r) => r.key === N), a = d.filter((r) => r.key !== N);
67
- return /* @__PURE__ */ v("nav", { className: o["menu-renderer"], role: "menu", "aria-label": "Sidebar navigation", children: [
68
- e.map((r, s) => t ? u(r, s) : h(r, 0)),
69
- /* @__PURE__ */ n(O, { label: "Services", collapsed: t }),
70
- a.map((r, s) => t ? u(r, s) : h(r, 0))
71
- ] });
1
+ import { jsx as e, jsxs as _, Fragment as h } from "react/jsx-runtime";
2
+ import { useActiveDetection as v } from "../../hooks/useActiveDetection.js";
3
+ import { SectionLabel as y } from "../SectionLabel/index.js";
4
+ import { MULTICLOUD_VIEW_KEY as S, CHAT_BOT_KEY as A } from "../../Sidebar.constants.js";
5
+ import { CollapsedMenu as f } from "./CollapsedMenu.js";
6
+ import { ExpandedMenu as a } from "./ExpandedMenu.js";
7
+ import '../../../../assets/index-C6j9Ze5V.css';const p = {
8
+ "menu-renderer": "_menu-renderer_w3wyj_1"
9
+ };
10
+ function K({ menuItems: r, currentPath: l, collapsed: t, multicloudExploreList: u, onNavigate: i, onMenuItemClick: n }) {
11
+ const { isActive: m, isTreeActive: s } = v({ currentPath: l, allItems: r });
12
+ if (u && u.length > 0 && r.length > 0) {
13
+ const o = r.filter((d) => d.key === S), b = r.filter((d) => d.key !== S);
14
+ return /* @__PURE__ */ e("nav", { className: p["menu-renderer"], role: "menu", "aria-label": "Sidebar navigation", children: t ? /* @__PURE__ */ _(h, { children: [
15
+ /* @__PURE__ */ e(f, { menuItems: o, isActive: m, isTreeActive: s, onNavigate: i, onMenuItemClick: n }),
16
+ /* @__PURE__ */ e(y, { label: "Services", collapsed: t }),
17
+ /* @__PURE__ */ e(f, { menuItems: b, isActive: m, isTreeActive: s, onNavigate: i, onMenuItemClick: n })
18
+ ] }) : /* @__PURE__ */ _(h, { children: [
19
+ /* @__PURE__ */ e(a, { menuItems: o, currentPath: l, isActive: m, isTreeActive: s, onNavigate: i, onMenuItemClick: n }),
20
+ /* @__PURE__ */ e(y, { label: "Services", collapsed: t }),
21
+ /* @__PURE__ */ e(a, { menuItems: b, currentPath: l, isActive: m, isTreeActive: s, onNavigate: i, onMenuItemClick: n })
22
+ ] }) });
72
23
  }
73
- return /* @__PURE__ */ n("nav", { className: o["menu-renderer"], role: "menu", "aria-label": "Sidebar navigation", children: d.map((e, a) => !t && e.key === _ ? null : t ? u(e, a) : h(e, 0)) });
24
+ const c = t ? r : r.filter((o) => o.key !== A);
25
+ return /* @__PURE__ */ e("nav", { className: p["menu-renderer"], role: "menu", "aria-label": "Sidebar navigation", children: t ? /* @__PURE__ */ e(f, { menuItems: c, isActive: m, isTreeActive: s, onNavigate: i, onMenuItemClick: n }) : /* @__PURE__ */ e(a, { menuItems: c, currentPath: l, isActive: m, isTreeActive: s, onNavigate: i, onMenuItemClick: n }) });
74
26
  }
75
27
  export {
76
- Q as MenuRenderer
28
+ K as MenuRenderer
77
29
  };
@@ -1,4 +1,4 @@
1
- import { ModuleItem } from '../../Sidebar.types';
1
+ import { ModuleItem } from '../../types';
2
2
  interface ModuleSwitchButtonProps {
3
3
  modules: ModuleItem[];
4
4
  collapsed: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../lib/components/Sidebar/components/ModuleSwitchButton/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAKtD,UAAU,uBAAuB;IAAG,OAAO,EAAE,UAAU,EAAE,CAAC;IAAC,SAAS,EAAE,OAAO,CAAC;IAAC,eAAe,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAAC,cAAc,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;CAAE;AAE3K,wBAAgB,kBAAkB,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,QAAQ,EAAE,cAAc,EAAE,EAAE,uBAAuB,kDAoB5H"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../lib/components/Sidebar/components/ModuleSwitchButton/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAK9C,UAAU,uBAAuB;IAC/B,OAAO,EAAE,UAAU,EAAE,CAAC;IACtB,SAAS,EAAE,OAAO,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;CAC9C;AAED,wBAAgB,kBAAkB,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,QAAQ,EAAE,cAAc,EAAE,EAAE,uBAAuB,kDA6B5H"}
@@ -1,18 +1,23 @@
1
- import { jsx as e, jsxs as h } from "react/jsx-runtime";
1
+ import { jsx as t, jsxs as c } from "react/jsx-runtime";
2
2
  import { capitalizeFirstLetter as u } from "../../Sidebar.utils.js";
3
- import { Tooltip as p } from "../../../Tooltip/index.js";
4
- import { s as r } from "../../../../styles.module-BIdwTiuE.js";
5
- function g({ modules: s, collapsed: i, currentModuleId: a, userType: d, onModuleSwitch: c }) {
6
- if (d !== "CUSTOMER") return null;
7
- const o = s.filter((t) => t.feEnabled && t.type === "CUSTOMER" && t.id !== a);
8
- return o.length === 0 ? null : /* @__PURE__ */ e("div", { className: r.boxShadow, children: o.map((t) => {
9
- const n = `Switch to ${u(t.displayName)}`, l = /* @__PURE__ */ h("button", { type: "button", className: `${r["switch-module-btn"]} ${i ? r["switch-module-collapsed"] : ""}`, onClick: () => c(t.name), "aria-label": n, children: [
10
- !i && /* @__PURE__ */ e("span", { children: n }),
11
- /* @__PURE__ */ e("svg", { width: "8", height: "12", viewBox: "0 0 8 12", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": "true", style: { marginLeft: i ? 0 : "8px" }, children: /* @__PURE__ */ e("path", { d: "M1.5 1L6.5 6L1.5 11", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) })
3
+ import { Tooltip as w } from "../../../Tooltip/index.js";
4
+ import '../../../../assets/index-CSofT_ix.css';const r = {
5
+ "box-shadow": "_box-shadow_rhe0s_1",
6
+ "switch-module-wrapper": "_switch-module-wrapper_rhe0s_10",
7
+ "switch-module-btn": "_switch-module-btn_rhe0s_17",
8
+ "switch-module-collapsed": "_switch-module-collapsed_rhe0s_42"
9
+ };
10
+ function f({ modules: s, collapsed: i, currentModuleId: d, userType: h, onModuleSwitch: a }) {
11
+ if (h !== "CUSTOMER") return null;
12
+ const l = s.filter((e) => e.feEnabled && e.type === "CUSTOMER" && e.id !== d);
13
+ return l.length === 0 ? null : /* @__PURE__ */ t("div", { className: r["box-shadow"], children: l.map((e) => {
14
+ const o = `Switch to ${u(e.displayName)}`, n = /* @__PURE__ */ c("button", { type: "button", className: `${r["switch-module-btn"]} ${i ? r["switch-module-collapsed"] : ""}`, onClick: () => a(e.name), "aria-label": o, children: [
15
+ !i && /* @__PURE__ */ t("span", { children: o }),
16
+ /* @__PURE__ */ t("svg", { width: "8", height: "12", viewBox: "0 0 8 12", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": "true", style: { marginLeft: i ? 0 : "8px" }, children: /* @__PURE__ */ t("path", { d: "M1.5 1L6.5 6L1.5 11", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) })
12
17
  ] });
13
- return i ? /* @__PURE__ */ e("div", { className: r["switch-module-wrapper"], children: /* @__PURE__ */ e(p, { title: n, placement: "right", arrow: !0, children: /* @__PURE__ */ e("span", { children: l }) }) }, t.id) : /* @__PURE__ */ e("div", { className: r["switch-module-wrapper"], children: l }, t.id);
18
+ return i ? /* @__PURE__ */ t("div", { className: r["switch-module-wrapper"], children: /* @__PURE__ */ t(w, { title: o, placement: "right", arrow: !0, children: /* @__PURE__ */ t("span", { children: n }) }) }, e.id) : /* @__PURE__ */ t("div", { className: r["switch-module-wrapper"], children: n }, e.id);
14
19
  }) });
15
20
  }
16
21
  export {
17
- g as ModuleSwitchButton
22
+ f as ModuleSwitchButton
18
23
  };
@@ -1,5 +1,7 @@
1
- export declare function SectionLabel({ label, collapsed }: {
1
+ interface SectionLabelProps {
2
2
  label: string;
3
3
  collapsed: boolean;
4
- }): import("react/jsx-runtime").JSX.Element | null;
4
+ }
5
+ export declare function SectionLabel({ label, collapsed }: SectionLabelProps): import("react/jsx-runtime").JSX.Element | null;
6
+ export {};
5
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../lib/components/Sidebar/components/SectionLabel/index.tsx"],"names":[],"mappings":"AAEA,wBAAgB,YAAY,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,OAAO,CAAA;CAAE,kDAGvF"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../lib/components/Sidebar/components/SectionLabel/index.tsx"],"names":[],"mappings":"AAEA,UAAU,iBAAiB;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,OAAO,CAAC;CACpB;AAED,wBAAgB,YAAY,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,iBAAiB,kDAGnE"}
@@ -1,8 +1,10 @@
1
1
  import { jsx as t } from "react/jsx-runtime";
2
- import { s } from "../../../../styles.module-BIdwTiuE.js";
3
- function o({ label: r, collapsed: e }) {
4
- return e ? null : /* @__PURE__ */ t("p", { className: s["sidebar-tag"], children: r });
2
+ import '../../../../assets/index-tIl-UucG.css';const a = {
3
+ "sidebar-tag": "_sidebar-tag_1wvk7_1"
4
+ };
5
+ function i({ label: e, collapsed: r }) {
6
+ return r ? null : /* @__PURE__ */ t("p", { className: a["sidebar-tag"], children: e });
5
7
  }
6
8
  export {
7
- o as SectionLabel
9
+ i as SectionLabel
8
10
  };
@@ -1,5 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
- import { SidebarMenuItem } from '../../Sidebar.types';
2
+ import { SidebarMenuItem } from '../../types';
3
3
  interface SubMenuWrapperProps {
4
4
  item: SidebarMenuItem;
5
5
  isOpen: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../lib/components/Sidebar/components/SubMenuWrapper/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAI3D,UAAU,mBAAmB;IAC3B,IAAI,EAAE,eAAe,CAAC;IACtB,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,wBAAgB,cAAc,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,gBAAwB,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,mBAAmB,kDAsC3I"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../lib/components/Sidebar/components/SubMenuWrapper/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAInD,UAAU,mBAAmB;IAC3B,IAAI,EAAE,eAAe,CAAC;IACtB,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,wBAAgB,cAAc,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,gBAAwB,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,mBAAmB,kDAuC3I"}
@@ -1,35 +1,47 @@
1
- import { jsxs as i, jsx as n } from "react/jsx-runtime";
2
- import { IconRenderer as h } from "../IconRenderer/index.js";
3
- import { s as e } from "../../../../styles.module-BIdwTiuE.js";
4
- function p({ item: t, isOpen: r, active: o, collapsed: d, level: l, isSingleTopLevel: a = !1, onToggle: c, children: m }) {
5
- if (d) return null;
6
- const u = !(a && r);
7
- return /* @__PURE__ */ i("div", { className: `${e.submenu} ${r ? e["with-child"] : ""}`, children: [
8
- /* @__PURE__ */ i(
1
+ import { jsxs as t, jsx as n } from "react/jsx-runtime";
2
+ import { IconRenderer as b } from "../IconRenderer/index.js";
3
+ import '../../../../assets/index-DrxnMAdp.css';const _ = "_submenu_kaorb_1", h = "_open_kaorb_39", p = "_arrow_kaorb_50", k = "_rotate_kaorb_63", e = {
4
+ submenu: _,
5
+ "with-child": "_with-child_kaorb_4",
6
+ "submenu-children": "_submenu-children_kaorb_13",
7
+ "submenu-children-inner": "_submenu-children-inner_kaorb_16",
8
+ "submenu-label": "_submenu-label_kaorb_24",
9
+ open: h,
10
+ arrow: p,
11
+ rotate: k,
12
+ "menu-icon": "_menu-icon_kaorb_67",
13
+ "menu-content": "_menu-content_kaorb_84"
14
+ };
15
+ function f({ item: s, isOpen: r, active: c, collapsed: u, level: l, isSingleTopLevel: a = !1, onToggle: i, children: d }) {
16
+ if (u) return null;
17
+ const m = !(a && r);
18
+ return /* @__PURE__ */ t("div", { className: `${e.submenu} ${r ? e["with-child"] : ""}`, children: [
19
+ /* @__PURE__ */ t(
9
20
  "div",
10
21
  {
11
- className: `${e["sidebar-menu-item"]} ${o || r ? e.active : ""}`,
22
+ className: `parent-item ${c || r ? "active" : ""}`,
12
23
  onClick: () => {
13
- a && r || c();
24
+ a && r || i();
14
25
  },
15
- onKeyDown: (s) => {
16
- (s.key === "Enter" || s.key === " ") && (s.preventDefault(), a && r || c());
26
+ onKeyDown: (o) => {
27
+ (o.key === "Enter" || o.key === " ") && (o.preventDefault(), a && r || i());
17
28
  },
18
29
  role: "menuitem",
19
30
  tabIndex: 0,
20
31
  "aria-expanded": r,
32
+ style: { display: "flex", alignItems: "center", padding: "8px 12px", cursor: "pointer", borderRadius: "8px", border: "1px solid transparent" },
21
33
  children: [
22
- l === 0 && /* @__PURE__ */ n("span", { className: e["menu-icon"], children: /* @__PURE__ */ n(h, { icon: t.icon }) }),
23
- /* @__PURE__ */ n("span", { className: e["menu-content"], children: /* @__PURE__ */ i("span", { className: e["submenu-label"], children: [
24
- /* @__PURE__ */ n("span", { children: t.name }),
25
- u && /* @__PURE__ */ n("span", { className: `${e.arrow} ${r ? e.rotate : ""}`, children: /* @__PURE__ */ n("svg", { width: "6", height: "10", viewBox: "0 0 6 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": "true", children: /* @__PURE__ */ n("path", { d: "M1 1L5 5L1 9", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) }) })
34
+ l === 0 && /* @__PURE__ */ n("span", { className: e["menu-icon"], children: /* @__PURE__ */ n(b, { icon: s.icon }) }),
35
+ /* @__PURE__ */ n("span", { className: e["menu-content"], children: /* @__PURE__ */ t("span", { className: e["submenu-label"], children: [
36
+ /* @__PURE__ */ n("span", { children: s.name }),
37
+ m && /* @__PURE__ */ n("span", { className: `${e.arrow} ${r ? e.rotate : ""}`, children: /* @__PURE__ */ n("svg", { width: "6", height: "10", viewBox: "0 0 6 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": "true", children: /* @__PURE__ */ n("path", { d: "M1 1L5 5L1 9", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) }) })
26
38
  ] }) })
27
39
  ]
28
40
  }
29
41
  ),
30
- /* @__PURE__ */ n("div", { className: `${e["submenu-children"]} ${r ? e.open : ""}`, children: /* @__PURE__ */ n("div", { className: e["submenu-children-inner"], children: m }) })
42
+ /* @__PURE__ */ n("div", { className: `${e["submenu-children"]} ${r ? e.open : ""}`, children: /* @__PURE__ */ n("div", { className: e["submenu-children-inner"], children: d }) })
31
43
  ] });
32
44
  }
33
45
  export {
34
- p as SubMenuWrapper
46
+ f as SubMenuWrapper
35
47
  };
@@ -0,0 +1,11 @@
1
+ export { MenuRenderer } from './MenuRenderer';
2
+ export { MenuItemWrapper } from './MenuItemWrapper';
3
+ export { SubMenuWrapper } from './SubMenuWrapper';
4
+ export { CollapsedTooltip } from './CollapsedTooltip';
5
+ export { ExploreSection } from './ExploreSection';
6
+ export { ModuleSwitchButton } from './ModuleSwitchButton';
7
+ export { ContactUsButton } from './ContactUsButton';
8
+ export { GptCardWrapper } from './GptCard';
9
+ export { IconRenderer } from './IconRenderer';
10
+ export { SectionLabel } from './SectionLabel';
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../lib/components/Sidebar/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC"}
@@ -0,0 +1,22 @@
1
+ import { MenuRenderer as e } from "./MenuRenderer/index.js";
2
+ import { MenuItemWrapper as p } from "./MenuItemWrapper/index.js";
3
+ import { SubMenuWrapper as n } from "./SubMenuWrapper/index.js";
4
+ import { C as f } from "../../../index-DKHB_5Ee.js";
5
+ import { ExploreSection as u } from "./ExploreSection/index.js";
6
+ import { ModuleSwitchButton as c } from "./ModuleSwitchButton/index.js";
7
+ import { ContactUsButton as i } from "./ContactUsButton/index.js";
8
+ import { GptCardWrapper as M } from "./GptCard/index.js";
9
+ import { IconRenderer as s } from "./IconRenderer/index.js";
10
+ import { SectionLabel as b } from "./SectionLabel/index.js";
11
+ export {
12
+ f as CollapsedTooltip,
13
+ i as ContactUsButton,
14
+ u as ExploreSection,
15
+ M as GptCardWrapper,
16
+ s as IconRenderer,
17
+ p as MenuItemWrapper,
18
+ e as MenuRenderer,
19
+ c as ModuleSwitchButton,
20
+ b as SectionLabel,
21
+ n as SubMenuWrapper
22
+ };
@@ -0,0 +1,4 @@
1
+ export { useActiveDetection } from './useActiveDetection';
2
+ export { useMenuState } from './useMenuState';
3
+ export { useModuleSwitch } from './useModuleSwitch';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../lib/components/Sidebar/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { useActiveDetection as o } from "./useActiveDetection.js";
2
+ import { useMenuState as u } from "./useMenuState.js";
3
+ import { useModuleSwitch as f } from "./useModuleSwitch.js";
4
+ export {
5
+ o as useActiveDetection,
6
+ u as useMenuState,
7
+ f as useModuleSwitch
8
+ };
@@ -1,4 +1,4 @@
1
- import { SidebarMenuItem } from '../Sidebar.types';
1
+ import { SidebarMenuItem } from '../types';
2
2
  interface UseActiveDetectionOptions {
3
3
  currentPath: string;
4
4
  allItems: SidebarMenuItem[];
@@ -1 +1 @@
1
- {"version":3,"file":"useActiveDetection.d.ts","sourceRoot":"","sources":["../../../../lib/components/Sidebar/hooks/useActiveDetection.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAGxD,UAAU,yBAAyB;IACjC,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,eAAe,EAAE,CAAC;CAC7B;AAED,wBAAgB,kBAAkB,CAAC,EAAE,WAAW,EAAE,QAAQ,EAAE,EAAE,yBAAyB;qBAE5E,eAAe;yBAIf,eAAe;EAIzB"}
1
+ {"version":3,"file":"useActiveDetection.d.ts","sourceRoot":"","sources":["../../../../lib/components/Sidebar/hooks/useActiveDetection.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAGhD,UAAU,yBAAyB;IACjC,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,eAAe,EAAE,CAAC;CAC7B;AAED,wBAAgB,kBAAkB,CAAC,EAAE,WAAW,EAAE,QAAQ,EAAE,EAAE,yBAAyB;qBAE5E,eAAe;yBAIf,eAAe;EAIzB"}
@@ -1,9 +1,11 @@
1
- import { SidebarMenuItem } from '../Sidebar.types';
2
- export declare function useMenuState({ menuItems, currentPath }: {
1
+ import { SidebarMenuItem } from '../types';
2
+ interface UseMenuStateOptions {
3
3
  menuItems: SidebarMenuItem[];
4
4
  currentPath: string;
5
- }): {
5
+ }
6
+ export declare function useMenuState({ menuItems, currentPath }: UseMenuStateOptions): {
6
7
  openByLevel: Record<string, boolean>;
7
8
  toggleMenu: (key: string, level: number, item: SidebarMenuItem) => void;
8
9
  };
10
+ export {};
9
11
  //# sourceMappingURL=useMenuState.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useMenuState.d.ts","sourceRoot":"","sources":["../../../../lib/components/Sidebar/hooks/useMenuState.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAGxD,wBAAgB,YAAY,CAAC,EAAE,SAAS,EAAE,WAAW,EAAE,EAAE;IAAE,SAAS,EAAE,eAAe,EAAE,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE;;sBAoCpG,MAAM,SAAS,MAAM,QAAQ,eAAe;EA0BrD"}
1
+ {"version":3,"file":"useMenuState.d.ts","sourceRoot":"","sources":["../../../../lib/components/Sidebar/hooks/useMenuState.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAGhD,UAAU,mBAAmB;IAC3B,SAAS,EAAE,eAAe,EAAE,CAAC;IAC7B,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,wBAAgB,YAAY,CAAC,EAAE,SAAS,EAAE,WAAW,EAAE,EAAE,mBAAmB;;sBAsClE,MAAM,SAAS,MAAM,QAAQ,eAAe;EA4BrD"}
@@ -1,7 +1,9 @@
1
- export declare function useModuleSwitch({ onModuleSwitch }: {
1
+ interface UseModuleSwitchOptions {
2
2
  onModuleSwitch?: (moduleName: string) => Promise<void>;
3
- }): {
3
+ }
4
+ export declare function useModuleSwitch({ onModuleSwitch }: UseModuleSwitchOptions): {
4
5
  isLoading: boolean;
5
6
  handleModuleSwitch: (moduleName: string) => Promise<void>;
6
7
  };
8
+ export {};
7
9
  //# sourceMappingURL=useModuleSwitch.d.ts.map