@reportportal/ui-kit 0.0.1-alpha.46 → 0.0.1-alpha.48
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/arrowUp-4a5caee7.js +6 -0
- package/dist/baseIconButton-251479f7.js +25 -0
- package/dist/baseIconButton.js +1 -1
- package/dist/clear-53660571.js +5 -0
- package/dist/close-4b33d7c1.js +5 -0
- package/dist/common/types.d.ts +3 -0
- package/dist/components/fieldText/fieldText.d.ts +2 -0
- package/dist/components/fieldTextFlex/fieldTextFlex.d.ts +1 -0
- package/dist/components/icons/index.d.ts +0 -1
- package/dist/components/index.d.ts +1 -3
- package/dist/components/maxValueDisplay/index.d.ts +3 -0
- package/dist/components/maxValueDisplay/maxValueDisplay.d.ts +7 -0
- package/dist/components/maxValueDisplay/utils/index.d.ts +1 -0
- package/dist/components/maxValueDisplay/utils/isPositiveInteger.d.ts +1 -0
- package/dist/components/systemAlert/types.d.ts +1 -0
- package/dist/{datePicker-68379fe1.js → datePicker-7aa41281.js} +4 -5
- package/dist/datePicker.js +8 -4
- package/dist/dropdown-0260bb66.js +5 -0
- package/dist/dropdown-6edea86c.js +263 -0
- package/dist/dropdown.js +3 -2
- package/dist/error-4f493850.js +7 -0
- package/dist/fieldNumber-d517a095.js +125 -0
- package/dist/fieldNumber.js +3 -2
- package/dist/fieldText-404383ce.js +139 -0
- package/dist/fieldText.js +4 -2
- package/dist/fieldTextFlex-23d6ecce.js +78 -0
- package/dist/fieldTextFlex.js +2 -1
- package/dist/icons.js +32 -0
- package/dist/index.js +73 -114
- package/dist/maxValueDisplay-9be01a75.js +13 -0
- package/dist/maxValueDisplay.js +6 -0
- package/dist/minus-660ea0d6.js +6 -0
- package/dist/modal.js +144 -14
- package/dist/pagination-86651d50.js +345 -0
- package/dist/pagination.js +7 -3
- package/dist/prevChapter-ebd5a3a7.js +6 -0
- package/dist/spinLoader-c4a53718.js +11 -0
- package/dist/spinLoader.js +7 -0
- package/dist/style.css +1 -1
- package/dist/systemAlert.js +55 -0
- package/dist/table-32fc8c70.js +144 -0
- package/dist/table.js +2 -2
- package/package.json +1 -1
- package/dist/baseIconButton-b6adc843.js +0 -25
- package/dist/components/dataPicker2/dataPicker2/datePicker.d.ts +0 -24
- package/dist/components/dataPicker2/dataPicker2/header/datePickerHeader.d.ts +0 -15
- package/dist/components/dataPicker2/dataPicker2/header/index.d.ts +0 -3
- package/dist/components/dataPicker2/dataPicker2/index.d.ts +0 -3
- package/dist/components/dataPicker2/dataPicker2/utils.d.ts +0 -3
- package/dist/components/date2/date2.d.ts +0 -24
- package/dist/components/date2/index.d.ts +0 -3
- package/dist/components/datePicker1/datePicker.d.ts +0 -24
- package/dist/components/datePicker1/header/datePickerHeader.d.ts +0 -15
- package/dist/components/datePicker1/header/index.d.ts +0 -3
- package/dist/components/datePicker1/index.d.ts +0 -3
- package/dist/components/datePicker1/utils.d.ts +0 -3
- package/dist/components/reactDatePicker/index.d.ts +0 -3
- package/dist/components/reactDatePicker/reactDatePicker.d.ts +0 -2
- package/dist/components/reactDatePicker2/index.d.ts +0 -3
- package/dist/components/reactDatePicker2/reactDatePicker2.d.ts +0 -2
- package/dist/date2-9273411e.js +0 -46
- package/dist/date2.js +0 -7
- package/dist/datePicker-89394dc8.js +0 -194
- package/dist/datePicker1.js +0 -19
- package/dist/dropdown-b9c6dc2f.js +0 -264
- package/dist/fieldNumber-1f286b40.js +0 -127
- package/dist/fieldText-65e4c614.js +0 -134
- package/dist/fieldTextFlex-5bddf46a.js +0 -67
- package/dist/index-54e3bfc2.js +0 -147
- package/dist/pagination-4ae395bd.js +0 -347
- package/dist/reactDatePicker2-a31b070e.js +0 -5
- package/dist/reactDatePicker2.js +0 -6
- package/dist/table-9bf4ddab.js +0 -147
- /package/dist/components/{icons/baseIconButton → baseIconButton}/baseIconButton.d.ts +0 -0
- /package/dist/components/{icons/baseIconButton → baseIconButton}/index.d.ts +0 -0
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
import { jsx as e, jsxs as s, Fragment as w } from "react/jsx-runtime";
|
|
2
|
-
import * as k from "react";
|
|
3
|
-
import { forwardRef as K, useRef as O, useState as P } from "react";
|
|
4
|
-
import { c as C } from "./bind-06a7ff84.js";
|
|
5
|
-
import "./baseIconButton-b6adc843.js";
|
|
6
|
-
const Q = (t) => /* @__PURE__ */ k.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ k.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M1 8C1 4.14001 4.14001 1 8 1C11.86 1 15 4.14001 15 8C15 11.8595 11.86 15 8 15C4.14001 15 1 11.8595 1 8ZM5 5.54545L5.54545 5L8 7.45455L10.4545 5L11 5.54545L8.54545 8L11 10.4545L10.4545 11L8 8.54545L5.54545 11L5 10.4545L7.45455 8L5 5.54545Z", fill: "#A2AAB5" })), T = "_collapsed_7ag8j_13", U = "_label_7ag8j_21", V = "_asterisk_7ag8j_30", W = "_disabled_7ag8j_36", X = "_field_7ag8j_41", Y = "_placeholder_7ag8j_62", I = "_error_7ag8j_69", nn = "_touched_7ag8j_69", en = "_input_7ag8j_84", tn = "_icon_7ag8j_1", an = "_text_7ag8j_175", sn = {
|
|
7
|
-
"icon-container": "_icon-container_7ag8j_1",
|
|
8
|
-
"icon-container-end": "_icon-container-end_7ag8j_1",
|
|
9
|
-
"icon-container-start": "_icon-container-start_7ag8j_1",
|
|
10
|
-
collapsed: T,
|
|
11
|
-
label: U,
|
|
12
|
-
asterisk: V,
|
|
13
|
-
disabled: W,
|
|
14
|
-
field: X,
|
|
15
|
-
"default-width": "_default-width_7ag8j_53",
|
|
16
|
-
placeholder: Y,
|
|
17
|
-
error: I,
|
|
18
|
-
touched: nn,
|
|
19
|
-
"input-container": "_input-container_7ag8j_84",
|
|
20
|
-
input: en,
|
|
21
|
-
icon: tn,
|
|
22
|
-
"start-icon": "_start-icon_7ag8j_131",
|
|
23
|
-
"clear-icon": "_clear-icon_7ag8j_132",
|
|
24
|
-
"additional-content": "_additional-content_7ag8j_168",
|
|
25
|
-
text: an,
|
|
26
|
-
"error-text": "_error-text_7ag8j_183",
|
|
27
|
-
"help-text": "_help-text_7ag8j_187"
|
|
28
|
-
}, cn = "_spinner_qn4ih_8", on = "_spin_qn4ih_1", ln = {
|
|
29
|
-
"spin-loader": "_spin-loader_qn4ih_1",
|
|
30
|
-
spinner: cn,
|
|
31
|
-
spin: on,
|
|
32
|
-
"color-topaz": "_color-topaz_qn4ih_20"
|
|
33
|
-
}, v = C.bind(ln), rn = ({ color: t = "topaz", className: o }) => /* @__PURE__ */ e("div", { className: v("spin-loader", o), children: /* @__PURE__ */ e("div", { className: v("spinner", { [`color-${t}`]: t }) }) }), n = C.bind(sn), un = K(
|
|
34
|
-
({
|
|
35
|
-
value: t = "",
|
|
36
|
-
className: o,
|
|
37
|
-
error: i,
|
|
38
|
-
placeholder: p,
|
|
39
|
-
disabled: c = !1,
|
|
40
|
-
onChange: F,
|
|
41
|
-
touched: h = !1,
|
|
42
|
-
title: R,
|
|
43
|
-
label: l,
|
|
44
|
-
helpText: r,
|
|
45
|
-
defaultWidth: b = !0,
|
|
46
|
-
startIcon: u,
|
|
47
|
-
endIcon: f,
|
|
48
|
-
clearable: B = !1,
|
|
49
|
-
onClear: m,
|
|
50
|
-
isRequired: g = !1,
|
|
51
|
-
hasDoubleMessage: E = !1,
|
|
52
|
-
type: S = "text",
|
|
53
|
-
displayError: q = !0,
|
|
54
|
-
collapsible: y = !1,
|
|
55
|
-
loading: z = !1,
|
|
56
|
-
onFocus: A = () => {
|
|
57
|
-
},
|
|
58
|
-
onBlur: $ = () => {
|
|
59
|
-
},
|
|
60
|
-
...H
|
|
61
|
-
}, M) => {
|
|
62
|
-
const Z = O(null), _ = M || Z, [j, x] = P(!1), D = (a) => {
|
|
63
|
-
x(!0), A(a);
|
|
64
|
-
}, G = (a) => {
|
|
65
|
-
x(!1), $(a);
|
|
66
|
-
}, J = () => {
|
|
67
|
-
var a;
|
|
68
|
-
m && (m(t), (a = _.current) == null || a.focus());
|
|
69
|
-
}, N = q && i && h, L = /* @__PURE__ */ e("span", { className: n("text", "help-text"), children: r });
|
|
70
|
-
return /* @__PURE__ */ s(w, { children: [
|
|
71
|
-
l && /* @__PURE__ */ s("span", { className: n("label", { disabled: c }), children: [
|
|
72
|
-
l,
|
|
73
|
-
g && /* @__PURE__ */ e("span", { className: n("asterisk"), children: "*" })
|
|
74
|
-
] }),
|
|
75
|
-
/* @__PURE__ */ s(
|
|
76
|
-
"div",
|
|
77
|
-
{
|
|
78
|
-
className: n("field", o, {
|
|
79
|
-
error: i,
|
|
80
|
-
touched: h,
|
|
81
|
-
disabled: c,
|
|
82
|
-
"default-width": b,
|
|
83
|
-
collapsed: y && !j && !t
|
|
84
|
-
}),
|
|
85
|
-
title: R,
|
|
86
|
-
children: [
|
|
87
|
-
z ? /* @__PURE__ */ e(rn, {}) : u && /* @__PURE__ */ e(
|
|
88
|
-
"span",
|
|
89
|
-
{
|
|
90
|
-
className: n("icon-container-start"),
|
|
91
|
-
onClick: () => {
|
|
92
|
-
var d;
|
|
93
|
-
(d = _.current) == null || d.focus();
|
|
94
|
-
},
|
|
95
|
-
children: /* @__PURE__ */ e("span", { className: n("icon", { "start-icon": !j }), children: u })
|
|
96
|
-
}
|
|
97
|
-
),
|
|
98
|
-
/* @__PURE__ */ s("span", { className: n("input-container"), children: [
|
|
99
|
-
/* @__PURE__ */ e(
|
|
100
|
-
"input",
|
|
101
|
-
{
|
|
102
|
-
ref: _,
|
|
103
|
-
type: S,
|
|
104
|
-
className: n("input"),
|
|
105
|
-
value: t,
|
|
106
|
-
disabled: c,
|
|
107
|
-
onChange: F,
|
|
108
|
-
onFocus: D,
|
|
109
|
-
onBlur: G,
|
|
110
|
-
...H
|
|
111
|
-
}
|
|
112
|
-
),
|
|
113
|
-
p && !t && /* @__PURE__ */ s("span", { className: n("placeholder"), children: [
|
|
114
|
-
p,
|
|
115
|
-
g && !l && /* @__PURE__ */ e("span", { className: n("asterisk") })
|
|
116
|
-
] })
|
|
117
|
-
] }),
|
|
118
|
-
f && /* @__PURE__ */ e("span", { className: n("icon-container-end"), children: /* @__PURE__ */ e("span", { className: n("icon"), children: f }) }),
|
|
119
|
-
B && t.length > 0 && /* @__PURE__ */ e("span", { className: n("icon-container-end"), children: /* @__PURE__ */ e("button", { type: "button", className: n("clear-icon", { disabled: c }), onClick: J, children: /* @__PURE__ */ e(Q, {}) }) })
|
|
120
|
-
]
|
|
121
|
-
}
|
|
122
|
-
),
|
|
123
|
-
(N || r) && /* @__PURE__ */ e("div", { className: n("additional-content", { disabled: c }), children: N ? /* @__PURE__ */ s(w, { children: [
|
|
124
|
-
/* @__PURE__ */ e("span", { className: n("text", "error-text"), children: i }),
|
|
125
|
-
E && L
|
|
126
|
-
] }) : r && L })
|
|
127
|
-
] });
|
|
128
|
-
}
|
|
129
|
-
);
|
|
130
|
-
export {
|
|
131
|
-
un as F,
|
|
132
|
-
rn as S,
|
|
133
|
-
Q as a
|
|
134
|
-
};
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { jsxs as _, Fragment as u, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { c as y } from "./bind-06a7ff84.js";
|
|
3
|
-
import { forwardRef as H, useId as I } from "react";
|
|
4
|
-
const E = "_error_cxv68_19", R = "_touched_cxv68_19", j = "_label_cxv68_30", O = "_disabled_cxv68_56", $ = {
|
|
5
|
-
"text-area": "_text-area_cxv68_1",
|
|
6
|
-
error: E,
|
|
7
|
-
touched: R,
|
|
8
|
-
label: j,
|
|
9
|
-
"additional-content": "_additional-content_cxv68_39",
|
|
10
|
-
"error-text": "_error-text_cxv68_39",
|
|
11
|
-
"help-text": "_help-text_cxv68_47",
|
|
12
|
-
disabled: O
|
|
13
|
-
}, t = y.bind($), w = 72, z = 2, G = H(
|
|
14
|
-
({
|
|
15
|
-
value: o = "",
|
|
16
|
-
readonly: d = !1,
|
|
17
|
-
error: a = "",
|
|
18
|
-
placeholder: h = "",
|
|
19
|
-
disabled: e = !1,
|
|
20
|
-
touched: l = !1,
|
|
21
|
-
className: m = "",
|
|
22
|
-
label: n = "",
|
|
23
|
-
helpText: s = "",
|
|
24
|
-
onChange: p,
|
|
25
|
-
onFocus: f,
|
|
26
|
-
onBlur: g,
|
|
27
|
-
onKeyUp: v,
|
|
28
|
-
...N
|
|
29
|
-
}, b) => {
|
|
30
|
-
const i = I(), x = a && l, F = (c) => {
|
|
31
|
-
c.target.style.height = `${w}px`, c.target.style.height = `${c.target.scrollHeight + z}px`;
|
|
32
|
-
};
|
|
33
|
-
return /* @__PURE__ */ _(u, { children: [
|
|
34
|
-
n && /* @__PURE__ */ r("label", { htmlFor: i, className: t("label", { disabled: e }), children: n }),
|
|
35
|
-
/* @__PURE__ */ r(
|
|
36
|
-
"textarea",
|
|
37
|
-
{
|
|
38
|
-
id: i,
|
|
39
|
-
ref: b,
|
|
40
|
-
className: t("text-area", m, {
|
|
41
|
-
disabled: e,
|
|
42
|
-
error: a,
|
|
43
|
-
touched: l
|
|
44
|
-
}),
|
|
45
|
-
value: o,
|
|
46
|
-
placeholder: h,
|
|
47
|
-
disabled: e,
|
|
48
|
-
readOnly: d,
|
|
49
|
-
onChange: p,
|
|
50
|
-
onFocus: f,
|
|
51
|
-
onBlur: g,
|
|
52
|
-
onKeyUp: v,
|
|
53
|
-
onInput: F,
|
|
54
|
-
...N,
|
|
55
|
-
children: o
|
|
56
|
-
}
|
|
57
|
-
),
|
|
58
|
-
(x || s) && /* @__PURE__ */ _("div", { className: t("additional-content", { disabled: e }), children: [
|
|
59
|
-
x && /* @__PURE__ */ r("span", { className: t("error-text"), children: a }),
|
|
60
|
-
s && /* @__PURE__ */ r("span", { className: t("help-text"), children: s })
|
|
61
|
-
] })
|
|
62
|
-
] });
|
|
63
|
-
}
|
|
64
|
-
);
|
|
65
|
-
export {
|
|
66
|
-
G as F
|
|
67
|
-
};
|
package/dist/index-54e3bfc2.js
DELETED
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
import { jsx as e, jsxs as c, Fragment as B } from "react/jsx-runtime";
|
|
2
|
-
import * as M from "react";
|
|
3
|
-
import { useState as g, useEffect as b, useRef as j } from "react";
|
|
4
|
-
import { Scrollbars as G } from "rc-scrollbars";
|
|
5
|
-
import { AnimatePresence as K, motion as P } from "framer-motion";
|
|
6
|
-
import { c as u } from "./bind-06a7ff84.js";
|
|
7
|
-
import { u as q } from "./useOnClickOutside-c332f7d3.js";
|
|
8
|
-
import { K as Y } from "./keyCodes-f63c0e11.js";
|
|
9
|
-
import { B as L } from "./button-33c88abf.js";
|
|
10
|
-
import { B as F } from "./baseIconButton-b6adc843.js";
|
|
11
|
-
const U = (t) => /* @__PURE__ */ M.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ M.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M0.732179 15.2698C0.330639 14.8683 0.33064 14.2172 0.73218 13.8157L6.54858 7.99928L0.73218 2.18288C0.33064 1.78134 0.330639 1.13031 0.732179 0.728774C1.13372 0.327235 1.78474 0.327235 2.18628 0.728774L8.00269 6.54518L13.8191 0.728767C14.2206 0.327229 14.8717 0.327228 15.2732 0.728767C15.6747 1.13031 15.6747 1.78133 15.2732 2.18287L9.45679 7.99928L15.2732 13.8157C15.6747 14.2172 15.6747 14.8683 15.2732 15.2698C14.8717 15.6713 14.2206 15.6713 13.8191 15.2698L8.00269 9.45338L2.18628 15.2698C1.78474 15.6713 1.13372 15.6713 0.732179 15.2698Z", fill: "#A2AAB5" })), X = () => {
|
|
12
|
-
const [t, n] = g({ width: 0, height: 0 });
|
|
13
|
-
return b(() => {
|
|
14
|
-
const l = () => {
|
|
15
|
-
n({
|
|
16
|
-
width: window.innerWidth,
|
|
17
|
-
height: window.innerHeight
|
|
18
|
-
});
|
|
19
|
-
};
|
|
20
|
-
return window.addEventListener("resize", l), l(), () => window.removeEventListener("resize", l);
|
|
21
|
-
}, []), t;
|
|
22
|
-
}, Z = "_scrollable_qziry_12", J = {
|
|
23
|
-
"modal-content": "_modal-content_qziry_1",
|
|
24
|
-
scrollable: Z
|
|
25
|
-
}, Q = u.bind(J), A = ({ scrollable: t = !1, children: n }) => /* @__PURE__ */ e("div", { className: Q("modal-content", { scrollable: t }), children: n }), V = {
|
|
26
|
-
"buttons-block": "_buttons-block_1dgm4_1",
|
|
27
|
-
"button-container": "_button-container_1dgm4_5",
|
|
28
|
-
"modal-footer": "_modal-footer_1dgm4_14",
|
|
29
|
-
"with-extra-node": "_with-extra-node_1dgm4_21",
|
|
30
|
-
"size-small": "_size-small_1dgm4_25"
|
|
31
|
-
}, m = u.bind(V), ee = ({
|
|
32
|
-
footerNode: t,
|
|
33
|
-
closeHandler: n,
|
|
34
|
-
okButton: l,
|
|
35
|
-
cancelButton: r,
|
|
36
|
-
size: a
|
|
37
|
-
}) => /* @__PURE__ */ c("div", { className: m("modal-footer", { "with-extra-node": t, [`size-${a}`]: a }), children: [
|
|
38
|
-
t && t,
|
|
39
|
-
/* @__PURE__ */ c("div", { className: m("buttons-block"), children: [
|
|
40
|
-
r && /* @__PURE__ */ e("div", { className: m("button-container"), children: /* @__PURE__ */ e(
|
|
41
|
-
L,
|
|
42
|
-
{
|
|
43
|
-
variant: "ghost",
|
|
44
|
-
adjustWidthOn: a === "small" ? "parent" : "content",
|
|
45
|
-
onClick: n,
|
|
46
|
-
...r
|
|
47
|
-
}
|
|
48
|
-
) }),
|
|
49
|
-
l && /* @__PURE__ */ e("div", { className: m("button-container"), children: /* @__PURE__ */ e(L, { adjustWidthOn: a === "small" ? "parent" : "content", ...l }) })
|
|
50
|
-
] })
|
|
51
|
-
] }), te = {
|
|
52
|
-
"modal-header": "_modal-header_68lru_1",
|
|
53
|
-
"width-description": "_width-description_68lru_10",
|
|
54
|
-
"modal-header-content": "_modal-header-content_68lru_14",
|
|
55
|
-
"modal-title": "_modal-title_68lru_20",
|
|
56
|
-
"close-modal-icon": "_close-modal-icon_68lru_29"
|
|
57
|
-
}, _ = u.bind(te), oe = ({ title: t, onClose: n, withDescription: l = !1 }) => /* @__PURE__ */ c("div", { className: _("modal-header", { "width-description": l }), children: [
|
|
58
|
-
/* @__PURE__ */ e("div", { className: _("modal-header-content"), children: t && /* @__PURE__ */ e("div", { className: _("modal-title"), children: t }) }),
|
|
59
|
-
/* @__PURE__ */ e(F, { className: _("close-modal-icon"), onClick: n, children: /* @__PURE__ */ e(U, {}) })
|
|
60
|
-
] }), ne = "_modal_f3ckb_1", le = "_description_f3ckb_43", ae = "_scrollable_f3ckb_53", se = {
|
|
61
|
-
modal: ne,
|
|
62
|
-
"overlay-default": "_overlay-default_f3ckb_12",
|
|
63
|
-
"overlay-light-cyan": "_overlay-light-cyan_f3ckb_16",
|
|
64
|
-
"scrolling-content": "_scrolling-content_f3ckb_20",
|
|
65
|
-
"modal-window": "_modal-window_f3ckb_26",
|
|
66
|
-
description: le,
|
|
67
|
-
scrollable: ae,
|
|
68
|
-
"size-default": "_size-default_f3ckb_57",
|
|
69
|
-
"size-small": "_size-small_f3ckb_69",
|
|
70
|
-
"size-large": "_size-large_f3ckb_81"
|
|
71
|
-
}, h = u.bind(se), ie = 0.9, ce = 32 + 24, de = 32 + 8, re = 36 + 16, me = 32 * 2, ye = ({
|
|
72
|
-
title: t,
|
|
73
|
-
children: n,
|
|
74
|
-
footerNode: l,
|
|
75
|
-
okButton: r,
|
|
76
|
-
cancelButton: a,
|
|
77
|
-
className: N,
|
|
78
|
-
size: f = "default",
|
|
79
|
-
onClose: O = () => {
|
|
80
|
-
},
|
|
81
|
-
overlay: p = "default",
|
|
82
|
-
zIndex: z = 2,
|
|
83
|
-
allowCloseOutside: D = !0,
|
|
84
|
-
scrollable: v = !1,
|
|
85
|
-
withoutFooter: y = !1,
|
|
86
|
-
createFooter: C = null,
|
|
87
|
-
description: s = null
|
|
88
|
-
}) => {
|
|
89
|
-
const [R, E] = g(!1), [S, T] = g(0), i = j(null), H = X(), k = H.height, I = k * ie, w = (k - S) / 2, $ = () => {
|
|
90
|
-
let o = I - me;
|
|
91
|
-
return y || (o = o - re), s ? o = o - de : o = o - ce, o;
|
|
92
|
-
}, d = () => {
|
|
93
|
-
E(!1);
|
|
94
|
-
}, x = (o) => {
|
|
95
|
-
const { keyCode: W } = o;
|
|
96
|
-
W === Y.ESCAPE_KEY_CODE && d();
|
|
97
|
-
};
|
|
98
|
-
return b(() => {
|
|
99
|
-
if (i && i.current) {
|
|
100
|
-
const { clientHeight: o } = i.current;
|
|
101
|
-
T(o);
|
|
102
|
-
}
|
|
103
|
-
}, [n, H]), b(() => (E(!0), document.addEventListener("keydown", x, !1), () => document.removeEventListener("keydown", x, !1)), []), q(i, D ? d : void 0), /* @__PURE__ */ e(K, { onExitComplete: O, children: R && /* @__PURE__ */ e("div", { className: h("modal", { [`overlay-${p}`]: p }), style: { zIndex: z }, children: /* @__PURE__ */ c(
|
|
104
|
-
P.div,
|
|
105
|
-
{
|
|
106
|
-
className: h("modal-window", { [`size-${f}`]: f }, N),
|
|
107
|
-
ref: i,
|
|
108
|
-
tabIndex: 0,
|
|
109
|
-
initial: { opacity: 0, marginTop: -w },
|
|
110
|
-
animate: { opacity: 1, marginTop: w },
|
|
111
|
-
exit: { opacity: 0, marginTop: -w },
|
|
112
|
-
transition: { duration: 0.3 },
|
|
113
|
-
onAnimationStart: () => {
|
|
114
|
-
var o;
|
|
115
|
-
return (o = i.current) == null ? void 0 : o.focus();
|
|
116
|
-
},
|
|
117
|
-
children: [
|
|
118
|
-
/* @__PURE__ */ e(oe, { title: t, onClose: d, withDescription: !!s }),
|
|
119
|
-
v ? /* @__PURE__ */ c(G, { autoHeight: !0, autoHeightMax: $(), hideTracksWhenNotNeeded: !0, children: [
|
|
120
|
-
s && /* @__PURE__ */ e("span", { className: h("description", { scrollable: v }), children: s }),
|
|
121
|
-
/* @__PURE__ */ e(A, { scrollable: !0, children: n })
|
|
122
|
-
] }) : /* @__PURE__ */ c(B, { children: [
|
|
123
|
-
s && /* @__PURE__ */ e("span", { className: h("description"), children: s }),
|
|
124
|
-
/* @__PURE__ */ e(A, { children: n })
|
|
125
|
-
] }),
|
|
126
|
-
!y && (C ? C(d) : /* @__PURE__ */ e(
|
|
127
|
-
ee,
|
|
128
|
-
{
|
|
129
|
-
size: f,
|
|
130
|
-
footerNode: l,
|
|
131
|
-
okButton: r,
|
|
132
|
-
cancelButton: a,
|
|
133
|
-
closeHandler: d
|
|
134
|
-
}
|
|
135
|
-
))
|
|
136
|
-
]
|
|
137
|
-
},
|
|
138
|
-
"modal-window"
|
|
139
|
-
) }) });
|
|
140
|
-
};
|
|
141
|
-
export {
|
|
142
|
-
ye as M,
|
|
143
|
-
U as S,
|
|
144
|
-
A as a,
|
|
145
|
-
oe as b,
|
|
146
|
-
ee as c
|
|
147
|
-
};
|
|
@@ -1,347 +0,0 @@
|
|
|
1
|
-
import { jsxs as p, jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { c as m } from "./bind-06a7ff84.js";
|
|
3
|
-
import * as f from "react";
|
|
4
|
-
import { useState as b } from "react";
|
|
5
|
-
import { Popover as I } from "./popover.js";
|
|
6
|
-
import { B as v } from "./button-33c88abf.js";
|
|
7
|
-
import { F as O } from "./fieldText-65e4c614.js";
|
|
8
|
-
import { B as u } from "./baseIconButton-b6adc843.js";
|
|
9
|
-
import { Tooltip as k } from "./tooltip.js";
|
|
10
|
-
const y = (t) => /* @__PURE__ */ f.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "#A2AAB5", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ f.createElement("path", { d: "M12 13L4 8L12 3L12 13Z" })), T = (t) => /* @__PURE__ */ f.createElement("svg", { width: 13, height: 12, viewBox: "0 0 13 12", fill: "#A2AAB5", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ f.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M0 12L2 12L2 2.38498e-08L1.90798e-07 0L0 12ZM13 1L5 6L13 11L13 1Z" })), E = {
|
|
11
|
-
"item-counter": "_item-counter_4g6do_1"
|
|
12
|
-
}, M = m.bind(E), P = ({
|
|
13
|
-
activePage: t,
|
|
14
|
-
pageSize: n,
|
|
15
|
-
totalItems: s,
|
|
16
|
-
ofText: r,
|
|
17
|
-
itemsText: a
|
|
18
|
-
}) => {
|
|
19
|
-
const c = t * n, i = c - n;
|
|
20
|
-
return /* @__PURE__ */ p("div", { className: M("item-counter"), children: [
|
|
21
|
-
`${i + 1} - ${c < s ? c : s}`,
|
|
22
|
-
` ${r} ${s} ${a}`
|
|
23
|
-
] });
|
|
24
|
-
}, R = "_selected_183l8_32", V = {
|
|
25
|
-
"size-selector": "_size-selector_183l8_1",
|
|
26
|
-
"size-option": "_size-option_183l8_6",
|
|
27
|
-
selected: R
|
|
28
|
-
}, C = m.bind(V), W = ({
|
|
29
|
-
currentSize: t,
|
|
30
|
-
options: n,
|
|
31
|
-
onClickOption: s
|
|
32
|
-
}) => /* @__PURE__ */ o("div", { className: C("size-selector"), children: n.map((r) => /* @__PURE__ */ o(
|
|
33
|
-
"button",
|
|
34
|
-
{
|
|
35
|
-
className: C("size-option", { selected: r === t }),
|
|
36
|
-
onClick: () => {
|
|
37
|
-
s(r);
|
|
38
|
-
},
|
|
39
|
-
children: r
|
|
40
|
-
},
|
|
41
|
-
r
|
|
42
|
-
)) }), D = {
|
|
43
|
-
"page-size-control": "_page-size-control_1y4na_1",
|
|
44
|
-
"size-selector-button": "_size-selector-button_1y4na_10"
|
|
45
|
-
}, S = m.bind(D), F = ({
|
|
46
|
-
size: t,
|
|
47
|
-
sizeOptions: n,
|
|
48
|
-
perPageText: s,
|
|
49
|
-
changeSize: r
|
|
50
|
-
}) => {
|
|
51
|
-
const [a, c] = b(!1), i = (e) => {
|
|
52
|
-
r(e), c(!1);
|
|
53
|
-
};
|
|
54
|
-
return /* @__PURE__ */ p("div", { className: S("page-size-control"), children: [
|
|
55
|
-
/* @__PURE__ */ o(
|
|
56
|
-
I,
|
|
57
|
-
{
|
|
58
|
-
content: /* @__PURE__ */ o(W, { options: n, onClickOption: i, currentSize: t }),
|
|
59
|
-
placement: "top",
|
|
60
|
-
isOpened: a,
|
|
61
|
-
setIsOpened: c,
|
|
62
|
-
children: /* @__PURE__ */ o(v, { className: S("size-selector-button"), variant: "text", children: t })
|
|
63
|
-
}
|
|
64
|
-
),
|
|
65
|
-
` ${s}`
|
|
66
|
-
] });
|
|
67
|
-
}, Z = {
|
|
68
|
-
"page-selector": "_page-selector_rtho4_1",
|
|
69
|
-
"field-wrapper": "_field-wrapper_rtho4_6",
|
|
70
|
-
"apply-button": "_apply-button_rtho4_10"
|
|
71
|
-
}, N = m.bind(Z), j = ({
|
|
72
|
-
totalPages: t,
|
|
73
|
-
pageText: n,
|
|
74
|
-
goActionText: s,
|
|
75
|
-
selectPage: r
|
|
76
|
-
}) => {
|
|
77
|
-
const [a, c] = b(""), [i, e] = b(!0), d = (h) => {
|
|
78
|
-
const w = h.target.value.replace(/\D/g, ""), $ = Number(w), L = $ > 0 && $ <= t;
|
|
79
|
-
e(L), c(w);
|
|
80
|
-
}, l = () => {
|
|
81
|
-
r(Number(a));
|
|
82
|
-
};
|
|
83
|
-
return /* @__PURE__ */ p("div", { className: N("page-selector"), children: [
|
|
84
|
-
/* @__PURE__ */ o("div", { className: N("field-wrapper"), children: /* @__PURE__ */ o(
|
|
85
|
-
O,
|
|
86
|
-
{
|
|
87
|
-
onChange: d,
|
|
88
|
-
value: a,
|
|
89
|
-
placeholder: n,
|
|
90
|
-
error: i ? "" : "Error",
|
|
91
|
-
touched: !0,
|
|
92
|
-
defaultWidth: !1,
|
|
93
|
-
displayError: !1
|
|
94
|
-
}
|
|
95
|
-
) }),
|
|
96
|
-
/* @__PURE__ */ o(v, { onClick: l, disabled: !a || !i, className: N("apply-button"), children: s })
|
|
97
|
-
] });
|
|
98
|
-
}, G = {
|
|
99
|
-
"active-page": "_active-page_rmw5h_1",
|
|
100
|
-
"page-selector": "_page-selector_rmw5h_10",
|
|
101
|
-
"page-selector-button": "_page-selector-button_rmw5h_14"
|
|
102
|
-
}, x = m.bind(G), H = ({
|
|
103
|
-
activePage: t,
|
|
104
|
-
totalPages: n,
|
|
105
|
-
pageText: s,
|
|
106
|
-
goToText: r,
|
|
107
|
-
goActionText: a,
|
|
108
|
-
changePage: c
|
|
109
|
-
}) => {
|
|
110
|
-
const [i, e] = b(!1), d = (l) => {
|
|
111
|
-
c(l), e(!1);
|
|
112
|
-
};
|
|
113
|
-
return /* @__PURE__ */ p("div", { className: x("active-page"), children: [
|
|
114
|
-
`${s} `,
|
|
115
|
-
/* @__PURE__ */ o(
|
|
116
|
-
I,
|
|
117
|
-
{
|
|
118
|
-
content: /* @__PURE__ */ o(
|
|
119
|
-
j,
|
|
120
|
-
{
|
|
121
|
-
pageText: s,
|
|
122
|
-
goActionText: a,
|
|
123
|
-
selectPage: d,
|
|
124
|
-
totalPages: n
|
|
125
|
-
}
|
|
126
|
-
),
|
|
127
|
-
title: r,
|
|
128
|
-
placement: "top",
|
|
129
|
-
isOpened: i,
|
|
130
|
-
setIsOpened: e,
|
|
131
|
-
className: x("page-selector"),
|
|
132
|
-
children: /* @__PURE__ */ o(v, { className: x("page-selector-button"), variant: "text", children: t })
|
|
133
|
-
}
|
|
134
|
-
)
|
|
135
|
-
] });
|
|
136
|
-
}, q = "_bar_dfnmf_1", J = "_section_dfnmf_9", K = "_selected_dfnmf_33", Q = "_tooltip_dfnmf_37", U = {
|
|
137
|
-
bar: q,
|
|
138
|
-
"section-with-tooltip": "_section-with-tooltip_dfnmf_9",
|
|
139
|
-
section: J,
|
|
140
|
-
selected: K,
|
|
141
|
-
"tooltip-wrapper": "_tooltip-wrapper_dfnmf_37",
|
|
142
|
-
tooltip: Q,
|
|
143
|
-
"tooltip-text": "_tooltip-text_dfnmf_48",
|
|
144
|
-
"page-number": "_page-number_dfnmf_52"
|
|
145
|
-
}, g = m.bind(U), z = 13, A = 260, X = ({
|
|
146
|
-
totalPages: t,
|
|
147
|
-
activePage: n,
|
|
148
|
-
changePage: s,
|
|
149
|
-
captions: r
|
|
150
|
-
}) => {
|
|
151
|
-
const a = A / t, c = Math.min(Math.ceil(A / z), t), i = Math.max(z, a), e = [];
|
|
152
|
-
for (let l = 1; l <= t; l++)
|
|
153
|
-
e.push({
|
|
154
|
-
end: l * a,
|
|
155
|
-
pageNumber: l
|
|
156
|
-
});
|
|
157
|
-
const d = Array.from({ length: c }, () => ({ pages: { from: void 0, to: void 0 } }));
|
|
158
|
-
return d.forEach((l, h) => {
|
|
159
|
-
for (l.pages.from = e[0].pageNumber; i * (h + 1) > e[0].end; )
|
|
160
|
-
e.shift();
|
|
161
|
-
l.pages.to = e[0].pageNumber, e.shift();
|
|
162
|
-
}), /* @__PURE__ */ o("div", { className: g("bar"), children: d.map((l, h) => /* @__PURE__ */ o(
|
|
163
|
-
"div",
|
|
164
|
-
{
|
|
165
|
-
className: g("section-with-tooltip"),
|
|
166
|
-
style: { width: i },
|
|
167
|
-
onClick: () => l.pages.from && s(l.pages.from),
|
|
168
|
-
children: /* @__PURE__ */ o(
|
|
169
|
-
k,
|
|
170
|
-
{
|
|
171
|
-
content: /* @__PURE__ */ p("div", { className: g("tooltip"), children: [
|
|
172
|
-
/* @__PURE__ */ o("div", { className: g("tooltip-text"), children: r.goTo }),
|
|
173
|
-
/* @__PURE__ */ o("div", { className: g("page-number"), children: l.pages.from })
|
|
174
|
-
] }),
|
|
175
|
-
wrapperClassName: g("tooltip-wrapper"),
|
|
176
|
-
placement: "top",
|
|
177
|
-
children: /* @__PURE__ */ o(
|
|
178
|
-
"div",
|
|
179
|
-
{
|
|
180
|
-
className: g("section", {
|
|
181
|
-
selected: l.pages.from && l.pages.to && l.pages.from <= n && n <= l.pages.to
|
|
182
|
-
})
|
|
183
|
-
}
|
|
184
|
-
)
|
|
185
|
-
}
|
|
186
|
-
)
|
|
187
|
-
},
|
|
188
|
-
h
|
|
189
|
-
)) });
|
|
190
|
-
}, Y = "_next_1p2t5_18", ee = {
|
|
191
|
-
"page-navigator": "_page-navigator_1p2t5_1",
|
|
192
|
-
"page-buttons": "_page-buttons_1p2t5_6",
|
|
193
|
-
"page-button": "_page-button_1p2t5_6",
|
|
194
|
-
next: Y
|
|
195
|
-
}, _ = m.bind(ee), te = ({
|
|
196
|
-
activePage: t,
|
|
197
|
-
changePage: n,
|
|
198
|
-
totalPages: s,
|
|
199
|
-
captions: r
|
|
200
|
-
}) => {
|
|
201
|
-
const a = () => {
|
|
202
|
-
n(1);
|
|
203
|
-
}, c = () => {
|
|
204
|
-
n(t - 1);
|
|
205
|
-
}, i = () => {
|
|
206
|
-
n(t + 1);
|
|
207
|
-
}, e = () => {
|
|
208
|
-
n(s);
|
|
209
|
-
};
|
|
210
|
-
return /* @__PURE__ */ p("div", { className: _("page-navigator"), children: [
|
|
211
|
-
/* @__PURE__ */ p("div", { className: _("page-buttons"), children: [
|
|
212
|
-
/* @__PURE__ */ o(
|
|
213
|
-
u,
|
|
214
|
-
{
|
|
215
|
-
className: _("page-button"),
|
|
216
|
-
onClick: a,
|
|
217
|
-
disabled: t === 1,
|
|
218
|
-
children: /* @__PURE__ */ o(T, {})
|
|
219
|
-
}
|
|
220
|
-
),
|
|
221
|
-
/* @__PURE__ */ o(
|
|
222
|
-
u,
|
|
223
|
-
{
|
|
224
|
-
className: _("page-button"),
|
|
225
|
-
onClick: c,
|
|
226
|
-
disabled: t === 1,
|
|
227
|
-
children: /* @__PURE__ */ o(y, {})
|
|
228
|
-
}
|
|
229
|
-
)
|
|
230
|
-
] }),
|
|
231
|
-
/* @__PURE__ */ o(
|
|
232
|
-
X,
|
|
233
|
-
{
|
|
234
|
-
totalPages: s,
|
|
235
|
-
activePage: t,
|
|
236
|
-
changePage: n,
|
|
237
|
-
captions: r
|
|
238
|
-
}
|
|
239
|
-
),
|
|
240
|
-
/* @__PURE__ */ p("div", { className: _("page-buttons"), children: [
|
|
241
|
-
/* @__PURE__ */ o(
|
|
242
|
-
u,
|
|
243
|
-
{
|
|
244
|
-
className: _("page-button", "next"),
|
|
245
|
-
onClick: i,
|
|
246
|
-
disabled: t === s,
|
|
247
|
-
children: /* @__PURE__ */ o(y, {})
|
|
248
|
-
}
|
|
249
|
-
),
|
|
250
|
-
/* @__PURE__ */ o(
|
|
251
|
-
u,
|
|
252
|
-
{
|
|
253
|
-
className: _("page-button", "next"),
|
|
254
|
-
onClick: e,
|
|
255
|
-
disabled: t === s,
|
|
256
|
-
children: /* @__PURE__ */ o(T, {})
|
|
257
|
-
}
|
|
258
|
-
)
|
|
259
|
-
] })
|
|
260
|
-
] });
|
|
261
|
-
}, oe = {
|
|
262
|
-
"page-controls": "_page-controls_thyf8_1",
|
|
263
|
-
"total-pages": "_total-pages_thyf8_8"
|
|
264
|
-
}, B = m.bind(oe), se = ({
|
|
265
|
-
activePage: t,
|
|
266
|
-
changePage: n,
|
|
267
|
-
captions: s,
|
|
268
|
-
totalPages: r
|
|
269
|
-
}) => /* @__PURE__ */ p("div", { className: B("page-controls"), children: [
|
|
270
|
-
/* @__PURE__ */ o(
|
|
271
|
-
H,
|
|
272
|
-
{
|
|
273
|
-
activePage: t,
|
|
274
|
-
totalPages: r,
|
|
275
|
-
changePage: n,
|
|
276
|
-
pageText: s.page,
|
|
277
|
-
goToText: s.goTo,
|
|
278
|
-
goActionText: s.goAction
|
|
279
|
-
}
|
|
280
|
-
),
|
|
281
|
-
/* @__PURE__ */ o(
|
|
282
|
-
te,
|
|
283
|
-
{
|
|
284
|
-
changePage: n,
|
|
285
|
-
activePage: t,
|
|
286
|
-
totalPages: r,
|
|
287
|
-
captions: { goTo: s.goTo }
|
|
288
|
-
}
|
|
289
|
-
),
|
|
290
|
-
/* @__PURE__ */ p("span", { className: B("total-pages"), children: [
|
|
291
|
-
`${s.of} `,
|
|
292
|
-
r
|
|
293
|
-
] })
|
|
294
|
-
] }), ne = "_pagination_wi26a_1", re = {
|
|
295
|
-
pagination: ne
|
|
296
|
-
}, le = m.bind(re), he = ({
|
|
297
|
-
activePage: t,
|
|
298
|
-
totalPages: n,
|
|
299
|
-
pageSize: s,
|
|
300
|
-
totalItems: r,
|
|
301
|
-
pageSizeOptions: a,
|
|
302
|
-
changePage: c,
|
|
303
|
-
changePageSize: i,
|
|
304
|
-
captions: e
|
|
305
|
-
}) => {
|
|
306
|
-
const d = (e == null ? void 0 : e.of) || "of", l = (e == null ? void 0 : e.page) || "Page";
|
|
307
|
-
return /* @__PURE__ */ p("div", { className: le("pagination"), children: [
|
|
308
|
-
/* @__PURE__ */ o(
|
|
309
|
-
P,
|
|
310
|
-
{
|
|
311
|
-
activePage: t,
|
|
312
|
-
pageSize: s,
|
|
313
|
-
totalItems: r,
|
|
314
|
-
ofText: d,
|
|
315
|
-
itemsText: (e == null ? void 0 : e.items) || "items"
|
|
316
|
-
}
|
|
317
|
-
),
|
|
318
|
-
n > 1 && /* @__PURE__ */ o(
|
|
319
|
-
se,
|
|
320
|
-
{
|
|
321
|
-
activePage: t,
|
|
322
|
-
totalPages: n,
|
|
323
|
-
changePage: c,
|
|
324
|
-
captions: {
|
|
325
|
-
page: l,
|
|
326
|
-
of: d,
|
|
327
|
-
goTo: (e == null ? void 0 : e.goTo) || "Go to page",
|
|
328
|
-
goAction: (e == null ? void 0 : e.goAction) || "Go"
|
|
329
|
-
}
|
|
330
|
-
}
|
|
331
|
-
),
|
|
332
|
-
/* @__PURE__ */ o(
|
|
333
|
-
F,
|
|
334
|
-
{
|
|
335
|
-
size: s,
|
|
336
|
-
sizeOptions: a,
|
|
337
|
-
changeSize: i,
|
|
338
|
-
perPageText: (e == null ? void 0 : e.perPage) || "per page"
|
|
339
|
-
}
|
|
340
|
-
)
|
|
341
|
-
] });
|
|
342
|
-
};
|
|
343
|
-
export {
|
|
344
|
-
he as P,
|
|
345
|
-
y as S,
|
|
346
|
-
T as a
|
|
347
|
-
};
|