@ttoss/ui 5.5.0 → 5.5.2

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/dist/esm/index.js CHANGED
@@ -625,7 +625,6 @@ var TOOLTIP_LABEL = "tooltip";
625
625
  var Label = ({
626
626
  children,
627
627
  tooltip,
628
- onTooltipClick,
629
628
  sx,
630
629
  ...props
631
630
  }) => {
@@ -648,15 +647,15 @@ var Label = ({
648
647
  cursor: "pointer"
649
648
  },
650
649
  "aria-label": TOOLTIP_LABEL,
651
- onClick: onTooltipClick,
652
650
  children: [/* @__PURE__ */jsx14(Icon6, {
653
651
  inline: true,
654
652
  icon: "fluent:info-24-regular"
655
653
  }), /* @__PURE__ */jsx14(Tooltip, {
656
654
  id: tooltipId,
657
- clickable: onTooltipClick ? true : false,
658
- place: "top",
659
- children: tooltip
655
+ openOnClick: tooltip.openOnClick,
656
+ clickable: tooltip.clickable,
657
+ place: tooltip.place,
658
+ children: tooltip.render
660
659
  })]
661
660
  })]
662
661
  });
@@ -998,7 +997,15 @@ var Tooltip = props => {
998
997
  borderRadius: "xl",
999
998
  borderColor: themeColors?.feedback?.border?.primary?.default,
1000
999
  zIndex: "tooltip",
1001
- opacity: "1"
1000
+ opacity: "1",
1001
+ lineHeight: "shorter",
1002
+ letterSpacing: "wide",
1003
+ a: {
1004
+ color: "input.text.primary.default",
1005
+ fontFamily: "body",
1006
+ textDecorationLine: "underline",
1007
+ lineHeight: "normal"
1008
+ }
1002
1009
  }
1003
1010
  };
1004
1011
  },
package/dist/index.d.ts CHANGED
@@ -80,10 +80,14 @@ type InputPasswordProps = Omit<InputProps, 'trailingIcon' | 'onTrailingIconClick
80
80
  declare const InputPassword: React.ForwardRefExoticComponent<Omit<InputPasswordProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
81
81
 
82
82
  type LabelProps = LabelProps$1 & {
83
- tooltip?: string | React.ReactNode;
84
- onTooltipClick?: () => void;
83
+ tooltip?: {
84
+ render: string | React.ReactNode;
85
+ place: 'top' | 'right' | 'bottom' | 'left';
86
+ openOnClick?: boolean;
87
+ clickable?: boolean;
88
+ };
85
89
  };
86
- declare const Label: ({ children, tooltip, onTooltipClick, sx, ...props }: LabelProps) => react_jsx_runtime.JSX.Element;
90
+ declare const Label: ({ children, tooltip, sx, ...props }: LabelProps) => react_jsx_runtime.JSX.Element;
87
91
 
88
92
  type LinkProps = LinkProps$1 & {
89
93
  quiet?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ttoss/ui",
3
- "version": "5.5.0",
3
+ "version": "5.5.2",
4
4
  "description": "Primitive layout, typographic, and other components for styling applications.",
5
5
  "license": "MIT",
6
6
  "author": "ttoss",
@@ -28,7 +28,7 @@
28
28
  "react-select": "^5.9.0",
29
29
  "react-tooltip": "^5.28.0",
30
30
  "theme-ui": "^0.17.1",
31
- "@ttoss/theme": "^2.5.0"
31
+ "@ttoss/theme": "^2.5.1"
32
32
  },
33
33
  "peerDependencies": {
34
34
  "@emotion/react": "^11",
@@ -43,9 +43,9 @@
43
43
  "jest": "^29.7.0",
44
44
  "react": "^19.0.0",
45
45
  "tsup": "^8.3.5",
46
+ "@ttoss/config": "^1.35.2",
46
47
  "@ttoss/react-icons": "^0.4.9",
47
- "@ttoss/test-utils": "^2.1.22",
48
- "@ttoss/config": "^1.35.2"
48
+ "@ttoss/test-utils": "^2.1.22"
49
49
  },
50
50
  "keywords": [
51
51
  "React",