@classic-homes/maps-core 0.7.4 → 0.8.0

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.
@@ -1,4 +1,4 @@
1
- import { lightTheme } from './chunk-KEBZDTH3.js';
1
+ import { lightTheme } from './chunk-OYZEJO3U.js';
2
2
  import { ch } from '@classic-homes/theme-tokens';
3
3
  import RBush from 'rbush';
4
4
 
@@ -1,4 +1,4 @@
1
- import { fontFamily, semanticColors, ch, colors } from '@classic-homes/theme-tokens';
1
+ import { fontFamily, semanticColors, dataStatusColors, ch, colors } from '@classic-homes/theme-tokens';
2
2
 
3
3
  // src/theme/generator.ts
4
4
  var THEME_LIGHT = "classic-light";
@@ -75,7 +75,8 @@ function generateLightDataColors() {
75
75
  neutral: ch.grey02,
76
76
  // One teal ramp (Shallows, Accent Teal, Heritage Teal); no red in it, since
77
77
  // red means a problem in v2.5
78
- heatmapRamp: ["rgba(216, 237, 237, 0)", ch.accentTeal100, ch.accentTeal, ch.heritageTeal]
78
+ heatmapRamp: ["rgba(216, 237, 237, 0)", ch.accentTeal100, ch.accentTeal, ch.heritageTeal],
79
+ status: { ...dataStatusColors.light }
79
80
  };
80
81
  }
81
82
  function generateDarkDataColors() {
@@ -104,7 +105,8 @@ function generateDarkDataColors() {
104
105
  colors.red[400],
105
106
  colors.red[500],
106
107
  colors.red[600]
107
- ]
108
+ ],
109
+ status: { ...dataStatusColors.dark }
108
110
  };
109
111
  }
110
112
  function getTypography() {
@@ -1,4 +1,4 @@
1
- import { lightTheme, THEME_DARK, darkTheme } from './chunk-KEBZDTH3.js';
1
+ import { lightTheme, THEME_DARK, darkTheme } from './chunk-OYZEJO3U.js';
2
2
 
3
3
  // src/theme/style.ts
4
4
  var DEFAULT_TILE_SOURCE = {
@@ -1,5 +1,5 @@
1
1
  import { G as GeoJSONFeatureCollection, L as LngLat, k as MarkerData, M as MapBounds, B as BoundsArray, a as GeoJSONFeature, h as GeoJSONPolygon } from './data-DCyEqgN0.cjs';
2
- import { a as MapTheme } from './generator-CU9ZTZ1v.cjs';
2
+ import { a as MapTheme } from './generator-DmozEcaK.cjs';
3
3
 
4
4
  /**
5
5
  * Accessibility utilities for maps
@@ -1,5 +1,5 @@
1
1
  import { G as GeoJSONFeatureCollection, L as LngLat, k as MarkerData, M as MapBounds, B as BoundsArray, a as GeoJSONFeature, h as GeoJSONPolygon } from './data-DCyEqgN0.js';
2
- import { a as MapTheme } from './generator-CU9ZTZ1v.js';
2
+ import { a as MapTheme } from './generator-DmozEcaK.js';
3
3
 
4
4
  /**
5
5
  * Accessibility utilities for maps
@@ -1,8 +1,11 @@
1
+ import { DataStatus } from '@classic-homes/theme-tokens';
2
+
1
3
  /**
2
4
  * Map theme generator
3
5
  *
4
6
  * Generates MapLibre-compatible themes from Classic Theme design tokens
5
7
  */
8
+
6
9
  /**
7
10
  * Theme identifiers
8
11
  */
@@ -73,6 +76,13 @@ interface MapDataColors {
73
76
  neutral: string;
74
77
  /** Heatmap color ramp (low to high) */
75
78
  heatmapRamp: string[];
79
+ /**
80
+ * Data status for map features and their legends: positive (on track), info,
81
+ * caution (at risk), negative (late), neutral. Same set as charts-core
82
+ * `getChartColors().status`. Give caution features an outline or a label,
83
+ * and never show status by colour alone.
84
+ */
85
+ status: Record<DataStatus, string>;
76
86
  }
77
87
  /**
78
88
  * Complete map theme configuration
@@ -1,8 +1,11 @@
1
+ import { DataStatus } from '@classic-homes/theme-tokens';
2
+
1
3
  /**
2
4
  * Map theme generator
3
5
  *
4
6
  * Generates MapLibre-compatible themes from Classic Theme design tokens
5
7
  */
8
+
6
9
  /**
7
10
  * Theme identifiers
8
11
  */
@@ -73,6 +76,13 @@ interface MapDataColors {
73
76
  neutral: string;
74
77
  /** Heatmap color ramp (low to high) */
75
78
  heatmapRamp: string[];
79
+ /**
80
+ * Data status for map features and their legends: positive (on track), info,
81
+ * caution (at risk), negative (late), neutral. Same set as charts-core
82
+ * `getChartColors().status`. Give caution features an outline or a label,
83
+ * and never show status by colour alone.
84
+ */
85
+ status: Record<DataStatus, string>;
76
86
  }
77
87
  /**
78
88
  * Complete map theme configuration
package/dist/index.cjs CHANGED
@@ -83,7 +83,8 @@ function generateLightDataColors() {
83
83
  neutral: themeTokens.ch.grey02,
84
84
  // One teal ramp (Shallows, Accent Teal, Heritage Teal); no red in it, since
85
85
  // red means a problem in v2.5
86
- heatmapRamp: ["rgba(216, 237, 237, 0)", themeTokens.ch.accentTeal100, themeTokens.ch.accentTeal, themeTokens.ch.heritageTeal]
86
+ heatmapRamp: ["rgba(216, 237, 237, 0)", themeTokens.ch.accentTeal100, themeTokens.ch.accentTeal, themeTokens.ch.heritageTeal],
87
+ status: { ...themeTokens.dataStatusColors.light }
87
88
  };
88
89
  }
89
90
  function generateDarkDataColors() {
@@ -112,7 +113,8 @@ function generateDarkDataColors() {
112
113
  themeTokens.colors.red[400],
113
114
  themeTokens.colors.red[500],
114
115
  themeTokens.colors.red[600]
115
- ]
116
+ ],
117
+ status: { ...themeTokens.dataStatusColors.dark }
116
118
  };
117
119
  }
118
120
  function getTypography() {
package/dist/index.d.cts CHANGED
@@ -1,11 +1,12 @@
1
- export { M as MapDataColors, a as MapTheme, b as MapThemeColors, T as THEME_DARK, c as THEME_LIGHT, d as darkTheme, g as generateDarkColors, e as generateDarkDataColors, f as generateDarkTheme, h as generateLightColors, i as generateLightDataColors, j as generateLightTheme, k as getTheme, l as getTypography, m as lightTheme } from './generator-CU9ZTZ1v.cjs';
1
+ export { M as MapDataColors, a as MapTheme, b as MapThemeColors, T as THEME_DARK, c as THEME_LIGHT, d as darkTheme, g as generateDarkColors, e as generateDarkDataColors, f as generateDarkTheme, h as generateLightColors, i as generateLightDataColors, j as generateLightTheme, k as getTheme, l as getTypography, m as lightTheme } from './generator-DmozEcaK.cjs';
2
2
  export { MapStyleSpec, darkBasicStyle, generateBasicStyle, generateVectorStyle, getBasicStyle, lightBasicStyle } from './theme/index.cjs';
3
3
  import { G as GeoJSONFeatureCollection } from './data-DCyEqgN0.cjs';
4
4
  export { B as BoundsArray, C as ClusterConfig, E as ExtrusionData, a as GeoJSONFeature, b as GeoJSONGeometry, c as GeoJSONLineString, d as GeoJSONMultiLineString, e as GeoJSONMultiPoint, f as GeoJSONMultiPolygon, g as GeoJSONPoint, h as GeoJSONPolygon, H as HeatmapPoint, L as LngLat, M as MapBounds, i as MapSourceData, j as MapViewport, k as MarkerData } from './data-DCyEqgN0.cjs';
5
5
  import { BasemapDefinition, BasemapApiKeys, MapStyleSpec } from './types/index.cjs';
6
6
  export { BaseControlProps, BaseLayerProps, BaseMapEventParams, BaseMapProps, BasemapCategory, BasemapProvider, BasemapSwitcherProps, CircleLayerProps, ControlPosition, CoordinateDisplayProps, FeatureClickEventParams, FeatureHoverEventParams, FillExtrusionLayerProps, FillLayerProps, GeolocateControlProps, GradientStop, HeatmapLayerProps, LegendConfig, LegendGroupProps, LegendItem, LegendProps, LineLayerProps, MapClickEventParams, MapErrorEventParams, MapErrorLike, MapHoverEventParams, MapLayerSpecBase, MapLoadEventParams, MapMoveEventParams, MapProps, MapSourceSpec, MarkerClickEventParams, MarkerDragEventParams, MarkerProps, NavigationControlProps, PopupEventParams, PopupProps, RasterLayerProps, ScaleControlProps, SourceProps, SymbolLayerProps } from './types/index.cjs';
7
- export { C as ClusterCircleStyleOptions, a as ClusterExpandOptions, b as ClusterExpansionResult, c as ClusterFeatureProperties, d as ClusterLayerStyles, h as ClusterTextStyleOptions, j as ColorExpression, k as CoordinateValidationResult, D as DEFAULT_SIMPLIFICATION_THRESHOLDS, l as DeckHostMap, m as DynamicLODOptions, n as DynamicLODState, E as ExtrusionHeightOptions, F as FeatureGroup, o as FilterExpression, p as FilterOperator, q as FilterValue, G as GenerateLODOptions, r as GeoJSONFingerprint, s as GroupFeaturesOptions, K as KEYBOARD_CONTROLS, L as LODData, t as LODDataWithSimplification, u as LoadGeoJSONOptions, v as LoadGeoJSONResult, w as LotFillStyleOptions, x as LotOutlineStyleOptions, M as MARKER_PROTECTION_CLASS, N as NumberExpression, P as PaintProps, z as PaintPropsDiff, S as SimplificationStats, A as SimplificationThreshold, U as UnclusteredPointStyleOptions, V as ValidationResult, B as applyMarkerChildProtection, H as applyMarkerProtection, I as boundsToPolygon, J as calculateBounds, O as calculateCentroid, Q as calculateZoomThresholds, R as clampLatitude, T as combineBounds, W as countFeaturesByType, X as createCategoricalColorExpression, Y as createCircleStyle, Z as createClusterCirclePaint, _ as createClusterStyles, $ as createClusterTextLayout, a0 as createContinuousColorExpression, a1 as createDynamicLODManager, a2 as createExtrusionHeightExpression, a3 as createExtrusionStyle, a4 as createFillStyle, a5 as createGeoJSONFingerprint, a6 as createHeatmapStyle, a7 as createHoverExpression, a8 as createInteractiveExpression, a9 as createInteractiveStatusColorExpression, aa as createLineStyle, ab as createLotFillStyle, ac as createLotOutlineStyle, ad as createSelectionExpression, ae as createStatusColorExpression, af as createZoomExpression, ag as decimalToDMS, ah as deepEqual, ai as ensureValidCoordinates, aj as expandCluster, ak as expandClusterToBounds, al as extendBounds, am as filterByGeometryType, an as filterEqual, ao as fingerprintEqual, ap as formatArea, aq as formatBearing, ar as formatBounds, as as formatCoordinates, at as formatDistance, au as formatFeatureProperties, av as formatLabel, aw as formatPitch, ax as formatPropertyValue, ay as formatScale, az as formatZoom, aA as generateBoundingPolygon, aB as generateConvexHull, aC as generateFeatureCollectionDescription, aD as generateFeatureTable, aE as generateKeyboardControlsDescription, aF as generateLODData, aG as generateLODDataWithSimplification, aH as generateMapDescription, aI as generateMarkerList, aJ as generateMarkersDescription, aK as generateMoveAnnouncement, aL as geoJSONEqual, aM as getChangedPaintProps, aN as getClusterBounds, aO as getClusterChildren, aP as getClusterExpansionZoom, aQ as getClusterLeaves, aR as getGridNavigationIndex, aS as getHighlightStyle, aT as getSelectionStyle, aU as getSimplificationToleranceForZoom, aV as getSimplifiedFeaturesForZoom, aW as groupFeaturesByProperty, aX as isClusterFeature, aY as isValidBounds, aZ as isValidLatitude, a_ as isValidLongitude, a$ as loadGeoJSON, b0 as normalizeLongitude, b1 as paintPropsEqual, b2 as removeMarkerProtection, b3 as resetWorkerUrlWarning, b4 as resolveDeckInterleaved, b5 as serializeFilter, b6 as simplifyFeature, b7 as simplifyFeatureCollection, b8 as simplifyFeatureCollectionWithStats, b9 as simplifyPolygon, ba as supportsDeckInterleaving, bb as validateBoundsArray, bc as validateCoordinates, bd as validateGeoJSON, be as warnIfWorkerUrlMissing, bf as zoomToScale } from './deck-Cvmx9g1O.cjs';
7
+ export { C as ClusterCircleStyleOptions, a as ClusterExpandOptions, b as ClusterExpansionResult, c as ClusterFeatureProperties, d as ClusterLayerStyles, h as ClusterTextStyleOptions, j as ColorExpression, k as CoordinateValidationResult, D as DEFAULT_SIMPLIFICATION_THRESHOLDS, l as DeckHostMap, m as DynamicLODOptions, n as DynamicLODState, E as ExtrusionHeightOptions, F as FeatureGroup, o as FilterExpression, p as FilterOperator, q as FilterValue, G as GenerateLODOptions, r as GeoJSONFingerprint, s as GroupFeaturesOptions, K as KEYBOARD_CONTROLS, L as LODData, t as LODDataWithSimplification, u as LoadGeoJSONOptions, v as LoadGeoJSONResult, w as LotFillStyleOptions, x as LotOutlineStyleOptions, M as MARKER_PROTECTION_CLASS, N as NumberExpression, P as PaintProps, z as PaintPropsDiff, S as SimplificationStats, A as SimplificationThreshold, U as UnclusteredPointStyleOptions, V as ValidationResult, B as applyMarkerChildProtection, H as applyMarkerProtection, I as boundsToPolygon, J as calculateBounds, O as calculateCentroid, Q as calculateZoomThresholds, R as clampLatitude, T as combineBounds, W as countFeaturesByType, X as createCategoricalColorExpression, Y as createCircleStyle, Z as createClusterCirclePaint, _ as createClusterStyles, $ as createClusterTextLayout, a0 as createContinuousColorExpression, a1 as createDynamicLODManager, a2 as createExtrusionHeightExpression, a3 as createExtrusionStyle, a4 as createFillStyle, a5 as createGeoJSONFingerprint, a6 as createHeatmapStyle, a7 as createHoverExpression, a8 as createInteractiveExpression, a9 as createInteractiveStatusColorExpression, aa as createLineStyle, ab as createLotFillStyle, ac as createLotOutlineStyle, ad as createSelectionExpression, ae as createStatusColorExpression, af as createZoomExpression, ag as decimalToDMS, ah as deepEqual, ai as ensureValidCoordinates, aj as expandCluster, ak as expandClusterToBounds, al as extendBounds, am as filterByGeometryType, an as filterEqual, ao as fingerprintEqual, ap as formatArea, aq as formatBearing, ar as formatBounds, as as formatCoordinates, at as formatDistance, au as formatFeatureProperties, av as formatLabel, aw as formatPitch, ax as formatPropertyValue, ay as formatScale, az as formatZoom, aA as generateBoundingPolygon, aB as generateConvexHull, aC as generateFeatureCollectionDescription, aD as generateFeatureTable, aE as generateKeyboardControlsDescription, aF as generateLODData, aG as generateLODDataWithSimplification, aH as generateMapDescription, aI as generateMarkerList, aJ as generateMarkersDescription, aK as generateMoveAnnouncement, aL as geoJSONEqual, aM as getChangedPaintProps, aN as getClusterBounds, aO as getClusterChildren, aP as getClusterExpansionZoom, aQ as getClusterLeaves, aR as getGridNavigationIndex, aS as getHighlightStyle, aT as getSelectionStyle, aU as getSimplificationToleranceForZoom, aV as getSimplifiedFeaturesForZoom, aW as groupFeaturesByProperty, aX as isClusterFeature, aY as isValidBounds, aZ as isValidLatitude, a_ as isValidLongitude, a$ as loadGeoJSON, b0 as normalizeLongitude, b1 as paintPropsEqual, b2 as removeMarkerProtection, b3 as resetWorkerUrlWarning, b4 as resolveDeckInterleaved, b5 as serializeFilter, b6 as simplifyFeature, b7 as simplifyFeatureCollection, b8 as simplifyFeatureCollectionWithStats, b9 as simplifyPolygon, ba as supportsDeckInterleaving, bb as validateBoundsArray, bc as validateCoordinates, bd as validateGeoJSON, be as warnIfWorkerUrlMissing, bf as zoomToScale } from './deck-CnQ6EjTk.cjs';
8
8
  export { B as BuildRTreeIndexOptions, a as BuildSpatialIndexOptions, I as IdleViewportManagerOptions, b as IdleViewportResult, P as PanVelocity, c as PredictiveViewportResult, Q as QuerySpatialIndexOptions, d as QueryStats, R as RTreeIndex, e as RTreeItem, f as RTreeQueryStats, S as SpatialIndex, V as ViewportManagedDataOptions, g as ViewportManagedResult, h as buildRTreeIndex, i as buildSpatialIndex, j as createIdleViewportManager, k as createPredictiveViewportManager, l as createRTreeViewportManager, m as createViewportManager, n as createViewportQuery, q as queryByBounds, o as queryByBoundsWithStats, p as queryRTreeByBounds, r as queryRTreeByBoundsWithStats } from './spatial-pNn2rgAH.cjs';
9
+ import '@classic-homes/theme-tokens';
9
10
  import 'rbush';
10
11
 
11
12
  /**
package/dist/index.d.ts CHANGED
@@ -1,11 +1,12 @@
1
- export { M as MapDataColors, a as MapTheme, b as MapThemeColors, T as THEME_DARK, c as THEME_LIGHT, d as darkTheme, g as generateDarkColors, e as generateDarkDataColors, f as generateDarkTheme, h as generateLightColors, i as generateLightDataColors, j as generateLightTheme, k as getTheme, l as getTypography, m as lightTheme } from './generator-CU9ZTZ1v.js';
1
+ export { M as MapDataColors, a as MapTheme, b as MapThemeColors, T as THEME_DARK, c as THEME_LIGHT, d as darkTheme, g as generateDarkColors, e as generateDarkDataColors, f as generateDarkTheme, h as generateLightColors, i as generateLightDataColors, j as generateLightTheme, k as getTheme, l as getTypography, m as lightTheme } from './generator-DmozEcaK.js';
2
2
  export { MapStyleSpec, darkBasicStyle, generateBasicStyle, generateVectorStyle, getBasicStyle, lightBasicStyle } from './theme/index.js';
3
3
  import { G as GeoJSONFeatureCollection } from './data-DCyEqgN0.js';
4
4
  export { B as BoundsArray, C as ClusterConfig, E as ExtrusionData, a as GeoJSONFeature, b as GeoJSONGeometry, c as GeoJSONLineString, d as GeoJSONMultiLineString, e as GeoJSONMultiPoint, f as GeoJSONMultiPolygon, g as GeoJSONPoint, h as GeoJSONPolygon, H as HeatmapPoint, L as LngLat, M as MapBounds, i as MapSourceData, j as MapViewport, k as MarkerData } from './data-DCyEqgN0.js';
5
5
  import { BasemapDefinition, BasemapApiKeys, MapStyleSpec } from './types/index.js';
6
6
  export { BaseControlProps, BaseLayerProps, BaseMapEventParams, BaseMapProps, BasemapCategory, BasemapProvider, BasemapSwitcherProps, CircleLayerProps, ControlPosition, CoordinateDisplayProps, FeatureClickEventParams, FeatureHoverEventParams, FillExtrusionLayerProps, FillLayerProps, GeolocateControlProps, GradientStop, HeatmapLayerProps, LegendConfig, LegendGroupProps, LegendItem, LegendProps, LineLayerProps, MapClickEventParams, MapErrorEventParams, MapErrorLike, MapHoverEventParams, MapLayerSpecBase, MapLoadEventParams, MapMoveEventParams, MapProps, MapSourceSpec, MarkerClickEventParams, MarkerDragEventParams, MarkerProps, NavigationControlProps, PopupEventParams, PopupProps, RasterLayerProps, ScaleControlProps, SourceProps, SymbolLayerProps } from './types/index.js';
7
- export { C as ClusterCircleStyleOptions, a as ClusterExpandOptions, b as ClusterExpansionResult, c as ClusterFeatureProperties, d as ClusterLayerStyles, h as ClusterTextStyleOptions, j as ColorExpression, k as CoordinateValidationResult, D as DEFAULT_SIMPLIFICATION_THRESHOLDS, l as DeckHostMap, m as DynamicLODOptions, n as DynamicLODState, E as ExtrusionHeightOptions, F as FeatureGroup, o as FilterExpression, p as FilterOperator, q as FilterValue, G as GenerateLODOptions, r as GeoJSONFingerprint, s as GroupFeaturesOptions, K as KEYBOARD_CONTROLS, L as LODData, t as LODDataWithSimplification, u as LoadGeoJSONOptions, v as LoadGeoJSONResult, w as LotFillStyleOptions, x as LotOutlineStyleOptions, M as MARKER_PROTECTION_CLASS, N as NumberExpression, P as PaintProps, z as PaintPropsDiff, S as SimplificationStats, A as SimplificationThreshold, U as UnclusteredPointStyleOptions, V as ValidationResult, B as applyMarkerChildProtection, H as applyMarkerProtection, I as boundsToPolygon, J as calculateBounds, O as calculateCentroid, Q as calculateZoomThresholds, R as clampLatitude, T as combineBounds, W as countFeaturesByType, X as createCategoricalColorExpression, Y as createCircleStyle, Z as createClusterCirclePaint, _ as createClusterStyles, $ as createClusterTextLayout, a0 as createContinuousColorExpression, a1 as createDynamicLODManager, a2 as createExtrusionHeightExpression, a3 as createExtrusionStyle, a4 as createFillStyle, a5 as createGeoJSONFingerprint, a6 as createHeatmapStyle, a7 as createHoverExpression, a8 as createInteractiveExpression, a9 as createInteractiveStatusColorExpression, aa as createLineStyle, ab as createLotFillStyle, ac as createLotOutlineStyle, ad as createSelectionExpression, ae as createStatusColorExpression, af as createZoomExpression, ag as decimalToDMS, ah as deepEqual, ai as ensureValidCoordinates, aj as expandCluster, ak as expandClusterToBounds, al as extendBounds, am as filterByGeometryType, an as filterEqual, ao as fingerprintEqual, ap as formatArea, aq as formatBearing, ar as formatBounds, as as formatCoordinates, at as formatDistance, au as formatFeatureProperties, av as formatLabel, aw as formatPitch, ax as formatPropertyValue, ay as formatScale, az as formatZoom, aA as generateBoundingPolygon, aB as generateConvexHull, aC as generateFeatureCollectionDescription, aD as generateFeatureTable, aE as generateKeyboardControlsDescription, aF as generateLODData, aG as generateLODDataWithSimplification, aH as generateMapDescription, aI as generateMarkerList, aJ as generateMarkersDescription, aK as generateMoveAnnouncement, aL as geoJSONEqual, aM as getChangedPaintProps, aN as getClusterBounds, aO as getClusterChildren, aP as getClusterExpansionZoom, aQ as getClusterLeaves, aR as getGridNavigationIndex, aS as getHighlightStyle, aT as getSelectionStyle, aU as getSimplificationToleranceForZoom, aV as getSimplifiedFeaturesForZoom, aW as groupFeaturesByProperty, aX as isClusterFeature, aY as isValidBounds, aZ as isValidLatitude, a_ as isValidLongitude, a$ as loadGeoJSON, b0 as normalizeLongitude, b1 as paintPropsEqual, b2 as removeMarkerProtection, b3 as resetWorkerUrlWarning, b4 as resolveDeckInterleaved, b5 as serializeFilter, b6 as simplifyFeature, b7 as simplifyFeatureCollection, b8 as simplifyFeatureCollectionWithStats, b9 as simplifyPolygon, ba as supportsDeckInterleaving, bb as validateBoundsArray, bc as validateCoordinates, bd as validateGeoJSON, be as warnIfWorkerUrlMissing, bf as zoomToScale } from './deck-Crhj7TKV.js';
7
+ export { C as ClusterCircleStyleOptions, a as ClusterExpandOptions, b as ClusterExpansionResult, c as ClusterFeatureProperties, d as ClusterLayerStyles, h as ClusterTextStyleOptions, j as ColorExpression, k as CoordinateValidationResult, D as DEFAULT_SIMPLIFICATION_THRESHOLDS, l as DeckHostMap, m as DynamicLODOptions, n as DynamicLODState, E as ExtrusionHeightOptions, F as FeatureGroup, o as FilterExpression, p as FilterOperator, q as FilterValue, G as GenerateLODOptions, r as GeoJSONFingerprint, s as GroupFeaturesOptions, K as KEYBOARD_CONTROLS, L as LODData, t as LODDataWithSimplification, u as LoadGeoJSONOptions, v as LoadGeoJSONResult, w as LotFillStyleOptions, x as LotOutlineStyleOptions, M as MARKER_PROTECTION_CLASS, N as NumberExpression, P as PaintProps, z as PaintPropsDiff, S as SimplificationStats, A as SimplificationThreshold, U as UnclusteredPointStyleOptions, V as ValidationResult, B as applyMarkerChildProtection, H as applyMarkerProtection, I as boundsToPolygon, J as calculateBounds, O as calculateCentroid, Q as calculateZoomThresholds, R as clampLatitude, T as combineBounds, W as countFeaturesByType, X as createCategoricalColorExpression, Y as createCircleStyle, Z as createClusterCirclePaint, _ as createClusterStyles, $ as createClusterTextLayout, a0 as createContinuousColorExpression, a1 as createDynamicLODManager, a2 as createExtrusionHeightExpression, a3 as createExtrusionStyle, a4 as createFillStyle, a5 as createGeoJSONFingerprint, a6 as createHeatmapStyle, a7 as createHoverExpression, a8 as createInteractiveExpression, a9 as createInteractiveStatusColorExpression, aa as createLineStyle, ab as createLotFillStyle, ac as createLotOutlineStyle, ad as createSelectionExpression, ae as createStatusColorExpression, af as createZoomExpression, ag as decimalToDMS, ah as deepEqual, ai as ensureValidCoordinates, aj as expandCluster, ak as expandClusterToBounds, al as extendBounds, am as filterByGeometryType, an as filterEqual, ao as fingerprintEqual, ap as formatArea, aq as formatBearing, ar as formatBounds, as as formatCoordinates, at as formatDistance, au as formatFeatureProperties, av as formatLabel, aw as formatPitch, ax as formatPropertyValue, ay as formatScale, az as formatZoom, aA as generateBoundingPolygon, aB as generateConvexHull, aC as generateFeatureCollectionDescription, aD as generateFeatureTable, aE as generateKeyboardControlsDescription, aF as generateLODData, aG as generateLODDataWithSimplification, aH as generateMapDescription, aI as generateMarkerList, aJ as generateMarkersDescription, aK as generateMoveAnnouncement, aL as geoJSONEqual, aM as getChangedPaintProps, aN as getClusterBounds, aO as getClusterChildren, aP as getClusterExpansionZoom, aQ as getClusterLeaves, aR as getGridNavigationIndex, aS as getHighlightStyle, aT as getSelectionStyle, aU as getSimplificationToleranceForZoom, aV as getSimplifiedFeaturesForZoom, aW as groupFeaturesByProperty, aX as isClusterFeature, aY as isValidBounds, aZ as isValidLatitude, a_ as isValidLongitude, a$ as loadGeoJSON, b0 as normalizeLongitude, b1 as paintPropsEqual, b2 as removeMarkerProtection, b3 as resetWorkerUrlWarning, b4 as resolveDeckInterleaved, b5 as serializeFilter, b6 as simplifyFeature, b7 as simplifyFeatureCollection, b8 as simplifyFeatureCollectionWithStats, b9 as simplifyPolygon, ba as supportsDeckInterleaving, bb as validateBoundsArray, bc as validateCoordinates, bd as validateGeoJSON, be as warnIfWorkerUrlMissing, bf as zoomToScale } from './deck-P7CWuRmv.js';
8
8
  export { B as BuildRTreeIndexOptions, a as BuildSpatialIndexOptions, I as IdleViewportManagerOptions, b as IdleViewportResult, P as PanVelocity, c as PredictiveViewportResult, Q as QuerySpatialIndexOptions, d as QueryStats, R as RTreeIndex, e as RTreeItem, f as RTreeQueryStats, S as SpatialIndex, V as ViewportManagedDataOptions, g as ViewportManagedResult, h as buildRTreeIndex, i as buildSpatialIndex, j as createIdleViewportManager, k as createPredictiveViewportManager, l as createRTreeViewportManager, m as createViewportManager, n as createViewportQuery, q as queryByBounds, o as queryByBoundsWithStats, p as queryRTreeByBounds, r as queryRTreeByBoundsWithStats } from './spatial-Df48Jj9D.js';
9
+ import '@classic-homes/theme-tokens';
9
10
  import 'rbush';
10
11
 
11
12
  /**
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
- import { lightBasicStyle, darkBasicStyle } from './chunk-Q4ISJ6FV.js';
2
- export { darkBasicStyle, generateBasicStyle, generateVectorStyle, getBasicStyle, lightBasicStyle } from './chunk-Q4ISJ6FV.js';
3
- import { createCategoricalColorExpression, clusterColors, nonMatchedColor } from './chunk-ZAGAADA3.js';
4
- export { DEFAULT_SIMPLIFICATION_THRESHOLDS, KEYBOARD_CONTROLS, MARKER_PROTECTION_CLASS, applyMarkerChildProtection, applyMarkerProtection, boundaryColors, boundsToPolygon, buildRTreeIndex, buildSpatialIndex, calculateBounds, calculateCentroid, calculateZoomThresholds, clampLatitude, clusterColors, combineBounds, countFeaturesByType, createCategoricalColorExpression, createCircleStyle, createClusterCirclePaint, createClusterStyles, createClusterTextLayout, createContinuousColorExpression, createDynamicLODManager, createExtrusionHeightExpression, createExtrusionStyle, createFillStyle, createGeoJSONFingerprint, createHeatmapStyle, createHoverExpression, createIdleViewportManager, createInteractiveExpression, createInteractiveStatusColorExpression, createLineStyle, createLotFillStyle, createLotOutlineStyle, createPredictiveViewportManager, createRTreeViewportManager, createSelectionExpression, createStatusColorExpression, createViewportManager, createViewportQuery, createZoomExpression, decimalToDMS, deepEqual, ensureValidCoordinates, expandCluster, expandClusterToBounds, extendBounds, filterByGeometryType, filterEqual, fingerprintEqual, formatArea, formatBearing, formatBounds, formatCoordinates, formatDistance, formatFeatureProperties, formatLabel, formatPitch, formatPropertyValue, formatScale, formatZoom, generateBoundingPolygon, generateConvexHull, generateFeatureCollectionDescription, generateFeatureTable, generateKeyboardControlsDescription, generateLODData, generateLODDataWithSimplification, generateMapDescription, generateMarkerList, generateMarkersDescription, generateMoveAnnouncement, geoJSONEqual, getChangedPaintProps, getClusterBounds, getClusterChildren, getClusterExpansionZoom, getClusterLeaves, getGridNavigationIndex, getHighlightStyle, getSelectionStyle, getSimplificationToleranceForZoom, getSimplifiedFeaturesForZoom, groupFeaturesByProperty, isClusterFeature, isValidBounds, isValidLatitude, isValidLongitude, loadGeoJSON, markerColor, nonMatchedColor, normalizeLongitude, paintPropsEqual, queryByBounds, queryByBoundsWithStats, queryRTreeByBounds, queryRTreeByBoundsWithStats, removeMarkerProtection, resetWorkerUrlWarning, resolveDeckInterleaved, salesOfficeColor, serializeFilter, simplifyFeature, simplifyFeatureCollection, simplifyFeatureCollectionWithStats, simplifyPolygon, supportsDeckInterleaving, validateBoundsArray, validateCoordinates, validateGeoJSON, warnIfWorkerUrlMissing, zoomToScale } from './chunk-ZAGAADA3.js';
5
- export { THEME_DARK, THEME_LIGHT, darkTheme, generateDarkColors, generateDarkDataColors, generateDarkTheme, generateLightColors, generateLightDataColors, generateLightTheme, getTheme, getTypography, lightTheme } from './chunk-KEBZDTH3.js';
1
+ import { lightBasicStyle, darkBasicStyle } from './chunk-QT4EOLBO.js';
2
+ export { darkBasicStyle, generateBasicStyle, generateVectorStyle, getBasicStyle, lightBasicStyle } from './chunk-QT4EOLBO.js';
3
+ import { createCategoricalColorExpression, clusterColors, nonMatchedColor } from './chunk-LE43W2ZW.js';
4
+ export { DEFAULT_SIMPLIFICATION_THRESHOLDS, KEYBOARD_CONTROLS, MARKER_PROTECTION_CLASS, applyMarkerChildProtection, applyMarkerProtection, boundaryColors, boundsToPolygon, buildRTreeIndex, buildSpatialIndex, calculateBounds, calculateCentroid, calculateZoomThresholds, clampLatitude, clusterColors, combineBounds, countFeaturesByType, createCategoricalColorExpression, createCircleStyle, createClusterCirclePaint, createClusterStyles, createClusterTextLayout, createContinuousColorExpression, createDynamicLODManager, createExtrusionHeightExpression, createExtrusionStyle, createFillStyle, createGeoJSONFingerprint, createHeatmapStyle, createHoverExpression, createIdleViewportManager, createInteractiveExpression, createInteractiveStatusColorExpression, createLineStyle, createLotFillStyle, createLotOutlineStyle, createPredictiveViewportManager, createRTreeViewportManager, createSelectionExpression, createStatusColorExpression, createViewportManager, createViewportQuery, createZoomExpression, decimalToDMS, deepEqual, ensureValidCoordinates, expandCluster, expandClusterToBounds, extendBounds, filterByGeometryType, filterEqual, fingerprintEqual, formatArea, formatBearing, formatBounds, formatCoordinates, formatDistance, formatFeatureProperties, formatLabel, formatPitch, formatPropertyValue, formatScale, formatZoom, generateBoundingPolygon, generateConvexHull, generateFeatureCollectionDescription, generateFeatureTable, generateKeyboardControlsDescription, generateLODData, generateLODDataWithSimplification, generateMapDescription, generateMarkerList, generateMarkersDescription, generateMoveAnnouncement, geoJSONEqual, getChangedPaintProps, getClusterBounds, getClusterChildren, getClusterExpansionZoom, getClusterLeaves, getGridNavigationIndex, getHighlightStyle, getSelectionStyle, getSimplificationToleranceForZoom, getSimplifiedFeaturesForZoom, groupFeaturesByProperty, isClusterFeature, isValidBounds, isValidLatitude, isValidLongitude, loadGeoJSON, markerColor, nonMatchedColor, normalizeLongitude, paintPropsEqual, queryByBounds, queryByBoundsWithStats, queryRTreeByBounds, queryRTreeByBoundsWithStats, removeMarkerProtection, resetWorkerUrlWarning, resolveDeckInterleaved, salesOfficeColor, serializeFilter, simplifyFeature, simplifyFeatureCollection, simplifyFeatureCollectionWithStats, simplifyPolygon, supportsDeckInterleaving, validateBoundsArray, validateCoordinates, validateGeoJSON, warnIfWorkerUrlMissing, zoomToScale } from './chunk-LE43W2ZW.js';
5
+ export { THEME_DARK, THEME_LIGHT, darkTheme, generateDarkColors, generateDarkDataColors, generateDarkTheme, generateLightColors, generateLightDataColors, generateLightTheme, getTheme, getTypography, lightTheme } from './chunk-OYZEJO3U.js';
6
6
  import { ch } from '@classic-homes/theme-tokens';
7
7
  import { getContrastTextColor as getContrastTextColor$1 } from '@classic-homes/theme-tokens/contrast';
8
8
 
@@ -77,7 +77,8 @@ function generateLightDataColors() {
77
77
  neutral: themeTokens.ch.grey02,
78
78
  // One teal ramp (Shallows, Accent Teal, Heritage Teal); no red in it, since
79
79
  // red means a problem in v2.5
80
- heatmapRamp: ["rgba(216, 237, 237, 0)", themeTokens.ch.accentTeal100, themeTokens.ch.accentTeal, themeTokens.ch.heritageTeal]
80
+ heatmapRamp: ["rgba(216, 237, 237, 0)", themeTokens.ch.accentTeal100, themeTokens.ch.accentTeal, themeTokens.ch.heritageTeal],
81
+ status: { ...themeTokens.dataStatusColors.light }
81
82
  };
82
83
  }
83
84
  function generateDarkDataColors() {
@@ -106,7 +107,8 @@ function generateDarkDataColors() {
106
107
  themeTokens.colors.red[400],
107
108
  themeTokens.colors.red[500],
108
109
  themeTokens.colors.red[600]
109
- ]
110
+ ],
111
+ status: { ...themeTokens.dataStatusColors.dark }
110
112
  };
111
113
  }
112
114
  function getTypography() {
@@ -1,5 +1,6 @@
1
- import { a as MapTheme, c as THEME_LIGHT, T as THEME_DARK } from '../generator-CU9ZTZ1v.cjs';
2
- export { M as MapDataColors, b as MapThemeColors, d as darkTheme, g as generateDarkColors, e as generateDarkDataColors, f as generateDarkTheme, h as generateLightColors, i as generateLightDataColors, j as generateLightTheme, k as getTheme, l as getTypography, m as lightTheme } from '../generator-CU9ZTZ1v.cjs';
1
+ import { a as MapTheme, c as THEME_LIGHT, T as THEME_DARK } from '../generator-DmozEcaK.cjs';
2
+ export { M as MapDataColors, b as MapThemeColors, d as darkTheme, g as generateDarkColors, e as generateDarkDataColors, f as generateDarkTheme, h as generateLightColors, i as generateLightDataColors, j as generateLightTheme, k as getTheme, l as getTypography, m as lightTheme } from '../generator-DmozEcaK.cjs';
3
+ import '@classic-homes/theme-tokens';
3
4
 
4
5
  /**
5
6
  * Map style generator
@@ -1,5 +1,6 @@
1
- import { a as MapTheme, c as THEME_LIGHT, T as THEME_DARK } from '../generator-CU9ZTZ1v.js';
2
- export { M as MapDataColors, b as MapThemeColors, d as darkTheme, g as generateDarkColors, e as generateDarkDataColors, f as generateDarkTheme, h as generateLightColors, i as generateLightDataColors, j as generateLightTheme, k as getTheme, l as getTypography, m as lightTheme } from '../generator-CU9ZTZ1v.js';
1
+ import { a as MapTheme, c as THEME_LIGHT, T as THEME_DARK } from '../generator-DmozEcaK.js';
2
+ export { M as MapDataColors, b as MapThemeColors, d as darkTheme, g as generateDarkColors, e as generateDarkDataColors, f as generateDarkTheme, h as generateLightColors, i as generateLightDataColors, j as generateLightTheme, k as getTheme, l as getTypography, m as lightTheme } from '../generator-DmozEcaK.js';
3
+ import '@classic-homes/theme-tokens';
3
4
 
4
5
  /**
5
6
  * Map style generator
@@ -1,2 +1,2 @@
1
- export { darkBasicStyle, generateBasicStyle, generateVectorStyle, getBasicStyle, lightBasicStyle } from '../chunk-Q4ISJ6FV.js';
2
- export { THEME_DARK, THEME_LIGHT, darkTheme, generateDarkColors, generateDarkDataColors, generateDarkTheme, generateLightColors, generateLightDataColors, generateLightTheme, getTheme, getTypography, lightTheme } from '../chunk-KEBZDTH3.js';
1
+ export { darkBasicStyle, generateBasicStyle, generateVectorStyle, getBasicStyle, lightBasicStyle } from '../chunk-QT4EOLBO.js';
2
+ export { THEME_DARK, THEME_LIGHT, darkTheme, generateDarkColors, generateDarkDataColors, generateDarkTheme, generateLightColors, generateLightDataColors, generateLightTheme, getTheme, getTypography, lightTheme } from '../chunk-OYZEJO3U.js';
@@ -520,7 +520,8 @@ function generateLightDataColors() {
520
520
  neutral: themeTokens.ch.grey02,
521
521
  // One teal ramp (Shallows, Accent Teal, Heritage Teal); no red in it, since
522
522
  // red means a problem in v2.5
523
- heatmapRamp: ["rgba(216, 237, 237, 0)", themeTokens.ch.accentTeal100, themeTokens.ch.accentTeal, themeTokens.ch.heritageTeal]
523
+ heatmapRamp: ["rgba(216, 237, 237, 0)", themeTokens.ch.accentTeal100, themeTokens.ch.accentTeal, themeTokens.ch.heritageTeal],
524
+ status: { ...themeTokens.dataStatusColors.light }
524
525
  };
525
526
  }
526
527
  function generateDarkDataColors() {
@@ -549,7 +550,8 @@ function generateDarkDataColors() {
549
550
  themeTokens.colors.red[400],
550
551
  themeTokens.colors.red[500],
551
552
  themeTokens.colors.red[600]
552
- ]
553
+ ],
554
+ status: { ...themeTokens.dataStatusColors.dark }
553
555
  };
554
556
  }
555
557
  function getTypography() {
@@ -1,7 +1,8 @@
1
- export { C as ClusterCircleStyleOptions, a as ClusterExpandOptions, b as ClusterExpansionResult, c as ClusterFeatureProperties, d as ClusterLayerStyles, e as ClusterMapBoundsExpander, f as ClusterMapExpander, g as ClusterMapReader, h as ClusterTextStyleOptions, i as ClusterableGeoJSONSource, j as ColorExpression, k as CoordinateValidationResult, D as DEFAULT_SIMPLIFICATION_THRESHOLDS, l as DeckHostMap, m as DynamicLODOptions, n as DynamicLODState, E as ExtrusionHeightOptions, F as FeatureGroup, o as FilterExpression, p as FilterOperator, q as FilterValue, G as GenerateLODOptions, r as GeoJSONFingerprint, s as GroupFeaturesOptions, K as KEYBOARD_CONTROLS, L as LODData, t as LODDataWithSimplification, u as LoadGeoJSONOptions, v as LoadGeoJSONResult, w as LotFillStyleOptions, x as LotOutlineStyleOptions, M as MARKER_PROTECTION_CLASS, y as MapLibreWorkerApi, N as NumberExpression, P as PaintProps, z as PaintPropsDiff, S as SimplificationStats, A as SimplificationThreshold, U as UnclusteredPointStyleOptions, V as ValidationResult, B as applyMarkerChildProtection, H as applyMarkerProtection, I as boundsToPolygon, J as calculateBounds, O as calculateCentroid, Q as calculateZoomThresholds, R as clampLatitude, T as combineBounds, W as countFeaturesByType, X as createCategoricalColorExpression, Y as createCircleStyle, Z as createClusterCirclePaint, _ as createClusterStyles, $ as createClusterTextLayout, a0 as createContinuousColorExpression, a1 as createDynamicLODManager, a2 as createExtrusionHeightExpression, a3 as createExtrusionStyle, a4 as createFillStyle, a5 as createGeoJSONFingerprint, a6 as createHeatmapStyle, a7 as createHoverExpression, a8 as createInteractiveExpression, a9 as createInteractiveStatusColorExpression, aa as createLineStyle, ab as createLotFillStyle, ac as createLotOutlineStyle, ad as createSelectionExpression, ae as createStatusColorExpression, af as createZoomExpression, ag as decimalToDMS, ah as deepEqual, ai as ensureValidCoordinates, aj as expandCluster, ak as expandClusterToBounds, al as extendBounds, am as filterByGeometryType, an as filterEqual, ao as fingerprintEqual, ap as formatArea, aq as formatBearing, ar as formatBounds, as as formatCoordinates, at as formatDistance, au as formatFeatureProperties, av as formatLabel, aw as formatPitch, ax as formatPropertyValue, ay as formatScale, az as formatZoom, aA as generateBoundingPolygon, aB as generateConvexHull, aC as generateFeatureCollectionDescription, aD as generateFeatureTable, aE as generateKeyboardControlsDescription, aF as generateLODData, aG as generateLODDataWithSimplification, aH as generateMapDescription, aI as generateMarkerList, aJ as generateMarkersDescription, aK as generateMoveAnnouncement, aL as geoJSONEqual, aM as getChangedPaintProps, aN as getClusterBounds, aO as getClusterChildren, aP as getClusterExpansionZoom, aQ as getClusterLeaves, aR as getGridNavigationIndex, aS as getHighlightStyle, aT as getSelectionStyle, aU as getSimplificationToleranceForZoom, aV as getSimplifiedFeaturesForZoom, aW as groupFeaturesByProperty, aX as isClusterFeature, aY as isValidBounds, aZ as isValidLatitude, a_ as isValidLongitude, a$ as loadGeoJSON, b0 as normalizeLongitude, b1 as paintPropsEqual, b2 as removeMarkerProtection, b3 as resetWorkerUrlWarning, b4 as resolveDeckInterleaved, b5 as serializeFilter, b6 as simplifyFeature, b7 as simplifyFeatureCollection, b8 as simplifyFeatureCollectionWithStats, b9 as simplifyPolygon, ba as supportsDeckInterleaving, bb as validateBoundsArray, bc as validateCoordinates, bd as validateGeoJSON, be as warnIfWorkerUrlMissing, bf as zoomToScale } from '../deck-Cvmx9g1O.cjs';
1
+ export { C as ClusterCircleStyleOptions, a as ClusterExpandOptions, b as ClusterExpansionResult, c as ClusterFeatureProperties, d as ClusterLayerStyles, e as ClusterMapBoundsExpander, f as ClusterMapExpander, g as ClusterMapReader, h as ClusterTextStyleOptions, i as ClusterableGeoJSONSource, j as ColorExpression, k as CoordinateValidationResult, D as DEFAULT_SIMPLIFICATION_THRESHOLDS, l as DeckHostMap, m as DynamicLODOptions, n as DynamicLODState, E as ExtrusionHeightOptions, F as FeatureGroup, o as FilterExpression, p as FilterOperator, q as FilterValue, G as GenerateLODOptions, r as GeoJSONFingerprint, s as GroupFeaturesOptions, K as KEYBOARD_CONTROLS, L as LODData, t as LODDataWithSimplification, u as LoadGeoJSONOptions, v as LoadGeoJSONResult, w as LotFillStyleOptions, x as LotOutlineStyleOptions, M as MARKER_PROTECTION_CLASS, y as MapLibreWorkerApi, N as NumberExpression, P as PaintProps, z as PaintPropsDiff, S as SimplificationStats, A as SimplificationThreshold, U as UnclusteredPointStyleOptions, V as ValidationResult, B as applyMarkerChildProtection, H as applyMarkerProtection, I as boundsToPolygon, J as calculateBounds, O as calculateCentroid, Q as calculateZoomThresholds, R as clampLatitude, T as combineBounds, W as countFeaturesByType, X as createCategoricalColorExpression, Y as createCircleStyle, Z as createClusterCirclePaint, _ as createClusterStyles, $ as createClusterTextLayout, a0 as createContinuousColorExpression, a1 as createDynamicLODManager, a2 as createExtrusionHeightExpression, a3 as createExtrusionStyle, a4 as createFillStyle, a5 as createGeoJSONFingerprint, a6 as createHeatmapStyle, a7 as createHoverExpression, a8 as createInteractiveExpression, a9 as createInteractiveStatusColorExpression, aa as createLineStyle, ab as createLotFillStyle, ac as createLotOutlineStyle, ad as createSelectionExpression, ae as createStatusColorExpression, af as createZoomExpression, ag as decimalToDMS, ah as deepEqual, ai as ensureValidCoordinates, aj as expandCluster, ak as expandClusterToBounds, al as extendBounds, am as filterByGeometryType, an as filterEqual, ao as fingerprintEqual, ap as formatArea, aq as formatBearing, ar as formatBounds, as as formatCoordinates, at as formatDistance, au as formatFeatureProperties, av as formatLabel, aw as formatPitch, ax as formatPropertyValue, ay as formatScale, az as formatZoom, aA as generateBoundingPolygon, aB as generateConvexHull, aC as generateFeatureCollectionDescription, aD as generateFeatureTable, aE as generateKeyboardControlsDescription, aF as generateLODData, aG as generateLODDataWithSimplification, aH as generateMapDescription, aI as generateMarkerList, aJ as generateMarkersDescription, aK as generateMoveAnnouncement, aL as geoJSONEqual, aM as getChangedPaintProps, aN as getClusterBounds, aO as getClusterChildren, aP as getClusterExpansionZoom, aQ as getClusterLeaves, aR as getGridNavigationIndex, aS as getHighlightStyle, aT as getSelectionStyle, aU as getSimplificationToleranceForZoom, aV as getSimplifiedFeaturesForZoom, aW as groupFeaturesByProperty, aX as isClusterFeature, aY as isValidBounds, aZ as isValidLatitude, a_ as isValidLongitude, a$ as loadGeoJSON, b0 as normalizeLongitude, b1 as paintPropsEqual, b2 as removeMarkerProtection, b3 as resetWorkerUrlWarning, b4 as resolveDeckInterleaved, b5 as serializeFilter, b6 as simplifyFeature, b7 as simplifyFeatureCollection, b8 as simplifyFeatureCollectionWithStats, b9 as simplifyPolygon, ba as supportsDeckInterleaving, bb as validateBoundsArray, bc as validateCoordinates, bd as validateGeoJSON, be as warnIfWorkerUrlMissing, bf as zoomToScale } from '../deck-CnQ6EjTk.cjs';
2
2
  export { B as BuildRTreeIndexOptions, a as BuildSpatialIndexOptions, I as IdleViewportManagerOptions, b as IdleViewportResult, P as PanVelocity, c as PredictiveViewportResult, Q as QuerySpatialIndexOptions, d as QueryStats, R as RTreeIndex, e as RTreeItem, f as RTreeQueryStats, S as SpatialIndex, V as ViewportManagedDataOptions, g as ViewportManagedResult, h as buildRTreeIndex, i as buildSpatialIndex, j as createIdleViewportManager, k as createPredictiveViewportManager, l as createRTreeViewportManager, m as createViewportManager, n as createViewportQuery, q as queryByBounds, o as queryByBoundsWithStats, p as queryRTreeByBounds, r as queryRTreeByBoundsWithStats } from '../spatial-pNn2rgAH.cjs';
3
3
  import '../data-DCyEqgN0.cjs';
4
- import '../generator-CU9ZTZ1v.cjs';
4
+ import '../generator-DmozEcaK.cjs';
5
+ import '@classic-homes/theme-tokens';
5
6
  import 'rbush';
6
7
 
7
8
  /**
@@ -1,7 +1,8 @@
1
- export { C as ClusterCircleStyleOptions, a as ClusterExpandOptions, b as ClusterExpansionResult, c as ClusterFeatureProperties, d as ClusterLayerStyles, e as ClusterMapBoundsExpander, f as ClusterMapExpander, g as ClusterMapReader, h as ClusterTextStyleOptions, i as ClusterableGeoJSONSource, j as ColorExpression, k as CoordinateValidationResult, D as DEFAULT_SIMPLIFICATION_THRESHOLDS, l as DeckHostMap, m as DynamicLODOptions, n as DynamicLODState, E as ExtrusionHeightOptions, F as FeatureGroup, o as FilterExpression, p as FilterOperator, q as FilterValue, G as GenerateLODOptions, r as GeoJSONFingerprint, s as GroupFeaturesOptions, K as KEYBOARD_CONTROLS, L as LODData, t as LODDataWithSimplification, u as LoadGeoJSONOptions, v as LoadGeoJSONResult, w as LotFillStyleOptions, x as LotOutlineStyleOptions, M as MARKER_PROTECTION_CLASS, y as MapLibreWorkerApi, N as NumberExpression, P as PaintProps, z as PaintPropsDiff, S as SimplificationStats, A as SimplificationThreshold, U as UnclusteredPointStyleOptions, V as ValidationResult, B as applyMarkerChildProtection, H as applyMarkerProtection, I as boundsToPolygon, J as calculateBounds, O as calculateCentroid, Q as calculateZoomThresholds, R as clampLatitude, T as combineBounds, W as countFeaturesByType, X as createCategoricalColorExpression, Y as createCircleStyle, Z as createClusterCirclePaint, _ as createClusterStyles, $ as createClusterTextLayout, a0 as createContinuousColorExpression, a1 as createDynamicLODManager, a2 as createExtrusionHeightExpression, a3 as createExtrusionStyle, a4 as createFillStyle, a5 as createGeoJSONFingerprint, a6 as createHeatmapStyle, a7 as createHoverExpression, a8 as createInteractiveExpression, a9 as createInteractiveStatusColorExpression, aa as createLineStyle, ab as createLotFillStyle, ac as createLotOutlineStyle, ad as createSelectionExpression, ae as createStatusColorExpression, af as createZoomExpression, ag as decimalToDMS, ah as deepEqual, ai as ensureValidCoordinates, aj as expandCluster, ak as expandClusterToBounds, al as extendBounds, am as filterByGeometryType, an as filterEqual, ao as fingerprintEqual, ap as formatArea, aq as formatBearing, ar as formatBounds, as as formatCoordinates, at as formatDistance, au as formatFeatureProperties, av as formatLabel, aw as formatPitch, ax as formatPropertyValue, ay as formatScale, az as formatZoom, aA as generateBoundingPolygon, aB as generateConvexHull, aC as generateFeatureCollectionDescription, aD as generateFeatureTable, aE as generateKeyboardControlsDescription, aF as generateLODData, aG as generateLODDataWithSimplification, aH as generateMapDescription, aI as generateMarkerList, aJ as generateMarkersDescription, aK as generateMoveAnnouncement, aL as geoJSONEqual, aM as getChangedPaintProps, aN as getClusterBounds, aO as getClusterChildren, aP as getClusterExpansionZoom, aQ as getClusterLeaves, aR as getGridNavigationIndex, aS as getHighlightStyle, aT as getSelectionStyle, aU as getSimplificationToleranceForZoom, aV as getSimplifiedFeaturesForZoom, aW as groupFeaturesByProperty, aX as isClusterFeature, aY as isValidBounds, aZ as isValidLatitude, a_ as isValidLongitude, a$ as loadGeoJSON, b0 as normalizeLongitude, b1 as paintPropsEqual, b2 as removeMarkerProtection, b3 as resetWorkerUrlWarning, b4 as resolveDeckInterleaved, b5 as serializeFilter, b6 as simplifyFeature, b7 as simplifyFeatureCollection, b8 as simplifyFeatureCollectionWithStats, b9 as simplifyPolygon, ba as supportsDeckInterleaving, bb as validateBoundsArray, bc as validateCoordinates, bd as validateGeoJSON, be as warnIfWorkerUrlMissing, bf as zoomToScale } from '../deck-Crhj7TKV.js';
1
+ export { C as ClusterCircleStyleOptions, a as ClusterExpandOptions, b as ClusterExpansionResult, c as ClusterFeatureProperties, d as ClusterLayerStyles, e as ClusterMapBoundsExpander, f as ClusterMapExpander, g as ClusterMapReader, h as ClusterTextStyleOptions, i as ClusterableGeoJSONSource, j as ColorExpression, k as CoordinateValidationResult, D as DEFAULT_SIMPLIFICATION_THRESHOLDS, l as DeckHostMap, m as DynamicLODOptions, n as DynamicLODState, E as ExtrusionHeightOptions, F as FeatureGroup, o as FilterExpression, p as FilterOperator, q as FilterValue, G as GenerateLODOptions, r as GeoJSONFingerprint, s as GroupFeaturesOptions, K as KEYBOARD_CONTROLS, L as LODData, t as LODDataWithSimplification, u as LoadGeoJSONOptions, v as LoadGeoJSONResult, w as LotFillStyleOptions, x as LotOutlineStyleOptions, M as MARKER_PROTECTION_CLASS, y as MapLibreWorkerApi, N as NumberExpression, P as PaintProps, z as PaintPropsDiff, S as SimplificationStats, A as SimplificationThreshold, U as UnclusteredPointStyleOptions, V as ValidationResult, B as applyMarkerChildProtection, H as applyMarkerProtection, I as boundsToPolygon, J as calculateBounds, O as calculateCentroid, Q as calculateZoomThresholds, R as clampLatitude, T as combineBounds, W as countFeaturesByType, X as createCategoricalColorExpression, Y as createCircleStyle, Z as createClusterCirclePaint, _ as createClusterStyles, $ as createClusterTextLayout, a0 as createContinuousColorExpression, a1 as createDynamicLODManager, a2 as createExtrusionHeightExpression, a3 as createExtrusionStyle, a4 as createFillStyle, a5 as createGeoJSONFingerprint, a6 as createHeatmapStyle, a7 as createHoverExpression, a8 as createInteractiveExpression, a9 as createInteractiveStatusColorExpression, aa as createLineStyle, ab as createLotFillStyle, ac as createLotOutlineStyle, ad as createSelectionExpression, ae as createStatusColorExpression, af as createZoomExpression, ag as decimalToDMS, ah as deepEqual, ai as ensureValidCoordinates, aj as expandCluster, ak as expandClusterToBounds, al as extendBounds, am as filterByGeometryType, an as filterEqual, ao as fingerprintEqual, ap as formatArea, aq as formatBearing, ar as formatBounds, as as formatCoordinates, at as formatDistance, au as formatFeatureProperties, av as formatLabel, aw as formatPitch, ax as formatPropertyValue, ay as formatScale, az as formatZoom, aA as generateBoundingPolygon, aB as generateConvexHull, aC as generateFeatureCollectionDescription, aD as generateFeatureTable, aE as generateKeyboardControlsDescription, aF as generateLODData, aG as generateLODDataWithSimplification, aH as generateMapDescription, aI as generateMarkerList, aJ as generateMarkersDescription, aK as generateMoveAnnouncement, aL as geoJSONEqual, aM as getChangedPaintProps, aN as getClusterBounds, aO as getClusterChildren, aP as getClusterExpansionZoom, aQ as getClusterLeaves, aR as getGridNavigationIndex, aS as getHighlightStyle, aT as getSelectionStyle, aU as getSimplificationToleranceForZoom, aV as getSimplifiedFeaturesForZoom, aW as groupFeaturesByProperty, aX as isClusterFeature, aY as isValidBounds, aZ as isValidLatitude, a_ as isValidLongitude, a$ as loadGeoJSON, b0 as normalizeLongitude, b1 as paintPropsEqual, b2 as removeMarkerProtection, b3 as resetWorkerUrlWarning, b4 as resolveDeckInterleaved, b5 as serializeFilter, b6 as simplifyFeature, b7 as simplifyFeatureCollection, b8 as simplifyFeatureCollectionWithStats, b9 as simplifyPolygon, ba as supportsDeckInterleaving, bb as validateBoundsArray, bc as validateCoordinates, bd as validateGeoJSON, be as warnIfWorkerUrlMissing, bf as zoomToScale } from '../deck-P7CWuRmv.js';
2
2
  export { B as BuildRTreeIndexOptions, a as BuildSpatialIndexOptions, I as IdleViewportManagerOptions, b as IdleViewportResult, P as PanVelocity, c as PredictiveViewportResult, Q as QuerySpatialIndexOptions, d as QueryStats, R as RTreeIndex, e as RTreeItem, f as RTreeQueryStats, S as SpatialIndex, V as ViewportManagedDataOptions, g as ViewportManagedResult, h as buildRTreeIndex, i as buildSpatialIndex, j as createIdleViewportManager, k as createPredictiveViewportManager, l as createRTreeViewportManager, m as createViewportManager, n as createViewportQuery, q as queryByBounds, o as queryByBoundsWithStats, p as queryRTreeByBounds, r as queryRTreeByBoundsWithStats } from '../spatial-Df48Jj9D.js';
3
3
  import '../data-DCyEqgN0.js';
4
- import '../generator-CU9ZTZ1v.js';
4
+ import '../generator-DmozEcaK.js';
5
+ import '@classic-homes/theme-tokens';
5
6
  import 'rbush';
6
7
 
7
8
  /**
@@ -1,2 +1,2 @@
1
- export { DEFAULT_SIMPLIFICATION_THRESHOLDS, KEYBOARD_CONTROLS, MARKER_PROTECTION_CLASS, applyMarkerChildProtection, applyMarkerProtection, boundsToPolygon, buildRTreeIndex, buildSpatialIndex, calculateBounds, calculateCentroid, calculateZoomThresholds, clampLatitude, combineBounds, countFeaturesByType, createCategoricalColorExpression, createCircleStyle, createClusterCirclePaint, createClusterStyles, createClusterTextLayout, createContinuousColorExpression, createDynamicLODManager, createExtrusionHeightExpression, createExtrusionStyle, createFillStyle, createGeoJSONFingerprint, createHeatmapStyle, createHoverExpression, createIdleViewportManager, createInteractiveExpression, createInteractiveStatusColorExpression, createLineStyle, createLotFillStyle, createLotOutlineStyle, createPredictiveViewportManager, createRTreeViewportManager, createSelectionExpression, createStatusColorExpression, createViewportManager, createViewportQuery, createZoomExpression, decimalToDMS, deepEqual, ensureValidCoordinates, expandCluster, expandClusterToBounds, extendBounds, filterByGeometryType, filterEqual, fingerprintEqual, formatArea, formatBearing, formatBounds, formatCoordinates, formatDistance, formatFeatureProperties, formatLabel, formatPitch, formatPropertyValue, formatScale, formatZoom, generateBoundingPolygon, generateConvexHull, generateFeatureCollectionDescription, generateFeatureTable, generateKeyboardControlsDescription, generateLODData, generateLODDataWithSimplification, generateMapDescription, generateMarkerList, generateMarkersDescription, generateMoveAnnouncement, geoJSONEqual, getChangedPaintProps, getClusterBounds, getClusterChildren, getClusterExpansionZoom, getClusterLeaves, getGridNavigationIndex, getHighlightStyle, getSelectionStyle, getSimplificationToleranceForZoom, getSimplifiedFeaturesForZoom, groupFeaturesByProperty, isClusterFeature, isValidBounds, isValidLatitude, isValidLongitude, loadGeoJSON, normalizeLongitude, normalizePadding, paintPropsEqual, panToFitPopup, prefersReducedMotion, queryByBounds, queryByBoundsWithStats, queryRTreeByBounds, queryRTreeByBoundsWithStats, removeMarkerProtection, resetWorkerUrlWarning, resolveDeckInterleaved, serializeFilter, simplifyFeature, simplifyFeatureCollection, simplifyFeatureCollectionWithStats, simplifyPolygon, supportsDeckInterleaving, validateBoundsArray, validateCoordinates, validateGeoJSON, warnIfWorkerUrlMissing, zoomToScale } from '../chunk-ZAGAADA3.js';
2
- import '../chunk-KEBZDTH3.js';
1
+ export { DEFAULT_SIMPLIFICATION_THRESHOLDS, KEYBOARD_CONTROLS, MARKER_PROTECTION_CLASS, applyMarkerChildProtection, applyMarkerProtection, boundsToPolygon, buildRTreeIndex, buildSpatialIndex, calculateBounds, calculateCentroid, calculateZoomThresholds, clampLatitude, combineBounds, countFeaturesByType, createCategoricalColorExpression, createCircleStyle, createClusterCirclePaint, createClusterStyles, createClusterTextLayout, createContinuousColorExpression, createDynamicLODManager, createExtrusionHeightExpression, createExtrusionStyle, createFillStyle, createGeoJSONFingerprint, createHeatmapStyle, createHoverExpression, createIdleViewportManager, createInteractiveExpression, createInteractiveStatusColorExpression, createLineStyle, createLotFillStyle, createLotOutlineStyle, createPredictiveViewportManager, createRTreeViewportManager, createSelectionExpression, createStatusColorExpression, createViewportManager, createViewportQuery, createZoomExpression, decimalToDMS, deepEqual, ensureValidCoordinates, expandCluster, expandClusterToBounds, extendBounds, filterByGeometryType, filterEqual, fingerprintEqual, formatArea, formatBearing, formatBounds, formatCoordinates, formatDistance, formatFeatureProperties, formatLabel, formatPitch, formatPropertyValue, formatScale, formatZoom, generateBoundingPolygon, generateConvexHull, generateFeatureCollectionDescription, generateFeatureTable, generateKeyboardControlsDescription, generateLODData, generateLODDataWithSimplification, generateMapDescription, generateMarkerList, generateMarkersDescription, generateMoveAnnouncement, geoJSONEqual, getChangedPaintProps, getClusterBounds, getClusterChildren, getClusterExpansionZoom, getClusterLeaves, getGridNavigationIndex, getHighlightStyle, getSelectionStyle, getSimplificationToleranceForZoom, getSimplifiedFeaturesForZoom, groupFeaturesByProperty, isClusterFeature, isValidBounds, isValidLatitude, isValidLongitude, loadGeoJSON, normalizeLongitude, normalizePadding, paintPropsEqual, panToFitPopup, prefersReducedMotion, queryByBounds, queryByBoundsWithStats, queryRTreeByBounds, queryRTreeByBoundsWithStats, removeMarkerProtection, resetWorkerUrlWarning, resolveDeckInterleaved, serializeFilter, simplifyFeature, simplifyFeatureCollection, simplifyFeatureCollectionWithStats, simplifyPolygon, supportsDeckInterleaving, validateBoundsArray, validateCoordinates, validateGeoJSON, warnIfWorkerUrlMissing, zoomToScale } from '../chunk-LE43W2ZW.js';
2
+ import '../chunk-OYZEJO3U.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@classic-homes/maps-core",
3
- "version": "0.7.4",
3
+ "version": "0.8.0",
4
4
  "description": "Core utilities and theme for Classic Theme maps",
5
5
  "keywords": [
6
6
  "maps",
@@ -91,181 +91,201 @@
91
91
  position: absolute;
92
92
  inset: -8px;
93
93
  }
94
+ /* PopupContent placed first (no PopupHeader) keeps clear of the close button */
95
+ .maplibregl-popup-content:has(> .maplibregl-popup-close-button)
96
+ [data-popup-card]
97
+ > [data-popup-content]:first-child {
98
+ padding-right: 2.75rem;
99
+ }
94
100
 
95
101
  /* ==========================================================================
96
- Popup Tip/Arrow Styling
97
-
98
- MapLibre creates a tip element with CSS borders to form a triangle.
99
- We color the border to match our popup border, then use ::after to
100
- create an inner triangle that fills with the background color.
101
-
102
- Note: The tip is outside the content container, so overflow:hidden
103
- on the content doesn't affect it.
102
+ Corner anchors: the tip meets the popup at a square corner
104
103
  ========================================================================== */
105
104
 
106
- /* Base tip styling - position: relative is required for ::after positioning */
107
- .maplibregl-popup-tip {
108
- z-index: 1 !important;
109
- position: relative !important;
105
+ .maplibregl-popup-anchor-top-left .maplibregl-popup-content {
106
+ border-top-left-radius: 0 !important;
110
107
  }
111
108
 
112
- /* --- Bottom Anchored (popup above point, arrow points down) --- */
113
-
114
- .maplibregl-popup-anchor-bottom .maplibregl-popup-tip {
115
- border-top-color: hsl(var(--border)) !important;
109
+ .maplibregl-popup-anchor-top-right .maplibregl-popup-content {
110
+ border-top-right-radius: 0 !important;
116
111
  }
117
112
 
118
- .dark .maplibregl-popup-anchor-bottom .maplibregl-popup-tip {
119
- border-top-color: rgb(156 163 175) !important;
113
+ .maplibregl-popup-anchor-bottom-left .maplibregl-popup-content {
114
+ border-bottom-left-radius: 0 !important;
120
115
  }
121
116
 
122
- /* Inner fill triangle */
123
- .maplibregl-popup-anchor-bottom .maplibregl-popup-tip::after {
124
- content: '' !important;
125
- position: absolute !important;
126
- left: -10px !important;
127
- top: -11px !important;
128
- border-left: 10px solid transparent !important;
129
- border-right: 10px solid transparent !important;
130
- border-top: 10px solid hsl(var(--popover)) !important;
117
+ .maplibregl-popup-anchor-bottom-right .maplibregl-popup-content {
118
+ border-bottom-right-radius: 0 !important;
131
119
  }
132
120
 
133
- /* --- Top Anchored (popup below point, arrow points up) --- */
121
+ [dir='rtl'] .maplibregl-popup-anchor-top-left .maplibregl-popup-content {
122
+ border-top-left-radius: 0.5rem !important;
123
+ border-top-right-radius: 0 !important;
124
+ }
134
125
 
135
- .maplibregl-popup-anchor-top .maplibregl-popup-tip {
136
- border-bottom-color: hsl(var(--border)) !important;
126
+ [dir='rtl'] .maplibregl-popup-anchor-top-right .maplibregl-popup-content {
127
+ border-top-right-radius: 0.5rem !important;
128
+ border-top-left-radius: 0 !important;
137
129
  }
138
130
 
139
- .dark .maplibregl-popup-anchor-top .maplibregl-popup-tip {
140
- border-bottom-color: rgb(156 163 175) !important;
131
+ [dir='rtl'] .maplibregl-popup-anchor-bottom-left .maplibregl-popup-content {
132
+ border-bottom-left-radius: 0.5rem !important;
133
+ border-bottom-right-radius: 0 !important;
141
134
  }
142
135
 
143
- .maplibregl-popup-anchor-top .maplibregl-popup-tip::after {
144
- content: '' !important;
145
- position: absolute !important;
146
- left: -10px !important;
147
- bottom: -11px !important;
148
- border-left: 10px solid transparent !important;
149
- border-right: 10px solid transparent !important;
150
- border-bottom: 10px solid hsl(var(--popover)) !important;
136
+ [dir='rtl'] .maplibregl-popup-anchor-bottom-right .maplibregl-popup-content {
137
+ border-bottom-right-radius: 0.5rem !important;
138
+ border-bottom-left-radius: 0 !important;
151
139
  }
152
140
 
153
- /* --- Left Anchored (popup to right of point, arrow points left) --- */
141
+ /* ==========================================================================
142
+ Popup Tip/Arrow
143
+
144
+ MapLibre draws the tip as a CSS border triangle. We drop that and paint
145
+ two clip-path triangles instead: ::before in the border colour, ::after
146
+ in the fill colour, inset 1px (1.414px along the 45° edges). The tip
147
+ overlaps the popup by 1px, so the fill covers the popup's own border
148
+ across the tip's mouth: the outline runs round the tip, not through it.
149
+
150
+ The fill matches the part of the popup the tip touches: PopupHeader
151
+ (when it comes first) for tips above, PopupFooter (when it comes last)
152
+ for tips below, the popover colour otherwise. A header or footer with a
153
+ custom background sets --popup-tip-fill on the popup to match.
154
+ ========================================================================== */
154
155
 
155
- .maplibregl-popup-anchor-left .maplibregl-popup-tip {
156
- border-right-color: hsl(var(--border)) !important;
156
+ .maplibregl-popup {
157
+ --ct-popup-tip-border: hsl(var(--border));
158
+ --ct-popup-tip-fill: var(--popup-tip-fill, hsl(var(--popover)));
157
159
  }
158
160
 
159
- .dark .maplibregl-popup-anchor-left .maplibregl-popup-tip {
160
- border-right-color: rgb(156 163 175) !important;
161
+ .dark .maplibregl-popup {
162
+ --ct-popup-tip-border: rgb(156 163 175); /* gray-400, as the popup border */
161
163
  }
162
164
 
163
- .maplibregl-popup-anchor-left .maplibregl-popup-tip::after {
164
- content: '' !important;
165
- position: absolute !important;
166
- top: -10px !important;
167
- left: -10px !important;
168
- border-top: 10px solid transparent !important;
169
- border-bottom: 10px solid transparent !important;
170
- border-right: 10px solid hsl(var(--popover)) !important;
165
+ .maplibregl-popup:is(
166
+ .maplibregl-popup-anchor-top,
167
+ .maplibregl-popup-anchor-top-left,
168
+ .maplibregl-popup-anchor-top-right
169
+ ):has([data-popup-card] > [data-popup-header]:first-child),
170
+ .maplibregl-popup:is(
171
+ .maplibregl-popup-anchor-bottom,
172
+ .maplibregl-popup-anchor-bottom-left,
173
+ .maplibregl-popup-anchor-bottom-right
174
+ ):has([data-popup-card] > [data-popup-footer]:last-child) {
175
+ --ct-popup-tip-fill: var(--popup-tip-fill, hsl(var(--muted)));
171
176
  }
172
177
 
173
- /* --- Right Anchored (popup to left of point, arrow points right) --- */
174
-
175
- .maplibregl-popup-anchor-right .maplibregl-popup-tip {
176
- border-left-color: hsl(var(--border)) !important;
178
+ .maplibregl-popup-tip {
179
+ position: relative !important;
180
+ z-index: 1 !important; /* above the popup's border */
181
+ width: 22px !important;
182
+ height: 11px !important;
183
+ border: none !important;
177
184
  }
178
185
 
179
- .dark .maplibregl-popup-anchor-right .maplibregl-popup-tip {
180
- border-left-color: rgb(156 163 175) !important;
186
+ .maplibregl-popup-tip::before,
187
+ .maplibregl-popup-tip::after {
188
+ content: '';
189
+ position: absolute;
190
+ inset: 0;
191
+ clip-path: var(--ct-tip-outer);
192
+ background: var(--ct-popup-tip-border);
181
193
  }
182
194
 
183
- .maplibregl-popup-anchor-right .maplibregl-popup-tip::after {
184
- content: '' !important;
185
- position: absolute !important;
186
- top: -10px !important;
187
- right: -10px !important;
188
- border-top: 10px solid transparent !important;
189
- border-bottom: 10px solid transparent !important;
190
- border-left: 10px solid hsl(var(--popover)) !important;
195
+ .maplibregl-popup-tip::after {
196
+ clip-path: var(--ct-tip-inner);
197
+ background: var(--ct-popup-tip-fill);
191
198
  }
192
199
 
193
- /* --- Top-Left Anchored (popup below-right of point, arrow points up-left) --- */
194
-
195
- .maplibregl-popup-anchor-top-left .maplibregl-popup-tip {
196
- border-bottom-color: hsl(var(--border)) !important;
200
+ /* Popup above the point: tip hangs below, mouth on top */
201
+ .maplibregl-popup-anchor-bottom .maplibregl-popup-tip {
202
+ margin-top: -1px !important;
203
+ --ct-tip-outer: polygon(0 0, 100% 0, 50% 100%);
204
+ --ct-tip-inner: polygon(1.414px 0, calc(100% - 1.414px) 0, 50% calc(100% - 1.414px));
197
205
  }
198
206
 
199
- .dark .maplibregl-popup-anchor-top-left .maplibregl-popup-tip {
200
- border-bottom-color: rgb(156 163 175) !important;
207
+ /* Popup below the point: tip sits on top, mouth at the bottom */
208
+ .maplibregl-popup-anchor-top .maplibregl-popup-tip {
209
+ margin-bottom: -1px !important;
210
+ --ct-tip-outer: polygon(50% 0, 100% 100%, 0 100%);
211
+ --ct-tip-inner: polygon(50% 1.414px, calc(100% - 1.414px) 100%, 1.414px 100%);
201
212
  }
202
213
 
203
- .maplibregl-popup-anchor-top-left .maplibregl-popup-tip::after {
204
- content: '' !important;
205
- position: absolute !important;
206
- left: -10px !important;
207
- bottom: -11px !important;
208
- border-left: 10px solid transparent !important;
209
- border-right: 10px solid transparent !important;
210
- border-bottom: 10px solid hsl(var(--popover)) !important;
214
+ /* Popup right of the point: tip on its left, mouth on the right */
215
+ .maplibregl-popup-anchor-left .maplibregl-popup-tip {
216
+ width: 11px !important;
217
+ height: 22px !important;
218
+ margin-right: -1px !important;
219
+ --ct-tip-outer: polygon(100% 0, 100% 100%, 0 50%);
220
+ --ct-tip-inner: polygon(100% 1.414px, 100% calc(100% - 1.414px), 1.414px 50%);
211
221
  }
212
222
 
213
- /* --- Top-Right Anchored (popup below-left of point, arrow points up-right) --- */
214
-
215
- .maplibregl-popup-anchor-top-right .maplibregl-popup-tip {
216
- border-bottom-color: hsl(var(--border)) !important;
223
+ /* Popup left of the point: tip on its right, mouth on the left */
224
+ .maplibregl-popup-anchor-right .maplibregl-popup-tip {
225
+ width: 11px !important;
226
+ height: 22px !important;
227
+ margin-left: -1px !important;
228
+ --ct-tip-outer: polygon(0 0, 100% 50%, 0 100%);
229
+ --ct-tip-inner: polygon(0 1.414px, calc(100% - 1.414px) 50%, 0 calc(100% - 1.414px));
217
230
  }
218
231
 
219
- .dark .maplibregl-popup-anchor-top-right .maplibregl-popup-tip {
220
- border-bottom-color: rgb(156 163 175) !important;
232
+ [dir='rtl'] .maplibregl-popup-anchor-left .maplibregl-popup-tip {
233
+ margin-right: 0 !important;
234
+ margin-left: -1px !important;
235
+ --ct-tip-outer: polygon(0 0, 100% 50%, 0 100%);
236
+ --ct-tip-inner: polygon(0 1.414px, calc(100% - 1.414px) 50%, 0 calc(100% - 1.414px));
221
237
  }
222
238
 
223
- .maplibregl-popup-anchor-top-right .maplibregl-popup-tip::after {
224
- content: '' !important;
225
- position: absolute !important;
226
- left: -10px !important;
227
- bottom: -11px !important;
228
- border-left: 10px solid transparent !important;
229
- border-right: 10px solid transparent !important;
230
- border-bottom: 10px solid hsl(var(--popover)) !important;
239
+ [dir='rtl'] .maplibregl-popup-anchor-right .maplibregl-popup-tip {
240
+ margin-left: 0 !important;
241
+ margin-right: -1px !important;
242
+ --ct-tip-outer: polygon(100% 0, 100% 100%, 0 50%);
243
+ --ct-tip-inner: polygon(100% 1.414px, 100% calc(100% - 1.414px), 1.414px 50%);
231
244
  }
232
245
 
233
- /* --- Bottom-Left Anchored (popup above-right of point, arrow points down-left) --- */
234
-
235
- .maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip {
236
- border-top-color: hsl(var(--border)) !important;
246
+ /* Corner anchors: a right-angled tip whose straight side continues the
247
+ popup's side border down (or up) to the point */
248
+ .maplibregl-popup-anchor-top-left .maplibregl-popup-tip,
249
+ .maplibregl-popup-anchor-top-right .maplibregl-popup-tip,
250
+ .maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip,
251
+ .maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip {
252
+ width: 11px !important;
237
253
  }
238
254
 
239
- .dark .maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip {
240
- border-top-color: rgb(156 163 175) !important;
255
+ .maplibregl-popup-anchor-top-left .maplibregl-popup-tip,
256
+ .maplibregl-popup-anchor-top-right .maplibregl-popup-tip {
257
+ margin-bottom: -1px !important;
241
258
  }
242
259
 
243
- .maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip::after {
244
- content: '' !important;
245
- position: absolute !important;
246
- left: -10px !important;
247
- top: -11px !important;
248
- border-left: 10px solid transparent !important;
249
- border-right: 10px solid transparent !important;
250
- border-top: 10px solid hsl(var(--popover)) !important;
260
+ .maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip,
261
+ .maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip {
262
+ margin-top: -1px !important;
251
263
  }
252
264
 
253
- /* --- Bottom-Right Anchored (popup above-left of point, arrow points down-right) --- */
265
+ /* Point at the top-left corner */
266
+ .maplibregl-popup-anchor-top-left .maplibregl-popup-tip,
267
+ [dir='rtl'] .maplibregl-popup-anchor-top-right .maplibregl-popup-tip {
268
+ --ct-tip-outer: polygon(0 0, 100% 100%, 0 100%);
269
+ --ct-tip-inner: polygon(1px 2.414px, calc(100% - 1.414px) 100%, 1px 100%);
270
+ }
254
271
 
255
- .maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip {
256
- border-top-color: hsl(var(--border)) !important;
272
+ /* Point at the top-right corner */
273
+ .maplibregl-popup-anchor-top-right .maplibregl-popup-tip,
274
+ [dir='rtl'] .maplibregl-popup-anchor-top-left .maplibregl-popup-tip {
275
+ --ct-tip-outer: polygon(100% 0, 100% 100%, 0 100%);
276
+ --ct-tip-inner: polygon(calc(100% - 1px) 2.414px, calc(100% - 1px) 100%, 1.414px 100%);
257
277
  }
258
278
 
259
- .dark .maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip {
260
- border-top-color: rgb(156 163 175) !important;
279
+ /* Point at the bottom-left corner */
280
+ .maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip,
281
+ [dir='rtl'] .maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip {
282
+ --ct-tip-outer: polygon(0 0, 100% 0, 0 100%);
283
+ --ct-tip-inner: polygon(1px 0, calc(100% - 1.414px) 0, 1px calc(100% - 2.414px));
261
284
  }
262
285
 
263
- .maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip::after {
264
- content: '' !important;
265
- position: absolute !important;
266
- left: -10px !important;
267
- top: -11px !important;
268
- border-left: 10px solid transparent !important;
269
- border-right: 10px solid transparent !important;
270
- border-top: 10px solid hsl(var(--popover)) !important;
286
+ /* Point at the bottom-right corner */
287
+ .maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip,
288
+ [dir='rtl'] .maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip {
289
+ --ct-tip-outer: polygon(0 0, 100% 0, 100% 100%);
290
+ --ct-tip-inner: polygon(1.414px 0, calc(100% - 1px) 0, calc(100% - 1px) calc(100% - 2.414px));
271
291
  }