@reportportal/ui-kit 0.0.1-alpha.8 → 0.0.1-alpha.80
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/README.md +71 -13
- package/dist/arrowUp-4a5caee7.js +6 -0
- package/dist/baseIconButton-251479f7.js +25 -0
- package/dist/baseIconButton.js +1 -1
- package/dist/button-2baad814.js +66 -0
- package/dist/button.js +1 -1
- package/dist/calendarArrow-3e1339ea.js +6 -0
- package/dist/checkbox-aa91985d.js +73 -0
- package/dist/checkbox.js +1 -1
- package/dist/close-4d480ef7.js +5 -0
- package/dist/common/hooks/useOnClickOutside.d.ts +1 -0
- package/dist/common/types.d.ts +3 -0
- package/dist/components/{icons/baseIconButton → baseIconButton}/baseIconButton.d.ts +1 -0
- package/dist/components/{icons/baseIconButton → baseIconButton}/index.d.ts +1 -0
- package/dist/components/bubblesLoader/bubblesLoader.d.ts +1 -0
- package/dist/components/bubblesLoader/index.d.ts +1 -0
- package/dist/components/button/button.d.ts +5 -4
- package/dist/components/button/index.d.ts +1 -0
- package/dist/components/checkbox/checkbox.d.ts +4 -1
- package/dist/components/checkbox/index.d.ts +1 -0
- package/dist/components/datePicker/datePicker.d.ts +25 -0
- package/dist/components/datePicker/header/datePickerHeader.d.ts +16 -0
- package/dist/components/datePicker/header/index.d.ts +4 -0
- package/dist/components/datePicker/index.d.ts +5 -0
- package/dist/components/datePicker/utils.d.ts +4 -0
- package/dist/components/dropdown/constants.d.ts +1 -0
- package/dist/components/dropdown/dropdown.d.ts +13 -4
- package/dist/components/dropdown/dropdownOption/dropdownOption.d.ts +1 -0
- package/dist/components/dropdown/dropdownOption/index.d.ts +1 -0
- package/dist/components/dropdown/index.d.ts +1 -0
- package/dist/components/dropdown/types.d.ts +3 -0
- package/dist/components/dropdown/utils.d.ts +2 -1
- package/dist/components/fieldLabel/fieldLabel.d.ts +7 -0
- package/dist/components/fieldLabel/index.d.ts +1 -0
- package/dist/components/fieldNumber/constants.d.ts +1 -0
- package/dist/components/fieldNumber/fieldNumber.d.ts +3 -2
- package/dist/components/fieldNumber/index.d.ts +1 -0
- package/dist/components/fieldText/fieldText.d.ts +13 -4
- package/dist/components/fieldText/index.d.ts +1 -0
- package/dist/components/fieldTextFlex/fieldTextFlex.d.ts +4 -2
- package/dist/components/fieldTextFlex/index.d.ts +1 -0
- package/dist/components/icons/index.d.ts +46 -3
- package/dist/components/index.d.ts +10 -0
- package/dist/components/maxValueDisplay/index.d.ts +4 -0
- package/dist/components/maxValueDisplay/maxValueDisplay.d.ts +8 -0
- package/dist/components/maxValueDisplay/utils/index.d.ts +1 -0
- package/dist/components/maxValueDisplay/utils/isPositiveInteger.d.ts +1 -0
- package/dist/components/modal/modal.d.ts +5 -2
- package/dist/components/modal/modalContent/modalContent.d.ts +2 -0
- package/dist/components/modal/modalFooter/modalFooter.d.ts +1 -0
- package/dist/components/modal/modalHeader/modalHeader.d.ts +2 -1
- package/dist/components/pagination/index.d.ts +5 -0
- package/dist/components/pagination/itemsCounter/index.d.ts +1 -0
- package/dist/components/pagination/itemsCounter/itemCounter.d.ts +10 -0
- package/dist/components/pagination/pageControls/activePage/activePage.d.ts +13 -0
- package/dist/components/pagination/pageControls/activePage/index.d.ts +1 -0
- package/dist/components/pagination/pageControls/activePage/pageSelector/index.d.ts +1 -0
- package/dist/components/pagination/pageControls/activePage/pageSelector/pageSelector.d.ts +11 -0
- package/dist/components/pagination/pageControls/index.d.ts +1 -0
- package/dist/components/pagination/pageControls/pageControls.d.ts +17 -0
- package/dist/components/pagination/pageControls/pageNavigator/bar/bar.d.ts +12 -0
- package/dist/components/pagination/pageControls/pageNavigator/bar/index.d.ts +1 -0
- package/dist/components/pagination/pageControls/pageNavigator/index.d.ts +1 -0
- package/dist/components/pagination/pageControls/pageNavigator/pageNavigator.d.ts +12 -0
- package/dist/components/pagination/pageSizeControl/index.d.ts +1 -0
- package/dist/components/pagination/pageSizeControl/pageSizeControl.d.ts +11 -0
- package/dist/components/pagination/pageSizeControl/sizeSelector/index.d.ts +1 -0
- package/dist/components/pagination/pageSizeControl/sizeSelector/sizeSelector.d.ts +9 -0
- package/dist/components/pagination/pagination.d.ts +23 -0
- package/dist/components/pagination/types.d.ts +2 -0
- package/dist/components/popover/index.d.ts +4 -0
- package/dist/components/popover/popover.d.ts +19 -0
- package/dist/components/radio/index.d.ts +1 -0
- package/dist/components/radio/radio.d.ts +1 -0
- package/dist/components/radio/radioGroup.d.ts +1 -0
- package/dist/components/spinLoader/index.d.ts +4 -0
- package/dist/components/spinLoader/spinLoader.d.ts +8 -0
- package/dist/components/systemAlert/index.d.ts +1 -0
- package/dist/components/systemAlert/systemAlert.d.ts +4 -0
- package/dist/components/systemAlert/types.d.ts +16 -0
- package/dist/components/systemMessage/index.d.ts +1 -0
- package/dist/components/systemMessage/systemMessage.d.ts +1 -0
- package/dist/components/table/constants.d.ts +2 -0
- package/dist/components/table/index.d.ts +4 -0
- package/dist/components/table/table.d.ts +4 -0
- package/dist/components/table/types.d.ts +52 -0
- package/dist/components/table/utils.d.ts +6 -0
- package/dist/components/themeProvider/index.d.ts +1 -0
- package/dist/components/themeProvider/themeProvider.d.ts +1 -0
- package/dist/components/toggle/index.d.ts +1 -0
- package/dist/components/toggle/toggle.d.ts +1 -0
- package/dist/components/tooltip/index.d.ts +1 -0
- package/dist/components/tooltip/tooltip.d.ts +23 -0
- package/dist/datePicker-d3709c9e.js +201 -0
- package/dist/datePicker.js +28 -0
- package/dist/dropdown-0260bb66.js +5 -0
- package/dist/dropdown-9427f821.js +282 -0
- package/dist/dropdown.js +5 -2
- package/dist/fieldLabel.js +18 -0
- package/dist/fieldNumber-2542b311.js +128 -0
- package/dist/fieldNumber.js +4 -2
- package/dist/fieldText-f38be7ba.js +166 -0
- package/dist/fieldText.js +6 -2
- package/dist/fieldTextFlex-9e616f66.js +78 -0
- package/dist/fieldTextFlex.js +10 -0
- package/dist/fonts/OpenSans/OpenSans-Bold.ttf +0 -0
- package/dist/fonts/OpenSans/OpenSans-Medium.ttf +0 -0
- package/dist/icons.js +62 -0
- package/dist/index.js +106 -30
- package/dist/maxValueDisplay-9be01a75.js +13 -0
- package/dist/maxValueDisplay.js +6 -0
- package/dist/modal.js +144 -14
- package/dist/openEye-7b9cf080.js +7 -0
- package/dist/pagination-8cf70249.js +345 -0
- package/dist/pagination.js +20 -0
- package/dist/plus-0929dda4.js +6 -0
- package/dist/popover.js +99 -0
- package/dist/prevPage-87faf576.js +6 -0
- package/dist/radio-62546efa.js +76 -0
- package/dist/radio.js +9 -0
- package/dist/spinLoader-c4a53718.js +11 -0
- package/dist/spinLoader.js +7 -0
- package/dist/style.css +1 -1
- package/dist/success-8fd8bd2c.js +7 -0
- package/dist/systemAlert.js +63 -0
- package/dist/systemMessage-924fdaa6.js +30 -0
- package/dist/systemMessage.js +1 -1
- package/dist/table-20aa2cdf.js +142 -0
- package/dist/table.js +11 -0
- package/dist/toggle-304107fa.js +59 -0
- package/dist/toggle.js +1 -1
- package/dist/tooltip.js +101 -0
- package/package.json +30 -17
- package/dist/baseIconButton-7bc53dec.js +0 -25
- package/dist/button-497b4d19.js +0 -62
- package/dist/checkbox-1e21cf3e.js +0 -68
- package/dist/dropdown-e07f2a71.js +0 -212
- package/dist/fieldNumber-46fe79b9.js +0 -127
- package/dist/fieldText-65a50d9d.js +0 -101
- package/dist/index-2bee4457.js +0 -131
- package/dist/systemMessage-1ced6079.js +0 -30
- package/dist/toggle-707ecb74.js +0 -67
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
import { jsxs as K, jsx as l } from "react/jsx-runtime";
|
|
2
|
-
import * as d from "react";
|
|
3
|
-
import { useRef as A, useMemo as B } from "react";
|
|
4
|
-
import { c as T } from "./bind-06a7ff84.js";
|
|
5
|
-
import { K as e } from "./keyCodes-f63c0e11.js";
|
|
6
|
-
import { B as f } from "./baseIconButton-7bc53dec.js";
|
|
7
|
-
const W = (t) => /* @__PURE__ */ d.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "#C1C7D0", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ d.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" })), v = (t) => /* @__PURE__ */ d.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "#C1C7D0", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ d.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" })), y = 5, h = 16, S = [
|
|
8
|
-
e.TAB_KEY_CODE,
|
|
9
|
-
e.BACKSPACE_KEY_CODE,
|
|
10
|
-
e.ARROW_LEFT_KEY_CODE,
|
|
11
|
-
e.ARROW_UP_KEY_CODE,
|
|
12
|
-
e.ARROW_RIGHT_KEY_CODE,
|
|
13
|
-
e.ARROW_DOWN_KEY_CODE,
|
|
14
|
-
e.DELETE_KEY_CODE,
|
|
15
|
-
e.NUM_LOCK_0_KEY_CODE,
|
|
16
|
-
e.NUM_LOCK_1_KEY_CODE,
|
|
17
|
-
e.NUM_LOCK_2_KEY_CODE,
|
|
18
|
-
e.NUM_LOCK_3_KEY_CODE,
|
|
19
|
-
e.NUM_LOCK_4_KEY_CODE,
|
|
20
|
-
e.NUM_LOCK_5_KEY_CODE,
|
|
21
|
-
e.NUM_LOCK_6_KEY_CODE,
|
|
22
|
-
e.NUM_LOCK_7_KEY_CODE,
|
|
23
|
-
e.NUM_LOCK_8_KEY_CODE,
|
|
24
|
-
e.NUM_LOCK_9_KEY_CODE
|
|
25
|
-
], I = "_disabled_3tc9r_6", b = "_label_3tc9r_10", k = "_sign_3tc9r_21", F = "_error_3tc9r_36", H = "_touched_3tc9r_36", V = "_filled_3tc9r_41", P = "_input_3tc9r_26", j = {
|
|
26
|
-
"field-number": "_field-number_3tc9r_1",
|
|
27
|
-
disabled: I,
|
|
28
|
-
label: b,
|
|
29
|
-
sign: k,
|
|
30
|
-
"input-container": "_input-container_3tc9r_26",
|
|
31
|
-
error: F,
|
|
32
|
-
touched: H,
|
|
33
|
-
filled: V,
|
|
34
|
-
"input-field": "_input-field_3tc9r_48",
|
|
35
|
-
input: P
|
|
36
|
-
}, r = T.bind(j), z = ({
|
|
37
|
-
value: t = "",
|
|
38
|
-
placeholder: D = "0",
|
|
39
|
-
disabled: c = !1,
|
|
40
|
-
onChange: i,
|
|
41
|
-
onFocus: a,
|
|
42
|
-
onBlur: G,
|
|
43
|
-
label: O,
|
|
44
|
-
postfix: s = "",
|
|
45
|
-
min: o = 0,
|
|
46
|
-
max: E = Number.MAX_SAFE_INTEGER,
|
|
47
|
-
title: p,
|
|
48
|
-
error: m,
|
|
49
|
-
touched: L = !1,
|
|
50
|
-
...N
|
|
51
|
-
}) => {
|
|
52
|
-
const C = A(null), R = (_) => {
|
|
53
|
-
let n = _.target.value.replace(/^0(?=\d+|^\d)/g, "");
|
|
54
|
-
if (n === "") {
|
|
55
|
-
i("");
|
|
56
|
-
return;
|
|
57
|
-
}
|
|
58
|
-
n = +n, n >= o && n <= E && i(n);
|
|
59
|
-
}, Y = (_) => {
|
|
60
|
-
const { keyCode: n } = _;
|
|
61
|
-
S.includes(n) || (n < e.NUMBER_START_KEY_CODE || n > e.NUMBER_END_KEY_CODE || _.shiftKey) && _.preventDefault();
|
|
62
|
-
}, w = () => {
|
|
63
|
-
const _ = +t - 1;
|
|
64
|
-
_ >= o && _ <= E && i(_);
|
|
65
|
-
}, g = () => {
|
|
66
|
-
const _ = +t + 1;
|
|
67
|
-
_ >= o && _ <= E && i(_);
|
|
68
|
-
}, u = D + s, M = B(() => {
|
|
69
|
-
let _ = (String(t) || u).length;
|
|
70
|
-
return s && !t && (_ += 1), _ > h ? `${h}ch` : `${_ || y}ch`;
|
|
71
|
-
}, [u, s, t]), U = () => {
|
|
72
|
-
C && C.current && C.current.focus(), a && a();
|
|
73
|
-
};
|
|
74
|
-
return /* @__PURE__ */ K("div", { className: r("field-number", { disabled: c }), children: [
|
|
75
|
-
O && /* @__PURE__ */ l("span", { className: r("label"), children: O }),
|
|
76
|
-
/* @__PURE__ */ K(
|
|
77
|
-
"div",
|
|
78
|
-
{
|
|
79
|
-
className: r("input-container", {
|
|
80
|
-
filled: !!t || t === 0,
|
|
81
|
-
error: m,
|
|
82
|
-
disabled: c,
|
|
83
|
-
touched: L
|
|
84
|
-
}),
|
|
85
|
-
title: p,
|
|
86
|
-
children: [
|
|
87
|
-
/* @__PURE__ */ l(
|
|
88
|
-
f,
|
|
89
|
-
{
|
|
90
|
-
className: r("sign", "minus"),
|
|
91
|
-
disabled: c,
|
|
92
|
-
onClick: w,
|
|
93
|
-
children: /* @__PURE__ */ l(v, {})
|
|
94
|
-
}
|
|
95
|
-
),
|
|
96
|
-
/* @__PURE__ */ K("span", { className: r("input-field", { disabled: c }), onClick: U, children: [
|
|
97
|
-
/* @__PURE__ */ l(
|
|
98
|
-
"input",
|
|
99
|
-
{
|
|
100
|
-
ref: C,
|
|
101
|
-
className: r("input"),
|
|
102
|
-
type: "number",
|
|
103
|
-
value: t,
|
|
104
|
-
placeholder: u,
|
|
105
|
-
disabled: c,
|
|
106
|
-
min: o,
|
|
107
|
-
max: E,
|
|
108
|
-
onKeyDown: c ? void 0 : Y,
|
|
109
|
-
onChange: c ? void 0 : R,
|
|
110
|
-
onFocus: c ? void 0 : a,
|
|
111
|
-
style: { width: M },
|
|
112
|
-
...N
|
|
113
|
-
}
|
|
114
|
-
),
|
|
115
|
-
!!s && (t === 0 || !!t) && /* @__PURE__ */ l("span", { children: s.slice(0, 1) })
|
|
116
|
-
] }),
|
|
117
|
-
/* @__PURE__ */ l(f, { className: r("sign", "plus"), disabled: c, onClick: g, children: /* @__PURE__ */ l(W, {}) })
|
|
118
|
-
]
|
|
119
|
-
}
|
|
120
|
-
)
|
|
121
|
-
] });
|
|
122
|
-
};
|
|
123
|
-
export {
|
|
124
|
-
z as F,
|
|
125
|
-
W as S,
|
|
126
|
-
v as a
|
|
127
|
-
};
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import { jsx as n, jsxs as t, Fragment as x } from "react/jsx-runtime";
|
|
2
|
-
import * as o from "react";
|
|
3
|
-
import { forwardRef as E } from "react";
|
|
4
|
-
import { c as A } from "./bind-06a7ff84.js";
|
|
5
|
-
import "./baseIconButton-7bc53dec.js";
|
|
6
|
-
const F = (a) => /* @__PURE__ */ o.createElement("svg", { width: 17, height: 17, viewBox: "0 0 17 17", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...a }, /* @__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" })), R = "_label_18rqf_18", j = "_asterisk_18rqf_27", y = "_disabled_18rqf_33", B = "_field_18rqf_38", S = "_error_18rqf_52", M = "_touched_18rqf_52", Z = "_placeholder_18rqf_63", z = "_input_18rqf_70", D = "_icon_18rqf_1", G = "_text_18rqf_159", H = {
|
|
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: R,
|
|
11
|
-
asterisk: j,
|
|
12
|
-
disabled: y,
|
|
13
|
-
field: B,
|
|
14
|
-
error: S,
|
|
15
|
-
touched: M,
|
|
16
|
-
placeholder: Z,
|
|
17
|
-
"default-width": "_default-width_18rqf_66",
|
|
18
|
-
"input-container": "_input-container_18rqf_70",
|
|
19
|
-
input: z,
|
|
20
|
-
icon: D,
|
|
21
|
-
"clear-icon": "_clear-icon_18rqf_116",
|
|
22
|
-
"additional-content": "_additional-content_18rqf_152",
|
|
23
|
-
text: G,
|
|
24
|
-
"error-text": "_error-text_18rqf_167",
|
|
25
|
-
"help-text": "_help-text_18rqf_171"
|
|
26
|
-
}, e = A.bind(H), Q = E(
|
|
27
|
-
({
|
|
28
|
-
value: a,
|
|
29
|
-
className: q,
|
|
30
|
-
error: r,
|
|
31
|
-
placeholder: _,
|
|
32
|
-
disabled: c = !1,
|
|
33
|
-
onChange: N,
|
|
34
|
-
touched: i = !1,
|
|
35
|
-
title: u,
|
|
36
|
-
label: s,
|
|
37
|
-
helpText: l,
|
|
38
|
-
defaultWidth: w = !0,
|
|
39
|
-
startIcon: d,
|
|
40
|
-
endIcon: f,
|
|
41
|
-
clearable: C = !1,
|
|
42
|
-
onClear: p,
|
|
43
|
-
isRequired: h = !1,
|
|
44
|
-
hasDoubleMessage: L = !1,
|
|
45
|
-
type: g = "text",
|
|
46
|
-
...k
|
|
47
|
-
}, v) => {
|
|
48
|
-
const b = () => {
|
|
49
|
-
p && p(a);
|
|
50
|
-
}, m = /* @__PURE__ */ n("span", { className: e("text", "help-text"), children: l });
|
|
51
|
-
return /* @__PURE__ */ t(x, { children: [
|
|
52
|
-
s && /* @__PURE__ */ t("span", { className: e("label", { disabled: c }), children: [
|
|
53
|
-
s,
|
|
54
|
-
h && /* @__PURE__ */ n("span", { className: e("asterisk"), children: "*" })
|
|
55
|
-
] }),
|
|
56
|
-
/* @__PURE__ */ t(
|
|
57
|
-
"div",
|
|
58
|
-
{
|
|
59
|
-
className: e("field", q, {
|
|
60
|
-
error: r,
|
|
61
|
-
touched: i,
|
|
62
|
-
disabled: c,
|
|
63
|
-
"default-width": w
|
|
64
|
-
}),
|
|
65
|
-
title: u,
|
|
66
|
-
children: [
|
|
67
|
-
d && /* @__PURE__ */ n("span", { className: e("icon-container-start"), children: /* @__PURE__ */ n("span", { className: e("icon"), children: d }) }),
|
|
68
|
-
/* @__PURE__ */ t("span", { className: e("input-container"), children: [
|
|
69
|
-
/* @__PURE__ */ n(
|
|
70
|
-
"input",
|
|
71
|
-
{
|
|
72
|
-
ref: v,
|
|
73
|
-
type: g,
|
|
74
|
-
className: e("input"),
|
|
75
|
-
value: a,
|
|
76
|
-
disabled: c,
|
|
77
|
-
onChange: N,
|
|
78
|
-
...k
|
|
79
|
-
}
|
|
80
|
-
),
|
|
81
|
-
_ && !a && /* @__PURE__ */ t("span", { className: e("placeholder"), children: [
|
|
82
|
-
_,
|
|
83
|
-
h && !s && /* @__PURE__ */ n("span", { className: e("asterisk") })
|
|
84
|
-
] })
|
|
85
|
-
] }),
|
|
86
|
-
f && /* @__PURE__ */ n("span", { className: e("icon-container-end"), children: /* @__PURE__ */ n("span", { className: e("icon"), children: f }) }),
|
|
87
|
-
C && /* @__PURE__ */ n("span", { className: e("icon-container-end"), children: /* @__PURE__ */ n("button", { type: "button", className: e("clear-icon", { disabled: c }), onClick: b, children: /* @__PURE__ */ n(F, {}) }) })
|
|
88
|
-
]
|
|
89
|
-
}
|
|
90
|
-
),
|
|
91
|
-
(r && i || l) && /* @__PURE__ */ n("div", { className: e("additional-content", { disabled: c }), children: r && i ? /* @__PURE__ */ t(x, { children: [
|
|
92
|
-
/* @__PURE__ */ n("span", { className: e("text", "error-text"), children: r }),
|
|
93
|
-
L && m
|
|
94
|
-
] }) : l && m })
|
|
95
|
-
] });
|
|
96
|
-
}
|
|
97
|
-
);
|
|
98
|
-
export {
|
|
99
|
-
Q as F,
|
|
100
|
-
F as S
|
|
101
|
-
};
|
package/dist/index-2bee4457.js
DELETED
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
import { jsx as e, jsxs as i } from "react/jsx-runtime";
|
|
2
|
-
import * as y from "react";
|
|
3
|
-
import { useState as w, useEffect as g, useRef as j } from "react";
|
|
4
|
-
import { Scrollbars as B } from "rc-scrollbars";
|
|
5
|
-
import { AnimatePresence as D, motion as I } from "framer-motion";
|
|
6
|
-
import { c as m } from "./bind-06a7ff84.js";
|
|
7
|
-
import { u as K } from "./useOnClickOutside-c332f7d3.js";
|
|
8
|
-
import { K as F } from "./keyCodes-f63c0e11.js";
|
|
9
|
-
import { B as C } from "./button-497b4d19.js";
|
|
10
|
-
import { B as P } from "./baseIconButton-7bc53dec.js";
|
|
11
|
-
const G = (t) => /* @__PURE__ */ y.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ y.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M0.732179 15.2698C0.330639 14.8683 0.33064 14.2172 0.73218 13.8157L6.54858 7.99928L0.73218 2.18288C0.33064 1.78134 0.330639 1.13031 0.732179 0.728774C1.13372 0.327235 1.78474 0.327235 2.18628 0.728774L8.00269 6.54518L13.8191 0.728767C14.2206 0.327229 14.8717 0.327228 15.2732 0.728767C15.6747 1.13031 15.6747 1.78133 15.2732 2.18287L9.45679 7.99928L15.2732 13.8157C15.6747 14.2172 15.6747 14.8683 15.2732 15.2698C14.8717 15.6713 14.2206 15.6713 13.8191 15.2698L8.00269 9.45338L2.18628 15.2698C1.78474 15.6713 1.13372 15.6713 0.732179 15.2698Z", fill: "#A2AAB5" })), X = () => {
|
|
12
|
-
const [t, a] = w({ width: 0, height: 0 });
|
|
13
|
-
return g(() => {
|
|
14
|
-
const o = () => {
|
|
15
|
-
a({
|
|
16
|
-
width: window.innerWidth,
|
|
17
|
-
height: window.innerHeight
|
|
18
|
-
});
|
|
19
|
-
};
|
|
20
|
-
return window.addEventListener("resize", o), o(), () => window.removeEventListener("resize", o);
|
|
21
|
-
}, []), t;
|
|
22
|
-
}, Y = {
|
|
23
|
-
"modal-content": "_modal-content_ojybs_1"
|
|
24
|
-
}, Z = m.bind(Y), b = ({ children: t }) => /* @__PURE__ */ e("div", { className: Z("modal-content"), children: t }), q = {
|
|
25
|
-
"buttons-block": "_buttons-block_1dgm4_1",
|
|
26
|
-
"button-container": "_button-container_1dgm4_5",
|
|
27
|
-
"modal-footer": "_modal-footer_1dgm4_14",
|
|
28
|
-
"with-extra-node": "_with-extra-node_1dgm4_21",
|
|
29
|
-
"size-small": "_size-small_1dgm4_25"
|
|
30
|
-
}, c = m.bind(q), J = ({
|
|
31
|
-
footerNode: t,
|
|
32
|
-
closeHandler: a,
|
|
33
|
-
okButton: o,
|
|
34
|
-
cancelButton: l,
|
|
35
|
-
size: s
|
|
36
|
-
}) => /* @__PURE__ */ i("div", { className: c("modal-footer", { "with-extra-node": t, [`size-${s}`]: s }), children: [
|
|
37
|
-
t && t,
|
|
38
|
-
/* @__PURE__ */ i("div", { className: c("buttons-block"), children: [
|
|
39
|
-
l && /* @__PURE__ */ e("div", { className: c("button-container"), children: /* @__PURE__ */ e(
|
|
40
|
-
C,
|
|
41
|
-
{
|
|
42
|
-
variant: "ghost",
|
|
43
|
-
adjustWidthOn: s === "small" ? "parent" : "content",
|
|
44
|
-
onClick: a,
|
|
45
|
-
...l
|
|
46
|
-
}
|
|
47
|
-
) }),
|
|
48
|
-
o && /* @__PURE__ */ e("div", { className: c("button-container"), children: /* @__PURE__ */ e(C, { adjustWidthOn: s === "small" ? "parent" : "content", ...o }) })
|
|
49
|
-
] })
|
|
50
|
-
] }), Q = {
|
|
51
|
-
"modal-header": "_modal-header_11gdx_1",
|
|
52
|
-
"modal-header-content": "_modal-header-content_11gdx_11",
|
|
53
|
-
"modal-title": "_modal-title_11gdx_20",
|
|
54
|
-
"close-modal-icon": "_close-modal-icon_11gdx_28"
|
|
55
|
-
}, r = m.bind(Q), U = ({ title: t, onClose: a, headerNode: o }) => /* @__PURE__ */ i("div", { className: r("modal-header"), children: [
|
|
56
|
-
/* @__PURE__ */ i("div", { className: r("modal-header-content"), children: [
|
|
57
|
-
t && /* @__PURE__ */ e("span", { className: r("modal-title"), children: t }),
|
|
58
|
-
o && o
|
|
59
|
-
] }),
|
|
60
|
-
/* @__PURE__ */ e(P, { className: r("close-modal-icon"), onClick: a, children: /* @__PURE__ */ e(G, {}) })
|
|
61
|
-
] }), V = "_modal_1kzzv_1", ee = {
|
|
62
|
-
modal: V,
|
|
63
|
-
"overlay-default": "_overlay-default_1kzzv_11",
|
|
64
|
-
"overlay-light-cyan": "_overlay-light-cyan_1kzzv_15",
|
|
65
|
-
"scrolling-content": "_scrolling-content_1kzzv_19",
|
|
66
|
-
"modal-window": "_modal-window_1kzzv_25",
|
|
67
|
-
"size-default": "_size-default_1kzzv_42",
|
|
68
|
-
"size-small": "_size-small_1kzzv_54",
|
|
69
|
-
"size-large": "_size-large_1kzzv_66"
|
|
70
|
-
}, k = m.bind(ee), te = 0.9, oe = 176, _e = ({
|
|
71
|
-
title: t,
|
|
72
|
-
headerNode: a,
|
|
73
|
-
children: o,
|
|
74
|
-
footerNode: l,
|
|
75
|
-
okButton: s,
|
|
76
|
-
cancelButton: E,
|
|
77
|
-
className: M,
|
|
78
|
-
size: _ = "default",
|
|
79
|
-
onClose: H = () => {
|
|
80
|
-
},
|
|
81
|
-
overlay: v = "default",
|
|
82
|
-
zIndex: L = 2,
|
|
83
|
-
allowCloseOutside: N = !0,
|
|
84
|
-
scrollable: A = !1
|
|
85
|
-
}) => {
|
|
86
|
-
const [O, f] = w(!1), [R, S] = w(0), n = j(null), z = X(), p = z.height, $ = p * te, h = (p - R) / 2, T = $ - oe, d = () => {
|
|
87
|
-
f(!1);
|
|
88
|
-
}, x = (u) => {
|
|
89
|
-
const { keyCode: W } = u;
|
|
90
|
-
W === F.ESCAPE_KEY_CODE && d();
|
|
91
|
-
};
|
|
92
|
-
return g(() => {
|
|
93
|
-
if (n && n.current) {
|
|
94
|
-
const { clientHeight: u } = n.current;
|
|
95
|
-
S(u);
|
|
96
|
-
}
|
|
97
|
-
}, [o, z]), g(() => (f(!0), n && n.current && n.current.focus(), document.addEventListener("keydown", x, !1), () => document.removeEventListener("keydown", x, !1)), []), K(n, N ? d : void 0), /* @__PURE__ */ e(D, { onExitComplete: H, children: O && /* @__PURE__ */ e("div", { className: k("modal", { [`overlay-${v}`]: v }), style: { zIndex: L }, children: /* @__PURE__ */ i(
|
|
98
|
-
I.div,
|
|
99
|
-
{
|
|
100
|
-
className: k("modal-window", { [`size-${_}`]: _ }, M),
|
|
101
|
-
ref: n,
|
|
102
|
-
tabIndex: 0,
|
|
103
|
-
initial: { opacity: 0, marginTop: -h },
|
|
104
|
-
animate: { opacity: 1, marginTop: h },
|
|
105
|
-
exit: { opacity: 0, marginTop: -h },
|
|
106
|
-
transition: { duration: 0.3 },
|
|
107
|
-
children: [
|
|
108
|
-
/* @__PURE__ */ e(U, { title: t, headerNode: a, onClose: d }),
|
|
109
|
-
A ? /* @__PURE__ */ e(B, { autoHeight: !0, autoHeightMax: T, hideTracksWhenNotNeeded: !0, children: /* @__PURE__ */ e(b, { children: o }) }) : /* @__PURE__ */ e(b, { children: o }),
|
|
110
|
-
/* @__PURE__ */ e(
|
|
111
|
-
J,
|
|
112
|
-
{
|
|
113
|
-
size: _,
|
|
114
|
-
footerNode: l,
|
|
115
|
-
okButton: s,
|
|
116
|
-
cancelButton: E,
|
|
117
|
-
closeHandler: d
|
|
118
|
-
}
|
|
119
|
-
)
|
|
120
|
-
]
|
|
121
|
-
},
|
|
122
|
-
"modal-window"
|
|
123
|
-
) }) });
|
|
124
|
-
};
|
|
125
|
-
export {
|
|
126
|
-
_e as M,
|
|
127
|
-
G as S,
|
|
128
|
-
b as a,
|
|
129
|
-
U as b,
|
|
130
|
-
J as c
|
|
131
|
-
};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { jsxs as t, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { c } from "./bind-06a7ff84.js";
|
|
3
|
-
const m = "_children_fp9ws_54", o = {
|
|
4
|
-
"system-message": "_system-message_fp9ws_1",
|
|
5
|
-
"stripes-info": "_stripes-info_fp9ws_12",
|
|
6
|
-
"stripes-warning": "_stripes-warning_fp9ws_17",
|
|
7
|
-
"stripes-error": "_stripes-error_fp9ws_22",
|
|
8
|
-
"text-container": "_text-container_fp9ws_27",
|
|
9
|
-
"message-header-info": "_message-header-info_fp9ws_30",
|
|
10
|
-
"message-header-warning": "_message-header-warning_fp9ws_38",
|
|
11
|
-
"message-header-error": "_message-header-error_fp9ws_46",
|
|
12
|
-
children: m,
|
|
13
|
-
"content-width": "_content-width_fp9ws_70"
|
|
14
|
-
}, s = c.bind(o), f = ({
|
|
15
|
-
header: r,
|
|
16
|
-
caption: a,
|
|
17
|
-
children: i,
|
|
18
|
-
mode: n = "info",
|
|
19
|
-
widthByContent: _ = !1
|
|
20
|
-
}) => /* @__PURE__ */ t("div", { className: s("system-message", { "content-width": _ }), children: [
|
|
21
|
-
/* @__PURE__ */ e("div", { className: s(`stripes-${n}`) }),
|
|
22
|
-
/* @__PURE__ */ t("div", { className: s("text-container"), children: [
|
|
23
|
-
r && /* @__PURE__ */ e("h1", { className: s(`message-header-${n}`), children: r }),
|
|
24
|
-
/* @__PURE__ */ e("div", { className: s("children"), children: i }),
|
|
25
|
-
a && /* @__PURE__ */ e("p", { children: a })
|
|
26
|
-
] })
|
|
27
|
-
] });
|
|
28
|
-
export {
|
|
29
|
-
f as S
|
|
30
|
-
};
|
package/dist/toggle-707ecb74.js
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { jsxs as f, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { c as b } from "./bind-06a7ff84.js";
|
|
3
|
-
import { useRef as k } from "react";
|
|
4
|
-
import { K as d } from "./keyCodes-f63c0e11.js";
|
|
5
|
-
const h = "_toggle_p1gaq_1", x = "_slider_p1gaq_26", y = "_round_p1gaq_46", E = "_input_p1gaq_50", q = "_disabled_p1gaq_63", D = {
|
|
6
|
-
toggle: h,
|
|
7
|
-
"children-container": "_children-container_p1gaq_13",
|
|
8
|
-
slider: x,
|
|
9
|
-
round: y,
|
|
10
|
-
input: E,
|
|
11
|
-
disabled: q
|
|
12
|
-
}, e = b.bind(D), T = ({
|
|
13
|
-
children: s,
|
|
14
|
-
value: c,
|
|
15
|
-
onChange: p,
|
|
16
|
-
className: _,
|
|
17
|
-
disabled: n = !1,
|
|
18
|
-
title: g,
|
|
19
|
-
...u
|
|
20
|
-
}) => {
|
|
21
|
-
const o = k(null), m = (t) => {
|
|
22
|
-
var a, i;
|
|
23
|
-
const { keyCode: l } = t;
|
|
24
|
-
if (l === d.SPACE_KEY_CODE) {
|
|
25
|
-
t.preventDefault(), (a = o.current) == null || a.click();
|
|
26
|
-
return;
|
|
27
|
-
}
|
|
28
|
-
l === d.ENTER_KEY_CODE && (t.preventDefault(), (i = o.current) == null || i.click());
|
|
29
|
-
};
|
|
30
|
-
return /* @__PURE__ */ f(
|
|
31
|
-
"label",
|
|
32
|
-
{
|
|
33
|
-
id: "rp-ui-kit-toggle-label",
|
|
34
|
-
title: g,
|
|
35
|
-
className: e("toggle", _, { disabled: n }),
|
|
36
|
-
children: [
|
|
37
|
-
/* @__PURE__ */ r(
|
|
38
|
-
"input",
|
|
39
|
-
{
|
|
40
|
-
ref: o,
|
|
41
|
-
tabIndex: n ? -1 : 0,
|
|
42
|
-
onChange: p,
|
|
43
|
-
checked: c,
|
|
44
|
-
disabled: n,
|
|
45
|
-
onKeyDown: m,
|
|
46
|
-
className: e("input"),
|
|
47
|
-
type: "checkbox",
|
|
48
|
-
...u
|
|
49
|
-
}
|
|
50
|
-
),
|
|
51
|
-
/* @__PURE__ */ r(
|
|
52
|
-
"div",
|
|
53
|
-
{
|
|
54
|
-
"aria-labelledby": "rp-ui-kit-toggle-label",
|
|
55
|
-
role: "checkbox",
|
|
56
|
-
"aria-checked": c,
|
|
57
|
-
className: e("slider", "round")
|
|
58
|
-
}
|
|
59
|
-
),
|
|
60
|
-
s && /* @__PURE__ */ r("span", { className: e("children-container"), children: s })
|
|
61
|
-
]
|
|
62
|
-
}
|
|
63
|
-
);
|
|
64
|
-
};
|
|
65
|
-
export {
|
|
66
|
-
T
|
|
67
|
-
};
|