@epam/ai-dial-ui-kit 0.14.0-dev.40 → 0.14.0-dev.44

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 (39) hide show
  1. package/dist/CHANGELOG.md +1 -0
  2. package/dist/DateCellRenderer-B_oow9gn.cjs +1 -0
  3. package/dist/{DateCellRenderer-p6k-mVZt.cjs → DateCellRenderer-CS8ZbiFh.cjs} +5 -5
  4. package/dist/JsonEditor-BlaSMX26.cjs +1 -0
  5. package/dist/{MarkdownEditor-CBH7ILah.cjs → MarkdownEditor-5kljDPcm.cjs} +1 -1
  6. package/dist/{MarkdownEditor-CMRC_XsQ.cjs → MarkdownEditor-C0_gU7Fi.cjs} +1 -1
  7. package/dist/MarkdownEditorContainer-BqTGQArV.cjs +1 -0
  8. package/dist/components/Analytics/BarGroup/BarGroup.js +60 -58
  9. package/dist/components/Grid/constants.js +2 -2
  10. package/dist/components/MarkdownEditor/MarkdownEditorContainer.js +16 -18
  11. package/dist/components/New/Dropdown/Dropdown.js +163 -152
  12. package/dist/components/New/Dropdown/DropdownSubMenuItem.js +75 -55
  13. package/dist/components/New/InteractiveTooltip/InteractiveTooltip.js +102 -0
  14. package/dist/components/New/InteractiveTooltip/constants.js +6 -0
  15. package/dist/components/New/Select/Select.js +178 -167
  16. package/dist/components/New/Select/SelectSubMenuItem.js +84 -54
  17. package/dist/components-manifest.json +87 -3
  18. package/dist/dial-ui-kit.cjs +2 -2
  19. package/dist/dial-ui-kit.js +65 -63
  20. package/dist/editors.cjs +1 -1
  21. package/dist/file-manager.cjs +1 -1
  22. package/dist/grid.cjs +1 -1
  23. package/dist/index.css +1 -1
  24. package/dist/lazy-B1eG0EeX.cjs +1 -0
  25. package/dist/src/components/Analytics/BarGroup/BarGroup.d.ts +9 -2
  26. package/dist/src/components/New/InteractiveTooltip/InteractiveTooltip.d.ts +74 -0
  27. package/dist/src/components/New/InteractiveTooltip/constants.d.ts +26 -0
  28. package/dist/src/index.d.ts +2 -0
  29. package/dist/src/models/dropdown.d.ts +23 -0
  30. package/dist/src/models/select.d.ts +24 -0
  31. package/dist/src/utils/sub-menu-floating.d.ts +1 -0
  32. package/dist/{use-file-manager-tabs-CIQjiyK-.cjs → use-file-manager-tabs-D0RFLbl1.cjs} +1 -1
  33. package/dist/utils/sub-menu-floating.js +45 -38
  34. package/package.json +1 -1
  35. package/dist/DateCellRenderer-DNPEX0I7.cjs +0 -1
  36. package/dist/JsonEditor-BZCyPc2D.cjs +0 -1
  37. package/dist/MarkdownEditorContainer-B_6-Gd-T.cjs +0 -1
  38. package/dist/editor-BKQqPhwX.cjs +0 -1
  39. package/dist/lazy-CJ-0Pjkj.cjs +0 -1
@@ -1,5 +1,6 @@
1
1
  import { DropdownItemType } from '../types/dropdown';
2
2
  import { MenuItemMark } from '../types/menu-item';
3
+ import { TooltipPlacement } from '../types/tooltip';
3
4
  import { ReactNode, MouseEvent } from 'react';
4
5
  export interface DropdownSubMenuHoverOptions {
5
6
  /** Delay (ms) before the submenu opens/closes on hover. Defaults to `{ open: 80, close: 80 }`. */
@@ -10,6 +11,22 @@ export interface DropdownSubMenuHoverOptions {
10
11
  /** Whether pointer movement (not just rest) can trigger the hover open. Defaults to `false`. */
11
12
  move?: boolean;
12
13
  }
14
+ /**
15
+ * Data for the interactive panel {@link Dropdown} anchors to an item's row —
16
+ * unlike a plain tooltip, its content can hold controls of its own (a "View
17
+ * details" link, for example), which is why it takes a full node rather than
18
+ * a string.
19
+ */
20
+ export interface DropdownItemInteractiveTooltip {
21
+ content: ReactNode;
22
+ /** @default TooltipPlacement.Right */
23
+ placement?: TooltipPlacement;
24
+ /**
25
+ * Additional CSS classes for the panel — e.g. a wider `max-w-*` for content
26
+ * that does not fit the default 320px.
27
+ */
28
+ contentClassName?: string;
29
+ }
13
30
  export interface DropdownItem {
14
31
  key: string;
15
32
  label?: ReactNode;
@@ -66,4 +83,10 @@ export interface DropdownItem {
66
83
  renderItem?: (item: DropdownItem) => ReactNode;
67
84
  /** Overrides the default hover-open behavior of this item's submenu. */
68
85
  subMenuHoverOptions?: DropdownSubMenuHoverOptions;
86
+ /**
87
+ * Anchors an {@link InteractiveTooltip} to this item's row, open on hover
88
+ * or focus. Use it for content too rich for a plain label — an explanation
89
+ * with its own link or button.
90
+ */
91
+ interactiveTooltip?: DropdownItemInteractiveTooltip;
69
92
  }
@@ -1,4 +1,21 @@
1
1
  import { ReactNode } from 'react';
2
+ import { TooltipPlacement } from '../types/tooltip';
3
+ /**
4
+ * Data for the interactive panel {@link Select} anchors to an option's row —
5
+ * unlike a plain tooltip, its content can hold controls of its own (a "View
6
+ * details" link, for example), which is why it takes a full node rather than
7
+ * a string.
8
+ */
9
+ export interface SelectOptionInteractiveTooltip {
10
+ content: ReactNode;
11
+ /** @default TooltipPlacement.Right */
12
+ placement?: TooltipPlacement;
13
+ /**
14
+ * Additional CSS classes for the panel — e.g. a wider `max-w-*` for content
15
+ * that does not fit the default 320px.
16
+ */
17
+ contentClassName?: string;
18
+ }
2
19
  export interface SelectOption {
3
20
  value: string;
4
21
  label: string;
@@ -17,5 +34,12 @@ export interface SelectOption {
17
34
  * keeps its own click and stays out of the row's accessible name.
18
35
  */
19
36
  rightControl?: ReactNode;
37
+ /**
38
+ * Anchors an {@link InteractiveTooltip} to this option's row, open on hover
39
+ * or focus. Use it for content too rich for `description` — an explanation
40
+ * with its own link or button, the way a skill picker explains what a
41
+ * skill does before it is chosen.
42
+ */
43
+ interactiveTooltip?: SelectOptionInteractiveTooltip;
20
44
  children?: SelectOption[];
21
45
  }
@@ -12,6 +12,7 @@ export interface SubMenuHoverOptions {
12
12
  */
13
13
  export declare function useSubMenuFloating(gap: number, ariaRole?: 'menu' | 'listbox', disabled?: boolean, hoverOptions?: SubMenuHoverOptions): {
14
14
  isOpen: boolean;
15
+ nodeId: string | undefined;
15
16
  refs: {
16
17
  reference: import('react').MutableRefObject<import('@floating-ui/react-dom').ReferenceType | null>;
17
18
  floating: React.MutableRefObject<HTMLElement | null>;