@reportportal/ui-kit 0.0.1-alpha.238 → 0.0.1-alpha.239

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.
Files changed (37) hide show
  1. package/dist/autocompletes.js +890 -75
  2. package/dist/calendarArrow-44c7e60e.js +5 -0
  3. package/dist/components/icons/index.d.ts +1 -0
  4. package/dist/components/pagination/itemsCounter/itemCounter.d.ts +2 -1
  5. package/dist/components/pagination/pagination.d.ts +2 -1
  6. package/dist/components/table/types.d.ts +1 -0
  7. package/dist/constants-85822a6b.js +6 -0
  8. package/dist/datePicker-09dd025d.js +229 -0
  9. package/dist/datePicker.js +23 -62
  10. package/dist/{fieldNumber-c9795245.js → fieldNumber-b4aa4d7e.js} +23 -22
  11. package/dist/fieldNumber.js +3 -2
  12. package/dist/fieldText-4a8e5496.js +167 -0
  13. package/dist/fieldText.js +4 -65
  14. package/dist/icons.js +35 -31
  15. package/dist/index.js +182 -176
  16. package/dist/minus-2857540f.js +5 -0
  17. package/dist/modal.js +166 -18
  18. package/dist/openedEye-8fa4c67d.js +6 -0
  19. package/dist/pagination-535d600a.js +370 -0
  20. package/dist/pagination.js +11 -64
  21. package/dist/plus-199fb2a8.js +5 -0
  22. package/dist/prevPage-87faf576.js +6 -0
  23. package/dist/radio.js +3 -3
  24. package/dist/radioGroup-0c132c2e.js +77 -0
  25. package/dist/sortable.js +319 -40
  26. package/dist/style.css +2 -2
  27. package/dist/table-e0fd9727.js +1157 -0
  28. package/dist/table.js +1 -1
  29. package/package.json +1 -1
  30. package/dist/index-7ddba309.js +0 -1639
  31. package/dist/index-a13c9a87.js +0 -172
  32. package/dist/plus-0929dda4.js +0 -6
  33. package/dist/prevPage-1c4a826f.js +0 -9
  34. package/dist/radio-62546efa.js +0 -76
  35. package/dist/radioGroup-183d7a6f.js +0 -6
  36. package/dist/table-4d35951e.js +0 -1150
  37. package/dist/treeSortableItem-301dbd92.js +0 -298
@@ -0,0 +1,167 @@
1
+ import { jsx as n, jsxs as s, Fragment as E } from "react/jsx-runtime";
2
+ import { forwardRef as W, useRef as X, useId as Y, useState as b } from "react";
3
+ import { c as Z } from "./bind-06a7ff84.js";
4
+ import { S as q } from "./clear-53660571.js";
5
+ import { a as nn, S as en } from "./openedEye-8fa4c67d.js";
6
+ import { B as tn } from "./baseIconButton-251479f7.js";
7
+ import { S as on } from "./spinLoader-c4a53718.js";
8
+ import { M as sn } from "./maxValueDisplay-9be01a75.js";
9
+ import { FieldLabel as an } from "./fieldLabel.js";
10
+ const cn = "_collapsed_18d9y_11", rn = "_field_18d9y_23", dn = "_placeholder_18d9y_48", ln = "_disabled_18d9y_51", _n = "_error_18d9y_54", pn = "_touched_18d9y_54", un = "_input_18d9y_73", mn = "_icon_18d9y_1", fn = "_text_18d9y_171", hn = {
11
+ "icon-container": "_icon-container_18d9y_1",
12
+ "icon-container-additional": "_icon-container-additional_18d9y_1",
13
+ "icon-container-end": "_icon-container-end_18d9y_1",
14
+ "icon-container-start": "_icon-container-start_18d9y_1",
15
+ collapsed: cn,
16
+ field: rn,
17
+ "default-width": "_default-width_18d9y_35",
18
+ placeholder: dn,
19
+ disabled: ln,
20
+ error: _n,
21
+ touched: pn,
22
+ "max-length-display": "_max-length-display_18d9y_61",
23
+ "input-container": "_input-container_18d9y_73",
24
+ "type-password": "_type-password_18d9y_77",
25
+ input: un,
26
+ "eye-icon": "_eye-icon_18d9y_81",
27
+ icon: mn,
28
+ "start-icon": "_start-icon_18d9y_127",
29
+ "clear-icon": "_clear-icon_18d9y_128",
30
+ "additional-content": "_additional-content_18d9y_164",
31
+ text: fn,
32
+ "error-text": "_error-text_18d9y_191",
33
+ "help-text": "_help-text_18d9y_195"
34
+ }, e = Z.bind(hn), Bn = W(
35
+ ({
36
+ value: o = "",
37
+ className: v,
38
+ classNameHelpText: C,
39
+ error: r,
40
+ placeholder: u,
41
+ disabled: a = !1,
42
+ onChange: T,
43
+ touched: m = !1,
44
+ title: V,
45
+ label: d,
46
+ helpText: l,
47
+ defaultWidth: k = !0,
48
+ startIcon: f,
49
+ endIcon: h,
50
+ clearable: I = !1,
51
+ onClear: y,
52
+ isRequired: x = !1,
53
+ hasDoubleMessage: L = !1,
54
+ type: c = "text",
55
+ displayError: P = !0,
56
+ collapsible: R = !1,
57
+ loading: j = !1,
58
+ maxLengthDisplay: H,
59
+ onFocus: O = () => {
60
+ },
61
+ onBlur: U = () => {
62
+ },
63
+ ...$
64
+ }, z) => {
65
+ const A = X(null), _ = z || A, w = Y(), [N, g] = b(!1), [S, F] = b(!1), G = (t) => {
66
+ g(!0), O(t);
67
+ }, J = (t) => {
68
+ g(!1), U(t);
69
+ }, K = () => {
70
+ var t;
71
+ y && (y(o), (t = _.current) == null || t.focus());
72
+ }, D = P && r && m, M = /* @__PURE__ */ n("span", { className: e("text", "help-text", C), children: l }), Q = () => c !== "password" ? c : S ? "text" : "password", B = (t) => {
73
+ t.preventDefault(), F(!0);
74
+ }, i = (t) => {
75
+ t.preventDefault(), F(!1);
76
+ };
77
+ return /* @__PURE__ */ s(E, { children: [
78
+ d && /* @__PURE__ */ n(an, { isRequired: x, htmlFor: w, children: d }),
79
+ /* @__PURE__ */ s(
80
+ "div",
81
+ {
82
+ className: e("field", v, {
83
+ error: r,
84
+ touched: m,
85
+ disabled: a,
86
+ "default-width": k,
87
+ collapsed: R && !N && !o
88
+ }),
89
+ title: V,
90
+ children: [
91
+ j ? /* @__PURE__ */ n(on, {}) : f && /* @__PURE__ */ n(
92
+ "span",
93
+ {
94
+ className: e("icon-container-start"),
95
+ onClick: () => {
96
+ var p;
97
+ (p = _.current) == null || p.focus();
98
+ },
99
+ children: /* @__PURE__ */ n("span", { className: e("icon", { "start-icon": !N }), children: f })
100
+ }
101
+ ),
102
+ /* @__PURE__ */ s("span", { className: e("input-container", `type-${c}`), children: [
103
+ /* @__PURE__ */ n(
104
+ "input",
105
+ {
106
+ ref: _,
107
+ type: Q(),
108
+ className: e("input"),
109
+ value: o,
110
+ disabled: a,
111
+ id: w,
112
+ onChange: T,
113
+ onFocus: G,
114
+ onBlur: J,
115
+ ...$
116
+ }
117
+ ),
118
+ c === "password" && o && /* @__PURE__ */ n(
119
+ tn,
120
+ {
121
+ className: e("eye-icon"),
122
+ onMouseDown: B,
123
+ onMouseLeave: i,
124
+ onMouseUp: i,
125
+ onTouchStart: B,
126
+ onTouchEnd: i,
127
+ onTouchCancel: i,
128
+ children: S ? /* @__PURE__ */ n(nn, {}) : /* @__PURE__ */ n(en, {})
129
+ }
130
+ ),
131
+ u && !o && /* @__PURE__ */ s("span", { className: e("placeholder"), children: [
132
+ u,
133
+ x && !d && /* @__PURE__ */ n("span", { className: e("asterisk") })
134
+ ] })
135
+ ] }),
136
+ /* @__PURE__ */ n(
137
+ sn,
138
+ {
139
+ className: e("max-length-display"),
140
+ value: o.length,
141
+ maxValue: H
142
+ }
143
+ ),
144
+ I && o.length > 0 && /* @__PURE__ */ n("span", { className: e("icon-container-end"), children: /* @__PURE__ */ n(
145
+ "button",
146
+ {
147
+ type: "button",
148
+ className: e("clear-icon", { disabled: a }),
149
+ onClick: K,
150
+ onMouseDown: (t) => t.preventDefault(),
151
+ children: /* @__PURE__ */ n(q, {})
152
+ }
153
+ ) }),
154
+ h && /* @__PURE__ */ n("span", { className: e("icon-container-end"), children: /* @__PURE__ */ n("span", { className: e("icon"), children: h }) })
155
+ ]
156
+ }
157
+ ),
158
+ (D || l) && /* @__PURE__ */ n("div", { className: e("additional-content", { disabled: a }), children: D ? /* @__PURE__ */ s(E, { children: [
159
+ /* @__PURE__ */ n("span", { className: e("text", "error-text"), children: r }),
160
+ L && M
161
+ ] }) : l && M })
162
+ ] });
163
+ }
164
+ );
165
+ export {
166
+ Bn as F
167
+ };
package/dist/fieldText.js CHANGED
@@ -1,74 +1,13 @@
1
- import { F as o } from "./index-7ddba309.js";
1
+ import { F as o } from "./fieldText-4a8e5496.js";
2
2
  import "react/jsx-runtime";
3
3
  import "react";
4
4
  import "./bind-06a7ff84.js";
5
- import "rc-scrollbars";
6
- import "./bubblesLoader-f3ffa240.js";
7
- import "./button-7ab874f3.js";
8
- import "./plus-0929dda4.js";
9
- import "./isEmpty-ccacb5ff.js";
10
- import "react-dom";
11
- import "downshift";
12
- import "@floating-ui/react";
13
5
  import "./clear-53660571.js";
14
- import "./prevPage-1c4a826f.js";
15
- import "./adaptiveTagList.js";
16
- import "./close-4d480ef7.js";
17
- import "./actionMenu-f8a2f5bb.js";
18
- import "./details-dbb1530b.js";
6
+ import "./openedEye-8fa4c67d.js";
19
7
  import "./baseIconButton-251479f7.js";
20
- import "./popover.js";
21
- import "./floatingUi-46f5b896.js";
22
- import "./index-d6e02727.js";
23
- import "./xls-995781cc.js";
24
- import "./breadcrumbs-5730e318.js";
25
- import "es-toolkit";
26
- import "./tree-c3dd3d45.js";
27
- import "./bulkPanel.js";
28
- import "./useOnClickOutside-8f7d68a1.js";
29
- import "react-dnd";
30
- import "react-dnd-html5-backend";
31
- import "./keyCodes-f63c0e11.js";
32
- import "./selection-da1a3528.js";
33
- import "./chip.js";
34
- import "./tooltip.js";
35
- import "./chevronDownDropdown-0260bb66.js";
36
- import "./warning-537ead32.js";
37
- import "./checkbox-76aa8f97.js";
38
- import "react-datepicker/dist/es/index.js";
39
- import "./dropdown-d2a05471.js";
40
- import "@floating-ui/react-dom";
41
- import "./dropdown-0260bb66.js";
42
- import "./fieldLabel.js";
43
- import "./useEllipsisTitle-462fa254.js";
44
- import "react-datepicker";
45
- import "./fieldNumber-c9795245.js";
46
- import "./fieldTextFlex-2f51c173.js";
47
- import "./maxValueDisplay-9be01a75.js";
48
- import "./fileDropArea.js";
49
- import "react-dropzone";
50
- import "./filtersButton.js";
51
- import "./filterOutline-819b4b0d.js";
52
- import "./filterItem.js";
53
- import "./issueList.js";
54
- import "./index-a13c9a87.js";
55
- import "framer-motion";
56
- import "./useWindowResize-a7e1ac92.js";
57
- import "./radio-62546efa.js";
58
- import "./segmentedControl.js";
59
8
  import "./spinLoader-c4a53718.js";
60
- import "./systemAlert.js";
61
- import "./success-8fd8bd2c.js";
62
- import "./systemMessage-924fdaa6.js";
63
- import "./treeSortableItem-301dbd92.js";
64
- import "./useTreeSortable-bc631689.js";
65
- import "./common.js";
66
- import "./table-4d35951e.js";
67
- import "react-resizable";
68
- import "./resizeColumn-46b5b30f.js";
69
- import "./themeProvider-46c2be7b.js";
70
- import "./toggle-304107fa.js";
71
- import "./sidePanel.js";
9
+ import "./maxValueDisplay-9be01a75.js";
10
+ import "./fieldLabel.js";
72
11
  export {
73
12
  o as FieldText,
74
13
  o as default