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.
- package/dist/common/index.d.ts +1 -0
- package/dist/common/utils.d.ts +4 -0
- package/dist/components/Form/types.d.ts +1 -1
- package/dist/components/Select/Select.d.ts +1 -1
- package/dist/hooks/index.d.ts +0 -1
- package/dist/hooks/useValueChangeEffect.d.ts +2 -2
- package/dist/stratosphere-ui.js +31409 -31426
- package/package.json +1 -1
- package/dist/hooks/usePrevious.d.ts +0 -1
package/dist/common/index.d.ts
CHANGED
|
@@ -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
|
|
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
|
|
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;
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const useValueChangeEffect: <Value>(value: Value, effect: EffectCallback
|
|
1
|
+
import { EffectCallback } from 'react';
|
|
2
|
+
export declare const useValueChangeEffect: <Value>(value: Value, effect: EffectCallback) => void;
|