@macrostrat/map-interface 1.1.0 → 1.2.1

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.
Files changed (193) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/cjs/container.72611900.js +134 -0
  3. package/dist/cjs/container.72611900.js.map +1 -0
  4. package/dist/cjs/context-panel.8c4b009c.js +88 -0
  5. package/dist/cjs/context-panel.8c4b009c.js.map +1 -0
  6. package/dist/cjs/controls.7ce3e95c.js +79 -0
  7. package/dist/cjs/controls.7ce3e95c.js.map +1 -0
  8. package/dist/cjs/dev.7499151f.js +33 -0
  9. package/dist/cjs/dev.7499151f.js.map +1 -0
  10. package/dist/cjs/expansion-panel.08532cee.js +134 -0
  11. package/dist/cjs/expansion-panel.08532cee.js.map +1 -0
  12. package/dist/cjs/hash-string.62e84f08.js +67 -0
  13. package/dist/cjs/hash-string.62e84f08.js.map +1 -0
  14. package/dist/cjs/header.58c5c012.js +104 -0
  15. package/dist/cjs/header.58c5c012.js.map +1 -0
  16. package/dist/cjs/headers.20eae5f7.js +29 -0
  17. package/dist/cjs/headers.20eae5f7.js.map +1 -0
  18. package/dist/cjs/helpers.0f72ddaf.js +190 -0
  19. package/dist/cjs/helpers.0f72ddaf.js.map +1 -0
  20. package/dist/cjs/index.js +51 -0
  21. package/dist/cjs/index.js.map +1 -0
  22. package/dist/cjs/location-info.92e70042.js +119 -0
  23. package/dist/cjs/location-info.92e70042.js.map +1 -0
  24. package/dist/cjs/location-panel.c95f5e96.js +66 -0
  25. package/dist/cjs/location-panel.c95f5e96.js.map +1 -0
  26. package/dist/cjs/main.module.02c4de16.css +86 -0
  27. package/dist/cjs/main.module.02c4de16.css.map +1 -0
  28. package/dist/cjs/main.module.3f2b7c9f.js +38 -0
  29. package/dist/cjs/main.module.3f2b7c9f.js.map +1 -0
  30. package/dist/cjs/main.module.4ecbaaa5.js +62 -0
  31. package/dist/cjs/main.module.4ecbaaa5.js.map +1 -0
  32. package/dist/cjs/main.module.62939ea7.js +167 -0
  33. package/dist/cjs/main.module.62939ea7.js.map +1 -0
  34. package/dist/cjs/main.module.92978d8b.css +52 -0
  35. package/dist/cjs/main.module.92978d8b.css.map +1 -0
  36. package/dist/cjs/main.module.becc2fe7.css +92 -0
  37. package/dist/cjs/main.module.becc2fe7.css.map +1 -0
  38. package/dist/cjs/main.module.ccec47df.js +50 -0
  39. package/dist/cjs/main.module.ccec47df.js.map +1 -0
  40. package/dist/cjs/main.module.e958948e.js +26 -0
  41. package/dist/cjs/main.module.e958948e.js.map +1 -0
  42. package/dist/{index.css → cjs/main.module.f085a193.css} +9 -397
  43. package/dist/cjs/main.module.f085a193.css.map +1 -0
  44. package/dist/cjs/main.module.ff1b1aca.css +179 -0
  45. package/dist/cjs/main.module.ff1b1aca.css.map +1 -0
  46. package/dist/cjs/map-page.190b6723.js +182 -0
  47. package/dist/cjs/map-page.190b6723.js.map +1 -0
  48. package/dist/cjs/map-view.93363b41.js +167 -0
  49. package/dist/cjs/map-view.93363b41.js.map +1 -0
  50. package/dist/cjs/terrain.90f76b4e.js +59 -0
  51. package/dist/cjs/terrain.90f76b4e.js.map +1 -0
  52. package/dist/cjs/tile-extent.06a4b2ed.js +51 -0
  53. package/dist/cjs/tile-extent.06a4b2ed.js.map +1 -0
  54. package/dist/cjs/utils.09cef979.js +36 -0
  55. package/dist/cjs/utils.09cef979.js.map +1 -0
  56. package/dist/cjs/utils.26f02633.js +46 -0
  57. package/dist/cjs/utils.26f02633.js.map +1 -0
  58. package/dist/cjs/vector-tile-features.456f887b.js +268 -0
  59. package/dist/cjs/vector-tile-features.456f887b.js.map +1 -0
  60. package/dist/cjs/xray.a23f8660.js +89 -0
  61. package/dist/cjs/xray.a23f8660.js.map +1 -0
  62. package/dist/esm/container.16bde261.js +126 -0
  63. package/dist/esm/container.16bde261.js.map +1 -0
  64. package/dist/esm/context-panel.c288c5cd.js +81 -0
  65. package/dist/esm/context-panel.c288c5cd.js.map +1 -0
  66. package/dist/esm/controls.f757ce16.js +74 -0
  67. package/dist/esm/controls.f757ce16.js.map +1 -0
  68. package/dist/esm/dev.ccb6e774.js +13 -0
  69. package/dist/esm/dev.ccb6e774.js.map +1 -0
  70. package/dist/esm/expansion-panel.feff0e62.js +123 -0
  71. package/dist/esm/expansion-panel.feff0e62.js.map +1 -0
  72. package/dist/esm/hash-string.836601b2.js +61 -0
  73. package/dist/esm/hash-string.836601b2.js.map +1 -0
  74. package/dist/esm/header.0f535ab1.js +99 -0
  75. package/dist/esm/header.0f535ab1.js.map +1 -0
  76. package/dist/esm/headers.b25ff414.js +24 -0
  77. package/dist/esm/headers.b25ff414.js.map +1 -0
  78. package/dist/esm/helpers.fb1d7227.js +176 -0
  79. package/dist/esm/helpers.fb1d7227.js.map +1 -0
  80. package/dist/{types.d.ts → esm/index.d.ts} +102 -51
  81. package/dist/esm/index.d.ts.map +1 -0
  82. package/dist/esm/index.js +25 -0
  83. package/dist/esm/index.js.map +1 -0
  84. package/dist/esm/location-info.5543bb05.js +89 -0
  85. package/dist/esm/location-info.5543bb05.js.map +1 -0
  86. package/dist/esm/location-panel.0b1f4ed2.js +58 -0
  87. package/dist/esm/location-panel.0b1f4ed2.js.map +1 -0
  88. package/dist/esm/main.module.5eb366de.js +52 -0
  89. package/dist/esm/main.module.5eb366de.js.map +1 -0
  90. package/dist/esm/main.module.67a908da.js +40 -0
  91. package/dist/esm/main.module.67a908da.js.map +1 -0
  92. package/dist/esm/main.module.89579666.js +64 -0
  93. package/dist/esm/main.module.89579666.js.map +1 -0
  94. package/dist/esm/main.module.9c57cc95.js +28 -0
  95. package/dist/esm/main.module.9c57cc95.js.map +1 -0
  96. package/dist/esm/main.module.f70e002b.js +169 -0
  97. package/dist/esm/main.module.f70e002b.js.map +1 -0
  98. package/dist/esm/map-page.b953c404.js +175 -0
  99. package/dist/esm/map-page.b953c404.js.map +1 -0
  100. package/dist/esm/map-view.a3fe6257.js +161 -0
  101. package/dist/esm/map-view.a3fe6257.js.map +1 -0
  102. package/dist/esm/terrain.f65cf7c5.js +54 -0
  103. package/dist/esm/terrain.f65cf7c5.js.map +1 -0
  104. package/dist/esm/tile-extent.ca526996.js +46 -0
  105. package/dist/esm/tile-extent.ca526996.js.map +1 -0
  106. package/dist/esm/utils.122d1f2d.js +28 -0
  107. package/dist/esm/utils.122d1f2d.js.map +1 -0
  108. package/dist/esm/utils.d40349f0.js +40 -0
  109. package/dist/esm/utils.d40349f0.js.map +1 -0
  110. package/dist/esm/vector-tile-features.e1a24df0.js +258 -0
  111. package/dist/esm/vector-tile-features.e1a24df0.js.map +1 -0
  112. package/dist/esm/xray.c0663c25.js +83 -0
  113. package/dist/esm/xray.c0663c25.js.map +1 -0
  114. package/dist/node/container.abd6f0d2.js +2 -0
  115. package/dist/node/container.abd6f0d2.js.map +1 -0
  116. package/dist/node/context-panel.7c2f42c9.js +2 -0
  117. package/dist/node/context-panel.7c2f42c9.js.map +1 -0
  118. package/dist/node/controls.ffb44307.js +2 -0
  119. package/dist/node/controls.ffb44307.js.map +1 -0
  120. package/dist/node/dev.15b4cdb0.js +2 -0
  121. package/dist/node/dev.15b4cdb0.js.map +1 -0
  122. package/dist/node/expansion-panel.1553938f.js +2 -0
  123. package/dist/node/expansion-panel.1553938f.js.map +1 -0
  124. package/dist/node/hash-string.3fc8ceb0.js +2 -0
  125. package/dist/node/hash-string.3fc8ceb0.js.map +1 -0
  126. package/dist/node/header.5f15d599.js +2 -0
  127. package/dist/node/header.5f15d599.js.map +1 -0
  128. package/dist/node/headers.0d494ac2.js +2 -0
  129. package/dist/node/headers.0d494ac2.js.map +1 -0
  130. package/dist/node/helpers.6bda171f.js +2 -0
  131. package/dist/node/helpers.6bda171f.js.map +1 -0
  132. package/dist/node/index.js +2 -0
  133. package/dist/node/index.js.map +1 -0
  134. package/dist/node/location-info.9f59aad3.js +2 -0
  135. package/dist/node/location-info.9f59aad3.js.map +1 -0
  136. package/dist/node/location-panel.d22d21fa.js +2 -0
  137. package/dist/node/location-panel.d22d21fa.js.map +1 -0
  138. package/dist/node/main.module.24615279.js +2 -0
  139. package/dist/node/main.module.24615279.js.map +1 -0
  140. package/dist/node/main.module.29a15f3d.css +2 -0
  141. package/dist/node/main.module.29a15f3d.css.map +1 -0
  142. package/dist/node/main.module.2cc98713.css +2 -0
  143. package/dist/node/main.module.2cc98713.css.map +1 -0
  144. package/dist/node/main.module.434acaf9.js +2 -0
  145. package/dist/node/main.module.434acaf9.js.map +1 -0
  146. package/dist/node/main.module.61b261c8.css +2 -0
  147. package/dist/node/main.module.61b261c8.css.map +1 -0
  148. package/dist/node/main.module.78d7f40f.js +2 -0
  149. package/dist/node/main.module.78d7f40f.js.map +1 -0
  150. package/dist/node/main.module.89f269c7.css +2 -0
  151. package/dist/node/main.module.89f269c7.css.map +1 -0
  152. package/dist/node/main.module.d4e98e60.js +2 -0
  153. package/dist/node/main.module.d4e98e60.js.map +1 -0
  154. package/dist/node/main.module.e200d631.js +2 -0
  155. package/dist/node/main.module.e200d631.js.map +1 -0
  156. package/dist/node/main.module.f0530add.css +2 -0
  157. package/dist/node/main.module.f0530add.css.map +1 -0
  158. package/dist/node/map-page.0b19d49e.js +2 -0
  159. package/dist/node/map-page.0b19d49e.js.map +1 -0
  160. package/dist/node/map-view.c6746dca.js +2 -0
  161. package/dist/node/map-view.c6746dca.js.map +1 -0
  162. package/dist/node/terrain.96ae432a.js +2 -0
  163. package/dist/node/terrain.96ae432a.js.map +1 -0
  164. package/dist/node/tile-extent.28db5d2c.js +2 -0
  165. package/dist/node/tile-extent.28db5d2c.js.map +1 -0
  166. package/dist/node/utils.274d0452.js +2 -0
  167. package/dist/node/utils.274d0452.js.map +1 -0
  168. package/dist/node/utils.dd92f725.js +2 -0
  169. package/dist/node/utils.dd92f725.js.map +1 -0
  170. package/dist/node/vector-tile-features.c02e240c.js +2 -0
  171. package/dist/node/vector-tile-features.c02e240c.js.map +1 -0
  172. package/dist/node/xray.bce11e7b.js +2 -0
  173. package/dist/node/xray.bce11e7b.js.map +1 -0
  174. package/package.json +28 -36
  175. package/src/container.ts +29 -21
  176. package/src/context-panel/index.ts +4 -4
  177. package/src/context-panel/main.module.sass +1 -1
  178. package/src/dev/main.module.sass +16 -0
  179. package/src/dev/map-page.ts +19 -4
  180. package/src/dev/vector-tile-features.ts +44 -13
  181. package/src/location-panel/header.ts +27 -8
  182. package/src/location-panel/index.ts +4 -2
  183. package/src/location-panel/main.module.sass +7 -0
  184. package/src/main.module.sass +4 -1
  185. package/src/map-view/index.ts +1 -1
  186. package/dist/index.cjs.css +0 -961
  187. package/dist/index.cjs.css.map +0 -1
  188. package/dist/index.cjs.js +0 -1954
  189. package/dist/index.cjs.js.map +0 -1
  190. package/dist/index.css.map +0 -1
  191. package/dist/index.js +0 -1945
  192. package/dist/index.js.map +0 -1
  193. package/dist/types.d.ts.map +0 -1
@@ -1,6 +1,8 @@
1
+ import { InputHTMLAttributes, DetailedReactHTMLElement, FunctionComponentElement, JSXElementConstructor, ReactElement, DOMAttributes, DOMElement, ReactNode } from "react";
1
2
  import { ParsedQuery } from "query-string";
3
+ import { CardProps } from "@blueprintjs/core";
2
4
  import mapboxgl from "mapbox-gl";
3
- import { ReactNode } from "react";
5
+ import { Hyper } from "@macrostrat/hyper";
4
6
  type LatLng = {
5
7
  lng: number;
6
8
  lat: number;
@@ -23,7 +25,7 @@ declare namespace InfiniteScrollView {
23
25
  getItems(d: any): any;
24
26
  getCount(d: any): any;
25
27
  getNextParams(response: any, params: any): any;
26
- placeholder: (p: APIPlaceholderProps) => React.ReactNode;
28
+ placeholder: (p: APIPlaceholderProps) => React.ComponentElement<$$parcel$import$214<HTMLElement>, Spinner>;
27
29
  };
28
30
  }
29
31
  declare namespace ThreeColumnLayout {
@@ -36,21 +38,33 @@ export function LoadingButton({ isLoading, onClick, active, large, icon, style,
36
38
  large?: boolean;
37
39
  icon?: string;
38
40
  style: any;
39
- }): any;
40
- export function MapLoadingButton(props: any): import("react").ReactNode;
41
+ }): DetailedReactHTMLElement<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>;
42
+ export function MapLoadingButton(props: any): FunctionComponentElement<{
43
+ isLoading?: boolean;
44
+ onClick: any;
45
+ active?: boolean;
46
+ large?: boolean;
47
+ icon?: string;
48
+ style: any;
49
+ }>;
41
50
  type AnyChildren = React.ReactNode;
42
51
  export interface FloatingNavbarProps {
43
52
  className?: string;
44
- children: AnyChildren;
53
+ children?: AnyChildren;
45
54
  headerElement?: AnyChildren;
46
55
  title?: AnyChildren;
47
56
  statusElement?: AnyChildren;
48
57
  rightElement?: AnyChildren;
49
- height: number | string;
50
- width: number | string;
58
+ height?: number | string;
59
+ width?: number | string;
51
60
  style?: object;
52
61
  }
53
- export function FloatingNavbar({ className, children, headerElement, title, statusElement, rightElement, height, width, style, }: FloatingNavbarProps): any;
62
+ export function FloatingNavbar({ className, children, headerElement, title, statusElement, rightElement, height, width, style, }: FloatingNavbarProps): ReactElement<{
63
+ className: string;
64
+ style: {
65
+ width: string | number;
66
+ };
67
+ }, string | JSXElementConstructor<any>>;
54
68
  interface LocationHashParams {
55
69
  x?: string;
56
70
  y?: string;
@@ -60,8 +74,8 @@ interface LocationHashParams {
60
74
  }
61
75
  export function applyMapPositionToHash(args: LocationHashParams, mapPosition: MapPosition | null): void;
62
76
  export function getMapPositionForHash(hashData: ParsedQuery<string>, centerPosition: LatLng | null): MapPosition;
63
- export function ValueWithUnit(props: any): import("react").ReactNode;
64
- export function DegreeCoord(props: any): any;
77
+ export function ValueWithUnit(props: any): DOMElement<DOMAttributes<Element>, Element>;
78
+ export function DegreeCoord(props: any): FunctionComponentElement<any>;
65
79
  export interface LngLatProps {
66
80
  /** Map position */
67
81
  position: [number, number] | {
@@ -76,24 +90,48 @@ export interface LngLatProps {
76
90
  /** Function to format coordinates */
77
91
  format?: (val: number, precision: number) => string;
78
92
  }
79
- export function LngLatCoords(props: LngLatProps): any;
80
- export function Elevation(props: any): any;
93
+ export function LngLatCoords(props: LngLatProps): ReactElement<{
94
+ className: string;
95
+ }, string | JSXElementConstructor<any>>;
96
+ export function Elevation(props: any): ReactElement<{
97
+ className: any;
98
+ }, string | JSXElementConstructor<any>>;
81
99
  interface InfoDrawerHeaderProps {
82
- onClose: () => void;
83
- position: mapboxgl.LngLat;
100
+ onClose?: () => void;
101
+ position?: mapboxgl.LngLat;
84
102
  zoom?: number;
85
103
  elevation?: number;
86
104
  showCopyPositionButton?: boolean;
105
+ bounds?: mapboxgl.LngLatBounds;
106
+ }
107
+ export function MapBottomControls({ children }: {
108
+ children: any;
109
+ }): DOMElement<DOMAttributes<Element>, Element>;
110
+ export const PanelCard: (props: any) => FunctionComponentElement<CardProps>;
111
+ export enum DetailPanelStyle {
112
+ FIXED = "fixed",
113
+ FLOATING = "floating"
87
114
  }
88
- export function InfoDrawerContainer(props: any): import("react").ReactNode;
115
+ export const MapAreaContainer: (props: any) => FunctionComponentElement<{
116
+ children: any;
117
+ }>;
118
+ interface MapContainerProps {
119
+ className?: string;
120
+ children?: ReactNode;
121
+ }
122
+ export function MapStyledContainer({ className, children }: MapContainerProps): DetailedReactHTMLElement<{
123
+ className: string;
124
+ }, HTMLElement>;
125
+ export function InfoDrawerContainer(props: any): FunctionComponentElement<any>;
89
126
  interface BaseInfoDrawerProps extends InfoDrawerHeaderProps {
90
127
  className?: string;
91
128
  title?: string;
92
129
  headerElement?: JSX.Element;
93
130
  children?: React.ReactNode;
94
131
  }
95
- export function BaseInfoDrawer(props: BaseInfoDrawerProps): any;
96
- export function LocationPanel(props: any): any;
132
+ export function BaseInfoDrawer(props: BaseInfoDrawerProps): FunctionComponentElement<any>;
133
+ export const DetailsPanel: typeof BaseInfoDrawer;
134
+ export function LocationPanel(props: any): FunctionComponentElement<BaseInfoDrawerProps>;
97
135
  interface XRayOptions {
98
136
  color?: string;
99
137
  inDarkMode?: boolean;
@@ -121,20 +159,6 @@ type InspectorStyleOptions = XRayOptions & {
121
159
  xRay?: boolean;
122
160
  };
123
161
  export function buildInspectorStyle(baseStyle: mapboxgl.Style | string, overlayStyle?: mapboxgl.Style | string | null, params?: InspectorStyleOptions): Promise<mapboxgl.Style>;
124
- export function MapBottomControls({ children }: {
125
- children: any;
126
- }): import("react").ReactNode;
127
- export const PanelCard: (props: any) => ReactNode;
128
- export enum DetailPanelStyle {
129
- FIXED = "fixed",
130
- FLOATING = "floating"
131
- }
132
- export const MapAreaContainer: (props: any) => ReactNode;
133
- interface MapContainerProps {
134
- className?: string;
135
- children?: ReactNode;
136
- }
137
- export function MapStyledContainer({ className, children }: MapContainerProps): any;
138
162
  export function getMapPadding(ref: any, parentRef: any): {
139
163
  left: number;
140
164
  top: number;
@@ -185,7 +209,7 @@ export interface MapViewProps extends MapboxCoreOptions {
185
209
  export interface MapboxOptionsExt extends MapboxCoreOptions {
186
210
  mapPosition?: MapPosition;
187
211
  }
188
- export function MapView(props: MapViewProps): any;
212
+ export function MapView(props: MapViewProps): DOMElement<DOMAttributes<HTMLDivElement>, HTMLDivElement>;
189
213
  export function MapTerrainManager({ mapUse3D, terrainSourceID, }: {
190
214
  mapUse3D?: boolean;
191
215
  terrainSourceID?: string;
@@ -199,24 +223,34 @@ export function TileExtentLayer({ tile, color, }: {
199
223
  tile: TileIndex | null;
200
224
  color?: string;
201
225
  }): any;
202
- export function PanelSubhead(props: any): any;
203
- export function ExpansionPanelSummary(props: any): any;
204
- export function InfoPanelSection(props: any): any;
205
- export function ExpansionPanel(props: any): import("react").ReactNode;
206
- export function SubExpansionPanel(props: any): import("react").ReactNode;
207
- export function ExpandableDetailsPanel(props: any): any;
226
+ export function PanelSubhead(props: any): DOMElement<any, Element>;
227
+ export function ExpansionPanelSummary(props: any): FunctionComponentElement<any>;
228
+ export function InfoPanelSection(props: any): ReactElement<{
229
+ className: any;
230
+ }, string | JSXElementConstructor<any>>;
231
+ export function ExpansionPanel(props: any): FunctionComponentElement<any>;
232
+ export function SubExpansionPanel(props: any): FunctionComponentElement<any>;
233
+ export function ExpandableDetailsPanel(props: any): ReactElement<{
234
+ className: any;
235
+ }, string | JSXElementConstructor<any>>;
208
236
  export function ExpansionBody({ title, className, children }: {
209
237
  title: any;
210
238
  className: any;
211
239
  children: any;
212
- }): any;
240
+ }): ReactElement<{
241
+ className: any;
242
+ }, string | JSXElementConstructor<any>>;
213
243
  export function FeatureProperties({ data, ...rest }: {
214
244
  [x: string]: any;
215
245
  data: any;
216
- }): import("react").ReactNode;
246
+ }): DOMElement<{
247
+ onMouseEnter: () => void;
248
+ onMouseLeave: () => void;
249
+ }, Element>;
217
250
  export function FeatureRecord({ feature }: {
218
251
  feature: any;
219
- }): import("react").ReactNode;
252
+ }): DOMElement<DOMAttributes<Element>, Element>;
253
+ /** This component wraps queryRenderedFeatures to get features at a given location */
220
254
  export function FeatureSelectionHandler({ selectedLocation, setFeatures, radius, }: {
221
255
  selectedLocation: mapboxgl.LngLat;
222
256
  setFeatures: (features: mapboxgl.MapboxGeoJSONFeature[]) => void;
@@ -226,21 +260,21 @@ export function TileInfo({ feature, showExtent, setShowExtent }: {
226
260
  feature: any;
227
261
  showExtent: any;
228
262
  setShowExtent: any;
229
- }): import("react").ReactNode;
230
- export function FeaturePanel({ features, focusedSource, focusedSourceTitle, }: {
263
+ }): DOMElement<DOMAttributes<Element>, Element>;
264
+ export function FeaturePanel({ features, focusedSource }: {
231
265
  features: any;
232
266
  focusedSource?: any;
233
- focusedSourceTitle?: any;
234
- }): import("react").ReactNode;
267
+ }): DOMElement<DOMAttributes<Element>, Element>;
235
268
  export function Features({ features }: {
236
269
  features: any;
237
- }): any;
238
- export const h: import("@macrostrat/hyper").Hyper;
239
- export function MapInspector({ title, headerElement, transformRequest, mapPosition, mapboxToken, overlayStyle, children, style, bounds, focusedSource, focusedSourceTitle, fitViewport, styleType, }: {
270
+ }): DOMElement<any, Element>;
271
+ export const h: Hyper;
272
+ export function MapInspectorV2({ title, headerElement, transformRequest, mapPosition, mapboxToken, overlayStyle, controls, children, style, bounds, focusedSource, focusedSourceTitle, fitViewport, styleType, }: {
240
273
  headerElement?: React.ReactNode;
241
274
  transformRequest?: mapboxgl.TransformRequestFunction;
242
275
  title?: string;
243
276
  style?: mapboxgl.Style | string;
277
+ controls?: React.ReactNode;
244
278
  children?: React.ReactNode;
245
279
  mapboxToken?: string;
246
280
  overlayStyle?: mapboxgl.Style | string;
@@ -250,8 +284,25 @@ export function MapInspector({ title, headerElement, transformRequest, mapPositi
250
284
  mapPosition?: MapPosition;
251
285
  bounds?: [number, number, number, number];
252
286
  fitViewport?: boolean;
253
- styleType: "standard" | "macrostrat";
254
- }): any;
287
+ styleType?: "standard" | "macrostrat";
288
+ }): FunctionComponentElement<any>;
289
+ declare function MapInspector(props: any): FunctionComponentElement<{
290
+ headerElement?: React.ReactNode;
291
+ transformRequest?: mapboxgl.TransformRequestFunction;
292
+ title?: string;
293
+ style?: mapboxgl.Style | string;
294
+ controls?: React.ReactNode;
295
+ children?: React.ReactNode;
296
+ mapboxToken?: string;
297
+ overlayStyle?: mapboxgl.Style | string;
298
+ focusedSource?: string;
299
+ focusedSourceTitle?: string;
300
+ projection?: string;
301
+ mapPosition?: MapPosition;
302
+ bounds?: [number, number, number, number];
303
+ fitViewport?: boolean;
304
+ styleType?: "standard" | "macrostrat";
305
+ }>;
255
306
  export const DevMapPage: typeof MapInspector;
256
307
 
257
- //# sourceMappingURL=types.d.ts.map
308
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"mappings":";;;;;ACGA,cAAqB;IACnB,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,sBAAsB,MAAM,GAAG;IAC7B,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,sBAAsB,MAAM,GAAG;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,mBAA0B;IACxB,MAAM,EAAE,cAAc,CAAC;IACvB,MAAM,CAAC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AChC,gBAAgB,CAAC,EAAE,SAAS,wBAAwB,CAAC;IACrD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,SAAS,KAAK,GAAG,MAAM,CAAC;IAChC,QAAQ,CAAC,EAAE,MAAM,SAAS,CAAC;IAC3B,QAAQ,CAAC,EAAE,MAAM,SAAS,CAAC;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,SAAS,KAAK,GAAG,MAAM,CAAC;IACvC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IAC1C,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,SAAS,CAAC,EAAE,UAAU,GAAG,YAAY,CAAC;CACvC,iCAsIA;AAED,8BAAsB,KAAK,KAAA;oBAvJT,MAAM,SAAS;uBACZ,SAAS,wBAAwB;YAC5C,MAAM;YACN,SAAS,KAAK,GAAG,MAAM;eACpB,MAAM,SAAS;eACf,MAAM,SAAS;kBACZ,MAAM;mBACL,SAAS,KAAK,GAAG,MAAM;oBACtB,MAAM;yBACD,MAAM;iBACd,MAAM;kBACL,WAAW;aAChB,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC;kBAC3B,OAAO;gBACT,UAAU,GAAG,YAAY;GAmJtC;AAGD,OAAO,MAAM,+BAAyB,CAAC","sources":["packages/map-interface/mapbox-utils/src/labels.ts","packages/map-interface/mapbox-utils/src/position.ts","packages/map-interface/mapbox-utils/src/preprocess-styles.ts","packages/map-interface/mapbox-utils/src/utils.ts","packages/map-interface/mapbox-utils/src/view-info.ts","packages/map-interface/mapbox-utils/src/style-helpers.ts","packages/map-interface/mapbox-utils/src/index.ts","packages/map-interface/mapbox-react/src/context.ts","packages/map-interface/mapbox-react/src/hooks.ts","packages/map-interface/mapbox-react/src/controls.ts","packages/map-interface/mapbox-react/src/terrain.ts","packages/map-interface/mapbox-react/src/debugger.ts","packages/map-interface/mapbox-react/src/focus-state.ts","packages/map-interface/map-styles/src/layer-helpers/symbol-layers.ts","packages/map-interface/map-styles/src/layer-helpers/geology-layers.ts","packages/map-interface/map-styles/src/layer-helpers/pattern-fill.ts","packages/map-interface/map-styles/src/layer-helpers/utils.ts","packages/map-interface/map-styles/src/layer-helpers/point-features/symbols/index.ts","packages/map-interface/map-styles/src/layer-helpers/point-features/icon-image.ts","packages/map-interface/map-styles/src/layer-helpers/point-features/symbol-layer.ts","packages/map-interface/map-styles/src/layer-helpers/point-features/index.ts","packages/map-interface/map-styles/src/layer-helpers/index.ts","packages/map-interface/map-styles/src/styles/line-symbols.ts","packages/map-interface/color-utils/src/index.ts","packages/map-interface/map-styles/src/styles/layers.ts","packages/map-interface/map-styles/src/styles/index.ts","packages/map-interface/map-styles/src/index.ts","packages/map-interface/mapbox-react/src/layer-managers/line-symbols.ts","packages/map-interface/ui-components/src/api/types.ts","packages/map-interface/ui-components/src/util/query-string.ts","packages/map-interface/ui-components/src/util/state-hooks.ts","packages/map-interface/ui-components/src/util/layout-hooks.ts","packages/map-interface/ui-components/src/util/local-storage.ts","packages/map-interface/ui-components/src/util/json-view.ts","packages/map-interface/ui-components/src/util/scroll-helpers.ts","packages/map-interface/ui-components/src/util/migration-helpers.ts","packages/map-interface/ui-components/src/util/box-model.ts","packages/map-interface/ui-components/src/util/event-hooks.ts","packages/map-interface/ui-components/src/util/flexbox.ts","packages/map-interface/ui-components/src/util/size-aware-label.ts","packages/map-interface/ui-components/src/util/index.ts","packages/map-interface/ui-components/src/api/provider.ts","packages/map-interface/ui-components/src/api/data-provider.ts","packages/map-interface/ui-components/src/api/indexing.ts","packages/map-interface/ui-components/src/api/frontend.ts","packages/map-interface/ui-components/src/api/paged.ts","packages/map-interface/ui-components/src/api/index.ts","packages/map-interface/ui-components/src/infinite-scroll.ts","packages/map-interface/ui-components/src/buttons/delete-button.ts","packages/map-interface/ui-components/src/buttons/index.ts","packages/map-interface/ui-components/src/collapse-panel/index.ts","packages/map-interface/ui-components/src/link-card.ts","packages/map-interface/ui-components/src/file-upload/index.ts","packages/map-interface/ui-components/src/image.ts","packages/map-interface/ui-components/src/model-editor.ts","packages/map-interface/ui-components/src/toaster.ts","packages/map-interface/ui-components/src/citations/author-list.ts","packages/map-interface/ui-components/src/citations/index.ts","packages/map-interface/ui-components/src/geodeepdive/reference-card.ts","packages/map-interface/ui-components/src/geodeepdive/index.ts","packages/map-interface/ui-components/src/text.ts","packages/map-interface/ui-components/src/dark-mode.ts","packages/map-interface/ui-components/src/form-controls/slider.ts","packages/map-interface/ui-components/src/form-controls/index.ts","packages/map-interface/ui-components/src/settings/index.ts","packages/map-interface/ui-components/src/error-boundary.ts","packages/map-interface/ui-components/src/patterns/composite-image.ts","packages/map-interface/ui-components/src/patterns/index.ts","packages/map-interface/ui-components/src/collapse-card.ts","packages/map-interface/ui-components/src/modal-panel/draggable-overlay.ts","packages/map-interface/ui-components/src/modal-panel/index.ts","packages/map-interface/ui-components/src/page-layouts/index.ts","packages/map-interface/ui-components/src/dev-panel/_inner.ts","packages/map-interface/ui-components/src/dev-panel/index.ts","packages/map-interface/ui-components/src/data/index.ts","packages/map-interface/ui-components/src/index.ts","packages/map-interface/mapbox-react/src/layer-managers/map-sources.ts","packages/map-interface/mapbox-react/src/layer-managers/index.ts","packages/map-interface/mapbox-react/src/index.ts","packages/map-interface/src/src/context-panel/index.ts","packages/map-interface/src/src/location-info/utils.ts","packages/map-interface/src/src/location-info/hash-string.ts","packages/map-interface/src/src/location-info/index.ts","packages/map-interface/src/src/location-panel/header.ts","packages/map-interface/src/src/controls.ts","packages/map-interface/src/src/container.ts","packages/map-interface/src/src/location-panel/index.ts","packages/map-interface/src/src/dev/xray.ts","packages/map-interface/src/src/utils.ts","packages/map-interface/src/src/helpers.ts","packages/map-interface/src/src/map-view/terrain.ts","packages/map-interface/src/src/map-view/index.ts","packages/map-interface/src/src/dev/tile-extent.ts","packages/map-interface/src/src/expansion-panel/headers.ts","packages/map-interface/src/src/expansion-panel/index.ts","packages/map-interface/src/src/dev/vector-tile-features.ts","packages/map-interface/src/src/dev/map-page.ts","packages/map-interface/src/src/dev/index.ts","packages/map-interface/src/src/index.ts","packages/map-interface/src/index.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,"export * from \"./context-panel\";\nexport * from \"./location-panel\";\nexport * from \"./dev\";\nexport * from \"./container\";\nexport * from \"./map-view\";\nexport * from \"./controls\";\nexport * from \"./helpers\";\nexport * from \"./utils\";\nexport * from \"./location-info\";\nexport * from \"./expansion-panel\";\n"],"names":[],"version":3,"file":"index.d.ts.map"}
@@ -0,0 +1,25 @@
1
+ import {LoadingButton as $6e914c81c8e053da$export$4ec83e90d030b2f3, MapLoadingButton as $6e914c81c8e053da$export$9e3bae3c08bde368, FloatingNavbar as $6e914c81c8e053da$export$a8cc0062d02a3841} from "./context-panel.c288c5cd.js";
2
+ import {InfoDrawerContainer as $f50c3537aaff0cff$export$83f9a19cf91c2d06, BaseInfoDrawer as $f50c3537aaff0cff$export$a5ddcc2a88716895, DetailsPanel as $f50c3537aaff0cff$export$e54a7f2505304e20, LocationPanel as $f50c3537aaff0cff$export$aa4baff5242ea6e1} from "./location-panel.0b1f4ed2.js";
3
+ import {h as $a281a0612311d660$export$dda1d9f60106f0e9, MapInspectorV2 as $a281a0612311d660$export$eab3034e57b46e26, DevMapPage as $a281a0612311d660$export$2391061fbdfb71ef, TileExtentLayer as $1d4d29ef2725aa16$export$86c09739b12f23cd, FeatureProperties as $b8c84b63e75fe4f2$export$2906e7f4b228efe9, FeatureRecord as $b8c84b63e75fe4f2$export$dc87b4d46cea200d, FeatureSelectionHandler as $b8c84b63e75fe4f2$export$214daccdda0f4ac6, Features as $b8c84b63e75fe4f2$export$617d79dae526d2cf, TileInfo as $b8c84b63e75fe4f2$export$43c75dec9d0b96c, FeaturePanel as $b8c84b63e75fe4f2$export$43277c51a01761c1, buildXRayStyle as $64ee2eed3ed5ffbc$export$eff5fb2e10d05b1d, buildInspectorStyle as $64ee2eed3ed5ffbc$export$e739dc8dfc0db9a6} from "./dev.ccb6e774.js";
4
+ import {PanelCard as $4bdfa9cd8240b2fd$export$ec68dd77edbe678b, DetailPanelStyle as $4bdfa9cd8240b2fd$export$612ca936d3ed4784, MapAreaContainer as $4bdfa9cd8240b2fd$export$9fa5da0bcfd0a290, MapStyledContainer as $4bdfa9cd8240b2fd$export$fa395a37c3898ae3} from "./container.16bde261.js";
5
+ import {MapView as $9e150e311a3261e9$export$ab1e7a67d6ec5ad8, MapTerrainManager as $9e150e311a3261e9$export$cee395a8a2a00b29} from "./map-view.a3fe6257.js";
6
+ import {MapBottomControls as $91d5aa004eeb2226$export$db1a2e058a06fb5c} from "./controls.f757ce16.js";
7
+ import {MapResizeManager as $4bc3dd5f0732eed3$export$31b2e088aff2dc5d, MapPaddingManager as $4bc3dd5f0732eed3$export$2ab96428dea558d6, MapMovedReporter as $4bc3dd5f0732eed3$export$f6eeee399afc4e9a, MapLoadingReporter as $4bc3dd5f0732eed3$export$e57f9eaa51773f82, MapMarker as $4bc3dd5f0732eed3$export$5c90a91c7455938c, useBasicStylePair as $4bc3dd5f0732eed3$export$566518253d2584f8} from "./helpers.fb1d7227.js";
8
+ import {getMapPadding as $82fe09613877ffc2$export$bb78f9f01775eef1, useMapMarker as $82fe09613877ffc2$export$278090850f6b3a9f} from "./utils.d40349f0.js";
9
+ import {ValueWithUnit as $4fae2d573d730db8$export$716098b85fd0efdf, DegreeCoord as $4fae2d573d730db8$export$af8082af0bea3eb1, LngLatCoords as $4fae2d573d730db8$export$f195b3550849e560, Elevation as $4fae2d573d730db8$export$58bfb4f6ec5aa58d, applyMapPositionToHash as $bb5f34705d9c44bc$export$8391d1abb505ffb3, getMapPositionForHash as $bb5f34705d9c44bc$export$80abf1cbcc3918e4} from "./location-info.5543bb05.js";
10
+ import {ExpansionPanelSummary as $d570ac304373e71c$export$cea00a9d724d5a32, InfoPanelSection as $d570ac304373e71c$export$39c134eb0b07cf0e, ExpansionPanel as $d570ac304373e71c$export$40e646e38e6ed100, SubExpansionPanel as $d570ac304373e71c$export$d7160281aff7c3b8, ExpandableDetailsPanel as $d570ac304373e71c$export$44ad9ff780615135, ExpansionBody as $d570ac304373e71c$export$263416b670b3f129, PanelSubhead as $72e497a412b1da0a$export$ed081779ec3709aa} from "./expansion-panel.feff0e62.js";
11
+
12
+
13
+
14
+
15
+
16
+
17
+
18
+
19
+
20
+
21
+
22
+
23
+
24
+ export {$6e914c81c8e053da$export$4ec83e90d030b2f3 as LoadingButton, $6e914c81c8e053da$export$9e3bae3c08bde368 as MapLoadingButton, $6e914c81c8e053da$export$a8cc0062d02a3841 as FloatingNavbar, $f50c3537aaff0cff$export$83f9a19cf91c2d06 as InfoDrawerContainer, $f50c3537aaff0cff$export$a5ddcc2a88716895 as BaseInfoDrawer, $f50c3537aaff0cff$export$e54a7f2505304e20 as DetailsPanel, $f50c3537aaff0cff$export$aa4baff5242ea6e1 as LocationPanel, $a281a0612311d660$export$dda1d9f60106f0e9 as h, $a281a0612311d660$export$eab3034e57b46e26 as MapInspectorV2, $a281a0612311d660$export$2391061fbdfb71ef as DevMapPage, $1d4d29ef2725aa16$export$86c09739b12f23cd as TileExtentLayer, $b8c84b63e75fe4f2$export$2906e7f4b228efe9 as FeatureProperties, $b8c84b63e75fe4f2$export$dc87b4d46cea200d as FeatureRecord, $b8c84b63e75fe4f2$export$214daccdda0f4ac6 as FeatureSelectionHandler, $b8c84b63e75fe4f2$export$617d79dae526d2cf as Features, $b8c84b63e75fe4f2$export$43c75dec9d0b96c as TileInfo, $b8c84b63e75fe4f2$export$43277c51a01761c1 as FeaturePanel, $64ee2eed3ed5ffbc$export$eff5fb2e10d05b1d as buildXRayStyle, $64ee2eed3ed5ffbc$export$e739dc8dfc0db9a6 as buildInspectorStyle, $4bdfa9cd8240b2fd$export$ec68dd77edbe678b as PanelCard, $4bdfa9cd8240b2fd$export$612ca936d3ed4784 as DetailPanelStyle, $4bdfa9cd8240b2fd$export$9fa5da0bcfd0a290 as MapAreaContainer, $4bdfa9cd8240b2fd$export$fa395a37c3898ae3 as MapStyledContainer, $9e150e311a3261e9$export$ab1e7a67d6ec5ad8 as MapView, $9e150e311a3261e9$export$cee395a8a2a00b29 as MapTerrainManager, $91d5aa004eeb2226$export$db1a2e058a06fb5c as MapBottomControls, $4bc3dd5f0732eed3$export$31b2e088aff2dc5d as MapResizeManager, $4bc3dd5f0732eed3$export$2ab96428dea558d6 as MapPaddingManager, $4bc3dd5f0732eed3$export$f6eeee399afc4e9a as MapMovedReporter, $4bc3dd5f0732eed3$export$e57f9eaa51773f82 as MapLoadingReporter, $4bc3dd5f0732eed3$export$5c90a91c7455938c as MapMarker, $4bc3dd5f0732eed3$export$566518253d2584f8 as useBasicStylePair, $82fe09613877ffc2$export$bb78f9f01775eef1 as getMapPadding, $82fe09613877ffc2$export$278090850f6b3a9f as useMapMarker, $4fae2d573d730db8$export$716098b85fd0efdf as ValueWithUnit, $4fae2d573d730db8$export$af8082af0bea3eb1 as DegreeCoord, $4fae2d573d730db8$export$f195b3550849e560 as LngLatCoords, $4fae2d573d730db8$export$58bfb4f6ec5aa58d as Elevation, $bb5f34705d9c44bc$export$8391d1abb505ffb3 as applyMapPositionToHash, $bb5f34705d9c44bc$export$80abf1cbcc3918e4 as getMapPositionForHash, $d570ac304373e71c$export$cea00a9d724d5a32 as ExpansionPanelSummary, $d570ac304373e71c$export$39c134eb0b07cf0e as InfoPanelSection, $d570ac304373e71c$export$40e646e38e6ed100 as ExpansionPanel, $d570ac304373e71c$export$d7160281aff7c3b8 as SubExpansionPanel, $d570ac304373e71c$export$44ad9ff780615135 as ExpandableDetailsPanel, $d570ac304373e71c$export$263416b670b3f129 as ExpansionBody, $72e497a412b1da0a$export$ed081779ec3709aa as PanelSubhead};
25
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"mappings":"","sources":["packages/map-interface/src/index.ts"],"sourcesContent":["export * from \"./context-panel\";\nexport * from \"./location-panel\";\nexport * from \"./dev\";\nexport * from \"./container\";\nexport * from \"./map-view\";\nexport * from \"./controls\";\nexport * from \"./helpers\";\nexport * from \"./utils\";\nexport * from \"./location-info\";\nexport * from \"./expansion-panel\";\n"],"names":[],"version":3,"file":"index.js.map"}
@@ -0,0 +1,89 @@
1
+ import {formatValue as $3e1bd09be8f70c4c$export$7c4d25c0c3217d8c} from "./utils.122d1f2d.js";
2
+ import {applyMapPositionToHash as $bb5f34705d9c44bc$export$8391d1abb505ffb3, getMapPositionForHash as $bb5f34705d9c44bc$export$80abf1cbcc3918e4} from "./hash-string.836601b2.js";
3
+ import $2Lirf$macrostrathyper from "@macrostrat/hyper";
4
+ import {formatCoordForZoomLevel as $2Lirf$formatCoordForZoomLevel, normalizeLng as $2Lirf$normalizeLng, metersToFeet as $2Lirf$metersToFeet} from "@macrostrat/mapbox-utils";
5
+
6
+
7
+
8
+
9
+
10
+ function $4fae2d573d730db8$export$716098b85fd0efdf(props) {
11
+ const { value: value, unit: unit } = props;
12
+ return (0, $2Lirf$macrostrathyper)("span.value-with-unit", [
13
+ (0, $2Lirf$macrostrathyper)("span.value", [
14
+ value
15
+ ]),
16
+ (0, $2Lirf$macrostrathyper)("span.spacer", [
17
+ " "
18
+ ]),
19
+ (0, $2Lirf$macrostrathyper)("span.unit", [
20
+ unit
21
+ ])
22
+ ]);
23
+ }
24
+ function $4fae2d573d730db8$export$af8082af0bea3eb1(props) {
25
+ const { value: value, labels: labels, precision: precision = 3, format: format = (0, $3e1bd09be8f70c4c$export$7c4d25c0c3217d8c) } = props;
26
+ const direction = value < 0 ? labels[1] : labels[0];
27
+ return (0, $2Lirf$macrostrathyper)($4fae2d573d730db8$export$716098b85fd0efdf, {
28
+ value: format(Math.abs(value), precision) + "\xb0",
29
+ unit: direction
30
+ });
31
+ }
32
+ function $4fae2d573d730db8$export$f195b3550849e560(props) {
33
+ /** Formatted geographic coordinates */ const { position: position, className: className, precision: precision, zoom: zoom } = props;
34
+ let { format: format } = props;
35
+ if (position == null) return null;
36
+ let lat, lng;
37
+ if (Array.isArray(position)) [lng, lat] = position;
38
+ else ({ lat: lat, lng: lng } = position);
39
+ if (zoom != null && format == null && precision == null) format = (val, _)=>(0, $2Lirf$formatCoordForZoomLevel)(val, zoom);
40
+ return (0, $2Lirf$macrostrathyper)("div.lnglat-container", {
41
+ className: className
42
+ }, [
43
+ (0, $2Lirf$macrostrathyper)("span.lnglat", [
44
+ (0, $2Lirf$macrostrathyper)($4fae2d573d730db8$export$af8082af0bea3eb1, {
45
+ value: lat,
46
+ labels: [
47
+ "N",
48
+ "S"
49
+ ],
50
+ precision: precision,
51
+ format: format
52
+ }),
53
+ ", ",
54
+ (0, $2Lirf$macrostrathyper)($4fae2d573d730db8$export$af8082af0bea3eb1, {
55
+ value: (0, $2Lirf$normalizeLng)(lng),
56
+ labels: [
57
+ "E",
58
+ "W"
59
+ ],
60
+ precision: precision,
61
+ format: format
62
+ })
63
+ ])
64
+ ]);
65
+ }
66
+ function $4fae2d573d730db8$export$58bfb4f6ec5aa58d(props) {
67
+ /** Renders an elevation value in meters and a parenthetical conversion to feet. */ const { elevation: elevation, className: className, includeFeet: includeFeet = true } = props;
68
+ if (elevation == null) return null;
69
+ return (0, $2Lirf$macrostrathyper)("div.elevation", {
70
+ className: className
71
+ }, [
72
+ (0, $2Lirf$macrostrathyper)($4fae2d573d730db8$export$716098b85fd0efdf, {
73
+ value: elevation,
74
+ unit: "m"
75
+ }),
76
+ (0, $2Lirf$macrostrathyper).if(includeFeet)("span.secondary", [
77
+ " (",
78
+ (0, $2Lirf$macrostrathyper)($4fae2d573d730db8$export$716098b85fd0efdf, {
79
+ value: (0, $2Lirf$metersToFeet)(elevation),
80
+ unit: "ft"
81
+ }),
82
+ ")"
83
+ ])
84
+ ]);
85
+ }
86
+
87
+
88
+ export {$4fae2d573d730db8$export$716098b85fd0efdf as ValueWithUnit, $4fae2d573d730db8$export$af8082af0bea3eb1 as DegreeCoord, $4fae2d573d730db8$export$f195b3550849e560 as LngLatCoords, $4fae2d573d730db8$export$58bfb4f6ec5aa58d as Elevation, $bb5f34705d9c44bc$export$8391d1abb505ffb3 as applyMapPositionToHash, $bb5f34705d9c44bc$export$80abf1cbcc3918e4 as getMapPositionForHash};
89
+ //# sourceMappingURL=location-info.5543bb05.js.map
@@ -0,0 +1 @@
1
+ {"mappings":";;;;;;;;;AAUO,SAAS,0CAAc,KAAK;IACjC,MAAM,SAAE,KAAK,QAAE,IAAI,EAAE,GAAG;IACxB,OAAO,CAAA,GAAA,sBAAA,EAAE,wBAAwB;QAC/B,CAAA,GAAA,sBAAA,EAAE,cAAc;YAAC;SAAM;QACvB,CAAA,GAAA,sBAAA,EAAE,eAAe;YAAC;SAAI;QACtB,CAAA,GAAA,sBAAA,EAAE,aAAa;YAAC;SAAK;KACtB;AACH;AAEO,SAAS,0CAAY,KAAK;IAC/B,MAAM,SAAE,KAAK,UAAE,MAAM,aAAE,YAAY,WAAG,SAAS,CAAA,GAAA,yCAAU,GAAG,GAAG;IAC/D,MAAM,YAAY,QAAQ,IAAI,MAAM,CAAC,EAAE,GAAG,MAAM,CAAC,EAAE;IAEnD,OAAO,CAAA,GAAA,sBAAA,EAAE,2CAAe;QACtB,OAAO,OAAO,KAAK,GAAG,CAAC,QAAQ,aAAa;QAC5C,MAAM;IACR;AACF;AAcO,SAAS,0CAAa,KAAkB;IAC7C,qCAAqC,GACrC,MAAM,YA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{\n formatCoordForZoomLevel,\n metersToFeet,\n normalizeLng,\n} from \"@macrostrat/mapbox-utils\";\nimport { formatValue } from \"./utils\";\n\nexport * from \"./hash-string\";\n\nexport function ValueWithUnit(props) {\n const { value, unit } = props;\n return h(\"span.value-with-unit\", [\n h(\"span.value\", [value]),\n h(\"span.spacer\", [\" \"]),\n h(\"span.unit\", [unit]),\n ]);\n}\n\nexport function DegreeCoord(props) {\n const { value, labels, precision = 3, format = formatValue } = props;\n const direction = value < 0 ? labels[1] : labels[0];\n\n return h(ValueWithUnit, {\n value: format(Math.abs(value), precision) + \"°\",\n unit: direction,\n });\n}\n\nexport interface LngLatProps {\n /** Map position */\n position: [number, number] | { lat: number; lng: number };\n className?: string;\n /** Zoom level (used to infer coordinate rounding if provided) */\n zoom?: number | null;\n /** Number of decimal places to round coordinates to */\n precision: number | null;\n /** Function to format coordinates */\n format?: (val: number, precision: number) => string;\n}\n\nexport function LngLatCoords(props: LngLatProps) {\n /** Formatted geographic coordinates */\n const { position, className, precision, zoom } = props;\n let { format } = props;\n if (position == null) {\n return null;\n }\n let lat, lng;\n if (Array.isArray(position)) {\n [lng, lat] = position;\n } else {\n ({ lat, lng } = position);\n }\n\n if (zoom != null && format == null && precision == null) {\n format = (val, _) => formatCoordForZoomLevel(val, zoom);\n }\n\n return h(\"div.lnglat-container\", { className }, [\n h(\"span.lnglat\", [\n h(DegreeCoord, {\n value: lat,\n labels: [\"N\", \"S\"],\n precision,\n format,\n }),\n \", \",\n h(DegreeCoord, {\n value: normalizeLng(lng),\n labels: [\"E\", \"W\"],\n precision,\n format,\n }),\n ]),\n ]);\n}\n\nexport function Elevation(props) {\n /** Renders an elevation value in meters and a parenthetical conversion to feet. */\n const { elevation, className, includeFeet = true } = props;\n if (elevation == null) return null;\n return h(\"div.elevation\", { className }, [\n h(ValueWithUnit, { value: elevation, unit: \"m\" }),\n h.if(includeFeet)(\"span.secondary\", [\n \" (\",\n h(ValueWithUnit, { value: metersToFeet(elevation), unit: \"ft\" }),\n \")\",\n ]),\n ]);\n}\n"],"names":[],"version":3,"file":"location-info.5543bb05.js.map"}
@@ -0,0 +1,58 @@
1
+ import {InfoDrawerHeader as $427faf94283514d4$export$e9ff14c4822c2e8c} from "./header.0f535ab1.js";
2
+ import "../cjs/main.module.02c4de16.css";
3
+ import $2cJVU$mainmodule67a908dajs from "./main.module.67a908da.js";
4
+ import {PanelCard as $4bdfa9cd8240b2fd$export$ec68dd77edbe678b} from "./container.16bde261.js";
5
+ import $2cJVU$macrostrathyper from "@macrostrat/hyper";
6
+ import $2cJVU$classnames from "classnames";
7
+ import {ErrorBoundary as $2cJVU$ErrorBoundary} from "@macrostrat/ui-components";
8
+
9
+
10
+ function $parcel$interopDefault(a) {
11
+ return a && a.__esModule ? a.default : a;
12
+ }
13
+
14
+
15
+
16
+
17
+
18
+
19
+ const $f50c3537aaff0cff$var$h = (0, $2cJVU$macrostrathyper).styled((0, ($parcel$interopDefault($2cJVU$mainmodule67a908dajs))));
20
+ function $f50c3537aaff0cff$export$83f9a19cf91c2d06(props) {
21
+ const className = (0, $2cJVU$classnames)("infodrawer", props.className);
22
+ return $f50c3537aaff0cff$var$h((0, $4bdfa9cd8240b2fd$export$ec68dd77edbe678b), {
23
+ ...props,
24
+ className: className
25
+ });
26
+ }
27
+ function $f50c3537aaff0cff$export$a5ddcc2a88716895(props) {
28
+ const { className: className, headerElement: headerElement = null, title: title, onClose: onClose, children: children, ...rest } = props;
29
+ const header = headerElement ?? $f50c3537aaff0cff$var$h((0, $427faf94283514d4$export$e9ff14c4822c2e8c), {
30
+ onClose: onClose,
31
+ ...rest
32
+ }, [
33
+ title == null ? null : $f50c3537aaff0cff$var$h("h3", [
34
+ title
35
+ ])
36
+ ]);
37
+ return $f50c3537aaff0cff$var$h($f50c3537aaff0cff$export$83f9a19cf91c2d06, {
38
+ className: className
39
+ }, [
40
+ header,
41
+ $f50c3537aaff0cff$var$h("div.infodrawer-body", $f50c3537aaff0cff$var$h("div.infodrawer-contents", $f50c3537aaff0cff$var$h((0, $2cJVU$ErrorBoundary), null, children)))
42
+ ]);
43
+ }
44
+ const $f50c3537aaff0cff$export$e54a7f2505304e20 = $f50c3537aaff0cff$export$a5ddcc2a88716895;
45
+ function $f50c3537aaff0cff$export$aa4baff5242ea6e1(props) {
46
+ const { children: children, className: className, loading: loading = false, ...rest } = props;
47
+ const cls = (0, $2cJVU$classnames)("location-panel", className, {
48
+ loading: loading
49
+ });
50
+ return $f50c3537aaff0cff$var$h($f50c3537aaff0cff$export$a5ddcc2a88716895, {
51
+ className: cls,
52
+ ...rest
53
+ }, children);
54
+ }
55
+
56
+
57
+ export {$f50c3537aaff0cff$export$83f9a19cf91c2d06 as InfoDrawerContainer, $f50c3537aaff0cff$export$a5ddcc2a88716895 as BaseInfoDrawer, $f50c3537aaff0cff$export$e54a7f2505304e20 as DetailsPanel, $f50c3537aaff0cff$export$aa4baff5242ea6e1 as LocationPanel};
58
+ //# sourceMappingURL=location-panel.0b1f4ed2.js.map
@@ -0,0 +1 @@
1
+ {"mappings":";;;;;;;;;;;;;;;;;;AAOA,MAAM,0BAAI,CAAA,GAAA,sBAAI,EAAE,MAAM,CAAC,CAAA,GAAA,sEAAK;AAErB,SAAS,0CAAoB,KAAK;IACvC,MAAM,YAAY,CAAA,GAAA,iBAAS,EAAE,cAAc,MAAM,SAAS;IAC1D,OAAO,wBAAE,CAAA,GAAA,yCAAQ,GAAG;QAAE,GAAG,KAAK;mBAAE;IAAU;AAC5C;AASO,SAAS,0CAAe,KAA0B;IACvD,MAAM,aACJ,SAAS,iBACT,gBAAgB,aAChB,KAAK,WACL,OAAO,YACP,QAAQ,EACR,GAAG,MACJ,GAAG;IACJ,MAAM,SACJ,iBACA,wBAAE,CAAA,GAAA,yCAAe,GAAG;iBAAE;QAAS,GAAG,IAAI;IAAC,GAAG;QACxC,SAAS,OAAO,OAAO,wBAAE,MAAM;YAAC;SAAM;KACvC;IACH,OAAO,wBAAE,2CAAqB;mBAAE;IAAU,GAAG;QAC3C;QACA,wBACE,uBACA,wBAAE,2BAA2B,wBAAE,CAAA,GAAA,oBAAY,GAAG,MAAM;KAEvD;AACH;AAEO,MAAM,4CAAe;AAErB,SAAS,0CAAc,KAAK;IACjC,MAAM,YAAE,QAAQ,aAAE,SAAS,WAAE,UAAU,OAAO,GAAG,MAAM,GAAG;IAC1D,MAAM,MAAM,CAAA,GAAA,iBAAS,EAAE,kBAAkB,WAAW;iBAAE;IAAQ;IAC9D,OAAO,wBAAE,2CAAgB;QAAE,WAAW;QAAK,GAAG,IAAI;IAAC,GAAG;AACxD","sources":["packages/map-interface/src/location-panel/index.ts"],"sourcesContent":["import hyper from \"@macrostrat/hyper\";\nimport { InfoDrawerHeader, InfoDrawerHeaderProps } from \"./header\";\nimport classNames from \"classnames\";\nimport styles from \"./main.module.sass\";\nimport { ErrorBoundary } from \"@macrostrat/ui-components\";\nimport { PanelCard } from \"../container\";\n\nconst h = hyper.styled(styles);\n\nexport function InfoDrawerContainer(props) {\n const className = classNames(\"infodrawer\", props.className);\n return h(PanelCard, { ...props, className });\n}\n\ninterface BaseInfoDrawerProps extends InfoDrawerHeaderProps {\n className?: string;\n title?: string;\n headerElement?: JSX.Element;\n children?: React.ReactNode;\n}\n\nexport function BaseInfoDrawer(props: BaseInfoDrawerProps) {\n const {\n className,\n headerElement = null,\n title,\n onClose,\n children,\n ...rest\n } = props;\n const header =\n headerElement ??\n h(InfoDrawerHeader, { onClose, ...rest }, [\n title == null ? null : h(\"h3\", [title]),\n ]);\n return h(InfoDrawerContainer, { className }, [\n header,\n h(\n \"div.infodrawer-body\",\n h(\"div.infodrawer-contents\", h(ErrorBoundary, null, children))\n ),\n ]);\n}\n\nexport const DetailsPanel = BaseInfoDrawer;\n\nexport function LocationPanel(props) {\n const { children, className, loading = false, ...rest } = props;\n const cls = classNames(\"location-panel\", className, { loading });\n return h(BaseInfoDrawer, { className: cls, ...rest }, children);\n}\n"],"names":[],"version":3,"file":"location-panel.0b1f4ed2.js.map"}
@@ -0,0 +1,52 @@
1
+
2
+ function $parcel$export(e, n, v, s) {
3
+ Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
4
+ }
5
+ var $bfe9593b6c29b10b$exports = {};
6
+
7
+ $parcel$export($bfe9593b6c29b10b$exports, "feature-panel", () => $bfe9593b6c29b10b$export$d27ce8c17b289f33, (v) => $bfe9593b6c29b10b$export$d27ce8c17b289f33 = v);
8
+ $parcel$export($bfe9593b6c29b10b$exports, "key-value", () => $bfe9593b6c29b10b$export$6025d8aaa4edba3b, (v) => $bfe9593b6c29b10b$export$6025d8aaa4edba3b = v);
9
+ $parcel$export($bfe9593b6c29b10b$exports, "key", () => $bfe9593b6c29b10b$export$df61b30b684217c0, (v) => $bfe9593b6c29b10b$export$df61b30b684217c0 = v);
10
+ $parcel$export($bfe9593b6c29b10b$exports, "value", () => $bfe9593b6c29b10b$export$2ab9a8f9f1186f14, (v) => $bfe9593b6c29b10b$export$2ab9a8f9f1186f14 = v);
11
+ $parcel$export($bfe9593b6c29b10b$exports, "feature-properties", () => $bfe9593b6c29b10b$export$4f7f4a0a9b87a0a1, (v) => $bfe9593b6c29b10b$export$4f7f4a0a9b87a0a1 = v);
12
+ $parcel$export($bfe9593b6c29b10b$exports, "controls", () => $bfe9593b6c29b10b$export$cc1adf6fb659c762, (v) => $bfe9593b6c29b10b$export$cc1adf6fb659c762 = v);
13
+ $parcel$export($bfe9593b6c29b10b$exports, "feature-header", () => $bfe9593b6c29b10b$export$435bd1864bef6e22, (v) => $bfe9593b6c29b10b$export$435bd1864bef6e22 = v);
14
+ $parcel$export($bfe9593b6c29b10b$exports, "feature-group", () => $bfe9593b6c29b10b$export$a1386d43b662271, (v) => $bfe9593b6c29b10b$export$a1386d43b662271 = v);
15
+ $parcel$export($bfe9593b6c29b10b$exports, "tile-info", () => $bfe9593b6c29b10b$export$1ea80fe0e5d4f6be, (v) => $bfe9593b6c29b10b$export$1ea80fe0e5d4f6be = v);
16
+ $parcel$export($bfe9593b6c29b10b$exports, "opacity-slider", () => $bfe9593b6c29b10b$export$802c81ec652235aa, (v) => $bfe9593b6c29b10b$export$802c81ec652235aa = v);
17
+ $parcel$export($bfe9593b6c29b10b$exports, "unit-number", () => $bfe9593b6c29b10b$export$ce32b714ddd6b59, (v) => $bfe9593b6c29b10b$export$ce32b714ddd6b59 = v);
18
+ $parcel$export($bfe9593b6c29b10b$exports, "unit", () => $bfe9593b6c29b10b$export$523c0b569236b342, (v) => $bfe9593b6c29b10b$export$523c0b569236b342 = v);
19
+ $parcel$export($bfe9593b6c29b10b$exports, "page", () => $bfe9593b6c29b10b$export$523fb3936f49e028, (v) => $bfe9593b6c29b10b$export$523fb3936f49e028 = v);
20
+ $parcel$export($bfe9593b6c29b10b$exports, "dev-index-page", () => $bfe9593b6c29b10b$export$ee954d6f5e1b21cc, (v) => $bfe9593b6c29b10b$export$ee954d6f5e1b21cc = v);
21
+ var $bfe9593b6c29b10b$export$d27ce8c17b289f33;
22
+ var $bfe9593b6c29b10b$export$6025d8aaa4edba3b;
23
+ var $bfe9593b6c29b10b$export$df61b30b684217c0;
24
+ var $bfe9593b6c29b10b$export$2ab9a8f9f1186f14;
25
+ var $bfe9593b6c29b10b$export$4f7f4a0a9b87a0a1;
26
+ var $bfe9593b6c29b10b$export$cc1adf6fb659c762;
27
+ var $bfe9593b6c29b10b$export$435bd1864bef6e22;
28
+ var $bfe9593b6c29b10b$export$a1386d43b662271;
29
+ var $bfe9593b6c29b10b$export$1ea80fe0e5d4f6be;
30
+ var $bfe9593b6c29b10b$export$802c81ec652235aa;
31
+ var $bfe9593b6c29b10b$export$ce32b714ddd6b59;
32
+ var $bfe9593b6c29b10b$export$523c0b569236b342;
33
+ var $bfe9593b6c29b10b$export$523fb3936f49e028;
34
+ var $bfe9593b6c29b10b$export$ee954d6f5e1b21cc;
35
+ $bfe9593b6c29b10b$export$d27ce8c17b289f33 = "feature-panel_48e225";
36
+ $bfe9593b6c29b10b$export$6025d8aaa4edba3b = "key-value_48e225";
37
+ $bfe9593b6c29b10b$export$df61b30b684217c0 = "key_48e225";
38
+ $bfe9593b6c29b10b$export$2ab9a8f9f1186f14 = "value_48e225";
39
+ $bfe9593b6c29b10b$export$4f7f4a0a9b87a0a1 = "feature-properties_48e225";
40
+ $bfe9593b6c29b10b$export$cc1adf6fb659c762 = "controls_48e225";
41
+ $bfe9593b6c29b10b$export$435bd1864bef6e22 = "feature-header_48e225";
42
+ $bfe9593b6c29b10b$export$a1386d43b662271 = "feature-group_48e225";
43
+ $bfe9593b6c29b10b$export$1ea80fe0e5d4f6be = "tile-info_48e225";
44
+ $bfe9593b6c29b10b$export$802c81ec652235aa = "opacity-slider_48e225";
45
+ $bfe9593b6c29b10b$export$ce32b714ddd6b59 = "unit-number_48e225";
46
+ $bfe9593b6c29b10b$export$523c0b569236b342 = "unit_48e225";
47
+ $bfe9593b6c29b10b$export$523fb3936f49e028 = "page_48e225";
48
+ $bfe9593b6c29b10b$export$ee954d6f5e1b21cc = "dev-index-page_48e225";
49
+
50
+
51
+ export {$bfe9593b6c29b10b$exports as default};
52
+ //# sourceMappingURL=main.module.5eb366de.js.map
@@ -0,0 +1 @@
1
+ {"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AAbA,4CAAkC;AAClC,4CAA8B;AAC9B,4CAAwB;AACxB,4CAA0B;AAC1B,4CAAuC;AACvC,4CAA6B;AAC7B,4CAAmC;AACnC,2CAAkC;AAClC,4CAA8B;AAC9B,4CAAmC;AACnC,2CAAgC;AAChC,4CAAyB;AACzB,4CAAyB;AACzB,4CAAmC","sources":["packages/map-interface/src/dev/main.module.sass"],"sourcesContent":[".feature-panel\n position: relative\n margin: 0 -1em\n\n.key-value\n display: inline-block\n margin-right: 1em\n\n .key\n font-weight: bold\n font-size: 0.9em\n\n &:after\n content: ': '\n\n .value\n font-size: 0.9em\n\n.feature-properties\n position: relative\n\n &:before\n content: \"–\"\n position: absolute\n top: 4px\n left: 0\n\n .controls\n display: flex\n flex-direction: row\n align-items: flex-end\n position: absolute\n top: 0\n right: 0\n gap: 0.5em\n\n.feature-header h3\n margin-bottom: 0\n margin-top: 0.5em\n\n.feature-group\n border-bottom: 1px solid var(--panel-rule-inner)\n margin-bottom: 0.5em\n\n &:last-child\n border-bottom: none\n\n.tile-info\n display: flex\n flex-direction: row\n align-items: baseline\n\n h3\n margin-right: 0.5em\n\n.opacity-slider\n margin: 0 1em 0.5em\n\n :global\n .bp5-slider-handle .bp5-slider-label\n background-color: var(--secondary-color)\n color: var(--text-color)\n\n.unit-number\n .unit\n font-size: 0.9em\n margin-left: 0.2em\n font-weight: bold\n\n.page\n margin: 2em auto\n max-width: 50em\n\n.dev-index-page\n overflow-y: scroll\n"],"names":[],"version":3,"file":"main.module.5eb366de.js.map"}
@@ -0,0 +1,40 @@
1
+
2
+ function $parcel$export(e, n, v, s) {
3
+ Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
4
+ }
5
+ var $29ab0212ea6844d0$exports = {};
6
+
7
+ $parcel$export($29ab0212ea6844d0$exports, "copy-link-button", () => $29ab0212ea6844d0$export$d1352d0c31a65024, (v) => $29ab0212ea6844d0$export$d1352d0c31a65024 = v);
8
+ $parcel$export($29ab0212ea6844d0$exports, "infodrawer", () => $29ab0212ea6844d0$export$b5017f7ff265217d, (v) => $29ab0212ea6844d0$export$b5017f7ff265217d = v);
9
+ $parcel$export($29ab0212ea6844d0$exports, "infodrawer-body", () => $29ab0212ea6844d0$export$310e8f86a84c074f, (v) => $29ab0212ea6844d0$export$310e8f86a84c074f = v);
10
+ $parcel$export($29ab0212ea6844d0$exports, "infodrawer-contents", () => $29ab0212ea6844d0$export$69ed3ba502fbf15b, (v) => $29ab0212ea6844d0$export$69ed3ba502fbf15b = v);
11
+ $parcel$export($29ab0212ea6844d0$exports, "infodrawer-header-item", () => $29ab0212ea6844d0$export$333d72514239bce8, (v) => $29ab0212ea6844d0$export$333d72514239bce8 = v);
12
+ $parcel$export($29ab0212ea6844d0$exports, "left-icon", () => $29ab0212ea6844d0$export$f750577db09821ce, (v) => $29ab0212ea6844d0$export$f750577db09821ce = v);
13
+ $parcel$export($29ab0212ea6844d0$exports, "loading", () => $29ab0212ea6844d0$export$46c1c92549715335, (v) => $29ab0212ea6844d0$export$46c1c92549715335 = v);
14
+ $parcel$export($29ab0212ea6844d0$exports, "location-panel-header", () => $29ab0212ea6844d0$export$d821beb98a87c6d7, (v) => $29ab0212ea6844d0$export$d821beb98a87c6d7 = v);
15
+ $parcel$export($29ab0212ea6844d0$exports, "position-controls", () => $29ab0212ea6844d0$export$dfae07a3bf0fbd6, (v) => $29ab0212ea6844d0$export$dfae07a3bf0fbd6 = v);
16
+ $parcel$export($29ab0212ea6844d0$exports, "spacer", () => $29ab0212ea6844d0$export$8cc075c801fd6817, (v) => $29ab0212ea6844d0$export$8cc075c801fd6817 = v);
17
+ var $29ab0212ea6844d0$export$d1352d0c31a65024;
18
+ var $29ab0212ea6844d0$export$b5017f7ff265217d;
19
+ var $29ab0212ea6844d0$export$310e8f86a84c074f;
20
+ var $29ab0212ea6844d0$export$69ed3ba502fbf15b;
21
+ var $29ab0212ea6844d0$export$333d72514239bce8;
22
+ var $29ab0212ea6844d0$export$f750577db09821ce;
23
+ var $29ab0212ea6844d0$export$46c1c92549715335;
24
+ var $29ab0212ea6844d0$export$d821beb98a87c6d7;
25
+ var $29ab0212ea6844d0$export$dfae07a3bf0fbd6;
26
+ var $29ab0212ea6844d0$export$8cc075c801fd6817;
27
+ $29ab0212ea6844d0$export$d1352d0c31a65024 = `VPa3-W_copy-link-button`;
28
+ $29ab0212ea6844d0$export$b5017f7ff265217d = `VPa3-W_infodrawer`;
29
+ $29ab0212ea6844d0$export$310e8f86a84c074f = `VPa3-W_infodrawer-body`;
30
+ $29ab0212ea6844d0$export$69ed3ba502fbf15b = `VPa3-W_infodrawer-contents`;
31
+ $29ab0212ea6844d0$export$333d72514239bce8 = `VPa3-W_infodrawer-header-item`;
32
+ $29ab0212ea6844d0$export$f750577db09821ce = `VPa3-W_left-icon`;
33
+ $29ab0212ea6844d0$export$46c1c92549715335 = `VPa3-W_loading`;
34
+ $29ab0212ea6844d0$export$d821beb98a87c6d7 = `VPa3-W_location-panel-header`;
35
+ $29ab0212ea6844d0$export$dfae07a3bf0fbd6 = `VPa3-W_position-controls`;
36
+ $29ab0212ea6844d0$export$8cc075c801fd6817 = `VPa3-W_spacer`;
37
+
38
+
39
+ export {$29ab0212ea6844d0$exports as default};
40
+ //# sourceMappingURL=main.module.67a908da.js.map
@@ -0,0 +1 @@
1
+ {"mappings":";;;;;;;;;;;;;;;;AAAA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AATA,4CAAqC,CAAC,uBAAuB,CAAC;AAC9D,4CAA+B,CAAC,iBAAiB,CAAC;AAClD,4CAAoC,CAAC,sBAAsB,CAAC;AAC5D,4CAAwC,CAAC,0BAA0B,CAAC;AACpE,4CAA2C,CAAC,6BAA6B,CAAC;AAC1E,4CAA8B,CAAC,gBAAgB,CAAC;AAChD,4CAA4B,CAAC,cAAc,CAAC;AAC5C,4CAA0C,CAAC,4BAA4B,CAAC;AACxE,2CAAsC,CAAC,wBAAwB,CAAC;AAChE,4CAA2B,CAAC,aAAa,CAAC","sources":["packages/map-interface/src/location-panel/main.module.sass"],"sourcesContent":[".copy-link-button:global(.bp5-minimal.bp5-button)\n color: var(--text-subtle-color)\n\n svg\n fill: var(--text-subtle-color)\n\n.location-panel-header\n padding: 5px\n display: flex\n flex-direction: row\n align-items: center\n gap: 1em\n min-height: 40px\n border-bottom: 1px solid var(--panel-rule-color)\n\n .spacer\n flex-grow: 1\n\n .left-icon\n padding: 7px\n\n .position-controls :global(.bp5-button)\n font-size: 12px !important\n\n // Text elements should\n h1, h2, h3, h4, h5, h6, p\n margin: 0\n &:first-child\n margin-left: 10px\n\n.infodrawer-header-item\n font-size: 12px\n\n :global(.secondary)\n font-size: 0.9em\n color: var(--text-subtle-color)\n\n.infodrawer\n pointer-events: all\n max-height: 100%\n max-width: 100%\n height: fit-content\n display: flex\n flex-direction: column\n overflow: hidden\n background-color: var(--panel-background-color)\n\n &:global(.bp5-card)\n padding: 0\n background-color: var(--panel-background-color)\n\n\n &.loading\n .infodrawer-body\n overflow-y: hidden\n min-height: 70px\n\n\n.infodrawer-contents\n padding: 0 1em 1em\n\n.infodrawer-body\n flex-shrink: 1\n min-height: 0\n transition: min-height 0.5s ease\n overflow-y: scroll\n position: relative\n\n// TODO: remove this when we have a better way to handle card media queries\n@media screen and (max-width: 768px)\n .infodrawer\n border-radius: var(--panel-border-radius, 0px)\n"],"names":[],"version":3,"file":"main.module.67a908da.js.map"}