@epam/ai-dial-ui-kit 0.13.0-dev.51 → 0.13.0-dev.57

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 (30) hide show
  1. package/dist/CHANGELOG.md +6 -0
  2. package/dist/{JsonEditor-DEub-rvC.js → JsonEditor-BCvdqbcv.js} +1 -1
  3. package/dist/{JsonEditor-DQTxe1DT.cjs → JsonEditor-Yy3JFyR4.cjs} +1 -1
  4. package/dist/{MarkdownEditor-C82dEZqh.cjs → MarkdownEditor-BUC6u9en.cjs} +1 -1
  5. package/dist/{MarkdownEditor-DUYWhGV1.cjs → MarkdownEditor-DdvzJy9k.cjs} +1 -1
  6. package/dist/{MarkdownEditor-CoFWPnTQ.js → MarkdownEditor-L5wQ88mr.js} +1 -1
  7. package/dist/{MarkdownEditor-Br2RF_Vk.js → MarkdownEditor-_RQIObYV.js} +1 -1
  8. package/dist/components-manifest.json +36 -17
  9. package/dist/dial-ui-kit.cjs.js +1 -1
  10. package/dist/dial-ui-kit.es.js +1 -1
  11. package/dist/{index-DihiSViu.cjs → index-ARMvZo4h.cjs} +16 -16
  12. package/dist/{index-B06s1Uhp.js → index-DcwG5QhT.js} +2885 -2867
  13. package/dist/index.css +6 -2
  14. package/dist/migration-guides/0.13.0/caption-semi-text-lead-rename.md +82 -0
  15. package/dist/migration-guides/0.13.0/typography-heading-scale-shift.md +93 -0
  16. package/dist/migration-guides/README.md +2 -0
  17. package/dist/src/components/Analytics/Bar/Bar.d.ts +11 -7
  18. package/dist/src/components/Analytics/BarGroup/BarGroup.d.ts +14 -9
  19. package/dist/src/components/New/Button/Button.d.ts +11 -1
  20. package/dist/src/components/New/Button/ButtonWrappers.d.ts +10 -0
  21. package/dist/src/components/New/ButtonDropdown/ButtonDropdown.d.ts +4 -4
  22. package/dist/src/components/New/Calendar/constants.d.ts +2 -2
  23. package/dist/src/components/New/InlineSelect/InlineSelect.d.ts +1 -1
  24. package/dist/src/components/New/Input/Button/constants.d.ts +1 -1
  25. package/dist/src/components/New/Input/Input.d.ts +2 -2
  26. package/dist/src/components/New/Popup/constants.d.ts +1 -1
  27. package/dist/src/components/New/Select/constants.d.ts +1 -1
  28. package/dist/src/components/New/Textarea/Textarea.d.ts +2 -2
  29. package/dist/src/components/New/constants/overlay.d.ts +1 -1
  30. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { ButtonHTMLAttributes, DetailedHTMLProps, FC, ReactNode } from 'react';
1
+ import { ButtonHTMLAttributes, DetailedHTMLProps, FC, HTMLAttributeAnchorTarget, ReactNode } from 'react';
2
2
  import { DialTooltipProps } from '../../Tooltip/Tooltip';
3
3
  import { ButtonAppearance, ButtonVariant } from '../../../types/button';
4
4
  import { ElementSize } from '../../../types/size';
@@ -12,6 +12,9 @@ export interface ButtonProps extends DetailedHTMLProps<ButtonHTMLAttributes<HTML
12
12
  iconBefore?: ReactNode;
13
13
  iconAfter?: ReactNode;
14
14
  tooltipProps?: TooltipProps;
15
+ href?: string;
16
+ target?: HTMLAttributeAnchorTarget;
17
+ rel?: string;
15
18
  }
16
19
  /**
17
20
  * A Button component with flexible icon and text positioning
@@ -50,6 +53,13 @@ export interface ButtonProps extends DetailedHTMLProps<ButtonHTMLAttributes<HTML
50
53
  * @param [textClassName] - Additional CSS classes to apply specifically to the button text
51
54
  * @param [iconAfter] - Icon or element to display after the button text
52
55
  * @param [iconBefore] - Icon or element to display before the button text
56
+ * @param [href] - Destination to navigate to. Renders an `<a>` instead of a
57
+ * `<button>`, so the control keeps the link role, middle-click, and
58
+ * "open in new tab". Pair it with `ButtonAppearance.Link` (or `LinkButton`)
59
+ * unless a button-shaped link is intended.
60
+ * @param [target] - Anchor target, only meaningful alongside `href`
61
+ * @param [rel] - Anchor `rel`. Defaults to `noopener noreferrer` when
62
+ * `target="_blank"`.
53
63
  */
54
64
  export declare const Button: FC<ButtonProps>;
55
65
  export {};
@@ -52,6 +52,16 @@ export declare const DangerButton: FC<ButtonVariantProps>;
52
52
  * />
53
53
  * ```
54
54
  *
55
+ * Pass `href` to navigate: the control then renders a real `<a>`, so it keeps
56
+ * the link role, middle-click, and "open in new tab". Without `href` it stays a
57
+ * `<button>` and needs an `onClick`.
58
+ *
59
+ * @example
60
+ * ```tsx
61
+ * <LinkButton label="Read the docs" href="/docs" />
62
+ * <LinkButton label="Open dashboard" href="https://example.com" target="_blank" />
63
+ * ```
64
+ *
55
65
  * Inherits all properties from the `ButtonProps`
56
66
  */
57
67
  export declare const LinkButton: FC<ButtonAppearanceProps>;
@@ -1,11 +1,11 @@
1
1
  import { FC } from 'react';
2
- import { DialButtonProps } from '../../Button/Button';
3
2
  import { DropdownItem } from '../../../models/dropdown';
4
- export interface ButtonDropdownProps extends Omit<DialButtonProps, 'iconAfter'> {
3
+ import { ButtonProps } from '../Button/Button';
4
+ export interface ButtonDropdownProps extends Omit<ButtonProps, 'iconAfter'> {
5
5
  items: DropdownItem[];
6
6
  }
7
7
  /**
8
- * A Button dropdown component based on DialDropdown component
8
+ * A Button dropdown component based on the Dropdown component
9
9
  * aliases: SplitButton|MenuButton
10
10
  *
11
11
  * @example
@@ -17,7 +17,7 @@ export interface ButtonDropdownProps extends Omit<DialButtonProps, 'iconAfter'>
17
17
  * />
18
18
  * ```
19
19
  *
20
- * Inherits all props from DialButton.
20
+ * Inherits all props from Button.
21
21
  * @param [items] - DropdownItems with actions
22
22
  */
23
23
  export declare const ButtonDropdown: FC<ButtonDropdownProps>;
@@ -1,8 +1,8 @@
1
1
  import { CalendarMode } from '../../../types/calendar';
2
2
  export declare const DEFAULT_CALENDAR_LOCALE = "en-GB";
3
3
  export declare const calendarModeDefaultPlaceholder: Record<CalendarMode, string>;
4
- export declare const calendarFieldBaseClassName = "flex w-full items-center justify-between gap-2 rounded-xl border border-secondary bg-layer-0 px-4 py-3 dial-small-text text-primary outline-none transition-colors hover:border-accent-primary focus-within:border-accent-primary";
5
- export declare const calendarFieldDisabledClassName = "!cursor-not-allowed !border-transparent bg-controls-disable text-controls-primary-disable hover:!border-transparent";
4
+ export declare const calendarFieldBaseClassName = "flex w-full items-center justify-between gap-2 rounded-xl border border-secondary bg-layer-raised px-4 py-3 dial-small-text text-primary outline-none transition-colors hover:border-hover-alpha focus-within:border-focus-blue";
5
+ export declare const calendarFieldDisabledClassName = "!cursor-not-allowed !border-transparent bg-layer-sunken text-control-disable-alpha hover:!border-transparent";
6
6
  export declare const calendarFieldInvalidClassName = "!border-error";
7
7
  export declare const calendarPopoverClassName = "z-[53] flex w-[248px] flex-col gap-4 rounded-lg bg-layer-raised px-3 py-4 shadow-md";
8
8
  export declare const calendarDayButtonBaseClassName = "flex size-8 items-center justify-center rounded-full dial-small-text text-primary hover:bg-control-accent-alpha-hover hover:text-primary focus:outline-none focus-visible:outline focus-visible:outline-focus-black";
@@ -37,7 +37,7 @@ export interface InlineSelectProps {
37
37
  ariaLabel?: string;
38
38
  }
39
39
  /**
40
- * An inline select control combining `InlineSelectTrigger` with `DialDropdown`.
40
+ * An inline select control combining `InlineSelectTrigger` with `Dropdown`.
41
41
  *
42
42
  * @example
43
43
  * ```tsx
@@ -1 +1 @@
1
- export declare const inputButtonClassName = "bg-layer-4 flex items-center justify-center enabled:text-secondary enabled:hover:text-accent-primary enabled:active:bg-controls-accent-primary-alpha-active enabled:hover:bg-accent-primary-alpha enabled:active:text-accent-primary";
1
+ export declare const inputButtonClassName = "bg-control-neutral-active flex items-center justify-center enabled:text-secondary enabled:hover:text-control-blue-hover enabled:active:bg-control-accent-alpha-active enabled:hover:bg-control-accent-alpha-hover enabled:active:text-control-blue-active";
@@ -1,9 +1,9 @@
1
1
  import { FC, InputHTMLAttributes, ReactNode, Ref } from 'react';
2
- import { DialLabelProps } from '../../Label/Label';
3
2
  import { ElementSize } from '../../../types/size';
3
+ import { LabelProps } from '../Label/Label';
4
4
  import { InputButtonProps } from './Button/InputButton';
5
5
  export interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'onChange' | 'size'> {
6
- labelProps?: DialLabelProps;
6
+ labelProps?: LabelProps;
7
7
  inputButtonProps?: InputButtonProps;
8
8
  size?: ElementSize;
9
9
  invalid?: boolean;
@@ -2,7 +2,7 @@ import { PopupSize } from '../../../types/popup';
2
2
  export declare const popupOverlayBaseClassName = "z-[52] flex items-center justify-center bg-backdrop md:p-4 gap-5 p-6";
3
3
  export declare const popupBaseClassName = "relative flex w-full max-h-full flex-col rounded-xl bg-layer-raised md:h-auto";
4
4
  export declare const popupHeaderClassName = "flex flex-row items-center justify-between px-6 py-4";
5
- export declare const popupTitleClassName = "flex-1 min-w-0 mr-3 truncate dial-h2-text text-primary";
5
+ export declare const popupTitleClassName = "flex-1 min-w-0 mr-3 truncate dial-h1-text text-primary";
6
6
  /**
7
7
  * Max widths per size. Full width below the `md` breakpoint, where the popup
8
8
  * fills the screen.
@@ -1,6 +1,6 @@
1
1
  export declare const selectOverlayBaseClassName: string;
2
2
  export declare const selectOptionBaseClassName: string;
3
- export declare const selectOptionSelectedClassName = "bg-accent-primary-alpha";
3
+ export declare const selectOptionSelectedClassName = "bg-control-accent-alpha-hover";
4
4
  /**
5
5
  * Holds the option list to the width of the field.
6
6
  *
@@ -1,7 +1,7 @@
1
1
  import { DetailedHTMLProps, FC, TextareaHTMLAttributes } from 'react';
2
- import { DialLabelProps } from '../../Label/Label';
2
+ import { LabelProps } from '../Label/Label';
3
3
  export interface TextareaProps extends DetailedHTMLProps<Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'onChange'>, HTMLTextAreaElement> {
4
- labelProps?: DialLabelProps;
4
+ labelProps?: LabelProps;
5
5
  invalid?: boolean;
6
6
  containerClassName?: string;
7
7
  resize?: boolean;
@@ -18,7 +18,7 @@ export declare const overlaySubMenuClassName: string;
18
18
  */
19
19
  export declare const overlayItemClassName: string;
20
20
  /** Tint marking the row that is currently selected. */
21
- export declare const overlayItemSelectedClassName = "bg-accent-primary-alpha";
21
+ export declare const overlayItemSelectedClassName = "bg-control-accent-alpha-hover";
22
22
  export declare const overlayItemDisabledClassName = "opacity-75";
23
23
  /** Distance between the trigger and its panel, and between nested panels. */
24
24
  export declare const overlayGap = 4;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epam/ai-dial-ui-kit",
3
- "version": "0.13.0-dev.51",
3
+ "version": "0.13.0-dev.57",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "description": "A modern UI kit for building AI DIAL interfaces with React",