@j3m-quantum/ui 2.1.8 → 2.1.10

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 CHANGED
@@ -408,11 +408,14 @@ const navItems: NavItem[] = [
408
408
 
409
409
  ## Map Components
410
410
 
411
- Leaflet-based map components for displaying interactive maps. **Requires optional peer dependencies.**
411
+ Leaflet-based map components for displaying interactive maps. **Separate entry point - requires additional dependencies.**
412
+
413
+ > **Note:** Map components are in a separate entry point (`@j3m-quantum/ui/map`) to avoid requiring leaflet for users who don't need maps.
412
414
 
413
415
  ### Installation
414
416
 
415
417
  ```bash
418
+ # Install map dependencies
416
419
  npm install leaflet react-leaflet
417
420
  ```
418
421
 
@@ -425,13 +428,14 @@ Import Leaflet CSS in your app's entry CSS file:
425
428
  @import "tailwindcss";
426
429
  @import "tw-animate-css";
427
430
  @import "@j3m-quantum/ui/styles";
428
- @import "leaflet/dist/leaflet.css";
431
+ @import "leaflet/dist/leaflet.css"; /* Required for maps */
429
432
  ```
430
433
 
431
434
  ### Basic Usage
432
435
 
433
436
  ```tsx
434
- import { Map, MapTileLayer, MapMarker, MapPopup } from '@j3m-quantum/ui'
437
+ // Import from the /map entry point
438
+ import { Map, MapTileLayer, MapMarker, MapPopup } from '@j3m-quantum/ui/map'
435
439
 
436
440
  function MyMap() {
437
441
  return (
package/dist/cli/index.js CHANGED
@@ -535,14 +535,14 @@ var REGISTRY = {
535
535
  ]
536
536
  },
537
537
  map: {
538
- label: "Map (requires leaflet)",
538
+ label: "Map (separate import: @j3m-quantum/ui/map)",
539
539
  components: [
540
- { name: "Map", description: "Map container", import: "Map" },
541
- { name: "MapTileLayer", description: "Map tile layer", import: "MapTileLayer" },
542
- { name: "MapMarker", description: "Map marker", import: "MapMarker" },
543
- { name: "MapPopup", description: "Marker popup", import: "MapPopup" },
544
- { name: "MapTooltip", description: "Marker tooltip", import: "MapTooltip" },
545
- { name: "MapZoomControl", description: "Zoom controls", import: "MapZoomControl" }
540
+ { name: "Map", description: "Map container", import: "Map from '@j3m-quantum/ui/map'" },
541
+ { name: "MapTileLayer", description: "Map tile layer", import: "MapTileLayer from '@j3m-quantum/ui/map'" },
542
+ { name: "MapMarker", description: "Map marker", import: "MapMarker from '@j3m-quantum/ui/map'" },
543
+ { name: "MapPopup", description: "Marker popup", import: "MapPopup from '@j3m-quantum/ui/map'" },
544
+ { name: "MapTooltip", description: "Marker tooltip", import: "MapTooltip from '@j3m-quantum/ui/map'" },
545
+ { name: "MapZoomControl", description: "Zoom controls", import: "MapZoomControl from '@j3m-quantum/ui/map'" }
546
546
  ]
547
547
  }
548
548
  };