@reportportal/ui-kit 0.0.1-alpha.197 → 0.0.1-alpha.199
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 +1 -1
- package/dist/components/index.d.ts +1 -1
- package/dist/components/radio/index.d.ts +4 -3
- package/dist/components/radio/radioGroup.d.ts +1 -2
- package/dist/index.js +116 -115
- package/dist/radio.js +3 -1
- package/dist/radioGroup-0c132c2e.js +77 -0
- package/dist/style.css +2 -2
- package/dist/systemAlert.js +69 -53
- package/package.json +1 -1
- package/dist/radio-62546efa.js +0 -76
package/README.md
CHANGED
|
@@ -110,7 +110,7 @@ The number of custom themes is not limited and actual theme can be easily switch
|
|
|
110
110
|
|
|
111
111
|
## Components
|
|
112
112
|
|
|
113
|
-
To see a published showcase of the latest components released with its API and use cases, follow the [link](https://reportportal.io/ui-kit/).
|
|
113
|
+
To see a published showcase of the latest components released with its API and use cases, follow the [link](https://developers.reportportal.io/ui-kit/).
|
|
114
114
|
|
|
115
115
|
### Icons
|
|
116
116
|
|
|
@@ -23,7 +23,7 @@ export { Modal } from './modal';
|
|
|
23
23
|
export { MultipleAutocomplete } from './autocompletes/multipleAutocomplete';
|
|
24
24
|
export { Pagination } from './pagination';
|
|
25
25
|
export { Popover } from './popover';
|
|
26
|
-
export { Radio } from './radio';
|
|
26
|
+
export { Radio, RadioGroup } from './radio';
|
|
27
27
|
export { SegmentedControl } from './segmentedControl';
|
|
28
28
|
export { Selection } from './selection';
|
|
29
29
|
export { SpinLoader } from './spinLoader';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { Radio, RadioProps } from './radio
|
|
1
|
+
import { Radio, RadioProps } from './radio';
|
|
2
|
+
import { RadioGroup, RadioGroupProps } from './radioGroup';
|
|
2
3
|
|
|
3
|
-
export { Radio };
|
|
4
|
-
export type { RadioProps };
|
|
4
|
+
export { Radio, RadioGroup };
|
|
5
|
+
export type { RadioProps, RadioGroupProps };
|
|
5
6
|
export default Radio;
|
|
@@ -2,8 +2,7 @@ import { FC } from 'react';
|
|
|
2
2
|
import { RadioProps } from './index';
|
|
3
3
|
import { RadioOption } from './radio';
|
|
4
4
|
|
|
5
|
-
interface RadioGroupProps extends Omit<RadioProps, 'option'> {
|
|
5
|
+
export interface RadioGroupProps extends Omit<RadioProps, 'option'> {
|
|
6
6
|
options: RadioOption[];
|
|
7
7
|
}
|
|
8
8
|
export declare const RadioGroup: FC<RadioGroupProps>;
|
|
9
|
-
export {};
|
package/dist/index.js
CHANGED
|
@@ -5,8 +5,8 @@ import { A as E } from "./index-d6e02727.js";
|
|
|
5
5
|
import { B as k } from "./baseIconButton-251479f7.js";
|
|
6
6
|
import { B as N } from "./breadcrumbs-80696f49.js";
|
|
7
7
|
import { B as z } from "./bubblesLoader-f3ffa240.js";
|
|
8
|
-
import { BulkPanel as
|
|
9
|
-
import { B as
|
|
8
|
+
import { BulkPanel as H } from "./bulkPanel.js";
|
|
9
|
+
import { B as V } from "./button-7ab874f3.js";
|
|
10
10
|
import { C as W } from "./checkbox-76aa8f97.js";
|
|
11
11
|
import { Chip as j } from "./chip.js";
|
|
12
12
|
import { D as K } from "./datePicker-62184eed.js";
|
|
@@ -24,40 +24,40 @@ import { Modal as uo } from "./modal.js";
|
|
|
24
24
|
import { MultipleAutocomplete as Co, SingleAutocomplete as Po } from "./autocompletes.js";
|
|
25
25
|
import { P as Do } from "./pagination-60bd45c1.js";
|
|
26
26
|
import { Popover as To } from "./popover.js";
|
|
27
|
-
import { R as bo } from "./
|
|
28
|
-
import { SegmentedControl as
|
|
29
|
-
import { S as
|
|
30
|
-
import { S as
|
|
31
|
-
import { SystemAlert as
|
|
32
|
-
import { S as
|
|
33
|
-
import { DragLayer as
|
|
27
|
+
import { R as bo, a as yo } from "./radioGroup-0c132c2e.js";
|
|
28
|
+
import { SegmentedControl as Mo } from "./segmentedControl.js";
|
|
29
|
+
import { S as vo } from "./selection-da1a3528.js";
|
|
30
|
+
import { S as wo } from "./spinLoader-c4a53718.js";
|
|
31
|
+
import { SystemAlert as Ro } from "./systemAlert.js";
|
|
32
|
+
import { S as Oo } from "./systemMessage-924fdaa6.js";
|
|
33
|
+
import { DragLayer as Uo, SortableItem as zo, SortableList as Go, TreeSortableContainer as Ho, TreeSortableItem as Jo } from "./sortable.js";
|
|
34
34
|
import { T as _o } from "./table-0ec68481.js";
|
|
35
|
-
import { T as
|
|
36
|
-
import { T as
|
|
37
|
-
import { Tooltip as
|
|
38
|
-
import { SidePanel as
|
|
35
|
+
import { T as Xo } from "./themeProvider-46c2be7b.js";
|
|
36
|
+
import { T as qo } from "./toggle-304107fa.js";
|
|
37
|
+
import { Tooltip as Qo } from "./tooltip.js";
|
|
38
|
+
import { SidePanel as Zo } from "./sidePanel.js";
|
|
39
39
|
import "react";
|
|
40
40
|
import "react-dnd";
|
|
41
41
|
import "react-dnd-html5-backend";
|
|
42
|
-
import { useTreeDropValidation as
|
|
43
|
-
import { u as
|
|
44
|
-
import { AddCsvIcon as
|
|
45
|
-
import { S as
|
|
46
|
-
import { S as
|
|
47
|
-
import { S as
|
|
48
|
-
import { S as
|
|
49
|
-
import { S as
|
|
50
|
-
import { S as
|
|
51
|
-
import { S as
|
|
52
|
-
import { S as
|
|
53
|
-
import { S as
|
|
54
|
-
import { S as
|
|
55
|
-
import { S as
|
|
56
|
-
import { S as
|
|
57
|
-
import { S as
|
|
58
|
-
import { S as
|
|
59
|
-
import { S as
|
|
60
|
-
import { S as
|
|
42
|
+
import { useTreeDropValidation as or } from "./common/hooks.js";
|
|
43
|
+
import { u as er } from "./useEllipsisTitle-462fa254.js";
|
|
44
|
+
import { AddCsvIcon as ar, AddImageIcon as nr, AddJarIcon as pr, BreadcrumbsTreeIcon as mr, CalendarIcon as ir, CheckmarkIcon as cr, ChevronRightBreadcrumbsIcon as sr, ConfigurationIcon as Ir, CopyIcon as lr, CoverageFullIcon as xr, CoveragePartialIcon as fr, CoveredManuallyIcon as dr, DeleteIcon as ur, DragAndDropIcon as Sr, DragNDropIcon as Cr, DurationIcon as Pr, EditIcon as gr, ExportIcon as Dr, FlagIcon as Fr, GroupByIcon as Tr, HideIcon as Ar, LaunchTypeIcon as br, MailIcon as yr, MaximizeIcon as Br, MoveToFolderIcon as Mr, PinFilledIcon as hr, PinOutlineIcon as vr, PriorityBlockerIcon as Lr, PriorityCriticalIcon as wr, PriorityHighIcon as Er, PriorityLowIcon as Rr, PriorityMediumIcon as kr, PriorityUnspecifiedIcon as Or, RefreshIcon as Nr, RerunIcon as Ur, RunManualIcon as zr, SearchIcon as Gr, SortIcon as Hr, StatusSuccessIcon as Jr, TestPlanIcon as Vr, UserIcon as _r } from "./icons.js";
|
|
45
|
+
import { S as Xr, a as jr, b as qr } from "./resizeColumn-46b5b30f.js";
|
|
46
|
+
import { S as Qr } from "./calendarArrow-44c7e60e.js";
|
|
47
|
+
import { S as Zr } from "./chevronDownDropdown-0260bb66.js";
|
|
48
|
+
import { S as oe } from "./clear-53660571.js";
|
|
49
|
+
import { S as ee, a as te } from "./openEye-950159cb.js";
|
|
50
|
+
import { S as ne } from "./close-4d480ef7.js";
|
|
51
|
+
import { S as me, a as ie, b as ce, c as se, d as Ie, e as le, f as xe } from "./xls-995781cc.js";
|
|
52
|
+
import { S as de } from "./details-dbb1530b.js";
|
|
53
|
+
import { S as Se } from "./dropdown-0260bb66.js";
|
|
54
|
+
import { S as Pe, a as ge, b as De } from "./success-8fd8bd2c.js";
|
|
55
|
+
import { S as Te, a as Ae } from "./filterOutline-819b4b0d.js";
|
|
56
|
+
import { S as ye, a as Be } from "./tree-c3dd3d45.js";
|
|
57
|
+
import { S as he } from "./minus-2857540f.js";
|
|
58
|
+
import { S as Le } from "./plus-199fb2a8.js";
|
|
59
|
+
import { S as Ee, a as Re } from "./prevPage-87faf576.js";
|
|
60
|
+
import { S as Oe } from "./warning-537ead32.js";
|
|
61
61
|
import "react/jsx-runtime";
|
|
62
62
|
import "./bind-06a7ff84.js";
|
|
63
63
|
import "./isEmpty-ccacb5ff.js";
|
|
@@ -83,116 +83,117 @@ export {
|
|
|
83
83
|
M as ActionMenu,
|
|
84
84
|
h as ActionMenuItem,
|
|
85
85
|
y as AdaptiveTagList,
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
86
|
+
ar as AddCsvIcon,
|
|
87
|
+
nr as AddImageIcon,
|
|
88
|
+
pr as AddJarIcon,
|
|
89
|
+
Xr as ArrowDownIcon,
|
|
90
|
+
jr as ArrowUpIcon,
|
|
91
91
|
E as AttachedFile,
|
|
92
92
|
k as BaseIconButton,
|
|
93
93
|
N as Breadcrumbs,
|
|
94
|
-
|
|
94
|
+
mr as BreadcrumbsTreeIcon,
|
|
95
95
|
z as BubblesLoader,
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
96
|
+
H as BulkPanel,
|
|
97
|
+
V as Button,
|
|
98
|
+
Qr as CalendarArrowIcon,
|
|
99
|
+
ir as CalendarIcon,
|
|
100
100
|
W as Checkbox,
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
101
|
+
cr as CheckmarkIcon,
|
|
102
|
+
Zr as ChevronDownDropdownIcon,
|
|
103
|
+
sr as ChevronRightBreadcrumbsIcon,
|
|
104
104
|
j as Chip,
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
105
|
+
oe as ClearIcon,
|
|
106
|
+
ee as CloseEyeIcon,
|
|
107
|
+
ne as CloseIcon,
|
|
108
|
+
Ir as ConfigurationIcon,
|
|
109
|
+
lr as CopyIcon,
|
|
110
|
+
xr as CoverageFullIcon,
|
|
111
|
+
fr as CoveragePartialIcon,
|
|
112
|
+
dr as CoveredManuallyIcon,
|
|
113
|
+
me as CsvIcon,
|
|
114
114
|
K as DatePicker,
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
115
|
+
ur as DeleteIcon,
|
|
116
|
+
de as DetailsIcon,
|
|
117
|
+
Sr as DragAndDropIcon,
|
|
118
|
+
Uo as DragLayer,
|
|
119
|
+
Cr as DragNDropIcon,
|
|
120
120
|
Y as Dropdown,
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
121
|
+
Se as DropdownIcon,
|
|
122
|
+
Pr as DurationIcon,
|
|
123
|
+
gr as EditIcon,
|
|
124
|
+
Pe as ErrorIcon,
|
|
125
|
+
Dr as ExportIcon,
|
|
126
|
+
ie as ExternalLinkIcon,
|
|
127
127
|
$ as FieldLabel,
|
|
128
128
|
ro as FieldNumber,
|
|
129
129
|
to as FieldText,
|
|
130
130
|
no as FieldTextFlex,
|
|
131
131
|
mo as FileDropArea,
|
|
132
|
-
|
|
133
|
-
|
|
132
|
+
ce as FileOtherIcon,
|
|
133
|
+
Te as FilterFilledIcon,
|
|
134
134
|
Io as FilterItem,
|
|
135
|
-
|
|
135
|
+
Ae as FilterOutlineIcon,
|
|
136
136
|
co as FiltersButton,
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
137
|
+
Fr as FlagIcon,
|
|
138
|
+
Tr as GroupByIcon,
|
|
139
|
+
Ar as HideIcon,
|
|
140
|
+
se as ImageIcon,
|
|
141
|
+
ge as InfoIcon,
|
|
142
142
|
xo as IssueList,
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
143
|
+
Ie as JarIcon,
|
|
144
|
+
br as LaunchTypeIcon,
|
|
145
|
+
yr as MailIcon,
|
|
146
|
+
Br as MaximizeIcon,
|
|
147
|
+
ye as MeatballMenuIcon,
|
|
148
|
+
he as MinusIcon,
|
|
149
149
|
uo as Modal,
|
|
150
|
-
|
|
150
|
+
Mr as MoveToFolderIcon,
|
|
151
151
|
Co as MultipleAutocomplete,
|
|
152
|
-
|
|
152
|
+
te as OpenEyeIcon,
|
|
153
153
|
Do as Pagination,
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
154
|
+
le as PdfIcon,
|
|
155
|
+
hr as PinFilledIcon,
|
|
156
|
+
vr as PinOutlineIcon,
|
|
157
|
+
Le as PlusIcon,
|
|
158
158
|
To as Popover,
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
159
|
+
Ee as PrevChapterIcon,
|
|
160
|
+
Re as PrevPageIcon,
|
|
161
|
+
Lr as PriorityBlockerIcon,
|
|
162
|
+
wr as PriorityCriticalIcon,
|
|
163
|
+
Er as PriorityHighIcon,
|
|
164
|
+
Rr as PriorityLowIcon,
|
|
165
|
+
kr as PriorityMediumIcon,
|
|
166
|
+
Or as PriorityUnspecifiedIcon,
|
|
167
167
|
bo as Radio,
|
|
168
|
-
|
|
169
|
-
Nr as
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
zr as
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
168
|
+
yo as RadioGroup,
|
|
169
|
+
Nr as RefreshIcon,
|
|
170
|
+
Ur as RerunIcon,
|
|
171
|
+
qr as ResizeColumnIcon,
|
|
172
|
+
zr as RunManualIcon,
|
|
173
|
+
Gr as SearchIcon,
|
|
174
|
+
Mo as SegmentedControl,
|
|
175
|
+
vo as Selection,
|
|
176
|
+
Zo as SidePanel,
|
|
176
177
|
Po as SingleAutocomplete,
|
|
177
178
|
Hr as SortIcon,
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
179
|
+
zo as SortableItem,
|
|
180
|
+
Go as SortableList,
|
|
181
|
+
wo as SpinLoader,
|
|
181
182
|
Jr as StatusSuccessIcon,
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
183
|
+
De as SuccessIcon,
|
|
184
|
+
Ro as SystemAlert,
|
|
185
|
+
Oo as SystemMessage,
|
|
185
186
|
_o as Table,
|
|
186
187
|
Vr as TestPlanIcon,
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
188
|
+
Xo as ThemeProvider,
|
|
189
|
+
qo as Toggle,
|
|
190
|
+
Qo as Tooltip,
|
|
191
|
+
Be as TreeIcon,
|
|
191
192
|
Ho as TreeSortableContainer,
|
|
192
193
|
Jo as TreeSortableItem,
|
|
193
194
|
_r as UserIcon,
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
195
|
+
Oe as WarningIcon,
|
|
196
|
+
xe as XlsIcon,
|
|
197
|
+
er as useEllipsisTitle,
|
|
198
|
+
or as useTreeDropValidation
|
|
198
199
|
};
|
package/dist/radio.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { R as r } from "./
|
|
1
|
+
import { R as r } from "./radioGroup-0c132c2e.js";
|
|
2
|
+
import { a as e } from "./radioGroup-0c132c2e.js";
|
|
2
3
|
import "react/jsx-runtime";
|
|
3
4
|
import "react";
|
|
4
5
|
import "./bind-06a7ff84.js";
|
|
5
6
|
import "./keyCodes-f63c0e11.js";
|
|
6
7
|
export {
|
|
7
8
|
r as Radio,
|
|
9
|
+
e as RadioGroup,
|
|
8
10
|
r as default
|
|
9
11
|
};
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { jsxs as p, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as g, useId as k } from "react";
|
|
3
|
+
import { c as y } from "./bind-06a7ff84.js";
|
|
4
|
+
import { K as _ } from "./keyCodes-f63c0e11.js";
|
|
5
|
+
const x = "_disabled_1fetm_9", D = "_toggler_1fetm_15", E = "_checked_1fetm_21", v = "_input_1fetm_28", C = {
|
|
6
|
+
"radio-button": "_radio-button_1fetm_1",
|
|
7
|
+
disabled: x,
|
|
8
|
+
"children-container": "_children-container_1fetm_12",
|
|
9
|
+
toggler: D,
|
|
10
|
+
checked: E,
|
|
11
|
+
input: v
|
|
12
|
+
}, d = y.bind(C), K = ({
|
|
13
|
+
option: e,
|
|
14
|
+
value: l,
|
|
15
|
+
onChange: s,
|
|
16
|
+
onFocus: c,
|
|
17
|
+
onBlur: N,
|
|
18
|
+
className: m,
|
|
19
|
+
...f
|
|
20
|
+
}) => {
|
|
21
|
+
const t = g(null), n = k(), r = String(e.value) === String(l), h = (i) => {
|
|
22
|
+
var u, b;
|
|
23
|
+
const { keyCode: o } = i;
|
|
24
|
+
if (o === _.SPACE_KEY_CODE) {
|
|
25
|
+
i.preventDefault(), (u = t.current) == null || u.click();
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
o === _.ENTER_KEY_CODE && (i.preventDefault(), (b = t.current) == null || b.click());
|
|
29
|
+
};
|
|
30
|
+
return (
|
|
31
|
+
// eslint-disable-next-line
|
|
32
|
+
/* @__PURE__ */ p(
|
|
33
|
+
"label",
|
|
34
|
+
{
|
|
35
|
+
id: n,
|
|
36
|
+
className: d(m, "radio-button", {
|
|
37
|
+
disabled: e.disabled
|
|
38
|
+
}),
|
|
39
|
+
tabIndex: e.disabled ? -1 : 0,
|
|
40
|
+
onKeyDown: e.disabled ? void 0 : h,
|
|
41
|
+
children: [
|
|
42
|
+
/* @__PURE__ */ a(
|
|
43
|
+
"input",
|
|
44
|
+
{
|
|
45
|
+
tabIndex: -1,
|
|
46
|
+
ref: t,
|
|
47
|
+
type: "radio",
|
|
48
|
+
className: d("input"),
|
|
49
|
+
disabled: e.disabled,
|
|
50
|
+
onChange: s,
|
|
51
|
+
value: e.value,
|
|
52
|
+
checked: r,
|
|
53
|
+
...f
|
|
54
|
+
}
|
|
55
|
+
),
|
|
56
|
+
/* @__PURE__ */ a(
|
|
57
|
+
"span",
|
|
58
|
+
{
|
|
59
|
+
role: "radio",
|
|
60
|
+
"aria-labelledby": n,
|
|
61
|
+
"aria-checked": r,
|
|
62
|
+
className: d("toggler", {
|
|
63
|
+
disabled: e.disabled,
|
|
64
|
+
checked: r
|
|
65
|
+
})
|
|
66
|
+
}
|
|
67
|
+
),
|
|
68
|
+
/* @__PURE__ */ a("span", { className: d("children-container"), children: e.label })
|
|
69
|
+
]
|
|
70
|
+
}
|
|
71
|
+
)
|
|
72
|
+
);
|
|
73
|
+
}, w = ({ options: e, value: l, ...s }) => /* @__PURE__ */ a("div", { style: { display: "flex", flexDirection: "column" }, children: e.map((c) => /* @__PURE__ */ a(K, { option: c, value: l, ...s }, c.value)) });
|
|
74
|
+
export {
|
|
75
|
+
K as R,
|
|
76
|
+
w as a
|
|
77
|
+
};
|