@dfds-ui/react-select 2.2.0-alpha.98e68873 → 2.2.0-alpha.9bb1ab0f
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/ReactSelect.d.ts +17 -17
- package/cjs/ReactSelect.d.ts +17 -17
- package/package.json +6 -6
package/ReactSelect.d.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import Select, { createFilter, GroupBase, OptionsOrGroups, SingleValue } from 'react-select';
|
|
3
3
|
import { BaseFieldProps } from '@dfds-ui/forms/types';
|
|
4
|
-
export
|
|
5
|
-
export
|
|
4
|
+
export type BaseReactSelectProps = Omit<React.PropsWithRef<Select>, 'size' | 'css'>;
|
|
5
|
+
export type Size = 'small' | 'medium' | 'large';
|
|
6
6
|
export declare const ReactSelectWrapper: import("@emotion/styled").StyledComponent<{
|
|
7
|
-
theme?: import("@emotion/react").Theme
|
|
8
|
-
as?: React.ElementType
|
|
7
|
+
theme?: import("@emotion/react").Theme;
|
|
8
|
+
as?: React.ElementType;
|
|
9
9
|
} & {
|
|
10
|
-
error?: boolean
|
|
11
|
-
size?: string
|
|
12
|
-
arrow?: boolean
|
|
13
|
-
selected?: boolean
|
|
10
|
+
error?: boolean;
|
|
11
|
+
size?: string;
|
|
12
|
+
arrow?: boolean;
|
|
13
|
+
selected?: boolean;
|
|
14
14
|
}, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
15
15
|
export declare const Menu: (props: any) => React.JSX.Element;
|
|
16
|
-
export
|
|
16
|
+
export type SelectFieldProps<T> = BaseFieldProps & {
|
|
17
17
|
defaultValue?: SingleValue<T>;
|
|
18
18
|
className?: string;
|
|
19
19
|
components?: any;
|
|
@@ -42,19 +42,19 @@ export declare type SelectFieldProps<T> = BaseFieldProps & {
|
|
|
42
42
|
/** @deprecated Use dfds-ui/forms */
|
|
43
43
|
export declare const ReactSelect: React.ForwardRefExoticComponent<BaseFieldProps & {
|
|
44
44
|
defaultValue?: unknown;
|
|
45
|
-
className?: string
|
|
45
|
+
className?: string;
|
|
46
46
|
components?: any;
|
|
47
47
|
value?: unknown;
|
|
48
|
-
visualSize?: Size
|
|
48
|
+
visualSize?: Size;
|
|
49
49
|
options?: OptionsOrGroups<unknown, GroupBase<unknown>> | undefined;
|
|
50
|
-
isSearchable?: boolean
|
|
50
|
+
isSearchable?: boolean;
|
|
51
51
|
onSelect?: ((value: unknown) => void) | undefined;
|
|
52
52
|
onChange?: ((value: unknown) => void) | undefined;
|
|
53
|
-
onBlur?: (
|
|
54
|
-
menuIsOpen?: boolean
|
|
55
|
-
placeholder?: string
|
|
56
|
-
assistiveText?: string
|
|
57
|
-
errorMessage?: string
|
|
53
|
+
onBlur?: (value: any) => void;
|
|
54
|
+
menuIsOpen?: boolean;
|
|
55
|
+
placeholder?: string;
|
|
56
|
+
assistiveText?: string;
|
|
57
|
+
errorMessage?: string;
|
|
58
58
|
/**
|
|
59
59
|
* Configuration object passed to react-select createFilter function to create [custom filter
|
|
60
60
|
* logic](https://react-select.com/advanced#custom-filter-logic)
|
package/cjs/ReactSelect.d.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import Select, { createFilter, GroupBase, OptionsOrGroups, SingleValue } from 'react-select';
|
|
3
3
|
import { BaseFieldProps } from '@dfds-ui/forms/types';
|
|
4
|
-
export
|
|
5
|
-
export
|
|
4
|
+
export type BaseReactSelectProps = Omit<React.PropsWithRef<Select>, 'size' | 'css'>;
|
|
5
|
+
export type Size = 'small' | 'medium' | 'large';
|
|
6
6
|
export declare const ReactSelectWrapper: import("@emotion/styled").StyledComponent<{
|
|
7
|
-
theme?: import("@emotion/react").Theme
|
|
8
|
-
as?: React.ElementType
|
|
7
|
+
theme?: import("@emotion/react").Theme;
|
|
8
|
+
as?: React.ElementType;
|
|
9
9
|
} & {
|
|
10
|
-
error?: boolean
|
|
11
|
-
size?: string
|
|
12
|
-
arrow?: boolean
|
|
13
|
-
selected?: boolean
|
|
10
|
+
error?: boolean;
|
|
11
|
+
size?: string;
|
|
12
|
+
arrow?: boolean;
|
|
13
|
+
selected?: boolean;
|
|
14
14
|
}, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
15
15
|
export declare const Menu: (props: any) => React.JSX.Element;
|
|
16
|
-
export
|
|
16
|
+
export type SelectFieldProps<T> = BaseFieldProps & {
|
|
17
17
|
defaultValue?: SingleValue<T>;
|
|
18
18
|
className?: string;
|
|
19
19
|
components?: any;
|
|
@@ -42,19 +42,19 @@ export declare type SelectFieldProps<T> = BaseFieldProps & {
|
|
|
42
42
|
/** @deprecated Use dfds-ui/forms */
|
|
43
43
|
export declare const ReactSelect: React.ForwardRefExoticComponent<BaseFieldProps & {
|
|
44
44
|
defaultValue?: unknown;
|
|
45
|
-
className?: string
|
|
45
|
+
className?: string;
|
|
46
46
|
components?: any;
|
|
47
47
|
value?: unknown;
|
|
48
|
-
visualSize?: Size
|
|
48
|
+
visualSize?: Size;
|
|
49
49
|
options?: OptionsOrGroups<unknown, GroupBase<unknown>> | undefined;
|
|
50
|
-
isSearchable?: boolean
|
|
50
|
+
isSearchable?: boolean;
|
|
51
51
|
onSelect?: ((value: unknown) => void) | undefined;
|
|
52
52
|
onChange?: ((value: unknown) => void) | undefined;
|
|
53
|
-
onBlur?: (
|
|
54
|
-
menuIsOpen?: boolean
|
|
55
|
-
placeholder?: string
|
|
56
|
-
assistiveText?: string
|
|
57
|
-
errorMessage?: string
|
|
53
|
+
onBlur?: (value: any) => void;
|
|
54
|
+
menuIsOpen?: boolean;
|
|
55
|
+
placeholder?: string;
|
|
56
|
+
assistiveText?: string;
|
|
57
|
+
errorMessage?: string;
|
|
58
58
|
/**
|
|
59
59
|
* Configuration object passed to react-select createFilter function to create [custom filter
|
|
60
60
|
* logic](https://react-select.com/advanced#custom-filter-logic)
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "react-selected based components",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"private": false,
|
|
6
|
-
"version": "2.2.0-alpha.
|
|
6
|
+
"version": "2.2.0-alpha.9bb1ab0f",
|
|
7
7
|
"sideEffects": false,
|
|
8
8
|
"main": "./cjs/index.js",
|
|
9
9
|
"module": "./index.js",
|
|
@@ -11,17 +11,17 @@
|
|
|
11
11
|
"typings": "./index.d.ts",
|
|
12
12
|
"peerDependencies": {
|
|
13
13
|
"@emotion/react": "11.14.0",
|
|
14
|
-
"@emotion/styled": "11.14.
|
|
14
|
+
"@emotion/styled": "11.14.1",
|
|
15
15
|
"react": ">= 18.3.1",
|
|
16
16
|
"react-dom": ">= 18.3.1",
|
|
17
17
|
"react-select": "^5.0.0"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@dfds-ui/forms": "2.2.0-alpha.
|
|
21
|
-
"@dfds-ui/react-components": "2.2.0-alpha.
|
|
22
|
-
"@dfds-ui/theme": "2.2.0-alpha.
|
|
20
|
+
"@dfds-ui/forms": "2.2.0-alpha.9bb1ab0f",
|
|
21
|
+
"@dfds-ui/react-components": "2.2.0-alpha.9bb1ab0f",
|
|
22
|
+
"@dfds-ui/theme": "2.2.0-alpha.9bb1ab0f"
|
|
23
23
|
},
|
|
24
|
-
"gitHead": "
|
|
24
|
+
"gitHead": "9bb1ab0fca74964da6edd580e53f175a223b4f49",
|
|
25
25
|
"publishConfig": {
|
|
26
26
|
"access": "public"
|
|
27
27
|
}
|