ethio-map-kit 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +119 -1
- package/dist/components/EthiopiaMap.d.ts +11 -3
- package/dist/components/EthiopiaRegionServicesCard.d.ts +7 -1
- package/dist/components/EthiopiaRegionServicesPanel.d.ts +20 -0
- package/dist/ethio-map-kit.css +1 -1
- package/dist/ethio-map-kit.js +743 -580
- package/dist/ethio-map-kit.umd.cjs +1 -1
- package/dist/index.d.ts +3 -2
- package/dist/types.d.ts +15 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2,10 +2,11 @@ import "./styles.css";
|
|
|
2
2
|
export { EthiopiaMap, EthiopiaMapSurface, useSelectedRegionId, type EthiopiaMapSurfaceProps, } from "./components/EthiopiaMap";
|
|
3
3
|
export { EthiopiaMapLegend } from "./components/EthiopiaMapLegend";
|
|
4
4
|
export { EthiopiaLocationsPanel } from "./components/EthiopiaLocationsPanel";
|
|
5
|
-
export { EthiopiaRegionServicesCard } from "./components/EthiopiaRegionServicesCard";
|
|
5
|
+
export { EthiopiaRegionServicesCard, type EthiopiaRegionServicesCardProps, } from "./components/EthiopiaRegionServicesCard";
|
|
6
|
+
export { EthiopiaRegionServicesPanel, type EthiopiaRegionServicesPanelProps, } from "./components/EthiopiaRegionServicesPanel";
|
|
6
7
|
export { EthiopiaSelectedRegionCard } from "./components/EthiopiaSelectedRegionCard";
|
|
7
8
|
export { EthiopiaMapProvider, EthiopiaMapRoot, useEthiopiaMap, } from "./context";
|
|
8
9
|
export { defaultLocations, defaultRegionData, defaultRegionServiceStats, } from "./data/defaultData";
|
|
9
10
|
export { regionPathMap, type RegionPathMapping } from "./data/regionPaths";
|
|
10
11
|
export { ETHIOPIA_AUTO_TOUR_SEQUENCE, ETHIOPIA_REGION_IDS } from "./types";
|
|
11
|
-
export type { AutoTourStep, ComparisonDirection, ComparisonOutcome, EthiopiaLocationsPanelProps, EthiopiaMapConfig, EthiopiaMapLayer, EthiopiaMapLegendProps, EthiopiaMapProps, EthiopiaMapProviderProps, EthiopiaMapSelection, EthiopiaRegionId, EthiopiaSelectedRegionCardProps, EthiopiaTheme, EthiopiaViewMode, LatLngLocation, PartialRegionRecord, RegionDatum, RegionRecord, RegionSummaryStat, RegionServiceStats, SelectionAnimationMode, ServiceComparison, ServiceStat, ServiceValueKind, } from "./types";
|
|
12
|
+
export type { AutoTourStep, ComparisonDirection, ComparisonOutcome, EthiopiaLocationsPanelProps, EthiopiaMapConfig, EthiopiaMapLayer, EthiopiaMapLegendProps, EthiopiaMapProps, EthiopiaMapProviderProps, EthiopiaMapSelection, EthiopiaRegionId, EthiopiaServiceRowsIncrementalConfig, EthiopiaSelectedRegionCardProps, EthiopiaTheme, EthiopiaViewMode, LatLngLocation, PartialRegionRecord, RegionDatum, RegionRecord, RegionSummaryStat, RegionServiceStats, SelectionAnimationMode, ServiceComparison, ServiceStat, ServiceValueKind, } from "./types";
|
package/dist/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ReactNode } from "react";
|
|
1
|
+
import type { CSSProperties, ReactNode } from "react";
|
|
2
2
|
export declare const ETHIOPIA_AUTO_TOUR_SEQUENCE: readonly ["afar", "tigray", "amhara", "benishangul-gumuz", "gambela", "south-west-ethiopia", "south-ethiopia", "sidama", "central-ethiopia", "addis-ababa", "dire-dawa", "harari", "somali", "oromia", null];
|
|
3
3
|
export declare const ETHIOPIA_REGION_IDS: readonly ["tigray", "afar", "amhara", "benishangul-gumuz", "gambela", "south-west-ethiopia", "central-ethiopia", "sidama", "south-ethiopia", "oromia", "addis-ababa", "somali", "dire-dawa", "harari"];
|
|
4
4
|
export type EthiopiaRegionId = (typeof ETHIOPIA_REGION_IDS)[number];
|
|
@@ -39,6 +39,13 @@ export interface ServiceStat {
|
|
|
39
39
|
comparison?: ServiceComparison | null;
|
|
40
40
|
}
|
|
41
41
|
export type RegionServiceStats = PartialRegionRecord<readonly ServiceStat[]>;
|
|
42
|
+
export interface EthiopiaServiceRowsIncrementalConfig {
|
|
43
|
+
enabled?: boolean;
|
|
44
|
+
initialCount?: number;
|
|
45
|
+
step?: number;
|
|
46
|
+
thresholdPx?: number;
|
|
47
|
+
showMoreFallback?: boolean;
|
|
48
|
+
}
|
|
42
49
|
export interface LatLngLocation {
|
|
43
50
|
id?: string | number;
|
|
44
51
|
name?: string;
|
|
@@ -78,9 +85,16 @@ export interface EthiopiaMapProviderProps extends EthiopiaMapConfig {
|
|
|
78
85
|
}
|
|
79
86
|
export interface EthiopiaMapProps extends Omit<EthiopiaMapProviderProps, "children"> {
|
|
80
87
|
className?: string;
|
|
88
|
+
style?: CSSProperties;
|
|
81
89
|
svgText?: string;
|
|
82
90
|
svgUrl?: string;
|
|
83
91
|
terrainImageUrl?: string;
|
|
92
|
+
inMapStatsClassName?: string;
|
|
93
|
+
inMapStatsStyle?: CSSProperties;
|
|
94
|
+
inMapStatsListClassName?: string;
|
|
95
|
+
inMapStatsListStyle?: CSSProperties;
|
|
96
|
+
inMapStatsEmptyText?: string;
|
|
97
|
+
incrementalRows?: EthiopiaServiceRowsIncrementalConfig;
|
|
84
98
|
}
|
|
85
99
|
export interface EthiopiaMapLegendProps {
|
|
86
100
|
className?: string;
|