@synerise/ds-panel 1.2.2 → 1.2.3
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 +4 -0
- package/dist/Panel.const.js +6 -2
- package/dist/Panel.d.ts +2 -2
- package/dist/Panel.js +22 -30
- package/dist/Panel.styles.d.ts +2 -2
- package/dist/Panel.styles.js +12 -12
- package/dist/Panel.types.d.ts +2 -2
- package/dist/Panel.types.js +1 -1
- package/dist/index.js +4 -1
- package/dist/modules.d.js +1 -1
- package/dist/modules.d.ts +0 -0
- package/package.json +8 -7
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,10 @@
|
|
|
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
|
+
## [1.2.3](https://github.com/Synerise/synerise-design/compare/@synerise/ds-panel@1.2.2...@synerise/ds-panel@1.2.3) (2026-03-24)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @synerise/ds-panel
|
|
9
|
+
|
|
6
10
|
## [1.2.2](https://github.com/Synerise/synerise-design/compare/@synerise/ds-panel@1.2.1...@synerise/ds-panel@1.2.2) (2026-03-20)
|
|
7
11
|
|
|
8
12
|
### Bug Fixes
|
package/dist/Panel.const.js
CHANGED
package/dist/Panel.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { PanelProps } from './Panel.types';
|
|
3
3
|
declare const Panel: React.ForwardRefExoticComponent<Omit<PanelProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
4
4
|
export default Panel;
|
package/dist/Panel.js
CHANGED
|
@@ -1,31 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
className: className,
|
|
21
|
-
style: style
|
|
22
|
-
}, label && /*#__PURE__*/React.createElement(FormFieldLabel, {
|
|
23
|
-
label: label,
|
|
24
|
-
tooltip: tooltip,
|
|
25
|
-
tooltipConfig: tooltipConfig
|
|
26
|
-
}), /*#__PURE__*/React.createElement(S.PanelWrapper, _extends({
|
|
27
|
-
p: DEFAULT_PADDING,
|
|
28
|
-
$radius: radius
|
|
29
|
-
}, props), children));
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef } from "react";
|
|
3
|
+
import { FormFieldLabel } from "@synerise/ds-form-field";
|
|
4
|
+
import { DEFAULT_RADIUS, DEFAULT_PADDING } from "./Panel.const.js";
|
|
5
|
+
import { PanelContainer, PanelWrapper } from "./Panel.styles.js";
|
|
6
|
+
const Panel = forwardRef(({
|
|
7
|
+
children,
|
|
8
|
+
radius = DEFAULT_RADIUS,
|
|
9
|
+
label,
|
|
10
|
+
tooltip,
|
|
11
|
+
tooltipConfig,
|
|
12
|
+
className,
|
|
13
|
+
style,
|
|
14
|
+
...props
|
|
15
|
+
}, ref) => {
|
|
16
|
+
return /* @__PURE__ */ jsxs(PanelContainer, { ref, className, style, children: [
|
|
17
|
+
label && /* @__PURE__ */ jsx(FormFieldLabel, { label, tooltip, tooltipConfig }),
|
|
18
|
+
/* @__PURE__ */ jsx(PanelWrapper, { p: DEFAULT_PADDING, $radius: radius, ...props, children })
|
|
19
|
+
] });
|
|
30
20
|
});
|
|
31
|
-
export
|
|
21
|
+
export {
|
|
22
|
+
Panel as default
|
|
23
|
+
};
|
package/dist/Panel.styles.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare const PanelWrapper: import(
|
|
1
|
+
export declare const PanelWrapper: import('styled-components').StyledComponent<import('react').FunctionComponent<import('@synerise/ds-flex-box').BoxProps>, any, {
|
|
2
2
|
$radius: number;
|
|
3
3
|
greyBackground?: boolean;
|
|
4
4
|
}, never>;
|
|
5
|
-
export declare const PanelContainer: import(
|
|
5
|
+
export declare const PanelContainer: import('styled-components').StyledComponent<"div", any, {}, never>;
|
package/dist/Panel.styles.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import styled from
|
|
2
|
-
import { Box } from
|
|
3
|
-
|
|
1
|
+
import styled from "styled-components";
|
|
2
|
+
import { Box } from "@synerise/ds-flex-box";
|
|
3
|
+
const PanelWrapper = /* @__PURE__ */ styled(Box).withConfig({
|
|
4
4
|
displayName: "Panelstyles__PanelWrapper",
|
|
5
5
|
componentId: "sc-xt9txn-0"
|
|
6
|
-
})(["background-color:", ";", " border-radius:", "px;"],
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
}, function (props) {
|
|
11
|
-
return props.$radius;
|
|
12
|
-
});
|
|
13
|
-
export var PanelContainer = styled.div.withConfig({
|
|
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);
|
|
9
|
+
const PanelContainer = /* @__PURE__ */ styled.div.withConfig({
|
|
14
10
|
displayName: "Panelstyles__PanelContainer",
|
|
15
11
|
componentId: "sc-xt9txn-1"
|
|
16
|
-
})(["display:flex;gap:8px;flex-direction:column;"]);
|
|
12
|
+
})(["display:flex;gap:8px;flex-direction:column;"]);
|
|
13
|
+
export {
|
|
14
|
+
PanelContainer,
|
|
15
|
+
PanelWrapper
|
|
16
|
+
};
|
package/dist/Panel.types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { BoxProps } from '@synerise/ds-flex-box';
|
|
2
|
+
import { BaseLabelProps } from '@synerise/ds-form-field';
|
|
3
3
|
export type PanelProps = Omit<BoxProps, 'label'> & BaseLabelProps & {
|
|
4
4
|
radius?: number;
|
|
5
5
|
greyBackground?: boolean;
|
package/dist/Panel.types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
|
package/dist/index.js
CHANGED
package/dist/modules.d.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "@testing-library/jest-dom";
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-panel",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.3",
|
|
4
4
|
"description": "Panel UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "Synerise/synerise-design",
|
|
@@ -16,10 +16,10 @@
|
|
|
16
16
|
"access": "public"
|
|
17
17
|
},
|
|
18
18
|
"scripts": {
|
|
19
|
-
"build": "
|
|
19
|
+
"build": "vite build",
|
|
20
20
|
"build:css": "node ../../../scripts/style/less.js",
|
|
21
21
|
"build:js": "babel --delete-dir-on-start --root-mode upward src --out-dir dist --extensions '.js,.ts,.tsx'",
|
|
22
|
-
"build:watch": "
|
|
22
|
+
"build:watch": "vite build --watch",
|
|
23
23
|
"defs": "tsc --declaration --outDir dist/ --emitDeclarationOnly",
|
|
24
24
|
"prepublish": "pnpm run build",
|
|
25
25
|
"types": "tsc --noEmit",
|
|
@@ -35,12 +35,13 @@
|
|
|
35
35
|
],
|
|
36
36
|
"types": "dist/index.d.ts",
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@synerise/ds-flex-box": "^1.1.
|
|
39
|
-
"@synerise/ds-form-field": "^1.3.
|
|
38
|
+
"@synerise/ds-flex-box": "^1.1.2",
|
|
39
|
+
"@synerise/ds-form-field": "^1.3.10"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"@synerise/ds-core": "*",
|
|
43
|
-
"react": ">=16.9.0 <= 18.3.1"
|
|
43
|
+
"react": ">=16.9.0 <= 18.3.1",
|
|
44
|
+
"styled-components": "^5.3.3"
|
|
44
45
|
},
|
|
45
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "e4ecca8944fc9b41c1b9d59c8bcad5e5e2013225"
|
|
46
47
|
}
|