@epam/ai-dial-ui-kit 0.11.0 → 0.12.0-dev.10

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 (33) hide show
  1. package/dist/{JsonEditor-DXjZmR_y.cjs → JsonEditor-BhR7MuU7.cjs} +1 -1
  2. package/dist/{JsonEditor-DmQjahdQ.js → JsonEditor-Dol9dB16.js} +1 -1
  3. package/dist/{MarkdownEditor-BRvU8Bbp.js → MarkdownEditor-CdHBKlsl.js} +1 -1
  4. package/dist/{MarkdownEditor-CN5ZmbT1.cjs → MarkdownEditor-Ck3Pqb3Q.cjs} +1 -1
  5. package/dist/components-manifest.json +163 -3
  6. package/dist/dial-ui-kit.cjs.js +1 -1
  7. package/dist/dial-ui-kit.es.js +135 -126
  8. package/dist/{index-DpHRAg-m.js → index-U9Eh_lOr.js} +11267 -10892
  9. package/dist/index-kuv7v0Dv.cjs +71 -0
  10. package/dist/index.css +2 -2
  11. package/dist/src/components/Accordion/Accordion.d.ts +50 -0
  12. package/dist/src/components/Analytics/Bar/Bar.d.ts +63 -0
  13. package/dist/src/components/Analytics/Bar/utils.d.ts +20 -0
  14. package/dist/src/components/Analytics/Bar/utils.spec.d.ts +1 -0
  15. package/dist/src/components/Analytics/BarGroup/BarGroup.d.ts +39 -0
  16. package/dist/src/components/Analytics/Card/Card.d.ts +52 -0
  17. package/dist/src/components/Analytics/ErrorTag/ErrorTag.d.ts +21 -0
  18. package/dist/src/components/Analytics/Histogram/Histogram.d.ts +44 -0
  19. package/dist/src/components/Analytics/Histogram/utils.d.ts +37 -0
  20. package/dist/src/components/Analytics/Histogram/utils.spec.d.ts +1 -0
  21. package/dist/src/components/Analytics/index.d.ts +13 -0
  22. package/dist/src/components/Dropdown/Dropdown.d.ts +2 -0
  23. package/dist/src/components/FileManager/FileManager.d.ts +1 -0
  24. package/dist/src/components/RadioGroup/RadioGroup.d.ts +2 -0
  25. package/dist/src/components/Slider/Slider.d.ts +3 -0
  26. package/dist/src/components/Tab/Tab.d.ts +4 -0
  27. package/dist/src/components/Tabs/Tabs.d.ts +8 -1
  28. package/dist/src/index.d.ts +16 -1
  29. package/dist/src/models/analytics.d.ts +8 -0
  30. package/dist/src/types/analytics.d.ts +4 -0
  31. package/dist/src/types/tab.d.ts +4 -0
  32. package/package.json +3 -2
  33. package/dist/index-C2evxw2N.cjs +0 -71
@@ -1,10 +1,12 @@
1
1
  import { FC, HTMLAttributes } from 'react';
2
+ import { DialLabelProps } from '../Label/Label';
2
3
  export interface DialSliderProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange'> {
3
4
  value: number;
4
5
  min?: number;
5
6
  max?: number;
6
7
  step?: number;
7
8
  disabled?: boolean;
9
+ labelProps?: DialLabelProps;
8
10
  /** 2-element or 3-element label tuple rendered below the track */
9
11
  labels?: [string, string] | [string, string, string];
10
12
  /** Custom formatter for the thumb value; defaults to fixed-decimal based on step */
@@ -41,6 +43,7 @@ export interface DialSliderProps extends Omit<HTMLAttributes<HTMLDivElement>, 'o
41
43
  * @param [max=1] - Maximum value
42
44
  * @param [step=0.1] - Step increment
43
45
  * @param [disabled=false] - Disables interaction
46
+ * @param [labelProps] - Props forwarded to DialLabel rendered above the slider
44
47
  * @param [labels] - 2 or 3 strings rendered below the track (start, [middle,] end)
45
48
  * @param [formatValue] - Custom value formatter for the thumb display
46
49
  * @param [onChange] - Callback fired with the new value on interaction
@@ -1,11 +1,13 @@
1
1
  import { ButtonHTMLAttributes, FC } from 'react';
2
2
  import { TabModel } from '../../models/tab';
3
+ import { TabView } from '../../types/tab';
3
4
  type NativeButtonProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'onClick' | 'children' | 'type' | 'role' | 'disabled'>;
4
5
  export interface DialTabProps extends NativeButtonProps {
5
6
  tab: TabModel;
6
7
  active: boolean;
7
8
  invalid?: boolean;
8
9
  horizontal?: boolean;
10
+ view?: TabView;
9
11
  onClick: (id: string) => void;
10
12
  }
11
13
  /**
@@ -26,6 +28,8 @@ export interface DialTabProps extends NativeButtonProps {
26
28
  * @param tab - The tab model containing its `id`, `name`, [`disabled`], [`invalid`], [`warning`].
27
29
  * @param active - Whether the tab is currently active.
28
30
  * @param [horizontal=false] - Whether the tab is displayed in horizontal orientation.
31
+ * @param [view=TabView.Default] - Visual style of the tab. Uses the {@link TabView} enum.
32
+ * `Inline` renders a compact pill with a leading check icon when active.
29
33
  * @param onClick - Callback fired when the tab is clicked. Receives the tab’s `id`.
30
34
  */
31
35
  export declare const DialTab: FC<DialTabProps>;
@@ -1,16 +1,20 @@
1
1
  import { FC } from 'react';
2
2
  import { TabModel } from '../../models/tab';
3
- import { ScreenResolution, TabOrientation } from '../../types/tab';
3
+ import { ScreenResolution, TabOrientation, TabView } 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
+ view?: TabView;
10
+ className?: string;
9
11
  screenThreshold?: ScreenResolution;
10
12
  smallScreenContainerClassName?: string;
11
13
  smallScreenDropdownItemClassName?: string;
12
14
  desktopDropdownClassName?: string;
13
15
  desktopTabClassName?: string;
16
+ inlineContainerClassName?: string;
17
+ inlineTabClassName?: string;
14
18
  }
15
19
  /**
16
20
  * A responsive and overflow-aware tabs component that automatically adapts its layout
@@ -47,6 +51,9 @@ export interface DialTabsProps {
47
51
  * @param activeTab - The identifier of the currently active tab.
48
52
  * @param onClick - Callback fired when a tab is selected. Receives the tab's `id` as an argument.
49
53
  * @param [orientation=TabOrientation.Horizontal] - Layout direction of the tabs. Uses the {@link TabOrientation} enum.
54
+ * @param [view=TabView.Default] - Visual style of the tabs. Uses the {@link TabView} enum.
55
+ * `Inline` renders a compact segmented control where the active tab is marked with a
56
+ * leading check icon. The inline view is not responsive and ignores overflow/dropdown logic.
50
57
  * @param [screenThreshold=ScreenResolution.Tablet] - Defines the screen size threshold
51
58
  * below which tabs collapse into a dropdown. Uses the {@link ScreenRelosution} enum.
52
59
  * When set to `Tablet`, both mobile and tablet screens will trigger dropdown mode.
@@ -1,5 +1,20 @@
1
1
  export { DialCaptionText, DialErrorText, } from './components/CaptionText/CaptionText';
2
+ export { DialAnalyticsCard } from './components/Analytics';
3
+ export type { DialAnalyticsCardProps } from './components/Analytics';
4
+ export { AnalyticsCardVariant } from './types/analytics';
5
+ export { DialAnalyticsBar } from './components/Analytics';
6
+ export type { DialAnalyticsBarProps } from './components/Analytics';
7
+ export { DEFAULT_ANALYTICS_BAR_COLOR_MAP } from './components/Analytics';
8
+ export type { AnalyticsBarColorStop } from './models/analytics';
9
+ export { DialAnalyticsErrorTag } from './components/Analytics';
10
+ export type { DialAnalyticsErrorTagProps } from './components/Analytics';
11
+ export { DialAnalyticsBarGroup } from './components/Analytics';
12
+ export type { DialAnalyticsBarGroupProps } from './components/Analytics';
13
+ export { DialAnalyticsHistogram } from './components/Analytics';
14
+ export type { DialAnalyticsHistogramProps } from './components/Analytics';
2
15
  export { DialLabel } from './components/Label/Label';
16
+ export { DialAccordion } from './components/Accordion/Accordion';
17
+ export type { DialAccordionProps } from './components/Accordion/Accordion';
3
18
  export { DialIcon } from './components/Icon/Icon';
4
19
  export { DialNotification } from './components/Notification/Notification.tsx';
5
20
  export { DialLoader } from './components/Loader/Loader';
@@ -79,7 +94,7 @@ export { PopupSize } from './types/popup';
79
94
  export { ConfirmationPopupVariant } from './types/confirmation-popup';
80
95
  export { DropdownType, DropdownTrigger, DropdownItemType, } from './types/dropdown';
81
96
  export { ElementSize } from './types/size';
82
- export { TabOrientation } from './types/tab';
97
+ export { TabOrientation, TabView } from './types/tab';
83
98
  export type { DialBreadcrumbPathItem } from './models/breadcrumb';
84
99
  export { FormItemOrientation } from './types/form-item';
85
100
  export { SelectSize, SelectVariant } from './types/select';
@@ -0,0 +1,8 @@
1
+ export interface AnalyticsBarColorStop {
2
+ /** Lower bound of the band (exclusive), as a ratio of value to maxValue (0–1). */
3
+ from: number;
4
+ /** Upper bound of the band (inclusive), as a ratio of value to maxValue (0–1). */
5
+ to: number;
6
+ /** CSS color applied to the fill when the ratio falls within this band. */
7
+ color: string;
8
+ }
@@ -0,0 +1,4 @@
1
+ export declare enum AnalyticsCardVariant {
2
+ Default = "default",
3
+ Compact = "compact"
4
+ }
@@ -2,6 +2,10 @@ export declare enum TabOrientation {
2
2
  Horizontal = "horizontal",
3
3
  Vertical = "vertical"
4
4
  }
5
+ export declare enum TabView {
6
+ Default = "default",
7
+ Inline = "inline"
8
+ }
5
9
  export declare enum ScreenResolution {
6
10
  Mobile = "mobile",
7
11
  Tablet = "tablet"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epam/ai-dial-ui-kit",
3
- "version": "0.11.0",
3
+ "version": "0.12.0-dev.10",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "description": "A modern UI kit for building AI DIAL interfaces with React",
@@ -71,7 +71,8 @@
71
71
  "lodash": "4.18.1",
72
72
  "dompurify": "3.4.10",
73
73
  "shell-quote": "1.8.4",
74
- "esbuild": "0.28.1"
74
+ "esbuild": "0.28.1",
75
+ "undici": "^6.27.0"
75
76
  },
76
77
  "dependencies": {
77
78
  "ag-grid-community": "^35.2.1",