@reportportal/ui-kit 0.0.1-alpha.12 → 0.0.1-alpha.14

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.
@@ -0,0 +1,147 @@
1
+ import { jsxs as n, jsx as t } from "react/jsx-runtime";
2
+ import * as i from "react";
3
+ import { useState as j, useMemo as F } from "react";
4
+ import { c as G } from "./bind-06a7ff84.js";
5
+ import "./baseIconButton-7bc53dec.js";
6
+ import { C } from "./checkbox-6777be17.js";
7
+ const J = (a) => /* @__PURE__ */ i.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...a }, /* @__PURE__ */ i.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M7.85355 12.8536C7.65829 13.0488 7.34171 13.0488 7.14645 12.8536L4.14645 9.85355C3.95118 9.65829 3.95118 9.34171 4.14645 9.14645C4.34171 8.95118 4.65829 8.95118 4.85355 9.14645L7 11.2929L7 3.5C7 3.22386 7.22386 3 7.5 3C7.77614 3 8 3.22386 8 3.5L8 11.2929L10.1464 9.14645C10.3417 8.95119 10.6583 8.95118 10.8536 9.14645C11.0488 9.34171 11.0488 9.65829 10.8536 9.85355L7.85355 12.8536Z", fill: "#A2AAB5" })), N = (a) => /* @__PURE__ */ i.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...a }, /* @__PURE__ */ i.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M7.14645 3.14645C7.34171 2.95118 7.65829 2.95118 7.85355 3.14645L10.8536 6.14645C11.0488 6.34171 11.0488 6.65829 10.8536 6.85355C10.6583 7.04882 10.3417 7.04882 10.1464 6.85355L8 4.70711V12.5C8 12.7761 7.77614 13 7.5 13C7.22386 13 7 12.7761 7 12.5L7 4.70711L4.85355 6.85355C4.65829 7.04882 4.34171 7.04882 4.14645 6.85355C3.95118 6.65829 3.95118 6.34171 4.14645 6.14645L7.14645 3.14645Z", fill: "#A2AAB5" })), K = "_table_xqjqb_5", O = "_label_xqjqb_88", P = {
8
+ table: K,
9
+ "table-header": "_table-header_xqjqb_10",
10
+ "table-row": "_table-row_xqjqb_17",
11
+ "table-row-content": "_table-row-content_xqjqb_22",
12
+ "size-small": "_size-small_xqjqb_32",
13
+ "size-large": "_size-large_xqjqb_35",
14
+ "table-body": "_table-body_xqjqb_39",
15
+ "table-header-cell": "_table-header-cell_xqjqb_46",
16
+ "table-cell": "_table-cell_xqjqb_46",
17
+ "action-menu-cell": "_action-menu-cell_xqjqb_51",
18
+ "checkbox-cell": "_checkbox-cell_xqjqb_61",
19
+ "primary-cell": "_primary-cell_xqjqb_72",
20
+ label: O,
21
+ "sortable-cell": "_sortable-cell_xqjqb_92",
22
+ "align-right": "_align-right_xqjqb_95",
23
+ "align-center": "_align-center_xqjqb_101"
24
+ };
25
+ var q = /* @__PURE__ */ ((a) => (a.ASC = "asc", a.DESC = "desc", a))(q || {});
26
+ const Q = (a) => a.map((s) => s.key), l = G.bind(P), le = ({
27
+ data: a,
28
+ primaryColumn: s,
29
+ fixedColumns: d,
30
+ rowActionMenu: b,
31
+ className: f = "",
32
+ rowClassName: L = "",
33
+ headerClassName: m = "",
34
+ selectable: x = !1,
35
+ selectedRowIds: h = [],
36
+ sortingDirection: y = q.ASC,
37
+ sortingColumn: r = s,
38
+ sortableColumns: o = Q([s, ...d]),
39
+ onChangeSorting: A = () => {
40
+ },
41
+ onToggleRowSelection: S = () => {
42
+ },
43
+ onToggleAllRowsSelection: u = () => {
44
+ }
45
+ }) => {
46
+ const [z, p] = j(null), [E, k] = j(null), w = F(() => [{ ...s, primary: !0 }, ...d], [s, d]), M = (e) => {
47
+ o.includes(e) && A({ key: e, direction: y });
48
+ }, g = (e) => ({
49
+ width: e.width,
50
+ textAlign: e.align
51
+ }), R = (e) => {
52
+ p(e);
53
+ }, B = () => {
54
+ p(null);
55
+ }, H = (e) => {
56
+ k(e);
57
+ }, T = () => {
58
+ k(null);
59
+ }, Z = (e) => {
60
+ S(e);
61
+ }, $ = () => {
62
+ u();
63
+ }, U = a.every((e) => h.includes(e.id)), _ = a.some((e) => h.includes(e.id)), V = (e) => {
64
+ var c;
65
+ return `size-${((c = e.rowConfigs) == null ? void 0 : c.size) ?? "default"}`;
66
+ }, D = (e) => {
67
+ if (o.includes(e))
68
+ return (r == null ? void 0 : r.key) === e ? y === q.ASC ? /* @__PURE__ */ t(N, {}) : /* @__PURE__ */ t(J, {}) : /* @__PURE__ */ t(N, {});
69
+ };
70
+ return /* @__PURE__ */ n("div", { className: l("table", f), children: [
71
+ /* @__PURE__ */ n("div", { className: l("table-header", m), children: [
72
+ x && /* @__PURE__ */ t("div", { className: l("table-header-cell", "checkbox-cell"), children: _ && /* @__PURE__ */ t(
73
+ C,
74
+ {
75
+ value: U,
76
+ partiallyChecked: _,
77
+ onChange: $,
78
+ className: l("checkbox-cell")
79
+ }
80
+ ) }),
81
+ w.map((e) => /* @__PURE__ */ t(
82
+ "button",
83
+ {
84
+ className: l("table-header-cell", {
85
+ [`align-${e.align}`]: "align" in e,
86
+ "primary-cell": "primary" in e && e.primary,
87
+ "sortable-cell": o.includes(e.key)
88
+ }),
89
+ style: g(e),
90
+ children: /* @__PURE__ */ n(
91
+ "div",
92
+ {
93
+ className: l("label"),
94
+ onClick: () => M(e.key),
95
+ onMouseEnter: () => R(e.key),
96
+ onMouseLeave: B,
97
+ children: [
98
+ /* @__PURE__ */ t("span", { children: e.header }),
99
+ (z === e.key || (r == null ? void 0 : r.key) === e.key) && D(e.key)
100
+ ]
101
+ }
102
+ )
103
+ },
104
+ e.key
105
+ )),
106
+ b && /* @__PURE__ */ t("div", { className: l("table-header-cell", "action-menu-cell") })
107
+ ] }),
108
+ /* @__PURE__ */ t("div", { className: l("table-body"), children: a.map((e, v) => /* @__PURE__ */ n(
109
+ "div",
110
+ {
111
+ className: l("table-row", V(e), L),
112
+ onMouseEnter: () => H(v),
113
+ onMouseLeave: T,
114
+ children: [
115
+ x && /* @__PURE__ */ t("div", { className: l("table-cell", "checkbox-cell"), children: (_ || E === v) && /* @__PURE__ */ t(
116
+ C,
117
+ {
118
+ value: h.includes(e.id),
119
+ onChange: () => Z(e.id),
120
+ className: l("checkbox-cell")
121
+ }
122
+ ) }),
123
+ /* @__PURE__ */ n("div", { className: l("table-row-content"), children: [
124
+ w.map((c) => /* @__PURE__ */ t(
125
+ "div",
126
+ {
127
+ className: l("table-cell", {
128
+ "primary-cell": "primary" in c && c.primary
129
+ }),
130
+ style: g(c),
131
+ children: e[c.key].component || e[c.key].content || e[c.key]
132
+ },
133
+ c.key
134
+ )),
135
+ b && /* @__PURE__ */ t("div", { className: l("table-cell", "action-menu-cell"), children: b })
136
+ ] })
137
+ ]
138
+ },
139
+ e.id
140
+ )) })
141
+ ] });
142
+ };
143
+ export {
144
+ J as S,
145
+ le as T,
146
+ N as a
147
+ };
package/dist/table.js CHANGED
@@ -1,4 +1,4 @@
1
- import { T as r } from "./table-231fd19c.js";
1
+ import { T as r } from "./table-83e050dc.js";
2
2
  import "react/jsx-runtime";
3
3
  import "react";
4
4
  import "./bind-06a7ff84.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reportportal/ui-kit",
3
- "version": "0.0.1-alpha.12",
3
+ "version": "0.0.1-alpha.14",
4
4
  "description": "The UI-kit library for ReportPortal Design System.",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -29,7 +29,8 @@
29
29
  "classnames": "^2.3.2",
30
30
  "downshift": "^6.1.12",
31
31
  "framer-motion": "^10.15.2",
32
- "rc-scrollbars": "^1.1.6"
32
+ "rc-scrollbars": "^1.1.6",
33
+ "react-datepicker": "^7.3.0"
33
34
  },
34
35
  "devDependencies": {
35
36
  "@storybook/addon-essentials": "^7.2.0",
@@ -42,10 +43,12 @@
42
43
  "@storybook/testing-library": "^0.2.0",
43
44
  "@types/node": "^20.4.5",
44
45
  "@types/react": "^18.3.3",
46
+ "@types/react-datepicker": "^6.2.0",
45
47
  "@types/react-dom": "^18.2.7",
46
48
  "@typescript-eslint/eslint-plugin": "^5.62.0",
47
49
  "@typescript-eslint/parser": "^5.62.0",
48
50
  "@vitejs/plugin-react": "^4.0.3",
51
+ "date-fns": "^3.6.0",
49
52
  "eslint": "^8.46.0",
50
53
  "eslint-config-airbnb-typescript": "^15.0.0",
51
54
  "eslint-config-prettier": "^8.10.0",
@@ -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-7fb84fde.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,138 +0,0 @@
1
- import { jsxs as n, jsx as s } from "react/jsx-runtime";
2
- import * as i from "react";
3
- import { useState as j, useMemo as F } from "react";
4
- import { c as G } from "./bind-06a7ff84.js";
5
- import "./baseIconButton-7bc53dec.js";
6
- import { C as m } from "./checkbox-6777be17.js";
7
- const J = (l) => /* @__PURE__ */ i.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...l }, /* @__PURE__ */ i.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M7.85355 12.8536C7.65829 13.0488 7.34171 13.0488 7.14645 12.8536L4.14645 9.85355C3.95118 9.65829 3.95118 9.34171 4.14645 9.14645C4.34171 8.95118 4.65829 8.95118 4.85355 9.14645L7 11.2929L7 3.5C7 3.22386 7.22386 3 7.5 3C7.77614 3 8 3.22386 8 3.5L8 11.2929L10.1464 9.14645C10.3417 8.95119 10.6583 8.95118 10.8536 9.14645C11.0488 9.34171 11.0488 9.65829 10.8536 9.85355L7.85355 12.8536Z", fill: "#A2AAB5" })), L = (l) => /* @__PURE__ */ i.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...l }, /* @__PURE__ */ i.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M7.14645 3.14645C7.34171 2.95118 7.65829 2.95118 7.85355 3.14645L10.8536 6.14645C11.0488 6.34171 11.0488 6.65829 10.8536 6.85355C10.6583 7.04882 10.3417 7.04882 10.1464 6.85355L8 4.70711V12.5C8 12.7761 7.77614 13 7.5 13C7.22386 13 7 12.7761 7 12.5L7 4.70711L4.85355 6.85355C4.65829 7.04882 4.34171 7.04882 4.14645 6.85355C3.95118 6.65829 3.95118 6.34171 4.14645 6.14645L7.14645 3.14645Z", fill: "#A2AAB5" })), K = "_table_asjfg_5", O = {
8
- table: K,
9
- "table-header": "_table-header_asjfg_10",
10
- "table-row": "_table-row_asjfg_17",
11
- "table-row-content": "_table-row-content_asjfg_22",
12
- "size-small": "_size-small_asjfg_32",
13
- "size-large": "_size-large_asjfg_35",
14
- "table-body": "_table-body_asjfg_39",
15
- "table-header-cell": "_table-header-cell_asjfg_46",
16
- "table-cell": "_table-cell_asjfg_46",
17
- "action-menu-cell": "_action-menu-cell_asjfg_51",
18
- "checkbox-cell": "_checkbox-cell_asjfg_61",
19
- "primary-cell": "_primary-cell_asjfg_72",
20
- "align-right": "_align-right_asjfg_89",
21
- "align-center": "_align-center_asjfg_95"
22
- };
23
- var g = /* @__PURE__ */ ((l) => (l.ASC = "asc", l.DESC = "desc", l))(g || {});
24
- const P = (l) => l.map((c) => c.key), a = G.bind(O), ee = ({
25
- data: l,
26
- primaryColumn: c,
27
- fixedColumns: d,
28
- rowActionMenu: h,
29
- className: N = "",
30
- rowClassName: x = "",
31
- headerClassName: A = "",
32
- selectable: v = !1,
33
- selectedRowIds: o = [],
34
- sortingDirection: f = g.ASC,
35
- sortingColumn: r = c,
36
- sortableColumns: y = P([c, ...d]),
37
- onChangeSorting: S = () => {
38
- },
39
- onToggleRowSelection: u = () => {
40
- },
41
- onToggleAllRowsSelection: z = () => {
42
- }
43
- }) => {
44
- const [E, p] = j(null), [M, k] = j(null), w = F(() => [{ ...c, primary: !0 }, ...d], [c, d]), R = (e) => {
45
- y.includes(e) && S({ key: e, direction: f });
46
- }, C = (e) => ({
47
- width: e.width,
48
- textAlign: e.align
49
- }), B = (e) => {
50
- p(e);
51
- }, H = () => {
52
- p(null);
53
- }, T = (e) => {
54
- k(e);
55
- }, Z = () => {
56
- k(null);
57
- }, $ = (e) => {
58
- u(e);
59
- }, U = () => {
60
- z();
61
- }, V = l.every((e) => o.includes(e.id)), _ = l.some((e) => o.includes(e.id)), q = (e) => {
62
- var t;
63
- return `size-${((t = e.rowConfigs) == null ? void 0 : t.size) ?? "default"}`;
64
- }, D = (e) => {
65
- if (y.includes(e))
66
- return (r == null ? void 0 : r.key) === e ? f === g.ASC ? /* @__PURE__ */ s(L, {}) : /* @__PURE__ */ s(J, {}) : /* @__PURE__ */ s(L, {});
67
- };
68
- return /* @__PURE__ */ n("div", { className: a("table", N), children: [
69
- /* @__PURE__ */ n("div", { className: a("table-header", A), children: [
70
- v && /* @__PURE__ */ s("div", { className: a("table-header-cell", "checkbox-cell"), children: _ && /* @__PURE__ */ s(
71
- m,
72
- {
73
- value: V,
74
- partiallyChecked: _,
75
- onChange: U,
76
- className: a("checkbox-cell")
77
- }
78
- ) }),
79
- w.map((e) => /* @__PURE__ */ n(
80
- "button",
81
- {
82
- className: a("table-header-cell", {
83
- [`align-${e.align}`]: "align" in e,
84
- "primary-cell": "primary" in e && e.primary
85
- }),
86
- style: C(e),
87
- onClick: () => R(e.key),
88
- onMouseEnter: () => B(e.key),
89
- onMouseLeave: H,
90
- children: [
91
- /* @__PURE__ */ s("span", { children: e.header }),
92
- (E === e.key || (r == null ? void 0 : r.key) === e.key) && D(e.key)
93
- ]
94
- },
95
- e.key
96
- )),
97
- h && /* @__PURE__ */ s("div", { className: a("table-header-cell", "action-menu-cell") })
98
- ] }),
99
- /* @__PURE__ */ s("div", { className: a("table-body"), children: l.map((e, b) => /* @__PURE__ */ n(
100
- "div",
101
- {
102
- className: a("table-row", q(e), x),
103
- onMouseEnter: () => T(b),
104
- onMouseLeave: Z,
105
- children: [
106
- v && /* @__PURE__ */ s("div", { className: a("table-cell", "checkbox-cell"), children: (_ || M === b) && /* @__PURE__ */ s(
107
- m,
108
- {
109
- value: o.includes(e.id),
110
- onChange: () => $(e.id),
111
- className: a("checkbox-cell")
112
- }
113
- ) }),
114
- /* @__PURE__ */ n("div", { className: a("table-row-content"), children: [
115
- w.map((t) => /* @__PURE__ */ s(
116
- "div",
117
- {
118
- className: a("table-cell", "table-cell", {
119
- "primary-cell": "primary" in t && t.primary
120
- }),
121
- style: C(t),
122
- children: e[t.key].component || e[t.key].content || e[t.key]
123
- },
124
- t.key
125
- )),
126
- h && /* @__PURE__ */ s("div", { className: a("table-cell", "action-menu-cell"), children: h })
127
- ] })
128
- ]
129
- },
130
- e.id
131
- )) })
132
- ] });
133
- };
134
- export {
135
- J as S,
136
- ee as T,
137
- L as a
138
- };