@sebgroup/green-react 1.0.0-beta.24 → 1.0.0-beta.25
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 +11 -2
- package/index.umd.js +11 -2
- package/lib/dropdown/hooks.d.ts +1 -1
- package/package.json +3 -3
package/index.esm.js
CHANGED
|
@@ -2673,6 +2673,7 @@ function Stepper(_a) {
|
|
|
2673
2673
|
|
|
2674
2674
|
const useDropdown = ({
|
|
2675
2675
|
id,
|
|
2676
|
+
value,
|
|
2676
2677
|
texts,
|
|
2677
2678
|
options,
|
|
2678
2679
|
loop,
|
|
@@ -2764,12 +2765,19 @@ const useDropdown = ({
|
|
|
2764
2765
|
if (!dropdown) return;
|
|
2765
2766
|
handler === null || handler === void 0 ? void 0 : handler.update({
|
|
2766
2767
|
id,
|
|
2768
|
+
value,
|
|
2767
2769
|
texts,
|
|
2768
2770
|
options,
|
|
2769
2771
|
loop,
|
|
2770
|
-
multiSelect
|
|
2772
|
+
multiSelect,
|
|
2773
|
+
searchable,
|
|
2774
|
+
searchFilter,
|
|
2775
|
+
compareWith,
|
|
2776
|
+
useValue,
|
|
2777
|
+
display,
|
|
2778
|
+
validator
|
|
2771
2779
|
}); // eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2772
|
-
}, [id, texts, options, loop, multiSelect, searchable, searchFilter, compareWith, useValue, display]); // When validator changes
|
|
2780
|
+
}, [id, value, texts, options, loop, multiSelect, searchable, searchFilter, compareWith, useValue, display]); // When validator changes
|
|
2773
2781
|
|
|
2774
2782
|
useEffect(() => {
|
|
2775
2783
|
if (!dropdown) return;
|
|
@@ -2780,6 +2788,7 @@ const useDropdown = ({
|
|
|
2780
2788
|
if (!handler && togglerRef.current && listboxRef.current) {
|
|
2781
2789
|
setHandler(createDropdown({
|
|
2782
2790
|
id,
|
|
2791
|
+
value,
|
|
2783
2792
|
texts,
|
|
2784
2793
|
options,
|
|
2785
2794
|
loop,
|
package/index.umd.js
CHANGED
|
@@ -2679,6 +2679,7 @@
|
|
|
2679
2679
|
|
|
2680
2680
|
const useDropdown = ({
|
|
2681
2681
|
id,
|
|
2682
|
+
value,
|
|
2682
2683
|
texts,
|
|
2683
2684
|
options,
|
|
2684
2685
|
loop,
|
|
@@ -2770,12 +2771,19 @@
|
|
|
2770
2771
|
if (!dropdown) return;
|
|
2771
2772
|
handler === null || handler === void 0 ? void 0 : handler.update({
|
|
2772
2773
|
id,
|
|
2774
|
+
value,
|
|
2773
2775
|
texts,
|
|
2774
2776
|
options,
|
|
2775
2777
|
loop,
|
|
2776
|
-
multiSelect
|
|
2778
|
+
multiSelect,
|
|
2779
|
+
searchable,
|
|
2780
|
+
searchFilter,
|
|
2781
|
+
compareWith,
|
|
2782
|
+
useValue,
|
|
2783
|
+
display,
|
|
2784
|
+
validator
|
|
2777
2785
|
}); // eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2778
|
-
}, [id, texts, options, loop, multiSelect, searchable, searchFilter, compareWith, useValue, display]); // When validator changes
|
|
2786
|
+
}, [id, value, texts, options, loop, multiSelect, searchable, searchFilter, compareWith, useValue, display]); // When validator changes
|
|
2779
2787
|
|
|
2780
2788
|
React.useEffect(() => {
|
|
2781
2789
|
if (!dropdown) return;
|
|
@@ -2786,6 +2794,7 @@
|
|
|
2786
2794
|
if (!handler && togglerRef.current && listboxRef.current) {
|
|
2787
2795
|
setHandler(extract.createDropdown({
|
|
2788
2796
|
id,
|
|
2797
|
+
value,
|
|
2789
2798
|
texts,
|
|
2790
2799
|
options,
|
|
2791
2800
|
loop,
|
package/lib/dropdown/hooks.d.ts
CHANGED
|
@@ -25,5 +25,5 @@ interface HookResult {
|
|
|
25
25
|
listItems: Props[];
|
|
26
26
|
multiSelectProps: MultiSelectProps;
|
|
27
27
|
}
|
|
28
|
-
export declare const useDropdown: ({ id, texts, options, loop, multiSelect, searchable, searchFilter, compareWith, useValue, display, togglerRef, listboxRef, onChange, validator, }: HookArgs) => HookResult;
|
|
28
|
+
export declare const useDropdown: ({ id, value, texts, options, loop, multiSelect, searchable, searchFilter, compareWith, useValue, display, togglerRef, listboxRef, onChange, validator, }: HookArgs) => HookResult;
|
|
29
29
|
export {};
|
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.25",
|
|
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.26",
|
|
10
|
+
"@sebgroup/extract": "^1.0.0-beta.25"
|
|
11
11
|
},
|
|
12
12
|
"description": "React components built on top of @sebgroup/chlorophyll.",
|
|
13
13
|
"repository": {
|