@takaro/lib-components 0.4.7 → 0.4.9

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@takaro/lib-components",
3
- "version": "0.4.7",
3
+ "version": "0.4.9",
4
4
  "private": false,
5
5
  "description": "Takaro UI is a simple and customizable component library to build React apps faster within the Takaro eco system",
6
6
  "license": "AGPL-3.0-or-later",
@@ -51,7 +51,14 @@ export const Chip = forwardRef<HTMLDivElement, ChipProps>(function Chip(
51
51
  }
52
52
 
53
53
  return (
54
- <Container ref={ref} clickable={onClick !== undefined} color={color} disabled={disabled} showIcon={showIcon}>
54
+ <Container
55
+ ref={ref}
56
+ clickable={onClick !== undefined}
57
+ color={color}
58
+ disabled={disabled}
59
+ onClick={onClick ? onClick : undefined}
60
+ showIcon={showIcon}
61
+ >
55
62
  <span>{label}</span>
56
63
  {!onDelete && icon && cloneElement(icon, { size: 12, className: 'icon' })}
57
64
  {onDelete && !readOnly && !disabled && <Icon onClick={onDelete} size={12} />}