@epam/ai-dial-ui-kit 0.8.2 → 0.9.0-dev.66
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 +9 -2
- package/dist/.cursor/hooks/post-write-verify.d.ts +1 -0
- package/dist/components-manifest.json +4699 -0
- package/dist/dial-ui-kit.cjs.js +40 -35
- package/dist/dial-ui-kit.es.js +21680 -18410
- package/dist/index.css +2 -2
- package/dist/mcp-server.cjs +357 -0
- package/dist/src/components/Alert/Alert.d.ts +1 -0
- package/dist/src/components/Alert/constants.d.ts +1 -1
- package/dist/src/components/AutocompleteInput/AutocompleteInputValue.d.ts +8 -3
- package/dist/src/components/Breadcrumb/Breadcrumb.d.ts +1 -0
- package/dist/src/components/Breadcrumb/BreadcrumbItem.d.ts +1 -1
- package/dist/src/components/Breadcrumb/constants.d.ts +1 -1
- package/dist/src/components/Button/Button.d.ts +1 -0
- package/dist/src/components/ButtonDropdown/ButtonDropdown.d.ts +1 -0
- package/dist/src/components/CaptionText/CaptionText.d.ts +1 -0
- package/dist/src/components/Checkbox/Checkbox.d.ts +1 -0
- package/dist/src/components/CloseButton/CloseButton.d.ts +1 -0
- package/dist/src/components/CollapsibleSidebar/CollapsibleSidebar.d.ts +2 -0
- package/dist/src/components/ConfirmationPopup/ConfirmationPopup.d.ts +1 -0
- package/dist/src/components/DraggableItem/DraggableItem.d.ts +1 -0
- package/dist/src/components/Dropdown/Dropdown.d.ts +2 -0
- package/dist/src/components/EllipsisTooltip/EllipsisTooltip.d.ts +2 -0
- package/dist/src/components/FileIcon/FileIcon.d.ts +1 -0
- package/dist/src/components/FileManager/FileManager.d.ts +20 -15
- package/dist/src/components/FileManager/FileManagerContext.d.ts +3 -0
- package/dist/src/components/FileManager/FileManagerProvider.d.ts +1 -0
- package/dist/src/components/FileManager/FileManagerTooltip.d.ts +11 -0
- package/dist/src/components/FileManager/components/DestinationFolderPopup/DestinationFolderPopup.d.ts +2 -0
- package/dist/src/components/FileManager/errors.d.ts +3 -0
- package/dist/src/components/FileManager/hooks/use-bulk-actions.d.ts +2 -1
- package/dist/src/components/FileManager/hooks/use-file-manager-columns.d.ts +1 -0
- package/dist/src/components/FileManager/hooks/use-file-upload.d.ts +13 -0
- package/dist/src/components/FileManager/hooks/use-folder-creation.d.ts +1 -0
- package/dist/src/components/FileManager/utils.d.ts +4 -0
- package/dist/src/components/FileManager/utils.spec.d.ts +1 -0
- package/dist/src/components/FileName/FileName.d.ts +2 -0
- package/dist/src/components/FolderName/FolderName.d.ts +2 -0
- package/dist/src/components/FormItem/FormItem.d.ts +1 -0
- package/dist/src/components/FormPopup/FormPopup.d.ts +1 -0
- package/dist/src/components/Grid/Grid.d.ts +2 -3
- package/dist/src/components/Icon/Icon.d.ts +1 -0
- package/dist/src/components/IconButton/IconButton.d.ts +1 -0
- package/dist/src/components/Input/Input.d.ts +1 -0
- package/dist/src/components/InputPopup/InputPopup.d.ts +7 -0
- package/dist/src/components/Label/Label.d.ts +1 -0
- package/dist/src/components/LabelledText/LabelledText.d.ts +1 -0
- package/dist/src/components/LoadFileArea/LoadFileArea.d.ts +2 -0
- package/dist/src/components/LoadFileArea/LoadFileAreaField.d.ts +2 -0
- package/dist/src/components/Loader/Loader.d.ts +1 -0
- package/dist/src/components/NoDataContent/NoDataContent.d.ts +1 -0
- package/dist/src/components/NumberInput/NumberInput.d.ts +8 -0
- package/dist/src/components/PasswordInput/PasswordInput.d.ts +1 -0
- package/dist/src/components/Popup/Popup.d.ts +1 -0
- package/dist/src/components/RadioButton/RadioButton.d.ts +1 -0
- package/dist/src/components/RadioGroup/RadioGroup.d.ts +1 -0
- package/dist/src/components/RadioGroupPopupField/RadioGroupPopupField.d.ts +3 -0
- package/dist/src/components/RemoveButton/RemoveButton.d.ts +1 -0
- package/dist/src/components/ResizableContainer/ConditionalResizableContainer.d.ts +1 -0
- package/dist/src/components/ResizableContainer/ResizableContainer.d.ts +2 -0
- package/dist/src/components/Search/Search.d.ts +2 -0
- package/dist/src/components/Select/Select.d.ts +2 -0
- package/dist/src/components/Select/constants.d.ts +2 -2
- package/dist/src/components/SelectField/SelectField.d.ts +1 -0
- package/dist/src/components/SharedEntityIndicator/SharedEntityIndicator.d.ts +1 -0
- package/dist/src/components/Skeleton/Skeleton.d.ts +1 -0
- package/dist/src/components/Steps/Steps.d.ts +1 -0
- package/dist/src/components/Switch/Switch.d.ts +1 -0
- package/dist/src/components/Tabs/Tabs.d.ts +2 -0
- package/dist/src/components/Tag/Tag.d.ts +2 -0
- package/dist/src/components/TagInput/TagInput.d.ts +9 -1
- package/dist/src/components/Textarea/Textarea.d.ts +1 -0
- package/dist/src/components/Tooltip/Tooltip.d.ts +1 -0
- package/dist/src/constants/storybook/input.d.ts +3 -1
- package/dist/src/index.d.ts +1 -1
- package/dist/src/mcp/generate-manifest.d.ts +1 -0
- package/dist/src/mcp/server.d.ts +1 -0
- package/dist/src/mcp/types.d.ts +54 -0
- package/dist/src/types/file-manager.d.ts +2 -1
- package/package.json +25 -5
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export declare const selectTriggerBaseClassName = "dial-input flex w-full items-center justify-between gap-2 dial-small cursor-pointer";
|
|
1
|
+
export declare const selectTriggerBaseClassName = "dial-input flex w-full items-center justify-between gap-2 dial-small-text cursor-pointer";
|
|
2
2
|
export declare const selectOverlayBaseClassName = "w-full rounded flex flex-col";
|
|
3
|
-
export declare const selectOptionBaseClassName = "flex w-full items-center justify-between gap-2 px-3 h-[34px] dial-small text-primary truncate hover:bg-accent-primary-alpha focus:bg-accent-primary-alpha focus:outline-none";
|
|
3
|
+
export declare const selectOptionBaseClassName = "flex w-full items-center justify-between gap-2 px-3 h-[34px] dial-small-text text-primary truncate hover:bg-accent-primary-alpha focus:bg-accent-primary-alpha focus:outline-none";
|
|
4
4
|
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";
|
|
@@ -8,6 +8,7 @@ export interface DialSelectFieldProps extends Omit<DialSelectProps, 'className'
|
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* A Select field wrapper that composes `DialFormItem` and `DialSelect`.
|
|
11
|
+
* aliases: SelectInput|ComboField
|
|
11
12
|
*
|
|
12
13
|
* Provides unified label, description, error rendering and a readonly view that shows
|
|
13
14
|
* the selected option labels (comma-separated in single mode, list in multiple).
|
|
@@ -21,6 +21,7 @@ export interface DialSkeletonProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
23
|
* DialSkeleton
|
|
24
|
+
* aliases: PlaceholderUI|ShimmerLoader
|
|
24
25
|
*
|
|
25
26
|
* A placeholder component to show while content is loading.
|
|
26
27
|
* Provides various skeleton shapes and configurations.
|
|
@@ -14,6 +14,8 @@ export interface DialTabsProps {
|
|
|
14
14
|
}
|
|
15
15
|
/**
|
|
16
16
|
* A responsive and overflow-aware tabs component that automatically adapts its layout
|
|
17
|
+
* aliases: TabNavigation|TabBar
|
|
18
|
+
*
|
|
17
19
|
* between a scrollable tab bar and a dropdown menu on smaller screens.
|
|
18
20
|
*
|
|
19
21
|
* When there are too many tabs to fit in a single line, it introduces a dropdown button
|
|
@@ -10,6 +10,8 @@ export interface DialTagProps {
|
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
12
|
* A small tag component used to display labeled items such as categories, filters, or selections.
|
|
13
|
+
* aliases: Badge|Chip
|
|
14
|
+
*
|
|
13
15
|
* Optionally supports removal via a close button and multiple colors variants defined by {@link TagVariant}.
|
|
14
16
|
*
|
|
15
17
|
* @example
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
import { DialLabelProps } from '../Label/Label';
|
|
3
3
|
export interface DialTagInputProps extends DialLabelProps {
|
|
4
|
-
elementId
|
|
4
|
+
elementId?: string;
|
|
5
5
|
initialTags?: string[];
|
|
6
6
|
placeholder?: string;
|
|
7
7
|
captionDescription?: string;
|
|
@@ -9,10 +9,15 @@ export interface DialTagInputProps extends DialLabelProps {
|
|
|
9
9
|
invalid?: boolean;
|
|
10
10
|
disabled?: boolean;
|
|
11
11
|
collapseTagOverflow?: boolean;
|
|
12
|
+
readOnly?: boolean;
|
|
13
|
+
containerClassName?: string;
|
|
14
|
+
tagClassName?: string;
|
|
12
15
|
onChange?: (tags: string[]) => void;
|
|
13
16
|
}
|
|
14
17
|
/**
|
|
15
18
|
* A tag input field that allows users to add multiple tags using the Enter or comma key.
|
|
19
|
+
* aliases: MultiTag|TagField
|
|
20
|
+
*
|
|
16
21
|
* Supports removing tags, displaying field labels, optional indicators, validation states,
|
|
17
22
|
* and dynamic layout adjustment when tags wrap to multiple lines.
|
|
18
23
|
*
|
|
@@ -38,6 +43,9 @@ export interface DialTagInputProps extends DialLabelProps {
|
|
|
38
43
|
* @param [invalid=false] - Whether the field should be styled as invalid.
|
|
39
44
|
* @param [disabled=false] - Whether the input and remove buttons are disabled.
|
|
40
45
|
* @param [collapseTagOverflow=false] - When true, keeps tags on one line and shows `+N` for overflow.
|
|
46
|
+
* @param [readOnly=false] - When true, hides the text input (no new tags can be added). The outer wrapper and label/caption are also omitted so the component can be embedded inside an existing container.
|
|
47
|
+
* @param [containerClassName] - Additional CSS classes applied to the tag container (the flex row wrapping all tags).
|
|
48
|
+
* @param [tagClassName] - Additional CSS classes applied to each individual tag.
|
|
41
49
|
* @param [onChange] - Callback fired whenever the tag list changes (tag added or removed).
|
|
42
50
|
*/
|
|
43
51
|
export declare const DialTagInput: FC<DialTagInputProps>;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { ArgTypes } from '@storybook/react';
|
|
2
2
|
import { DialInputProps } from '../../components/Input/Input';
|
|
3
3
|
export declare const inputBaseArgTypes: Partial<ArgTypes<DialInputProps>>;
|
|
4
|
-
export declare const numberInputBaseArgTypes: Partial<ArgTypes<DialInputProps
|
|
4
|
+
export declare const numberInputBaseArgTypes: Partial<ArgTypes<DialInputProps>> & {
|
|
5
|
+
integer?: ArgTypes[string];
|
|
6
|
+
};
|
package/dist/src/index.d.ts
CHANGED
|
@@ -93,5 +93,5 @@ export { GridSelectionMode } from './models/selection-mode';
|
|
|
93
93
|
export { mergeClasses } from './utils/merge-classes';
|
|
94
94
|
export { wrapInRootFolder } from './utils/flat-to-hierarchy-convertor.ts';
|
|
95
95
|
export { NAME_COLUMN, SIZE_COLUMN, UPDATED_AT_COLUMN, } from './constants/file-grid-columns';
|
|
96
|
-
export
|
|
96
|
+
export { DIAL_ICON_SIZE, BASE_ICON_PROPS, BASE_ICON_SIZE, } from './constants/icon.ts';
|
|
97
97
|
export { NOT_ALLOWED_SYMBOLS, NOT_ALLOWED_SPACES, NOT_ALLOWED_SYMBOLS_REGEXP, NOT_ALLOWED_SPACES_REGEXP, } from './constants/validation.ts';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
export interface PropEntry {
|
|
2
|
+
name: string;
|
|
3
|
+
type: string;
|
|
4
|
+
required: boolean;
|
|
5
|
+
defaultValue?: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface ComponentEntry {
|
|
9
|
+
name: string;
|
|
10
|
+
category: string;
|
|
11
|
+
description: string;
|
|
12
|
+
props: PropEntry[];
|
|
13
|
+
examples: string[];
|
|
14
|
+
sourceFile: string;
|
|
15
|
+
}
|
|
16
|
+
export interface TypeMember {
|
|
17
|
+
name: string;
|
|
18
|
+
value: string;
|
|
19
|
+
comment?: string;
|
|
20
|
+
}
|
|
21
|
+
export interface TypeEntry {
|
|
22
|
+
name: string;
|
|
23
|
+
kind: 'enum' | 'interface' | 'type';
|
|
24
|
+
description?: string;
|
|
25
|
+
members?: TypeMember[];
|
|
26
|
+
typeBody?: string;
|
|
27
|
+
sourceFile: string;
|
|
28
|
+
}
|
|
29
|
+
export interface ExportEntry {
|
|
30
|
+
name: string;
|
|
31
|
+
description?: string;
|
|
32
|
+
signature?: string;
|
|
33
|
+
sourceFile: string;
|
|
34
|
+
}
|
|
35
|
+
export interface KitInfo {
|
|
36
|
+
name: string;
|
|
37
|
+
description: string;
|
|
38
|
+
installation: string;
|
|
39
|
+
cssImport: string;
|
|
40
|
+
peerDependencies: Record<string, string>;
|
|
41
|
+
setupNotes: string;
|
|
42
|
+
}
|
|
43
|
+
export interface Manifest {
|
|
44
|
+
version: string;
|
|
45
|
+
generatedAt: string;
|
|
46
|
+
kit: KitInfo;
|
|
47
|
+
styles: string;
|
|
48
|
+
theming: string;
|
|
49
|
+
components: ComponentEntry[];
|
|
50
|
+
types: TypeEntry[];
|
|
51
|
+
hooks: ExportEntry[];
|
|
52
|
+
utils: ExportEntry[];
|
|
53
|
+
constants: ExportEntry[];
|
|
54
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epam/ai-dial-ui-kit",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0-dev.66",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"description": "A modern UI kit for building AI DIAL interfaces with React",
|
|
@@ -20,6 +20,9 @@
|
|
|
20
20
|
"default": "./dist/index.css"
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
|
+
"bin": {
|
|
24
|
+
"ai-dial-ui-kit-mcp": "./dist/mcp-server.cjs"
|
|
25
|
+
},
|
|
23
26
|
"files": [
|
|
24
27
|
"dist"
|
|
25
28
|
],
|
|
@@ -32,12 +35,17 @@
|
|
|
32
35
|
],
|
|
33
36
|
"scripts": {
|
|
34
37
|
"dev": "vite",
|
|
35
|
-
"build": "vite build && npm run build:css",
|
|
38
|
+
"build": "vite build && npm run build:css && npm run build:manifest && npm run build:mcp",
|
|
36
39
|
"build:css": "tailwindcss -m -i ./src/styles/tailwind-entry.scss -o ./dist/index.css",
|
|
40
|
+
"build:manifest": "tsx src/mcp/generate-manifest.ts",
|
|
41
|
+
"build:mcp": "node tools/build-mcp.mjs",
|
|
37
42
|
"lint": "eslint . --ext ts,tsx --fix --report-unused-disable-directives --max-warnings 0",
|
|
43
|
+
"lint:check": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
|
44
|
+
"typecheck": "tsc --noEmit",
|
|
45
|
+
"test:run": "vitest run",
|
|
46
|
+
"verify:agent-hook": "npm run typecheck && npm run lint:check && npm run test:run",
|
|
38
47
|
"format": "prettier --check .",
|
|
39
48
|
"format-fix": "prettier --write .",
|
|
40
|
-
"typecheck": "tsc --noEmit",
|
|
41
49
|
"preview": "vite preview",
|
|
42
50
|
"storybook": "concurrently \"npm run storybook:css\" \"storybook dev -p 6006\"",
|
|
43
51
|
"storybook:css": "tailwindcss -w -i ./src/styles/tailwind-entry.scss -o ./src/index.css",
|
|
@@ -56,12 +64,13 @@
|
|
|
56
64
|
]
|
|
57
65
|
},
|
|
58
66
|
"overrides": {
|
|
59
|
-
"esbuild": "0.25.9",
|
|
60
|
-
"lodash": "4.18.
|
|
67
|
+
"esbuild": "^0.25.9",
|
|
68
|
+
"lodash": "4.18.1"
|
|
61
69
|
},
|
|
62
70
|
"dependencies": {
|
|
63
71
|
"ag-grid-community": "^34.3.0",
|
|
64
72
|
"ag-grid-react": "^34.3.0",
|
|
73
|
+
"mime-types": "^3.0.2",
|
|
65
74
|
"re-resizable": "^6.11.2",
|
|
66
75
|
"react-dnd": "^16.0.1",
|
|
67
76
|
"react-dnd-html5-backend": "^16.0.1",
|
|
@@ -69,6 +78,7 @@
|
|
|
69
78
|
},
|
|
70
79
|
"peerDependencies": {
|
|
71
80
|
"@floating-ui/react": "^0.27.16",
|
|
81
|
+
"@modelcontextprotocol/sdk": "^1.12.0",
|
|
72
82
|
"@monaco-editor/react": "^4.7.0",
|
|
73
83
|
"@tabler/icons-react": "^3.36.1",
|
|
74
84
|
"@uiw/react-markdown-preview": "^5.1.5",
|
|
@@ -78,11 +88,17 @@
|
|
|
78
88
|
"react": "^19.1.0",
|
|
79
89
|
"react-dom": "^19.1.0"
|
|
80
90
|
},
|
|
91
|
+
"peerDependenciesMeta": {
|
|
92
|
+
"@modelcontextprotocol/sdk": {
|
|
93
|
+
"optional": true
|
|
94
|
+
}
|
|
95
|
+
},
|
|
81
96
|
"devDependencies": {
|
|
82
97
|
"@chromatic-com/storybook": "^4.1.3",
|
|
83
98
|
"@eslint/compat": "^1.3.1",
|
|
84
99
|
"@eslint/eslintrc": "^3.3.1",
|
|
85
100
|
"@eslint/js": "^9.31.0",
|
|
101
|
+
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
86
102
|
"@storybook/addon-a11y": "^10.2.17",
|
|
87
103
|
"@storybook/addon-docs": "^10.2.17",
|
|
88
104
|
"@storybook/addon-vitest": "^10.2.17",
|
|
@@ -90,6 +106,8 @@
|
|
|
90
106
|
"@testing-library/dom": "^10.4.0",
|
|
91
107
|
"@testing-library/react": "^16.3.0",
|
|
92
108
|
"@types/jsdom": "^21.1.7",
|
|
109
|
+
"@types/mime-types": "^3.0.1",
|
|
110
|
+
"@types/node": "^22.15.30",
|
|
93
111
|
"@types/react": "^19.1.8",
|
|
94
112
|
"@types/react-dom": "^19.1.6",
|
|
95
113
|
"@vitejs/plugin-react": "^4.6.0",
|
|
@@ -97,6 +115,7 @@
|
|
|
97
115
|
"@vitest/coverage-v8": "^3.2.4",
|
|
98
116
|
"autoprefixer": "^10.4.21",
|
|
99
117
|
"concurrently": "^9.2.0",
|
|
118
|
+
"esbuild": "^0.25.9",
|
|
100
119
|
"eslint": "^9.30.1",
|
|
101
120
|
"eslint-config-prettier": "^10.1.8",
|
|
102
121
|
"eslint-plugin-import": "2.32.0",
|
|
@@ -119,6 +138,7 @@
|
|
|
119
138
|
"storybook": "^10.2.17",
|
|
120
139
|
"storybook-addon-pseudo-states": "^10.2.17",
|
|
121
140
|
"tailwindcss": "^3.4.17",
|
|
141
|
+
"tsx": "^4.20.5",
|
|
122
142
|
"typescript": "~5.9.3",
|
|
123
143
|
"typescript-eslint": "^8.48.0",
|
|
124
144
|
"vite": "^7.1.5",
|