@rafal.lemieszewski/tide-ui 0.87.3 → 0.87.5
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/cjs/components/fundamental/command.cjs +1 -1
- package/dist/cjs/components/product/app-frame.cjs +1 -1
- package/dist/es/components/fundamental/command.js +38 -31
- package/dist/es/components/product/app-frame.js +402 -327
- package/dist/types/components/fundamental/command.d.ts +2 -1
- package/dist/types/components/index.d.ts +1 -1
- package/dist/types/components/product/app-frame.d.ts +23 -1
- package/package.json +1 -1
|
@@ -21,8 +21,9 @@ declare const Command: React.ForwardRefExoticComponent<Omit<{
|
|
|
21
21
|
vimBindings?: boolean;
|
|
22
22
|
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
23
23
|
interface CommandDialogProps extends DialogProps {
|
|
24
|
+
commandProps?: React.ComponentPropsWithoutRef<typeof Command>;
|
|
24
25
|
}
|
|
25
|
-
declare const CommandDialog: ({ children, ...props }: CommandDialogProps) => import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
declare const CommandDialog: ({ children, commandProps, ...props }: CommandDialogProps) => import("react/jsx-runtime").JSX.Element;
|
|
26
27
|
interface CommandInputProps extends Omit<React.ComponentPropsWithoutRef<typeof CommandPrimitive.Input>, "size">, Pick<VariantProps<typeof inputVariants>, "size"> {
|
|
27
28
|
/**
|
|
28
29
|
* Whether to show a clear button when value exists
|
|
@@ -89,7 +89,7 @@ export { Breadcrumb, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbP
|
|
|
89
89
|
export type { BreadcrumbPagePickerProps } from './fundamental/breadcrumb.js';
|
|
90
90
|
export { Sidebar, SidebarContent, SidebarFooter, SidebarHeader, SidebarInput, SidebarSearchButton, SidebarSearchTrigger, SidebarRail, SidebarSeparator, SidebarGroup, SidebarGroupAction, SidebarGroupLabel, SidebarGroupContent, SidebarMenu, SidebarMenuItem, SidebarMenuButton, SidebarMenuAction, SidebarMenuBadge, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubItem, SidebarMenuSubButton, SidebarInset, SidebarProvider, SidebarTrigger, useSidebar, } from './fundamental/sidebar.js';
|
|
91
91
|
export { AppFrame } from './product/app-frame.js';
|
|
92
|
-
export type { AppFrameProps, AppFrameNavItem, AppFrameUser, AppFrameTeam, AppFrameNavigationData, } from './product/app-frame.js';
|
|
92
|
+
export type { AppFrameProps, AppFrameNavItem, AppFrameUser, AppFrameTeam, AppFrameNavigationData, AppFrameSearchItem, } from './product/app-frame.js';
|
|
93
93
|
export { Drawer, DrawerPortal, DrawerOverlay, DrawerTrigger, DrawerClose, DrawerContent, DrawerHeader, DrawerFooter, DrawerTitle, DrawerDescription, } from './fundamental/drawer.js';
|
|
94
94
|
export { Sheet, SheetPortal, SheetOverlay, SheetTrigger, SheetClose, SheetContent, SheetHeader, SheetFooter, SheetTitle, SheetDescription, } from './fundamental/sheet.js';
|
|
95
95
|
export type { SheetProps, SheetContentProps } from './fundamental/sheet.js';
|
|
@@ -29,6 +29,18 @@ export interface AppFrameNavigationData {
|
|
|
29
29
|
intelligence: AppFrameNavItem[];
|
|
30
30
|
support: AppFrameNavItem[];
|
|
31
31
|
}
|
|
32
|
+
export interface AppFrameSearchItem {
|
|
33
|
+
/** Unique key for React reconciliation */
|
|
34
|
+
id: string;
|
|
35
|
+
/** Display label */
|
|
36
|
+
label: string;
|
|
37
|
+
/** Optional group heading; items with the same group are rendered together */
|
|
38
|
+
group?: string;
|
|
39
|
+
/** Optional icon — same value as <Icon name=…> */
|
|
40
|
+
icon?: React.ComponentType | string;
|
|
41
|
+
/** Called when the item is selected */
|
|
42
|
+
onSelect?: () => void;
|
|
43
|
+
}
|
|
32
44
|
export interface AppFrameProps {
|
|
33
45
|
/** Navigation data for all sections. If not provided, default mock data will be used. */
|
|
34
46
|
navigationData?: AppFrameNavigationData;
|
|
@@ -63,5 +75,15 @@ export interface AppFrameProps {
|
|
|
63
75
|
* @param url - The URL/path from the navigation item
|
|
64
76
|
*/
|
|
65
77
|
onNavigate?: (url: string) => void;
|
|
78
|
+
/** Fired whenever the search query changes. Use to trigger async fetching. */
|
|
79
|
+
onSearchChange?: (query: string) => void;
|
|
80
|
+
/**
|
|
81
|
+
* Pre-filtered results to display in the command palette.
|
|
82
|
+
* Rendered in a dedicated group above the built-in nav groups.
|
|
83
|
+
* Automatically sets shouldFilter={false} on the underlying Command.
|
|
84
|
+
*/
|
|
85
|
+
searchItems?: AppFrameSearchItem[];
|
|
86
|
+
/** Show a loading indicator while async results are being fetched. */
|
|
87
|
+
searchLoading?: boolean;
|
|
66
88
|
}
|
|
67
|
-
export declare function AppFrame({ navigationData, user, teams, defaultSidebarOpen, headerContent, headerTabs, headerActions, children, onNavigate, }: AppFrameProps): import("react/jsx-runtime").JSX.Element;
|
|
89
|
+
export declare function AppFrame({ navigationData, user, teams, defaultSidebarOpen, headerContent, headerTabs, headerActions, children, onNavigate, onSearchChange, searchItems, searchLoading, }: AppFrameProps): import("react/jsx-runtime").JSX.Element;
|
package/package.json
CHANGED