@unifold/ui-react 0.1.24 → 0.1.25
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/index.d.mts +13 -2
- package/dist/index.d.ts +13 -2
- package/dist/index.js +633 -578
- package/dist/index.mjs +607 -554
- package/dist/styles-base.css +1 -1
- package/dist/styles.css +1 -1
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -263,8 +263,19 @@ declare const SelectItem: React.ForwardRefExoticComponent<Omit<SelectPrimitive.S
|
|
|
263
263
|
declare const SelectSeparator: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
264
264
|
|
|
265
265
|
declare const TooltipProvider: React.FC<TooltipPrimitive.TooltipProviderProps>;
|
|
266
|
-
|
|
267
|
-
|
|
266
|
+
/**
|
|
267
|
+
* Tooltip wrapper that supports both hover (desktop) and tap-to-toggle (mobile).
|
|
268
|
+
*
|
|
269
|
+
* Radix Tooltip only opens on hover, which is unusable on touch devices.
|
|
270
|
+
* This wrapper adds controlled open state so the trigger's onClick can toggle it,
|
|
271
|
+
* while preserving the default hover behavior on desktop.
|
|
272
|
+
*/
|
|
273
|
+
declare function Tooltip({ children, ...props }: React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
274
|
+
/**
|
|
275
|
+
* Tooltip trigger that adds click-to-toggle for mobile/touch support.
|
|
276
|
+
* On desktop, hover still works as usual via Radix's built-in behavior.
|
|
277
|
+
*/
|
|
278
|
+
declare const TooltipTrigger: React.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
268
279
|
declare const TooltipContent: React.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
269
280
|
|
|
270
281
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -263,8 +263,19 @@ declare const SelectItem: React.ForwardRefExoticComponent<Omit<SelectPrimitive.S
|
|
|
263
263
|
declare const SelectSeparator: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
264
264
|
|
|
265
265
|
declare const TooltipProvider: React.FC<TooltipPrimitive.TooltipProviderProps>;
|
|
266
|
-
|
|
267
|
-
|
|
266
|
+
/**
|
|
267
|
+
* Tooltip wrapper that supports both hover (desktop) and tap-to-toggle (mobile).
|
|
268
|
+
*
|
|
269
|
+
* Radix Tooltip only opens on hover, which is unusable on touch devices.
|
|
270
|
+
* This wrapper adds controlled open state so the trigger's onClick can toggle it,
|
|
271
|
+
* while preserving the default hover behavior on desktop.
|
|
272
|
+
*/
|
|
273
|
+
declare function Tooltip({ children, ...props }: React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
274
|
+
/**
|
|
275
|
+
* Tooltip trigger that adds click-to-toggle for mobile/touch support.
|
|
276
|
+
* On desktop, hover still works as usual via Radix's built-in behavior.
|
|
277
|
+
*/
|
|
278
|
+
declare const TooltipTrigger: React.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
268
279
|
declare const TooltipContent: React.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
269
280
|
|
|
270
281
|
/**
|