@epam/ai-dial-ui-kit 0.16.0-dev.50 → 0.16.0-dev.54

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/CHANGELOG.md CHANGED
@@ -31,6 +31,8 @@ Versions match the git tags on the `development` branch.
31
31
 
32
32
  ### Added
33
33
 
34
+ - **`FileName` (2.0) — `icon`** — replaces the type icon with your own, for example to mark a special folder in a tree. The icon's wrapper is `aria-hidden`, the `loading` spinner still takes its place, and the shared badge (part of the type icon) is not drawn, while `sharedLabel` still announces the state. Without `icon` nothing changes.
35
+
34
36
  - **`Grid` (2.0) — `appearance` (`GridAppearance.Default` / `Chat`)** — `GridAppearance.Chat` draws the design's "Chat table": a borderless card with a 12px corner and the MD shadow, 12px of padding on both sides of every header and row cell, a full-width 1px line under the header, dividers between data rows that stop at the cell padding on both sides and sit on the 0.5px `stroke-tertiary` stroke, and hover and selected rows with a 12px corner and no divider. It ignores `wrapperBorder`. The root carries `dial-kit-grid-chat`. ai-dial-chat's usage and catalog tables wrapped the grid in their own card and could not inset the dividers or round the rows without restyling ag-Grid's markup. Additive.
35
37
 
36
38
  - **`FormSection` (2.0)** — a titled section of a form or a builder column: a heading with an optional action at its inline end, an optional description and the content, in a `section` named by its heading. `variant` (`FormSectionVariant.Row` / `Caption` / `Setting`) sets the type scale; `headingLevel` (2–6, default 3) picks the heading element so the section fits the host's outline. Quick Apps' builder `SectionRow` and the DIAL Loop editor's copy of it were two copies of it. The root carries `dial-kit-form-section` (`DIAL_KIT_CLASS.formSection`). Additive.
@@ -59,6 +61,8 @@ Versions match the git tags on the `development` branch.
59
61
 
60
62
  ### Changed
61
63
 
64
+ - **`Input`, `Select` and the other `.dial-kit-input` fields (2.0) — the focus ring is drawn inside the border** — the focus and active ring was an outline outside the field (`outline-offset-0`), so a host that wrapped a field in an `overflow: auto` or `hidden` box with no padding saw it cut off on the sides and bottom. The ring is now offset by `-1px`, so it lies over the 1px border, as the design draws it (a 1px `accent-focus` border, no outer ring), and no ancestor can clip it. An invalid field's ring does the same in the error color. Visual only; no prop changes.
65
+
62
66
  - **`shadow-xs` and `shadow-lg` match the design's shadow scale** — `shadow-xs` was `0 1px 4px` blue alpha-20 over a `0 1px 2px` grey layer; it is now a single `0 0 8px 1px` blue alpha-20 halo, so a pressed button glows evenly instead of dropping down. `shadow-lg` was `0 8px 44px 0`; it is now `1px 10px 25px 12px`, same blue alpha-8. `shadow-sm` and `shadow-md` already matched. `--shadow-xs-2` no longer reaches `shadow-xs` and only colours the resting shadow of solid controls (`dial-kit-control-shadow`). Visual only; no token renamed.
63
67
 
64
68
  - **`Popup` (2.0) — the title is set in Heading 2** — the header title moves from `dial-h3-text` to `dial-h2-text`, the size the popup design gives it. It also reaches `ConfirmationPopup` and every popup built on `Popup`. Visual only.
@@ -1,72 +1,73 @@
1
- import { jsxs as a, jsx as e } from "react/jsx-runtime";
1
+ import { jsxs as m, jsx as e } from "react/jsx-runtime";
2
2
  import { EllipsisTooltip as T } from "../EllipsisTooltip/EllipsisTooltip.js";
3
- import { FileIcon as g } from "../FileIcon/FileIcon.js";
3
+ import { FileIcon as j } from "../FileIcon/FileIcon.js";
4
4
  import { DIAL_KIT_CLASS as v } from "../../../constants/public-class-names.js";
5
5
  import { DialItemType as w } from "../../../types/item.js";
6
- import { mergeClasses as l } from "../../../utils/merge-classes.js";
7
- const D = ({
8
- name: s,
6
+ import { mergeClasses as s } from "../../../utils/merge-classes.js";
7
+ const L = ({
8
+ name: r,
9
9
  type: o = w.File,
10
- fileExtension: t,
11
- shared: i = !1,
12
- loading: m = !1,
10
+ fileExtension: f,
11
+ icon: i,
12
+ shared: t = !1,
13
+ loading: l = !1,
13
14
  loadingLabel: p,
14
- iconSize: f,
15
- details: r,
16
- isInvalidName: c = !1,
17
- className: n,
18
- nameClassName: x,
19
- sharedIndicatorClassName: d,
15
+ iconSize: c,
16
+ details: a,
17
+ isInvalidName: n = !1,
18
+ className: x,
19
+ nameClassName: d,
20
+ sharedIndicatorClassName: h,
20
21
  sharedIndicatorTooltip: N,
21
- sharedLabel: h = "Shared",
22
+ sharedLabel: u = "Shared",
22
23
  hideTooltip: y = !1,
23
24
  tooltipContent: I
24
- }) => /* @__PURE__ */ a(
25
+ }) => /* @__PURE__ */ m(
25
26
  "div",
26
27
  {
27
- className: l(
28
+ className: s(
28
29
  "flex w-full min-w-0 items-center gap-2",
29
- n,
30
+ x,
30
31
  v.fileName
31
32
  ),
32
33
  children: [
33
- /* @__PURE__ */ e(
34
- g,
34
+ i != null && !l ? /* @__PURE__ */ e("span", { "aria-hidden": !0, className: "flex shrink-0 items-center justify-center", children: i }) : /* @__PURE__ */ e(
35
+ j,
35
36
  {
36
- name: s,
37
+ name: r,
37
38
  type: o,
38
- fileExtension: t,
39
- shared: i,
40
- loading: m,
39
+ fileExtension: f,
40
+ shared: t,
41
+ loading: l,
41
42
  loadingLabel: p,
42
- size: f,
43
- sharedIndicatorClassName: d,
43
+ size: c,
44
+ sharedIndicatorClassName: h,
44
45
  sharedIndicatorTooltip: N,
45
- decorative: !m
46
+ decorative: !l
46
47
  }
47
48
  ),
48
- /* @__PURE__ */ a(
49
+ /* @__PURE__ */ m(
49
50
  "div",
50
51
  {
51
- className: l("flex min-w-0 flex-1", {
52
- "flex-col gap-1": !!r
52
+ className: s("flex min-w-0 flex-1", {
53
+ "flex-col gap-1": !!a
53
54
  }),
54
55
  children: [
55
56
  /* @__PURE__ */ e(
56
57
  T,
57
58
  {
58
- className: l(
59
+ className: s(
59
60
  "dial-small-paragraph-text",
60
- c ? "text-secondary" : "text-primary",
61
- x
61
+ n ? "text-secondary" : "text-primary",
62
+ d
62
63
  ),
63
- text: s,
64
+ text: r,
64
65
  hideTooltip: y,
65
66
  customTooltipContent: I
66
67
  }
67
68
  ),
68
- i && /* @__PURE__ */ e("span", { className: "sr-only", children: h }),
69
- r
69
+ t && /* @__PURE__ */ e("span", { className: "sr-only", children: u }),
70
+ a
70
71
  ]
71
72
  }
72
73
  )
@@ -74,5 +75,5 @@ const D = ({
74
75
  }
75
76
  );
76
77
  export {
77
- D as FileName
78
+ L as FileName
78
79
  };
@@ -1,6 +1,6 @@
1
1
  {
2
- "version": "0.16.0-dev.50",
3
- "generatedAt": "2026-10-27T10:32:17.686Z",
2
+ "version": "0.16.0-dev.54",
3
+ "generatedAt": "2026-10-28T11:50:41.901Z",
4
4
  "kit": {
5
5
  "name": "@epam/ai-dial-ui-kit",
6
6
  "description": "A modern UI kit for building AI DIAL interfaces with React",
@@ -3863,7 +3863,7 @@
3863
3863
  "name": "FileName",
3864
3864
  "category": "Components_2_0",
3865
3865
  "generation": "2.0",
3866
- "description": "A file or folder name with its type icon, truncated with a tooltip when it\ndoes not fit.\naliases: FileDisplay|NameDisplay\nDesign system 2.0\n\nThe visible name already says what the item is, so the icon is decorative;\nthe shared state, which only the badge shows, is announced by a\nvisually-hidden `sharedLabel` after the name instead.\n\nWhile `loading` the icon is swapped for a `Spinner`, which is left in the\naccessibility tree so the busy state is announced.\n\nWith `details` the text switches to two lines — the name, then the metadata.",
3866
+ "description": "A file or folder name with its type icon, truncated with a tooltip when it\ndoes not fit.\naliases: FileDisplay|NameDisplay\nDesign system 2.0\n\nThe visible name already says what the item is, so the icon is decorative;\nthe shared state, which only the badge shows, is announced by a\nvisually-hidden `sharedLabel` after the name instead.\n\nPass `icon` to draw your own in place of the type icon. The shared badge is\npart of the type icon, so it is not drawn then; the visually-hidden\n`sharedLabel` still announces the state.\n\nWhile `loading` the icon is swapped for a `Spinner`, which is left in the\naccessibility tree so the busy state is announced.\n\nWith `details` the text switches to two lines — the name, then the metadata.",
3867
3867
  "props": [
3868
3868
  {
3869
3869
  "name": "name",
@@ -3884,6 +3884,12 @@
3884
3884
  "required": false,
3885
3885
  "description": "Extension overriding the one in `name`"
3886
3886
  },
3887
+ {
3888
+ "name": "icon",
3889
+ "type": "ReactNode",
3890
+ "required": false,
3891
+ "description": "Replaces the type icon; the `loading` spinner still takes its place"
3892
+ },
3887
3893
  {
3888
3894
  "name": "shared",
3889
3895
  "type": "boolean",