mirror of
https://github.com/AnmolSaini16/mapcn
synced 2026-04-25 16:14:54 +02:00
141 lines
4.5 KiB
JSON
141 lines
4.5 KiB
JSON
{
|
|
"$schema": "https://ui.shadcn.com/schema/registry.json",
|
|
"name": "mapcn",
|
|
"homepage": "https://mapcn.dev",
|
|
"items": [
|
|
{
|
|
"name": "map",
|
|
"type": "registry:ui",
|
|
"title": "Map",
|
|
"description": "A MapLibre-powered map component with markers, popups, tooltips, routes, and controls.",
|
|
"dependencies": ["maplibre-gl", "lucide-react"],
|
|
"registryDependencies": [],
|
|
"files": [
|
|
{
|
|
"path": "src/registry/map.tsx",
|
|
"type": "registry:ui",
|
|
"target": "components/ui/map.tsx"
|
|
}
|
|
],
|
|
"css": {
|
|
"@layer base": {
|
|
".maplibregl-popup-content": {
|
|
"@apply bg-transparent! shadow-none! p-0! rounded-none!": {}
|
|
},
|
|
".maplibregl-popup-tip": {
|
|
"@apply hidden!": {}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "analytics-map",
|
|
"type": "registry:block",
|
|
"title": "Analytics Map",
|
|
"description": "Real-time analytics overview with a world map, breakdown cards, and device stats.",
|
|
"dependencies": ["recharts", "lucide-react"],
|
|
"registryDependencies": ["@mapcn/map", "card", "chart"],
|
|
"files": [
|
|
{
|
|
"path": "src/registry/blocks/analytics-map/page.tsx",
|
|
"type": "registry:page",
|
|
"target": "app/analytics/page.tsx"
|
|
},
|
|
{
|
|
"path": "src/registry/blocks/analytics-map/data.ts",
|
|
"type": "registry:component",
|
|
"target": "app/analytics/data.ts"
|
|
},
|
|
{
|
|
"path": "src/registry/blocks/analytics-map/components/overview-card.tsx",
|
|
"type": "registry:component",
|
|
"target": "app/analytics/components/overview-card.tsx"
|
|
},
|
|
{
|
|
"path": "src/registry/blocks/analytics-map/components/breakdown-card.tsx",
|
|
"type": "registry:component",
|
|
"target": "app/analytics/components/breakdown-card.tsx"
|
|
}
|
|
],
|
|
"categories": ["analytics", "dashboard"],
|
|
"meta": {
|
|
"iframeHeight": "970px"
|
|
}
|
|
},
|
|
{
|
|
"name": "logistics-network",
|
|
"type": "registry:block",
|
|
"title": "Logistics Network",
|
|
"description": "Domestic logistics map with a sidebar of stats.",
|
|
"dependencies": ["lucide-react"],
|
|
"registryDependencies": ["@mapcn/map", "sidebar", "separator"],
|
|
"files": [
|
|
{
|
|
"path": "src/registry/blocks/logistics-network/page.tsx",
|
|
"type": "registry:page",
|
|
"target": "app/logistics/page.tsx"
|
|
},
|
|
{
|
|
"path": "src/registry/blocks/logistics-network/data.ts",
|
|
"type": "registry:component",
|
|
"target": "app/logistics/data.ts"
|
|
},
|
|
{
|
|
"path": "src/registry/blocks/logistics-network/components/map-arcs.tsx",
|
|
"type": "registry:component",
|
|
"target": "app/logistics/components/map-arcs.tsx"
|
|
},
|
|
{
|
|
"path": "src/registry/blocks/logistics-network/components/filter-sidebar.tsx",
|
|
"type": "registry:component",
|
|
"target": "app/logistics/components/filter-sidebar.tsx"
|
|
},
|
|
{
|
|
"path": "src/registry/blocks/logistics-network/components/network-map.tsx",
|
|
"type": "registry:component",
|
|
"target": "app/logistics/components/network-map.tsx"
|
|
}
|
|
],
|
|
"categories": ["logistics", "network"],
|
|
"meta": {
|
|
"iframeHeight": "800px"
|
|
}
|
|
},
|
|
{
|
|
"name": "heatmap",
|
|
"type": "registry:block",
|
|
"title": "Heatmap",
|
|
"description": "Globe-projected heatmap visualizing earthquake density with zoom-dependent styling.",
|
|
"dependencies": [],
|
|
"registryDependencies": ["@mapcn/map", "card"],
|
|
"files": [
|
|
{
|
|
"path": "src/registry/blocks/heatmap/page.tsx",
|
|
"type": "registry:page",
|
|
"target": "app/heatmap/page.tsx"
|
|
}
|
|
],
|
|
"categories": ["visualization", "heatmap"]
|
|
},
|
|
{
|
|
"name": "delivery-tracker",
|
|
"type": "registry:block",
|
|
"title": "Delivery Tracker",
|
|
"description": "Live order tracking with route progress, courier position, and order details.",
|
|
"dependencies": ["lucide-react"],
|
|
"registryDependencies": ["@mapcn/map", "card", "badge", "button"],
|
|
"files": [
|
|
{
|
|
"path": "src/registry/blocks/delivery-tracker/page.tsx",
|
|
"type": "registry:page",
|
|
"target": "app/delivery/page.tsx"
|
|
}
|
|
],
|
|
"categories": ["tracking", "delivery"],
|
|
"meta": {
|
|
"iframeHeight": "680px"
|
|
}
|
|
}
|
|
]
|
|
}
|