@synerise/ds-panel 2.0.10 → 2.0.11
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 +11 -0
- package/CLAUDE.md +2 -2
- package/README.md +1 -1
- package/dist/Panel.styles.d.ts +112 -2
- package/package.json +8 -6
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
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.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
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* drop vitest peer dependency and bump vulnerable runtime deps ([2467d36](https://github.com/Synerise/synerise-design/commit/2467d3606aa97141a3a2d80c3ef396e78bee285c))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [2.0.10](https://github.com/Synerise/synerise-design/compare/@synerise/ds-panel@2.0.9...@synerise/ds-panel@2.0.10) (2026-10-22)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @synerise/ds-panel
|
package/CLAUDE.md
CHANGED
|
@@ -38,7 +38,7 @@ export type { PanelProps } from './Panel.types';
|
|
|
38
38
|
| `className` | `string` | `undefined` | CSS class applied to the outer wrapper div |
|
|
39
39
|
| `style` | `React.CSSProperties` | `undefined` | Inline styles applied to the outer wrapper div |
|
|
40
40
|
| `ref` | `React.Ref<HTMLDivElement>` | — | Forwarded to the outer wrapper div |
|
|
41
|
-
| _(all `BoxProps`)_ | — | — | Space, layout, and color props from `@
|
|
41
|
+
| _(all `BoxProps`)_ | — | — | Space, layout, and color props from `@synerise/ds-flex-box` (e.g. `p`, `m`, `width`, `display`, `alignItems`, …); `p` defaults to `8` via `DEFAULT_PADDING`. Note: `label` is omitted from `BoxProps` since `BaseLabelProps` provides it. |
|
|
42
42
|
|
|
43
43
|
## Usage patterns
|
|
44
44
|
|
|
@@ -73,7 +73,7 @@ const ref = React.createRef<HTMLDivElement>();
|
|
|
73
73
|
## Styling
|
|
74
74
|
|
|
75
75
|
- The outer element is a plain `div` that receives `ref`, `className`, and `style`.
|
|
76
|
-
- `PanelWrapper` extends `Box` from `@synerise/ds-flex-box
|
|
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
78
|
- Background is always `theme.palette.white`.
|
|
79
79
|
- `greyBackground` toggles between a border and a box-shadow — it does **not** change the background colour despite its name.
|
package/README.md
CHANGED
|
@@ -43,4 +43,4 @@ import Panel from '@synerise/ds-panel'
|
|
|
43
43
|
|
|
44
44
|
The component uses `forwardRef` — pass a `ref` to access the outer `div` element.
|
|
45
45
|
|
|
46
|
-
**Note:** Panel also accepts all `BoxProps` from `@synerise/ds-flex-box
|
|
46
|
+
**Note:** Panel also accepts all `BoxProps` from `@synerise/ds-flex-box`, including:
|
package/dist/Panel.styles.d.ts
CHANGED
|
@@ -1,5 +1,115 @@
|
|
|
1
|
-
export declare const PanelWrapper: import('styled-components').StyledComponent<
|
|
1
|
+
export declare const PanelWrapper: import('styled-components').StyledComponent<"div", any, {
|
|
2
|
+
m?: string | number | readonly (string | number | null | undefined)[];
|
|
3
|
+
margin?: string | number | readonly (string | number | null | undefined)[];
|
|
4
|
+
mt?: string | number | readonly (string | number | null | undefined)[];
|
|
5
|
+
marginTop?: string | number | readonly (string | number | null | undefined)[];
|
|
6
|
+
mr?: string | number | readonly (string | number | null | undefined)[];
|
|
7
|
+
marginRight?: string | number | readonly (string | number | null | undefined)[];
|
|
8
|
+
mb?: string | number | readonly (string | number | null | undefined)[];
|
|
9
|
+
marginBottom?: string | number | readonly (string | number | null | undefined)[];
|
|
10
|
+
ml?: string | number | readonly (string | number | null | undefined)[];
|
|
11
|
+
marginLeft?: string | number | readonly (string | number | null | undefined)[];
|
|
12
|
+
mx?: string | number | readonly (string | number | null | undefined)[];
|
|
13
|
+
marginX?: string | number | readonly (string | number | null | undefined)[];
|
|
14
|
+
my?: string | number | readonly (string | number | null | undefined)[];
|
|
15
|
+
marginY?: string | number | readonly (string | number | null | undefined)[];
|
|
16
|
+
p?: string | number | readonly (string | number | null | undefined)[];
|
|
17
|
+
padding?: string | number | readonly (string | number | null | undefined)[];
|
|
18
|
+
pt?: string | number | readonly (string | number | null | undefined)[];
|
|
19
|
+
paddingTop?: string | number | readonly (string | number | null | undefined)[];
|
|
20
|
+
pr?: string | number | readonly (string | number | null | undefined)[];
|
|
21
|
+
paddingRight?: string | number | readonly (string | number | null | undefined)[];
|
|
22
|
+
pb?: string | number | readonly (string | number | null | undefined)[];
|
|
23
|
+
paddingBottom?: string | number | readonly (string | number | null | undefined)[];
|
|
24
|
+
pl?: string | number | readonly (string | number | null | undefined)[];
|
|
25
|
+
paddingLeft?: string | number | readonly (string | number | null | undefined)[];
|
|
26
|
+
px?: string | number | readonly (string | number | null | undefined)[];
|
|
27
|
+
paddingX?: string | number | readonly (string | number | null | undefined)[];
|
|
28
|
+
py?: string | number | readonly (string | number | null | undefined)[];
|
|
29
|
+
paddingY?: string | number | readonly (string | number | null | undefined)[];
|
|
30
|
+
} & {
|
|
31
|
+
width?: string | number | readonly (string | number | null | undefined)[];
|
|
32
|
+
height?: string | number | readonly (string | number | null | undefined)[];
|
|
33
|
+
minWidth?: string | number | readonly (string | number | null | undefined)[];
|
|
34
|
+
maxWidth?: string | number | readonly (string | number | null | undefined)[];
|
|
35
|
+
minHeight?: string | number | readonly (string | number | null | undefined)[];
|
|
36
|
+
maxHeight?: string | number | readonly (string | number | null | undefined)[];
|
|
37
|
+
} & {
|
|
38
|
+
display?: ("flex" | (string & {}) | "grid" | "none" | "block" | "inline-block" | "inline-flex") | readonly (("flex" | (string & {}) | "grid" | "none" | "block" | "inline-block" | "inline-flex") | null | undefined)[];
|
|
39
|
+
overflow?: ("clip" | "hidden" | (string & {}) | "auto" | "visible" | "scroll") | readonly (("clip" | "hidden" | (string & {}) | "auto" | "visible" | "scroll") | null | undefined)[];
|
|
40
|
+
overflowX?: ("clip" | "hidden" | (string & {}) | "auto" | "visible" | "scroll") | readonly (("clip" | "hidden" | (string & {}) | "auto" | "visible" | "scroll") | null | undefined)[];
|
|
41
|
+
overflowY?: ("clip" | "hidden" | (string & {}) | "auto" | "visible" | "scroll") | readonly (("clip" | "hidden" | (string & {}) | "auto" | "visible" | "scroll") | null | undefined)[];
|
|
42
|
+
} & {
|
|
43
|
+
alignItems?: ("center" | "end" | "start" | (string & {}) | "baseline" | "flex-start" | "flex-end" | "stretch" | "normal") | readonly (("center" | "end" | "start" | (string & {}) | "baseline" | "flex-start" | "flex-end" | "stretch" | "normal") | null | undefined)[];
|
|
44
|
+
justifyContent?: ("center" | "end" | "start" | (string & {}) | "flex-start" | "flex-end" | "normal" | "space-between" | "space-around" | "space-evenly") | readonly (("center" | "end" | "start" | (string & {}) | "flex-start" | "flex-end" | "normal" | "space-between" | "space-around" | "space-evenly") | null | undefined)[];
|
|
45
|
+
flexDirection?: ((string & {}) | "row" | "column" | "row-reverse" | "column-reverse") | readonly (((string & {}) | "row" | "column" | "row-reverse" | "column-reverse") | null | undefined)[];
|
|
46
|
+
flexWrap?: ("wrap" | (string & {}) | "nowrap" | "wrap-reverse") | readonly (("wrap" | (string & {}) | "nowrap" | "wrap-reverse") | null | undefined)[];
|
|
47
|
+
flex?: string | number | readonly (string | number | null | undefined)[];
|
|
48
|
+
alignSelf?: ("center" | "end" | "start" | (string & {}) | "auto" | "baseline" | "flex-start" | "flex-end" | "stretch") | readonly (("center" | "end" | "start" | (string & {}) | "auto" | "baseline" | "flex-start" | "flex-end" | "stretch") | null | undefined)[];
|
|
49
|
+
} & {
|
|
50
|
+
color?: string;
|
|
51
|
+
backgroundColor?: string | readonly (string | null | undefined)[];
|
|
52
|
+
opacity?: string | number | readonly (string | number | null | undefined)[];
|
|
53
|
+
fontSize?: string | number | readonly (string | number | null | undefined)[];
|
|
54
|
+
fontWeight?: string | number | readonly (string | number | null | undefined)[];
|
|
55
|
+
textAlign?: ("center" | "end" | "start" | (string & {}) | "left" | "right" | "justify") | readonly (("center" | "end" | "start" | (string & {}) | "left" | "right" | "justify") | null | undefined)[];
|
|
56
|
+
} & {
|
|
2
57
|
$radius: number;
|
|
3
58
|
greyBackground?: boolean;
|
|
4
|
-
},
|
|
59
|
+
}, keyof {
|
|
60
|
+
m?: string | number | readonly (string | number | null | undefined)[];
|
|
61
|
+
margin?: string | number | readonly (string | number | null | undefined)[];
|
|
62
|
+
mt?: string | number | readonly (string | number | null | undefined)[];
|
|
63
|
+
marginTop?: string | number | readonly (string | number | null | undefined)[];
|
|
64
|
+
mr?: string | number | readonly (string | number | null | undefined)[];
|
|
65
|
+
marginRight?: string | number | readonly (string | number | null | undefined)[];
|
|
66
|
+
mb?: string | number | readonly (string | number | null | undefined)[];
|
|
67
|
+
marginBottom?: string | number | readonly (string | number | null | undefined)[];
|
|
68
|
+
ml?: string | number | readonly (string | number | null | undefined)[];
|
|
69
|
+
marginLeft?: string | number | readonly (string | number | null | undefined)[];
|
|
70
|
+
mx?: string | number | readonly (string | number | null | undefined)[];
|
|
71
|
+
marginX?: string | number | readonly (string | number | null | undefined)[];
|
|
72
|
+
my?: string | number | readonly (string | number | null | undefined)[];
|
|
73
|
+
marginY?: string | number | readonly (string | number | null | undefined)[];
|
|
74
|
+
p?: string | number | readonly (string | number | null | undefined)[];
|
|
75
|
+
padding?: string | number | readonly (string | number | null | undefined)[];
|
|
76
|
+
pt?: string | number | readonly (string | number | null | undefined)[];
|
|
77
|
+
paddingTop?: string | number | readonly (string | number | null | undefined)[];
|
|
78
|
+
pr?: string | number | readonly (string | number | null | undefined)[];
|
|
79
|
+
paddingRight?: string | number | readonly (string | number | null | undefined)[];
|
|
80
|
+
pb?: string | number | readonly (string | number | null | undefined)[];
|
|
81
|
+
paddingBottom?: string | number | readonly (string | number | null | undefined)[];
|
|
82
|
+
pl?: string | number | readonly (string | number | null | undefined)[];
|
|
83
|
+
paddingLeft?: string | number | readonly (string | number | null | undefined)[];
|
|
84
|
+
px?: string | number | readonly (string | number | null | undefined)[];
|
|
85
|
+
paddingX?: string | number | readonly (string | number | null | undefined)[];
|
|
86
|
+
py?: string | number | readonly (string | number | null | undefined)[];
|
|
87
|
+
paddingY?: string | number | readonly (string | number | null | undefined)[];
|
|
88
|
+
} | keyof {
|
|
89
|
+
width?: string | number | readonly (string | number | null | undefined)[];
|
|
90
|
+
height?: string | number | readonly (string | number | null | undefined)[];
|
|
91
|
+
minWidth?: string | number | readonly (string | number | null | undefined)[];
|
|
92
|
+
maxWidth?: string | number | readonly (string | number | null | undefined)[];
|
|
93
|
+
minHeight?: string | number | readonly (string | number | null | undefined)[];
|
|
94
|
+
maxHeight?: string | number | readonly (string | number | null | undefined)[];
|
|
95
|
+
} | keyof {
|
|
96
|
+
display?: ("flex" | (string & {}) | "grid" | "none" | "block" | "inline-block" | "inline-flex") | readonly (("flex" | (string & {}) | "grid" | "none" | "block" | "inline-block" | "inline-flex") | null | undefined)[];
|
|
97
|
+
overflow?: ("clip" | "hidden" | (string & {}) | "auto" | "visible" | "scroll") | readonly (("clip" | "hidden" | (string & {}) | "auto" | "visible" | "scroll") | null | undefined)[];
|
|
98
|
+
overflowX?: ("clip" | "hidden" | (string & {}) | "auto" | "visible" | "scroll") | readonly (("clip" | "hidden" | (string & {}) | "auto" | "visible" | "scroll") | null | undefined)[];
|
|
99
|
+
overflowY?: ("clip" | "hidden" | (string & {}) | "auto" | "visible" | "scroll") | readonly (("clip" | "hidden" | (string & {}) | "auto" | "visible" | "scroll") | null | undefined)[];
|
|
100
|
+
} | keyof {
|
|
101
|
+
alignItems?: ("center" | "end" | "start" | (string & {}) | "baseline" | "flex-start" | "flex-end" | "stretch" | "normal") | readonly (("center" | "end" | "start" | (string & {}) | "baseline" | "flex-start" | "flex-end" | "stretch" | "normal") | null | undefined)[];
|
|
102
|
+
justifyContent?: ("center" | "end" | "start" | (string & {}) | "flex-start" | "flex-end" | "normal" | "space-between" | "space-around" | "space-evenly") | readonly (("center" | "end" | "start" | (string & {}) | "flex-start" | "flex-end" | "normal" | "space-between" | "space-around" | "space-evenly") | null | undefined)[];
|
|
103
|
+
flexDirection?: ((string & {}) | "row" | "column" | "row-reverse" | "column-reverse") | readonly (((string & {}) | "row" | "column" | "row-reverse" | "column-reverse") | null | undefined)[];
|
|
104
|
+
flexWrap?: ("wrap" | (string & {}) | "nowrap" | "wrap-reverse") | readonly (("wrap" | (string & {}) | "nowrap" | "wrap-reverse") | null | undefined)[];
|
|
105
|
+
flex?: string | number | readonly (string | number | null | undefined)[];
|
|
106
|
+
alignSelf?: ("center" | "end" | "start" | (string & {}) | "auto" | "baseline" | "flex-start" | "flex-end" | "stretch") | readonly (("center" | "end" | "start" | (string & {}) | "auto" | "baseline" | "flex-start" | "flex-end" | "stretch") | null | undefined)[];
|
|
107
|
+
} | keyof {
|
|
108
|
+
color?: string;
|
|
109
|
+
backgroundColor?: string | readonly (string | null | undefined)[];
|
|
110
|
+
opacity?: string | number | readonly (string | number | null | undefined)[];
|
|
111
|
+
fontSize?: string | number | readonly (string | number | null | undefined)[];
|
|
112
|
+
fontWeight?: string | number | readonly (string | number | null | undefined)[];
|
|
113
|
+
textAlign?: ("center" | "end" | "start" | (string & {}) | "left" | "right" | "justify") | readonly (("center" | "end" | "start" | (string & {}) | "left" | "right" | "justify") | null | undefined)[];
|
|
114
|
+
}>;
|
|
5
115
|
export declare const PanelContainer: import('styled-components').StyledComponent<"div", any, {}, never>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-panel",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.11",
|
|
4
4
|
"description": "Panel UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "Synerise/synerise-design",
|
|
@@ -42,14 +42,16 @@
|
|
|
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.0.5",
|
|
46
|
+
"@synerise/ds-form-field": "^2.0.10"
|
|
47
|
+
},
|
|
48
|
+
"devDependencies": {
|
|
49
|
+
"vitest": "4"
|
|
47
50
|
},
|
|
48
51
|
"peerDependencies": {
|
|
49
52
|
"@synerise/ds-core": "*",
|
|
50
53
|
"react": ">=16.9.0 <= 18.3.1",
|
|
51
|
-
"styled-components": "^5.3.3"
|
|
52
|
-
"vitest": "4"
|
|
54
|
+
"styled-components": "^5.3.3"
|
|
53
55
|
},
|
|
54
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "5ac0f7dcb7c3995b402c86c087d8f32770f80a1d"
|
|
55
57
|
}
|