stratosphere-ui 3.1.7 → 3.1.9

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.
@@ -1,4 +1,4 @@
1
- import { ComponentProps, FC, HTMLProps, MouseEvent } from 'react';
1
+ import { ComponentProps, FC, HTMLProps, MouseEvent, TouchEvent } from 'react';
2
2
  export declare const BADGE_COLORS: readonly ["primary", "secondary", "accent", "neutral", "info", "success", "warning", "error", "ghost"];
3
3
  export declare const BADGE_SIZES: readonly ["xl", "lg", "md", "sm", "xs"];
4
4
  export type BadgeColor = (typeof BADGE_COLORS)[number];
@@ -8,7 +8,7 @@ export interface BadgeProps extends Omit<HTMLProps<HTMLDivElement>, 'size'> {
8
8
  dash?: boolean;
9
9
  dismissable?: boolean;
10
10
  icon?: FC<ComponentProps<'svg'>>;
11
- onDismiss?: (event: MouseEvent<HTMLButtonElement>) => void;
11
+ onDismiss?: (event: MouseEvent<HTMLButtonElement> | TouchEvent<HTMLButtonElement>) => void;
12
12
  outline?: boolean;
13
13
  size?: BadgeSize;
14
14
  soft?: boolean;
@@ -5,6 +5,7 @@ export type UseTypeaheadSelectOptions<DataItem extends GenericDataType, Values e
5
5
  export declare const useTypeaheadSelect: <DropdownElement extends HTMLElement, DataItem extends GenericDataType, Values extends FieldValues>({ debounceTime, defaultShowDropdown, onDebouncedChange, onShowDropdown, }: UseTypeaheadSelectOptions<DataItem, Values>) => {
6
6
  clearSelectedItem: (index: number) => void;
7
7
  dropdownRef: import('react').RefObject<DropdownElement>;
8
+ dummyInputRef: import('react').MutableRefObject<HTMLInputElement | null>;
8
9
  query: string;
9
10
  showDropdown: boolean;
10
11
  searchInputRef: import('react').MutableRefObject<HTMLInputElement | null>;
@@ -1,2 +1,2 @@
1
1
  import { RefObject } from 'react';
2
- export declare const useOutsideClick: (ref: RefObject<HTMLElement>, onClick: (event: DocumentEventMap["mousedown"]) => void) => void;
2
+ export declare const useOutsideClick: (ref: RefObject<HTMLElement>, onClick: (event: DocumentEventMap["mousedown"] | TouchEvent) => void) => void;