@lax-wp/design-system 0.5.19 → 0.5.20
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/components/forms/shared/InputLabel.d.ts +2 -1
- package/dist/components/navigation/breadcrumbs/BreadCrumb.d.ts +1 -7
- package/dist/components/tooltip/Tooltip.d.ts +5 -1
- package/dist/index.es.js +411 -408
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +15 -15
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { FC
|
|
1
|
+
import type { FC } from "react";
|
|
2
2
|
import { type TBreadCrumbItem } from "./BreadCrumbItem";
|
|
3
3
|
/**
|
|
4
4
|
* Arrow icon for breadcrumb separators
|
|
@@ -18,12 +18,6 @@ export interface BreadCrumbProps {
|
|
|
18
18
|
variant?: "primary" | "secondary";
|
|
19
19
|
/** Click handler when a breadcrumb item is clicked */
|
|
20
20
|
onClick?: (id: string | number) => void;
|
|
21
|
-
/**
|
|
22
|
-
* Custom link renderer for navigation
|
|
23
|
-
* Allows integration with any routing library (react-router, next/link, etc.)
|
|
24
|
-
* If not provided, items will be rendered as clickable divs
|
|
25
|
-
*/
|
|
26
|
-
renderLink?: (item: TBreadCrumbItem, children: ReactNode, isLastItem: boolean) => ReactNode;
|
|
27
21
|
}
|
|
28
22
|
/**
|
|
29
23
|
* BreadCrumb component displays a navigation trail with animated items
|
|
@@ -11,6 +11,10 @@ export interface TooltipProps {
|
|
|
11
11
|
whiteSpace?: 'normal' | 'nowrap' | 'pre' | 'pre-wrap' | 'pre-line' | 'initial' | 'inherit';
|
|
12
12
|
/** Array of keyboard shortcut keys to display (e.g., ['Cmd', 'S'] or ['Ctrl', 'Enter']) */
|
|
13
13
|
shortcuts?: string[];
|
|
14
|
+
/** Controlled visibility state */
|
|
15
|
+
open?: boolean;
|
|
16
|
+
/** Callback fired when visibility changes */
|
|
17
|
+
onOpenChange?: (open: boolean) => void;
|
|
14
18
|
}
|
|
15
|
-
declare const Tooltip: ({ children, title, hideTooltip, delayShow, whiteSpace, placement, className, shortcuts, }: TooltipProps) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
declare const Tooltip: ({ children, title, hideTooltip, delayShow, whiteSpace, placement, className, shortcuts, open, onOpenChange, }: TooltipProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
20
|
export default Tooltip;
|