@local-logic/maps 0.0.3 → 0.0.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.
@@ -4,29 +4,37 @@
4
4
 
5
5
  html {
6
6
  height: 100%;
7
- }
8
7
 
9
- body {
10
- font-family: 'Inter', sans-serif;
11
- }
8
+ /* Override base font size */
9
+ font-size: var(--ll-base-unit);
12
10
 
13
- h1,
14
- h2,
15
- h3,
16
- h4,
17
- h5,
18
- h6 {
19
- font-family: 'Inter', sans-serif;
11
+ -webkit-font-smoothing: antialiased;
12
+ -moz-osx-font-smoothing: grayscale;
13
+ text-rendering: optimizeLegibility;
20
14
  }
21
15
 
22
- @layer utilities {
23
- /* Chrome, Safari and Opera */
24
- .no-scrollbar::-webkit-scrollbar {
25
- display: none;
16
+ @layer base {
17
+ :root {
18
+ --ll-base-unit: 16px;
19
+
20
+ /* FONT FAMILY */
21
+ --ll-font-family: Inter, sans-serif;
22
+ --ll-font-family-mono: Consolas, Andale Mono WT, Andale Mono, Lucida Console,
23
+ Lucida Sans Typewriter, DejaVu Sans Mono, Bitstream Vera Sans Mono, Liberation Mono,
24
+ Nimbus Mono L, Monaco, Courier New, Courier, monospace;
26
25
  }
27
26
 
28
- .no-scrollbar {
29
- -ms-overflow-style: none; /* IE and Edge */
30
- scrollbar-width: none; /* Firefox */
27
+ html {
28
+ @apply scroll-smooth;
31
29
  }
32
30
  }
31
+
32
+ body {
33
+ -webkit-font-smoothing: antialiased;
34
+ -moz-osx-font-smoothing: antialiased;
35
+ -moz-osx-font-smoothing: grayscale;
36
+ -webkit-backface-visibility: hidden;
37
+ backface-visibility: hidden;
38
+ text-rendering: optimizeLegibility;
39
+ margin: 0;
40
+ }
@@ -1,16 +1,15 @@
1
- import "@local-logic/core/style.css";
2
1
  import "./globals.css";
3
- import { Preview } from '@storybook/react';
4
- import { withThemeByDataAttribute } from '@storybook/addon-themes';
2
+ import { Preview } from "@storybook/react";
3
+ import { withThemeByDataAttribute } from "@storybook/addon-themes";
5
4
 
6
5
  const preview: Preview = {
7
6
  decorators: [
8
7
  withThemeByDataAttribute({
9
8
  themes: {
10
- light: 'day',
11
- dark: 'night',
9
+ light: "day",
10
+ dark: "night",
12
11
  },
13
- defaultTheme: 'light',
12
+ defaultTheme: "light",
14
13
  attributeName: "data-theme",
15
14
  }),
16
15
  ],
@@ -22,7 +21,7 @@ const preview: Preview = {
22
21
  date: /Date$/,
23
22
  },
24
23
  },
25
- }
24
+ },
26
25
  };
27
26
 
28
27
  export default preview;
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @local-logic/maps
2
2
 
3
+ ## 0.0.5
4
+
5
+ ### Patch Changes
6
+
7
+ - 2488bec: LL22-8172: Remove core dependency from maps
8
+
9
+ ## 0.0.4
10
+
11
+ ### Patch Changes
12
+
13
+ - 892a059: LL22-5368: Updated storybook github action
14
+ - Updated dependencies [892a059]
15
+ - @local-logic/design-system@0.7.12
16
+
3
17
  ## 0.0.3
4
18
 
5
19
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@local-logic/maps",
3
- "version": "0.0.3",
3
+ "version": "0.0.5",
4
4
  "description": "This is a maps implementation allowing for the display of Local Logic data on a map.",
5
5
  "author": "Local Logic",
6
6
  "license": "ISC",
@@ -14,14 +14,14 @@
14
14
  "scripts": {
15
15
  "dev": "vite",
16
16
  "build": "vite build",
17
+ "build:storybook": "storybook build",
17
18
  "test": "vitest run",
18
19
  "stats": "STATS=1 vite build",
19
20
  "size": "yarn run build && size-limit",
20
21
  "lint": "TIMING=1 eslint --ext .js,.jsx,.ts,.tsx .",
21
22
  "check-types": "tsc --project ./tsconfig.json --noEmit",
22
23
  "clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist",
23
- "storybook:run": "storybook dev -p 6006",
24
- "storybook:build": "storybook build"
24
+ "storybook": "storybook dev -p 6006"
25
25
  },
26
26
  "peerDependencies": {
27
27
  "react": ">=18",
@@ -64,7 +64,6 @@
64
64
  "vitest": "^3.0.9"
65
65
  },
66
66
  "dependencies": {
67
- "@local-logic/core": "*",
68
67
  "@local-logic/design-system": "*",
69
68
  "@phosphor-icons/react": "^2.1.7",
70
69
  "@turf/turf": "^7.2.0",
@@ -11,7 +11,7 @@ function getLayerPaint(type: LayerType["type"], color: string) {
11
11
  case "fill":
12
12
  return {
13
13
  "fill-color": color,
14
- "fill-opacity": 0.15,
14
+ "fill-opacity": 0.25,
15
15
  };
16
16
  case "line":
17
17
  return {
@@ -23,7 +23,7 @@ export const background = `
23
23
 
24
24
  export const iconWrapper = `
25
25
  absolute top-1 left-1/2 transform -translate-x-1/2
26
- align-center rounded-full overflow-hidden
26
+ flex justify-center items-center rounded-full overflow-hidden
27
27
  transition-all w-3.5 h-3.5
28
28
 
29
29
  group-hover:bg-base-white
@@ -31,7 +31,9 @@ export const iconWrapper = `
31
31
 
32
32
  export const icon = `
33
33
  m-auto transition-all w-full h-full
34
+ max-w-3.5 max-h-3.5
34
35
 
35
36
  group-hover:text-primary-100
36
- group-hover:p-0.5
37
+ group-hover:max-w-2.5
38
+ group-hover:max-h-2.5
37
39
  `;
@@ -51,7 +51,8 @@ const Template: StoryFn<RootProps> = (args) => {
51
51
  if (activeMarker.markers.length === 1) {
52
52
  return (
53
53
  <>
54
- {activeMarker.markers[0].icon && React.createElement(activeMarker.markers[0].icon)}
54
+ {activeMarker.markers[0].icon &&
55
+ React.createElement(activeMarker.markers[0].icon, { className: "block" })}
55
56
  <strong>{activeMarker.markers[0]?.name}</strong>
56
57
  <p>
57
58
  {activeMarker?.latitude}, {activeMarker?.longitude}
@@ -74,7 +75,7 @@ const Template: StoryFn<RootProps> = (args) => {
74
75
  })
75
76
  }
76
77
  >
77
- {marker.icon && React.createElement(marker.icon, { className: "inline mr-5" })}
78
+ {marker.icon && React.createElement(marker.icon, { className: "inline mr-1" })}
78
79
  <strong>{marker.name}</strong>
79
80
  </button>
80
81
  </div>