@reportportal/ui-kit 0.0.1-alpha.159 → 0.0.1-alpha.160

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.
@@ -1,5 +1,5 @@
1
1
  import { jsxs as p, jsx as t } from "react/jsx-runtime";
2
- import { c as _ } from "./bind-06a7ff84.js";
2
+ import { c as d } from "./bind-06a7ff84.js";
3
3
  import { useState as b } from "react";
4
4
  import { Popover as I } from "./popover.js";
5
5
  import { B as x } from "./button-97d9e587.js";
@@ -9,7 +9,7 @@ import { S as z, a as T } from "./prevPage-87faf576.js";
9
9
  import { Tooltip as A } from "./tooltip.js";
10
10
  const B = {
11
11
  "item-counter": "_item-counter_4g6do_1"
12
- }, W = _.bind(B), P = ({
12
+ }, W = d.bind(B), P = ({
13
13
  activePage: o,
14
14
  pageSize: n,
15
15
  totalItems: s,
@@ -25,7 +25,7 @@ const B = {
25
25
  "size-selector": "_size-selector_cjnvy_1",
26
26
  "size-option": "_size-option_cjnvy_6",
27
27
  selected: E
28
- }, C = _.bind(M), V = ({
28
+ }, C = d.bind(M), V = ({
29
29
  currentSize: o,
30
30
  options: n,
31
31
  onClickOption: s
@@ -43,7 +43,7 @@ const B = {
43
43
  "page-size-control": "_page-size-control_suy7z_1",
44
44
  "page-size-options": "_page-size-options_suy7z_9",
45
45
  "size-selector-button": "_size-selector-button_suy7z_13"
46
- }, y = _.bind(D), F = ({
46
+ }, y = d.bind(D), F = ({
47
47
  size: o,
48
48
  sizeOptions: n,
49
49
  perPageText: s,
@@ -70,14 +70,14 @@ const B = {
70
70
  "page-selector": "_page-selector_rtho4_1",
71
71
  "field-wrapper": "_field-wrapper_rtho4_6",
72
72
  "apply-button": "_apply-button_rtho4_10"
73
- }, N = _.bind(G), H = ({
73
+ }, N = d.bind(G), H = ({
74
74
  totalPages: o,
75
75
  pageText: n,
76
76
  goActionText: s,
77
77
  selectPage: r
78
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;
79
+ const [a, c] = b(""), [i, e] = b(!0), _ = (g) => {
80
+ const v = g.target.value.replace(/\D/g, ""), $ = Number(v), k = $ > 0 && $ <= o;
81
81
  e(k), c(v);
82
82
  }, l = () => {
83
83
  r(Number(a));
@@ -86,7 +86,7 @@ const B = {
86
86
  /* @__PURE__ */ t("div", { className: N("field-wrapper"), children: /* @__PURE__ */ t(
87
87
  j,
88
88
  {
89
- onChange: d,
89
+ onChange: _,
90
90
  value: a,
91
91
  placeholder: n,
92
92
  error: i ? "" : "Error",
@@ -101,7 +101,7 @@ const B = {
101
101
  "active-page": "_active-page_1gl9o_1",
102
102
  "page-selector": "_page-selector_1gl9o_10",
103
103
  "page-selector-button": "_page-selector-button_1gl9o_14"
104
- }, f = _.bind(L), R = ({
104
+ }, f = d.bind(L), R = ({
105
105
  activePage: o,
106
106
  totalPages: n,
107
107
  pageText: s,
@@ -109,7 +109,7 @@ const B = {
109
109
  goActionText: a,
110
110
  changePage: c
111
111
  }) => {
112
- const [i, e] = b(!1), d = (l) => {
112
+ const [i, e] = b(!1), _ = (l) => {
113
113
  c(l), e(!1);
114
114
  };
115
115
  return /* @__PURE__ */ p("div", { className: f("active-page"), children: [
@@ -122,7 +122,7 @@ const B = {
122
122
  {
123
123
  pageText: s,
124
124
  goActionText: a,
125
- selectPage: d,
125
+ selectPage: _,
126
126
  totalPages: n
127
127
  }
128
128
  ),
@@ -144,7 +144,7 @@ const B = {
144
144
  tooltip: Q,
145
145
  "tooltip-text": "_tooltip-text_y74hy_48",
146
146
  "page-number": "_page-number_y74hy_52"
147
- }, g = _.bind(U), S = 13, w = 260, X = ({
147
+ }, m = d.bind(U), S = 13, w = 260, X = ({
148
148
  totalPages: o,
149
149
  activePage: n,
150
150
  changePage: s,
@@ -156,30 +156,30 @@ const B = {
156
156
  end: l * a,
157
157
  pageNumber: l
158
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; )
159
+ const _ = Array.from({ length: c }, () => ({ pages: { from: void 0, to: void 0 } }));
160
+ return _.forEach((l, g) => {
161
+ for (l.pages.from = e[0].pageNumber; i * (g + 1) > e[0].end; )
162
162
  e.shift();
163
163
  l.pages.to = e[0].pageNumber, e.shift();
164
- }), /* @__PURE__ */ t("div", { className: g("bar"), children: d.map((l, u) => /* @__PURE__ */ t(
164
+ }), /* @__PURE__ */ t("div", { className: m("bar"), children: _.map((l, g) => /* @__PURE__ */ t(
165
165
  "div",
166
166
  {
167
- className: g("section-with-tooltip"),
167
+ className: m("section-with-tooltip"),
168
168
  style: { width: i },
169
169
  onClick: () => l.pages.from && s(l.pages.from),
170
170
  children: /* @__PURE__ */ t(
171
171
  A,
172
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 })
173
+ content: /* @__PURE__ */ p("div", { className: m("tooltip"), children: [
174
+ /* @__PURE__ */ t("div", { className: m("tooltip-text"), children: r.goTo }),
175
+ /* @__PURE__ */ t("div", { className: m("page-number"), children: l.pages.from })
176
176
  ] }),
177
- wrapperClassName: g("tooltip-wrapper"),
177
+ wrapperClassName: m("tooltip-wrapper"),
178
178
  placement: "top",
179
179
  children: /* @__PURE__ */ t(
180
180
  "div",
181
181
  {
182
- className: g("section", {
182
+ className: m("section", {
183
183
  selected: l.pages.from && l.pages.to && l.pages.from <= n && n <= l.pages.to
184
184
  })
185
185
  }
@@ -187,14 +187,14 @@ const B = {
187
187
  }
188
188
  )
189
189
  },
190
- u
190
+ g
191
191
  )) });
192
192
  }, Y = "_next_pyt8p_21", Z = {
193
193
  "page-navigator": "_page-navigator_pyt8p_1",
194
194
  "page-buttons": "_page-buttons_pyt8p_7",
195
195
  "page-button": "_page-button_pyt8p_7",
196
196
  next: Y
197
- }, m = _.bind(Z), ee = ({
197
+ }, u = d.bind(Z), ee = ({
198
198
  activePage: o,
199
199
  changePage: n,
200
200
  totalPages: s,
@@ -209,12 +209,12 @@ const B = {
209
209
  }, e = () => {
210
210
  n(s);
211
211
  };
212
- return /* @__PURE__ */ p("div", { className: m("page-navigator"), children: [
213
- /* @__PURE__ */ p("div", { className: m("page-buttons"), children: [
212
+ return /* @__PURE__ */ p("div", { className: u("page-navigator"), children: [
213
+ /* @__PURE__ */ p("div", { className: u("page-buttons"), children: [
214
214
  /* @__PURE__ */ t(
215
215
  h,
216
216
  {
217
- className: m("page-button"),
217
+ className: u("page-button"),
218
218
  onClick: a,
219
219
  disabled: o === 1,
220
220
  children: /* @__PURE__ */ t(z, {})
@@ -223,7 +223,7 @@ const B = {
223
223
  /* @__PURE__ */ t(
224
224
  h,
225
225
  {
226
- className: m("page-button"),
226
+ className: u("page-button"),
227
227
  onClick: c,
228
228
  disabled: o === 1,
229
229
  children: /* @__PURE__ */ t(T, {})
@@ -239,11 +239,11 @@ const B = {
239
239
  captions: r
240
240
  }
241
241
  ),
242
- /* @__PURE__ */ p("div", { className: m("page-buttons"), children: [
242
+ /* @__PURE__ */ p("div", { className: u("page-buttons"), children: [
243
243
  /* @__PURE__ */ t(
244
244
  h,
245
245
  {
246
- className: m("page-button", "next"),
246
+ className: u("page-button", "next"),
247
247
  onClick: i,
248
248
  disabled: o === s,
249
249
  children: /* @__PURE__ */ t(T, {})
@@ -252,7 +252,7 @@ const B = {
252
252
  /* @__PURE__ */ t(
253
253
  h,
254
254
  {
255
- className: m("page-button", "next"),
255
+ className: u("page-button", "next"),
256
256
  onClick: e,
257
257
  disabled: o === s,
258
258
  children: /* @__PURE__ */ t(z, {})
@@ -263,7 +263,7 @@ const B = {
263
263
  }, te = {
264
264
  "page-controls": "_page-controls_thyf8_1",
265
265
  "total-pages": "_total-pages_thyf8_8"
266
- }, O = _.bind(te), oe = ({
266
+ }, O = d.bind(te), oe = ({
267
267
  activePage: o,
268
268
  changePage: n,
269
269
  captions: s,
@@ -295,7 +295,7 @@ const B = {
295
295
  ] })
296
296
  ] }), se = "_pagination_w2r3n_1", ne = {
297
297
  pagination: se
298
- }, re = _.bind(ne), ue = ({
298
+ }, re = d.bind(ne), ue = ({
299
299
  activePage: o,
300
300
  totalPages: n,
301
301
  pageSize: s,
@@ -303,17 +303,18 @@ const B = {
303
303
  pageSizeOptions: a,
304
304
  changePage: c,
305
305
  changePageSize: i,
306
- captions: e
306
+ captions: e,
307
+ className: _
307
308
  }) => {
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: [
309
+ const l = (e == null ? void 0 : e.of) || "of", g = (e == null ? void 0 : e.page) || "Page";
310
+ return /* @__PURE__ */ p("div", { className: re("pagination", _), children: [
310
311
  /* @__PURE__ */ t(
311
312
  P,
312
313
  {
313
314
  activePage: o,
314
315
  pageSize: s,
315
316
  totalItems: r,
316
- ofText: d,
317
+ ofText: l,
317
318
  itemsText: (e == null ? void 0 : e.items) || "items"
318
319
  }
319
320
  ),
@@ -324,8 +325,8 @@ const B = {
324
325
  totalPages: n,
325
326
  changePage: c,
326
327
  captions: {
327
- page: l,
328
- of: d,
328
+ page: g,
329
+ of: l,
329
330
  goTo: (e == null ? void 0 : e.goTo) || "Go to page",
330
331
  goAction: (e == null ? void 0 : e.goAction) || "Go"
331
332
  }
@@ -1,4 +1,4 @@
1
- import { P as t } from "./pagination-a3dee614.js";
1
+ import { P as t } from "./pagination-8d397dfd.js";
2
2
  import "react/jsx-runtime";
3
3
  import "./bind-06a7ff84.js";
4
4
  import "react";
@@ -1,8 +1,7 @@
1
1
  import * as e from "react";
2
- const l = (t) => /* @__PURE__ */ e.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ e.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M7.85355 12.8536C7.65829 13.0488 7.34171 13.0488 7.14645 12.8536L4.14645 9.85355C3.95118 9.65829 3.95118 9.34171 4.14645 9.14645C4.34171 8.95118 4.65829 8.95118 4.85355 9.14645L7 11.2929L7 3.5C7 3.22386 7.22386 3 7.5 3C7.77614 3 8 3.22386 8 3.5L8 11.2929L10.1464 9.14645C10.3417 8.95119 10.6583 8.95118 10.8536 9.14645C11.0488 9.34171 11.0488 9.65829 10.8536 9.85355L7.85355 12.8536Z", fill: "#A2AAB5" })), n = (t) => /* @__PURE__ */ e.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ e.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M7.14645 3.14645C7.34171 2.95118 7.65829 2.95118 7.85355 3.14645L10.8536 6.14645C11.0488 6.34171 11.0488 6.65829 10.8536 6.85355C10.6583 7.04882 10.3417 7.04882 10.1464 6.85355L8 4.70711V12.5C8 12.7761 7.77614 13 7.5 13C7.22386 13 7 12.7761 7 12.5L7 4.70711L4.85355 6.85355C4.65829 7.04882 4.34171 7.04882 4.14645 6.85355C3.95118 6.65829 3.95118 6.34171 4.14645 6.14645L7.14645 3.14645Z", fill: "#A2AAB5" })), i = (t) => /* @__PURE__ */ e.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ e.createElement("path", { d: "M14.2174 5.82426C14.3736 5.66805 14.3736 5.41479 14.2174 5.25858L14.0759 5.11716C13.9197 4.96095 13.6665 4.96095 13.5103 5.11716L8.16726 10.4602L2.82426 5.11716C2.66805 4.96095 2.41479 4.96095 2.25858 5.11716L2.11716 5.25858C1.96095 5.41479 1.96095 5.66805 2.11716 5.82426L7.89176 11.5989C8.04797 11.7551 8.30124 11.7551 8.45745 11.5989L8.88171 11.1746L8.87436 11.1673L14.2174 5.82426Z", fill: "#A2AAB5" })), w = (t) => /* @__PURE__ */ e.createElement("svg", { width: 11, height: 24, viewBox: "0 0 11 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ e.createElement("rect", { x: 5, width: 1, height: 24, fill: "#A2AAB5" }), /* @__PURE__ */ e.createElement("rect", { x: 1, y: 4, width: 2, height: 16, rx: 1, fill: "#A2AAB5" }), /* @__PURE__ */ e.createElement("rect", { x: 8, y: 4, width: 2, height: 16, rx: 1, fill: "#A2AAB5" }));
2
+ const l = (t) => /* @__PURE__ */ e.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ e.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M7.85355 12.8536C7.65829 13.0488 7.34171 13.0488 7.14645 12.8536L4.14645 9.85355C3.95118 9.65829 3.95118 9.34171 4.14645 9.14645C4.34171 8.95118 4.65829 8.95118 4.85355 9.14645L7 11.2929L7 3.5C7 3.22386 7.22386 3 7.5 3C7.77614 3 8 3.22386 8 3.5L8 11.2929L10.1464 9.14645C10.3417 8.95119 10.6583 8.95118 10.8536 9.14645C11.0488 9.34171 11.0488 9.65829 10.8536 9.85355L7.85355 12.8536Z", fill: "#A2AAB5" })), i = (t) => /* @__PURE__ */ e.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ e.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M7.14645 3.14645C7.34171 2.95118 7.65829 2.95118 7.85355 3.14645L10.8536 6.14645C11.0488 6.34171 11.0488 6.65829 10.8536 6.85355C10.6583 7.04882 10.3417 7.04882 10.1464 6.85355L8 4.70711V12.5C8 12.7761 7.77614 13 7.5 13C7.22386 13 7 12.7761 7 12.5L7 4.70711L4.85355 6.85355C4.65829 7.04882 4.34171 7.04882 4.14645 6.85355C3.95118 6.65829 3.95118 6.34171 4.14645 6.14645L7.14645 3.14645Z", fill: "#A2AAB5" })), n = (t) => /* @__PURE__ */ e.createElement("svg", { width: 11, height: 24, viewBox: "0 0 11 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ e.createElement("rect", { x: 5, width: 1, height: 24, fill: "#A2AAB5" }), /* @__PURE__ */ e.createElement("rect", { x: 1, y: 4, width: 2, height: 16, rx: 1, fill: "#A2AAB5" }), /* @__PURE__ */ e.createElement("rect", { x: 8, y: 4, width: 2, height: 16, rx: 1, fill: "#A2AAB5" }));
3
3
  export {
4
4
  l as S,
5
- n as a,
6
- i as b,
7
- w as c
5
+ i as a,
6
+ n as b
8
7
  };