@ck-ui/component-library 2.0.1 → 2.0.3

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 (100) 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-eZS6kms7.css +1 -0
  10. package/dist/assets/index-tIl-UucG.css +1 -0
  11. package/dist/assets/styles-DGlqPkdv.css +1 -0
  12. package/dist/components/DateRangePicker/DateRangePicker.d.ts.map +1 -1
  13. package/dist/components/DateRangePicker/DateRangePicker.js +271 -196
  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 +118 -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 +19 -24
  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 +18 -0
  45. package/dist/components/Sidebar/components/MenuRenderer/ExpandedMenu.d.ts.map +1 -0
  46. package/dist/components/Sidebar/components/MenuRenderer/ExpandedMenu.js +59 -0
  47. package/dist/components/Sidebar/components/MenuRenderer/index.d.ts +5 -2
  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 +3 -2
  57. package/dist/components/Sidebar/components/SubMenuWrapper/index.d.ts.map +1 -1
  58. package/dist/components/Sidebar/components/SubMenuWrapper/index.js +34 -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 +9 -3
  68. package/dist/components/Sidebar/hooks/useMenuState.d.ts.map +1 -1
  69. package/dist/components/Sidebar/hooks/useMenuState.js +56 -38
  70. package/dist/components/Sidebar/hooks/useModuleSwitch.d.ts +4 -2
  71. package/dist/components/Sidebar/hooks/useModuleSwitch.d.ts.map +1 -1
  72. package/dist/components/Sidebar/index.d.ts +16 -1
  73. package/dist/components/Sidebar/index.d.ts.map +1 -1
  74. package/dist/components/Sidebar/index.js +40 -3
  75. package/dist/components/Sidebar/types/explore.types.d.ts +8 -0
  76. package/dist/components/Sidebar/types/explore.types.d.ts.map +1 -0
  77. package/dist/components/Sidebar/types/explore.types.js +1 -0
  78. package/dist/components/Sidebar/types/gpt.types.d.ts +9 -0
  79. package/dist/components/Sidebar/types/gpt.types.d.ts.map +1 -0
  80. package/dist/components/Sidebar/types/gpt.types.js +1 -0
  81. package/dist/components/Sidebar/types/index.d.ts +6 -0
  82. package/dist/components/Sidebar/types/index.d.ts.map +1 -0
  83. package/dist/components/Sidebar/types/index.js +1 -0
  84. package/dist/components/Sidebar/types/menu.types.d.ts +12 -0
  85. package/dist/components/Sidebar/types/menu.types.d.ts.map +1 -0
  86. package/dist/components/Sidebar/types/menu.types.js +1 -0
  87. package/dist/components/Sidebar/types/module.types.d.ts +8 -0
  88. package/dist/components/Sidebar/types/module.types.d.ts.map +1 -0
  89. package/dist/components/Sidebar/types/module.types.js +1 -0
  90. package/dist/components/Sidebar/types/sidebar.types.d.ts +51 -0
  91. package/dist/components/Sidebar/types/sidebar.types.d.ts.map +1 -0
  92. package/dist/components/Sidebar/types/sidebar.types.js +1 -0
  93. package/dist/index-CSxlVCTW.js +52 -0
  94. package/dist/main.d.ts +6 -0
  95. package/dist/main.d.ts.map +1 -1
  96. package/dist/main.js +60 -49
  97. package/dist/styles.module-xqgv3wwP.js +12 -0
  98. package/package.json +1 -1
  99. package/dist/assets/styles-Dz05pjuA.css +0 -1
  100. package/dist/styles.module-BIdwTiuE.js +0 -66
@@ -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-CSxlVCTW.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,15 @@
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
+ /** Max parent-level (level 0) items that can be expanded simultaneously. Undefined = unlimited. */
6
+ maxOpenParents?: number;
7
+ /** Max child-level (level > 0) items that can be expanded simultaneously within the same parent. Undefined = unlimited. */
8
+ maxOpenChildren?: number;
9
+ }
10
+ export declare function useMenuState({ menuItems, currentPath, maxOpenParents, maxOpenChildren }: UseMenuStateOptions): {
6
11
  openByLevel: Record<string, boolean>;
7
12
  toggleMenu: (key: string, level: number, item: SidebarMenuItem) => void;
8
13
  };
14
+ export {};
9
15
  //# 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;IACpB,mGAAmG;IACnG,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,2HAA2H;IAC3H,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,wBAAgB,YAAY,CAAC,EAAE,SAAS,EAAE,WAAW,EAAE,cAAc,EAAE,eAAe,EAAE,EAAE,mBAAmB;;sBAsCnG,MAAM,SAAS,MAAM,QAAQ,eAAe;EAiErD"}
@@ -1,51 +1,69 @@
1
- import { useState as u, useEffect as S, useCallback as g } from "react";
2
- import { isTreeActive as n } from "../Sidebar.utils.js";
3
- function p({ menuItems: r, currentPath: c }) {
4
- const [h, d] = u({});
5
- S(() => {
6
- if (!r.length) return;
7
- const e = {}, s = (i, a = 0) => {
8
- for (const o of i)
9
- if (n(o, c, r)) {
10
- e[`${a}-${o.name}`] = !0, o.dashboardServices && s(o.dashboardServices, a + 1);
1
+ import { useState as E, useEffect as v, useCallback as j } from "react";
2
+ import { isTreeActive as S } from "../Sidebar.utils.js";
3
+ function w({ menuItems: c, currentPath: n, maxOpenParents: b, maxOpenChildren: h }) {
4
+ const [$, l] = E({});
5
+ v(() => {
6
+ if (!c.length) return;
7
+ const e = {}, t = (f, r = 0) => {
8
+ for (const o of f)
9
+ if (S(o, n, c)) {
10
+ e[`${r}-${o.name}`] = !0, o.dashboardServices && t(o.dashboardServices, r + 1);
11
11
  break;
12
12
  }
13
13
  };
14
- s(r), d(e);
15
- }, [r]), S(() => {
16
- if (!r.length) return;
17
- const e = {}, s = (i, a = 0) => {
18
- for (const o of i)
19
- if (n(o, c, r)) {
20
- e[`${a}-${o.name}`] = !0, o.dashboardServices && s(o.dashboardServices, a + 1);
14
+ t(c), l(e);
15
+ }, [c]), v(() => {
16
+ if (!c.length) return;
17
+ const e = {}, t = (f, r = 0) => {
18
+ for (const o of f)
19
+ if (S(o, n, c)) {
20
+ e[`${r}-${o.name}`] = !0, o.dashboardServices && t(o.dashboardServices, r + 1);
21
21
  break;
22
22
  }
23
23
  };
24
- s(r), d((i) => ({ ...i, ...e }));
25
- }, [c]);
26
- const v = g(
27
- (e, s, i) => {
28
- d((a) => {
29
- const o = { ...a };
30
- if (s === 0 && (Object.keys(o).forEach((f) => {
31
- f !== e && delete o[f];
32
- }), !a[e] && i.dashboardServices)) {
33
- const f = ($, b) => {
34
- for (const t of $)
35
- if (n(t, c, r)) {
36
- o[`${b}-${t.name}`] = !0, t.dashboardServices && f(t.dashboardServices, b + 1);
37
- break;
38
- }
39
- };
40
- f(i.dashboardServices, s + 1);
24
+ t(c), l((f) => ({ ...f, ...e }));
25
+ }, [n]);
26
+ const u = j(
27
+ (e, t, f) => {
28
+ l((r) => {
29
+ const o = { ...r }, g = !r[e];
30
+ if (g) {
31
+ if (t === 0 && b !== void 0) {
32
+ const s = Object.keys(o).filter(
33
+ (i) => i.startsWith("0-") && o[i]
34
+ );
35
+ s.length >= b && s.slice(0, s.length - b + 1).forEach((d) => {
36
+ delete o[d], Object.keys(o).forEach((a) => {
37
+ a !== d && o[a] && parseInt(a.split("-")[0], 10);
38
+ });
39
+ });
40
+ } else if (t > 0 && h !== void 0) {
41
+ const s = Object.keys(o).filter(
42
+ (i) => i.startsWith(`${t}-`) && o[i] && i !== e
43
+ );
44
+ s.length >= h && s.slice(0, s.length - h + 1).forEach((d) => {
45
+ delete o[d];
46
+ });
47
+ } else if (t === 0 && b === void 0 && (Object.keys(o).forEach((s) => {
48
+ s !== e && delete o[s];
49
+ }), f.dashboardServices)) {
50
+ const s = (i, d) => {
51
+ for (const a of i)
52
+ if (S(a, n, c)) {
53
+ o[`${d}-${a.name}`] = !0, a.dashboardServices && s(a.dashboardServices, d + 1);
54
+ break;
55
+ }
56
+ };
57
+ s(f.dashboardServices, t + 1);
58
+ }
41
59
  }
42
- return o[e] = !a[e], o;
60
+ return o[e] = g, o;
43
61
  });
44
62
  },
45
- [c, r]
63
+ [n, c, b, h]
46
64
  );
47
- return { openByLevel: h, toggleMenu: v };
65
+ return { openByLevel: $, toggleMenu: u };
48
66
  }
49
67
  export {
50
- p as useMenuState
68
+ w as useMenuState
51
69
  };
@@ -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
@@ -1 +1 @@
1
- {"version":3,"file":"useModuleSwitch.d.ts","sourceRoot":"","sources":["../../../../lib/components/Sidebar/hooks/useModuleSwitch.ts"],"names":[],"mappings":"AAEA,wBAAgB,eAAe,CAAC,EAAE,cAAc,EAAE,EAAE;IAAE,cAAc,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;CAAE;;qCAIvF,MAAM;EAS5B"}
1
+ {"version":3,"file":"useModuleSwitch.d.ts","sourceRoot":"","sources":["../../../../lib/components/Sidebar/hooks/useModuleSwitch.ts"],"names":[],"mappings":"AAEA,UAAU,sBAAsB;IAC9B,cAAc,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CACxD;AAED,wBAAgB,eAAe,CAAC,EAAE,cAAc,EAAE,EAAE,sBAAsB;;qCAInD,MAAM;EAS5B"}
@@ -1,4 +1,19 @@
1
1
  export { Sidebar } from './Sidebar';
2
2
  export { default } from './Sidebar';
3
- export type { SidebarProps, SidebarMenuItem, ExploreItem, ModuleItem, GptCardProps } from './Sidebar.types';
3
+ export type { SidebarProps, SidebarMenuItem, ExploreItem, ModuleItem, GptCardProps } from './types';
4
+ export { MenuRenderer } from './components/MenuRenderer';
5
+ export { MenuItemWrapper } from './components/MenuItemWrapper';
6
+ export { SubMenuWrapper } from './components/SubMenuWrapper';
7
+ export { CollapsedTooltip } from './components/CollapsedTooltip';
8
+ export { ExploreSection } from './components/ExploreSection';
9
+ export { ModuleSwitchButton } from './components/ModuleSwitchButton';
10
+ export { ContactUsButton } from './components/ContactUsButton';
11
+ export { GptCardWrapper } from './components/GptCard';
12
+ export { IconRenderer } from './components/IconRenderer';
13
+ export { SectionLabel } from './components/SectionLabel';
14
+ export { useActiveDetection } from './hooks/useActiveDetection';
15
+ export { useMenuState } from './hooks/useMenuState';
16
+ export { useModuleSwitch } from './hooks/useModuleSwitch';
17
+ export { normalizeUrl, isItemActive, isTreeActive, capitalizeFirstLetter, addBreakOpportunities } from './Sidebar.utils';
18
+ export { SIDEBAR_WIDTH_EXPANDED, SIDEBAR_WIDTH_COLLAPSED, CHAT_BOT_KEY, MULTICLOUD_VIEW_KEY } from './Sidebar.constants';
4
19
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/components/Sidebar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,YAAY,EAAE,YAAY,EAAE,eAAe,EAAE,WAAW,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/components/Sidebar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,YAAY,EAAE,YAAY,EAAE,eAAe,EAAE,WAAW,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAGpG,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAGzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAG1D,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAGzH,OAAO,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC"}
@@ -1,5 +1,42 @@
1
- import { Sidebar as r, Sidebar as d } from "./Sidebar.js";
1
+ import { Sidebar as o, Sidebar as t } from "./Sidebar.js";
2
+ import { MenuRenderer as i } from "./components/MenuRenderer/index.js";
3
+ import { MenuItemWrapper as a } from "./components/MenuItemWrapper/index.js";
4
+ import { SubMenuWrapper as x } from "./components/SubMenuWrapper/index.js";
5
+ import { C as u } from "../../index-CSxlVCTW.js";
6
+ import { ExploreSection as d } from "./components/ExploreSection/index.js";
7
+ import { ModuleSwitchButton as s } from "./components/ModuleSwitchButton/index.js";
8
+ import { ContactUsButton as D } from "./components/ContactUsButton/index.js";
9
+ import { GptCardWrapper as I } from "./components/GptCard/index.js";
10
+ import { IconRenderer as _ } from "./components/IconRenderer/index.js";
11
+ import { SectionLabel as M } from "./components/SectionLabel/index.js";
12
+ import { useActiveDetection as B } from "./hooks/useActiveDetection.js";
13
+ import { useMenuState as W } from "./hooks/useMenuState.js";
14
+ import { useModuleSwitch as O } from "./hooks/useModuleSwitch.js";
15
+ import { addBreakOpportunities as U, capitalizeFirstLetter as v, isItemActive as H, isTreeActive as h, normalizeUrl as w } from "./Sidebar.utils.js";
16
+ import { CHAT_BOT_KEY as K, MULTICLOUD_VIEW_KEY as P, SIDEBAR_WIDTH_COLLAPSED as Y, SIDEBAR_WIDTH_EXPANDED as k } from "./Sidebar.constants.js";
2
17
  export {
3
- r as Sidebar,
4
- d as default
18
+ K as CHAT_BOT_KEY,
19
+ u as CollapsedTooltip,
20
+ D as ContactUsButton,
21
+ d as ExploreSection,
22
+ I as GptCardWrapper,
23
+ _ as IconRenderer,
24
+ P as MULTICLOUD_VIEW_KEY,
25
+ a as MenuItemWrapper,
26
+ i as MenuRenderer,
27
+ s as ModuleSwitchButton,
28
+ Y as SIDEBAR_WIDTH_COLLAPSED,
29
+ k as SIDEBAR_WIDTH_EXPANDED,
30
+ M as SectionLabel,
31
+ o as Sidebar,
32
+ x as SubMenuWrapper,
33
+ U as addBreakOpportunities,
34
+ v as capitalizeFirstLetter,
35
+ t as default,
36
+ H as isItemActive,
37
+ h as isTreeActive,
38
+ w as normalizeUrl,
39
+ B as useActiveDetection,
40
+ W as useMenuState,
41
+ O as useModuleSwitch
5
42
  };
@@ -0,0 +1,8 @@
1
+ import { ReactNode } from 'react';
2
+ export interface ExploreItem {
3
+ cloudProvider: string;
4
+ displayName: string;
5
+ link: string;
6
+ icon?: string | ReactNode;
7
+ }
8
+ //# sourceMappingURL=explore.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"explore.types.d.ts","sourceRoot":"","sources":["../../../../lib/components/Sidebar/types/explore.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,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"}
@@ -0,0 +1,9 @@
1
+ import { SidebarMenuItem } from './menu.types';
2
+ export interface GptCardProps {
3
+ item: SidebarMenuItem;
4
+ onNavigate: (path: string) => void;
5
+ disabled: boolean;
6
+ open: boolean;
7
+ onToggle: (open: boolean) => void;
8
+ }
9
+ //# sourceMappingURL=gpt.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gpt.types.d.ts","sourceRoot":"","sources":["../../../../lib/components/Sidebar/types/gpt.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAEpD,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"}
@@ -0,0 +1,6 @@
1
+ export type { SidebarProps } from './sidebar.types';
2
+ export type { SidebarMenuItem } from './menu.types';
3
+ export type { ExploreItem } from './explore.types';
4
+ export type { ModuleItem } from './module.types';
5
+ export type { GptCardProps } from './gpt.types';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../lib/components/Sidebar/types/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACpD,YAAY,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AACnD,YAAY,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACjD,YAAY,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC"}
@@ -0,0 +1,12 @@
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
+ //# sourceMappingURL=menu.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"menu.types.d.ts","sourceRoot":"","sources":["../../../../lib/components/Sidebar/types/menu.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"}
@@ -0,0 +1,8 @@
1
+ export interface ModuleItem {
2
+ id: string;
3
+ name: string;
4
+ displayName: string;
5
+ feEnabled: boolean;
6
+ type: string;
7
+ }
8
+ //# sourceMappingURL=module.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"module.types.d.ts","sourceRoot":"","sources":["../../../../lib/components/Sidebar/types/module.types.ts"],"names":[],"mappings":"AAAA,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"}
@@ -0,0 +1,51 @@
1
+ import { ReactNode } from 'react';
2
+ import { SidebarMenuItem } from './menu.types';
3
+ import { ExploreItem } from './explore.types';
4
+ import { ModuleItem } from './module.types';
5
+ import { GptCardProps } from './gpt.types';
6
+ export interface SidebarProps {
7
+ /** The list of menu items to render in the sidebar. */
8
+ menuItems: SidebarMenuItem[];
9
+ /** The current active path used for highlighting active menu items. */
10
+ currentPath: string;
11
+ /** Whether the sidebar is in collapsed (icon-only) mode. */
12
+ collapsed: boolean;
13
+ /** Optional list of multicloud explore links. */
14
+ multicloudExploreList?: ExploreItem[];
15
+ /** Optional list of modules for the module switch button. */
16
+ moduleList?: ModuleItem[];
17
+ /** The ID of the currently active module. */
18
+ currentModuleId?: string;
19
+ /** The type of the current user (e.g., "CUSTOMER", "CLOUDONOMICS"). */
20
+ userType?: string;
21
+ /** Whether the GPT card feature is enabled. */
22
+ gptCardEnabled?: boolean;
23
+ /** Custom render function for the GPT card. */
24
+ renderGptCard?: (props: GptCardProps) => ReactNode;
25
+ /** Map of cloud provider keys to icon ReactNodes. */
26
+ cloudProviderIcons?: Record<string, ReactNode>;
27
+ /** Callback fired when the user navigates to a menu item. */
28
+ onNavigate: (path: string) => void;
29
+ /** Callback fired when the user switches modules. */
30
+ onModuleSwitch?: (moduleName: string) => Promise<void>;
31
+ /** Callback fired when the "Contact Us" button is clicked. */
32
+ onContactUsClick?: () => void;
33
+ /** URL for the "Contact Us" link (used when no click handler is provided). */
34
+ contactUsUrl?: string;
35
+ /** Callback fired on any menu item click (useful for analytics/tracking). */
36
+ onMenuItemClick?: (item: SidebarMenuItem) => void;
37
+ /** Whether to show a loading overlay on the sidebar. */
38
+ isLoaderVisible?: boolean;
39
+ /** Whether the sidebar should be completely hidden. */
40
+ hidden?: boolean;
41
+ /** Additional class name(s) for the root sidebar element. */
42
+ className?: string;
43
+ /** Optional footer slot for rendering custom content at the bottom. */
44
+ renderFooter?: () => ReactNode;
45
+ /** Optional header slot for rendering custom content at the top (above module switch). */
46
+ renderHeader?: () => ReactNode;
47
+ showChildIcons?: boolean;
48
+ maxOpenParents?: number;
49
+ maxOpenChildren?: number;
50
+ }
51
+ //# sourceMappingURL=sidebar.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sidebar.types.d.ts","sourceRoot":"","sources":["../../../../lib/components/Sidebar/types/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Ae,CAAC,EAAE,CAAC,IAAI,EAAE,eAAe,KAAK,IAAI,CAAC;IAElD,wDAAwD;IACxD,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B,uDAAuD;IACvD,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB,6DAA6D;IAC7D,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,uEAAuE;IACvE,YAAY,CAAC,EAAE,MAAM,SAAS,CAAC;IAE/B,0FAA0F;IAC1F,YAAY,CAAC,EAAE,MAAM,SAAS,CAAC;IAC/B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B"}
@@ -0,0 +1,52 @@
1
+ import { jsxs as r, jsx as t } from "react/jsx-runtime";
2
+ import { useState as k, useRef as a } from "react";
3
+ import { s as n } from "./styles.module-xqgv3wwP.js";
4
+ import './assets/index-C_Tn9jS-.css';const f = "_active_1ugk5_80", o = {
5
+ "sidebar-popup": "_sidebar-popup_1ugk5_1",
6
+ "popover-container": "_popover-container_1ugk5_7",
7
+ "popover-arrow": "_popover-arrow_1ugk5_21",
8
+ "popover-content": "_popover-content_1ugk5_32",
9
+ "popover-menu": "_popover-menu_1ugk5_38",
10
+ "popover-title": "_popover-title_1ugk5_44",
11
+ "popover-title-single": "_popover-title-single_1ugk5_52",
12
+ "popover-children": "_popover-children_1ugk5_62",
13
+ "popover-child-item": "_popover-child-item_1ugk5_69",
14
+ active: f,
15
+ "popover-child-with-sub": "_popover-child-with-sub_1ugk5_85",
16
+ "popover-child-arrow": "_popover-child-arrow_1ugk5_93",
17
+ "nested-popover": "_nested-popover_1ugk5_104",
18
+ "single-child-popover": "_single-child-popover_1ugk5_110"
19
+ };
20
+ function y({ active: v, icon: d, label: s = null, children: m, popupClassName: g = "", onClick: i }) {
21
+ const [l, u] = k(!1), h = a(null), e = a(null), c = () => {
22
+ e.current && (clearTimeout(e.current), e.current = null), u(!0);
23
+ }, _ = () => {
24
+ e.current = setTimeout(() => u(!1), 80);
25
+ };
26
+ return /* @__PURE__ */ r("div", { className: o["sidebar-popup"], ref: h, onMouseEnter: c, onMouseLeave: _, children: [
27
+ /* @__PURE__ */ r(
28
+ "div",
29
+ {
30
+ className: `${n["sidebar-menu-item"]} ${v || l ? n.active : ""}`,
31
+ onClick: i,
32
+ role: "menuitem",
33
+ tabIndex: 0,
34
+ onKeyDown: (p) => {
35
+ (p.key === "Enter" || p.key === " ") && (p.preventDefault(), i?.());
36
+ },
37
+ children: [
38
+ d,
39
+ s && /* @__PURE__ */ t("span", { className: n["menu-content"], children: s })
40
+ ]
41
+ }
42
+ ),
43
+ l && /* @__PURE__ */ r("div", { className: `${o["popover-container"]} ${g}`, onMouseEnter: c, onMouseLeave: _, role: "tooltip", children: [
44
+ /* @__PURE__ */ t("div", { className: o["popover-arrow"] }),
45
+ /* @__PURE__ */ t("div", { className: o["popover-content"], children: m })
46
+ ] })
47
+ ] });
48
+ }
49
+ export {
50
+ y as C,
51
+ o as p
52
+ };
package/dist/main.d.ts CHANGED
@@ -48,4 +48,10 @@ export * from './theme/Theme';
48
48
  export { FusionChart } from './components/FusionChart';
49
49
  export { Loader } from './components/Loader';
50
50
  export { Typography } from './components/Typography';
51
+ export { default as Dialog } from './components/PopupAndDialogBox';
52
+ export { DialogHeader } from './components/PopupAndDialogBox/components/DialogHeader';
53
+ export { DialogContent } from './components/PopupAndDialogBox/components/DialogContent';
54
+ export { DialogFooter } from './components/PopupAndDialogBox/components/DialogFooter';
55
+ export { TYPE as DIALOG_TYPE, BUTTON_LAYOUT } from './components/PopupAndDialogBox/constant/popupAndDialog';
56
+ export type { DialogProps, HeaderProps as DialogHeaderProps, FooterProps as DialogFooterProps } from './components/PopupAndDialogBox/_types/popupAndDialog.types';
51
57
  //# sourceMappingURL=main.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../lib/main.ts"],"names":[],"mappings":"AAA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