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

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.
@@ -8,6 +8,12 @@ export interface FileNameProps {
8
8
  type?: DialItemType;
9
9
  /** Extension to pick the icon by, overriding the one in `name`. */
10
10
  fileExtension?: string;
11
+ /**
12
+ * Replaces the type icon (and the shared badge drawn on it), e.g. to mark a
13
+ * special folder. Its wrapper is `aria-hidden`; the name stays the item's
14
+ * accessible name. The `loading` spinner still takes the icon's place.
15
+ */
16
+ icon?: ReactNode;
11
17
  /** Draws the shared badge on the icon. */
12
18
  shared?: boolean;
13
19
  /** Replaces the icon with a spinner, which announces itself as a status. */
@@ -45,6 +51,10 @@ export interface FileNameProps {
45
51
  * the shared state, which only the badge shows, is announced by a
46
52
  * visually-hidden `sharedLabel` after the name instead.
47
53
  *
54
+ * Pass `icon` to draw your own in place of the type icon. The shared badge is
55
+ * part of the type icon, so it is not drawn then; the visually-hidden
56
+ * `sharedLabel` still announces the state.
57
+ *
48
58
  * While `loading` the icon is swapped for a `Spinner`, which is left in the
49
59
  * accessibility tree so the busy state is announced.
50
60
  *
@@ -62,6 +72,7 @@ export interface FileNameProps {
62
72
  * @param name - Full item name, with or without an extension
63
73
  * @param [type=DialItemType.File] - Whether the item is a file or a folder
64
74
  * @param [fileExtension] - Extension overriding the one in `name`
75
+ * @param [icon] - Replaces the type icon; the `loading` spinner still takes its place
65
76
  * @param [shared=false] - Draws the shared badge on the icon
66
77
  * @param [loading=false] - Replaces the icon with a spinner
67
78
  * @param [loadingLabel='Loading'] - Accessible name of the spinner
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epam/ai-dial-ui-kit",
3
- "version": "0.16.0-dev.50",
3
+ "version": "0.16.0-dev.51",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "description": "A modern UI kit for building AI DIAL interfaces with React",