odaptos_design_system 2.0.63 → 2.0.64

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,5 +1,5 @@
1
1
  {
2
- "version": "2.0.63",
2
+ "version": "2.0.64",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
@@ -24,6 +24,7 @@ interface TagProps extends HTMLAttributes<HTMLDivElement> {
24
24
  customColor?: string;
25
25
  className?: string;
26
26
  canBeRemoved?: boolean;
27
+ tooltipText?: string;
27
28
  }
28
29
 
29
30
  /** Figma link : https://www.figma.com/file/fjnhhbL12HvKccPmJchVnr/Atomic-Library?type=design&node-id=1359-33355&mode=dev */
@@ -37,6 +38,7 @@ export const Tag = ({
37
38
  customColor,
38
39
  className,
39
40
  canBeRemoved = false,
41
+ tooltipText,
40
42
  ...props
41
43
  }: TagProps) => {
42
44
  const tagCustomColor = customColor ? colord(customColor) : undefined;
@@ -98,7 +100,11 @@ export const Tag = ({
98
100
  }, []);
99
101
 
100
102
  return (
101
- <Tooltip tooltipDescription={text} arrow isTooltipActive={isEllipsisActive}>
103
+ <Tooltip
104
+ tooltipDescription={tooltipText ?? text}
105
+ arrow
106
+ isTooltipActive={isEllipsisActive}
107
+ >
102
108
  <div
103
109
  {...props}
104
110
  style={{ backgroundColor: customColor }}