@synerise/ds-page-header 1.0.63 → 1.0.64
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/CHANGELOG.md +4 -0
- package/dist/PageHeader.d.ts +2 -2
- package/dist/PageHeader.js +42 -42
- package/dist/PageHeader.styles.d.ts +7 -7
- package/dist/PageHeader.styles.js +31 -30
- package/dist/PageHeader.types.d.ts +2 -2
- package/dist/PageHeader.types.js +1 -1
- package/dist/PageHeaderBack/PageHeaderBack.d.ts +2 -2
- package/dist/PageHeaderBack/PageHeaderBack.js +15 -20
- package/dist/PageHeaderBack/PageHeaderBack.styles.d.ts +1 -1
- package/dist/PageHeaderBack/PageHeaderBack.styles.js +6 -5
- package/dist/PageHeaderBack/index.js +4 -1
- package/dist/PageHeaderClamp/PageHeaderClamp.d.ts +2 -2
- package/dist/PageHeaderClamp/PageHeaderClamp.js +17 -15
- package/dist/PageHeaderClamp/PageHeaderClamp.styles.d.ts +3 -3
- package/dist/PageHeaderClamp/PageHeaderClamp.styles.js +12 -13
- package/dist/PageHeaderClamp/index.js +4 -1
- package/dist/PageHeaderInlineEdit/PageHeaderInlineEdit.d.ts +2 -2
- package/dist/PageHeaderInlineEdit/PageHeaderInlineEdit.js +19 -23
- package/dist/PageHeaderInlineEdit/PageHeaderInlineEdit.styles.d.ts +1 -1
- package/dist/PageHeaderInlineEdit/PageHeaderInlineEdit.styles.js +6 -3
- package/dist/PageHeaderInlineEdit/index.js +4 -1
- package/dist/PageHeaderRightSide/PageHeaderRightSide.d.ts +2 -2
- package/dist/PageHeaderRightSide/PageHeaderRightSide.js +17 -19
- package/dist/PageHeaderRightSide/PageHeaderRightSide.styles.d.ts +1 -1
- package/dist/PageHeaderRightSide/PageHeaderRightSide.styles.js +6 -3
- package/dist/PageHeaderRightSide/index.js +4 -1
- package/dist/index.js +4 -1
- package/dist/modules.d.js +1 -1
- package/dist/modules.d.ts +0 -0
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [1.0.64](https://github.com/synerise/synerise-design/compare/@synerise/ds-page-header@1.0.63...@synerise/ds-page-header@1.0.64) (2026-03-24)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @synerise/ds-page-header
|
|
9
|
+
|
|
6
10
|
## [1.0.63](https://github.com/synerise/synerise-design/compare/@synerise/ds-page-header@1.0.62...@synerise/ds-page-header@1.0.63) (2026-03-20)
|
|
7
11
|
|
|
8
12
|
**Note:** Version bump only for package @synerise/ds-page-header
|
package/dist/PageHeader.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import {
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { PageHeaderProps } from './PageHeader.types';
|
|
3
3
|
declare const PageHeader: (props: PageHeaderProps) => React.JSX.Element;
|
|
4
4
|
export default PageHeader;
|
package/dist/PageHeader.js
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { PageHeaderBack } from
|
|
4
|
-
import { PageHeaderClamp } from
|
|
5
|
-
import { PageHeaderInlineEdit } from
|
|
6
|
-
import { PageHeaderRightSide } from
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { MainContainer, PageHeaderContainer, PageHeaderMore, PageHeaderDescription, PageHeaderTabsWrapper, PageHeaderBar } from "./PageHeader.styles.js";
|
|
3
|
+
import { PageHeaderBack } from "./PageHeaderBack/PageHeaderBack.js";
|
|
4
|
+
import { PageHeaderClamp } from "./PageHeaderClamp/PageHeaderClamp.js";
|
|
5
|
+
import { PageHeaderInlineEdit } from "./PageHeaderInlineEdit/PageHeaderInlineEdit.js";
|
|
6
|
+
import { PageHeaderRightSide } from "./PageHeaderRightSide/PageHeaderRightSide.js";
|
|
7
|
+
const PageHeader = (props) => {
|
|
8
|
+
const {
|
|
9
|
+
goBackIcon,
|
|
10
|
+
className,
|
|
11
|
+
onGoBack,
|
|
12
|
+
onClose,
|
|
13
|
+
children,
|
|
14
|
+
rightSide,
|
|
15
|
+
title,
|
|
16
|
+
description,
|
|
17
|
+
bar,
|
|
18
|
+
tabs,
|
|
19
|
+
isolated,
|
|
20
|
+
inlineEdit,
|
|
21
|
+
more,
|
|
22
|
+
avatar,
|
|
23
|
+
tooltip,
|
|
24
|
+
tooltipIcon,
|
|
25
|
+
handleTooltipClick
|
|
26
|
+
} = props;
|
|
27
|
+
return /* @__PURE__ */ jsxs(MainContainer, { isolated, className: `${className || ""} ds-page-header`, children: [
|
|
28
|
+
/* @__PURE__ */ jsxs(PageHeaderContainer, { children: [
|
|
29
|
+
onGoBack && /* @__PURE__ */ jsx(PageHeaderBack, { onGoBack, goBackIcon }),
|
|
30
|
+
!!avatar && avatar,
|
|
31
|
+
inlineEdit && /* @__PURE__ */ jsx(PageHeaderInlineEdit, { inlineEdit }),
|
|
32
|
+
/* @__PURE__ */ jsx(PageHeaderClamp, { tooltip, title, tooltipIcon, handleTooltipClick, children }),
|
|
33
|
+
!!more && /* @__PURE__ */ jsx(PageHeaderMore, { children: more }),
|
|
34
|
+
!!description && /* @__PURE__ */ jsx(PageHeaderDescription, { children: description }),
|
|
35
|
+
/* @__PURE__ */ jsx(PageHeaderRightSide, { onClose, rightSide })
|
|
36
|
+
] }),
|
|
37
|
+
!!tabs && /* @__PURE__ */ jsx(PageHeaderTabsWrapper, { children: tabs }),
|
|
38
|
+
!!bar && /* @__PURE__ */ jsx(PageHeaderBar, { children: bar })
|
|
39
|
+
] });
|
|
40
|
+
};
|
|
41
|
+
export {
|
|
42
|
+
PageHeader as default
|
|
42
43
|
};
|
|
43
|
-
export default PageHeader;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export declare const MainContainer: import(
|
|
1
|
+
export declare const MainContainer: import('styled-components').StyledComponent<"div", any, {
|
|
2
2
|
isolated?: boolean;
|
|
3
3
|
}, never>;
|
|
4
|
-
export declare const PageHeaderContainer: import(
|
|
5
|
-
export declare const PageHeaderDescription: import(
|
|
6
|
-
export declare const PageHeaderTabsWrapper: import(
|
|
7
|
-
export declare const PageHeaderBar: import(
|
|
8
|
-
export declare const PageHeaderMore: import(
|
|
9
|
-
export declare const PageHeaderClose: import(
|
|
4
|
+
export declare const PageHeaderContainer: import('styled-components').StyledComponent<"div", any, {}, never>;
|
|
5
|
+
export declare const PageHeaderDescription: import('styled-components').StyledComponent<"div", any, {}, never>;
|
|
6
|
+
export declare const PageHeaderTabsWrapper: import('styled-components').StyledComponent<"div", any, {}, never>;
|
|
7
|
+
export declare const PageHeaderBar: import('styled-components').StyledComponent<"div", any, {}, never>;
|
|
8
|
+
export declare const PageHeaderMore: import('styled-components').StyledComponent<"div", any, {}, never>;
|
|
9
|
+
export declare const PageHeaderClose: import('styled-components').StyledComponent<"div", any, {}, never>;
|
|
10
10
|
export { WrapperPageHeaderClamp as PageHeaderClamp, PageHeaderTitle, PageHeaderTooltipWraper, } from './PageHeaderClamp/PageHeaderClamp.styles';
|
|
11
11
|
export { WrapperPageHeaderInlineEdit as PageHeaderInlineEdit } from './PageHeaderInlineEdit/PageHeaderInlineEdit.styles';
|
|
12
12
|
export { WrapperPageHeaderBack as PageHeaderBack } from './PageHeaderBack/PageHeaderBack.styles';
|
|
@@ -1,47 +1,48 @@
|
|
|
1
|
-
import styled from
|
|
2
|
-
|
|
1
|
+
import styled from "styled-components";
|
|
2
|
+
import { WrapperPageHeaderClamp, PageHeaderTitle, PageHeaderTooltipWraper } from "./PageHeaderClamp/PageHeaderClamp.styles.js";
|
|
3
|
+
import { WrapperPageHeaderInlineEdit } from "./PageHeaderInlineEdit/PageHeaderInlineEdit.styles.js";
|
|
4
|
+
import { WrapperPageHeaderBack } from "./PageHeaderBack/PageHeaderBack.styles.js";
|
|
5
|
+
import { WrapperPageHeaderRightSide } from "./PageHeaderRightSide/PageHeaderRightSide.styles.js";
|
|
6
|
+
const MainContainer = /* @__PURE__ */ styled.div.withConfig({
|
|
3
7
|
displayName: "PageHeaderstyles__MainContainer",
|
|
4
8
|
componentId: "sc-1a87wfx-0"
|
|
5
|
-
})(["background-color:#fff;position:relative;border-bottom:1px solid ", ";box-shadow:", ";&::before{content:'';position:absolute;bottom:0;width:100%;height:1px;", ";z-index:0;}"],
|
|
6
|
-
|
|
7
|
-
}, function (props) {
|
|
8
|
-
return props.theme.variables['box-shadow-1'];
|
|
9
|
-
}, function (props) {
|
|
10
|
-
return props.isolated ? "background-color: " + props.theme.palette['grey-100'] : '';
|
|
11
|
-
});
|
|
12
|
-
export var PageHeaderContainer = styled.div.withConfig({
|
|
9
|
+
})(["background-color:#fff;position:relative;border-bottom:1px solid ", ";box-shadow:", ";&::before{content:'';position:absolute;bottom:0;width:100%;height:1px;", ";z-index:0;}"], (props) => props.theme.palette["grey-200"], (props) => props.theme.variables["box-shadow-1"], (props) => props.isolated ? `background-color: ${props.theme.palette["grey-100"]}` : "");
|
|
10
|
+
const PageHeaderContainer = /* @__PURE__ */ styled.div.withConfig({
|
|
13
11
|
displayName: "PageHeaderstyles__PageHeaderContainer",
|
|
14
12
|
componentId: "sc-1a87wfx-1"
|
|
15
13
|
})(["width:100%;min-height:80px;padding:24px;display:flex;align-items:center;align-content:center;"]);
|
|
16
|
-
|
|
14
|
+
const PageHeaderDescription = /* @__PURE__ */ styled.div.withConfig({
|
|
17
15
|
displayName: "PageHeaderstyles__PageHeaderDescription",
|
|
18
16
|
componentId: "sc-1a87wfx-2"
|
|
19
|
-
})(["margin:0 24px;font-size:13px;line-height:18px;color:", ";"],
|
|
20
|
-
|
|
21
|
-
});
|
|
22
|
-
export var PageHeaderTabsWrapper = styled.div.withConfig({
|
|
17
|
+
})(["margin:0 24px;font-size:13px;line-height:18px;color:", ";"], (props) => props.theme.palette["grey-500"]);
|
|
18
|
+
const PageHeaderTabsWrapper = /* @__PURE__ */ styled.div.withConfig({
|
|
23
19
|
displayName: "PageHeaderstyles__PageHeaderTabsWrapper",
|
|
24
20
|
componentId: "sc-1a87wfx-3"
|
|
25
21
|
})(["padding:0 24px;&&& .ds-tabs{padding:0;}"]);
|
|
26
|
-
|
|
22
|
+
const PageHeaderBar = /* @__PURE__ */ styled.div.withConfig({
|
|
27
23
|
displayName: "PageHeaderstyles__PageHeaderBar",
|
|
28
24
|
componentId: "sc-1a87wfx-4"
|
|
29
|
-
})(["padding:12px 24px;border-top:1px solid ", ";position:relative;top:-1px;"],
|
|
30
|
-
|
|
31
|
-
});
|
|
32
|
-
export var PageHeaderMore = styled.div.withConfig({
|
|
25
|
+
})(["padding:12px 24px;border-top:1px solid ", ";position:relative;top:-1px;"], (props) => props.theme.palette["grey-100"]);
|
|
26
|
+
const PageHeaderMore = /* @__PURE__ */ styled.div.withConfig({
|
|
33
27
|
displayName: "PageHeaderstyles__PageHeaderMore",
|
|
34
28
|
componentId: "sc-1a87wfx-5"
|
|
35
29
|
})(["padding:0 24px;"]);
|
|
36
|
-
|
|
30
|
+
const PageHeaderClose = /* @__PURE__ */ styled.div.withConfig({
|
|
37
31
|
displayName: "PageHeaderstyles__PageHeaderClose",
|
|
38
32
|
componentId: "sc-1a87wfx-6"
|
|
39
|
-
})(["& div{margin-left:52px;display:flex;align-items:center;position:relative;&::before{content:'';position:absolute;width:1px;height:40px;left:-25px;background-color:", ";}}"],
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
33
|
+
})(["& div{margin-left:52px;display:flex;align-items:center;position:relative;&::before{content:'';position:absolute;width:1px;height:40px;left:-25px;background-color:", ";}}"], (props) => props.theme.palette["grey-300"]);
|
|
34
|
+
export {
|
|
35
|
+
MainContainer,
|
|
36
|
+
WrapperPageHeaderBack as PageHeaderBack,
|
|
37
|
+
PageHeaderBar,
|
|
38
|
+
WrapperPageHeaderClamp as PageHeaderClamp,
|
|
39
|
+
PageHeaderClose,
|
|
40
|
+
PageHeaderContainer,
|
|
41
|
+
PageHeaderDescription,
|
|
42
|
+
WrapperPageHeaderInlineEdit as PageHeaderInlineEdit,
|
|
43
|
+
PageHeaderMore,
|
|
44
|
+
WrapperPageHeaderRightSide as PageHeaderRightSide,
|
|
45
|
+
PageHeaderTabsWrapper,
|
|
46
|
+
PageHeaderTitle,
|
|
47
|
+
PageHeaderTooltipWraper
|
|
48
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { ChangeEvent, FocusEventHandler, KeyboardEventHandler, ReactNode } from 'react';
|
|
2
|
+
import { TooltipProps } from '@synerise/ds-tooltip';
|
|
3
3
|
export type PageHeaderProps = {
|
|
4
4
|
className?: string;
|
|
5
5
|
rightSide?: ReactNode;
|
package/dist/PageHeader.types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import {
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { PageHeaderProps } from '../PageHeader.types';
|
|
3
3
|
type PageHeaderBackProps = Pick<PageHeaderProps, 'goBackIcon' | 'onGoBack'>;
|
|
4
4
|
export declare const PageHeaderBack: ({ goBackIcon, onGoBack, }: PageHeaderBackProps) => React.JSX.Element;
|
|
5
5
|
export {};
|
|
@@ -1,20 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import Button from
|
|
3
|
-
import { theme } from
|
|
4
|
-
import Icon, { ArrowLeftM } from
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
type: "ghost",
|
|
17
|
-
mode: "single-icon",
|
|
18
|
-
onClick: onGoBack
|
|
19
|
-
}, backIcon));
|
|
20
|
-
};
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import Button from "@synerise/ds-button";
|
|
3
|
+
import { theme } from "@synerise/ds-core";
|
|
4
|
+
import Icon, { ArrowLeftM } from "@synerise/ds-icon";
|
|
5
|
+
import { WrapperPageHeaderBack } from "./PageHeaderBack.styles.js";
|
|
6
|
+
const PageHeaderBack = ({
|
|
7
|
+
goBackIcon,
|
|
8
|
+
onGoBack
|
|
9
|
+
}) => {
|
|
10
|
+
const backIcon = goBackIcon || /* @__PURE__ */ jsx(Icon, { className: "page-header__back", color: theme.palette["grey-600"], component: /* @__PURE__ */ jsx(ArrowLeftM, {}), size: 24 });
|
|
11
|
+
return /* @__PURE__ */ jsx(WrapperPageHeaderBack, { children: /* @__PURE__ */ jsx(Button, { type: "ghost", mode: "single-icon", onClick: onGoBack, children: backIcon }) });
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
PageHeaderBack
|
|
15
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const WrapperPageHeaderBack: import(
|
|
1
|
+
export declare const WrapperPageHeaderBack: import('styled-components').StyledComponent<"div", any, {}, never>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import styled from
|
|
2
|
-
|
|
1
|
+
import styled from "styled-components";
|
|
2
|
+
const WrapperPageHeaderBack = /* @__PURE__ */ styled.div.withConfig({
|
|
3
3
|
displayName: "PageHeaderBackstyles__WrapperPageHeaderBack",
|
|
4
4
|
componentId: "sc-107ccyu-0"
|
|
5
|
-
})(["margin-right:49px;display:flex;align-items:center;position:relative;&::after{content:'';position:absolute;width:1px;height:40px;right:-25px;background-color:", ";}&&{button{display:flex;align-items:center;padding:0 4px;}}"],
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
})(["margin-right:49px;display:flex;align-items:center;position:relative;&::after{content:'';position:absolute;width:1px;height:40px;right:-25px;background-color:", ";}&&{button{display:flex;align-items:center;padding:0 4px;}}"], (props) => props.theme.palette["grey-300"]);
|
|
6
|
+
export {
|
|
7
|
+
WrapperPageHeaderBack
|
|
8
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import {
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { PageHeaderProps } from '../PageHeader.types';
|
|
3
3
|
type PageHeaderClampProps = Pick<PageHeaderProps, 'tooltip' | 'children' | 'title' | 'tooltipIcon' | 'handleTooltipClick'>;
|
|
4
4
|
export declare const PageHeaderClamp: ({ tooltip, children, title, tooltipIcon, handleTooltipClick, }: PageHeaderClampProps) => React.JSX.Element;
|
|
5
5
|
export {};
|
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import Icon from
|
|
3
|
-
import Tooltip from
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import Icon from "@synerise/ds-icon";
|
|
3
|
+
import Tooltip from "@synerise/ds-tooltip";
|
|
4
|
+
import { WrapperPageHeaderClamp, PageHeaderTitle, PageHeaderTooltipWraper } from "./PageHeaderClamp.styles.js";
|
|
5
|
+
const PageHeaderClamp = ({
|
|
6
|
+
tooltip,
|
|
7
|
+
children,
|
|
8
|
+
title,
|
|
9
|
+
tooltipIcon,
|
|
10
|
+
handleTooltipClick
|
|
11
|
+
}) => /* @__PURE__ */ jsxs(WrapperPageHeaderClamp, { children: [
|
|
12
|
+
/* @__PURE__ */ jsx(PageHeaderTitle, { children: children || title }),
|
|
13
|
+
tooltip !== void 0 && tooltipIcon && /* @__PURE__ */ jsx(PageHeaderTooltipWraper, { children: /* @__PURE__ */ jsx(Tooltip, { ...tooltip, children: /* @__PURE__ */ jsx(Icon, { component: tooltipIcon, onClick: handleTooltipClick }) }) })
|
|
14
|
+
] });
|
|
15
|
+
export {
|
|
16
|
+
PageHeaderClamp
|
|
17
|
+
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const WrapperPageHeaderClamp: import(
|
|
2
|
-
export declare const PageHeaderTitle: import(
|
|
3
|
-
export declare const PageHeaderTooltipWraper: import(
|
|
1
|
+
export declare const WrapperPageHeaderClamp: import('styled-components').StyledComponent<"div", any, {}, never>;
|
|
2
|
+
export declare const PageHeaderTitle: import('styled-components').StyledComponent<"span", any, {}, never>;
|
|
3
|
+
export declare const PageHeaderTooltipWraper: import('styled-components').StyledComponent<"div", any, {}, never>;
|
|
@@ -1,20 +1,19 @@
|
|
|
1
|
-
import styled from
|
|
2
|
-
import { macro } from
|
|
3
|
-
|
|
1
|
+
import styled from "styled-components";
|
|
2
|
+
import { macro } from "@synerise/ds-typography";
|
|
3
|
+
const WrapperPageHeaderClamp = /* @__PURE__ */ styled.div.withConfig({
|
|
4
4
|
displayName: "PageHeaderClampstyles__WrapperPageHeaderClamp",
|
|
5
5
|
componentId: "sc-at80a6-0"
|
|
6
|
-
})(["", ";line-height:26px;display:flex;overflow:hidden;align-items:center;color:", ";"], macro.h600,
|
|
7
|
-
|
|
8
|
-
});
|
|
9
|
-
export var PageHeaderTitle = styled.span.withConfig({
|
|
6
|
+
})(["", ";line-height:26px;display:flex;overflow:hidden;align-items:center;color:", ";"], macro.h600, (props) => props.theme.palette["grey-800"]);
|
|
7
|
+
const PageHeaderTitle = /* @__PURE__ */ styled.span.withConfig({
|
|
10
8
|
displayName: "PageHeaderClampstyles__PageHeaderTitle",
|
|
11
9
|
componentId: "sc-at80a6-1"
|
|
12
10
|
})(["display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;"]);
|
|
13
|
-
|
|
11
|
+
const PageHeaderTooltipWraper = /* @__PURE__ */ styled.div.withConfig({
|
|
14
12
|
displayName: "PageHeaderClampstyles__PageHeaderTooltipWraper",
|
|
15
13
|
componentId: "sc-at80a6-2"
|
|
16
|
-
})([".ds-icon{margin-left:8px;svg{color:", ";fill:", ";}}"],
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
14
|
+
})([".ds-icon{margin-left:8px;svg{color:", ";fill:", ";}}"], (props) => props.theme.palette["grey-600"], (props) => props.theme.palette["grey-600"]);
|
|
15
|
+
export {
|
|
16
|
+
PageHeaderTitle,
|
|
17
|
+
PageHeaderTooltipWraper,
|
|
18
|
+
WrapperPageHeaderClamp
|
|
19
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { PageHeaderProps } from '../PageHeader.types';
|
|
3
3
|
type PageHeaderInlineEditProps = Required<Pick<PageHeaderProps, 'inlineEdit'>>;
|
|
4
4
|
export declare const PageHeaderInlineEdit: ({ inlineEdit, }: PageHeaderInlineEditProps) => React.JSX.Element;
|
|
5
5
|
export {};
|
|
@@ -1,23 +1,19 @@
|
|
|
1
|
-
import
|
|
2
|
-
import InlineEdit from
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
customIcon: inlineEdit.customIcon,
|
|
21
|
-
style: inlineEdit.style
|
|
22
|
-
}));
|
|
23
|
-
};
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import InlineEdit from "@synerise/ds-inline-edit/";
|
|
3
|
+
import { WrapperPageHeaderInlineEdit } from "./PageHeaderInlineEdit.styles.js";
|
|
4
|
+
const PageHeaderInlineEdit = ({
|
|
5
|
+
inlineEdit
|
|
6
|
+
}) => {
|
|
7
|
+
return /* @__PURE__ */ jsx(WrapperPageHeaderInlineEdit, { children: /* @__PURE__ */ jsx(InlineEdit, { input: {
|
|
8
|
+
name: inlineEdit.name,
|
|
9
|
+
value: inlineEdit.value,
|
|
10
|
+
maxLength: inlineEdit.maxLength,
|
|
11
|
+
onChange: inlineEdit.handleOnChange,
|
|
12
|
+
onBlur: inlineEdit.handleOnBlur,
|
|
13
|
+
onEnterPress: inlineEdit.handleOnEnterPress,
|
|
14
|
+
placeholder: inlineEdit.placeholder
|
|
15
|
+
}, size: inlineEdit.size, error: inlineEdit.error, disabled: inlineEdit.disabled, hideIcon: inlineEdit.hideIcon, customIcon: inlineEdit.customIcon, style: inlineEdit.style }) });
|
|
16
|
+
};
|
|
17
|
+
export {
|
|
18
|
+
PageHeaderInlineEdit
|
|
19
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const WrapperPageHeaderInlineEdit: import(
|
|
1
|
+
export declare const WrapperPageHeaderInlineEdit: import('styled-components').StyledComponent<"div", any, {}, never>;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import styled from
|
|
2
|
-
|
|
1
|
+
import styled from "styled-components";
|
|
2
|
+
const WrapperPageHeaderInlineEdit = /* @__PURE__ */ styled.div.withConfig({
|
|
3
3
|
displayName: "PageHeaderInlineEditstyles__WrapperPageHeaderInlineEdit",
|
|
4
4
|
componentId: "sc-13xsyjb-0"
|
|
5
|
-
})(["display:flex;margin-left:14px;"]);
|
|
5
|
+
})(["display:flex;margin-left:14px;"]);
|
|
6
|
+
export {
|
|
7
|
+
WrapperPageHeaderInlineEdit
|
|
8
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { PageHeaderProps } from '../PageHeader.types';
|
|
3
3
|
type PageHeaderRightSideProps = Pick<PageHeaderProps, 'rightSide' | 'onClose' | 'title' | 'tooltipIcon' | 'handleTooltipClick'>;
|
|
4
4
|
export declare const PageHeaderRightSide: ({ rightSide, onClose, }: PageHeaderRightSideProps) => React.JSX.Element;
|
|
5
5
|
export {};
|
|
@@ -1,19 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import Button from
|
|
3
|
-
import { theme } from
|
|
4
|
-
import Icon, { CloseM } from
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}))));
|
|
19
|
-
};
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import Button from "@synerise/ds-button";
|
|
3
|
+
import { theme } from "@synerise/ds-core";
|
|
4
|
+
import Icon, { CloseM } from "@synerise/ds-icon";
|
|
5
|
+
import { WrapperPageHeaderRightSide } from "./PageHeaderRightSide.styles.js";
|
|
6
|
+
const PageHeaderRightSide = ({
|
|
7
|
+
rightSide,
|
|
8
|
+
onClose
|
|
9
|
+
}) => {
|
|
10
|
+
return /* @__PURE__ */ jsx(WrapperPageHeaderRightSide, { children: /* @__PURE__ */ jsxs("div", { children: [
|
|
11
|
+
rightSide && rightSide,
|
|
12
|
+
onClose && /* @__PURE__ */ jsx(Button, { type: "ghost", mode: "single-icon", children: /* @__PURE__ */ jsx(Icon, { className: "page-header__close", color: theme.palette["grey-500"], component: /* @__PURE__ */ jsx(CloseM, {}), size: 32, onClick: onClose }) })
|
|
13
|
+
] }) });
|
|
14
|
+
};
|
|
15
|
+
export {
|
|
16
|
+
PageHeaderRightSide
|
|
17
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const WrapperPageHeaderRightSide: import(
|
|
1
|
+
export declare const WrapperPageHeaderRightSide: import('styled-components').StyledComponent<"div", any, {}, never>;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import styled from
|
|
2
|
-
|
|
1
|
+
import styled from "styled-components";
|
|
2
|
+
const WrapperPageHeaderRightSide = /* @__PURE__ */ styled.div.withConfig({
|
|
3
3
|
displayName: "PageHeaderRightSidestyles__WrapperPageHeaderRightSide",
|
|
4
4
|
componentId: "sc-hvehfk-0"
|
|
5
|
-
})(["display:flex;flex:1 auto;justify-content:flex-end;> div{display:flex;flex:1;justify-content:flex-end;align-items:center;flex-direction:row;> *{margin-left:8px;}}"]);
|
|
5
|
+
})(["display:flex;flex:1 auto;justify-content:flex-end;> div{display:flex;flex:1;justify-content:flex-end;align-items:center;flex-direction:row;> *{margin-left:8px;}}"]);
|
|
6
|
+
export {
|
|
7
|
+
WrapperPageHeaderRightSide
|
|
8
|
+
};
|
package/dist/index.js
CHANGED
package/dist/modules.d.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "@testing-library/jest-dom";
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-page-header",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.64",
|
|
4
4
|
"description": "Page-Header UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "synerise/synerise-design",
|
|
@@ -16,10 +16,10 @@
|
|
|
16
16
|
"access": "public"
|
|
17
17
|
},
|
|
18
18
|
"scripts": {
|
|
19
|
-
"build": "
|
|
19
|
+
"build": "vite build",
|
|
20
20
|
"build:css": "node ../../../scripts/style/less.js",
|
|
21
21
|
"build:js": "babel --delete-dir-on-start --root-mode upward src --out-dir dist --extensions '.js,.ts,.tsx'",
|
|
22
|
-
"build:watch": "
|
|
22
|
+
"build:watch": "vite build --watch",
|
|
23
23
|
"defs": "tsc --declaration --outDir dist/ --emitDeclarationOnly",
|
|
24
24
|
"pack:ci": "pnpm pack --pack-destination ../../storybook/storybook-static/static",
|
|
25
25
|
"prepublish": "pnpm run build",
|
|
@@ -35,11 +35,11 @@
|
|
|
35
35
|
],
|
|
36
36
|
"types": "dist/index.d.ts",
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@synerise/ds-button": "^1.5.
|
|
39
|
-
"@synerise/ds-icon": "^1.15.
|
|
40
|
-
"@synerise/ds-inline-edit": "^1.1.
|
|
41
|
-
"@synerise/ds-tooltip": "^1.4.
|
|
42
|
-
"@synerise/ds-typography": "^1.1.
|
|
38
|
+
"@synerise/ds-button": "^1.5.18",
|
|
39
|
+
"@synerise/ds-icon": "^1.15.1",
|
|
40
|
+
"@synerise/ds-inline-edit": "^1.1.24",
|
|
41
|
+
"@synerise/ds-tooltip": "^1.4.10",
|
|
42
|
+
"@synerise/ds-typography": "^1.1.13"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"@synerise/ds-core": "*",
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
"react": ">=16.9.0 <= 18.3.1",
|
|
48
48
|
"styled-components": "^5.3.3"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "e4ecca8944fc9b41c1b9d59c8bcad5e5e2013225"
|
|
51
51
|
}
|