@reportportal/ui-kit 0.0.1-alpha.46 → 0.0.1-alpha.48

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.
Files changed (75) hide show
  1. package/dist/arrowUp-4a5caee7.js +6 -0
  2. package/dist/baseIconButton-251479f7.js +25 -0
  3. package/dist/baseIconButton.js +1 -1
  4. package/dist/clear-53660571.js +5 -0
  5. package/dist/close-4b33d7c1.js +5 -0
  6. package/dist/common/types.d.ts +3 -0
  7. package/dist/components/fieldText/fieldText.d.ts +2 -0
  8. package/dist/components/fieldTextFlex/fieldTextFlex.d.ts +1 -0
  9. package/dist/components/icons/index.d.ts +0 -1
  10. package/dist/components/index.d.ts +1 -3
  11. package/dist/components/maxValueDisplay/index.d.ts +3 -0
  12. package/dist/components/maxValueDisplay/maxValueDisplay.d.ts +7 -0
  13. package/dist/components/maxValueDisplay/utils/index.d.ts +1 -0
  14. package/dist/components/maxValueDisplay/utils/isPositiveInteger.d.ts +1 -0
  15. package/dist/components/systemAlert/types.d.ts +1 -0
  16. package/dist/{datePicker-68379fe1.js → datePicker-7aa41281.js} +4 -5
  17. package/dist/datePicker.js +8 -4
  18. package/dist/dropdown-0260bb66.js +5 -0
  19. package/dist/dropdown-6edea86c.js +263 -0
  20. package/dist/dropdown.js +3 -2
  21. package/dist/error-4f493850.js +7 -0
  22. package/dist/fieldNumber-d517a095.js +125 -0
  23. package/dist/fieldNumber.js +3 -2
  24. package/dist/fieldText-404383ce.js +139 -0
  25. package/dist/fieldText.js +4 -2
  26. package/dist/fieldTextFlex-23d6ecce.js +78 -0
  27. package/dist/fieldTextFlex.js +2 -1
  28. package/dist/icons.js +32 -0
  29. package/dist/index.js +73 -114
  30. package/dist/maxValueDisplay-9be01a75.js +13 -0
  31. package/dist/maxValueDisplay.js +6 -0
  32. package/dist/minus-660ea0d6.js +6 -0
  33. package/dist/modal.js +144 -14
  34. package/dist/pagination-86651d50.js +345 -0
  35. package/dist/pagination.js +7 -3
  36. package/dist/prevChapter-ebd5a3a7.js +6 -0
  37. package/dist/spinLoader-c4a53718.js +11 -0
  38. package/dist/spinLoader.js +7 -0
  39. package/dist/style.css +1 -1
  40. package/dist/systemAlert.js +55 -0
  41. package/dist/table-32fc8c70.js +144 -0
  42. package/dist/table.js +2 -2
  43. package/package.json +1 -1
  44. package/dist/baseIconButton-b6adc843.js +0 -25
  45. package/dist/components/dataPicker2/dataPicker2/datePicker.d.ts +0 -24
  46. package/dist/components/dataPicker2/dataPicker2/header/datePickerHeader.d.ts +0 -15
  47. package/dist/components/dataPicker2/dataPicker2/header/index.d.ts +0 -3
  48. package/dist/components/dataPicker2/dataPicker2/index.d.ts +0 -3
  49. package/dist/components/dataPicker2/dataPicker2/utils.d.ts +0 -3
  50. package/dist/components/date2/date2.d.ts +0 -24
  51. package/dist/components/date2/index.d.ts +0 -3
  52. package/dist/components/datePicker1/datePicker.d.ts +0 -24
  53. package/dist/components/datePicker1/header/datePickerHeader.d.ts +0 -15
  54. package/dist/components/datePicker1/header/index.d.ts +0 -3
  55. package/dist/components/datePicker1/index.d.ts +0 -3
  56. package/dist/components/datePicker1/utils.d.ts +0 -3
  57. package/dist/components/reactDatePicker/index.d.ts +0 -3
  58. package/dist/components/reactDatePicker/reactDatePicker.d.ts +0 -2
  59. package/dist/components/reactDatePicker2/index.d.ts +0 -3
  60. package/dist/components/reactDatePicker2/reactDatePicker2.d.ts +0 -2
  61. package/dist/date2-9273411e.js +0 -46
  62. package/dist/date2.js +0 -7
  63. package/dist/datePicker-89394dc8.js +0 -194
  64. package/dist/datePicker1.js +0 -19
  65. package/dist/dropdown-b9c6dc2f.js +0 -264
  66. package/dist/fieldNumber-1f286b40.js +0 -127
  67. package/dist/fieldText-65e4c614.js +0 -134
  68. package/dist/fieldTextFlex-5bddf46a.js +0 -67
  69. package/dist/index-54e3bfc2.js +0 -147
  70. package/dist/pagination-4ae395bd.js +0 -347
  71. package/dist/reactDatePicker2-a31b070e.js +0 -5
  72. package/dist/reactDatePicker2.js +0 -6
  73. package/dist/table-9bf4ddab.js +0 -147
  74. /package/dist/components/{icons/baseIconButton → baseIconButton}/baseIconButton.d.ts +0 -0
  75. /package/dist/components/{icons/baseIconButton → baseIconButton}/index.d.ts +0 -0
package/dist/modal.js CHANGED
@@ -1,16 +1,146 @@
1
- import { M as s, a as n, c as b, b as c } from "./index-54e3bfc2.js";
2
- import "react/jsx-runtime";
3
- import "react";
4
- import "rc-scrollbars";
5
- import "framer-motion";
6
- import "./bind-06a7ff84.js";
7
- import "./useOnClickOutside-c332f7d3.js";
8
- import "./keyCodes-f63c0e11.js";
9
- import "./button-33c88abf.js";
10
- import "./baseIconButton-b6adc843.js";
1
+ import { jsx as e, jsxs as c, Fragment as W } from "react/jsx-runtime";
2
+ import { useState as b, useEffect as g, useRef as j } from "react";
3
+ import { Scrollbars as G } from "rc-scrollbars";
4
+ import { AnimatePresence as K, motion as P } from "framer-motion";
5
+ import { c as u } from "./bind-06a7ff84.js";
6
+ import { u as B } from "./useOnClickOutside-c332f7d3.js";
7
+ import { K as q } from "./keyCodes-f63c0e11.js";
8
+ import { B as N } from "./button-33c88abf.js";
9
+ import { B as Y } from "./baseIconButton-251479f7.js";
10
+ import { S as F } from "./close-4b33d7c1.js";
11
+ const U = () => {
12
+ const [o, n] = b({ width: 0, height: 0 });
13
+ return g(() => {
14
+ const l = () => {
15
+ n({
16
+ width: window.innerWidth,
17
+ height: window.innerHeight
18
+ });
19
+ };
20
+ return window.addEventListener("resize", l), l(), () => window.removeEventListener("resize", l);
21
+ }, []), o;
22
+ }, X = "_scrollable_qziry_12", J = {
23
+ "modal-content": "_modal-content_qziry_1",
24
+ scrollable: X
25
+ }, Q = u.bind(J), O = ({ scrollable: o = !1, children: n }) => /* @__PURE__ */ e("div", { className: Q("modal-content", { scrollable: o }), children: n }), V = {
26
+ "buttons-block": "_buttons-block_1dgm4_1",
27
+ "button-container": "_button-container_1dgm4_5",
28
+ "modal-footer": "_modal-footer_1dgm4_14",
29
+ "with-extra-node": "_with-extra-node_1dgm4_21",
30
+ "size-small": "_size-small_1dgm4_25"
31
+ }, m = u.bind(V), Z = ({
32
+ footerNode: o,
33
+ closeHandler: n,
34
+ okButton: l,
35
+ cancelButton: r,
36
+ size: a
37
+ }) => /* @__PURE__ */ c("div", { className: m("modal-footer", { "with-extra-node": o, [`size-${a}`]: a }), children: [
38
+ o && o,
39
+ /* @__PURE__ */ c("div", { className: m("buttons-block"), children: [
40
+ r && /* @__PURE__ */ e("div", { className: m("button-container"), children: /* @__PURE__ */ e(
41
+ N,
42
+ {
43
+ variant: "ghost",
44
+ adjustWidthOn: a === "small" ? "parent" : "content",
45
+ onClick: n,
46
+ ...r
47
+ }
48
+ ) }),
49
+ l && /* @__PURE__ */ e("div", { className: m("button-container"), children: /* @__PURE__ */ e(N, { adjustWidthOn: a === "small" ? "parent" : "content", ...l }) })
50
+ ] })
51
+ ] }), ee = {
52
+ "modal-header": "_modal-header_68lru_1",
53
+ "width-description": "_width-description_68lru_10",
54
+ "modal-header-content": "_modal-header-content_68lru_14",
55
+ "modal-title": "_modal-title_68lru_20",
56
+ "close-modal-icon": "_close-modal-icon_68lru_29"
57
+ }, _ = u.bind(ee), te = ({ title: o, onClose: n, withDescription: l = !1 }) => /* @__PURE__ */ c("div", { className: _("modal-header", { "width-description": l }), children: [
58
+ /* @__PURE__ */ e("div", { className: _("modal-header-content"), children: o && /* @__PURE__ */ e("div", { className: _("modal-title"), children: o }) }),
59
+ /* @__PURE__ */ e(Y, { className: _("close-modal-icon"), onClick: n, children: /* @__PURE__ */ e(F, {}) })
60
+ ] }), oe = "_modal_f3ckb_1", ne = "_description_f3ckb_43", le = "_scrollable_f3ckb_53", ae = {
61
+ modal: oe,
62
+ "overlay-default": "_overlay-default_f3ckb_12",
63
+ "overlay-light-cyan": "_overlay-light-cyan_f3ckb_16",
64
+ "scrolling-content": "_scrolling-content_f3ckb_20",
65
+ "modal-window": "_modal-window_f3ckb_26",
66
+ description: ne,
67
+ scrollable: le,
68
+ "size-default": "_size-default_f3ckb_57",
69
+ "size-small": "_size-small_f3ckb_69",
70
+ "size-large": "_size-large_f3ckb_81"
71
+ }, h = u.bind(ae), se = 0.9, ie = 32 + 24, ce = 32 + 8, de = 36 + 16, re = 32 * 2, ye = ({
72
+ title: o,
73
+ children: n,
74
+ footerNode: l,
75
+ okButton: r,
76
+ cancelButton: a,
77
+ className: z,
78
+ size: f = "default",
79
+ onClose: A = () => {
80
+ },
81
+ overlay: p = "default",
82
+ zIndex: C = 2,
83
+ allowCloseOutside: D = !0,
84
+ scrollable: v = !1,
85
+ withoutFooter: y = !1,
86
+ createFooter: H = null,
87
+ description: s = null
88
+ }) => {
89
+ const [S, k] = b(!1), [T, I] = b(0), i = j(null), E = U(), x = E.height, L = x * se, w = (x - T) / 2, $ = () => {
90
+ let t = L - re;
91
+ return y || (t = t - de), s ? t = t - ce : t = t - ie, t;
92
+ }, d = () => {
93
+ k(!1);
94
+ }, M = (t) => {
95
+ const { keyCode: R } = t;
96
+ R === q.ESCAPE_KEY_CODE && d();
97
+ };
98
+ return g(() => {
99
+ if (i && i.current) {
100
+ const { clientHeight: t } = i.current;
101
+ I(t);
102
+ }
103
+ }, [n, E]), g(() => (k(!0), document.addEventListener("keydown", M, !1), () => document.removeEventListener("keydown", M, !1)), []), B(i, D ? d : void 0), /* @__PURE__ */ e(K, { onExitComplete: A, children: S && /* @__PURE__ */ e("div", { className: h("modal", { [`overlay-${p}`]: p }), style: { zIndex: C }, children: /* @__PURE__ */ c(
104
+ P.div,
105
+ {
106
+ className: h("modal-window", { [`size-${f}`]: f }, z),
107
+ ref: i,
108
+ tabIndex: 0,
109
+ initial: { opacity: 0, marginTop: -w },
110
+ animate: { opacity: 1, marginTop: w },
111
+ exit: { opacity: 0, marginTop: -w },
112
+ transition: { duration: 0.3 },
113
+ onAnimationStart: () => {
114
+ var t;
115
+ return (t = i.current) == null ? void 0 : t.focus();
116
+ },
117
+ children: [
118
+ /* @__PURE__ */ e(te, { title: o, onClose: d, withDescription: !!s }),
119
+ v ? /* @__PURE__ */ c(G, { autoHeight: !0, autoHeightMax: $(), hideTracksWhenNotNeeded: !0, children: [
120
+ s && /* @__PURE__ */ e("span", { className: h("description", { scrollable: v }), children: s }),
121
+ /* @__PURE__ */ e(O, { scrollable: !0, children: n })
122
+ ] }) : /* @__PURE__ */ c(W, { children: [
123
+ s && /* @__PURE__ */ e("span", { className: h("description"), children: s }),
124
+ /* @__PURE__ */ e(O, { children: n })
125
+ ] }),
126
+ !y && (H ? H(d) : /* @__PURE__ */ e(
127
+ Z,
128
+ {
129
+ size: f,
130
+ footerNode: l,
131
+ okButton: r,
132
+ cancelButton: a,
133
+ closeHandler: d
134
+ }
135
+ ))
136
+ ]
137
+ },
138
+ "modal-window"
139
+ ) }) });
140
+ };
11
141
  export {
12
- s as Modal,
13
- n as ModalContent,
14
- b as ModalFooter,
15
- c as ModalHeader
142
+ ye as Modal,
143
+ O as ModalContent,
144
+ Z as ModalFooter,
145
+ te as ModalHeader
16
146
  };
@@ -0,0 +1,345 @@
1
+ import { jsxs as p, jsx as t } from "react/jsx-runtime";
2
+ import { c as m } from "./bind-06a7ff84.js";
3
+ import { useState as h } from "react";
4
+ import { Popover as O } from "./popover.js";
5
+ import { B as x } from "./button-33c88abf.js";
6
+ import { F as A } from "./fieldText-404383ce.js";
7
+ import { B as f } from "./baseIconButton-251479f7.js";
8
+ import { a as y, S as T } from "./prevChapter-ebd5a3a7.js";
9
+ import { Tooltip as B } from "./tooltip.js";
10
+ const P = {
11
+ "item-counter": "_item-counter_4g6do_1"
12
+ }, E = m.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_183l8_32", W = {
25
+ "size-selector": "_size-selector_183l8_1",
26
+ "size-option": "_size-option_183l8_6",
27
+ selected: V
28
+ }, C = m.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_1y4na_1",
44
+ "size-selector-button": "_size-selector-button_1y4na_10"
45
+ }, w = m.bind(F), j = ({
46
+ size: o,
47
+ sizeOptions: n,
48
+ perPageText: s,
49
+ changeSize: r
50
+ }) => {
51
+ const [a, c] = h(!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
+ }, b = m.bind(G), H = ({
72
+ totalPages: o,
73
+ pageText: n,
74
+ goActionText: s,
75
+ selectPage: r
76
+ }) => {
77
+ const [a, c] = h(""), [i, e] = h(!0), d = (u) => {
78
+ const v = u.target.value.replace(/\D/g, ""), $ = Number(v), k = $ > 0 && $ <= o;
79
+ e(k), c(v);
80
+ }, l = () => {
81
+ r(Number(a));
82
+ };
83
+ return /* @__PURE__ */ p("div", { className: b("page-selector"), children: [
84
+ /* @__PURE__ */ t("div", { className: b("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: b("apply-button"), children: s })
97
+ ] });
98
+ }, L = {
99
+ "active-page": "_active-page_rmw5h_1",
100
+ "page-selector": "_page-selector_rmw5h_10",
101
+ "page-selector-button": "_page-selector-button_rmw5h_14"
102
+ }, N = m.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] = h(!1), d = (l) => {
111
+ c(l), e(!1);
112
+ };
113
+ return /* @__PURE__ */ p("div", { className: N("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: N("page-selector"),
132
+ children: /* @__PURE__ */ t(x, { className: N("page-selector-button"), variant: "text", children: o })
133
+ }
134
+ )
135
+ ] });
136
+ }, q = "_bar_dfnmf_1", J = "_section_dfnmf_9", K = "_selected_dfnmf_33", Q = "_tooltip_dfnmf_37", U = {
137
+ bar: q,
138
+ "section-with-tooltip": "_section-with-tooltip_dfnmf_9",
139
+ section: J,
140
+ selected: K,
141
+ "tooltip-wrapper": "_tooltip-wrapper_dfnmf_37",
142
+ tooltip: Q,
143
+ "tooltip-text": "_tooltip-text_dfnmf_48",
144
+ "page-number": "_page-number_dfnmf_52"
145
+ }, _ = m.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
+ }, g = m.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: g("page-navigator"), children: [
211
+ /* @__PURE__ */ p("div", { className: g("page-buttons"), children: [
212
+ /* @__PURE__ */ t(
213
+ f,
214
+ {
215
+ className: g("page-button"),
216
+ onClick: a,
217
+ disabled: o === 1,
218
+ children: /* @__PURE__ */ t(y, {})
219
+ }
220
+ ),
221
+ /* @__PURE__ */ t(
222
+ f,
223
+ {
224
+ className: g("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: g("page-buttons"), children: [
241
+ /* @__PURE__ */ t(
242
+ f,
243
+ {
244
+ className: g("page-button", "next"),
245
+ onClick: i,
246
+ disabled: o === s,
247
+ children: /* @__PURE__ */ t(T, {})
248
+ }
249
+ ),
250
+ /* @__PURE__ */ t(
251
+ f,
252
+ {
253
+ className: g("page-button", "next"),
254
+ onClick: e,
255
+ disabled: o === s,
256
+ children: /* @__PURE__ */ t(y, {})
257
+ }
258
+ )
259
+ ] })
260
+ ] });
261
+ }, te = {
262
+ "page-controls": "_page-controls_thyf8_1",
263
+ "total-pages": "_total-pages_thyf8_8"
264
+ }, I = m.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_wi26a_1", ne = {
295
+ pagination: se
296
+ }, re = m.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
+ };
@@ -1,12 +1,16 @@
1
- import { P as t } from "./pagination-4ae395bd.js";
1
+ import { P as t } from "./pagination-86651d50.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
7
  import "./button-33c88abf.js";
8
- import "./fieldText-65e4c614.js";
9
- import "./baseIconButton-b6adc843.js";
8
+ import "./fieldText-404383ce.js";
9
+ import "./clear-53660571.js";
10
+ import "./spinLoader-c4a53718.js";
11
+ import "./maxValueDisplay-9be01a75.js";
12
+ import "./baseIconButton-251479f7.js";
13
+ import "./prevChapter-ebd5a3a7.js";
10
14
  import "./tooltip.js";
11
15
  export {
12
16
  t as Pagination,
@@ -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: "#A2AAB5", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ e.createElement("path", { d: "M12 13L4 8L12 3L12 13Z" })), a = (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" }));
3
+ export {
4
+ l as S,
5
+ a
6
+ };
@@ -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
+ };
@@ -0,0 +1,7 @@
1
+ import { S as r } from "./spinLoader-c4a53718.js";
2
+ import "react/jsx-runtime";
3
+ import "./bind-06a7ff84.js";
4
+ export {
5
+ r as SpinLoader,
6
+ r as default
7
+ };