@epam/ai-dial-sidebar 1.1.0-dev.110 → 1.1.0-dev.112
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/index.js +18 -18
- package/package.json +3 -3
package/index.js
CHANGED
|
@@ -105132,26 +105132,26 @@ var Tce = 2e3, Ece = (e, t = Tce) => {
|
|
|
105132
105132
|
}, Dce = {
|
|
105133
105133
|
dark: q9,
|
|
105134
105134
|
light: q9
|
|
105135
|
-
}, Oce = S(({ language: e, value: t, isStreaming: n, theme: r = fz.Dark, copyLabel: i = "Copy code", copiedLabel: a = "Copied!", downloadLabel: o = "Download code",
|
|
105136
|
-
let { isCopied:
|
|
105135
|
+
}, Oce = S(({ language: e, value: t, isStreaming: n, theme: r = fz.Dark, copyLabel: i = "Copy code", copiedLabel: a = "Copied!", downloadLabel: o = "Download code", hideDownload: s = !1, containerClassName: c, headerClassName: l, codeClassName: u = "dial-code-text", languageLabelClassName: d = "dial-tiny-semi-text uppercase", titleSlot: f, colors: p }) => {
|
|
105136
|
+
let { isCopied: m, copy: h } = Ece(t), g = r === fz.Light;
|
|
105137
105137
|
return /* @__PURE__ */ te("div", {
|
|
105138
105138
|
style: UB({
|
|
105139
|
-
"--cm-code-block-bg":
|
|
105140
|
-
"--cm-code-block-border":
|
|
105141
|
-
"--cm-code-block-header-bg":
|
|
105142
|
-
"--cm-code-block-language":
|
|
105143
|
-
"--cm-code-block-copied":
|
|
105144
|
-
"--cm-code-block-scrollbar":
|
|
105139
|
+
"--cm-code-block-bg": p?.background,
|
|
105140
|
+
"--cm-code-block-border": p?.border,
|
|
105141
|
+
"--cm-code-block-header-bg": p?.headerBackground,
|
|
105142
|
+
"--cm-code-block-language": p?.language,
|
|
105143
|
+
"--cm-code-block-copied": p?.copied,
|
|
105144
|
+
"--cm-code-block-scrollbar": p?.scrollbar
|
|
105145
105145
|
}),
|
|
105146
|
-
className: HB("my-4 max-w-full overflow-hidden rounded-xl border", H9.container,
|
|
105146
|
+
className: HB("my-4 max-w-full overflow-hidden rounded-xl border", H9.container, g && H9.containerLight, c),
|
|
105147
105147
|
children: [/* @__PURE__ */ te("div", {
|
|
105148
|
-
className: HB("flex min-h-10 items-center justify-between border-b px-
|
|
105149
|
-
children: [/* @__PURE__ */ M("span", {
|
|
105150
|
-
className: HB(H9.languageLabel,
|
|
105148
|
+
className: HB("flex min-h-10 items-center justify-between border-b px-4", f == null ? "py-2" : "py-0", H9.header, l),
|
|
105149
|
+
children: [f ?? /* @__PURE__ */ M("span", {
|
|
105150
|
+
className: HB(H9.languageLabel, d),
|
|
105151
105151
|
children: e
|
|
105152
105152
|
}), !n && /* @__PURE__ */ te("div", {
|
|
105153
105153
|
className: "flex items-center gap-1",
|
|
105154
|
-
children: [/* @__PURE__ */ M($R, {
|
|
105154
|
+
children: [!s && /* @__PURE__ */ M($R, {
|
|
105155
105155
|
icon: /* @__PURE__ */ M(tV, { size: pc.SM }),
|
|
105156
105156
|
"aria-label": o,
|
|
105157
105157
|
size: Zs.Small,
|
|
@@ -105159,7 +105159,7 @@ var Tce = 2e3, Ece = (e, t = Tce) => {
|
|
|
105159
105159
|
XB(t, `code.${qB(e)}`);
|
|
105160
105160
|
}
|
|
105161
105161
|
}), /* @__PURE__ */ M($R, {
|
|
105162
|
-
icon:
|
|
105162
|
+
icon: m ? /* @__PURE__ */ M($B, {
|
|
105163
105163
|
size: pc.SM,
|
|
105164
105164
|
className: H9.copiedIcon,
|
|
105165
105165
|
"aria-hidden": !0
|
|
@@ -105167,9 +105167,9 @@ var Tce = 2e3, Ece = (e, t = Tce) => {
|
|
|
105167
105167
|
size: pc.SM,
|
|
105168
105168
|
"aria-hidden": !0
|
|
105169
105169
|
}),
|
|
105170
|
-
"aria-label":
|
|
105170
|
+
"aria-label": m ? a : i,
|
|
105171
105171
|
size: Zs.Small,
|
|
105172
|
-
onClick:
|
|
105172
|
+
onClick: h
|
|
105173
105173
|
})]
|
|
105174
105174
|
})]
|
|
105175
105175
|
}), /* @__PURE__ */ M("div", {
|
|
@@ -105187,12 +105187,12 @@ var Tce = 2e3, Ece = (e, t = Tce) => {
|
|
|
105187
105187
|
padding: "14px 16px",
|
|
105188
105188
|
letterSpacing: 0
|
|
105189
105189
|
},
|
|
105190
|
-
codeTagProps: { className:
|
|
105190
|
+
codeTagProps: { className: u },
|
|
105191
105191
|
children: t
|
|
105192
105192
|
}) : /* @__PURE__ */ M("pre", {
|
|
105193
105193
|
className: "p-4",
|
|
105194
105194
|
children: /* @__PURE__ */ M("code", {
|
|
105195
|
-
className: HB("whitespace-pre",
|
|
105195
|
+
className: HB("whitespace-pre", u),
|
|
105196
105196
|
children: t
|
|
105197
105197
|
})
|
|
105198
105198
|
})
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epam/ai-dial-sidebar",
|
|
3
3
|
"description": "Resizable sidebar panel shell with header, search, and empty state components",
|
|
4
|
-
"version": "1.1.0-dev.
|
|
4
|
+
"version": "1.1.0-dev.112",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./index.js",
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
}
|
|
18
18
|
},
|
|
19
19
|
"peerDependencies": {
|
|
20
|
-
"@epam/ai-dial-chat-shared": "1.1.0-dev.
|
|
21
|
-
"@epam/ai-dial-kit": "1.1.0-dev.
|
|
20
|
+
"@epam/ai-dial-chat-shared": "1.1.0-dev.112",
|
|
21
|
+
"@epam/ai-dial-kit": "1.1.0-dev.112",
|
|
22
22
|
"@tabler/icons-react": "^3.44.0",
|
|
23
23
|
"react": "^19.0.0",
|
|
24
24
|
"@epam/ai-dial-ui-kit": "^0.13.0-dev.26"
|