@epam/ai-dial-ui-kit 0.11.0-dev.34 → 0.11.0-dev.36

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.
@@ -6894,56 +6894,66 @@ const MR = (e) => {
6894
6894
  variant: r = Ei.Default,
6895
6895
  width: a,
6896
6896
  height: l,
6897
- className: c,
6898
- ...d
6897
+ overlay: c,
6898
+ className: d,
6899
+ ...u
6899
6900
  }) => {
6900
6901
  if (!n && o)
6901
6902
  return /* @__PURE__ */ g.jsx(g.Fragment, { children: o });
6902
- const u = se(
6903
+ const h = se(
6903
6904
  "bg-layer-3",
6904
6905
  e && "animate-pulse",
6905
- c
6906
+ d
6906
6907
  );
6907
6908
  if (r !== Ei.Default) {
6908
- const F = se(
6909
- u,
6909
+ const E = se(
6910
+ h,
6910
6911
  r === Ei.Circular && "rounded-full",
6911
6912
  r === Ei.Rectangular && "rounded",
6912
- r === Ei.Text && "rounded"
6913
- ), E = {};
6914
- return a && (E.width = typeof a == "number" ? `${a}px` : a), l && (E.height = typeof l == "number" ? `${l}px` : l), /* @__PURE__ */ g.jsx("div", { className: F, style: E, ...d });
6913
+ r === Ei.Text && "rounded",
6914
+ !!c && "relative"
6915
+ ), D = {};
6916
+ return a && (D.width = typeof a == "number" ? `${a}px` : a), l && (D.height = typeof l == "number" ? `${l}px` : l), /* @__PURE__ */ g.jsx("div", { className: E, style: D, ...u, children: c && /* @__PURE__ */ g.jsx("div", { className: "absolute inset-0 flex items-center justify-center pointer-events-none", children: c }) });
6915
6917
  }
6916
- const h = !!i, p = !!s, f = !!t, m = typeof i == "object" ? i : {}, v = typeof s == "object" ? s : {}, C = typeof t == "object" ? t : {}, w = MR(m.size), b = m.shape ?? Wu.Circle, x = v.width ?? "38%", y = C.rows ?? 3, R = C.width, S = (F) => R ? Array.isArray(R) ? R[F] ?? "100%" : R : F === y - 1 ? "61%" : "100%";
6917
- return /* @__PURE__ */ g.jsxs("div", { ...d, className: se("flex gap-4", c), children: [
6918
- h && /* @__PURE__ */ g.jsx(
6919
- "div",
6920
- {
6921
- className: se(
6922
- u,
6923
- b === Wu.Circle ? "rounded-full" : "rounded",
6924
- "flex-shrink-0"
6918
+ const p = !!i, f = !!s, m = !!t, v = typeof i == "object" ? i : {}, C = typeof s == "object" ? s : {}, w = typeof t == "object" ? t : {}, b = MR(v.size), x = v.shape ?? Wu.Circle, y = C.width ?? "38%", R = w.rows ?? 3, S = w.width, F = (E) => S ? Array.isArray(S) ? S[E] ?? "100%" : S : E === R - 1 ? "61%" : "100%";
6919
+ return /* @__PURE__ */ g.jsxs(
6920
+ "div",
6921
+ {
6922
+ ...u,
6923
+ className: se("flex gap-4", !!c && "relative", d),
6924
+ children: [
6925
+ p && /* @__PURE__ */ g.jsx(
6926
+ "div",
6927
+ {
6928
+ className: se(
6929
+ h,
6930
+ x === Wu.Circle ? "rounded-full" : "rounded",
6931
+ "flex-shrink-0"
6932
+ ),
6933
+ style: { width: b, height: b }
6934
+ }
6925
6935
  ),
6926
- style: { width: w, height: w }
6927
- }
6928
- ),
6929
- /* @__PURE__ */ g.jsxs("div", { className: "flex-1 flex flex-col gap-3", children: [
6930
- p && /* @__PURE__ */ g.jsx(
6931
- "div",
6932
- {
6933
- className: se(u, "h-4 rounded"),
6934
- style: { width: x }
6935
- }
6936
- ),
6937
- f && /* @__PURE__ */ g.jsx("div", { className: "flex flex-col gap-3", children: Array.from({ length: y }).map((F, E) => /* @__PURE__ */ g.jsx(
6938
- "div",
6939
- {
6940
- className: se(u, "h-4 rounded"),
6941
- style: { width: S(E) }
6942
- },
6943
- E
6944
- )) })
6945
- ] })
6946
- ] });
6936
+ /* @__PURE__ */ g.jsxs("div", { className: "flex-1 flex flex-col gap-3", children: [
6937
+ f && /* @__PURE__ */ g.jsx(
6938
+ "div",
6939
+ {
6940
+ className: se(h, "h-4 rounded"),
6941
+ style: { width: y }
6942
+ }
6943
+ ),
6944
+ m && /* @__PURE__ */ g.jsx("div", { className: "flex flex-col gap-3", children: Array.from({ length: R }).map((E, D) => /* @__PURE__ */ g.jsx(
6945
+ "div",
6946
+ {
6947
+ className: se(h, "h-4 rounded"),
6948
+ style: { width: F(D) }
6949
+ },
6950
+ D
6951
+ )) })
6952
+ ] }),
6953
+ c && /* @__PURE__ */ g.jsx("div", { className: "absolute inset-0 flex items-center justify-center pointer-events-none", children: c })
6954
+ ]
6955
+ }
6956
+ );
6947
6957
  };
6948
6958
  function Ke(e) {
6949
6959
  if (e?.length)
@@ -61418,7 +61428,7 @@ const Ng = ({
61418
61428
  }) })
61419
61429
  }
61420
61430
  );
61421
- }, lz = () => import("./JsonEditor-Bwbskv6W.js"), cz = () => import("./MarkdownEditor-Ds0geuX8.js");
61431
+ }, lz = () => import("./JsonEditor-i262aUtE.js"), cz = () => import("./MarkdownEditor-Caoepknq.js");
61422
61432
  export {
61423
61433
  hs as $,
61424
61434
  mV as A,
@@ -18,6 +18,7 @@ export interface DialSkeletonProps extends HTMLAttributes<HTMLDivElement> {
18
18
  variant?: DialSkeletonVariant;
19
19
  width?: string | number;
20
20
  height?: string | number;
21
+ overlay?: ReactNode;
21
22
  }
22
23
  /**
23
24
  * DialSkeleton
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epam/ai-dial-ui-kit",
3
- "version": "0.11.0-dev.34",
3
+ "version": "0.11.0-dev.36",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "description": "A modern UI kit for building AI DIAL interfaces with React",
@@ -116,7 +116,7 @@
116
116
  "@vitest/browser": "^4.1.8",
117
117
  "@vitest/coverage-v8": "^4.1.8",
118
118
  "autoprefixer": "^10.5.0",
119
- "concurrently": "^9.2.1",
119
+ "concurrently": "^10.0.3",
120
120
  "esbuild": "^0.25.9",
121
121
  "eslint": "^9.39.2",
122
122
  "eslint-config-prettier": "^10.1.8",