urfu-ui-kit-react 2.1.7-next.0 → 2.1.7-next.2

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.
Files changed (75) hide show
  1. package/dist/components/Calendar/Calendar.d.ts.map +1 -1
  2. package/dist/components/Calendar/Calendar.js +232 -194
  3. package/dist/components/Calendar/Calendar.types.d.ts +21 -0
  4. package/dist/components/Calendar/Calendar.types.d.ts.map +1 -1
  5. package/dist/components/Calendar/CalendarSelect.js +38 -38
  6. package/dist/components/Calendar/MaskedDateInput.d.ts +2 -0
  7. package/dist/components/Calendar/MaskedDateInput.d.ts.map +1 -1
  8. package/dist/components/Calendar/MaskedDateInput.js +120 -113
  9. package/dist/components/ColumnSettings/ColumnSettings.d.ts.map +1 -1
  10. package/dist/components/ColumnSettings/ColumnSettings.js +22 -21
  11. package/dist/components/ConfirmModal/ConfirmModal.d.ts +0 -1
  12. package/dist/components/ConfirmModal/ConfirmModal.d.ts.map +1 -1
  13. package/dist/components/ConfirmModal/ConfirmModal.js +11 -12
  14. package/dist/components/Drawer/Drawer.d.ts.map +1 -1
  15. package/dist/components/Drawer/Drawer.js +23 -22
  16. package/dist/components/ErrorScreen/ErrorScreenIllustration.js +28 -28
  17. package/dist/components/InputExpandTextarea/InputExpandTextarea.js +1 -1
  18. package/dist/components/InputTime/InputTime.js +12 -12
  19. package/dist/components/Menu/Menu.js +11 -11
  20. package/dist/components/Modal/Modal.js +33 -33
  21. package/dist/components/Pagination/Pagination.js +22 -22
  22. package/dist/components/Preloader/Preloader.d.ts.map +1 -1
  23. package/dist/components/Preloader/Preloader.js +13 -13
  24. package/dist/components/Search/Search.d.ts.map +1 -1
  25. package/dist/components/Search/Search.js +28 -23
  26. package/dist/components/Select/Select.d.ts +2 -0
  27. package/dist/components/Select/Select.d.ts.map +1 -1
  28. package/dist/components/Select/Select.js +21 -19
  29. package/dist/components/StickyActionBar/StickyActionBar.d.ts.map +1 -1
  30. package/dist/components/StickyActionBar/StickyActionBar.js +45 -58
  31. package/dist/components/Switch/Switch.d.ts.map +1 -1
  32. package/dist/components/Switch/Switch.js +8 -8
  33. package/dist/components/Table/Filter/FilterStringBox.d.ts.map +1 -1
  34. package/dist/components/Table/Filter/FilterStringBox.js +45 -40
  35. package/dist/components/Table/Filter/SelectFilter.d.ts.map +1 -1
  36. package/dist/components/Table/Filter/SelectFilter.js +24 -22
  37. package/dist/components/Table/Filter/filterLoading.d.ts +4 -1
  38. package/dist/components/Table/Filter/filterLoading.d.ts.map +1 -1
  39. package/dist/components/Table/Filter/filterLoading.js +6 -2
  40. package/dist/components/Table/Filter/useServerFilterOptions.d.ts +4 -1
  41. package/dist/components/Table/Filter/useServerFilterOptions.d.ts.map +1 -1
  42. package/dist/components/Table/Filter/useServerFilterOptions.js +28 -25
  43. package/dist/components/Table/Table.filterTypes.d.ts +5 -0
  44. package/dist/components/Table/Table.filterTypes.d.ts.map +1 -1
  45. package/dist/components/Table/TableHead.js +6 -6
  46. package/dist/components/Table/TableMobileCard.d.ts.map +1 -1
  47. package/dist/components/Table/TableMobileCard.js +27 -26
  48. package/dist/components/Table/TableMobileView.js +46 -46
  49. package/dist/components/Table/TableRow.js +1 -1
  50. package/dist/components/Tabs/Tabs.d.ts.map +1 -1
  51. package/dist/components/Tabs/Tabs.js +25 -24
  52. package/dist/components/Tooltip/Tooltip.d.ts.map +1 -1
  53. package/dist/components/Tooltip/Tooltip.js +37 -36
  54. package/dist/dev/index.js +18 -19
  55. package/dist/dev/types/vanilla/src/dev/panelStyles.d.ts +1 -1
  56. package/dist/hooks/useAutoId.js +3 -3
  57. package/dist/index.d.ts +1 -1
  58. package/dist/index.d.ts.map +1 -1
  59. package/dist/shared/kitCopy.js +1 -1
  60. package/dist/shared/kitRegistry.d.ts +2 -2
  61. package/dist/shared/optionStateColors.d.ts +2 -2
  62. package/dist/shared/optionStateColors.js +4 -4
  63. package/dist/style-no-fonts.css +1 -1
  64. package/dist/style.css +1 -1
  65. package/dist/style.layer.css +2 -2
  66. package/dist/style.shell.css +3 -3
  67. package/dist/utils/inputMode.d.ts +5 -0
  68. package/dist/utils/inputMode.d.ts.map +1 -1
  69. package/dist/vanilla/core/dateMask.js +1 -1
  70. package/dist/vanilla/core/describeError.js +10 -10
  71. package/dist/vanilla/core/inputMode.js +18 -11
  72. package/package.json +1 -1
  73. package/dist/shared/devLauncherOffset.d.ts +0 -8
  74. package/dist/shared/devLauncherOffset.d.ts.map +0 -1
  75. package/dist/vanilla/core/devLauncherOffset.js +0 -20
@@ -2,39 +2,38 @@ import { jsxs as a, jsx as i } from "react/jsx-runtime";
2
2
  import { useAutoId$u as h } from "../../hooks/useAutoId.js";
3
3
  import { Button$u as e } from "../Button/Button.js";
4
4
  import { Modal$u as _ } from "../Modal/Modal.js";
5
- /* empty css */
6
5
  /* empty css */
7
- const k = ({
6
+ const j = ({
8
7
  active: m,
9
8
  title: c,
10
9
  description: r,
11
10
  onCancel: t,
12
- onConfirm: o,
11
+ onConfirm: l,
13
12
  confirmText: d = "Да",
14
13
  cancelText: n = "Нет",
15
14
  confirmVariant: s = "primary",
16
15
  confirmDisabled: u = !1,
17
- className: p = "",
18
- ...f
16
+ className: f = "",
17
+ ...p
19
18
  }) => {
20
- const l = h(void 0, "u-confirm-modal-title");
19
+ const o = h(void 0, "u-confirm-modal-title");
21
20
  return /* @__PURE__ */ a(
22
21
  _,
23
22
  {
24
- ...f,
25
- ariaLabelledBy: l,
23
+ ...p,
24
+ ariaLabelledBy: o,
26
25
  active: m,
27
26
  onCancel: t,
28
- className: `u-react-confirm-modal ${p}`,
27
+ className: `u-react-confirm-modal ${f}`,
29
28
  children: [
30
- /* @__PURE__ */ i("h3", { id: l, className: "u-react-confirm-modal__title", children: c }),
29
+ /* @__PURE__ */ i("h3", { id: o, className: "u-react-confirm-modal__title", children: c }),
31
30
  r ? /* @__PURE__ */ i("div", { className: "u-react-confirm-modal__description", children: r }) : null,
32
31
  /* @__PURE__ */ a("div", { className: "u-react-confirm-modal__actions", children: [
33
32
  /* @__PURE__ */ i(e, { type: "button", variant: "simple", onClick: t, children: n }),
34
- o ? /* @__PURE__ */ i(e, { type: "button", variant: s, disabled: u, onClick: o, children: d }) : null
33
+ l ? /* @__PURE__ */ i(e, { type: "button", variant: s, disabled: u, onClick: l, children: d }) : null
35
34
  ] })
36
35
  ]
37
36
  }
38
37
  );
39
38
  };
40
- export { k as ConfirmModal$u };
39
+ export { j as ConfirmModal$u };
@@ -1 +1 @@
1
- {"version":3,"file":"Drawer.d.ts","sourceRoot":"","sources":["../../../src/components/Drawer/Drawer.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACvD,OAAO,kCAAkC,CAAC;AAC1C,OAAO,0BAA0B,CAAC;AAClC,OAAO,qDAAqD,CAAC;AAE7D;;;;GAIG;AACH,eAAO,MAAM,MAAM,GAAI,oKAgBpB,gBAAgB,gCAyElB,CAAC"}
1
+ {"version":3,"file":"Drawer.d.ts","sourceRoot":"","sources":["../../../src/components/Drawer/Drawer.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACvD,OAAO,kCAAkC,CAAC;AAC1C,OAAO,0BAA0B,CAAC;AAClC,OAAO,qDAAqD,CAAC;AAG7D;;;;GAIG;AACH,eAAO,MAAM,MAAM,GAAI,oKAgBpB,gBAAgB,gCAyElB,CAAC"}
@@ -1,15 +1,16 @@
1
1
  import { jsx as e, jsxs as u } from "react/jsx-runtime";
2
- import { useRef as N, useId as R, useEffect as l } from "react";
3
- import { createPortal as F } from "react-dom";
4
- import { useMountTransition$u as T } from "../../hooks/useMountTransition.js";
5
- import { useModalFocus$u as j, ModalFocusContext$u as D, isTopModal$u as H } from "../Modal/useModalFocus.js";
6
- import { getPortalScopeProps$u as L } from "../../shared/uiKitDefaults.js";
2
+ import { useRef as N, useEffect as l } from "react";
3
+ import { createPortal as R } from "react-dom";
4
+ import { useMountTransition$u as F } from "../../hooks/useMountTransition.js";
5
+ import { useModalFocus$u as T, ModalFocusContext$u as j, isTopModal$u as A } from "../Modal/useModalFocus.js";
6
+ import { getPortalScopeProps$u as D } from "../../shared/uiKitDefaults.js";
7
7
  /* empty css */
8
8
  /* empty css */
9
9
  /* empty css */
10
- import { lockKitScroll$u as O, ownKitNode$u as S, isKitEventHandled$u as A, markKitEventHandled$u as B } from "../../vanilla/core/kitRegistry.js";
10
+ import { useAutoId$u as H } from "../../hooks/useAutoId.js";
11
+ import { lockKitScroll$u as L, ownKitNode$u as O, isKitEventHandled$u as S, markKitEventHandled$u as B } from "../../vanilla/core/kitRegistry.js";
11
12
  import { MOTION_MS$u as q } from "../../vanilla/core/motion.js";
12
- const er = ({
13
+ const tr = ({
13
14
  open: r,
14
15
  onClose: s,
15
16
  side: k = "right",
@@ -26,26 +27,26 @@ const er = ({
26
27
  trapFocus: K = !0,
27
28
  initialFocus: P = "first"
28
29
  }) => {
29
- const n = N(null), w = R(), { shouldRender: _, status: h, isAnimated: b } = T({ isOpen: r, duration: q.base }), { scope: i, onFocusCapture: $ } = j(n, r, K, P), d = N(s);
30
- if (d.current = s, l(() => {
30
+ const i = N(null), w = H(void 0, "u-drawer-title"), { shouldRender: _, status: h, isAnimated: b } = F({ isOpen: r, duration: q.base }), { scope: n, onFocusCapture: $ } = T(i, r, K, P), o = N(s);
31
+ if (o.current = s, l(() => {
31
32
  if (!r || !p) return;
32
- const t = (o) => {
33
- o.key !== "Escape" || o.defaultPrevented || A(o) || !H(i) || (B(o), d.current());
33
+ const t = (d) => {
34
+ d.key !== "Escape" || d.defaultPrevented || S(d) || !A(n) || (B(d), o.current());
34
35
  };
35
36
  return document.addEventListener("keydown", t), () => document.removeEventListener("keydown", t);
36
- }, [r, p, i]), l(() => {
37
+ }, [r, p, n]), l(() => {
37
38
  if (!(!r || !v))
38
- return O();
39
+ return L();
39
40
  }, [r, v]), l(() => {
40
- const t = n.current;
41
- return t ? S(t) : void 0;
41
+ const t = i.current;
42
+ return t ? O(t) : void 0;
42
43
  }, [_]), !_ || typeof document > "u") return null;
43
44
  const C = b && h !== "open", I = b && h === "exiting", y = x ?? (a ? w : void 0);
44
- return F(
45
- /* @__PURE__ */ e(D.Provider, { value: i, children: /* @__PURE__ */ u(
45
+ return R(
46
+ /* @__PURE__ */ e(j.Provider, { value: n, children: /* @__PURE__ */ u(
46
47
  "div",
47
48
  {
48
- ...L(),
49
+ ...D(),
49
50
  className: `u-drawer u-drawer--${k}${C ? " u-drawer--hidden" : ""}${I ? " u-drawer--leaving" : ""}${f ? ` ${f}` : ""}`,
50
51
  children: [
51
52
  /* @__PURE__ */ e(
@@ -53,13 +54,13 @@ const er = ({
53
54
  {
54
55
  className: "u-drawer__backdrop",
55
56
  "aria-hidden": "true",
56
- onClick: E ? () => d.current() : void 0
57
+ onClick: E ? () => o.current() : void 0
57
58
  }
58
59
  ),
59
60
  /* @__PURE__ */ u(
60
61
  "div",
61
62
  {
62
- ref: n,
63
+ ref: i,
63
64
  className: "u-drawer__panel",
64
65
  role: "dialog",
65
66
  tabIndex: -1,
@@ -71,7 +72,7 @@ const er = ({
71
72
  children: [
72
73
  /* @__PURE__ */ u("div", { className: "u-drawer__header", children: [
73
74
  a ? /* @__PURE__ */ e("h2", { id: w, className: "u-drawer__title", children: a }) : null,
74
- /* @__PURE__ */ e("button", { type: "button", className: "u-button-cross u-drawer__close", "aria-label": "Закрыть", onClick: () => d.current() })
75
+ /* @__PURE__ */ e("button", { type: "button", className: "u-button-cross u-drawer__close", "aria-label": "Закрыть", onClick: () => o.current() })
75
76
  ] }),
76
77
  /* @__PURE__ */ e("div", { className: "u-drawer__body", children: M }),
77
78
  m ? /* @__PURE__ */ e("div", { className: "u-drawer__footer", children: m }) : null
@@ -84,4 +85,4 @@ const er = ({
84
85
  document.body
85
86
  );
86
87
  };
87
- export { er as Drawer$u };
88
+ export { tr as Drawer$u };
@@ -1,57 +1,57 @@
1
- import { jsx as r, jsxs as t } from "react/jsx-runtime";
2
- const c = "var(--u-color-text, #222222)", C = "var(--u-color-primary, #1E4391)";
3
- function n({ y: e, gapFrom: i, gapTo: a }) {
4
- const o = e + 72;
5
- return /* @__PURE__ */ t("g", { stroke: c, strokeWidth: "3", strokeLinecap: "round", fill: "none", children: [
6
- /* @__PURE__ */ r("path", { d: `M${i} ${o}H8C4.686 ${o} 2 ${o - 2.686} 2 ${o - 6}V${e + 6}C2 ${e + 2.686} 4.686 ${e} 8 ${e}H102C105.314 ${e} 108 ${e + 2.686} 108 ${e + 6}V${o - 6}C108 ${o - 2.686} 105.314 ${o} 102 ${o}H${a}` }),
1
+ import { jsx as r, jsxs as o } from "react/jsx-runtime";
2
+ const s = "var(--u-color-text, #222222)", l = "var(--u-color-primary, #1E4391)";
3
+ function c({ y: e, gapFrom: i, gapTo: a }) {
4
+ const t = e + 72;
5
+ return /* @__PURE__ */ o("g", { style: { stroke: s }, strokeWidth: "3", strokeLinecap: "round", fill: "none", children: [
6
+ /* @__PURE__ */ r("path", { d: `M${i} ${t}H8C4.686 ${t} 2 ${t - 2.686} 2 ${t - 6}V${e + 6}C2 ${e + 2.686} 4.686 ${e} 8 ${e}H102C105.314 ${e} 108 ${e + 2.686} 108 ${e + 6}V${t - 6}C108 ${t - 2.686} 105.314 ${t} 102 ${t}H${a}` }),
7
7
  /* @__PURE__ */ r("path", { d: `M8.5 ${e + 15}H101.5` }),
8
8
  /* @__PURE__ */ r("path", { d: `M95.5 ${e + 5}L99.5 ${e + 9}M99.5 ${e + 5}L95.5 ${e + 9}` }),
9
9
  /* @__PURE__ */ r("path", { d: `M84.5 ${e + 9}H88.5` })
10
10
  ] });
11
11
  }
12
- const l = "M32.274 64.071C33.354 61.036 37.646 61.036 38.726 64.071C39.406 65.983 41.589 66.887 43.422 66.016C46.331 64.633 49.367 67.669 47.984 70.578C47.113 72.411 48.017 74.594 49.929 75.274C52.964 76.354 52.964 80.646 49.929 81.726C48.017 82.406 47.113 84.589 47.984 86.422C49.367 89.331 46.331 92.367 43.422 90.984C41.589 90.113 39.406 91.017 38.726 92.929C37.646 95.964 33.354 95.964 32.274 92.929C31.594 91.017 29.411 90.113 27.578 90.984C24.669 92.367 21.633 89.331 23.016 86.422C23.887 84.589 22.983 82.406 21.071 81.726C18.036 80.646 18.036 76.354 21.071 75.274C22.983 74.594 23.887 72.411 23.016 70.578C21.633 67.669 24.669 64.633 27.578 66.016C29.411 66.887 31.594 65.983 32.274 64.071Z", L = "M25.235 29.369C25.993 27.238 29.007 27.238 29.765 29.369C30.242 30.711 31.775 31.346 33.062 30.735C35.105 29.764 37.236 31.895 36.265 33.938C35.654 35.225 36.289 36.758 37.631 37.235C39.762 37.993 39.762 41.007 37.631 41.765C36.289 42.242 35.654 43.775 36.265 45.062C37.236 47.105 35.105 49.236 33.062 48.265C31.775 47.654 30.242 48.289 29.765 49.631C29.007 51.762 25.993 51.762 25.235 49.631C24.758 48.289 23.225 47.654 21.938 48.265C19.895 49.236 17.764 47.105 18.735 45.062C19.346 43.775 18.711 42.242 17.369 41.765C15.238 41.007 15.238 37.993 17.369 37.235C18.711 36.758 19.346 35.225 18.735 33.938C17.764 31.895 19.895 29.764 21.938 30.735C23.225 31.346 24.758 30.711 25.235 29.369Z";
13
- function s() {
14
- return /* @__PURE__ */ t("g", { stroke: c, strokeWidth: "3", children: [
15
- /* @__PURE__ */ r("path", { d: l }),
12
+ const C = "M32.274 64.071C33.354 61.036 37.646 61.036 38.726 64.071C39.406 65.983 41.589 66.887 43.422 66.016C46.331 64.633 49.367 67.669 47.984 70.578C47.113 72.411 48.017 74.594 49.929 75.274C52.964 76.354 52.964 80.646 49.929 81.726C48.017 82.406 47.113 84.589 47.984 86.422C49.367 89.331 46.331 92.367 43.422 90.984C41.589 90.113 39.406 91.017 38.726 92.929C37.646 95.964 33.354 95.964 32.274 92.929C31.594 91.017 29.411 90.113 27.578 90.984C24.669 92.367 21.633 89.331 23.016 86.422C23.887 84.589 22.983 82.406 21.071 81.726C18.036 80.646 18.036 76.354 21.071 75.274C22.983 74.594 23.887 72.411 23.016 70.578C21.633 67.669 24.669 64.633 27.578 66.016C29.411 66.887 31.594 65.983 32.274 64.071Z", L = "M25.235 29.369C25.993 27.238 29.007 27.238 29.765 29.369C30.242 30.711 31.775 31.346 33.062 30.735C35.105 29.764 37.236 31.895 36.265 33.938C35.654 35.225 36.289 36.758 37.631 37.235C39.762 37.993 39.762 41.007 37.631 41.765C36.289 42.242 35.654 43.775 36.265 45.062C37.236 47.105 35.105 49.236 33.062 48.265C31.775 47.654 30.242 48.289 29.765 49.631C29.007 51.762 25.993 51.762 25.235 49.631C24.758 48.289 23.225 47.654 21.938 48.265C19.895 49.236 17.764 47.105 18.735 45.062C19.346 43.775 18.711 42.242 17.369 41.765C15.238 41.007 15.238 37.993 17.369 37.235C18.711 36.758 19.346 35.225 18.735 33.938C17.764 31.895 19.895 29.764 21.938 30.735C23.225 31.346 24.758 30.711 25.235 29.369Z";
13
+ function n() {
14
+ return /* @__PURE__ */ o("g", { style: { stroke: s }, strokeWidth: "3", children: [
15
+ /* @__PURE__ */ r("path", { d: C }),
16
16
  /* @__PURE__ */ r("circle", { cx: "35.5", cy: "78.5", r: "7" }),
17
17
  /* @__PURE__ */ r("path", { d: L }),
18
18
  /* @__PURE__ */ r("circle", { cx: "27.5", cy: "39.5", r: "4" })
19
19
  ] });
20
20
  }
21
21
  function d() {
22
- return /* @__PURE__ */ t("svg", { className: "u-error-screen-illustration", width: "110", height: "134", viewBox: "0 0 110 134", fill: "none", "aria-hidden": "true", focusable: "false", children: [
23
- /* @__PURE__ */ r(n, { y: 7, gapFrom: 10.894, gapTo: 31.11 }),
24
- /* @__PURE__ */ r("rect", { x: "23.5", y: "36.5", width: "73", height: "96", rx: "4.5", fill: "var(--u-color-surface, #FFFFFF)", stroke: c, strokeWidth: "3" }),
25
- /* @__PURE__ */ r("g", { stroke: c, strokeWidth: "3", strokeLinecap: "round", children: /* @__PURE__ */ r("path", { d: "M36.5 49.5H83.5M36.5 60.5H83.5M36.5 71.5H83.5" }) }),
26
- /* @__PURE__ */ t("g", { stroke: C, strokeWidth: "3", fill: "none", children: [
22
+ return /* @__PURE__ */ o("svg", { className: "u-error-screen-illustration", width: "110", height: "134", viewBox: "0 0 110 134", fill: "none", "aria-hidden": "true", focusable: "false", children: [
23
+ /* @__PURE__ */ r(c, { y: 7, gapFrom: 10.894, gapTo: 31.11 }),
24
+ /* @__PURE__ */ r("rect", { x: "23.5", y: "36.5", width: "73", height: "96", rx: "4.5", style: { fill: "var(--u-color-surface, #FFFFFF)", stroke: s }, strokeWidth: "3" }),
25
+ /* @__PURE__ */ r("g", { style: { stroke: s }, strokeWidth: "3", strokeLinecap: "round", children: /* @__PURE__ */ r("path", { d: "M36.5 49.5H83.5M36.5 60.5H83.5M36.5 71.5H83.5" }) }),
26
+ /* @__PURE__ */ o("g", { style: { stroke: l }, strokeWidth: "3", fill: "none", children: [
27
27
  /* @__PURE__ */ r("circle", { cx: "59.5", cy: "104.5", r: "14" }),
28
28
  /* @__PURE__ */ r("path", { d: "M50.7 95.7L67.6 113.9" })
29
29
  ] })
30
30
  ] });
31
31
  }
32
32
  function h() {
33
- return /* @__PURE__ */ t("svg", { className: "u-error-screen-illustration", width: "110", height: "100", viewBox: "0 0 110 100", fill: "none", "aria-hidden": "true", focusable: "false", children: [
34
- /* @__PURE__ */ r(n, { y: 2, gapFrom: 10.56, gapTo: 62.5 }),
35
- /* @__PURE__ */ r(s, {}),
36
- /* @__PURE__ */ r("path", { d: "M79.286 27.85C80.063 26.558 81.937 26.558 82.714 27.85L100.828 57.969C101.63 59.302 100.67 61 99.114 61H62.886C61.331 61 60.37 59.302 61.172 57.969Z", stroke: c, strokeWidth: "3" }),
37
- /* @__PURE__ */ r("path", { d: "M80.312 49.752L79.976 43.2H82.048L81.698 49.752H80.312ZM81.012 53.098C80.685 53.098 80.414 52.991 80.2 52.776C79.985 52.561 79.878 52.305 79.878 52.006C79.878 51.707 79.985 51.455 80.2 51.25C80.414 51.035 80.685 50.928 81.012 50.928C81.338 50.928 81.604 51.035 81.81 51.25C82.015 51.455 82.118 51.707 82.118 52.006C82.118 52.305 82.015 52.561 81.81 52.776C81.604 52.991 81.338 53.098 81.012 53.098Z", fill: c })
33
+ return /* @__PURE__ */ o("svg", { className: "u-error-screen-illustration", width: "110", height: "100", viewBox: "0 0 110 100", fill: "none", "aria-hidden": "true", focusable: "false", children: [
34
+ /* @__PURE__ */ r(c, { y: 2, gapFrom: 10.56, gapTo: 62.5 }),
35
+ /* @__PURE__ */ r(n, {}),
36
+ /* @__PURE__ */ r("path", { d: "M79.286 27.85C80.063 26.558 81.937 26.558 82.714 27.85L100.828 57.969C101.63 59.302 100.67 61 99.114 61H62.886C61.331 61 60.37 59.302 61.172 57.969Z", style: { stroke: s }, strokeWidth: "3" }),
37
+ /* @__PURE__ */ r("path", { d: "M80.312 49.752L79.976 43.2H82.048L81.698 49.752H80.312ZM81.012 53.098C80.685 53.098 80.414 52.991 80.2 52.776C79.985 52.561 79.878 52.305 79.878 52.006C79.878 51.707 79.985 51.455 80.2 51.25C80.414 51.035 80.685 50.928 81.012 50.928C81.338 50.928 81.604 51.035 81.81 51.25C82.015 51.455 82.118 51.707 82.118 52.006C82.118 52.305 82.015 52.561 81.81 52.776C81.604 52.991 81.338 53.098 81.012 53.098Z", style: { fill: s } })
38
38
  ] });
39
39
  }
40
40
  function u() {
41
- return /* @__PURE__ */ t("svg", { className: "u-error-screen-illustration", width: "110", height: "100", viewBox: "0 0 110 100", fill: "none", "aria-hidden": "true", focusable: "false", children: [
42
- /* @__PURE__ */ r(n, { y: 2, gapFrom: 10.56, gapTo: 62.5 }),
43
- /* @__PURE__ */ r(s, {}),
44
- /* @__PURE__ */ r("path", { d: "M89.309 64.31L73.681 54.994C73.555 54.919 73.404 54.9 73.265 54.943L68.076 56.518C67.8 56.602 67.5 56.563 67.256 56.41L61.932 53.085C61.768 52.982 61.637 52.834 61.555 52.658L58.125 45.281C57.705 44.379 58.717 43.484 59.561 44.011L67.65 49.063C68.118 49.355 68.735 49.213 69.028 48.744L73.329 41.857C73.622 41.389 73.479 40.772 73.011 40.479L64.922 35.428C64.078 34.9 64.438 33.598 65.433 33.58L73.567 33.425C73.761 33.422 73.952 33.474 74.116 33.577L79.495 36.937C79.707 37.069 79.862 37.276 79.929 37.517L81.228 42.199C81.263 42.322 81.343 42.428 81.453 42.493L96.845 51.668C100.387 53.78 101.502 58.389 99.318 61.887C97.197 65.283 92.749 66.36 89.309 64.31Z", stroke: c, strokeWidth: "3" })
41
+ return /* @__PURE__ */ o("svg", { className: "u-error-screen-illustration", width: "110", height: "100", viewBox: "0 0 110 100", fill: "none", "aria-hidden": "true", focusable: "false", children: [
42
+ /* @__PURE__ */ r(c, { y: 2, gapFrom: 10.56, gapTo: 62.5 }),
43
+ /* @__PURE__ */ r(n, {}),
44
+ /* @__PURE__ */ r("path", { d: "M89.309 64.31L73.681 54.994C73.555 54.919 73.404 54.9 73.265 54.943L68.076 56.518C67.8 56.602 67.5 56.563 67.256 56.41L61.932 53.085C61.768 52.982 61.637 52.834 61.555 52.658L58.125 45.281C57.705 44.379 58.717 43.484 59.561 44.011L67.65 49.063C68.118 49.355 68.735 49.213 69.028 48.744L73.329 41.857C73.622 41.389 73.479 40.772 73.011 40.479L64.922 35.428C64.078 34.9 64.438 33.598 65.433 33.58L73.567 33.425C73.761 33.422 73.952 33.474 74.116 33.577L79.495 36.937C79.707 37.069 79.862 37.276 79.929 37.517L81.228 42.199C81.263 42.322 81.343 42.428 81.453 42.493L96.845 51.668C100.387 53.78 101.502 58.389 99.318 61.887C97.197 65.283 92.749 66.36 89.309 64.31Z", style: { stroke: s }, strokeWidth: "3" })
45
45
  ] });
46
46
  }
47
47
  function p({ name: e }) {
48
48
  return e === "forbidden" ? /* @__PURE__ */ r(d, {}) : e === "maintenance" ? /* @__PURE__ */ r(u, {}) : /* @__PURE__ */ r(h, {});
49
49
  }
50
50
  function g() {
51
- return /* @__PURE__ */ r("span", { className: "u-error-screen-decor", "aria-hidden": "true", children: /* @__PURE__ */ t("span", { className: "u-error-screen-decor-stars", children: [
52
- /* @__PURE__ */ r("svg", { className: "u-error-screen-decor-star u-error-screen-decor-star--big", width: "85", height: "85", viewBox: "0 0 85 85", focusable: "false", children: /* @__PURE__ */ r("path", { d: "M42.503 0L43.621 39.794L72.552 12.449L45.202 41.383L85 42.5L45.202 43.624L72.552 72.551L43.621 45.206L42.503 85L41.38 45.206L12.448 72.551L39.798 43.624L0 42.5L39.798 41.383L12.448 12.449L41.38 39.794Z", fill: "var(--u-error-screen-decor-color, #003DA6)" }) }),
53
- /* @__PURE__ */ r("svg", { className: "u-error-screen-decor-star u-error-screen-decor-star--small", width: "37", height: "37", viewBox: "0 0 37 37", focusable: "false", children: /* @__PURE__ */ r("path", { d: "M37 18.5C26.784 18.5 18.5 10.216 18.5 0C18.5 10.216 10.216 18.5 0 18.5C10.216 18.5 18.5 26.784 18.5 37C18.5 26.784 26.784 18.5 37 18.5Z", fill: "var(--u-error-screen-decor-color, #003DA6)" }) }),
54
- /* @__PURE__ */ r("svg", { className: "u-error-screen-decor-star u-error-screen-decor-star--ring", width: "65", height: "65", viewBox: "0 0 65 65", fill: "none", focusable: "false", children: /* @__PURE__ */ r("path", { d: "M32.212 0.032L32.722 7.962C33.012 12.442 39.042 13.642 41.022 9.612L44.522 2.482L41.962 10.002C40.512 14.252 45.632 17.662 48.992 14.702L54.962 9.452L49.712 15.422C46.752 18.792 50.162 23.902 54.412 22.462L61.932 19.902L54.802 23.412C50.782 25.392 51.982 31.422 56.452 31.712L64.382 32.222L56.452 32.732C51.972 33.022 50.772 39.052 54.802 41.032L61.932 44.542L54.412 41.982C50.162 40.532 46.752 45.652 49.712 49.022L54.962 54.992L48.992 49.742C45.622 46.782 40.512 50.192 41.962 54.442L44.522 61.962L41.022 54.832C39.042 50.802 33.012 52.002 32.722 56.482L32.212 64.412L31.702 56.482C31.412 52.002 25.382 50.802 23.402 54.832L19.902 61.962L22.462 54.442C23.912 50.192 18.792 46.782 15.422 49.742L9.452 54.992L14.702 49.022C17.662 45.652 14.252 40.542 10.002 41.982L2.482 44.542L9.612 41.032C13.642 39.052 12.442 33.022 7.962 32.732L0.032 32.222L7.962 31.712C12.442 31.422 13.642 25.392 9.612 23.412L2.482 19.902L10.002 22.462C14.242 23.912 17.662 18.792 14.702 15.422L9.452 9.452L15.422 14.702C18.792 17.662 23.902 14.252 22.462 10.002L19.902 2.482L23.402 9.612C25.382 13.642 31.412 12.442 31.702 7.962Z", stroke: "var(--u-error-screen-decor-color, #174496)" }) })
51
+ return /* @__PURE__ */ r("span", { className: "u-error-screen-decor", "aria-hidden": "true", children: /* @__PURE__ */ o("span", { className: "u-error-screen-decor-stars", children: [
52
+ /* @__PURE__ */ r("svg", { className: "u-error-screen-decor-star u-error-screen-decor-star--big", width: "85", height: "85", viewBox: "0 0 85 85", focusable: "false", children: /* @__PURE__ */ r("path", { d: "M42.503 0L43.621 39.794L72.552 12.449L45.202 41.383L85 42.5L45.202 43.624L72.552 72.551L43.621 45.206L42.503 85L41.38 45.206L12.448 72.551L39.798 43.624L0 42.5L39.798 41.383L12.448 12.449L41.38 39.794Z", style: { fill: "var(--u-error-screen-decor-color, #003DA6)" } }) }),
53
+ /* @__PURE__ */ r("svg", { className: "u-error-screen-decor-star u-error-screen-decor-star--small", width: "37", height: "37", viewBox: "0 0 37 37", focusable: "false", children: /* @__PURE__ */ r("path", { d: "M37 18.5C26.784 18.5 18.5 10.216 18.5 0C18.5 10.216 10.216 18.5 0 18.5C10.216 18.5 18.5 26.784 18.5 37C18.5 26.784 26.784 18.5 37 18.5Z", style: { fill: "var(--u-error-screen-decor-color, #003DA6)" } }) }),
54
+ /* @__PURE__ */ r("svg", { className: "u-error-screen-decor-star u-error-screen-decor-star--ring", width: "65", height: "65", viewBox: "0 0 65 65", fill: "none", focusable: "false", children: /* @__PURE__ */ r("path", { d: "M32.212 0.032L32.722 7.962C33.012 12.442 39.042 13.642 41.022 9.612L44.522 2.482L41.962 10.002C40.512 14.252 45.632 17.662 48.992 14.702L54.962 9.452L49.712 15.422C46.752 18.792 50.162 23.902 54.412 22.462L61.932 19.902L54.802 23.412C50.782 25.392 51.982 31.422 56.452 31.712L64.382 32.222L56.452 32.732C51.972 33.022 50.772 39.052 54.802 41.032L61.932 44.542L54.412 41.982C50.162 40.532 46.752 45.652 49.712 49.022L54.962 54.992L48.992 49.742C45.622 46.782 40.512 50.192 41.962 54.442L44.522 61.962L41.022 54.832C39.042 50.802 33.012 52.002 32.722 56.482L32.212 64.412L31.702 56.482C31.412 52.002 25.382 50.802 23.402 54.832L19.902 61.962L22.462 54.442C23.912 50.192 18.792 46.782 15.422 49.742L9.452 54.992L14.702 49.022C17.662 45.652 14.252 40.542 10.002 41.982L2.482 44.542L9.612 41.032C13.642 39.052 12.442 33.022 7.962 32.732L0.032 32.222L7.962 31.712C12.442 31.422 13.642 25.392 9.612 23.412L2.482 19.902L10.002 22.462C14.242 23.912 17.662 18.792 14.702 15.422L9.452 9.452L15.422 14.702C18.792 17.662 23.902 14.252 22.462 10.002L19.902 2.482L23.402 9.612C25.382 13.642 31.412 12.442 31.702 7.962Z", style: { stroke: "var(--u-error-screen-decor-color, #174496)" } }) })
55
55
  ] }) });
56
56
  }
57
57
  export { g as ErrorScreenDecor$u, p as ErrorScreenIllustration$u };
@@ -129,7 +129,7 @@ const me = ({
129
129
  id: `input_expand${n}`
130
130
  }
131
131
  ),
132
- m && /* @__PURE__ */ o("div", { className: "u-input-expand-textarea-counter", style: Q ? { color: "#ef302b" } : void 0, children: [
132
+ m && /* @__PURE__ */ o("div", { className: "u-input-expand-textarea-counter", style: Q ? { color: "var(--u-color-error, #ef302b)" } : void 0, children: [
133
133
  N,
134
134
  "/",
135
135
  t
@@ -55,7 +55,7 @@ const Ce = ({
55
55
  }), U = ue(St), V = f(null), r = f(null), I = f(!1), j = f(null), L = f(null), [g, $] = d(!1), { shouldRender: X, status: Mt, isAnimated: Ct } = Jt({
56
56
  isOpen: g && !s,
57
57
  duration: Yt
58
- }), [h, p] = d(null), [Dt, m] = d(0), [Z, kt] = d(0), [At, Nt] = d(0), [S, J] = d(!1), [M, Q] = d(() => String(i ?? v ?? "")), Y = f(i), [Ft, Ht] = d(!1);
58
+ }), [h, p] = d(null), [Dt, m] = d(0), [Z, At] = d(0), [kt, Nt] = d(0), [S, J] = d(!1), [M, Q] = d(() => String(i ?? v ?? "")), Y = f(i), [Ft, Ht] = d(!1);
59
59
  O(() => {
60
60
  S || i !== Y.current && (Q(String(i ?? "")), Y.current = i);
61
61
  }, [i, S]);
@@ -67,7 +67,7 @@ const Ce = ({
67
67
  se(r, o, s);
68
68
  const C = w(() => /^\d{2}:\d{2}$/.test(o || ""), [o]), q = f(String(i ?? v ?? "")), D = f(
69
69
  /^\d{2}:\d{2}$/.test(String(i ?? v ?? "")) ? String(i ?? v ?? "") : ""
70
- ), k = w(() => C ? (o || "").split(":")[0] : null, [o, C]), A = w(() => C ? (o || "").split(":")[1] : null, [o, C]), Ot = w(() => Array.from({ length: 24 }, (t, e) => String(e).padStart(2, "0")), []), Bt = w(() => Array.from({ length: 60 }, (t, e) => String(e).padStart(2, "0")), []);
70
+ ), A = w(() => C ? (o || "").split(":")[0] : null, [o, C]), k = w(() => C ? (o || "").split(":")[1] : null, [o, C]), Ot = w(() => Array.from({ length: 24 }, (t, e) => String(e).padStart(2, "0")), []), Bt = w(() => Array.from({ length: 60 }, (t, e) => String(e).padStart(2, "0")), []);
71
71
  O(() => {
72
72
  const t = () => {
73
73
  Ht(window.innerWidth <= 900);
@@ -91,8 +91,8 @@ const Ce = ({
91
91
  const H = e.getBoundingClientRect(), b = F.getBoundingClientRect(), x = b.top - H.top;
92
92
  x >= 0 && x + b.height <= e.clientHeight || (e.scrollTop += x - (e.clientHeight - b.height) / 2);
93
93
  };
94
- t(j.current, k), t(L.current, A);
95
- }, [g, X, k, A]);
94
+ t(j.current, A), t(L.current, k);
95
+ }, [g, X, A, k]);
96
96
  const c = B((t) => {
97
97
  if (Q(t), q.current = t, /^\d{2}:\d{2}$/.test(t) && (D.current = t), !E) return;
98
98
  E({
@@ -115,7 +115,7 @@ const Ce = ({
115
115
  }, Et = (t) => {
116
116
  const e = String(t.target.value ?? "");
117
117
  if (/[^0-9:]/.test(e)) {
118
- c(e.replace(/[^0-9:]/g, ""));
118
+ c(e.replaceAll(/[^0-9:]/g, ""));
119
119
  return;
120
120
  }
121
121
  t.target.value || (p("hour"), m(0)), c(t.target.value);
@@ -130,7 +130,7 @@ const Ce = ({
130
130
  if (!l) return;
131
131
  const t = r.current;
132
132
  !t || document.activeElement !== t || !h || y(h);
133
- }, [o, h, y, At, l]), it(() => {
133
+ }, [o, h, y, kt, l]), it(() => {
134
134
  if (!l || Z === 0) return;
135
135
  const t = r.current;
136
136
  !t || document.activeElement !== t || t.setSelectionRange(0, t.value.length);
@@ -151,7 +151,7 @@ const Ce = ({
151
151
  }, Vt = (t) => {
152
152
  if (!l) return;
153
153
  if (t.preventDefault(), t.detail >= 2) {
154
- I.current = !1, p(null), m(0), kt((n) => n + 1);
154
+ I.current = !1, p(null), m(0), At((n) => n + 1);
155
155
  return;
156
156
  }
157
157
  const e = I.current || (t.currentTarget.selectionStart ?? 0) <= 2 ? "hour" : "minute";
@@ -166,9 +166,9 @@ const Ce = ({
166
166
  if (/^\d{2}:\d{2}$/.test(t)) return;
167
167
  !(G && t.trim() === "") && /^\d{2}:\d{2}$/.test(D.current) && (c(D.current), p(null), m(0));
168
168
  }, qt = (t) => {
169
- c(`${t}:${A ?? "00"}`);
169
+ c(`${t}:${k ?? "00"}`);
170
170
  }, Wt = (t) => {
171
- c(`${k ?? "00"}:${t}`), $(!1);
171
+ c(`${A ?? "00"}:${t}`), $(!1);
172
172
  };
173
173
  oe({
174
174
  disabled: s,
@@ -251,7 +251,7 @@ const Ce = ({
251
251
  W(), (t = r.current) == null || t.focus();
252
252
  },
253
253
  "aria-label": "Открыть выбор времени",
254
- children: /* @__PURE__ */ u("span", { className: "u-react-input-time-icon", "aria-hidden": !0, children: /* @__PURE__ */ u(ee, { name: "clock", color: "#1E4391", size: 20 }) })
254
+ children: /* @__PURE__ */ u("span", { className: "u-react-input-time-icon", "aria-hidden": !0, children: /* @__PURE__ */ u(ee, { name: "clock", color: "var(--u-color-primary, #1E4391)", size: 20 }) })
255
255
  }
256
256
  ),
257
257
  X && /* @__PURE__ */ u(
@@ -259,8 +259,8 @@ const Ce = ({
259
259
  {
260
260
  hours: Ot,
261
261
  minutes: Bt,
262
- selectedHour: k,
263
- selectedMinute: A,
262
+ selectedHour: A,
263
+ selectedMinute: k,
264
264
  hoursColumnRef: j,
265
265
  minutesColumnRef: L,
266
266
  onSelectHour: qt,
@@ -1,9 +1,9 @@
1
- import { jsx as i, Fragment as D, jsxs as f } from "react/jsx-runtime";
2
- import { useRef as F, useEffect as h, useState as O } from "react";
1
+ import { jsx as i, Fragment as B, jsxs as f } from "react/jsx-runtime";
2
+ import { useRef as D, useEffect as h, useState as F } from "react";
3
3
  /* empty css */
4
- import { useAutoId$u as R } from "../../hooks/useAutoId.js";
4
+ import { useAutoId$u as O } from "../../hooks/useAutoId.js";
5
5
  /* empty css */
6
- import { isPlainLeftClick$u as U } from "../../vanilla/core/linkClick.js";
6
+ import { isPlainLeftClick$u as R } from "../../vanilla/core/linkClick.js";
7
7
  const H = ({
8
8
  onClickSection: a,
9
9
  onClickSwitchMenu: l,
@@ -21,13 +21,13 @@ const H = ({
21
21
  LinkComponent: u,
22
22
  id: E
23
23
  }) => {
24
- const m = F(null), d = R(E, "u-collapsible-menu"), L = u, k = (e) => typeof e == "number" ? `${e}px` : String(e), p = (e) => {
24
+ const m = D(null), d = O(E, "u-collapsible-menu"), L = u, k = (e) => typeof e == "number" ? `${e}px` : String(e), p = (e) => {
25
25
  if (e == null) return;
26
26
  if (typeof e == "number")
27
27
  return `calc(${e} * var(--u-unit, 1px))`;
28
28
  const t = String(e).trim(), n = t.match(/^(-?\d+(?:\.\d+)?)px$/i);
29
29
  return n ? `calc(${n[1]} * var(--u-unit, 1px))` : t;
30
- }, I = (e) => e && e.replace(/(-?\d+(?:\.\d+)?)px\b/gi, (t, n) => `calc(${n} * var(--u-unit, 1px))`);
30
+ }, I = (e) => e && e.replaceAll(/(-?\d+(?:\.\d+)?)px\b/gi, (t, n) => `calc(${n} * var(--u-unit, 1px))`);
31
31
  h(() => {
32
32
  if (s || typeof l != "function") return;
33
33
  const e = (t) => {
@@ -38,7 +38,7 @@ const H = ({
38
38
  };
39
39
  return document.addEventListener("pointerdown", e), () => document.removeEventListener("pointerdown", e);
40
40
  }, [l, s, r]);
41
- const [P, j] = O(
41
+ const [P, j] = F(
42
42
  () => typeof window < "u" && typeof window.matchMedia == "function" ? window.matchMedia(`(max-width: ${r}px)`).matches : !1
43
43
  );
44
44
  h(() => {
@@ -46,8 +46,8 @@ const H = ({
46
46
  const e = window.matchMedia(`(max-width: ${r}px)`), t = () => j(e.matches);
47
47
  return t(), e.addEventListener("change", t), () => e.removeEventListener("change", t);
48
48
  }, [r]);
49
- const B = P ? "u-collapsible-menu--overlay" : "";
50
- return /* @__PURE__ */ i(D, { children: x === "collapsible" && /* @__PURE__ */ f(
49
+ const A = P ? "u-collapsible-menu--overlay" : "";
50
+ return /* @__PURE__ */ i(B, { children: x === "collapsible" && /* @__PURE__ */ f(
51
51
  "div",
52
52
  {
53
53
  ref: m,
@@ -56,7 +56,7 @@ const H = ({
56
56
  "--max-width": k(y),
57
57
  width: "100%"
58
58
  },
59
- className: `u-collapsible-menu ${B} ${w}`.trim(),
59
+ className: `u-collapsible-menu ${A} ${w}`.trim(),
60
60
  children: [
61
61
  /* @__PURE__ */ i(
62
62
  "input",
@@ -91,7 +91,7 @@ const H = ({
91
91
  {
92
92
  className: o == e.id ? "u-collapsible-menu-list-item u-menu-active" : "u-collapsible-menu-list-item",
93
93
  id: String(e.id),
94
- onClick: (c) => a && U(c) && a(e),
94
+ onClick: (c) => a && R(c) && a(e),
95
95
  children: u ? /* @__PURE__ */ i(L, { to: e.url, className: "u-collapsible-menu-list-item-link", "aria-current": n, children: e.title }) : /* @__PURE__ */ i(
96
96
  "a",
97
97
  {
@@ -11,69 +11,69 @@ import { useModalTitleClearance$u as J } from "./useModalTitleClearance.js";
11
11
  /* empty css */
12
12
  /* empty css */
13
13
  import { getPortalScopeProps$u as Q, getUiKitDefaults$u as V } from "../../shared/uiKitDefaults.js";
14
- import { MOTION_EASE$u as W, motionMs$u as X, MOTION_MS$u as N } from "../../vanilla/core/motion.js";
15
- import { lockKitScroll$u as Y, ownKitNode$u as Z, isKitEventHandled$u as ee, markKitEventHandled$u as oe } from "../../vanilla/core/kitRegistry.js";
16
- const ge = ({
14
+ import { MOTION_EASE$u as W, motionMs$u as X, MOTION_MS$u as x } from "../../vanilla/core/motion.js";
15
+ import { lockKitScroll$u as Y, ownKitNode$u as Z, isKitEventHandled$u as oo, markKitEventHandled$u as eo } from "../../vanilla/core/kitRegistry.js";
16
+ const Eo = ({
17
17
  onCancel: n,
18
- active: o,
19
- ariaLabel: _,
18
+ active: e,
19
+ ariaLabel: N,
20
20
  ariaLabelledBy: m,
21
21
  children: c,
22
- maxWidth: k = "900px",
23
- maxHeight: v,
22
+ maxWidth: _ = "900px",
23
+ maxHeight: k,
24
24
  className: w = "",
25
25
  height: P = "",
26
26
  notCloseClickOnBack: f,
27
27
  closeOnEscape: S,
28
28
  closeButtonInside: p = !1,
29
- lockScroll: b = !1,
29
+ lockScroll: y = !1,
30
30
  unmountOnClose: T = !1,
31
31
  portalOn: s = !0,
32
32
  trapFocus: $ = !0,
33
33
  initialFocus: K = "first",
34
34
  mobileSheet: A
35
35
  }) => {
36
- const y = A ?? V().mobileSheets, i = F(null), [e] = H(
36
+ const b = A ?? V().mobileSheets, i = F(null), [o] = H(
37
37
  () => typeof document > "u" ? null : document.createElement("div")
38
38
  );
39
39
  L(() => {
40
- if (!(!s || !e))
41
- return e.className = "u-react-modal-portal", document.body.appendChild(e), () => e.remove();
42
- }, [s, e]), R(() => {
43
- if (!s || !e) return;
40
+ if (!(!s || !o))
41
+ return o.className = "u-react-modal-portal", document.body.appendChild(o), () => o.remove();
42
+ }, [s, o]), R(() => {
43
+ if (!s || !o) return;
44
44
  const t = Q()["data-u-kit"];
45
- if (t ? e.setAttribute("data-u-kit", t) : e.removeAttribute("data-u-kit"), o) {
45
+ if (t ? o.setAttribute("data-u-kit", t) : o.removeAttribute("data-u-kit"), e) {
46
46
  const r = document.activeElement;
47
- document.body.appendChild(e), r instanceof HTMLElement && e.contains(r) && r.focus({ preventScroll: !0 });
47
+ document.body.appendChild(o), r instanceof HTMLElement && o.contains(r) && r.focus({ preventScroll: !0 });
48
48
  }
49
- }, [o, s, e]);
49
+ }, [e, s, o]);
50
50
  const { shouldRender: g, status: j, isAnimated: C } = O({
51
- isOpen: !!o,
52
- duration: y ? N.base : N.fast
53
- }), d = C && j === "exiting", E = !!o || d, h = d ? { opacity: 0, transition: `opacity ${X("fast")}ms ${W.exit}` } : null, { scope: u, onFocusCapture: D } = U(i, !!o, $, K);
51
+ isOpen: !!e,
52
+ duration: b ? x.base : x.fast
53
+ }), d = C && j === "exiting", E = !!e || d, h = d ? { opacity: 0, transition: `opacity ${X("fast")}ms ${W.exit}` } : null, { scope: u, onFocusCapture: D } = U(i, !!e, $, K);
54
54
  J(i, E, m, c, p);
55
55
  const M = S ?? !f;
56
56
  if (l(() => {
57
- if (!o || !M || typeof n != "function") return;
57
+ if (!e || !M || typeof n != "function") return;
58
58
  const t = (r) => {
59
- r.key !== "Escape" || r.defaultPrevented || ee(r) || !B(u) || G(i.current, r.target) || (oe(r), n(r));
59
+ r.key !== "Escape" || r.defaultPrevented || oo(r) || !B(u) || G(i.current, r.target) || (eo(r), n(r));
60
60
  };
61
61
  return document.addEventListener("keydown", t), () => document.removeEventListener("keydown", t);
62
- }, [o, M, n, u]), l(() => {
63
- if (!(!o || !b))
62
+ }, [e, M, n, u]), l(() => {
63
+ if (!(!e || !y))
64
64
  return Y();
65
- }, [o, b]), l(() => {
65
+ }, [e, y]), l(() => {
66
66
  const t = i.current;
67
67
  return t ? Z(t) : void 0;
68
68
  }, [g, s]), T && !g) return null;
69
- const x = /* @__PURE__ */ a(q.Provider, { value: u, children: /* @__PURE__ */ a(
69
+ const v = /* @__PURE__ */ a(q.Provider, { value: u, children: /* @__PURE__ */ a(
70
70
  "div",
71
71
  {
72
- className: `${E ? "u-modal u-modal-active" : "u-modal"}${y ? " u-react-modal-sheet" : ""}${d ? " u-react-modal-closing" : ""} ${w}`,
72
+ className: `${E ? "u-modal u-modal-active" : "u-modal"}${b ? " u-react-modal-sheet" : ""}${d ? " u-react-modal-closing" : ""} ${w}`,
73
73
  style: { backgroundColor: "unset" },
74
74
  onMouseDown: f ? () => {
75
75
  } : n,
76
- children: /* @__PURE__ */ a("div", { className: "u-modal__container", style: Object.assign({ backgroundColor: "#0006" }, h), children: /* @__PURE__ */ I(
76
+ children: /* @__PURE__ */ a("div", { className: "u-modal__container", style: Object.assign({ backgroundColor: "var(--u-modal-overlay, #0006)" }, h), children: /* @__PURE__ */ I(
77
77
  "div",
78
78
  {
79
79
  className: `u-modal__body${p ? " u-modal__body--close-inside" : ""}`,
@@ -81,15 +81,15 @@ const ge = ({
81
81
  tabIndex: -1,
82
82
  onFocusCapture: D,
83
83
  role: "dialog",
84
- "aria-label": _,
84
+ "aria-label": N,
85
85
  "aria-labelledby": m,
86
- "aria-modal": o || void 0,
87
- "aria-hidden": !o || void 0,
86
+ "aria-modal": e || void 0,
87
+ "aria-hidden": !e || void 0,
88
88
  onMouseDown: (t) => {
89
89
  t.stopPropagation();
90
90
  },
91
91
  style: Object.assign(
92
- { width: "100%", maxWidth: k, height: P, maxHeight: v, zIndex: 1001 },
92
+ { width: "100%", maxWidth: _, height: P, maxHeight: k, zIndex: 1001 },
93
93
  h
94
94
  ),
95
95
  children: [
@@ -100,6 +100,6 @@ const ge = ({
100
100
  ) })
101
101
  }
102
102
  ) });
103
- return !s || !e ? x : z(x, e);
103
+ return !s || !o ? v : z(v, o);
104
104
  };
105
- export { ge as Modal$u };
105
+ export { Eo as Modal$u };