@synerise/ds-panel 2.0.12 → 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-panel@2.1.0...@synerise/ds-panel@2.1.1) (2026-11-03)
7
+
8
+ **Note:** Version bump only for package @synerise/ds-panel
9
+
10
+
11
+
12
+
13
+
14
+ # [2.1.0](https://github.com/Synerise/synerise-design/compare/@synerise/ds-panel@2.0.12...@synerise/ds-panel@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.12](https://github.com/Synerise/synerise-design/compare/@synerise/ds-panel@2.0.11...@synerise/ds-panel@2.0.12) (2026-10-28)
7
26
 
8
27
  **Note:** Version bump only for package @synerise/ds-panel
package/CLAUDE.md CHANGED
@@ -30,7 +30,7 @@ export type { PanelProps } from './Panel.types';
30
30
  | Prop | Type | Default | Description |
31
31
  |------|------|---------|-------------|
32
32
  | `radius` | `number` | `8` | Border radius in pixels applied to the wrapper |
33
- | `greyBackground` | `boolean` | `undefined` | When `true`: applies a drop shadow (`box-shadow: 0 4px 12px 0 rgba(35,41,54,0.04)`); when `false`/absent: applies a `1px solid grey-200` border |
33
+ | `greyBackground` | `boolean` | `undefined` | When `true`: applies a drop shadow (`box-shadow: var(--ds-shadows-shadow-1)`); when `false`/absent: applies a `1px solid var(--ds-color-border-base-default)` border |
34
34
  | `label` | `React.ReactNode` | `undefined` | Label rendered above the panel via `FormFieldLabel` |
35
35
  | `tooltip` | `React.ReactNode` | `undefined` | Tooltip content shown next to the label (info icon trigger) |
36
36
  | `tooltipConfig` | `TooltipProps` | `undefined` | Extra config for the label tooltip |
@@ -45,7 +45,7 @@ export type { PanelProps } from './Panel.types';
45
45
  ```tsx
46
46
  import Panel from '@synerise/ds-panel';
47
47
 
48
- // Default — white background, 1px grey-200 border, 8px radius, 8px padding
48
+ // Default — base background, 1px base border, 8px radius, 8px padding
49
49
  <Panel>
50
50
  <ListItem>Item</ListItem>
51
51
  </Panel>
@@ -75,7 +75,7 @@ const ref = React.createRef<HTMLDivElement>();
75
75
  - The outer element is a plain `div` that receives `ref`, `className`, and `style`.
76
76
  - `PanelWrapper` extends `Box` from `@synerise/ds-flex-box`, so all its space/layout style props work. Note `p={8}` resolves through `theme.space`, which has no index 8, so it falls back to `8px`.
77
77
  - `Label` extends `FormFieldLabel` from `@synerise/ds-form-field` with `margin-bottom: 8px`.
78
- - Background is always `theme.palette.white`.
78
+ - Background is always `var(--ds-color-background-base-default)`.
79
79
  - `greyBackground` toggles between a border and a box-shadow — it does **not** change the background colour despite its name.
80
80
  - `$radius` is passed as a transient styled-components prop (prefixed `$`) to avoid forwarding to the DOM.
81
81
  - Default padding (`p={8}`) is set at the component level and can be overridden via `BoxProps`.
@@ -84,7 +84,7 @@ const ref = React.createRef<HTMLDivElement>();
84
84
 
85
85
  - `@synerise/ds-flex-box` (workspace) — provides `Box` and `BoxProps`
86
86
  - `@synerise/ds-form-field` (workspace) — provides `FormFieldLabel` and `BaseLabelProps`
87
- - `@synerise/ds-core` (peer) — theme provider required for `theme.palette` tokens
87
+ - `@synerise/ds-core` (peer) — `DSProvider` injects the `--ds-*` token custom properties
88
88
  - `react >=16.9.0 <= 18.3.1` (peer)
89
89
 
90
90
  ## Implementation notes
@@ -3,9 +3,9 @@ import { Box } from "@synerise/ds-flex-box";
3
3
  const PanelWrapper = /* @__PURE__ */ styled(Box).withConfig({
4
4
  displayName: "Panelstyles__PanelWrapper",
5
5
  componentId: "sc-xt9txn-0"
6
- })(["background-color:", ";", " border-radius:", "px;"], (props) => props.theme.palette.white, (props) => props.greyBackground ? `
7
- box-shadow: 0 4px 12px 0 rgba(35, 41, 54, 0.04);` : `
8
- border: solid 1px ${props.theme.palette["grey-200"]};`, (props) => props.$radius);
6
+ })(["background-color:var(--ds-color-background-base-default);", " border-radius:", "px;"], (props) => props.greyBackground ? `
7
+ box-shadow: var(--ds-shadows-shadow-1);` : `
8
+ border: solid 1px var(--ds-color-border-base-default);`, (props) => props.$radius);
9
9
  const PanelContainer = /* @__PURE__ */ styled.div.withConfig({
10
10
  displayName: "Panelstyles__PanelContainer",
11
11
  componentId: "sc-xt9txn-1"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-panel",
3
- "version": "2.0.12",
3
+ "version": "2.1.1",
4
4
  "description": "Panel UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "Synerise/synerise-design",
@@ -42,8 +42,8 @@
42
42
  ],
43
43
  "types": "dist/index.d.ts",
44
44
  "dependencies": {
45
- "@synerise/ds-flex-box": "^2.0.5",
46
- "@synerise/ds-form-field": "^2.0.11"
45
+ "@synerise/ds-flex-box": "^2.1.0",
46
+ "@synerise/ds-form-field": "^2.1.1"
47
47
  },
48
48
  "devDependencies": {
49
49
  "vitest": "4"
@@ -53,5 +53,5 @@
53
53
  "react": ">=16.9.0 <= 18.3.1",
54
54
  "styled-components": "^5.3.3"
55
55
  },
56
- "gitHead": "c356039703d8826bbbdb6dadcb18bb008fea8bc5"
56
+ "gitHead": "2d2a540b35fddf8855da45f0dec2f4612c6d87b6"
57
57
  }