@dynamo-caffeina-dev/locator-frontend 0.0.12 → 0.0.13

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 CHANGED
@@ -4,7 +4,9 @@
4
4
 
5
5
  Locator is a reusable and customizable store locator component built with React. It provides a comprehensive solution for displaying and searching locations on a map, with support for clustering, detailed views, and address search functionality.
6
6
 
7
- ## Features
7
+ ## Overview
8
+
9
+ ### Features
8
10
 
9
11
  - **Interactive Map**: Display locations with custom markers and clustering support
10
12
  - **Location Search**: Address search with Google Places API autocomplete
@@ -14,7 +16,7 @@ Locator is a reusable and customizable store locator component built with React.
14
16
  - **Internationalization**: (Partial) support for multiple languages and localization
15
17
  - **Optimized API Usage**: Session token management for Google Places API
16
18
 
17
- ## Architecture
19
+ ### Architecture
18
20
 
19
21
  The Locator component follows an atomic design pattern with the following structure:
20
22
 
@@ -24,7 +26,7 @@ The Locator component follows an atomic design pattern with the following struct
24
26
 
25
27
  The main `Locator` component serves as the container that coordinates these components and manages the application state using Zustand.
26
28
 
27
- ## Technologies Used
29
+ ### Technologies Used
28
30
 
29
31
  - **React (v19.0.0)**: Framework for building user interfaces
30
32
  - **TypeScript (v5.7.2)**: Superset of JavaScript for typed programming
@@ -33,3 +35,7 @@ The main `Locator` component serves as the container that coordinates these comp
33
35
  - **@vis.gl/react-google-maps (v1.5.1)**: React wrapper for Google Maps Universal JS SDK
34
36
  - **Storybook (v8.5.8)**: Tool for UI component development and documentation
35
37
  - **msw (v2.7.0)**: Mock Service Worker for API mocking
38
+
39
+ ### Documentation
40
+
41
+ See [the full docs](./docs/index.md) (WIP)
@@ -1,4 +1,4 @@
1
- import { j as a, A as i } from "./index-Wh66GjtQ.js";
1
+ import { j as a, A as i } from "./index-YiyHD5vz.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-CRHSYpue.js.map
23
+ //# sourceMappingURL=GoogleMapsProvider-B1fxqTkw.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"GoogleMapsProvider-CRHSYpue.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;"}
1
+ {"version":3,"file":"GoogleMapsProvider-B1fxqTkw.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;"}
@@ -940,7 +940,7 @@ function Ge({
940
940
  }
941
941
  );
942
942
  }
943
- const Lc = Nr(() => import("./GoogleMapsProvider-CRHSYpue.js")), Dc = Nr(() => import("./MapboxProvider-CC8pMGki.js")), Rc = Nr(() => import("./HEREMapsProvider-BO6aAVqj.js"));
943
+ const Lc = Nr(() => import("./GoogleMapsProvider-B1fxqTkw.js")), Dc = Nr(() => import("./MapboxProvider-CC8pMGki.js")), Rc = Nr(() => import("./HEREMapsProvider-BO6aAVqj.js"));
944
944
  function kc({
945
945
  children: t,
946
946
  mapProvider: e
@@ -6599,11 +6599,7 @@ function yl({
6599
6599
  },
6600
6600
  children: /* @__PURE__ */ v.jsxs("div", { className: Lt.root, children: [
6601
6601
  /* @__PURE__ */ v.jsxs("header", { className: Lt.header, children: [
6602
- e ? /* @__PURE__ */ v.jsx("time", { children: new Date(e).toLocaleDateString("it", {
6603
- day: "numeric",
6604
- month: "long",
6605
- year: "numeric"
6606
- }) }) : null,
6602
+ e ? /* @__PURE__ */ v.jsx("time", { children: e }) : null,
6607
6603
  /* @__PURE__ */ v.jsxs("div", { className: Lt.titleContainer, children: [
6608
6604
  t ? /* @__PURE__ */ v.jsx("h4", { children: t }) : null,
6609
6605
  /* @__PURE__ */ v.jsx(
@@ -8280,9 +8276,13 @@ function Ry({
8280
8276
  if (i && s) {
8281
8277
  const p = l.current[i];
8282
8278
  p != null && p.current && requestAnimationFrame(() => {
8279
+ const g = window.scrollY;
8283
8280
  p.current.scrollIntoView({
8284
8281
  behavior: "smooth",
8285
8282
  block: "start"
8283
+ }), window.scrollTo({
8284
+ top: g,
8285
+ behavior: "auto"
8286
8286
  });
8287
8287
  });
8288
8288
  }
@@ -8317,7 +8317,7 @@ function Ry({
8317
8317
  {
8318
8318
  className: Ut.toggleButtonIcon,
8319
8319
  animate: !1,
8320
- icon: "ChevronDown"
8320
+ icon: "ChevronUp"
8321
8321
  }
8322
8322
  )
8323
8323
  }
@@ -8949,4 +8949,4 @@ export {
8949
8949
  mv as S,
8950
8950
  v as j
8951
8951
  };
8952
- //# sourceMappingURL=index-Wh66GjtQ.js.map
8952
+ //# sourceMappingURL=index-YiyHD5vz.js.map