@synerise/ds-panel 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 +4 -4
- package/dist/Panel.styles.js +3 -3
- package/package.json +4 -4
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-panel@2.0.12...@synerise/ds-panel@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-panel@2.0.11...@synerise/ds-panel@2.0.12) (2026-10-28)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @synerise/ds-panel
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
## [2.0.11](https://github.com/Synerise/synerise-design/compare/@synerise/ds-panel@2.0.10...@synerise/ds-panel@2.0.11) (2026-10-26)
|
|
7
26
|
|
|
8
27
|
|
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:
|
|
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 —
|
|
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 `
|
|
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) —
|
|
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
|
package/dist/Panel.styles.js
CHANGED
|
@@ -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:
|
|
7
|
-
box-shadow:
|
|
8
|
-
border: solid 1px
|
|
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
|
|
3
|
+
"version": "2.1.0",
|
|
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
|
|
46
|
-
"@synerise/ds-form-field": "^2.0
|
|
45
|
+
"@synerise/ds-flex-box": "^2.1.0",
|
|
46
|
+
"@synerise/ds-form-field": "^2.1.0"
|
|
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": "
|
|
56
|
+
"gitHead": "5c3d61e30289486d14c7d6becb682e2d4a08ce41"
|
|
57
57
|
}
|