@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 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: DEFAULT_RADIUS
15
+ $radius: radius
14
16
  }, props), children);
15
17
  });
16
18
  export default Panel;
@@ -1,3 +1,4 @@
1
1
  export declare const PanelWrapper: import("styled-components").StyledComponent<import("react").FunctionComponent<import("@synerise/ds-flex-box").BoxProps>, any, {
2
- radius: number;
2
+ $radius: number;
3
+ greyBackground?: boolean;
3
4
  }, never>;
@@ -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
- })(["border:solid 1px ", ";border-radius:", "px;"], function (props) {
7
- return props.theme.palette['grey-200'];
6
+ })(["background-color:", ";", " border-radius:", "px;"], function (props) {
7
+ return props.theme.palette.white;
8
8
  }, function (props) {
9
- return props.radius;
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
  });
@@ -1,4 +1,5 @@
1
1
  import { type BoxProps } from '@synerise/ds-flex-box';
2
2
  export type PanelProps = BoxProps & {
3
3
  radius?: number;
4
+ greyBackground?: boolean;
4
5
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-panel",
3
- "version": "1.2.0",
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": "ac8decd9736940735bf05198b24b3eeeb5900b18"
44
+ "gitHead": "4ffbd56e9bf6277c4507efeaf000b66b9bb09781"
45
45
  }