@reportportal/ui-kit 0.0.1-alpha.140 → 0.0.1-alpha.141
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/adaptiveTagList.cjs +1 -0
- package/dist/attachedFile.cjs +1 -0
- package/dist/autocompletes.cjs +1 -0
- package/dist/baseIconButton-263e74dc.js +1 -0
- package/dist/baseIconButton.cjs +1 -0
- package/dist/bind-29baac98.js +5 -0
- package/dist/breadcrumbs-a11e7e56.js +1 -0
- package/dist/breadcrumbs.cjs +1 -0
- package/dist/bubblesLoader-98fdf0af.js +1 -0
- package/dist/bubblesLoader.cjs +1 -0
- package/dist/button-8456d133.js +1 -0
- package/dist/button.cjs +1 -0
- package/dist/calendarArrow-6c6d9356.js +1 -0
- package/dist/checkbox-d4cc648d.js +1 -0
- package/dist/checkbox.cjs +1 -0
- package/dist/chevronDownDropdown-6196562c.js +1 -0
- package/dist/clear-07e1c174.js +1 -0
- package/dist/close-82e2e274.js +1 -0
- package/dist/datePicker-245e845d.js +1 -0
- package/dist/datePicker.cjs +1 -0
- package/dist/dropdown-b56964c6.js +1 -0
- package/dist/dropdown-fa4cd19c.js +1 -0
- package/dist/dropdown.cjs +1 -0
- package/dist/fieldLabel.cjs +1 -0
- package/dist/fieldNumber-9fe044df.js +1 -0
- package/dist/fieldNumber.cjs +1 -0
- package/dist/fieldText-2af0d7db.js +1 -0
- package/dist/fieldText.cjs +1 -0
- package/dist/fieldTextFlex-c26b190d.js +1 -0
- package/dist/fieldTextFlex.cjs +1 -0
- package/dist/fileDropArea.cjs +1 -0
- package/dist/filterOutline-5f3f8591.js +1 -0
- package/dist/filtersButton.cjs +1 -0
- package/dist/floatingUi-97183bba.js +1 -0
- package/dist/icons.cjs +1 -0
- package/dist/index-4c0424bf.js +1 -0
- package/dist/index.cjs +1 -0
- package/dist/isEmpty-fe949e63.js +1 -0
- package/dist/keyCodes-b188a920.js +1 -0
- package/dist/maxValueDisplay-68f1f114.js +1 -0
- package/dist/maxValueDisplay.cjs +1 -0
- package/dist/minus-0debd2c6.js +1 -0
- package/dist/modal.cjs +1 -0
- package/dist/openEye-737c72d6.js +1 -0
- package/dist/pagination-fc5189f7.js +1 -0
- package/dist/pagination.cjs +1 -0
- package/dist/plus-b12abe9f.js +1 -0
- package/dist/popover.cjs +1 -0
- package/dist/prevPage-063b5d63.js +1 -0
- package/dist/radio-aba4677b.js +1 -0
- package/dist/radio.cjs +1 -0
- package/dist/selection-49b927d0.js +1 -0
- package/dist/selection.cjs +1 -0
- package/dist/sidePanel.cjs +1 -0
- package/dist/sortable.cjs +1 -0
- package/dist/spinLoader-9ebd776a.js +1 -0
- package/dist/spinLoader.cjs +1 -0
- package/dist/success-823e5446.js +1 -0
- package/dist/systemAlert.cjs +1 -0
- package/dist/systemMessage-1ae2764d.js +1 -0
- package/dist/systemMessage.cjs +1 -0
- package/dist/table-cd9f0ff3.js +1 -0
- package/dist/table.cjs +1 -0
- package/dist/themeProvider-4dfafca5.js +1 -0
- package/dist/themeProvider.cjs +1 -0
- package/dist/toggle-359b70d4.js +1 -0
- package/dist/toggle.cjs +1 -0
- package/dist/tooltip.cjs +1 -0
- package/dist/tree-4610ac42.js +1 -0
- package/dist/xls-3ed747b0.js +1 -0
- package/package.json +6 -8
- package/dist/adaptiveTagList.js +0 -189
- package/dist/attachedFile.js +0 -9
- package/dist/autocompletes.js +0 -779
- package/dist/baseIconButton-251479f7.js +0 -25
- package/dist/baseIconButton.js +0 -7
- package/dist/bind-06a7ff84.js +0 -41
- package/dist/breadcrumbs-8e5ca8d7.js +0 -183
- package/dist/breadcrumbs.js +0 -12
- package/dist/bubblesLoader-f3ffa240.js +0 -28
- package/dist/bubblesLoader.js +0 -7
- package/dist/button-97d9e587.js +0 -66
- package/dist/button.js +0 -8
- package/dist/calendarArrow-44c7e60e.js +0 -5
- package/dist/checkbox-ed6cc375.js +0 -73
- package/dist/checkbox.js +0 -9
- package/dist/chevronDownDropdown-66f5b1af.js +0 -7
- package/dist/clear-53660571.js +0 -5
- package/dist/close-4d480ef7.js +0 -5
- package/dist/datePicker-f8e0df24.js +0 -194
- package/dist/datePicker.js +0 -35
- package/dist/dropdown-0260bb66.js +0 -5
- package/dist/dropdown-893c692c.js +0 -634
- package/dist/dropdown.js +0 -27
- package/dist/fieldLabel.js +0 -18
- package/dist/fieldNumber-d1b5a7a1.js +0 -140
- package/dist/fieldNumber.js +0 -13
- package/dist/fieldText-1749da7a.js +0 -167
- package/dist/fieldText.js +0 -14
- package/dist/fieldTextFlex-2f51c173.js +0 -80
- package/dist/fieldTextFlex.js +0 -10
- package/dist/fileDropArea.js +0 -325
- package/dist/filterOutline-819b4b0d.js +0 -6
- package/dist/filtersButton.js +0 -25
- package/dist/floatingUi-41f8c7b5.js +0 -29
- package/dist/icons.js +0 -85
- package/dist/index-1a874a8b.js +0 -110
- package/dist/index.js +0 -165
- package/dist/isEmpty-ccacb5ff.js +0 -38
- package/dist/keyCodes-f63c0e11.js +0 -4
- package/dist/maxValueDisplay-9be01a75.js +0 -13
- package/dist/maxValueDisplay.js +0 -6
- package/dist/minus-2857540f.js +0 -5
- package/dist/modal.js +0 -194
- package/dist/openEye-950159cb.js +0 -6
- package/dist/pagination-a3dee614.js +0 -347
- package/dist/pagination.js +0 -22
- package/dist/plus-199fb2a8.js +0 -5
- package/dist/popover.js +0 -80
- package/dist/prevPage-87faf576.js +0 -6
- package/dist/radio-62546efa.js +0 -76
- package/dist/radio.js +0 -9
- package/dist/selection-9124d029.js +0 -38
- package/dist/selection.js +0 -10
- package/dist/sidePanel.js +0 -88
- package/dist/sortable.js +0 -160
- package/dist/spinLoader-c4a53718.js +0 -11
- package/dist/spinLoader.js +0 -7
- package/dist/success-8fd8bd2c.js +0 -7
- package/dist/systemAlert.js +0 -69
- package/dist/systemMessage-924fdaa6.js +0 -30
- package/dist/systemMessage.js +0 -7
- package/dist/table-c172f35e.js +0 -504
- package/dist/table.js +0 -15
- package/dist/themeProvider-46c2be7b.js +0 -23
- package/dist/themeProvider.js +0 -7
- package/dist/toggle-304107fa.js +0 -59
- package/dist/toggle.js +0 -9
- package/dist/tooltip.js +0 -103
- package/dist/tree-c3dd3d45.js +0 -6
- package/dist/xls-995781cc.js +0 -11
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
import { jsxs as a, Fragment as W, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { useRef as y, useId as B, useMemo as F } from "react";
|
|
3
|
-
import { c as w } from "./bind-06a7ff84.js";
|
|
4
|
-
import { K as _ } from "./keyCodes-f63c0e11.js";
|
|
5
|
-
import { B as p } from "./baseIconButton-251479f7.js";
|
|
6
|
-
import { S as V } from "./minus-2857540f.js";
|
|
7
|
-
import { S as k } from "./plus-199fb2a8.js";
|
|
8
|
-
import { FieldLabel as H } from "./fieldLabel.js";
|
|
9
|
-
const P = 5, N = 16, j = [
|
|
10
|
-
_.TAB_KEY_CODE,
|
|
11
|
-
_.BACKSPACE_KEY_CODE,
|
|
12
|
-
_.ARROW_LEFT_KEY_CODE,
|
|
13
|
-
_.ARROW_UP_KEY_CODE,
|
|
14
|
-
_.ARROW_RIGHT_KEY_CODE,
|
|
15
|
-
_.ARROW_DOWN_KEY_CODE,
|
|
16
|
-
_.DELETE_KEY_CODE,
|
|
17
|
-
_.NUM_LOCK_0_KEY_CODE,
|
|
18
|
-
_.NUM_LOCK_1_KEY_CODE,
|
|
19
|
-
_.NUM_LOCK_2_KEY_CODE,
|
|
20
|
-
_.NUM_LOCK_3_KEY_CODE,
|
|
21
|
-
_.NUM_LOCK_4_KEY_CODE,
|
|
22
|
-
_.NUM_LOCK_5_KEY_CODE,
|
|
23
|
-
_.NUM_LOCK_6_KEY_CODE,
|
|
24
|
-
_.NUM_LOCK_7_KEY_CODE,
|
|
25
|
-
_.NUM_LOCK_8_KEY_CODE,
|
|
26
|
-
_.NUM_LOCK_9_KEY_CODE
|
|
27
|
-
], z = "_sign_3v3h5_7", G = "_error_3v3h5_22", X = "_disabled_3v3h5_27", $ = "_input_3v3h5_12", b = {
|
|
28
|
-
"field-number": "_field-number_3v3h5_1",
|
|
29
|
-
sign: z,
|
|
30
|
-
"input-container": "_input-container_3v3h5_12",
|
|
31
|
-
error: G,
|
|
32
|
-
disabled: X,
|
|
33
|
-
"input-field": "_input-field_3v3h5_38",
|
|
34
|
-
input: $,
|
|
35
|
-
"additional-content": "_additional-content_3v3h5_84",
|
|
36
|
-
"error-text": "_error-text_3v3h5_88"
|
|
37
|
-
}, c = w.bind(b), tn = ({
|
|
38
|
-
value: i = "",
|
|
39
|
-
placeholder: Y = "0",
|
|
40
|
-
disabled: t = !1,
|
|
41
|
-
onChange: s,
|
|
42
|
-
onFocus: d,
|
|
43
|
-
onBlur: O,
|
|
44
|
-
label: h,
|
|
45
|
-
postfix: o = "",
|
|
46
|
-
min: l = 0,
|
|
47
|
-
max: E = Number.MAX_SAFE_INTEGER,
|
|
48
|
-
title: L,
|
|
49
|
-
error: C,
|
|
50
|
-
id: D,
|
|
51
|
-
...M
|
|
52
|
-
}) => {
|
|
53
|
-
const u = y(null), m = B(), R = (n) => n < l ? l : n > E ? E : n, U = (n) => {
|
|
54
|
-
let e = n.target.value.replace(/^0(?=\d+|^\d)/g, "");
|
|
55
|
-
if (e === "") {
|
|
56
|
-
s("");
|
|
57
|
-
return;
|
|
58
|
-
}
|
|
59
|
-
e = +e, s(e);
|
|
60
|
-
}, A = (n) => {
|
|
61
|
-
const e = +n.currentTarget.value, f = R(e);
|
|
62
|
-
f !== e && s(f), O && O(n);
|
|
63
|
-
}, g = (n) => {
|
|
64
|
-
const { keyCode: e } = n;
|
|
65
|
-
j.includes(e) || (e < _.NUMBER_START_KEY_CODE || e > _.NUMBER_END_KEY_CODE || n.shiftKey) && n.preventDefault();
|
|
66
|
-
}, T = () => {
|
|
67
|
-
const n = +i - 1;
|
|
68
|
-
n >= l && n <= E && s(n);
|
|
69
|
-
}, v = () => {
|
|
70
|
-
const n = +i + 1;
|
|
71
|
-
n >= l && n <= E && s(n);
|
|
72
|
-
}, K = Y + o, I = F(() => {
|
|
73
|
-
let n = (String(i) || K).length;
|
|
74
|
-
return o && !i && (n += 1), n > N ? `${N}ch` : `${n || P}ch`;
|
|
75
|
-
}, [K, o, i]), S = () => {
|
|
76
|
-
u && u.current && u.current.focus(), d && d();
|
|
77
|
-
};
|
|
78
|
-
return /* @__PURE__ */ a(W, { children: [
|
|
79
|
-
/* @__PURE__ */ a("div", { className: c("field-number", { disabled: t }), children: [
|
|
80
|
-
h && /* @__PURE__ */ r(H, { htmlFor: D ?? m, children: h }),
|
|
81
|
-
/* @__PURE__ */ a(
|
|
82
|
-
"div",
|
|
83
|
-
{
|
|
84
|
-
className: c("input-container", {
|
|
85
|
-
error: C,
|
|
86
|
-
disabled: t
|
|
87
|
-
}),
|
|
88
|
-
title: L,
|
|
89
|
-
children: [
|
|
90
|
-
/* @__PURE__ */ r(
|
|
91
|
-
p,
|
|
92
|
-
{
|
|
93
|
-
className: c("sign", "minus"),
|
|
94
|
-
disabled: t,
|
|
95
|
-
onClick: T,
|
|
96
|
-
children: /* @__PURE__ */ r(V, {})
|
|
97
|
-
}
|
|
98
|
-
),
|
|
99
|
-
/* @__PURE__ */ a("span", { className: c("input-field", { disabled: t }), onClick: S, children: [
|
|
100
|
-
/* @__PURE__ */ r(
|
|
101
|
-
"input",
|
|
102
|
-
{
|
|
103
|
-
id: D ?? m,
|
|
104
|
-
ref: u,
|
|
105
|
-
className: c("input"),
|
|
106
|
-
type: "number",
|
|
107
|
-
value: i,
|
|
108
|
-
placeholder: K,
|
|
109
|
-
disabled: t,
|
|
110
|
-
min: l,
|
|
111
|
-
max: E,
|
|
112
|
-
onKeyDown: t ? void 0 : g,
|
|
113
|
-
onChange: t ? void 0 : U,
|
|
114
|
-
onFocus: t ? void 0 : d,
|
|
115
|
-
onBlur: t ? void 0 : A,
|
|
116
|
-
style: { width: I },
|
|
117
|
-
...M
|
|
118
|
-
}
|
|
119
|
-
),
|
|
120
|
-
!!o && (i === 0 || !!i) && /* @__PURE__ */ r("span", { children: o.slice(0, 1) })
|
|
121
|
-
] }),
|
|
122
|
-
/* @__PURE__ */ r(
|
|
123
|
-
p,
|
|
124
|
-
{
|
|
125
|
-
className: c("sign", "plus"),
|
|
126
|
-
disabled: t,
|
|
127
|
-
onClick: v,
|
|
128
|
-
children: /* @__PURE__ */ r(k, {})
|
|
129
|
-
}
|
|
130
|
-
)
|
|
131
|
-
]
|
|
132
|
-
}
|
|
133
|
-
)
|
|
134
|
-
] }),
|
|
135
|
-
C && /* @__PURE__ */ r("div", { className: c("additional-content"), children: /* @__PURE__ */ r("span", { className: c("error-text"), children: C }) })
|
|
136
|
-
] });
|
|
137
|
-
};
|
|
138
|
-
export {
|
|
139
|
-
tn as F
|
|
140
|
-
};
|
package/dist/fieldNumber.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { F as m } from "./fieldNumber-d1b5a7a1.js";
|
|
2
|
-
import "react/jsx-runtime";
|
|
3
|
-
import "react";
|
|
4
|
-
import "./bind-06a7ff84.js";
|
|
5
|
-
import "./keyCodes-f63c0e11.js";
|
|
6
|
-
import "./baseIconButton-251479f7.js";
|
|
7
|
-
import "./minus-2857540f.js";
|
|
8
|
-
import "./plus-199fb2a8.js";
|
|
9
|
-
import "./fieldLabel.js";
|
|
10
|
-
export {
|
|
11
|
-
m as FieldNumber,
|
|
12
|
-
m as default
|
|
13
|
-
};
|
|
@@ -1,167 +0,0 @@
|
|
|
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 "./openEye-950159cb.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", ln = "_placeholder_18d9y_48", dn = "_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: ln,
|
|
19
|
-
disabled: dn,
|
|
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: l,
|
|
46
|
-
helpText: d,
|
|
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: d }), 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
|
-
l && /* @__PURE__ */ n(an, { isRequired: x, htmlFor: w, children: l }),
|
|
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 && !l && /* @__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 || d) && /* @__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
|
-
] }) : d && M })
|
|
162
|
-
] });
|
|
163
|
-
}
|
|
164
|
-
);
|
|
165
|
-
export {
|
|
166
|
-
Bn as F
|
|
167
|
-
};
|
package/dist/fieldText.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { F as o } from "./fieldText-1749da7a.js";
|
|
2
|
-
import "react/jsx-runtime";
|
|
3
|
-
import "react";
|
|
4
|
-
import "./bind-06a7ff84.js";
|
|
5
|
-
import "./clear-53660571.js";
|
|
6
|
-
import "./openEye-950159cb.js";
|
|
7
|
-
import "./baseIconButton-251479f7.js";
|
|
8
|
-
import "./spinLoader-c4a53718.js";
|
|
9
|
-
import "./maxValueDisplay-9be01a75.js";
|
|
10
|
-
import "./fieldLabel.js";
|
|
11
|
-
export {
|
|
12
|
-
o as FieldText,
|
|
13
|
-
o as default
|
|
14
|
-
};
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import { jsxs as _, Fragment as R, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { c as j } from "./bind-06a7ff84.js";
|
|
3
|
-
import { forwardRef as D, useId as H } from "react";
|
|
4
|
-
import { M } from "./maxValueDisplay-9be01a75.js";
|
|
5
|
-
import { FieldLabel as O } from "./fieldLabel.js";
|
|
6
|
-
const V = "_disabled_1pfea_16", $ = "_error_1pfea_19", b = "_touched_1pfea_19", w = {
|
|
7
|
-
"text-area": "_text-area_1pfea_1",
|
|
8
|
-
disabled: V,
|
|
9
|
-
error: $,
|
|
10
|
-
touched: b,
|
|
11
|
-
"max-length-display": "_max-length-display_1pfea_26",
|
|
12
|
-
"additional-content": "_additional-content_1pfea_45",
|
|
13
|
-
"error-text": "_error-text_1pfea_45",
|
|
14
|
-
"help-text": "_help-text_1pfea_53"
|
|
15
|
-
}, e = j.bind(w), z = 72, A = 2, C = D(
|
|
16
|
-
({
|
|
17
|
-
value: s = "",
|
|
18
|
-
readonly: x = !1,
|
|
19
|
-
error: r = "",
|
|
20
|
-
placeholder: h = "",
|
|
21
|
-
disabled: a = !1,
|
|
22
|
-
touched: c = !1,
|
|
23
|
-
className: m = "",
|
|
24
|
-
label: i = "",
|
|
25
|
-
helpText: l = "",
|
|
26
|
-
minHeight: o = z,
|
|
27
|
-
maxLengthDisplay: f,
|
|
28
|
-
onChange: g,
|
|
29
|
-
onFocus: y,
|
|
30
|
-
onBlur: N,
|
|
31
|
-
onKeyUp: u,
|
|
32
|
-
...F
|
|
33
|
-
}, I) => {
|
|
34
|
-
const d = H(), p = r && c, E = (n) => {
|
|
35
|
-
n.target.style.height = `${o}px`, n.target.style.height = `${n.target.scrollHeight + A}px`;
|
|
36
|
-
};
|
|
37
|
-
return /* @__PURE__ */ _(R, { children: [
|
|
38
|
-
i && /* @__PURE__ */ t(O, { htmlFor: d, className: e({ disabled: a }), children: i }),
|
|
39
|
-
/* @__PURE__ */ t(
|
|
40
|
-
"textarea",
|
|
41
|
-
{
|
|
42
|
-
id: d,
|
|
43
|
-
ref: I,
|
|
44
|
-
className: e("text-area", m, {
|
|
45
|
-
disabled: a,
|
|
46
|
-
error: r,
|
|
47
|
-
touched: c
|
|
48
|
-
}),
|
|
49
|
-
style: { minHeight: o, height: o },
|
|
50
|
-
value: s,
|
|
51
|
-
placeholder: h,
|
|
52
|
-
disabled: a,
|
|
53
|
-
readOnly: x,
|
|
54
|
-
onChange: g,
|
|
55
|
-
onFocus: y,
|
|
56
|
-
onBlur: N,
|
|
57
|
-
onKeyUp: u,
|
|
58
|
-
onInput: E,
|
|
59
|
-
...F,
|
|
60
|
-
children: s
|
|
61
|
-
}
|
|
62
|
-
),
|
|
63
|
-
/* @__PURE__ */ t(
|
|
64
|
-
M,
|
|
65
|
-
{
|
|
66
|
-
className: e("max-length-display"),
|
|
67
|
-
value: s.length,
|
|
68
|
-
maxValue: f
|
|
69
|
-
}
|
|
70
|
-
),
|
|
71
|
-
(p || l) && /* @__PURE__ */ _("div", { className: e("additional-content", { disabled: a }), children: [
|
|
72
|
-
p && /* @__PURE__ */ t("span", { className: e("error-text"), children: r }),
|
|
73
|
-
l && /* @__PURE__ */ t("span", { className: e("help-text"), children: l })
|
|
74
|
-
] })
|
|
75
|
-
] });
|
|
76
|
-
}
|
|
77
|
-
);
|
|
78
|
-
export {
|
|
79
|
-
C as F
|
|
80
|
-
};
|
package/dist/fieldTextFlex.js
DELETED