@q1travel/design-system 0.6.1 → 0.7.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.
@@ -886,7 +886,7 @@ declare type NativeInputProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'id'
886
886
 
887
887
  declare type NativeInputProps_2 = Omit<InputHTMLAttributes<HTMLInputElement>, 'type'>;
888
888
 
889
- export declare function Navigation({ className, ...props }: NavigationProps): JSX.Element;
889
+ export declare function Navigation({ className, orientation, ...props }: NavigationProps): JSX.Element;
890
890
 
891
891
  export declare function NavigationGroup({ label, icon, expanded, defaultExpanded, onExpandedChange, children, }: NavigationGroupProps): JSX.Element;
892
892
 
@@ -924,6 +924,7 @@ export declare type NavigationItemProps = NavigationItemAsLink | NavigationItemA
924
924
 
925
925
  export declare type NavigationProps = HTMLAttributes<HTMLElement> & {
926
926
  'aria-label': string;
927
+ orientation?: 'vertical' | 'horizontal';
927
928
  };
928
929
 
929
930
  export declare function NavigationSection({ label, action, children, className, ...props }: NavigationSectionProps): JSX.Element;
@@ -1078,6 +1079,44 @@ export declare function ScrollerWithButtons({ axis, contentName, label, children
1078
1079
  children: ReactNode;
1079
1080
  }): JSX.Element;
1080
1081
 
1082
+ export declare function SearchDialog({ open, onOpenChange, query, onQueryChange, sections, onSelect, renderTrigger, label, placeholder, emptyTitle, clearQueryLabel, }: SearchDialogProps): JSX.Element;
1083
+
1084
+ export declare type SearchDialogItem = {
1085
+ id: string;
1086
+ label: string;
1087
+ description?: string;
1088
+ disabled?: boolean;
1089
+ };
1090
+
1091
+ export declare type SearchDialogProps = {
1092
+ open: boolean;
1093
+ onOpenChange: (open: boolean) => void;
1094
+ query: string;
1095
+ onQueryChange: (query: string) => void;
1096
+ sections: SearchDialogSection[];
1097
+ onSelect: (item: SearchDialogItem) => void;
1098
+ renderTrigger: (props: SearchDialogTriggerProps) => ReactNode;
1099
+ label: string;
1100
+ placeholder?: string;
1101
+ emptyTitle?: string;
1102
+ clearQueryLabel?: string;
1103
+ };
1104
+
1105
+ export declare type SearchDialogSection = {
1106
+ id: string;
1107
+ heading?: string;
1108
+ items: SearchDialogItem[];
1109
+ };
1110
+
1111
+ export declare type SearchDialogTriggerProps = {
1112
+ ref: (node: HTMLButtonElement | null) => void;
1113
+ type: 'button';
1114
+ onClick: () => void;
1115
+ 'aria-haspopup': 'dialog';
1116
+ 'aria-expanded': boolean;
1117
+ 'aria-controls': string;
1118
+ };
1119
+
1081
1120
  export declare function SearchInput({ id, ariaLabel, placeholder, defaultValue, disabled, loading, kbdHint, icon, }: {
1082
1121
  id: string;
1083
1122
  ariaLabel: string;