@spaced-out/ui-design-system 0.1.48-beta.0 → 0.1.48-beta.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
@@ -2,6 +2,13 @@
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.48-beta.1](https://github.com/spaced-out/ui-design-system/compare/v0.1.48-beta.0...v0.1.48-beta.1) (2023-09-11)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * submenu forwardref ([#142](https://github.com/spaced-out/ui-design-system/issues/142)) ([5e358ab](https://github.com/spaced-out/ui-design-system/commit/5e358ab36ba33243518f8720236780b1803c4267))
11
+
5
12
  ### [0.1.48-beta.0](https://github.com/spaced-out/ui-design-system/compare/v0.1.47...v0.1.48-beta.0) (2023-09-04)
6
13
 
7
14
 
@@ -132,6 +132,10 @@
132
132
  borderWidthTertiary colorFocusPrimary;
133
133
  }
134
134
 
135
+ .subMenuGroupHeader:not(.collapsible) {
136
+ background: colorNeutralDarkest;
137
+ }
138
+
135
139
  .subMenuGroupHeader.collapsed,
136
140
  .subMenuLink.collapsed {
137
141
  background: colorNeutralDarkest;
@@ -54,16 +54,17 @@ const SubMenuItemBadges = _ref3 => {
54
54
  };
55
55
  exports.SubMenuItemBadges = SubMenuItemBadges;
56
56
  SubMenuItemBadges.displayName = 'SubMenuItemBadges';
57
- const SubMenuItemAction = _ref4 => {
57
+ const SubMenuItemAction = /*#__PURE__*/React.forwardRef((_ref4, ref) => {
58
58
  let {
59
59
  children,
60
60
  className,
61
61
  ...props
62
62
  } = _ref4;
63
63
  return /*#__PURE__*/React.createElement("div", _extends({}, props, {
64
- className: (0, _classify.default)(_SubMenuModule.default.actionItems, className)
64
+ className: (0, _classify.default)(_SubMenuModule.default.actionItems, className),
65
+ ref: ref
65
66
  }), children);
66
- };
67
+ });
67
68
  exports.SubMenuItemAction = SubMenuItemAction;
68
69
  SubMenuItemAction.displayName = 'SubMenuItemAction';
69
70
  const SubMenuItem = /*#__PURE__*/React.forwardRef((_ref5, ref) => {
@@ -65,14 +65,18 @@ export type SubMenuItemActionProps = {
65
65
  className?: string,
66
66
  ...
67
67
  };
68
- export const SubMenuItemAction = ({
69
- children,
70
- className,
71
- ...props
72
- }: SubMenuItemActionProps): React.Node => (
73
- <div {...props} className={classify(css.actionItems, className)}>
74
- {children}
75
- </div>
68
+ export const SubMenuItemAction: React$AbstractComponent<
69
+ SubMenuItemActionProps,
70
+ HTMLElement,
71
+ > = React.forwardRef(
72
+ (
73
+ {children, className, ...props}: SubMenuItemActionProps,
74
+ ref,
75
+ ): React.Node => (
76
+ <div {...props} className={classify(css.actionItems, className)} ref={ref}>
77
+ {children}
78
+ </div>
79
+ ),
76
80
  );
77
81
  SubMenuItemAction.displayName = 'SubMenuItemAction';
78
82
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spaced-out/ui-design-system",
3
- "version": "0.1.48-beta.0",
3
+ "version": "0.1.48-beta.1",
4
4
  "main": "index.js",
5
5
  "description": "Sense UI components library",
6
6
  "author": {