@epam/ai-dial-ui-kit 0.3.0-rc.9 → 0.4.0-rc.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/dial-ui-kit.cjs.js +2 -1
- package/dist/dial-ui-kit.es.js +5791 -2050
- package/dist/index.css +2 -2
- package/dist/src/components/Breadcrumb/Breadcrumb.d.ts +41 -0
- package/dist/src/components/Breadcrumb/BreadcrumbItem.d.ts +13 -0
- package/dist/src/components/Breadcrumb/constants.d.ts +9 -0
- package/dist/src/components/ButtonDropdown/ButtonDropdown.d.ts +23 -0
- package/dist/src/components/ButtonDropdown/constants.d.ts +2 -0
- package/dist/src/components/Checkbox/Checkbox.d.ts +3 -1
- package/dist/src/components/CollapsibleSidebar/CollapsibleSidebar.d.ts +3 -1
- package/dist/src/components/ConfirmationPopup/ConfirmationPopup.d.ts +2 -2
- package/dist/src/components/ConfirmationPopup/constants.d.ts +1 -0
- package/dist/src/components/DraggableItem/DraggableItem.d.ts +31 -0
- package/dist/src/components/DraggableItem/constants.d.ts +3 -0
- package/dist/src/components/Dropdown/Dropdown.d.ts +8 -0
- package/dist/src/components/Dropdown/constants.d.ts +1 -1
- package/dist/src/components/EllipsisTooltip/EllipsisTooltip.d.ts +31 -0
- package/dist/src/components/EllipsisTooltip/constants.d.ts +1 -0
- package/dist/src/components/Field/Field.d.ts +4 -2
- package/dist/src/components/FileIcon/FileIcon.d.ts +31 -0
- package/dist/src/components/FileIcon/constants.d.ts +9 -0
- package/dist/src/components/FileManager/components/FileManagerNavigationPanel/FileManagerNavigationPanel.d.ts +58 -0
- package/dist/src/components/FileManager/components/FileManagerNavigationPanel/constants.d.ts +3 -0
- package/dist/src/components/FileManager/components/FoldersTree/FoldersTree.d.ts +92 -0
- package/dist/src/components/FileManager/components/FoldersTree/constants.d.ts +5 -0
- package/dist/src/components/FileName/FileName.d.ts +20 -0
- package/dist/src/components/FolderName/FolderName.d.ts +21 -0
- package/dist/src/components/FormItem/FormItem.d.ts +64 -0
- package/dist/src/components/FormItem/constants.d.ts +3 -0
- package/dist/src/components/FormPopup/FormPopup.d.ts +44 -0
- package/dist/src/components/FormPopup/constants.d.ts +3 -0
- package/dist/src/components/Grid/Grid.d.ts +90 -0
- package/dist/src/components/Grid/comparators/base-column-comparator.d.ts +3 -0
- package/dist/src/components/Grid/constants.d.ts +26 -0
- package/dist/src/components/Grid/hooks/use-grid-selection.d.ts +12 -0
- package/dist/src/components/Icon/Icon.d.ts +1 -0
- package/dist/src/components/Input/Input.d.ts +18 -24
- package/dist/src/components/InputField/InputField.d.ts +23 -47
- package/dist/src/components/JsonEditor/JsonEditor.d.ts +2 -2
- package/dist/src/components/LoadFileArea/EmptyFileArea.d.ts +52 -0
- package/dist/src/components/LoadFileArea/FilledInput.d.ts +30 -0
- package/dist/src/components/LoadFileArea/LoadFileArea.d.ts +46 -0
- package/dist/src/components/LoadFileArea/LoadFileAreaField.d.ts +51 -0
- package/dist/src/components/PasswordInput/PasswordInputField.d.ts +1 -1
- package/dist/src/components/RadioGroup/RadioGroup.d.ts +19 -4
- package/dist/src/components/RemoveButton/RemoveButton.d.ts +24 -0
- package/dist/src/components/Select/MultiSelectTags.d.ts +8 -0
- package/dist/src/components/Select/Select.d.ts +61 -0
- package/dist/src/components/Select/constants.d.ts +8 -0
- package/dist/src/components/SelectField/SelectField.d.ts +35 -0
- package/dist/src/components/SharedEntityIndicator/SharedEntityIndicator.d.ts +25 -0
- package/dist/src/components/Tab/Tab.d.ts +35 -0
- package/dist/src/components/Tabs/Tabs.d.ts +46 -0
- package/dist/src/components/Tabs/constants.d.ts +1 -0
- package/dist/src/components/Tag/Tag.d.ts +4 -1
- package/dist/src/components/TextAreaField/TextAreaField.d.ts +4 -2
- package/dist/src/components/Textarea/Textarea.d.ts +4 -0
- package/dist/src/components/Tooltip/TooltipContext.d.ts +4 -4
- package/dist/src/constants/storybook/form-item.d.ts +3 -0
- package/dist/src/constants/storybook/input.d.ts +5 -0
- package/dist/src/hooks/use-is-tablet-screen.d.ts +15 -0
- package/dist/src/index.d.ts +28 -0
- package/dist/src/models/base-entity.d.ts +4 -0
- package/dist/src/models/breadcrumb.d.ts +9 -0
- package/dist/src/models/field-control-props.d.ts +34 -2
- package/dist/src/models/file.d.ts +35 -0
- package/dist/src/models/select.d.ts +7 -0
- package/dist/src/models/tab.d.ts +5 -0
- package/dist/src/types/form-item.d.ts +33 -0
- package/dist/src/types/tab.d.ts +4 -0
- package/dist/src/utils/merge-classes.d.ts +3 -0
- package/dist/src/utils/mobile.d.ts +14 -0
- package/package.json +14 -10
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { DialModifiedEntity } from './base-entity';
|
|
2
|
+
export interface DialFile extends DialModifiedEntity {
|
|
3
|
+
bucket?: string;
|
|
4
|
+
contentLength?: number;
|
|
5
|
+
contentType?: string;
|
|
6
|
+
nodeType: DialFileNodeType;
|
|
7
|
+
parentPath?: string | null;
|
|
8
|
+
resourceType?: DialFileResourceType;
|
|
9
|
+
url?: string;
|
|
10
|
+
items?: DialFile[];
|
|
11
|
+
path: string;
|
|
12
|
+
name: string;
|
|
13
|
+
folderId: string;
|
|
14
|
+
author?: string;
|
|
15
|
+
nextToken?: string;
|
|
16
|
+
extension?: string;
|
|
17
|
+
id?: string;
|
|
18
|
+
permissions?: DialFilePermission[];
|
|
19
|
+
}
|
|
20
|
+
export declare enum DialFileNodeType {
|
|
21
|
+
ITEM = "item",
|
|
22
|
+
FOLDER = "folder"
|
|
23
|
+
}
|
|
24
|
+
export declare enum DialFileResourceType {
|
|
25
|
+
FILE = "FILE",
|
|
26
|
+
PROMPT = "PROMPT",
|
|
27
|
+
CONVERSATION = "CONVERSATION",
|
|
28
|
+
APPLICATION = "APPLICATION",
|
|
29
|
+
TOOLSET = "TOOL_SET"
|
|
30
|
+
}
|
|
31
|
+
export declare enum DialFilePermission {
|
|
32
|
+
READ = "READ",
|
|
33
|
+
WRITE = "WRITE",
|
|
34
|
+
SHARE = "SHARE"
|
|
35
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Orientation options for form item layout
|
|
4
|
+
*
|
|
5
|
+
* @param Vertical - Vertical layout with label above the input
|
|
6
|
+
* @param Horizontal - Horizontal layout with label beside the input
|
|
7
|
+
*/
|
|
8
|
+
export declare enum FormItemOrientation {
|
|
9
|
+
Vertical = "vertical",
|
|
10
|
+
Horizontal = "horizontal"
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Base properties for form item components providing layout, labeling, and validation display
|
|
14
|
+
*
|
|
15
|
+
* @param label - The label text or element to display for the form item
|
|
16
|
+
* @param optional - Whether the field is optional (displays optional indicator)
|
|
17
|
+
* @param optionalText - Custom text to display for optional fields (default: "(Optional)")
|
|
18
|
+
* @param description - Description text to display below the label
|
|
19
|
+
* @param error - Error message, element, or boolean indicating validation state
|
|
20
|
+
* @param captionDescription - Additional caption or description text
|
|
21
|
+
* @param readonly - Whether the form item is in read-only mode
|
|
22
|
+
* @param orientation - Layout orientation for the form item
|
|
23
|
+
*/
|
|
24
|
+
export interface DialFormItemBaseProps {
|
|
25
|
+
label?: string | ReactNode;
|
|
26
|
+
optional?: boolean;
|
|
27
|
+
optionalText?: string;
|
|
28
|
+
description?: string;
|
|
29
|
+
error?: string | ReactNode | boolean;
|
|
30
|
+
captionDescription?: string;
|
|
31
|
+
readonly?: boolean;
|
|
32
|
+
orientation?: FormItemOrientation;
|
|
33
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Checks if the current viewport width is within the "medium" (tablet) screen range.
|
|
3
|
+
*
|
|
4
|
+
* Specifically, it returns `true` if the window width is less than 1024 pixels.
|
|
5
|
+
* Safely handles server-side rendering by verifying that `window` is defined.
|
|
6
|
+
*
|
|
7
|
+
* @returns {boolean} `true` if the viewport width is less than 1024px, otherwise `false`.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* if (isMediumScreen()) {
|
|
11
|
+
* console.log('Tablet or smaller screen detected');
|
|
12
|
+
* }
|
|
13
|
+
*/
|
|
14
|
+
export declare const isMediumScreen: () => boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epam/ai-dial-ui-kit",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0-rc.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",
|
|
@@ -37,9 +37,9 @@
|
|
|
37
37
|
"format": "prettier --check .",
|
|
38
38
|
"format-fix": "prettier --write .",
|
|
39
39
|
"preview": "vite preview",
|
|
40
|
-
"storybook": "concurrently
|
|
40
|
+
"storybook": "concurrently \"npm run storybook:css\" \"storybook dev -p 6006\"",
|
|
41
41
|
"storybook:css": "tailwindcss -w -i ./src/styles/tailwind-entry.scss -o ./src/index.css",
|
|
42
|
-
"build-storybook": "concurrently
|
|
42
|
+
"build-storybook": "concurrently \"npm run build-storybook:css\" \"storybook build\"",
|
|
43
43
|
"build-storybook:css": "tailwindcss -m -i ./src/styles/tailwind-entry.scss -o ./src/index.css",
|
|
44
44
|
"prepare": "husky",
|
|
45
45
|
"publish": "node tools/publish-lib.mjs",
|
|
@@ -57,6 +57,10 @@
|
|
|
57
57
|
"esbuild": "0.25.9"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
+
"ag-grid-community": "^34.3.0",
|
|
61
|
+
"ag-grid-react": "^34.3.0",
|
|
62
|
+
"react-dnd": "^16.0.1",
|
|
63
|
+
"react-dnd-html5-backend": "^16.0.1",
|
|
60
64
|
"tailwind-merge": "^3.3.1"
|
|
61
65
|
},
|
|
62
66
|
"peerDependencies": {
|
|
@@ -73,10 +77,10 @@
|
|
|
73
77
|
"@eslint/compat": "^1.3.1",
|
|
74
78
|
"@eslint/eslintrc": "^3.3.1",
|
|
75
79
|
"@eslint/js": "^9.31.0",
|
|
76
|
-
"@storybook/addon-a11y": "^9.1.
|
|
77
|
-
"@storybook/addon-docs": "^9.1.
|
|
78
|
-
"@storybook/addon-vitest": "^9.1.
|
|
79
|
-
"@storybook/react-vite": "^9.1.
|
|
80
|
+
"@storybook/addon-a11y": "^9.1.13",
|
|
81
|
+
"@storybook/addon-docs": "^9.1.13",
|
|
82
|
+
"@storybook/addon-vitest": "^9.1.13",
|
|
83
|
+
"@storybook/react-vite": "^9.1.13",
|
|
80
84
|
"@testing-library/dom": "^10.4.0",
|
|
81
85
|
"@testing-library/react": "^16.3.0",
|
|
82
86
|
"@types/jsdom": "^21.1.7",
|
|
@@ -95,7 +99,7 @@
|
|
|
95
99
|
"eslint-plugin-react": "7.37.5",
|
|
96
100
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
97
101
|
"eslint-plugin-react-refresh": "^0.4.20",
|
|
98
|
-
"eslint-plugin-storybook": "^9.1.
|
|
102
|
+
"eslint-plugin-storybook": "^9.1.13",
|
|
99
103
|
"eslint-plugin-tailwindcss": "^3.18.2",
|
|
100
104
|
"globals": "^16.3.0",
|
|
101
105
|
"husky": "^9.1.7",
|
|
@@ -106,8 +110,8 @@
|
|
|
106
110
|
"prettier": "3.6.2",
|
|
107
111
|
"sass": "^1.89.2",
|
|
108
112
|
"sass-embedded": "^1.89.2",
|
|
109
|
-
"storybook": "^9.1.
|
|
110
|
-
"storybook-addon-pseudo-states": "^9.1.
|
|
113
|
+
"storybook": "^9.1.13",
|
|
114
|
+
"storybook-addon-pseudo-states": "^9.1.13",
|
|
111
115
|
"tailwindcss": "^3.4.17",
|
|
112
116
|
"typescript": "~5.8.3",
|
|
113
117
|
"typescript-eslint": "^8.35.1",
|