@theroutingcompany/components 0.0.99-alpha.4 → 0.0.99-alpha.5
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/dist/trc-components.es.js +3359 -3335
- package/dist/trc-components.es.js.map +1 -1
- package/dist/trc-components.umd.js +255 -251
- package/dist/trc-components.umd.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/types/components/GoogleInput/GoogleInput.d.ts +11 -5
package/package.json
CHANGED
|
@@ -1,12 +1,20 @@
|
|
|
1
1
|
/// <reference types="google.maps" />
|
|
2
2
|
import { type ReactNode } from 'react';
|
|
3
|
+
declare const PlaceResult: import("styled-components").StyledComponent<import("components/Text/Text").PolymorphicText, any, {}, never>;
|
|
4
|
+
export declare const getSelectedName: (selected: google.maps.places.PlaceResult) => string | undefined;
|
|
3
5
|
export type GoogleInputProps = {
|
|
4
6
|
googleApiKey: string;
|
|
5
7
|
placeholder?: string;
|
|
6
|
-
options?:
|
|
8
|
+
options?: google.maps.places.AutocompleteOptions;
|
|
9
|
+
libraries?: string[];
|
|
10
|
+
googleMapsScriptBaseUrl?: string;
|
|
11
|
+
debounce?: number;
|
|
7
12
|
defaultValue?: string;
|
|
8
|
-
|
|
13
|
+
value?: string;
|
|
14
|
+
onChange?: (value: google.maps.places.PlaceResult) => void;
|
|
9
15
|
disabled?: boolean;
|
|
16
|
+
isInvalid?: boolean;
|
|
17
|
+
id?: string;
|
|
10
18
|
'data-id'?: string;
|
|
11
19
|
label?: ReactNode;
|
|
12
20
|
boldLabel?: boolean;
|
|
@@ -15,9 +23,7 @@ export type GoogleInputProps = {
|
|
|
15
23
|
inputId?: string;
|
|
16
24
|
tooltipContent?: React.ReactNode;
|
|
17
25
|
autoFocus?: boolean;
|
|
18
|
-
bounds?: google.maps.LatLngBounds;
|
|
19
|
-
strictBounds?: boolean;
|
|
20
26
|
};
|
|
21
|
-
declare const GoogleInput: ({ googleApiKey, placeholder, options, defaultValue,
|
|
27
|
+
declare const GoogleInput: ({ googleApiKey, placeholder, options, libraries, googleMapsScriptBaseUrl, debounce, defaultValue, value, onChange, disabled, isInvalid, label, labelId, inputId, hideLabel, boldLabel, autoFocus, ...props }: GoogleInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
22
28
|
export default GoogleInput;
|
|
23
29
|
export { GoogleInput };
|