@dss-kit/ui-kit 0.1.33 → 0.1.35

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/dist/ui-kit.es.js CHANGED
@@ -533,9 +533,18 @@ const Fl = (e) => /* @__PURE__ */ P.createElement("svg", { width: 24, height: 24
533
533
  const [t, n] = ae(null);
534
534
  return we(() => {
535
535
  let i = document.getElementById("portal-root");
536
- return i || (i = document.createElement("div"), i.id = "portal-root", document.body.appendChild(i)), n(i), () => {
537
- i && i.children.length === 0 && i.remove();
538
- };
536
+ if (!i) {
537
+ const o = document.getElementById("theme-provider-scoped");
538
+ if (!o) {
539
+ console.error(
540
+ `[Portal] Не найден #theme-provider-scoped.
541
+ Добавь провайдер темы или создай его в HTML-шаблоне.`
542
+ );
543
+ return;
544
+ }
545
+ i = document.createElement("div"), i.id = "portal-root", o.appendChild(i);
546
+ }
547
+ n(i);
539
548
  }, []), t ? il(e, t) : null;
540
549
  }, Jl = W({
541
550
  position: "relative",
@@ -6235,8 +6244,8 @@ const Ag = le((e, t) => {
6235
6244
  textAlign: g = "left",
6236
6245
  ...y
6237
6246
  } = e, v = e.multiline === !0, C = q(null), m = q(null), [S, x] = Ci(
6238
- h !== void 0 ? String(h) : void 0,
6239
- f !== void 0 ? String(f) : ""
6247
+ typeof h == "string" || typeof h == "number" ? String(h) : void 0,
6248
+ f === "string" || f === "number" ? String(f) : ""
6240
6249
  );
6241
6250
  Ft(t, () => ({
6242
6251
  focus: () => {
@@ -6291,7 +6300,10 @@ const Ag = le((e, t) => {
6291
6300
  {
6292
6301
  ref: m,
6293
6302
  rows: e.rows ?? 3,
6294
- className: I(ve.input, p, { [ve.disabled]: d, [ve[`input-text-align_${g}`]]: !!g }),
6303
+ className: I(ve.input, p, {
6304
+ [ve.disabled]: d,
6305
+ [ve[`input-text-align_${g}`]]: !!g
6306
+ }),
6295
6307
  disabled: d,
6296
6308
  maxLength: e.maxLength,
6297
6309
  ...ce,
@@ -6310,10 +6322,15 @@ const Ag = le((e, t) => {
6310
6322
  {
6311
6323
  ...B,
6312
6324
  ref: C,
6313
- className: I(ve.input, ve[`input-text-size_${r}`], p, {
6314
- [ve.disabled]: d,
6315
- [ve[`input-text-align_${g}`]]: !!g
6316
- }),
6325
+ className: I(
6326
+ ve.input,
6327
+ ve[`input-text-size_${r}`],
6328
+ p,
6329
+ {
6330
+ [ve.disabled]: d,
6331
+ [ve[`input-text-align_${g}`]]: !!g
6332
+ }
6333
+ ),
6317
6334
  disabled: d,
6318
6335
  type: e.type ?? "text",
6319
6336
  value: S,
@@ -6322,15 +6339,7 @@ const Ag = le((e, t) => {
6322
6339
  );
6323
6340
  };
6324
6341
  return /* @__PURE__ */ $(M, { w: "full", gap: "var(--spacing-sm)", children: [
6325
- n && /* @__PURE__ */ w(
6326
- N,
6327
- {
6328
- variant: "body-2",
6329
- fontWeight: "regular",
6330
- colorName: "tertiary",
6331
- children: n
6332
- }
6333
- ),
6342
+ n && /* @__PURE__ */ w(N, { variant: "body-2", fontWeight: "regular", colorName: "tertiary", children: n }),
6334
6343
  /* @__PURE__ */ $(
6335
6344
  M,
6336
6345
  {