@spaced-out/ui-design-system 0.0.44 → 0.0.45
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.0.45](https://github.com/spaced-out/ui-design-system/compare/v0.0.44...v0.0.45) (2023-03-10)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* sub menu item ([ba15c22](https://github.com/spaced-out/ui-design-system/commit/ba15c22ffd605e0ce799de4bdf0ecb5d9f8ea323))
|
|
11
|
+
|
|
5
12
|
### [0.0.44](https://github.com/spaced-out/ui-design-system/compare/v0.0.43...v0.0.44) (2023-03-10)
|
|
6
13
|
|
|
7
14
|
|
|
@@ -58,7 +58,8 @@ const SubMenuItem = _ref4 => {
|
|
|
58
58
|
disabled,
|
|
59
59
|
classNames,
|
|
60
60
|
onChange,
|
|
61
|
-
menuKey
|
|
61
|
+
menuKey,
|
|
62
|
+
...props
|
|
62
63
|
} = _ref4;
|
|
63
64
|
const onChangeHandler = () => {
|
|
64
65
|
if (!disabled) {
|
|
@@ -82,13 +83,13 @@ const SubMenuItem = _ref4 => {
|
|
|
82
83
|
}
|
|
83
84
|
return null;
|
|
84
85
|
};
|
|
85
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
86
|
+
return /*#__PURE__*/React.createElement("div", _extends({}, props, {
|
|
86
87
|
className: (0, _classify.default)(_SubMenuModule.default.menuItem, {
|
|
87
88
|
[_SubMenuModule.default.selected]: selected,
|
|
88
89
|
[_SubMenuModule.default.disabled]: disabled
|
|
89
90
|
}, classNames?.wrapper),
|
|
90
91
|
onClick: onChangeHandler
|
|
91
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
92
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
92
93
|
className: _SubMenuModule.default.menuIconName
|
|
93
94
|
}, getNamedComp('SubMenuItemIcon'), getNamedComp('SubMenuItemText')), getNamedComp('SubMenuItemAction'));
|
|
94
95
|
};
|
|
@@ -72,6 +72,7 @@ export type SubMenuItemProps = {
|
|
|
72
72
|
disabled?: boolean,
|
|
73
73
|
onChange?: (selectedMenuKey: string) => mixed,
|
|
74
74
|
menuKey: string,
|
|
75
|
+
...
|
|
75
76
|
};
|
|
76
77
|
|
|
77
78
|
export const SubMenuItem = ({
|
|
@@ -81,6 +82,7 @@ export const SubMenuItem = ({
|
|
|
81
82
|
classNames,
|
|
82
83
|
onChange,
|
|
83
84
|
menuKey,
|
|
85
|
+
...props
|
|
84
86
|
}: SubMenuItemProps): React.Node => {
|
|
85
87
|
const onChangeHandler = () => {
|
|
86
88
|
if (!disabled) {
|
|
@@ -111,6 +113,7 @@ export const SubMenuItem = ({
|
|
|
111
113
|
|
|
112
114
|
return (
|
|
113
115
|
<div
|
|
116
|
+
{...props}
|
|
114
117
|
className={classify(
|
|
115
118
|
css.menuItem,
|
|
116
119
|
{
|