@reportportal/ui-kit 0.0.1-alpha.68 → 0.0.1-alpha.69
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/button-33bc880f.js +64 -0
- package/dist/button.js +1 -1
- package/dist/{checkbox-9a6c7ce1.js → checkbox-aa91985d.js} +15 -15
- package/dist/checkbox.js +1 -1
- package/dist/{datePicker-06e90999.js → datePicker-382ef010.js} +57 -57
- package/dist/datePicker.js +6 -6
- package/dist/dropdown-13d7d50e.js +278 -0
- package/dist/dropdown.js +2 -2
- package/dist/fieldLabel.js +8 -8
- package/dist/{fieldNumber-01efb16e.js → fieldNumber-2542b311.js} +43 -43
- package/dist/fieldNumber.js +1 -1
- package/dist/fieldText-e605a521.js +158 -0
- package/dist/fieldText.js +2 -2
- package/dist/fieldTextFlex-9e616f66.js +78 -0
- package/dist/fieldTextFlex.js +1 -1
- package/dist/fonts/OpenSans/OpenSans-Bold.ttf +0 -0
- package/dist/fonts/OpenSans/OpenSans-Medium.ttf +0 -0
- package/dist/index.js +12 -12
- package/dist/modal.js +81 -81
- package/dist/{pagination-91729c7d.js → pagination-ecbc9940.js} +53 -53
- package/dist/pagination.js +3 -3
- package/dist/popover.js +15 -15
- package/dist/{radio-bccc84f2.js → radio-62546efa.js} +27 -27
- package/dist/radio.js +1 -1
- package/dist/style.css +1 -1
- package/dist/systemAlert.js +28 -28
- package/dist/systemMessage-924fdaa6.js +30 -0
- package/dist/systemMessage.js +1 -1
- package/dist/table-20aa2cdf.js +142 -0
- package/dist/table.js +2 -2
- package/dist/toggle-304107fa.js +59 -0
- package/dist/toggle.js +1 -1
- package/dist/tooltip.js +15 -15
- package/package.json +1 -1
- package/dist/button-770f7b20.js +0 -64
- package/dist/dropdown-29285346.js +0 -278
- package/dist/fieldText-94e2c8eb.js +0 -158
- package/dist/fieldTextFlex-c55452d5.js +0 -78
- package/dist/systemMessage-1ced6079.js +0 -30
- package/dist/table-02e40724.js +0 -142
- package/dist/toggle-1a3aacb5.js +0 -59
|
@@ -1,158 +0,0 @@
|
|
|
1
|
-
import { jsx as e, jsxs as a, Fragment as P } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as Q, useRef as Y, useId as Z, useState as R } from "react";
|
|
3
|
-
import { c as q } from "./bind-06a7ff84.js";
|
|
4
|
-
import { b as ee, a as ne, S as te } from "./openEye-7b9cf080.js";
|
|
5
|
-
import { B as se } from "./button-770f7b20.js";
|
|
6
|
-
import { S as oe } from "./spinLoader-c4a53718.js";
|
|
7
|
-
import { M as ae } from "./maxValueDisplay-9be01a75.js";
|
|
8
|
-
import { FieldLabel as ce } from "./fieldLabel.js";
|
|
9
|
-
var o = /* @__PURE__ */ ((t) => (t.PASSWORD = "password", t.TEXT = "text", t.EMAIL = "email", t))(o || {});
|
|
10
|
-
const re = "_collapsed_fju7x_13", ie = "_field_fju7x_21", le = "_placeholder_fju7x_46", ue = "_disabled_fju7x_49", de = "_error_fju7x_52", _e = "_touched_fju7x_52", fe = "_input_fju7x_70", pe = "_icon_fju7x_1", xe = "_text_fju7x_168", me = {
|
|
11
|
-
"icon-container": "_icon-container_fju7x_1",
|
|
12
|
-
"icon-container-end": "_icon-container-end_fju7x_1",
|
|
13
|
-
"icon-container-start": "_icon-container-start_fju7x_1",
|
|
14
|
-
collapsed: re,
|
|
15
|
-
field: ie,
|
|
16
|
-
"default-width": "_default-width_fju7x_33",
|
|
17
|
-
placeholder: le,
|
|
18
|
-
disabled: ue,
|
|
19
|
-
error: de,
|
|
20
|
-
touched: _e,
|
|
21
|
-
"max-length-display": "_max-length-display_fju7x_59",
|
|
22
|
-
"input-container": "_input-container_fju7x_70",
|
|
23
|
-
"type-password": "_type-password_fju7x_74",
|
|
24
|
-
input: fe,
|
|
25
|
-
"eye-icon": "_eye-icon_fju7x_78",
|
|
26
|
-
icon: pe,
|
|
27
|
-
"start-icon": "_start-icon_fju7x_124",
|
|
28
|
-
"clear-icon": "_clear-icon_fju7x_125",
|
|
29
|
-
"additional-content": "_additional-content_fju7x_161",
|
|
30
|
-
text: xe,
|
|
31
|
-
"error-text": "_error-text_fju7x_188",
|
|
32
|
-
"help-text": "_help-text_fju7x_192"
|
|
33
|
-
}, n = q.bind(me), De = Q(
|
|
34
|
-
({
|
|
35
|
-
value: t = "",
|
|
36
|
-
className: M,
|
|
37
|
-
classNameHelpText: b,
|
|
38
|
-
error: l,
|
|
39
|
-
placeholder: p,
|
|
40
|
-
disabled: c = !1,
|
|
41
|
-
onChange: v,
|
|
42
|
-
touched: x = !1,
|
|
43
|
-
title: A,
|
|
44
|
-
label: u,
|
|
45
|
-
helpText: d,
|
|
46
|
-
defaultWidth: O = !0,
|
|
47
|
-
startIcon: m,
|
|
48
|
-
endIcon: h,
|
|
49
|
-
clearable: B = !1,
|
|
50
|
-
onClear: j,
|
|
51
|
-
isRequired: N = !1,
|
|
52
|
-
hasDoubleMessage: C = !1,
|
|
53
|
-
type: r = o.TEXT,
|
|
54
|
-
displayError: L = !0,
|
|
55
|
-
collapsible: V = !1,
|
|
56
|
-
loading: W = !1,
|
|
57
|
-
maxLengthDisplay: k,
|
|
58
|
-
onFocus: X = () => {
|
|
59
|
-
},
|
|
60
|
-
onBlur: H = () => {
|
|
61
|
-
},
|
|
62
|
-
...I
|
|
63
|
-
}, U) => {
|
|
64
|
-
const $ = Y(null), _ = U || $, S = Z(), [w, y] = R(!1), [g, E] = R(!1), z = (s) => {
|
|
65
|
-
y(!0), X(s);
|
|
66
|
-
}, G = (s) => {
|
|
67
|
-
y(!1), H(s);
|
|
68
|
-
}, J = () => {
|
|
69
|
-
var s;
|
|
70
|
-
j && (j(t), (s = _.current) == null || s.focus());
|
|
71
|
-
}, D = L && l && x, F = /* @__PURE__ */ e("span", { className: n("text", "help-text", b), children: d }), K = () => r !== o.PASSWORD ? r : g ? o.TEXT : o.PASSWORD, T = (s) => {
|
|
72
|
-
s.preventDefault(), E(!0);
|
|
73
|
-
}, i = (s) => {
|
|
74
|
-
s.preventDefault(), E(!1);
|
|
75
|
-
};
|
|
76
|
-
return /* @__PURE__ */ a(P, { children: [
|
|
77
|
-
u && /* @__PURE__ */ e(ce, { isRequired: N, htmlFor: S, children: u }),
|
|
78
|
-
/* @__PURE__ */ a(
|
|
79
|
-
"div",
|
|
80
|
-
{
|
|
81
|
-
className: n("field", M, {
|
|
82
|
-
error: l,
|
|
83
|
-
touched: x,
|
|
84
|
-
disabled: c,
|
|
85
|
-
"default-width": O,
|
|
86
|
-
collapsed: V && !w && !t
|
|
87
|
-
}),
|
|
88
|
-
title: A,
|
|
89
|
-
children: [
|
|
90
|
-
W ? /* @__PURE__ */ e(oe, {}) : m && /* @__PURE__ */ e(
|
|
91
|
-
"span",
|
|
92
|
-
{
|
|
93
|
-
className: n("icon-container-start"),
|
|
94
|
-
onClick: () => {
|
|
95
|
-
var f;
|
|
96
|
-
(f = _.current) == null || f.focus();
|
|
97
|
-
},
|
|
98
|
-
children: /* @__PURE__ */ e("span", { className: n("icon", { "start-icon": !w }), children: m })
|
|
99
|
-
}
|
|
100
|
-
),
|
|
101
|
-
/* @__PURE__ */ a("span", { className: n("input-container", `type-${r}`), children: [
|
|
102
|
-
/* @__PURE__ */ e(
|
|
103
|
-
"input",
|
|
104
|
-
{
|
|
105
|
-
ref: _,
|
|
106
|
-
type: K(),
|
|
107
|
-
className: n("input"),
|
|
108
|
-
value: t,
|
|
109
|
-
disabled: c,
|
|
110
|
-
id: S,
|
|
111
|
-
onChange: v,
|
|
112
|
-
onFocus: z,
|
|
113
|
-
onBlur: G,
|
|
114
|
-
...I
|
|
115
|
-
}
|
|
116
|
-
),
|
|
117
|
-
r === o.PASSWORD && t && /* @__PURE__ */ e(
|
|
118
|
-
se,
|
|
119
|
-
{
|
|
120
|
-
icon: g ? /* @__PURE__ */ e(ee, {}) : /* @__PURE__ */ e(ne, {}),
|
|
121
|
-
variant: "text",
|
|
122
|
-
className: n("eye-icon"),
|
|
123
|
-
onMouseDown: T,
|
|
124
|
-
onMouseLeave: i,
|
|
125
|
-
onMouseUp: i,
|
|
126
|
-
onTouchStart: T,
|
|
127
|
-
onTouchEnd: i,
|
|
128
|
-
onTouchCancel: i
|
|
129
|
-
}
|
|
130
|
-
),
|
|
131
|
-
p && !t && /* @__PURE__ */ a("span", { className: n("placeholder"), children: [
|
|
132
|
-
p,
|
|
133
|
-
N && !u && /* @__PURE__ */ e("span", { className: n("asterisk") })
|
|
134
|
-
] })
|
|
135
|
-
] }),
|
|
136
|
-
/* @__PURE__ */ e(
|
|
137
|
-
ae,
|
|
138
|
-
{
|
|
139
|
-
className: n("max-length-display"),
|
|
140
|
-
value: t.length,
|
|
141
|
-
maxValue: k
|
|
142
|
-
}
|
|
143
|
-
),
|
|
144
|
-
h && /* @__PURE__ */ e("span", { className: n("icon-container-end"), children: /* @__PURE__ */ e("span", { className: n("icon"), children: h }) }),
|
|
145
|
-
B && t.length > 0 && /* @__PURE__ */ e("span", { className: n("icon-container-end"), children: /* @__PURE__ */ e("button", { type: "button", className: n("clear-icon", { disabled: c }), onClick: J, children: /* @__PURE__ */ e(te, {}) }) })
|
|
146
|
-
]
|
|
147
|
-
}
|
|
148
|
-
),
|
|
149
|
-
(D || d) && /* @__PURE__ */ e("div", { className: n("additional-content", { disabled: c }), children: D ? /* @__PURE__ */ a(P, { children: [
|
|
150
|
-
/* @__PURE__ */ e("span", { className: n("text", "error-text"), children: l }),
|
|
151
|
-
C && F
|
|
152
|
-
] }) : d && F })
|
|
153
|
-
] });
|
|
154
|
-
}
|
|
155
|
-
);
|
|
156
|
-
export {
|
|
157
|
-
De as F
|
|
158
|
-
};
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { jsxs as _, Fragment as F, jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import { c as H } from "./bind-06a7ff84.js";
|
|
3
|
-
import { forwardRef as I, useId as E } from "react";
|
|
4
|
-
import { M as R } from "./maxValueDisplay-9be01a75.js";
|
|
5
|
-
import { FieldLabel as D } from "./fieldLabel.js";
|
|
6
|
-
const M = "_error_ajlzy_19", O = "_touched_ajlzy_19", V = "_disabled_ajlzy_65", $ = {
|
|
7
|
-
"text-area": "_text-area_ajlzy_1",
|
|
8
|
-
error: M,
|
|
9
|
-
touched: O,
|
|
10
|
-
"max-length-display": "_max-length-display_ajlzy_26",
|
|
11
|
-
"additional-content": "_additional-content_ajlzy_36",
|
|
12
|
-
"error-text": "_error-text_ajlzy_36",
|
|
13
|
-
"help-text": "_help-text_ajlzy_44",
|
|
14
|
-
disabled: V
|
|
15
|
-
}, t = H.bind($), b = 72, w = 2, q = I(
|
|
16
|
-
({
|
|
17
|
-
value: r = "",
|
|
18
|
-
readonly: m = !1,
|
|
19
|
-
error: s = "",
|
|
20
|
-
placeholder: x = "",
|
|
21
|
-
disabled: e = !1,
|
|
22
|
-
touched: n = !1,
|
|
23
|
-
className: h = "",
|
|
24
|
-
label: c = "",
|
|
25
|
-
helpText: l = "",
|
|
26
|
-
maxLengthDisplay: p,
|
|
27
|
-
onChange: y,
|
|
28
|
-
onFocus: g,
|
|
29
|
-
onBlur: f,
|
|
30
|
-
onKeyUp: j,
|
|
31
|
-
...z
|
|
32
|
-
}, N) => {
|
|
33
|
-
const i = E(), d = s && n, u = (o) => {
|
|
34
|
-
o.target.style.height = `${b}px`, o.target.style.height = `${o.target.scrollHeight + w}px`;
|
|
35
|
-
};
|
|
36
|
-
return /* @__PURE__ */ _(F, { children: [
|
|
37
|
-
c && /* @__PURE__ */ a(D, { htmlFor: i, className: t({ disabled: e }), children: c }),
|
|
38
|
-
/* @__PURE__ */ a(
|
|
39
|
-
"textarea",
|
|
40
|
-
{
|
|
41
|
-
id: i,
|
|
42
|
-
ref: N,
|
|
43
|
-
className: t("text-area", h, {
|
|
44
|
-
disabled: e,
|
|
45
|
-
error: s,
|
|
46
|
-
touched: n
|
|
47
|
-
}),
|
|
48
|
-
value: r,
|
|
49
|
-
placeholder: x,
|
|
50
|
-
disabled: e,
|
|
51
|
-
readOnly: m,
|
|
52
|
-
onChange: y,
|
|
53
|
-
onFocus: g,
|
|
54
|
-
onBlur: f,
|
|
55
|
-
onKeyUp: j,
|
|
56
|
-
onInput: u,
|
|
57
|
-
...z,
|
|
58
|
-
children: r
|
|
59
|
-
}
|
|
60
|
-
),
|
|
61
|
-
/* @__PURE__ */ a(
|
|
62
|
-
R,
|
|
63
|
-
{
|
|
64
|
-
className: t("max-length-display"),
|
|
65
|
-
value: r.length,
|
|
66
|
-
maxValue: p
|
|
67
|
-
}
|
|
68
|
-
),
|
|
69
|
-
(d || l) && /* @__PURE__ */ _("div", { className: t("additional-content", { disabled: e }), children: [
|
|
70
|
-
d && /* @__PURE__ */ a("span", { className: t("error-text"), children: s }),
|
|
71
|
-
l && /* @__PURE__ */ a("span", { className: t("help-text"), children: l })
|
|
72
|
-
] })
|
|
73
|
-
] });
|
|
74
|
-
}
|
|
75
|
-
);
|
|
76
|
-
export {
|
|
77
|
-
q as F
|
|
78
|
-
};
|
|
@@ -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/table-02e40724.js
DELETED
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
import { jsxs as n, jsx as l } from "react/jsx-runtime";
|
|
2
|
-
import { useState as g, useMemo as G } from "react";
|
|
3
|
-
import { c as J } from "./bind-06a7ff84.js";
|
|
4
|
-
import { a as f, S as K } from "./arrowUp-4a5caee7.js";
|
|
5
|
-
import { C as x } from "./checkbox-9a6c7ce1.js";
|
|
6
|
-
const O = "_table_kha9s_1", P = "_label_kha9s_87", Q = {
|
|
7
|
-
table: O,
|
|
8
|
-
"table-header": "_table-header_kha9s_9",
|
|
9
|
-
"table-row": "_table-row_kha9s_16",
|
|
10
|
-
"table-row-content": "_table-row-content_kha9s_21",
|
|
11
|
-
"size-small": "_size-small_kha9s_31",
|
|
12
|
-
"size-large": "_size-large_kha9s_34",
|
|
13
|
-
"table-body": "_table-body_kha9s_38",
|
|
14
|
-
"table-header-cell": "_table-header-cell_kha9s_45",
|
|
15
|
-
"table-cell": "_table-cell_kha9s_45",
|
|
16
|
-
"action-menu-cell": "_action-menu-cell_kha9s_50",
|
|
17
|
-
"checkbox-cell": "_checkbox-cell_kha9s_60",
|
|
18
|
-
"primary-cell": "_primary-cell_kha9s_71",
|
|
19
|
-
label: P,
|
|
20
|
-
"sortable-cell": "_sortable-cell_kha9s_91",
|
|
21
|
-
"align-right": "_align-right_kha9s_94",
|
|
22
|
-
"align-center": "_align-center_kha9s_100"
|
|
23
|
-
}, z = "asc", V = (c) => c.toLowerCase() === z, W = (c) => c.map((t) => t.key), a = J.bind(Q), ae = ({
|
|
24
|
-
data: c,
|
|
25
|
-
primaryColumn: t,
|
|
26
|
-
fixedColumns: h,
|
|
27
|
-
renderRowActions: i,
|
|
28
|
-
className: M = "",
|
|
29
|
-
rowClassName: S = "",
|
|
30
|
-
headerClassName: m = "",
|
|
31
|
-
selectable: k = !1,
|
|
32
|
-
selectedRowIds: d = [],
|
|
33
|
-
sortingDirection: y = z,
|
|
34
|
-
sortingColumn: r = t,
|
|
35
|
-
sortableColumns: o = W([t, ...h]),
|
|
36
|
-
onChangeSorting: u = () => {
|
|
37
|
-
},
|
|
38
|
-
onToggleRowSelection: A = () => {
|
|
39
|
-
},
|
|
40
|
-
onToggleAllRowsSelection: L = () => {
|
|
41
|
-
}
|
|
42
|
-
}) => {
|
|
43
|
-
const [E, v] = g(null), [j, p] = g(null), N = G(() => [{ ...t, primary: !0 }, ...h], [t, h]), C = (e) => {
|
|
44
|
-
o.includes(e) && u({ key: e, direction: y });
|
|
45
|
-
}, w = (e) => ({
|
|
46
|
-
width: e.width,
|
|
47
|
-
textAlign: e.align
|
|
48
|
-
}), H = (e) => {
|
|
49
|
-
v(e);
|
|
50
|
-
}, T = () => {
|
|
51
|
-
v(null);
|
|
52
|
-
}, $ = (e) => {
|
|
53
|
-
p(e);
|
|
54
|
-
}, D = () => {
|
|
55
|
-
p(null);
|
|
56
|
-
}, R = (e) => {
|
|
57
|
-
A(e);
|
|
58
|
-
}, U = () => {
|
|
59
|
-
L();
|
|
60
|
-
}, q = c.every((e) => d.includes(e.id)), _ = c.some((e) => d.includes(e.id)), B = (e) => {
|
|
61
|
-
var s;
|
|
62
|
-
return `size-${((s = e.rowConfigs) == null ? void 0 : s.size) ?? "default"}`;
|
|
63
|
-
}, F = (e) => {
|
|
64
|
-
if (o.includes(e))
|
|
65
|
-
return (r == null ? void 0 : r.key) === e ? V(y) ? /* @__PURE__ */ l(f, {}) : /* @__PURE__ */ l(K, {}) : /* @__PURE__ */ l(f, {});
|
|
66
|
-
};
|
|
67
|
-
return /* @__PURE__ */ n("div", { className: a("table", M), children: [
|
|
68
|
-
/* @__PURE__ */ n("div", { className: a("table-header", m), children: [
|
|
69
|
-
k && /* @__PURE__ */ l("div", { className: a("table-header-cell", "checkbox-cell"), children: _ && /* @__PURE__ */ l(
|
|
70
|
-
x,
|
|
71
|
-
{
|
|
72
|
-
value: q,
|
|
73
|
-
partiallyChecked: _,
|
|
74
|
-
onChange: U,
|
|
75
|
-
className: a("checkbox-cell")
|
|
76
|
-
}
|
|
77
|
-
) }),
|
|
78
|
-
N.map((e) => /* @__PURE__ */ l(
|
|
79
|
-
"button",
|
|
80
|
-
{
|
|
81
|
-
className: a("table-header-cell", {
|
|
82
|
-
[`align-${e.align}`]: "align" in e,
|
|
83
|
-
"primary-cell": "primary" in e && e.primary,
|
|
84
|
-
"sortable-cell": o.includes(e.key)
|
|
85
|
-
}),
|
|
86
|
-
style: w(e),
|
|
87
|
-
children: /* @__PURE__ */ n(
|
|
88
|
-
"div",
|
|
89
|
-
{
|
|
90
|
-
className: a("label"),
|
|
91
|
-
onClick: () => C(e.key),
|
|
92
|
-
onMouseEnter: () => H(e.key),
|
|
93
|
-
onMouseLeave: T,
|
|
94
|
-
children: [
|
|
95
|
-
/* @__PURE__ */ l("span", { children: e.header }),
|
|
96
|
-
(E === e.key || (r == null ? void 0 : r.key) === e.key) && F(e.key)
|
|
97
|
-
]
|
|
98
|
-
}
|
|
99
|
-
)
|
|
100
|
-
},
|
|
101
|
-
e.key
|
|
102
|
-
)),
|
|
103
|
-
i && /* @__PURE__ */ l("div", { className: a("table-header-cell", "action-menu-cell") })
|
|
104
|
-
] }),
|
|
105
|
-
/* @__PURE__ */ l("div", { className: a("table-body"), children: c.map((e, b) => /* @__PURE__ */ n(
|
|
106
|
-
"div",
|
|
107
|
-
{
|
|
108
|
-
className: a("table-row", B(e), S),
|
|
109
|
-
onMouseEnter: () => $(b),
|
|
110
|
-
onMouseLeave: D,
|
|
111
|
-
children: [
|
|
112
|
-
k && /* @__PURE__ */ l("div", { className: a("table-cell", "checkbox-cell"), children: (_ || j === b) && /* @__PURE__ */ l(
|
|
113
|
-
x,
|
|
114
|
-
{
|
|
115
|
-
value: d.includes(e.id),
|
|
116
|
-
onChange: () => R(e.id),
|
|
117
|
-
className: a("checkbox-cell")
|
|
118
|
-
}
|
|
119
|
-
) }),
|
|
120
|
-
/* @__PURE__ */ n("div", { className: a("table-row-content"), children: [
|
|
121
|
-
N.map((s) => /* @__PURE__ */ l(
|
|
122
|
-
"div",
|
|
123
|
-
{
|
|
124
|
-
className: a("table-cell", {
|
|
125
|
-
"primary-cell": "primary" in s && s.primary
|
|
126
|
-
}),
|
|
127
|
-
style: w(s),
|
|
128
|
-
children: e[s.key].component || e[s.key].content || e[s.key]
|
|
129
|
-
},
|
|
130
|
-
s.key
|
|
131
|
-
)),
|
|
132
|
-
i && /* @__PURE__ */ l("div", { className: a("table-cell", "action-menu-cell"), children: i(e.metaData) })
|
|
133
|
-
] })
|
|
134
|
-
]
|
|
135
|
-
},
|
|
136
|
-
e.id
|
|
137
|
-
)) })
|
|
138
|
-
] });
|
|
139
|
-
};
|
|
140
|
-
export {
|
|
141
|
-
ae as T
|
|
142
|
-
};
|
package/dist/toggle-1a3aacb5.js
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { jsxs as g, jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import { c as h } from "./bind-06a7ff84.js";
|
|
3
|
-
import { useRef as k, useId as x } from "react";
|
|
4
|
-
import { K as _ } from "./keyCodes-f63c0e11.js";
|
|
5
|
-
const y = "_toggle_1bvir_1", E = "_slider_1bvir_27", v = "_round_1bvir_47", D = "_input_1bvir_51", K = "_disabled_1bvir_92", N = {
|
|
6
|
-
toggle: y,
|
|
7
|
-
"children-container": "_children-container_1bvir_14",
|
|
8
|
-
slider: E,
|
|
9
|
-
round: v,
|
|
10
|
-
input: D,
|
|
11
|
-
disabled: K
|
|
12
|
-
}, e = h.bind(N), j = ({
|
|
13
|
-
children: t,
|
|
14
|
-
value: c,
|
|
15
|
-
onChange: u,
|
|
16
|
-
className: b,
|
|
17
|
-
disabled: n = !1,
|
|
18
|
-
title: p,
|
|
19
|
-
...m
|
|
20
|
-
}) => {
|
|
21
|
-
const r = k(null), i = x(), f = (o) => {
|
|
22
|
-
var a, d;
|
|
23
|
-
const { keyCode: l } = o;
|
|
24
|
-
if (l === _.SPACE_KEY_CODE) {
|
|
25
|
-
o.preventDefault(), (a = r.current) == null || a.click();
|
|
26
|
-
return;
|
|
27
|
-
}
|
|
28
|
-
l === _.ENTER_KEY_CODE && (o.preventDefault(), (d = r.current) == null || d.click());
|
|
29
|
-
};
|
|
30
|
-
return /* @__PURE__ */ g("label", { id: i, title: p, className: e("toggle", b, { disabled: n }), children: [
|
|
31
|
-
/* @__PURE__ */ s(
|
|
32
|
-
"input",
|
|
33
|
-
{
|
|
34
|
-
ref: r,
|
|
35
|
-
tabIndex: n ? -1 : 0,
|
|
36
|
-
onChange: u,
|
|
37
|
-
checked: c,
|
|
38
|
-
disabled: n,
|
|
39
|
-
onKeyDown: f,
|
|
40
|
-
className: e("input"),
|
|
41
|
-
type: "checkbox",
|
|
42
|
-
...m
|
|
43
|
-
}
|
|
44
|
-
),
|
|
45
|
-
/* @__PURE__ */ s(
|
|
46
|
-
"div",
|
|
47
|
-
{
|
|
48
|
-
"aria-labelledby": i,
|
|
49
|
-
role: "checkbox",
|
|
50
|
-
"aria-checked": c,
|
|
51
|
-
className: e("slider", "round")
|
|
52
|
-
}
|
|
53
|
-
),
|
|
54
|
-
t && /* @__PURE__ */ s("span", { className: e("children-container"), children: t })
|
|
55
|
-
] });
|
|
56
|
-
};
|
|
57
|
-
export {
|
|
58
|
-
j as T
|
|
59
|
-
};
|