@platformatic/ui-components 0.6.2 → 0.6.3

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@platformatic/ui-components",
3
3
  "description": "Platformatic UI Components",
4
- "version": "0.6.2",
4
+ "version": "0.6.3",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
7
7
  "repository": {
@@ -84,7 +84,7 @@ function ButtonOnlyIcon ({
84
84
  return (
85
85
  <button className={`${baseButtonClassName} ${buttonClassName} ${restClassName()}`} disabled={disabled} alt={altLabel} {...rest} onMouseLeave={() => setHover(false)} onMouseOver={() => setHover(true)}>
86
86
  <div className={`${contentClassName} ${backgroundClassName}`}>
87
- {platformaticIcon ? <PlatformaticIcon key='center' iconName={platformaticIcon.iconName} color={platformaticIcon.color} data-testid='button-icon' size={MEDIUM} onClick={null} disabled={disabled} /> : null}
87
+ {platformaticIcon ? <PlatformaticIcon key='center' iconName={platformaticIcon.iconName} color={platformaticIcon.color} data-testid='button-icon' size={platformaticIcon?.size ?? MEDIUM} onClick={null} disabled={disabled} /> : null}
88
88
  </div>
89
89
  </button>
90
90
  )
@@ -136,7 +136,8 @@ ButtonOnlyIcon.propTypes = {
136
136
  */
137
137
  platformaticIcon: PropTypes.shape({
138
138
  iconName: PropTypes.string,
139
- color: PropTypes.string
139
+ color: PropTypes.string,
140
+ size: PropTypes.string
140
141
  }),
141
142
  /**
142
143
  * Selected: default false