@arenarium/maps 1.0.22 → 1.0.24

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
@@ -27,7 +27,7 @@
27
27
  </html>
28
28
  ```
29
29
 
30
- #### Module
30
+ #### Svelte
31
31
 
32
32
  ```bash
33
33
  npm install @arenarium/maps
package/dist/index.d.ts CHANGED
@@ -29,10 +29,39 @@ declare const mapOptionsSchema: z.ZodObject<{
29
29
  };
30
30
  zoom: number;
31
31
  }>;
32
- theme: z.ZodUnion<[
33
- z.ZodLiteral<"dark">,
34
- z.ZodLiteral<"light">
35
- ]>;
32
+ theme: z.ZodObject<{
33
+ name: z.ZodUnion<[
34
+ z.ZodLiteral<"dark">,
35
+ z.ZodLiteral<"light">
36
+ ]>;
37
+ colors: z.ZodObject<{
38
+ primary: z.ZodString;
39
+ background: z.ZodString;
40
+ text: z.ZodString;
41
+ }, "strip", z.ZodTypeAny, {
42
+ primary: string;
43
+ background: string;
44
+ text: string;
45
+ }, {
46
+ primary: string;
47
+ background: string;
48
+ text: string;
49
+ }>;
50
+ }, "strip", z.ZodTypeAny, {
51
+ name: "dark" | "light";
52
+ colors: {
53
+ primary: string;
54
+ background: string;
55
+ text: string;
56
+ };
57
+ }, {
58
+ name: "dark" | "light";
59
+ colors: {
60
+ primary: string;
61
+ background: string;
62
+ text: string;
63
+ };
64
+ }>;
36
65
  }, "strip", z.ZodTypeAny, {
37
66
  container: string;
38
67
  position: {
@@ -42,7 +71,14 @@ declare const mapOptionsSchema: z.ZodObject<{
42
71
  };
43
72
  zoom: number;
44
73
  };
45
- theme: "dark" | "light";
74
+ theme: {
75
+ name: "dark" | "light";
76
+ colors: {
77
+ primary: string;
78
+ background: string;
79
+ text: string;
80
+ };
81
+ };
46
82
  }, {
47
83
  container: string;
48
84
  position: {
@@ -52,7 +88,14 @@ declare const mapOptionsSchema: z.ZodObject<{
52
88
  };
53
89
  zoom: number;
54
90
  };
55
- theme: "dark" | "light";
91
+ theme: {
92
+ name: "dark" | "light";
93
+ colors: {
94
+ primary: string;
95
+ background: string;
96
+ text: string;
97
+ };
98
+ };
56
99
  }>;
57
100
  export type MapOptions = z.infer<typeof mapOptionsSchema>;
58
101
  export declare function mountMap(options: MapOptions): {