@reportportal/ui-kit 0.0.1-alpha.125 → 0.0.1-alpha.127

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.
@@ -20,7 +20,7 @@ export interface SingleAutocompleteProps<T> {
20
20
  minLength?: number;
21
21
  maxLength?: number | null;
22
22
  async?: boolean;
23
- optionVariant: ComponentProps<typeof AutocompleteMenu>['optionVariant'];
23
+ optionVariant?: ComponentProps<typeof AutocompleteMenu>['optionVariant'];
24
24
  isRequired?: boolean;
25
25
  error: string;
26
26
  touched?: boolean;
@@ -2,7 +2,7 @@ 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-2c4790e1.js";
5
+ import { F as I } from "./fieldText-17fcba4f.js";
6
6
  import { D as E } from "./dropdown-18c58189.js";
7
7
  import { S as T } from "./calendarArrow-44c7e60e.js";
8
8
  import { registerLocale as j } from "react-datepicker";
@@ -1,10 +1,10 @@
1
- import { D as t } from "./datePicker-e400f01d.js";
2
- import { r as A } from "./datePicker-e400f01d.js";
1
+ import { D as t } from "./datePicker-322bcafa.js";
2
+ import { r as A } from "./datePicker-322bcafa.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-2c4790e1.js";
7
+ import "./fieldText-17fcba4f.js";
8
8
  import "./clear-53660571.js";
9
9
  import "./openEye-950159cb.js";
10
10
  import "./baseIconButton-251479f7.js";
@@ -7,48 +7,48 @@ import { B as tn } from "./baseIconButton-251479f7.js";
7
7
  import { S as on } from "./spinLoader-c4a53718.js";
8
8
  import { M as sn } from "./maxValueDisplay-9be01a75.js";
9
9
  import { FieldLabel as an } from "./fieldLabel.js";
10
- const cn = "_collapsed_p9bm7_13", rn = "_field_p9bm7_25", ln = "_placeholder_p9bm7_50", pn = "_disabled_p9bm7_53", dn = "_error_p9bm7_56", _n = "_touched_p9bm7_56", mn = "_input_p9bm7_75", un = "_icon_p9bm7_1", fn = "_text_p9bm7_173", hn = {
11
- "icon-container": "_icon-container_p9bm7_1",
12
- "icon-container-additional": "_icon-container-additional_p9bm7_1",
13
- "icon-container-end": "_icon-container-end_p9bm7_1",
14
- "icon-container-start": "_icon-container-start_p9bm7_1",
10
+ const cn = "_collapsed_1k31n_13", rn = "_field_1k31n_25", ln = "_placeholder_1k31n_50", dn = "_disabled_1k31n_53", _n = "_error_1k31n_56", pn = "_touched_1k31n_56", un = "_input_1k31n_75", mn = "_icon_1k31n_1", fn = "_text_1k31n_173", hn = {
11
+ "icon-container": "_icon-container_1k31n_1",
12
+ "icon-container-additional": "_icon-container-additional_1k31n_1",
13
+ "icon-container-end": "_icon-container-end_1k31n_1",
14
+ "icon-container-start": "_icon-container-start_1k31n_1",
15
15
  collapsed: cn,
16
16
  field: rn,
17
- "default-width": "_default-width_p9bm7_37",
17
+ "default-width": "_default-width_1k31n_37",
18
18
  placeholder: ln,
19
- disabled: pn,
20
- error: dn,
21
- touched: _n,
22
- "max-length-display": "_max-length-display_p9bm7_63",
23
- "input-container": "_input-container_p9bm7_75",
24
- "type-password": "_type-password_p9bm7_79",
25
- input: mn,
26
- "eye-icon": "_eye-icon_p9bm7_83",
27
- icon: un,
28
- "start-icon": "_start-icon_p9bm7_129",
29
- "clear-icon": "_clear-icon_p9bm7_130",
30
- "additional-content": "_additional-content_p9bm7_166",
19
+ disabled: dn,
20
+ error: _n,
21
+ touched: pn,
22
+ "max-length-display": "_max-length-display_1k31n_63",
23
+ "input-container": "_input-container_1k31n_75",
24
+ "type-password": "_type-password_1k31n_79",
25
+ input: un,
26
+ "eye-icon": "_eye-icon_1k31n_83",
27
+ icon: mn,
28
+ "start-icon": "_start-icon_1k31n_129",
29
+ "clear-icon": "_clear-icon_1k31n_130",
30
+ "additional-content": "_additional-content_1k31n_166",
31
31
  text: fn,
32
- "error-text": "_error-text_p9bm7_193",
33
- "help-text": "_help-text_p9bm7_197"
32
+ "error-text": "_error-text_1k31n_193",
33
+ "help-text": "_help-text_1k31n_197"
34
34
  }, e = Z.bind(hn), Mn = W(
35
35
  ({
36
36
  value: o = "",
37
- className: v,
38
- classNameHelpText: C,
37
+ className: b,
38
+ classNameHelpText: v,
39
39
  error: r,
40
- placeholder: m,
40
+ placeholder: u,
41
41
  disabled: a = !1,
42
- onChange: T,
43
- touched: u = !1,
44
- title: V,
42
+ onChange: C,
43
+ touched: m = !1,
44
+ title: T,
45
45
  label: l,
46
- helpText: p,
47
- defaultWidth: k = !0,
46
+ helpText: d,
47
+ defaultWidth: V = !0,
48
48
  startIcon: f,
49
49
  endIcon: h,
50
50
  clearable: I = !1,
51
- onClear: b,
51
+ onClear: k,
52
52
  isRequired: x = !1,
53
53
  hasDoubleMessage: L = !1,
54
54
  type: c = "text",
@@ -62,14 +62,14 @@ const cn = "_collapsed_p9bm7_13", rn = "_field_p9bm7_25", ln = "_placeholder_p9b
62
62
  },
63
63
  ...$
64
64
  }, z) => {
65
- const A = X(null), d = z || A, w = Y(), [N, y] = E(!1), [g, S] = E(!1), G = (t) => {
65
+ const A = X(null), _ = z || A, w = Y(), [N, y] = E(!1), [g, S] = E(!1), G = (t) => {
66
66
  y(!0), O(t);
67
67
  }, J = (t) => {
68
68
  y(!1), U(t);
69
69
  }, K = () => {
70
70
  var t;
71
- b && (b(o), (t = d.current) == null || t.focus());
72
- }, F = P && r && u, D = /* @__PURE__ */ n("span", { className: e("text", "help-text", C), children: p }), Q = () => c !== "password" ? c : g ? "text" : "password", M = (t) => {
71
+ k && (k(o), (t = _.current) == null || t.focus());
72
+ }, F = P && r && m, D = /* @__PURE__ */ n("span", { className: e("text", "help-text", v), children: d }), Q = () => c !== "password" ? c : g ? "text" : "password", M = (t) => {
73
73
  t.preventDefault(), S(!0);
74
74
  }, i = (t) => {
75
75
  t.preventDefault(), S(!1);
@@ -79,22 +79,22 @@ const cn = "_collapsed_p9bm7_13", rn = "_field_p9bm7_25", ln = "_placeholder_p9b
79
79
  /* @__PURE__ */ s(
80
80
  "div",
81
81
  {
82
- className: e("field", v, {
82
+ className: e("field", b, {
83
83
  error: r,
84
- touched: u,
84
+ touched: m,
85
85
  disabled: a,
86
- "default-width": k,
86
+ "default-width": V,
87
87
  collapsed: R && !N && !o
88
88
  }),
89
- title: V,
89
+ title: T,
90
90
  children: [
91
91
  j ? /* @__PURE__ */ n(on, {}) : f && /* @__PURE__ */ n(
92
92
  "span",
93
93
  {
94
94
  className: e("icon-container-start"),
95
95
  onClick: () => {
96
- var _;
97
- (_ = d.current) == null || _.focus();
96
+ var p;
97
+ (p = _.current) == null || p.focus();
98
98
  },
99
99
  children: /* @__PURE__ */ n("span", { className: e("icon", { "start-icon": !N }), children: f })
100
100
  }
@@ -103,13 +103,13 @@ const cn = "_collapsed_p9bm7_13", rn = "_field_p9bm7_25", ln = "_placeholder_p9b
103
103
  /* @__PURE__ */ n(
104
104
  "input",
105
105
  {
106
- ref: d,
106
+ ref: _,
107
107
  type: Q(),
108
108
  className: e("input"),
109
109
  value: o,
110
110
  disabled: a,
111
111
  id: w,
112
- onChange: T,
112
+ onChange: C,
113
113
  onFocus: G,
114
114
  onBlur: J,
115
115
  ...$
@@ -128,8 +128,8 @@ const cn = "_collapsed_p9bm7_13", rn = "_field_p9bm7_25", ln = "_placeholder_p9b
128
128
  children: g ? /* @__PURE__ */ n(nn, {}) : /* @__PURE__ */ n(en, {})
129
129
  }
130
130
  ),
131
- m && !o && /* @__PURE__ */ s("span", { className: e("placeholder"), children: [
132
- m,
131
+ u && !o && /* @__PURE__ */ s("span", { className: e("placeholder"), children: [
132
+ u,
133
133
  x && !l && /* @__PURE__ */ n("span", { className: e("asterisk") })
134
134
  ] })
135
135
  ] }),
@@ -155,10 +155,10 @@ const cn = "_collapsed_p9bm7_13", rn = "_field_p9bm7_25", ln = "_placeholder_p9b
155
155
  ]
156
156
  }
157
157
  ),
158
- (F || p) && /* @__PURE__ */ n("div", { className: e("additional-content", { disabled: a }), children: F ? /* @__PURE__ */ s(B, { children: [
158
+ (F || d) && /* @__PURE__ */ n("div", { className: e("additional-content", { disabled: a }), children: F ? /* @__PURE__ */ s(B, { children: [
159
159
  /* @__PURE__ */ n("span", { className: e("text", "error-text"), children: r }),
160
160
  L && D
161
- ] }) : p && D })
161
+ ] }) : d && D })
162
162
  ] });
163
163
  }
164
164
  );
package/dist/fieldText.js CHANGED
@@ -1,4 +1,4 @@
1
- import { F as o } from "./fieldText-2c4790e1.js";
1
+ import { F as o } from "./fieldText-17fcba4f.js";
2
2
  import "react/jsx-runtime";
3
3
  import "react";
4
4
  import "./bind-06a7ff84.js";
package/dist/index.js CHANGED
@@ -4,18 +4,18 @@ import { B as y } from "./breadcrumbs-8e5ca8d7.js";
4
4
  import { B as T } from "./bubblesLoader-f3ffa240.js";
5
5
  import { B as h } from "./button-97d9e587.js";
6
6
  import { C as v } from "./checkbox-ed6cc375.js";
7
- import { D as w } from "./datePicker-e400f01d.js";
7
+ import { D as w } from "./datePicker-322bcafa.js";
8
8
  import "react-datepicker";
9
9
  import { D as E } from "./dropdown-18c58189.js";
10
10
  import { FieldLabel as R } from "./fieldLabel.js";
11
11
  import { F as U } from "./fieldNumber-d1b5a7a1.js";
12
- import { F as J } from "./fieldText-2c4790e1.js";
12
+ import { F as J } from "./fieldText-17fcba4f.js";
13
13
  import { F as z } from "./fieldTextFlex-2f51c173.js";
14
14
  import { FileDropArea as W } from "./fileDropArea.js";
15
15
  import { FiltersButton as j } from "./filtersButton.js";
16
16
  import { Modal as K } from "./modal.js";
17
17
  import { MultipleAutocomplete as V, SingleAutocomplete as Y } from "./autocompletes.js";
18
- import { P as _ } from "./pagination-5cc0ebdd.js";
18
+ import { P as _ } from "./pagination-e77d76d8.js";
19
19
  import { Popover as oo } from "./popover.js";
20
20
  import { R as eo } from "./radio-62546efa.js";
21
21
  import { S as to } from "./selection-9124d029.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-2c4790e1.js";
6
+ import { F as j } from "./fieldText-17fcba4f.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,4 +1,4 @@
1
- import { P as t } from "./pagination-5cc0ebdd.js";
1
+ import { P as t } from "./pagination-e77d76d8.js";
2
2
  import "react/jsx-runtime";
3
3
  import "./bind-06a7ff84.js";
4
4
  import "react";
@@ -6,7 +6,7 @@ import "./popover.js";
6
6
  import "@floating-ui/react";
7
7
  import "./floatingUi-41f8c7b5.js";
8
8
  import "./button-97d9e587.js";
9
- import "./fieldText-2c4790e1.js";
9
+ import "./fieldText-17fcba4f.js";
10
10
  import "./clear-53660571.js";
11
11
  import "./openEye-950159cb.js";
12
12
  import "./baseIconButton-251479f7.js";