@abcagency/hc-ui-components 1.0.6 → 1.0.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abcagency/hc-ui-components",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -10,7 +10,7 @@ const ButtonVariant = {
10
10
  none: '',
11
11
  primary: 'hc-bg-primary hc-border hc-border-primary hc-text-white hover:hc-bg-opacity-70 focus:hc-bg-opacity-70',
12
12
  secondary: 'hc-bg-secondary hc-border hc-border-secondary hc-text-white hover:hc-bg-opacity-70 focus:hc-bg-opacity-70',
13
- outline: 'hc-bg-transparent hc-border hc-border-primary hc-text-primary hover:hc-bg-primaryDark hover:hc-border-primaryDark hover:hc-text-white focus:hc-bg-primaryDark focus:hc-border-primaryDark hc-focus:text-white',
13
+ outline: 'hc-bg-transparent hc-border hc-border-primary hc-text-primary hover:hc-bg-primaryDark hover:hc-border-primaryDark hover:hc-text-white focus:hc-bg-primaryDark focus:hc-border-primaryDark hc-focus:hc-text-white',
14
14
  link: `${linkDefaultClasses} hc-text-primary hover:hc-text-uiText focus:hc-text-uiText`,
15
15
  icon: 'hc-opacity-100 hover:hc-opacity-70 focus:hc-opacity-70'
16
16
  };
@@ -44,7 +44,7 @@ const MapList = ({
44
44
  <>
45
45
  <div
46
46
  className={`
47
- ${showMap == false ? "md:hc-grid-rows-[100vh]" : "md:hc-rid-rows-[50vh_50vh]"}
47
+ ${showMap == false ? "md:hc-grid-rows-[100vh]" : "md:hc-grid-rows-[50vh_50vh]"}
48
48
  md:hc-grid md:hc-pt-4 hc-overflow-hidden hc-relative
49
49
  `}
50
50
  >
@@ -34,8 +34,16 @@ const Map = ({
34
34
  const mapRef = useRef();
35
35
  const markerRefs = useRef({});
36
36
  const mapContainerRef = useRef(null);
37
- const { poiMarkers, setCurrentCenter, currentCenter, setCurrentZoom, currentZoom, selectedPlaceMarker, setSelectedPlaceMarker, placesWindow, setPlacesWindow } =
38
- usePlaces();
37
+ const {
38
+ poiMarkers,
39
+ setCurrentCenter,
40
+ currentCenter,
41
+ setCurrentZoom,
42
+ currentZoom,
43
+ selectedPlaceMarker,
44
+ setSelectedPlaceMarker,
45
+ placesWindow,
46
+ setPlacesWindow } = usePlaces();
39
47
 
40
48
  const onIdle = () => {
41
49
  if (!currentCenter || !mapRef.current) return;
@@ -4,17 +4,17 @@
4
4
 
5
5
  /* @layer base {
6
6
  html {
7
- @apply text-400 text-uiText [scroll-behavior:smooth];
7
+ @apply hc-text-400 hc-text-uiText [scroll-behavior:smooth];
8
8
  }
9
9
  }
10
10
 
11
11
  @layer components {
12
12
  .track * {
13
- @apply pointer-events-none;
13
+ @apply hc-pointer-events-none;
14
14
  }
15
15
 
16
16
  .hc-stretched-link::after {
17
- @apply content-[''] absolute inset-0 z-[1] pointer-events-auto bg-transparent;
17
+ @apply hc-content-[''] hc-absolute hc-inset-0 hc-z-[1] hc-pointer-events-auto hc-bg-transparent;
18
18
  }
19
19
  }
20
20