@synerise/ds-panel 1.2.0 → 1.2.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 +6 -0
- package/dist/Panel.js +4 -2
- package/dist/Panel.styles.d.ts +2 -1
- package/dist/Panel.styles.js +5 -3
- package/dist/Panel.types.d.ts +1 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
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.1](https://github.com/Synerise/synerise-design/compare/@synerise/ds-panel@1.2.0...@synerise/ds-panel@1.2.1) (2026-02-26)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- **metric-card:** updated logic for content display ([546cdf6](https://github.com/Synerise/synerise-design/commit/546cdf6abf4d16d37960171f0ee8b3a85772ba9a))
|
|
11
|
+
|
|
6
12
|
# [1.2.0](https://github.com/Synerise/synerise-design/compare/@synerise/ds-panel@1.1.0...@synerise/ds-panel@1.2.0) (2026-02-05)
|
|
7
13
|
|
|
8
14
|
### Features
|
package/dist/Panel.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _excluded = ["children"];
|
|
1
|
+
var _excluded = ["children", "radius"];
|
|
2
2
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
3
|
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
4
4
|
import React, { forwardRef } from 'react';
|
|
@@ -6,11 +6,13 @@ import { DEFAULT_PADDING, DEFAULT_RADIUS } from './Panel.const';
|
|
|
6
6
|
import * as S from './Panel.styles';
|
|
7
7
|
var Panel = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
8
8
|
var children = _ref.children,
|
|
9
|
+
_ref$radius = _ref.radius,
|
|
10
|
+
radius = _ref$radius === void 0 ? DEFAULT_RADIUS : _ref$radius,
|
|
9
11
|
props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
10
12
|
return /*#__PURE__*/React.createElement(S.PanelWrapper, _extends({
|
|
11
13
|
ref: ref,
|
|
12
14
|
p: DEFAULT_PADDING,
|
|
13
|
-
radius:
|
|
15
|
+
$radius: radius
|
|
14
16
|
}, props), children);
|
|
15
17
|
});
|
|
16
18
|
export default Panel;
|
package/dist/Panel.styles.d.ts
CHANGED
package/dist/Panel.styles.js
CHANGED
|
@@ -3,8 +3,10 @@ import { Box } from '@synerise/ds-flex-box';
|
|
|
3
3
|
export var PanelWrapper = styled(Box).withConfig({
|
|
4
4
|
displayName: "Panelstyles__PanelWrapper",
|
|
5
5
|
componentId: "sc-xt9txn-0"
|
|
6
|
-
})(["
|
|
7
|
-
return props.theme.palette
|
|
6
|
+
})(["background-color:", ";", " border-radius:", "px;"], function (props) {
|
|
7
|
+
return props.theme.palette.white;
|
|
8
8
|
}, function (props) {
|
|
9
|
-
return props.
|
|
9
|
+
return props.greyBackground ? "\n box-shadow: 0 4px 12px 0 rgba(35, 41, 54, 0.04);" : "\n border: solid 1px " + props.theme.palette['grey-200'] + ";";
|
|
10
|
+
}, function (props) {
|
|
11
|
+
return props.$radius;
|
|
10
12
|
});
|
package/dist/Panel.types.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-panel",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.1",
|
|
4
4
|
"description": "Panel UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "Synerise/synerise-design",
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"@synerise/ds-core": "*",
|
|
42
42
|
"react": ">=16.9.0 <= 18.3.1"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "4ffbd56e9bf6277c4507efeaf000b66b9bb09781"
|
|
45
45
|
}
|