@stenajs-webui/select 19.0.0-next.8 → 19.0.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.
- package/dist/SelectTheme.d.ts +1 -0
- package/dist/components/ui/CreatableSelect.d.ts +13 -0
- package/dist/components/ui/MultiSelect.d.ts +2 -3
- package/dist/components/ui/Select.d.ts +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +330 -286
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +6 -5
package/dist/SelectTheme.d.ts
CHANGED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { CreatableProps } from "react-select/creatable";
|
|
3
|
+
import { GroupBase } from "react-select/dist/declarations/src/types";
|
|
4
|
+
import { SelectVariant } from "../../util/StylesBuilder";
|
|
5
|
+
export interface CreatableSelectProps<T = {
|
|
6
|
+
label: string;
|
|
7
|
+
value: string;
|
|
8
|
+
}> extends CreatableProps<T, false, GroupBase<T>> {
|
|
9
|
+
variant?: SelectVariant;
|
|
10
|
+
isMulti?: false;
|
|
11
|
+
ariaLabelClear?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare function CreatableSelect<T>({ variant, styles, isMulti, components, ariaLabelClear, ...selectProps }: CreatableSelectProps<T>): JSX.Element;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { Props, SelectComponentsConfig } from "react-select";
|
|
2
|
+
import { GroupBase, Props, SelectComponentsConfig } from "react-select";
|
|
3
3
|
import { SelectVariant } from "../../util/StylesBuilder";
|
|
4
|
-
import { GroupBase } from "react-select/dist/declarations/src/types";
|
|
5
4
|
export interface MultiSelectProps<TOption = {
|
|
6
5
|
label: string;
|
|
7
6
|
value: string;
|
|
@@ -10,4 +9,4 @@ export interface MultiSelectProps<TOption = {
|
|
|
10
9
|
isMulti?: true;
|
|
11
10
|
}
|
|
12
11
|
export declare type MultiSelectComponentsConfig<TOption> = SelectComponentsConfig<TOption, true, GroupBase<TOption>>;
|
|
13
|
-
export declare function MultiSelect<TOption>({ variant, styles, isMulti, ...selectProps }: MultiSelectProps<TOption>): JSX.Element;
|
|
12
|
+
export declare function MultiSelect<TOption>({ variant, styles, isMulti, components, ...selectProps }: MultiSelectProps<TOption>): JSX.Element;
|
|
@@ -8,4 +8,4 @@ export interface SelectProps<T = {
|
|
|
8
8
|
variant?: SelectVariant;
|
|
9
9
|
isMulti?: false;
|
|
10
10
|
}
|
|
11
|
-
export declare function Select<T>({ variant, styles, isMulti, ...selectProps }: SelectProps<T>): JSX.Element;
|
|
11
|
+
export declare function Select<T>({ variant, styles, isMulti, components, ...selectProps }: SelectProps<T>): JSX.Element;
|
package/dist/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export * from "./components/ui/MultiSelect";
|
|
|
4
4
|
export * from "./components/ui/OverflowingMultiSelect";
|
|
5
5
|
export * from "./components/ui/Select";
|
|
6
6
|
export * from "./components/ui/GroupedMultiSelect";
|
|
7
|
+
export * from "./components/ui/CreatableSelect";
|
|
7
8
|
export * from "./components/ui/ChipMultiSelect/ChipMultiSelect";
|
|
8
9
|
export * from "./components/ui/ChipMultiSelect/GroupedChipMultiSelect";
|
|
9
10
|
export * from "./SelectTheme";
|