@reportportal/ui-kit 0.0.1-alpha.141 → 0.0.1-alpha.142
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/adaptiveTagList.js +189 -0
- package/dist/attachedFile.js +9 -0
- package/dist/autocompletes.js +779 -0
- package/dist/baseIconButton-251479f7.js +25 -0
- package/dist/baseIconButton.js +7 -0
- package/dist/bind-06a7ff84.js +41 -0
- package/dist/breadcrumbs-8e5ca8d7.js +183 -0
- package/dist/breadcrumbs.js +12 -0
- package/dist/bubblesLoader-f3ffa240.js +28 -0
- package/dist/bubblesLoader.js +7 -0
- package/dist/button-97d9e587.js +66 -0
- package/dist/button.js +8 -0
- package/dist/calendarArrow-44c7e60e.js +5 -0
- package/dist/checkbox-ed6cc375.js +73 -0
- package/dist/checkbox.js +9 -0
- package/dist/chevronDownDropdown-66f5b1af.js +7 -0
- package/dist/clear-53660571.js +5 -0
- package/dist/close-4d480ef7.js +5 -0
- package/dist/datePicker-f8e0df24.js +194 -0
- package/dist/datePicker.js +35 -0
- package/dist/dropdown-0260bb66.js +5 -0
- package/dist/dropdown-893c692c.js +634 -0
- package/dist/dropdown.js +27 -0
- package/dist/fieldLabel.js +18 -0
- package/dist/fieldNumber-d1b5a7a1.js +140 -0
- package/dist/fieldNumber.js +13 -0
- package/dist/fieldText-1749da7a.js +167 -0
- package/dist/fieldText.js +14 -0
- package/dist/fieldTextFlex-2f51c173.js +80 -0
- package/dist/fieldTextFlex.js +10 -0
- package/dist/fileDropArea.js +325 -0
- package/dist/filterOutline-819b4b0d.js +6 -0
- package/dist/filtersButton.js +25 -0
- package/dist/floatingUi-41f8c7b5.js +29 -0
- package/dist/icons.js +85 -0
- package/dist/index-1a874a8b.js +110 -0
- package/dist/index.js +165 -0
- package/dist/isEmpty-ccacb5ff.js +38 -0
- package/dist/keyCodes-f63c0e11.js +4 -0
- package/dist/maxValueDisplay-9be01a75.js +13 -0
- package/dist/maxValueDisplay.js +6 -0
- package/dist/minus-2857540f.js +5 -0
- package/dist/modal.js +194 -0
- package/dist/openEye-950159cb.js +6 -0
- package/dist/pagination-a3dee614.js +347 -0
- package/dist/pagination.js +22 -0
- package/dist/plus-199fb2a8.js +5 -0
- package/dist/popover.js +80 -0
- package/dist/prevPage-87faf576.js +6 -0
- package/dist/radio-62546efa.js +76 -0
- package/dist/radio.js +9 -0
- package/dist/selection-9124d029.js +38 -0
- package/dist/selection.js +10 -0
- package/dist/sidePanel.js +88 -0
- package/dist/sortable.js +160 -0
- package/dist/spinLoader-c4a53718.js +11 -0
- package/dist/spinLoader.js +7 -0
- package/dist/success-8fd8bd2c.js +7 -0
- package/dist/systemAlert.js +69 -0
- package/dist/systemMessage-924fdaa6.js +30 -0
- package/dist/systemMessage.js +7 -0
- package/dist/table-c172f35e.js +504 -0
- package/dist/table.js +15 -0
- package/dist/themeProvider-46c2be7b.js +23 -0
- package/dist/themeProvider.js +7 -0
- package/dist/toggle-304107fa.js +59 -0
- package/dist/toggle.js +9 -0
- package/dist/tooltip.js +103 -0
- package/dist/tree-c3dd3d45.js +6 -0
- package/dist/xls-995781cc.js +11 -0
- package/package.json +8 -6
- package/dist/adaptiveTagList.cjs +0 -1
- package/dist/attachedFile.cjs +0 -1
- package/dist/autocompletes.cjs +0 -1
- package/dist/baseIconButton-263e74dc.js +0 -1
- package/dist/baseIconButton.cjs +0 -1
- package/dist/bind-29baac98.js +0 -5
- package/dist/breadcrumbs-a11e7e56.js +0 -1
- package/dist/breadcrumbs.cjs +0 -1
- package/dist/bubblesLoader-98fdf0af.js +0 -1
- package/dist/bubblesLoader.cjs +0 -1
- package/dist/button-8456d133.js +0 -1
- package/dist/button.cjs +0 -1
- package/dist/calendarArrow-6c6d9356.js +0 -1
- package/dist/checkbox-d4cc648d.js +0 -1
- package/dist/checkbox.cjs +0 -1
- package/dist/chevronDownDropdown-6196562c.js +0 -1
- package/dist/clear-07e1c174.js +0 -1
- package/dist/close-82e2e274.js +0 -1
- package/dist/datePicker-245e845d.js +0 -1
- package/dist/datePicker.cjs +0 -1
- package/dist/dropdown-b56964c6.js +0 -1
- package/dist/dropdown-fa4cd19c.js +0 -1
- package/dist/dropdown.cjs +0 -1
- package/dist/fieldLabel.cjs +0 -1
- package/dist/fieldNumber-9fe044df.js +0 -1
- package/dist/fieldNumber.cjs +0 -1
- package/dist/fieldText-2af0d7db.js +0 -1
- package/dist/fieldText.cjs +0 -1
- package/dist/fieldTextFlex-c26b190d.js +0 -1
- package/dist/fieldTextFlex.cjs +0 -1
- package/dist/fileDropArea.cjs +0 -1
- package/dist/filterOutline-5f3f8591.js +0 -1
- package/dist/filtersButton.cjs +0 -1
- package/dist/floatingUi-97183bba.js +0 -1
- package/dist/icons.cjs +0 -1
- package/dist/index-4c0424bf.js +0 -1
- package/dist/index.cjs +0 -1
- package/dist/isEmpty-fe949e63.js +0 -1
- package/dist/keyCodes-b188a920.js +0 -1
- package/dist/maxValueDisplay-68f1f114.js +0 -1
- package/dist/maxValueDisplay.cjs +0 -1
- package/dist/minus-0debd2c6.js +0 -1
- package/dist/modal.cjs +0 -1
- package/dist/openEye-737c72d6.js +0 -1
- package/dist/pagination-fc5189f7.js +0 -1
- package/dist/pagination.cjs +0 -1
- package/dist/plus-b12abe9f.js +0 -1
- package/dist/popover.cjs +0 -1
- package/dist/prevPage-063b5d63.js +0 -1
- package/dist/radio-aba4677b.js +0 -1
- package/dist/radio.cjs +0 -1
- package/dist/selection-49b927d0.js +0 -1
- package/dist/selection.cjs +0 -1
- package/dist/sidePanel.cjs +0 -1
- package/dist/sortable.cjs +0 -1
- package/dist/spinLoader-9ebd776a.js +0 -1
- package/dist/spinLoader.cjs +0 -1
- package/dist/success-823e5446.js +0 -1
- package/dist/systemAlert.cjs +0 -1
- package/dist/systemMessage-1ae2764d.js +0 -1
- package/dist/systemMessage.cjs +0 -1
- package/dist/table-cd9f0ff3.js +0 -1
- package/dist/table.cjs +0 -1
- package/dist/themeProvider-4dfafca5.js +0 -1
- package/dist/themeProvider.cjs +0 -1
- package/dist/toggle-359b70d4.js +0 -1
- package/dist/toggle.cjs +0 -1
- package/dist/tooltip.cjs +0 -1
- package/dist/tree-4610ac42.js +0 -1
- package/dist/xls-3ed747b0.js +0 -1
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
import { jsxs as F, Fragment as $, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import B from "react-datepicker/dist/es/index.js";
|
|
3
|
+
import { c as R } from "./bind-06a7ff84.js";
|
|
4
|
+
import { useMemo as P, useRef as D } from "react";
|
|
5
|
+
import { F as I } from "./fieldText-1749da7a.js";
|
|
6
|
+
import { D as E } from "./dropdown-893c692c.js";
|
|
7
|
+
import { S as T } from "./calendarArrow-44c7e60e.js";
|
|
8
|
+
import { registerLocale as j } from "react-datepicker";
|
|
9
|
+
const ie = (n, s) => {
|
|
10
|
+
j(n, s);
|
|
11
|
+
}, G = (n, s = 20) => {
|
|
12
|
+
const i = n + s;
|
|
13
|
+
return new Array(i - n).fill(void 0).map((g, t) => n - t);
|
|
14
|
+
}, H = "_header_1q16i_1", V = "_disabled_1q16i_25", O = "_dropdown_1q16i_8", W = {
|
|
15
|
+
header: H,
|
|
16
|
+
"dropdowns-wrapper": "_dropdowns-wrapper_1q16i_8",
|
|
17
|
+
"button-prev": "_button-prev_1q16i_13",
|
|
18
|
+
"button-next": "_button-next_1q16i_14",
|
|
19
|
+
disabled: V,
|
|
20
|
+
dropdown: O,
|
|
21
|
+
"month-dropdown": "_month-dropdown_1q16i_44",
|
|
22
|
+
"toggle-button": "_toggle-button_1q16i_47"
|
|
23
|
+
}, a = R.bind(W), z = ({
|
|
24
|
+
date: n = /* @__PURE__ */ new Date(),
|
|
25
|
+
changeYear: s = () => {
|
|
26
|
+
},
|
|
27
|
+
changeMonth: i = () => {
|
|
28
|
+
},
|
|
29
|
+
decreaseMonth: g = () => {
|
|
30
|
+
},
|
|
31
|
+
increaseMonth: t = () => {
|
|
32
|
+
},
|
|
33
|
+
prevMonthButtonDisabled: o = !1,
|
|
34
|
+
nextMonthButtonDisabled: h = !1,
|
|
35
|
+
headerNodes: b = null,
|
|
36
|
+
customClassName: w = "",
|
|
37
|
+
yearsOptions: p = [],
|
|
38
|
+
locale: y
|
|
39
|
+
}) => {
|
|
40
|
+
const c = n.getFullYear(), C = n.getMonth(), f = P(() => {
|
|
41
|
+
const e = Array(12).keys(), l = new Intl.DateTimeFormat(y, {
|
|
42
|
+
month: "long"
|
|
43
|
+
}), d = (m) => l.format(new Date(c, m));
|
|
44
|
+
return Array.from(e, d).reduce((m, N, x) => m.concat({
|
|
45
|
+
value: x,
|
|
46
|
+
label: N
|
|
47
|
+
}), []);
|
|
48
|
+
}, [y, c]), v = P(() => (p.length > 0 ? p : G(c)).reduce(
|
|
49
|
+
(l, d) => l.concat({ value: d, label: `${d}` }),
|
|
50
|
+
[]
|
|
51
|
+
), [p, c]), A = (e) => {
|
|
52
|
+
i(e);
|
|
53
|
+
}, k = (e) => {
|
|
54
|
+
s(e);
|
|
55
|
+
};
|
|
56
|
+
return /* @__PURE__ */ F($, { children: [
|
|
57
|
+
b && /* @__PURE__ */ r("div", { className: a(w), children: b }),
|
|
58
|
+
/* @__PURE__ */ F("div", { className: a("header"), children: [
|
|
59
|
+
/* @__PURE__ */ r(
|
|
60
|
+
"button",
|
|
61
|
+
{
|
|
62
|
+
type: "button",
|
|
63
|
+
"aria-label": "Previous Months",
|
|
64
|
+
disabled: o,
|
|
65
|
+
onClick: (e) => {
|
|
66
|
+
e.stopPropagation(), g();
|
|
67
|
+
},
|
|
68
|
+
className: a("button-prev", { disabled: o }),
|
|
69
|
+
children: /* @__PURE__ */ r(T, {})
|
|
70
|
+
}
|
|
71
|
+
),
|
|
72
|
+
/* @__PURE__ */ F("div", { className: a("dropdowns-wrapper"), children: [
|
|
73
|
+
/* @__PURE__ */ r(
|
|
74
|
+
E,
|
|
75
|
+
{
|
|
76
|
+
options: f,
|
|
77
|
+
value: C,
|
|
78
|
+
onChange: A,
|
|
79
|
+
transparentBackground: !0,
|
|
80
|
+
className: a("dropdown", "month-dropdown"),
|
|
81
|
+
toggleButtonClassName: a("toggle-button")
|
|
82
|
+
}
|
|
83
|
+
),
|
|
84
|
+
/* @__PURE__ */ r(
|
|
85
|
+
E,
|
|
86
|
+
{
|
|
87
|
+
options: v,
|
|
88
|
+
value: c,
|
|
89
|
+
onChange: k,
|
|
90
|
+
transparentBackground: !0,
|
|
91
|
+
className: a("dropdown"),
|
|
92
|
+
toggleButtonClassName: a("toggle-button")
|
|
93
|
+
}
|
|
94
|
+
)
|
|
95
|
+
] }),
|
|
96
|
+
/* @__PURE__ */ r(
|
|
97
|
+
"button",
|
|
98
|
+
{
|
|
99
|
+
type: "button",
|
|
100
|
+
"aria-label": "Next Months",
|
|
101
|
+
disabled: h,
|
|
102
|
+
onClick: (e) => {
|
|
103
|
+
e.stopPropagation(), t();
|
|
104
|
+
},
|
|
105
|
+
className: a("button-next", { disabled: h }),
|
|
106
|
+
children: /* @__PURE__ */ r(T, {})
|
|
107
|
+
}
|
|
108
|
+
)
|
|
109
|
+
] })
|
|
110
|
+
] });
|
|
111
|
+
}, J = "_calendar_3ty6m_5", K = "_date_3ty6m_90", Q = "_disabled_3ty6m_203", X = "_popper_3ty6m_211", Z = "_input_3ty6m_215", ee = {
|
|
112
|
+
calendar: J,
|
|
113
|
+
"current-date": "_current-date_3ty6m_89",
|
|
114
|
+
date: K,
|
|
115
|
+
"selected-range": "_selected-range_3ty6m_119",
|
|
116
|
+
"end-date": "_end-date_3ty6m_119",
|
|
117
|
+
disabled: Q,
|
|
118
|
+
popper: X,
|
|
119
|
+
input: Z
|
|
120
|
+
}, _ = R.bind(ee), te = "en", L = "MM-dd-yyyy", pe = ({
|
|
121
|
+
onChange: n = () => {
|
|
122
|
+
},
|
|
123
|
+
disabled: s = !1,
|
|
124
|
+
onBlur: i = () => {
|
|
125
|
+
},
|
|
126
|
+
onFocus: g = () => {
|
|
127
|
+
},
|
|
128
|
+
endDate: t = void 0,
|
|
129
|
+
startDate: o = void 0,
|
|
130
|
+
headerNodes: h = null,
|
|
131
|
+
customClassName: b = "",
|
|
132
|
+
customTimeInput: w = void 0,
|
|
133
|
+
shouldCloseOnSelect: p = !0,
|
|
134
|
+
popperClassName: y = "",
|
|
135
|
+
calendarClassName: c = "",
|
|
136
|
+
fixedHeight: C = !1,
|
|
137
|
+
language: f = te,
|
|
138
|
+
yearsOptions: v = [],
|
|
139
|
+
placeholder: A = L.toUpperCase(),
|
|
140
|
+
dateFormat: k = L,
|
|
141
|
+
selects: e = "start",
|
|
142
|
+
value: l = null
|
|
143
|
+
}) => {
|
|
144
|
+
const d = D(null), S = o == null ? void 0 : o.toDateString(), m = t == null ? void 0 : t.toDateString(), N = t && o && t > o, x = (u) => {
|
|
145
|
+
const M = u.toDateString(), Y = M === S, q = N && M === m, U = o && t && u > o && u < t;
|
|
146
|
+
return _("date", {
|
|
147
|
+
"current-date": Y,
|
|
148
|
+
"selected-range": U && !q,
|
|
149
|
+
"end-date": q && N,
|
|
150
|
+
disabled: s
|
|
151
|
+
});
|
|
152
|
+
};
|
|
153
|
+
return /* @__PURE__ */ r(
|
|
154
|
+
B,
|
|
155
|
+
{
|
|
156
|
+
customInput: /* @__PURE__ */ r(I, { className: _("input"), defaultWidth: !1, ref: d }),
|
|
157
|
+
placeholderText: A,
|
|
158
|
+
selected: l,
|
|
159
|
+
startDate: o,
|
|
160
|
+
endDate: t,
|
|
161
|
+
disabled: s,
|
|
162
|
+
shouldCloseOnSelect: p,
|
|
163
|
+
fixedHeight: C,
|
|
164
|
+
locale: f,
|
|
165
|
+
showPopperArrow: !1,
|
|
166
|
+
dayClassName: x,
|
|
167
|
+
calendarClassName: _(c, "calendar"),
|
|
168
|
+
renderCustomHeader: (u) => /* @__PURE__ */ r(
|
|
169
|
+
z,
|
|
170
|
+
{
|
|
171
|
+
...u,
|
|
172
|
+
headerNodes: h,
|
|
173
|
+
customClassName: b,
|
|
174
|
+
yearsOptions: v,
|
|
175
|
+
locale: f
|
|
176
|
+
}
|
|
177
|
+
),
|
|
178
|
+
onChange: n,
|
|
179
|
+
onBlur: i,
|
|
180
|
+
onFocus: g,
|
|
181
|
+
customTimeInput: w,
|
|
182
|
+
showTimeInput: !!w,
|
|
183
|
+
popperClassName: _(y, "popper"),
|
|
184
|
+
dateFormat: k,
|
|
185
|
+
selectsStart: e === "start",
|
|
186
|
+
selectsEnd: e === "end",
|
|
187
|
+
className: _("datepicker")
|
|
188
|
+
}
|
|
189
|
+
);
|
|
190
|
+
};
|
|
191
|
+
export {
|
|
192
|
+
pe as D,
|
|
193
|
+
ie as r
|
|
194
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { D as t } from "./datePicker-f8e0df24.js";
|
|
2
|
+
import { r as E } from "./datePicker-f8e0df24.js";
|
|
3
|
+
import "react/jsx-runtime";
|
|
4
|
+
import "react-datepicker/dist/es/index.js";
|
|
5
|
+
import "./bind-06a7ff84.js";
|
|
6
|
+
import "react";
|
|
7
|
+
import "./fieldText-1749da7a.js";
|
|
8
|
+
import "./clear-53660571.js";
|
|
9
|
+
import "./openEye-950159cb.js";
|
|
10
|
+
import "./baseIconButton-251479f7.js";
|
|
11
|
+
import "./spinLoader-c4a53718.js";
|
|
12
|
+
import "./maxValueDisplay-9be01a75.js";
|
|
13
|
+
import "./fieldLabel.js";
|
|
14
|
+
import "./dropdown-893c692c.js";
|
|
15
|
+
import "react-dom";
|
|
16
|
+
import "@floating-ui/react-dom";
|
|
17
|
+
import "downshift";
|
|
18
|
+
import "rc-scrollbars";
|
|
19
|
+
import "./keyCodes-f63c0e11.js";
|
|
20
|
+
import "./dropdown-0260bb66.js";
|
|
21
|
+
import "./tooltip.js";
|
|
22
|
+
import "@floating-ui/react";
|
|
23
|
+
import "./floatingUi-41f8c7b5.js";
|
|
24
|
+
import "./adaptiveTagList.js";
|
|
25
|
+
import "./button-97d9e587.js";
|
|
26
|
+
import "./close-4d480ef7.js";
|
|
27
|
+
import "./isEmpty-ccacb5ff.js";
|
|
28
|
+
import "./checkbox-ed6cc375.js";
|
|
29
|
+
import "./calendarArrow-44c7e60e.js";
|
|
30
|
+
import "react-datepicker";
|
|
31
|
+
export {
|
|
32
|
+
t as DatePicker,
|
|
33
|
+
t as default,
|
|
34
|
+
E as registerDatePickerLocale
|
|
35
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
const o = (t) => /* @__PURE__ */ e.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ e.createElement("path", { d: "M14.2174 5.82426C14.3736 5.66805 14.3736 5.41479 14.2174 5.25858L14.0759 5.11716C13.9197 4.96095 13.6665 4.96095 13.5103 5.11716L8.16726 10.4602L2.82426 5.11716C2.66805 4.96095 2.41479 4.96095 2.25858 5.11716L2.11716 5.25858C1.96095 5.41479 1.96095 5.66805 2.11716 5.82426L7.89176 11.5989C8.04797 11.7551 8.30124 11.7551 8.45745 11.5989L8.88171 11.1746L8.87436 11.1673L14.2174 5.82426Z", fill: "#A2AAB5" }));
|
|
3
|
+
export {
|
|
4
|
+
o as S
|
|
5
|
+
};
|