twico-ui 1.18.2 → 1.19.0
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/CHANGELOG.md +7 -0
- package/dist/index.cjs +319 -262
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -3
- package/dist/index.d.ts +12 -3
- package/dist/index.mjs +319 -262
- package/dist/index.mjs.map +1 -1
- package/llms.txt +3 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -3794,16 +3794,25 @@ declare function ToastProvider(props: ToastProviderProps): React.JSX.Element;
|
|
|
3794
3794
|
* Hover/focus tooltip. Wraps a single trigger element. The tooltip is linked to the
|
|
3795
3795
|
* trigger via aria-describedby while shown, is aria-hidden when closed, and Escape
|
|
3796
3796
|
* dismisses it (WCAG 1.4.13).
|
|
3797
|
+
*
|
|
3798
|
+
* **Anchored mode** (advanced): pass an `anchor` element and control visibility with `open`
|
|
3799
|
+
* to position one tooltip against an arbitrary element instead of wrapping a trigger — e.g. a
|
|
3800
|
+
* data grid driving a single tooltip for whichever truncated cell is hovered. In this mode the
|
|
3801
|
+
* component renders only the portaled bubble (no wrapper), and the parent owns show/hide + Escape.
|
|
3797
3802
|
*/
|
|
3798
3803
|
interface TooltipProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
3799
3804
|
/** Tooltip text/content. */
|
|
3800
3805
|
label: React.ReactNode;
|
|
3801
3806
|
/** @default "top" */
|
|
3802
3807
|
placement?: "top" | "bottom" | "left" | "right";
|
|
3803
|
-
/** Open delay in ms. @default 120 */
|
|
3808
|
+
/** Open delay in ms (hover/focus mode only). @default 120 */
|
|
3804
3809
|
delay?: number;
|
|
3805
|
-
/** The trigger element; receives aria-describedby while shown (non-element children are wrapped in a span). */
|
|
3806
|
-
children
|
|
3810
|
+
/** The trigger element; receives aria-describedby while shown (non-element children are wrapped in a span). Omitted in anchored mode. */
|
|
3811
|
+
children?: React.ReactNode;
|
|
3812
|
+
/** Anchored mode: the element to position the tooltip against (instead of wrapping a trigger). */
|
|
3813
|
+
anchor?: Element | null;
|
|
3814
|
+
/** Anchored mode: controlled visibility. Only used when `anchor` is provided. */
|
|
3815
|
+
open?: boolean;
|
|
3807
3816
|
}
|
|
3808
3817
|
|
|
3809
3818
|
declare function Tooltip(props: TooltipProps): React.JSX.Element;
|
package/dist/index.d.ts
CHANGED
|
@@ -3794,16 +3794,25 @@ declare function ToastProvider(props: ToastProviderProps): React.JSX.Element;
|
|
|
3794
3794
|
* Hover/focus tooltip. Wraps a single trigger element. The tooltip is linked to the
|
|
3795
3795
|
* trigger via aria-describedby while shown, is aria-hidden when closed, and Escape
|
|
3796
3796
|
* dismisses it (WCAG 1.4.13).
|
|
3797
|
+
*
|
|
3798
|
+
* **Anchored mode** (advanced): pass an `anchor` element and control visibility with `open`
|
|
3799
|
+
* to position one tooltip against an arbitrary element instead of wrapping a trigger — e.g. a
|
|
3800
|
+
* data grid driving a single tooltip for whichever truncated cell is hovered. In this mode the
|
|
3801
|
+
* component renders only the portaled bubble (no wrapper), and the parent owns show/hide + Escape.
|
|
3797
3802
|
*/
|
|
3798
3803
|
interface TooltipProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
3799
3804
|
/** Tooltip text/content. */
|
|
3800
3805
|
label: React.ReactNode;
|
|
3801
3806
|
/** @default "top" */
|
|
3802
3807
|
placement?: "top" | "bottom" | "left" | "right";
|
|
3803
|
-
/** Open delay in ms. @default 120 */
|
|
3808
|
+
/** Open delay in ms (hover/focus mode only). @default 120 */
|
|
3804
3809
|
delay?: number;
|
|
3805
|
-
/** The trigger element; receives aria-describedby while shown (non-element children are wrapped in a span). */
|
|
3806
|
-
children
|
|
3810
|
+
/** The trigger element; receives aria-describedby while shown (non-element children are wrapped in a span). Omitted in anchored mode. */
|
|
3811
|
+
children?: React.ReactNode;
|
|
3812
|
+
/** Anchored mode: the element to position the tooltip against (instead of wrapping a trigger). */
|
|
3813
|
+
anchor?: Element | null;
|
|
3814
|
+
/** Anchored mode: controlled visibility. Only used when `anchor` is provided. */
|
|
3815
|
+
open?: boolean;
|
|
3807
3816
|
}
|
|
3808
3817
|
|
|
3809
3818
|
declare function Tooltip(props: TooltipProps): React.JSX.Element;
|