urfu-ui-kit-react 2.1.7-next.4 → 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.
- package/dist/components/Accordion/Accordion.d.ts.map +1 -1
- package/dist/components/Accordion/Accordion.js +16 -15
- package/dist/components/BreadCrumbs/BreadCrumbs.d.ts.map +1 -1
- package/dist/components/BreadCrumbs/BreadCrumbs.js +23 -22
- package/dist/components/Button/Button.d.ts.map +1 -1
- package/dist/components/Button/Button.js +51 -50
- package/dist/components/Button/ButtonRefreshIcon.d.ts.map +1 -1
- package/dist/components/Button/ButtonRefreshIcon.js +9 -8
- package/dist/components/Calendar/Calendar.js +232 -232
- package/dist/components/Calendar/CalendarSelect.d.ts.map +1 -1
- package/dist/components/Calendar/CalendarSelect.js +41 -40
- package/dist/components/Card/Card.d.ts.map +1 -1
- package/dist/components/Card/Card.js +59 -58
- package/dist/components/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/components/Checkbox/Checkbox.js +20 -19
- package/dist/components/ColumnSettings/ColumnSettings.d.ts.map +1 -1
- package/dist/components/ColumnSettings/ColumnSettings.js +112 -111
- package/dist/components/ConfirmModal/ConfirmModal.d.ts.map +1 -1
- package/dist/components/ConfirmModal/ConfirmModal.js +30 -29
- package/dist/components/Drawer/Drawer.js +57 -57
- package/dist/components/ErrorScreen/ErrorScreen.d.ts.map +1 -1
- package/dist/components/ErrorScreen/ErrorScreen.js +151 -150
- package/dist/components/ErrorScreen/ErrorScreenIllustration.d.ts.map +1 -1
- package/dist/components/ErrorScreen/ErrorScreenIllustration.js +35 -34
- package/dist/components/FormField/FormField.d.ts.map +1 -1
- package/dist/components/FormField/FormField.js +30 -29
- package/dist/components/Icon/Icon.d.ts.map +1 -1
- package/dist/components/Icon/Icon.js +17 -16
- package/dist/components/InfiniteScroll/InfiniteScroll.d.ts.map +1 -1
- package/dist/components/InfiniteScroll/InfiniteScroll.js +23 -22
- package/dist/components/InputExpandTextarea/InputExpandTextarea.d.ts.map +1 -1
- package/dist/components/InputExpandTextarea/InputExpandTextarea.js +88 -87
- package/dist/components/InputFile/InputFile.d.ts.map +1 -1
- package/dist/components/InputFile/InputFile.js +99 -98
- package/dist/components/InputNumber/InputNumber.d.ts.map +1 -1
- package/dist/components/InputNumber/InputNumber.js +112 -111
- package/dist/components/InputText/InputAffix.d.ts.map +1 -1
- package/dist/components/InputText/InputAffix.js +69 -68
- package/dist/components/InputText/InputText.d.ts.map +1 -1
- package/dist/components/InputText/InputText.js +108 -107
- package/dist/components/InputTime/InputTime.d.ts.map +1 -1
- package/dist/components/InputTime/InputTime.js +202 -201
- package/dist/components/InputTime/InputTimeDropdown.d.ts.map +1 -1
- package/dist/components/InputTime/InputTimeDropdown.js +21 -20
- package/dist/components/Menu/Menu.d.ts.map +1 -1
- package/dist/components/Menu/Menu.js +58 -57
- package/dist/components/Message/Message.d.ts.map +1 -1
- package/dist/components/Message/Message.js +19 -18
- package/dist/components/Modal/Modal.js +66 -66
- package/dist/components/Modal/useModalTitleClearance.d.ts.map +1 -1
- package/dist/components/Modal/useModalTitleClearance.js +34 -33
- package/dist/components/Multiselect/Multiselect.js +222 -222
- package/dist/components/Notification/Notification.js +90 -90
- package/dist/components/OfflineBanner/OfflineBanner.d.ts.map +1 -1
- package/dist/components/OfflineBanner/OfflineBanner.js +40 -37
- package/dist/components/Pagination/Pagination.d.ts.map +1 -1
- package/dist/components/Pagination/Pagination.js +59 -58
- package/dist/components/Preloader/Preloader.d.ts.map +1 -1
- package/dist/components/Preloader/Preloader.js +28 -27
- package/dist/components/Radio/Radio.d.ts.map +1 -1
- package/dist/components/Radio/Radio.js +21 -20
- package/dist/components/Search/Search.d.ts.map +1 -1
- package/dist/components/Search/Search.js +33 -32
- package/dist/components/SearchSelect/SearchSelect.js +178 -178
- package/dist/components/SearchSelect/SearchSelectOption.d.ts.map +1 -1
- package/dist/components/SearchSelect/SearchSelectOption.js +21 -20
- package/dist/components/Select/MobileOptionSheet.d.ts.map +1 -1
- package/dist/components/Select/MobileOptionSheet.js +65 -64
- package/dist/components/Select/Select.js +184 -184
- package/dist/components/Skeleton/Skeleton.d.ts.map +1 -1
- package/dist/components/Skeleton/Skeleton.js +26 -25
- package/dist/components/Status/Status.d.ts.map +1 -1
- package/dist/components/Status/Status.js +36 -35
- package/dist/components/StickyActionBar/StickyActionBar.d.ts.map +1 -1
- package/dist/components/StickyActionBar/StickyActionBar.js +36 -35
- package/dist/components/Switch/Switch.d.ts.map +1 -1
- package/dist/components/Switch/Switch.js +19 -18
- package/dist/components/Table/Filter/DefaultInput.d.ts.map +1 -1
- package/dist/components/Table/Filter/DefaultInput.js +12 -11
- package/dist/components/Table/Filter/Filter.d.ts.map +1 -1
- package/dist/components/Table/Filter/Filter.js +99 -98
- package/dist/components/Table/Filter/FilterBooleanBox.d.ts.map +1 -1
- package/dist/components/Table/Filter/FilterBooleanBox.js +7 -6
- package/dist/components/Table/Filter/FilterBoxShell.js +48 -48
- package/dist/components/Table/Filter/FilterDateBox.d.ts.map +1 -1
- package/dist/components/Table/Filter/FilterDateBox.js +65 -64
- package/dist/components/Table/Filter/FilterSortIndicator.d.ts.map +1 -1
- package/dist/components/Table/Filter/FilterSortIndicator.js +8 -7
- package/dist/components/Table/Filter/SelectFilter.js +53 -53
- package/dist/components/Table/Filter/TableFilterOptions.d.ts.map +1 -1
- package/dist/components/Table/Filter/TableFilterOptions.js +141 -140
- package/dist/components/Table/Filter/TableFilterSortButton.d.ts.map +1 -1
- package/dist/components/Table/Filter/TableFilterSortButton.js +10 -9
- package/dist/components/Table/Filter/useVirtualOptionWindow.d.ts.map +1 -1
- package/dist/components/Table/Filter/useVirtualOptionWindow.js +9 -8
- package/dist/components/Table/Skeleton/createSkeletonColumns.d.ts.map +1 -1
- package/dist/components/Table/Skeleton/createSkeletonColumns.js +9 -8
- package/dist/components/Table/Table.d.ts.map +1 -1
- package/dist/components/Table/Table.helpers.d.ts.map +1 -1
- package/dist/components/Table/Table.helpers.js +31 -30
- package/dist/components/Table/Table.js +253 -252
- package/dist/components/Table/TableHead.d.ts.map +1 -1
- package/dist/components/Table/TableHead.js +92 -91
- package/dist/components/Table/TableMobileCard.d.ts.map +1 -1
- package/dist/components/Table/TableMobileCard.js +121 -120
- package/dist/components/Table/TableMobileFilters.d.ts.map +1 -1
- package/dist/components/Table/TableMobileFilters.js +28 -27
- package/dist/components/Table/TableMobileView.d.ts.map +1 -1
- package/dist/components/Table/TableMobileView.js +178 -177
- package/dist/components/Table/TableRow.d.ts.map +1 -1
- package/dist/components/Table/TableRow.js +59 -58
- package/dist/components/Table/useTableColumnPinning.d.ts +2 -917
- package/dist/components/Table/useTableColumnPinning.d.ts.map +1 -1
- package/dist/components/Table/useTableColumnPinning.js +21 -20
- package/dist/components/Tabs/Tabs.d.ts.map +1 -1
- package/dist/components/Tabs/Tabs.js +102 -101
- package/dist/components/Textarea/Textarea.d.ts.map +1 -1
- package/dist/components/Textarea/Textarea.js +70 -69
- package/dist/components/Tooltip/Tooltip.js +106 -106
- package/dist/components/TreeView/TreeView.js +183 -183
- package/dist/components/VirtualList/VirtualList.d.ts.map +1 -1
- package/dist/components/VirtualList/VirtualList.js +42 -41
- package/dist/dev/index.js +1 -1
- package/dist/hooks/useAutoId.d.ts.map +1 -1
- package/dist/hooks/useAutoId.js +7 -6
- package/dist/hooks/useSelectEngine.d.ts.map +1 -1
- package/dist/hooks/useSelectEngine.js +31 -30
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/responsive/uiKitResponsive.d.ts +6 -0
- package/dist/responsive/uiKitResponsive.d.ts.map +1 -1
- package/dist/responsive/uiKitResponsive.js +27 -26
- package/dist/shared/kitCopy.js +1 -1
- package/dist/shared/optionStateColors.d.ts +3 -2
- package/dist/shared/optionStateColors.d.ts.map +1 -1
- package/dist/shared/optionStateColors.js +9 -4
- package/dist/shared/popupTransition.d.ts.map +1 -1
- package/dist/shared/popupTransition.js +7 -6
- package/dist/shared/sheetTitle.d.ts +2 -1
- package/dist/shared/sheetTitle.d.ts.map +1 -1
- package/dist/shared/size.d.ts.map +1 -1
- package/dist/shared/size.js +3 -2
- package/dist/shared/uiKitDefaults.d.ts +21 -0
- package/dist/shared/uiKitDefaults.d.ts.map +1 -1
- package/dist/shared/uiKitDefaults.js +32 -18
- package/dist/style.shell.lk.css +53 -0
- package/dist/urfu-ui-kit-react.js +27 -26
- package/dist/vanilla/core/describeError.js +1 -1
- package/dist/vanilla/core/sheetTitle.js +7 -7
- 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;
|
|
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
|
|
1
|
+
import { jsxs as l, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import { useAutoId$u as
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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
|
|
12
|
-
return /* @__PURE__ */
|
|
13
|
-
/* @__PURE__ */ o("div", { className: "
|
|
14
|
-
/* @__PURE__ */ o("input", { className: "
|
|
15
|
-
/* @__PURE__ */ o("label", { className: "
|
|
16
|
-
/* @__PURE__ */ o("div", { className: "
|
|
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 {
|
|
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;
|
|
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
|
|
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
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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 =
|
|
12
|
-
return l.length ? /* @__PURE__ */
|
|
13
|
-
const
|
|
14
|
-
return /* @__PURE__ */ m("div", { className: "
|
|
15
|
-
|
|
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:
|
|
19
|
-
href:
|
|
20
|
-
onClick:
|
|
21
|
-
|
|
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
|
-
|
|
25
|
-
/* @__PURE__ */
|
|
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__ */
|
|
29
|
-
|
|
30
|
-
] }, `${
|
|
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 {
|
|
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;
|
|
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
|
|
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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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:
|
|
15
|
-
disabled:
|
|
16
|
-
loading:
|
|
17
|
-
children:
|
|
18
|
-
className:
|
|
19
|
-
"aria-label":
|
|
20
|
-
"aria-describedby":
|
|
21
|
-
"aria-expanded":
|
|
22
|
-
"aria-busy":
|
|
23
|
-
title:
|
|
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
|
|
26
|
+
const P = (t) => {
|
|
26
27
|
switch (t) {
|
|
27
28
|
case "primary":
|
|
28
|
-
return "
|
|
29
|
+
return s("button");
|
|
29
30
|
case "danger":
|
|
30
|
-
return "
|
|
31
|
+
return e("button", "button-danger");
|
|
31
32
|
case "outline":
|
|
32
|
-
return "
|
|
33
|
+
return e("button", "button-outline");
|
|
33
34
|
case "refresh":
|
|
34
|
-
return "
|
|
35
|
+
return e("button", "button-outline", "button-refresh");
|
|
35
36
|
case "danger-outline":
|
|
36
|
-
return "
|
|
37
|
+
return e("button", "button-danger-outline");
|
|
37
38
|
case "simple":
|
|
38
|
-
return "
|
|
39
|
+
return e("button", "button-simple");
|
|
39
40
|
case "icon":
|
|
40
|
-
return "
|
|
41
|
+
return e("button", "button-icon");
|
|
41
42
|
case "text":
|
|
42
|
-
return "
|
|
43
|
+
return s("button-text");
|
|
43
44
|
case "text-danger":
|
|
44
|
-
return "
|
|
45
|
+
return e("button-text", "button-text-danger");
|
|
45
46
|
case "text-table":
|
|
46
|
-
return "
|
|
47
|
+
return e("button-text", "button-text-table");
|
|
47
48
|
case "text-danger-table":
|
|
48
|
-
return "
|
|
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
|
|
56
|
+
return ` ${n()}-button-small`;
|
|
56
57
|
default:
|
|
57
58
|
return "";
|
|
58
59
|
}
|
|
59
|
-
}, B = (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
|
|
63
|
-
return
|
|
64
|
-
},
|
|
65
|
-
!u &&
|
|
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
|
-
|
|
68
|
+
c && /* @__PURE__ */ i("i", { style: l && { fontSize: K(l) }, className: `${n()}-icon${I(u)} icon-${c}` })
|
|
68
69
|
] });
|
|
69
|
-
return /* @__PURE__ */
|
|
70
|
+
return /* @__PURE__ */ h(
|
|
70
71
|
"button",
|
|
71
72
|
{
|
|
72
|
-
className: `${
|
|
73
|
-
type:
|
|
74
|
-
onClick:
|
|
75
|
-
disabled:
|
|
76
|
-
"aria-label":
|
|
77
|
-
"aria-describedby":
|
|
78
|
-
"aria-expanded":
|
|
79
|
-
"aria-busy":
|
|
80
|
-
title:
|
|
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
|
-
|
|
83
|
-
|
|
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 {
|
|
89
|
+
export { G as Button$u };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonRefreshIcon.d.ts","sourceRoot":"","sources":["../../../src/components/Button/ButtonRefreshIcon.tsx"],"names":[],"mappings":"
|
|
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
|
|
2
|
-
|
|
3
|
-
|
|
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:
|
|
11
|
-
style: {
|
|
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__ */
|
|
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__ */
|
|
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 {
|
|
36
|
+
export { c as ButtonRefreshIcon$u };
|