@tracktor/map 1.8.2 → 1.8.3
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/components/Markers/Markers.d.ts +6 -2
- package/dist/main.js +265 -238
- package/dist/main.umd.cjs +4 -4
- package/dist/types/MarkerProps.d.ts +9 -1
- package/package.json +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Theme } from '@tracktor/design-system';
|
|
1
2
|
export declare const variantMarkerColor: {
|
|
2
3
|
readonly default: "#009ba6";
|
|
3
4
|
readonly primary: "#3F83F8";
|
|
@@ -6,9 +7,12 @@ export declare const variantMarkerColor: {
|
|
|
6
7
|
readonly warning: "#FF9800";
|
|
7
8
|
};
|
|
8
9
|
export type VariantMarker = keyof typeof variantMarkerColor;
|
|
10
|
+
type ThemeColorPath = `${keyof Theme["palette"]}.${string}`;
|
|
11
|
+
type ThemeColor = string | ((theme: Theme) => string) | ThemeColorPath;
|
|
9
12
|
interface MarkerProps {
|
|
10
13
|
variant?: string | keyof typeof variantMarkerColor;
|
|
11
|
-
color?:
|
|
14
|
+
color?: ThemeColor;
|
|
15
|
+
size?: number;
|
|
12
16
|
}
|
|
13
|
-
declare const Markers: ({ color, variant }: MarkerProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
declare const Markers: ({ color, variant, size }: MarkerProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
18
|
export default Markers;
|