urfu-ui-kit-react 2.1.7-next.3 → 2.1.7-next.5

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 (165) hide show
  1. package/dist/components/Accordion/Accordion.d.ts.map +1 -1
  2. package/dist/components/Accordion/Accordion.js +16 -15
  3. package/dist/components/BreadCrumbs/BreadCrumbs.d.ts.map +1 -1
  4. package/dist/components/BreadCrumbs/BreadCrumbs.js +23 -22
  5. package/dist/components/Button/Button.d.ts.map +1 -1
  6. package/dist/components/Button/Button.js +51 -50
  7. package/dist/components/Button/ButtonRefreshIcon.d.ts.map +1 -1
  8. package/dist/components/Button/ButtonRefreshIcon.js +9 -8
  9. package/dist/components/Calendar/Calendar.d.ts.map +1 -1
  10. package/dist/components/Calendar/Calendar.js +237 -216
  11. package/dist/components/Calendar/Calendar.types.d.ts +19 -0
  12. package/dist/components/Calendar/Calendar.types.d.ts.map +1 -1
  13. package/dist/components/Calendar/CalendarSelect.d.ts.map +1 -1
  14. package/dist/components/Calendar/CalendarSelect.js +41 -40
  15. package/dist/components/Card/Card.d.ts.map +1 -1
  16. package/dist/components/Card/Card.js +59 -58
  17. package/dist/components/Checkbox/Checkbox.d.ts.map +1 -1
  18. package/dist/components/Checkbox/Checkbox.js +20 -19
  19. package/dist/components/ColumnSettings/ColumnSettings.d.ts.map +1 -1
  20. package/dist/components/ColumnSettings/ColumnSettings.js +112 -111
  21. package/dist/components/ConfirmModal/ConfirmModal.d.ts.map +1 -1
  22. package/dist/components/ConfirmModal/ConfirmModal.js +30 -29
  23. package/dist/components/Drawer/Drawer.js +57 -57
  24. package/dist/components/ErrorScreen/ErrorScreen.d.ts.map +1 -1
  25. package/dist/components/ErrorScreen/ErrorScreen.js +151 -150
  26. package/dist/components/ErrorScreen/ErrorScreenIllustration.d.ts.map +1 -1
  27. package/dist/components/ErrorScreen/ErrorScreenIllustration.js +35 -34
  28. package/dist/components/FormField/FormField.d.ts.map +1 -1
  29. package/dist/components/FormField/FormField.js +30 -29
  30. package/dist/components/Icon/Icon.d.ts.map +1 -1
  31. package/dist/components/Icon/Icon.js +17 -16
  32. package/dist/components/InfiniteScroll/InfiniteScroll.d.ts.map +1 -1
  33. package/dist/components/InfiniteScroll/InfiniteScroll.js +23 -22
  34. package/dist/components/InputExpandTextarea/InputExpandTextarea.d.ts.map +1 -1
  35. package/dist/components/InputExpandTextarea/InputExpandTextarea.js +88 -87
  36. package/dist/components/InputFile/InputFile.d.ts.map +1 -1
  37. package/dist/components/InputFile/InputFile.js +99 -98
  38. package/dist/components/InputNumber/InputNumber.d.ts.map +1 -1
  39. package/dist/components/InputNumber/InputNumber.js +112 -111
  40. package/dist/components/InputText/InputAffix.d.ts.map +1 -1
  41. package/dist/components/InputText/InputAffix.js +69 -68
  42. package/dist/components/InputText/InputText.d.ts.map +1 -1
  43. package/dist/components/InputText/InputText.js +108 -107
  44. package/dist/components/InputTime/InputTime.d.ts.map +1 -1
  45. package/dist/components/InputTime/InputTime.js +202 -201
  46. package/dist/components/InputTime/InputTimeDropdown.d.ts.map +1 -1
  47. package/dist/components/InputTime/InputTimeDropdown.js +21 -20
  48. package/dist/components/Menu/Menu.d.ts.map +1 -1
  49. package/dist/components/Menu/Menu.js +58 -57
  50. package/dist/components/Message/Message.d.ts.map +1 -1
  51. package/dist/components/Message/Message.js +19 -18
  52. package/dist/components/Modal/Modal.js +66 -66
  53. package/dist/components/Modal/useModalTitleClearance.d.ts.map +1 -1
  54. package/dist/components/Modal/useModalTitleClearance.js +34 -33
  55. package/dist/components/Multiselect/Multiselect.js +222 -222
  56. package/dist/components/Notification/Notification.js +90 -90
  57. package/dist/components/OfflineBanner/OfflineBanner.d.ts.map +1 -1
  58. package/dist/components/OfflineBanner/OfflineBanner.js +40 -37
  59. package/dist/components/Pagination/Pagination.d.ts.map +1 -1
  60. package/dist/components/Pagination/Pagination.js +59 -58
  61. package/dist/components/Preloader/Preloader.d.ts.map +1 -1
  62. package/dist/components/Preloader/Preloader.js +28 -27
  63. package/dist/components/Radio/Radio.d.ts.map +1 -1
  64. package/dist/components/Radio/Radio.js +21 -20
  65. package/dist/components/Search/Search.d.ts.map +1 -1
  66. package/dist/components/Search/Search.js +33 -32
  67. package/dist/components/SearchSelect/SearchSelect.d.ts.map +1 -1
  68. package/dist/components/SearchSelect/SearchSelect.js +176 -166
  69. package/dist/components/SearchSelect/SearchSelectOption.d.ts.map +1 -1
  70. package/dist/components/SearchSelect/SearchSelectOption.js +21 -20
  71. package/dist/components/Select/MobileOptionSheet.d.ts.map +1 -1
  72. package/dist/components/Select/MobileOptionSheet.js +65 -64
  73. package/dist/components/Select/Select.js +184 -184
  74. package/dist/components/Skeleton/Skeleton.d.ts.map +1 -1
  75. package/dist/components/Skeleton/Skeleton.js +26 -25
  76. package/dist/components/Status/Status.d.ts.map +1 -1
  77. package/dist/components/Status/Status.js +36 -35
  78. package/dist/components/StickyActionBar/StickyActionBar.d.ts.map +1 -1
  79. package/dist/components/StickyActionBar/StickyActionBar.js +36 -35
  80. package/dist/components/Switch/Switch.d.ts.map +1 -1
  81. package/dist/components/Switch/Switch.js +19 -18
  82. package/dist/components/Table/Filter/DefaultInput.d.ts.map +1 -1
  83. package/dist/components/Table/Filter/DefaultInput.js +12 -11
  84. package/dist/components/Table/Filter/Filter.d.ts.map +1 -1
  85. package/dist/components/Table/Filter/Filter.js +99 -98
  86. package/dist/components/Table/Filter/FilterBooleanBox.d.ts.map +1 -1
  87. package/dist/components/Table/Filter/FilterBooleanBox.js +7 -6
  88. package/dist/components/Table/Filter/FilterBoxShell.js +48 -48
  89. package/dist/components/Table/Filter/FilterDateBox.d.ts.map +1 -1
  90. package/dist/components/Table/Filter/FilterDateBox.js +65 -64
  91. package/dist/components/Table/Filter/FilterSortIndicator.d.ts.map +1 -1
  92. package/dist/components/Table/Filter/FilterSortIndicator.js +8 -7
  93. package/dist/components/Table/Filter/SelectFilter.js +53 -53
  94. package/dist/components/Table/Filter/TableFilterOptions.d.ts.map +1 -1
  95. package/dist/components/Table/Filter/TableFilterOptions.js +141 -140
  96. package/dist/components/Table/Filter/TableFilterSortButton.d.ts.map +1 -1
  97. package/dist/components/Table/Filter/TableFilterSortButton.js +10 -9
  98. package/dist/components/Table/Filter/useVirtualOptionWindow.d.ts.map +1 -1
  99. package/dist/components/Table/Filter/useVirtualOptionWindow.js +9 -8
  100. package/dist/components/Table/Skeleton/createSkeletonColumns.d.ts.map +1 -1
  101. package/dist/components/Table/Skeleton/createSkeletonColumns.js +9 -8
  102. package/dist/components/Table/Table.d.ts.map +1 -1
  103. package/dist/components/Table/Table.helpers.d.ts.map +1 -1
  104. package/dist/components/Table/Table.helpers.js +31 -30
  105. package/dist/components/Table/Table.js +253 -252
  106. package/dist/components/Table/TableHead.d.ts.map +1 -1
  107. package/dist/components/Table/TableHead.js +92 -91
  108. package/dist/components/Table/TableMobileCard.d.ts.map +1 -1
  109. package/dist/components/Table/TableMobileCard.js +121 -120
  110. package/dist/components/Table/TableMobileFilters.d.ts.map +1 -1
  111. package/dist/components/Table/TableMobileFilters.js +28 -27
  112. package/dist/components/Table/TableMobileView.d.ts.map +1 -1
  113. package/dist/components/Table/TableMobileView.js +178 -177
  114. package/dist/components/Table/TableRow.d.ts.map +1 -1
  115. package/dist/components/Table/TableRow.js +59 -58
  116. package/dist/components/Table/useTableColumnPinning.d.ts +2 -917
  117. package/dist/components/Table/useTableColumnPinning.d.ts.map +1 -1
  118. package/dist/components/Table/useTableColumnPinning.js +21 -20
  119. package/dist/components/Tabs/Tabs.d.ts.map +1 -1
  120. package/dist/components/Tabs/Tabs.js +101 -99
  121. package/dist/components/Tabs/distributeTabs.d.ts +7 -3
  122. package/dist/components/Tabs/distributeTabs.d.ts.map +1 -1
  123. package/dist/components/Tabs/useTabsOverflow.d.ts +4 -0
  124. package/dist/components/Tabs/useTabsOverflow.d.ts.map +1 -1
  125. package/dist/components/Tabs/useTabsOverflow.js +40 -41
  126. package/dist/components/Textarea/Textarea.d.ts.map +1 -1
  127. package/dist/components/Textarea/Textarea.js +70 -69
  128. package/dist/components/Tooltip/Tooltip.js +106 -106
  129. package/dist/components/TreeView/TreeView.js +183 -183
  130. package/dist/components/VirtualList/VirtualList.d.ts.map +1 -1
  131. package/dist/components/VirtualList/VirtualList.js +42 -41
  132. package/dist/dev/index.js +2 -2
  133. package/dist/hooks/useAutoId.d.ts.map +1 -1
  134. package/dist/hooks/useAutoId.js +7 -6
  135. package/dist/hooks/useSelectEngine.d.ts.map +1 -1
  136. package/dist/hooks/useSelectEngine.js +31 -30
  137. package/dist/index.d.ts +4 -1
  138. package/dist/index.d.ts.map +1 -1
  139. package/dist/responsive/uiKitResponsive.d.ts +6 -0
  140. package/dist/responsive/uiKitResponsive.d.ts.map +1 -1
  141. package/dist/responsive/uiKitResponsive.js +27 -26
  142. package/dist/shared/kitCopy.js +1 -1
  143. package/dist/shared/optionStateColors.d.ts +3 -2
  144. package/dist/shared/optionStateColors.d.ts.map +1 -1
  145. package/dist/shared/optionStateColors.js +9 -4
  146. package/dist/shared/popupTransition.d.ts.map +1 -1
  147. package/dist/shared/popupTransition.js +7 -6
  148. package/dist/shared/sheetTitle.d.ts +2 -1
  149. package/dist/shared/sheetTitle.d.ts.map +1 -1
  150. package/dist/shared/size.d.ts.map +1 -1
  151. package/dist/shared/size.js +3 -2
  152. package/dist/shared/uiKitDefaults.d.ts +21 -0
  153. package/dist/shared/uiKitDefaults.d.ts.map +1 -1
  154. package/dist/shared/uiKitDefaults.js +32 -18
  155. package/dist/style-no-fonts.css +1 -1
  156. package/dist/style.css +1 -1
  157. package/dist/style.layer.css +2 -2
  158. package/dist/style.shell.css +2 -2
  159. package/dist/style.shell.lk.css +53 -0
  160. package/dist/urfu-ui-kit-react.js +29 -27
  161. package/dist/vanilla/core/dateLimits.js +21 -0
  162. package/dist/vanilla/core/describeError.js +1 -1
  163. package/dist/vanilla/core/distributeTabs.js +36 -23
  164. package/dist/vanilla/core/sheetTitle.js +7 -7
  165. package/package.json +3 -1
@@ -1 +1 @@
1
- {"version":3,"file":"Accordion.d.ts","sourceRoot":"","sources":["../../../src/components/Accordion/Accordion.tsx"],"names":[],"mappings":"AAAA,OAAO,kCAAkC,CAAC;AAC1C,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AAGvD,eAAO,MAAM,SAAS,GAAI,kDAMvB,mBAAmB,4CAoBrB,CAAA"}
1
+ {"version":3,"file":"Accordion.d.ts","sourceRoot":"","sources":["../../../src/components/Accordion/Accordion.tsx"],"names":[],"mappings":"AAAA,OAAO,kCAAkC,CAAC;AAC1C,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AAIvD,eAAO,MAAM,SAAS,GAAI,kDAMvB,mBAAmB,4CAoBrB,CAAA"}
@@ -1,19 +1,20 @@
1
- import { jsxs as n, jsx as o } from "react/jsx-runtime";
1
+ import { jsxs as l, jsx as o } from "react/jsx-runtime";
2
2
  /* empty css */
3
- import { useAutoId$u as r } from "../../hooks/useAutoId.js";
4
- const p = ({
5
- title: i = "",
6
- id: a = "",
7
- children: d = /* @__PURE__ */ o("div", {}),
8
- className: t = "",
9
- defaultOpen: e = !1
3
+ import { useAutoId$u as m } from "../../hooks/useAutoId.js";
4
+ import { kitCls$u as c, getUiKitPrefix$u as t } from "../../shared/uiKitDefaults.js";
5
+ const x = ({
6
+ title: e = "",
7
+ id: r = "",
8
+ children: a = /* @__PURE__ */ o("div", {}),
9
+ className: d = "",
10
+ defaultOpen: n = !1
10
11
  }) => {
11
- const c = `u-accordion${r(a, "auto")}`;
12
- return /* @__PURE__ */ n("div", { className: `u-accordion ${t}`, children: [
13
- /* @__PURE__ */ o("div", { className: "u-accordion-title", children: i }),
14
- /* @__PURE__ */ o("input", { className: "u-accordion-input", type: "checkbox", id: c, defaultChecked: e }),
15
- /* @__PURE__ */ o("label", { className: "u-accordion-toggle", htmlFor: c }),
16
- /* @__PURE__ */ o("div", { className: "u-accordion-content", children: d })
12
+ const s = m(r, "auto"), i = `${t()}-accordion${s}`;
13
+ return /* @__PURE__ */ l("div", { className: `${t()}-accordion ${d}`, children: [
14
+ /* @__PURE__ */ o("div", { className: c("accordion-title"), children: e }),
15
+ /* @__PURE__ */ o("input", { className: c("accordion-input"), type: "checkbox", id: i, defaultChecked: n }),
16
+ /* @__PURE__ */ o("label", { className: c("accordion-toggle"), htmlFor: i }),
17
+ /* @__PURE__ */ o("div", { className: c("accordion-content"), children: a })
17
18
  ] });
18
19
  };
19
- export { p as Accordion$u };
20
+ export { x as Accordion$u };
@@ -1 +1 @@
1
- {"version":3,"file":"BreadCrumbs.d.ts","sourceRoot":"","sources":["../../../src/components/BreadCrumbs/BreadCrumbs.tsx"],"names":[],"mappings":"AAAA,OAAO,kCAAkC,CAAC;AAC1C,OAAO,0DAA0D,CAAC;AAIlE,OAAO,KAAK,EAAkB,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAIjF,eAAO,MAAM,WAAW,GAAI,mCAIzB,qBAAqB,4CAuCvB,CAAC"}
1
+ {"version":3,"file":"BreadCrumbs.d.ts","sourceRoot":"","sources":["../../../src/components/BreadCrumbs/BreadCrumbs.tsx"],"names":[],"mappings":"AAAA,OAAO,kCAAkC,CAAC;AAC1C,OAAO,0DAA0D,CAAC;AAIlE,OAAO,KAAK,EAAkB,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAKjF,eAAO,MAAM,WAAW,GAAI,mCAIzB,qBAAqB,4CAuCvB,CAAC"}
@@ -1,33 +1,34 @@
1
- import { jsx as r, jsxs as m } from "react/jsx-runtime";
1
+ import { jsx as a, jsxs as m } from "react/jsx-runtime";
2
2
  /* empty css */
3
3
  /* empty css */
4
- import { Icon$u as p } from "../Icon/Icon.js";
5
- import { isPlainLeftClick$u as h } from "../../vanilla/core/linkClick.js";
6
- const d = (e) => !!e.to, $ = ({
7
- items: e = [],
8
- className: u = "",
9
- onNavigate: c
4
+ import { Icon$u as h } from "../Icon/Icon.js";
5
+ import { kitCls$u as b, getUiKitPrefix$u as u } from "../../shared/uiKitDefaults.js";
6
+ import { isPlainLeftClick$u as d } from "../../vanilla/core/linkClick.js";
7
+ const N = (s) => !!s.to, x = ({
8
+ items: s = [],
9
+ className: p = "",
10
+ onNavigate: o
10
11
  }) => {
11
- const l = e.filter((a) => a == null ? void 0 : a.label);
12
- return l.length ? /* @__PURE__ */ r("nav", { className: `u-breadcrumbs ${u}`.trim(), "aria-label": "Навигационная цепочка", children: l.map((a, s) => {
13
- const n = d(a) && !!a.to, t = n ? "th clr-blue-main" : "tt clr-gray-60", o = `u-breadcrumbs__item ${n ? `ucp ${t}` : t}`.trim(), b = s < l.length - 1;
14
- return /* @__PURE__ */ m("div", { className: "u-breadcrumbs__entry", children: [
15
- n && a.to ? /* @__PURE__ */ m(
12
+ const l = s.filter((r) => r == null ? void 0 : r.label);
13
+ return l.length ? /* @__PURE__ */ a("nav", { className: `${u()}-breadcrumbs ${p}`.trim(), "aria-label": "Навигационная цепочка", children: l.map((r, e) => {
14
+ const t = N(r) && !!r.to, n = t ? "th clr-blue-main" : "tt clr-gray-60", c = `${u()}-breadcrumbs__item ${t ? `ucp ${n}` : n}`.trim(), f = e < l.length - 1;
15
+ return /* @__PURE__ */ m("div", { className: b("breadcrumbs__entry"), children: [
16
+ t && r.to ? /* @__PURE__ */ m(
16
17
  "a",
17
18
  {
18
- className: o,
19
- href: a.to,
20
- onClick: c ? (i) => {
21
- h(i) && (i.preventDefault(), a.to && c(a.to));
19
+ className: c,
20
+ href: r.to,
21
+ onClick: o ? (i) => {
22
+ d(i) && (i.preventDefault(), r.to && o(r.to));
22
23
  } : void 0,
23
24
  children: [
24
- s === 0 ? /* @__PURE__ */ r(p, { name: "left-arrow", className: "clr-blue-main", size: "16px" }) : null,
25
- /* @__PURE__ */ r("span", { className: "u-breadcrumbs__label", children: a.label })
25
+ e === 0 ? /* @__PURE__ */ a(h, { name: "left-arrow", className: "clr-blue-main", size: "16px" }) : null,
26
+ /* @__PURE__ */ a("span", { className: b("breadcrumbs__label"), children: r.label })
26
27
  ]
27
28
  }
28
- ) : /* @__PURE__ */ r("span", { className: o, "aria-current": s === l.length - 1 ? "page" : void 0, children: a.label }),
29
- b ? /* @__PURE__ */ r("span", { className: t, children: "/" }) : null
30
- ] }, `${s}-${String(a.label)}`);
29
+ ) : /* @__PURE__ */ a("span", { className: c, "aria-current": e === l.length - 1 ? "page" : void 0, children: r.label }),
30
+ f ? /* @__PURE__ */ a("span", { className: n, children: "/" }) : null
31
+ ] }, `${e}-${String(r.label)}`);
31
32
  }) }) : null;
32
33
  };
33
- export { $ as BreadCrumbs$u };
34
+ export { x as BreadCrumbs$u };
@@ -1 +1 @@
1
- {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,kCAAkC,CAAC;AAC1C,OAAO,qDAAqD,CAAC;AAC7D,OAAO,eAAe,CAAC;AACvB,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAGlD,eAAO,MAAM,MAAM,GAAI,0OAkBpB,gBAAgB,4CAoFlB,CAAA"}
1
+ {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,kCAAkC,CAAC;AAC1C,OAAO,qDAAqD,CAAC;AAC7D,OAAO,eAAe,CAAC;AACvB,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAIlD,eAAO,MAAM,MAAM,GAAI,0OAkBpB,gBAAgB,4CAoFlB,CAAA"}
@@ -1,88 +1,89 @@
1
- import { jsxs as m, Fragment as P, jsx as o } from "react/jsx-runtime";
1
+ import { jsxs as h, Fragment as M, jsx as i } from "react/jsx-runtime";
2
2
  /* empty css */
3
3
  /* empty css */
4
4
  /* empty css */
5
5
  import { ButtonRefreshIcon$u as R } from "./ButtonRefreshIcon.js";
6
- const D = ({
7
- onClick: x,
8
- variant: e = "primary",
9
- size: p = "medium",
10
- type: h = "button",
11
- icon: a = "",
12
- iconLeft: f = !1,
6
+ import { getUiKitPrefix$u as n, kitCls$u as s, kitClasses$u as e } from "../../shared/uiKitDefaults.js";
7
+ const G = ({
8
+ onClick: $,
9
+ variant: r = "primary",
10
+ size: f = "medium",
11
+ type: g = "button",
12
+ icon: c = "",
13
+ iconLeft: y = !1,
13
14
  iconOnly: u = !1,
14
- iconSize: s,
15
- disabled: g = !1,
16
- loading: n,
17
- children: i,
18
- className: $ = "",
19
- "aria-label": y,
20
- "aria-describedby": w,
21
- "aria-expanded": S,
22
- "aria-busy": c,
23
- title: N
15
+ iconSize: l,
16
+ disabled: w = !1,
17
+ loading: o,
18
+ children: b,
19
+ className: S = "",
20
+ "aria-label": N,
21
+ "aria-describedby": j,
22
+ "aria-expanded": k,
23
+ "aria-busy": d,
24
+ title: C
24
25
  }) => {
25
- const j = (t) => {
26
+ const P = (t) => {
26
27
  switch (t) {
27
28
  case "primary":
28
- return "u-button";
29
+ return s("button");
29
30
  case "danger":
30
- return "u-button u-button-danger";
31
+ return e("button", "button-danger");
31
32
  case "outline":
32
- return "u-button u-button-outline";
33
+ return e("button", "button-outline");
33
34
  case "refresh":
34
- return "u-button u-button-outline u-button-refresh";
35
+ return e("button", "button-outline", "button-refresh");
35
36
  case "danger-outline":
36
- return "u-button u-button-danger-outline";
37
+ return e("button", "button-danger-outline");
37
38
  case "simple":
38
- return "u-button u-button-simple";
39
+ return e("button", "button-simple");
39
40
  case "icon":
40
- return "u-button u-button-icon";
41
+ return e("button", "button-icon");
41
42
  case "text":
42
- return "u-button-text";
43
+ return s("button-text");
43
44
  case "text-danger":
44
- return "u-button-text u-button-text-danger";
45
+ return e("button-text", "button-text-danger");
45
46
  case "text-table":
46
- return "u-button-text u-button-text-table";
47
+ return e("button-text", "button-text-table");
47
48
  case "text-danger-table":
48
- return "u-button-text u-button-text-danger-table";
49
+ return e("button-text", "button-text-danger-table");
49
50
  }
50
51
  }, z = (t) => {
51
52
  switch (t) {
52
53
  case "medium":
53
54
  return "";
54
55
  case "small":
55
- return " u-button-small";
56
+ return ` ${n()}-button-small`;
56
57
  default:
57
58
  return "";
58
59
  }
59
- }, B = (t, r) => t && ["text", "text-danger"].includes(r) ? " u-button-text-icon-left" : t ? " u-button-icon-left" : "", F = ["primary", "danger", "outline", "danger-outline", "simple", "refresh"], I = (t) => t ? " icon-only" : "", M = (t) => {
60
+ }, B = (t, a) => t && ["text", "text-danger"].includes(a) ? ` ${n()}-button-text-icon-left` : t ? ` ${n()}-button-icon-left` : "", F = ["primary", "danger", "outline", "danger-outline", "simple", "refresh"], I = (t) => t ? " icon-only" : "", K = (t) => {
60
61
  if (typeof t == "number")
61
62
  return `calc(${t} * var(--u-unit, 1px))`;
62
- const r = String(t).trim(), d = r.match(/^(-?\d+(?:\.\d+)?)px$/);
63
- return d ? `calc(${d[1]} * var(--u-unit, 1px))` : r;
64
- }, l = e === "refresh" || n !== void 0, b = /* @__PURE__ */ m(P, { children: [
65
- !u && e !== "icon" && (i === void 0 ? e === "refresh" ? "Обновить" : "ОК" : i),
63
+ const a = String(t).trim(), p = a.match(/^(-?\d+(?:\.\d+)?)px$/);
64
+ return p ? `calc(${p[1]} * var(--u-unit, 1px))` : a;
65
+ }, m = r === "refresh" || o !== void 0, x = /* @__PURE__ */ h(M, { children: [
66
+ !u && r !== "icon" && (b === void 0 ? r === "refresh" ? "Обновить" : "ОК" : b),
66
67
  " ",
67
- a && /* @__PURE__ */ o("i", { style: s && { fontSize: M(s) }, className: `u-icon${I(u)} icon-${a}` })
68
+ c && /* @__PURE__ */ i("i", { style: l && { fontSize: K(l) }, className: `${n()}-icon${I(u)} icon-${c}` })
68
69
  ] });
69
- return /* @__PURE__ */ m(
70
+ return /* @__PURE__ */ h(
70
71
  "button",
71
72
  {
72
- className: `${j(e)}${z(p)}${B(f, e)}${u && ["text", "text-danger"].includes(e) ? " u-button-text-icon-only" : ""}${u && F.includes(e) ? " u-button-icon-only" : ""}${l ? " u-button-with-loading" : ""}${n ? " u-button-loading" : ""} ${$}`,
73
- type: h,
74
- onClick: x,
75
- disabled: g || n,
76
- "aria-label": y,
77
- "aria-describedby": w,
78
- "aria-expanded": S,
79
- "aria-busy": n === void 0 ? c : n || c,
80
- title: N,
73
+ className: `${P(r)}${z(f)}${B(y, r)}${u && ["text", "text-danger"].includes(r) ? ` ${n()}-button-text-icon-only` : ""}${u && F.includes(r) ? ` ${n()}-button-icon-only` : ""}${m ? ` ${n()}-button-with-loading` : ""}${o ? ` ${n()}-button-loading` : ""} ${S}`,
74
+ type: g,
75
+ onClick: $,
76
+ disabled: w || o,
77
+ "aria-label": N,
78
+ "aria-describedby": j,
79
+ "aria-expanded": k,
80
+ "aria-busy": o === void 0 ? d : o || d,
81
+ title: C,
81
82
  children: [
82
- l ? /* @__PURE__ */ o("span", { className: "u-button-loading-content", children: b }) : b,
83
- n ? /* @__PURE__ */ o("span", { className: "u-button-loading-indicator", "aria-hidden": "true", children: /* @__PURE__ */ o(R, { spinning: !0 }) }) : null
83
+ m ? /* @__PURE__ */ i("span", { className: s("button-loading-content"), children: x }) : x,
84
+ o ? /* @__PURE__ */ i("span", { className: s("button-loading-indicator"), "aria-hidden": "true", children: /* @__PURE__ */ i(R, { spinning: !0 }) }) : null
84
85
  ]
85
86
  }
86
87
  );
87
88
  };
88
- export { D as Button$u };
89
+ export { G as Button$u };
@@ -1 +1 @@
1
- {"version":3,"file":"ButtonRefreshIcon.d.ts","sourceRoot":"","sources":["../../../src/components/Button/ButtonRefreshIcon.tsx"],"names":[],"mappings":"AAEA,UAAU,sBAAsB;IAC9B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,iFAAiF;AACjF,wBAAgB,iBAAiB,CAAC,EAAE,IAAS,EAAE,QAAgB,EAAE,SAAc,EAAE,EAAE,sBAAsB,2CASxG"}
1
+ {"version":3,"file":"ButtonRefreshIcon.d.ts","sourceRoot":"","sources":["../../../src/components/Button/ButtonRefreshIcon.tsx"],"names":[],"mappings":"AAGA,UAAU,sBAAsB;IAC9B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,iFAAiF;AACjF,wBAAgB,iBAAiB,CAAC,EAAE,IAAS,EAAE,QAAgB,EAAE,SAAc,EAAE,EAAE,sBAAsB,2CASxG"}
@@ -1,16 +1,17 @@
1
- import { jsxs as t, jsx as e } from "react/jsx-runtime";
2
- function i({ size: r = 16, spinning: n = !1, className: o = "" }) {
3
- return /* @__PURE__ */ t(
1
+ import { jsxs as i, jsx as r } from "react/jsx-runtime";
2
+ import { getUiKitPrefix$u as e } from "../../shared/uiKitDefaults.js";
3
+ function c({ size: o = 16, spinning: t = !1, className: n = "" }) {
4
+ return /* @__PURE__ */ i(
4
5
  "svg",
5
6
  {
6
7
  viewBox: "0 0 22 22",
7
8
  fill: "none",
8
9
  "aria-hidden": "true",
9
10
  focusable: "false",
10
- className: `u-button-refresh-icon${n ? " u-button-refresh-icon--spinning" : ""} ${o}`.trim(),
11
- style: { "--u-button-refresh-icon-size": `calc(${r} * var(--u-unit, 1px))` },
11
+ className: `${e()}-button-refresh-icon${t ? ` ${e()}-button-refresh-icon--spinning` : ""} ${n}`.trim(),
12
+ style: { [`--${e()}-button-refresh-icon-size`]: `calc(${o} * var(--u-unit, 1px))` },
12
13
  children: [
13
- /* @__PURE__ */ e(
14
+ /* @__PURE__ */ r(
14
15
  "path",
15
16
  {
16
17
  d: "M1 11c0 5.523 4.477 10 10 10s10-4.477 10-10a9.956 9.956 0 0 0-2-6 10.058 10.058 0 0 0-1.999-2A9.97 9.97 0 0 0 11 1c-2.252 0-4.33.744-6.001 2",
@@ -19,7 +20,7 @@ function i({ size: r = 16, spinning: n = !1, className: o = "" }) {
19
20
  strokeLinecap: "round"
20
21
  }
21
22
  ),
22
- /* @__PURE__ */ e(
23
+ /* @__PURE__ */ r(
23
24
  "path",
24
25
  {
25
26
  fillRule: "evenodd",
@@ -32,4 +33,4 @@ function i({ size: r = 16, spinning: n = !1, className: o = "" }) {
32
33
  }
33
34
  );
34
35
  }
35
- export { i as ButtonRefreshIcon$u };
36
+ export { c as ButtonRefreshIcon$u };
@@ -1 +1 @@
1
- {"version":3,"file":"Calendar.d.ts","sourceRoot":"","sources":["../../../src/components/Calendar/Calendar.tsx"],"names":[],"mappings":"AACA,OAAO,KAA8F,MAAM,OAAO,CAAC;AAInH,OAAO,4CAA4C,CAAC;AACpD,OAAO,KAAK,EAAwB,kBAAkB,EAAiB,MAAM,kBAAkB,CAAC;AAShG,OAAO,iBAAiB,CAAC;AAgEzB,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAkejD,CAAC"}
1
+ {"version":3,"file":"Calendar.d.ts","sourceRoot":"","sources":["../../../src/components/Calendar/Calendar.tsx"],"names":[],"mappings":"AACA,OAAO,KAA8F,MAAM,OAAO,CAAC;AAInH,OAAO,4CAA4C,CAAC;AACpD,OAAO,KAAK,EAAwB,kBAAkB,EAAiB,MAAM,kBAAkB,CAAC;AAUhG,OAAO,iBAAiB,CAAC;AAgEzB,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CA4gBjD,CAAC"}