@reportportal/ui-kit 0.0.1-alpha.7 → 0.0.1-alpha.70
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/LICENSE +201 -201
- package/README.md +255 -3
- package/dist/arrowUp-4a5caee7.js +6 -0
- package/dist/baseIconButton-251479f7.js +25 -0
- package/dist/baseIconButton.js +7 -0
- package/dist/bubblesLoader-a7e709d4.js +17 -0
- package/dist/bubblesLoader.js +1 -1
- package/dist/button-33bc880f.js +64 -0
- package/dist/button.js +1 -1
- package/dist/calendarArrow-3e1339ea.js +6 -0
- package/dist/checkbox-aa91985d.js +73 -0
- package/dist/checkbox.js +1 -1
- package/dist/close-4b33d7c1.js +5 -0
- package/dist/common/hooks/useOnClickOutside.d.ts +1 -0
- package/dist/common/types.d.ts +3 -0
- package/dist/components/baseIconButton/baseIconButton.d.ts +9 -0
- package/dist/components/baseIconButton/index.d.ts +5 -0
- package/dist/components/bubblesLoader/bubblesLoader.d.ts +1 -0
- package/dist/components/bubblesLoader/index.d.ts +1 -0
- package/dist/components/button/button.d.ts +4 -4
- package/dist/components/button/index.d.ts +3 -2
- package/dist/components/checkbox/checkbox.d.ts +3 -0
- package/dist/components/checkbox/index.d.ts +1 -0
- package/dist/components/datePicker/datePicker.d.ts +25 -0
- package/dist/components/datePicker/header/datePickerHeader.d.ts +16 -0
- package/dist/components/datePicker/header/index.d.ts +4 -0
- package/dist/components/datePicker/index.d.ts +5 -0
- package/dist/components/datePicker/utils.d.ts +4 -0
- package/dist/components/dropdown/constants.d.ts +5 -0
- package/dist/components/dropdown/dropdown.d.ts +13 -5
- package/dist/components/dropdown/dropdownOption/dropdownOption.d.ts +1 -0
- package/dist/components/dropdown/dropdownOption/index.d.ts +1 -0
- package/dist/components/dropdown/index.d.ts +1 -0
- package/dist/components/dropdown/types.d.ts +3 -0
- package/dist/components/dropdown/utils.d.ts +2 -1
- package/dist/components/fieldLabel/fieldLabel.d.ts +7 -0
- package/dist/components/fieldLabel/index.d.ts +1 -0
- package/dist/components/fieldNumber/constants.d.ts +1 -0
- package/dist/components/fieldNumber/fieldNumber.d.ts +3 -2
- package/dist/components/fieldNumber/index.d.ts +1 -0
- package/dist/components/fieldText/fieldText.d.ts +13 -5
- package/dist/components/fieldText/index.d.ts +1 -0
- package/dist/components/fieldText/types.d.ts +5 -0
- package/dist/components/fieldTextFlex/fieldTextFlex.d.ts +16 -0
- package/dist/components/fieldTextFlex/index.d.ts +4 -0
- package/dist/components/icons/index.d.ts +48 -0
- package/dist/components/index.d.ts +11 -1
- package/dist/components/maxValueDisplay/index.d.ts +4 -0
- package/dist/components/maxValueDisplay/maxValueDisplay.d.ts +8 -0
- package/dist/components/maxValueDisplay/utils/index.d.ts +1 -0
- package/dist/components/maxValueDisplay/utils/isPositiveInteger.d.ts +1 -0
- package/dist/components/modal/modal.d.ts +7 -2
- package/dist/components/modal/modalContent/modalContent.d.ts +2 -0
- package/dist/components/modal/modalFooter/modalFooter.d.ts +1 -0
- package/dist/components/modal/modalHeader/modalHeader.d.ts +2 -1
- package/dist/components/pagination/index.d.ts +5 -0
- package/dist/components/pagination/itemsCounter/index.d.ts +1 -0
- package/dist/components/pagination/itemsCounter/itemCounter.d.ts +10 -0
- package/dist/components/pagination/pageControls/activePage/activePage.d.ts +13 -0
- package/dist/components/pagination/pageControls/activePage/index.d.ts +1 -0
- package/dist/components/pagination/pageControls/activePage/pageSelector/index.d.ts +1 -0
- package/dist/components/pagination/pageControls/activePage/pageSelector/pageSelector.d.ts +11 -0
- package/dist/components/pagination/pageControls/index.d.ts +1 -0
- package/dist/components/pagination/pageControls/pageControls.d.ts +17 -0
- package/dist/components/pagination/pageControls/pageNavigator/bar/bar.d.ts +12 -0
- package/dist/components/pagination/pageControls/pageNavigator/bar/index.d.ts +1 -0
- package/dist/components/pagination/pageControls/pageNavigator/index.d.ts +1 -0
- package/dist/components/pagination/pageControls/pageNavigator/pageNavigator.d.ts +12 -0
- package/dist/components/pagination/pageSizeControl/index.d.ts +1 -0
- package/dist/components/pagination/pageSizeControl/pageSizeControl.d.ts +11 -0
- package/dist/components/pagination/pageSizeControl/sizeSelector/index.d.ts +1 -0
- package/dist/components/pagination/pageSizeControl/sizeSelector/sizeSelector.d.ts +9 -0
- package/dist/components/pagination/pagination.d.ts +23 -0
- package/dist/components/pagination/types.d.ts +2 -0
- package/dist/components/popover/index.d.ts +1 -0
- package/dist/components/popover/popover.d.ts +20 -0
- package/dist/components/radio/index.d.ts +5 -0
- package/dist/components/radio/radio.d.ts +17 -0
- package/dist/components/radio/radioGroup.d.ts +9 -0
- package/dist/components/spinLoader/index.d.ts +4 -0
- package/dist/components/spinLoader/spinLoader.d.ts +8 -0
- package/dist/components/systemAlert/index.d.ts +1 -0
- package/dist/components/systemAlert/systemAlert.d.ts +4 -0
- package/dist/components/systemAlert/types.d.ts +16 -0
- package/dist/components/systemMessage/index.d.ts +1 -0
- package/dist/components/systemMessage/systemMessage.d.ts +1 -0
- package/dist/components/table/constants.d.ts +2 -0
- package/dist/components/table/index.d.ts +4 -0
- package/dist/components/table/table.d.ts +4 -0
- package/dist/components/table/types.d.ts +52 -0
- package/dist/components/table/utils.d.ts +6 -0
- package/dist/components/themeProvider/index.d.ts +1 -0
- package/dist/components/themeProvider/themeProvider.d.ts +3 -1
- package/dist/components/toggle/index.d.ts +1 -0
- package/dist/components/toggle/toggle.d.ts +1 -0
- package/dist/components/tooltip/index.d.ts +1 -0
- package/dist/components/tooltip/tooltip.d.ts +23 -0
- package/dist/datePicker-382ef010.js +201 -0
- package/dist/datePicker.js +28 -0
- package/dist/dropdown-0260bb66.js +5 -0
- package/dist/dropdown-13d7d50e.js +278 -0
- package/dist/dropdown.js +6 -4
- package/dist/fieldLabel.js +18 -0
- package/dist/fieldNumber-2542b311.js +128 -0
- package/dist/fieldNumber.js +4 -3
- package/dist/fieldText-e605a521.js +158 -0
- package/dist/fieldText.js +6 -2
- package/dist/fieldTextFlex-9e616f66.js +78 -0
- package/dist/fieldTextFlex.js +10 -0
- package/dist/fonts/OpenSans/OpenSans-Bold.ttf +0 -0
- package/dist/fonts/OpenSans/OpenSans-Medium.ttf +0 -0
- package/dist/icons.js +60 -0
- package/dist/index.js +103 -23
- package/dist/maxValueDisplay-9be01a75.js +13 -0
- package/dist/maxValueDisplay.js +6 -0
- package/dist/modal.js +115 -97
- package/dist/openEye-7b9cf080.js +7 -0
- package/dist/pagination-ecbc9940.js +345 -0
- package/dist/pagination.js +20 -0
- package/dist/plus-0929dda4.js +6 -0
- package/dist/popover.js +99 -0
- package/dist/prevPage-87faf576.js +6 -0
- package/dist/radio-62546efa.js +76 -0
- package/dist/{icon.js → radio.js} +4 -4
- package/dist/spinLoader-c4a53718.js +11 -0
- package/dist/spinLoader.js +7 -0
- package/dist/style.css +1 -1
- package/dist/success-dc1914aa.js +7 -0
- package/dist/systemAlert.js +63 -0
- package/dist/{systemMessage-62c3133d.js → systemMessage-924fdaa6.js} +14 -14
- package/dist/systemMessage.js +1 -1
- package/dist/table-20aa2cdf.js +142 -0
- package/dist/table.js +11 -0
- package/dist/themeProvider-46c2be7b.js +23 -0
- package/dist/themeProvider.js +4 -3
- package/dist/toggle-304107fa.js +59 -0
- package/dist/toggle.js +1 -1
- package/dist/tooltip.js +101 -0
- package/package.json +53 -17
- package/dist/bubblesLoader-9bec3797.js +0 -17
- package/dist/button-d4944dbc.js +0 -64
- package/dist/checkbox-fdc44740.js +0 -68
- package/dist/clear-4963efcd.js +0 -5
- package/dist/components/icon/icon.d.ts +0 -11
- package/dist/components/icon/icons.d.ts +0 -21
- package/dist/components/icon/index.d.ts +0 -3
- package/dist/dropdown-45e7bc7d.js +0 -204
- package/dist/fieldNumber-27e69676.js +0 -132
- package/dist/fieldText-c7085849.js +0 -99
- package/dist/icon-71262f5c.js +0 -26
- package/dist/themeProvider-5800417e.js +0 -19
- package/dist/toggle-5b3d8333.js +0 -67
|
@@ -0,0 +1,345 @@
|
|
|
1
|
+
import { jsxs as p, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { c as g } from "./bind-06a7ff84.js";
|
|
3
|
+
import { useState as b } from "react";
|
|
4
|
+
import { Popover as O } from "./popover.js";
|
|
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
|
+
import { Tooltip as B } from "./tooltip.js";
|
|
10
|
+
const P = {
|
|
11
|
+
"item-counter": "_item-counter_4g6do_1"
|
|
12
|
+
}, E = g.bind(P), M = ({
|
|
13
|
+
activePage: o,
|
|
14
|
+
pageSize: n,
|
|
15
|
+
totalItems: s,
|
|
16
|
+
ofText: r,
|
|
17
|
+
itemsText: a
|
|
18
|
+
}) => {
|
|
19
|
+
const c = o * n, i = c - n;
|
|
20
|
+
return /* @__PURE__ */ p("div", { className: E("item-counter"), children: [
|
|
21
|
+
`${i + 1} - ${c < s ? c : s}`,
|
|
22
|
+
` ${r} ${s} ${a}`
|
|
23
|
+
] });
|
|
24
|
+
}, V = "_selected_9ub70_32", W = {
|
|
25
|
+
"size-selector": "_size-selector_9ub70_1",
|
|
26
|
+
"size-option": "_size-option_9ub70_6",
|
|
27
|
+
selected: V
|
|
28
|
+
}, C = g.bind(W), D = ({
|
|
29
|
+
currentSize: o,
|
|
30
|
+
options: n,
|
|
31
|
+
onClickOption: s
|
|
32
|
+
}) => /* @__PURE__ */ t("div", { className: C("size-selector"), children: n.map((r) => /* @__PURE__ */ t(
|
|
33
|
+
"button",
|
|
34
|
+
{
|
|
35
|
+
className: C("size-option", { selected: r === o }),
|
|
36
|
+
onClick: () => {
|
|
37
|
+
s(r);
|
|
38
|
+
},
|
|
39
|
+
children: r
|
|
40
|
+
},
|
|
41
|
+
r
|
|
42
|
+
)) }), F = {
|
|
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
|
+
size: o,
|
|
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: w("page-size-control"), children: [
|
|
55
|
+
/* @__PURE__ */ t(
|
|
56
|
+
O,
|
|
57
|
+
{
|
|
58
|
+
content: /* @__PURE__ */ t(D, { options: n, onClickOption: i, currentSize: o }),
|
|
59
|
+
placement: "top",
|
|
60
|
+
isOpened: a,
|
|
61
|
+
setIsOpened: c,
|
|
62
|
+
children: /* @__PURE__ */ t(x, { className: w("size-selector-button"), variant: "text", children: o })
|
|
63
|
+
}
|
|
64
|
+
),
|
|
65
|
+
` ${s}`
|
|
66
|
+
] });
|
|
67
|
+
}, G = {
|
|
68
|
+
"page-selector": "_page-selector_rtho4_1",
|
|
69
|
+
"field-wrapper": "_field-wrapper_rtho4_6",
|
|
70
|
+
"apply-button": "_apply-button_rtho4_10"
|
|
71
|
+
}, N = g.bind(G), H = ({
|
|
72
|
+
totalPages: o,
|
|
73
|
+
pageText: n,
|
|
74
|
+
goActionText: s,
|
|
75
|
+
selectPage: r
|
|
76
|
+
}) => {
|
|
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
|
+
}, l = () => {
|
|
81
|
+
r(Number(a));
|
|
82
|
+
};
|
|
83
|
+
return /* @__PURE__ */ p("div", { className: N("page-selector"), children: [
|
|
84
|
+
/* @__PURE__ */ t("div", { className: N("field-wrapper"), children: /* @__PURE__ */ t(
|
|
85
|
+
A,
|
|
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__ */ t(x, { onClick: l, disabled: !a || !i, className: N("apply-button"), children: s })
|
|
97
|
+
] });
|
|
98
|
+
}, L = {
|
|
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
|
+
activePage: o,
|
|
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: f("active-page"), children: [
|
|
114
|
+
`${s} `,
|
|
115
|
+
/* @__PURE__ */ t(
|
|
116
|
+
O,
|
|
117
|
+
{
|
|
118
|
+
content: /* @__PURE__ */ t(
|
|
119
|
+
H,
|
|
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: f("page-selector"),
|
|
132
|
+
children: /* @__PURE__ */ t(x, { className: f("page-selector-button"), variant: "text", children: o })
|
|
133
|
+
}
|
|
134
|
+
)
|
|
135
|
+
] });
|
|
136
|
+
}, q = "_bar_y74hy_1", J = "_section_y74hy_9", K = "_selected_y74hy_33", Q = "_tooltip_y74hy_37", U = {
|
|
137
|
+
bar: q,
|
|
138
|
+
"section-with-tooltip": "_section-with-tooltip_y74hy_9",
|
|
139
|
+
section: J,
|
|
140
|
+
selected: K,
|
|
141
|
+
"tooltip-wrapper": "_tooltip-wrapper_y74hy_37",
|
|
142
|
+
tooltip: Q,
|
|
143
|
+
"tooltip-text": "_tooltip-text_y74hy_48",
|
|
144
|
+
"page-number": "_page-number_y74hy_52"
|
|
145
|
+
}, _ = g.bind(U), S = 13, z = 260, X = ({
|
|
146
|
+
totalPages: o,
|
|
147
|
+
activePage: n,
|
|
148
|
+
changePage: s,
|
|
149
|
+
captions: r
|
|
150
|
+
}) => {
|
|
151
|
+
const a = z / o, c = Math.min(Math.ceil(z / S), o), i = Math.max(S, a), e = [];
|
|
152
|
+
for (let l = 1; l <= o; 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, u) => {
|
|
159
|
+
for (l.pages.from = e[0].pageNumber; i * (u + 1) > e[0].end; )
|
|
160
|
+
e.shift();
|
|
161
|
+
l.pages.to = e[0].pageNumber, e.shift();
|
|
162
|
+
}), /* @__PURE__ */ t("div", { className: _("bar"), children: d.map((l, u) => /* @__PURE__ */ t(
|
|
163
|
+
"div",
|
|
164
|
+
{
|
|
165
|
+
className: _("section-with-tooltip"),
|
|
166
|
+
style: { width: i },
|
|
167
|
+
onClick: () => l.pages.from && s(l.pages.from),
|
|
168
|
+
children: /* @__PURE__ */ t(
|
|
169
|
+
B,
|
|
170
|
+
{
|
|
171
|
+
content: /* @__PURE__ */ p("div", { className: _("tooltip"), children: [
|
|
172
|
+
/* @__PURE__ */ t("div", { className: _("tooltip-text"), children: r.goTo }),
|
|
173
|
+
/* @__PURE__ */ t("div", { className: _("page-number"), children: l.pages.from })
|
|
174
|
+
] }),
|
|
175
|
+
wrapperClassName: _("tooltip-wrapper"),
|
|
176
|
+
placement: "top",
|
|
177
|
+
children: /* @__PURE__ */ t(
|
|
178
|
+
"div",
|
|
179
|
+
{
|
|
180
|
+
className: _("section", {
|
|
181
|
+
selected: l.pages.from && l.pages.to && l.pages.from <= n && n <= l.pages.to
|
|
182
|
+
})
|
|
183
|
+
}
|
|
184
|
+
)
|
|
185
|
+
}
|
|
186
|
+
)
|
|
187
|
+
},
|
|
188
|
+
u
|
|
189
|
+
)) });
|
|
190
|
+
}, Y = "_next_1p2t5_18", Z = {
|
|
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 = g.bind(Z), ee = ({
|
|
196
|
+
activePage: o,
|
|
197
|
+
changePage: n,
|
|
198
|
+
totalPages: s,
|
|
199
|
+
captions: r
|
|
200
|
+
}) => {
|
|
201
|
+
const a = () => {
|
|
202
|
+
n(1);
|
|
203
|
+
}, c = () => {
|
|
204
|
+
n(o - 1);
|
|
205
|
+
}, i = () => {
|
|
206
|
+
n(o + 1);
|
|
207
|
+
}, e = () => {
|
|
208
|
+
n(s);
|
|
209
|
+
};
|
|
210
|
+
return /* @__PURE__ */ p("div", { className: m("page-navigator"), children: [
|
|
211
|
+
/* @__PURE__ */ p("div", { className: m("page-buttons"), children: [
|
|
212
|
+
/* @__PURE__ */ t(
|
|
213
|
+
h,
|
|
214
|
+
{
|
|
215
|
+
className: m("page-button"),
|
|
216
|
+
onClick: a,
|
|
217
|
+
disabled: o === 1,
|
|
218
|
+
children: /* @__PURE__ */ t($, {})
|
|
219
|
+
}
|
|
220
|
+
),
|
|
221
|
+
/* @__PURE__ */ t(
|
|
222
|
+
h,
|
|
223
|
+
{
|
|
224
|
+
className: m("page-button"),
|
|
225
|
+
onClick: c,
|
|
226
|
+
disabled: o === 1,
|
|
227
|
+
children: /* @__PURE__ */ t(T, {})
|
|
228
|
+
}
|
|
229
|
+
)
|
|
230
|
+
] }),
|
|
231
|
+
/* @__PURE__ */ t(
|
|
232
|
+
X,
|
|
233
|
+
{
|
|
234
|
+
totalPages: s,
|
|
235
|
+
activePage: o,
|
|
236
|
+
changePage: n,
|
|
237
|
+
captions: r
|
|
238
|
+
}
|
|
239
|
+
),
|
|
240
|
+
/* @__PURE__ */ p("div", { className: m("page-buttons"), children: [
|
|
241
|
+
/* @__PURE__ */ t(
|
|
242
|
+
h,
|
|
243
|
+
{
|
|
244
|
+
className: m("page-button", "next"),
|
|
245
|
+
onClick: i,
|
|
246
|
+
disabled: o === s,
|
|
247
|
+
children: /* @__PURE__ */ t(T, {})
|
|
248
|
+
}
|
|
249
|
+
),
|
|
250
|
+
/* @__PURE__ */ t(
|
|
251
|
+
h,
|
|
252
|
+
{
|
|
253
|
+
className: m("page-button", "next"),
|
|
254
|
+
onClick: e,
|
|
255
|
+
disabled: o === s,
|
|
256
|
+
children: /* @__PURE__ */ t($, {})
|
|
257
|
+
}
|
|
258
|
+
)
|
|
259
|
+
] })
|
|
260
|
+
] });
|
|
261
|
+
}, te = {
|
|
262
|
+
"page-controls": "_page-controls_thyf8_1",
|
|
263
|
+
"total-pages": "_total-pages_thyf8_8"
|
|
264
|
+
}, I = g.bind(te), oe = ({
|
|
265
|
+
activePage: o,
|
|
266
|
+
changePage: n,
|
|
267
|
+
captions: s,
|
|
268
|
+
totalPages: r
|
|
269
|
+
}) => /* @__PURE__ */ p("div", { className: I("page-controls"), children: [
|
|
270
|
+
/* @__PURE__ */ t(
|
|
271
|
+
R,
|
|
272
|
+
{
|
|
273
|
+
activePage: o,
|
|
274
|
+
totalPages: r,
|
|
275
|
+
changePage: n,
|
|
276
|
+
pageText: s.page,
|
|
277
|
+
goToText: s.goTo,
|
|
278
|
+
goActionText: s.goAction
|
|
279
|
+
}
|
|
280
|
+
),
|
|
281
|
+
/* @__PURE__ */ t(
|
|
282
|
+
ee,
|
|
283
|
+
{
|
|
284
|
+
changePage: n,
|
|
285
|
+
activePage: o,
|
|
286
|
+
totalPages: r,
|
|
287
|
+
captions: { goTo: s.goTo }
|
|
288
|
+
}
|
|
289
|
+
),
|
|
290
|
+
/* @__PURE__ */ p("span", { className: I("total-pages"), children: [
|
|
291
|
+
`${s.of} `,
|
|
292
|
+
r
|
|
293
|
+
] })
|
|
294
|
+
] }), se = "_pagination_w2r3n_1", ne = {
|
|
295
|
+
pagination: se
|
|
296
|
+
}, re = g.bind(ne), ue = ({
|
|
297
|
+
activePage: o,
|
|
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: re("pagination"), children: [
|
|
308
|
+
/* @__PURE__ */ t(
|
|
309
|
+
M,
|
|
310
|
+
{
|
|
311
|
+
activePage: o,
|
|
312
|
+
pageSize: s,
|
|
313
|
+
totalItems: r,
|
|
314
|
+
ofText: d,
|
|
315
|
+
itemsText: (e == null ? void 0 : e.items) || "items"
|
|
316
|
+
}
|
|
317
|
+
),
|
|
318
|
+
n > 1 && /* @__PURE__ */ t(
|
|
319
|
+
oe,
|
|
320
|
+
{
|
|
321
|
+
activePage: o,
|
|
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__ */ t(
|
|
333
|
+
j,
|
|
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
|
+
ue as P
|
|
345
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { P as t } from "./pagination-ecbc9940.js";
|
|
2
|
+
import "react/jsx-runtime";
|
|
3
|
+
import "./bind-06a7ff84.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import "./popover.js";
|
|
6
|
+
import "@floating-ui/react";
|
|
7
|
+
import "./button-33bc880f.js";
|
|
8
|
+
import "./fieldText-e605a521.js";
|
|
9
|
+
import "./openEye-7b9cf080.js";
|
|
10
|
+
import "./spinLoader-c4a53718.js";
|
|
11
|
+
import "./maxValueDisplay-9be01a75.js";
|
|
12
|
+
import "./fieldLabel.js";
|
|
13
|
+
import "./baseIconButton-251479f7.js";
|
|
14
|
+
import "./prevPage-87faf576.js";
|
|
15
|
+
import "./tooltip.js";
|
|
16
|
+
import "react-dom";
|
|
17
|
+
export {
|
|
18
|
+
t as Pagination,
|
|
19
|
+
t as default
|
|
20
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
const l = (t) => /* @__PURE__ */ e.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "#C1C7D0", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ e.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M3.31082 7.31081C2.94108 7.30926 2.6426 7.60773 2.64415 7.97748C2.64571 8.34722 2.9467 8.64822 3.31645 8.64977L12.6892 8.68919C13.0589 8.69074 13.3574 8.39227 13.3559 8.02252C13.3543 7.65278 13.0533 7.35178 12.6836 7.35023L3.31082 7.31081Z" })), C = (t) => /* @__PURE__ */ e.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "#C1C7D0", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ e.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8.00117 2.62046C7.63142 2.6189 7.33294 2.91738 7.3345 3.28712L7.35159 7.35159L3.28712 7.3345C2.91738 7.33295 2.6189 7.63142 2.62045 8.00117C2.62201 8.37091 2.92301 8.67191 3.29275 8.67346L7.35722 8.69056L7.37391 12.6599C7.37547 13.0296 7.67647 13.3306 8.04621 13.3322C8.41596 13.3337 8.71443 13.0352 8.71288 12.6655L8.69619 8.69619L12.6655 8.71288C13.0352 8.71444 13.3337 8.41596 13.3322 8.04621C13.3306 7.67647 13.0296 7.37547 12.6599 7.37392L8.69056 7.35722L8.67346 3.29275C8.67191 2.92301 8.37091 2.62201 8.00117 2.62046Z" }));
|
|
3
|
+
export {
|
|
4
|
+
l as S,
|
|
5
|
+
C as a
|
|
6
|
+
};
|
package/dist/popover.js
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { jsxs as f, Fragment as S, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as j, useState as C, useCallback as L } from "react";
|
|
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
|
+
import { c as Y } from "./bind-06a7ff84.js";
|
|
5
|
+
const Z = "_popover_n3nff_1", $ = "_title_n3nff_28", O = {
|
|
6
|
+
"popover-wrapper": "_popover-wrapper_n3nff_1",
|
|
7
|
+
popover: Z,
|
|
8
|
+
title: $
|
|
9
|
+
}, r = Y.bind(O), d = 16, g = 8, tt = ["top", "right", "bottom", "left"], et = [
|
|
10
|
+
"right",
|
|
11
|
+
"right-start",
|
|
12
|
+
"right-end",
|
|
13
|
+
"left",
|
|
14
|
+
"left-start",
|
|
15
|
+
"left-end"
|
|
16
|
+
], ot = [
|
|
17
|
+
"top",
|
|
18
|
+
"top-start",
|
|
19
|
+
"top-end",
|
|
20
|
+
"right",
|
|
21
|
+
"right-start",
|
|
22
|
+
"right-end",
|
|
23
|
+
"bottom",
|
|
24
|
+
"bottom-start",
|
|
25
|
+
"bottom-end",
|
|
26
|
+
"left",
|
|
27
|
+
"left-start",
|
|
28
|
+
"left-end"
|
|
29
|
+
], it = ({
|
|
30
|
+
className: h,
|
|
31
|
+
content: u,
|
|
32
|
+
children: v,
|
|
33
|
+
placement: _ = "bottom",
|
|
34
|
+
fallbackPlacements: b = ot,
|
|
35
|
+
title: i,
|
|
36
|
+
arrowOffset: o = 16,
|
|
37
|
+
safeZone: w = 4,
|
|
38
|
+
arrowColor: x = "white",
|
|
39
|
+
dataAutomationId: A,
|
|
40
|
+
isOpened: F,
|
|
41
|
+
setIsOpened: s,
|
|
42
|
+
isCentered: a = !0
|
|
43
|
+
}) => {
|
|
44
|
+
const c = j(null), [R, N] = C(!1), p = s ? F : R, P = (t) => {
|
|
45
|
+
s ? s(t) : N(t);
|
|
46
|
+
}, k = L(
|
|
47
|
+
(t, l) => a ? ((et.includes(l) ? t.reference.height : t.reference.width) - d) / 2 - o : -o,
|
|
48
|
+
[o, a]
|
|
49
|
+
), { placement: E, refs: m, floatingStyles: I, context: e } = M({
|
|
50
|
+
open: p,
|
|
51
|
+
onOpenChange: P,
|
|
52
|
+
placement: _,
|
|
53
|
+
middleware: [
|
|
54
|
+
U(({ rects: t, placement: l }) => ({
|
|
55
|
+
mainAxis: w + g,
|
|
56
|
+
alignmentAxis: k(t, l)
|
|
57
|
+
})),
|
|
58
|
+
W({
|
|
59
|
+
fallbackAxisSideDirection: "start",
|
|
60
|
+
fallbackPlacements: b
|
|
61
|
+
}),
|
|
62
|
+
q({
|
|
63
|
+
element: c
|
|
64
|
+
})
|
|
65
|
+
],
|
|
66
|
+
whileElementsMounted: z
|
|
67
|
+
}), T = B(e), y = J(e), D = K(e), { getReferenceProps: G, getFloatingProps: H } = Q([T, y, D]);
|
|
68
|
+
return /* @__PURE__ */ f(S, { children: [
|
|
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
|
+
"div",
|
|
72
|
+
{
|
|
73
|
+
className: r("popover", h),
|
|
74
|
+
"data-automation-id": A,
|
|
75
|
+
ref: m.setFloating,
|
|
76
|
+
style: I,
|
|
77
|
+
...H,
|
|
78
|
+
children: [
|
|
79
|
+
/* @__PURE__ */ n(
|
|
80
|
+
X,
|
|
81
|
+
{
|
|
82
|
+
ref: c,
|
|
83
|
+
context: e,
|
|
84
|
+
width: d,
|
|
85
|
+
height: g,
|
|
86
|
+
fill: x,
|
|
87
|
+
staticOffset: tt.includes(E) ? null : o
|
|
88
|
+
}
|
|
89
|
+
),
|
|
90
|
+
i && /* @__PURE__ */ n("div", { className: r("title"), children: i }),
|
|
91
|
+
u
|
|
92
|
+
]
|
|
93
|
+
}
|
|
94
|
+
) })
|
|
95
|
+
] });
|
|
96
|
+
};
|
|
97
|
+
export {
|
|
98
|
+
it as Popover
|
|
99
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
const l = (t) => /* @__PURE__ */ e.createElement("svg", { width: 13, height: 12, viewBox: "0 0 13 12", fill: "#A2AAB5", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ e.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M0 12L2 12L2 2.38498e-08L1.90798e-07 0L0 12ZM13 1L5 6L13 11L13 1Z" })), a = (t) => /* @__PURE__ */ e.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "#A2AAB5", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ e.createElement("path", { d: "M12 13L4 8L12 3L12 13Z" }));
|
|
3
|
+
export {
|
|
4
|
+
l as S,
|
|
5
|
+
a
|
|
6
|
+
};
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { jsxs as h, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as g, useId as k } from "react";
|
|
3
|
+
import { c as p } from "./bind-06a7ff84.js";
|
|
4
|
+
import { K as o } from "./keyCodes-f63c0e11.js";
|
|
5
|
+
const y = "_disabled_1fetm_9", E = "_toggler_1fetm_15", x = "_checked_1fetm_21", C = "_input_1fetm_28", D = {
|
|
6
|
+
"radio-button": "_radio-button_1fetm_1",
|
|
7
|
+
disabled: y,
|
|
8
|
+
"children-container": "_children-container_1fetm_12",
|
|
9
|
+
toggler: E,
|
|
10
|
+
checked: x,
|
|
11
|
+
input: C
|
|
12
|
+
}, a = p.bind(D), j = ({
|
|
13
|
+
option: e,
|
|
14
|
+
value: u,
|
|
15
|
+
onChange: b,
|
|
16
|
+
onFocus: K,
|
|
17
|
+
onBlur: N,
|
|
18
|
+
className: _,
|
|
19
|
+
...m
|
|
20
|
+
}) => {
|
|
21
|
+
const d = g(null), l = k(), s = String(e.value) === String(u), f = (c) => {
|
|
22
|
+
var n, i;
|
|
23
|
+
const { keyCode: r } = c;
|
|
24
|
+
if (r === o.SPACE_KEY_CODE) {
|
|
25
|
+
c.preventDefault(), (n = d.current) == null || n.click();
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
r === o.ENTER_KEY_CODE && (c.preventDefault(), (i = d.current) == null || i.click());
|
|
29
|
+
};
|
|
30
|
+
return (
|
|
31
|
+
// eslint-disable-next-line
|
|
32
|
+
/* @__PURE__ */ h(
|
|
33
|
+
"label",
|
|
34
|
+
{
|
|
35
|
+
id: l,
|
|
36
|
+
className: a(_, "radio-button", {
|
|
37
|
+
disabled: e.disabled
|
|
38
|
+
}),
|
|
39
|
+
tabIndex: e.disabled ? -1 : 0,
|
|
40
|
+
onKeyDown: e.disabled ? void 0 : f,
|
|
41
|
+
children: [
|
|
42
|
+
/* @__PURE__ */ t(
|
|
43
|
+
"input",
|
|
44
|
+
{
|
|
45
|
+
tabIndex: -1,
|
|
46
|
+
ref: d,
|
|
47
|
+
type: "radio",
|
|
48
|
+
className: a("input"),
|
|
49
|
+
disabled: e.disabled,
|
|
50
|
+
onChange: b,
|
|
51
|
+
value: e.value,
|
|
52
|
+
checked: s,
|
|
53
|
+
...m
|
|
54
|
+
}
|
|
55
|
+
),
|
|
56
|
+
/* @__PURE__ */ t(
|
|
57
|
+
"span",
|
|
58
|
+
{
|
|
59
|
+
role: "radio",
|
|
60
|
+
"aria-labelledby": l,
|
|
61
|
+
"aria-checked": s,
|
|
62
|
+
className: a("toggler", {
|
|
63
|
+
disabled: e.disabled,
|
|
64
|
+
checked: s
|
|
65
|
+
})
|
|
66
|
+
}
|
|
67
|
+
),
|
|
68
|
+
/* @__PURE__ */ t("span", { className: a("children-container"), children: e.label })
|
|
69
|
+
]
|
|
70
|
+
}
|
|
71
|
+
)
|
|
72
|
+
);
|
|
73
|
+
};
|
|
74
|
+
export {
|
|
75
|
+
j as R
|
|
76
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { R as r } from "./radio-62546efa.js";
|
|
2
2
|
import "react/jsx-runtime";
|
|
3
|
-
import "./bind-06a7ff84.js";
|
|
4
|
-
import "./clear-4963efcd.js";
|
|
5
3
|
import "react";
|
|
4
|
+
import "./bind-06a7ff84.js";
|
|
5
|
+
import "./keyCodes-f63c0e11.js";
|
|
6
6
|
export {
|
|
7
|
-
r as
|
|
7
|
+
r as Radio,
|
|
8
8
|
r as default
|
|
9
9
|
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { c as p } from "./bind-06a7ff84.js";
|
|
3
|
+
const r = "_spinner_qn4ih_8", a = "_spin_qn4ih_1", e = {
|
|
4
|
+
"spin-loader": "_spin-loader_qn4ih_1",
|
|
5
|
+
spinner: r,
|
|
6
|
+
spin: a,
|
|
7
|
+
"color-topaz": "_color-topaz_qn4ih_20"
|
|
8
|
+
}, i = p.bind(e), _ = ({ color: s = "topaz", className: o }) => /* @__PURE__ */ n("div", { className: i("spin-loader", o), children: /* @__PURE__ */ n("div", { className: i("spinner", { [`color-${s}`]: s }) }) });
|
|
9
|
+
export {
|
|
10
|
+
_ as S
|
|
11
|
+
};
|