wacomm 1.61.0 → 1.62.0

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.
@@ -1,8 +1,12 @@
1
+ export interface AutocompleteOption {
2
+ id: string;
3
+ value: string;
4
+ }
1
5
  interface AutocompleteProps {
2
6
  ref?: React.Ref<any>;
3
- options: any[];
7
+ options: AutocompleteOption[];
4
8
  placeholder?: string;
5
- onSelect: (placeID: string, description: string) => void;
9
+ onSelect: (option: AutocompleteOption) => void;
6
10
  onChange: (text: string) => void;
7
11
  }
8
12
  declare function Autocomplete({ ref, options, onSelect, onChange, placeholder }: AutocompleteProps): import("react/jsx-runtime").JSX.Element;
@@ -9040,10 +9040,7 @@ function aj({
9040
9040
  placeholder: r = ""
9041
9041
  }) {
9042
9042
  const [s, i] = Ye(!1), [a, l] = Ye(""), c = (p, f) => {
9043
- if (f) {
9044
- const { placeID: d, description: m } = f;
9045
- o(d, m);
9046
- }
9043
+ f && o(f);
9047
9044
  }, u = (p, f) => {
9048
9045
  l(f), n(f);
9049
9046
  };
@@ -9052,7 +9049,7 @@ function aj({
9052
9049
  {
9053
9050
  ref: e,
9054
9051
  options: t,
9055
- getOptionLabel: (p) => p.description,
9052
+ getOptionLabel: (p) => p.value,
9056
9053
  popupIcon: null,
9057
9054
  sx: {
9058
9055
  "& .MuiOutlinedInput-root": {
@@ -39003,11 +39000,11 @@ function uR(e) {
39003
39000
  }, [r]), null;
39004
39001
  }
39005
39002
  const MN = Tr(uR);
39006
- const pR = import("./maplibre-gl-DDj3hbFy.mjs").then((e) => e.m), dR = P.forwardRef(function(t, o) {
39003
+ const pR = import("./maplibre-gl-abwQKzbk.mjs").then((e) => e.m), dR = P.forwardRef(function(t, o) {
39007
39004
  return Uy(t, o, pR);
39008
39005
  }), fR = Qy;
39009
39006
  const mR = cR;
39010
- const hR = import("./mapbox-gl-DhifSTHm.mjs").then((e) => e.m), RN = P.forwardRef(function(t, o) {
39007
+ const hR = import("./mapbox-gl-fZ2URYOh.mjs").then((e) => e.m), RN = P.forwardRef(function(t, o) {
39011
39008
  return Uy(t, o, hR);
39012
39009
  }), gR = Qy;
39013
39010
  function yR({ locations: e }) {