@bolttech/molecules-dropdown 0.1.7 → 0.1.9
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bolttech/molecules-dropdown",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.9",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"@bolttech/atoms-icon": "0.0.1",
|
|
6
6
|
"@bolttech/atoms-input": "0.0.1"
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
"types": "./src/index.d.ts",
|
|
11
11
|
"peerDependencies": {
|
|
12
12
|
"@bolttech/atoms-select": "0.1.6",
|
|
13
|
+
"@edirect/frontend-foundations": "0.0.36",
|
|
13
14
|
"jest-styled-components": "7.1.1",
|
|
14
15
|
"react": "18.2.0",
|
|
15
16
|
"styled-components": "5.3.6"
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { DropdownProps } from './molecules-dropdown.type';
|
|
3
|
-
export declare const Dropdown: ({ label, variant, required, hasError, optionList, disabled, errorMessage, urlFilterOptions, dataTestId, filterOptionsParam, selectedOption, setSelectedOption, placeholder }: DropdownProps) => JSX.Element;
|
|
3
|
+
export declare const Dropdown: ({ label, variant, required, hasError, optionList, disabled, errorMessage, urlFilterOptions, dataTestId, filterOptionsParam, selectedOption, setSelectedOption, placeholder, }: DropdownProps) => JSX.Element;
|
|
@@ -160,7 +160,9 @@ export type DropdownOptionsWithHeadersProps = DefaultProps & {
|
|
|
160
160
|
@property setShowSelectComponent - A function to set the visibility of the dropdown
|
|
161
161
|
@property showSelectComponent - A boolean indicating the visibility of the dropdown
|
|
162
162
|
@property onChangeInputValue - A function to set the input value of the dropdown
|
|
163
|
+
@property onChangeInputLabel - A function to set the input label of the dropdown
|
|
163
164
|
@property inputValue - A string representing the input value of the dropdown
|
|
165
|
+
@property inputLabel - A string representing the input value of the dropdown that will show on field
|
|
164
166
|
@property setSelectedOptionOnInputValue - A function to set the selected option based on the input value
|
|
165
167
|
@property inputRef - A ref to the input element of the dropdown
|
|
166
168
|
*/
|
|
@@ -168,7 +170,9 @@ export type ReusableDropdownComponentProps = DefaultProps & {
|
|
|
168
170
|
setShowSelectComponent: React.Dispatch<React.SetStateAction<boolean>>;
|
|
169
171
|
showSelectComponent: boolean;
|
|
170
172
|
onChangeInputValue: React.Dispatch<React.SetStateAction<string>>;
|
|
173
|
+
onChangeInputLabel: React.Dispatch<React.SetStateAction<string>>;
|
|
171
174
|
inputValue: string;
|
|
175
|
+
inputLabel: string;
|
|
172
176
|
setSelectedOptionOnInputValue: () => void;
|
|
173
177
|
inputRef: React.RefObject<HTMLInputElement>;
|
|
174
178
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ReusableDropdownComponentProps } from './molecules-dropdown.type';
|
|
3
|
-
export declare const ReusableDropdownComponent: ({ label, variant, required, inputValue, hasError, disabled, errorMessage, onChangeInputValue, setShowSelectComponent, showSelectComponent, setSelectedOptionOnInputValue, inputRef, dataTestId, placeholder, }: ReusableDropdownComponentProps) => JSX.Element;
|
|
3
|
+
export declare const ReusableDropdownComponent: ({ label, variant, required, inputValue, inputLabel, hasError, disabled, errorMessage, onChangeInputValue, onChangeInputLabel, setShowSelectComponent, showSelectComponent, setSelectedOptionOnInputValue, inputRef, dataTestId, placeholder, }: ReusableDropdownComponentProps) => JSX.Element;
|