@epam/ai-dial-ui-kit 0.15.0-dev.16 → 0.15.0-dev.18

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.
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./use-file-manager-tabs-DgIKWJoV.cjs");exports.DialDestinationFolderPopup=e.DialDestinationFolderPopup;exports.DialFileManager=e.DialFileManager;exports.DialFileManagerActions=e.DialFileManagerActions;exports.DialFileManagerTabs=e.DialFileManagerTabs;exports.DialFoldersTree=e.DialFoldersTree;exports.FileManagerColumnKey=e.FileManagerColumnKey;exports.FileManagerProvider=e.FileManagerProvider;exports.NAME_COLUMN=e.NAME_COLUMN;exports.SIZE_COLUMN=e.SIZE_COLUMN;exports.UPDATED_AT_COLUMN=e.UPDATED_AT_COLUMN;exports.useDialFileManagerTabs=e.useDialFileManagerTabs;exports.useFileManagerContext=e.useFileManagerContext;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./use-file-manager-tabs-BhQiRABT.cjs");exports.DialDestinationFolderPopup=e.DialDestinationFolderPopup;exports.DialFileManager=e.DialFileManager;exports.DialFileManagerActions=e.DialFileManagerActions;exports.DialFileManagerTabs=e.DialFileManagerTabs;exports.DialFoldersTree=e.DialFoldersTree;exports.FileManagerColumnKey=e.FileManagerColumnKey;exports.FileManagerProvider=e.FileManagerProvider;exports.NAME_COLUMN=e.NAME_COLUMN;exports.SIZE_COLUMN=e.SIZE_COLUMN;exports.UPDATED_AT_COLUMN=e.UPDATED_AT_COLUMN;exports.useDialFileManagerTabs=e.useDialFileManagerTabs;exports.useFileManagerContext=e.useFileManagerContext;
package/dist/grid.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./DateCellRenderer-Cm09x2e4.cjs"),D=require("./DateCellRenderer-Cci6cUvX.cjs");exports.DEFAULT_GRID_DATE_FORMAT_OPTIONS=e.DEFAULT_DATE_FORMAT_OPTIONS;exports.DEFAULT_GRID_DATE_LOCALE=e.DEFAULT_LOCALE;exports.DialDateCellRenderer=e.DialDateCellRenderer;exports.DialGrid=e.DialGrid;exports.GridSelectionMode=e.GridSelectionMode;exports.baseColumnComparator=e.baseColumnComparator;exports.checkColDefsChanges=e.checkColDefsChanges;exports.convertGridDateToDate=e.convertToDate;exports.convertToDate=e.convertToDate;exports.DEFAULT_DATE_FORMAT_OPTIONS=D.DEFAULT_DATE_FORMAT_OPTIONS;exports.DEFAULT_DATE_LOCALE=D.DEFAULT_LOCALE;exports.DateCellRenderer=D.DateCellRenderer;exports.GRID_ALIGN_RIGHT_CLASS=D.GRID_ALIGN_RIGHT_CLASS;exports.GRID_ROOT_CLASS=D.GRID_ROOT_CLASS;exports.GRID_ROW_HEIGHT=D.ROW_HEIGHT;exports.GRID_SELECTION_COLUMN_ID=D.GRID_SELECTION_COLUMN_ID;exports.GRID_THEME_PARAMS=D.GRID_THEME_PARAMS;exports.Grid=D.Grid;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./DateCellRenderer-CWkRbOzj.cjs"),D=require("./DateCellRenderer-lgC9R6XK.cjs");exports.DEFAULT_GRID_DATE_FORMAT_OPTIONS=e.DEFAULT_DATE_FORMAT_OPTIONS;exports.DEFAULT_GRID_DATE_LOCALE=e.DEFAULT_LOCALE;exports.DialDateCellRenderer=e.DialDateCellRenderer;exports.DialGrid=e.DialGrid;exports.GridSelectionMode=e.GridSelectionMode;exports.baseColumnComparator=e.baseColumnComparator;exports.checkColDefsChanges=e.checkColDefsChanges;exports.convertGridDateToDate=e.convertToDate;exports.convertToDate=e.convertToDate;exports.DEFAULT_DATE_FORMAT_OPTIONS=D.DEFAULT_DATE_FORMAT_OPTIONS;exports.DEFAULT_DATE_LOCALE=D.DEFAULT_LOCALE;exports.DateCellRenderer=D.DateCellRenderer;exports.GRID_ALIGN_RIGHT_CLASS=D.GRID_ALIGN_RIGHT_CLASS;exports.GRID_ROOT_CLASS=D.GRID_ROOT_CLASS;exports.GRID_ROW_HEIGHT=D.ROW_HEIGHT;exports.GRID_SELECTION_COLUMN_ID=D.GRID_SELECTION_COLUMN_ID;exports.GRID_THEME_PARAMS=D.GRID_THEME_PARAMS;exports.Grid=D.Grid;
@@ -1,6 +1,9 @@
1
1
  export declare const dropdownBaseClassName: string;
2
2
  export declare const dropdownListBaseClassName: string;
3
3
  export declare const dropdownSubMenuClassName: string;
4
+ export declare const dropdownSubMenuListClassName: string;
5
+ /** The top-level item list: rows 2px apart, inset from the panel edge. */
6
+ export declare const dropdownItemListClassName: string;
4
7
  /**
5
8
  * The row's own styling lives in {@link MenuItem}, which renders every item of
6
9
  * the menu. This alias is what a fully custom overlay row can lean on to match
@@ -20,9 +20,10 @@ export declare const selectListWidthClassName = "!max-w-[var(--reference-width)]
20
20
  * 344px — not the panel around them, so the search row and Select All stay
21
21
  * put while the list moves under them. The panel keeps its own cap on the
22
22
  * available viewport height, which takes over on a screen too short for this
23
- * one.
23
+ * one. `py-1` matches the Dropdown menu's list inset, so the first and last
24
+ * rows (and their focus ring) do not sit flush against the panel edge.
24
25
  */
25
- export declare const selectOptionsScrollClassName = "max-h-[344px] overflow-y-auto";
26
+ export declare const selectOptionsScrollClassName: string;
26
27
  export declare const selectSubMenuGap = 4;
27
28
  export declare const selectSubMenuClassName: string;
28
29
  /** Marks an option that opens a nested list. Matches the dropdown's caret. */
@@ -5,6 +5,11 @@
5
5
  */
6
6
  /** The floating panel itself: rounded raised card with a one-unit inset. */
7
7
  export declare const overlaySurfaceClassName = "rounded-xl bg-layer-raised p-1 shadow-md";
8
+ /**
9
+ * Stacks the rows of a menu or option list with a 2px gap, so the tints of
10
+ * adjacent selected and hovered rows read as separate rows instead of one block.
11
+ */
12
+ export declare const overlayListClassName = "flex flex-col gap-0.5";
8
13
  /**
9
14
  * A nested panel opened from a row of the surface above it. It is the same
10
15
  * object as its parent panel, so it reads from `overlaySurfaceClassName` too —
@@ -12,6 +17,14 @@ export declare const overlaySurfaceClassName = "rounded-xl bg-layer-raised p-1 s
12
17
  * rather than by the trigger further up.
13
18
  */
14
19
  export declare const overlaySubMenuClassName: string;
20
+ /**
21
+ * A submenu panel that lists kit-rendered rows. The top-level menu and option
22
+ * list wrap their rows in `py-1` inside the panel's `p-1`; a submenu renders
23
+ * its rows straight into the panel, so it takes the same total vertical inset
24
+ * here. A caller-rendered submenu body keeps the plain panel, as a
25
+ * `renderOverlay` body does at the top level.
26
+ */
27
+ export declare const overlaySubMenuListClassName: string;
15
28
  /**
16
29
  * A selectable row inside the panel. Keeps a visible focus ring: these rows are
17
30
  * reached by keyboard, and the 1.0 versions suppressed the ring outright.
@@ -1,4 +1,4 @@
1
- import { ReactNode } from 'react';
1
+ import { HTMLProps, ReactNode } from 'react';
2
2
  export interface SubMenuHoverOptions {
3
3
  delay?: number | {
4
4
  open?: number;
@@ -8,7 +8,10 @@ export interface SubMenuHoverOptions {
8
8
  }
9
9
  /**
10
10
  * Shared floating state for right-side submenus.
11
- * Handles open state, Floating UI positioning and hover/dismiss/role interactions.
11
+ * Handles open state, Floating UI positioning, hover/dismiss/role interactions,
12
+ * and the menu keyboard pattern: the inline-end arrow, Enter, or Space on the
13
+ * trigger opens the submenu and focuses its first row; ArrowUp/ArrowDown/Home/End
14
+ * move between its rows; the inline-start arrow closes it back to the trigger.
12
15
  */
13
16
  export declare function useSubMenuFloating(gap: number, ariaRole?: 'menu' | 'listbox', disabled?: boolean, hoverOptions?: SubMenuHoverOptions): {
14
17
  isOpen: boolean;
@@ -38,8 +41,8 @@ export declare function useSubMenuFloating(gap: number, ariaRole?: 'menu' | 'lis
38
41
  refs: import('@floating-ui/react').ExtendedRefs<import('@floating-ui/react').ReferenceType>;
39
42
  elements: import('@floating-ui/react').ExtendedElements<import('@floating-ui/react').ReferenceType>;
40
43
  };
41
- getReferenceProps: (userProps?: React.HTMLProps<Element>) => Record<string, unknown>;
42
- getFloatingProps: (userProps?: React.HTMLProps<HTMLElement>) => Record<string, unknown>;
44
+ getReferenceProps: (userProps?: HTMLProps<Element>) => Record<string, unknown>;
45
+ getFloatingProps: (userProps?: HTMLProps<HTMLElement>) => Record<string, unknown>;
43
46
  };
44
47
  interface SubMenuPanelProps {
45
48
  refs: ReturnType<typeof useSubMenuFloating>['refs'];