stratosphere-ui 0.4.0-beta1 → 0.4.0-beta3

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 +1,2 @@
1
1
  export * from './types';
2
+ export * from './utils';
@@ -0,0 +1,4 @@
1
+ import { Dictionary } from 'lodash';
2
+ import { GenericDataType } from './types';
3
+ export declare const dataItemComparator: <DataItem extends GenericDataType>(a: DataItem, b: DataItem) => boolean;
4
+ export declare const getGroupedDataItems: <DataItem extends GenericDataType>(items: DataItem[]) => Dictionary<DataItem[]>;
@@ -34,5 +34,5 @@ export interface SelectSyncOptions<Values extends FieldValues, DataItem extends
34
34
  options: Dictionary<DataItem[]>;
35
35
  selectedItems: DataItem[];
36
36
  setSelectedItems: Dispatch<SetStateAction<DataItem[]>>;
37
- valueMode: FormValueMode;
37
+ valueMode?: FormValueMode;
38
38
  }
@@ -12,7 +12,7 @@ export interface SelectProps<DataItem extends GenericDataType, Values extends Fi
12
12
  getItemText: (data: DataItem) => string;
13
13
  menuClassName?: string;
14
14
  multi?: true;
15
- options: DataItem[];
15
+ options?: DataItem[];
16
16
  showDirty?: boolean;
17
17
  }
18
18
  export declare const Select: <DataItem extends GenericDataType, Values extends FieldValues>({ buttonColor, className, disabled, dropdownIcon, formValueMode, getItemText, isRequired, labelText, menuClassName, multi, name, options: optionsArray, showDirty, }: SelectProps<DataItem, Values>) => JSX.Element;
@@ -2,6 +2,5 @@ export * from './useDebouncedValue';
2
2
  export * from './useFieldColor';
3
3
  export * from './useFormValues';
4
4
  export * from './useOutsideClick';
5
- export * from './usePrevious';
6
5
  export * from './useTypeaheadQuery';
7
6
  export * from './useValueChangeEffect';
@@ -1,2 +1,2 @@
1
- import { DependencyList, EffectCallback } from 'react';
2
- export declare const useValueChangeEffect: <Value>(value: Value, effect: EffectCallback, deps?: DependencyList) => void;
1
+ import { EffectCallback } from 'react';
2
+ export declare const useValueChangeEffect: <Value>(value: Value, effect: EffectCallback) => void;