@spaced-out/ui-design-system 0.1.10 → 0.1.11
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 +8 -0
- package/lib/components/Button/Button.js +1 -0
- package/lib/components/Button/Button.js.flow +1 -0
- package/lib/components/Menu/Menu.js.flow +2 -0
- package/lib/components/Menu/MenuOptionButton.js +4 -4
- package/lib/components/Menu/MenuOptionButton.js.flow +17 -7
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
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.11](https://github.com/spaced-out/ui-design-system/compare/v0.1.10...v0.1.11) (2023-04-11)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* added classnames for menu custom component ([#95](https://github.com/spaced-out/ui-design-system/issues/95)) ([a860c29](https://github.com/spaced-out/ui-design-system/commit/a860c2979592d5e69301fb46374853ae960a54de))
|
|
11
|
+
* propagating disabled to button ([b14be23](https://github.com/spaced-out/ui-design-system/commit/b14be23a352d136c1c73f091b36bd7d1df8c35df))
|
|
12
|
+
|
|
5
13
|
### [0.1.10](https://github.com/spaced-out/ui-design-system/compare/v0.1.9...v0.1.10) (2023-04-10)
|
|
6
14
|
|
|
7
15
|
|
|
@@ -80,6 +80,7 @@ const Button = /*#__PURE__*/React.forwardRef((_ref2, ref) => {
|
|
|
80
80
|
} = _ref2;
|
|
81
81
|
return /*#__PURE__*/React.createElement(UnstyledButton, _extends({}, props, {
|
|
82
82
|
actionType: actionType,
|
|
83
|
+
disabled: disabled,
|
|
83
84
|
className: (0, _classify.classify)(_ButtonModule.default.button, {
|
|
84
85
|
[_ButtonModule.default.primary]: type === 'primary',
|
|
85
86
|
[_ButtonModule.default.secondary]: type === 'secondary',
|
|
@@ -77,10 +77,10 @@ const MenuOptionButton = props => {
|
|
|
77
77
|
size: "small",
|
|
78
78
|
className: _MenuModule.default.icon
|
|
79
79
|
}), /*#__PURE__*/React.createElement("div", {
|
|
80
|
-
className: _MenuModule.default.optionTextContainer
|
|
81
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
82
|
-
className: _MenuModule.default.optionTextLabel
|
|
83
|
-
}, /*#__PURE__*/React.
|
|
80
|
+
className: (0, _classify.classify)(_MenuModule.default.optionTextContainer, classNames?.optionTextContainer)
|
|
81
|
+
}, /*#__PURE__*/React.isValidElement(customComponent) ? customComponent : /*#__PURE__*/React.createElement("div", {
|
|
82
|
+
className: (0, _classify.classify)(_MenuModule.default.optionTextLabel, classNames?.optionTextLabel)
|
|
83
|
+
}, /*#__PURE__*/React.createElement(_Truncate.Truncate, null, label)), !!secondaryLabel && /*#__PURE__*/React.createElement("div", {
|
|
84
84
|
className: _MenuModule.default.optionTextSecondaryLabel
|
|
85
85
|
}, /*#__PURE__*/React.createElement(_Truncate.Truncate, null, secondaryLabel))), !!iconRight && /*#__PURE__*/React.createElement(_Icon.Icon, {
|
|
86
86
|
name: iconRight,
|
|
@@ -96,14 +96,24 @@ export const MenuOptionButton = (props: MenuOptionProps): React.Node => {
|
|
|
96
96
|
className={css.icon}
|
|
97
97
|
/>
|
|
98
98
|
)}
|
|
99
|
-
<div
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
99
|
+
<div
|
|
100
|
+
className={classify(
|
|
101
|
+
css.optionTextContainer,
|
|
102
|
+
classNames?.optionTextContainer,
|
|
103
|
+
)}
|
|
104
|
+
>
|
|
105
|
+
{React.isValidElement(customComponent) ? (
|
|
106
|
+
customComponent
|
|
107
|
+
) : (
|
|
108
|
+
<div
|
|
109
|
+
className={classify(
|
|
110
|
+
css.optionTextLabel,
|
|
111
|
+
classNames?.optionTextLabel,
|
|
112
|
+
)}
|
|
113
|
+
>
|
|
104
114
|
<Truncate>{label}</Truncate>
|
|
105
|
-
|
|
106
|
-
|
|
115
|
+
</div>
|
|
116
|
+
)}
|
|
107
117
|
|
|
108
118
|
{!!secondaryLabel && (
|
|
109
119
|
<div className={css.optionTextSecondaryLabel}>
|