@sebgroup/green-react 1.0.0-beta.24 → 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 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,10 +2765,17 @@ 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
2780
  }, [id, texts, options, loop, multiSelect, searchable, searchFilter, compareWith, useValue, display]); // When validator changes
2773
2781
 
@@ -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,
@@ -2806,6 +2815,7 @@ const useDropdown = ({
2806
2815
 
2807
2816
  const Dropdown = ({
2808
2817
  id,
2818
+ value,
2809
2819
  options,
2810
2820
  loop,
2811
2821
  multiSelect,
@@ -2830,6 +2840,7 @@ const Dropdown = ({
2830
2840
  multiSelectProps
2831
2841
  } = useDropdown({
2832
2842
  id,
2843
+ value,
2833
2844
  options,
2834
2845
  loop,
2835
2846
  multiSelect,
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,10 +2771,17 @@
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
2786
  }, [id, texts, options, loop, multiSelect, searchable, searchFilter, compareWith, useValue, display]); // When validator changes
2779
2787
 
@@ -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,
@@ -2812,6 +2821,7 @@
2812
2821
 
2813
2822
  const Dropdown = ({
2814
2823
  id,
2824
+ value,
2815
2825
  options,
2816
2826
  loop,
2817
2827
  multiSelect,
@@ -2836,6 +2846,7 @@
2836
2846
  multiSelectProps
2837
2847
  } = useDropdown({
2838
2848
  id,
2849
+ value,
2839
2850
  options,
2840
2851
  loop,
2841
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;
@@ -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.24",
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.25",
10
- "@sebgroup/extract": "^1.0.0-beta.24"
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": {