@sebgroup/green-react 1.0.0-beta.25 → 1.0.0-beta.26
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.esm.js +3 -1
- package/index.umd.js +3 -1
- package/lib/dropdown/dropdown.d.ts +1 -1
- package/package.json +3 -3
package/index.esm.js
CHANGED
|
@@ -2777,7 +2777,7 @@ const useDropdown = ({
|
|
|
2777
2777
|
display,
|
|
2778
2778
|
validator
|
|
2779
2779
|
}); // eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2780
|
-
}, [id,
|
|
2780
|
+
}, [id, texts, options, loop, multiSelect, searchable, searchFilter, compareWith, useValue, display]); // When validator changes
|
|
2781
2781
|
|
|
2782
2782
|
useEffect(() => {
|
|
2783
2783
|
if (!dropdown) return;
|
|
@@ -2815,6 +2815,7 @@ const useDropdown = ({
|
|
|
2815
2815
|
|
|
2816
2816
|
const Dropdown = ({
|
|
2817
2817
|
id,
|
|
2818
|
+
value,
|
|
2818
2819
|
options,
|
|
2819
2820
|
loop,
|
|
2820
2821
|
multiSelect,
|
|
@@ -2839,6 +2840,7 @@ const Dropdown = ({
|
|
|
2839
2840
|
multiSelectProps
|
|
2840
2841
|
} = useDropdown({
|
|
2841
2842
|
id,
|
|
2843
|
+
value,
|
|
2842
2844
|
options,
|
|
2843
2845
|
loop,
|
|
2844
2846
|
multiSelect,
|
package/index.umd.js
CHANGED
|
@@ -2783,7 +2783,7 @@
|
|
|
2783
2783
|
display,
|
|
2784
2784
|
validator
|
|
2785
2785
|
}); // eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2786
|
-
}, [id,
|
|
2786
|
+
}, [id, texts, options, loop, multiSelect, searchable, searchFilter, compareWith, useValue, display]); // When validator changes
|
|
2787
2787
|
|
|
2788
2788
|
React.useEffect(() => {
|
|
2789
2789
|
if (!dropdown) return;
|
|
@@ -2821,6 +2821,7 @@
|
|
|
2821
2821
|
|
|
2822
2822
|
const Dropdown = ({
|
|
2823
2823
|
id,
|
|
2824
|
+
value,
|
|
2824
2825
|
options,
|
|
2825
2826
|
loop,
|
|
2826
2827
|
multiSelect,
|
|
@@ -2845,6 +2846,7 @@
|
|
|
2845
2846
|
multiSelectProps
|
|
2846
2847
|
} = useDropdown({
|
|
2847
2848
|
id,
|
|
2849
|
+
value,
|
|
2848
2850
|
options,
|
|
2849
2851
|
loop,
|
|
2850
2852
|
multiSelect,
|
|
@@ -2,5 +2,5 @@ import { DropdownArgs, OnChange } from '@sebgroup/extract';
|
|
|
2
2
|
export interface DropdownProps extends DropdownArgs {
|
|
3
3
|
onChange?: OnChange;
|
|
4
4
|
}
|
|
5
|
-
export declare const Dropdown: ({ id, options, loop, multiSelect, searchable, searchFilter, compareWith, useValue, display, texts, onChange, validator, }: DropdownProps) => JSX.Element;
|
|
5
|
+
export declare const Dropdown: ({ id, value, options, loop, multiSelect, searchable, searchFilter, compareWith, useValue, display, texts, onChange, validator, }: DropdownProps) => JSX.Element;
|
|
6
6
|
export default Dropdown;
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sebgroup/green-react",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.26",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"react": "^17 || ^18",
|
|
6
6
|
"react-dom": "^17 || ^18"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@sebgroup/chlorophyll": "^1.0.0-beta.
|
|
10
|
-
"@sebgroup/extract": "^1.0.0-beta.
|
|
9
|
+
"@sebgroup/chlorophyll": "^1.0.0-beta.27",
|
|
10
|
+
"@sebgroup/extract": "^1.0.0-beta.26"
|
|
11
11
|
},
|
|
12
12
|
"description": "React components built on top of @sebgroup/chlorophyll.",
|
|
13
13
|
"repository": {
|