@reportportal/ui-kit 0.0.1-alpha.247 → 0.0.1-alpha.248
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.
- package/dist/autocompletes.js +2 -2
- package/dist/common/hooks/useCapsLock.d.ts +13 -3
- package/dist/common/hooks.js +1 -1
- package/dist/{datePicker-21db317e.js → datePicker-cd105ff4.js} +1 -1
- package/dist/datePicker.js +4 -4
- package/dist/fieldText-2dded01c.js +190 -0
- package/dist/fieldText.js +2 -2
- package/dist/index.js +4 -4
- package/dist/{pagination-09ed6bb0.js → pagination-26031b8c.js} +1 -1
- package/dist/pagination.js +3 -3
- package/dist/style.css +1 -1
- package/dist/useCapsLock-428c77b6.js +24 -0
- package/package.json +1 -1
- package/dist/fieldText-88af67ae.js +0 -189
- package/dist/useCapsLock-65753959.js +0 -21
package/dist/autocompletes.js
CHANGED
|
@@ -9,7 +9,7 @@ import { i as Me } from "./isEmpty-ccacb5ff.js";
|
|
|
9
9
|
import { createPortal as Je } from "react-dom";
|
|
10
10
|
import _e from "downshift";
|
|
11
11
|
import { useFloating as Be, autoUpdate as Oe, flip as Qe, size as Ze } from "@floating-ui/react";
|
|
12
|
-
import { F as qe } from "./fieldText-
|
|
12
|
+
import { F as qe } from "./fieldText-2dded01c.js";
|
|
13
13
|
import { S as Te } from "./dropdown-0260bb66.js";
|
|
14
14
|
import { E as $e, A as Ue, T as Ve } from "./constants-85822a6b.js";
|
|
15
15
|
import { S as et } from "./close-4d480ef7.js";
|
|
@@ -21,7 +21,7 @@ import "./maxValueDisplay-9be01a75.js";
|
|
|
21
21
|
import "./fieldLabel.js";
|
|
22
22
|
import "react-dnd";
|
|
23
23
|
import "react-dnd-html5-backend";
|
|
24
|
-
import "./useCapsLock-
|
|
24
|
+
import "./useCapsLock-428c77b6.js";
|
|
25
25
|
import "./tooltip.js";
|
|
26
26
|
import "./floatingUi-46f5b896.js";
|
|
27
27
|
const ot = "_disabled_1rpph_43", st = "_input_1rpph_107", nt = {
|
|
@@ -1,10 +1,20 @@
|
|
|
1
|
+
type CapsLockEvent = {
|
|
2
|
+
getModifierState?: (key: string) => boolean;
|
|
3
|
+
nativeEvent?: {
|
|
4
|
+
getModifierState?: (key: string) => boolean;
|
|
5
|
+
};
|
|
6
|
+
key?: string;
|
|
7
|
+
};
|
|
1
8
|
/**
|
|
2
9
|
* Tracks Caps Lock state via window-level keyboard events.
|
|
3
10
|
* Also exposes syncFromMouseEvent so callers can re-read the real OS state
|
|
4
|
-
* from a MouseEvent (e.g. onMouseDown on the input)
|
|
5
|
-
*
|
|
11
|
+
* from a MouseEvent (e.g. onMouseDown on the input).
|
|
12
|
+
*
|
|
13
|
+
* Optional-chained: autofill, password managers, and some browser/extension
|
|
14
|
+
* events fire keydown/mousedown without getModifierState — calling it raw throws.
|
|
6
15
|
*/
|
|
7
16
|
export declare const useCapsLock: () => {
|
|
8
17
|
capsLockOn: boolean;
|
|
9
|
-
syncFromMouseEvent: (event:
|
|
18
|
+
syncFromMouseEvent: (event: CapsLockEvent) => void;
|
|
10
19
|
};
|
|
20
|
+
export {};
|
package/dist/common/hooks.js
CHANGED
|
@@ -4,7 +4,7 @@ import { useCallback as D } from "react";
|
|
|
4
4
|
import { i as x } from "../isEmpty-ccacb5ff.js";
|
|
5
5
|
import { u as V } from "../useWindowResize-a7e1ac92.js";
|
|
6
6
|
import { u as j } from "../useEllipsisTitle-462fa254.js";
|
|
7
|
-
import { u as v } from "../useCapsLock-
|
|
7
|
+
import { u as v } from "../useCapsLock-428c77b6.js";
|
|
8
8
|
import "react-dnd";
|
|
9
9
|
import "react-dnd-html5-backend";
|
|
10
10
|
import "../common.js";
|
|
@@ -2,7 +2,7 @@ import { jsxs as x, Fragment as z, jsx as a } from "react/jsx-runtime";
|
|
|
2
2
|
import { useMemo as v, forwardRef as J, useRef as K } from "react";
|
|
3
3
|
import I from "react-datepicker/dist/es/index.js";
|
|
4
4
|
import { c as Y } from "./bind-06a7ff84.js";
|
|
5
|
-
import { F as Q } from "./fieldText-
|
|
5
|
+
import { F as Q } from "./fieldText-2dded01c.js";
|
|
6
6
|
import { D as L } from "./dropdown-d2a05471.js";
|
|
7
7
|
import { S as B } from "./calendarArrow-44c7e60e.js";
|
|
8
8
|
import { registerLocale as X } from "react-datepicker";
|
package/dist/datePicker.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { D as t } from "./datePicker-
|
|
2
|
-
import { r as I } from "./datePicker-
|
|
1
|
+
import { D as t } from "./datePicker-cd105ff4.js";
|
|
2
|
+
import { r as I } from "./datePicker-cd105ff4.js";
|
|
3
3
|
import "react/jsx-runtime";
|
|
4
4
|
import "react";
|
|
5
5
|
import "react-datepicker/dist/es/index.js";
|
|
6
6
|
import "./bind-06a7ff84.js";
|
|
7
|
-
import "./fieldText-
|
|
7
|
+
import "./fieldText-2dded01c.js";
|
|
8
8
|
import "./clear-53660571.js";
|
|
9
9
|
import "./capslockIcon-b100b9d6.js";
|
|
10
10
|
import "./baseIconButton-251479f7.js";
|
|
@@ -13,7 +13,7 @@ import "./maxValueDisplay-9be01a75.js";
|
|
|
13
13
|
import "./fieldLabel.js";
|
|
14
14
|
import "react-dnd";
|
|
15
15
|
import "react-dnd-html5-backend";
|
|
16
|
-
import "./useCapsLock-
|
|
16
|
+
import "./useCapsLock-428c77b6.js";
|
|
17
17
|
import "./tooltip.js";
|
|
18
18
|
import "react-dom";
|
|
19
19
|
import "@floating-ui/react";
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
import { jsx as t, jsxs as s, Fragment as v } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as q, useRef as tt, useId as nt, useState as E } from "react";
|
|
3
|
+
import { c as ot } from "./bind-06a7ff84.js";
|
|
4
|
+
import { S as et } from "./clear-53660571.js";
|
|
5
|
+
import { b as ct, a as st, S as at } from "./capslockIcon-b100b9d6.js";
|
|
6
|
+
import { B as it } from "./baseIconButton-251479f7.js";
|
|
7
|
+
import { S as rt } from "./spinLoader-c4a53718.js";
|
|
8
|
+
import { M as lt } from "./maxValueDisplay-9be01a75.js";
|
|
9
|
+
import { FieldLabel as pt } from "./fieldLabel.js";
|
|
10
|
+
import "react-dnd";
|
|
11
|
+
import "react-dnd-html5-backend";
|
|
12
|
+
import { u as _t } from "./useCapsLock-428c77b6.js";
|
|
13
|
+
import { Tooltip as dt } from "./tooltip.js";
|
|
14
|
+
const ut = "_collapsed_1fkug_11", ft = "_field_1fkug_23", mt = "_placeholder_1fkug_48", kt = "_disabled_1fkug_51", ht = "_error_1fkug_54", gt = "_touched_1fkug_54", xt = "_input_1fkug_73", wt = "_icon_1fkug_1", Nt = "_text_1fkug_208", yt = {
|
|
15
|
+
"icon-container": "_icon-container_1fkug_1",
|
|
16
|
+
"icon-container-additional": "_icon-container-additional_1fkug_1",
|
|
17
|
+
"icon-container-end": "_icon-container-end_1fkug_1",
|
|
18
|
+
"icon-container-start": "_icon-container-start_1fkug_1",
|
|
19
|
+
collapsed: ut,
|
|
20
|
+
field: ft,
|
|
21
|
+
"default-width": "_default-width_1fkug_35",
|
|
22
|
+
placeholder: mt,
|
|
23
|
+
disabled: kt,
|
|
24
|
+
error: ht,
|
|
25
|
+
touched: gt,
|
|
26
|
+
"max-length-display": "_max-length-display_1fkug_61",
|
|
27
|
+
"input-container": "_input-container_1fkug_73",
|
|
28
|
+
"type-password": "_type-password_1fkug_77",
|
|
29
|
+
input: xt,
|
|
30
|
+
"with-caps-lock": "_with-caps-lock_1fkug_81",
|
|
31
|
+
"caps-lock-tooltip-wrapper": "_caps-lock-tooltip-wrapper_1fkug_84",
|
|
32
|
+
"caps-lock-tooltip-content": "_caps-lock-tooltip-content_1fkug_97",
|
|
33
|
+
"caps-lock-icon": "_caps-lock-icon_1fkug_108",
|
|
34
|
+
"eye-icon": "_eye-icon_1fkug_118",
|
|
35
|
+
icon: wt,
|
|
36
|
+
"start-icon": "_start-icon_1fkug_164",
|
|
37
|
+
"clear-icon": "_clear-icon_1fkug_165",
|
|
38
|
+
"additional-content": "_additional-content_1fkug_201",
|
|
39
|
+
text: Nt,
|
|
40
|
+
"error-text": "_error-text_1fkug_228",
|
|
41
|
+
"help-text": "_help-text_1fkug_232"
|
|
42
|
+
}, o = ot.bind(yt), Tt = q(
|
|
43
|
+
({
|
|
44
|
+
value: e = "",
|
|
45
|
+
className: B,
|
|
46
|
+
classNameHelpText: I,
|
|
47
|
+
error: i,
|
|
48
|
+
placeholder: m,
|
|
49
|
+
disabled: c = !1,
|
|
50
|
+
onChange: V,
|
|
51
|
+
touched: k = !1,
|
|
52
|
+
title: D,
|
|
53
|
+
label: r,
|
|
54
|
+
helpText: l,
|
|
55
|
+
defaultWidth: L = !0,
|
|
56
|
+
startIcon: h,
|
|
57
|
+
endIcon: g,
|
|
58
|
+
clearable: P = !1,
|
|
59
|
+
onClear: x,
|
|
60
|
+
isRequired: w = !1,
|
|
61
|
+
hasDoubleMessage: R = !1,
|
|
62
|
+
type: a = "text",
|
|
63
|
+
displayError: T = !0,
|
|
64
|
+
collapsible: j = !1,
|
|
65
|
+
loading: H = !1,
|
|
66
|
+
maxLengthDisplay: O,
|
|
67
|
+
capsLockMessage: p,
|
|
68
|
+
onFocus: $ = () => {
|
|
69
|
+
},
|
|
70
|
+
onBlur: z = () => {
|
|
71
|
+
},
|
|
72
|
+
onMouseDown: _,
|
|
73
|
+
...A
|
|
74
|
+
}, G) => {
|
|
75
|
+
const J = tt(null), d = G || J, N = nt(), [u, y] = E(!1), [C, K] = E(!1), { capsLockOn: M, syncFromMouseEvent: Q } = _t(), F = !!p && u && M && e.length >= 1 && !c, U = (n) => {
|
|
76
|
+
y(!0), $(n);
|
|
77
|
+
}, W = (n) => {
|
|
78
|
+
y(!1), z(n);
|
|
79
|
+
}, X = () => {
|
|
80
|
+
var n;
|
|
81
|
+
x && (x(e), (n = d.current) == null || n.focus());
|
|
82
|
+
}, S = T && i && k, b = /* @__PURE__ */ t("span", { className: o("text", "help-text", I), children: l }), Y = () => a !== "password" ? a : C ? "text" : "password", Z = () => {
|
|
83
|
+
K((n) => !n);
|
|
84
|
+
};
|
|
85
|
+
return /* @__PURE__ */ s(v, { children: [
|
|
86
|
+
r && /* @__PURE__ */ t(pt, { isRequired: w, htmlFor: N, children: r }),
|
|
87
|
+
/* @__PURE__ */ s(
|
|
88
|
+
"div",
|
|
89
|
+
{
|
|
90
|
+
className: o("field", B, {
|
|
91
|
+
error: i,
|
|
92
|
+
touched: k,
|
|
93
|
+
disabled: c,
|
|
94
|
+
"default-width": L,
|
|
95
|
+
collapsed: j && !u && !e
|
|
96
|
+
}),
|
|
97
|
+
title: D,
|
|
98
|
+
children: [
|
|
99
|
+
H ? /* @__PURE__ */ t(rt, {}) : h && /* @__PURE__ */ t(
|
|
100
|
+
"span",
|
|
101
|
+
{
|
|
102
|
+
className: o("icon-container-start"),
|
|
103
|
+
onClick: () => {
|
|
104
|
+
var f;
|
|
105
|
+
(f = d.current) == null || f.focus();
|
|
106
|
+
},
|
|
107
|
+
children: /* @__PURE__ */ t("span", { className: o("icon", { "start-icon": !u }), children: h })
|
|
108
|
+
}
|
|
109
|
+
),
|
|
110
|
+
/* @__PURE__ */ s(
|
|
111
|
+
"span",
|
|
112
|
+
{
|
|
113
|
+
className: o("input-container", `type-${a}`, { "with-caps-lock": F }),
|
|
114
|
+
children: [
|
|
115
|
+
/* @__PURE__ */ t(
|
|
116
|
+
"input",
|
|
117
|
+
{
|
|
118
|
+
ref: d,
|
|
119
|
+
type: Y(),
|
|
120
|
+
className: o("input"),
|
|
121
|
+
value: e,
|
|
122
|
+
disabled: c,
|
|
123
|
+
id: N,
|
|
124
|
+
onChange: V,
|
|
125
|
+
...A,
|
|
126
|
+
onFocus: U,
|
|
127
|
+
onBlur: W,
|
|
128
|
+
onMouseDown: (n) => {
|
|
129
|
+
p && Q(n.nativeEvent ?? n), _ == null || _(n);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
),
|
|
133
|
+
F && /* @__PURE__ */ t(
|
|
134
|
+
dt,
|
|
135
|
+
{
|
|
136
|
+
content: p,
|
|
137
|
+
wrapperClassName: o("caps-lock-tooltip-wrapper"),
|
|
138
|
+
contentClassName: o("caps-lock-tooltip-content"),
|
|
139
|
+
wrapperTabIndex: -1,
|
|
140
|
+
children: /* @__PURE__ */ t("span", { className: o("caps-lock-icon"), onMouseDown: (n) => n.preventDefault(), children: /* @__PURE__ */ t(ct, {}) })
|
|
141
|
+
}
|
|
142
|
+
),
|
|
143
|
+
a === "password" && e && /* @__PURE__ */ t(
|
|
144
|
+
it,
|
|
145
|
+
{
|
|
146
|
+
className: o("eye-icon"),
|
|
147
|
+
onClick: Z,
|
|
148
|
+
onPointerDown: (n) => n.preventDefault(),
|
|
149
|
+
children: C ? /* @__PURE__ */ t(st, {}) : /* @__PURE__ */ t(at, {})
|
|
150
|
+
}
|
|
151
|
+
),
|
|
152
|
+
m && !e && /* @__PURE__ */ s("span", { className: o("placeholder"), children: [
|
|
153
|
+
m,
|
|
154
|
+
w && !r && /* @__PURE__ */ t("span", { className: o("asterisk") })
|
|
155
|
+
] })
|
|
156
|
+
]
|
|
157
|
+
}
|
|
158
|
+
),
|
|
159
|
+
/* @__PURE__ */ t(
|
|
160
|
+
lt,
|
|
161
|
+
{
|
|
162
|
+
className: o("max-length-display"),
|
|
163
|
+
value: e.length,
|
|
164
|
+
maxValue: O
|
|
165
|
+
}
|
|
166
|
+
),
|
|
167
|
+
P && e.length > 0 && /* @__PURE__ */ t("span", { className: o("icon-container-end"), children: /* @__PURE__ */ t(
|
|
168
|
+
"button",
|
|
169
|
+
{
|
|
170
|
+
type: "button",
|
|
171
|
+
className: o("clear-icon", { disabled: c }),
|
|
172
|
+
onClick: X,
|
|
173
|
+
onMouseDown: (n) => n.preventDefault(),
|
|
174
|
+
children: /* @__PURE__ */ t(et, {})
|
|
175
|
+
}
|
|
176
|
+
) }),
|
|
177
|
+
g && /* @__PURE__ */ t("span", { className: o("icon-container-end"), children: /* @__PURE__ */ t("span", { className: o("icon"), children: g }) })
|
|
178
|
+
]
|
|
179
|
+
}
|
|
180
|
+
),
|
|
181
|
+
(S || l) && /* @__PURE__ */ t("div", { className: o("additional-content", { disabled: c }), children: S ? /* @__PURE__ */ s(v, { children: [
|
|
182
|
+
/* @__PURE__ */ t("span", { className: o("text", "error-text"), children: i }),
|
|
183
|
+
R && b
|
|
184
|
+
] }) : l && b })
|
|
185
|
+
] });
|
|
186
|
+
}
|
|
187
|
+
);
|
|
188
|
+
export {
|
|
189
|
+
Tt as F
|
|
190
|
+
};
|
package/dist/fieldText.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as o } from "./fieldText-
|
|
1
|
+
import { F as o } from "./fieldText-2dded01c.js";
|
|
2
2
|
import "react/jsx-runtime";
|
|
3
3
|
import "react";
|
|
4
4
|
import "./bind-06a7ff84.js";
|
|
@@ -10,7 +10,7 @@ import "./maxValueDisplay-9be01a75.js";
|
|
|
10
10
|
import "./fieldLabel.js";
|
|
11
11
|
import "react-dnd";
|
|
12
12
|
import "react-dnd-html5-backend";
|
|
13
|
-
import "./useCapsLock-
|
|
13
|
+
import "./useCapsLock-428c77b6.js";
|
|
14
14
|
import "./tooltip.js";
|
|
15
15
|
import "react-dom";
|
|
16
16
|
import "@floating-ui/react";
|
package/dist/index.js
CHANGED
|
@@ -9,12 +9,12 @@ import { BulkPanel as V } from "./bulkPanel.js";
|
|
|
9
9
|
import { B as W } from "./button-7ab874f3.js";
|
|
10
10
|
import { C as j } from "./checkbox-76aa8f97.js";
|
|
11
11
|
import { Chip as K } from "./chip.js";
|
|
12
|
-
import { D as Y } from "./datePicker-
|
|
12
|
+
import { D as Y } from "./datePicker-cd105ff4.js";
|
|
13
13
|
import "react-datepicker";
|
|
14
14
|
import { D as $ } from "./dropdown-d2a05471.js";
|
|
15
15
|
import { FieldLabel as ro } from "./fieldLabel.js";
|
|
16
16
|
import { F as to } from "./fieldNumber-b4aa4d7e.js";
|
|
17
|
-
import { F as ao } from "./fieldText-
|
|
17
|
+
import { F as ao } from "./fieldText-2dded01c.js";
|
|
18
18
|
import { F as po } from "./fieldTextFlex-2f51c173.js";
|
|
19
19
|
import { FileDropArea as mo } from "./fileDropArea.js";
|
|
20
20
|
import { FiltersButton as Io } from "./filtersButton.js";
|
|
@@ -22,7 +22,7 @@ import { FilterItem as xo } from "./filterItem.js";
|
|
|
22
22
|
import { IssueList as uo } from "./issueList.js";
|
|
23
23
|
import { Modal as Co } from "./modal.js";
|
|
24
24
|
import { MultipleAutocomplete as Po, SingleAutocomplete as go } from "./autocompletes.js";
|
|
25
|
-
import { P as Fo } from "./pagination-
|
|
25
|
+
import { P as Fo } from "./pagination-26031b8c.js";
|
|
26
26
|
import { Popover as bo } from "./popover.js";
|
|
27
27
|
import { R as ho, a as Bo } from "./radioGroup-0c132c2e.js";
|
|
28
28
|
import { SegmentedControl as vo } from "./segmentedControl.js";
|
|
@@ -70,7 +70,7 @@ import "react-datepicker/dist/es/index.js";
|
|
|
70
70
|
import "@floating-ui/react-dom";
|
|
71
71
|
import "downshift";
|
|
72
72
|
import "./maxValueDisplay-9be01a75.js";
|
|
73
|
-
import "./useCapsLock-
|
|
73
|
+
import "./useCapsLock-428c77b6.js";
|
|
74
74
|
import "react-dropzone";
|
|
75
75
|
import "framer-motion";
|
|
76
76
|
import "./useWindowResize-a7e1ac92.js";
|
|
@@ -4,7 +4,7 @@ import { Tooltip as j } from "./tooltip.js";
|
|
|
4
4
|
import { useState as f } from "react";
|
|
5
5
|
import { Popover as A } from "./popover.js";
|
|
6
6
|
import { B as w } from "./button-7ab874f3.js";
|
|
7
|
-
import { F as B } from "./fieldText-
|
|
7
|
+
import { F as B } from "./fieldText-2dded01c.js";
|
|
8
8
|
import { B as y } from "./baseIconButton-251479f7.js";
|
|
9
9
|
import { S as z, a as S } from "./prevPage-87faf576.js";
|
|
10
10
|
const W = {
|
package/dist/pagination.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as t } from "./pagination-
|
|
1
|
+
import { P as t } from "./pagination-26031b8c.js";
|
|
2
2
|
import "react/jsx-runtime";
|
|
3
3
|
import "./bind-06a7ff84.js";
|
|
4
4
|
import "./tooltip.js";
|
|
@@ -8,7 +8,7 @@ import "@floating-ui/react";
|
|
|
8
8
|
import "./floatingUi-46f5b896.js";
|
|
9
9
|
import "./popover.js";
|
|
10
10
|
import "./button-7ab874f3.js";
|
|
11
|
-
import "./fieldText-
|
|
11
|
+
import "./fieldText-2dded01c.js";
|
|
12
12
|
import "./clear-53660571.js";
|
|
13
13
|
import "./capslockIcon-b100b9d6.js";
|
|
14
14
|
import "./baseIconButton-251479f7.js";
|
|
@@ -17,7 +17,7 @@ import "./maxValueDisplay-9be01a75.js";
|
|
|
17
17
|
import "./fieldLabel.js";
|
|
18
18
|
import "react-dnd";
|
|
19
19
|
import "react-dnd-html5-backend";
|
|
20
|
-
import "./useCapsLock-
|
|
20
|
+
import "./useCapsLock-428c77b6.js";
|
|
21
21
|
import "./prevPage-87faf576.js";
|
|
22
22
|
export {
|
|
23
23
|
t as Pagination,
|