@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 +1 @@
1
- {"version":3,"file":"popupAndDialog.types.d.ts","sourceRoot":"","sources":["../../../../lib/components/PopupAndDialogBox/_types/popupAndDialog.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AACrE,OAAO,EAAE,IAAI,EAAE,KAAK,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAEtE,MAAM,MAAM,UAAU,GAAE,CAAC,OAAO,IAAI,CAAC,CAAC,MAAM,OAAO,IAAI,CAAC,CAAC;AAEzD,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,OAAO,CAAC;IACd,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,IAAI,EAAE,UAAU,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,WAAW;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,IAAI,CAAC,EAAE,UAAU,CAAC;CACnB;AAED,MAAM,MAAM,YAAY,GACvB,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,OAAO,aAAa,CAAC,CAAC;AAEpD,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,mBAAmB,CAAC,EAAE,WAAW,CAAC;IAClC,qBAAqB,CAAC,EAAE,WAAW,CAAC;CACrC;AAED,MAAM,WAAW,WAAW;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB"}
1
+ {"version":3,"file":"popupAndDialog.types.d.ts","sourceRoot":"","sources":["../../../../lib/components/PopupAndDialogBox/_types/popupAndDialog.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AACrE,OAAO,EAAE,IAAI,EAAE,KAAK,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAEtE,MAAM,MAAM,UAAU,GAAE,CAAC,OAAO,IAAI,CAAC,CAAC,MAAM,OAAO,IAAI,CAAC,CAAC;AAEzD,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,OAAO,CAAC;IACd,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,IAAI,EAAE,UAAU,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,WAAW;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,MAAM,YAAY,GACvB,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,OAAO,aAAa,CAAC,CAAC;AAEpD,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;AAE1D,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC,mBAAmB,CAAC,EAAE,WAAW,CAAC;IAClC,qBAAqB,CAAC,EAAE,WAAW,CAAC;CACrC;AAED,MAAM,WAAW,WAAW;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB"}
@@ -1 +1 @@
1
- {"version":3,"file":"DialogFooter.d.ts","sourceRoot":"","sources":["../../../../lib/components/PopupAndDialogBox/components/DialogFooter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAIlE,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CA+C9C,CAAC"}
1
+ {"version":3,"file":"DialogFooter.d.ts","sourceRoot":"","sources":["../../../../lib/components/PopupAndDialogBox/components/DialogFooter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAIlE,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAuD9C,CAAC"}
@@ -1,49 +1,56 @@
1
- import { jsx as s, jsxs as n, Fragment as C } from "react/jsx-runtime";
1
+ import { jsx as i, jsxs as f, Fragment as k } from "react/jsx-runtime";
2
2
  import "react";
3
- import { s as a } from "../../../styles.module-yNDMDNO-.js";
4
- import { BUTTON_LAYOUT as i, noop as f, BUTTON_LABEL as k } from "../constant/popupAndDialog.js";
5
- import { CKButton as r } from "../../CKButton/index.js";
6
- const T = ({
7
- children: c,
8
- buttonLayout: m = i.DOUBLE,
9
- primaryButtonDetail: o,
3
+ import { s as b } from "../../../styles.module-yNDMDNO-.js";
4
+ import { BUTTON_LAYOUT as o, noop as m, BUTTON_LABEL as C } from "../constant/popupAndDialog.js";
5
+ import { CKButton as d } from "../../CKButton/index.js";
6
+ const v = ({
7
+ children: r,
8
+ buttonLayout: c = o.DOUBLE,
9
+ buttonAlignment: a = "right",
10
+ primaryButtonDetail: e,
10
11
  secondaryButtonDetail: l
11
12
  }) => {
12
- if (c)
13
- return /* @__PURE__ */ s("div", { className: a["ckds-dialog-footer"], children: c });
14
- const e = o || l;
15
- return /* @__PURE__ */ n("div", { className: `footer-content ${a["ckds-dialog-footer"]}`, children: [
16
- m === i.SINGLE && /* @__PURE__ */ s(
17
- r,
13
+ const n = {
14
+ justifyContent: a === "left" ? "flex-start" : a === "center" ? "center" : "flex-end"
15
+ };
16
+ if (r)
17
+ return /* @__PURE__ */ i("div", { className: b["ckds-dialog-footer"], style: n, children: r });
18
+ const s = e || l;
19
+ return /* @__PURE__ */ f("div", { className: `footer-content ${b["ckds-dialog-footer"]}`, style: n, children: [
20
+ c === o.SINGLE && /* @__PURE__ */ i(
21
+ d,
18
22
  {
19
- variant: o ? "primary" : "secondary",
20
- label: e?.label,
21
- size: e?.size,
22
- onClick: e?.onClick
23
+ variant: e ? "primary" : "secondary",
24
+ label: s?.label,
25
+ size: s?.size,
26
+ onClick: s?.onClick,
27
+ disabled: s?.disabled
23
28
  }
24
29
  ),
25
- m === i.DOUBLE && /* @__PURE__ */ n(C, { children: [
26
- /* @__PURE__ */ s(
27
- r,
30
+ c === o.DOUBLE && /* @__PURE__ */ f(k, { children: [
31
+ /* @__PURE__ */ i(
32
+ d,
28
33
  {
29
34
  variant: "secondary",
30
- label: l?.label ?? k?.SECONDARY,
35
+ label: l?.label ?? C?.SECONDARY,
31
36
  size: l?.size ?? "small",
32
- onClick: l?.onClick ?? f
37
+ onClick: l?.onClick ?? m,
38
+ disabled: l?.disabled
33
39
  }
34
40
  ),
35
- /* @__PURE__ */ s(
36
- r,
41
+ /* @__PURE__ */ i(
42
+ d,
37
43
  {
38
44
  variant: "primary",
39
- label: o?.label ?? k?.PRIMARY,
40
- size: o?.size ?? "small",
41
- onClick: o?.onClick ?? f
45
+ label: e?.label ?? C?.PRIMARY,
46
+ size: e?.size ?? "small",
47
+ onClick: e?.onClick ?? m,
48
+ disabled: e?.disabled
42
49
  }
43
50
  )
44
51
  ] })
45
52
  ] });
46
53
  };
47
54
  export {
48
- T as DialogFooter
55
+ v as DialogFooter
49
56
  };
@@ -1,5 +1,5 @@
1
- import { SidebarProps } from './Sidebar.types';
2
- export declare function Sidebar({ menuItems, currentPath, collapsed, multicloudExploreList, moduleList, currentModuleId, userType, gptCardEnabled, renderGptCard, cloudProviderIcons, onNavigate, onModuleSwitch, onContactUsClick, contactUsUrl, onMenuItemClick, isLoaderVisible, hidden, className, }: SidebarProps): import("react/jsx-runtime").JSX.Element | null;
1
+ import { SidebarProps } from './types';
2
+ export declare function Sidebar({ menuItems, currentPath, collapsed, multicloudExploreList, moduleList, currentModuleId, userType, gptCardEnabled, renderGptCard, cloudProviderIcons, onNavigate, onModuleSwitch, onContactUsClick, contactUsUrl, onMenuItemClick, isLoaderVisible, hidden, className, renderFooter, renderHeader, }: SidebarProps): import("react/jsx-runtime").JSX.Element | null;
3
3
  export declare namespace Sidebar {
4
4
  var displayName: string;
5
5
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Sidebar.d.ts","sourceRoot":"","sources":["../../../lib/components/Sidebar/Sidebar.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAWpD,wBAAgB,OAAO,CAAC,EACtB,SAAS,EAAE,WAAW,EAAE,SAAS,EAAE,qBAAqB,EAAE,UAAU,EAAE,eAAe,EACrF,QAAQ,EAAE,cAAsB,EAAE,aAAa,EAAE,kBAAkB,EAAE,UAAU,EAC/E,cAAc,EAAE,gBAAgB,EAAE,YAAY,EAAE,eAAe,EAC/D,eAAuB,EAAE,MAAc,EAAE,SAAS,GACnD,EAAE,YAAY,kDA0Bd;yBA/Be,OAAO;;;AAkCvB,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"Sidebar.d.ts","sourceRoot":"","sources":["../../../lib/components/Sidebar/Sidebar.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAW5C,wBAAgB,OAAO,CAAC,EACtB,SAAS,EACT,WAAW,EACX,SAAS,EACT,qBAAqB,EACrB,UAAU,EACV,eAAe,EACf,QAAQ,EACR,cAAsB,EACtB,aAAa,EACb,kBAAkB,EAClB,UAAU,EACV,cAAc,EACd,gBAAgB,EAChB,YAAY,EACZ,eAAe,EACf,eAAuB,EACvB,MAAc,EACd,SAAS,EACT,YAAY,EACZ,YAAY,GACb,EAAE,YAAY,kDAkGd;yBAvHe,OAAO;;;AA0HvB,eAAe,OAAO,CAAC"}
@@ -1,46 +1,118 @@
1
- import { jsxs as k, jsx as e } from "react/jsx-runtime";
2
- import { useState as x, useMemo as S } from "react";
3
- import { CHAT_BOT_KEY as N } from "./Sidebar.constants.js";
4
- import { useModuleSwitch as T } from "./hooks/useModuleSwitch.js";
5
- import { MenuRenderer as _ } from "./components/MenuRenderer/index.js";
6
- import { ExploreSection as v } from "./components/ExploreSection/index.js";
7
- import { ModuleSwitchButton as A } from "./components/ModuleSwitchButton/index.js";
8
- import { ContactUsButton as H } from "./components/ContactUsButton/index.js";
9
- import { GptCardWrapper as I } from "./components/GptCard/index.js";
10
- import { Loader as K } from "../Loader/index.js";
11
- import { s as r } from "../../styles.module-BIdwTiuE.js";
12
- function R({
13
- menuItems: f,
14
- currentPath: p,
1
+ import { jsxs as N, jsx as e } from "react/jsx-runtime";
2
+ import { useState as T, useMemo as b } from "react";
3
+ import { CHAT_BOT_KEY as A } from "./Sidebar.constants.js";
4
+ import { useModuleSwitch as H } from "./hooks/useModuleSwitch.js";
5
+ import { MenuRenderer as I } from "./components/MenuRenderer/index.js";
6
+ import { ExploreSection as K } from "./components/ExploreSection/index.js";
7
+ import { ModuleSwitchButton as R } from "./components/ModuleSwitchButton/index.js";
8
+ import { ContactUsButton as U } from "./components/ContactUsButton/index.js";
9
+ import { GptCardWrapper as V } from "./components/GptCard/index.js";
10
+ import { Loader as W } from "../Loader/index.js";
11
+ import '../../assets/Sidebar-D5jVJ-ln.css';const Y = "_collapseMenu_drvuf_27", o = {
12
+ "custom-sidebar": "_custom-sidebar_drvuf_1",
13
+ "sidebar-V2": "_sidebar-V2_drvuf_12",
14
+ "no-chatbot-padding": "_no-chatbot-padding_drvuf_23",
15
+ collapseMenu: Y,
16
+ "sidebar-list-wrapper": "_sidebar-list-wrapper_drvuf_31",
17
+ "chatbot-open": "_chatbot-open_drvuf_36",
18
+ "chatbot-collapse": "_chatbot-collapse_drvuf_43"
19
+ };
20
+ function q({
21
+ menuItems: d,
22
+ currentPath: c,
15
23
  collapsed: t,
16
- multicloudExploreList: o,
17
- moduleList: m,
18
- currentModuleId: b,
19
- userType: d,
20
- gptCardEnabled: u = !1,
21
- renderGptCard: M,
22
- cloudProviderIcons: g,
23
- onNavigate: c,
24
- onModuleSwitch: $,
25
- onContactUsClick: w,
26
- contactUsUrl: C,
27
- onMenuItemClick: B,
28
- isLoaderVisible: a = !1,
29
- hidden: j = !1,
30
- className: l
24
+ multicloudExploreList: r,
25
+ moduleList: a,
26
+ currentModuleId: h,
27
+ userType: f,
28
+ gptCardEnabled: m = !1,
29
+ renderGptCard: l,
30
+ cloudProviderIcons: M,
31
+ onNavigate: u,
32
+ onModuleSwitch: g,
33
+ onContactUsClick: v,
34
+ contactUsUrl: S,
35
+ onMenuItemClick: w,
36
+ isLoaderVisible: s = !1,
37
+ hidden: C = !1,
38
+ className: B,
39
+ renderFooter: j,
40
+ renderHeader: y
31
41
  }) {
32
- const [h, y] = x(!0), { handleModuleSwitch: G } = T({ onModuleSwitch: $ }), i = S(() => f.filter((s) => Object.keys(s).length > 0), [f]), n = S(() => i.find((s) => s.key === N), [i]), O = () => n && !t && u ? h ? r["chatbot-open"] : r["chatbot-collapse"] : "";
33
- return j ? null : /* @__PURE__ */ k("div", { className: `${r["custom-sidebar"]} ${r["sidebar-V2"]} ${t ? r.collapseMenu : ""} ${O()} ${n && !t ? "" : r["no-chatbot-padding"]} ${l || ""}`, "data-testid": "sidebar", children: [
34
- a && /* @__PURE__ */ e(K, { popup: !0 }),
35
- m && m.length > 0 && /* @__PURE__ */ e(A, { modules: m, collapsed: t, currentModuleId: b, userType: d, onModuleSwitch: G }),
36
- /* @__PURE__ */ e("div", { className: r["sidebar-list-wrapper"], children: /* @__PURE__ */ e(_, { menuItems: i, currentPath: p, collapsed: t, multicloudExploreList: o, onNavigate: c, onMenuItemClick: B }) }),
37
- o && o.length > 0 && /* @__PURE__ */ e(v, { exploreList: o, collapsed: t, userType: d, cloudProviderIcons: g }),
38
- !a && u && n && /* @__PURE__ */ e(I, { item: n, collapsed: t, currentPath: p, onNavigate: c, open: h, onToggle: y, renderGptCard: M }),
39
- !a && /* @__PURE__ */ e(H, { collapsed: t, contactUsUrl: C, onContactUsClick: w })
42
+ const [_, G] = T(!0), { handleModuleSwitch: O } = H({ onModuleSwitch: g }), i = b(
43
+ () => d.filter((p) => Object.keys(p).length > 0),
44
+ [d]
45
+ ), n = b(
46
+ () => i.find((p) => p.key === A),
47
+ [i]
48
+ ), k = () => n && !t && m ? _ ? o["chatbot-open"] : o["chatbot-collapse"] : "";
49
+ if (C) return null;
50
+ const x = [
51
+ o["custom-sidebar"],
52
+ o["sidebar-V2"],
53
+ t ? o.collapseMenu : "",
54
+ k(),
55
+ n && !t ? "" : o["no-chatbot-padding"],
56
+ B || ""
57
+ ].filter(Boolean).join(" ");
58
+ return /* @__PURE__ */ N("div", { className: x, "data-testid": "sidebar", children: [
59
+ s && /* @__PURE__ */ e(W, { popup: !0 }),
60
+ y?.(),
61
+ a && a.length > 0 && /* @__PURE__ */ e(
62
+ R,
63
+ {
64
+ modules: a,
65
+ collapsed: t,
66
+ currentModuleId: h,
67
+ userType: f,
68
+ onModuleSwitch: O
69
+ }
70
+ ),
71
+ /* @__PURE__ */ e("div", { className: o["sidebar-list-wrapper"], children: /* @__PURE__ */ e(
72
+ I,
73
+ {
74
+ menuItems: i,
75
+ currentPath: c,
76
+ collapsed: t,
77
+ multicloudExploreList: r,
78
+ onNavigate: u,
79
+ onMenuItemClick: w
80
+ }
81
+ ) }),
82
+ r && r.length > 0 && /* @__PURE__ */ e(
83
+ K,
84
+ {
85
+ exploreList: r,
86
+ collapsed: t,
87
+ userType: f,
88
+ cloudProviderIcons: M
89
+ }
90
+ ),
91
+ !s && m && n && /* @__PURE__ */ e(
92
+ V,
93
+ {
94
+ item: n,
95
+ collapsed: t,
96
+ currentPath: c,
97
+ onNavigate: u,
98
+ open: _,
99
+ onToggle: G,
100
+ renderGptCard: l
101
+ }
102
+ ),
103
+ j?.(),
104
+ !s && /* @__PURE__ */ e(
105
+ U,
106
+ {
107
+ collapsed: t,
108
+ contactUsUrl: S,
109
+ onContactUsClick: v
110
+ }
111
+ )
40
112
  ] });
41
113
  }
42
- R.displayName = "Sidebar";
114
+ q.displayName = "Sidebar";
43
115
  export {
44
- R as Sidebar,
45
- R as default
116
+ q as Sidebar,
117
+ q as default
46
118
  };
@@ -1,52 +1,6 @@
1
- import { ReactNode } from 'react';
2
- export interface SidebarMenuItem {
3
- name: string;
4
- url?: string;
5
- icon?: string | ReactNode;
6
- key?: string;
7
- exactMatch?: boolean;
8
- journey?: string[];
9
- tooltip?: string[];
10
- dashboardServices?: SidebarMenuItem[];
11
- }
12
- export interface ExploreItem {
13
- cloudProvider: string;
14
- displayName: string;
15
- link: string;
16
- icon?: string | ReactNode;
17
- }
18
- export interface ModuleItem {
19
- id: string;
20
- name: string;
21
- displayName: string;
22
- feEnabled: boolean;
23
- type: string;
24
- }
25
- export interface GptCardProps {
26
- item: SidebarMenuItem;
27
- onNavigate: (path: string) => void;
28
- disabled: boolean;
29
- open: boolean;
30
- onToggle: (open: boolean) => void;
31
- }
32
- export interface SidebarProps {
33
- menuItems: SidebarMenuItem[];
34
- currentPath: string;
35
- collapsed: boolean;
36
- multicloudExploreList?: ExploreItem[];
37
- moduleList?: ModuleItem[];
38
- currentModuleId?: string;
39
- userType?: string;
40
- gptCardEnabled?: boolean;
41
- renderGptCard?: (props: GptCardProps) => ReactNode;
42
- cloudProviderIcons?: Record<string, ReactNode>;
43
- onNavigate: (path: string) => void;
44
- onModuleSwitch?: (moduleName: string) => Promise<void>;
45
- onContactUsClick?: () => void;
46
- contactUsUrl?: string;
47
- onMenuItemClick?: (item: SidebarMenuItem) => void;
48
- isLoaderVisible?: boolean;
49
- hidden?: boolean;
50
- className?: string;
51
- }
1
+ /**
2
+ * @deprecated Import types from "./types" instead.
3
+ * This file is kept for backwards compatibility.
4
+ */
5
+ export type { SidebarProps, SidebarMenuItem, ExploreItem, ModuleItem, GptCardProps } from './types';
52
6
  //# sourceMappingURL=Sidebar.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Sidebar.types.d.ts","sourceRoot":"","sources":["../../../lib/components/Sidebar/Sidebar.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,iBAAiB,CAAC,EAAE,eAAe,EAAE,CAAC;CACvC;AAED,MAAM,WAAW,WAAW;IAC1B,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC3B;AAED,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,eAAe,CAAC;IACtB,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,QAAQ,EAAE,OAAO,CAAC;IAClB,IAAI,EAAE,OAAO,CAAC;IACd,QAAQ,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;CACnC;AAED,MAAM,WAAW,YAAY;IAC3B,SAAS,EAAE,eAAe,EAAE,CAAC;IAC7B,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;IACnB,qBAAqB,CAAC,EAAE,WAAW,EAAE,CAAC;IACtC,UAAU,CAAC,EAAE,UAAU,EAAE,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK,SAAS,CAAC;IACnD,kBAAkB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;IAC/C,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,cAAc,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACvD,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC9B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,eAAe,CAAC,EAAE,CAAC,IAAI,EAAE,eAAe,KAAK,IAAI,CAAC;IAClD,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
1
+ {"version":3,"file":"Sidebar.types.d.ts","sourceRoot":"","sources":["../../../lib/components/Sidebar/Sidebar.types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,YAAY,EAAE,YAAY,EAAE,eAAe,EAAE,WAAW,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC"}
@@ -1,4 +1,4 @@
1
- import { SidebarMenuItem } from './Sidebar.types';
1
+ import { SidebarMenuItem } from './types';
2
2
  export declare function normalizeUrl(url: string | undefined): string;
3
3
  export declare function isItemActive(item: SidebarMenuItem, currentPath: string, allItems: SidebarMenuItem[]): boolean;
4
4
  export declare function isTreeActive(item: SidebarMenuItem, currentPath: string, allItems: SidebarMenuItem[]): boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"Sidebar.utils.d.ts","sourceRoot":"","sources":["../../../lib/components/Sidebar/Sidebar.utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAEvD,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAQ5D;AAED,wBAAgB,YAAY,CAC1B,IAAI,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,EAAE,QAAQ,EAAE,eAAe,EAAE,GACtE,OAAO,CAqBT;AAED,wBAAgB,YAAY,CAC1B,IAAI,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,EAAE,QAAQ,EAAE,eAAe,EAAE,GACtE,OAAO,CAGT;AAED,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAGzD;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAEtE"}
1
+ {"version":3,"file":"Sidebar.utils.d.ts","sourceRoot":"","sources":["../../../lib/components/Sidebar/Sidebar.utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE/C,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAQ5D;AAED,wBAAgB,YAAY,CAC1B,IAAI,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,EAAE,QAAQ,EAAE,eAAe,EAAE,GACtE,OAAO,CAqBT;AAED,wBAAgB,YAAY,CAC1B,IAAI,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,EAAE,QAAQ,EAAE,eAAe,EAAE,GACtE,OAAO,CAGT;AAED,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAGzD;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAEtE"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../lib/components/Sidebar/components/CollapsedTooltip/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAoB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAGzD,UAAU,qBAAqB;IAC7B,MAAM,EAAE,OAAO,CAAC;IAChB,IAAI,EAAE,SAAS,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,QAAQ,EAAE,SAAS,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,wBAAgB,gBAAgB,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,KAAY,EAAE,QAAQ,EAAE,cAAmB,EAAE,OAAO,EAAE,EAAE,qBAAqB,2CA4B7H"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../lib/components/Sidebar/components/CollapsedTooltip/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAoB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAIzD,UAAU,qBAAqB;IAC7B,MAAM,EAAE,OAAO,CAAC;IAChB,IAAI,EAAE,SAAS,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,QAAQ,EAAE,SAAS,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,wBAAgB,gBAAgB,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,KAAY,EAAE,QAAQ,EAAE,cAAmB,EAAE,OAAO,EAAE,EAAE,qBAAqB,2CA4B7H"}
@@ -1,35 +1,7 @@
1
- import { jsxs as t, jsx as s } from "react/jsx-runtime";
2
- import { useState as h, useRef as p } from "react";
3
- import { s as e } from "../../../../styles.module-BIdwTiuE.js";
4
- function $({ active: m, icon: d, label: r = null, children: f, popupClassName: v = "", onClick: a }) {
5
- const [l, i] = h(!1), N = p(null), o = p(null), c = () => {
6
- o.current && (clearTimeout(o.current), o.current = null), i(!0);
7
- }, u = () => {
8
- o.current = setTimeout(() => i(!1), 80);
9
- };
10
- return /* @__PURE__ */ t("div", { className: e["sidebar-popup"], ref: N, onMouseEnter: c, onMouseLeave: u, children: [
11
- /* @__PURE__ */ t(
12
- "div",
13
- {
14
- className: `${e["sidebar-menu-item"]} ${m || l ? e.active : ""}`,
15
- onClick: a,
16
- role: "menuitem",
17
- tabIndex: 0,
18
- onKeyDown: (n) => {
19
- (n.key === "Enter" || n.key === " ") && (n.preventDefault(), a?.());
20
- },
21
- children: [
22
- d,
23
- r && /* @__PURE__ */ s("span", { className: e["menu-content"], children: r })
24
- ]
25
- }
26
- ),
27
- l && /* @__PURE__ */ t("div", { className: `${e["popover-container"]} ${v}`, onMouseEnter: c, onMouseLeave: u, role: "tooltip", children: [
28
- /* @__PURE__ */ s("div", { className: e["popover-arrow"] }),
29
- /* @__PURE__ */ s("div", { className: e["popover-content"], children: f })
30
- ] })
31
- ] });
32
- }
1
+ import "react/jsx-runtime";
2
+ import "react";
3
+ import "../../../../styles.module-V3iL6ubH.js";
4
+ import { C as m } from "../../../../index-DKHB_5Ee.js";
33
5
  export {
34
- $ as CollapsedTooltip
6
+ m as CollapsedTooltip
35
7
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../lib/components/Sidebar/components/ContactUsButton/index.tsx"],"names":[],"mappings":"AAGA,UAAU,oBAAoB;IAAG,SAAS,EAAE,OAAO,CAAC;IAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IAAC,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;CAAE;AAQ5G,wBAAgB,eAAe,CAAC,EAAE,SAAS,EAAE,YAAY,EAAE,gBAAgB,EAAE,EAAE,oBAAoB,2CAYlG"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../lib/components/Sidebar/components/ContactUsButton/index.tsx"],"names":[],"mappings":"AAGA,UAAU,oBAAoB;IAC5B,SAAS,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;CAC/B;AAQD,wBAAgB,eAAe,CAAC,EAAE,SAAS,EAAE,YAAY,EAAE,gBAAgB,EAAE,EAAE,oBAAoB,2CAyBlG"}
@@ -1,14 +1,18 @@
1
1
  import { jsx as n, jsxs as s, Fragment as a } from "react/jsx-runtime";
2
2
  import { IconRenderer as i } from "../IconRenderer/index.js";
3
- import { s as t } from "../../../../styles.module-BIdwTiuE.js";
4
- const d = /* @__PURE__ */ n("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": "true", children: /* @__PURE__ */ n("path", { d: "M13.34 10.903c-.87-.87-1.94-.87-2.8 0l-.7.7c-.06.06-.13.09-.21.09-.08 0-.15-.03-.21-.09-.89-.63-1.7-1.37-2.42-2.19-.72-.82-1.32-1.71-1.78-2.67-.03-.06-.04-.12-.03-.18.01-.06.04-.11.09-.15l.7-.7c.87-.87.87-1.94 0-2.8L4.63 1.49c-.87-.87-1.94-.87-2.8 0l-.7.7C.37 2.95-.1 3.94.02 4.97c.26 2.23 1.21 4.33 2.72 6.03 1.51 1.7 3.47 2.89 5.64 3.42.41.1.83.15 1.25.15 1.05 0 2.06-.4 2.82-1.13l.7-.7c.87-.87.87-1.94 0-2.8l-1.81-1.01z", fill: "currentColor" }) });
5
- function f({ collapsed: c, contactUsUrl: e, onContactUsClick: r }) {
6
- const o = /* @__PURE__ */ n("span", { className: t["menu-icon"], children: /* @__PURE__ */ n(i, { icon: d }) }), l = /* @__PURE__ */ s(a, { children: [
7
- o,
3
+ import '../../../../assets/index-B5N2Zvs1.css';const t = {
4
+ "contact-us-btn": "_contact-us-btn_1jr87_1",
5
+ "contact-us-link": "_contact-us-link_1jr87_10",
6
+ "collapsed-link": "_collapsed-link_1jr87_37",
7
+ "menu-icon": "_menu-icon_1jr87_44"
8
+ }, u = /* @__PURE__ */ n("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": "true", children: /* @__PURE__ */ n("path", { d: "M13.34 10.903c-.87-.87-1.94-.87-2.8 0l-.7.7c-.06.06-.13.09-.21.09-.08 0-.15-.03-.21-.09-.89-.63-1.7-1.37-2.42-2.19-.72-.82-1.32-1.71-1.78-2.67-.03-.06-.04-.12-.03-.18.01-.06.04-.11.09-.15l.7-.7c.87-.87.87-1.94 0-2.8L4.63 1.49c-.87-.87-1.94-.87-2.8 0l-.7.7C.37 2.95-.1 3.94.02 4.97c.26 2.23 1.21 4.33 2.72 6.03 1.51 1.7 3.47 2.89 5.64 3.42.41.1.83.15 1.25.15 1.05 0 2.06-.4 2.82-1.13l.7-.7c.87-.87.87-1.94 0-2.8l-1.81-1.01z", fill: "currentColor" }) });
9
+ function m({ collapsed: c, contactUsUrl: e, onContactUsClick: l }) {
10
+ const r = /* @__PURE__ */ n("span", { className: t["menu-icon"], children: /* @__PURE__ */ n(i, { icon: u }) }), o = /* @__PURE__ */ s(a, { children: [
11
+ r,
8
12
  !c && /* @__PURE__ */ n("span", { children: "Contact Us" })
9
13
  ] });
10
- return e && !r ? /* @__PURE__ */ n("div", { className: t["contact-us-btn"], children: /* @__PURE__ */ n("a", { href: e, rel: "noreferrer", className: `${t["contact-us-link"]} ${c ? t["collapsed-link"] : ""}`, "aria-label": "Contact Us", children: l }) }) : /* @__PURE__ */ n("div", { className: t["contact-us-btn"], children: /* @__PURE__ */ n("button", { type: "button", onClick: r, className: `${t["contact-us-link"]} ${c ? t["collapsed-link"] : ""}`, "aria-label": "Contact Us", children: l }) });
14
+ return e && !l ? /* @__PURE__ */ n("div", { className: t["contact-us-btn"], children: /* @__PURE__ */ n("a", { href: e, rel: "noreferrer", className: `${t["contact-us-link"]} ${c ? t["collapsed-link"] : ""}`, "aria-label": "Contact Us", children: o }) }) : /* @__PURE__ */ n("div", { className: t["contact-us-btn"], children: /* @__PURE__ */ n("button", { type: "button", onClick: l, className: `${t["contact-us-link"]} ${c ? t["collapsed-link"] : ""}`, "aria-label": "Contact Us", children: o }) });
11
15
  }
12
16
  export {
13
- f as ContactUsButton
17
+ m as ContactUsButton
14
18
  };
@@ -1,5 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
- import { ExploreItem } from '../../Sidebar.types';
2
+ import { ExploreItem } from '../../types';
3
3
  interface ExploreSectionProps {
4
4
  exploreList: ExploreItem[];
5
5
  collapsed: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../lib/components/Sidebar/components/ExploreSection/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAKvD,UAAU,mBAAmB;IAAG,WAAW,EAAE,WAAW,EAAE,CAAC;IAAC,SAAS,EAAE,OAAO,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAAC,kBAAkB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;CAAE;AAEpJ,wBAAgB,cAAc,CAAC,EAAE,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAE,kBAAkB,EAAE,EAAE,mBAAmB,kDAuB3G"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../lib/components/Sidebar/components/ExploreSection/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAK/C,UAAU,mBAAmB;IAC3B,WAAW,EAAE,WAAW,EAAE,CAAC;IAC3B,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,kBAAkB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;CAChD;AAED,wBAAgB,cAAc,CAAC,EAAE,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAE,kBAAkB,EAAE,EAAE,mBAAmB,kDA6B3G"}
@@ -1,22 +1,28 @@
1
- import { jsxs as s, jsx as r } from "react/jsx-runtime";
2
- import { SectionLabel as h } from "../SectionLabel/index.js";
3
- import { IconRenderer as c } from "../IconRenderer/index.js";
4
- import { s as o } from "../../../../styles.module-BIdwTiuE.js";
5
- function u({ exploreList: l, collapsed: n, userType: t, cloudProviderIcons: d }) {
1
+ import { jsxs as s, jsx as e } from "react/jsx-runtime";
2
+ import { SectionLabel as d } from "../SectionLabel/index.js";
3
+ import { IconRenderer as p } from "../IconRenderer/index.js";
4
+ import '../../../../assets/index-BD0iilmm.css';const n = {
5
+ "explore-section": "_explore-section_1wpmc_1",
6
+ "explore-collapsed": "_explore-collapsed_1wpmc_5",
7
+ "explore-links": "_explore-links_1wpmc_8",
8
+ "cursor-not-allowed": "_cursor-not-allowed_1wpmc_41",
9
+ "pointer-events-none": "_pointer-events-none_1wpmc_45"
10
+ };
11
+ function v({ exploreList: l, collapsed: r, userType: t, cloudProviderIcons: a }) {
6
12
  if (!l || l.length === 0) return null;
7
- const i = t === "CLOUDONOMICS";
8
- return /* @__PURE__ */ s("div", { className: `${o["explore-section"]} ${n ? o["explore-collapsed"] : ""}`, children: [
9
- /* @__PURE__ */ r(h, { label: "Explore", collapsed: n }),
10
- l.map((e) => {
11
- const a = d?.[e.cloudProvider] || e.icon;
12
- return /* @__PURE__ */ s("div", { className: o["explore-links"], children: [
13
- !n && /* @__PURE__ */ r(c, { icon: a }),
14
- !n && /* @__PURE__ */ r("span", { children: e.displayName }),
15
- /* @__PURE__ */ r("div", { className: i ? o["cursor-not-allowed"] : "", children: /* @__PURE__ */ r("a", { href: `//${e.link}`, target: "_blank", rel: "noopener noreferrer", className: i ? o["pointer-events-none"] : "", "aria-label": `Open ${e.displayName}`, children: n ? /* @__PURE__ */ r(c, { icon: a }) : /* @__PURE__ */ r("svg", { width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", children: /* @__PURE__ */ r("path", { d: "M11.667 11.667H2.333V2.333H7V1H2.333C1.593 1 1 1.6 1 2.333v9.334C1 12.4 1.593 13 2.333 13h9.334C12.4 13 13 12.4 13 11.667V7h-1.333v4.667zM8.333 1v1.333h2.394L4.08 8.98l.94.94 6.647-6.647v2.394H13V1H8.333z", fill: "currentColor" }) }) }) })
16
- ] }, e.cloudProvider);
13
+ const c = t === "CLOUDONOMICS";
14
+ return /* @__PURE__ */ s("div", { className: `${n["explore-section"]} ${r ? n["explore-collapsed"] : ""}`, children: [
15
+ /* @__PURE__ */ e(d, { label: "Explore", collapsed: r }),
16
+ l.map((o) => {
17
+ const i = a?.[o.cloudProvider] || o.icon;
18
+ return /* @__PURE__ */ s("div", { className: n["explore-links"], children: [
19
+ !r && /* @__PURE__ */ e(p, { icon: i }),
20
+ !r && /* @__PURE__ */ e("span", { children: o.displayName }),
21
+ /* @__PURE__ */ e("div", { className: c ? n["cursor-not-allowed"] : "", children: /* @__PURE__ */ e("a", { href: `//${o.link}`, target: "_blank", rel: "noopener noreferrer", className: c ? n["pointer-events-none"] : "", "aria-label": `Open ${o.displayName}`, children: r ? /* @__PURE__ */ e(p, { icon: i }) : /* @__PURE__ */ e("svg", { width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", children: /* @__PURE__ */ e("path", { d: "M11.667 11.667H2.333V2.333H7V1H2.333C1.593 1 1 1.6 1 2.333v9.334C1 12.4 1.593 13 2.333 13h9.334C12.4 13 13 12.4 13 11.667V7h-1.333v4.667zM8.333 1v1.333h2.394L4.08 8.98l.94.94 6.647-6.647v2.394H13V1H8.333z", fill: "currentColor" }) }) }) })
22
+ ] }, o.cloudProvider);
17
23
  })
18
24
  ] });
19
25
  }
20
26
  export {
21
- u as ExploreSection
27
+ v as ExploreSection
22
28
  };
@@ -1,4 +1,4 @@
1
- import { SidebarMenuItem, GptCardProps } from '../../Sidebar.types';
1
+ import { SidebarMenuItem, GptCardProps } from '../../types';
2
2
  import { ReactNode } from 'react';
3
3
  interface GptCardWrapperProps {
4
4
  item: SidebarMenuItem;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../lib/components/Sidebar/components/GptCard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACzE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,UAAU,mBAAmB;IAAG,IAAI,EAAE,eAAe,CAAC;IAAC,SAAS,EAAE,OAAO,CAAC;IAAC,WAAW,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAAC,IAAI,EAAE,OAAO,CAAC;IAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IAAC,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK,SAAS,CAAC;CAAE;AAE3O,wBAAgB,cAAc,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,WAAW,EAAE,UAAU,EAAE,IAAI,EAAE,QAAQ,EAAE,aAAa,EAAE,EAAE,mBAAmB,kDA2B9H"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../lib/components/Sidebar/components/GptCard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AACjE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,UAAU,mBAAmB;IAC3B,IAAI,EAAE,eAAe,CAAC;IACtB,SAAS,EAAE,OAAO,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,IAAI,EAAE,OAAO,CAAC;IACd,QAAQ,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IAClC,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK,SAAS,CAAC;CACpD;AAED,wBAAgB,cAAc,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,WAAW,EAAE,UAAU,EAAE,IAAI,EAAE,QAAQ,EAAE,aAAa,EAAE,EAAE,mBAAmB,kDAuC9H"}
@@ -1,22 +1,34 @@
1
- import { jsx as t, jsxs as r } from "react/jsx-runtime";
2
- import { s as e } from "../../../../styles.module-BIdwTiuE.js";
3
- function b({ item: i, collapsed: c, currentPath: o, onNavigate: n, open: s, onToggle: l, renderGptCard: d }) {
4
- if (c) return null;
5
- const a = o.endsWith("ck-gpt"), h = () => {
6
- i.url ? n(i.url) : i.journey?.length && n(`/dashboard/${i.journey[0]}`);
1
+ import { jsx as e, jsxs as d } from "react/jsx-runtime";
2
+ import '../../../../assets/index-B8lwBNV9.css';const t = {
3
+ "chat-bot-btn": "_chat-bot-btn_mfd85_1",
4
+ "gpt-disabled": "_gpt-disabled_mfd85_11",
5
+ "gpt-container": "_gpt-container_mfd85_16",
6
+ "gpt-header": "_gpt-header_mfd85_28",
7
+ "gpt-new-tag": "_gpt-new-tag_mfd85_34",
8
+ "gpt-toggle-btn": "_gpt-toggle-btn_mfd85_46",
9
+ "gpt-body": "_gpt-body_mfd85_60",
10
+ "gpt-title": "_gpt-title_mfd85_64",
11
+ "gpt-icons-row": "_gpt-icons-row_mfd85_75",
12
+ "gpt-subtitle": "_gpt-subtitle_mfd85_82",
13
+ "gpt-start-btn": "_gpt-start-btn_mfd85_88"
14
+ };
15
+ function h({ item: a, collapsed: o, currentPath: c, onNavigate: n, open: s, onToggle: l, renderGptCard: r }) {
16
+ if (o) return null;
17
+ const i = c.endsWith("ck-gpt"), g = () => {
18
+ a.url ? n(a.url) : a.journey?.length && n(`/dashboard/${a.journey[0]}`);
7
19
  };
8
- return d ? /* @__PURE__ */ t("div", { className: `${e["chat-bot-btn"]} ${a ? e["gpt-disabled"] : ""}`, children: /* @__PURE__ */ t("div", { className: e["gpt-container"], children: d({ item: i, onNavigate: n, disabled: a, open: s, onToggle: l }) }) }) : /* @__PURE__ */ t("div", { className: `${e["chat-bot-btn"]} ${a ? e["gpt-disabled"] : ""}`, children: /* @__PURE__ */ r("div", { className: e["gpt-container"], children: [
9
- /* @__PURE__ */ r("div", { className: e["gpt-header"], children: [
10
- /* @__PURE__ */ t("span", { className: e["gpt-new-tag"], children: "★ New" }),
11
- /* @__PURE__ */ t("button", { type: "button", className: e["gpt-toggle-btn"], onClick: () => l(!s), "aria-expanded": s, "aria-label": "Toggle GPT card", children: s ? /* @__PURE__ */ t("svg", { width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", children: /* @__PURE__ */ t("path", { d: "M3 5L7 9L11 5", stroke: "#6B7280", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) }) : /* @__PURE__ */ t("svg", { width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", children: /* @__PURE__ */ t("path", { d: "M3 9L7 5L11 9", stroke: "#6B7280", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) }) })
20
+ return r ? /* @__PURE__ */ e("div", { className: `${t["chat-bot-btn"]} ${i ? t["gpt-disabled"] : ""}`, children: /* @__PURE__ */ e("div", { className: t["gpt-container"], children: r({ item: a, onNavigate: n, disabled: i, open: s, onToggle: l }) }) }) : /* @__PURE__ */ e("div", { className: `${t["chat-bot-btn"]} ${i ? t["gpt-disabled"] : ""}`, children: /* @__PURE__ */ d("div", { className: t["gpt-container"], children: [
21
+ /* @__PURE__ */ d("div", { className: t["gpt-header"], children: [
22
+ /* @__PURE__ */ e("span", { className: t["gpt-new-tag"], children: "★ New" }),
23
+ /* @__PURE__ */ e("button", { type: "button", className: t["gpt-toggle-btn"], onClick: () => l(!s), "aria-expanded": s, "aria-label": "Toggle GPT card", children: s ? /* @__PURE__ */ e("svg", { width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", children: /* @__PURE__ */ e("path", { d: "M3 5L7 9L11 5", stroke: "#6B7280", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) }) : /* @__PURE__ */ e("svg", { width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", children: /* @__PURE__ */ e("path", { d: "M3 9L7 5L11 9", stroke: "#6B7280", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) }) })
12
24
  ] }),
13
- /* @__PURE__ */ r("div", { className: e["gpt-body"], style: { maxHeight: s ? "140px" : "0", opacity: s ? 1 : 0, overflow: "hidden", transition: "max-height 300ms ease, opacity 300ms ease" }, children: [
14
- /* @__PURE__ */ t("p", { className: e["gpt-title"], children: "Lens GPT" }),
15
- /* @__PURE__ */ t("div", { className: e["gpt-icons-row"], children: /* @__PURE__ */ t("span", { className: e["gpt-subtitle"], children: "AI Powered Insights" }) })
25
+ /* @__PURE__ */ d("div", { className: t["gpt-body"], style: { maxHeight: s ? "140px" : "0", opacity: s ? 1 : 0, overflow: "hidden", transition: "max-height 300ms ease, opacity 300ms ease" }, children: [
26
+ /* @__PURE__ */ e("p", { className: t["gpt-title"], children: "Lens GPT" }),
27
+ /* @__PURE__ */ e("div", { className: t["gpt-icons-row"], children: /* @__PURE__ */ e("span", { className: t["gpt-subtitle"], children: "AI Powered Insights" }) })
16
28
  ] }),
17
- /* @__PURE__ */ t("button", { type: "button", className: e["gpt-start-btn"], onClick: h, disabled: a, children: "Start Chat" })
29
+ /* @__PURE__ */ e("button", { type: "button", className: t["gpt-start-btn"], onClick: g, disabled: i, children: "Start Chat" })
18
30
  ] }) });
19
31
  }
20
32
  export {
21
- b as GptCardWrapper
33
+ h as GptCardWrapper
22
34
  };
@@ -1,16 +1,18 @@
1
- import { jsx as r, jsxs as n } from "react/jsx-runtime";
2
- import { useState as h } from "react";
3
- import { s as t } from "../../../../styles.module-BIdwTiuE.js";
4
- const o = /* @__PURE__ */ n("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": "true", children: [
1
+ import { jsx as r, jsxs as s } from "react/jsx-runtime";
2
+ import { useState as c } from "react";
3
+ import '../../../../assets/index-BioJVhpT.css';const t = {
4
+ "icon-img": "_icon-img_1rj7w_1",
5
+ "icon-node": "_icon-node_1rj7w_7"
6
+ }, o = /* @__PURE__ */ s("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": "true", children: [
5
7
  /* @__PURE__ */ r("rect", { x: "1", y: "1", width: "6", height: "6", rx: "1.5", stroke: "currentColor", strokeWidth: "1.4" }),
6
8
  /* @__PURE__ */ r("rect", { x: "9", y: "1", width: "6", height: "6", rx: "1.5", stroke: "currentColor", strokeWidth: "1.4" }),
7
9
  /* @__PURE__ */ r("rect", { x: "1", y: "9", width: "6", height: "6", rx: "1.5", stroke: "currentColor", strokeWidth: "1.4" }),
8
10
  /* @__PURE__ */ r("rect", { x: "9", y: "9", width: "6", height: "6", rx: "1.5", stroke: "currentColor", strokeWidth: "1.4" })
9
11
  ] });
10
- function l({ icon: e }) {
11
- const [s, i] = h(!1);
12
- return e ? typeof e == "string" ? s ? /* @__PURE__ */ r("span", { className: t["icon-node"], children: o }) : /* @__PURE__ */ r("img", { src: e, alt: "", className: t["icon-img"], "aria-hidden": "true", onError: () => i(!0) }) : /* @__PURE__ */ r("span", { className: t["icon-node"], children: e }) : /* @__PURE__ */ r("span", { className: t["icon-node"], children: o });
12
+ function a({ icon: e }) {
13
+ const [i, n] = c(!1);
14
+ return e ? typeof e == "string" ? i ? /* @__PURE__ */ r("span", { className: t["icon-node"], children: o }) : /* @__PURE__ */ r("img", { src: e, alt: "", className: t["icon-img"], "aria-hidden": "true", onError: () => n(!0) }) : /* @__PURE__ */ r("span", { className: t["icon-node"], children: e }) : /* @__PURE__ */ r("span", { className: t["icon-node"], children: o });
13
15
  }
14
16
  export {
15
- l as IconRenderer
17
+ a as IconRenderer
16
18
  };