@reportportal/ui-kit 0.0.1-alpha.9 → 0.0.1-alpha.90
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/README.md +70 -12
- package/dist/arrowUp-4a5caee7.js +6 -0
- package/dist/baseIconButton-251479f7.js +25 -0
- package/dist/baseIconButton.js +1 -1
- package/dist/breadcrumbs-8e5ca8d7.js +183 -0
- package/dist/breadcrumbs.js +11 -0
- package/dist/button-97d9e587.js +66 -0
- package/dist/button.js +1 -1
- package/dist/calendarArrow-44c7e60e.js +5 -0
- package/dist/checkbox-ed6cc375.js +73 -0
- package/dist/checkbox.js +1 -1
- package/dist/close-4d480ef7.js +5 -0
- package/dist/common/hooks/useOnClickOutside.d.ts +1 -0
- package/dist/common/types.d.ts +3 -0
- package/dist/components/{icons/baseIconButton → baseIconButton}/baseIconButton.d.ts +1 -0
- package/dist/components/{icons/baseIconButton → baseIconButton}/index.d.ts +1 -0
- package/dist/components/breadcrumbs/breadcrumb/breadcrumb.d.ts +10 -0
- package/dist/components/breadcrumbs/breadcrumb/index.d.ts +1 -0
- package/dist/components/breadcrumbs/breadcrumbs.d.ts +3 -0
- package/dist/components/breadcrumbs/breadcrumbsProvider/breadcrumbsProvider.d.ts +13 -0
- package/dist/components/breadcrumbs/breadcrumbsProvider/hooks.d.ts +3 -0
- package/dist/components/breadcrumbs/breadcrumbsProvider/index.d.ts +1 -0
- package/dist/components/breadcrumbs/hiddenBreadcrumbs/hiddenBreadcrumbs.d.ts +6 -0
- package/dist/components/breadcrumbs/hiddenBreadcrumbs/index.d.ts +2 -0
- package/dist/components/breadcrumbs/index.d.ts +5 -0
- package/dist/components/breadcrumbs/tree/index.d.ts +1 -0
- package/dist/components/breadcrumbs/tree/tree.d.ts +7 -0
- package/dist/components/breadcrumbs/types.d.ts +24 -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 +5 -4
- package/dist/components/button/index.d.ts +1 -0
- package/dist/components/checkbox/checkbox.d.ts +3 -1
- 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 +1 -0
- package/dist/components/dropdown/dropdown.d.ts +13 -4
- 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 -3
- package/dist/components/fieldNumber/index.d.ts +1 -0
- package/dist/components/fieldText/fieldText.d.ts +12 -4
- package/dist/components/fieldText/index.d.ts +1 -0
- package/dist/components/fieldTextFlex/fieldTextFlex.d.ts +4 -2
- package/dist/components/fieldTextFlex/index.d.ts +1 -0
- package/dist/components/icons/index.d.ts +46 -7
- package/dist/components/index.d.ts +7 -0
- 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 +5 -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 +1 -0
- package/dist/components/pagination/itemsCounter/itemCounter.d.ts +1 -0
- package/dist/components/pagination/pageControls/activePage/activePage.d.ts +1 -0
- package/dist/components/pagination/pageControls/activePage/pageSelector/pageSelector.d.ts +1 -0
- package/dist/components/pagination/pageControls/pageControls.d.ts +1 -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/pageNavigator.d.ts +4 -0
- package/dist/components/pagination/pageSizeControl/pageSizeControl.d.ts +1 -0
- package/dist/components/pagination/pageSizeControl/sizeSelector/sizeSelector.d.ts +1 -0
- package/dist/components/pagination/pagination.d.ts +1 -0
- package/dist/components/popover/index.d.ts +4 -1
- package/dist/components/popover/popover.d.ts +3 -2
- package/dist/components/radio/index.d.ts +1 -0
- package/dist/components/radio/radio.d.ts +1 -0
- package/dist/components/radio/radioGroup.d.ts +1 -0
- package/dist/components/selection/index.d.ts +5 -0
- package/dist/components/selection/selection.d.ts +12 -0
- package/dist/components/selection/types.d.ts +1 -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 +1 -0
- package/dist/components/table/table.d.ts +1 -0
- package/dist/components/table/types.d.ts +13 -7
- package/dist/components/table/utils.d.ts +5 -1
- package/dist/components/themeProvider/index.d.ts +1 -0
- package/dist/components/themeProvider/themeProvider.d.ts +1 -0
- package/dist/components/toggle/index.d.ts +1 -0
- package/dist/components/toggle/toggle.d.ts +1 -0
- package/dist/components/tooltip/tooltip.d.ts +12 -2
- package/dist/datePicker-f8747600.js +196 -0
- package/dist/datePicker.js +28 -0
- package/dist/dropdown-0260bb66.js +5 -0
- package/dist/dropdown-b26b8fd8.js +282 -0
- package/dist/dropdown.js +5 -2
- package/dist/fieldLabel.js +18 -0
- package/dist/fieldNumber-c9113a7f.js +135 -0
- package/dist/fieldNumber.js +4 -2
- package/dist/fieldText-35421470.js +166 -0
- package/dist/fieldText.js +6 -2
- package/dist/fieldTextFlex-8afaab31.js +78 -0
- package/dist/fieldTextFlex.js +3 -1
- package/dist/fonts/OpenSans/OpenSans-Bold.ttf +0 -0
- package/dist/fonts/OpenSans/OpenSans-Medium.ttf +0 -0
- package/dist/icons.js +64 -0
- package/dist/index.js +110 -44
- package/dist/maxValueDisplay-9be01a75.js +13 -0
- package/dist/maxValueDisplay.js +6 -0
- package/dist/modal.js +144 -14
- package/dist/openEye-7b9cf080.js +7 -0
- package/dist/pagination-b001d791.js +347 -0
- package/dist/pagination.js +11 -4
- package/dist/plus-0929dda4.js +6 -0
- package/dist/popover.js +61 -57
- package/dist/prevPage-87faf576.js +6 -0
- package/dist/radio-62546efa.js +76 -0
- package/dist/radio.js +1 -1
- package/dist/selection-9124d029.js +38 -0
- package/dist/selection.js +10 -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 +63 -0
- package/dist/systemMessage-924fdaa6.js +30 -0
- package/dist/systemMessage.js +1 -1
- package/dist/table-920fdad9.js +142 -0
- package/dist/table.js +11 -0
- package/dist/toggle-304107fa.js +59 -0
- package/dist/toggle.js +1 -1
- package/dist/tooltip.js +87 -56
- package/dist/tree-c3dd3d45.js +6 -0
- package/package.json +28 -16
- package/dist/baseIconButton-7bc53dec.js +0 -25
- package/dist/button-7fb84fde.js +0 -62
- package/dist/checkbox-4143390f.js +0 -70
- package/dist/dropdown-e07f2a71.js +0 -212
- package/dist/fieldNumber-46fe79b9.js +0 -127
- package/dist/fieldText-d80b29ba.js +0 -102
- package/dist/fieldTextFlex-5bddf46a.js +0 -67
- package/dist/index-bb9b62ef.js +0 -131
- package/dist/pagination-a36bc786.js +0 -274
- package/dist/radio-fd49a09c.js +0 -76
- package/dist/systemMessage-1ced6079.js +0 -30
- package/dist/toggle-707ecb74.js +0 -67
|
@@ -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-35421470.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
|
+
};
|
package/dist/pagination.js
CHANGED
|
@@ -1,12 +1,19 @@
|
|
|
1
|
-
import { P as t } from "./pagination-
|
|
1
|
+
import { P as t } from "./pagination-b001d791.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-
|
|
9
|
-
import "./
|
|
7
|
+
import "./button-97d9e587.js";
|
|
8
|
+
import "./fieldText-35421470.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";
|
|
10
17
|
export {
|
|
11
18
|
t as Pagination,
|
|
12
19
|
t as default
|
|
@@ -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
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { useFloating as
|
|
4
|
-
import { c as
|
|
5
|
-
const
|
|
6
|
-
"popover-wrapper": "_popover-
|
|
7
|
-
popover:
|
|
8
|
-
title:
|
|
9
|
-
},
|
|
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
10
|
"right",
|
|
11
11
|
"right-start",
|
|
12
12
|
"right-end",
|
|
13
13
|
"left",
|
|
14
14
|
"left-start",
|
|
15
15
|
"left-end"
|
|
16
|
-
],
|
|
16
|
+
], ot = [
|
|
17
17
|
"top",
|
|
18
18
|
"top-start",
|
|
19
19
|
"top-end",
|
|
@@ -26,70 +26,74 @@ const Q = "_popover_16ogt_1", V = "_title_16ogt_28", X = {
|
|
|
26
26
|
"left",
|
|
27
27
|
"left-start",
|
|
28
28
|
"left-end"
|
|
29
|
-
],
|
|
30
|
-
className:
|
|
31
|
-
content:
|
|
32
|
-
children:
|
|
33
|
-
placement:
|
|
34
|
-
fallbackPlacements:
|
|
35
|
-
title:
|
|
36
|
-
arrowOffset:
|
|
37
|
-
safeZone:
|
|
38
|
-
arrowColor:
|
|
39
|
-
dataAutomationId:
|
|
40
|
-
isOpened:
|
|
41
|
-
setIsOpened: s
|
|
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
|
|
42
43
|
}) => {
|
|
43
|
-
const
|
|
44
|
-
s ? s(
|
|
45
|
-
},
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
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: _,
|
|
49
53
|
middleware: [
|
|
50
|
-
|
|
51
|
-
mainAxis:
|
|
52
|
-
alignmentAxis: (
|
|
54
|
+
U(({ rects: t, placement: l }) => ({
|
|
55
|
+
mainAxis: w + g,
|
|
56
|
+
alignmentAxis: k(t, l)
|
|
53
57
|
})),
|
|
54
|
-
|
|
58
|
+
W({
|
|
55
59
|
fallbackAxisSideDirection: "start",
|
|
56
|
-
fallbackPlacements:
|
|
60
|
+
fallbackPlacements: b
|
|
57
61
|
}),
|
|
58
|
-
|
|
59
|
-
element:
|
|
62
|
+
q({
|
|
63
|
+
element: c
|
|
60
64
|
})
|
|
61
65
|
],
|
|
62
|
-
whileElementsMounted:
|
|
63
|
-
}),
|
|
64
|
-
return /* @__PURE__ */
|
|
65
|
-
/* @__PURE__ */
|
|
66
|
-
|
|
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(
|
|
67
71
|
"div",
|
|
68
72
|
{
|
|
69
|
-
className:
|
|
70
|
-
"data-automation-id":
|
|
71
|
-
ref:
|
|
72
|
-
style:
|
|
73
|
-
...
|
|
73
|
+
className: r("popover", h),
|
|
74
|
+
"data-automation-id": A,
|
|
75
|
+
ref: m.setFloating,
|
|
76
|
+
style: I,
|
|
77
|
+
...H,
|
|
74
78
|
children: [
|
|
75
|
-
/* @__PURE__ */
|
|
76
|
-
|
|
79
|
+
/* @__PURE__ */ n(
|
|
80
|
+
X,
|
|
77
81
|
{
|
|
78
|
-
ref:
|
|
79
|
-
context:
|
|
80
|
-
width:
|
|
81
|
-
height:
|
|
82
|
-
fill:
|
|
83
|
-
staticOffset:
|
|
82
|
+
ref: c,
|
|
83
|
+
context: e,
|
|
84
|
+
width: d,
|
|
85
|
+
height: g,
|
|
86
|
+
fill: x,
|
|
87
|
+
staticOffset: tt.includes(E) ? null : o
|
|
84
88
|
}
|
|
85
89
|
),
|
|
86
|
-
|
|
87
|
-
|
|
90
|
+
i && /* @__PURE__ */ n("div", { className: r("title"), children: i }),
|
|
91
|
+
u
|
|
88
92
|
]
|
|
89
93
|
}
|
|
90
94
|
) })
|
|
91
95
|
] });
|
|
92
96
|
};
|
|
93
97
|
export {
|
|
94
|
-
|
|
98
|
+
it as Popover
|
|
95
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
|
+
};
|
package/dist/radio.js
CHANGED
|
@@ -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
|
+
};
|