@reportportal/ui-kit 0.0.1-alpha.16 → 0.0.1-alpha.18
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/components/dropdown/dropdown.d.ts +1 -0
- package/dist/components/icons/index.d.ts +1 -0
- package/dist/components/tooltip/tooltip.d.ts +2 -1
- package/dist/dropdown-50124296.js +215 -0
- package/dist/dropdown.js +1 -1
- package/dist/fieldText-98cf9984.js +102 -0
- package/dist/fieldText.js +1 -1
- package/dist/index.js +76 -75
- package/dist/{pagination-761d3427.js → pagination-13887e1c.js} +7 -7
- package/dist/pagination.js +2 -2
- package/dist/style.css +1 -1
- package/dist/tooltip.js +29 -28
- package/package.json +1 -1
- package/dist/dropdown-bbfa828e.js +0 -213
- package/dist/fieldText-d80b29ba.js +0 -102
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import { jsx as t, jsxs as n, Fragment as q } from "react/jsx-runtime";
|
|
2
|
-
import * as l from "react";
|
|
3
|
-
import { forwardRef as F } from "react";
|
|
4
|
-
import { c as R } from "./bind-06a7ff84.js";
|
|
5
|
-
import "./baseIconButton-7bc53dec.js";
|
|
6
|
-
const j = (c) => /* @__PURE__ */ l.createElement("svg", { width: 17, height: 17, viewBox: "0 0 17 17", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...c }, /* @__PURE__ */ l.createElement("rect", { width: 16.2089, height: 16.1568, rx: 8.07842, fill: "#A2AAB5" }), /* @__PURE__ */ l.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M5.14768 5.14645C4.95077 5.34171 4.95077 5.65829 5.14768 5.85355L7.49578 8.18198L5.35655 10.3033C5.15963 10.4986 5.15963 10.8151 5.35655 11.0104C5.55346 11.2057 5.87271 11.2057 6.06962 11.0104L8.20886 8.88909L10.1392 10.8033C10.3361 10.9986 10.6554 10.9986 10.8523 10.8033C11.0492 10.608 11.0492 10.2915 10.8523 10.0962L8.92193 8.18198L11.0612 6.06065C11.2581 5.86539 11.2581 5.54881 11.0612 5.35355C10.8643 5.15828 10.545 5.15828 10.3481 5.35355L8.20886 7.47487L5.86076 5.14645C5.66385 4.95118 5.34459 4.95118 5.14768 5.14645Z", fill: "white" })), y = "_label_18rqf_18", B = "_asterisk_18rqf_27", S = "_disabled_18rqf_33", M = "_field_18rqf_38", Z = "_error_18rqf_52", z = "_touched_18rqf_52", D = "_placeholder_18rqf_63", G = "_input_18rqf_70", H = "_icon_18rqf_1", J = "_text_18rqf_159", K = {
|
|
7
|
-
"icon-container": "_icon-container_18rqf_1",
|
|
8
|
-
"icon-container-end": "_icon-container-end_18rqf_1",
|
|
9
|
-
"icon-container-start": "_icon-container-start_18rqf_1",
|
|
10
|
-
label: y,
|
|
11
|
-
asterisk: B,
|
|
12
|
-
disabled: S,
|
|
13
|
-
field: M,
|
|
14
|
-
error: Z,
|
|
15
|
-
touched: z,
|
|
16
|
-
placeholder: D,
|
|
17
|
-
"default-width": "_default-width_18rqf_66",
|
|
18
|
-
"input-container": "_input-container_18rqf_70",
|
|
19
|
-
input: G,
|
|
20
|
-
icon: H,
|
|
21
|
-
"clear-icon": "_clear-icon_18rqf_116",
|
|
22
|
-
"additional-content": "_additional-content_18rqf_152",
|
|
23
|
-
text: J,
|
|
24
|
-
"error-text": "_error-text_18rqf_167",
|
|
25
|
-
"help-text": "_help-text_18rqf_171"
|
|
26
|
-
}, e = R.bind(K), U = F(
|
|
27
|
-
({
|
|
28
|
-
value: c,
|
|
29
|
-
className: u,
|
|
30
|
-
error: a,
|
|
31
|
-
placeholder: o,
|
|
32
|
-
disabled: r = !1,
|
|
33
|
-
onChange: N,
|
|
34
|
-
touched: _ = !1,
|
|
35
|
-
title: w,
|
|
36
|
-
label: s,
|
|
37
|
-
helpText: i,
|
|
38
|
-
defaultWidth: C = !0,
|
|
39
|
-
startIcon: d,
|
|
40
|
-
endIcon: f,
|
|
41
|
-
clearable: L = !1,
|
|
42
|
-
onClear: h,
|
|
43
|
-
isRequired: p = !1,
|
|
44
|
-
hasDoubleMessage: g = !1,
|
|
45
|
-
type: k = "text",
|
|
46
|
-
displayError: v = !0,
|
|
47
|
-
...E
|
|
48
|
-
}, b) => {
|
|
49
|
-
const A = () => {
|
|
50
|
-
h && h(c);
|
|
51
|
-
}, m = v && a && _, x = /* @__PURE__ */ t("span", { className: e("text", "help-text"), children: i });
|
|
52
|
-
return /* @__PURE__ */ n(q, { children: [
|
|
53
|
-
s && /* @__PURE__ */ n("span", { className: e("label", { disabled: r }), children: [
|
|
54
|
-
s,
|
|
55
|
-
p && /* @__PURE__ */ t("span", { className: e("asterisk"), children: "*" })
|
|
56
|
-
] }),
|
|
57
|
-
/* @__PURE__ */ n(
|
|
58
|
-
"div",
|
|
59
|
-
{
|
|
60
|
-
className: e("field", u, {
|
|
61
|
-
error: a,
|
|
62
|
-
touched: _,
|
|
63
|
-
disabled: r,
|
|
64
|
-
"default-width": C
|
|
65
|
-
}),
|
|
66
|
-
title: w,
|
|
67
|
-
children: [
|
|
68
|
-
d && /* @__PURE__ */ t("span", { className: e("icon-container-start"), children: /* @__PURE__ */ t("span", { className: e("icon"), children: d }) }),
|
|
69
|
-
/* @__PURE__ */ n("span", { className: e("input-container"), children: [
|
|
70
|
-
/* @__PURE__ */ t(
|
|
71
|
-
"input",
|
|
72
|
-
{
|
|
73
|
-
ref: b,
|
|
74
|
-
type: k,
|
|
75
|
-
className: e("input"),
|
|
76
|
-
value: c,
|
|
77
|
-
disabled: r,
|
|
78
|
-
onChange: N,
|
|
79
|
-
...E
|
|
80
|
-
}
|
|
81
|
-
),
|
|
82
|
-
o && !c && /* @__PURE__ */ n("span", { className: e("placeholder"), children: [
|
|
83
|
-
o,
|
|
84
|
-
p && !s && /* @__PURE__ */ t("span", { className: e("asterisk") })
|
|
85
|
-
] })
|
|
86
|
-
] }),
|
|
87
|
-
f && /* @__PURE__ */ t("span", { className: e("icon-container-end"), children: /* @__PURE__ */ t("span", { className: e("icon"), children: f }) }),
|
|
88
|
-
L && /* @__PURE__ */ t("span", { className: e("icon-container-end"), children: /* @__PURE__ */ t("button", { type: "button", className: e("clear-icon", { disabled: r }), onClick: A, children: /* @__PURE__ */ t(j, {}) }) })
|
|
89
|
-
]
|
|
90
|
-
}
|
|
91
|
-
),
|
|
92
|
-
(m || i) && /* @__PURE__ */ t("div", { className: e("additional-content", { disabled: r }), children: m ? /* @__PURE__ */ n(q, { children: [
|
|
93
|
-
/* @__PURE__ */ t("span", { className: e("text", "error-text"), children: a }),
|
|
94
|
-
g && x
|
|
95
|
-
] }) : i && x })
|
|
96
|
-
] });
|
|
97
|
-
}
|
|
98
|
-
);
|
|
99
|
-
export {
|
|
100
|
-
U as F,
|
|
101
|
-
j as S
|
|
102
|
-
};
|