@alphakits/ui 2.4.6 → 2.4.7
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/back-button/component.js +5 -8
- package/dist/input/index.css +1 -1
- package/dist/modal/components/modals/modal.js +36 -34
- package/dist/modal/hooks/use-modal.d.ts +1 -1
- package/dist/modal/hooks/use-modal.js +21 -22
- package/dist/modal/types.d.ts +1 -2
- package/dist/sidepanel/component.d.ts +0 -1
- package/dist/sidepanel/component.js +20 -22
- package/dist/sidepanel-header/component.d.ts +0 -1
- package/dist/sidepanel-header/component.js +8 -9
- package/package.json +1 -1
- package/dist/back-button/index.css +0 -1
- package/dist/back-button/index.module.css.js +0 -9
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
const
|
|
5
|
-
/* @__PURE__ */ r(s, { type: "back", size: "s" }),
|
|
6
|
-
t("common:back")
|
|
7
|
-
] });
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import m from "@alphakits/icons/dist/BackS";
|
|
3
|
+
import { Button as c } from "../button/component.js";
|
|
4
|
+
const s = ({ onClick: t, t: r }) => /* @__PURE__ */ o(c, { view: "secondary", size: "xs", leftAddons: /* @__PURE__ */ o(m, {}), onClick: t, children: r("common:back") });
|
|
8
5
|
export {
|
|
9
|
-
|
|
6
|
+
s as BackButton
|
|
10
7
|
};
|
package/dist/input/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--text-primary-color: var(--color-text-primary);--text-secondary-color: var(--color-text-secondary);--text-tertiary-color: var(--color-text-tertiary);--border-radius: 4px;--focus-color: var(--color-border-link);--font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, sans-serif;--disabled-cursor: not-allowed;--arrow-transform: rotate(180deg)}:root{--input-clear-icon: url(https://alfabank.st/icons/glyph_cross-circle_m.svg);--input-color: var(--color-text-primary);--input-placeholder-color: color-mix(in srgb, var(--color-text-secondary) 35%, transparent);--input-focus-placeholder-color: color-mix(in srgb, var(--color-text-tertiary) 35%, transparent);--input-with-label-placeholder-color: color-mix(in srgb, var(--color-text-tertiary) 35%, transparent);--input-error-icon-display: flex;--input-success-icon-display: flex;--input-error-icon: url(https://alfabank.st/icons/icon_error_s_color.svg);--input-success-icon: url(https://alfabank.st/icons/icon_ok_s_color.svg);--input-disabled-color: var(--color-text-secondary);--input-read-only-color: var(--color-text-secondary)}.input_XkSq{font-size:16px!important;line-height:20px;font-weight:400;font-family:var(--font-family);position:relative;display:block;width:100%;height:100%;color:var(--input-color);background:none;border:none;margin:0;outline:none;text-overflow:ellipsis;box-sizing:border-box;-webkit-appearance:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.input_XkSq::placeholder{transition:opacity .2s ease,color .2s ease;color:var(--input-placeholder-color)}.hasLabel_3lW-::placeholder{opacity:0;color:var(--input-with-label-placeholder-color)}.block_Lq9-{width:100%}.clearIcon_951a{width:24px;height:24px;background-repeat:no-repeat;background-position:50% 50%;display:block;background-image:var(--input-clear-icon);opacity:.3;transition:opacity .2s ease}.clearIcon_951a:hover{opacity:.6}.clearIcon_951a:active{opacity:1}.errorIcon_Z4ac{width:24px;height:24px;background-repeat:no-repeat;background-position:50% 50%;display:var(--input-error-icon-display);background-image:url(https://alfabank.st/icons/icon_error_s_color.svg)}.successIcon_yfoM{width:24px;height:24px;background-repeat:no-repeat;background-position:50% 50%;display:var(--input-success-icon-display);background-image:url(https://alfabank.st/icons/icon_ok_s_color.svg)}.input_XkSq:disabled{cursor:var(--disabled-cursor);color:var(--input-disabled-color)}.input_XkSq:focus.hasLabel_3lW-::placeholder{opacity:1}.input_XkSq:focus::placeholder{color:var(--input-focus-placeholder-color)}.focusVisible_3hin{outline:2px solid var(--focus-color);outline-offset:2px}.input_XkSq:read-only{cursor:var(--disabled-cursor);color:var(--input-read-only-color)}.input_XkSq:read-only:focus::placeholder{color:var(--input-placeholder-color)}.hasLabel_3lW-:read-only:focus::placeholder{opacity:0}.input_XkSq::-ms-clear{display:none;width:0;height:0}.input_XkSq:-webkit-autofill,.input_XkSq:-webkit-autofill:hover,.input_XkSq:-webkit-autofill:focus,.input_XkSq:-webkit-autofill:active{-webkit-transition:background-color 999999s ease-in-out 0s;transition:background-color 999999s ease-in-out 0s;-webkit-box-shadow:0 0 0 30px #ffffff00 inset!important}
|
|
1
|
+
:root{--text-primary-color: var(--color-text-primary);--text-secondary-color: var(--color-text-secondary);--text-tertiary-color: var(--color-text-tertiary);--border-radius: 4px;--focus-color: var(--color-border-link);--font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, sans-serif;--disabled-cursor: not-allowed;--arrow-transform: rotate(180deg)}:root{--input-clear-icon: url(https://alfabank.st/icons/glyph_cross-circle_m.svg);--input-color: var(--color-text-primary);--input-placeholder-color: color-mix(in srgb, var(--color-text-secondary) 35%, transparent);--input-focus-placeholder-color: color-mix(in srgb, var(--color-text-tertiary, var(--color-text-secondary)) 35%, transparent);--input-with-label-placeholder-color: color-mix(in srgb, var(--color-text-tertiary, var(--color-text-secondary)) 35%, transparent);--input-error-icon-display: flex;--input-success-icon-display: flex;--input-error-icon: url(https://alfabank.st/icons/icon_error_s_color.svg);--input-success-icon: url(https://alfabank.st/icons/icon_ok_s_color.svg);--input-disabled-color: var(--color-text-secondary);--input-read-only-color: var(--color-text-secondary)}.input_XkSq{font-size:16px!important;line-height:20px;font-weight:400;font-family:var(--font-family);position:relative;display:block;width:100%;height:100%;color:var(--input-color);background:none;border:none;margin:0;outline:none;text-overflow:ellipsis;box-sizing:border-box;-webkit-appearance:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.input_XkSq::placeholder{transition:opacity .2s ease,color .2s ease;color:var(--input-placeholder-color)}.hasLabel_3lW-::placeholder{opacity:0;color:var(--input-with-label-placeholder-color)}.block_Lq9-{width:100%}.clearIcon_951a{width:24px;height:24px;background-repeat:no-repeat;background-position:50% 50%;display:block;background-image:var(--input-clear-icon);opacity:.3;transition:opacity .2s ease}.clearIcon_951a:hover{opacity:.6}.clearIcon_951a:active{opacity:1}.errorIcon_Z4ac{width:24px;height:24px;background-repeat:no-repeat;background-position:50% 50%;display:var(--input-error-icon-display);background-image:url(https://alfabank.st/icons/icon_error_s_color.svg)}.successIcon_yfoM{width:24px;height:24px;background-repeat:no-repeat;background-position:50% 50%;display:var(--input-success-icon-display);background-image:url(https://alfabank.st/icons/icon_ok_s_color.svg)}.input_XkSq:disabled{cursor:var(--disabled-cursor);color:var(--input-disabled-color)}.input_XkSq:focus.hasLabel_3lW-::placeholder{opacity:1}.input_XkSq:focus::placeholder{color:var(--input-focus-placeholder-color)}.focusVisible_3hin{outline:2px solid var(--focus-color);outline-offset:2px}.input_XkSq:read-only{cursor:var(--disabled-cursor);color:var(--input-read-only-color)}.input_XkSq:read-only:focus::placeholder{color:var(--input-placeholder-color)}.hasLabel_3lW-:read-only:focus::placeholder{opacity:0}.input_XkSq::-ms-clear{display:none;width:0;height:0}.input_XkSq:-webkit-autofill,.input_XkSq:-webkit-autofill:hover,.input_XkSq:-webkit-autofill:focus,.input_XkSq:-webkit-autofill:active{-webkit-transition:background-color 999999s ease-in-out 0s;transition:background-color 999999s ease-in-out 0s;-webkit-box-shadow:0 0 0 30px #ffffff00 inset!important;-webkit-text-fill-color:var(--input-color)!important;caret-color:var(--input-color)}
|
|
@@ -1,77 +1,79 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as k, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import y from "@alphakits/icons/dist/CloseM";
|
|
2
3
|
import b from "classnames";
|
|
3
|
-
import { useState as v, useLayoutEffect as x, useCallback as
|
|
4
|
-
import {
|
|
5
|
-
import { showConfirm as
|
|
6
|
-
import
|
|
4
|
+
import { useState as v, useLayoutEffect as x, useCallback as w, useEffect as E } from "react";
|
|
5
|
+
import { Button as g } from "../../../button/component.js";
|
|
6
|
+
import { showConfirm as F } from "../../../confirm-popup/component.js";
|
|
7
|
+
import t from "./index.module.css.js";
|
|
7
8
|
const C = {
|
|
8
9
|
s: 488,
|
|
9
10
|
m: 888,
|
|
10
11
|
full: "96%"
|
|
11
|
-
},
|
|
12
|
-
const
|
|
12
|
+
}, d = 102, N = (e) => e === "full" ? `calc(-96vw - ${d}px)` : -C[e] - d, j = ({ modal: e, t: r, index: f, dirtyModals: a, closeModal: l, currentModalId: c }) => {
|
|
13
|
+
const m = N(e.props.size), [h, p] = v(m);
|
|
13
14
|
x(() => {
|
|
14
15
|
const o = requestAnimationFrame(() => p(0));
|
|
15
16
|
return () => cancelAnimationFrame(o);
|
|
16
17
|
}, [e.id]);
|
|
17
|
-
const u =
|
|
18
|
-
(o) =>
|
|
18
|
+
const u = w(
|
|
19
|
+
(o) => a[o] ? F({
|
|
19
20
|
title: r("common:exitConfirm"),
|
|
20
21
|
confirmText: r("common:Да"),
|
|
21
22
|
cancelText: r("common:Нет"),
|
|
22
23
|
confirmView: "negative"
|
|
23
24
|
}) : Promise.resolve(!0),
|
|
24
25
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
25
|
-
[
|
|
26
|
-
),
|
|
26
|
+
[a, r]
|
|
27
|
+
), n = w(
|
|
27
28
|
async (o) => {
|
|
28
|
-
const { id:
|
|
29
|
-
await u(o ||
|
|
30
|
-
e.props.closeCallback && e.props.closeCallback(), l(o ||
|
|
29
|
+
const { id: s } = e;
|
|
30
|
+
await u(o || s) && (p(m), setTimeout(() => {
|
|
31
|
+
e.props.closeCallback && e.props.closeCallback(), l(o || s);
|
|
31
32
|
}, 250));
|
|
32
33
|
},
|
|
33
|
-
[l, u, e,
|
|
34
|
+
[l, u, e, m]
|
|
34
35
|
);
|
|
35
36
|
return E(() => {
|
|
36
|
-
const o = (
|
|
37
|
-
(
|
|
37
|
+
const o = (s) => {
|
|
38
|
+
(s.key === "27" || s.key === "Escape") && n(c);
|
|
38
39
|
};
|
|
39
40
|
return e.id === c && window?.addEventListener("keydown", o), () => {
|
|
40
41
|
window?.removeEventListener("keydown", o);
|
|
41
42
|
};
|
|
42
|
-
}, [
|
|
43
|
+
}, [n, c, e.id]), /* @__PURE__ */ k(
|
|
43
44
|
"div",
|
|
44
45
|
{
|
|
45
|
-
className:
|
|
46
|
+
className: t.container,
|
|
46
47
|
style: {
|
|
47
|
-
zIndex: 9999998 +
|
|
48
|
+
zIndex: 9999998 + f
|
|
48
49
|
},
|
|
49
50
|
children: [
|
|
50
51
|
/* @__PURE__ */ i(
|
|
51
52
|
"div",
|
|
52
53
|
{
|
|
53
|
-
className: b(
|
|
54
|
+
className: b(t.right, t.content),
|
|
54
55
|
style: {
|
|
55
|
-
zIndex: 9999999 +
|
|
56
|
+
zIndex: 9999999 + f,
|
|
56
57
|
width: C[e.props.size],
|
|
57
|
-
right:
|
|
58
|
+
right: h
|
|
58
59
|
},
|
|
59
|
-
children: /* @__PURE__ */
|
|
60
|
+
children: /* @__PURE__ */ k("div", { className: t.inner, children: [
|
|
60
61
|
/* @__PURE__ */ i(
|
|
61
62
|
e.modal,
|
|
62
63
|
{
|
|
63
64
|
...e.props,
|
|
64
65
|
modalId: e.id,
|
|
65
|
-
close: () =>
|
|
66
|
+
close: () => n()
|
|
66
67
|
}
|
|
67
68
|
),
|
|
68
|
-
|
|
69
|
-
|
|
69
|
+
/* @__PURE__ */ i(
|
|
70
|
+
g,
|
|
70
71
|
{
|
|
71
|
-
className:
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
72
|
+
className: t.button,
|
|
73
|
+
view: "secondary",
|
|
74
|
+
size: "xs",
|
|
75
|
+
leftAddons: /* @__PURE__ */ i(y, {}),
|
|
76
|
+
onClick: () => n()
|
|
75
77
|
}
|
|
76
78
|
)
|
|
77
79
|
] })
|
|
@@ -80,10 +82,10 @@ const C = {
|
|
|
80
82
|
/* @__PURE__ */ i(
|
|
81
83
|
"button",
|
|
82
84
|
{
|
|
83
|
-
className:
|
|
85
|
+
className: t.bg,
|
|
84
86
|
"aria-label": "close_backdrop",
|
|
85
87
|
type: "button",
|
|
86
|
-
onClick: () =>
|
|
88
|
+
onClick: () => n()
|
|
87
89
|
}
|
|
88
90
|
)
|
|
89
91
|
]
|
|
@@ -91,5 +93,5 @@ const C = {
|
|
|
91
93
|
);
|
|
92
94
|
};
|
|
93
95
|
export {
|
|
94
|
-
|
|
96
|
+
j as Modal
|
|
95
97
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { ModalObject, ModalSize, OwnModalProps, TFunction } from '../types';
|
|
3
3
|
export declare const useModal: (t: TFunction) => {
|
|
4
|
-
openModal: <T>(modal: React.FC<T>, size?: ModalSize
|
|
4
|
+
openModal: <T>(modal: React.FC<T>, size?: ModalSize) => (props?: OwnModalProps<T>, closeCallback?: () => void) => void;
|
|
5
5
|
modals: ModalObject[];
|
|
6
6
|
setModalDirty: (id: string, isDirty: boolean) => void;
|
|
7
7
|
currentModalId: string;
|
|
@@ -1,41 +1,40 @@
|
|
|
1
|
-
import d, { useRef as
|
|
2
|
-
import { v4 as
|
|
3
|
-
import { deletePropertyById as
|
|
4
|
-
const
|
|
5
|
-
const [
|
|
1
|
+
import d, { useRef as R, useCallback as r, useEffect as S } from "react";
|
|
2
|
+
import { v4 as b } from "uuid";
|
|
3
|
+
import { deletePropertyById as h } from "../utils/delete-property-by-id.js";
|
|
4
|
+
const w = (n) => {
|
|
5
|
+
const [s, l] = d.useState([]), [f, a] = d.useState(""), [p, c] = d.useState({}), u = R(n);
|
|
6
6
|
u.current = n;
|
|
7
|
-
const i =
|
|
8
|
-
c((e) =>
|
|
9
|
-
}, []), M =
|
|
7
|
+
const i = r((t) => {
|
|
8
|
+
c((e) => h(e, t)), l((e) => e.filter((o) => o.id !== t));
|
|
9
|
+
}, []), M = r((t) => {
|
|
10
10
|
l((e) => [...e, t]), a(t.id);
|
|
11
|
-
}, []), m =
|
|
11
|
+
}, []), m = r((t, e) => {
|
|
12
12
|
t && c((o) => o[t] === e ? o : {
|
|
13
13
|
...o,
|
|
14
14
|
[t]: e
|
|
15
15
|
});
|
|
16
16
|
}, []);
|
|
17
|
-
return
|
|
18
|
-
const t = [...
|
|
19
|
-
a(t || ""), document.body.style.overflow =
|
|
20
|
-
}, [
|
|
21
|
-
openModal:
|
|
22
|
-
(t, e = "s"
|
|
23
|
-
const
|
|
17
|
+
return S(() => {
|
|
18
|
+
const t = [...s].pop()?.id;
|
|
19
|
+
a(t || ""), document.body.style.overflow = s.length ? "hidden" : "unset";
|
|
20
|
+
}, [s]), {
|
|
21
|
+
openModal: r(
|
|
22
|
+
(t, e = "s") => (o, y) => {
|
|
23
|
+
const I = b();
|
|
24
24
|
M({
|
|
25
|
-
id:
|
|
25
|
+
id: I,
|
|
26
26
|
modal: t,
|
|
27
27
|
props: {
|
|
28
28
|
size: e,
|
|
29
|
-
|
|
30
|
-
closeCallback: I,
|
|
29
|
+
closeCallback: y,
|
|
31
30
|
t: u.current,
|
|
32
|
-
...
|
|
31
|
+
...o
|
|
33
32
|
}
|
|
34
33
|
});
|
|
35
34
|
},
|
|
36
35
|
[M]
|
|
37
36
|
),
|
|
38
|
-
modals:
|
|
37
|
+
modals: s,
|
|
39
38
|
setModalDirty: m,
|
|
40
39
|
currentModalId: f,
|
|
41
40
|
dirtyModals: p,
|
|
@@ -43,5 +42,5 @@ const x = (n) => {
|
|
|
43
42
|
};
|
|
44
43
|
};
|
|
45
44
|
export {
|
|
46
|
-
|
|
45
|
+
w as useModal
|
|
47
46
|
};
|
package/dist/modal/types.d.ts
CHANGED
|
@@ -4,7 +4,6 @@ type ModalProps = {
|
|
|
4
4
|
close: () => void;
|
|
5
5
|
modalId?: string;
|
|
6
6
|
size: ModalSize;
|
|
7
|
-
showCloser?: boolean;
|
|
8
7
|
t: TFunction;
|
|
9
8
|
} & unknown;
|
|
10
9
|
export type TFunction = (field: string, options?: {
|
|
@@ -20,7 +19,7 @@ export type ModalObject = {
|
|
|
20
19
|
props: ModalProps;
|
|
21
20
|
};
|
|
22
21
|
export type ContextProps = {
|
|
23
|
-
openModal: <T>(modal: React.FC<T>, size?: ModalSize
|
|
22
|
+
openModal: <T>(modal: React.FC<T>, size?: ModalSize) => (props?: OwnModalProps<T>, closeCallback?: () => void) => void;
|
|
24
23
|
modals: ModalObject[];
|
|
25
24
|
currentModalId: ModalObject['id'];
|
|
26
25
|
setModalDirty: (id: ModalObject['id'], isDirty: boolean) => void;
|
|
@@ -1,48 +1,46 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { FlexColumns as
|
|
5
|
-
import { SidepanelHeader as
|
|
6
|
-
import { Skeleton as
|
|
1
|
+
import { jsx as e, jsxs as u } from "react/jsx-runtime";
|
|
2
|
+
import v from "classnames";
|
|
3
|
+
import N from "react";
|
|
4
|
+
import { FlexColumns as x } from "../flex-columns/component.js";
|
|
5
|
+
import { SidepanelHeader as S } from "../sidepanel-header/component.js";
|
|
6
|
+
import { Skeleton as g } from "../skeleton/component.js";
|
|
7
7
|
import r from "./index.module.css.js";
|
|
8
|
-
const
|
|
8
|
+
const H = ({
|
|
9
9
|
dataTestId: o,
|
|
10
10
|
title: m,
|
|
11
11
|
loading: i,
|
|
12
12
|
headerRightAddons: t,
|
|
13
13
|
subtitle: a,
|
|
14
14
|
noCloser: l,
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
noStickyHeader: p,
|
|
15
|
+
headerBottomAddons: n,
|
|
16
|
+
noStickyFooter: c,
|
|
17
|
+
noStickyHeader: d,
|
|
19
18
|
bottomAddons: s,
|
|
20
|
-
children:
|
|
21
|
-
...
|
|
22
|
-
}) => /* @__PURE__ */ e(
|
|
19
|
+
children: p,
|
|
20
|
+
...f
|
|
21
|
+
}) => /* @__PURE__ */ e(N.Fragment, { children: i ? /* @__PURE__ */ e(x, { className: r.loader, columns: 1, gr: 20, children: ["s1", "s2", "s3", "s4", "s5", "s6", "s7"].map((h) => /* @__PURE__ */ e(g, { animate: !0, visible: !0, className: r.input }, h)) }) : /* @__PURE__ */ u("div", { children: [
|
|
23
22
|
/* @__PURE__ */ e(
|
|
24
|
-
|
|
23
|
+
S,
|
|
25
24
|
{
|
|
26
25
|
title: m,
|
|
27
|
-
className:
|
|
26
|
+
className: d ? void 0 : r.header,
|
|
28
27
|
subtitle: a,
|
|
29
28
|
noCloser: l,
|
|
30
|
-
showCloser: n,
|
|
31
29
|
dataTestId: o,
|
|
32
30
|
rightAddons: t,
|
|
33
|
-
bottomAddons:
|
|
34
|
-
...
|
|
31
|
+
bottomAddons: n,
|
|
32
|
+
...f
|
|
35
33
|
}
|
|
36
34
|
),
|
|
37
|
-
/* @__PURE__ */ e("div", { className: r.content, children:
|
|
35
|
+
/* @__PURE__ */ e("div", { className: r.content, children: p }),
|
|
38
36
|
s && /* @__PURE__ */ e(
|
|
39
37
|
"div",
|
|
40
38
|
{
|
|
41
|
-
className:
|
|
39
|
+
className: v(r.footer, { [r.noSticky]: c }),
|
|
42
40
|
children: s
|
|
43
41
|
}
|
|
44
42
|
)
|
|
45
43
|
] }) });
|
|
46
44
|
export {
|
|
47
|
-
|
|
45
|
+
H as Sidepanel
|
|
48
46
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsxs as a, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import p from "classnames";
|
|
3
|
-
import { BackButton as
|
|
4
|
-
import { FlexColumns as
|
|
3
|
+
import { BackButton as f } from "../back-button/component.js";
|
|
4
|
+
import { FlexColumns as g } from "../flex-columns/component.js";
|
|
5
5
|
import { Typography as t } from "../typography/component.js";
|
|
6
6
|
import e from "./index.module.css.js";
|
|
7
|
-
const h = ({ title: m, subtitle: l }) => /* @__PURE__ */ a(
|
|
7
|
+
const h = ({ title: m, subtitle: l }) => /* @__PURE__ */ a(g, { columns: 1, gr: 4, className: e.title, children: [
|
|
8
8
|
/* @__PURE__ */ r(t.Title, { color: "primary", tag: "div", view: "small", weight: "bold", children: m }),
|
|
9
9
|
l && /* @__PURE__ */ r(t.Text, { view: "title", weight: "regular", color: "secondary", children: l })
|
|
10
|
-
] }),
|
|
10
|
+
] }), j = ({
|
|
11
11
|
className: m,
|
|
12
12
|
dataTestId: l,
|
|
13
13
|
title: o,
|
|
@@ -16,17 +16,16 @@ const h = ({ title: m, subtitle: l }) => /* @__PURE__ */ a(w, { columns: 1, gr:
|
|
|
16
16
|
subtitle: c,
|
|
17
17
|
t: d,
|
|
18
18
|
bottomAddons: n,
|
|
19
|
-
noCloser:
|
|
20
|
-
showCloser: v
|
|
19
|
+
noCloser: v
|
|
21
20
|
}) => /* @__PURE__ */ a("div", { "data-test-id": l, className: p(e.wrapper, m), children: [
|
|
22
21
|
(i || o || s) && /* @__PURE__ */ a("div", { className: e.heading, children: [
|
|
23
|
-
i && d && /* @__PURE__ */ r(
|
|
22
|
+
i && d && /* @__PURE__ */ r(f, { onClick: i, t: d }),
|
|
24
23
|
!i && o && /* @__PURE__ */ r(h, { title: o, subtitle: c }),
|
|
25
24
|
s && /* @__PURE__ */ r(
|
|
26
25
|
"div",
|
|
27
26
|
{
|
|
28
27
|
className: p(e.rightAddons, {
|
|
29
|
-
[e.noCloser]: !!
|
|
28
|
+
[e.noCloser]: !!v
|
|
30
29
|
}),
|
|
31
30
|
children: s
|
|
32
31
|
}
|
|
@@ -36,5 +35,5 @@ const h = ({ title: m, subtitle: l }) => /* @__PURE__ */ a(w, { columns: 1, gr:
|
|
|
36
35
|
!!n && /* @__PURE__ */ r("div", { className: e.bottomAddons, children: n })
|
|
37
36
|
] });
|
|
38
37
|
export {
|
|
39
|
-
|
|
38
|
+
j as SidepanelHeader
|
|
40
39
|
};
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.component_jvHy{font-size:16px;line-height:24px;font-weight:400;font-family:var(--font-family);display:flex;gap:8px;align-items:center;justify-content:start;background:transparent;outline:none;border:0;cursor:pointer;padding:0;color:var(--color-text-primary)}.component_jvHy:hover{opacity:.8}.component_jvHy:active{opacity:.6}
|