@digital-ai/dot-components 3.19.0 → 3.20.0
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/index.esm.js
CHANGED
|
@@ -11869,6 +11869,15 @@ const StyledDashboardHeader = styled(DotActionToolbar)`
|
|
|
11869
11869
|
padding: ${theme.spacing(0, 2)};
|
|
11870
11870
|
`}
|
|
11871
11871
|
`;
|
|
11872
|
+
const StyledDashboardHeaderTitleSection = styled.div`
|
|
11873
|
+
${({
|
|
11874
|
+
theme
|
|
11875
|
+
}) => css`
|
|
11876
|
+
display: flex;
|
|
11877
|
+
align-items: center;
|
|
11878
|
+
gap: ${theme.spacing(2)};
|
|
11879
|
+
`}
|
|
11880
|
+
`;
|
|
11872
11881
|
|
|
11873
11882
|
function DotDashboardHeader({
|
|
11874
11883
|
accountId,
|
|
@@ -11880,7 +11889,8 @@ function DotDashboardHeader({
|
|
|
11880
11889
|
onStatusChanged,
|
|
11881
11890
|
onDeleted,
|
|
11882
11891
|
onDuplicated,
|
|
11883
|
-
onViewMode
|
|
11892
|
+
onViewMode,
|
|
11893
|
+
showStatus = false
|
|
11884
11894
|
}) {
|
|
11885
11895
|
const {
|
|
11886
11896
|
applications,
|
|
@@ -11898,10 +11908,14 @@ function DotDashboardHeader({
|
|
|
11898
11908
|
loadApplications(accountId);
|
|
11899
11909
|
}, []);
|
|
11900
11910
|
return jsxs(StyledDashboardHeader, {
|
|
11901
|
-
children: [
|
|
11902
|
-
|
|
11903
|
-
|
|
11904
|
-
|
|
11911
|
+
children: [jsxs(StyledDashboardHeaderTitleSection, {
|
|
11912
|
+
children: [jsx(DotTypography, {
|
|
11913
|
+
component: "h2",
|
|
11914
|
+
variant: "h2",
|
|
11915
|
+
children: dashboard === null || dashboard === void 0 ? void 0 : dashboard.name
|
|
11916
|
+
}), showStatus && jsx(DotDashboardStatusPill, {
|
|
11917
|
+
status: dashboard.lifecycle_state
|
|
11918
|
+
})]
|
|
11905
11919
|
}), jsx(DotDashboardActions, {
|
|
11906
11920
|
applications: applications,
|
|
11907
11921
|
canEdit: canEdit,
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { DashboardActionsCommonProps } from '../dashboard-actions/DashboardActions';
|
|
2
2
|
interface DashboardHeaderProps extends DashboardActionsCommonProps {
|
|
3
3
|
accountId?: string;
|
|
4
|
+
showStatus?: boolean;
|
|
4
5
|
}
|
|
5
|
-
declare function DotDashboardHeader({ accountId, dashboard, isEdit, canEdit, onClose, onFavorite, onStatusChanged, onDeleted, onDuplicated, onViewMode, }: DashboardHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function DotDashboardHeader({ accountId, dashboard, isEdit, canEdit, onClose, onFavorite, onStatusChanged, onDeleted, onDuplicated, onViewMode, showStatus, }: DashboardHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
6
7
|
export { DashboardHeaderProps, DotDashboardHeader };
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
export declare const StyledDashboardHeader: import("styled-components").StyledComponent<({ ariaLabel, children, className, "data-testid": dataTestId, variant, }: import("../../action-toolbar/ActionToolbar").DotActionBarProps) => import("react/jsx-runtime").JSX.Element, any, {}, never>;
|
|
2
|
+
export declare const StyledDashboardHeaderTitleSection: import("styled-components").StyledComponent<"div", any, {}, never>;
|