@teamimpact/veda-ui-blocks 0.1.0-beta.10 → 0.1.0-beta.12

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/index.d.ts CHANGED
@@ -318,9 +318,6 @@ type TagProps = {
318
318
  */
319
319
  declare function Tag({ variant, size, color, bgColor, borderColor, textColor, icon, onClose, children, className, }: TagProps): react_jsx_runtime.JSX.Element;
320
320
 
321
- /** NASA Blue Marble imagery basemap */
322
- declare const NASA_BLUE_MARBLE_BASEMAP_STYLE: StyleSpecification;
323
-
324
321
  interface GeoConfigProviderProps {
325
322
  stacApiUrl?: string;
326
323
  titilerBaseUrl?: string;
@@ -337,20 +334,22 @@ type TileMatrixSet = "WebMercatorQuad" | "GDALWebMercatorQuad" | "WorldCRS84Quad
337
334
  type StacRasterLayerConfig = {
338
335
  type: "raster";
339
336
  collectionId: string;
337
+ collectionAssetId: string;
340
338
  dateRange: DateRange;
341
339
  tileMatrixSet?: TileMatrixSet;
340
+ hideLegend?: boolean;
342
341
  };
343
342
  interface GradientLegendProps {
344
343
  type: "gradient";
345
- colorStops: string[];
344
+ colorStops?: string[];
346
345
  title?: string;
347
346
  description?: string;
348
347
  provider?: string;
349
348
  spatialExtent?: string;
350
349
  timeDensity?: string;
351
350
  unit?: string;
352
- min: number;
353
- max: number;
351
+ min?: number;
352
+ max?: number;
354
353
  }
355
354
  type LegendProps = GradientLegendProps & {
356
355
  initialExpanded?: boolean;
@@ -358,9 +357,32 @@ type LegendProps = GradientLegendProps & {
358
357
 
359
358
  declare function Legend({ initialExpanded, ...props }: LegendProps): react_jsx_runtime.JSX.Element;
360
359
 
360
+ /** NASA Blue Marble imagery basemap */
361
+ declare const NASA_BLUE_MARBLE_BASEMAP_STYLE: StyleSpecification;
362
+ /** Carto Dark Matter raster basemap without labels */
363
+ declare const CARTO_DARK_BASEMAP_STYLE: StyleSpecification;
364
+ /**
365
+ * Carto Dark Matter vector style with labels.
366
+ * Data layers should render beneath `waterway_label`.
367
+ */
368
+ declare const CARTO_DARK_WITH_LABELS_BASEMAP_STYLE = "https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json";
369
+ declare const CARTO_LABELS_LAYER_ID = "waterway_label";
370
+ /**
371
+ * OpenFreeMap Dark vector style.
372
+ * Data layers should render beneath `highway_name_other`.
373
+ */
374
+ declare const OPEN_FREE_MAP_DARK_BASEMAP_STYLE = "https://tiles.openfreemap.org/styles/dark";
375
+ declare const OPEN_FREE_MAP_LABELS_LAYER_ID = "highway_name_other";
376
+ /**
377
+ * Maps vector basemap styles to the first label layer that should render
378
+ * above data overlays.
379
+ */
380
+ declare const BASEMAP_LABEL_LAYER_IDS: Record<string, string>;
381
+ type BaseMaps = keyof typeof BASEMAP_LABEL_LAYER_IDS;
382
+
361
383
  type StacCompareMapProps = {
362
- /** MapLibre base map style URL or style object. */
363
- baseMapStyle?: string | StyleSpecification;
384
+ /** MapLibre base map style URL or style object. Defaults to Carto Dark with labels. For known vector styles the label layer is derived automatically so STAC data renders beneath labels. */
385
+ baseMapStyle?: BaseMaps | StyleSpecification;
364
386
  /** Initial map center (longitude/latitude), zoom level, and optional bearing/pitch. MapLibre applies defaults for any properties not provided. */
365
387
  initialViewState?: Partial<ViewState>;
366
388
  /** Layer config for the left panel. */
@@ -394,8 +416,8 @@ type StacCompareMapProps = {
394
416
  declare function StacCompareMap({ baseMapStyle, initialViewState, leftLayerConfig, rightLayerConfig, className, }: StacCompareMapProps): react_jsx_runtime.JSX.Element;
395
417
 
396
418
  type StacSingleLayerMapProps = {
397
- /** MapLibre base map style URL or style object. Defaults to NASA Blue Marble imagery. */
398
- baseMapStyle?: string | StyleSpecification;
419
+ /** MapLibre base map style URL or style object. Defaults to Carto Dark with labels. For known vector styles the label layer is derived automatically so STAC data renders beneath labels. */
420
+ baseMapStyle?: BaseMaps | StyleSpecification;
399
421
  /** Initial map center (longitude/latitude), zoom level, and optional bearing/pitch. MapLibre applies defaults for any properties not provided. */
400
422
  initialViewState?: Partial<ViewState>;
401
423
  /** STAC collection and date range to fetch and display as a raster tile layer. */
@@ -420,4 +442,4 @@ type StacSingleLayerMapProps = {
420
442
  */
421
443
  declare function StacSingleLayerMap({ baseMapStyle, initialViewState, layerConfig, }: StacSingleLayerMapProps): react_jsx_runtime.JSX.Element;
422
444
 
423
- export { Banner, type BannerProps, Card, CardCTA, type CardCTAProps, CardDetailed, type CardDetailedProps, CardMini, type CardMiniProps, type CardProps, CardSimple, type CardSimpleProps, Footer, type FooterProps, GeoConfigProvider, type GeoConfigProviderProps, Header, type HeaderProps, Legend, type LegendProps, Link, type LinkProps, NASA_BLUE_MARBLE_BASEMAP_STYLE, StacCompareMap, type StacCompareMapProps, StacSingleLayerMap, type StacSingleLayerMapProps, Tag, type TagProps };
445
+ export { Banner, type BannerProps, CARTO_DARK_BASEMAP_STYLE, CARTO_DARK_WITH_LABELS_BASEMAP_STYLE, CARTO_LABELS_LAYER_ID, Card, CardCTA, type CardCTAProps, CardDetailed, type CardDetailedProps, CardMini, type CardMiniProps, type CardProps, CardSimple, type CardSimpleProps, Footer, type FooterProps, GeoConfigProvider, type GeoConfigProviderProps, Header, type HeaderProps, Legend, type LegendProps, Link, type LinkProps, NASA_BLUE_MARBLE_BASEMAP_STYLE, OPEN_FREE_MAP_DARK_BASEMAP_STYLE, OPEN_FREE_MAP_LABELS_LAYER_ID, StacCompareMap, type StacCompareMapProps, StacSingleLayerMap, type StacSingleLayerMapProps, Tag, type TagProps };