tycho-components 0.7.21 → 0.7.22
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.
|
@@ -3,9 +3,10 @@ import './style.scss';
|
|
|
3
3
|
type Props = {
|
|
4
4
|
title: string | React.ReactNode;
|
|
5
5
|
children: React.ReactNode;
|
|
6
|
+
extraHeaderActions?: React.ReactNode;
|
|
6
7
|
footer?: React.ReactNode;
|
|
7
8
|
options?: DropdownMenuItem[];
|
|
8
9
|
className?: string;
|
|
9
10
|
};
|
|
10
|
-
export default function AppCard({ title, children, footer, options, className, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export default function AppCard({ title, children, extraHeaderActions, footer, options, className, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
11
12
|
export {};
|
package/dist/AppCard/AppCard.js
CHANGED
|
@@ -2,6 +2,6 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import cx from 'classnames';
|
|
3
3
|
import { DropdownMenu } from 'tycho-storybook';
|
|
4
4
|
import './style.scss';
|
|
5
|
-
export default function AppCard({ title, children, footer, options, className, }) {
|
|
6
|
-
return (_jsxs("div", { className: cx('ds-app-card', className), children: [_jsxs("div", { className: "header", children: [_jsx("div", { className: "title", children: title }), options && (_jsx(DropdownMenu, { list: options }))] }), _jsx("div", { className: "body", children: children }), footer && (_jsx("div", { className: "footer", children: footer }))] }));
|
|
5
|
+
export default function AppCard({ title, children, extraHeaderActions, footer, options, className, }) {
|
|
6
|
+
return (_jsxs("div", { className: cx('ds-app-card', className), children: [_jsxs("div", { className: "header", children: [_jsx("div", { className: "title", children: title }), extraHeaderActions && (_jsx("div", { className: "extra-header-actions", children: extraHeaderActions })), options && (_jsx(DropdownMenu, { list: options }))] }), _jsx("div", { className: "body", children: children }), footer && (_jsx("div", { className: "footer", children: footer }))] }));
|
|
7
7
|
}
|
package/dist/AppCard/style.scss
CHANGED
|
@@ -9,9 +9,15 @@
|
|
|
9
9
|
padding: 8px 16px;
|
|
10
10
|
background-color: var(--layer-layer-2);
|
|
11
11
|
border-bottom: 1px solid var(--border-subtle-1);
|
|
12
|
+
gap: 12px;
|
|
12
13
|
|
|
13
14
|
> .title {
|
|
14
15
|
@include label-large-2;
|
|
16
|
+
flex: 1;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
> .extra-header-actions {
|
|
20
|
+
display: flex;
|
|
15
21
|
}
|
|
16
22
|
}
|
|
17
23
|
|