@sebgroup/green-react 1.0.0-beta.21 → 1.0.0-beta.23
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 +7 -1
- package/index.umd.js +7 -1
- package/lib/dropdown/dropdown.d.ts +2 -1
- package/lib/dropdown/hooks.d.ts +3 -1
- package/package.json +3 -3
package/index.esm.js
CHANGED
|
@@ -2675,6 +2675,8 @@ const useDropdown = ({
|
|
|
2675
2675
|
options,
|
|
2676
2676
|
loop,
|
|
2677
2677
|
multiSelect,
|
|
2678
|
+
searchable,
|
|
2679
|
+
searchableProperties,
|
|
2678
2680
|
selectValue,
|
|
2679
2681
|
useValue,
|
|
2680
2682
|
display,
|
|
@@ -2779,7 +2781,7 @@ const useDropdown = ({
|
|
|
2779
2781
|
loop,
|
|
2780
2782
|
multiSelect
|
|
2781
2783
|
}); // eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2782
|
-
}, [id, texts, options, loop, multiSelect, selectValue, useValue, display]); // When validator changes
|
|
2784
|
+
}, [id, texts, options, loop, multiSelect, searchable, searchableProperties, selectValue, useValue, display]); // When validator changes
|
|
2783
2785
|
|
|
2784
2786
|
useEffect(() => {
|
|
2785
2787
|
if (!dropdown) return;
|
|
@@ -2794,6 +2796,8 @@ const useDropdown = ({
|
|
|
2794
2796
|
options,
|
|
2795
2797
|
loop,
|
|
2796
2798
|
multiSelect,
|
|
2799
|
+
searchable,
|
|
2800
|
+
searchableProperties,
|
|
2797
2801
|
selectValue,
|
|
2798
2802
|
useValue,
|
|
2799
2803
|
display,
|
|
@@ -2817,6 +2821,7 @@ const Dropdown = ({
|
|
|
2817
2821
|
options,
|
|
2818
2822
|
loop,
|
|
2819
2823
|
multiSelect,
|
|
2824
|
+
searchable,
|
|
2820
2825
|
selectValue,
|
|
2821
2826
|
useValue,
|
|
2822
2827
|
display,
|
|
@@ -2839,6 +2844,7 @@ const Dropdown = ({
|
|
|
2839
2844
|
options,
|
|
2840
2845
|
loop,
|
|
2841
2846
|
multiSelect,
|
|
2847
|
+
searchable,
|
|
2842
2848
|
selectValue,
|
|
2843
2849
|
useValue,
|
|
2844
2850
|
display,
|
package/index.umd.js
CHANGED
|
@@ -2681,6 +2681,8 @@
|
|
|
2681
2681
|
options,
|
|
2682
2682
|
loop,
|
|
2683
2683
|
multiSelect,
|
|
2684
|
+
searchable,
|
|
2685
|
+
searchableProperties,
|
|
2684
2686
|
selectValue,
|
|
2685
2687
|
useValue,
|
|
2686
2688
|
display,
|
|
@@ -2785,7 +2787,7 @@
|
|
|
2785
2787
|
loop,
|
|
2786
2788
|
multiSelect
|
|
2787
2789
|
}); // eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2788
|
-
}, [id, texts, options, loop, multiSelect, selectValue, useValue, display]); // When validator changes
|
|
2790
|
+
}, [id, texts, options, loop, multiSelect, searchable, searchableProperties, selectValue, useValue, display]); // When validator changes
|
|
2789
2791
|
|
|
2790
2792
|
React.useEffect(() => {
|
|
2791
2793
|
if (!dropdown) return;
|
|
@@ -2800,6 +2802,8 @@
|
|
|
2800
2802
|
options,
|
|
2801
2803
|
loop,
|
|
2802
2804
|
multiSelect,
|
|
2805
|
+
searchable,
|
|
2806
|
+
searchableProperties,
|
|
2803
2807
|
selectValue,
|
|
2804
2808
|
useValue,
|
|
2805
2809
|
display,
|
|
@@ -2823,6 +2827,7 @@
|
|
|
2823
2827
|
options,
|
|
2824
2828
|
loop,
|
|
2825
2829
|
multiSelect,
|
|
2830
|
+
searchable,
|
|
2826
2831
|
selectValue,
|
|
2827
2832
|
useValue,
|
|
2828
2833
|
display,
|
|
@@ -2845,6 +2850,7 @@
|
|
|
2845
2850
|
options,
|
|
2846
2851
|
loop,
|
|
2847
2852
|
multiSelect,
|
|
2853
|
+
searchable,
|
|
2848
2854
|
selectValue,
|
|
2849
2855
|
useValue,
|
|
2850
2856
|
display,
|
|
@@ -9,8 +9,9 @@ export interface DropdownProps {
|
|
|
9
9
|
selectValue?: string;
|
|
10
10
|
loop?: boolean;
|
|
11
11
|
multiSelect?: boolean;
|
|
12
|
+
searchable?: boolean;
|
|
12
13
|
onChange?: (o: DropdownOption) => void;
|
|
13
14
|
validator?: IValidator;
|
|
14
15
|
}
|
|
15
|
-
export declare const Dropdown: ({ id, options, loop, multiSelect, selectValue, useValue, display, texts, onChange, validator }: DropdownProps) => JSX.Element;
|
|
16
|
+
export declare const Dropdown: ({ id, options, loop, multiSelect, searchable, selectValue, useValue, display, texts, onChange, validator }: DropdownProps) => JSX.Element;
|
|
16
17
|
export default Dropdown;
|
package/lib/dropdown/hooks.d.ts
CHANGED
|
@@ -6,6 +6,8 @@ interface HookArgs {
|
|
|
6
6
|
texts?: DropdownTexts;
|
|
7
7
|
options: DropdownOption[];
|
|
8
8
|
multiSelect?: boolean;
|
|
9
|
+
searchable?: boolean;
|
|
10
|
+
searchableProperties?: string[];
|
|
9
11
|
loop?: boolean;
|
|
10
12
|
selectValue?: string;
|
|
11
13
|
useValue?: string;
|
|
@@ -33,5 +35,5 @@ interface HookResult {
|
|
|
33
35
|
listItems: Props[];
|
|
34
36
|
multiSelectProps: MultiSelectProps;
|
|
35
37
|
}
|
|
36
|
-
export declare const useDropdown: ({ id, texts, options, loop, multiSelect, selectValue, useValue, display, togglerRef, listboxRef, onChange, validator }: HookArgs) => HookResult;
|
|
38
|
+
export declare const useDropdown: ({ id, texts, options, loop, multiSelect, searchable, searchableProperties, selectValue, useValue, display, togglerRef, listboxRef, onChange, validator }: HookArgs) => HookResult;
|
|
37
39
|
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.23",
|
|
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.24",
|
|
10
|
+
"@sebgroup/extract": "^1.0.0-beta.23"
|
|
11
11
|
},
|
|
12
12
|
"description": "React components built on top of @sebgroup/chlorophyll.",
|
|
13
13
|
"repository": {
|