@reportportal/ui-kit 0.0.1-alpha.81 → 0.0.1-alpha.83
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-97d9e587.js +66 -0
- package/dist/button.js +1 -1
- package/dist/{checkbox-aa91985d.js → checkbox-1f5db4c8.js} +24 -24
- package/dist/checkbox.js +1 -1
- 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/{datePicker-27b11ae9.js → datePicker-9a576d19.js} +2 -2
- package/dist/datePicker.js +6 -6
- package/dist/{dropdown-9427f821.js → dropdown-329da205.js} +1 -1
- package/dist/dropdown.js +2 -2
- package/dist/{fieldText-a61890cd.js → fieldText-635e0db4.js} +1 -1
- package/dist/fieldText.js +2 -2
- package/dist/index.js +7 -7
- package/dist/modal.js +1 -1
- package/dist/{pagination-0e7eebc6.js → pagination-bfb31cf4.js} +54 -52
- package/dist/pagination.js +3 -3
- package/dist/selection.js +39 -0
- package/dist/style.css +1 -1
- package/dist/table-5a30dad9.js +142 -0
- package/dist/table.js +2 -2
- package/package.json +1 -1
- package/dist/button-e0bd064d.js +0 -66
- package/dist/table-20aa2cdf.js +0 -142
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { jsxs as m, jsx as w } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as g } from "react";
|
|
3
|
+
import { c as p } from "./bind-06a7ff84.js";
|
|
4
|
+
const b = "_button_j5f2i_1", l = "_primary_j5f2i_18", x = "_disabled_j5f2i_23", u = "_ghost_j5f2i_38", y = "_danger_j5f2i_59", N = "_text_j5f2i_79", B = "_icon_j5f2i_180", $ = {
|
|
5
|
+
button: b,
|
|
6
|
+
primary: l,
|
|
7
|
+
disabled: x,
|
|
8
|
+
ghost: u,
|
|
9
|
+
danger: y,
|
|
10
|
+
text: N,
|
|
11
|
+
"ghost-danger": "_ghost-danger_j5f2i_108",
|
|
12
|
+
"text-danger": "_text-danger_j5f2i_128",
|
|
13
|
+
"width-min-width": "_width-min-width_j5f2i_162",
|
|
14
|
+
"width-content": "_width-content_j5f2i_166",
|
|
15
|
+
"width-wide-content": "_width-wide-content_j5f2i_170",
|
|
16
|
+
"width-parent": "_width-parent_j5f2i_175",
|
|
17
|
+
icon: B,
|
|
18
|
+
"icon-start": "_icon-start_j5f2i_186",
|
|
19
|
+
"icon-end": "_icon-end_j5f2i_190"
|
|
20
|
+
}, o = p.bind($), v = g(
|
|
21
|
+
({
|
|
22
|
+
variant: s = "primary",
|
|
23
|
+
icon: t,
|
|
24
|
+
iconPlace: i = "start",
|
|
25
|
+
adjustWidthOn: n = "min-width",
|
|
26
|
+
type: e = "button",
|
|
27
|
+
children: r,
|
|
28
|
+
disabled: _ = !1,
|
|
29
|
+
onClick: c,
|
|
30
|
+
title: d,
|
|
31
|
+
className: a,
|
|
32
|
+
...f
|
|
33
|
+
}, h) => {
|
|
34
|
+
const j = o("button", s, a, {
|
|
35
|
+
disabled: _,
|
|
36
|
+
[`width-${n}`]: n
|
|
37
|
+
});
|
|
38
|
+
return /* @__PURE__ */ m(
|
|
39
|
+
"button",
|
|
40
|
+
{
|
|
41
|
+
ref: h,
|
|
42
|
+
type: e,
|
|
43
|
+
disabled: _,
|
|
44
|
+
className: j,
|
|
45
|
+
onClick: c,
|
|
46
|
+
title: d,
|
|
47
|
+
...f,
|
|
48
|
+
children: [
|
|
49
|
+
t && /* @__PURE__ */ w(
|
|
50
|
+
"i",
|
|
51
|
+
{
|
|
52
|
+
className: o("icon", {
|
|
53
|
+
[`icon-${i}`]: i
|
|
54
|
+
}),
|
|
55
|
+
children: t
|
|
56
|
+
}
|
|
57
|
+
),
|
|
58
|
+
r
|
|
59
|
+
]
|
|
60
|
+
}
|
|
61
|
+
);
|
|
62
|
+
}
|
|
63
|
+
);
|
|
64
|
+
export {
|
|
65
|
+
v as B
|
|
66
|
+
};
|
package/dist/button.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as m, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { c as f } from "./bind-06a7ff84.js";
|
|
3
|
-
import { useRef as y, useId as
|
|
4
|
-
import { K as
|
|
5
|
-
const
|
|
6
|
-
checkbox:
|
|
7
|
-
disabled:
|
|
8
|
-
input:
|
|
9
|
-
control:
|
|
10
|
-
"partially-checked": "_partially-
|
|
11
|
-
children:
|
|
12
|
-
}, e = f.bind(
|
|
3
|
+
import { useRef as y, useId as w } from "react";
|
|
4
|
+
import { K as x } from "./keyCodes-f63c0e11.js";
|
|
5
|
+
const C = "_checkbox_1xwtn_1", E = "_disabled_1xwtn_11", D = "_input_1xwtn_16", K = "_control_1xwtn_23", N = "_children_1xwtn_155", I = {
|
|
6
|
+
checkbox: C,
|
|
7
|
+
disabled: E,
|
|
8
|
+
input: D,
|
|
9
|
+
control: K,
|
|
10
|
+
"partially-checked": "_partially-checked_1xwtn_78",
|
|
11
|
+
children: N
|
|
12
|
+
}, e = f.bind(I), A = ({
|
|
13
13
|
children: s,
|
|
14
14
|
disabled: c = !1,
|
|
15
15
|
onChange: d,
|
|
@@ -17,18 +17,18 @@ const E = "_checkbox_1tbt5_1", D = "_disabled_1tbt5_11", K = "_input_1tbt5_16",
|
|
|
17
17
|
value: r,
|
|
18
18
|
partiallyChecked: k,
|
|
19
19
|
title: l,
|
|
20
|
-
...
|
|
20
|
+
...b
|
|
21
21
|
}) => {
|
|
22
|
-
const
|
|
23
|
-
var _,
|
|
22
|
+
const n = y(null), a = w(), u = (o) => {
|
|
23
|
+
var _, p;
|
|
24
24
|
const { keyCode: i } = o;
|
|
25
|
-
if (i ===
|
|
26
|
-
o.preventDefault(), (_ =
|
|
25
|
+
if (i === x.SPACE_KEY_CODE) {
|
|
26
|
+
o.preventDefault(), (_ = n.current) == null || _.click();
|
|
27
27
|
return;
|
|
28
28
|
}
|
|
29
|
-
i ===
|
|
29
|
+
i === x.ENTER_KEY_CODE && (o.preventDefault(), (p = n.current) == null || p.click());
|
|
30
30
|
};
|
|
31
|
-
return /* @__PURE__ */
|
|
31
|
+
return /* @__PURE__ */ m(
|
|
32
32
|
"label",
|
|
33
33
|
{
|
|
34
34
|
id: a,
|
|
@@ -37,22 +37,22 @@ const E = "_checkbox_1tbt5_1", D = "_disabled_1tbt5_11", K = "_input_1tbt5_16",
|
|
|
37
37
|
}),
|
|
38
38
|
title: l,
|
|
39
39
|
children: [
|
|
40
|
-
/* @__PURE__ */
|
|
40
|
+
/* @__PURE__ */ t(
|
|
41
41
|
"input",
|
|
42
42
|
{
|
|
43
|
-
ref:
|
|
43
|
+
ref: n,
|
|
44
44
|
tabIndex: 0,
|
|
45
45
|
type: "checkbox",
|
|
46
|
-
onKeyDown:
|
|
46
|
+
onKeyDown: u,
|
|
47
47
|
className: e("input", { "partially-checked": k }),
|
|
48
48
|
disabled: c,
|
|
49
49
|
onChange: d,
|
|
50
50
|
checked: r,
|
|
51
51
|
title: l,
|
|
52
|
-
...
|
|
52
|
+
...b
|
|
53
53
|
}
|
|
54
54
|
),
|
|
55
|
-
/* @__PURE__ */
|
|
55
|
+
/* @__PURE__ */ t(
|
|
56
56
|
"span",
|
|
57
57
|
{
|
|
58
58
|
"aria-labelledby": a,
|
|
@@ -63,7 +63,7 @@ const E = "_checkbox_1tbt5_1", D = "_disabled_1tbt5_11", K = "_input_1tbt5_16",
|
|
|
63
63
|
})
|
|
64
64
|
}
|
|
65
65
|
),
|
|
66
|
-
s && /* @__PURE__ */
|
|
66
|
+
s && /* @__PURE__ */ t("span", { className: e("children", { disabled: c }), children: s })
|
|
67
67
|
]
|
|
68
68
|
}
|
|
69
69
|
);
|
package/dist/checkbox.js
CHANGED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ClearSelection } from './types';
|
|
2
|
+
|
|
3
|
+
export interface SelectionProps {
|
|
4
|
+
selectedCount: number;
|
|
5
|
+
onClearSelection: ClearSelection;
|
|
6
|
+
captions?: {
|
|
7
|
+
selected?: string;
|
|
8
|
+
buttonCaption?: string;
|
|
9
|
+
};
|
|
10
|
+
icon?: React.ReactNode;
|
|
11
|
+
}
|
|
12
|
+
export declare const Selection: ({ selectedCount, onClearSelection, captions, icon, }: SelectionProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type ClearSelection = VoidFunction;
|
|
@@ -2,9 +2,9 @@ import { jsxs as x, Fragment as U, jsx as t } from "react/jsx-runtime";
|
|
|
2
2
|
import $ from "react-datepicker/dist/es/index.js";
|
|
3
3
|
import { c as R } from "./bind-06a7ff84.js";
|
|
4
4
|
import { useMemo as P, useRef as B } from "react";
|
|
5
|
-
import { F as D } from "./fieldText-
|
|
5
|
+
import { F as D } from "./fieldText-635e0db4.js";
|
|
6
6
|
import { a as E, S as j } from "./calendarArrow-3e1339ea.js";
|
|
7
|
-
import { D as T } from "./dropdown-
|
|
7
|
+
import { D as T } from "./dropdown-329da205.js";
|
|
8
8
|
import { registerLocale as G } from "react-datepicker";
|
|
9
9
|
const pe = (r, s) => {
|
|
10
10
|
G(r, s);
|
package/dist/datePicker.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { D as t } from "./datePicker-
|
|
2
|
-
import { r as v } from "./datePicker-
|
|
1
|
+
import { D as t } from "./datePicker-9a576d19.js";
|
|
2
|
+
import { r as v } from "./datePicker-9a576d19.js";
|
|
3
3
|
import "react/jsx-runtime";
|
|
4
4
|
import "react-datepicker/dist/es/index.js";
|
|
5
5
|
import "./bind-06a7ff84.js";
|
|
6
6
|
import "react";
|
|
7
|
-
import "./fieldText-
|
|
7
|
+
import "./fieldText-635e0db4.js";
|
|
8
8
|
import "./openEye-7b9cf080.js";
|
|
9
|
-
import "./button-
|
|
9
|
+
import "./button-97d9e587.js";
|
|
10
10
|
import "./spinLoader-c4a53718.js";
|
|
11
11
|
import "./maxValueDisplay-9be01a75.js";
|
|
12
12
|
import "./fieldLabel.js";
|
|
13
13
|
import "./calendarArrow-3e1339ea.js";
|
|
14
|
-
import "./dropdown-
|
|
14
|
+
import "./dropdown-329da205.js";
|
|
15
15
|
import "@floating-ui/react-dom";
|
|
16
16
|
import "downshift";
|
|
17
17
|
import "rc-scrollbars";
|
|
@@ -19,7 +19,7 @@ import "./useOnClickOutside-c332f7d3.js";
|
|
|
19
19
|
import "./keyCodes-f63c0e11.js";
|
|
20
20
|
import "./baseIconButton-251479f7.js";
|
|
21
21
|
import "./dropdown-0260bb66.js";
|
|
22
|
-
import "./checkbox-
|
|
22
|
+
import "./checkbox-1f5db4c8.js";
|
|
23
23
|
import "react-datepicker";
|
|
24
24
|
export {
|
|
25
25
|
t as DatePicker,
|
|
@@ -9,7 +9,7 @@ import { K as p } from "./keyCodes-f63c0e11.js";
|
|
|
9
9
|
import { B as ye } from "./baseIconButton-251479f7.js";
|
|
10
10
|
import { S as be } from "./dropdown-0260bb66.js";
|
|
11
11
|
import { FieldLabel as Ce } from "./fieldLabel.js";
|
|
12
|
-
import { C as Oe } from "./checkbox-
|
|
12
|
+
import { C as Oe } from "./checkbox-1f5db4c8.js";
|
|
13
13
|
const ke = "_disabled_1etj7_12", Ne = "_hidden_1etj7_16", De = "_hover_1etj7_22", Ee = "_selected_1etj7_34", we = {
|
|
14
14
|
"dropdown-option": "_dropdown-option_1etj7_1",
|
|
15
15
|
disabled: ke,
|
package/dist/dropdown.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as r } from "./dropdown-
|
|
1
|
+
import { D as r } from "./dropdown-329da205.js";
|
|
2
2
|
import "react/jsx-runtime";
|
|
3
3
|
import "react";
|
|
4
4
|
import "./bind-06a7ff84.js";
|
|
@@ -10,7 +10,7 @@ import "./keyCodes-f63c0e11.js";
|
|
|
10
10
|
import "./baseIconButton-251479f7.js";
|
|
11
11
|
import "./dropdown-0260bb66.js";
|
|
12
12
|
import "./fieldLabel.js";
|
|
13
|
-
import "./checkbox-
|
|
13
|
+
import "./checkbox-1f5db4c8.js";
|
|
14
14
|
export {
|
|
15
15
|
r as Dropdown,
|
|
16
16
|
r as default
|
|
@@ -2,7 +2,7 @@ import { jsx as e, jsxs as o, Fragment as v } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as W, useRef as X, useId as Y, useState as E } from "react";
|
|
3
3
|
import { c as Z } from "./bind-06a7ff84.js";
|
|
4
4
|
import { b as q, a as ee, S as ne } from "./openEye-7b9cf080.js";
|
|
5
|
-
import { B as te } from "./button-
|
|
5
|
+
import { B as te } from "./button-97d9e587.js";
|
|
6
6
|
import { S as se } from "./spinLoader-c4a53718.js";
|
|
7
7
|
import { M as oe } from "./maxValueDisplay-9be01a75.js";
|
|
8
8
|
import { FieldLabel as ae } from "./fieldLabel.js";
|
package/dist/fieldText.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { F as o } from "./fieldText-
|
|
1
|
+
import { F as o } from "./fieldText-635e0db4.js";
|
|
2
2
|
import "react/jsx-runtime";
|
|
3
3
|
import "react";
|
|
4
4
|
import "./bind-06a7ff84.js";
|
|
5
5
|
import "./openEye-7b9cf080.js";
|
|
6
|
-
import "./button-
|
|
6
|
+
import "./button-97d9e587.js";
|
|
7
7
|
import "./spinLoader-c4a53718.js";
|
|
8
8
|
import "./maxValueDisplay-9be01a75.js";
|
|
9
9
|
import "./fieldLabel.js";
|
package/dist/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { B as u } from "./button-
|
|
1
|
+
import { B as u } from "./button-97d9e587.js";
|
|
2
2
|
import { B as C } from "./baseIconButton-251479f7.js";
|
|
3
|
-
import { C as g } from "./checkbox-
|
|
3
|
+
import { C as g } from "./checkbox-1f5db4c8.js";
|
|
4
4
|
import { S as y } from "./systemMessage-924fdaa6.js";
|
|
5
|
-
import { F as b } from "./fieldText-
|
|
5
|
+
import { F as b } from "./fieldText-635e0db4.js";
|
|
6
6
|
import { T as B } from "./themeProvider-46c2be7b.js";
|
|
7
7
|
import { Modal as v } from "./modal.js";
|
|
8
|
-
import { D as M } from "./dropdown-
|
|
8
|
+
import { D as M } from "./dropdown-329da205.js";
|
|
9
9
|
import { T as E } from "./toggle-304107fa.js";
|
|
10
10
|
import { F as L } from "./fieldNumber-2542b311.js";
|
|
11
11
|
import { B as N } from "./bubblesLoader-a7e709d4.js";
|
|
@@ -14,9 +14,9 @@ import { F as J } from "./fieldTextFlex-9e616f66.js";
|
|
|
14
14
|
import { R as j } from "./radio-62546efa.js";
|
|
15
15
|
import { Tooltip as G } from "./tooltip.js";
|
|
16
16
|
import { Popover as Q } from "./popover.js";
|
|
17
|
-
import { P as X } from "./pagination-
|
|
18
|
-
import { T as Z } from "./table-
|
|
19
|
-
import { D as $ } from "./datePicker-
|
|
17
|
+
import { P as X } from "./pagination-bfb31cf4.js";
|
|
18
|
+
import { T as Z } from "./table-5a30dad9.js";
|
|
19
|
+
import { D as $ } from "./datePicker-9a576d19.js";
|
|
20
20
|
import "react-datepicker";
|
|
21
21
|
import { SystemAlert as ro } from "./systemAlert.js";
|
|
22
22
|
import { AddCsvIcon as no, AddImageIcon as to, AddJarIcon as ao, BreadcrumbsTreeIcon as co, CheckmarkIcon as po, ChevronDownDropdownIcon as io, ChevronRightBreadcrumbsIcon as mo, CopyIcon as Io, DeleteIcon as so, DragAndDropIcon as xo, DragNDropIcon as fo, DurationIcon as lo, EditIcon as So, ExportIcon as uo, ExternalLinkIcon as Po, FilterFilledIcon as Co, FilterOutlineIcon as Do, FlagIcon as go, HideIcon as Fo, MaximizeIcon as yo, MeatballMenuIcon as To, MoveToFolderIcon as bo, PriorityBlockerIcon as ho, PriorityCriticalIcon as Bo, PriorityHighIcon as wo, PriorityLowIcon as vo, PriorityMediumIcon as Ao, PriorityUnspecifiedIcon as Mo, RefreshIcon as ko, RerunIcon as Eo, SearchIcon as Ro, SortIcon as Lo, StatusSuccessIcon as Ho, WarningIcon as No } from "./icons.js";
|
package/dist/modal.js
CHANGED
|
@@ -5,7 +5,7 @@ import { AnimatePresence as P, motion as B } from "framer-motion";
|
|
|
5
5
|
import { c as u } 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 O } from "./button-
|
|
8
|
+
import { B as O } from "./button-97d9e587.js";
|
|
9
9
|
import { B as X } from "./baseIconButton-251479f7.js";
|
|
10
10
|
import { S as J } from "./close-4d480ef7.js";
|
|
11
11
|
const Q = () => {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { jsxs as p, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { c as
|
|
2
|
+
import { c as _ } from "./bind-06a7ff84.js";
|
|
3
3
|
import { useState as b } from "react";
|
|
4
|
-
import { Popover as
|
|
5
|
-
import { B as x } from "./button-
|
|
6
|
-
import { F as
|
|
4
|
+
import { Popover as I } from "./popover.js";
|
|
5
|
+
import { B as x } from "./button-97d9e587.js";
|
|
6
|
+
import { F as j } from "./fieldText-635e0db4.js";
|
|
7
7
|
import { B as h } from "./baseIconButton-251479f7.js";
|
|
8
|
-
import { S as
|
|
9
|
-
import { Tooltip as
|
|
10
|
-
const
|
|
8
|
+
import { S as z, a as T } from "./prevPage-87faf576.js";
|
|
9
|
+
import { Tooltip as A } from "./tooltip.js";
|
|
10
|
+
const B = {
|
|
11
11
|
"item-counter": "_item-counter_4g6do_1"
|
|
12
|
-
},
|
|
12
|
+
}, W = _.bind(B), P = ({
|
|
13
13
|
activePage: o,
|
|
14
14
|
pageSize: n,
|
|
15
15
|
totalItems: s,
|
|
@@ -17,15 +17,15 @@ const P = {
|
|
|
17
17
|
itemsText: a
|
|
18
18
|
}) => {
|
|
19
19
|
const c = o * n, i = c - n;
|
|
20
|
-
return /* @__PURE__ */ p("div", { className:
|
|
20
|
+
return /* @__PURE__ */ p("div", { className: W("item-counter"), children: [
|
|
21
21
|
`${i + 1} - ${c < s ? c : s}`,
|
|
22
22
|
` ${r} ${s} ${a}`
|
|
23
23
|
] });
|
|
24
|
-
},
|
|
25
|
-
"size-selector": "_size-
|
|
26
|
-
"size-option": "_size-
|
|
27
|
-
selected:
|
|
28
|
-
}, C =
|
|
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
29
|
currentSize: o,
|
|
30
30
|
options: n,
|
|
31
31
|
onClickOption: s
|
|
@@ -39,10 +39,11 @@ const P = {
|
|
|
39
39
|
children: r
|
|
40
40
|
},
|
|
41
41
|
r
|
|
42
|
-
)) }),
|
|
43
|
-
"page-size-control": "_page-size-
|
|
44
|
-
"size-
|
|
45
|
-
|
|
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 = ({
|
|
46
47
|
size: o,
|
|
47
48
|
sizeOptions: n,
|
|
48
49
|
perPageText: s,
|
|
@@ -51,15 +52,16 @@ const P = {
|
|
|
51
52
|
const [a, c] = b(!1), i = (e) => {
|
|
52
53
|
r(e), c(!1);
|
|
53
54
|
};
|
|
54
|
-
return /* @__PURE__ */ p("div", { className:
|
|
55
|
+
return /* @__PURE__ */ p("div", { className: y("page-size-control"), children: [
|
|
55
56
|
/* @__PURE__ */ t(
|
|
56
|
-
|
|
57
|
+
I,
|
|
57
58
|
{
|
|
58
|
-
content: /* @__PURE__ */ t(
|
|
59
|
+
content: /* @__PURE__ */ t(V, { options: n, onClickOption: i, currentSize: o }),
|
|
59
60
|
placement: "top",
|
|
60
61
|
isOpened: a,
|
|
61
62
|
setIsOpened: c,
|
|
62
|
-
|
|
63
|
+
className: y("page-size-options"),
|
|
64
|
+
children: /* @__PURE__ */ t(x, { className: y("size-selector-button"), variant: "text", adjustWidthOn: "content", children: o })
|
|
63
65
|
}
|
|
64
66
|
),
|
|
65
67
|
` ${s}`
|
|
@@ -68,21 +70,21 @@ const P = {
|
|
|
68
70
|
"page-selector": "_page-selector_rtho4_1",
|
|
69
71
|
"field-wrapper": "_field-wrapper_rtho4_6",
|
|
70
72
|
"apply-button": "_apply-button_rtho4_10"
|
|
71
|
-
}, N =
|
|
73
|
+
}, N = _.bind(G), H = ({
|
|
72
74
|
totalPages: o,
|
|
73
75
|
pageText: n,
|
|
74
76
|
goActionText: s,
|
|
75
77
|
selectPage: r
|
|
76
78
|
}) => {
|
|
77
79
|
const [a, c] = b(""), [i, e] = b(!0), d = (u) => {
|
|
78
|
-
const
|
|
79
|
-
e(k), c(
|
|
80
|
+
const v = u.target.value.replace(/\D/g, ""), $ = Number(v), k = $ > 0 && $ <= o;
|
|
81
|
+
e(k), c(v);
|
|
80
82
|
}, l = () => {
|
|
81
83
|
r(Number(a));
|
|
82
84
|
};
|
|
83
85
|
return /* @__PURE__ */ p("div", { className: N("page-selector"), children: [
|
|
84
86
|
/* @__PURE__ */ t("div", { className: N("field-wrapper"), children: /* @__PURE__ */ t(
|
|
85
|
-
|
|
87
|
+
j,
|
|
86
88
|
{
|
|
87
89
|
onChange: d,
|
|
88
90
|
value: a,
|
|
@@ -99,7 +101,7 @@ const P = {
|
|
|
99
101
|
"active-page": "_active-page_1gl9o_1",
|
|
100
102
|
"page-selector": "_page-selector_1gl9o_10",
|
|
101
103
|
"page-selector-button": "_page-selector-button_1gl9o_14"
|
|
102
|
-
}, f =
|
|
104
|
+
}, f = _.bind(L), R = ({
|
|
103
105
|
activePage: o,
|
|
104
106
|
totalPages: n,
|
|
105
107
|
pageText: s,
|
|
@@ -113,7 +115,7 @@ const P = {
|
|
|
113
115
|
return /* @__PURE__ */ p("div", { className: f("active-page"), children: [
|
|
114
116
|
`${s} `,
|
|
115
117
|
/* @__PURE__ */ t(
|
|
116
|
-
|
|
118
|
+
I,
|
|
117
119
|
{
|
|
118
120
|
content: /* @__PURE__ */ t(
|
|
119
121
|
H,
|
|
@@ -129,7 +131,7 @@ const P = {
|
|
|
129
131
|
isOpened: i,
|
|
130
132
|
setIsOpened: e,
|
|
131
133
|
className: f("page-selector"),
|
|
132
|
-
children: /* @__PURE__ */ t(x, { className: f("page-selector-button"), variant: "text", children: o })
|
|
134
|
+
children: /* @__PURE__ */ t(x, { className: f("page-selector-button"), variant: "text", adjustWidthOn: "content", children: o })
|
|
133
135
|
}
|
|
134
136
|
)
|
|
135
137
|
] });
|
|
@@ -142,13 +144,13 @@ const P = {
|
|
|
142
144
|
tooltip: Q,
|
|
143
145
|
"tooltip-text": "_tooltip-text_y74hy_48",
|
|
144
146
|
"page-number": "_page-number_y74hy_52"
|
|
145
|
-
},
|
|
147
|
+
}, g = _.bind(U), S = 13, w = 260, X = ({
|
|
146
148
|
totalPages: o,
|
|
147
149
|
activePage: n,
|
|
148
150
|
changePage: s,
|
|
149
151
|
captions: r
|
|
150
152
|
}) => {
|
|
151
|
-
const a =
|
|
153
|
+
const a = w / o, c = Math.min(Math.ceil(w / S), o), i = Math.max(S, a), e = [];
|
|
152
154
|
for (let l = 1; l <= o; l++)
|
|
153
155
|
e.push({
|
|
154
156
|
end: l * a,
|
|
@@ -159,25 +161,25 @@ const P = {
|
|
|
159
161
|
for (l.pages.from = e[0].pageNumber; i * (u + 1) > e[0].end; )
|
|
160
162
|
e.shift();
|
|
161
163
|
l.pages.to = e[0].pageNumber, e.shift();
|
|
162
|
-
}), /* @__PURE__ */ t("div", { className:
|
|
164
|
+
}), /* @__PURE__ */ t("div", { className: g("bar"), children: d.map((l, u) => /* @__PURE__ */ t(
|
|
163
165
|
"div",
|
|
164
166
|
{
|
|
165
|
-
className:
|
|
167
|
+
className: g("section-with-tooltip"),
|
|
166
168
|
style: { width: i },
|
|
167
169
|
onClick: () => l.pages.from && s(l.pages.from),
|
|
168
170
|
children: /* @__PURE__ */ t(
|
|
169
|
-
|
|
171
|
+
A,
|
|
170
172
|
{
|
|
171
|
-
content: /* @__PURE__ */ p("div", { className:
|
|
172
|
-
/* @__PURE__ */ t("div", { className:
|
|
173
|
-
/* @__PURE__ */ t("div", { className:
|
|
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 })
|
|
174
176
|
] }),
|
|
175
|
-
wrapperClassName:
|
|
177
|
+
wrapperClassName: g("tooltip-wrapper"),
|
|
176
178
|
placement: "top",
|
|
177
179
|
children: /* @__PURE__ */ t(
|
|
178
180
|
"div",
|
|
179
181
|
{
|
|
180
|
-
className:
|
|
182
|
+
className: g("section", {
|
|
181
183
|
selected: l.pages.from && l.pages.to && l.pages.from <= n && n <= l.pages.to
|
|
182
184
|
})
|
|
183
185
|
}
|
|
@@ -187,12 +189,12 @@ const P = {
|
|
|
187
189
|
},
|
|
188
190
|
u
|
|
189
191
|
)) });
|
|
190
|
-
}, Y = "
|
|
191
|
-
"page-navigator": "_page-
|
|
192
|
-
"page-buttons": "_page-
|
|
193
|
-
"page-button": "_page-
|
|
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",
|
|
194
196
|
next: Y
|
|
195
|
-
}, m =
|
|
197
|
+
}, m = _.bind(Z), ee = ({
|
|
196
198
|
activePage: o,
|
|
197
199
|
changePage: n,
|
|
198
200
|
totalPages: s,
|
|
@@ -215,7 +217,7 @@ const P = {
|
|
|
215
217
|
className: m("page-button"),
|
|
216
218
|
onClick: a,
|
|
217
219
|
disabled: o === 1,
|
|
218
|
-
children: /* @__PURE__ */ t(
|
|
220
|
+
children: /* @__PURE__ */ t(z, {})
|
|
219
221
|
}
|
|
220
222
|
),
|
|
221
223
|
/* @__PURE__ */ t(
|
|
@@ -253,7 +255,7 @@ const P = {
|
|
|
253
255
|
className: m("page-button", "next"),
|
|
254
256
|
onClick: e,
|
|
255
257
|
disabled: o === s,
|
|
256
|
-
children: /* @__PURE__ */ t(
|
|
258
|
+
children: /* @__PURE__ */ t(z, {})
|
|
257
259
|
}
|
|
258
260
|
)
|
|
259
261
|
] })
|
|
@@ -261,12 +263,12 @@ const P = {
|
|
|
261
263
|
}, te = {
|
|
262
264
|
"page-controls": "_page-controls_thyf8_1",
|
|
263
265
|
"total-pages": "_total-pages_thyf8_8"
|
|
264
|
-
},
|
|
266
|
+
}, O = _.bind(te), oe = ({
|
|
265
267
|
activePage: o,
|
|
266
268
|
changePage: n,
|
|
267
269
|
captions: s,
|
|
268
270
|
totalPages: r
|
|
269
|
-
}) => /* @__PURE__ */ p("div", { className:
|
|
271
|
+
}) => /* @__PURE__ */ p("div", { className: O("page-controls"), children: [
|
|
270
272
|
/* @__PURE__ */ t(
|
|
271
273
|
R,
|
|
272
274
|
{
|
|
@@ -287,13 +289,13 @@ const P = {
|
|
|
287
289
|
captions: { goTo: s.goTo }
|
|
288
290
|
}
|
|
289
291
|
),
|
|
290
|
-
/* @__PURE__ */ p("span", { className:
|
|
292
|
+
/* @__PURE__ */ p("span", { className: O("total-pages"), children: [
|
|
291
293
|
`${s.of} `,
|
|
292
294
|
r
|
|
293
295
|
] })
|
|
294
296
|
] }), se = "_pagination_w2r3n_1", ne = {
|
|
295
297
|
pagination: se
|
|
296
|
-
}, re =
|
|
298
|
+
}, re = _.bind(ne), ue = ({
|
|
297
299
|
activePage: o,
|
|
298
300
|
totalPages: n,
|
|
299
301
|
pageSize: s,
|
|
@@ -306,7 +308,7 @@ const P = {
|
|
|
306
308
|
const d = (e == null ? void 0 : e.of) || "of", l = (e == null ? void 0 : e.page) || "Page";
|
|
307
309
|
return /* @__PURE__ */ p("div", { className: re("pagination"), children: [
|
|
308
310
|
/* @__PURE__ */ t(
|
|
309
|
-
|
|
311
|
+
P,
|
|
310
312
|
{
|
|
311
313
|
activePage: o,
|
|
312
314
|
pageSize: s,
|
|
@@ -330,7 +332,7 @@ const P = {
|
|
|
330
332
|
}
|
|
331
333
|
),
|
|
332
334
|
/* @__PURE__ */ t(
|
|
333
|
-
|
|
335
|
+
F,
|
|
334
336
|
{
|
|
335
337
|
size: s,
|
|
336
338
|
sizeOptions: a,
|
package/dist/pagination.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { P as t } from "./pagination-
|
|
1
|
+
import { P as t } from "./pagination-bfb31cf4.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-97d9e587.js";
|
|
8
|
+
import "./fieldText-635e0db4.js";
|
|
9
9
|
import "./openEye-7b9cf080.js";
|
|
10
10
|
import "./spinLoader-c4a53718.js";
|
|
11
11
|
import "./maxValueDisplay-9be01a75.js";
|
|
@@ -0,0 +1,39 @@
|
|
|
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 Selection,
|
|
38
|
+
C as default
|
|
39
|
+
};
|