@dynamo-caffeina-dev/locator-frontend 0.0.14 → 0.0.16
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/README.md +8 -28
- package/dist/{GoogleMapsProvider-u8AIKumV.js → GoogleMapsProvider-C9ozlugV.js} +2 -2
- package/dist/{GoogleMapsProvider-u8AIKumV.js.map → GoogleMapsProvider-C9ozlugV.js.map} +1 -1
- package/dist/{index-CK193Zb_.js → index-9sJqqbiV.js} +3068 -2925
- package/dist/index-9sJqqbiV.js.map +1 -0
- package/dist/index.d.ts +295 -20
- package/dist/index.es.js +4 -2
- package/dist/index.umd.js +45 -45
- package/dist/index.umd.js.map +1 -1
- package/dist/locator-frontend.css +1 -1
- package/package.json +1 -1
- package/dist/index-CK193Zb_.js.map +0 -1
package/README.md
CHANGED
|
@@ -6,36 +6,16 @@ Locator is a reusable and customizable store locator component built with React.
|
|
|
6
6
|
|
|
7
7
|
## Overview
|
|
8
8
|
|
|
9
|
-
### Features
|
|
10
|
-
|
|
11
|
-
- **Interactive Map**: Display locations with custom markers and clustering support
|
|
12
|
-
- **Location Search**: Address search with Google Places API autocomplete
|
|
13
|
-
- **Geolocation**: Find nearby locations based on user's current position
|
|
14
|
-
- **Responsive Design**: Works across desktop and mobile devices
|
|
15
|
-
- **Customizable UI**: Themable interface with customizable components
|
|
16
|
-
- **Internationalization**: (Partial) support for multiple languages and localization
|
|
17
|
-
- **Optimized API Usage**: Session token management for Google Places API
|
|
18
|
-
|
|
19
|
-
### Architecture
|
|
20
|
-
|
|
21
|
-
The Locator component follows an atomic design pattern with the following structure:
|
|
22
|
-
|
|
23
|
-
- **Atoms**: Basic UI components (Button, Icon, Spinner, etc.)
|
|
24
|
-
- **Molecules**: Combinations of atoms (Input, LocationCard, etc.)
|
|
25
|
-
- **Organisms**: Complex components (Map, Search, LocationList, etc.)
|
|
26
|
-
|
|
27
|
-
The main `Locator` component serves as the container that coordinates these components and manages the application state using Zustand.
|
|
28
|
-
|
|
29
9
|
### Technologies Used
|
|
30
10
|
|
|
31
|
-
- **React
|
|
32
|
-
- **TypeScript
|
|
33
|
-
- **zustand
|
|
34
|
-
- **framer-motion
|
|
35
|
-
- **@vis.gl/react-google-maps
|
|
36
|
-
- **Storybook
|
|
37
|
-
- **msw
|
|
11
|
+
- **React**: Framework for building user interfaces
|
|
12
|
+
- **TypeScript**: Superset of JavaScript for typed programming
|
|
13
|
+
- **zustand**: Simplified state management library
|
|
14
|
+
- **framer-motion**: Animation library
|
|
15
|
+
- **@vis.gl/react-google-maps**: React wrapper for Google Maps Universal JS SDK
|
|
16
|
+
- **Storybook**: Tool for UI component development and documentation
|
|
17
|
+
- **msw**: Mock Service Worker for API mocking
|
|
38
18
|
|
|
39
19
|
### Documentation
|
|
40
20
|
|
|
41
|
-
See [the full docs](./docs/index.md)
|
|
21
|
+
See [the full docs](./docs/index.md) for all the details.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as a, A as i } from "./index-
|
|
1
|
+
import { j as a, A as i } from "./index-9sJqqbiV.js";
|
|
2
2
|
function p({
|
|
3
3
|
children: r,
|
|
4
4
|
apiKey: o,
|
|
@@ -20,4 +20,4 @@ function p({
|
|
|
20
20
|
export {
|
|
21
21
|
p as default
|
|
22
22
|
};
|
|
23
|
-
//# sourceMappingURL=GoogleMapsProvider-
|
|
23
|
+
//# sourceMappingURL=GoogleMapsProvider-C9ozlugV.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GoogleMapsProvider-
|
|
1
|
+
{"version":3,"file":"GoogleMapsProvider-C9ozlugV.js","sources":["../src/components/organisms/Locator/providers/GoogleMapsProvider.tsx"],"sourcesContent":["import { PropsWithChildren } from \"react\";\nimport { APIProvider, APIProviderProps } from \"@vis.gl/react-google-maps\";\n\nexport default function GoogleMapsProvider({\n children,\n apiKey,\n language,\n region,\n libraries,\n}: PropsWithChildren<APIProviderProps>) {\n return (\n <APIProvider\n apiKey={apiKey}\n region={region}\n language={language}\n libraries={libraries}\n >\n {children}\n </APIProvider>\n );\n}\n"],"names":["GoogleMapsProvider","children","apiKey","language","region","libraries","jsx","APIProvider"],"mappings":";AAGA,SAAwBA,EAAmB;AAAA,EACzC,UAAAC;AAAA,EACA,QAAAC;AAAA,EACA,UAAAC;AAAA,EACA,QAAAC;AAAA,EACA,WAAAC;AACF,GAAwC;AAEpC,SAAAC,gBAAAA,EAAA;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,QAAAL;AAAA,MACA,QAAAE;AAAA,MACA,UAAAD;AAAA,MACA,WAAAE;AAAA,MAEC,UAAAJ;AAAA,IAAA;AAAA,EACH;AAEJ;"}
|