@alphakits/ui 2.4.9 → 2.5.1
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/cell/base/component.js +58 -61
- package/dist/cell/base/index.css +1 -1
- package/dist/cell/base/index.module.css.js +14 -10
- package/dist/modal/components/modals/index.css +1 -1
- package/dist/modal/components/modals/index.module.css.js +11 -7
- package/dist/modal/components/modals/modal.js +112 -46
- package/dist/table/components/cell/component.js +28 -28
- package/dist/table/components/cell/index.css +1 -1
- package/package.json +1 -1
|
@@ -1,82 +1,79 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import { useRef as
|
|
4
|
-
import { getDataTestId as
|
|
5
|
-
import { useFocus as
|
|
6
|
-
import { Typography as
|
|
7
|
-
import { Pure as
|
|
1
|
+
import { jsxs as y, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import c from "classnames";
|
|
3
|
+
import { useRef as E, useCallback as T } from "react";
|
|
4
|
+
import { getDataTestId as N } from "../../__internal/utils/get-data-test-id.js";
|
|
5
|
+
import { useFocus as _ } from "../../hooks/useFocus/index.js";
|
|
6
|
+
import { Typography as f } from "../../typography/component.js";
|
|
7
|
+
import { Pure as A } from "../pure/component.js";
|
|
8
8
|
import r from "./index.module.css.js";
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
9
|
+
const p = (t, i) => T(
|
|
10
|
+
(o) => {
|
|
11
|
+
if (!i || !t) return;
|
|
12
|
+
const e = o.currentTarget, s = e.firstElementChild ?? e;
|
|
13
|
+
s.scrollWidth > s.clientWidth + 1 ? e.getAttribute("title") !== t && e.setAttribute("title", t) : e.hasAttribute("title") && e.removeAttribute("title");
|
|
14
|
+
},
|
|
15
|
+
[t, i]
|
|
16
|
+
), u = (t) => typeof t == "string" || typeof t == "number" ? String(t) : void 0, R = ({
|
|
17
|
+
className: t,
|
|
18
|
+
dataTestId: i,
|
|
19
|
+
title: o,
|
|
20
|
+
subtitle: e,
|
|
21
|
+
size: s = "m",
|
|
22
|
+
addon: a,
|
|
23
|
+
compactAddon: h,
|
|
24
|
+
singleLineTitle: l,
|
|
25
|
+
showTitleTooltipOnOverflow: g
|
|
19
26
|
}) => {
|
|
20
|
-
const
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
);
|
|
24
|
-
return E(() => {
|
|
25
|
-
if (!s || !i || !n) {
|
|
26
|
-
f(!1);
|
|
27
|
-
return;
|
|
28
|
-
}
|
|
29
|
-
const t = a.current;
|
|
30
|
-
if (!t) return;
|
|
31
|
-
const o = () => {
|
|
32
|
-
f(t.scrollWidth > t.clientWidth);
|
|
33
|
-
};
|
|
34
|
-
if (o(), typeof ResizeObserver < "u") {
|
|
35
|
-
const l = new ResizeObserver(o);
|
|
36
|
-
return l.observe(t), () => l.disconnect();
|
|
37
|
-
}
|
|
38
|
-
return window.addEventListener("resize", o), () => window.removeEventListener("resize", o);
|
|
39
|
-
}, [s, i, n]), /* @__PURE__ */ z(
|
|
40
|
-
S,
|
|
27
|
+
const m = E(null), [w] = _(m, "keyboard"), d = !!l && !!g, b = p(u(o), d), v = p(u(e), d);
|
|
28
|
+
return /* @__PURE__ */ y(
|
|
29
|
+
A,
|
|
41
30
|
{
|
|
42
|
-
slot:
|
|
43
|
-
compact:
|
|
44
|
-
className:
|
|
45
|
-
dataTestId:
|
|
31
|
+
slot: a,
|
|
32
|
+
compact: h,
|
|
33
|
+
className: c(r.component, { [r.focused]: w }, t),
|
|
34
|
+
dataTestId: N("cell-action", i, !0),
|
|
46
35
|
tabIndex: 0,
|
|
47
|
-
size:
|
|
48
|
-
ref:
|
|
36
|
+
size: s,
|
|
37
|
+
ref: m,
|
|
49
38
|
children: [
|
|
50
|
-
|
|
39
|
+
o && /* @__PURE__ */ n(
|
|
51
40
|
"div",
|
|
52
41
|
{
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
[r.single_line]: s
|
|
42
|
+
className: c(r.title_wrap, {
|
|
43
|
+
[r.single_line]: l
|
|
56
44
|
}),
|
|
57
|
-
|
|
58
|
-
children: /* @__PURE__ */
|
|
59
|
-
|
|
45
|
+
onMouseEnter: b,
|
|
46
|
+
children: /* @__PURE__ */ n(
|
|
47
|
+
f.Text,
|
|
60
48
|
{
|
|
61
49
|
view: "title",
|
|
62
50
|
color: "primary",
|
|
63
51
|
weight: "medium",
|
|
64
52
|
tag: "div",
|
|
65
53
|
className: r.title,
|
|
66
|
-
children:
|
|
54
|
+
children: o
|
|
67
55
|
}
|
|
68
56
|
)
|
|
69
57
|
}
|
|
70
58
|
),
|
|
71
|
-
|
|
72
|
-
|
|
59
|
+
e && /* @__PURE__ */ n(
|
|
60
|
+
"div",
|
|
73
61
|
{
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
62
|
+
className: c(r.subtitle_wrap, {
|
|
63
|
+
[r.subtitle_single_line]: l
|
|
64
|
+
}),
|
|
65
|
+
onMouseEnter: v,
|
|
66
|
+
children: /* @__PURE__ */ n(
|
|
67
|
+
f.Text,
|
|
68
|
+
{
|
|
69
|
+
weight: "medium",
|
|
70
|
+
view: "caps",
|
|
71
|
+
tag: "div",
|
|
72
|
+
className: r.subtitle,
|
|
73
|
+
color: "secondary",
|
|
74
|
+
children: e
|
|
75
|
+
}
|
|
76
|
+
)
|
|
80
77
|
}
|
|
81
78
|
)
|
|
82
79
|
]
|
|
@@ -84,5 +81,5 @@ const P = ({
|
|
|
84
81
|
);
|
|
85
82
|
};
|
|
86
83
|
export {
|
|
87
|
-
|
|
84
|
+
R as Base
|
|
88
85
|
};
|
package/dist/cell/base/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.component_BNjZ{outline:none}.component_BNjZ .superEllipse_FONr{--super-ellipse-success-icon-color: var(--color-graphic-thirdly)}.component_BNjZ .iconMixColors_Zfj6{color:var(--color-graphic-primary)}.iconMixColors_Zfj6,.superEllipse_FONr{--super-ellipse-transition: fill .15s ease-in-out;--super-ellipse-icon-transition: color .15s ease-in-out;transition:transform .15s ease-in-out}.title_wrap_10zd{display:flex;align-items:center}.title_wrap_10zd+.subtitle_OOoZ{margin-top:var(--gap-2xs)}.title_wrap_10zd{min-width:0}.title_VeYl{display:flex;align-items:center}.single_line_4wfi .title_VeYl{display:block;min-width:0;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.focused_ootM{outline:2px solid var(--focus-color);outline-offset:2px}
|
|
1
|
+
.component_BNjZ{outline:none}.component_BNjZ .superEllipse_FONr{--super-ellipse-success-icon-color: var(--color-graphic-thirdly)}.component_BNjZ .iconMixColors_Zfj6{color:var(--color-graphic-primary)}.iconMixColors_Zfj6,.superEllipse_FONr{--super-ellipse-transition: fill .15s ease-in-out;--super-ellipse-icon-transition: color .15s ease-in-out;transition:transform .15s ease-in-out}.title_wrap_10zd{display:flex;align-items:center}.title_wrap_10zd+.subtitle_OOoZ{margin-top:var(--gap-2xs)}.title_wrap_10zd{min-width:0}.title_VeYl{display:flex;align-items:center}.single_line_4wfi .title_VeYl{display:block;min-width:0;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.subtitle_wrap_xH8m{display:block;min-width:0}.subtitle_single_line_6DGn .subtitle_OOoZ{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.focused_ootM{outline:2px solid var(--focus-color);outline-offset:2px}
|
|
@@ -1,19 +1,23 @@
|
|
|
1
1
|
import * as __css from './index.css';
|
|
2
2
|
export const __cssModule = __css;
|
|
3
|
-
const t = "component_BNjZ", e = "title_wrap_10zd",
|
|
3
|
+
const t = "component_BNjZ", e = "title_wrap_10zd", l = "subtitle_OOoZ", s = "title_VeYl", i = "single_line_4wfi", n = "subtitle_wrap_xH8m", _ = "subtitle_single_line_6DGn", o = "focused_ootM", c = {
|
|
4
4
|
component: t,
|
|
5
5
|
title_wrap: e,
|
|
6
|
-
subtitle:
|
|
7
|
-
title:
|
|
8
|
-
single_line:
|
|
9
|
-
|
|
6
|
+
subtitle: l,
|
|
7
|
+
title: s,
|
|
8
|
+
single_line: i,
|
|
9
|
+
subtitle_wrap: n,
|
|
10
|
+
subtitle_single_line: _,
|
|
11
|
+
focused: o
|
|
10
12
|
};
|
|
11
13
|
export {
|
|
12
14
|
t as component,
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
c as default,
|
|
16
|
+
o as focused,
|
|
17
|
+
i as single_line,
|
|
18
|
+
l as subtitle,
|
|
19
|
+
_ as subtitle_single_line,
|
|
20
|
+
n as subtitle_wrap,
|
|
21
|
+
s as title,
|
|
18
22
|
e as title_wrap
|
|
19
23
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.container_WE0K{position:fixed;inset:0;display:flex;align-items:center;justify-content:center}.content_p1kc{background:var(--color-bg-primary);box-shadow:0 0 10px #0003}@media print{.content_p1kc{width:100%!important}}.button_js2W{position:absolute!important;top:34px;right:32px;z-index:999}.button_js2W.doubleModal_1ZTt{right:384px}.inner_Zsdb{height:100%;box-sizing:border-box;overflow:auto}.right_e065{position:fixed;top:0;right:0;bottom:0;transition:width .2s,opacity .2s,right .2s;transition-delay:width .1s;transition-timing-function:ease-in}.bg_8ZfP{transition:opacity .2s;background:#00000080;position:fixed;display:block;border:0;inset:0}@media screen and (max-width:823px){.right_e065,.center_nguy{max-width:100%!important;
|
|
1
|
+
.container_WE0K{position:fixed;inset:0;display:flex;align-items:center;justify-content:center}.content_p1kc{background:var(--color-bg-primary);box-shadow:0 0 10px #0003}@media print{.content_p1kc{width:100%!important}}.button_js2W{position:absolute!important;top:34px;right:32px;z-index:999}.button_js2W.doubleModal_1ZTt{right:384px}.inner_Zsdb{height:100%;box-sizing:border-box;overflow:auto}.right_e065{position:fixed;top:0;right:0;bottom:0;transition:width .2s,opacity .2s,right .2s;transition-delay:width .1s;transition-timing-function:ease-in}.bg_8ZfP{transition:opacity .2s;background:#00000080;position:fixed;display:block;border:0;inset:0}.bottomSheet_CI-8{inset:auto 0 0!important;width:100%!important;max-width:100%!important;height:92dvh;max-height:92dvh;border-top-left-radius:16px;border-top-right-radius:16px;overflow:hidden;transform:translateY(100%);transition:transform .25s cubic-bezier(.32,.72,0,1);box-shadow:0 -2px 16px #00000026!important}@supports not (height: 100dvh){.bottomSheet_CI-8{height:92vh;max-height:92vh}}.bottomSheet_CI-8.open_eGDW{transform:translateY(0)}.bottomSheet_CI-8:before{content:"";position:absolute;top:8px;left:50%;transform:translate(-50%);width:36px;height:4px;border-radius:2px;background:var(--color-bg-thirdly, rgba(0, 0, 0, .2));z-index:1000;pointer-events:none}@media screen and (max-width:823px){.right_e065,.center_nguy{max-width:100%!important;right:0!important;left:0!important}.content_p1kc{box-shadow:none!important;margin:0!important}.button_js2W{top:16px!important;right:16px!important}}
|
|
@@ -1,21 +1,25 @@
|
|
|
1
1
|
import * as __css from './index.css';
|
|
2
2
|
export const __cssModule = __css;
|
|
3
|
-
const t = "container_WE0K",
|
|
3
|
+
const t = "container_WE0K", o = "content_p1kc", n = "button_js2W", e = "doubleModal_1ZTt", c = "inner_Zsdb", s = "right_e065", b = "bg_8ZfP", r = "bottomSheet_CI-8", i = "open_eGDW", _ = {
|
|
4
4
|
container: t,
|
|
5
|
-
content:
|
|
6
|
-
button:
|
|
5
|
+
content: o,
|
|
6
|
+
button: n,
|
|
7
7
|
doubleModal: e,
|
|
8
8
|
inner: c,
|
|
9
9
|
right: s,
|
|
10
|
-
bg: b
|
|
10
|
+
bg: b,
|
|
11
|
+
bottomSheet: r,
|
|
12
|
+
open: i
|
|
11
13
|
};
|
|
12
14
|
export {
|
|
13
15
|
b as bg,
|
|
14
|
-
|
|
16
|
+
r as bottomSheet,
|
|
17
|
+
n as button,
|
|
15
18
|
t as container,
|
|
16
|
-
|
|
17
|
-
|
|
19
|
+
o as content,
|
|
20
|
+
_ as default,
|
|
18
21
|
e as doubleModal,
|
|
19
22
|
c as inner,
|
|
23
|
+
i as open,
|
|
20
24
|
s as right
|
|
21
25
|
};
|
|
@@ -1,93 +1,159 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { useState as
|
|
5
|
-
import { Button as
|
|
6
|
-
import { showConfirm as
|
|
1
|
+
import { jsxs as E, jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import O from "@alphakits/icons/dist/CloseM";
|
|
3
|
+
import C from "classnames";
|
|
4
|
+
import { useState as L, useRef as w, useLayoutEffect as N, useEffect as k, useCallback as S } from "react";
|
|
5
|
+
import { Button as z } from "../../../button/component.js";
|
|
6
|
+
import { showConfirm as j } from "../../../confirm-popup/component.js";
|
|
7
|
+
import { useMatchMedia as B } from "../../../mq/use-match-media.js";
|
|
7
8
|
import s from "./index.module.css.js";
|
|
8
|
-
const
|
|
9
|
+
const R = {
|
|
9
10
|
s: 488,
|
|
10
11
|
m: 888,
|
|
11
12
|
full: "96%"
|
|
12
|
-
},
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
}, T = 102, D = "(max-width: 823px)", K = (e) => e === "full" ? `calc(-96vw - ${T}px)` : -R[e] - T, _ = [
|
|
14
|
+
'a[href]:not([tabindex="-1"])',
|
|
15
|
+
'area[href]:not([tabindex="-1"])',
|
|
16
|
+
'button:not([disabled]):not([tabindex="-1"])',
|
|
17
|
+
'input:not([disabled]):not([type="hidden"]):not([tabindex="-1"])',
|
|
18
|
+
'select:not([disabled]):not([tabindex="-1"])',
|
|
19
|
+
'textarea:not([disabled]):not([tabindex="-1"])',
|
|
20
|
+
'[contenteditable="true"]:not([tabindex="-1"])',
|
|
21
|
+
'[tabindex]:not([tabindex="-1"])',
|
|
22
|
+
'iframe:not([tabindex="-1"])',
|
|
23
|
+
'object:not([tabindex="-1"])',
|
|
24
|
+
'embed:not([tabindex="-1"])',
|
|
25
|
+
'audio[controls]:not([tabindex="-1"])',
|
|
26
|
+
'video[controls]:not([tabindex="-1"])',
|
|
27
|
+
'details > summary:first-of-type:not([tabindex="-1"])'
|
|
28
|
+
].join(","), F = (e) => e ? Array.from(e.querySelectorAll(_)).filter((r) => {
|
|
29
|
+
if (r.hidden || r.getAttribute("aria-hidden") === "true") return !1;
|
|
30
|
+
const a = window.getComputedStyle(r);
|
|
31
|
+
return a.visibility === "hidden" || a.display === "none" ? !1 : r.offsetWidth > 0 || r.offsetHeight > 0 || r.getClientRects().length > 0;
|
|
32
|
+
}) : [], W = ({ modal: e, t: c, index: r, dirtyModals: a, closeModal: m, currentModalId: u }) => {
|
|
33
|
+
const A = K(e.props.size), [b] = B(D), [p, y] = L(!1), i = w(null), x = w(null);
|
|
34
|
+
N(() => {
|
|
35
|
+
const o = requestAnimationFrame(() => y(!0));
|
|
16
36
|
return () => cancelAnimationFrame(o);
|
|
17
|
-
}, [e.id])
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
37
|
+
}, [e.id]), k(() => {
|
|
38
|
+
if (e.id !== u) return;
|
|
39
|
+
x.current = document.activeElement || null;
|
|
40
|
+
const o = setTimeout(() => {
|
|
41
|
+
const n = F(i.current)[0] || i.current;
|
|
42
|
+
n && typeof n.focus == "function" && n.focus({ preventScroll: !0 });
|
|
43
|
+
}, 50);
|
|
44
|
+
return () => {
|
|
45
|
+
clearTimeout(o);
|
|
46
|
+
const t = document.activeElement;
|
|
47
|
+
if (!t || !i.current?.contains(t)) return;
|
|
48
|
+
const n = x.current;
|
|
49
|
+
if (n && typeof n.focus == "function" && document.body.contains(n))
|
|
50
|
+
try {
|
|
51
|
+
n.focus({ preventScroll: !0 });
|
|
52
|
+
} catch {
|
|
53
|
+
document.body.focus();
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
}, [e.id, u]);
|
|
57
|
+
const h = S(
|
|
58
|
+
(o) => a[o] ? j({
|
|
59
|
+
title: c("common:exitConfirm"),
|
|
60
|
+
confirmText: c("common:Да"),
|
|
61
|
+
cancelText: c("common:Нет"),
|
|
23
62
|
confirmView: "negative"
|
|
24
63
|
}) : Promise.resolve(!0),
|
|
25
64
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
26
|
-
[a,
|
|
27
|
-
),
|
|
65
|
+
[a, c]
|
|
66
|
+
), f = S(
|
|
28
67
|
async (o) => {
|
|
29
|
-
const { id:
|
|
30
|
-
await
|
|
31
|
-
e.props.closeCallback && e.props.closeCallback(),
|
|
68
|
+
const { id: t } = e;
|
|
69
|
+
await h(o || t) && (y(!1), setTimeout(() => {
|
|
70
|
+
e.props.closeCallback && e.props.closeCallback(), m(o || t);
|
|
32
71
|
}, 250));
|
|
33
72
|
},
|
|
34
|
-
[
|
|
73
|
+
[m, h, e]
|
|
35
74
|
);
|
|
36
|
-
return
|
|
37
|
-
const o = (
|
|
38
|
-
(
|
|
75
|
+
return k(() => {
|
|
76
|
+
const o = (t) => {
|
|
77
|
+
if (t.key === "27" || t.key === "Escape") {
|
|
78
|
+
f(u);
|
|
79
|
+
return;
|
|
80
|
+
}
|
|
81
|
+
if (t.key !== "Tab") return;
|
|
82
|
+
const n = F(i.current);
|
|
83
|
+
if (!n.length) {
|
|
84
|
+
t.preventDefault(), i.current && i.current.focus({ preventScroll: !0 });
|
|
85
|
+
return;
|
|
86
|
+
}
|
|
87
|
+
const v = n[0], g = n[n.length - 1], d = document.activeElement;
|
|
88
|
+
if (t.shiftKey && (d === v || !i.current?.contains(d))) {
|
|
89
|
+
t.preventDefault(), g.focus({ preventScroll: !0 });
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
92
|
+
!t.shiftKey && (d === g || !i.current?.contains(d)) && (t.preventDefault(), v.focus({ preventScroll: !0 }));
|
|
39
93
|
};
|
|
40
|
-
return e.id ===
|
|
94
|
+
return e.id === u && window?.addEventListener("keydown", o), () => {
|
|
41
95
|
window?.removeEventListener("keydown", o);
|
|
42
96
|
};
|
|
43
|
-
}, [
|
|
97
|
+
}, [f, u, e.id]), /* @__PURE__ */ E(
|
|
44
98
|
"div",
|
|
45
99
|
{
|
|
46
100
|
className: s.container,
|
|
47
101
|
style: {
|
|
48
|
-
zIndex: 9999998 +
|
|
102
|
+
zIndex: 9999998 + r
|
|
49
103
|
},
|
|
50
104
|
children: [
|
|
51
|
-
/* @__PURE__ */
|
|
105
|
+
/* @__PURE__ */ l(
|
|
52
106
|
"div",
|
|
53
107
|
{
|
|
54
|
-
|
|
108
|
+
ref: i,
|
|
109
|
+
className: C(s.right, s.content, {
|
|
110
|
+
[s.open]: p,
|
|
111
|
+
[s.bottomSheet]: b
|
|
112
|
+
}),
|
|
55
113
|
style: {
|
|
56
|
-
zIndex: 9999999 +
|
|
57
|
-
width:
|
|
58
|
-
right
|
|
114
|
+
zIndex: 9999999 + r,
|
|
115
|
+
width: R[e.props.size],
|
|
116
|
+
// На десктопе right-slide управляется JS-ом (старая
|
|
117
|
+
// схема — анимация ширины и right'а синхронны). На
|
|
118
|
+
// мобиле right=0 всегда, а появление контролируется
|
|
119
|
+
// CSS-классом .open → transform: translateY(0).
|
|
120
|
+
right: b || p ? 0 : A
|
|
59
121
|
},
|
|
60
|
-
|
|
61
|
-
|
|
122
|
+
role: "dialog",
|
|
123
|
+
"aria-modal": "true",
|
|
124
|
+
"aria-labelledby": `modal-title-${e.id}`,
|
|
125
|
+
tabIndex: -1,
|
|
126
|
+
children: /* @__PURE__ */ E("div", { className: s.inner, children: [
|
|
127
|
+
/* @__PURE__ */ l(
|
|
62
128
|
e.modal,
|
|
63
129
|
{
|
|
64
130
|
...e.props,
|
|
65
131
|
modalId: e.id,
|
|
66
|
-
close: () =>
|
|
132
|
+
close: () => f()
|
|
67
133
|
}
|
|
68
134
|
),
|
|
69
|
-
/* @__PURE__ */
|
|
70
|
-
|
|
135
|
+
/* @__PURE__ */ l(
|
|
136
|
+
z,
|
|
71
137
|
{
|
|
72
|
-
className:
|
|
138
|
+
className: C(s.button, {
|
|
73
139
|
[s.doubleModal]: e.props.isDouble
|
|
74
140
|
}),
|
|
75
141
|
view: "secondary",
|
|
76
142
|
size: "xs",
|
|
77
|
-
leftAddons: /* @__PURE__ */
|
|
78
|
-
onClick: () =>
|
|
143
|
+
leftAddons: /* @__PURE__ */ l(O, {}),
|
|
144
|
+
onClick: () => f()
|
|
79
145
|
}
|
|
80
146
|
)
|
|
81
147
|
] })
|
|
82
148
|
}
|
|
83
149
|
),
|
|
84
|
-
/* @__PURE__ */
|
|
150
|
+
/* @__PURE__ */ l(
|
|
85
151
|
"button",
|
|
86
152
|
{
|
|
87
153
|
className: s.bg,
|
|
88
|
-
"aria-label": "
|
|
154
|
+
"aria-label": "Close dialog",
|
|
89
155
|
type: "button",
|
|
90
|
-
onClick: () =>
|
|
156
|
+
onClick: () => f()
|
|
91
157
|
}
|
|
92
158
|
)
|
|
93
159
|
]
|
|
@@ -95,5 +161,5 @@ const C = {
|
|
|
95
161
|
);
|
|
96
162
|
};
|
|
97
163
|
export {
|
|
98
|
-
|
|
164
|
+
W as Modal
|
|
99
165
|
};
|
|
@@ -1,59 +1,59 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import s from "classnames";
|
|
3
|
-
import { Cell as
|
|
3
|
+
import { Cell as p } from "../../../cell/component.js";
|
|
4
4
|
import e from "./index.module.css.js";
|
|
5
|
-
const
|
|
6
|
-
dataTestID:
|
|
7
|
-
className:
|
|
5
|
+
const u = ({
|
|
6
|
+
dataTestID: d,
|
|
7
|
+
className: a,
|
|
8
8
|
children: l,
|
|
9
9
|
title: o,
|
|
10
|
-
subtitle:
|
|
10
|
+
subtitle: n,
|
|
11
11
|
tableProps: h,
|
|
12
|
-
cellProps:
|
|
12
|
+
cellProps: c,
|
|
13
13
|
addon: f,
|
|
14
|
-
align:
|
|
15
|
-
compact:
|
|
14
|
+
align: t,
|
|
15
|
+
compact: r,
|
|
16
16
|
width: v,
|
|
17
17
|
tag: m = "td"
|
|
18
|
-
}) => /* @__PURE__ */
|
|
18
|
+
}) => /* @__PURE__ */ i(
|
|
19
19
|
m,
|
|
20
20
|
{
|
|
21
|
-
"data-test-id":
|
|
22
|
-
className: s(e.cell,
|
|
21
|
+
"data-test-id": d,
|
|
22
|
+
className: s(e.cell, a, {
|
|
23
23
|
[e.is_div]: m === "div",
|
|
24
|
-
[e.compact_cell]:
|
|
24
|
+
[e.compact_cell]: r
|
|
25
25
|
}),
|
|
26
26
|
style: { width: v },
|
|
27
27
|
...h,
|
|
28
|
-
children: l ? /* @__PURE__ */
|
|
28
|
+
children: l ? /* @__PURE__ */ i(
|
|
29
29
|
"div",
|
|
30
30
|
{
|
|
31
31
|
className: s(e.children, {
|
|
32
|
-
[e.center]:
|
|
33
|
-
[e.right]:
|
|
32
|
+
[e.center]: t === "center",
|
|
33
|
+
[e.right]: t === "right"
|
|
34
34
|
}),
|
|
35
35
|
children: l
|
|
36
36
|
}
|
|
37
|
-
) : /* @__PURE__ */
|
|
38
|
-
|
|
37
|
+
) : /* @__PURE__ */ i(
|
|
38
|
+
p.Base,
|
|
39
39
|
{
|
|
40
40
|
title: o === void 0 ? "-" : o,
|
|
41
|
-
subtitle:
|
|
42
|
-
size:
|
|
43
|
-
compactAddon:
|
|
44
|
-
singleLineTitle:
|
|
45
|
-
showTitleTooltipOnOverflow:
|
|
41
|
+
subtitle: n,
|
|
42
|
+
size: c?.size || (r ? "s" : "m"),
|
|
43
|
+
compactAddon: r,
|
|
44
|
+
singleLineTitle: !0,
|
|
45
|
+
showTitleTooltipOnOverflow: !0,
|
|
46
46
|
className: s({
|
|
47
|
-
[e.center]:
|
|
48
|
-
[e.right]:
|
|
49
|
-
[e.compact_content]:
|
|
47
|
+
[e.center]: t === "center",
|
|
48
|
+
[e.right]: t === "right",
|
|
49
|
+
[e.compact_content]: r
|
|
50
50
|
}),
|
|
51
51
|
addon: f,
|
|
52
|
-
...
|
|
52
|
+
...c
|
|
53
53
|
}
|
|
54
54
|
)
|
|
55
55
|
}
|
|
56
56
|
);
|
|
57
57
|
export {
|
|
58
|
-
|
|
58
|
+
u as TableCell
|
|
59
59
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
table tr:last-child .cell_SVZP{border-bottom:0!important}.cell_SVZP{padding:8px 16px;border-bottom:1px solid var(--color-border-secondary);position:relative;min-height:56px;box-sizing:border-box;vertical-align:middle}.compact_cell_zSJH{min-height:44px;padding:8px 12px}.right_30pJ{justify-content:flex-end}.children_X057{width:100%;display:flex;align-items:center}.compact_content_bjnq{gap:0 6px!important;min-height:40px!important}.is_div_XHlH{display:flex;align-items:center}.cell_SVZP.is_div_XHlH{padding-top:12px;padding-bottom:12px}.compact_cell_zSJH.is_div_XHlH{min-height:44px}
|
|
1
|
+
table tr:last-child .cell_SVZP{border-bottom:0!important}.cell_SVZP{padding:8px 16px;border-bottom:1px solid var(--color-border-secondary);position:relative;min-height:56px;box-sizing:border-box;vertical-align:middle;overflow:hidden}.compact_cell_zSJH{min-height:44px;padding:8px 12px}.right_30pJ{justify-content:flex-end}.children_X057{width:100%;display:flex;align-items:center}.compact_content_bjnq{gap:0 6px!important;min-height:40px!important}.is_div_XHlH{display:flex;align-items:center}.cell_SVZP.is_div_XHlH{padding-top:12px;padding-bottom:12px}.compact_cell_zSJH.is_div_XHlH{min-height:44px}
|