@epam/ai-dial-ui-kit 0.3.0-rc.4 → 0.3.0-rc.40

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.
Files changed (56) hide show
  1. package/dist/dial-ui-kit.cjs.js +2 -1
  2. package/dist/dial-ui-kit.es.js +7452 -1211
  3. package/dist/index.css +2 -2
  4. package/dist/src/components/Breadcrumb/Breadcrumb.d.ts +41 -0
  5. package/dist/src/components/Breadcrumb/BreadcrumbItem.d.ts +13 -0
  6. package/dist/src/components/Breadcrumb/constants.d.ts +9 -0
  7. package/dist/src/components/Checkbox/Checkbox.d.ts +3 -1
  8. package/dist/src/components/ConfirmationPopup/ConfirmationPopup.d.ts +2 -2
  9. package/dist/src/components/ConfirmationPopup/constants.d.ts +1 -0
  10. package/dist/src/components/DraggableItem/DraggableItem.d.ts +31 -0
  11. package/dist/src/components/DraggableItem/constants.d.ts +3 -0
  12. package/dist/src/components/Dropdown/Dropdown.d.ts +4 -0
  13. package/dist/src/components/EllipsisTooltip/EllipsisTooltip.d.ts +31 -0
  14. package/dist/src/components/EllipsisTooltip/constants.d.ts +1 -0
  15. package/dist/src/components/Field/Field.d.ts +4 -2
  16. package/dist/src/components/FileIcon/FileIcon.d.ts +31 -0
  17. package/dist/src/components/FileIcon/constants.d.ts +9 -0
  18. package/dist/src/components/FormItem/FormItem.d.ts +75 -0
  19. package/dist/src/components/FormItem/constants.d.ts +3 -0
  20. package/dist/src/components/FormPopup/FormPopup.d.ts +44 -0
  21. package/dist/src/components/FormPopup/constants.d.ts +3 -0
  22. package/dist/src/components/Icon/Icon.d.ts +1 -0
  23. package/dist/src/components/Input/Input.d.ts +6 -1
  24. package/dist/src/components/InputField/InputField.d.ts +1 -1
  25. package/dist/src/components/InputPopup/InputPopup.d.ts +3 -3
  26. package/dist/src/components/JsonEditor/JsonEditor.d.ts +2 -2
  27. package/dist/src/components/LoadFileArea/EmptyFileArea.d.ts +52 -0
  28. package/dist/src/components/LoadFileArea/FilledInput.d.ts +30 -0
  29. package/dist/src/components/LoadFileArea/LoadFileArea.d.ts +46 -0
  30. package/dist/src/components/LoadFileArea/LoadFileAreaField.d.ts +51 -0
  31. package/dist/src/components/RadioGroup/RadioGroup.d.ts +0 -1
  32. package/dist/src/components/RadioGroupPopupField/RadioGroupPopupField.d.ts +2 -1
  33. package/dist/src/components/RemoveButton/RemoveButton.d.ts +24 -0
  34. package/dist/src/components/Select/MultiSelectTags.d.ts +8 -0
  35. package/dist/src/components/Select/Select.d.ts +61 -0
  36. package/dist/src/components/Select/constants.d.ts +8 -0
  37. package/dist/src/components/SelectField/SelectField.d.ts +35 -0
  38. package/dist/src/components/SharedEntityIndicator/SharedEntityIndicator.d.ts +25 -0
  39. package/dist/src/components/Tab/Tab.d.ts +35 -0
  40. package/dist/src/components/Tabs/Tabs.d.ts +46 -0
  41. package/dist/src/components/Tabs/constants.d.ts +1 -0
  42. package/dist/src/components/Tag/Tag.d.ts +6 -2
  43. package/dist/src/components/TextAreaField/TextAreaField.d.ts +4 -2
  44. package/dist/src/components/Textarea/Textarea.d.ts +4 -0
  45. package/dist/src/components/Tooltip/TooltipContext.d.ts +4 -4
  46. package/dist/src/hooks/use-is-tablet-screen.d.ts +15 -0
  47. package/dist/src/index.d.ts +22 -0
  48. package/dist/src/models/breadcrumb.d.ts +9 -0
  49. package/dist/src/models/field-control-props.d.ts +1 -0
  50. package/dist/src/models/select.d.ts +7 -0
  51. package/dist/src/models/tab.d.ts +4 -0
  52. package/dist/src/types/form-item.d.ts +4 -0
  53. package/dist/src/types/tab.d.ts +4 -0
  54. package/dist/src/utils/merge-classes.d.ts +3 -0
  55. package/dist/src/utils/mobile.d.ts +14 -0
  56. package/package.json +8 -3
@@ -0,0 +1,7 @@
1
+ import { ReactNode } from 'react';
2
+ export interface SelectOption {
3
+ value: string;
4
+ label: string;
5
+ disabled?: boolean;
6
+ icon?: ReactNode;
7
+ }
@@ -0,0 +1,4 @@
1
+ export interface TabModel {
2
+ id: string;
3
+ name: string;
4
+ }
@@ -0,0 +1,4 @@
1
+ export declare enum FormItemOrientation {
2
+ Vertical = "vertical",
3
+ Horizontal = "horizontal"
4
+ }
@@ -0,0 +1,4 @@
1
+ export declare enum TabOrientation {
2
+ Horizontal = "horizontal",
3
+ Vertical = "vertical"
4
+ }
@@ -0,0 +1,3 @@
1
+ import { default as classNames } from 'classnames';
2
+ /** Merge class names (classnames → tailwind-merge). */
3
+ export declare function mergeClasses(...inputs: Parameters<typeof classNames>): string;
@@ -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.0-rc.4",
3
+ "version": "0.3.0-rc.40",
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 'npm run storybook:css' 'storybook dev -p 6006'",
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 'npm run build-storybook:css' 'storybook build'",
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",
@@ -56,6 +56,11 @@
56
56
  "overrides": {
57
57
  "esbuild": "0.25.9"
58
58
  },
59
+ "dependencies": {
60
+ "react-dnd": "^16.0.1",
61
+ "react-dnd-html5-backend": "^16.0.1",
62
+ "tailwind-merge": "^3.3.1"
63
+ },
59
64
  "peerDependencies": {
60
65
  "@floating-ui/react": "^0.27.15",
61
66
  "@monaco-editor/react": "^4.7.0",