@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 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',
@@ -124,6 +124,7 @@ export const Button: React$AbstractComponent<ButtonProps, HTMLButtonElement> =
124
124
  <UnstyledButton
125
125
  {...props}
126
126
  actionType={actionType}
127
+ disabled={disabled}
127
128
  className={classify(
128
129
  css.button,
129
130
  {
@@ -13,6 +13,8 @@ type ClassNames = $ReadOnly<{
13
13
  wrapper?: string,
14
14
  option?: string,
15
15
  groupTitle?: string,
16
+ optionTextContainer?: string,
17
+ optionTextLabel?: string,
16
18
  }>;
17
19
 
18
20
  export type MenuOption = {
@@ -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.isValidElement(customComponent) ? customComponent : /*#__PURE__*/React.createElement(_Truncate.Truncate, null, label)), !!secondaryLabel && /*#__PURE__*/React.createElement("div", {
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 className={css.optionTextContainer}>
100
- <div className={css.optionTextLabel}>
101
- {React.isValidElement(customComponent) ? (
102
- customComponent
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
- </div>
115
+ </div>
116
+ )}
107
117
 
108
118
  {!!secondaryLabel && (
109
119
  <div className={css.optionTextSecondaryLabel}>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spaced-out/ui-design-system",
3
- "version": "0.1.10",
3
+ "version": "0.1.11",
4
4
  "main": "index.js",
5
5
  "description": "Sense UI components library",
6
6
  "author": {