@aws-amplify/ui-react 2.14.0 → 2.14.1
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/esm/components/Authenticator/ConfirmSignIn/ConfirmSignIn.js +1 -1
- package/dist/esm/components/Authenticator/ConfirmSignUp/ConfirmSignUp.js +1 -1
- package/dist/esm/components/Authenticator/FederatedSignIn/FederatedSignIn.js +1 -1
- package/dist/esm/components/Authenticator/FederatedSignIn/FederatedSignInButtons/FederatedSignInButton.js +1 -1
- package/dist/esm/components/Authenticator/ForceNewPassword/ForceNewPassword.js +1 -1
- package/dist/esm/components/Authenticator/ResetPassword/ConfirmResetPassword.js +1 -1
- package/dist/esm/components/Authenticator/ResetPassword/ResetPassword.js +1 -1
- package/dist/esm/components/Authenticator/Router/index.js +1 -1
- package/dist/esm/components/Authenticator/SetupTOTP/SetupTOTP.js +1 -1
- package/dist/esm/components/Authenticator/SignIn/SignIn.js +1 -1
- package/dist/esm/components/Authenticator/SignUp/SignUp.js +1 -1
- package/dist/esm/components/Authenticator/VerifyUser/ConfirmVerifyUser.js +1 -1
- package/dist/esm/components/Authenticator/VerifyUser/VerifyUser.js +1 -1
- package/dist/esm/components/Authenticator/shared/ConfirmSignInFooter.js +1 -1
- package/dist/esm/components/Authenticator/shared/RemoteErrorMessage.js +1 -1
- package/dist/esm/components/Authenticator/shared/SignInSignUpTabs.js +1 -1
- package/dist/esm/components/Authenticator/shared/TwoButtonSubmitFooter.js +1 -1
- package/dist/esm/components/index.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.js +1 -1
- package/dist/styles.css +1 -1059
- package/dist/types/components/index.d.ts +0 -1
- package/dist/types/primitives/Alert/Alert.d.ts +1 -1
- package/dist/types/primitives/Badge/Badge.d.ts +1 -1
- package/dist/types/primitives/Button/Button.d.ts +1 -1
- package/dist/types/primitives/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/dist/types/primitives/Card/Card.d.ts +1 -1
- package/dist/types/primitives/Checkbox/Checkbox.d.ts +1 -1
- package/dist/types/primitives/CheckboxField/CheckboxField.d.ts +1 -1
- package/dist/types/primitives/Divider/Divider.d.ts +1 -1
- package/dist/types/primitives/Expander/Expander.d.ts +1 -1
- package/dist/types/primitives/Expander/ExpanderItem.d.ts +1 -1
- package/dist/types/primitives/Field/FieldClearButton.d.ts +1 -1
- package/dist/types/primitives/FieldGroup/FieldGroup.d.ts +1 -1
- package/dist/types/primitives/FieldGroupIcon/FieldGroupIcon.d.ts +1 -1
- package/dist/types/primitives/FieldGroupIcon/FieldGroupIconButton.d.ts +1 -1
- package/dist/types/primitives/Flex/Flex.d.ts +1 -1
- package/dist/types/primitives/Grid/Grid.d.ts +1 -1
- package/dist/types/primitives/Heading/Heading.d.ts +1 -1
- package/dist/types/primitives/Icon/Icon.d.ts +1 -1
- package/dist/types/primitives/Image/Image.d.ts +1 -1
- package/dist/types/primitives/Input/Input.d.ts +1 -1
- package/dist/types/primitives/Label/Label.d.ts +1 -1
- package/dist/types/primitives/Link/Link.d.ts +1 -1
- package/dist/types/primitives/Loader/Loader.d.ts +1 -1
- package/dist/types/primitives/Menu/Menu.d.ts +1 -1
- package/dist/types/primitives/Menu/MenuButton.d.ts +1 -1
- package/dist/types/primitives/Pagination/Pagination.d.ts +1 -1
- package/dist/types/primitives/PasswordField/PasswordField.d.ts +1 -1
- package/dist/types/primitives/PasswordField/ShowPasswordButton.d.ts +1 -1
- package/dist/types/primitives/PhoneNumberField/CountryCodeSelect.d.ts +1 -1
- package/dist/types/primitives/PhoneNumberField/PhoneNumberField.d.ts +1 -1
- package/dist/types/primitives/Placeholder/Placeholder.d.ts +1 -1
- package/dist/types/primitives/Radio/Radio.d.ts +1 -1
- package/dist/types/primitives/RadioGroupField/RadioGroupField.d.ts +1 -1
- package/dist/types/primitives/Rating/Rating.d.ts +1 -1
- package/dist/types/primitives/ScrollView/ScrollView.d.ts +1 -1
- package/dist/types/primitives/SearchField/SearchField.d.ts +1 -1
- package/dist/types/primitives/SearchField/SearchFieldButton.d.ts +1 -1
- package/dist/types/primitives/Select/Select.d.ts +1 -1
- package/dist/types/primitives/SelectField/SelectField.d.ts +1 -1
- package/dist/types/primitives/SliderField/SliderField.d.ts +1 -1
- package/dist/types/primitives/StepperField/StepperField.d.ts +1 -1
- package/dist/types/primitives/SwitchField/SwitchField.d.ts +1 -1
- package/dist/types/primitives/Table/Table.d.ts +1 -1
- package/dist/types/primitives/Table/TableBody.d.ts +1 -1
- package/dist/types/primitives/Table/TableCell.d.ts +1 -1
- package/dist/types/primitives/Table/TableFoot.d.ts +1 -1
- package/dist/types/primitives/Table/TableHead.d.ts +1 -1
- package/dist/types/primitives/Table/TableRow.d.ts +1 -1
- package/dist/types/primitives/Tabs/Tabs.d.ts +2 -2
- package/dist/types/primitives/Text/Text.d.ts +1 -1
- package/dist/types/primitives/TextArea/TextArea.d.ts +1 -1
- package/dist/types/primitives/TextAreaField/TextAreaField.d.ts +1 -1
- package/dist/types/primitives/ToggleButton/ToggleButton.d.ts +1 -1
- package/dist/types/primitives/ToggleButtonGroup/ToggleButtonGroup.d.ts +1 -1
- package/dist/types/primitives/View/View.d.ts +1 -1
- package/dist/types/primitives/VisuallyHidden/VisuallyHidden.d.ts +1 -1
- package/package.json +3 -7
- package/dist/esm/components/Geo/Geocoder/index.js +0 -1
- package/dist/esm/components/Geo/MapView/index.js +0 -1
- package/dist/types/components/Geo/Geocoder/index.d.ts +0 -192
- package/dist/types/components/Geo/MapView/index.d.ts +0 -18
- package/dist/types/components/Geo/index.d.ts +0 -2
|
@@ -1,192 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
/**
|
|
3
|
-
* The `<Geocoder>` component provides location search. See https://ui.docs.amplify.aws/components/geo#geocoder.
|
|
4
|
-
*
|
|
5
|
-
* @example
|
|
6
|
-
* // Used as a map control:
|
|
7
|
-
* function App() {
|
|
8
|
-
* return (
|
|
9
|
-
* <MapView>
|
|
10
|
-
* <Geocoder />
|
|
11
|
-
* </MapView>
|
|
12
|
-
* );
|
|
13
|
-
* }
|
|
14
|
-
*
|
|
15
|
-
* @example
|
|
16
|
-
* // Used as a standalone component:
|
|
17
|
-
* function App() {
|
|
18
|
-
* return <Geocoder />;
|
|
19
|
-
* }
|
|
20
|
-
*/
|
|
21
|
-
export declare const Geocoder: ({ position, ...props }: GeocoderProps) => JSX.Element;
|
|
22
|
-
export declare type GeocoderProps = {
|
|
23
|
-
/**
|
|
24
|
-
* A bounding box given as an array in the format `[minX, minY, maxX, maxY]`.
|
|
25
|
-
* Search results will be limited to the bounding box.
|
|
26
|
-
*/
|
|
27
|
-
bbox?: number[];
|
|
28
|
-
/**
|
|
29
|
-
* Default: false
|
|
30
|
-
* If `true`, the geocoder control will clear it's contents and blur when user presses the escape key.
|
|
31
|
-
*/
|
|
32
|
-
clearAndBlurOnEsc?: boolean;
|
|
33
|
-
/**
|
|
34
|
-
* Default: false
|
|
35
|
-
* If `true`, the geocoder control will clear its value when the input blurs.
|
|
36
|
-
*/
|
|
37
|
-
clearOnBlur?: boolean;
|
|
38
|
-
/**
|
|
39
|
-
* Default: false
|
|
40
|
-
* If `true`, the geocoder control will collapse until hovered or in focus.
|
|
41
|
-
*/
|
|
42
|
-
collapsed?: boolean;
|
|
43
|
-
/**
|
|
44
|
-
* a comma separated list of country codes to limit results to specified country or countries.
|
|
45
|
-
*/
|
|
46
|
-
countries?: string;
|
|
47
|
-
/**
|
|
48
|
-
* Default: 200
|
|
49
|
-
* Sets the amount of time, in milliseconds, to wait before querying the server when a user types into the Geocoder
|
|
50
|
-
* input box. This parameter may be useful for reducing the total number of API calls made for a single query.
|
|
51
|
-
*/
|
|
52
|
-
debounceSearch?: number;
|
|
53
|
-
/**
|
|
54
|
-
* Default: true
|
|
55
|
-
* Allow Maplibre to collect anonymous usage statistics from the plugin.
|
|
56
|
-
*/
|
|
57
|
-
enableEventLogging?: boolean;
|
|
58
|
-
/**
|
|
59
|
-
* A function accepting the query string, current features list, and geocoder options which performs geocoding to
|
|
60
|
-
* supplement results from the Maplibre Geocoding API. Expected to return a Promise which resolves to an Array of
|
|
61
|
-
* GeoJSON Features in the [Carmen GeoJSON](https://github.com/mapbox/carmen/blob/master/carmen-geojson.md) format.
|
|
62
|
-
*/
|
|
63
|
-
externalGeocoder?: Function;
|
|
64
|
-
/**
|
|
65
|
-
* Default: true
|
|
66
|
-
* If `false`, animating the map to a selected result is disabled. If `true`, animating the map will use the default
|
|
67
|
-
* animation parameters. If an object, it will be passed as `options` to the map [`flyTo`](https://maplibre.org/maplibre-gl-js-docs/api/map/#map#flyto)
|
|
68
|
-
* or [`fitBounds`](https://maplibre.org/maplibre-gl-js-docs/api/map/#map#fitbounds) method providing control over the animation of the transition.
|
|
69
|
-
*/
|
|
70
|
-
flyTo?: boolean | object;
|
|
71
|
-
/**
|
|
72
|
-
* A function which accepts a Feature in the [Carmen GeoJSON](https://github.com/mapbox/carmen/blob/master/carmen-geojson.md) format to filter out
|
|
73
|
-
* results from the Geocoding API response before they are included in the suggestions list. Return `true` to keep the item, `false` otherwise.
|
|
74
|
-
*/
|
|
75
|
-
filter?: Function;
|
|
76
|
-
/**
|
|
77
|
-
* A function that specifies how the selected result should be rendered in the search bar. This function should accept a single [Carmen GeoJSON](https://github.com/mapbox/carmen/blob/master/carmen-geojson.md) object as input and return a string.
|
|
78
|
-
* HTML tags in the output string will not be rendered. Defaults to `(item) => item.place_name`.
|
|
79
|
-
*/
|
|
80
|
-
getItemValue?: Function;
|
|
81
|
-
/**
|
|
82
|
-
* Specify the language to use for response text and query result weighting. Options are IETF language tags comprised
|
|
83
|
-
* of a mandatory ISO 639-1 language code and optionally one or more IETF subtags for country or script. More than
|
|
84
|
-
* one value can also be specified, separated by commas. Defaults to the browser's language settings.
|
|
85
|
-
*/
|
|
86
|
-
language?: string;
|
|
87
|
-
/**
|
|
88
|
-
* Default: 5
|
|
89
|
-
* Maximum number of results to show.
|
|
90
|
-
*/
|
|
91
|
-
limit?: number;
|
|
92
|
-
/**
|
|
93
|
-
* A function accepting the query string which performs local geocoding to supplement results from the Maplibre
|
|
94
|
-
* Geocoding API. Expected to return an Array of GeoJSON Features in the [Carmen GeoJSON](https://github.com/mapbox/carmen/blob/master/carmen-geojson.md) format.
|
|
95
|
-
*/
|
|
96
|
-
localGeocoder?: Function;
|
|
97
|
-
/**
|
|
98
|
-
* Default: false
|
|
99
|
-
* If `true`, indicates that the `localGeocoder` results should be the only ones returned to the user. If `false`,
|
|
100
|
-
* indicates that the `localGeocoder` results should be combined with those from the Maplibre API with the `localGeocoder` results ranked higher.
|
|
101
|
-
*/
|
|
102
|
-
localGeocoderOnly?: boolean;
|
|
103
|
-
/**
|
|
104
|
-
* Default: { color: '#4668F2' }
|
|
105
|
-
* If `true`, a [Marker](https://maplibre.org/maplibre-gl-js-docs/api/markers/#marker) will be added to the map at the location of the user-selected
|
|
106
|
-
* result using a default set of Marker options. If the value is an object, the marker will be constructed using these
|
|
107
|
-
* options. If `false`, no marker will be added to the map. Requires that `options.maplibregl` also be set (which it is by default).
|
|
108
|
-
*/
|
|
109
|
-
marker?: boolean | object;
|
|
110
|
-
/**
|
|
111
|
-
* Default: 2
|
|
112
|
-
* Minimum number of characters to enter before results are shown.
|
|
113
|
-
*/
|
|
114
|
-
minLength?: number;
|
|
115
|
-
/**
|
|
116
|
-
* Default: 'Search'
|
|
117
|
-
* Override the default placeholder attribute value.
|
|
118
|
-
*/
|
|
119
|
-
placeholder?: string;
|
|
120
|
-
/**
|
|
121
|
-
* Default: true
|
|
122
|
-
* If `true`, a [Popup](https://maplibre.org/maplibre-gl-js-docs/api/markers/#popup) will be added to the map when clicking on a marker using a default set of popup options.
|
|
123
|
-
* If the value is an object, the popup will be constructed using these options. If `false`, no popup will be added to the map.
|
|
124
|
-
* Requires that `options.maplibregl` also be set (which it is by default).
|
|
125
|
-
*/
|
|
126
|
-
popup?: boolean | object;
|
|
127
|
-
/**
|
|
128
|
-
* A function that specifies how the results should be rendered in the popup menu. This function should accept a single [Carmen GeoJSON](https://github.com/mapbox/carmen/blob/master/carmen-geojson.md) object as input and return a string.
|
|
129
|
-
* Any HTML in the returned string will be rendered.
|
|
130
|
-
*/
|
|
131
|
-
popupRender?: Function;
|
|
132
|
-
/**
|
|
133
|
-
* Default: 'top-right'
|
|
134
|
-
* Position the geocoder will be rendered on the map. Only relevant when `<Geocoder>` is used with a map.
|
|
135
|
-
*/
|
|
136
|
-
position?: 'bottom-left' | 'bottom-right' | 'top-left' | 'top-right';
|
|
137
|
-
/**
|
|
138
|
-
* A geographical point given as an object with `latitude` and `longitude`
|
|
139
|
-
* properties. Search results closer to this point will be given
|
|
140
|
-
* higher priority. Defaults to map viewport if rendered as a map control.
|
|
141
|
-
*/
|
|
142
|
-
proximity?: {
|
|
143
|
-
latitude: number;
|
|
144
|
-
longitude: number;
|
|
145
|
-
};
|
|
146
|
-
/**
|
|
147
|
-
* A function that specifies how the results should be rendered in the dropdown menu. This function should accepts a single [Carmen GeoJSON](https://github.com/mapbox/carmen/blob/master/carmen-geojson.md)
|
|
148
|
-
* object as input and return a string. Any HTML in the returned string will be rendered.
|
|
149
|
-
*/
|
|
150
|
-
render?: Function;
|
|
151
|
-
/**
|
|
152
|
-
* Default: false
|
|
153
|
-
* If `true`, enable reverse geocoding mode. In reverse geocoding, search input is expected to be coordinates in the
|
|
154
|
-
* form `lat, lon`, with suggestions being the reverse geocodes.
|
|
155
|
-
*/
|
|
156
|
-
reverseGeocoder?: boolean;
|
|
157
|
-
/**
|
|
158
|
-
* Default: 'distance'
|
|
159
|
-
* Set the factors that are used to sort nearby results.
|
|
160
|
-
*/
|
|
161
|
-
reverseMode?: 'distance' | 'score';
|
|
162
|
-
/**
|
|
163
|
-
* Default: { color: '#4668F2' }
|
|
164
|
-
* If `true`, [Markers](https://maplibre.org/maplibre-gl-js-docs/api/markers/#marker) will be added to the map at the location the top results for the query.
|
|
165
|
-
* If the value is an object, the marker will be constructed using these options. If `false`, no marker will be added to the map.
|
|
166
|
-
* Requires that `options.maplibregl` also be set (which it is by default).
|
|
167
|
-
*/
|
|
168
|
-
showResultMarkers?: boolean | object;
|
|
169
|
-
/**
|
|
170
|
-
* Default: true
|
|
171
|
-
* If `false`, indicates that search will only occur on enter key press. If `true`, indicates that the Geocoder will
|
|
172
|
-
* search on the input box being updated above the minLength option.
|
|
173
|
-
*/
|
|
174
|
-
showResultsWhileTyping?: boolean;
|
|
175
|
-
/**
|
|
176
|
-
* Default: true
|
|
177
|
-
* If `true`, the geocoder proximity will automatically update based on the map view.
|
|
178
|
-
*/
|
|
179
|
-
trackProximity?: boolean;
|
|
180
|
-
/**
|
|
181
|
-
* A comma separated list of types that filter results to match those specified. See https://docs.mapbox.com/api/search/#data-types
|
|
182
|
-
* for available types. If reverseGeocode is enabled, you should specify one type. If you configure more than one type, the first
|
|
183
|
-
* type will be used.
|
|
184
|
-
*/
|
|
185
|
-
types?: string;
|
|
186
|
-
/**
|
|
187
|
-
* Default: 16
|
|
188
|
-
* On geocoded result, what zoom level should the map animate to when a `bbox` isn't found in the response.
|
|
189
|
-
* If a `bbox` is found the map will fit to the `bbox`.
|
|
190
|
-
*/
|
|
191
|
-
zoom?: number;
|
|
192
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { MapProps } from 'react-map-gl';
|
|
3
|
-
export declare type MapViewProps = Omit<MapProps, 'transformRequest'>;
|
|
4
|
-
/**
|
|
5
|
-
* The `MapView` component uses [react-map-gl](https://visgl.github.io/react-map-gl/) and
|
|
6
|
-
* [maplibre-gl-js](https://visgl.github.io/react-map-gl/) to provide an interactive map using
|
|
7
|
-
* [Amplify Geo APIs](https://docs.amplify.aws/lib/geo/getting-started/q/platform/js/) powered by
|
|
8
|
-
* [Amazon Location Service](https://aws.amazon.com/location/). Since `MapView` is a wrapper of the
|
|
9
|
-
* [react-map-gl default Map](https://visgl.github.io/react-map-gl/docs/api-reference/map), it accepts the same
|
|
10
|
-
* properties except `transformRequest` which is set by Amplify.
|
|
11
|
-
*
|
|
12
|
-
* @example
|
|
13
|
-
* // Basic usage of MapView:
|
|
14
|
-
* function App() {
|
|
15
|
-
* return <MapView />
|
|
16
|
-
* }
|
|
17
|
-
*/
|
|
18
|
-
export declare const MapView: ({ mapLib, mapStyle, style, ...props }: MapViewProps) => JSX.Element;
|