@reportportal/ui-kit 0.0.1-alpha.67 → 0.0.1-alpha.69
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/button-33bc880f.js +64 -0
- package/dist/button.js +1 -1
- package/dist/{checkbox-9a6c7ce1.js → checkbox-aa91985d.js} +15 -15
- package/dist/checkbox.js +1 -1
- package/dist/components/fieldLabel/fieldLabel.d.ts +2 -2
- package/dist/components/fieldNumber/fieldNumber.d.ts +2 -2
- package/dist/components/fieldTextFlex/fieldTextFlex.d.ts +2 -2
- package/dist/components/icons/index.d.ts +2 -0
- package/dist/{datePicker-06e90999.js → datePicker-382ef010.js} +57 -57
- package/dist/datePicker.js +6 -6
- package/dist/dropdown-13d7d50e.js +278 -0
- package/dist/dropdown.js +2 -2
- package/dist/fieldLabel.js +12 -7
- package/dist/fieldNumber-2542b311.js +128 -0
- package/dist/fieldNumber.js +2 -1
- package/dist/fieldText-e605a521.js +158 -0
- package/dist/fieldText.js +2 -2
- package/dist/fieldTextFlex-9e616f66.js +78 -0
- package/dist/fieldTextFlex.js +2 -1
- package/dist/fonts/OpenSans/OpenSans-Bold.ttf +0 -0
- package/dist/fonts/OpenSans/OpenSans-Medium.ttf +0 -0
- package/dist/icons.js +36 -34
- package/dist/index.js +53 -51
- package/dist/modal.js +81 -81
- package/dist/{pagination-91729c7d.js → pagination-ecbc9940.js} +53 -53
- package/dist/pagination.js +3 -3
- package/dist/popover.js +15 -15
- package/dist/{radio-bccc84f2.js → radio-62546efa.js} +27 -27
- package/dist/radio.js +1 -1
- package/dist/style.css +1 -1
- package/dist/systemAlert.js +28 -28
- package/dist/systemMessage-924fdaa6.js +30 -0
- package/dist/systemMessage.js +1 -1
- package/dist/table-20aa2cdf.js +142 -0
- package/dist/table.js +2 -2
- package/dist/toggle-304107fa.js +59 -0
- package/dist/toggle.js +1 -1
- package/dist/tooltip.js +15 -15
- package/package.json +1 -1
- package/dist/button-770f7b20.js +0 -64
- package/dist/dropdown-29285346.js +0 -278
- package/dist/fieldNumber-d81e551e.js +0 -125
- package/dist/fieldText-94e2c8eb.js +0 -158
- package/dist/fieldTextFlex-314741ad.js +0 -78
- package/dist/systemMessage-1ced6079.js +0 -30
- package/dist/table-02e40724.js +0 -142
- package/dist/toggle-1a3aacb5.js +0 -59
package/dist/modal.js
CHANGED
|
@@ -1,136 +1,136 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
2
|
-
import { useState as u, useEffect as
|
|
3
|
-
import { Scrollbars as
|
|
4
|
-
import { AnimatePresence as
|
|
5
|
-
import { c as
|
|
1
|
+
import { jsx as e, jsxs as d, Fragment as F } from "react/jsx-runtime";
|
|
2
|
+
import { useState as u, useEffect as y, useRef as G } from "react";
|
|
3
|
+
import { Scrollbars as K } from "rc-scrollbars";
|
|
4
|
+
import { AnimatePresence as P, motion as B } from "framer-motion";
|
|
5
|
+
import { c as w } from "./bind-06a7ff84.js";
|
|
6
6
|
import { u as Y } from "./useOnClickOutside-c332f7d3.js";
|
|
7
7
|
import { K as U } from "./keyCodes-f63c0e11.js";
|
|
8
|
-
import { B as
|
|
8
|
+
import { B as O } from "./button-33bc880f.js";
|
|
9
9
|
import { B as X } from "./baseIconButton-251479f7.js";
|
|
10
10
|
import { S as J } from "./close-4b33d7c1.js";
|
|
11
11
|
const Q = () => {
|
|
12
12
|
const [o, n] = u({ width: 0, height: 0 });
|
|
13
|
-
return
|
|
14
|
-
const
|
|
13
|
+
return y(() => {
|
|
14
|
+
const a = () => {
|
|
15
15
|
n({
|
|
16
16
|
width: window.innerWidth,
|
|
17
17
|
height: window.innerHeight
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
|
-
return window.addEventListener("resize",
|
|
20
|
+
return window.addEventListener("resize", a), a(), () => window.removeEventListener("resize", a);
|
|
21
21
|
}, []), o;
|
|
22
|
-
}, V = "
|
|
23
|
-
"modal-content": "_modal-
|
|
22
|
+
}, V = "_scrollable_zh8d2_12", Z = {
|
|
23
|
+
"modal-content": "_modal-content_zh8d2_1",
|
|
24
24
|
scrollable: V
|
|
25
|
-
}, ee =
|
|
25
|
+
}, ee = w.bind(Z), z = ({ scrollable: o = !1, children: n }) => /* @__PURE__ */ e("div", { className: ee("modal-content", { scrollable: o }), children: n }), te = {
|
|
26
26
|
"buttons-block": "_buttons-block_1dgm4_1",
|
|
27
27
|
"button-container": "_button-container_1dgm4_5",
|
|
28
28
|
"modal-footer": "_modal-footer_1dgm4_14",
|
|
29
29
|
"with-extra-node": "_with-extra-node_1dgm4_21",
|
|
30
30
|
"size-small": "_size-small_1dgm4_25"
|
|
31
|
-
}, m =
|
|
31
|
+
}, m = w.bind(te), oe = ({
|
|
32
32
|
footerNode: o,
|
|
33
33
|
closeHandler: n,
|
|
34
|
-
okButton:
|
|
34
|
+
okButton: a,
|
|
35
35
|
cancelButton: r,
|
|
36
|
-
size:
|
|
37
|
-
}) => /* @__PURE__ */
|
|
36
|
+
size: l
|
|
37
|
+
}) => /* @__PURE__ */ d("div", { className: m("modal-footer", { "with-extra-node": o, [`size-${l}`]: l }), children: [
|
|
38
38
|
o && o,
|
|
39
|
-
/* @__PURE__ */
|
|
39
|
+
/* @__PURE__ */ d("div", { className: m("buttons-block"), children: [
|
|
40
40
|
r && /* @__PURE__ */ e("div", { className: m("button-container"), children: /* @__PURE__ */ e(
|
|
41
|
-
|
|
41
|
+
O,
|
|
42
42
|
{
|
|
43
43
|
variant: "ghost",
|
|
44
|
-
adjustWidthOn:
|
|
44
|
+
adjustWidthOn: l === "small" ? "parent" : "min-width",
|
|
45
45
|
onClick: n,
|
|
46
46
|
...r
|
|
47
47
|
}
|
|
48
48
|
) }),
|
|
49
|
-
|
|
49
|
+
a && /* @__PURE__ */ e("div", { className: m("button-container"), children: /* @__PURE__ */ e(O, { adjustWidthOn: l === "small" ? "parent" : "min-width", ...a }) })
|
|
50
50
|
] })
|
|
51
51
|
] }), ne = {
|
|
52
|
-
"modal-header": "_modal-
|
|
53
|
-
"width-description": "_width-
|
|
54
|
-
"modal-header-content": "_modal-header-
|
|
55
|
-
"modal-title": "_modal-
|
|
56
|
-
"close-modal-icon": "_close-modal-
|
|
57
|
-
}, _ =
|
|
52
|
+
"modal-header": "_modal-header_w4aaf_1",
|
|
53
|
+
"width-description": "_width-description_w4aaf_10",
|
|
54
|
+
"modal-header-content": "_modal-header-content_w4aaf_14",
|
|
55
|
+
"modal-title": "_modal-title_w4aaf_20",
|
|
56
|
+
"close-modal-icon": "_close-modal-icon_w4aaf_29"
|
|
57
|
+
}, _ = w.bind(ne), ae = ({ title: o, onClose: n, withDescription: a = !1 }) => /* @__PURE__ */ d("div", { className: _("modal-header", { "width-description": a }), children: [
|
|
58
58
|
/* @__PURE__ */ e("div", { className: _("modal-header-content"), children: o && /* @__PURE__ */ e("div", { className: _("modal-title"), children: o }) }),
|
|
59
59
|
/* @__PURE__ */ e(X, { className: _("close-modal-icon"), onClick: n, children: /* @__PURE__ */ e(J, {}) })
|
|
60
|
-
] }),
|
|
61
|
-
modal:
|
|
62
|
-
"overlay-default": "_overlay-
|
|
63
|
-
"overlay-light-cyan": "_overlay-light-
|
|
64
|
-
"scrolling-content": "_scrolling-
|
|
65
|
-
"modal-window": "_modal-
|
|
66
|
-
description:
|
|
60
|
+
] }), le = "_modal_yxql5_1", se = "_description_yxql5_43", ie = "_scrollable_yxql5_53", de = {
|
|
61
|
+
modal: le,
|
|
62
|
+
"overlay-default": "_overlay-default_yxql5_12",
|
|
63
|
+
"overlay-light-cyan": "_overlay-light-cyan_yxql5_16",
|
|
64
|
+
"scrolling-content": "_scrolling-content_yxql5_20",
|
|
65
|
+
"modal-window": "_modal-window_yxql5_26",
|
|
66
|
+
description: se,
|
|
67
67
|
scrollable: ie,
|
|
68
|
-
"size-default": "_size-
|
|
69
|
-
"size-small": "_size-
|
|
70
|
-
"size-large": "_size-
|
|
71
|
-
}, h =
|
|
68
|
+
"size-default": "_size-default_yxql5_57",
|
|
69
|
+
"size-small": "_size-small_yxql5_69",
|
|
70
|
+
"size-large": "_size-large_yxql5_81"
|
|
71
|
+
}, h = w.bind(de), ce = 0.9, re = 32 + 24, me = 32 + 8, _e = 36 + 16, he = 32 * 2, Ee = ({
|
|
72
72
|
title: o,
|
|
73
73
|
children: n,
|
|
74
|
-
footerNode:
|
|
74
|
+
footerNode: a,
|
|
75
75
|
okButton: r,
|
|
76
|
-
cancelButton:
|
|
77
|
-
className:
|
|
78
|
-
size:
|
|
79
|
-
onClose:
|
|
76
|
+
cancelButton: l,
|
|
77
|
+
className: A,
|
|
78
|
+
size: f = "default",
|
|
79
|
+
onClose: C = () => {
|
|
80
80
|
},
|
|
81
|
-
overlay:
|
|
82
|
-
zIndex:
|
|
83
|
-
allowCloseOutside:
|
|
84
|
-
scrollable:
|
|
85
|
-
withoutFooter:
|
|
86
|
-
createFooter:
|
|
87
|
-
description:
|
|
81
|
+
overlay: x = "default",
|
|
82
|
+
zIndex: D = 2,
|
|
83
|
+
allowCloseOutside: S = !0,
|
|
84
|
+
scrollable: p = !1,
|
|
85
|
+
withoutFooter: v = !1,
|
|
86
|
+
createFooter: b = null,
|
|
87
|
+
description: s = null
|
|
88
88
|
}) => {
|
|
89
|
-
const [
|
|
90
|
-
let t =
|
|
91
|
-
return
|
|
92
|
-
},
|
|
93
|
-
|
|
94
|
-
},
|
|
95
|
-
const { keyCode:
|
|
96
|
-
|
|
97
|
-
},
|
|
89
|
+
const [T, H] = u(!1), [I, q] = u(0), [L, $] = u(!1), i = G(null), E = Q(), M = E.height, k = M * ce, g = (M - I) / 2, R = () => {
|
|
90
|
+
let t = k - he;
|
|
91
|
+
return v || (t = t - _e), s ? t = t - me : t = t - re, t;
|
|
92
|
+
}, c = () => {
|
|
93
|
+
H(!1);
|
|
94
|
+
}, N = (t) => {
|
|
95
|
+
const { keyCode: j } = t;
|
|
96
|
+
j === U.ESCAPE_KEY_CODE && c();
|
|
97
|
+
}, W = () => {
|
|
98
98
|
var t;
|
|
99
99
|
L || ((t = i.current) == null || t.focus(), $(!0));
|
|
100
100
|
};
|
|
101
|
-
return
|
|
101
|
+
return y(() => {
|
|
102
102
|
if (i && i.current) {
|
|
103
103
|
const { clientHeight: t } = i.current;
|
|
104
|
-
|
|
104
|
+
q(t);
|
|
105
105
|
}
|
|
106
|
-
}, [n, E]),
|
|
107
|
-
|
|
106
|
+
}, [n, E]), y(() => (H(!0), document.addEventListener("keydown", N, !1), () => document.removeEventListener("keydown", N, !1)), []), Y(i, S ? c : void 0), /* @__PURE__ */ e(P, { onExitComplete: C, children: T && /* @__PURE__ */ e("div", { className: h("modal", { [`overlay-${x}`]: x }), style: { zIndex: D }, children: /* @__PURE__ */ d(
|
|
107
|
+
B.div,
|
|
108
108
|
{
|
|
109
|
-
className: h("modal-window", { [`size-${
|
|
109
|
+
className: h("modal-window", { [`size-${f}`]: f }, A),
|
|
110
110
|
ref: i,
|
|
111
111
|
tabIndex: 0,
|
|
112
|
-
initial: { opacity: 0, marginTop: -
|
|
113
|
-
animate: { opacity: 1, marginTop:
|
|
114
|
-
exit: { opacity: 0, marginTop: -
|
|
112
|
+
initial: { opacity: 0, marginTop: -g },
|
|
113
|
+
animate: { opacity: 1, marginTop: g },
|
|
114
|
+
exit: { opacity: 0, marginTop: -g },
|
|
115
115
|
transition: { duration: 0.3 },
|
|
116
|
-
onAnimationStart:
|
|
116
|
+
onAnimationStart: W,
|
|
117
117
|
children: [
|
|
118
|
-
/* @__PURE__ */ e(
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
/* @__PURE__ */ e(
|
|
122
|
-
] }) : /* @__PURE__ */
|
|
123
|
-
|
|
124
|
-
/* @__PURE__ */ e(
|
|
118
|
+
/* @__PURE__ */ e(ae, { title: o, onClose: c, withDescription: !!s }),
|
|
119
|
+
p ? /* @__PURE__ */ d(K, { autoHeight: !0, autoHeightMax: R(), hideTracksWhenNotNeeded: !0, children: [
|
|
120
|
+
s && /* @__PURE__ */ e("span", { className: h("description", { scrollable: p }), children: s }),
|
|
121
|
+
/* @__PURE__ */ e(z, { scrollable: !0, children: n })
|
|
122
|
+
] }) : /* @__PURE__ */ d(F, { children: [
|
|
123
|
+
s && /* @__PURE__ */ e("span", { className: h("description"), children: s }),
|
|
124
|
+
/* @__PURE__ */ e(z, { children: n })
|
|
125
125
|
] }),
|
|
126
|
-
!
|
|
126
|
+
!v && (b ? b(c) : /* @__PURE__ */ e(
|
|
127
127
|
oe,
|
|
128
128
|
{
|
|
129
|
-
size:
|
|
130
|
-
footerNode:
|
|
129
|
+
size: f,
|
|
130
|
+
footerNode: a,
|
|
131
131
|
okButton: r,
|
|
132
|
-
cancelButton:
|
|
133
|
-
closeHandler:
|
|
132
|
+
cancelButton: l,
|
|
133
|
+
closeHandler: c
|
|
134
134
|
}
|
|
135
135
|
))
|
|
136
136
|
]
|
|
@@ -140,7 +140,7 @@ const Q = () => {
|
|
|
140
140
|
};
|
|
141
141
|
export {
|
|
142
142
|
Ee as Modal,
|
|
143
|
-
|
|
143
|
+
z as ModalContent,
|
|
144
144
|
oe as ModalFooter,
|
|
145
|
-
|
|
145
|
+
ae as ModalHeader
|
|
146
146
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { jsxs as p, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { c as
|
|
3
|
-
import { useState as
|
|
2
|
+
import { c as g } from "./bind-06a7ff84.js";
|
|
3
|
+
import { useState as b } from "react";
|
|
4
4
|
import { Popover as O } from "./popover.js";
|
|
5
|
-
import { B as x } from "./button-
|
|
6
|
-
import { F as A } from "./fieldText-
|
|
7
|
-
import { B as
|
|
8
|
-
import { S as
|
|
5
|
+
import { B as x } from "./button-33bc880f.js";
|
|
6
|
+
import { F as A } from "./fieldText-e605a521.js";
|
|
7
|
+
import { B as h } from "./baseIconButton-251479f7.js";
|
|
8
|
+
import { S as $, a as T } from "./prevPage-87faf576.js";
|
|
9
9
|
import { Tooltip as B } from "./tooltip.js";
|
|
10
10
|
const P = {
|
|
11
11
|
"item-counter": "_item-counter_4g6do_1"
|
|
12
|
-
}, E =
|
|
12
|
+
}, E = g.bind(P), M = ({
|
|
13
13
|
activePage: o,
|
|
14
14
|
pageSize: n,
|
|
15
15
|
totalItems: s,
|
|
@@ -21,11 +21,11 @@ const P = {
|
|
|
21
21
|
`${i + 1} - ${c < s ? c : s}`,
|
|
22
22
|
` ${r} ${s} ${a}`
|
|
23
23
|
] });
|
|
24
|
-
}, V = "
|
|
25
|
-
"size-selector": "_size-
|
|
26
|
-
"size-option": "_size-
|
|
24
|
+
}, V = "_selected_9ub70_32", W = {
|
|
25
|
+
"size-selector": "_size-selector_9ub70_1",
|
|
26
|
+
"size-option": "_size-option_9ub70_6",
|
|
27
27
|
selected: V
|
|
28
|
-
}, C =
|
|
28
|
+
}, C = g.bind(W), D = ({
|
|
29
29
|
currentSize: o,
|
|
30
30
|
options: n,
|
|
31
31
|
onClickOption: s
|
|
@@ -40,15 +40,15 @@ const P = {
|
|
|
40
40
|
},
|
|
41
41
|
r
|
|
42
42
|
)) }), F = {
|
|
43
|
-
"page-size-control": "_page-size-
|
|
44
|
-
"size-selector-button": "_size-selector-
|
|
45
|
-
}, w =
|
|
43
|
+
"page-size-control": "_page-size-control_sgwmi_1",
|
|
44
|
+
"size-selector-button": "_size-selector-button_sgwmi_10"
|
|
45
|
+
}, w = g.bind(F), j = ({
|
|
46
46
|
size: o,
|
|
47
47
|
sizeOptions: n,
|
|
48
48
|
perPageText: s,
|
|
49
49
|
changeSize: r
|
|
50
50
|
}) => {
|
|
51
|
-
const [a, c] =
|
|
51
|
+
const [a, c] = b(!1), i = (e) => {
|
|
52
52
|
r(e), c(!1);
|
|
53
53
|
};
|
|
54
54
|
return /* @__PURE__ */ p("div", { className: w("page-size-control"), children: [
|
|
@@ -68,20 +68,20 @@ const P = {
|
|
|
68
68
|
"page-selector": "_page-selector_rtho4_1",
|
|
69
69
|
"field-wrapper": "_field-wrapper_rtho4_6",
|
|
70
70
|
"apply-button": "_apply-button_rtho4_10"
|
|
71
|
-
},
|
|
71
|
+
}, N = g.bind(G), H = ({
|
|
72
72
|
totalPages: o,
|
|
73
73
|
pageText: n,
|
|
74
74
|
goActionText: s,
|
|
75
75
|
selectPage: r
|
|
76
76
|
}) => {
|
|
77
|
-
const [a, c] =
|
|
78
|
-
const
|
|
79
|
-
e(k), c(
|
|
77
|
+
const [a, c] = b(""), [i, e] = b(!0), d = (u) => {
|
|
78
|
+
const y = u.target.value.replace(/\D/g, ""), v = Number(y), k = v > 0 && v <= o;
|
|
79
|
+
e(k), c(y);
|
|
80
80
|
}, l = () => {
|
|
81
81
|
r(Number(a));
|
|
82
82
|
};
|
|
83
|
-
return /* @__PURE__ */ p("div", { className:
|
|
84
|
-
/* @__PURE__ */ t("div", { className:
|
|
83
|
+
return /* @__PURE__ */ p("div", { className: N("page-selector"), children: [
|
|
84
|
+
/* @__PURE__ */ t("div", { className: N("field-wrapper"), children: /* @__PURE__ */ t(
|
|
85
85
|
A,
|
|
86
86
|
{
|
|
87
87
|
onChange: d,
|
|
@@ -93,13 +93,13 @@ const P = {
|
|
|
93
93
|
displayError: !1
|
|
94
94
|
}
|
|
95
95
|
) }),
|
|
96
|
-
/* @__PURE__ */ t(x, { onClick: l, disabled: !a || !i, className:
|
|
96
|
+
/* @__PURE__ */ t(x, { onClick: l, disabled: !a || !i, className: N("apply-button"), children: s })
|
|
97
97
|
] });
|
|
98
98
|
}, L = {
|
|
99
|
-
"active-page": "_active-
|
|
100
|
-
"page-selector": "_page-
|
|
101
|
-
"page-selector-button": "_page-selector-
|
|
102
|
-
},
|
|
99
|
+
"active-page": "_active-page_1gl9o_1",
|
|
100
|
+
"page-selector": "_page-selector_1gl9o_10",
|
|
101
|
+
"page-selector-button": "_page-selector-button_1gl9o_14"
|
|
102
|
+
}, f = g.bind(L), R = ({
|
|
103
103
|
activePage: o,
|
|
104
104
|
totalPages: n,
|
|
105
105
|
pageText: s,
|
|
@@ -107,10 +107,10 @@ const P = {
|
|
|
107
107
|
goActionText: a,
|
|
108
108
|
changePage: c
|
|
109
109
|
}) => {
|
|
110
|
-
const [i, e] =
|
|
110
|
+
const [i, e] = b(!1), d = (l) => {
|
|
111
111
|
c(l), e(!1);
|
|
112
112
|
};
|
|
113
|
-
return /* @__PURE__ */ p("div", { className:
|
|
113
|
+
return /* @__PURE__ */ p("div", { className: f("active-page"), children: [
|
|
114
114
|
`${s} `,
|
|
115
115
|
/* @__PURE__ */ t(
|
|
116
116
|
O,
|
|
@@ -128,21 +128,21 @@ const P = {
|
|
|
128
128
|
placement: "top",
|
|
129
129
|
isOpened: i,
|
|
130
130
|
setIsOpened: e,
|
|
131
|
-
className:
|
|
132
|
-
children: /* @__PURE__ */ t(x, { className:
|
|
131
|
+
className: f("page-selector"),
|
|
132
|
+
children: /* @__PURE__ */ t(x, { className: f("page-selector-button"), variant: "text", children: o })
|
|
133
133
|
}
|
|
134
134
|
)
|
|
135
135
|
] });
|
|
136
|
-
}, q = "
|
|
136
|
+
}, q = "_bar_y74hy_1", J = "_section_y74hy_9", K = "_selected_y74hy_33", Q = "_tooltip_y74hy_37", U = {
|
|
137
137
|
bar: q,
|
|
138
|
-
"section-with-tooltip": "_section-with-
|
|
138
|
+
"section-with-tooltip": "_section-with-tooltip_y74hy_9",
|
|
139
139
|
section: J,
|
|
140
140
|
selected: K,
|
|
141
|
-
"tooltip-wrapper": "_tooltip-
|
|
141
|
+
"tooltip-wrapper": "_tooltip-wrapper_y74hy_37",
|
|
142
142
|
tooltip: Q,
|
|
143
|
-
"tooltip-text": "_tooltip-
|
|
144
|
-
"page-number": "_page-
|
|
145
|
-
}, _ =
|
|
143
|
+
"tooltip-text": "_tooltip-text_y74hy_48",
|
|
144
|
+
"page-number": "_page-number_y74hy_52"
|
|
145
|
+
}, _ = g.bind(U), S = 13, z = 260, X = ({
|
|
146
146
|
totalPages: o,
|
|
147
147
|
activePage: n,
|
|
148
148
|
changePage: s,
|
|
@@ -192,7 +192,7 @@ const P = {
|
|
|
192
192
|
"page-buttons": "_page-buttons_1p2t5_6",
|
|
193
193
|
"page-button": "_page-button_1p2t5_6",
|
|
194
194
|
next: Y
|
|
195
|
-
},
|
|
195
|
+
}, m = g.bind(Z), ee = ({
|
|
196
196
|
activePage: o,
|
|
197
197
|
changePage: n,
|
|
198
198
|
totalPages: s,
|
|
@@ -207,21 +207,21 @@ const P = {
|
|
|
207
207
|
}, e = () => {
|
|
208
208
|
n(s);
|
|
209
209
|
};
|
|
210
|
-
return /* @__PURE__ */ p("div", { className:
|
|
211
|
-
/* @__PURE__ */ p("div", { className:
|
|
210
|
+
return /* @__PURE__ */ p("div", { className: m("page-navigator"), children: [
|
|
211
|
+
/* @__PURE__ */ p("div", { className: m("page-buttons"), children: [
|
|
212
212
|
/* @__PURE__ */ t(
|
|
213
|
-
|
|
213
|
+
h,
|
|
214
214
|
{
|
|
215
|
-
className:
|
|
215
|
+
className: m("page-button"),
|
|
216
216
|
onClick: a,
|
|
217
217
|
disabled: o === 1,
|
|
218
|
-
children: /* @__PURE__ */ t(
|
|
218
|
+
children: /* @__PURE__ */ t($, {})
|
|
219
219
|
}
|
|
220
220
|
),
|
|
221
221
|
/* @__PURE__ */ t(
|
|
222
|
-
|
|
222
|
+
h,
|
|
223
223
|
{
|
|
224
|
-
className:
|
|
224
|
+
className: m("page-button"),
|
|
225
225
|
onClick: c,
|
|
226
226
|
disabled: o === 1,
|
|
227
227
|
children: /* @__PURE__ */ t(T, {})
|
|
@@ -237,23 +237,23 @@ const P = {
|
|
|
237
237
|
captions: r
|
|
238
238
|
}
|
|
239
239
|
),
|
|
240
|
-
/* @__PURE__ */ p("div", { className:
|
|
240
|
+
/* @__PURE__ */ p("div", { className: m("page-buttons"), children: [
|
|
241
241
|
/* @__PURE__ */ t(
|
|
242
|
-
|
|
242
|
+
h,
|
|
243
243
|
{
|
|
244
|
-
className:
|
|
244
|
+
className: m("page-button", "next"),
|
|
245
245
|
onClick: i,
|
|
246
246
|
disabled: o === s,
|
|
247
247
|
children: /* @__PURE__ */ t(T, {})
|
|
248
248
|
}
|
|
249
249
|
),
|
|
250
250
|
/* @__PURE__ */ t(
|
|
251
|
-
|
|
251
|
+
h,
|
|
252
252
|
{
|
|
253
|
-
className:
|
|
253
|
+
className: m("page-button", "next"),
|
|
254
254
|
onClick: e,
|
|
255
255
|
disabled: o === s,
|
|
256
|
-
children: /* @__PURE__ */ t(
|
|
256
|
+
children: /* @__PURE__ */ t($, {})
|
|
257
257
|
}
|
|
258
258
|
)
|
|
259
259
|
] })
|
|
@@ -261,7 +261,7 @@ const P = {
|
|
|
261
261
|
}, te = {
|
|
262
262
|
"page-controls": "_page-controls_thyf8_1",
|
|
263
263
|
"total-pages": "_total-pages_thyf8_8"
|
|
264
|
-
}, I =
|
|
264
|
+
}, I = g.bind(te), oe = ({
|
|
265
265
|
activePage: o,
|
|
266
266
|
changePage: n,
|
|
267
267
|
captions: s,
|
|
@@ -291,9 +291,9 @@ const P = {
|
|
|
291
291
|
`${s.of} `,
|
|
292
292
|
r
|
|
293
293
|
] })
|
|
294
|
-
] }), se = "
|
|
294
|
+
] }), se = "_pagination_w2r3n_1", ne = {
|
|
295
295
|
pagination: se
|
|
296
|
-
}, re =
|
|
296
|
+
}, re = g.bind(ne), ue = ({
|
|
297
297
|
activePage: o,
|
|
298
298
|
totalPages: n,
|
|
299
299
|
pageSize: s,
|
package/dist/pagination.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { P as t } from "./pagination-
|
|
1
|
+
import { P as t } from "./pagination-ecbc9940.js";
|
|
2
2
|
import "react/jsx-runtime";
|
|
3
3
|
import "./bind-06a7ff84.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import "./popover.js";
|
|
6
6
|
import "@floating-ui/react";
|
|
7
|
-
import "./button-
|
|
8
|
-
import "./fieldText-
|
|
7
|
+
import "./button-33bc880f.js";
|
|
8
|
+
import "./fieldText-e605a521.js";
|
|
9
9
|
import "./openEye-7b9cf080.js";
|
|
10
10
|
import "./spinLoader-c4a53718.js";
|
|
11
11
|
import "./maxValueDisplay-9be01a75.js";
|
package/dist/popover.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { jsxs as f, Fragment as S, jsx as
|
|
1
|
+
import { jsxs as f, Fragment as S, jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import { useRef as j, useState as C, useCallback as L } from "react";
|
|
3
3
|
import { useFloating as M, offset as U, flip as W, arrow as q, autoUpdate as z, useClick as B, useDismiss as J, useRole as K, useInteractions as Q, FloatingFocusManager as V, FloatingArrow as X } from "@floating-ui/react";
|
|
4
4
|
import { c as Y } from "./bind-06a7ff84.js";
|
|
5
|
-
const Z = "
|
|
6
|
-
"popover-wrapper": "_popover-
|
|
5
|
+
const Z = "_popover_n3nff_1", $ = "_title_n3nff_28", O = {
|
|
6
|
+
"popover-wrapper": "_popover-wrapper_n3nff_1",
|
|
7
7
|
popover: Z,
|
|
8
8
|
title: $
|
|
9
|
-
}, r = Y.bind(O),
|
|
9
|
+
}, r = Y.bind(O), d = 16, g = 8, tt = ["top", "right", "bottom", "left"], et = [
|
|
10
10
|
"right",
|
|
11
11
|
"right-start",
|
|
12
12
|
"right-end",
|
|
@@ -38,13 +38,13 @@ const Z = "_popover_16ogt_1", $ = "_title_16ogt_28", O = {
|
|
|
38
38
|
arrowColor: x = "white",
|
|
39
39
|
dataAutomationId: A,
|
|
40
40
|
isOpened: F,
|
|
41
|
-
setIsOpened:
|
|
41
|
+
setIsOpened: s,
|
|
42
42
|
isCentered: a = !0
|
|
43
43
|
}) => {
|
|
44
|
-
const c = j(null), [R, N] = C(!1), p =
|
|
45
|
-
|
|
44
|
+
const c = j(null), [R, N] = C(!1), p = s ? F : R, P = (t) => {
|
|
45
|
+
s ? s(t) : N(t);
|
|
46
46
|
}, k = L(
|
|
47
|
-
(t, l) => a ? ((et.includes(l) ? t.reference.height : t.reference.width) -
|
|
47
|
+
(t, l) => a ? ((et.includes(l) ? t.reference.height : t.reference.width) - d) / 2 - o : -o,
|
|
48
48
|
[o, a]
|
|
49
49
|
), { placement: E, refs: m, floatingStyles: I, context: e } = M({
|
|
50
50
|
open: p,
|
|
@@ -52,7 +52,7 @@ const Z = "_popover_16ogt_1", $ = "_title_16ogt_28", O = {
|
|
|
52
52
|
placement: _,
|
|
53
53
|
middleware: [
|
|
54
54
|
U(({ rects: t, placement: l }) => ({
|
|
55
|
-
mainAxis: w +
|
|
55
|
+
mainAxis: w + g,
|
|
56
56
|
alignmentAxis: k(t, l)
|
|
57
57
|
})),
|
|
58
58
|
W({
|
|
@@ -66,8 +66,8 @@ const Z = "_popover_16ogt_1", $ = "_title_16ogt_28", O = {
|
|
|
66
66
|
whileElementsMounted: z
|
|
67
67
|
}), T = B(e), y = J(e), D = K(e), { getReferenceProps: G, getFloatingProps: H } = Q([T, y, D]);
|
|
68
68
|
return /* @__PURE__ */ f(S, { children: [
|
|
69
|
-
/* @__PURE__ */
|
|
70
|
-
p && /* @__PURE__ */
|
|
69
|
+
/* @__PURE__ */ n("div", { ref: m.setReference, ...G(), className: r("popover-wrapper"), children: v }),
|
|
70
|
+
p && /* @__PURE__ */ n(V, { context: e, modal: !1, children: /* @__PURE__ */ f(
|
|
71
71
|
"div",
|
|
72
72
|
{
|
|
73
73
|
className: r("popover", h),
|
|
@@ -76,18 +76,18 @@ const Z = "_popover_16ogt_1", $ = "_title_16ogt_28", O = {
|
|
|
76
76
|
style: I,
|
|
77
77
|
...H,
|
|
78
78
|
children: [
|
|
79
|
-
/* @__PURE__ */
|
|
79
|
+
/* @__PURE__ */ n(
|
|
80
80
|
X,
|
|
81
81
|
{
|
|
82
82
|
ref: c,
|
|
83
83
|
context: e,
|
|
84
|
-
width:
|
|
85
|
-
height:
|
|
84
|
+
width: d,
|
|
85
|
+
height: g,
|
|
86
86
|
fill: x,
|
|
87
87
|
staticOffset: tt.includes(E) ? null : o
|
|
88
88
|
}
|
|
89
89
|
),
|
|
90
|
-
i && /* @__PURE__ */
|
|
90
|
+
i && /* @__PURE__ */ n("div", { className: r("title"), children: i }),
|
|
91
91
|
u
|
|
92
92
|
]
|
|
93
93
|
}
|