@rpcbase/ui 0.52.0 → 0.54.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,5 +1,4 @@
1
- export declare const DEFAULT_ADDRESS_BOUNDING_BOX: google.maps.LatLngBoundsLiteral;
2
- export declare const AddressAutocompleteInput: ({ id, label, placeholder, value, onValueChange, disabled, name, className, autofillShimName, googleMapsApiKey, boundingBox, allowedTypes, }: {
1
+ export declare const AddressAutocompleteInput: ({ id, label, placeholder, value, onValueChange, disabled, name, className, autofillShimName, googleMapsApiKey, locationRestriction, allowedTypes, }: {
3
2
  id: string;
4
3
  label: string;
5
4
  placeholder: string;
@@ -10,7 +9,7 @@ export declare const AddressAutocompleteInput: ({ id, label, placeholder, value,
10
9
  className?: string;
11
10
  autofillShimName?: string;
12
11
  googleMapsApiKey?: string;
13
- boundingBox: google.maps.LatLngBoundsLiteral | google.maps.LatLngBounds;
12
+ locationRestriction: google.maps.LatLngBoundsLiteral | google.maps.LatLngBounds;
14
13
  allowedTypes?: Iterable<string>;
15
14
  }) => import("react/jsx-runtime").JSX.Element;
16
15
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/components/AddressAutocompleteInput/index.tsx"],"names":[],"mappings":"AAQA,eAAO,MAAM,4BAA4B,EAAE,MAAM,CAAC,IAAI,CAAC,mBAKtD,CAAA;AA8ID,eAAO,MAAM,wBAAwB,GAAI,6IAatC;IACD,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;IACnB,KAAK,EAAE,MAAM,GAAG,SAAS,CAAA;IACzB,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACtC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,WAAW,EAAE,MAAM,CAAC,IAAI,CAAC,mBAAmB,GAAG,MAAM,CAAC,IAAI,CAAC,YAAY,CAAA;IACvE,YAAY,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAA;CAChC,4CAwRA,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/components/AddressAutocompleteInput/index.tsx"],"names":[],"mappings":"AAoJA,eAAO,MAAM,wBAAwB,GAAI,qJAatC;IACD,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;IACnB,KAAK,EAAE,MAAM,GAAG,SAAS,CAAA;IACzB,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACtC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,mBAAmB,EAAE,MAAM,CAAC,IAAI,CAAC,mBAAmB,GAAG,MAAM,CAAC,IAAI,CAAC,YAAY,CAAA;IAC/E,YAAY,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAA;CAChC,4CA+PA,CAAA"}
@@ -1,2 +1,3 @@
1
1
  export * from "./isMobileDevice";
2
+ export * from "./useMapsLibrary";
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/helpers/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/helpers/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA;AAChC,cAAc,kBAAkB,CAAA"}
@@ -1,2 +1,5 @@
1
- export declare const useMapsLibrary: (_: "places", apiKey?: string) => "loaded" | null;
1
+ type GoogleMapsLibraryName = "core" | "maps" | "maps3d" | "routes" | "geometry" | "elevation" | "streetView" | "journeySharing" | "drawing" | "visualization" | "marker" | "places" | "geocoding" | (string & {});
2
+ type GoogleMapsLibraryModule<T extends GoogleMapsLibraryName> = T extends "core" ? google.maps.CoreLibrary : T extends "maps" ? google.maps.MapsLibrary : T extends "maps3d" ? google.maps.Maps3DLibrary : T extends "routes" ? google.maps.RoutesLibrary : T extends "geometry" ? google.maps.GeometryLibrary : T extends "elevation" ? google.maps.ElevationLibrary : T extends "streetView" ? google.maps.StreetViewLibrary : T extends "journeySharing" ? google.maps.JourneySharingLibrary : T extends "drawing" ? google.maps.DrawingLibrary : T extends "visualization" ? google.maps.VisualizationLibrary : T extends "marker" ? google.maps.MarkerLibrary : T extends "places" ? google.maps.PlacesLibrary : T extends "geocoding" ? google.maps.GeocodingLibrary : unknown;
3
+ export declare const useMapsLibrary: <T extends GoogleMapsLibraryName>(library: T, apiKey?: string) => GoogleMapsLibraryModule<T> | null;
4
+ export type { GoogleMapsLibraryName, GoogleMapsLibraryModule };
2
5
  //# sourceMappingURL=useMapsLibrary.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useMapsLibrary.d.ts","sourceRoot":"","sources":["../../lib/helpers/useMapsLibrary.ts"],"names":[],"mappings":"AA8BA,eAAO,MAAM,cAAc,GAAI,GAAG,QAAQ,EAAE,SAAS,MAAM,oBAoB1D,CAAA"}
1
+ {"version":3,"file":"useMapsLibrary.d.ts","sourceRoot":"","sources":["../../lib/helpers/useMapsLibrary.ts"],"names":[],"mappings":"AAIA,KAAK,qBAAqB,GACtB,MAAM,GACN,MAAM,GACN,QAAQ,GACR,QAAQ,GACR,UAAU,GACV,WAAW,GACX,YAAY,GACZ,gBAAgB,GAChB,SAAS,GACT,eAAe,GACf,QAAQ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