@spaced-out/ui-design-system 0.1.62 → 0.1.64

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
@@ -2,6 +2,15 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [0.1.64](https://github.com/spaced-out/ui-design-system/compare/v0.1.63...v0.1.64) (2023-10-26)
6
+
7
+
8
+ ### Features
9
+
10
+ * ref forwarding in panel body ([#150](https://github.com/spaced-out/ui-design-system/issues/150)) ([6c73b28](https://github.com/spaced-out/ui-design-system/commit/6c73b28cd18f943e6527733314f54fc4260dafbc))
11
+
12
+ ### [0.1.63](https://github.com/spaced-out/ui-design-system/compare/v0.1.62...v0.1.63) (2023-10-19)
13
+
5
14
  ### [0.1.62](https://github.com/spaced-out/ui-design-system/compare/v0.1.61...v0.1.62) (2023-10-19)
6
15
 
7
16
 
@@ -54,15 +54,16 @@ const PanelHeader = _ref => {
54
54
  })));
55
55
  };
56
56
  exports.PanelHeader = PanelHeader;
57
- const PanelBody = _ref2 => {
57
+ const PanelBody = /*#__PURE__*/React.forwardRef((_ref2, ref) => {
58
58
  let {
59
59
  children,
60
60
  className
61
61
  } = _ref2;
62
62
  return /*#__PURE__*/React.createElement("div", {
63
+ ref: ref,
63
64
  className: (0, _classify.default)(_PanelModule.default.panelBody, className)
64
65
  }, children);
65
- };
66
+ });
66
67
  exports.PanelBody = PanelBody;
67
68
  const PanelFooter = _ref3 => {
68
69
  let {
@@ -98,11 +98,15 @@ export const PanelHeader = ({
98
98
  </>
99
99
  );
100
100
 
101
- export const PanelBody = ({
102
- children,
103
- className,
104
- }: PanelBodyProps): React.Node => (
105
- <div className={classify(css.panelBody, className)}>{children}</div>
101
+ export const PanelBody: React$AbstractComponent<
102
+ PanelBodyProps,
103
+ HTMLDivElement,
104
+ > = React.forwardRef<PanelBodyProps, HTMLDivElement>(
105
+ ({children, className}: PanelBodyProps, ref): React.Node => (
106
+ <div ref={ref} className={classify(css.panelBody, className)}>
107
+ {children}
108
+ </div>
109
+ ),
106
110
  );
107
111
 
108
112
  export const PanelFooter = ({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spaced-out/ui-design-system",
3
- "version": "0.1.62",
3
+ "version": "0.1.64",
4
4
  "main": "index.js",
5
5
  "description": "Sense UI components library",
6
6
  "author": {