@cloudwick/astral-ui 3.0.5 → 3.0.7
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.
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React, { ReactNode } from "react";
|
|
2
|
+
import type { Placement } from "@floating-ui/react";
|
|
2
3
|
import { type IconType } from "../adpIcon";
|
|
3
4
|
export declare const colors: readonly ["primary", "secondary", "success", "warning", "error"];
|
|
4
5
|
export declare const variants: readonly ["filled", "outline", "shade", "text"];
|
|
@@ -62,6 +63,19 @@ export interface Props extends Omit<React.ComponentPropsWithoutRef<"button">, "c
|
|
|
62
63
|
* - If a ReactNode is provided, it will be rendered as-is.
|
|
63
64
|
*/
|
|
64
65
|
suffixIcon?: IconType | ReactNode;
|
|
66
|
+
/**
|
|
67
|
+
* Tooltip to be displayed on hover of the button.
|
|
68
|
+
* @description
|
|
69
|
+
* This prop accepts a ReactNode, if this is passed then the button will render
|
|
70
|
+
* tooltip on hover of the button.
|
|
71
|
+
* This tooltip is only on hover and not on click.
|
|
72
|
+
*/
|
|
73
|
+
tooltip?: ReactNode;
|
|
74
|
+
/**
|
|
75
|
+
* Placement of the tooltip
|
|
76
|
+
* @default "bottom-end"
|
|
77
|
+
*/
|
|
78
|
+
tooltipPlacement?: Placement;
|
|
65
79
|
/**
|
|
66
80
|
* Callback function to be called when the button is clicked
|
|
67
81
|
*/
|
|
@@ -11,8 +11,9 @@ export type Props = {
|
|
|
11
11
|
* If the text exceeds this limit, it will be truncated with an ellipsis,
|
|
12
12
|
* and a "Show more" button will be displayed.
|
|
13
13
|
* The full text can be viewed in a modal by clicking the "Show more" button.
|
|
14
|
+
* @default 100
|
|
14
15
|
*/
|
|
15
|
-
limit
|
|
16
|
+
limit?: number;
|
|
16
17
|
/**
|
|
17
18
|
* Overwrite the styles for the Truncate component by passing space separated class names
|
|
18
19
|
*/
|