@epam/ai-dial-chat-shared 1.2.0-dev.326 → 1.2.0-dev.328
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,28 +5,29 @@ 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",
|
|
8
|
+
var s = ({ item: s, nameClassName: c, versionClassName: l, showVersion: u = !0, typeClassName: d = "dial-caption-lead-semi-text", typeLabel: f, iconBadgeClassName: p = "rounded-[14px]", featuredChipClassName: m, featuredChipStyle: h, featuredLabel: g = "Featured", hasFeaturedTag: _ = !0, iconSize: v = 48, query: y, footer: b, statusBadge: x }) => /* @__PURE__ */ o("div", {
|
|
9
9
|
className: "flex items-start gap-2",
|
|
10
10
|
children: [/* @__PURE__ */ a(t, {
|
|
11
11
|
src: s.iconUrl,
|
|
12
|
-
size:
|
|
12
|
+
size: v,
|
|
13
13
|
initialsName: s.name,
|
|
14
|
-
styles: { badgeClassName:
|
|
14
|
+
styles: { badgeClassName: p }
|
|
15
15
|
}), /* @__PURE__ */ o("div", {
|
|
16
|
-
className: e("flex min-w-0 flex-1 flex-col gap-1",
|
|
16
|
+
className: e("flex min-w-0 flex-1 flex-col gap-1", b != 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
|
-
className: d
|
|
23
|
-
|
|
22
|
+
className: d,
|
|
23
|
+
label: f
|
|
24
|
+
}), (x != null || _ && s.isFeatured) && /* @__PURE__ */ o("div", {
|
|
24
25
|
className: "absolute end-0 top-[-6px] flex items-center gap-2",
|
|
25
|
-
children: [
|
|
26
|
+
children: [x, _ && s.isFeatured && /* @__PURE__ */ a(i, {
|
|
26
27
|
type: s.type,
|
|
27
|
-
label:
|
|
28
|
-
className:
|
|
29
|
-
style:
|
|
28
|
+
label: g,
|
|
29
|
+
className: m,
|
|
30
|
+
style: h
|
|
30
31
|
})]
|
|
31
32
|
})]
|
|
32
33
|
}),
|
|
@@ -35,11 +36,11 @@ var s = ({ item: s, nameClassName: c, versionClassName: l, showVersion: u = !0,
|
|
|
35
36
|
postfix: u ? s.version : void 0,
|
|
36
37
|
postfixClassName: l,
|
|
37
38
|
titleClassName: c,
|
|
38
|
-
query:
|
|
39
|
+
query: y
|
|
39
40
|
}),
|
|
40
|
-
|
|
41
|
+
b != null && /* @__PURE__ */ a("div", {
|
|
41
42
|
className: "mt-auto pt-1",
|
|
42
|
-
children:
|
|
43
|
+
children: b
|
|
43
44
|
})
|
|
44
45
|
]
|
|
45
46
|
})]
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ENTITY_TYPE_COLOR as e } from "../../constants/entity-colors.js";
|
|
2
2
|
import { jsx as t } from "react/jsx-runtime";
|
|
3
3
|
//#region src/components/EntityTypeLabel/EntityTypeLabel.tsx
|
|
4
|
-
var n = ({ type: n, className: r = "dial-caption-lead-semi-text" }) => /* @__PURE__ */ t("span", {
|
|
4
|
+
var n = ({ type: n, className: r = "dial-caption-lead-semi-text", label: i }) => /* @__PURE__ */ t("span", {
|
|
5
5
|
className: r,
|
|
6
6
|
style: { color: e[n] },
|
|
7
|
-
children: n
|
|
7
|
+
children: i ?? n
|
|
8
8
|
});
|
|
9
9
|
//#endregion
|
|
10
10
|
export { n as EntityTypeLabel };
|
package/index.d.ts
CHANGED
|
@@ -1156,6 +1156,8 @@ export declare interface EntityHeaderProps {
|
|
|
1156
1156
|
nameClassName?: string;
|
|
1157
1157
|
/** CSS class for the entity type label. Default: 'dial-caption-lead-semi-text'. */
|
|
1158
1158
|
typeClassName?: string;
|
|
1159
|
+
/** Visible type text, e.g. a translated type name. Default: the raw `item.type` value. */
|
|
1160
|
+
typeLabel?: string;
|
|
1159
1161
|
/** CSS class applied to the icon badge, e.g. to set border-radius. Default: 'rounded-[14px]'. */
|
|
1160
1162
|
iconBadgeClassName?: string;
|
|
1161
1163
|
/** Typography CSS class for the version text. Falls back to `ItemHeader`'s own default when omitted. */
|
|
@@ -1193,6 +1195,8 @@ export declare interface EntityTypeLabelProps {
|
|
|
1193
1195
|
type: CatalogEntityType;
|
|
1194
1196
|
/** CSS class for the label text. Default: 'dial-caption-lead-semi-text'. */
|
|
1195
1197
|
className?: string;
|
|
1198
|
+
/** Visible text, e.g. a translated type name. Default: the raw `type` value (`'MODEL'`, `'TOOLSET'`, …). */
|
|
1199
|
+
label?: string;
|
|
1196
1200
|
}
|
|
1197
1201
|
|
|
1198
1202
|
/** Whether `value` is longer than `maxLength` characters. */
|
package/package.json
CHANGED