@bolttech/molecules-dropdown 0.34.0 → 0.34.1
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/{index.cjs → index.cjs.js} +1140 -482
- package/index.d.ts +1 -0
- package/package.json +12 -15
- package/src/lib/molecules-dropdown-with-header-options.d.ts +17 -18
- package/src/lib/molecules-dropdown.d.ts +17 -18
- package/src/lib/molecules-dropdown.styles.d.ts +575 -517
- package/src/lib/molecules-dropdown.type.d.ts +1 -1
package/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./src/index";
|
package/package.json
CHANGED
|
@@ -1,20 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bolttech/molecules-dropdown",
|
|
3
|
-
"version": "0.34.
|
|
4
|
-
"main": "./index.cjs",
|
|
5
|
-
"type": "commonjs",
|
|
6
|
-
"types": "./src/index.d.ts",
|
|
3
|
+
"version": "0.34.1",
|
|
7
4
|
"dependencies": {
|
|
8
|
-
"
|
|
9
|
-
"@bolttech/atoms-
|
|
10
|
-
"
|
|
11
|
-
"@bolttech/default-theme": "0.14.1",
|
|
12
|
-
"@bolttech/form-engine": "3.1.0-beta.21",
|
|
13
|
-
"@bolttech/frontend-foundations": "0.10.0",
|
|
5
|
+
"react": "19.1.1",
|
|
6
|
+
"@bolttech/atoms-select": "0.24.1",
|
|
7
|
+
"react-dom": "19.1.1",
|
|
14
8
|
"@bolttech/ui-utils": "0.5.0",
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"
|
|
9
|
+
"styled-components": "6.1.1",
|
|
10
|
+
"@bolttech/atoms-icon": "0.24.0",
|
|
11
|
+
"@bolttech/atoms-input": "0.28.1",
|
|
12
|
+
"@bolttech/default-theme": "0.15.0"
|
|
18
13
|
},
|
|
19
|
-
"
|
|
20
|
-
|
|
14
|
+
"main": "./index.cjs.js",
|
|
15
|
+
"type": "commonjs",
|
|
16
|
+
"types": "./index.d.ts"
|
|
17
|
+
}
|
|
@@ -1,24 +1,23 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { OptionWithHeaderType, OptionType } from '@bolttech/atoms-select';
|
|
3
2
|
export declare const DropdownWithHeaders: import("react").ForwardRefExoticComponent<Pick<import("react").DOMAttributes<HTMLInputElement>, "onKeyUp" | "onKeyDown"> & import("@bolttech/ui-utils").DefaultProps & {
|
|
4
3
|
label: string;
|
|
5
|
-
placeholder?: string
|
|
6
|
-
disabled?: boolean
|
|
7
|
-
id?: string
|
|
8
|
-
dataTestId?: string
|
|
9
|
-
errorMessage?: string
|
|
10
|
-
helperMessage?: string
|
|
11
|
-
required?: boolean
|
|
12
|
-
variant?: import("./molecules-dropdown.type").StyleVariants
|
|
13
|
-
disableSearch?: boolean
|
|
14
|
-
onBlur?: ((value?: unknown) => void) | ((evt:
|
|
15
|
-
onFocus?: ((value?: unknown) => void) | ((evt:
|
|
4
|
+
placeholder?: string;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
id?: string;
|
|
7
|
+
dataTestId?: string;
|
|
8
|
+
errorMessage?: string;
|
|
9
|
+
helperMessage?: string;
|
|
10
|
+
required?: boolean;
|
|
11
|
+
variant?: import("./molecules-dropdown.type").StyleVariants;
|
|
12
|
+
disableSearch?: boolean;
|
|
13
|
+
onBlur?: ((value?: unknown) => void) | ((evt: React.FocusEvent<HTMLElement, Element>) => void);
|
|
14
|
+
onFocus?: ((value?: unknown) => void) | ((evt: React.FocusEvent<HTMLElement, Element>) => void);
|
|
16
15
|
} & {
|
|
17
|
-
optionList?: OptionWithHeaderType[]
|
|
18
|
-
filterOptionsParam?: (
|
|
19
|
-
urlFilterOptions?: string
|
|
20
|
-
onChange: (selectedOption?: OptionType
|
|
21
|
-
value?: string
|
|
22
|
-
asyncOptionList?: boolean
|
|
16
|
+
optionList?: OptionWithHeaderType[];
|
|
17
|
+
filterOptionsParam?: (inputValue: string, optionList?: OptionWithHeaderType[], urlValue?: string) => OptionWithHeaderType[] | Promise<OptionWithHeaderType[]>;
|
|
18
|
+
urlFilterOptions?: string;
|
|
19
|
+
onChange: (selectedOption?: OptionType) => void | React.Dispatch<React.SetStateAction<OptionType>>;
|
|
20
|
+
value?: string;
|
|
21
|
+
asyncOptionList?: boolean;
|
|
23
22
|
} & import("react").RefAttributes<HTMLElement>>;
|
|
24
23
|
export default DropdownWithHeaders;
|
|
@@ -1,24 +1,23 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { OptionType } from '@bolttech/atoms-select';
|
|
3
2
|
export declare const Dropdown: import("react").ForwardRefExoticComponent<Pick<import("react").DOMAttributes<HTMLInputElement>, "onKeyUp" | "onKeyDown"> & import("@bolttech/ui-utils").DefaultProps & {
|
|
4
3
|
label: string;
|
|
5
|
-
placeholder?: string
|
|
6
|
-
disabled?: boolean
|
|
7
|
-
id?: string
|
|
8
|
-
dataTestId?: string
|
|
9
|
-
errorMessage?: string
|
|
10
|
-
helperMessage?: string
|
|
11
|
-
required?: boolean
|
|
12
|
-
variant?: import("./molecules-dropdown.type").StyleVariants
|
|
13
|
-
disableSearch?: boolean
|
|
14
|
-
onBlur?: ((value?: unknown) => void) | ((evt:
|
|
15
|
-
onFocus?: ((value?: unknown) => void) | ((evt:
|
|
4
|
+
placeholder?: string;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
id?: string;
|
|
7
|
+
dataTestId?: string;
|
|
8
|
+
errorMessage?: string;
|
|
9
|
+
helperMessage?: string;
|
|
10
|
+
required?: boolean;
|
|
11
|
+
variant?: import("./molecules-dropdown.type").StyleVariants;
|
|
12
|
+
disableSearch?: boolean;
|
|
13
|
+
onBlur?: ((value?: unknown) => void) | ((evt: React.FocusEvent<HTMLElement, Element>) => void);
|
|
14
|
+
onFocus?: ((value?: unknown) => void) | ((evt: React.FocusEvent<HTMLElement, Element>) => void);
|
|
16
15
|
} & {
|
|
17
|
-
optionList?: OptionType[]
|
|
18
|
-
filterOptionsParam?: (
|
|
19
|
-
urlFilterOptions?: string
|
|
20
|
-
onChange: (selectedOption?: OptionType
|
|
21
|
-
value?: string
|
|
22
|
-
asyncOptionList?: boolean
|
|
16
|
+
optionList?: OptionType[];
|
|
17
|
+
filterOptionsParam?: (inputValue: string, optionList?: OptionType[], urlValue?: string) => OptionType[] | Promise<OptionType[]>;
|
|
18
|
+
urlFilterOptions?: string;
|
|
19
|
+
onChange: (selectedOption?: OptionType) => void | React.Dispatch<React.SetStateAction<OptionType>>;
|
|
20
|
+
value?: string;
|
|
21
|
+
asyncOptionList?: boolean;
|
|
23
22
|
} & import("react").RefAttributes<HTMLElement>>;
|
|
24
23
|
export default Dropdown;
|