@reportportal/ui-kit 0.0.1-alpha.91 → 0.0.1-alpha.93

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.
@@ -2,15 +2,15 @@ import { jsxs as F, Fragment as $, jsx as r } from "react/jsx-runtime";
2
2
  import B 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 D } from "react";
5
- import { F as I } from "./fieldText-35421470.js";
5
+ import { F as I } from "./fieldText-ba8a917c.js";
6
6
  import { D as E } from "./dropdown-b26b8fd8.js";
7
7
  import { S as T } from "./calendarArrow-44c7e60e.js";
8
8
  import { registerLocale as j } from "react-datepicker";
9
9
  const ie = (n, s) => {
10
10
  j(n, s);
11
11
  }, G = (n, s = 20) => {
12
- const d = n + s;
13
- return new Array(d - n).fill(void 0).map((g, t) => n - t);
12
+ const i = n + s;
13
+ return new Array(i - n).fill(void 0).map((g, t) => n - t);
14
14
  }, H = "_header_1q16i_1", V = "_disabled_1q16i_25", O = "_dropdown_1q16i_8", W = {
15
15
  header: H,
16
16
  "dropdowns-wrapper": "_dropdowns-wrapper_1q16i_8",
@@ -24,7 +24,7 @@ const ie = (n, s) => {
24
24
  date: n = /* @__PURE__ */ new Date(),
25
25
  changeYear: s = () => {
26
26
  },
27
- changeMonth: d = () => {
27
+ changeMonth: i = () => {
28
28
  },
29
29
  decreaseMonth: g = () => {
30
30
  },
@@ -34,22 +34,22 @@ const ie = (n, s) => {
34
34
  nextMonthButtonDisabled: h = !1,
35
35
  headerNodes: b = null,
36
36
  customClassName: w = "",
37
- yearsOptions: i = [],
37
+ yearsOptions: p = [],
38
38
  locale: N
39
39
  }) => {
40
- const p = n.getFullYear(), C = n.getMonth(), y = P(() => {
40
+ const l = n.getFullYear(), C = n.getMonth(), y = P(() => {
41
41
  const e = Array(12).keys(), c = new Intl.DateTimeFormat(N, {
42
42
  month: "long"
43
- }), l = (m) => c.format(new Date(p, m));
44
- return Array.from(e, l).reduce((m, f, x) => m.concat({
43
+ }), d = (m) => c.format(new Date(l, m));
44
+ return Array.from(e, d).reduce((m, f, x) => m.concat({
45
45
  value: x,
46
46
  label: f
47
47
  }), []);
48
- }, []), v = P(() => (i.length > 0 ? i : G(p)).reduce(
49
- (c, l) => c.concat({ value: l, label: `${l}` }),
48
+ }, []), v = P(() => (p.length > 0 ? p : G(l)).reduce(
49
+ (c, d) => c.concat({ value: d, label: `${d}` }),
50
50
  []
51
- ), [i]), A = (e) => {
52
- d(e);
51
+ ), [p, l]), A = (e) => {
52
+ i(e);
53
53
  }, k = (e) => {
54
54
  s(e);
55
55
  };
@@ -85,7 +85,7 @@ const ie = (n, s) => {
85
85
  E,
86
86
  {
87
87
  options: v,
88
- value: p,
88
+ value: l,
89
89
  onChange: k,
90
90
  transparentBackground: !0,
91
91
  className: a("dropdown"),
@@ -121,7 +121,7 @@ const ie = (n, s) => {
121
121
  onChange: n = () => {
122
122
  },
123
123
  disabled: s = !1,
124
- onBlur: d = () => {
124
+ onBlur: i = () => {
125
125
  },
126
126
  onFocus: g = () => {
127
127
  },
@@ -130,9 +130,9 @@ const ie = (n, s) => {
130
130
  headerNodes: h = null,
131
131
  customClassName: b = "",
132
132
  customTimeInput: w = void 0,
133
- shouldCloseOnSelect: i = !0,
133
+ shouldCloseOnSelect: p = !0,
134
134
  popperClassName: N = "",
135
- calendarClassName: p = "",
135
+ calendarClassName: l = "",
136
136
  fixedHeight: C = !1,
137
137
  language: y = te,
138
138
  yearsOptions: v = [],
@@ -141,7 +141,7 @@ const ie = (n, s) => {
141
141
  selects: e = "start",
142
142
  value: c = null
143
143
  }) => {
144
- const l = D(null), S = o == null ? void 0 : o.toDateString(), m = t == null ? void 0 : t.toDateString(), f = t && o && t > o, x = (u) => {
144
+ const d = D(null), S = o == null ? void 0 : o.toDateString(), m = t == null ? void 0 : t.toDateString(), f = t && o && t > o, x = (u) => {
145
145
  const M = u.toDateString(), Y = M === S, q = f && M === m, U = o && t && u > o && u < t;
146
146
  return _("date", {
147
147
  "current-date": Y,
@@ -153,18 +153,18 @@ const ie = (n, s) => {
153
153
  return /* @__PURE__ */ r(
154
154
  B,
155
155
  {
156
- customInput: /* @__PURE__ */ r(I, { className: _("input"), defaultWidth: !1, ref: l }),
156
+ customInput: /* @__PURE__ */ r(I, { className: _("input"), defaultWidth: !1, ref: d }),
157
157
  placeholderText: A,
158
158
  selected: c,
159
159
  startDate: o,
160
160
  endDate: t,
161
161
  disabled: s,
162
- shouldCloseOnSelect: i,
162
+ shouldCloseOnSelect: p,
163
163
  fixedHeight: C,
164
164
  locale: y,
165
165
  showPopperArrow: !1,
166
166
  dayClassName: x,
167
- calendarClassName: _(p, "calendar"),
167
+ calendarClassName: _(l, "calendar"),
168
168
  renderCustomHeader: (u) => /* @__PURE__ */ r(
169
169
  z,
170
170
  {
@@ -176,7 +176,7 @@ const ie = (n, s) => {
176
176
  }
177
177
  ),
178
178
  onChange: n,
179
- onBlur: d,
179
+ onBlur: i,
180
180
  onFocus: g,
181
181
  customTimeInput: w,
182
182
  showTimeInput: !!w,
@@ -1,12 +1,12 @@
1
- import { D as t } from "./datePicker-c9d859b1.js";
2
- import { r as v } from "./datePicker-c9d859b1.js";
1
+ import { D as t } from "./datePicker-0aca795c.js";
2
+ import { r as q } from "./datePicker-0aca795c.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-35421470.js";
7
+ import "./fieldText-ba8a917c.js";
8
8
  import "./openEye-7b9cf080.js";
9
- import "./button-97d9e587.js";
9
+ import "./baseIconButton-251479f7.js";
10
10
  import "./spinLoader-c4a53718.js";
11
11
  import "./maxValueDisplay-9be01a75.js";
12
12
  import "./fieldLabel.js";
@@ -16,7 +16,6 @@ import "downshift";
16
16
  import "rc-scrollbars";
17
17
  import "./useOnClickOutside-c332f7d3.js";
18
18
  import "./keyCodes-f63c0e11.js";
19
- import "./baseIconButton-251479f7.js";
20
19
  import "./dropdown-0260bb66.js";
21
20
  import "./checkbox-ed6cc375.js";
22
21
  import "./calendarArrow-44c7e60e.js";
@@ -24,5 +23,5 @@ import "react-datepicker";
24
23
  export {
25
24
  t as DatePicker,
26
25
  t as default,
27
- v as registerDatePickerLocale
26
+ q as registerDatePickerLocale
28
27
  };
@@ -1,8 +1,8 @@
1
1
  import { jsx as e, jsxs as o, Fragment as b } from "react/jsx-runtime";
2
- import { forwardRef as W, useRef as X, useId as Y, useState as v } from "react";
2
+ import { forwardRef as W, useRef as X, useId as Y, useState as B } 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-97d9e587.js";
5
+ import { B as te } from "./baseIconButton-251479f7.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";
@@ -33,7 +33,7 @@ const ie = "_collapsed_uz1iu_13", ce = "_field_uz1iu_21", re = "_placeholder_uz1
33
33
  ({
34
34
  value: s = "",
35
35
  className: E,
36
- classNameHelpText: B,
36
+ classNameHelpText: v,
37
37
  error: r,
38
38
  placeholder: p,
39
39
  disabled: a = !1,
@@ -48,26 +48,26 @@ const ie = "_collapsed_uz1iu_13", ce = "_field_uz1iu_21", re = "_placeholder_uz1
48
48
  clearable: k = !1,
49
49
  onClear: x,
50
50
  isRequired: z = !1,
51
- hasDoubleMessage: L = !1,
51
+ hasDoubleMessage: I = !1,
52
52
  type: i = "text",
53
- displayError: P = !0,
54
- collapsible: R = !1,
55
- loading: j = !1,
56
- maxLengthDisplay: H,
57
- onFocus: I = () => {
53
+ displayError: L = !0,
54
+ collapsible: P = !1,
55
+ loading: R = !1,
56
+ maxLengthDisplay: j,
57
+ onFocus: H = () => {
58
58
  },
59
59
  onBlur: O = () => {
60
60
  },
61
61
  ...U
62
62
  }, $) => {
63
- const A = X(null), d = $ || A, w = Y(), [N, y] = v(!1), [g, F] = v(!1), G = (t) => {
64
- y(!0), I(t);
63
+ const A = X(null), d = $ || A, w = Y(), [N, y] = B(!1), [g, F] = B(!1), G = (t) => {
64
+ y(!0), H(t);
65
65
  }, J = (t) => {
66
66
  y(!1), O(t);
67
67
  }, K = () => {
68
68
  var t;
69
69
  x && (x(s), (t = d.current) == null || t.focus());
70
- }, S = P && r && f, D = /* @__PURE__ */ e("span", { className: n("text", "help-text", B), children: u }), Q = () => i !== "password" ? i : g ? "text" : "password", M = (t) => {
70
+ }, S = L && r && f, D = /* @__PURE__ */ e("span", { className: n("text", "help-text", v), children: u }), Q = () => i !== "password" ? i : g ? "text" : "password", M = (t) => {
71
71
  t.preventDefault(), F(!0);
72
72
  }, c = (t) => {
73
73
  t.preventDefault(), F(!1);
@@ -82,11 +82,11 @@ const ie = "_collapsed_uz1iu_13", ce = "_field_uz1iu_21", re = "_placeholder_uz1
82
82
  touched: f,
83
83
  disabled: a,
84
84
  "default-width": V,
85
- collapsed: R && !N && !s
85
+ collapsed: P && !N && !s
86
86
  }),
87
87
  title: T,
88
88
  children: [
89
- j ? /* @__PURE__ */ e(se, {}) : m && /* @__PURE__ */ e(
89
+ R ? /* @__PURE__ */ e(se, {}) : m && /* @__PURE__ */ e(
90
90
  "span",
91
91
  {
92
92
  className: n("icon-container-start"),
@@ -116,15 +116,14 @@ const ie = "_collapsed_uz1iu_13", ce = "_field_uz1iu_21", re = "_placeholder_uz1
116
116
  i === "password" && s && /* @__PURE__ */ e(
117
117
  te,
118
118
  {
119
- icon: g ? /* @__PURE__ */ e(q, {}) : /* @__PURE__ */ e(ee, {}),
120
- variant: "text",
121
119
  className: n("eye-icon"),
122
120
  onMouseDown: M,
123
121
  onMouseLeave: c,
124
122
  onMouseUp: c,
125
123
  onTouchStart: M,
126
124
  onTouchEnd: c,
127
- onTouchCancel: c
125
+ onTouchCancel: c,
126
+ children: g ? /* @__PURE__ */ e(q, {}) : /* @__PURE__ */ e(ee, {})
128
127
  }
129
128
  ),
130
129
  p && !s && /* @__PURE__ */ o("span", { className: n("placeholder"), children: [
@@ -137,7 +136,7 @@ const ie = "_collapsed_uz1iu_13", ce = "_field_uz1iu_21", re = "_placeholder_uz1
137
136
  {
138
137
  className: n("max-length-display"),
139
138
  value: s.length,
140
- maxValue: H
139
+ maxValue: j
141
140
  }
142
141
  ),
143
142
  h && /* @__PURE__ */ e("span", { className: n("icon-container-end"), children: /* @__PURE__ */ e("span", { className: n("icon"), children: h }) }),
@@ -156,7 +155,7 @@ const ie = "_collapsed_uz1iu_13", ce = "_field_uz1iu_21", re = "_placeholder_uz1
156
155
  ),
157
156
  (S || u) && /* @__PURE__ */ e("div", { className: n("additional-content", { disabled: a }), children: S ? /* @__PURE__ */ o(b, { children: [
158
157
  /* @__PURE__ */ e("span", { className: n("text", "error-text"), children: r }),
159
- L && D
158
+ I && D
160
159
  ] }) : u && D })
161
160
  ] });
162
161
  }
package/dist/fieldText.js CHANGED
@@ -1,9 +1,9 @@
1
- import { F as o } from "./fieldText-35421470.js";
1
+ import { F as o } from "./fieldText-ba8a917c.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-97d9e587.js";
6
+ import "./baseIconButton-251479f7.js";
7
7
  import "./spinLoader-c4a53718.js";
8
8
  import "./maxValueDisplay-9be01a75.js";
9
9
  import "./fieldLabel.js";
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@ import { B as C } from "./baseIconButton-251479f7.js";
3
3
  import { B as g } from "./breadcrumbs-8e5ca8d7.js";
4
4
  import { C as F } from "./checkbox-ed6cc375.js";
5
5
  import { S as b } from "./systemMessage-924fdaa6.js";
6
- import { F as h } from "./fieldText-35421470.js";
6
+ import { F as h } from "./fieldText-ba8a917c.js";
7
7
  import { T as v } from "./themeProvider-46c2be7b.js";
8
8
  import { Modal as M } from "./modal.js";
9
9
  import { D as E } from "./dropdown-b26b8fd8.js";
@@ -15,10 +15,10 @@ import { F as j } from "./fieldTextFlex-8afaab31.js";
15
15
  import { R as G } from "./radio-62546efa.js";
16
16
  import { Tooltip as Q } from "./tooltip.js";
17
17
  import { Popover as X } from "./popover.js";
18
- import { P as Z } from "./pagination-b001d791.js";
18
+ import { P as Z } from "./pagination-43330c73.js";
19
19
  import { S as $ } from "./selection-9124d029.js";
20
20
  import { T as ro } from "./table-920fdad9.js";
21
- import { D as to } from "./datePicker-c9d859b1.js";
21
+ import { D as to } from "./datePicker-0aca795c.js";
22
22
  import "react-datepicker";
23
23
  import { SystemAlert as ao } from "./systemAlert.js";
24
24
  import { AddCsvIcon as po, AddImageIcon as mo, AddJarIcon as io, BreadcrumbsTreeIcon as so, CalendarIcon as Io, CheckmarkIcon as xo, ChevronDownDropdownIcon as fo, ChevronRightBreadcrumbsIcon as lo, CopyIcon as So, DeleteIcon as uo, DragAndDropIcon as Po, DragNDropIcon as Co, DurationIcon as Do, EditIcon as go, ExportIcon as Bo, ExternalLinkIcon as Fo, FilterFilledIcon as To, FilterOutlineIcon as bo, FlagIcon as yo, HideIcon as ho, MaximizeIcon as wo, MoveToFolderIcon as vo, PriorityBlockerIcon as Ao, PriorityCriticalIcon as Mo, PriorityHighIcon as ko, PriorityLowIcon as Eo, PriorityMediumIcon as Ro, PriorityUnspecifiedIcon as Lo, RefreshIcon as Ho, RerunIcon as No, SearchIcon as Oo, SortIcon as Uo, StatusSuccessIcon as zo, WarningIcon as Jo } from "./icons.js";
@@ -3,7 +3,7 @@ import { c as _ } 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";
6
- import { F as j } from "./fieldText-35421470.js";
6
+ import { F as j } from "./fieldText-ba8a917c.js";
7
7
  import { B as h } from "./baseIconButton-251479f7.js";
8
8
  import { S as z, a as T } from "./prevPage-87faf576.js";
9
9
  import { Tooltip as A } from "./tooltip.js";
@@ -1,16 +1,16 @@
1
- import { P as t } from "./pagination-b001d791.js";
1
+ import { P as t } from "./pagination-43330c73.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-97d9e587.js";
8
- import "./fieldText-35421470.js";
8
+ import "./fieldText-ba8a917c.js";
9
9
  import "./openEye-7b9cf080.js";
10
+ import "./baseIconButton-251479f7.js";
10
11
  import "./spinLoader-c4a53718.js";
11
12
  import "./maxValueDisplay-9be01a75.js";
12
13
  import "./fieldLabel.js";
13
- import "./baseIconButton-251479f7.js";
14
14
  import "./prevPage-87faf576.js";
15
15
  import "./tooltip.js";
16
16
  import "react-dom";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reportportal/ui-kit",
3
- "version": "0.0.1-alpha.91",
3
+ "version": "0.0.1-alpha.93",
4
4
  "description": "The UI-kit library for ReportPortal Design System.",
5
5
  "type": "module",
6
6
  "scripts": {