react-magma-dom 3.2.0-next.3 → 3.2.0-next.4

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.
@@ -4,9 +4,27 @@ import { SelectOptions } from '../Select';
4
4
  declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react/types-6-0").ReactFramework, import("@storybook/react/types-6-0").Args>;
5
5
  export default _default;
6
6
  export declare const Default: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, ComboboxProps<any>>;
7
- export declare const Multi: (props: MultiComboboxProps<SelectOptions>) => JSX.Element;
7
+ export declare const Multi: {
8
+ (props: MultiComboboxProps<SelectOptions>): JSX.Element;
9
+ args: {
10
+ labelText: string;
11
+ isMulti: boolean;
12
+ isClearable: boolean;
13
+ errorMessage: string;
14
+ };
15
+ };
8
16
  export declare const ErrorMessage: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, ComboboxProps<any>>;
9
17
  export declare const HelperMessage: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, ComboboxProps<any>>;
10
18
  export declare const Inverse: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, ComboboxProps<any>>;
11
19
  export declare const LeftAlignedLabel: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, ComboboxProps<any>>;
12
20
  export declare const LeftAlignedLabelWithContainer: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, ComboboxProps<any>>;
21
+ export declare const Typeahead: {
22
+ (args: any): JSX.Element;
23
+ args: {
24
+ isTypeahead: boolean;
25
+ isClearable: boolean;
26
+ isMulti: boolean;
27
+ disableCreateItem: boolean;
28
+ largeDataSet: boolean;
29
+ };
30
+ };
@@ -14,6 +14,7 @@ interface ComboboxInputProps<T> {
14
14
  disabled?: boolean;
15
15
  isInverse?: boolean;
16
16
  isLoading?: boolean;
17
+ isTypeahead?: boolean;
17
18
  onInputBlur?: (event: React.FocusEvent) => void;
18
19
  onInputFocus?: (event: React.FocusEvent) => void;
19
20
  onInputKeyDown?: (event: React.KeyboardEvent) => void;
@@ -94,6 +94,13 @@ export interface ComboboxProps<T extends SelectOptions> extends Omit<UseCombobox
94
94
  * Style properties for the component container element
95
95
  */
96
96
  containerStyle?: React.CSSProperties;
97
+ /**
98
+ * When false, the selected item gets validated to ensure it's in the original `items` list.
99
+ * When using Combobox for typeahead with a large `items` list, set this boolean to true to allow the selected item to not be part of the original `items` list.
100
+ * In addition, when this is true and `isLoading` is used, the loading indicator will appear on the list instead of the input
101
+ * @default false
102
+ */
103
+ isTypeahead?: boolean;
97
104
  }
98
105
  export interface MultiComboboxProps<T extends SelectOptions> extends UseMultipleSelectionProps<T>, Omit<ComboboxProps<T>, 'onStateChange' | 'stateReducer' | 'isMulti'>, InternalMultiProps<T> {
99
106
  /**
@@ -12,6 +12,7 @@ interface ItemsListProps<T> {
12
12
  itemToString: (item: T) => string;
13
13
  maxHeight?: number | string;
14
14
  menuStyle?: React.CSSProperties;
15
+ isLoading?: boolean;
15
16
  }
16
17
  export declare function ItemsList<T>(props: ItemsListProps<T>): JSX.Element;
17
18
  export {};