@spaced-out/ui-design-system 0.3.6 → 0.3.7

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.3.7](https://github.com/spaced-out/ui-design-system/compare/v0.3.6...v0.3.7) (2024-11-29)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * fixes an incorrect propagation of className in ClickableIcon ([61a8008](https://github.com/spaced-out/ui-design-system/commit/61a800856b92eff12a6c0d9637863dc09e737253))
11
+
5
12
  ### [0.3.6](https://github.com/spaced-out/ui-design-system/compare/v0.3.5...v0.3.6) (2024-11-27)
6
13
 
7
14
 
@@ -17,7 +17,6 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
17
17
  const ClickableIcon = /*#__PURE__*/React.forwardRef((_ref, ref) => {
18
18
  let {
19
19
  size = 'medium',
20
- className,
21
20
  ariaLabel,
22
21
  onClick,
23
22
  ...props
@@ -36,7 +35,7 @@ const ClickableIcon = /*#__PURE__*/React.forwardRef((_ref, ref) => {
36
35
  [_ClickableIconModule.default.small]: size === 'small',
37
36
  [_ClickableIconModule.default.medium]: size === 'medium',
38
37
  [_ClickableIconModule.default.large]: size === 'large'
39
- }, className),
38
+ }),
40
39
  ref: ref
41
40
  }), /*#__PURE__*/React.createElement(_.Icon, _extends({
42
41
  size: size
@@ -17,10 +17,7 @@ export const ClickableIcon: React$AbstractComponent<
17
17
  IconProps,
18
18
  HTMLButtonElement,
19
19
  > = React.forwardRef<IconProps, HTMLButtonElement>(
20
- (
21
- {size = 'medium', className, ariaLabel, onClick, ...props}: IconProps,
22
- ref,
23
- ) => {
20
+ ({size = 'medium', ariaLabel, onClick, ...props}: IconProps, ref) => {
24
21
  const onKeyDownHandler = (e) => {
25
22
  if (e.key === 'Enter') {
26
23
  e.preventDefault();
@@ -33,15 +30,11 @@ export const ClickableIcon: React$AbstractComponent<
33
30
  onClick={onClick}
34
31
  onKeyDown={onKeyDownHandler}
35
32
  ariaLabel={ariaLabel}
36
- className={classify(
37
- css.button,
38
- {
39
- [css.small]: size === 'small',
40
- [css.medium]: size === 'medium',
41
- [css.large]: size === 'large',
42
- },
43
- className,
44
- )}
33
+ className={classify(css.button, {
34
+ [css.small]: size === 'small',
35
+ [css.medium]: size === 'medium',
36
+ [css.large]: size === 'large',
37
+ })}
45
38
  ref={ref}
46
39
  >
47
40
  <Icon size={size} {...props} />
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spaced-out/ui-design-system",
3
- "version": "0.3.6",
3
+ "version": "0.3.7",
4
4
  "main": "index.js",
5
5
  "description": "Sense UI components library",
6
6
  "author": {