@blateral/b.kit 2.0.0-beta.9.8 → 2.0.0-beta.9.9
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/lib/components/sections/Map.d.ts +24 -10
- package/lib/components/sections/Map.d.ts.map +1 -1
- package/lib/index.es.js +1 -1
- package/lib/index.es.js.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/utils/arrays.d.ts +1 -1
- package/lib/utils/arrays.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -48,72 +48,86 @@ export interface MapLocation {
|
|
|
48
48
|
export declare const MapComponent: React.FC<{
|
|
49
49
|
/** ID value for targeting section with anchor hashes */
|
|
50
50
|
anchorId?: string | undefined;
|
|
51
|
+
/** Section background */
|
|
51
52
|
bgMode?: "full" | "inverted" | undefined;
|
|
53
|
+
/** Switch horizontal order of map and location info text */
|
|
52
54
|
isMirrored?: boolean | undefined;
|
|
55
|
+
/** Map tile provider */
|
|
53
56
|
provider?: string | undefined;
|
|
57
|
+
/** Map attribution text (richtext) */
|
|
54
58
|
attribution?: string | undefined;
|
|
59
|
+
/** Initial center of the map */
|
|
55
60
|
center?: [number, number] | undefined;
|
|
61
|
+
/** Initial map zoom */
|
|
56
62
|
zoom?: number | undefined;
|
|
63
|
+
/** Zoom if map jumps to location */
|
|
57
64
|
flyToZoom?: number | undefined;
|
|
65
|
+
/** Initial location */
|
|
58
66
|
initialLocation?: string | undefined;
|
|
67
|
+
/** Array of location settings */
|
|
59
68
|
locations?: MapLocation[] | undefined;
|
|
60
69
|
/** Show all markers on first load */
|
|
61
70
|
allMarkersOnInit?: boolean | undefined;
|
|
62
71
|
/** Map container padding for show all markers */
|
|
63
72
|
fitBoundsPadding?: [number, number] | undefined;
|
|
73
|
+
/** Icon element for flight to the current active location */
|
|
64
74
|
flyToControl?: React.ReactNode;
|
|
75
|
+
/** Injection function to replace default control button */
|
|
65
76
|
controlNext?: ((props: {
|
|
66
77
|
isInverted?: boolean | undefined;
|
|
67
78
|
isActive?: boolean | undefined;
|
|
68
79
|
name?: string | undefined;
|
|
69
80
|
clickHandler?: ((ev: React.SyntheticEvent<HTMLButtonElement>) => void) | undefined;
|
|
70
81
|
}) => React.ReactNode) | undefined;
|
|
82
|
+
/** Injection function to replace default control button */
|
|
71
83
|
controlPrev?: ((props: {
|
|
72
84
|
isInverted?: boolean | undefined;
|
|
73
85
|
isActive?: boolean | undefined;
|
|
74
86
|
name?: string | undefined;
|
|
75
87
|
clickHandler?: ((ev: React.SyntheticEvent<HTMLButtonElement>) => void) | undefined;
|
|
76
88
|
}) => React.ReactNode) | undefined;
|
|
77
|
-
dot?: ((props: {
|
|
78
|
-
isInverted?: boolean;
|
|
79
|
-
isActive?: boolean;
|
|
80
|
-
index?: number;
|
|
81
|
-
}) => React.ReactNode) | undefined;
|
|
82
89
|
}>;
|
|
83
90
|
declare const _default: React.FC<{
|
|
84
91
|
/** ID value for targeting section with anchor hashes */
|
|
85
92
|
anchorId?: string | undefined;
|
|
93
|
+
/** Section background */
|
|
86
94
|
bgMode?: "full" | "inverted" | undefined;
|
|
95
|
+
/** Switch horizontal order of map and location info text */
|
|
87
96
|
isMirrored?: boolean | undefined;
|
|
97
|
+
/** Map tile provider */
|
|
88
98
|
provider?: string | undefined;
|
|
99
|
+
/** Map attribution text (richtext) */
|
|
89
100
|
attribution?: string | undefined;
|
|
101
|
+
/** Initial center of the map */
|
|
90
102
|
center?: [number, number] | undefined;
|
|
103
|
+
/** Initial map zoom */
|
|
91
104
|
zoom?: number | undefined;
|
|
105
|
+
/** Zoom if map jumps to location */
|
|
92
106
|
flyToZoom?: number | undefined;
|
|
107
|
+
/** Initial location */
|
|
93
108
|
initialLocation?: string | undefined;
|
|
109
|
+
/** Array of location settings */
|
|
94
110
|
locations?: MapLocation[] | undefined;
|
|
95
111
|
/** Show all markers on first load */
|
|
96
112
|
allMarkersOnInit?: boolean | undefined;
|
|
97
113
|
/** Map container padding for show all markers */
|
|
98
114
|
fitBoundsPadding?: [number, number] | undefined;
|
|
115
|
+
/** Icon element for flight to the current active location */
|
|
99
116
|
flyToControl?: React.ReactNode;
|
|
117
|
+
/** Injection function to replace default control button */
|
|
100
118
|
controlNext?: ((props: {
|
|
101
119
|
isInverted?: boolean | undefined;
|
|
102
120
|
isActive?: boolean | undefined;
|
|
103
121
|
name?: string | undefined;
|
|
104
122
|
clickHandler?: ((ev: React.SyntheticEvent<HTMLButtonElement, Event>) => void) | undefined;
|
|
105
123
|
}) => React.ReactNode) | undefined;
|
|
124
|
+
/** Injection function to replace default control button */
|
|
106
125
|
controlPrev?: ((props: {
|
|
107
126
|
isInverted?: boolean | undefined;
|
|
108
127
|
isActive?: boolean | undefined;
|
|
109
128
|
name?: string | undefined;
|
|
110
129
|
clickHandler?: ((ev: React.SyntheticEvent<HTMLButtonElement, Event>) => void) | undefined;
|
|
111
130
|
}) => React.ReactNode) | undefined;
|
|
112
|
-
dot?: ((props: {
|
|
113
|
-
isInverted?: boolean | undefined;
|
|
114
|
-
isActive?: boolean | undefined;
|
|
115
|
-
index?: number | undefined;
|
|
116
|
-
}) => React.ReactNode) | undefined;
|
|
117
131
|
} & {
|
|
118
132
|
theme?: import("../../utils/types").RecursivePartial<import("styled-components").DefaultTheme> | undefined;
|
|
119
133
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Map.d.ts","sourceRoot":"","sources":["../../../src/components/sections/Map.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Map.d.ts","sourceRoot":"","sources":["../../../src/components/sections/Map.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAqBrD,OAAO,EAAE,WAAW,EAAE,8BAAsC;AAY5D,UAAU,OAAO;IACb,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,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