@spaced-out/ui-design-system 0.1.93-beta.1 → 0.1.93

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.93](https://github.com/spaced-out/ui-design-system/compare/v0.1.93-beta.1...v0.1.93) (2024-05-08)
6
+
7
+
8
+ ### Features
9
+
10
+ * adding prop to disable hover on chip ([#200](https://github.com/spaced-out/ui-design-system/issues/200)) ([65a60dd](https://github.com/spaced-out/ui-design-system/commit/65a60dda9b9180b8be8a4145991590f2fe04d2d8))
11
+
5
12
  ### [0.1.93-beta.1](https://github.com/spaced-out/ui-design-system/compare/v0.1.93-beta.0...v0.1.93-beta.1) (2024-05-07)
6
13
 
7
14
 
@@ -32,6 +32,7 @@ const Chip = /*#__PURE__*/React.forwardRef((_ref, ref) => {
32
32
  iconName = '',
33
33
  iconType = 'regular',
34
34
  showStatusIndicator,
35
+ disableHoverState = false,
35
36
  dismissable = false,
36
37
  onDismiss = () => null,
37
38
  onClick,
@@ -54,7 +55,7 @@ const Chip = /*#__PURE__*/React.forwardRef((_ref, ref) => {
54
55
  [_ChipModule.default.dismissable]: dismissable,
55
56
  [_ChipModule.default.withIcon]: !!iconName && size !== 'small',
56
57
  [_ChipModule.default.disabled]: disabled,
57
- [_ChipModule.default.noHoverState]: showStatusIndicator
58
+ [_ChipModule.default.noHoverState]: showStatusIndicator || disableHoverState
58
59
  }, classNames?.wrapper),
59
60
  onClick: onClick
60
61
  }), showStatusIndicator && size !== 'small' && /*#__PURE__*/React.createElement(_StatusIndicator.StatusIndicator, {
@@ -34,6 +34,7 @@ export type BaseChipProps = {
34
34
  children: React.Node,
35
35
  disabled?: boolean,
36
36
  showStatusIndicator?: boolean,
37
+ disableHoverState?: boolean,
37
38
  onClick?: ?(SyntheticEvent<HTMLElement>) => mixed,
38
39
  onMouseEnter?: ?(SyntheticEvent<HTMLElement>) => mixed,
39
40
  onMouseLeave?: ?(SyntheticEvent<HTMLElement>) => mixed,
@@ -65,6 +66,7 @@ export const Chip: React$AbstractComponent<ChipProps, HTMLDivElement> =
65
66
  iconName = '',
66
67
  iconType = 'regular',
67
68
  showStatusIndicator,
69
+ disableHoverState = false,
68
70
  dismissable = false,
69
71
  onDismiss = () => null,
70
72
  onClick,
@@ -91,7 +93,7 @@ export const Chip: React$AbstractComponent<ChipProps, HTMLDivElement> =
91
93
  [css.dismissable]: dismissable,
92
94
  [css.withIcon]: !!iconName && size !== 'small',
93
95
  [css.disabled]: disabled,
94
- [css.noHoverState]: showStatusIndicator,
96
+ [css.noHoverState]: showStatusIndicator || disableHoverState,
95
97
  },
96
98
  classNames?.wrapper,
97
99
  )}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spaced-out/ui-design-system",
3
- "version": "0.1.93-beta.1",
3
+ "version": "0.1.93",
4
4
  "main": "index.js",
5
5
  "description": "Sense UI components library",
6
6
  "author": {