@reportportal/ui-kit 0.0.1-alpha.76 → 0.0.1-alpha.77

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,7 +2,7 @@ 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-450abb26.js";
5
+ import { F as D } from "./fieldText-0c853cee.js";
6
6
  import { a as E, S as j } from "./calendarArrow-3e1339ea.js";
7
7
  import { D as T } from "./dropdown-9427f821.js";
8
8
  import { registerLocale as G } from "react-datepicker";
@@ -1,10 +1,10 @@
1
- import { D as t } from "./datePicker-0f8c9302.js";
2
- import { r as v } from "./datePicker-0f8c9302.js";
1
+ import { D as t } from "./datePicker-4a2968df.js";
2
+ import { r as v } from "./datePicker-4a2968df.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-450abb26.js";
7
+ import "./fieldText-0c853cee.js";
8
8
  import "./openEye-7b9cf080.js";
9
9
  import "./button-33bc880f.js";
10
10
  import "./spinLoader-c4a53718.js";
@@ -1,5 +1,5 @@
1
1
  import { jsx as e, jsxs as o, Fragment as v } from "react/jsx-runtime";
2
- import { forwardRef as W, useRef as X, useId as Y, useState as B } from "react";
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
5
  import { B as te } from "./button-33bc880f.js";
@@ -29,11 +29,11 @@ const ce = "_collapsed_1xyy3_13", re = "_field_1xyy3_21", ie = "_placeholder_1xy
29
29
  text: ue,
30
30
  "error-text": "_error-text_1xyy3_188",
31
31
  "help-text": "_help-text_1xyy3_192"
32
- }, n = Z.bind(xe), be = W(
32
+ }, n = Z.bind(xe), De = W(
33
33
  ({
34
34
  value: s = "",
35
- className: C,
36
- classNameHelpText: D,
35
+ className: B,
36
+ classNameHelpText: C,
37
37
  error: i,
38
38
  placeholder: y,
39
39
  disabled: a = !1,
@@ -44,9 +44,9 @@ const ce = "_collapsed_1xyy3_13", re = "_field_1xyy3_21", ie = "_placeholder_1xy
44
44
  helpText: d,
45
45
  defaultWidth: k = !0,
46
46
  startIcon: x,
47
- endIcon: m,
47
+ endIcon: f,
48
48
  clearable: L = !1,
49
- onClear: f,
49
+ onClear: m,
50
50
  isRequired: h = !1,
51
51
  hasDoubleMessage: P = !1,
52
52
  type: c = "text",
@@ -60,29 +60,29 @@ const ce = "_collapsed_1xyy3_13", re = "_field_1xyy3_21", ie = "_placeholder_1xy
60
60
  },
61
61
  ...$
62
62
  }, z) => {
63
- const A = X(null), _ = z || A, N = Y(), [w, g] = B(!1), [F, S] = B(!1), G = (t) => {
63
+ const A = X(null), _ = z || A, w = Y(), [N, g] = E(!1), [F, S] = E(!1), G = (t) => {
64
64
  g(!0), O(t);
65
65
  }, J = (t) => {
66
66
  g(!1), U(t);
67
67
  }, K = () => {
68
68
  var t;
69
- f && (f(s), (t = _.current) == null || t.focus());
70
- }, b = R && i && u, E = /* @__PURE__ */ e("span", { className: n("text", "help-text", D), children: d }), Q = () => c !== "password" ? c : F ? "text" : "password", M = (t) => {
69
+ m && (m(s), (t = _.current) == null || t.focus());
70
+ }, D = R && i && u, M = /* @__PURE__ */ e("span", { className: n("text", "help-text", C), children: d }), Q = () => c !== "password" ? c : F ? "text" : "password", b = (t) => {
71
71
  t.preventDefault(), S(!0);
72
72
  }, r = (t) => {
73
73
  t.preventDefault(), S(!1);
74
74
  };
75
75
  return /* @__PURE__ */ o(v, { children: [
76
- l && /* @__PURE__ */ e(ae, { isRequired: h, htmlFor: N, children: l }),
76
+ l && /* @__PURE__ */ e(ae, { isRequired: h, htmlFor: w, children: l }),
77
77
  /* @__PURE__ */ o(
78
78
  "div",
79
79
  {
80
- className: n("field", C, {
80
+ className: n("field", B, {
81
81
  error: i,
82
82
  touched: u,
83
83
  disabled: a,
84
84
  "default-width": k,
85
- collapsed: j && !w && !s
85
+ collapsed: j && !N && !s
86
86
  }),
87
87
  title: V,
88
88
  children: [
@@ -94,7 +94,7 @@ const ce = "_collapsed_1xyy3_13", re = "_field_1xyy3_21", ie = "_placeholder_1xy
94
94
  var p;
95
95
  (p = _.current) == null || p.focus();
96
96
  },
97
- children: /* @__PURE__ */ e("span", { className: n("icon", { "start-icon": !w }), children: x })
97
+ children: /* @__PURE__ */ e("span", { className: n("icon", { "start-icon": !N }), children: x })
98
98
  }
99
99
  ),
100
100
  /* @__PURE__ */ o("span", { className: n("input-container", `type-${c}`), children: [
@@ -106,7 +106,7 @@ const ce = "_collapsed_1xyy3_13", re = "_field_1xyy3_21", ie = "_placeholder_1xy
106
106
  className: n("input"),
107
107
  value: s,
108
108
  disabled: a,
109
- id: N,
109
+ id: w,
110
110
  onChange: T,
111
111
  onFocus: G,
112
112
  onBlur: J,
@@ -119,10 +119,10 @@ const ce = "_collapsed_1xyy3_13", re = "_field_1xyy3_21", ie = "_placeholder_1xy
119
119
  icon: F ? /* @__PURE__ */ e(q, {}) : /* @__PURE__ */ e(ee, {}),
120
120
  variant: "text",
121
121
  className: n("eye-icon"),
122
- onMouseDown: M,
122
+ onMouseDown: b,
123
123
  onMouseLeave: r,
124
124
  onMouseUp: r,
125
- onTouchStart: M,
125
+ onTouchStart: b,
126
126
  onTouchEnd: r,
127
127
  onTouchCancel: r
128
128
  }
@@ -140,18 +140,27 @@ const ce = "_collapsed_1xyy3_13", re = "_field_1xyy3_21", ie = "_placeholder_1xy
140
140
  maxValue: I
141
141
  }
142
142
  ),
143
- m && /* @__PURE__ */ e("span", { className: n("icon-container-end"), children: /* @__PURE__ */ e("span", { className: n("icon"), children: m }) }),
144
- L && s.length > 0 && /* @__PURE__ */ e("span", { className: n("icon-container-end"), children: /* @__PURE__ */ e("button", { type: "button", className: n("clear-icon", { disabled: a }), onClick: K, children: /* @__PURE__ */ e(ne, {}) }) })
143
+ f && /* @__PURE__ */ e("span", { className: n("icon-container-end"), children: /* @__PURE__ */ e("span", { className: n("icon"), children: f }) }),
144
+ L && s.length > 0 && /* @__PURE__ */ e("span", { className: n("icon-container-end"), children: /* @__PURE__ */ e(
145
+ "button",
146
+ {
147
+ type: "button",
148
+ className: n("clear-icon", { disabled: a }),
149
+ onClick: K,
150
+ onMouseDown: (t) => t.preventDefault(),
151
+ children: /* @__PURE__ */ e(ne, {})
152
+ }
153
+ ) })
145
154
  ]
146
155
  }
147
156
  ),
148
- (b || d) && /* @__PURE__ */ e("div", { className: n("additional-content", { disabled: a }), children: b ? /* @__PURE__ */ o(v, { children: [
157
+ (D || d) && /* @__PURE__ */ e("div", { className: n("additional-content", { disabled: a }), children: D ? /* @__PURE__ */ o(v, { children: [
149
158
  /* @__PURE__ */ e("span", { className: n("text", "error-text"), children: i }),
150
- P && E
151
- ] }) : d && E })
159
+ P && M
160
+ ] }) : d && M })
152
161
  ] });
153
162
  }
154
163
  );
155
164
  export {
156
- be as F
165
+ De as F
157
166
  };
package/dist/fieldText.js CHANGED
@@ -1,4 +1,4 @@
1
- import { F as o } from "./fieldText-450abb26.js";
1
+ import { F as o } from "./fieldText-0c853cee.js";
2
2
  import "react/jsx-runtime";
3
3
  import "react";
4
4
  import "./bind-06a7ff84.js";
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@ import { B as u } from "./button-33bc880f.js";
2
2
  import { B as C } from "./baseIconButton-251479f7.js";
3
3
  import { C as g } from "./checkbox-aa91985d.js";
4
4
  import { S as y } from "./systemMessage-924fdaa6.js";
5
- import { F as b } from "./fieldText-450abb26.js";
5
+ import { F as b } from "./fieldText-0c853cee.js";
6
6
  import { T as B } from "./themeProvider-46c2be7b.js";
7
7
  import { Modal as v } from "./modal.js";
8
8
  import { D as M } from "./dropdown-9427f821.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-102c14bd.js";
17
+ import { P as X } from "./pagination-1fa6a7de.js";
18
18
  import { T as Z } from "./table-20aa2cdf.js";
19
- import { D as $ } from "./datePicker-0f8c9302.js";
19
+ import { D as $ } from "./datePicker-4a2968df.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";
@@ -3,7 +3,7 @@ import { c as g } from "./bind-06a7ff84.js";
3
3
  import { useState as b } from "react";
4
4
  import { Popover as O } from "./popover.js";
5
5
  import { B as x } from "./button-33bc880f.js";
6
- import { F as A } from "./fieldText-450abb26.js";
6
+ import { F as A } from "./fieldText-0c853cee.js";
7
7
  import { B as h } from "./baseIconButton-251479f7.js";
8
8
  import { S as $, a as T } from "./prevPage-87faf576.js";
9
9
  import { Tooltip as B } from "./tooltip.js";
@@ -1,11 +1,11 @@
1
- import { P as t } from "./pagination-102c14bd.js";
1
+ import { P as t } from "./pagination-1fa6a7de.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-33bc880f.js";
8
- import "./fieldText-450abb26.js";
8
+ import "./fieldText-0c853cee.js";
9
9
  import "./openEye-7b9cf080.js";
10
10
  import "./spinLoader-c4a53718.js";
11
11
  import "./maxValueDisplay-9be01a75.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reportportal/ui-kit",
3
- "version": "0.0.1-alpha.76",
3
+ "version": "0.0.1-alpha.77",
4
4
  "description": "The UI-kit library for ReportPortal Design System.",
5
5
  "type": "module",
6
6
  "scripts": {