@reportportal/ui-kit 0.0.1-alpha.106 → 0.0.1-alpha.108
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/attachedFile.js +1 -1
- package/dist/autocompletes.js +694 -0
- package/dist/components/autocompletes/common/autocompleteMenu/autocompleteMenu.d.ts +9 -0
- package/dist/components/autocompletes/common/autocompleteMenu/index.d.ts +1 -0
- package/dist/components/autocompletes/common/autocompleteOption/autocompleteOption.d.ts +13 -0
- package/dist/components/autocompletes/common/autocompleteOption/index.d.ts +1 -0
- package/dist/components/autocompletes/common/autocompleteOptions.d.ts +19 -0
- package/dist/components/autocompletes/common/autocompletePrompt/autocompletePrompt.d.ts +7 -0
- package/dist/components/autocompletes/common/autocompletePrompt/index.d.ts +1 -0
- package/dist/components/autocompletes/common/index.d.ts +19 -0
- package/dist/components/autocompletes/constants.d.ts +2 -0
- package/dist/components/autocompletes/index.d.ts +3 -0
- package/dist/components/autocompletes/multipleAutocomplete/index.d.ts +17 -0
- package/dist/components/autocompletes/multipleAutocomplete/multipleAutocomplete.d.ts +46 -0
- package/dist/components/autocompletes/multipleAutocomplete/multipleDownshift.d.ts +25 -0
- package/dist/components/autocompletes/multipleAutocomplete/selectedItems/index.d.ts +1 -0
- package/dist/components/autocompletes/multipleAutocomplete/selectedItems/selectedItems.d.ts +35 -0
- package/dist/components/autocompletes/singleAutocomplete/index.d.ts +1 -0
- package/dist/components/autocompletes/singleAutocomplete/singleAutocomplete.d.ts +40 -0
- package/dist/components/autocompletes/types.d.ts +8 -0
- package/dist/components/autocompletes/utils.d.ts +5 -0
- package/dist/components/button/button.d.ts +1 -1
- package/dist/components/fieldText/fieldText.d.ts +2 -2
- package/dist/components/fieldTextFlex/fieldTextFlex.d.ts +2 -1
- package/dist/components/fileDropArea/index.d.ts +3 -3
- package/dist/components/icons/index.d.ts +4 -0
- package/dist/components/index.d.ts +4 -1
- package/dist/components/sidePanel/index.d.ts +2 -0
- package/dist/components/sidePanel/sidePanel.d.ts +17 -0
- package/dist/{fieldNumber-1fa248f5.js → fieldNumber-d1b5a7a1.js} +15 -14
- package/dist/fieldNumber.js +3 -2
- package/dist/fieldTextFlex-2f51c173.js +80 -0
- package/dist/fieldTextFlex.js +1 -1
- package/dist/fileDropArea.js +135 -168
- package/dist/icons.js +65 -60
- package/dist/{index-803576c3.js → index-1a874a8b.js} +1 -1
- package/dist/index.js +126 -116
- package/dist/isEmpty-ccacb5ff.js +38 -0
- package/dist/minus-2857540f.js +5 -0
- package/dist/plus-199fb2a8.js +5 -0
- package/dist/sidePanel.js +74 -0
- package/dist/style.css +1 -1
- package/package.json +13 -1
- package/dist/fieldTextFlex-8afaab31.js +0 -78
- package/dist/plus-0929dda4.js +0 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reportportal/ui-kit",
|
|
3
|
-
"version": "0.0.1-alpha.
|
|
3
|
+
"version": "0.0.1-alpha.108",
|
|
4
4
|
"description": "The UI-kit library for ReportPortal Design System.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -21,6 +21,18 @@
|
|
|
21
21
|
"main": "./dist/index.js",
|
|
22
22
|
"module": "./dist/index.js",
|
|
23
23
|
"types": "./dist/components/index.d.ts",
|
|
24
|
+
"exports": {
|
|
25
|
+
".": {
|
|
26
|
+
"types": "./dist/components/index.d.ts",
|
|
27
|
+
"import": "./dist/index.js",
|
|
28
|
+
"default": "./dist/index.js"
|
|
29
|
+
},
|
|
30
|
+
"./fileDropArea": {
|
|
31
|
+
"types": "./dist/components/fileDropArea/index.d.ts",
|
|
32
|
+
"import": "./dist/fileDropArea.js",
|
|
33
|
+
"default": "./dist/fileDropArea.js"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
24
36
|
"peerDependencies": {
|
|
25
37
|
"react": "17.x-18.x",
|
|
26
38
|
"react-dom": "17.x-18.x"
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { jsxs as _, Fragment as I, jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import { c as E } from "./bind-06a7ff84.js";
|
|
3
|
-
import { forwardRef as R, useId as j } from "react";
|
|
4
|
-
import { M as D } from "./maxValueDisplay-9be01a75.js";
|
|
5
|
-
import { FieldLabel as M } from "./fieldLabel.js";
|
|
6
|
-
const O = "_disabled_s8aoo_17", V = "_error_s8aoo_20", $ = "_touched_s8aoo_20", b = {
|
|
7
|
-
"text-area": "_text-area_s8aoo_1",
|
|
8
|
-
disabled: O,
|
|
9
|
-
error: V,
|
|
10
|
-
touched: $,
|
|
11
|
-
"max-length-display": "_max-length-display_s8aoo_27",
|
|
12
|
-
"additional-content": "_additional-content_s8aoo_46",
|
|
13
|
-
"error-text": "_error-text_s8aoo_46",
|
|
14
|
-
"help-text": "_help-text_s8aoo_54"
|
|
15
|
-
}, t = E.bind(b), w = 72, z = 2, q = R(
|
|
16
|
-
({
|
|
17
|
-
value: s = "",
|
|
18
|
-
readonly: m = !1,
|
|
19
|
-
error: o = "",
|
|
20
|
-
placeholder: x = "",
|
|
21
|
-
disabled: e = !1,
|
|
22
|
-
touched: n = !1,
|
|
23
|
-
className: h = "",
|
|
24
|
-
label: c = "",
|
|
25
|
-
helpText: r = "",
|
|
26
|
-
maxLengthDisplay: p,
|
|
27
|
-
onChange: g,
|
|
28
|
-
onFocus: f,
|
|
29
|
-
onBlur: y,
|
|
30
|
-
onKeyUp: N,
|
|
31
|
-
...u
|
|
32
|
-
}, F) => {
|
|
33
|
-
const i = j(), d = o && n, H = (l) => {
|
|
34
|
-
l.target.style.height = `${w}px`, l.target.style.height = `${l.target.scrollHeight + z}px`;
|
|
35
|
-
};
|
|
36
|
-
return /* @__PURE__ */ _(I, { children: [
|
|
37
|
-
c && /* @__PURE__ */ a(M, { htmlFor: i, className: t({ disabled: e }), children: c }),
|
|
38
|
-
/* @__PURE__ */ a(
|
|
39
|
-
"textarea",
|
|
40
|
-
{
|
|
41
|
-
id: i,
|
|
42
|
-
ref: F,
|
|
43
|
-
className: t("text-area", h, {
|
|
44
|
-
disabled: e,
|
|
45
|
-
error: o,
|
|
46
|
-
touched: n
|
|
47
|
-
}),
|
|
48
|
-
value: s,
|
|
49
|
-
placeholder: x,
|
|
50
|
-
disabled: e,
|
|
51
|
-
readOnly: m,
|
|
52
|
-
onChange: g,
|
|
53
|
-
onFocus: f,
|
|
54
|
-
onBlur: y,
|
|
55
|
-
onKeyUp: N,
|
|
56
|
-
onInput: H,
|
|
57
|
-
...u,
|
|
58
|
-
children: s
|
|
59
|
-
}
|
|
60
|
-
),
|
|
61
|
-
/* @__PURE__ */ a(
|
|
62
|
-
D,
|
|
63
|
-
{
|
|
64
|
-
className: t("max-length-display"),
|
|
65
|
-
value: s.length,
|
|
66
|
-
maxValue: p
|
|
67
|
-
}
|
|
68
|
-
),
|
|
69
|
-
(d || r) && /* @__PURE__ */ _("div", { className: t("additional-content", { disabled: e }), children: [
|
|
70
|
-
d && /* @__PURE__ */ a("span", { className: t("error-text"), children: o }),
|
|
71
|
-
r && /* @__PURE__ */ a("span", { className: t("help-text"), children: r })
|
|
72
|
-
] })
|
|
73
|
-
] });
|
|
74
|
-
}
|
|
75
|
-
);
|
|
76
|
-
export {
|
|
77
|
-
q as F
|
|
78
|
-
};
|
package/dist/plus-0929dda4.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import * as e from "react";
|
|
2
|
-
const l = (t) => /* @__PURE__ */ e.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "#C1C7D0", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ e.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M3.31082 7.31081C2.94108 7.30926 2.6426 7.60773 2.64415 7.97748C2.64571 8.34722 2.9467 8.64822 3.31645 8.64977L12.6892 8.68919C13.0589 8.69074 13.3574 8.39227 13.3559 8.02252C13.3543 7.65278 13.0533 7.35178 12.6836 7.35023L3.31082 7.31081Z" })), C = (t) => /* @__PURE__ */ e.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "#C1C7D0", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ e.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8.00117 2.62046C7.63142 2.6189 7.33294 2.91738 7.3345 3.28712L7.35159 7.35159L3.28712 7.3345C2.91738 7.33295 2.6189 7.63142 2.62045 8.00117C2.62201 8.37091 2.92301 8.67191 3.29275 8.67346L7.35722 8.69056L7.37391 12.6599C7.37547 13.0296 7.67647 13.3306 8.04621 13.3322C8.41596 13.3337 8.71443 13.0352 8.71288 12.6655L8.69619 8.69619L12.6655 8.71288C13.0352 8.71444 13.3337 8.41596 13.3322 8.04621C13.3306 7.67647 13.0296 7.37547 12.6599 7.37392L8.69056 7.35722L8.67346 3.29275C8.67191 2.92301 8.37091 2.62201 8.00117 2.62046Z" }));
|
|
3
|
-
export {
|
|
4
|
-
l as S,
|
|
5
|
-
C as a
|
|
6
|
-
};
|