@epam/ai-dial-chat-shared 1.1.0-dev.479 → 1.1.0-dev.487

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.
@@ -5,27 +5,28 @@ import { EntityTypeLabel as r } from "../EntityTypeLabel/EntityTypeLabel.js";
5
5
  import { FeaturedChip as i } from "../FeaturedChip/FeaturedChip.js";
6
6
  import { jsx as a, jsxs as o } from "react/jsx-runtime";
7
7
  //#region src/components/EntityHeader/EntityHeader.tsx
8
- var s = ({ item: s, nameClassName: c, versionClassName: l, showVersion: u = !0, typeClassName: d = "dial-caption-lead-semi-text", iconBadgeClassName: f = "rounded-[14px]", featuredChipClassName: p, featuredLabel: m = "Featured", hasFeaturedTag: h = !0, iconSize: g = 48, query: _, footer: v, statusBadge: y }) => /* @__PURE__ */ o("div", {
8
+ var s = ({ item: s, nameClassName: c, versionClassName: l, showVersion: u = !0, typeClassName: d = "dial-caption-lead-semi-text", iconBadgeClassName: f = "rounded-[14px]", featuredChipClassName: p, featuredChipStyle: m, featuredLabel: h = "Featured", hasFeaturedTag: g = !0, iconSize: _ = 48, query: v, footer: y, statusBadge: b }) => /* @__PURE__ */ o("div", {
9
9
  className: "flex items-start gap-2",
10
10
  children: [/* @__PURE__ */ a(t, {
11
11
  src: s.iconUrl,
12
- size: g,
12
+ size: _,
13
13
  initialsName: s.name,
14
14
  styles: { badgeClassName: f }
15
15
  }), /* @__PURE__ */ o("div", {
16
- className: e("flex min-w-0 flex-1 flex-col gap-1", v != null && "self-stretch"),
16
+ className: e("flex min-w-0 flex-1 flex-col gap-1", y != null && "self-stretch"),
17
17
  children: [
18
18
  /* @__PURE__ */ o("div", {
19
19
  className: "relative flex flex-row items-center justify-between",
20
20
  children: [/* @__PURE__ */ a(r, {
21
21
  type: s.type,
22
22
  className: d
23
- }), (y != null || h && s.isFeatured) && /* @__PURE__ */ o("div", {
23
+ }), (b != null || g && s.isFeatured) && /* @__PURE__ */ o("div", {
24
24
  className: "absolute end-0 top-[-6px] flex items-center gap-2",
25
- children: [y, h && s.isFeatured && /* @__PURE__ */ a(i, {
25
+ children: [b, g && s.isFeatured && /* @__PURE__ */ a(i, {
26
26
  type: s.type,
27
- label: m,
28
- className: p
27
+ label: h,
28
+ className: p,
29
+ style: m
29
30
  })]
30
31
  })]
31
32
  }),
@@ -34,11 +35,11 @@ var s = ({ item: s, nameClassName: c, versionClassName: l, showVersion: u = !0,
34
35
  postfix: u ? s.version : void 0,
35
36
  postfixClassName: l,
36
37
  titleClassName: c,
37
- query: _
38
+ query: v
38
39
  }),
39
- v != null && /* @__PURE__ */ a("div", {
40
+ y != null && /* @__PURE__ */ a("div", {
40
41
  className: "mt-auto pt-1",
41
- children: v
42
+ children: y
42
43
  })
43
44
  ]
44
45
  })]
@@ -2,13 +2,14 @@ import { mergeClasses as e } from "../../utils/merge-class.js";
2
2
  import { ENTITY_TYPE_BG_COLOR as t, ENTITY_TYPE_COLOR as n } from "../../constants/entity-colors.js";
3
3
  import { jsx as r } from "react/jsx-runtime";
4
4
  //#region src/components/FeaturedChip/FeaturedChip.tsx
5
- var i = ({ label: i, className: a, type: o }) => {
6
- let s = t[o], c = n[o];
5
+ var i = ({ label: i, className: a, type: o, style: s }) => {
6
+ let c = t[o], l = n[o];
7
7
  return /* @__PURE__ */ r("div", {
8
8
  className: e("h-[24px] gap-1 rounded-2xl border-none px-2", "flex items-center justify-center", a ?? "dial-caption-lead-semi-text"),
9
9
  style: {
10
- backgroundColor: s,
11
- color: c
10
+ backgroundColor: c,
11
+ color: l,
12
+ ...s
12
13
  },
13
14
  children: i
14
15
  });
package/index.d.ts CHANGED
@@ -860,6 +860,8 @@ export declare interface EntityHeaderProps {
860
860
  footer?: ReactNode;
861
861
  /** CSS class for the featured chip. */
862
862
  featuredChipClassName?: string;
863
+ /** Style override for the featured chip, merged over its default per-entity-type colors, e.g. `{ backgroundColor, color, border }`. */
864
+ featuredChipStyle?: CSSProperties;
863
865
  /** Arbitrary badge rendered before the featured chip, in the same top-end corner. Omitted (the default) renders nothing in that slot. */
864
866
  statusBadge?: ReactNode;
865
867
  }
@@ -942,8 +944,10 @@ export declare interface FeaturedChipProps {
942
944
  label: string;
943
945
  /** Additional CSS class for typography overrides. */
944
946
  className?: string;
945
- /** Entity category — resolves the label's color via ENTITY_TYPE_COLOR. */
947
+ /** Entity category — resolves the label's default color via ENTITY_TYPE_COLOR when `style` doesn't set one. */
946
948
  type: CatalogEntityType;
949
+ /** Style overrides merged over the chip's default per-entity-type colors, e.g. `{ backgroundColor, color, border }`. */
950
+ style?: CSSProperties;
947
951
  }
948
952
 
949
953
  /** Well-known file extension constants used as fallback when a MIME type is unavailable. */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@epam/ai-dial-chat-shared",
3
3
  "description": "Shared domain models, utilities, and UI components for AI DIAL Chat libraries",
4
- "version": "1.1.0-dev.479",
4
+ "version": "1.1.0-dev.487",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "sideEffects": [