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
@@ -1,6 +1,6 @@
1
- import { jsxs as b, jsx as i, Fragment as Z } from "react/jsx-runtime";
1
+ import { jsxs as b, jsx as o, Fragment as Z } from "react/jsx-runtime";
2
2
  /* empty css */
3
- const A = () => /* @__PURE__ */ i("button", { type: "button", className: "u-paginator__pages-dots", children: /* @__PURE__ */ i(
3
+ const A = () => /* @__PURE__ */ o("button", { type: "button", className: "u-paginator__pages-dots", children: /* @__PURE__ */ o(
4
4
  "svg",
5
5
  {
6
6
  xmlns: "http://www.w3.org/2000/svg",
@@ -8,17 +8,17 @@ const A = () => /* @__PURE__ */ i("button", { type: "button", className: "u-pagi
8
8
  height: "3",
9
9
  viewBox: "0 0 9 3",
10
10
  fill: "none",
11
- children: /* @__PURE__ */ i(
11
+ children: /* @__PURE__ */ o(
12
12
  "path",
13
13
  {
14
14
  d: "M1.61584 2.07C1.4105 2.07 1.23317 1.99533 1.08384 1.846C0.943836 1.69667 0.873836 1.51467 0.873836 1.3C0.873836 1.076 0.943836 0.894 1.08384 0.754C1.23317 0.614 1.4105 0.544 1.61584 0.544C1.82117 0.544 1.99384 0.614 2.13384 0.754C2.28317 0.894 2.35784 1.076 2.35784 1.3C2.35784 1.51467 2.28317 1.69667 2.13384 1.846C1.99384 1.99533 1.82117 2.07 1.61584 2.07ZM4.58263 2.07C4.3773 2.07 4.19997 1.99533 4.05063 1.846C3.91063 1.69667 3.84063 1.51467 3.84063 1.3C3.84063 1.076 3.91063 0.894 4.05063 0.754C4.19997 0.614 4.3773 0.544 4.58263 0.544C4.78797 0.544 4.96063 0.614 5.10063 0.754C5.24997 0.894 5.32463 1.076 5.32463 1.3C5.32463 1.51467 5.24997 1.69667 5.10063 1.846C4.96063 1.99533 4.78797 2.07 4.58263 2.07ZM7.54943 2.07C7.3441 2.07 7.16676 1.99533 7.01743 1.846C6.87743 1.69667 6.80743 1.51467 6.80743 1.3C6.80743 1.076 6.87743 0.894 7.01743 0.754C7.16676 0.614 7.3441 0.544 7.54943 0.544C7.75476 0.544 7.92743 0.614 8.06743 0.754C8.21676 0.894 8.29143 1.076 8.29143 1.3C8.29143 1.51467 8.21676 1.69667 8.06743 1.846C7.92743 1.99533 7.75476 2.07 7.54943 2.07Z",
15
- fill: "#545454"
15
+ style: { fill: "var(--u-color-text-secondary, #545454)" }
16
16
  }
17
17
  )
18
18
  }
19
19
  ) });
20
- function B(n, t, o) {
21
- const a = Math.max(1, o - 2), l = a + 4;
20
+ function B(n, t, i) {
21
+ const a = Math.max(1, i - 2), l = a + 4;
22
22
  if (n <= l)
23
23
  return Array.from({ length: n }, (d, e) => e + 1);
24
24
  const c = (d, e) => Array.from({ length: e - d + 1 }, (v, m) => d + m), u = t - Math.floor((a - 1) / 2), _ = u + a - 1;
@@ -27,12 +27,12 @@ function B(n, t, o) {
27
27
  const L = ({
28
28
  startItem: n,
29
29
  endItem: t,
30
- totalItems: o
31
- }) => `Записи с ${n} по ${t} из ${o}`;
30
+ totalItems: i
31
+ }) => `Записи с ${n} по ${t} из ${i}`;
32
32
  function V({
33
33
  totalItems: n,
34
34
  currentPage: t,
35
- pageSize: o,
35
+ pageSize: i,
36
36
  onPageChange: a,
37
37
  onPageSizeChange: l,
38
38
  dataLength: c,
@@ -44,16 +44,16 @@ function V({
44
44
  style: m,
45
45
  marginTop: p
46
46
  }) {
47
- const f = _ ?? [10, 20, ...n > 20 ? [50] : []], C = f.length > 0 ? f : [o], M = C[0] ?? o, g = C.filter((r, s) => {
47
+ const f = _ ?? [10, 20, ...n > 20 ? [50] : []], C = f.length > 0 ? f : [i], M = C[0] ?? i, g = C.filter((r, s) => {
48
48
  if (s === 0) return !0;
49
49
  const R = C[s - 1];
50
50
  return n > R;
51
- }), w = n > M && g.length > 1, h = Math.ceil(n / o), N = h > 1;
52
- if ((c ?? Math.max(0, Math.min(o, n - (t - 1) * o))) === 0 || !N && !w) return null;
53
- const $ = (t - 1) * o + 1, x = Math.min(t * o, n), k = () => B(h, t, u).map((r, s) => r === "dots" ? /* @__PURE__ */ i(A, {}, `dots-${s}`) : (
51
+ }), w = n > M && g.length > 1, h = Math.ceil(n / i), N = h > 1;
52
+ if ((c ?? Math.max(0, Math.min(i, n - (t - 1) * i))) === 0 || !N && !w) return null;
53
+ const $ = (t - 1) * i + 1, x = Math.min(t * i, n), k = () => B(h, t, u).map((r, s) => r === "dots" ? /* @__PURE__ */ o(A, {}, `dots-${s}`) : (
54
54
  // Ключ — место в ряду, а не номер: при сдвиге окна кнопка остаётся на месте и меняет
55
55
  // только число, подсветка не перетекает на соседнюю кнопку после перестановки (как во Vue).
56
- /* @__PURE__ */ i(
56
+ /* @__PURE__ */ o(
57
57
  "button",
58
58
  {
59
59
  type: "button",
@@ -77,13 +77,13 @@ function V({
77
77
  ...m
78
78
  },
79
79
  children: [
80
- e ? null : /* @__PURE__ */ i("p", { className: "u-pagination__result", children: D({ startItem: $, endItem: x, totalItems: n }) }),
81
- /* @__PURE__ */ i("div", { className: "u-pagination__limits", children: w && /* @__PURE__ */ b(Z, { children: [
80
+ e ? null : /* @__PURE__ */ o("p", { className: "u-pagination__result", children: D({ startItem: $, endItem: x, totalItems: n }) }),
81
+ /* @__PURE__ */ o("div", { className: "u-pagination__limits", children: w && /* @__PURE__ */ b(Z, { children: [
82
82
  "Выводить по",
83
- /* @__PURE__ */ i("div", { className: "u-pagination__limit-wrapper", children: g.map((r) => /* @__PURE__ */ i(
83
+ /* @__PURE__ */ o("div", { className: "u-pagination__limit-wrapper", children: g.map((r) => /* @__PURE__ */ o(
84
84
  "span",
85
85
  {
86
- className: `u-pagination__limit ${r === o ? "u-pagination__limit_active" : ""}`,
86
+ className: `u-pagination__limit ${r === i ? "u-pagination__limit_active" : ""}`,
87
87
  onClick: () => l(r),
88
88
  role: "button",
89
89
  tabIndex: 0,
@@ -93,8 +93,8 @@ function V({
93
93
  r
94
94
  )) })
95
95
  ] }) }),
96
- /* @__PURE__ */ i("div", { className: "u-table-pagination-paginator-column", children: N ? /* @__PURE__ */ b("div", { className: "u-paginator", children: [
97
- /* @__PURE__ */ i(
96
+ /* @__PURE__ */ o("div", { className: "u-table-pagination-paginator-column", children: N ? /* @__PURE__ */ b("div", { className: "u-paginator", children: [
97
+ /* @__PURE__ */ o(
98
98
  "button",
99
99
  {
100
100
  type: "button",
@@ -103,8 +103,8 @@ function V({
103
103
  onClick: () => t > 1 && a(t - 1)
104
104
  }
105
105
  ),
106
- /* @__PURE__ */ i("div", { className: "u-paginator__pages", children: k() }),
107
- /* @__PURE__ */ i(
106
+ /* @__PURE__ */ o("div", { className: "u-paginator__pages", children: k() }),
107
+ /* @__PURE__ */ o(
108
108
  "button",
109
109
  {
110
110
  type: "button",
@@ -1 +1 @@
1
- {"version":3,"file":"Preloader.d.ts","sourceRoot":"","sources":["../../../src/components/Preloader/Preloader.tsx"],"names":[],"mappings":"AAAA,OAAO,kCAAkC,CAAC;AAE1C,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AACvD,OAAO,kBAAkB,CAAA;AAEzB,eAAO,MAAM,SAAS,GAAI,wBAGvB,mBAAmB,4CAmErB,CAAA"}
1
+ {"version":3,"file":"Preloader.d.ts","sourceRoot":"","sources":["../../../src/components/Preloader/Preloader.tsx"],"names":[],"mappings":"AAAA,OAAO,kCAAkC,CAAC;AAC1C,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AACvD,OAAO,kBAAkB,CAAA;AAGzB,eAAO,MAAM,SAAS,GAAI,wBAGvB,mBAAmB,4CAoErB,CAAA"}
@@ -1,18 +1,18 @@
1
1
  import { jsxs as r, Fragment as a, jsx as e } from "react/jsx-runtime";
2
2
  /* empty css */
3
- import { useId as n } from "react";
4
3
  /* empty css */
4
+ import { useAutoId$u as n } from "../../hooks/useAutoId.js";
5
5
  const h = ({
6
- variant: i = "small-primary",
7
- className: o = ""
6
+ variant: o = "small-primary",
7
+ className: i = ""
8
8
  }) => {
9
- const t = n().replace(/[^\w-]/g, ""), l = (s) => `${s}_${t}`;
9
+ const t = n(void 0, "u-preloader").replaceAll(/[^\w-]/g, ""), l = (s) => `${s}_${t}`;
10
10
  return /* @__PURE__ */ r(a, { children: [
11
- i === "small-primary" && /* @__PURE__ */ e("div", { className: `u-preloader-mini ${o}`, children: /* @__PURE__ */ r("svg", { className: "u-preloader-mini-container", width: "48", height: "48", viewBox: "0 0 48 48", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
12
- /* @__PURE__ */ e("circle", { cx: "24", cy: "24", r: "23", stroke: "#1E4391", strokeWidth: "2" }),
13
- /* @__PURE__ */ e("circle", { className: "u-preloader-mini-dot", cx: "6.5", cy: "6.5", r: "6.5", fill: "#1E4391" })
11
+ o === "small-primary" && /* @__PURE__ */ e("div", { className: `u-preloader-mini ${i}`, children: /* @__PURE__ */ r("svg", { className: "u-preloader-mini-container", width: "48", height: "48", viewBox: "0 0 48 48", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
12
+ /* @__PURE__ */ e("circle", { cx: "24", cy: "24", r: "23", style: { stroke: "var(--u-color-primary, #1E4391)" }, strokeWidth: "2" }),
13
+ /* @__PURE__ */ e("circle", { className: "u-preloader-mini-dot", cx: "6.5", cy: "6.5", r: "6.5", style: { fill: "var(--u-color-primary, #1E4391)" } })
14
14
  ] }) }),
15
- i === "small-special" && /* @__PURE__ */ e("div", { className: `u-preloader-mini-gradient ${o}`, children: /* @__PURE__ */ r("svg", { className: "u-preloader-mini-gradient-container", width: "48", height: "48", viewBox: "0 0 48 48", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
15
+ o === "small-special" && /* @__PURE__ */ e("div", { className: `u-preloader-mini-gradient ${i}`, children: /* @__PURE__ */ r("svg", { className: "u-preloader-mini-gradient-container", width: "48", height: "48", viewBox: "0 0 48 48", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
16
16
  /* @__PURE__ */ e("circle", { cx: "24", cy: "24", r: "23", stroke: `url(#${l("paint0_linear_8025_35626")})`, strokeWidth: "2" }),
17
17
  /* @__PURE__ */ e("circle", { className: "u-preloader-mini-dot", cx: "6.5", cy: "6.5", r: "6.5", fill: `url(#${l("paint0_linear_8025_35627")})` }),
18
18
  /* @__PURE__ */ r("defs", { children: [
@@ -28,12 +28,12 @@ const h = ({
28
28
  ] })
29
29
  ] })
30
30
  ] }) }),
31
- i === "large-primary" && /* @__PURE__ */ e("div", { className: `u-preloader ${o}`, children: /* @__PURE__ */ r("svg", { className: "u-preloader-container", width: "76", height: "76", viewBox: "0 0 76 76", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
32
- /* @__PURE__ */ e("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M38 74C57.8823 74 74 57.8823 74 38C74 18.1177 57.8823 2 38 2C18.1177 2 2 18.1177 2 38C2 57.8823 18.1177 74 38 74ZM38 76C58.9868 76 76 58.9868 76 38C76 17.0132 58.9868 0 38 0C17.0132 0 0 17.0132 0 38C0 58.9868 17.0132 76 38 76Z", fill: "#1E4391" }),
33
- /* @__PURE__ */ e("path", { className: "u-preloader-dot", d: "M12.2573 17.5283C12.2573 20.0136 10.2426 22.0283 7.75732 22.0283C5.27204 22.0283 3.25732 20.0136 3.25732 17.5283C3.25732 15.043 5.27204 13.0283 7.75732 13.0283C10.2426 13.0283 12.2573 15.043 12.2573 17.5283Z", fill: "#1E4391" }),
34
- /* @__PURE__ */ e("path", { className: "u-preloader-logo", d: "M52.5974 25.4219C52.9649 24.721 53.5215 24.137 54.2039 23.7362C54.8864 23.3354 55.6675 23.1338 56.4587 23.1542L56.8417 21.7254H45.4303L45.0472 23.1542C46.9626 23.1542 49.575 23.9203 49.7512 25.4219H52.5897H52.5974ZM19.543 23.1542C22.4274 23.1542 23.6456 25.1653 24.9441 27.3219L35.5588 45.525C36.0606 46.4329 36.5509 47.5322 36.5356 48.5589C36.4973 51.2403 33.0229 52.2171 30.9429 52.3167C29.4339 52.3686 27.9339 52.0642 26.5645 51.428L25.7179 52.5159C26.2121 54.6151 28.1542 57.1663 30.8242 57.1471C35.463 57.1126 37.8993 52.8721 39.7648 49.4169L43.2124 43.016L33.1838 25.8203C32.2568 24.288 33.7776 23.1618 35.3941 23.1389L35.7771 21.7139H19.9145L19.543 23.1542Z", fill: "#1E4391" })
31
+ o === "large-primary" && /* @__PURE__ */ e("div", { className: `u-preloader ${i}`, children: /* @__PURE__ */ r("svg", { className: "u-preloader-container", width: "76", height: "76", viewBox: "0 0 76 76", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
32
+ /* @__PURE__ */ e("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M38 74C57.8823 74 74 57.8823 74 38C74 18.1177 57.8823 2 38 2C18.1177 2 2 18.1177 2 38C2 57.8823 18.1177 74 38 74ZM38 76C58.9868 76 76 58.9868 76 38C76 17.0132 58.9868 0 38 0C17.0132 0 0 17.0132 0 38C0 58.9868 17.0132 76 38 76Z", style: { fill: "var(--u-color-primary, #1E4391)" } }),
33
+ /* @__PURE__ */ e("path", { className: "u-preloader-dot", d: "M12.2573 17.5283C12.2573 20.0136 10.2426 22.0283 7.75732 22.0283C5.27204 22.0283 3.25732 20.0136 3.25732 17.5283C3.25732 15.043 5.27204 13.0283 7.75732 13.0283C10.2426 13.0283 12.2573 15.043 12.2573 17.5283Z", style: { fill: "var(--u-color-primary, #1E4391)" } }),
34
+ /* @__PURE__ */ e("path", { className: "u-preloader-logo", d: "M52.5974 25.4219C52.9649 24.721 53.5215 24.137 54.2039 23.7362C54.8864 23.3354 55.6675 23.1338 56.4587 23.1542L56.8417 21.7254H45.4303L45.0472 23.1542C46.9626 23.1542 49.575 23.9203 49.7512 25.4219H52.5897H52.5974ZM19.543 23.1542C22.4274 23.1542 23.6456 25.1653 24.9441 27.3219L35.5588 45.525C36.0606 46.4329 36.5509 47.5322 36.5356 48.5589C36.4973 51.2403 33.0229 52.2171 30.9429 52.3167C29.4339 52.3686 27.9339 52.0642 26.5645 51.428L25.7179 52.5159C26.2121 54.6151 28.1542 57.1663 30.8242 57.1471C35.463 57.1126 37.8993 52.8721 39.7648 49.4169L43.2124 43.016L33.1838 25.8203C32.2568 24.288 33.7776 23.1618 35.3941 23.1389L35.7771 21.7139H19.9145L19.543 23.1542Z", style: { fill: "var(--u-color-primary, #1E4391)" } })
35
35
  ] }) }),
36
- i === "large-special" && /* @__PURE__ */ e("div", { className: `u-preloader-gradient ${o}`, children: /* @__PURE__ */ r("svg", { className: "u-preloader-gradient-container", width: "76", height: "76", viewBox: "0 0 76 76", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
36
+ o === "large-special" && /* @__PURE__ */ e("div", { className: `u-preloader-gradient ${i}`, children: /* @__PURE__ */ r("svg", { className: "u-preloader-gradient-container", width: "76", height: "76", viewBox: "0 0 76 76", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
37
37
  /* @__PURE__ */ e("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M38 74C57.8823 74 74 57.8823 74 38C74 18.1177 57.8823 2 38 2C18.1177 2 2 18.1177 2 38C2 57.8823 18.1177 74 38 74ZM38 76C58.9868 76 76 58.9868 76 38C76 17.0132 58.9868 0 38 0C17.0132 0 0 17.0132 0 38C0 58.9868 17.0132 76 38 76Z", fill: `url(#${l("paint0_linear_1804_4939")})` }),
38
38
  /* @__PURE__ */ e("path", { className: "u-preloader-gradient-dot", d: "M12.2573 17.5283C12.2573 20.0136 10.2426 22.0283 7.75732 22.0283C5.27204 22.0283 3.25732 20.0136 3.25732 17.5283C3.25732 15.043 5.27204 13.0283 7.75732 13.0283C10.2426 13.0283 12.2573 15.043 12.2573 17.5283Z", fill: `url(#${l("paint1_linear_1804_4939")})` }),
39
39
  /* @__PURE__ */ e("path", { className: "u-preloader-gradient-logo", d: "M52.5974 25.4219C52.9649 24.721 53.5215 24.137 54.2039 23.7362C54.8864 23.3354 55.6675 23.1338 56.4587 23.1542L56.8417 21.7254H45.4303L45.0472 23.1542C46.9626 23.1542 49.575 23.9203 49.7512 25.4219H52.5897H52.5974ZM19.543 23.1542C22.4274 23.1542 23.6456 25.1653 24.9441 27.3219L35.5588 45.525C36.0606 46.4329 36.5509 47.5322 36.5356 48.5589C36.4973 51.2403 33.0229 52.2171 30.9429 52.3167C29.4339 52.3686 27.9339 52.0642 26.5645 51.428L25.7179 52.5159C26.2121 54.6151 28.1542 57.1663 30.8242 57.1471C35.463 57.1126 37.8993 52.8721 39.7648 49.4169L43.2124 43.016L33.1838 25.8203C32.2568 24.288 33.7776 23.1618 35.3941 23.1389L35.7771 21.7139H19.9145L19.543 23.1542Z", fill: `url(#${l("paint2_linear_1804_4939")})` }),
@@ -1 +1 @@
1
- {"version":3,"file":"Search.d.ts","sourceRoot":"","sources":["../../../src/components/Search/Search.tsx"],"names":[],"mappings":"AAAA,OAAO,kCAAkC,CAAC;AAC1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,qDAAqD,CAAC;AAG7D,eAAO,MAAM,MAAM,GAAI,6EASpB,gBAAgB,4CAwClB,CAAA"}
1
+ {"version":3,"file":"Search.d.ts","sourceRoot":"","sources":["../../../src/components/Search/Search.tsx"],"names":[],"mappings":"AAAA,OAAO,kCAAkC,CAAC;AAE1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,qDAAqD,CAAC;AAI7D,eAAO,MAAM,MAAM,GAAI,6EASpB,gBAAgB,4CA2ClB,CAAA"}
@@ -1,47 +1,52 @@
1
- import { jsxs as p, jsx as t } from "react/jsx-runtime";
1
+ import { jsxs as f, jsx as r } from "react/jsx-runtime";
2
2
  /* empty css */
3
+ import { useRef as h } from "react";
3
4
  /* empty css */
4
- import { sizeClassName$u as h } from "../../shared/size.js";
5
- const x = ({
5
+ import { sizeClassName$u as N } from "../../shared/size.js";
6
+ import { useInputOverflow$u as $ } from "../../hooks/useInputOverflow.js";
7
+ const R = ({
6
8
  id: c,
7
- placeholder: l = "Введите запрос",
8
- value: s,
9
- onChange: a,
10
- onKeyDown: n,
9
+ placeholder: n = "Введите запрос",
10
+ value: t,
11
+ onChange: s,
12
+ onKeyDown: u,
11
13
  disabled: e = !1,
12
- className: o = "",
13
- size: i
14
+ className: i = "",
15
+ size: l
14
16
  }) => {
15
- const r = h(i), u = (m) => {
16
- m.preventDefault(), a && a({
17
+ const a = N(l), o = h(null);
18
+ $(o, t, e);
19
+ const m = (p) => {
20
+ p.preventDefault(), s && s({
17
21
  target: { value: "" }
18
22
  });
19
23
  };
20
- return /* @__PURE__ */ p("div", { className: `u-search${r ? ` ${r}` : ""} ${o}`, children: [
21
- /* @__PURE__ */ t(
24
+ return /* @__PURE__ */ f("div", { className: `u-search${a ? ` ${a}` : ""} ${i}`, children: [
25
+ /* @__PURE__ */ r(
22
26
  "input",
23
27
  {
28
+ ref: o,
24
29
  id: c,
25
- placeholder: l,
26
- className: `u-input${s && !e ? " u-input--clearable" : ""}`,
30
+ placeholder: n,
31
+ className: `u-input${t && !e ? " u-input--clearable" : ""}`,
27
32
  type: "search",
28
- value: s,
29
- onChange: a,
30
- onKeyDown: n,
33
+ value: t,
34
+ onChange: s,
35
+ onKeyDown: u,
31
36
  disabled: e
32
37
  }
33
38
  ),
34
- s && !e && /* @__PURE__ */ t(
39
+ t && !e && /* @__PURE__ */ r(
35
40
  "button",
36
41
  {
37
42
  type: "button",
38
43
  className: "u-search-clear",
39
44
  "aria-label": "Очистить",
40
- onClick: u,
41
- children: /* @__PURE__ */ t("i", { className: "u-icon icon-cross-small", "aria-hidden": "true" })
45
+ onClick: m,
46
+ children: /* @__PURE__ */ r("i", { className: "u-icon icon-cross-small", "aria-hidden": "true" })
42
47
  }
43
48
  ),
44
- /* @__PURE__ */ t("button", { className: "u-search-loupe", type: "button", disabled: e })
49
+ /* @__PURE__ */ r("button", { className: "u-search-loupe", type: "button", disabled: e })
45
50
  ] });
46
51
  };
47
- export { x as Search$u };
52
+ export { R as Search$u };
@@ -1,6 +1,8 @@
1
1
 
2
2
  import { SelectProperties } from './Select.types';
3
3
  import './Select.less';
4
+
5
+ import './Select.after.less';
4
6
  import '../../styles/tokens.less';
5
7
  import '../../styles/popup.less';
6
8
  export declare const Select: ({ "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, "aria-describedby": ariaDescribedBy, title, required, options, styleSelectContainer, styleTitle, styleSelect, lineUp, rowGap, columnGap, placeholder, value, isClearable, onChange, className, tableView, size, validationText, validationOn, error, absoluteValidationText, disabled, portalOn, noScroll, variant, id, mobilePicker, }: SelectProperties) => import("react/jsx-runtime").JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../src/components/Select/Select.tsx"],"names":[],"mappings":"AAEA,OAAO,kCAAkC,CAAC;AAC1C,OAAO,EAAE,gBAAgB,EAAyB,MAAM,gBAAgB,CAAA;AACxE,OAAO,eAAe,CAAA;AACtB,OAAO,0BAA0B,CAAA;AACjC,OAAO,yBAAyB,CAAA;AAchC,eAAO,MAAM,MAAM,GAAI,uYA8BpB,gBAAgB,4CAiTlB,CAAA"}
1
+ {"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../src/components/Select/Select.tsx"],"names":[],"mappings":"AAEA,OAAO,kCAAkC,CAAC;AAC1C,OAAO,EAAE,gBAAgB,EAAyB,MAAM,gBAAgB,CAAA;AACxE,OAAO,eAAe,CAAA;AACtB,OAAO,qDAAqD,CAAA;AAC5D,OAAO,qBAAqB,CAAA;AAC5B,OAAO,0BAA0B,CAAA;AACjC,OAAO,yBAAyB,CAAA;AAchC,eAAO,MAAM,MAAM,GAAI,uYA8BpB,gBAAgB,4CAiTlB,CAAA"}
@@ -3,6 +3,8 @@ import { getFieldAccessibility$u as we } from "../../shared/fieldAccessibility.j
3
3
  import { useRef as $e, useMemo as je, useState as F, useEffect as Pe } from "react";
4
4
  /* empty css */
5
5
  /* empty css */
6
+ /* empty css */
7
+ /* empty css */
6
8
  /* empty css */
7
9
  /* empty css */
8
10
  import { createPortal as ze } from "react-dom";
@@ -17,13 +19,13 @@ import { MobileOptionSheet$u as Ae } from "./MobileOptionSheet.js";
17
19
  import { getPortalScopeProps$u as Ke } from "../../shared/uiKitDefaults.js";
18
20
  import { resolveValidation$u as Le } from "../../vanilla/core/validation.js";
19
21
  import { resolveSheetTitle$u as Me } from "../../vanilla/core/sheetTitle.js";
20
- const it = ({
22
+ const at = ({
21
23
  "aria-label": N,
22
24
  "aria-labelledby": w,
23
25
  "aria-describedby": Y,
24
26
  title: p = "",
25
27
  required: $ = !1,
26
- options: s,
28
+ options: i,
27
29
  styleSelectContainer: q,
28
30
  styleTitle: J,
29
31
  styleSelect: j,
@@ -46,10 +48,10 @@ const it = ({
46
48
  noScroll: v,
47
49
  variant: ce = "field",
48
50
  id: re,
49
- mobilePicker: se
51
+ mobilePicker: ie
50
52
  }) => {
51
- const d = Ee(T, h), R = De(T, h), b = ce === "button", f = Le({ error: ee, validationOn: U, validationText: V }), S = s.findIndex((e) => k(e == null ? void 0 : e.value, t == null ? void 0 : t.value)), i = Te({
52
- optionsLength: s.length,
53
+ const d = Ee(T, h), R = De(T, h), b = ce === "button", f = Le({ error: ee, validationOn: U, validationText: V }), S = i.findIndex((e) => k(e == null ? void 0 : e.value, t == null ? void 0 : t.value)), s = Te({
54
+ optionsLength: i.length,
53
55
  initialIndex: S >= 0 ? S : 0,
54
56
  selectedIndex: S,
55
57
  disabled: n,
@@ -61,15 +63,15 @@ const it = ({
61
63
  getPortalPosition: (e) => ({ x: e.x, y: e.y + 60 + e.height + e.scrollY }),
62
64
  onSelectByIndex: (e) => {
63
65
  var g;
64
- const c = s[e];
66
+ const c = i[e];
65
67
  c && (m(c), (g = O.current) == null || g.close());
66
68
  }
67
- }), O = $e(i);
68
- O.current = i;
69
+ }), O = $e(s);
70
+ O.current = s;
69
71
  const {
70
72
  isOpen: I,
71
73
  blockRef: D,
72
- portalOptionsRef: ie,
74
+ portalOptionsRef: se,
73
75
  optionsListRef: le,
74
76
  listboxId: l,
75
77
  activeDescendantId: ae,
@@ -84,11 +86,11 @@ const it = ({
84
86
  isAnimated: H,
85
87
  portalWidth: fe,
86
88
  usePortal: xe
87
- } = i, a = i.portalPosition, ge = we(l, p, $, f, {
89
+ } = s, a = s.portalPosition, ge = we(l, p, $, f, {
88
90
  "aria-label": N,
89
91
  "aria-labelledby": w,
90
92
  "aria-describedby": Y
91
- }), C = i.close, A = (e) => typeof e == "number" ? `calc(${e} * var(--u-preset-unit, 1px))` : String(e), ye = je(() => Re(s), [s]), r = Ce(se) && !b, [K, x] = F(!1), [ve, Se] = F("");
93
+ }), C = s.close, A = (e) => typeof e == "number" ? `calc(${e} * var(--u-preset-unit, 1px))` : String(e), ye = je(() => Re(i), [i]), r = Ce(ie) && !b, [K, x] = F(!1), [ve, Se] = F("");
92
94
  Pe(() => {
93
95
  var e;
94
96
  r ? (e = O.current) == null || e.close() : x(!1);
@@ -190,7 +192,7 @@ const it = ({
190
192
  "aria-disabled": n || void 0,
191
193
  "aria-activedescendant": r ? void 0 : ae,
192
194
  onKeyDown: r ? Oe : ue,
193
- onClick: (e) => r ? L() : i.toggle(e.currentTarget),
195
+ onClick: (e) => r ? L() : s.toggle(e.currentTarget),
194
196
  style: Object.assign(
195
197
  d ? {
196
198
  height: "var(--u-compact-height)",
@@ -244,7 +246,7 @@ const it = ({
244
246
  /* @__PURE__ */ o(
245
247
  "div",
246
248
  {
247
- ref: ie,
249
+ ref: se,
248
250
  ...Ke(),
249
251
  id: l,
250
252
  role: "listbox",
@@ -264,10 +266,10 @@ const it = ({
264
266
  v ? {
265
267
  maxHeight: "none"
266
268
  } : {},
267
- i.optionsStyle,
269
+ s.optionsStyle,
268
270
  _(me, H)
269
271
  ),
270
- children: s.map((e, c) => B(e, c, !1))
272
+ children: i.map((e, c) => B(e, c, !1))
271
273
  }
272
274
  ),
273
275
  document.body
@@ -288,10 +290,10 @@ const it = ({
288
290
  * вместо плавного угасания.
289
291
  */
290
292
  { display: "block" },
291
- i.optionsStyle,
293
+ s.optionsStyle,
292
294
  _(be, H)
293
295
  ),
294
- children: s.map((e, c) => B(e, c, !0))
296
+ children: i.map((e, c) => B(e, c, !0))
295
297
  }
296
298
  )
297
299
  ]
@@ -306,7 +308,7 @@ const it = ({
306
308
  {
307
309
  active: K,
308
310
  title: ve,
309
- options: s,
311
+ options: i,
310
312
  isSelected: (e) => k(t == null ? void 0 : t.value, e == null ? void 0 : e.value),
311
313
  onSelect: (e) => {
312
314
  m(e), x(!1);
@@ -316,4 +318,4 @@ const it = ({
316
318
  ) : null
317
319
  ] });
318
320
  };
319
- export { it as Select$u };
321
+ export { at as Select$u };
@@ -1 +1 @@
1
- {"version":3,"file":"StickyActionBar.d.ts","sourceRoot":"","sources":["../../../src/components/StickyActionBar/StickyActionBar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA+B,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC5E,OAAO,kCAAkC,CAAC;AAC1C,OAAO,gEAAgE,CAAC;AAGxE,MAAM,MAAM,oBAAoB,GAAG,iBAAiB,CAAC;IACnD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wFAAwF;IACxF,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC,CAAC;AAEH,eAAO,MAAM,eAAe,GAAI,sCAAmD,oBAAoB,4CAyHtG,CAAC"}
1
+ {"version":3,"file":"StickyActionBar.d.ts","sourceRoot":"","sources":["../../../src/components/StickyActionBar/StickyActionBar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA+B,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC5E,OAAO,kCAAkC,CAAC;AAC1C,OAAO,gEAAgE,CAAC;AAExE,MAAM,MAAM,oBAAoB,GAAG,iBAAiB,CAAC;IACnD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wFAAwF;IACxF,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC,CAAC;AAEH,eAAO,MAAM,eAAe,GAAI,sCAAmD,oBAAoB,4CAiGtG,CAAC"}
@@ -1,73 +1,60 @@
1
- import { jsx as A } from "react/jsx-runtime";
2
- import { useRef as N, useState as H, useEffect as k } from "react";
1
+ import { jsx as z } from "react/jsx-runtime";
2
+ import { useRef as A, useState as N, useEffect as F } from "react";
3
3
  /* empty css */
4
4
  /* empty css */
5
- import { setDevLauncherOffset$u as E, occupiedFromBottom$u as I } from "../../vanilla/core/devLauncherOffset.js";
6
- const Y = ({ children: R, className: S = "", mobileFixed: c = !1 }) => {
7
- const p = N(null), [m, v] = H(!1);
8
- return k(() => {
9
- const t = p.current;
10
- if (!t) return;
5
+ const O = ({ children: k, className: E = "", mobileFixed: c = !1 }) => {
6
+ const m = A(null), [L, f] = N(!1);
7
+ return F(() => {
8
+ const e = m.current;
9
+ if (!e) return;
11
10
  if (c) {
12
- v(!1);
11
+ f(!1);
13
12
  return;
14
13
  }
15
- const i = window.matchMedia("(max-width: 576px)");
14
+ const a = window.matchMedia("(max-width: 576px)");
16
15
  let o;
17
- const n = () => {
16
+ const l = () => {
18
17
  o == null || o(), o = void 0;
19
- const r = "--u-sticky-action-bar-scroll-padding", d = "--u-sticky-action-bar-left-inset", g = "--u-sticky-action-bar-right-inset", B = [r, d, g].map((e) => [e, t.style.getPropertyValue(e)]), h = (e, s) => {
20
- const u = String(s) + "px";
21
- t.style.getPropertyValue(e) !== u && t.style.setProperty(e, u);
18
+ const u = "--u-sticky-action-bar-scroll-padding", g = "--u-sticky-action-bar-left-inset", w = "--u-sticky-action-bar-right-inset", S = [u, g, w].map((t) => [t, e.style.getPropertyValue(t)]), v = (t, r) => {
19
+ const i = String(r) + "px";
20
+ e.style.getPropertyValue(t) !== i && e.style.setProperty(t, i);
22
21
  };
23
- let a = null;
22
+ let n = null;
24
23
  const b = () => {
25
- let e = t.parentElement;
26
- for (; e && !/(auto|scroll|hidden|overlay)/.test(getComputedStyle(e).overflowY); )
27
- e = e.parentElement;
28
- const s = i.matches && e && Number.parseFloat(getComputedStyle(e).paddingBottom) || 0, u = String(s) + "px";
29
- t.style.getPropertyValue(r) !== u && t.style.setProperty(r, u);
30
- const x = e ? e.getBoundingClientRect().top + e.clientTop + e.clientHeight : window.innerHeight, P = t.style.getPropertyValue("position"), z = t.style.getPropertyPriority("position");
31
- t.style.setProperty("position", "static", "important");
32
- const f = "u-react-sticky-action-bar-stuck", C = t.classList.contains(f);
33
- t.classList.remove(f);
34
- const w = t.getBoundingClientRect();
35
- C && t.classList.add(f);
36
- const L = e ? e.getBoundingClientRect().left + e.clientLeft : 0, V = e ? e.clientWidth : window.innerWidth;
37
- h(d, Math.max(0, w.left - L)), h(g, Math.max(0, L + V - w.right));
38
- const M = w.bottom;
39
- P ? t.style.setProperty("position", P, z) : t.style.removeProperty("position");
40
- const O = (Number.parseFloat(getComputedStyle(t).bottom) || 0) + s;
41
- v(M > x - O + 1);
42
- }, l = () => {
43
- a === null && (a = window.requestAnimationFrame(() => {
44
- a = null, b();
24
+ let t = e.parentElement;
25
+ for (; t && !/(auto|scroll|hidden|overlay)/.test(getComputedStyle(t).overflowY); )
26
+ t = t.parentElement;
27
+ const r = a.matches && t && Number.parseFloat(getComputedStyle(t).paddingBottom) || 0, i = String(r) + "px";
28
+ e.style.getPropertyValue(u) !== i && e.style.setProperty(u, i);
29
+ const R = t ? t.getBoundingClientRect().top + t.clientTop + t.clientHeight : window.innerHeight, h = e.style.getPropertyValue("position"), x = e.style.getPropertyPriority("position");
30
+ e.style.setProperty("position", "static", "important");
31
+ const d = "u-react-sticky-action-bar-stuck", B = e.classList.contains(d);
32
+ e.classList.remove(d);
33
+ const y = e.getBoundingClientRect();
34
+ B && e.classList.add(d);
35
+ const P = t ? t.getBoundingClientRect().left + t.clientLeft : 0, C = t ? t.clientWidth : window.innerWidth;
36
+ v(g, Math.max(0, y.left - P)), v(w, Math.max(0, P + C - y.right));
37
+ const V = y.bottom;
38
+ h ? e.style.setProperty("position", h, x) : e.style.removeProperty("position");
39
+ const M = (Number.parseFloat(getComputedStyle(e).bottom) || 0) + r;
40
+ f(V > R - M + 1);
41
+ }, s = () => {
42
+ n === null && (n = window.requestAnimationFrame(() => {
43
+ n = null, b();
45
44
  }));
46
45
  };
47
- b(), window.addEventListener("scroll", l, { capture: !0, passive: !0 }), window.addEventListener("resize", l);
48
- const y = new ResizeObserver(l);
49
- y.observe(t), t.parentElement && y.observe(t.parentElement), o = () => {
50
- window.removeEventListener("scroll", l, !0), window.removeEventListener("resize", l), y.disconnect();
51
- for (const [e, s] of B)
52
- s ? t.style.setProperty(e, s) : t.style.removeProperty(e);
53
- a !== null && window.cancelAnimationFrame(a);
46
+ b(), window.addEventListener("scroll", s, { capture: !0, passive: !0 }), window.addEventListener("resize", s);
47
+ const p = new ResizeObserver(s);
48
+ p.observe(e), e.parentElement && p.observe(e.parentElement), o = () => {
49
+ window.removeEventListener("scroll", s, !0), window.removeEventListener("resize", s), p.disconnect();
50
+ for (const [t, r] of S)
51
+ r ? e.style.setProperty(t, r) : e.style.removeProperty(t);
52
+ n !== null && window.cancelAnimationFrame(n);
54
53
  };
55
54
  };
56
- return n(), i.addEventListener("change", n), () => {
57
- i.removeEventListener("change", n), o == null || o();
55
+ return l(), a.addEventListener("change", l), () => {
56
+ a.removeEventListener("change", l), o == null || o();
58
57
  };
59
- }, [c]), k(() => {
60
- const t = p.current;
61
- if (!t) return;
62
- const i = {}, o = window.matchMedia("(max-width: 576px)"), n = () => {
63
- const d = m || c && o.matches;
64
- E(i, d ? I(t) : null);
65
- };
66
- n();
67
- const r = typeof ResizeObserver < "u" ? new ResizeObserver(n) : void 0;
68
- return r == null || r.observe(t), window.addEventListener("resize", n), o.addEventListener("change", n), () => {
69
- r == null || r.disconnect(), window.removeEventListener("resize", n), o.removeEventListener("change", n), E(i, null);
70
- };
71
- }, [m, c]), /* @__PURE__ */ A("footer", { ref: p, className: "u-react-sticky-action-bar " + (m ? "u-react-sticky-action-bar-stuck u-react-sticky-action-bar-shadow " : "") + (c ? "u-react-sticky-action-bar-mobile-fixed " : "") + S, children: R });
58
+ }, [c]), /* @__PURE__ */ z("footer", { ref: m, className: "u-react-sticky-action-bar " + (L ? "u-react-sticky-action-bar-stuck u-react-sticky-action-bar-shadow " : "") + (c ? "u-react-sticky-action-bar-mobile-fixed " : "") + E, children: k });
72
59
  };
73
- export { Y as StickyActionBar$u };
60
+ export { O as StickyActionBar$u };
@@ -1 +1 @@
1
- {"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../src/components/Switch/Switch.tsx"],"names":[],"mappings":"AACA,OAAO,kCAAkC,CAAC;AAC1C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,qDAAqD,CAAC;AAE7D;;;;GAIG;AACH,wBAAgB,MAAM,CAAC,EACrB,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,EAAE,EACF,SAAS,GACV,EAAE,WAAW,2CAoBb"}
1
+ {"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../src/components/Switch/Switch.tsx"],"names":[],"mappings":"AACA,OAAO,kCAAkC,CAAC;AAC1C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,qDAAqD,CAAC;AAG7D;;;;GAIG;AACH,wBAAgB,MAAM,CAAC,EACrB,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,EAAE,EACF,SAAS,GACV,EAAE,WAAW,2CAoBb"}
@@ -1,25 +1,25 @@
1
- import { jsx as t, jsxs as u } from "react/jsx-runtime";
2
- import { useId as n } from "react";
1
+ import { jsx as t, jsxs as m } from "react/jsx-runtime";
3
2
  /* empty css */
4
3
  /* empty css */
4
+ import { useAutoId$u as d } from "../../hooks/useAutoId.js";
5
5
  function x({
6
- checked: o,
6
+ checked: c,
7
7
  onChange: s,
8
8
  disabled: r,
9
9
  children: i,
10
10
  id: l,
11
11
  className: e
12
12
  }) {
13
- const a = n(), c = l ?? a, p = ["u-switch", e].filter(Boolean).join(" ");
14
- return /* @__PURE__ */ t("div", { className: "u-switch-wrapper", children: /* @__PURE__ */ u("label", { className: p, htmlFor: c, children: [
13
+ const u = d(void 0, "u-switch"), o = l ?? u, a = ["u-switch", e].filter(Boolean).join(" ");
14
+ return /* @__PURE__ */ t("div", { className: "u-switch-wrapper", children: /* @__PURE__ */ m("label", { className: a, htmlFor: o, children: [
15
15
  /* @__PURE__ */ t(
16
16
  "input",
17
17
  {
18
- id: c,
18
+ id: o,
19
19
  type: "checkbox",
20
- checked: o,
20
+ checked: c,
21
21
  disabled: r,
22
- onChange: (m) => s == null ? void 0 : s(m.target.checked)
22
+ onChange: (p) => s == null ? void 0 : s(p.target.checked)
23
23
  }
24
24
  ),
25
25
  /* @__PURE__ */ t("div", { className: "u-switch__point" }),
@@ -1 +1 @@
1
- {"version":3,"file":"FilterStringBox.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/Filter/FilterStringBox.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAGxE,eAAO,MAAM,eAAe,GAAI,kQAI7B,cAAc,GAAG,iBAAiB,4CA0EpC,CAAC"}
1
+ {"version":3,"file":"FilterStringBox.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/Filter/FilterStringBox.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAGxE,eAAO,MAAM,eAAe,GAAI,kQAI7B,cAAc,GAAG,iBAAiB,4CA4EpC,CAAC"}