@synerise/ds-banner 2.0.10 → 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 +2 -2
- package/dist/Banner.const.d.ts +1 -1
- package/dist/Banner.const.js +3 -3
- package/dist/Banner.styles.js +5 -5
- package/package.json +9 -9
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-banner@2.0.11...@synerise/ds-banner@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.11](https://github.com/Synerise/synerise-design/compare/@synerise/ds-banner@2.0.10...@synerise/ds-banner@2.0.11) (2026-10-28)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @synerise/ds-banner
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
## [2.0.10](https://github.com/Synerise/synerise-design/compare/@synerise/ds-banner@2.0.9...@synerise/ds-banner@2.0.10) (2026-10-26)
|
|
7
26
|
|
|
8
27
|
|
package/CLAUDE.md
CHANGED
|
@@ -68,7 +68,7 @@ Each slide (`BannerSlideProps`) has three layout slots: `mainContent`, `leftSide
|
|
|
68
68
|
|------|------|---------|-------------|
|
|
69
69
|
| `title` | `ReactNode` | `undefined` | Slide heading (rendered as `<Title level={1}>`). |
|
|
70
70
|
| `titlePrefix` | `ReactNode` | `undefined` | Icon or avatar shown left of the title text. |
|
|
71
|
-
| `titleStatus` | `Pick<TagProps, 'textColor' \| 'color' \| 'name'>` | `undefined` | Status pill tag above the title. Falls back to
|
|
71
|
+
| `titleStatus` | `Pick<TagProps, 'textColor' \| 'color' \| 'name'>` | `undefined` | Status pill tag above the title. Falls back to `--ds-color-custom-yellow-600` / `--ds-color-text-base-onsolid` from `Banner.const.ts`. |
|
|
72
72
|
| `description` | `ReactNode` | `undefined` | Body text below the title. |
|
|
73
73
|
| `buttons` | `ReactNode` | `undefined` | Action buttons rendered below description (wrapped in flex row). |
|
|
74
74
|
|
|
@@ -150,4 +150,4 @@ Merges react-intl formatted defaults (`DS.BANNER.EXPAND`, `DS.BANNER.COLLAPSE`,
|
|
|
150
150
|
- **Slide keys** — slides and counter dots are keyed by `slide.id`, falling back to the slide's index. Pass an `id` per slide if slides can be reordered.
|
|
151
151
|
- **Carousel CSS**: `ds-carousel` ships its own styling; `Banner.styles.ts` adds the layout tweaks via ds-carousel's `.ds-carousel` / `.ds-carousel-track` class hooks (no LESS side-effect import anymore).
|
|
152
152
|
- `BannerSlide` memoizes each content area (`useMemo`) keyed to the content prop; position (`left | right | main`) and `hasMainContent` flag control flex-basis (240px fixed) vs flex-grow (1).
|
|
153
|
-
- `titleStatus` defaults for colour (`yellow-600`
|
|
153
|
+
- `titleStatus` defaults for colour (`yellow-600` resolved through `resolveCustomColor`, plus `--ds-color-text-base-onsolid`) come from `Banner.const.ts`; `Tag` takes raw CSS, so the name is resolved there and are spread before the caller's overrides, so callers can override individual colour props.
|
package/dist/Banner.const.d.ts
CHANGED
package/dist/Banner.const.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { resolveCustomColor } from "@synerise/ds-utils";
|
|
2
2
|
const DEFAULT_SLIDE_SPEED = 5e3;
|
|
3
|
-
const DEFAULT_STATUS_COLOR =
|
|
4
|
-
const DEFAULT_STATUS_TEXT_COLOR =
|
|
3
|
+
const DEFAULT_STATUS_COLOR = resolveCustomColor("yellow-600", "var(--ds-color-background-warning-solidhover)");
|
|
4
|
+
const DEFAULT_STATUS_TEXT_COLOR = "var(--ds-color-text-base-onsolid)";
|
|
5
5
|
export {
|
|
6
6
|
DEFAULT_SLIDE_SPEED,
|
|
7
7
|
DEFAULT_STATUS_COLOR,
|
package/dist/Banner.styles.js
CHANGED
|
@@ -5,7 +5,7 @@ import { Text, Title } from "@synerise/ds-typography";
|
|
|
5
5
|
const BannerWrapper = /* @__PURE__ */ styled.div.withConfig({
|
|
6
6
|
displayName: "Bannerstyles__BannerWrapper",
|
|
7
7
|
componentId: "sc-1rovna0-0"
|
|
8
|
-
})(["width:100%;background:
|
|
8
|
+
})(["width:100%;background:var(--ds-color-background-base-muted);position:relative;border-radius:3px;overflow:hidden;.ds-carousel{min-width:100%;flex:1 0 100%;}.ds-carousel .ds-carousel-track{display:flex;align-items:center;}"]);
|
|
9
9
|
const BannerCloseWrapper = /* @__PURE__ */ styled.div.withConfig({
|
|
10
10
|
displayName: "Bannerstyles__BannerCloseWrapper",
|
|
11
11
|
componentId: "sc-1rovna0-1"
|
|
@@ -13,7 +13,7 @@ const BannerCloseWrapper = /* @__PURE__ */ styled.div.withConfig({
|
|
|
13
13
|
const BannerHeaderWrapper = /* @__PURE__ */ styled.div.withConfig({
|
|
14
14
|
displayName: "Bannerstyles__BannerHeaderWrapper",
|
|
15
15
|
componentId: "sc-1rovna0-2"
|
|
16
|
-
})(["display:flex;gap:16px;align-items:center;padding:8px 16px;", " ", "{position:static;}"], (props) => props.isExpanded && css(["border-bottom:solid 1px
|
|
16
|
+
})(["display:flex;gap:16px;align-items:center;padding:8px 16px;", " ", "{position:static;}"], (props) => props.isExpanded && css(["border-bottom:solid 1px var(--ds-color-border-base-strong);"]), BannerCloseWrapper);
|
|
17
17
|
const BannerHeaderIcon = /* @__PURE__ */ styled.div.withConfig({
|
|
18
18
|
displayName: "Bannerstyles__BannerHeaderIcon",
|
|
19
19
|
componentId: "sc-1rovna0-3"
|
|
@@ -29,7 +29,7 @@ const BannerHeaderToggle = /* @__PURE__ */ styled.div.withConfig({
|
|
|
29
29
|
const BannerDivider = /* @__PURE__ */ styled.div.withConfig({
|
|
30
30
|
displayName: "Bannerstyles__BannerDivider",
|
|
31
31
|
componentId: "sc-1rovna0-6"
|
|
32
|
-
})(["width:1px;height:32px;background:
|
|
32
|
+
})(["width:1px;height:32px;background:var(--ds-color-border-base-strong);"]);
|
|
33
33
|
const BannerSlides = /* @__PURE__ */ styled(Carousel).withConfig({
|
|
34
34
|
displayName: "Bannerstyles__BannerSlides",
|
|
35
35
|
componentId: "sc-1rovna0-7"
|
|
@@ -86,11 +86,11 @@ const BannerSlideButtons = /* @__PURE__ */ styled.div.withConfig({
|
|
|
86
86
|
const BannerCounterWrapper = /* @__PURE__ */ styled.div.withConfig({
|
|
87
87
|
displayName: "Bannerstyles__BannerCounterWrapper",
|
|
88
88
|
componentId: "sc-1rovna0-19"
|
|
89
|
-
})(["padding:4px;display:flex;align-items:center;justify-content:center;gap:8px;border-top:solid 1px
|
|
89
|
+
})(["padding:4px;display:flex;align-items:center;justify-content:center;gap:8px;border-top:solid 1px var(--ds-color-border-base-strong);"]);
|
|
90
90
|
const BannerCounterDot = /* @__PURE__ */ styled.div.withConfig({
|
|
91
91
|
displayName: "Bannerstyles__BannerCounterDot",
|
|
92
92
|
componentId: "sc-1rovna0-20"
|
|
93
|
-
})(["display:flex;width:24px;height:32px;cursor:pointer;align-items:center;&:after{content:'';transition:background-color 0.2s ease-in-out;background:", ";height:4px;width:100%;border-radius:2px;display:block;}&:hover{&:after{background:", ";}}"], (props) => props.active ?
|
|
93
|
+
})(["display:flex;width:24px;height:32px;cursor:pointer;align-items:center;&:after{content:'';transition:background-color 0.2s ease-in-out;background:", ";height:4px;width:100%;border-radius:2px;display:block;}&:hover{&:after{background:", ";}}"], (props) => props.active ? "var(--ds-color-background-brand-solid)" : "var(--ds-color-border-base-strong)", (props) => props.active ? "var(--ds-color-background-brand-solid)" : "var(--ds-color-background-base-strong)");
|
|
94
94
|
export {
|
|
95
95
|
BannerCloseWrapper,
|
|
96
96
|
BannerCounterDot,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-banner",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "Banner UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "Synerise/synerise-design",
|
|
@@ -42,13 +42,13 @@
|
|
|
42
42
|
],
|
|
43
43
|
"types": "dist/index.d.ts",
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@synerise/ds-button": "^2.
|
|
46
|
-
"@synerise/ds-carousel": "^2.0
|
|
47
|
-
"@synerise/ds-icon": "^2.
|
|
48
|
-
"@synerise/ds-tag": "^2.0
|
|
49
|
-
"@synerise/ds-tooltip": "^2.0
|
|
50
|
-
"@synerise/ds-typography": "^2.0
|
|
51
|
-
"@synerise/ds-utils": "^2.
|
|
45
|
+
"@synerise/ds-button": "^2.2.0",
|
|
46
|
+
"@synerise/ds-carousel": "^2.1.0",
|
|
47
|
+
"@synerise/ds-icon": "^2.3.0",
|
|
48
|
+
"@synerise/ds-tag": "^2.1.0",
|
|
49
|
+
"@synerise/ds-tooltip": "^2.1.0",
|
|
50
|
+
"@synerise/ds-typography": "^2.1.0",
|
|
51
|
+
"@synerise/ds-utils": "^2.3.0"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"vitest": "4"
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"react-intl": ">= 3.12.0 <= 6.8",
|
|
60
60
|
"styled-components": "^5.3.3"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "5c3d61e30289486d14c7d6becb682e2d4a08ce41"
|
|
63
63
|
}
|