@epam/ai-dial-ui-kit 0.5.0-rc.9 → 0.5.0-rc.90
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/README.md +3 -3
- package/dist/dial-ui-kit.cjs.js +29 -29
- package/dist/dial-ui-kit.es.js +26744 -24516
- package/dist/index.css +2 -2
- package/dist/src/components/Alert/Alert.d.ts +7 -3
- package/dist/src/components/Alert/constants.d.ts +7 -4
- package/dist/src/components/AutocompleteInput/AutocompleteInput.d.ts +10 -10
- package/dist/src/components/AutocompleteInput/AutocompleteInputValue.d.ts +6 -6
- package/dist/src/components/Breadcrumb/Breadcrumb.d.ts +8 -8
- package/dist/src/components/Breadcrumb/BreadcrumbItem.d.ts +2 -2
- package/dist/src/components/Breadcrumb/constants.d.ts +10 -10
- package/dist/src/components/Button/Button.d.ts +10 -18
- package/dist/src/components/Checkbox/Checkbox.d.ts +2 -2
- package/dist/src/components/CloseButton/CloseButton.d.ts +5 -3
- package/dist/src/components/CollapsibleSidebar/CollapsibleSidebar.d.ts +6 -6
- package/dist/src/components/ConfirmationPopup/ConfirmationPopup.d.ts +3 -3
- package/dist/src/components/ConfirmationPopup/constants.d.ts +3 -3
- package/dist/src/components/DraggableItem/DraggableItem.d.ts +8 -8
- package/dist/src/components/DraggableItem/constants.d.ts +2 -2
- package/dist/src/components/Dropdown/Dropdown.d.ts +4 -2
- package/dist/src/components/Dropdown/constants.d.ts +7 -7
- package/dist/src/components/EllipsisTooltip/EllipsisTooltip.d.ts +4 -4
- package/dist/src/components/EllipsisTooltip/constants.d.ts +1 -1
- package/dist/src/components/Field/Field.d.ts +4 -6
- package/dist/src/components/FileIcon/FileIcon.d.ts +2 -2
- package/dist/src/components/FileManager/FileManager.d.ts +50 -12
- package/dist/src/components/FileManager/FileManagerContext.d.ts +47 -4
- package/dist/src/components/FileManager/FileManagerProvider.d.ts +1 -0
- package/dist/src/components/FileManager/components/ConflictResolutionPopup/ConflictResolutionPopup.d.ts +92 -0
- package/dist/src/components/FileManager/components/DestinationFolderPopup/DestinationFolderPopup.d.ts +4 -1
- package/dist/src/components/FileManager/components/DialFileManagerItemSummaryCell/DialFileManagerItemSummaryCell.d.ts +55 -0
- package/dist/src/components/FileManager/components/DialFileManagerItemSummaryCell/DialFileManagerItemSummaryCell.test.d.ts +1 -0
- package/dist/src/components/FileManager/components/FileManagerBulkActionsToolbar/FileManagerBulkActionsToolbar.d.ts +5 -3
- package/dist/src/components/FileManager/components/FileManagerItemIcon/FileManagerItemIcon.d.ts +1 -1
- package/dist/src/components/FileManager/components/FileManagerItemName/FileManagerItemName.d.ts +2 -1
- package/dist/src/components/FileManager/components/FileManagerItemNameInput/FileManagerItemNameInput.d.ts +4 -2
- package/dist/src/components/FileManager/components/FileManagerNavigationPanel/FileManagerNavigationPanel.d.ts +13 -11
- package/dist/src/components/FileManager/components/FileManagerNavigationPanel/constants.d.ts +3 -3
- package/dist/src/components/FileManager/components/FileManagerToolbar/DialFileManagerToolbar.d.ts +13 -13
- package/dist/src/components/FileManager/components/FoldersTree/FoldersTree.d.ts +7 -1
- package/dist/src/components/FileManager/components/FoldersTree/hooks/use-expanded-paths.d.ts +13 -0
- package/dist/src/components/FileManager/constants.d.ts +14 -7
- package/dist/src/components/FileManager/hooks/__tests__/use-conflict-resolution.spec.d.ts +1 -0
- package/dist/src/components/FileManager/hooks/__tests__/use-file-upload.spec.d.ts +1 -0
- package/dist/src/components/FileManager/hooks/__tests__/use-trigger-view-rename.spec.d.ts +1 -0
- package/dist/src/components/FileManager/hooks/use-conflict-resolution.d.ts +26 -0
- package/dist/src/components/FileManager/hooks/use-file-clipboard.d.ts +18 -4
- package/dist/src/components/FileManager/hooks/use-file-delete.d.ts +3 -2
- package/dist/src/components/FileManager/hooks/use-file-download.d.ts +2 -1
- package/dist/src/components/FileManager/hooks/use-file-upload.d.ts +43 -0
- package/dist/src/components/FileManager/hooks/use-folder-creation.d.ts +21 -0
- package/dist/src/components/FileManager/hooks/use-grid-actions-column.d.ts +10 -0
- package/dist/src/components/FileManager/hooks/use-grid-context-menu.d.ts +20 -0
- package/dist/src/components/FileManager/hooks/use-item-renaming.d.ts +9 -5
- package/dist/src/components/FileManager/hooks/use-new-actions.d.ts +16 -0
- package/dist/src/components/FileManager/hooks/use-tree-additional-buttons.d.ts +22 -0
- package/dist/src/components/FileManager/hooks/use-trigger-view-rename.d.ts +20 -0
- package/dist/src/components/FileManager/utils.d.ts +1 -1
- package/dist/src/components/FileName/FileName.d.ts +17 -5
- package/dist/src/components/FolderName/FolderName.d.ts +2 -2
- package/dist/src/components/FormItem/FormItem.d.ts +9 -9
- package/dist/src/components/FormItem/constants.d.ts +1 -1
- package/dist/src/components/FormPopup/FormPopup.d.ts +1 -1
- package/dist/src/components/FormPopup/constants.d.ts +1 -1
- package/dist/src/components/Grid/Grid.d.ts +10 -3
- package/dist/src/components/Grid/constants.d.ts +1 -1
- package/dist/src/components/Grid/renderers/DateCellRenderer.d.ts +3 -3
- package/dist/src/components/Grid/renderers/constants.d.ts +1 -1
- package/dist/src/components/Icon/Icon.d.ts +0 -1
- package/dist/src/components/Input/Input.d.ts +4 -4
- package/dist/src/components/InputField/InputField.d.ts +3 -3
- package/dist/src/components/InputPopup/InputPopup.d.ts +6 -6
- package/dist/src/components/Loader/Loader.d.ts +5 -5
- package/dist/src/components/Loader/constants.d.ts +2 -2
- package/dist/src/components/NoDataContent/NoDataContent.d.ts +6 -3
- package/dist/src/components/PasswordInput/PasswordInputField.d.ts +1 -1
- package/dist/src/components/Popup/Popup.d.ts +6 -6
- package/dist/src/components/Popup/constants.d.ts +3 -3
- package/dist/src/components/RadioButton/RadioButton.d.ts +6 -6
- package/dist/src/components/RadioGroup/RadioGroup.d.ts +20 -20
- package/dist/src/components/RadioGroup/constants.d.ts +3 -3
- package/dist/src/components/RadioGroupPopupField/RadioGroupPopupField.d.ts +2 -2
- package/dist/src/components/RemoveButton/RemoveButton.d.ts +6 -8
- package/dist/src/components/ResizableContainer/ConditionalResizableContainer.d.ts +33 -0
- package/dist/src/components/ResizableContainer/ResizableContainer.d.ts +69 -0
- package/dist/src/components/ResizableContainer/components/ResizeHandle.d.ts +10 -0
- package/dist/src/components/ResizableContainer/components/ResizeIcon.d.ts +8 -0
- package/dist/src/components/Search/Search.d.ts +4 -4
- package/dist/src/components/Search/constants.d.ts +4 -4
- package/dist/src/components/Select/Select.d.ts +9 -3
- package/dist/src/components/Select/constants.d.ts +7 -6
- package/dist/src/components/SelectField/SelectField.d.ts +6 -6
- package/dist/src/components/SharedEntityIndicator/SharedEntityIndicator.d.ts +2 -2
- package/dist/src/components/Skeleton/Skeleton.d.ts +77 -0
- package/dist/src/components/Skeleton/utils.d.ts +2 -0
- package/dist/src/components/Tab/Tab.d.ts +4 -4
- package/dist/src/components/Tabs/Tabs.d.ts +9 -9
- package/dist/src/components/Tag/Tag.d.ts +2 -2
- package/dist/src/components/TextAreaField/TextAreaField.d.ts +3 -3
- package/dist/src/components/Textarea/Textarea.d.ts +4 -4
- package/dist/src/hooks/use-width-breakpoint.d.ts +23 -0
- package/dist/src/index.d.ts +8 -2
- package/dist/src/models/breadcrumb.d.ts +1 -1
- package/dist/src/models/dropdown.d.ts +1 -0
- package/dist/src/models/file-manager.d.ts +15 -0
- package/dist/src/models/file.d.ts +1 -1
- package/dist/src/models/tab.d.ts +2 -1
- package/dist/src/types/dropdown.d.ts +2 -1
- package/dist/src/types/file-manager.d.ts +23 -9
- package/dist/src/types/resizable-container.d.ts +4 -0
- package/dist/src/types/skeleton.d.ts +15 -0
- package/dist/src/types/tab.d.ts +1 -1
- package/package.json +5 -4
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { FC, HTMLAttributes } from 'react';
|
|
2
|
+
import { DialSkeletonVariant, DialSkeletonAvatarSize, DialSkeletonAvatarShape } from '../../types/skeleton';
|
|
3
|
+
export interface DialSkeletonProps extends HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
active?: boolean;
|
|
5
|
+
paragraph?: boolean | {
|
|
6
|
+
rows?: number;
|
|
7
|
+
width?: string | string[];
|
|
8
|
+
};
|
|
9
|
+
avatar?: boolean | {
|
|
10
|
+
size?: number | DialSkeletonAvatarSize;
|
|
11
|
+
shape?: DialSkeletonAvatarShape;
|
|
12
|
+
};
|
|
13
|
+
showTitle?: boolean | {
|
|
14
|
+
width?: string;
|
|
15
|
+
};
|
|
16
|
+
loading?: boolean;
|
|
17
|
+
children?: React.ReactNode;
|
|
18
|
+
variant?: DialSkeletonVariant;
|
|
19
|
+
width?: string | number;
|
|
20
|
+
height?: string | number;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* DialSkeleton
|
|
24
|
+
*
|
|
25
|
+
* A placeholder component to show while content is loading.
|
|
26
|
+
* Provides various skeleton shapes and configurations.
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```tsx
|
|
30
|
+
* // Simple skeleton
|
|
31
|
+
* <DialSkeleton />
|
|
32
|
+
*
|
|
33
|
+
* // Text skeleton with custom size
|
|
34
|
+
* <DialSkeleton variant={DialSkeletonVariant.Text} width="200px" height="20px" />
|
|
35
|
+
*
|
|
36
|
+
* // Circular avatar skeleton
|
|
37
|
+
* <DialSkeleton variant={DialSkeletonVariant.Circular} width={40} height={40} />
|
|
38
|
+
*
|
|
39
|
+
* // Complex skeleton with avatar, showTitle and paragraph
|
|
40
|
+
* <DialSkeleton
|
|
41
|
+
* avatar
|
|
42
|
+
* showTitle
|
|
43
|
+
* paragraph={{ rows: 3 }}
|
|
44
|
+
* active
|
|
45
|
+
* />
|
|
46
|
+
*
|
|
47
|
+
* // Conditional loading
|
|
48
|
+
* <DialSkeleton loading={isLoading}>
|
|
49
|
+
* <div>Your content here</div>
|
|
50
|
+
* </DialSkeleton>
|
|
51
|
+
*
|
|
52
|
+
* // Custom paragraph widths
|
|
53
|
+
* <DialSkeleton
|
|
54
|
+
* paragraph={{ rows: 3, width: ['100%', '80%', '60%'] }}
|
|
55
|
+
* />
|
|
56
|
+
*
|
|
57
|
+
* // Avatar with size and shape
|
|
58
|
+
* <DialSkeleton
|
|
59
|
+
* avatar={{
|
|
60
|
+
* size: DialSkeletonAvatarSize.Large,
|
|
61
|
+
* shape: DialSkeletonAvatarShape.Square
|
|
62
|
+
* }}
|
|
63
|
+
* />
|
|
64
|
+
* ```
|
|
65
|
+
*
|
|
66
|
+
* @param [active=true] - Whether to show the loading animation
|
|
67
|
+
* @param [paragraph=true] - Show paragraph placeholder or configure its appearance
|
|
68
|
+
* @param [avatar=false] - Show avatar placeholder or configure its appearance
|
|
69
|
+
* @param [showTitle=true] - Show title placeholder or configure its appearance
|
|
70
|
+
* @param [loading=true] - Display the skeleton when true
|
|
71
|
+
* @param [children] - Content to be displayed when loading is false
|
|
72
|
+
* @param [variant=DialSkeletonVariant.Default] - Skeleton variant
|
|
73
|
+
* @param [width] - Width of the skeleton
|
|
74
|
+
* @param [height] - Height of the skeleton
|
|
75
|
+
* @param [className] - Additional CSS classes
|
|
76
|
+
*/
|
|
77
|
+
export declare const DialSkeleton: FC<DialSkeletonProps>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
+
import { ButtonHTMLAttributes, FC } from 'react';
|
|
1
2
|
import { TabModel } from '../../models/tab';
|
|
2
|
-
|
|
3
|
-
export interface DialTabProps {
|
|
3
|
+
type NativeButtonProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'onClick' | 'children' | 'type' | 'role' | 'disabled'>;
|
|
4
|
+
export interface DialTabProps extends NativeButtonProps {
|
|
4
5
|
tab: TabModel;
|
|
5
6
|
active: boolean;
|
|
6
7
|
invalid?: boolean;
|
|
7
8
|
horizontal?: boolean;
|
|
8
|
-
cssClass?: string;
|
|
9
9
|
onClick: (id: string) => void;
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
@@ -26,7 +26,7 @@ export interface DialTabProps {
|
|
|
26
26
|
* @param tab - The tab model containing its `id`, `name`, [`disabled`], [`invalid`].
|
|
27
27
|
* @param active - Whether the tab is currently active.
|
|
28
28
|
* @param [horizontal=false] - Whether the tab is displayed in horizontal orientation.
|
|
29
|
-
* @param [cssClass] - Additional CSS classes applied to the tab element.
|
|
30
29
|
* @param onClick - Callback fired when the tab is clicked. Receives the tab’s `id`.
|
|
31
30
|
*/
|
|
32
31
|
export declare const DialTab: FC<DialTabProps>;
|
|
32
|
+
export {};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
import { TabModel } from '../../models/tab';
|
|
3
|
-
import {
|
|
3
|
+
import { ScreenResolution, TabOrientation } from '../../types/tab';
|
|
4
4
|
export interface DialTabsProps {
|
|
5
5
|
tabs: TabModel[];
|
|
6
6
|
activeTab: string;
|
|
7
7
|
onClick: (id: string) => void;
|
|
8
8
|
orientation?: TabOrientation;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
screenThreshold?: ScreenResolution;
|
|
10
|
+
smallScreenContainerClassName?: string;
|
|
11
|
+
smallScreenDropdownItemClassName?: string;
|
|
12
12
|
}
|
|
13
13
|
/**
|
|
14
14
|
* A responsive and overflow-aware tabs component that automatically adapts its layout
|
|
@@ -43,17 +43,17 @@ export interface DialTabsProps {
|
|
|
43
43
|
* @param activeTab - The identifier of the currently active tab.
|
|
44
44
|
* @param onClick - Callback fired when a tab is selected. Receives the tab's `id` as an argument.
|
|
45
45
|
* @param [orientation=TabOrientation.Horizontal] - Layout direction of the tabs. Uses the {@link TabOrientation} enum.
|
|
46
|
-
* @param [
|
|
47
|
-
* below which tabs collapse into a dropdown. Uses the {@link
|
|
46
|
+
* @param [screenThreshold=ScreenResolution.Tablet] - Defines the screen size threshold
|
|
47
|
+
* below which tabs collapse into a dropdown. Uses the {@link ScreenRelosution} enum.
|
|
48
48
|
* When set to `Tablet`, both mobile and tablet screens will trigger dropdown mode.
|
|
49
|
-
* @param [
|
|
49
|
+
* @param [smallScreenContainerClassName] - Optional CSS class applied to the dropdown container
|
|
50
50
|
* in small-screen (collapsed) mode.
|
|
51
|
-
* @param [
|
|
51
|
+
* @param [smallScreenDropdownItemClassName] - Optional CSS class applied to individual dropdown
|
|
52
52
|
* items in small-screen mode.
|
|
53
53
|
*
|
|
54
54
|
* @remarks
|
|
55
55
|
* - Automatically detects horizontal overflow via `ResizeObserver` and shows a dropdown when needed.
|
|
56
56
|
* - Smoothly scrolls to keep the active tab visible when navigating.
|
|
57
|
-
* - Switches layout responsively based on `
|
|
57
|
+
* - Switches layout responsively based on `screenThreshold`.
|
|
58
58
|
*/
|
|
59
59
|
export declare const DialTabs: FC<DialTabsProps>;
|
|
@@ -2,7 +2,7 @@ import { TagVariant } from '../../types/tag';
|
|
|
2
2
|
import { FC, MouseEvent, ReactNode } from 'react';
|
|
3
3
|
export interface DialTagProps {
|
|
4
4
|
tag: string;
|
|
5
|
-
|
|
5
|
+
className?: string;
|
|
6
6
|
remove?: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
7
7
|
variant?: TagVariant;
|
|
8
8
|
iconBefore?: ReactNode;
|
|
@@ -22,7 +22,7 @@ export interface DialTagProps {
|
|
|
22
22
|
* ```
|
|
23
23
|
*
|
|
24
24
|
* @param tag - The text label displayed inside the tag.
|
|
25
|
-
* @param [
|
|
25
|
+
* @param [className] - Optional additional CSS classes applied to the tag container.
|
|
26
26
|
* @param [remove] - Optional callback invoked when the remove button is clicked.
|
|
27
27
|
* If not provided, the remove button will not be rendered.
|
|
28
28
|
* @param [variant=TagVariant.Default] - Visual style of the tag. Uses the {@link TagVariant} enum.
|
|
@@ -33,9 +33,9 @@ export interface DialTextAreaFieldProps extends DialInputFieldBaseProps {
|
|
|
33
33
|
* @param [iconBefore] - Icon or element to display before the input
|
|
34
34
|
* @param [iconAfter] - Icon or element to display after the input
|
|
35
35
|
* @param [textBeforeInput] - Text to display before the input
|
|
36
|
-
* @param [
|
|
37
|
-
* @param [
|
|
38
|
-
* @param [
|
|
36
|
+
* @param [elementClassName] - Additional CSS classes to apply to the textarea element
|
|
37
|
+
* @param [containerClassName] - Additional CSS classes to apply to the outer container
|
|
38
|
+
* @param [elementContainerClassName] - Additional CSS classes to apply to the textarea container
|
|
39
39
|
* @param [disableTooltip] - Whether to disable the tooltip that shows the full value on hover
|
|
40
40
|
*/
|
|
41
41
|
export declare const DialTextAreaField: FC<DialTextAreaFieldProps>;
|
|
@@ -3,8 +3,8 @@ export interface DialTextareaProps {
|
|
|
3
3
|
value?: string | number | null;
|
|
4
4
|
placeholder?: string;
|
|
5
5
|
textareaId: string;
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
className?: string;
|
|
7
|
+
containerClassName?: string;
|
|
8
8
|
disabled?: boolean;
|
|
9
9
|
invalid?: boolean;
|
|
10
10
|
readonly?: boolean;
|
|
@@ -28,8 +28,8 @@ export interface DialTextareaProps {
|
|
|
28
28
|
* @param [value] - The current value of the textarea
|
|
29
29
|
* @param [onChange] - Callback function called when the textarea value changes
|
|
30
30
|
* @param [placeholder] - Placeholder text displayed when textarea is empty
|
|
31
|
-
* @param [
|
|
32
|
-
* @param [
|
|
31
|
+
* @param [className=""] - Additional CSS classes to apply to the textarea element
|
|
32
|
+
* @param [containerClassName=""] - Additional CSS classes to apply to the container div
|
|
33
33
|
* @param [disabled=false] - Whether the textarea is disabled
|
|
34
34
|
* @param [readonly=false] - Whether the textarea is read-only (no user input allowed)
|
|
35
35
|
* @param [invalid=false] - Whether the textarea has validation errors (applies error styling)
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A React hook that tracks the width of a DOM element and determines if it is smaller than a specified breakpoint.
|
|
3
|
+
*
|
|
4
|
+
* This hook returns a `ref` to attach to the element you want to observe and a boolean `isBelowBreakpoint`
|
|
5
|
+
* that becomes `true` when the element's width is less than the given `breakpoint`, and `false` otherwise.
|
|
6
|
+
* The value updates automatically when the element is resized.
|
|
7
|
+
*
|
|
8
|
+
* @param {number} breakpoint - The width in pixels used as the threshold. `isBelowBreakpoint` is true when the element's width is less than this value.
|
|
9
|
+
* @returns {{ containerRef: React.RefObject<HTMLElement>, isBelowBreakpoint: boolean }} An object containing the ref to attach to your element and the boolean indicating if it is smaller than the breakpoint.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* const { containerRef, isBelowBreakpoint } = useWidthBreakpoint(600);
|
|
13
|
+
*
|
|
14
|
+
* return (
|
|
15
|
+
* <div ref={containerRef}>
|
|
16
|
+
* {isBelowBreakpoint ? 'Compact view' : 'Full view'}
|
|
17
|
+
* </div>
|
|
18
|
+
* );
|
|
19
|
+
*/
|
|
20
|
+
export declare function useWidthBreakpoint(breakpoint: number): {
|
|
21
|
+
containerRef: import('react').RefObject<HTMLElement | null>;
|
|
22
|
+
isBelowBreakpoint: boolean;
|
|
23
|
+
};
|
package/dist/src/index.d.ts
CHANGED
|
@@ -18,7 +18,10 @@ export { DialFormItem } from './components/FormItem/FormItem';
|
|
|
18
18
|
export { DialSharedEntityIndicator } from './components/SharedEntityIndicator/SharedEntityIndicator';
|
|
19
19
|
export { DialFileName } from './components/FileName/FileName';
|
|
20
20
|
export { DialFolderName } from './components/FolderName/FolderName';
|
|
21
|
-
export {
|
|
21
|
+
export { DialResizableContainer } from './components/ResizableContainer/ResizableContainer';
|
|
22
|
+
export { DialConditionalResizableContainer } from './components/ResizableContainer/ConditionalResizableContainer';
|
|
23
|
+
export { DialSkeleton } from './components/Skeleton/Skeleton';
|
|
24
|
+
export { DialGrid } from './components/Grid/Grid';
|
|
22
25
|
export { DialTabs } from './components/Tabs/Tabs';
|
|
23
26
|
export { DialBreadcrumb } from './components/Breadcrumb/Breadcrumb';
|
|
24
27
|
export { DialBreadcrumbItem } from './components/Breadcrumb/BreadcrumbItem';
|
|
@@ -62,9 +65,11 @@ export { TabOrientation } from './types/tab';
|
|
|
62
65
|
export type { DialBreadcrumbPathItem } from './models/breadcrumb';
|
|
63
66
|
export { FormItemOrientation } from './types/form-item';
|
|
64
67
|
export { SelectSize, SelectVariant } from './types/select';
|
|
65
|
-
export { DialFileManagerTabs, DialFileManagerActions,
|
|
68
|
+
export { DialFileManagerTabs, DialFileManagerActions, FileManagerColumnKey, } from './types/file-manager';
|
|
66
69
|
export { FlexibleActionsDirection } from './types/flexible-actions';
|
|
67
70
|
export { DialItemType } from './types/item';
|
|
71
|
+
export { ResizableContainerSide } from './types/resizable-container';
|
|
72
|
+
export { DialSkeletonVariant, DialSkeletonAvatarSize, DialSkeletonAvatarShape, } from './types/skeleton';
|
|
68
73
|
export { useDialFileManagerTabs } from './components/FileManager/hooks/use-file-manager-tabs';
|
|
69
74
|
export { useEditableItem } from './hooks/use-editable-item';
|
|
70
75
|
export { FileManagerProvider } from './components/FileManager/FileManagerProvider';
|
|
@@ -78,4 +83,5 @@ export type { DropdownItem } from './models/dropdown';
|
|
|
78
83
|
export type { DialModifiedEntity } from './models/base-entity';
|
|
79
84
|
export type { DialFile } from './models/file';
|
|
80
85
|
export { DialFileNodeType, DialFilePermission, DialFileResourceType, } from './models/file';
|
|
86
|
+
export { type DialCopiedItem, type DialDeletedItem, type DialUploadFileItem, } from './models/file-manager';
|
|
81
87
|
export { mergeClasses } from './utils/merge-classes';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { DialFileNodeType } from './file';
|
|
2
|
+
export interface DialCopiedItem {
|
|
3
|
+
sourceUrl: string;
|
|
4
|
+
destinationUrl: string;
|
|
5
|
+
overwrite?: boolean;
|
|
6
|
+
nodeType: DialFileNodeType;
|
|
7
|
+
}
|
|
8
|
+
export interface DialDeletedItem {
|
|
9
|
+
sourceUrl: string;
|
|
10
|
+
nodeType: DialFileNodeType;
|
|
11
|
+
}
|
|
12
|
+
export interface DialUploadFileItem {
|
|
13
|
+
fileContent: File;
|
|
14
|
+
name: string;
|
|
15
|
+
}
|
package/dist/src/models/tab.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { DialFileNodeType } from '../models/file';
|
|
2
1
|
export declare enum DialFileManagerTabs {
|
|
3
2
|
MyFiles = "my_files",
|
|
4
3
|
Shared = "shared",
|
|
@@ -12,13 +11,28 @@ export declare enum DialFileManagerActions {
|
|
|
12
11
|
Download = "download",
|
|
13
12
|
Delete = "delete"
|
|
14
13
|
}
|
|
15
|
-
export
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
14
|
+
export declare enum DialFileManagerConflictActions {
|
|
15
|
+
Replace = "replace",
|
|
16
|
+
Duplicate = "duplicate",
|
|
17
|
+
Cancel = "cancel"
|
|
18
|
+
}
|
|
19
|
+
export declare enum DialFileManagerConflictStrategies {
|
|
20
|
+
ReplaceAll = "replaceAll",
|
|
21
|
+
DuplicateAll = "duplicateAll",
|
|
22
|
+
DecideForEach = "decideForEach"
|
|
23
|
+
}
|
|
24
|
+
export declare enum DestinationFolderMode {
|
|
25
|
+
Copy = "copy",
|
|
26
|
+
Move = "move"
|
|
27
|
+
}
|
|
28
|
+
export declare enum FileManagerRenameTriggerView {
|
|
29
|
+
Tree = "tree",
|
|
30
|
+
Grid = "grid"
|
|
20
31
|
}
|
|
21
|
-
export
|
|
22
|
-
|
|
23
|
-
|
|
32
|
+
export declare enum FileManagerColumnKey {
|
|
33
|
+
Name = "name",
|
|
34
|
+
UpdatedAt = "updatedAt",
|
|
35
|
+
Size = "size",
|
|
36
|
+
Author = "author",
|
|
37
|
+
Actions = "__actions"
|
|
24
38
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare enum DialSkeletonVariant {
|
|
2
|
+
Default = "default",
|
|
3
|
+
Text = "text",
|
|
4
|
+
Circular = "circular",
|
|
5
|
+
Rectangular = "rectangular"
|
|
6
|
+
}
|
|
7
|
+
export declare enum DialSkeletonAvatarSize {
|
|
8
|
+
Small = "small",
|
|
9
|
+
Default = "default",
|
|
10
|
+
Large = "large"
|
|
11
|
+
}
|
|
12
|
+
export declare enum DialSkeletonAvatarShape {
|
|
13
|
+
Circle = "circle",
|
|
14
|
+
Square = "square"
|
|
15
|
+
}
|
package/dist/src/types/tab.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epam/ai-dial-ui-kit",
|
|
3
|
-
"version": "0.5.0-rc.
|
|
3
|
+
"version": "0.5.0-rc.90",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"description": "A modern UI kit for building AI DIAL interfaces with React",
|
|
@@ -59,6 +59,7 @@
|
|
|
59
59
|
"dependencies": {
|
|
60
60
|
"ag-grid-community": "^34.3.0",
|
|
61
61
|
"ag-grid-react": "^34.3.0",
|
|
62
|
+
"re-resizable": "^6.11.2",
|
|
62
63
|
"react-dnd": "^16.0.1",
|
|
63
64
|
"react-dnd-html5-backend": "^16.0.1",
|
|
64
65
|
"tailwind-merge": "^3.3.1"
|
|
@@ -66,7 +67,7 @@
|
|
|
66
67
|
"peerDependencies": {
|
|
67
68
|
"@floating-ui/react": "^0.27.15",
|
|
68
69
|
"@monaco-editor/react": "^4.7.0",
|
|
69
|
-
"@tabler/icons-react": "^3.
|
|
70
|
+
"@tabler/icons-react": "^3.35.0",
|
|
70
71
|
"classnames": "^2.5.1",
|
|
71
72
|
"monaco-editor": "^0.52.2",
|
|
72
73
|
"react": "^19.1.0",
|
|
@@ -113,8 +114,8 @@
|
|
|
113
114
|
"storybook": "^10.0.0",
|
|
114
115
|
"storybook-addon-pseudo-states": "^10.0.0",
|
|
115
116
|
"tailwindcss": "^3.4.17",
|
|
116
|
-
"typescript": "~5.
|
|
117
|
-
"typescript-eslint": "^8.
|
|
117
|
+
"typescript": "~5.9.3",
|
|
118
|
+
"typescript-eslint": "^8.48.0",
|
|
118
119
|
"vite": "^7.1.5",
|
|
119
120
|
"vite-plugin-dts": "^4.5.4",
|
|
120
121
|
"vite-plugin-svgr": "^4.5.0",
|