@q1travel/design-system 0.30.2 → 0.30.3

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.
@@ -12,6 +12,7 @@ import { ForwardRefExoticComponent } from 'react';
12
12
  import { HTMLAttributes } from 'react';
13
13
  import { InputHTMLAttributes } from 'react';
14
14
  import { JSX } from 'react';
15
+ import { KeyboardEvent as KeyboardEvent_2 } from 'react';
15
16
  import { KeyboardEventHandler } from 'react';
16
17
  import { MouseEvent as MouseEvent_2 } from 'react';
17
18
  import { MouseEventHandler } from 'react';
@@ -2096,7 +2097,7 @@ export declare function ScrollerWithButtons({ axis, contentName, label, children
2096
2097
  children: ReactNode;
2097
2098
  }): JSX.Element;
2098
2099
 
2099
- export declare function SearchDialog({ open, onOpenChange, query, onQueryChange, sections, onSelect, renderTrigger, label, placeholder, emptyTitle, clearQueryLabel, footer, }: SearchDialogProps): JSX.Element;
2100
+ export declare function SearchDialog({ open, onOpenChange, query, onQueryChange, sections, onSelect, renderTrigger, label, placeholder, emptyTitle, clearQueryLabel, footer, onEscapeKeyDown, onInputKeyDown, }: SearchDialogProps): JSX.Element;
2100
2101
 
2101
2102
  export declare type SearchDialogItem = {
2102
2103
  id: string;
@@ -2129,6 +2130,13 @@ export declare type SearchDialogProps = {
2129
2130
  emptyTitle?: string;
2130
2131
  clearQueryLabel?: string;
2131
2132
  footer?: ReactNode;
2133
+ /** Esc 关闭前调用;preventDefault 可接管返回等操作。 */
2134
+ onEscapeKeyDown?: (event: KeyboardEvent) => void;
2135
+ /** 输入框键盘导航前调用;preventDefault 跳过内部处理,IME 期间不调用。 */
2136
+ onInputKeyDown?: (event: KeyboardEvent_2<HTMLInputElement>, context: {
2137
+ readonly activeItem?: SearchDialogItem;
2138
+ readonly activeSectionId?: string;
2139
+ }) => void;
2132
2140
  };
2133
2141
 
2134
2142
  export declare type SearchDialogSection = {