@synerise/ds-page-header 2.0.11 → 2.1.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/CHANGELOG.md +19 -0
- package/CLAUDE.md +5 -5
- package/dist/PageHeader.styles.js +4 -4
- package/dist/PageHeaderBack/PageHeaderBack.js +1 -2
- package/dist/PageHeaderBack/PageHeaderBack.styles.js +1 -1
- package/dist/PageHeaderClamp/PageHeaderClamp.styles.js +2 -2
- package/dist/PageHeaderRightSide/PageHeaderRightSide.js +1 -2
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,25 @@
|
|
|
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
|
+
# [2.1.0](https://github.com/synerise/synerise-design/compare/@synerise/ds-page-header@2.0.12...@synerise/ds-page-header@2.1.0) (2026-10-29)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* integrate Token Studio design tokens across the design system ([aabb447](https://github.com/synerise/synerise-design/commit/aabb447edfb2d0c85e3de1f07e809ef84083453b))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [2.0.12](https://github.com/synerise/synerise-design/compare/@synerise/ds-page-header@2.0.11...@synerise/ds-page-header@2.0.12) (2026-10-28)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @synerise/ds-page-header
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
## [2.0.11](https://github.com/synerise/synerise-design/compare/@synerise/ds-page-header@2.0.10...@synerise/ds-page-header@2.0.11) (2026-10-26)
|
|
7
26
|
|
|
8
27
|
|
package/CLAUDE.md
CHANGED
|
@@ -49,7 +49,7 @@ src/
|
|
|
49
49
|
| `onGoBack` | `() => void` | — | When provided, shows a back button (ArrowLeftM) at the left edge |
|
|
50
50
|
| `goBackIcon` | `ReactNode` | — | Custom icon component to replace the default ArrowLeftM in the back button |
|
|
51
51
|
| `onClose` | `() => void` | — | When provided, shows a close button (CloseM) at the right edge |
|
|
52
|
-
| `isolated` | `boolean` | — | Adds a `
|
|
52
|
+
| `isolated` | `boolean` | — | Adds a `var(--ds-color-border-base-subtle)` bottom border overlay (visually separates content below) |
|
|
53
53
|
| `tooltip` | `TooltipProps` | — | Tooltip props spread onto `<Tooltip>` wrapping the `tooltipIcon` |
|
|
54
54
|
| `tooltipIcon` | `ReactNode` | — | Icon rendered inside the Tooltip; tooltip is only shown when **both** `tooltip` and `tooltipIcon` are provided |
|
|
55
55
|
| `handleTooltipClick` | `() => void` | — | Click handler wired to the tooltip icon |
|
|
@@ -115,10 +115,10 @@ import PageHeader from '@synerise/ds-page-header';
|
|
|
115
115
|
```
|
|
116
116
|
|
|
117
117
|
## Styling
|
|
118
|
-
- Uses styled-components with
|
|
119
|
-
- `MainContainer`
|
|
118
|
+
- Uses styled-components with `var(--ds-*)` custom properties
|
|
119
|
+
- `MainContainer` background is `var(--ds-page-header-container-bg)`
|
|
120
120
|
- Min height of the main row is `80px`; padding is `24px`
|
|
121
|
-
- `PageHeaderBack` renders a vertical divider via `::after` pseudo-element (`
|
|
121
|
+
- `PageHeaderBack` renders a vertical divider via `::after` pseudo-element (`var(--ds-page-header-navigation-back-separator-color)`, 40px tall)
|
|
122
122
|
- `PageHeaderRightSide` is `flex: 1 auto; justify-content: flex-end` — it grows to fill remaining horizontal space
|
|
123
123
|
- `PageHeaderClamp` uses `ds-typography`'s `macro.h600` mixin and truncates title text with `text-overflow: ellipsis`
|
|
124
124
|
- `PageHeader.styles.ts` re-exports styled components from sub-packages under their legacy names for backwards compatibility
|
|
@@ -129,7 +129,7 @@ import PageHeader from '@synerise/ds-page-header';
|
|
|
129
129
|
- `@synerise/ds-inline-edit` — inline editable title field
|
|
130
130
|
- `@synerise/ds-tooltip` — tooltip wrapping the tooltipIcon
|
|
131
131
|
- `@synerise/ds-typography` — `macro.h600` applied to the title clamp area
|
|
132
|
-
- `@synerise/ds-core` — `
|
|
132
|
+
- `@synerise/ds-core` (peer) — `DSProvider` injects the `--ds-*` token custom properties used by the styles
|
|
133
133
|
|
|
134
134
|
## Implementation notes
|
|
135
135
|
- `children` takes precedence over `title` inside PageHeaderClamp — both target the same slot (`children || title`)
|
|
@@ -6,7 +6,7 @@ import { WrapperPageHeaderRightSide } from "./PageHeaderRightSide/PageHeaderRigh
|
|
|
6
6
|
const MainContainer = /* @__PURE__ */ styled.div.withConfig({
|
|
7
7
|
displayName: "PageHeaderstyles__MainContainer",
|
|
8
8
|
componentId: "sc-1a87wfx-0"
|
|
9
|
-
})(["background-color
|
|
9
|
+
})(["background-color:var(--ds-page-header-container-bg);position:relative;border-bottom:1px solid var(--ds-color-border-base-default);box-shadow:var(--ds-page-header-container-shadow);&::before{content:'';position:absolute;bottom:0;width:100%;height:1px;", ";z-index:0;}"], (props) => props.isolated ? `background-color: var(--ds-color-border-base-subtle)` : "");
|
|
10
10
|
const PageHeaderContainer = /* @__PURE__ */ styled.div.withConfig({
|
|
11
11
|
displayName: "PageHeaderstyles__PageHeaderContainer",
|
|
12
12
|
componentId: "sc-1a87wfx-1"
|
|
@@ -14,7 +14,7 @@ const PageHeaderContainer = /* @__PURE__ */ styled.div.withConfig({
|
|
|
14
14
|
const PageHeaderDescription = /* @__PURE__ */ styled.div.withConfig({
|
|
15
15
|
displayName: "PageHeaderstyles__PageHeaderDescription",
|
|
16
16
|
componentId: "sc-1a87wfx-2"
|
|
17
|
-
})(["margin:0 24px;font-size:13px;line-height:18px;color:
|
|
17
|
+
})(["margin:0 24px;font-size:13px;line-height:18px;color:var(--ds-color-text-neutral-default);"]);
|
|
18
18
|
const PageHeaderTabsWrapper = /* @__PURE__ */ styled.div.withConfig({
|
|
19
19
|
displayName: "PageHeaderstyles__PageHeaderTabsWrapper",
|
|
20
20
|
componentId: "sc-1a87wfx-3"
|
|
@@ -22,7 +22,7 @@ const PageHeaderTabsWrapper = /* @__PURE__ */ styled.div.withConfig({
|
|
|
22
22
|
const PageHeaderBar = /* @__PURE__ */ styled.div.withConfig({
|
|
23
23
|
displayName: "PageHeaderstyles__PageHeaderBar",
|
|
24
24
|
componentId: "sc-1a87wfx-4"
|
|
25
|
-
})(["padding:12px 24px;border-top:1px solid
|
|
25
|
+
})(["padding:12px 24px;border-top:1px solid var(--ds-color-border-base-subtle);position:relative;top:-1px;"]);
|
|
26
26
|
const PageHeaderMore = /* @__PURE__ */ styled.div.withConfig({
|
|
27
27
|
displayName: "PageHeaderstyles__PageHeaderMore",
|
|
28
28
|
componentId: "sc-1a87wfx-5"
|
|
@@ -30,7 +30,7 @@ const PageHeaderMore = /* @__PURE__ */ styled.div.withConfig({
|
|
|
30
30
|
const PageHeaderClose = /* @__PURE__ */ styled.div.withConfig({
|
|
31
31
|
displayName: "PageHeaderstyles__PageHeaderClose",
|
|
32
32
|
componentId: "sc-1a87wfx-6"
|
|
33
|
-
})(["& div{margin-left:52px;display:flex;align-items:center;position:relative;&::before{content:'';position:absolute;width:1px;height:40px;left:-25px;background-color:
|
|
33
|
+
})(["& div{margin-left:52px;display:flex;align-items:center;position:relative;&::before{content:'';position:absolute;width:1px;height:40px;left:-25px;background-color:var(--ds-page-header-navigation-back-separator-color);}}"]);
|
|
34
34
|
export {
|
|
35
35
|
MainContainer,
|
|
36
36
|
WrapperPageHeaderBack as PageHeaderBack,
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import Button from "@synerise/ds-button";
|
|
3
|
-
import { theme } from "@synerise/ds-core";
|
|
4
3
|
import Icon, { ArrowLeftM } from "@synerise/ds-icon";
|
|
5
4
|
import { WrapperPageHeaderBack } from "./PageHeaderBack.styles.js";
|
|
6
5
|
const PageHeaderBack = ({
|
|
7
6
|
goBackIcon,
|
|
8
7
|
onGoBack
|
|
9
8
|
}) => {
|
|
10
|
-
const backIcon = goBackIcon || /* @__PURE__ */ jsx(Icon, { className: "page-header__back", color:
|
|
9
|
+
const backIcon = goBackIcon || /* @__PURE__ */ jsx(Icon, { className: "page-header__back", color: "var(--ds-color-icon-base-default)", component: /* @__PURE__ */ jsx(ArrowLeftM, {}), size: 24 });
|
|
11
10
|
return /* @__PURE__ */ jsx(WrapperPageHeaderBack, { children: /* @__PURE__ */ jsx(Button, { type: "ghost", mode: "single-icon", onClick: onGoBack, children: backIcon }) });
|
|
12
11
|
};
|
|
13
12
|
export {
|
|
@@ -2,7 +2,7 @@ import styled from "styled-components";
|
|
|
2
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:
|
|
5
|
+
})(["margin-right:49px;display:flex;align-items:center;position:relative;&::after{content:'';position:absolute;width:1px;height:40px;right:-25px;background-color:var(--ds-page-header-navigation-back-separator-color);}&&{button{display:flex;align-items:center;padding:0 4px;}}"]);
|
|
6
6
|
export {
|
|
7
7
|
WrapperPageHeaderBack
|
|
8
8
|
};
|
|
@@ -3,7 +3,7 @@ import { macro } from "@synerise/ds-typography";
|
|
|
3
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:
|
|
6
|
+
})(["", ";line-height:26px;display:flex;overflow:hidden;align-items:center;color:var(--ds-page-header-navigation-label-color);"], macro.h600);
|
|
7
7
|
const PageHeaderTitle = /* @__PURE__ */ styled.span.withConfig({
|
|
8
8
|
displayName: "PageHeaderClampstyles__PageHeaderTitle",
|
|
9
9
|
componentId: "sc-at80a6-1"
|
|
@@ -11,7 +11,7 @@ const PageHeaderTitle = /* @__PURE__ */ styled.span.withConfig({
|
|
|
11
11
|
const PageHeaderTooltipWraper = /* @__PURE__ */ styled.div.withConfig({
|
|
12
12
|
displayName: "PageHeaderClampstyles__PageHeaderTooltipWraper",
|
|
13
13
|
componentId: "sc-at80a6-2"
|
|
14
|
-
})([".ds-icon{margin-left:8px;
|
|
14
|
+
})([".ds-icon{margin-left:8px;color:var(--ds-color-icon-base-default);}"]);
|
|
15
15
|
export {
|
|
16
16
|
PageHeaderTitle,
|
|
17
17
|
PageHeaderTooltipWraper,
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import Button from "@synerise/ds-button";
|
|
3
|
-
import { theme } from "@synerise/ds-core";
|
|
4
3
|
import Icon, { CloseM } from "@synerise/ds-icon";
|
|
5
4
|
import { WrapperPageHeaderRightSide } from "./PageHeaderRightSide.styles.js";
|
|
6
5
|
const PageHeaderRightSide = ({
|
|
@@ -9,7 +8,7 @@ const PageHeaderRightSide = ({
|
|
|
9
8
|
}) => {
|
|
10
9
|
return /* @__PURE__ */ jsx(WrapperPageHeaderRightSide, { children: /* @__PURE__ */ jsxs("div", { children: [
|
|
11
10
|
rightSide && rightSide,
|
|
12
|
-
onClose && /* @__PURE__ */ jsx(Button, { type: "ghost", mode: "single-icon", children: /* @__PURE__ */ jsx(Icon, { className: "page-header__close", color:
|
|
11
|
+
onClose && /* @__PURE__ */ jsx(Button, { type: "ghost", mode: "single-icon", children: /* @__PURE__ */ jsx(Icon, { className: "page-header__close", color: "var(--ds-color-icon-base-subtle)", component: /* @__PURE__ */ jsx(CloseM, {}), size: 32, onClick: onClose }) })
|
|
13
12
|
] }) });
|
|
14
13
|
};
|
|
15
14
|
export {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-page-header",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "Page-Header UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "synerise/synerise-design",
|
|
@@ -42,11 +42,11 @@
|
|
|
42
42
|
],
|
|
43
43
|
"types": "dist/index.d.ts",
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@synerise/ds-button": "^2.
|
|
46
|
-
"@synerise/ds-icon": "^2.
|
|
47
|
-
"@synerise/ds-inline-edit": "^2.0
|
|
48
|
-
"@synerise/ds-tooltip": "^2.0
|
|
49
|
-
"@synerise/ds-typography": "^2.0
|
|
45
|
+
"@synerise/ds-button": "^2.2.0",
|
|
46
|
+
"@synerise/ds-icon": "^2.3.0",
|
|
47
|
+
"@synerise/ds-inline-edit": "^2.1.0",
|
|
48
|
+
"@synerise/ds-tooltip": "^2.1.0",
|
|
49
|
+
"@synerise/ds-typography": "^2.1.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"vitest": "4"
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
"react": ">=16.9.0 <= 18.3.1",
|
|
57
57
|
"styled-components": "^5.3.3"
|
|
58
58
|
},
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "5c3d61e30289486d14c7d6becb682e2d4a08ce41"
|
|
60
60
|
}
|