@ttoss/ui 5.5.1 → 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
  });
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.1",
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",