@reportportal/ui-kit 0.0.1-alpha.141 → 0.0.1-alpha.143
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/adaptiveTagList.js +189 -0
- package/dist/attachedFile.js +9 -0
- package/dist/autocompletes.js +779 -0
- package/dist/baseIconButton-251479f7.js +25 -0
- package/dist/baseIconButton.js +7 -0
- package/dist/bind-06a7ff84.js +41 -0
- package/dist/breadcrumbs-8e5ca8d7.js +183 -0
- package/dist/breadcrumbs.js +12 -0
- package/dist/bubblesLoader-f3ffa240.js +28 -0
- package/dist/bubblesLoader.js +7 -0
- package/dist/button-97d9e587.js +66 -0
- package/dist/button.js +8 -0
- package/dist/calendarArrow-44c7e60e.js +5 -0
- package/dist/checkbox-ed6cc375.js +73 -0
- package/dist/checkbox.js +9 -0
- package/dist/chevronDownDropdown-66f5b1af.js +7 -0
- package/dist/clear-53660571.js +5 -0
- package/dist/close-4d480ef7.js +5 -0
- package/dist/datePicker-f8e0df24.js +194 -0
- package/dist/datePicker.js +35 -0
- package/dist/dropdown-0260bb66.js +5 -0
- package/dist/dropdown-893c692c.js +634 -0
- package/dist/dropdown.js +27 -0
- package/dist/fieldLabel.js +18 -0
- package/dist/fieldNumber-d1b5a7a1.js +140 -0
- package/dist/fieldNumber.js +13 -0
- package/dist/fieldText-1749da7a.js +167 -0
- package/dist/fieldText.js +14 -0
- package/dist/fieldTextFlex-2f51c173.js +80 -0
- package/dist/fieldTextFlex.js +10 -0
- package/dist/fileDropArea.js +325 -0
- package/dist/filterOutline-819b4b0d.js +6 -0
- package/dist/filtersButton.js +25 -0
- package/dist/floatingUi-41f8c7b5.js +29 -0
- package/dist/icons.js +85 -0
- package/dist/index-1a874a8b.js +110 -0
- package/dist/index.js +165 -0
- package/dist/isEmpty-ccacb5ff.js +38 -0
- package/dist/keyCodes-f63c0e11.js +4 -0
- package/dist/maxValueDisplay-9be01a75.js +13 -0
- package/dist/maxValueDisplay.js +6 -0
- package/dist/minus-2857540f.js +5 -0
- package/dist/modal.js +194 -0
- package/dist/openEye-950159cb.js +6 -0
- package/dist/pagination-a3dee614.js +347 -0
- package/dist/pagination.js +22 -0
- package/dist/plus-199fb2a8.js +5 -0
- package/dist/popover.js +80 -0
- package/dist/prevPage-87faf576.js +6 -0
- package/dist/radio-62546efa.js +76 -0
- package/dist/radio.js +9 -0
- package/dist/selection-9124d029.js +38 -0
- package/dist/selection.js +10 -0
- package/dist/sidePanel.js +88 -0
- package/dist/sortable.js +160 -0
- package/dist/spinLoader-c4a53718.js +11 -0
- package/dist/spinLoader.js +7 -0
- package/dist/style.css +1 -1
- package/dist/success-8fd8bd2c.js +7 -0
- package/dist/systemAlert.js +69 -0
- package/dist/systemMessage-924fdaa6.js +30 -0
- package/dist/systemMessage.js +7 -0
- package/dist/table-c172f35e.js +504 -0
- package/dist/table.js +15 -0
- package/dist/themeProvider-46c2be7b.js +23 -0
- package/dist/themeProvider.js +7 -0
- package/dist/toggle-304107fa.js +59 -0
- package/dist/toggle.js +9 -0
- package/dist/tooltip.js +103 -0
- package/dist/tree-c3dd3d45.js +6 -0
- package/dist/xls-995781cc.js +11 -0
- package/package.json +8 -6
- package/dist/adaptiveTagList.cjs +0 -1
- package/dist/attachedFile.cjs +0 -1
- package/dist/autocompletes.cjs +0 -1
- package/dist/baseIconButton-263e74dc.js +0 -1
- package/dist/baseIconButton.cjs +0 -1
- package/dist/bind-29baac98.js +0 -5
- package/dist/breadcrumbs-a11e7e56.js +0 -1
- package/dist/breadcrumbs.cjs +0 -1
- package/dist/bubblesLoader-98fdf0af.js +0 -1
- package/dist/bubblesLoader.cjs +0 -1
- package/dist/button-8456d133.js +0 -1
- package/dist/button.cjs +0 -1
- package/dist/calendarArrow-6c6d9356.js +0 -1
- package/dist/checkbox-d4cc648d.js +0 -1
- package/dist/checkbox.cjs +0 -1
- package/dist/chevronDownDropdown-6196562c.js +0 -1
- package/dist/clear-07e1c174.js +0 -1
- package/dist/close-82e2e274.js +0 -1
- package/dist/datePicker-245e845d.js +0 -1
- package/dist/datePicker.cjs +0 -1
- package/dist/dropdown-b56964c6.js +0 -1
- package/dist/dropdown-fa4cd19c.js +0 -1
- package/dist/dropdown.cjs +0 -1
- package/dist/fieldLabel.cjs +0 -1
- package/dist/fieldNumber-9fe044df.js +0 -1
- package/dist/fieldNumber.cjs +0 -1
- package/dist/fieldText-2af0d7db.js +0 -1
- package/dist/fieldText.cjs +0 -1
- package/dist/fieldTextFlex-c26b190d.js +0 -1
- package/dist/fieldTextFlex.cjs +0 -1
- package/dist/fileDropArea.cjs +0 -1
- package/dist/filterOutline-5f3f8591.js +0 -1
- package/dist/filtersButton.cjs +0 -1
- package/dist/floatingUi-97183bba.js +0 -1
- package/dist/icons.cjs +0 -1
- package/dist/index-4c0424bf.js +0 -1
- package/dist/index.cjs +0 -1
- package/dist/isEmpty-fe949e63.js +0 -1
- package/dist/keyCodes-b188a920.js +0 -1
- package/dist/maxValueDisplay-68f1f114.js +0 -1
- package/dist/maxValueDisplay.cjs +0 -1
- package/dist/minus-0debd2c6.js +0 -1
- package/dist/modal.cjs +0 -1
- package/dist/openEye-737c72d6.js +0 -1
- package/dist/pagination-fc5189f7.js +0 -1
- package/dist/pagination.cjs +0 -1
- package/dist/plus-b12abe9f.js +0 -1
- package/dist/popover.cjs +0 -1
- package/dist/prevPage-063b5d63.js +0 -1
- package/dist/radio-aba4677b.js +0 -1
- package/dist/radio.cjs +0 -1
- package/dist/selection-49b927d0.js +0 -1
- package/dist/selection.cjs +0 -1
- package/dist/sidePanel.cjs +0 -1
- package/dist/sortable.cjs +0 -1
- package/dist/spinLoader-9ebd776a.js +0 -1
- package/dist/spinLoader.cjs +0 -1
- package/dist/success-823e5446.js +0 -1
- package/dist/systemAlert.cjs +0 -1
- package/dist/systemMessage-1ae2764d.js +0 -1
- package/dist/systemMessage.cjs +0 -1
- package/dist/table-cd9f0ff3.js +0 -1
- package/dist/table.cjs +0 -1
- package/dist/themeProvider-4dfafca5.js +0 -1
- package/dist/themeProvider.cjs +0 -1
- package/dist/toggle-359b70d4.js +0 -1
- package/dist/toggle.cjs +0 -1
- package/dist/tooltip.cjs +0 -1
- package/dist/tree-4610ac42.js +0 -1
- package/dist/xls-3ed747b0.js +0 -1
|
@@ -0,0 +1,347 @@
|
|
|
1
|
+
import { jsxs as p, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { c as _ } from "./bind-06a7ff84.js";
|
|
3
|
+
import { useState as b } from "react";
|
|
4
|
+
import { Popover as I } from "./popover.js";
|
|
5
|
+
import { B as x } from "./button-97d9e587.js";
|
|
6
|
+
import { F as j } from "./fieldText-1749da7a.js";
|
|
7
|
+
import { B as h } from "./baseIconButton-251479f7.js";
|
|
8
|
+
import { S as z, a as T } from "./prevPage-87faf576.js";
|
|
9
|
+
import { Tooltip as A } from "./tooltip.js";
|
|
10
|
+
const B = {
|
|
11
|
+
"item-counter": "_item-counter_4g6do_1"
|
|
12
|
+
}, W = _.bind(B), P = ({
|
|
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: W("item-counter"), children: [
|
|
21
|
+
`${i + 1} - ${c < s ? c : s}`,
|
|
22
|
+
` ${r} ${s} ${a}`
|
|
23
|
+
] });
|
|
24
|
+
}, E = "_selected_cjnvy_23", M = {
|
|
25
|
+
"size-selector": "_size-selector_cjnvy_1",
|
|
26
|
+
"size-option": "_size-option_cjnvy_6",
|
|
27
|
+
selected: E
|
|
28
|
+
}, C = _.bind(M), V = ({
|
|
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
|
+
)) }), D = {
|
|
43
|
+
"page-size-control": "_page-size-control_suy7z_1",
|
|
44
|
+
"page-size-options": "_page-size-options_suy7z_9",
|
|
45
|
+
"size-selector-button": "_size-selector-button_suy7z_13"
|
|
46
|
+
}, y = _.bind(D), F = ({
|
|
47
|
+
size: o,
|
|
48
|
+
sizeOptions: n,
|
|
49
|
+
perPageText: s,
|
|
50
|
+
changeSize: r
|
|
51
|
+
}) => {
|
|
52
|
+
const [a, c] = b(!1), i = (e) => {
|
|
53
|
+
r(e), c(!1);
|
|
54
|
+
};
|
|
55
|
+
return /* @__PURE__ */ p("div", { className: y("page-size-control"), children: [
|
|
56
|
+
/* @__PURE__ */ t(
|
|
57
|
+
I,
|
|
58
|
+
{
|
|
59
|
+
content: /* @__PURE__ */ t(V, { options: n, onClickOption: i, currentSize: o }),
|
|
60
|
+
placement: "top",
|
|
61
|
+
isOpened: a,
|
|
62
|
+
setIsOpened: c,
|
|
63
|
+
className: y("page-size-options"),
|
|
64
|
+
children: /* @__PURE__ */ t(x, { className: y("size-selector-button"), variant: "text", adjustWidthOn: "content", children: o })
|
|
65
|
+
}
|
|
66
|
+
),
|
|
67
|
+
` ${s}`
|
|
68
|
+
] });
|
|
69
|
+
}, G = {
|
|
70
|
+
"page-selector": "_page-selector_rtho4_1",
|
|
71
|
+
"field-wrapper": "_field-wrapper_rtho4_6",
|
|
72
|
+
"apply-button": "_apply-button_rtho4_10"
|
|
73
|
+
}, N = _.bind(G), H = ({
|
|
74
|
+
totalPages: o,
|
|
75
|
+
pageText: n,
|
|
76
|
+
goActionText: s,
|
|
77
|
+
selectPage: r
|
|
78
|
+
}) => {
|
|
79
|
+
const [a, c] = b(""), [i, e] = b(!0), d = (u) => {
|
|
80
|
+
const v = u.target.value.replace(/\D/g, ""), $ = Number(v), k = $ > 0 && $ <= o;
|
|
81
|
+
e(k), c(v);
|
|
82
|
+
}, l = () => {
|
|
83
|
+
r(Number(a));
|
|
84
|
+
};
|
|
85
|
+
return /* @__PURE__ */ p("div", { className: N("page-selector"), children: [
|
|
86
|
+
/* @__PURE__ */ t("div", { className: N("field-wrapper"), children: /* @__PURE__ */ t(
|
|
87
|
+
j,
|
|
88
|
+
{
|
|
89
|
+
onChange: d,
|
|
90
|
+
value: a,
|
|
91
|
+
placeholder: n,
|
|
92
|
+
error: i ? "" : "Error",
|
|
93
|
+
touched: !0,
|
|
94
|
+
defaultWidth: !1,
|
|
95
|
+
displayError: !1
|
|
96
|
+
}
|
|
97
|
+
) }),
|
|
98
|
+
/* @__PURE__ */ t(x, { onClick: l, disabled: !a || !i, className: N("apply-button"), children: s })
|
|
99
|
+
] });
|
|
100
|
+
}, L = {
|
|
101
|
+
"active-page": "_active-page_1gl9o_1",
|
|
102
|
+
"page-selector": "_page-selector_1gl9o_10",
|
|
103
|
+
"page-selector-button": "_page-selector-button_1gl9o_14"
|
|
104
|
+
}, f = _.bind(L), R = ({
|
|
105
|
+
activePage: o,
|
|
106
|
+
totalPages: n,
|
|
107
|
+
pageText: s,
|
|
108
|
+
goToText: r,
|
|
109
|
+
goActionText: a,
|
|
110
|
+
changePage: c
|
|
111
|
+
}) => {
|
|
112
|
+
const [i, e] = b(!1), d = (l) => {
|
|
113
|
+
c(l), e(!1);
|
|
114
|
+
};
|
|
115
|
+
return /* @__PURE__ */ p("div", { className: f("active-page"), children: [
|
|
116
|
+
`${s} `,
|
|
117
|
+
/* @__PURE__ */ t(
|
|
118
|
+
I,
|
|
119
|
+
{
|
|
120
|
+
content: /* @__PURE__ */ t(
|
|
121
|
+
H,
|
|
122
|
+
{
|
|
123
|
+
pageText: s,
|
|
124
|
+
goActionText: a,
|
|
125
|
+
selectPage: d,
|
|
126
|
+
totalPages: n
|
|
127
|
+
}
|
|
128
|
+
),
|
|
129
|
+
title: r,
|
|
130
|
+
placement: "top",
|
|
131
|
+
isOpened: i,
|
|
132
|
+
setIsOpened: e,
|
|
133
|
+
className: f("page-selector"),
|
|
134
|
+
children: /* @__PURE__ */ t(x, { className: f("page-selector-button"), variant: "text", adjustWidthOn: "content", children: o })
|
|
135
|
+
}
|
|
136
|
+
)
|
|
137
|
+
] });
|
|
138
|
+
}, q = "_bar_y74hy_1", J = "_section_y74hy_9", K = "_selected_y74hy_33", Q = "_tooltip_y74hy_37", U = {
|
|
139
|
+
bar: q,
|
|
140
|
+
"section-with-tooltip": "_section-with-tooltip_y74hy_9",
|
|
141
|
+
section: J,
|
|
142
|
+
selected: K,
|
|
143
|
+
"tooltip-wrapper": "_tooltip-wrapper_y74hy_37",
|
|
144
|
+
tooltip: Q,
|
|
145
|
+
"tooltip-text": "_tooltip-text_y74hy_48",
|
|
146
|
+
"page-number": "_page-number_y74hy_52"
|
|
147
|
+
}, g = _.bind(U), S = 13, w = 260, X = ({
|
|
148
|
+
totalPages: o,
|
|
149
|
+
activePage: n,
|
|
150
|
+
changePage: s,
|
|
151
|
+
captions: r
|
|
152
|
+
}) => {
|
|
153
|
+
const a = w / o, c = Math.min(Math.ceil(w / S), o), i = Math.max(S, a), e = [];
|
|
154
|
+
for (let l = 1; l <= o; l++)
|
|
155
|
+
e.push({
|
|
156
|
+
end: l * a,
|
|
157
|
+
pageNumber: l
|
|
158
|
+
});
|
|
159
|
+
const d = Array.from({ length: c }, () => ({ pages: { from: void 0, to: void 0 } }));
|
|
160
|
+
return d.forEach((l, u) => {
|
|
161
|
+
for (l.pages.from = e[0].pageNumber; i * (u + 1) > e[0].end; )
|
|
162
|
+
e.shift();
|
|
163
|
+
l.pages.to = e[0].pageNumber, e.shift();
|
|
164
|
+
}), /* @__PURE__ */ t("div", { className: g("bar"), children: d.map((l, u) => /* @__PURE__ */ t(
|
|
165
|
+
"div",
|
|
166
|
+
{
|
|
167
|
+
className: g("section-with-tooltip"),
|
|
168
|
+
style: { width: i },
|
|
169
|
+
onClick: () => l.pages.from && s(l.pages.from),
|
|
170
|
+
children: /* @__PURE__ */ t(
|
|
171
|
+
A,
|
|
172
|
+
{
|
|
173
|
+
content: /* @__PURE__ */ p("div", { className: g("tooltip"), children: [
|
|
174
|
+
/* @__PURE__ */ t("div", { className: g("tooltip-text"), children: r.goTo }),
|
|
175
|
+
/* @__PURE__ */ t("div", { className: g("page-number"), children: l.pages.from })
|
|
176
|
+
] }),
|
|
177
|
+
wrapperClassName: g("tooltip-wrapper"),
|
|
178
|
+
placement: "top",
|
|
179
|
+
children: /* @__PURE__ */ t(
|
|
180
|
+
"div",
|
|
181
|
+
{
|
|
182
|
+
className: g("section", {
|
|
183
|
+
selected: l.pages.from && l.pages.to && l.pages.from <= n && n <= l.pages.to
|
|
184
|
+
})
|
|
185
|
+
}
|
|
186
|
+
)
|
|
187
|
+
}
|
|
188
|
+
)
|
|
189
|
+
},
|
|
190
|
+
u
|
|
191
|
+
)) });
|
|
192
|
+
}, Y = "_next_pyt8p_21", Z = {
|
|
193
|
+
"page-navigator": "_page-navigator_pyt8p_1",
|
|
194
|
+
"page-buttons": "_page-buttons_pyt8p_7",
|
|
195
|
+
"page-button": "_page-button_pyt8p_7",
|
|
196
|
+
next: Y
|
|
197
|
+
}, m = _.bind(Z), ee = ({
|
|
198
|
+
activePage: o,
|
|
199
|
+
changePage: n,
|
|
200
|
+
totalPages: s,
|
|
201
|
+
captions: r
|
|
202
|
+
}) => {
|
|
203
|
+
const a = () => {
|
|
204
|
+
n(1);
|
|
205
|
+
}, c = () => {
|
|
206
|
+
n(o - 1);
|
|
207
|
+
}, i = () => {
|
|
208
|
+
n(o + 1);
|
|
209
|
+
}, e = () => {
|
|
210
|
+
n(s);
|
|
211
|
+
};
|
|
212
|
+
return /* @__PURE__ */ p("div", { className: m("page-navigator"), children: [
|
|
213
|
+
/* @__PURE__ */ p("div", { className: m("page-buttons"), children: [
|
|
214
|
+
/* @__PURE__ */ t(
|
|
215
|
+
h,
|
|
216
|
+
{
|
|
217
|
+
className: m("page-button"),
|
|
218
|
+
onClick: a,
|
|
219
|
+
disabled: o === 1,
|
|
220
|
+
children: /* @__PURE__ */ t(z, {})
|
|
221
|
+
}
|
|
222
|
+
),
|
|
223
|
+
/* @__PURE__ */ t(
|
|
224
|
+
h,
|
|
225
|
+
{
|
|
226
|
+
className: m("page-button"),
|
|
227
|
+
onClick: c,
|
|
228
|
+
disabled: o === 1,
|
|
229
|
+
children: /* @__PURE__ */ t(T, {})
|
|
230
|
+
}
|
|
231
|
+
)
|
|
232
|
+
] }),
|
|
233
|
+
/* @__PURE__ */ t(
|
|
234
|
+
X,
|
|
235
|
+
{
|
|
236
|
+
totalPages: s,
|
|
237
|
+
activePage: o,
|
|
238
|
+
changePage: n,
|
|
239
|
+
captions: r
|
|
240
|
+
}
|
|
241
|
+
),
|
|
242
|
+
/* @__PURE__ */ p("div", { className: m("page-buttons"), children: [
|
|
243
|
+
/* @__PURE__ */ t(
|
|
244
|
+
h,
|
|
245
|
+
{
|
|
246
|
+
className: m("page-button", "next"),
|
|
247
|
+
onClick: i,
|
|
248
|
+
disabled: o === s,
|
|
249
|
+
children: /* @__PURE__ */ t(T, {})
|
|
250
|
+
}
|
|
251
|
+
),
|
|
252
|
+
/* @__PURE__ */ t(
|
|
253
|
+
h,
|
|
254
|
+
{
|
|
255
|
+
className: m("page-button", "next"),
|
|
256
|
+
onClick: e,
|
|
257
|
+
disabled: o === s,
|
|
258
|
+
children: /* @__PURE__ */ t(z, {})
|
|
259
|
+
}
|
|
260
|
+
)
|
|
261
|
+
] })
|
|
262
|
+
] });
|
|
263
|
+
}, te = {
|
|
264
|
+
"page-controls": "_page-controls_thyf8_1",
|
|
265
|
+
"total-pages": "_total-pages_thyf8_8"
|
|
266
|
+
}, O = _.bind(te), oe = ({
|
|
267
|
+
activePage: o,
|
|
268
|
+
changePage: n,
|
|
269
|
+
captions: s,
|
|
270
|
+
totalPages: r
|
|
271
|
+
}) => /* @__PURE__ */ p("div", { className: O("page-controls"), children: [
|
|
272
|
+
/* @__PURE__ */ t(
|
|
273
|
+
R,
|
|
274
|
+
{
|
|
275
|
+
activePage: o,
|
|
276
|
+
totalPages: r,
|
|
277
|
+
changePage: n,
|
|
278
|
+
pageText: s.page,
|
|
279
|
+
goToText: s.goTo,
|
|
280
|
+
goActionText: s.goAction
|
|
281
|
+
}
|
|
282
|
+
),
|
|
283
|
+
/* @__PURE__ */ t(
|
|
284
|
+
ee,
|
|
285
|
+
{
|
|
286
|
+
changePage: n,
|
|
287
|
+
activePage: o,
|
|
288
|
+
totalPages: r,
|
|
289
|
+
captions: { goTo: s.goTo }
|
|
290
|
+
}
|
|
291
|
+
),
|
|
292
|
+
/* @__PURE__ */ p("span", { className: O("total-pages"), children: [
|
|
293
|
+
`${s.of} `,
|
|
294
|
+
r
|
|
295
|
+
] })
|
|
296
|
+
] }), se = "_pagination_w2r3n_1", ne = {
|
|
297
|
+
pagination: se
|
|
298
|
+
}, re = _.bind(ne), ue = ({
|
|
299
|
+
activePage: o,
|
|
300
|
+
totalPages: n,
|
|
301
|
+
pageSize: s,
|
|
302
|
+
totalItems: r,
|
|
303
|
+
pageSizeOptions: a,
|
|
304
|
+
changePage: c,
|
|
305
|
+
changePageSize: i,
|
|
306
|
+
captions: e
|
|
307
|
+
}) => {
|
|
308
|
+
const d = (e == null ? void 0 : e.of) || "of", l = (e == null ? void 0 : e.page) || "Page";
|
|
309
|
+
return /* @__PURE__ */ p("div", { className: re("pagination"), children: [
|
|
310
|
+
/* @__PURE__ */ t(
|
|
311
|
+
P,
|
|
312
|
+
{
|
|
313
|
+
activePage: o,
|
|
314
|
+
pageSize: s,
|
|
315
|
+
totalItems: r,
|
|
316
|
+
ofText: d,
|
|
317
|
+
itemsText: (e == null ? void 0 : e.items) || "items"
|
|
318
|
+
}
|
|
319
|
+
),
|
|
320
|
+
n > 1 && /* @__PURE__ */ t(
|
|
321
|
+
oe,
|
|
322
|
+
{
|
|
323
|
+
activePage: o,
|
|
324
|
+
totalPages: n,
|
|
325
|
+
changePage: c,
|
|
326
|
+
captions: {
|
|
327
|
+
page: l,
|
|
328
|
+
of: d,
|
|
329
|
+
goTo: (e == null ? void 0 : e.goTo) || "Go to page",
|
|
330
|
+
goAction: (e == null ? void 0 : e.goAction) || "Go"
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
),
|
|
334
|
+
/* @__PURE__ */ t(
|
|
335
|
+
F,
|
|
336
|
+
{
|
|
337
|
+
size: s,
|
|
338
|
+
sizeOptions: a,
|
|
339
|
+
changeSize: i,
|
|
340
|
+
perPageText: (e == null ? void 0 : e.perPage) || "per page"
|
|
341
|
+
}
|
|
342
|
+
)
|
|
343
|
+
] });
|
|
344
|
+
};
|
|
345
|
+
export {
|
|
346
|
+
ue as P
|
|
347
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { P as t } from "./pagination-a3dee614.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 "./floatingUi-41f8c7b5.js";
|
|
8
|
+
import "./button-97d9e587.js";
|
|
9
|
+
import "./fieldText-1749da7a.js";
|
|
10
|
+
import "./clear-53660571.js";
|
|
11
|
+
import "./openEye-950159cb.js";
|
|
12
|
+
import "./baseIconButton-251479f7.js";
|
|
13
|
+
import "./spinLoader-c4a53718.js";
|
|
14
|
+
import "./maxValueDisplay-9be01a75.js";
|
|
15
|
+
import "./fieldLabel.js";
|
|
16
|
+
import "./prevPage-87faf576.js";
|
|
17
|
+
import "./tooltip.js";
|
|
18
|
+
import "react-dom";
|
|
19
|
+
export {
|
|
20
|
+
t as Pagination,
|
|
21
|
+
t as default
|
|
22
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
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: "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
|
+
};
|
package/dist/popover.js
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { jsxs as f, Fragment as G, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as H, useState as O, useCallback as j } from "react";
|
|
3
|
+
import { useFloating as C, offset as L, flip as M, arrow as W, autoUpdate as U, useClick as q, useDismiss as z, useRole as B, useInteractions as J, FloatingFocusManager as K, FloatingArrow as Q } from "@floating-ui/react";
|
|
4
|
+
import { c as V } from "./bind-06a7ff84.js";
|
|
5
|
+
import { g as X, T as g, a as Y, m as Z, b as $, A as ee } from "./floatingUi-41f8c7b5.js";
|
|
6
|
+
const te = "_popover_n3nff_1", se = "_title_n3nff_28", oe = {
|
|
7
|
+
"popover-wrapper": "_popover-wrapper_n3nff_1",
|
|
8
|
+
popover: te,
|
|
9
|
+
title: se
|
|
10
|
+
}, l = V.bind(oe), ce = ({
|
|
11
|
+
className: u,
|
|
12
|
+
content: d,
|
|
13
|
+
children: _,
|
|
14
|
+
placement: v = "bottom",
|
|
15
|
+
fallbackPlacements: A = $,
|
|
16
|
+
title: i,
|
|
17
|
+
arrowOffset: o = ee,
|
|
18
|
+
safeZone: h = 4,
|
|
19
|
+
arrowColor: x = "white",
|
|
20
|
+
dataAutomationId: F,
|
|
21
|
+
isOpened: R,
|
|
22
|
+
setIsOpened: n,
|
|
23
|
+
isCentered: r = !0
|
|
24
|
+
}) => {
|
|
25
|
+
const c = H(null), [w, N] = O(!1), p = n ? R : w, T = (e) => {
|
|
26
|
+
n ? n(e) : N(e);
|
|
27
|
+
}, b = j(
|
|
28
|
+
(e, a) => X(e, a, o, r),
|
|
29
|
+
[o, r]
|
|
30
|
+
), { placement: E, refs: m, floatingStyles: P, context: t } = C({
|
|
31
|
+
open: p,
|
|
32
|
+
onOpenChange: T,
|
|
33
|
+
placement: v,
|
|
34
|
+
middleware: [
|
|
35
|
+
L(({ rects: e, placement: a }) => ({
|
|
36
|
+
mainAxis: h + g,
|
|
37
|
+
alignmentAxis: b(e, a)
|
|
38
|
+
})),
|
|
39
|
+
M({
|
|
40
|
+
fallbackAxisSideDirection: "start",
|
|
41
|
+
fallbackPlacements: A
|
|
42
|
+
}),
|
|
43
|
+
W({
|
|
44
|
+
element: c
|
|
45
|
+
})
|
|
46
|
+
],
|
|
47
|
+
whileElementsMounted: U
|
|
48
|
+
}), k = q(t), I = z(t), S = B(t), { getReferenceProps: y, getFloatingProps: D } = J([k, I, S]);
|
|
49
|
+
return /* @__PURE__ */ f(G, { children: [
|
|
50
|
+
/* @__PURE__ */ s("div", { ref: m.setReference, ...y(), className: l("popover-wrapper"), children: _ }),
|
|
51
|
+
p && /* @__PURE__ */ s(K, { context: t, modal: !1, children: /* @__PURE__ */ f(
|
|
52
|
+
"div",
|
|
53
|
+
{
|
|
54
|
+
className: l("popover", u),
|
|
55
|
+
"data-automation-id": F,
|
|
56
|
+
ref: m.setFloating,
|
|
57
|
+
style: P,
|
|
58
|
+
...D,
|
|
59
|
+
children: [
|
|
60
|
+
/* @__PURE__ */ s(
|
|
61
|
+
Q,
|
|
62
|
+
{
|
|
63
|
+
ref: c,
|
|
64
|
+
context: t,
|
|
65
|
+
width: Y,
|
|
66
|
+
height: g,
|
|
67
|
+
fill: x,
|
|
68
|
+
staticOffset: Z.includes(E) ? null : o
|
|
69
|
+
}
|
|
70
|
+
),
|
|
71
|
+
i && /* @__PURE__ */ s("div", { className: l("title"), children: i }),
|
|
72
|
+
d
|
|
73
|
+
]
|
|
74
|
+
}
|
|
75
|
+
) })
|
|
76
|
+
] });
|
|
77
|
+
};
|
|
78
|
+
export {
|
|
79
|
+
ce as Popover
|
|
80
|
+
};
|
|
@@ -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
|
+
};
|
package/dist/radio.js
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { jsxs as o, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { S as a } from "./close-4d480ef7.js";
|
|
4
|
+
import { c as l } from "./bind-06a7ff84.js";
|
|
5
|
+
import { B as r } from "./button-97d9e587.js";
|
|
6
|
+
const d = "_divider_p4emi_23", p = "_button_p4emi_30", m = {
|
|
7
|
+
"selection-wrapper": "_selection-wrapper_p4emi_1",
|
|
8
|
+
"selected-count-text": "_selected-count-text_p4emi_7",
|
|
9
|
+
"selected-count-caption": "_selected-count-caption_p4emi_16",
|
|
10
|
+
divider: d,
|
|
11
|
+
button: p
|
|
12
|
+
}, t = l.bind(m), _ = { selected: "selected", buttonCaption: "Clear Selection" }, C = ({
|
|
13
|
+
selectedCount: s,
|
|
14
|
+
onClearSelection: n,
|
|
15
|
+
captions: c = _,
|
|
16
|
+
icon: i = /* @__PURE__ */ e(a, {})
|
|
17
|
+
}) => /* @__PURE__ */ o("div", { className: t("selection-wrapper"), children: [
|
|
18
|
+
/* @__PURE__ */ o("p", { children: [
|
|
19
|
+
/* @__PURE__ */ e("span", { className: t("selected-count-text"), children: s }),
|
|
20
|
+
/* @__PURE__ */ e("span", { className: t("selected-count-caption"), children: c.selected })
|
|
21
|
+
] }),
|
|
22
|
+
/* @__PURE__ */ e("div", { className: t("divider") }),
|
|
23
|
+
/* @__PURE__ */ e(
|
|
24
|
+
r,
|
|
25
|
+
{
|
|
26
|
+
icon: i,
|
|
27
|
+
className: t("button"),
|
|
28
|
+
iconPlace: "start",
|
|
29
|
+
variant: "text",
|
|
30
|
+
onClick: n,
|
|
31
|
+
"aria-label": `${c.buttonCaption} - ${s} ${c.selected}`,
|
|
32
|
+
children: c.buttonCaption
|
|
33
|
+
}
|
|
34
|
+
)
|
|
35
|
+
] });
|
|
36
|
+
export {
|
|
37
|
+
C as S
|
|
38
|
+
};
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { jsxs as s, jsx as i, Fragment as p } from "react/jsx-runtime";
|
|
2
|
+
import { useId as N, useEffect as y } from "react";
|
|
3
|
+
import { c as g } from "./bind-06a7ff84.js";
|
|
4
|
+
import { K as E } from "./keyCodes-f63c0e11.js";
|
|
5
|
+
import { S as x } from "./close-4d480ef7.js";
|
|
6
|
+
import { B as k } from "./baseIconButton-251479f7.js";
|
|
7
|
+
const I = "_active_6bj2z_15", K = "_compact_6bj2z_39", S = "_header_6bj2z_35", w = "_title_6bj2z_65", B = "_description_6bj2z_76", D = "_content_6bj2z_85", L = "_footer_6bj2z_92", P = "_divider_6bj2z_98", $ = {
|
|
8
|
+
"side-panel": "_side-panel_6bj2z_1",
|
|
9
|
+
active: I,
|
|
10
|
+
"side-right": "_side-right_6bj2z_19",
|
|
11
|
+
"side-left": "_side-left_6bj2z_27",
|
|
12
|
+
"header-section": "_header-section_6bj2z_35",
|
|
13
|
+
compact: K,
|
|
14
|
+
header: S,
|
|
15
|
+
"header-content": "_header-content_6bj2z_55",
|
|
16
|
+
"close-button": "_close-button_6bj2z_59",
|
|
17
|
+
title: w,
|
|
18
|
+
description: B,
|
|
19
|
+
content: D,
|
|
20
|
+
footer: L,
|
|
21
|
+
divider: P
|
|
22
|
+
}, e = g.bind($), J = ({
|
|
23
|
+
className: h,
|
|
24
|
+
title: c,
|
|
25
|
+
descriptionComponent: r,
|
|
26
|
+
headerComponent: d,
|
|
27
|
+
contentComponent: n,
|
|
28
|
+
footerComponent: o,
|
|
29
|
+
top: _ = 0,
|
|
30
|
+
side: b = "right",
|
|
31
|
+
isOpen: a = !0,
|
|
32
|
+
onClose: t,
|
|
33
|
+
closeButtonAriaLabel: v = "Close panel"
|
|
34
|
+
}) => {
|
|
35
|
+
const l = N(), f = () => {
|
|
36
|
+
t == null || t();
|
|
37
|
+
};
|
|
38
|
+
y(() => {
|
|
39
|
+
if (!a || !t)
|
|
40
|
+
return;
|
|
41
|
+
const m = (z) => {
|
|
42
|
+
const { keyCode: u } = z;
|
|
43
|
+
u === E.ESCAPE_KEY_CODE && t();
|
|
44
|
+
};
|
|
45
|
+
return document.addEventListener("keydown", m, !1), () => {
|
|
46
|
+
document.removeEventListener("keydown", m, !1);
|
|
47
|
+
};
|
|
48
|
+
}, [a, t]);
|
|
49
|
+
const j = !!(d || r);
|
|
50
|
+
return /* @__PURE__ */ s(
|
|
51
|
+
"aside",
|
|
52
|
+
{
|
|
53
|
+
className: e("side-panel", `side-${b}`, { active: a }, h),
|
|
54
|
+
role: "dialog",
|
|
55
|
+
"aria-modal": "true",
|
|
56
|
+
"aria-hidden": !a,
|
|
57
|
+
"aria-labelledby": c ? l : void 0,
|
|
58
|
+
style: { top: _, height: `calc(100vh - ${_}px)` },
|
|
59
|
+
tabIndex: -1,
|
|
60
|
+
children: [
|
|
61
|
+
/* @__PURE__ */ s("div", { className: e("header-section", { compact: !j }), children: [
|
|
62
|
+
(d || c) && /* @__PURE__ */ s("div", { className: e("header"), children: [
|
|
63
|
+
c ? /* @__PURE__ */ i("span", { id: l, className: e("title"), children: c }) : d,
|
|
64
|
+
t && /* @__PURE__ */ i(
|
|
65
|
+
k,
|
|
66
|
+
{
|
|
67
|
+
className: e("close-button"),
|
|
68
|
+
onClick: f,
|
|
69
|
+
"aria-label": v,
|
|
70
|
+
children: /* @__PURE__ */ i(x, {})
|
|
71
|
+
}
|
|
72
|
+
)
|
|
73
|
+
] }),
|
|
74
|
+
r
|
|
75
|
+
] }),
|
|
76
|
+
/* @__PURE__ */ i("div", { className: e("divider") }),
|
|
77
|
+
n && /* @__PURE__ */ i("div", { className: e("content"), children: n }),
|
|
78
|
+
o && /* @__PURE__ */ s(p, { children: [
|
|
79
|
+
/* @__PURE__ */ i("div", { className: e("divider") }),
|
|
80
|
+
/* @__PURE__ */ i("div", { className: e("footer"), children: o })
|
|
81
|
+
] })
|
|
82
|
+
]
|
|
83
|
+
}
|
|
84
|
+
);
|
|
85
|
+
};
|
|
86
|
+
export {
|
|
87
|
+
J as SidePanel
|
|
88
|
+
};
|