@reportportal/ui-kit 0.0.1-alpha.3 → 0.0.1-alpha.4
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/bind-06a7ff84.js +41 -0
- package/dist/{button-15f7c4a6.js → button-d4944dbc.js} +5 -5
- package/dist/button.js +2 -2
- package/dist/{checkbox-e6a5c84a.js → checkbox-7736509c.js} +6 -6
- package/dist/checkbox.js +2 -2
- package/dist/components/button/button.d.ts +2 -2
- package/dist/components/fieldText/fieldText.d.ts +2 -2
- package/dist/{fieldText-dc43f641.js → fieldText-9621b0b7.js} +1 -1
- package/dist/fieldText.js +2 -2
- package/dist/index.js +5 -5
- package/dist/modal.js +2 -2
- package/dist/{systemMessage-dd6e4795.js → systemMessage-62c3133d.js} +6 -6
- package/dist/systemMessage.js +2 -2
- package/package.json +1 -1
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
function a(s) {
|
|
2
|
+
return s && s.__esModule && Object.prototype.hasOwnProperty.call(s, "default") ? s.default : s;
|
|
3
|
+
}
|
|
4
|
+
var u = { exports: {} };
|
|
5
|
+
/*!
|
|
6
|
+
Copyright (c) 2018 Jed Watson.
|
|
7
|
+
Licensed under the MIT License (MIT), see
|
|
8
|
+
http://jedwatson.github.io/classnames
|
|
9
|
+
*/
|
|
10
|
+
(function(s) {
|
|
11
|
+
(function() {
|
|
12
|
+
var c = {}.hasOwnProperty;
|
|
13
|
+
function e() {
|
|
14
|
+
for (var n = [], i = 0; i < arguments.length; i++) {
|
|
15
|
+
var t = arguments[i];
|
|
16
|
+
if (t) {
|
|
17
|
+
var r = typeof t;
|
|
18
|
+
if (r === "string" || r === "number")
|
|
19
|
+
n.push(this && this[t] || t);
|
|
20
|
+
else if (Array.isArray(t))
|
|
21
|
+
n.push(e.apply(this, t));
|
|
22
|
+
else if (r === "object") {
|
|
23
|
+
if (t.toString !== Object.prototype.toString && !t.toString.toString().includes("[native code]")) {
|
|
24
|
+
n.push(t.toString());
|
|
25
|
+
continue;
|
|
26
|
+
}
|
|
27
|
+
for (var o in t)
|
|
28
|
+
c.call(t, o) && t[o] && n.push(this && this[o] || o);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
return n.join(" ");
|
|
33
|
+
}
|
|
34
|
+
s.exports ? (e.default = e, s.exports = e) : window.classNames = e;
|
|
35
|
+
})();
|
|
36
|
+
})(u);
|
|
37
|
+
var f = u.exports;
|
|
38
|
+
const l = /* @__PURE__ */ a(f);
|
|
39
|
+
export {
|
|
40
|
+
l as c
|
|
41
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as h, jsx as l } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as x } from "react";
|
|
3
|
-
import f from "
|
|
3
|
+
import { c as f } from "./bind-06a7ff84.js";
|
|
4
4
|
const g = "_button_wutm5_1", y = "_primary_wutm5_19", N = "_disabled_wutm5_24", B = "_ghost_wutm5_36", $ = "_danger_wutm5_51", j = "_text_wutm5_67", I = "_icon_wutm5_113", R = {
|
|
5
5
|
button: g,
|
|
6
6
|
primary: y,
|
|
@@ -22,8 +22,8 @@ const g = "_button_wutm5_1", y = "_primary_wutm5_19", N = "_disabled_wutm5_24",
|
|
|
22
22
|
type: i = "button",
|
|
23
23
|
children: r,
|
|
24
24
|
disabled: s = !1,
|
|
25
|
-
onClick:
|
|
26
|
-
title:
|
|
25
|
+
onClick: a,
|
|
26
|
+
title: m,
|
|
27
27
|
className: d,
|
|
28
28
|
dataAutomationId: u,
|
|
29
29
|
...w
|
|
@@ -39,8 +39,8 @@ const g = "_button_wutm5_1", y = "_primary_wutm5_19", N = "_disabled_wutm5_24",
|
|
|
39
39
|
type: i,
|
|
40
40
|
disabled: s,
|
|
41
41
|
className: p,
|
|
42
|
-
onClick:
|
|
43
|
-
title:
|
|
42
|
+
onClick: a,
|
|
43
|
+
title: m,
|
|
44
44
|
"data-automation-id": u,
|
|
45
45
|
...w,
|
|
46
46
|
children: [
|
package/dist/button.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as d, jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import m from "
|
|
2
|
+
import { c as m } from "./bind-06a7ff84.js";
|
|
3
3
|
import { useRef as x } from "react";
|
|
4
4
|
import { K as p } from "./key-codes-abbe7725.js";
|
|
5
5
|
const f = "_checkbox_1gq3p_1", y = "_disabled_1gq3p_12", C = "_input_1gq3p_17", E = "_control_1gq3p_24", D = "_children_1gq3p_78", K = {
|
|
@@ -18,13 +18,13 @@ const f = "_checkbox_1gq3p_1", y = "_disabled_1gq3p_12", C = "_input_1gq3p_17",
|
|
|
18
18
|
...k
|
|
19
19
|
}) => {
|
|
20
20
|
const o = x(null), u = (t) => {
|
|
21
|
-
var
|
|
22
|
-
const { keyCode:
|
|
23
|
-
if (
|
|
24
|
-
t.preventDefault(), (
|
|
21
|
+
var l, i;
|
|
22
|
+
const { keyCode: a } = t;
|
|
23
|
+
if (a === p.SPACE_KEY_CODE) {
|
|
24
|
+
t.preventDefault(), (l = o.current) == null || l.click();
|
|
25
25
|
return;
|
|
26
26
|
}
|
|
27
|
-
|
|
27
|
+
a === p.ENTER_KEY_CODE && (t.preventDefault(), (i = o.current) == null || i.click());
|
|
28
28
|
};
|
|
29
29
|
return /* @__PURE__ */ d(
|
|
30
30
|
"label",
|
package/dist/checkbox.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { FC, ReactNode,
|
|
1
|
+
import { FC, ReactNode, ComponentPropsWithRef, MouseEventHandler } from 'react';
|
|
2
2
|
type IconPlace = 'start' | 'end';
|
|
3
3
|
type ButtonVariant = 'primary' | 'ghost' | 'danger' | 'text';
|
|
4
4
|
type ButtonWidth = 'content' | 'wide-content' | 'parent';
|
|
5
|
-
export interface ButtonProps extends
|
|
5
|
+
export interface ButtonProps extends ComponentPropsWithRef<'button'> {
|
|
6
6
|
children?: ReactNode;
|
|
7
7
|
icon?: ReactNode;
|
|
8
8
|
iconPlace?: IconPlace;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FC, ChangeEventHandler, ReactNode,
|
|
2
|
-
interface FieldTextProps extends
|
|
1
|
+
import { FC, ChangeEventHandler, ReactNode, ComponentPropsWithRef } from 'react';
|
|
2
|
+
interface FieldTextProps extends ComponentPropsWithRef<'input'> {
|
|
3
3
|
value?: string;
|
|
4
4
|
className?: string;
|
|
5
5
|
error?: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as e, jsxs as t, Fragment as f } from "react/jsx-runtime";
|
|
2
2
|
import * as o from "react";
|
|
3
3
|
import { forwardRef as A } from "react";
|
|
4
|
-
import F from "
|
|
4
|
+
import { c as F } from "./bind-06a7ff84.js";
|
|
5
5
|
const R = (c) => /* @__PURE__ */ o.createElement("svg", { width: 17, height: 17, viewBox: "0 0 17 17", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...c }, /* @__PURE__ */ o.createElement("rect", { width: 16.2089, height: 16.1568, rx: 8.07842, fill: "#A2AAB5" }), /* @__PURE__ */ o.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" })), j = "_label_11rxn_18", y = "_asterisk_11rxn_27", B = "_disabled_11rxn_33", M = "_field_11rxn_37", S = "_error_11rxn_51", Z = "_touched_11rxn_51", z = "_input_11rxn_65", D = "_placeholder_11rxn_88", G = "_icon_11rxn_1", H = "_text_11rxn_151", J = {
|
|
6
6
|
"icon-container": "_icon-container_11rxn_1",
|
|
7
7
|
"icon-container-end": "_icon-container-end_11rxn_1",
|
package/dist/fieldText.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { B as x } from "./button-
|
|
2
|
-
import { C as f } from "./checkbox-
|
|
3
|
-
import { S as T } from "./systemMessage-
|
|
4
|
-
import { F as l } from "./fieldText-
|
|
1
|
+
import { B as x } from "./button-d4944dbc.js";
|
|
2
|
+
import { C as f } from "./checkbox-7736509c.js";
|
|
3
|
+
import { S as T } from "./systemMessage-62c3133d.js";
|
|
4
|
+
import { F as l } from "./fieldText-9621b0b7.js";
|
|
5
5
|
import { T as C } from "./themeProvider-5800417e.js";
|
|
6
6
|
import { Modal as M } from "./modal.js";
|
|
7
7
|
import "react/jsx-runtime";
|
|
8
8
|
import "react";
|
|
9
|
-
import "
|
|
9
|
+
import "./bind-06a7ff84.js";
|
|
10
10
|
import "./key-codes-abbe7725.js";
|
|
11
11
|
import "rc-scrollbars";
|
|
12
12
|
import "framer-motion";
|
package/dist/modal.js
CHANGED
|
@@ -3,9 +3,9 @@ import * as z from "react";
|
|
|
3
3
|
import { useEffect as m, useState as g, useRef as $ } from "react";
|
|
4
4
|
import { Scrollbars as A } from "rc-scrollbars";
|
|
5
5
|
import { AnimatePresence as T, motion as D } from "framer-motion";
|
|
6
|
-
import _ from "
|
|
6
|
+
import { c as _ } from "./bind-06a7ff84.js";
|
|
7
7
|
import { K as W } from "./key-codes-abbe7725.js";
|
|
8
|
-
import { B as x } from "./button-
|
|
8
|
+
import { B as x } from "./button-d4944dbc.js";
|
|
9
9
|
function j(e, n) {
|
|
10
10
|
m(() => {
|
|
11
11
|
if (!n)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as t, jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import _ from "
|
|
2
|
+
import { c as _ } from "./bind-06a7ff84.js";
|
|
3
3
|
const c = "_children_19dbq_54", m = {
|
|
4
4
|
"system-message": "_system-message_19dbq_1",
|
|
5
5
|
"stripes-info": "_stripes-info_19dbq_12",
|
|
@@ -13,16 +13,16 @@ const c = "_children_19dbq_54", m = {
|
|
|
13
13
|
"content-width": "_content-width_19dbq_70"
|
|
14
14
|
}, e = _.bind(m), l = ({
|
|
15
15
|
header: r,
|
|
16
|
-
caption:
|
|
16
|
+
caption: a,
|
|
17
17
|
children: i,
|
|
18
|
-
mode:
|
|
18
|
+
mode: n = "info",
|
|
19
19
|
widthByContent: d = !1
|
|
20
20
|
}) => /* @__PURE__ */ t("div", { className: e("system-message", { "content-width": d }), children: [
|
|
21
|
-
/* @__PURE__ */ s("div", { className: e(`stripes-${
|
|
21
|
+
/* @__PURE__ */ s("div", { className: e(`stripes-${n}`) }),
|
|
22
22
|
/* @__PURE__ */ t("div", { className: e("text-container"), children: [
|
|
23
|
-
r && /* @__PURE__ */ s("h1", { className: e(`message-header-${
|
|
23
|
+
r && /* @__PURE__ */ s("h1", { className: e(`message-header-${n}`), children: r }),
|
|
24
24
|
/* @__PURE__ */ s("div", { className: e("children"), children: i }),
|
|
25
|
-
|
|
25
|
+
a && /* @__PURE__ */ s("p", { children: a })
|
|
26
26
|
] })
|
|
27
27
|
] });
|
|
28
28
|
export {
|
package/dist/systemMessage.js
CHANGED