@epam/ai-dial-ui-kit 0.15.0-dev.17 → 0.15.0-dev.19

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/README.md +4 -0
  2. package/dist/CHANGELOG.md +2 -0
  3. package/dist/{DateCellRenderer-Cm09x2e4.cjs → DateCellRenderer-BZR0gzAZ.cjs} +22 -22
  4. package/dist/DateCellRenderer-Cm8zyHcC.cjs +1 -0
  5. package/dist/components/New/Dropdown/Dropdown.js +10 -10
  6. package/dist/components/New/FileIcon/FileIcon.js +55 -0
  7. package/dist/components/New/FileIcon/constants.js +134 -0
  8. package/dist/components/New/FileIcon/icons/FileGlyph.js +150 -0
  9. package/dist/components/New/FileIcon/icons/FolderGlyph.js +50 -0
  10. package/dist/components/New/FileName/FileName.js +78 -0
  11. package/dist/components/New/FolderName/FolderName.js +16 -0
  12. package/dist/components/New/SharedEntityIndicator/SharedEntityIndicator.js +34 -0
  13. package/dist/components-manifest.json +263 -7
  14. package/dist/constants/public-class-names.js +14 -0
  15. package/dist/dial-ui-kit.cjs +2 -2
  16. package/dist/dial-ui-kit.js +122 -114
  17. package/dist/file-manager.cjs +1 -1
  18. package/dist/grid.cjs +1 -1
  19. package/dist/index.css +1 -1
  20. package/dist/src/components/New/FileIcon/FileIcon.d.ts +61 -0
  21. package/dist/src/components/New/FileIcon/constants.d.ts +16 -0
  22. package/dist/src/components/New/FileIcon/icons/FileGlyph.d.ts +18 -0
  23. package/dist/src/components/New/FileIcon/icons/FolderGlyph.d.ts +17 -0
  24. package/dist/src/components/New/FileName/FileName.d.ts +79 -0
  25. package/dist/src/components/New/FolderName/FolderName.d.ts +37 -0
  26. package/dist/src/components/New/SharedEntityIndicator/SharedEntityIndicator.d.ts +35 -0
  27. package/dist/src/constants/public-class-names.d.ts +14 -0
  28. package/dist/src/index.d.ts +8 -0
  29. package/dist/src/utils/sub-menu-floating.d.ts +7 -4
  30. package/dist/{use-file-manager-tabs-DgIKWJoV.cjs → use-file-manager-tabs-wwM2gh2N.cjs} +1 -1
  31. package/dist/utils/sub-menu-floating.js +100 -56
  32. package/package.json +1 -1
  33. package/dist/DateCellRenderer-DX4hHj2a.cjs +0 -1
package/README.md CHANGED
@@ -320,6 +320,10 @@ breaking change and goes through the migration-guide process.
320
320
  | `inlineSelect` | `dial-kit-inline-select` | The trigger button of an `InlineSelect` |
321
321
  | `calendar` | `dial-kit-calendar` | The root of a `Calendar`, in every mode |
322
322
  | `fileDropzone` | `dial-kit-file-dropzone` | The drop area of a `FileDropzone` |
323
+ | `fileIcon` | `dial-kit-file-icon` | The root of a `FileIcon`: glyph or spinner, and the shared badge |
324
+ | `fileName` | `dial-kit-file-name` | The row of a `FileName`: its type icon, the name and any details |
325
+ | `folderName` | `dial-kit-folder-name` | The `FileName` row of a `FolderName`, additive to `fileName` |
326
+ | `sharedEntityIndicator` | `dial-kit-shared-entity-indicator` | The badge of a `SharedEntityIndicator`, including the one on a `FileIcon` |
323
327
  | `radioGroupPopupField` | `dial-kit-radio-group-popup-field` | The root of a `RadioGroupPopupField` |
324
328
 
325
329
  #### Controls
package/dist/CHANGELOG.md CHANGED
@@ -27,6 +27,8 @@ Versions match the git tags on the `development` branch.
27
27
 
28
28
  - **`Breadcrumbs` (2.0)** — the navigation trail of the 2.0 generation, and the first one built without `DialBreadcrumb` underneath it. `items` is a flat list, outermost first; the last entry is the current page, drawn semibold and primary with `aria-current="page"` and never rendered as a control, since a link to the page you are already on does nothing. An earlier entry with an `href` renders as a link, one with only an `onClick` as a button, and one with neither as plain text — the read-only location path, without a separate component for it. The trail never wraps: segments truncate, each revealing its full label through `EllipsisTooltip` only once it is actually clipped, and a trail longer than `maxVisibleItems` (4) collapses its middle into an ellipsis `Dropdown` so the root and the current page always stay on screen. Separators are decorative and `aria-hidden`, so the trail is announced as a list of links rather than a string of chevrons; the chevron mirrors itself in RTL. `ariaLabel` and `overflowAriaLabel` default to English and take an override for translation. `size` picks the trail's type scale: `BreadcrumbsSize.Small` (`dial-small-text`) by default, or `BreadcrumbsSize.Heading` (`dial-h2-text`) for a path that doubles as the page title — that token is semibold on its own, so the heading trail is semibold throughout, the current page included, and there is no `dial-h2-semi-text` to reach for. The `nav` carries `dial-kit-breadcrumbs` (`DIAL_KIT_CLASS.breadcrumbs`) and each segment `dial-kit-breadcrumbs-item`. The 1.0 `DialBreadcrumb` is untouched.
29
29
 
30
+ - **`FileIcon`, `FileName`, `FolderName` and `SharedEntityIndicator` (2.0)** — the file-manager row pieces of the 2.0 generation, counterparts of `DialFileManagerItemIcon`, `DialFileName`, `DialFolderName` and `DialSharedEntityIndicator`, built without any of them underneath. `FileIcon` draws the new file-type glyphs — one sheet, coloured and marked by kind: images, video, audio, code, text, PDF, spreadsheet, presentation, archive, DIAL and a generic fallback, picked by extension — and a folder glyph of its own, with a shared badge and a `Spinner` while `loading`. The glyphs are inline SVG rather than imported assets, so each one takes its gradient `id` from `useId` — a list of files does not repeat one document-wide id, which blanks every copy's gradient once the first is hidden — and its colours from theme tokens instead of fixed hex. It is a `role="img"` named after the item ("PDF file", "Folder", ", shared" appended when shared; `label` overrides it), where the 1.0 icon called every file "File type icon" and left folders unnamed. `FileName` puts it before a truncating name with an optional `details` line; since the visible name already says what the item is, it hides the icon and announces the shared state through a visually-hidden `sharedLabel` instead, and while `loading` leaves the spinner in the tree so the busy state is still announced. `FolderName` is a `FileName` fixed to the folder type. `SharedEntityIndicator` is the badge on its own, a named `role="img"` whose tooltip is a pointer-only hint. Default icon size is 20px (`DIAL_ICON_SIZE.MD`), where 1.0 used 18px. They carry `dial-kit-file-icon`, `dial-kit-file-name`, `dial-kit-folder-name` (additive to `dial-kit-file-name`) and `dial-kit-shared-entity-indicator`. The 1.0 components are untouched.
31
+
30
32
  ### Fixed
31
33
 
32
34
  - **`Select` and `Dropdown` (2.0) — rows are 2px apart, and every option list and submenu has the same vertical inset** — rows were stacked edge to edge, so a selected row's tint and a hovered neighbour's merged into one block; every option list, menu and kit-rendered submenu now stacks its rows with `gap-0.5` (the shared `overlayListClassName`). Separately, the `Dropdown` menu wraps its rows in `py-1` inside the panel's `p-1`, but the `Select` option list and the submenus of both components rendered their rows straight into the panel, so the first and last rows (and the focus ring of a keyboard-focused one) sat flush against its top and bottom edge. The `Select` option list now carries the same `py-1`, and a submenu panel of kit-rendered rows takes `py-2` — the same 8px in total. A `Dropdown` submenu drawn through `renderSubMenu` keeps the plain panel, as a `renderOverlay` body does at the top level.