@epam/ai-dial-ui-kit 0.10.0-dev.9 → 0.10.0
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.
- package/dist/JsonEditor-CVewYMqi.js +111 -0
- package/dist/JsonEditor-D9i1Icn9.cjs +1 -0
- package/dist/MarkdownEditor-DN2TOpyj.js +36 -0
- package/dist/MarkdownEditor-Df9W4VL7.cjs +1 -0
- package/dist/components-manifest.json +368 -59
- package/dist/dial-ui-kit.cjs.js +1 -71
- package/dist/dial-ui-kit.es.js +126 -60567
- package/dist/editor-Ba3vCFHk.cjs +1 -0
- package/dist/editor-Cu1dRT39.js +4 -0
- package/dist/index-AS4M_ATi.js +61363 -0
- package/dist/index-BwReoFLu.cjs +71 -0
- package/dist/index.css +2 -2
- package/dist/mcp-server.cjs +9 -0
- package/dist/src/components/Alert/Alert.d.ts +8 -6
- package/dist/src/components/Alert/constants.d.ts +1 -1
- package/dist/src/components/Button/ButtonWrappers.d.ts +15 -0
- package/dist/src/components/Dropdown/Dropdown.d.ts +0 -47
- package/dist/src/components/Dropdown/DropdownSubMenuItem.d.ts +8 -0
- package/dist/src/components/DropdownIcon/DropdownIcon.d.ts +38 -0
- package/dist/src/components/FabButton/FabButton.d.ts +27 -0
- package/dist/src/components/FileManager/FileManager.d.ts +0 -4
- package/dist/src/components/FileManager/FileManagerContext.d.ts +6 -2
- package/dist/src/components/FileManager/FileManagerTooltip.d.ts +3 -2
- package/dist/src/components/FileManager/components/FileManagerItemName/FileManagerItemName.d.ts +3 -0
- package/dist/src/components/FileManager/components/FileManagerToolbar/DialFileManagerToolbar.d.ts +2 -2
- package/dist/src/components/FileManager/components/FoldersTree/FoldersTree.d.ts +8 -0
- package/dist/src/components/FileManager/components/FoldersTree/constants.d.ts +1 -0
- package/dist/src/components/FileManager/constants.d.ts +1 -0
- package/dist/src/components/FileManager/hooks/use-file-manager-columns.d.ts +1 -0
- package/dist/src/components/FileManager/hooks/use-folder-creation.d.ts +8 -1
- package/dist/src/components/FileManager/hooks/use-grid-context-menu.d.ts +3 -3
- package/dist/src/components/FileManager/hooks/use-trigger-view-create-folder.d.ts +26 -0
- package/dist/src/components/FileManager/utils.d.ts +7 -1
- package/dist/src/components/FormItem/constants.d.ts +1 -1
- package/dist/src/components/MarkdownEditor/MarkdownEditor.d.ts +4 -2
- package/dist/src/components/Pagination/Pagination.d.ts +8 -0
- package/dist/src/components/Pagination/utils.d.ts +5 -0
- package/dist/src/components/ProgressBar/ProgressBar.d.ts +13 -0
- package/dist/src/components/SchemaRenderer/components/SchemaObjectEditor.d.ts +1 -1
- package/dist/src/components/SchemaRenderer/types.d.ts +1 -0
- package/dist/src/components/Select/SelectSubMenuItem.d.ts +8 -0
- package/dist/src/components/Select/constants.d.ts +1 -0
- package/dist/src/components/Spinner/Spinner.d.ts +8 -0
- package/dist/src/hooks/use-editable-item.d.ts +5 -1
- package/dist/src/index.d.ts +14 -1
- package/dist/src/mcp/types.d.ts +7 -0
- package/dist/src/models/dropdown.d.ts +1 -0
- package/dist/src/models/select.d.ts +1 -0
- package/dist/src/types/alert.d.ts +2 -1
- package/dist/src/types/file-manager.d.ts +9 -0
- package/dist/src/utils/mobile.d.ts +2 -2
- package/dist/src/utils/sub-menu-floating.d.ts +51 -0
- package/package.json +5 -5
- /package/dist/{.cursor/hooks/post-write-verify.d.ts → src/components/Pagination/tests/utils.spec.d.ts} +0 -0
|
@@ -30,8 +30,6 @@ export interface UseGridContextMenuProps {
|
|
|
30
30
|
onRemoveAccess?: (file: DialFile) => void;
|
|
31
31
|
sharedWithMeIds?: string[];
|
|
32
32
|
sharedByMePaths?: Set<string>;
|
|
33
|
-
onAddSibling?: (file: DialFile) => void;
|
|
34
|
-
onAddChild?: (file: DialFile) => void;
|
|
35
33
|
onManagePermissions?: (path?: string) => void;
|
|
36
34
|
onPreview?: (path?: string) => void;
|
|
37
35
|
onOpenInNewTab?: (file: DialFile) => void;
|
|
@@ -39,5 +37,7 @@ export interface UseGridContextMenuProps {
|
|
|
39
37
|
isRenameFileAvailable?: boolean;
|
|
40
38
|
isDuplicateFolderAvailable?: boolean;
|
|
41
39
|
forbiddenSymbolsRegExp?: RegExp;
|
|
40
|
+
onGridCreateSiblingFolder: (files: DialFile[]) => void;
|
|
41
|
+
onGridCreateChildFolder: (files: DialFile[]) => void;
|
|
42
42
|
}
|
|
43
|
-
export declare const useGridContextMenu: ({ actionLabels, onDuplicate, onCopy, onMove, onDownload, onRename, onDelete, onInfo, onUnshare, onRemoveAccess, sharedWithMeIds, sharedByMePaths,
|
|
43
|
+
export declare const useGridContextMenu: ({ actionLabels, onDuplicate, onCopy, onMove, onDownload, onRename, onDelete, onInfo, onUnshare, onRemoveAccess, sharedWithMeIds, sharedByMePaths, onManagePermissions, onPreview, onOpenInNewTab, previewExtensions, isRenameFileAvailable, isDuplicateFolderAvailable, forbiddenSymbolsRegExp, onGridCreateSiblingFolder, onGridCreateChildFolder, }: UseGridContextMenuProps) => (file: DialFile) => DropdownItem[];
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { DialFile } from '../../../models/file';
|
|
2
|
+
import { FileManagerCreateFolderTriggerView } from '../../../types/file-manager';
|
|
3
|
+
interface UseTriggerViewCreateFolderOptions {
|
|
4
|
+
onGridAddSibling?: (files: DialFile[]) => void;
|
|
5
|
+
onGridAddChild?: (files: DialFile[]) => void;
|
|
6
|
+
onTreeAddSibling?: (files: DialFile[]) => void;
|
|
7
|
+
onTreeAddChild?: (files: DialFile[]) => void;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Manages which view ("tree" or "grid") triggered a folder creation action.
|
|
11
|
+
*
|
|
12
|
+
* Useful when both TreeView and GridView can initiate folder creation,
|
|
13
|
+
* and the parent needs to know which source triggered it
|
|
14
|
+
* to apply view-specific logic or UI updates.
|
|
15
|
+
*
|
|
16
|
+
* Returns the last folder creation trigger source and four handlers
|
|
17
|
+
* (`onGridCreateSiblingFolder`, `onTreeCreateSiblingFolder`, `onGridCreateChildFolder`, `onTreeCreateChildFolder`) that wrap the provided `onGridAddSibling`, `onTreeAddSibling`, `onGridAddChild` and `onTreeAddChild` callbacks.
|
|
18
|
+
*/
|
|
19
|
+
export declare const useTriggerViewCreateFolder: ({ onGridAddSibling, onGridAddChild, onTreeAddSibling, onTreeAddChild, }: UseTriggerViewCreateFolderOptions) => {
|
|
20
|
+
createFolderTriggerView: FileManagerCreateFolderTriggerView;
|
|
21
|
+
onGridCreateSiblingFolder: (files: DialFile[]) => void;
|
|
22
|
+
onTreeCreateSiblingFolder: (files: DialFile[]) => void;
|
|
23
|
+
onGridCreateChildFolder: (files: DialFile[]) => void;
|
|
24
|
+
onTreeCreateChildFolder: (files: DialFile[]) => void;
|
|
25
|
+
};
|
|
26
|
+
export {};
|
|
@@ -48,4 +48,10 @@ export declare function getForbiddenSymbolsTooltip(item: {
|
|
|
48
48
|
name: string;
|
|
49
49
|
isFolder: boolean;
|
|
50
50
|
}, forbiddenSymbolsRegExp?: RegExp, forbiddenSymbolsTooltip?: ReactNode): ReactNode | undefined;
|
|
51
|
-
export declare const
|
|
51
|
+
export declare const splitPathAndName: (fullPath: string) => {
|
|
52
|
+
parent: string;
|
|
53
|
+
name: string;
|
|
54
|
+
};
|
|
55
|
+
export declare const isFileSelectable: (file: Pick<DialFile, "contentLength" | "contentType" | "name">, allowedFileTypes?: DialFileAcceptType[], maxSelectableFileSize?: number) => boolean;
|
|
56
|
+
export declare const getRowTooltip: (file: FileManagerGridRow, allowedFileTypes?: DialFileAcceptType[], maxSelectableFileSize?: number, unsupportedFileTypeTooltip?: string, fileTooLargeTooltip?: string) => string | undefined;
|
|
57
|
+
export declare const getNextFolderName: (existingFolders: DialFile[]) => string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { FormItemOrientation } from '../../types/form-item';
|
|
2
|
-
export declare const containerBaseClassName = "w-full flex gap-
|
|
2
|
+
export declare const containerBaseClassName = "w-full flex gap-1";
|
|
3
3
|
export declare const orientationClassMap: Record<FormItemOrientation, string>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { EditorThemes } from '../../types/editor';
|
|
2
1
|
import { PreviewType } from '@uiw/react-md-editor';
|
|
3
|
-
import { FC } from 'react';
|
|
2
|
+
import { FC, ReactNode } from 'react';
|
|
3
|
+
import { EditorThemes } from '../../types/editor';
|
|
4
4
|
export interface DialMarkdownEditorProps {
|
|
5
5
|
value?: string;
|
|
6
6
|
onChange?: (value: string) => void;
|
|
@@ -8,6 +8,7 @@ export interface DialMarkdownEditorProps {
|
|
|
8
8
|
preview?: PreviewType;
|
|
9
9
|
theme?: EditorThemes;
|
|
10
10
|
className?: string;
|
|
11
|
+
placeholder?: ReactNode;
|
|
11
12
|
}
|
|
12
13
|
/**
|
|
13
14
|
* A Markdown editor component built on top of @uiw/react-md-editor.
|
|
@@ -27,6 +28,7 @@ export interface DialMarkdownEditorProps {
|
|
|
27
28
|
* @param [onChange] - Callback fired when the editor content changes
|
|
28
29
|
* @param [height=300] - Height of the editor in pixels
|
|
29
30
|
* @param [preview='edit'] - Preview mode ('edit', 'live', 'preview')
|
|
31
|
+
* @param [placeholder] - Content to display when the editor is empty
|
|
30
32
|
* @param [theme='dark'] - Theme for the editor ('light' or 'dark')
|
|
31
33
|
* @param [className] - Additional CSS classes for the container
|
|
32
34
|
*/
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const MANY_PAGES_THRESHOLD = 7;
|
|
2
|
+
export declare const ADJACENT_WINDOW = 2;
|
|
3
|
+
export declare const getPageRange: (totalPages: number) => number[];
|
|
4
|
+
export type PageDisplayType = 'active' | 'adjacent' | 'far';
|
|
5
|
+
export declare const getPageDisplayType: (p: number, currentPage: number, totalPages: number) => PageDisplayType;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
export declare enum DialProgressBarSize {
|
|
3
|
+
Small = "sm",
|
|
4
|
+
Medium = "md"
|
|
5
|
+
}
|
|
6
|
+
export interface DialProgressBarProps {
|
|
7
|
+
value: number;
|
|
8
|
+
max?: number;
|
|
9
|
+
size?: DialProgressBarSize;
|
|
10
|
+
className?: string;
|
|
11
|
+
ariaLabel?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare const DialProgressBar: FC<DialProgressBarProps>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { SelectOption } from '../../models/select';
|
|
3
|
+
export interface SelectSubMenuItemProps {
|
|
4
|
+
opt: SelectOption;
|
|
5
|
+
selectedValues: string[];
|
|
6
|
+
onSelect: (value: string) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare const SelectSubMenuItem: FC<SelectSubMenuItemProps>;
|
|
@@ -5,4 +5,5 @@ export declare const selectOptionSelectedClassName = "bg-accent-primary-alpha";
|
|
|
5
5
|
export declare const selectOptionSingleSelectedClassName = "bg-accent-primary-alpha border-l border-accent-primary border-1";
|
|
6
6
|
export declare const selectOptionDisabledClassName = "opacity-75";
|
|
7
7
|
export declare const dropdownMenuMaxHeight = 352;
|
|
8
|
+
export declare const selectSubMenuGap = 4;
|
|
8
9
|
export declare const selectChevronIcon: import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,10 +2,14 @@ import { RefObject } from 'react';
|
|
|
2
2
|
export interface UseEditableItemOptions {
|
|
3
3
|
value: string;
|
|
4
4
|
isEditing: boolean;
|
|
5
|
+
isCreating?: boolean;
|
|
6
|
+
isLoading?: boolean;
|
|
5
7
|
onValidate?: (value: string) => string | null;
|
|
6
8
|
onSave?: (value: string) => void;
|
|
7
9
|
onCancel?: () => void;
|
|
8
10
|
restoreOnCancel?: boolean;
|
|
11
|
+
onCreateFolderSave?: (value: string) => void;
|
|
12
|
+
onCreateFolderCancel?: () => void;
|
|
9
13
|
}
|
|
10
14
|
interface UseEditableItemResult {
|
|
11
15
|
inputRef: RefObject<HTMLInputElement | null>;
|
|
@@ -61,5 +65,5 @@ interface UseEditableItemResult {
|
|
|
61
65
|
* );
|
|
62
66
|
* ```
|
|
63
67
|
*/
|
|
64
|
-
export declare function useEditableItem({ value: initialValue, isEditing, restoreOnCancel, onValidate, onSave, onCancel, }: UseEditableItemOptions): UseEditableItemResult;
|
|
68
|
+
export declare function useEditableItem({ value: initialValue, isEditing, isCreating, isLoading, restoreOnCancel, onValidate, onSave, onCancel, onCreateFolderSave, onCreateFolderCancel, }: UseEditableItemOptions): UseEditableItemResult;
|
|
65
69
|
export {};
|
package/dist/src/index.d.ts
CHANGED
|
@@ -3,6 +3,12 @@ export { DialLabel } from './components/Label/Label';
|
|
|
3
3
|
export { DialIcon } from './components/Icon/Icon';
|
|
4
4
|
export { DialAlert } from './components/Alert/Alert';
|
|
5
5
|
export { DialLoader } from './components/Loader/Loader';
|
|
6
|
+
export { DialSpinner } from './components/Spinner/Spinner';
|
|
7
|
+
export type { DialSpinnerProps } from './components/Spinner/Spinner';
|
|
8
|
+
export { DialProgressBar, DialProgressBarSize, } from './components/ProgressBar/ProgressBar';
|
|
9
|
+
export type { DialProgressBarProps } from './components/ProgressBar/ProgressBar';
|
|
10
|
+
export { DialPagination } from './components/Pagination/Pagination';
|
|
11
|
+
export type { DialPaginationProps } from './components/Pagination/Pagination';
|
|
6
12
|
export { DialCheckbox } from './components/Checkbox/Checkbox';
|
|
7
13
|
export { DialSteps } from './components/Steps/Steps';
|
|
8
14
|
export { DialRadioButton } from './components/RadioButton/RadioButton';
|
|
@@ -29,10 +35,13 @@ export { DialBreadcrumbItem } from './components/Breadcrumb/BreadcrumbItem';
|
|
|
29
35
|
export { DialButton } from './components/Button/Button';
|
|
30
36
|
export { DialIconButton } from './components/IconButton/IconButton';
|
|
31
37
|
export type { DialIconButtonProps } from './components/IconButton/IconButton';
|
|
32
|
-
export { DialErrorButton, DialNeutralButton, DialPrimaryButton, DialGhostButton, DialLinkButton, } from './components/Button/ButtonWrappers';
|
|
38
|
+
export { DialErrorButton, DialNeutralButton, DialPrimaryButton, DialGhostButton, DialLinkButton, DialRoundedButton, } from './components/Button/ButtonWrappers';
|
|
39
|
+
export type { DialRoundedButtonProps } from './components/Button/ButtonWrappers';
|
|
33
40
|
export { DialErrorIconButton, DialGhostIconButton, DialNeutralIconButton, DialPrimaryIconButton, DialSecondaryIconButton, DialSuccessIconButton, DialTertiaryIconButton, } from './components/IconButton/IconButtonWrappers';
|
|
34
41
|
export { DialCloseButton } from './components/CloseButton/CloseButton';
|
|
35
42
|
export { DialRemoveButton } from './components/RemoveButton/RemoveButton';
|
|
43
|
+
export { DialFabButton } from './components/FabButton/FabButton';
|
|
44
|
+
export type { DialFabButtonProps } from './components/FabButton/FabButton';
|
|
36
45
|
export { DialTextarea } from './components/Textarea/Textarea';
|
|
37
46
|
export { DialTooltip } from './components/Tooltip/Tooltip';
|
|
38
47
|
export { DialSwitch } from './components/Switch/Switch';
|
|
@@ -55,6 +64,8 @@ export { DialLoadFileArea } from './components/LoadFileArea/LoadFileArea';
|
|
|
55
64
|
export { DialLoadFileAreaField } from './components/LoadFileArea/LoadFileAreaField';
|
|
56
65
|
export { DialDropdown } from './components/Dropdown/Dropdown';
|
|
57
66
|
export { DialButtonDropdown } from './components/ButtonDropdown/ButtonDropdown';
|
|
67
|
+
export { DialDropdownIcon } from './components/DropdownIcon/DropdownIcon';
|
|
68
|
+
export type { DialDropdownIconProps } from './components/DropdownIcon/DropdownIcon';
|
|
58
69
|
export { DialFileManager } from './components/FileManager/FileManager';
|
|
59
70
|
export type { FileManagerGridRow } from './components/FileManager/FileManagerContext';
|
|
60
71
|
export type { GridOptions, ToolbarOptions, BulkActionsToolbarOptions, } from './components/FileManager/FileManager';
|
|
@@ -100,3 +111,5 @@ export { NOT_ALLOWED_SYMBOLS, NOT_ALLOWED_SPACES, NOT_ALLOWED_SYMBOLS_REGEXP, NO
|
|
|
100
111
|
export { DialSchemaRenderer } from './components/SchemaRenderer/SchemaRenderer';
|
|
101
112
|
export { SchemaRendererVariant, SchemaDisplayMode, SchemaOrientation, JsonSchemaType, } from './components/SchemaRenderer/types';
|
|
102
113
|
export type { DialSchemaRendererProps, JsonSchema, JsonSchemaDef, ValidationError, } from './components/SchemaRenderer/types';
|
|
114
|
+
export declare const LazyDialJsonEditor: () => Promise<typeof import("./components/JsonEditor/JsonEditor")>;
|
|
115
|
+
export declare const LazyDialMarkdownEditor: () => Promise<typeof import("./components/MarkdownEditor/MarkdownEditor")>;
|
package/dist/src/mcp/types.d.ts
CHANGED
|
@@ -5,6 +5,12 @@ export interface PropEntry {
|
|
|
5
5
|
defaultValue?: string;
|
|
6
6
|
description?: string;
|
|
7
7
|
}
|
|
8
|
+
export interface LazyComponentEntry {
|
|
9
|
+
loaderExportName: string;
|
|
10
|
+
packageImport: string;
|
|
11
|
+
ssr: false;
|
|
12
|
+
nextDynamicExample: string;
|
|
13
|
+
}
|
|
8
14
|
export interface ComponentEntry {
|
|
9
15
|
name: string;
|
|
10
16
|
category: string;
|
|
@@ -12,6 +18,7 @@ export interface ComponentEntry {
|
|
|
12
18
|
props: PropEntry[];
|
|
13
19
|
examples: string[];
|
|
14
20
|
sourceFile: string;
|
|
21
|
+
lazy?: LazyComponentEntry;
|
|
15
22
|
}
|
|
16
23
|
export interface TypeMember {
|
|
17
24
|
name: string;
|
|
@@ -38,6 +38,15 @@ export declare enum FileManagerRenameTriggerView {
|
|
|
38
38
|
Tree = "tree",
|
|
39
39
|
Grid = "grid"
|
|
40
40
|
}
|
|
41
|
+
export declare enum FileManagerCreateFolderTriggerView {
|
|
42
|
+
Tree = "tree",
|
|
43
|
+
Grid = "grid"
|
|
44
|
+
}
|
|
45
|
+
export declare enum FileManagerCreateFolderType {
|
|
46
|
+
Folder = "folder",
|
|
47
|
+
Child = "child",
|
|
48
|
+
Sibling = "sibling"
|
|
49
|
+
}
|
|
41
50
|
export declare enum FileManagerColumnKey {
|
|
42
51
|
Name = "name",
|
|
43
52
|
UpdatedAt = "updatedAt",
|
|
@@ -2,10 +2,10 @@ import { ScreenType } from '../types/screen';
|
|
|
2
2
|
/**
|
|
3
3
|
* Checks if the current viewport width is within the "medium" (tablet) screen range.
|
|
4
4
|
*
|
|
5
|
-
* Specifically, it returns `true` if the window width is less than
|
|
5
|
+
* Specifically, it returns `true` if the window width is less than 1280 pixels.
|
|
6
6
|
* Safely handles server-side rendering by verifying that `window` is defined.
|
|
7
7
|
*
|
|
8
|
-
* @returns {boolean} `true` if the viewport width is less than
|
|
8
|
+
* @returns {boolean} `true` if the viewport width is less than 1279px, otherwise `false`.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* if (isMediumScreen()) {
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Shared floating state for right-side submenus.
|
|
4
|
+
* Handles open state, Floating UI positioning and hover/dismiss/role interactions.
|
|
5
|
+
*/
|
|
6
|
+
export declare function useSubMenuFloating(gap: number, ariaRole?: 'menu' | 'listbox', disabled?: boolean): {
|
|
7
|
+
isOpen: boolean;
|
|
8
|
+
refs: {
|
|
9
|
+
reference: import('react').MutableRefObject<import('@floating-ui/react-dom').ReferenceType | null>;
|
|
10
|
+
floating: React.MutableRefObject<HTMLElement | null>;
|
|
11
|
+
setReference: (node: import('@floating-ui/react-dom').ReferenceType | null) => void;
|
|
12
|
+
setFloating: (node: HTMLElement | null) => void;
|
|
13
|
+
} & import('@floating-ui/react').ExtendedRefs<import('@floating-ui/react').ReferenceType>;
|
|
14
|
+
floatingStyles: import('react').CSSProperties;
|
|
15
|
+
context: {
|
|
16
|
+
placement: import('@floating-ui/utils').Placement;
|
|
17
|
+
strategy: import('@floating-ui/utils').Strategy;
|
|
18
|
+
x: number;
|
|
19
|
+
y: number;
|
|
20
|
+
middlewareData: import('@floating-ui/core').MiddlewareData;
|
|
21
|
+
isPositioned: boolean;
|
|
22
|
+
update: () => void;
|
|
23
|
+
floatingStyles: React.CSSProperties;
|
|
24
|
+
open: boolean;
|
|
25
|
+
onOpenChange: (open: boolean, event?: Event, reason?: import('@floating-ui/react').OpenChangeReason) => void;
|
|
26
|
+
events: import('@floating-ui/react').FloatingEvents;
|
|
27
|
+
dataRef: React.MutableRefObject<import('@floating-ui/react').ContextData>;
|
|
28
|
+
nodeId: string | undefined;
|
|
29
|
+
floatingId: string | undefined;
|
|
30
|
+
refs: import('@floating-ui/react').ExtendedRefs<import('@floating-ui/react').ReferenceType>;
|
|
31
|
+
elements: import('@floating-ui/react').ExtendedElements<import('@floating-ui/react').ReferenceType>;
|
|
32
|
+
};
|
|
33
|
+
getReferenceProps: (userProps?: React.HTMLProps<Element>) => Record<string, unknown>;
|
|
34
|
+
getFloatingProps: (userProps?: React.HTMLProps<HTMLElement>) => Record<string, unknown>;
|
|
35
|
+
};
|
|
36
|
+
interface SubMenuPanelProps {
|
|
37
|
+
refs: ReturnType<typeof useSubMenuFloating>['refs'];
|
|
38
|
+
floatingStyles: ReturnType<typeof useSubMenuFloating>['floatingStyles'];
|
|
39
|
+
context: ReturnType<typeof useSubMenuFloating>['context'];
|
|
40
|
+
getFloatingProps: ReturnType<typeof useSubMenuFloating>['getFloatingProps'];
|
|
41
|
+
role: 'menu' | 'listbox';
|
|
42
|
+
/** Extra classes appended to the default floating container classes. */
|
|
43
|
+
className?: string;
|
|
44
|
+
children: ReactNode;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Shared floating panel wrapper (FloatingPortal → FloatingFocusManager → container div).
|
|
48
|
+
* Used by DropdownSubMenuItem and SelectSubMenuItem.
|
|
49
|
+
*/
|
|
50
|
+
export declare const SubMenuPanel: ({ refs, floatingStyles, context, getFloatingProps, role, className, children, }: SubMenuPanelProps) => import("react/jsx-runtime").JSX.Element;
|
|
51
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epam/ai-dial-ui-kit",
|
|
3
|
-
"version": "0.10.0
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"description": "A modern UI kit for building AI DIAL interfaces with React",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
23
|
"bin": {
|
|
24
|
-
"ai-dial-ui-kit-mcp": "
|
|
24
|
+
"ai-dial-ui-kit-mcp": "dist/mcp-server.cjs"
|
|
25
25
|
},
|
|
26
26
|
"files": [
|
|
27
27
|
"dist"
|
|
@@ -52,8 +52,8 @@
|
|
|
52
52
|
"build-storybook": "concurrently \"npm run build-storybook:css\" \"storybook build\"",
|
|
53
53
|
"build-storybook:css": "tailwindcss -m -i ./src/styles/tailwind-entry.scss -o ./src/index.css",
|
|
54
54
|
"prepare": "husky",
|
|
55
|
-
"publish": "
|
|
56
|
-
"publish:dry": "
|
|
55
|
+
"publish": "npm publish --access public",
|
|
56
|
+
"publish:dry": "npm publish --access public --dry-run",
|
|
57
57
|
"test": "vitest --coverage",
|
|
58
58
|
"storybook-docs": "storybook dev --docs",
|
|
59
59
|
"build-storybook-docs": "storybook build --docs"
|
|
@@ -143,4 +143,4 @@
|
|
|
143
143
|
"vite-plugin-svgr": "^4.5.0",
|
|
144
144
|
"vitest": "^3.2.4"
|
|
145
145
|
}
|
|
146
|
-
}
|
|
146
|
+
}
|
|
File without changes
|