@reportportal/ui-kit 0.0.1-alpha.68 → 0.0.1-alpha.69
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/button-33bc880f.js +64 -0
- package/dist/button.js +1 -1
- package/dist/{checkbox-9a6c7ce1.js → checkbox-aa91985d.js} +15 -15
- package/dist/checkbox.js +1 -1
- package/dist/{datePicker-06e90999.js → datePicker-382ef010.js} +57 -57
- package/dist/datePicker.js +6 -6
- package/dist/dropdown-13d7d50e.js +278 -0
- package/dist/dropdown.js +2 -2
- package/dist/fieldLabel.js +8 -8
- package/dist/{fieldNumber-01efb16e.js → fieldNumber-2542b311.js} +43 -43
- package/dist/fieldNumber.js +1 -1
- package/dist/fieldText-e605a521.js +158 -0
- package/dist/fieldText.js +2 -2
- package/dist/fieldTextFlex-9e616f66.js +78 -0
- package/dist/fieldTextFlex.js +1 -1
- package/dist/fonts/OpenSans/OpenSans-Bold.ttf +0 -0
- package/dist/fonts/OpenSans/OpenSans-Medium.ttf +0 -0
- package/dist/index.js +12 -12
- package/dist/modal.js +81 -81
- package/dist/{pagination-91729c7d.js → pagination-ecbc9940.js} +53 -53
- package/dist/pagination.js +3 -3
- package/dist/popover.js +15 -15
- package/dist/{radio-bccc84f2.js → radio-62546efa.js} +27 -27
- package/dist/radio.js +1 -1
- package/dist/style.css +1 -1
- package/dist/systemAlert.js +28 -28
- package/dist/systemMessage-924fdaa6.js +30 -0
- package/dist/systemMessage.js +1 -1
- package/dist/table-20aa2cdf.js +142 -0
- package/dist/table.js +2 -2
- package/dist/toggle-304107fa.js +59 -0
- package/dist/toggle.js +1 -1
- package/dist/tooltip.js +15 -15
- package/package.json +1 -1
- package/dist/button-770f7b20.js +0 -64
- package/dist/dropdown-29285346.js +0 -278
- package/dist/fieldText-94e2c8eb.js +0 -158
- package/dist/fieldTextFlex-c55452d5.js +0 -78
- package/dist/systemMessage-1ced6079.js +0 -30
- package/dist/table-02e40724.js +0 -142
- package/dist/toggle-1a3aacb5.js +0 -59
package/dist/dropdown.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as r } from "./dropdown-
|
|
1
|
+
import { D as r } from "./dropdown-13d7d50e.js";
|
|
2
2
|
import "react/jsx-runtime";
|
|
3
3
|
import "react";
|
|
4
4
|
import "./bind-06a7ff84.js";
|
|
@@ -10,7 +10,7 @@ import "./keyCodes-f63c0e11.js";
|
|
|
10
10
|
import "./baseIconButton-251479f7.js";
|
|
11
11
|
import "./dropdown-0260bb66.js";
|
|
12
12
|
import "./fieldLabel.js";
|
|
13
|
-
import "./checkbox-
|
|
13
|
+
import "./checkbox-aa91985d.js";
|
|
14
14
|
export {
|
|
15
15
|
r as Dropdown,
|
|
16
16
|
r as default
|
package/dist/fieldLabel.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as d, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { c } from "./bind-06a7ff84.js";
|
|
3
|
-
const r = "
|
|
4
|
-
"field-label": "_field-
|
|
3
|
+
const r = "_asterisk_10m6x_11", m = "_disabled_10m6x_17", o = {
|
|
4
|
+
"field-label": "_field-label_10m6x_1",
|
|
5
5
|
asterisk: r,
|
|
6
|
-
disabled:
|
|
7
|
-
}, s = c.bind(
|
|
6
|
+
disabled: m
|
|
7
|
+
}, s = c.bind(o), _ = ({
|
|
8
8
|
children: e,
|
|
9
9
|
isRequired: l = !1,
|
|
10
10
|
className: a,
|
|
11
11
|
...i
|
|
12
|
-
}) => /* @__PURE__ */
|
|
12
|
+
}) => /* @__PURE__ */ d("label", { className: s("field-label", a), ...i, children: [
|
|
13
13
|
e,
|
|
14
|
-
l && /* @__PURE__ */
|
|
14
|
+
l && /* @__PURE__ */ t("span", { className: s("asterisk"), children: "*" })
|
|
15
15
|
] });
|
|
16
16
|
export {
|
|
17
|
-
|
|
17
|
+
_ as FieldLabel
|
|
18
18
|
};
|
|
@@ -4,8 +4,8 @@ import { c as y } from "./bind-06a7ff84.js";
|
|
|
4
4
|
import { K as _ } from "./keyCodes-f63c0e11.js";
|
|
5
5
|
import { B as f } from "./baseIconButton-251479f7.js";
|
|
6
6
|
import { S as B, a as S } from "./plus-0929dda4.js";
|
|
7
|
-
import { FieldLabel as
|
|
8
|
-
const
|
|
7
|
+
import { FieldLabel as x } from "./fieldLabel.js";
|
|
8
|
+
const F = 5, p = 16, b = [
|
|
9
9
|
_.TAB_KEY_CODE,
|
|
10
10
|
_.BACKSPACE_KEY_CODE,
|
|
11
11
|
_.ARROW_LEFT_KEY_CODE,
|
|
@@ -23,84 +23,84 @@ const b = 5, p = 16, k = [
|
|
|
23
23
|
_.NUM_LOCK_7_KEY_CODE,
|
|
24
24
|
_.NUM_LOCK_8_KEY_CODE,
|
|
25
25
|
_.NUM_LOCK_9_KEY_CODE
|
|
26
|
-
], H = "
|
|
27
|
-
"field-number": "_field-
|
|
28
|
-
disabled:
|
|
29
|
-
label:
|
|
30
|
-
sign:
|
|
31
|
-
"input-container": "_input-
|
|
32
|
-
error:
|
|
33
|
-
touched:
|
|
34
|
-
filled:
|
|
35
|
-
"input-field": "_input-
|
|
36
|
-
input:
|
|
37
|
-
}, c = y.bind(
|
|
26
|
+
], k = "_disabled_1wxs7_6", H = "_label_1wxs7_10", V = "_sign_1wxs7_21", P = "_error_1wxs7_36", j = "_touched_1wxs7_36", G = "_filled_1wxs7_44", X = "_input_1wxs7_26", $ = {
|
|
27
|
+
"field-number": "_field-number_1wxs7_1",
|
|
28
|
+
disabled: k,
|
|
29
|
+
label: H,
|
|
30
|
+
sign: V,
|
|
31
|
+
"input-container": "_input-container_1wxs7_26",
|
|
32
|
+
error: P,
|
|
33
|
+
touched: j,
|
|
34
|
+
filled: G,
|
|
35
|
+
"input-field": "_input-field_1wxs7_51",
|
|
36
|
+
input: X
|
|
37
|
+
}, c = y.bind($), e_ = ({
|
|
38
38
|
value: e = "",
|
|
39
|
-
placeholder:
|
|
39
|
+
placeholder: h = "0",
|
|
40
40
|
disabled: t = !1,
|
|
41
41
|
onChange: o,
|
|
42
|
-
onFocus:
|
|
43
|
-
onBlur:
|
|
42
|
+
onFocus: u,
|
|
43
|
+
onBlur: q,
|
|
44
44
|
label: O,
|
|
45
45
|
postfix: r = "",
|
|
46
46
|
min: l = 0,
|
|
47
47
|
max: E = Number.MAX_SAFE_INTEGER,
|
|
48
|
-
title:
|
|
49
|
-
error:
|
|
50
|
-
touched:
|
|
48
|
+
title: m,
|
|
49
|
+
error: N,
|
|
50
|
+
touched: Y = !1,
|
|
51
51
|
id: a,
|
|
52
|
-
...
|
|
52
|
+
...w
|
|
53
53
|
}) => {
|
|
54
|
-
const
|
|
54
|
+
const C = T(null), D = I(), L = (n) => {
|
|
55
55
|
let s = n.target.value.replace(/^0(?=\d+|^\d)/g, "");
|
|
56
56
|
if (s === "") {
|
|
57
57
|
o("");
|
|
58
58
|
return;
|
|
59
59
|
}
|
|
60
60
|
s = +s, s >= l && s <= E && o(s);
|
|
61
|
-
},
|
|
61
|
+
}, M = (n) => {
|
|
62
62
|
const { keyCode: s } = n;
|
|
63
|
-
|
|
64
|
-
},
|
|
63
|
+
b.includes(s) || (s < _.NUMBER_START_KEY_CODE || s > _.NUMBER_END_KEY_CODE || n.shiftKey) && n.preventDefault();
|
|
64
|
+
}, R = () => {
|
|
65
65
|
const n = +e - 1;
|
|
66
66
|
n >= l && n <= E && o(n);
|
|
67
|
-
},
|
|
67
|
+
}, U = () => {
|
|
68
68
|
const n = +e + 1;
|
|
69
69
|
n >= l && n <= E && o(n);
|
|
70
|
-
}, d =
|
|
70
|
+
}, d = h + r, A = W(() => {
|
|
71
71
|
let n = (String(e) || d).length;
|
|
72
|
-
return r && !e && (n += 1), n > p ? `${p}ch` : `${n ||
|
|
73
|
-
}, [d, r, e]),
|
|
74
|
-
|
|
72
|
+
return r && !e && (n += 1), n > p ? `${p}ch` : `${n || F}ch`;
|
|
73
|
+
}, [d, r, e]), g = () => {
|
|
74
|
+
C && C.current && C.current.focus(), u && u();
|
|
75
75
|
};
|
|
76
76
|
return /* @__PURE__ */ K("div", { className: c("field-number", { disabled: t }), children: [
|
|
77
|
-
O && /* @__PURE__ */ i(
|
|
77
|
+
O && /* @__PURE__ */ i(x, { htmlFor: a ?? D, children: O }),
|
|
78
78
|
/* @__PURE__ */ K(
|
|
79
79
|
"div",
|
|
80
80
|
{
|
|
81
81
|
className: c("input-container", {
|
|
82
82
|
filled: !!e || e === 0,
|
|
83
|
-
error:
|
|
83
|
+
error: N,
|
|
84
84
|
disabled: t,
|
|
85
|
-
touched:
|
|
85
|
+
touched: Y
|
|
86
86
|
}),
|
|
87
|
-
title:
|
|
87
|
+
title: m,
|
|
88
88
|
children: [
|
|
89
89
|
/* @__PURE__ */ i(
|
|
90
90
|
f,
|
|
91
91
|
{
|
|
92
92
|
className: c("sign", "minus"),
|
|
93
93
|
disabled: t,
|
|
94
|
-
onClick:
|
|
94
|
+
onClick: R,
|
|
95
95
|
children: /* @__PURE__ */ i(B, {})
|
|
96
96
|
}
|
|
97
97
|
),
|
|
98
|
-
/* @__PURE__ */ K("span", { className: c("input-field", { disabled: t }), onClick:
|
|
98
|
+
/* @__PURE__ */ K("span", { className: c("input-field", { disabled: t }), onClick: g, children: [
|
|
99
99
|
/* @__PURE__ */ i(
|
|
100
100
|
"input",
|
|
101
101
|
{
|
|
102
102
|
id: a ?? D,
|
|
103
|
-
ref:
|
|
103
|
+
ref: C,
|
|
104
104
|
className: c("input"),
|
|
105
105
|
type: "number",
|
|
106
106
|
value: e,
|
|
@@ -108,16 +108,16 @@ const b = 5, p = 16, k = [
|
|
|
108
108
|
disabled: t,
|
|
109
109
|
min: l,
|
|
110
110
|
max: E,
|
|
111
|
-
onKeyDown: t ? void 0 :
|
|
112
|
-
onChange: t ? void 0 :
|
|
113
|
-
onFocus: t ? void 0 :
|
|
114
|
-
style: { width:
|
|
115
|
-
...
|
|
111
|
+
onKeyDown: t ? void 0 : M,
|
|
112
|
+
onChange: t ? void 0 : L,
|
|
113
|
+
onFocus: t ? void 0 : u,
|
|
114
|
+
style: { width: A },
|
|
115
|
+
...w
|
|
116
116
|
}
|
|
117
117
|
),
|
|
118
118
|
!!r && (e === 0 || !!e) && /* @__PURE__ */ i("span", { children: r.slice(0, 1) })
|
|
119
119
|
] }),
|
|
120
|
-
/* @__PURE__ */ i(f, { className: c("sign", "plus"), disabled: t, onClick:
|
|
120
|
+
/* @__PURE__ */ i(f, { className: c("sign", "plus"), disabled: t, onClick: U, children: /* @__PURE__ */ i(S, {}) })
|
|
121
121
|
]
|
|
122
122
|
}
|
|
123
123
|
)
|
package/dist/fieldNumber.js
CHANGED
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import { jsx as e, jsxs as a, Fragment as R } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as Q, useRef as Y, useId as Z, useState as M } from "react";
|
|
3
|
+
import { c as q } from "./bind-06a7ff84.js";
|
|
4
|
+
import { b as ee, a as ne, S as te } from "./openEye-7b9cf080.js";
|
|
5
|
+
import { B as se } from "./button-33bc880f.js";
|
|
6
|
+
import { S as oe } from "./spinLoader-c4a53718.js";
|
|
7
|
+
import { M as ae } from "./maxValueDisplay-9be01a75.js";
|
|
8
|
+
import { FieldLabel as ce } from "./fieldLabel.js";
|
|
9
|
+
var o = /* @__PURE__ */ ((t) => (t.PASSWORD = "password", t.TEXT = "text", t.EMAIL = "email", t))(o || {});
|
|
10
|
+
const re = "_collapsed_1xyy3_13", ie = "_field_1xyy3_21", le = "_placeholder_1xyy3_46", de = "_disabled_1xyy3_49", _e = "_error_1xyy3_52", pe = "_touched_1xyy3_52", ye = "_input_1xyy3_70", ue = "_icon_1xyy3_1", xe = "_text_1xyy3_168", me = {
|
|
11
|
+
"icon-container": "_icon-container_1xyy3_1",
|
|
12
|
+
"icon-container-end": "_icon-container-end_1xyy3_1",
|
|
13
|
+
"icon-container-start": "_icon-container-start_1xyy3_1",
|
|
14
|
+
collapsed: re,
|
|
15
|
+
field: ie,
|
|
16
|
+
"default-width": "_default-width_1xyy3_33",
|
|
17
|
+
placeholder: le,
|
|
18
|
+
disabled: de,
|
|
19
|
+
error: _e,
|
|
20
|
+
touched: pe,
|
|
21
|
+
"max-length-display": "_max-length-display_1xyy3_59",
|
|
22
|
+
"input-container": "_input-container_1xyy3_70",
|
|
23
|
+
"type-password": "_type-password_1xyy3_74",
|
|
24
|
+
input: ye,
|
|
25
|
+
"eye-icon": "_eye-icon_1xyy3_78",
|
|
26
|
+
icon: ue,
|
|
27
|
+
"start-icon": "_start-icon_1xyy3_124",
|
|
28
|
+
"clear-icon": "_clear-icon_1xyy3_125",
|
|
29
|
+
"additional-content": "_additional-content_1xyy3_161",
|
|
30
|
+
text: xe,
|
|
31
|
+
"error-text": "_error-text_1xyy3_188",
|
|
32
|
+
"help-text": "_help-text_1xyy3_192"
|
|
33
|
+
}, n = q.bind(me), Fe = Q(
|
|
34
|
+
({
|
|
35
|
+
value: t = "",
|
|
36
|
+
className: b,
|
|
37
|
+
classNameHelpText: v,
|
|
38
|
+
error: l,
|
|
39
|
+
placeholder: u,
|
|
40
|
+
disabled: c = !1,
|
|
41
|
+
onChange: A,
|
|
42
|
+
touched: x = !1,
|
|
43
|
+
title: O,
|
|
44
|
+
label: d,
|
|
45
|
+
helpText: _,
|
|
46
|
+
defaultWidth: B = !0,
|
|
47
|
+
startIcon: m,
|
|
48
|
+
endIcon: f,
|
|
49
|
+
clearable: C = !1,
|
|
50
|
+
onClear: h,
|
|
51
|
+
isRequired: N = !1,
|
|
52
|
+
hasDoubleMessage: L = !1,
|
|
53
|
+
type: r = o.TEXT,
|
|
54
|
+
displayError: V = !0,
|
|
55
|
+
collapsible: W = !1,
|
|
56
|
+
loading: k = !1,
|
|
57
|
+
maxLengthDisplay: X,
|
|
58
|
+
onFocus: j = () => {
|
|
59
|
+
},
|
|
60
|
+
onBlur: H = () => {
|
|
61
|
+
},
|
|
62
|
+
...I
|
|
63
|
+
}, U) => {
|
|
64
|
+
const $ = Y(null), p = U || $, S = Z(), [w, g] = M(!1), [E, D] = M(!1), z = (s) => {
|
|
65
|
+
g(!0), j(s);
|
|
66
|
+
}, G = (s) => {
|
|
67
|
+
g(!1), H(s);
|
|
68
|
+
}, J = () => {
|
|
69
|
+
var s;
|
|
70
|
+
h && (h(t), (s = p.current) == null || s.focus());
|
|
71
|
+
}, F = V && l && x, T = /* @__PURE__ */ e("span", { className: n("text", "help-text", v), children: _ }), K = () => r !== o.PASSWORD ? r : E ? o.TEXT : o.PASSWORD, P = (s) => {
|
|
72
|
+
s.preventDefault(), D(!0);
|
|
73
|
+
}, i = (s) => {
|
|
74
|
+
s.preventDefault(), D(!1);
|
|
75
|
+
};
|
|
76
|
+
return /* @__PURE__ */ a(R, { children: [
|
|
77
|
+
d && /* @__PURE__ */ e(ce, { isRequired: N, htmlFor: S, children: d }),
|
|
78
|
+
/* @__PURE__ */ a(
|
|
79
|
+
"div",
|
|
80
|
+
{
|
|
81
|
+
className: n("field", b, {
|
|
82
|
+
error: l,
|
|
83
|
+
touched: x,
|
|
84
|
+
disabled: c,
|
|
85
|
+
"default-width": B,
|
|
86
|
+
collapsed: W && !w && !t
|
|
87
|
+
}),
|
|
88
|
+
title: O,
|
|
89
|
+
children: [
|
|
90
|
+
k ? /* @__PURE__ */ e(oe, {}) : m && /* @__PURE__ */ e(
|
|
91
|
+
"span",
|
|
92
|
+
{
|
|
93
|
+
className: n("icon-container-start"),
|
|
94
|
+
onClick: () => {
|
|
95
|
+
var y;
|
|
96
|
+
(y = p.current) == null || y.focus();
|
|
97
|
+
},
|
|
98
|
+
children: /* @__PURE__ */ e("span", { className: n("icon", { "start-icon": !w }), children: m })
|
|
99
|
+
}
|
|
100
|
+
),
|
|
101
|
+
/* @__PURE__ */ a("span", { className: n("input-container", `type-${r}`), children: [
|
|
102
|
+
/* @__PURE__ */ e(
|
|
103
|
+
"input",
|
|
104
|
+
{
|
|
105
|
+
ref: p,
|
|
106
|
+
type: K(),
|
|
107
|
+
className: n("input"),
|
|
108
|
+
value: t,
|
|
109
|
+
disabled: c,
|
|
110
|
+
id: S,
|
|
111
|
+
onChange: A,
|
|
112
|
+
onFocus: z,
|
|
113
|
+
onBlur: G,
|
|
114
|
+
...I
|
|
115
|
+
}
|
|
116
|
+
),
|
|
117
|
+
r === o.PASSWORD && t && /* @__PURE__ */ e(
|
|
118
|
+
se,
|
|
119
|
+
{
|
|
120
|
+
icon: E ? /* @__PURE__ */ e(ee, {}) : /* @__PURE__ */ e(ne, {}),
|
|
121
|
+
variant: "text",
|
|
122
|
+
className: n("eye-icon"),
|
|
123
|
+
onMouseDown: P,
|
|
124
|
+
onMouseLeave: i,
|
|
125
|
+
onMouseUp: i,
|
|
126
|
+
onTouchStart: P,
|
|
127
|
+
onTouchEnd: i,
|
|
128
|
+
onTouchCancel: i
|
|
129
|
+
}
|
|
130
|
+
),
|
|
131
|
+
u && !t && /* @__PURE__ */ a("span", { className: n("placeholder"), children: [
|
|
132
|
+
u,
|
|
133
|
+
N && !d && /* @__PURE__ */ e("span", { className: n("asterisk") })
|
|
134
|
+
] })
|
|
135
|
+
] }),
|
|
136
|
+
/* @__PURE__ */ e(
|
|
137
|
+
ae,
|
|
138
|
+
{
|
|
139
|
+
className: n("max-length-display"),
|
|
140
|
+
value: t.length,
|
|
141
|
+
maxValue: X
|
|
142
|
+
}
|
|
143
|
+
),
|
|
144
|
+
f && /* @__PURE__ */ e("span", { className: n("icon-container-end"), children: /* @__PURE__ */ e("span", { className: n("icon"), children: f }) }),
|
|
145
|
+
C && t.length > 0 && /* @__PURE__ */ e("span", { className: n("icon-container-end"), children: /* @__PURE__ */ e("button", { type: "button", className: n("clear-icon", { disabled: c }), onClick: J, children: /* @__PURE__ */ e(te, {}) }) })
|
|
146
|
+
]
|
|
147
|
+
}
|
|
148
|
+
),
|
|
149
|
+
(F || _) && /* @__PURE__ */ e("div", { className: n("additional-content", { disabled: c }), children: F ? /* @__PURE__ */ a(R, { children: [
|
|
150
|
+
/* @__PURE__ */ e("span", { className: n("text", "error-text"), children: l }),
|
|
151
|
+
L && T
|
|
152
|
+
] }) : _ && T })
|
|
153
|
+
] });
|
|
154
|
+
}
|
|
155
|
+
);
|
|
156
|
+
export {
|
|
157
|
+
Fe as F
|
|
158
|
+
};
|
package/dist/fieldText.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { F as o } from "./fieldText-
|
|
1
|
+
import { F as o } from "./fieldText-e605a521.js";
|
|
2
2
|
import "react/jsx-runtime";
|
|
3
3
|
import "react";
|
|
4
4
|
import "./bind-06a7ff84.js";
|
|
5
5
|
import "./openEye-7b9cf080.js";
|
|
6
|
-
import "./button-
|
|
6
|
+
import "./button-33bc880f.js";
|
|
7
7
|
import "./spinLoader-c4a53718.js";
|
|
8
8
|
import "./maxValueDisplay-9be01a75.js";
|
|
9
9
|
import "./fieldLabel.js";
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { jsxs as p, Fragment as H, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { c as I } from "./bind-06a7ff84.js";
|
|
3
|
+
import { forwardRef as E, useId as R } from "react";
|
|
4
|
+
import { M as j } from "./maxValueDisplay-9be01a75.js";
|
|
5
|
+
import { FieldLabel as D } from "./fieldLabel.js";
|
|
6
|
+
const M = "_error_1pqer_19", O = "_touched_1pqer_19", V = "_disabled_1pqer_65", $ = {
|
|
7
|
+
"text-area": "_text-area_1pqer_1",
|
|
8
|
+
error: M,
|
|
9
|
+
touched: O,
|
|
10
|
+
"max-length-display": "_max-length-display_1pqer_26",
|
|
11
|
+
"additional-content": "_additional-content_1pqer_36",
|
|
12
|
+
"error-text": "_error-text_1pqer_36",
|
|
13
|
+
"help-text": "_help-text_1pqer_44",
|
|
14
|
+
disabled: V
|
|
15
|
+
}, e = I.bind($), b = 72, w = 2, k = E(
|
|
16
|
+
({
|
|
17
|
+
value: a = "",
|
|
18
|
+
readonly: _ = !1,
|
|
19
|
+
error: s = "",
|
|
20
|
+
placeholder: m = "",
|
|
21
|
+
disabled: r = !1,
|
|
22
|
+
touched: n = !1,
|
|
23
|
+
className: x = "",
|
|
24
|
+
label: c = "",
|
|
25
|
+
helpText: o = "",
|
|
26
|
+
maxLengthDisplay: h,
|
|
27
|
+
onChange: g,
|
|
28
|
+
onFocus: f,
|
|
29
|
+
onBlur: q,
|
|
30
|
+
onKeyUp: y,
|
|
31
|
+
...N
|
|
32
|
+
}, u) => {
|
|
33
|
+
const i = R(), d = s && n, F = (l) => {
|
|
34
|
+
l.target.style.height = `${b}px`, l.target.style.height = `${l.target.scrollHeight + w}px`;
|
|
35
|
+
};
|
|
36
|
+
return /* @__PURE__ */ p(H, { children: [
|
|
37
|
+
c && /* @__PURE__ */ t(D, { htmlFor: i, className: e({ disabled: r }), children: c }),
|
|
38
|
+
/* @__PURE__ */ t(
|
|
39
|
+
"textarea",
|
|
40
|
+
{
|
|
41
|
+
id: i,
|
|
42
|
+
ref: u,
|
|
43
|
+
className: e("text-area", x, {
|
|
44
|
+
disabled: r,
|
|
45
|
+
error: s,
|
|
46
|
+
touched: n
|
|
47
|
+
}),
|
|
48
|
+
value: a,
|
|
49
|
+
placeholder: m,
|
|
50
|
+
disabled: r,
|
|
51
|
+
readOnly: _,
|
|
52
|
+
onChange: g,
|
|
53
|
+
onFocus: f,
|
|
54
|
+
onBlur: q,
|
|
55
|
+
onKeyUp: y,
|
|
56
|
+
onInput: F,
|
|
57
|
+
...N,
|
|
58
|
+
children: a
|
|
59
|
+
}
|
|
60
|
+
),
|
|
61
|
+
/* @__PURE__ */ t(
|
|
62
|
+
j,
|
|
63
|
+
{
|
|
64
|
+
className: e("max-length-display"),
|
|
65
|
+
value: a.length,
|
|
66
|
+
maxValue: h
|
|
67
|
+
}
|
|
68
|
+
),
|
|
69
|
+
(d || o) && /* @__PURE__ */ p("div", { className: e("additional-content", { disabled: r }), children: [
|
|
70
|
+
d && /* @__PURE__ */ t("span", { className: e("error-text"), children: s }),
|
|
71
|
+
o && /* @__PURE__ */ t("span", { className: e("help-text"), children: o })
|
|
72
|
+
] })
|
|
73
|
+
] });
|
|
74
|
+
}
|
|
75
|
+
);
|
|
76
|
+
export {
|
|
77
|
+
k as F
|
|
78
|
+
};
|
package/dist/fieldTextFlex.js
CHANGED
|
Binary file
|
|
Binary file
|
package/dist/index.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { B as P } from "./button-
|
|
1
|
+
import { B as P } from "./button-33bc880f.js";
|
|
2
2
|
import { B as C } from "./baseIconButton-251479f7.js";
|
|
3
|
-
import { C as g } from "./checkbox-
|
|
4
|
-
import { S as F } from "./systemMessage-
|
|
5
|
-
import { F as B } from "./fieldText-
|
|
3
|
+
import { C as g } from "./checkbox-aa91985d.js";
|
|
4
|
+
import { S as F } from "./systemMessage-924fdaa6.js";
|
|
5
|
+
import { F as B } from "./fieldText-e605a521.js";
|
|
6
6
|
import { T as w } from "./themeProvider-46c2be7b.js";
|
|
7
7
|
import { Modal as A } from "./modal.js";
|
|
8
|
-
import { D as M } from "./dropdown-
|
|
9
|
-
import { T as k } from "./toggle-
|
|
10
|
-
import { F as R } from "./fieldNumber-
|
|
8
|
+
import { D as M } from "./dropdown-13d7d50e.js";
|
|
9
|
+
import { T as k } from "./toggle-304107fa.js";
|
|
10
|
+
import { F as R } from "./fieldNumber-2542b311.js";
|
|
11
11
|
import { B as N } from "./bubblesLoader-a7e709d4.js";
|
|
12
12
|
import { S as U } from "./spinLoader-c4a53718.js";
|
|
13
|
-
import { F as J } from "./fieldTextFlex-
|
|
14
|
-
import { R as j } from "./radio-
|
|
13
|
+
import { F as J } from "./fieldTextFlex-9e616f66.js";
|
|
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-
|
|
18
|
-
import { T as Z } from "./table-
|
|
19
|
-
import { D as $ } from "./datePicker-
|
|
17
|
+
import { P as X } from "./pagination-ecbc9940.js";
|
|
18
|
+
import { T as Z } from "./table-20aa2cdf.js";
|
|
19
|
+
import { D as $ } from "./datePicker-382ef010.js";
|
|
20
20
|
import "react-datepicker";
|
|
21
21
|
import { SystemAlert as ro } from "./systemAlert.js";
|
|
22
22
|
import { AddCsvIcon as to, AddImageIcon as no, AddJarIcon as ao, BreadcrumbsTreeIcon as co, ChevronDownDropdownIcon as po, ChevronRightBreadcrumbsIcon as io, CopyIcon as mo, DeleteIcon as so, DragAndDropIcon as Io, DragNDropIcon as xo, EditIcon as fo, ExportIcon as lo, ExternalLinkIcon as So, FilterFilledIcon as Po, FilterOutlineIcon as uo, FlagIcon as Co, HideIcon as Do, MaximizeIcon as go, MeatballMenuIcon as yo, PriorityBlockerIcon as Fo, PriorityCriticalIcon as bo, PriorityHighIcon as Bo, PriorityLowIcon as To, PriorityMediumIcon as wo, PriorityUnspecifiedIcon as ho, SearchIcon as Ao, SortIcon as vo, StatusSuccessIcon as Mo, WarningIcon as Eo } from "./icons.js";
|