@reportportal/ui-kit 0.0.1-alpha.90 → 0.0.1-alpha.92

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 l = n + s;
13
- return new Array(l - n).fill(void 0).map((g, o) => n - o);
12
+ const d = n + s;
13
+ return new Array(d - 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,33 +24,33 @@ const ie = (n, s) => {
24
24
  date: n = /* @__PURE__ */ new Date(),
25
25
  changeYear: s = () => {
26
26
  },
27
- changeMonth: l = () => {
27
+ changeMonth: d = () => {
28
28
  },
29
29
  decreaseMonth: g = () => {
30
30
  },
31
- increaseMonth: o = () => {
31
+ increaseMonth: t = () => {
32
32
  },
33
- prevMonthButtonDisabled: t = !1,
33
+ prevMonthButtonDisabled: o = !1,
34
34
  nextMonthButtonDisabled: h = !1,
35
35
  headerNodes: b = null,
36
36
  customClassName: w = "",
37
37
  yearsOptions: i = [],
38
38
  locale: N
39
39
  }) => {
40
- const p = n.getFullYear(), v = n.getMonth(), y = P(() => {
41
- const e = Array(12).keys(), d = new Intl.DateTimeFormat(N, {
40
+ const p = n.getFullYear(), C = n.getMonth(), y = P(() => {
41
+ const e = Array(12).keys(), c = new Intl.DateTimeFormat(N, {
42
42
  month: "long"
43
- }), c = (m) => d.format(new Date(p, m));
44
- return Array.from(e, c).reduce((m, f, k) => m.concat({
45
- value: k,
43
+ }), l = (m) => c.format(new Date(p, m));
44
+ return Array.from(e, l).reduce((m, f, x) => m.concat({
45
+ value: x,
46
46
  label: f
47
47
  }), []);
48
- }, []), C = P(() => (i.length > 0 ? i : G(p)).reduce(
49
- (d, c) => d.concat({ value: c, label: `${c}` }),
48
+ }, []), v = P(() => (i.length > 0 ? i : G(p)).reduce(
49
+ (c, l) => c.concat({ value: l, label: `${l}` }),
50
50
  []
51
- ), [i]), x = (e) => {
52
- l(e);
53
- }, A = (e) => {
51
+ ), [i]), A = (e) => {
52
+ d(e);
53
+ }, k = (e) => {
54
54
  s(e);
55
55
  };
56
56
  return /* @__PURE__ */ F($, { children: [
@@ -61,11 +61,11 @@ const ie = (n, s) => {
61
61
  {
62
62
  type: "button",
63
63
  "aria-label": "Previous Months",
64
- disabled: t,
64
+ disabled: o,
65
65
  onClick: (e) => {
66
66
  e.stopPropagation(), g();
67
67
  },
68
- className: a("button-prev", { disabled: t }),
68
+ className: a("button-prev", { disabled: o }),
69
69
  children: /* @__PURE__ */ r(T, {})
70
70
  }
71
71
  ),
@@ -74,8 +74,8 @@ const ie = (n, s) => {
74
74
  E,
75
75
  {
76
76
  options: y,
77
- value: v,
78
- onChange: x,
77
+ value: C,
78
+ onChange: A,
79
79
  transparentBackground: !0,
80
80
  className: a("dropdown", "month-dropdown"),
81
81
  toggleButtonClassName: a("toggle-button")
@@ -84,9 +84,9 @@ const ie = (n, s) => {
84
84
  /* @__PURE__ */ r(
85
85
  E,
86
86
  {
87
- options: C,
87
+ options: v,
88
88
  value: p,
89
- onChange: A,
89
+ onChange: k,
90
90
  transparentBackground: !0,
91
91
  className: a("dropdown"),
92
92
  toggleButtonClassName: a("toggle-button")
@@ -100,7 +100,7 @@ const ie = (n, s) => {
100
100
  "aria-label": "Next Months",
101
101
  disabled: h,
102
102
  onClick: (e) => {
103
- e.stopPropagation(), o();
103
+ e.stopPropagation(), t();
104
104
  },
105
105
  className: a("button-next", { disabled: h }),
106
106
  children: /* @__PURE__ */ r(T, {})
@@ -117,32 +117,32 @@ const ie = (n, s) => {
117
117
  disabled: Q,
118
118
  popper: X,
119
119
  input: Z
120
- }, _ = R.bind(ee), oe = "en", L = "MM-dd-yyyy", pe = ({
120
+ }, _ = R.bind(ee), te = "en", L = "MM-dd-yyyy", pe = ({
121
121
  onChange: n = () => {
122
122
  },
123
123
  disabled: s = !1,
124
- onBlur: l = () => {
124
+ onBlur: d = () => {
125
125
  },
126
126
  onFocus: g = () => {
127
127
  },
128
- endDate: o = void 0,
129
- startDate: t = void 0,
128
+ endDate: t = void 0,
129
+ startDate: o = void 0,
130
130
  headerNodes: h = null,
131
131
  customClassName: b = "",
132
132
  customTimeInput: w = void 0,
133
133
  shouldCloseOnSelect: i = !0,
134
134
  popperClassName: N = "",
135
135
  calendarClassName: p = "",
136
- fixedHeight: v = !1,
137
- language: y = oe,
138
- yearsOptions: C = [],
139
- placeholder: x = L.toUpperCase(),
140
- dateFormat: A = L,
136
+ fixedHeight: C = !1,
137
+ language: y = te,
138
+ yearsOptions: v = [],
139
+ placeholder: A = L.toUpperCase(),
140
+ dateFormat: k = L,
141
141
  selects: e = "start",
142
- value: d = null
142
+ value: c = null
143
143
  }) => {
144
- const c = D(null), S = t == null ? void 0 : t.toDateString(), m = o == null ? void 0 : o.toDateString(), f = o && t && o > t, k = (u) => {
145
- const M = u.toDateString(), Y = M === S, q = f && M === m, U = t && o && u > t && u < o;
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) => {
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,
148
148
  "selected-range": U && !q,
@@ -153,19 +153,17 @@ const ie = (n, s) => {
153
153
  return /* @__PURE__ */ r(
154
154
  B,
155
155
  {
156
- customInput: /* @__PURE__ */ r(I, { className: _("input"), defaultWidth: !1, ref: c }),
157
- placeholderText: x,
158
- selected: d,
159
- startDate: t,
160
- endDate: o,
161
- minDate: e === "end" ? t : void 0,
162
- maxDate: e === "start" ? o : void 0,
156
+ customInput: /* @__PURE__ */ r(I, { className: _("input"), defaultWidth: !1, ref: l }),
157
+ placeholderText: A,
158
+ selected: c,
159
+ startDate: o,
160
+ endDate: t,
163
161
  disabled: s,
164
162
  shouldCloseOnSelect: i,
165
- fixedHeight: v,
163
+ fixedHeight: C,
166
164
  locale: y,
167
165
  showPopperArrow: !1,
168
- dayClassName: k,
166
+ dayClassName: x,
169
167
  calendarClassName: _(p, "calendar"),
170
168
  renderCustomHeader: (u) => /* @__PURE__ */ r(
171
169
  z,
@@ -173,17 +171,17 @@ const ie = (n, s) => {
173
171
  ...u,
174
172
  headerNodes: h,
175
173
  customClassName: b,
176
- yearsOptions: C,
174
+ yearsOptions: v,
177
175
  locale: y
178
176
  }
179
177
  ),
180
178
  onChange: n,
181
- onBlur: l,
179
+ onBlur: d,
182
180
  onFocus: g,
183
181
  customTimeInput: w,
184
182
  showTimeInput: !!w,
185
183
  popperClassName: _(N, "popper"),
186
- dateFormat: A,
184
+ dateFormat: k,
187
185
  selectsStart: e === "start",
188
186
  selectsEnd: e === "end",
189
187
  className: _("datepicker")
@@ -1,12 +1,12 @@
1
- import { D as t } from "./datePicker-f8747600.js";
2
- import { r as v } from "./datePicker-f8747600.js";
1
+ import { D as t } from "./datePicker-ff670fde.js";
2
+ import { r as q } from "./datePicker-ff670fde.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-f8747600.js";
21
+ import { D as to } from "./datePicker-ff670fde.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.90",
3
+ "version": "0.0.1-alpha.92",
4
4
  "description": "The UI-kit library for ReportPortal Design System.",
5
5
  "type": "module",
6
6
  "scripts": {