@synerise/ds-banner 2.0.11 → 2.1.1

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 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.1](https://github.com/Synerise/synerise-design/compare/@synerise/ds-banner@2.1.0...@synerise/ds-banner@2.1.1) (2026-11-03)
7
+
8
+ **Note:** Version bump only for package @synerise/ds-banner
9
+
10
+
11
+
12
+
13
+
14
+ # [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)
15
+
16
+
17
+ ### Features
18
+
19
+ * integrate Token Studio design tokens across the design system ([aabb447](https://github.com/Synerise/synerise-design/commit/aabb447edfb2d0c85e3de1f07e809ef84083453b))
20
+
21
+
22
+
23
+
24
+
6
25
  ## [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)
7
26
 
8
27
  **Note:** Version bump only for package @synerise/ds-banner
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 `yellow-600` / `white` from `Banner.const.ts`. |
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` / `white`) come from `Banner.const.ts` and are spread before the caller's overrides, so callers can override individual colour props.
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.
@@ -1,3 +1,3 @@
1
1
  export declare const DEFAULT_SLIDE_SPEED = 5000;
2
2
  export declare const DEFAULT_STATUS_COLOR: string;
3
- export declare const DEFAULT_STATUS_TEXT_COLOR: string;
3
+ export declare const DEFAULT_STATUS_TEXT_COLOR = "var(--ds-color-text-base-onsolid)";
@@ -1,7 +1,7 @@
1
- import { theme } from "@synerise/ds-core";
1
+ import { resolveCustomColor } from "@synerise/ds-utils";
2
2
  const DEFAULT_SLIDE_SPEED = 5e3;
3
- const DEFAULT_STATUS_COLOR = theme.palette["yellow-600"];
4
- const DEFAULT_STATUS_TEXT_COLOR = theme.palette.white;
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,
@@ -8,7 +8,7 @@ export declare const BannerHeaderWrapper: import('styled-components').StyledComp
8
8
  export declare const BannerHeaderIcon: import('styled-components').StyledComponent<"div", any, {}, never>;
9
9
  export declare const BannerHeaderTitle: import('styled-components').StyledComponent<({ size, className, children, ellipsis, style, strong, ...dataAttributes }: import('@synerise/ds-utils').DataAttributes & {
10
10
  size?: import('@synerise/ds-typography').TextSize;
11
- ellipsis?: import('@synerise/ds-typography/dist/Ellipsis').EllipsisProps;
11
+ ellipsis?: import('@synerise/ds-typography/dist/Ellipsis.js').EllipsisProps;
12
12
  children?: import('react').ReactNode;
13
13
  className?: string;
14
14
  style?: import('react').CSSProperties;
@@ -29,26 +29,8 @@ export declare const BannerSlideContentWrapper: import('styled-components').Styl
29
29
  position: "left" | "right" | "main";
30
30
  }, never>;
31
31
  export declare const BannerSlideTitlePrefix: import('styled-components').StyledComponent<"div", any, {}, never>;
32
- export declare const BannerSlideTitleStatus: import('styled-components').StyledComponent<import('react').ForwardRefExoticComponent<{
33
- id?: string | number;
34
- name?: string;
35
- textColor?: string;
36
- color?: string;
37
- image?: string;
38
- shape?: import('@synerise/ds-tag').TagShape;
39
- removable?: boolean;
40
- className?: string;
41
- disabled?: boolean;
42
- onClick?: () => void;
43
- onRemove?: (tag: string | number) => void;
44
- prefixel?: React.ReactNode;
45
- suffixel?: React.ReactNode;
46
- texts?: import('@synerise/ds-tag').TagTexts;
47
- asPill?: boolean;
48
- dashed?: boolean;
49
- tooltipProps?: import('@synerise/ds-tooltip').TooltipProps;
50
- } & Omit<import('react').HTMLAttributes<HTMLDivElement>, "image" | "className" | "color" | "id" | "name" | "onClick" | "shape" | "disabled" | "textColor" | "removable" | "onRemove" | "prefixel" | "suffixel" | "texts" | "asPill" | "dashed" | "tooltipProps"> & import('@synerise/ds-utils').DataAttributes & import('react').RefAttributes<HTMLDivElement>>, any, {}, never>;
51
- export declare const BannerSlideTitleText: import('styled-components').StyledComponent<({ level, withoutMargin, children, className, ellipsis, ...rest }: import('@synerise/ds-typography/dist/Title.types').Props) => React.JSX.Element, any, {}, never>;
32
+ export declare const BannerSlideTitleStatus: import('styled-components').StyledComponent<import('react').ForwardRefExoticComponent<import('@synerise/ds-tag').TagProps & import('react').RefAttributes<HTMLDivElement>>, any, {}, never>;
33
+ export declare const BannerSlideTitleText: import('styled-components').StyledComponent<({ level, withoutMargin, children, className, ellipsis, ...rest }: import('@synerise/ds-typography/dist/Title.types.js').Props) => React.JSX.Element, any, {}, never>;
52
34
  export declare const BannerSlideDescription: import('styled-components').StyledComponent<"div", any, {}, never>;
53
35
  export declare const BannerSlideMediaWrapper: import('styled-components').StyledComponent<"div", any, {}, never>;
54
36
  export declare const BannerSlideButtons: import('styled-components').StyledComponent<"div", any, {}, never>;
@@ -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:", ";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;}"], (props) => props.theme.palette["grey-100"]);
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 ", ";"], props.theme.palette["grey-300"]), BannerCloseWrapper);
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:", ";"], (props) => props.theme.palette["grey-300"]);
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 ", ";"], (props) => props.theme.palette["grey-300"]);
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 ? props.theme.palette["blue-600"] : props.theme.palette["grey-300"], (props) => props.active ? props.theme.palette["blue-600"] : props.theme.palette["grey-400"]);
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.11",
3
+ "version": "2.1.1",
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.1.6",
46
- "@synerise/ds-carousel": "^2.0.2",
47
- "@synerise/ds-icon": "^2.2.3",
48
- "@synerise/ds-tag": "^2.0.11",
49
- "@synerise/ds-tooltip": "^2.0.11",
50
- "@synerise/ds-typography": "^2.0.11",
51
- "@synerise/ds-utils": "^2.2.2"
45
+ "@synerise/ds-button": "^2.2.1",
46
+ "@synerise/ds-carousel": "^2.1.0",
47
+ "@synerise/ds-icon": "^2.3.1",
48
+ "@synerise/ds-tag": "^2.1.1",
49
+ "@synerise/ds-tooltip": "^2.1.1",
50
+ "@synerise/ds-typography": "^2.1.1",
51
+ "@synerise/ds-utils": "^2.3.1"
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": "c356039703d8826bbbdb6dadcb18bb008fea8bc5"
62
+ "gitHead": "2d2a540b35fddf8855da45f0dec2f4612c6d87b6"
63
63
  }