@clicoh/orion-library 1.1.0 → 1.2.0-beta.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.
Files changed (156) hide show
  1. package/assets/css/base.css +24 -1
  2. package/dist/components/01-atoms/Badge/Badge.d.ts +13 -3
  3. package/dist/components/01-atoms/Badge/Badge.d.ts.map +1 -1
  4. package/dist/components/01-atoms/Badge/Badge.jsx +21 -4
  5. package/dist/components/01-atoms/Badge/Badge.jsx.map +1 -1
  6. package/dist/components/01-atoms/Button/Button.d.ts +7 -1
  7. package/dist/components/01-atoms/Button/Button.d.ts.map +1 -1
  8. package/dist/components/01-atoms/Button/Button.jsx +46 -4
  9. package/dist/components/01-atoms/Button/Button.jsx.map +1 -1
  10. package/dist/components/01-atoms/IconButton/IconButton.d.ts +28 -0
  11. package/dist/components/01-atoms/IconButton/IconButton.d.ts.map +1 -0
  12. package/dist/components/01-atoms/IconButton/IconButton.jsx +32 -0
  13. package/dist/components/01-atoms/IconButton/IconButton.jsx.map +1 -0
  14. package/dist/components/01-atoms/IconButton/index.d.ts +2 -0
  15. package/dist/components/01-atoms/IconButton/index.d.ts.map +1 -0
  16. package/dist/components/01-atoms/IconButton/index.js +2 -0
  17. package/dist/components/01-atoms/IconButton/index.js.map +1 -0
  18. package/dist/components/01-atoms/Input/Input.d.ts +5 -1
  19. package/dist/components/01-atoms/Input/Input.d.ts.map +1 -1
  20. package/dist/components/01-atoms/Input/Input.jsx +12 -6
  21. package/dist/components/01-atoms/Input/Input.jsx.map +1 -1
  22. package/dist/components/01-atoms/Input/utils/border.d.ts +3 -1
  23. package/dist/components/01-atoms/Input/utils/border.d.ts.map +1 -1
  24. package/dist/components/01-atoms/Input/utils/border.js +3 -3
  25. package/dist/components/01-atoms/Input/utils/border.js.map +1 -1
  26. package/dist/components/01-atoms/MultiSelect/MultiSelect.jsx +2 -2
  27. package/dist/components/01-atoms/MultiSelect/MultiSelect.jsx.map +1 -1
  28. package/dist/components/01-atoms/ProgressBar/ProgressBar.d.ts +42 -0
  29. package/dist/components/01-atoms/ProgressBar/ProgressBar.d.ts.map +1 -0
  30. package/dist/components/01-atoms/ProgressBar/ProgressBar.jsx +52 -0
  31. package/dist/components/01-atoms/ProgressBar/ProgressBar.jsx.map +1 -0
  32. package/dist/components/01-atoms/ProgressBar/index.d.ts +2 -0
  33. package/dist/components/01-atoms/ProgressBar/index.d.ts.map +1 -0
  34. package/dist/components/01-atoms/ProgressBar/index.js +2 -0
  35. package/dist/components/01-atoms/ProgressBar/index.js.map +1 -0
  36. package/dist/components/01-atoms/Radio/Radio.d.ts +19 -2
  37. package/dist/components/01-atoms/Radio/Radio.d.ts.map +1 -1
  38. package/dist/components/01-atoms/Radio/Radio.jsx +51 -6
  39. package/dist/components/01-atoms/Radio/Radio.jsx.map +1 -1
  40. package/dist/components/01-atoms/Select/Select.d.ts +3 -1
  41. package/dist/components/01-atoms/Select/Select.d.ts.map +1 -1
  42. package/dist/components/01-atoms/Select/Select.jsx +8 -4
  43. package/dist/components/01-atoms/Select/Select.jsx.map +1 -1
  44. package/dist/components/01-atoms/Skeleton/Skeleton.d.ts +32 -0
  45. package/dist/components/01-atoms/Skeleton/Skeleton.d.ts.map +1 -0
  46. package/dist/components/01-atoms/Skeleton/Skeleton.jsx +34 -0
  47. package/dist/components/01-atoms/Skeleton/Skeleton.jsx.map +1 -0
  48. package/dist/components/01-atoms/Skeleton/index.d.ts +2 -0
  49. package/dist/components/01-atoms/Skeleton/index.d.ts.map +1 -0
  50. package/dist/components/01-atoms/Skeleton/index.js +2 -0
  51. package/dist/components/01-atoms/Skeleton/index.js.map +1 -0
  52. package/dist/components/01-atoms/SmallInput/SmallInput.jsx +1 -1
  53. package/dist/components/01-atoms/SmallInput/SmallInput.jsx.map +1 -1
  54. package/dist/components/01-atoms/Switch/Switch.d.ts +5 -2
  55. package/dist/components/01-atoms/Switch/Switch.d.ts.map +1 -1
  56. package/dist/components/01-atoms/Switch/Switch.jsx +15 -12
  57. package/dist/components/01-atoms/Switch/Switch.jsx.map +1 -1
  58. package/dist/components/01-atoms/Textarea/Textarea.d.ts +38 -0
  59. package/dist/components/01-atoms/Textarea/Textarea.d.ts.map +1 -0
  60. package/dist/components/01-atoms/Textarea/Textarea.jsx +50 -0
  61. package/dist/components/01-atoms/Textarea/Textarea.jsx.map +1 -0
  62. package/dist/components/01-atoms/Textarea/index.d.ts +2 -0
  63. package/dist/components/01-atoms/Textarea/index.d.ts.map +1 -0
  64. package/dist/components/01-atoms/Textarea/index.js +2 -0
  65. package/dist/components/01-atoms/Textarea/index.js.map +1 -0
  66. package/dist/components/01-atoms/Toast/Toast.d.ts.map +1 -1
  67. package/dist/components/01-atoms/Toast/Toast.jsx +3 -1
  68. package/dist/components/01-atoms/Toast/Toast.jsx.map +1 -1
  69. package/dist/components/01-atoms/index.d.ts +4 -0
  70. package/dist/components/01-atoms/index.d.ts.map +1 -1
  71. package/dist/components/01-atoms/index.js +4 -0
  72. package/dist/components/01-atoms/index.js.map +1 -1
  73. package/dist/components/02-molecules/Accordion/Accordion.d.ts +15 -4
  74. package/dist/components/02-molecules/Accordion/Accordion.d.ts.map +1 -1
  75. package/dist/components/02-molecules/Accordion/Accordion.jsx +20 -6
  76. package/dist/components/02-molecules/Accordion/Accordion.jsx.map +1 -1
  77. package/dist/components/02-molecules/Accordion/AccordionContext.d.ts +5 -1
  78. package/dist/components/02-molecules/Accordion/AccordionContext.d.ts.map +1 -1
  79. package/dist/components/02-molecules/Accordion/AccordionContext.jsx +4 -3
  80. package/dist/components/02-molecules/Accordion/AccordionContext.jsx.map +1 -1
  81. package/dist/components/02-molecules/Accordion/AccordionSection.d.ts +2 -1
  82. package/dist/components/02-molecules/Accordion/AccordionSection.d.ts.map +1 -1
  83. package/dist/components/02-molecules/Accordion/AccordionSection.jsx +35 -8
  84. package/dist/components/02-molecules/Accordion/AccordionSection.jsx.map +1 -1
  85. package/dist/components/02-molecules/Accordion/index.d.ts +1 -0
  86. package/dist/components/02-molecules/Accordion/index.d.ts.map +1 -1
  87. package/dist/components/02-molecules/Accordion/index.js.map +1 -1
  88. package/dist/components/02-molecules/Autocomplete/Autocomplete.d.ts +10 -1
  89. package/dist/components/02-molecules/Autocomplete/Autocomplete.d.ts.map +1 -1
  90. package/dist/components/02-molecules/Autocomplete/Autocomplete.jsx +29 -10
  91. package/dist/components/02-molecules/Autocomplete/Autocomplete.jsx.map +1 -1
  92. package/dist/components/02-molecules/DatePicker/DatePicker.d.ts +79 -0
  93. package/dist/components/02-molecules/DatePicker/DatePicker.d.ts.map +1 -0
  94. package/dist/components/02-molecules/DatePicker/DatePicker.jsx +229 -0
  95. package/dist/components/02-molecules/DatePicker/DatePicker.jsx.map +1 -0
  96. package/dist/components/02-molecules/DatePicker/index.d.ts +2 -0
  97. package/dist/components/02-molecules/DatePicker/index.d.ts.map +1 -0
  98. package/dist/components/02-molecules/DatePicker/index.js +2 -0
  99. package/dist/components/02-molecules/DatePicker/index.js.map +1 -0
  100. package/dist/components/02-molecules/Filter/Filter.d.ts +1 -0
  101. package/dist/components/02-molecules/Filter/Filter.d.ts.map +1 -1
  102. package/dist/components/02-molecules/Filter/Filter.jsx +25 -4
  103. package/dist/components/02-molecules/Filter/Filter.jsx.map +1 -1
  104. package/dist/components/02-molecules/Filter/index.d.ts +1 -0
  105. package/dist/components/02-molecules/Filter/index.d.ts.map +1 -1
  106. package/dist/components/02-molecules/Filter/index.js +1 -0
  107. package/dist/components/02-molecules/Filter/index.js.map +1 -1
  108. package/dist/components/02-molecules/Filter/types.d.ts +24 -5
  109. package/dist/components/02-molecules/Filter/types.d.ts.map +1 -1
  110. package/dist/components/02-molecules/Filter/utils/pruneOrphanValues.d.ts +34 -0
  111. package/dist/components/02-molecules/Filter/utils/pruneOrphanValues.d.ts.map +1 -0
  112. package/dist/components/02-molecules/Filter/utils/pruneOrphanValues.js +70 -0
  113. package/dist/components/02-molecules/Filter/utils/pruneOrphanValues.js.map +1 -0
  114. package/dist/components/02-molecules/ImageViewer/ImageViewer.d.ts +55 -5
  115. package/dist/components/02-molecules/ImageViewer/ImageViewer.d.ts.map +1 -1
  116. package/dist/components/02-molecules/ImageViewer/ImageViewer.jsx +118 -27
  117. package/dist/components/02-molecules/ImageViewer/ImageViewer.jsx.map +1 -1
  118. package/dist/components/02-molecules/ImageViewer/ImageViewerImage.d.ts +40 -0
  119. package/dist/components/02-molecules/ImageViewer/ImageViewerImage.d.ts.map +1 -0
  120. package/dist/components/02-molecules/ImageViewer/ImageViewerImage.jsx +108 -0
  121. package/dist/components/02-molecules/ImageViewer/ImageViewerImage.jsx.map +1 -0
  122. package/dist/components/02-molecules/InlineMessage/InlineMessage.d.ts +37 -0
  123. package/dist/components/02-molecules/InlineMessage/InlineMessage.d.ts.map +1 -0
  124. package/dist/components/02-molecules/InlineMessage/InlineMessage.jsx +59 -0
  125. package/dist/components/02-molecules/InlineMessage/InlineMessage.jsx.map +1 -0
  126. package/dist/components/02-molecules/InlineMessage/index.d.ts +2 -0
  127. package/dist/components/02-molecules/InlineMessage/index.d.ts.map +1 -0
  128. package/dist/components/02-molecules/InlineMessage/index.js +2 -0
  129. package/dist/components/02-molecules/InlineMessage/index.js.map +1 -0
  130. package/dist/components/02-molecules/Modal/Modal.d.ts +5 -1
  131. package/dist/components/02-molecules/Modal/Modal.d.ts.map +1 -1
  132. package/dist/components/02-molecules/Modal/Modal.jsx +7 -5
  133. package/dist/components/02-molecules/Modal/Modal.jsx.map +1 -1
  134. package/dist/components/02-molecules/index.d.ts +3 -0
  135. package/dist/components/02-molecules/index.d.ts.map +1 -1
  136. package/dist/components/02-molecules/index.js +3 -0
  137. package/dist/components/02-molecules/index.js.map +1 -1
  138. package/dist/components/03-organisms/MapView/MapView.d.ts +73 -0
  139. package/dist/components/03-organisms/MapView/MapView.d.ts.map +1 -0
  140. package/dist/components/03-organisms/MapView/MapView.jsx +228 -0
  141. package/dist/components/03-organisms/MapView/MapView.jsx.map +1 -0
  142. package/dist/components/03-organisms/MapView/index.d.ts +2 -0
  143. package/dist/components/03-organisms/MapView/index.d.ts.map +1 -0
  144. package/dist/components/03-organisms/MapView/index.js +2 -0
  145. package/dist/components/03-organisms/MapView/index.js.map +1 -0
  146. package/dist/components/03-organisms/index.d.ts +1 -0
  147. package/dist/components/03-organisms/index.d.ts.map +1 -1
  148. package/dist/components/03-organisms/index.js +1 -0
  149. package/dist/components/03-organisms/index.js.map +1 -1
  150. package/dist/components/04-templates/DashboardTemplate/DashboardTemplate.jsx +2 -2
  151. package/dist/components/04-templates/DashboardTemplate/DashboardTemplate.jsx.map +1 -1
  152. package/dist/components/04-templates/SideFilterTemplate/SideFilterTemplate.d.ts.map +1 -1
  153. package/dist/components/04-templates/SideFilterTemplate/SideFilterTemplate.jsx +4 -1
  154. package/dist/components/04-templates/SideFilterTemplate/SideFilterTemplate.jsx.map +1 -1
  155. package/package.json +5 -2
  156. package/tailwind.config.ts +10 -0
@@ -0,0 +1,228 @@
1
+ 'use client';
2
+ import clsx from 'clsx';
3
+ import { useEffect, useId, useRef, useState, } from 'react';
4
+ import { HiMinus, HiPlus, HiOutlineViewfinderCircle } from 'react-icons/hi2';
5
+ import { Show } from '../../00-base';
6
+ const toneMap = {
7
+ mono: clsx('[&_.leaflet-tile-pane]:brightness-105 [&_.leaflet-tile-pane]:contrast-90 [&_.leaflet-tile-pane]:grayscale', 'dark:[&_.leaflet-tile-pane]:brightness-90 dark:[&_.leaflet-tile-pane]:contrast-90 dark:[&_.leaflet-tile-pane]:invert'),
8
+ color: '',
9
+ };
10
+ const attributionClasses = clsx('dark:[&_.leaflet-control-attribution]:text-gray-2 dark:[&_.leaflet-control-attribution]:bg-black/70', 'dark:[&_.leaflet-control-attribution_a]:text-lavender-dark');
11
+ const DEFAULT_TILE = 'https://tile.openstreetmap.org/{z}/{x}/{y}.png';
12
+ const DEFAULT_ATTRIBUTION = '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>';
13
+ const pinFill = {
14
+ default: '#6A5DF9',
15
+ numbered: '#6A5DF9',
16
+ 'numbered-black': '#000000',
17
+ muted: '#B9BABB',
18
+ };
19
+ function showsNumber(variant) {
20
+ return variant === 'numbered' || variant === 'numbered-black';
21
+ }
22
+ function buildPinHtml(marker) {
23
+ const variant = marker.variant ?? 'default';
24
+ const fill = pinFill[variant];
25
+ const inner = showsNumber(variant) && marker.label
26
+ ? `<text x="14" y="18.5" text-anchor="middle" font-size="12" font-weight="700" fill="#fff">${marker.label}</text>`
27
+ : '<circle cx="14" cy="14" r="4.5" fill="#fff"/>';
28
+ return (`<div class="orion-map-pin"><svg width="28" height="36" viewBox="0 0 28 36" aria-hidden="true">` +
29
+ `<path d="M14 0C6.3 0 0 6.3 0 14c0 10.5 14 22 14 22s14-11.5 14-22C28 6.3 21.7 0 14 0z" fill="${fill}"/>` +
30
+ `<circle cx="14" cy="14" r="9" fill="${fill}"/>${inner}</svg></div>`);
31
+ }
32
+ /**
33
+ * MapView renders an interactive map with customizable markers and controls.
34
+ * Leaflet is loaded dynamically so the library barrel stays safe for SSR.
35
+ *
36
+ * @component
37
+ * @example
38
+ * <MapView
39
+ * center={{ lat: 4.711, lng: -74.072 }}
40
+ * markers={[{ id: '1', lat: 4.71, lng: -74.07, tooltip: 'Stop A' }]}
41
+ * controls={{
42
+ * zoomInLabel: 'Zoom in',
43
+ * zoomOutLabel: 'Zoom out',
44
+ * recenterLabel: 'Recenter',
45
+ * }}
46
+ * />
47
+ *
48
+ * @param {MapViewProps} props - The properties of the MapView component.
49
+ * @param {{ lat: number; lng: number }} props.center - Initial map center.
50
+ * @param {number} [props.zoom=12] - Initial zoom level.
51
+ * @param {MapMarker[]} [props.markers] - Markers to render on the map. `variant` is `default` or `numbered` (lavender `#6A5DF9`), `numbered-black` (black fill, white number) or `muted` (gray, no number). Numbered variants show `label` in white.
52
+ * @param {boolean} [props.fitToMarkers] - Fit bounds to markers when they change.
53
+ * @param {string} [props.tileUrl] - Tile layer URL template.
54
+ * @param {string} [props.attribution] - Map attribution HTML.
55
+ * @param {MapViewControls} [props.controls] - Labels for zoom and recenter controls.
56
+ * @param {(marker: MapMarker) => void} [props.onMarkerClick] - Fired when a marker is clicked.
57
+ * @param {(lat: number, lng: number) => void} [props.onMapClick] - Fired with the clicked coordinates when the map itself (not a marker) is clicked.
58
+ * @param {boolean} [props.draggableMarker] - Makes every rendered marker draggable.
59
+ * @param {(marker: MapMarker, lat: number, lng: number) => void} [props.onMarkerDragEnd] - Fired with the new coordinates once a dragged marker is released.
60
+ * @param {string} [props.emptyMessage] - Message shown when there are no markers.
61
+ * @param {'mono' | 'color'} [props.tone='mono'] - `mono` renders the tiles in grayscale and inverts them in dark mode, so the map follows the theme and the pins stay the only accent. `color` leaves the tiles as the provider serves them.
62
+ * @param {string} [props.className] - Extra classes for the root element.
63
+ *
64
+ * @returns {ReactNode} The rendered MapView component.
65
+ */
66
+ export function MapView({ center, zoom = 12, markers = [], fitToMarkers = true, tileUrl = DEFAULT_TILE, attribution = DEFAULT_ATTRIBUTION, controls, onMarkerClick, onMapClick, draggableMarker = false, onMarkerDragEnd, emptyMessage, tone = 'mono', className, ...restProps }) {
67
+ const mapId = useId().replace(/:/g, '');
68
+ const containerRef = useRef(null);
69
+ const mapRef = useRef(null);
70
+ const tilesRef = useRef(null);
71
+ const markersLayerRef = useRef(null);
72
+ const leafletRef = useRef(null);
73
+ const [isReady, setIsReady] = useState(false);
74
+ const onMarkerClickRef = useRef(onMarkerClick);
75
+ onMarkerClickRef.current = onMarkerClick;
76
+ const onMapClickRef = useRef(onMapClick);
77
+ onMapClickRef.current = onMapClick;
78
+ const onMarkerDragEndRef = useRef(onMarkerDragEnd);
79
+ onMarkerDragEndRef.current = onMarkerDragEnd;
80
+ useEffect(() => {
81
+ let cancelled = false;
82
+ const init = async () => {
83
+ if (!containerRef.current || mapRef.current)
84
+ return;
85
+ const L = await import('leaflet');
86
+ if (cancelled || !containerRef.current)
87
+ return;
88
+ leafletRef.current = L;
89
+ const map = L.map(containerRef.current, {
90
+ zoomControl: false,
91
+ scrollWheelZoom: true,
92
+ attributionControl: true,
93
+ }).setView([center.lat, center.lng], zoom);
94
+ map.attributionControl.setPrefix(false);
95
+ tilesRef.current = L.tileLayer(tileUrl, {
96
+ maxZoom: 17,
97
+ attribution,
98
+ }).addTo(map);
99
+ markersLayerRef.current = L.layerGroup().addTo(map);
100
+ mapRef.current = map;
101
+ map.on('click', (ev) => {
102
+ onMapClickRef.current?.(ev.latlng.lat, ev.latlng.lng);
103
+ });
104
+ setIsReady(true);
105
+ setTimeout(() => map.invalidateSize(), 80);
106
+ };
107
+ void init();
108
+ return () => {
109
+ cancelled = true;
110
+ if (mapRef.current) {
111
+ mapRef.current.remove();
112
+ mapRef.current = null;
113
+ tilesRef.current = null;
114
+ markersLayerRef.current = null;
115
+ leafletRef.current = null;
116
+ }
117
+ };
118
+ // Intentionally mount-only: subsequent prop changes are handled below.
119
+ // eslint-disable-next-line react-hooks/exhaustive-deps
120
+ }, []);
121
+ useEffect(() => {
122
+ const map = mapRef.current;
123
+ const L = leafletRef.current;
124
+ const layer = markersLayerRef.current;
125
+ if (!isReady || !map || !L || !layer)
126
+ return;
127
+ layer.clearLayers();
128
+ markers.forEach((marker) => {
129
+ const icon = L.divIcon({
130
+ html: buildPinHtml(marker),
131
+ className: '',
132
+ iconSize: [28, 36],
133
+ iconAnchor: [14, 36],
134
+ tooltipAnchor: [0, -30],
135
+ });
136
+ const leafletMarker = L.marker([marker.lat, marker.lng], {
137
+ icon,
138
+ riseOnHover: true,
139
+ draggable: draggableMarker,
140
+ });
141
+ if (marker.tooltip) {
142
+ leafletMarker.bindTooltip(marker.tooltip, {
143
+ direction: 'top',
144
+ offset: [0, -4],
145
+ });
146
+ }
147
+ leafletMarker.on('click', () => {
148
+ onMarkerClickRef.current?.(marker);
149
+ });
150
+ if (draggableMarker) {
151
+ leafletMarker.on('dragend', (ev) => {
152
+ const position = ev.target.getLatLng();
153
+ onMarkerDragEndRef.current?.(marker, position.lat, position.lng);
154
+ });
155
+ }
156
+ leafletMarker.addTo(layer);
157
+ });
158
+ if (fitToMarkers && markers.length > 0) {
159
+ const bounds = L.latLngBounds(markers.map((m) => [m.lat, m.lng]));
160
+ map.fitBounds(bounds, { padding: [60, 60], maxZoom: 14 });
161
+ }
162
+ else {
163
+ map.setView([center.lat, center.lng], zoom);
164
+ }
165
+ setTimeout(() => map.invalidateSize(), 40);
166
+ }, [
167
+ isReady,
168
+ markers,
169
+ fitToMarkers,
170
+ center.lat,
171
+ center.lng,
172
+ zoom,
173
+ draggableMarker,
174
+ ]);
175
+ useEffect(() => {
176
+ const map = mapRef.current;
177
+ const L = leafletRef.current;
178
+ if (!map || !L)
179
+ return;
180
+ if (tilesRef.current) {
181
+ map.removeLayer(tilesRef.current);
182
+ }
183
+ tilesRef.current = L.tileLayer(tileUrl, {
184
+ maxZoom: 17,
185
+ attribution,
186
+ }).addTo(map);
187
+ }, [tileUrl, attribution]);
188
+ const recenter = () => {
189
+ const map = mapRef.current;
190
+ const L = leafletRef.current;
191
+ if (!map || !L)
192
+ return;
193
+ if (markers.length > 0) {
194
+ const bounds = L.latLngBounds(markers.map((m) => [m.lat, m.lng]));
195
+ map.fitBounds(bounds, { padding: [60, 60], maxZoom: 14 });
196
+ return;
197
+ }
198
+ map.setView([center.lat, center.lng], zoom);
199
+ };
200
+ return (<div {...restProps} className={clsx('bg-gray-6 dark:bg-gray-dark-2 relative h-full min-h-64 w-full overflow-hidden rounded-lg', toneMap[tone], attributionClasses, className)}>
201
+ <div ref={containerRef} id={`orion-map-${mapId}`} className="absolute inset-0 z-0 h-full w-full" role="application" aria-label={restProps['aria-label']}/>
202
+ <Show>
203
+ <Show.When isTrue={Boolean(emptyMessage) && markers.length === 0}>
204
+ <div className="pointer-events-none absolute inset-0 z-10 flex items-center justify-center bg-white/60 p-4 text-center dark:bg-black/50">
205
+ <p className="text-gray-1 dark:text-gray-2 text-sm">
206
+ {emptyMessage}
207
+ </p>
208
+ </div>
209
+ </Show.When>
210
+ </Show>
211
+ <Show>
212
+ <Show.When isTrue={Boolean(controls)}>
213
+ <div className="absolute right-3 bottom-3 z-10 flex flex-col gap-1">
214
+ <button type="button" aria-label={controls?.zoomInLabel} onClick={() => mapRef.current?.zoomIn()} className="border-gray-5 dark:border-gray-1 flex h-9 w-9 items-center justify-center rounded-full border bg-white text-black shadow-md dark:bg-black dark:text-white">
215
+ <HiPlus className="h-4 w-4" aria-hidden/>
216
+ </button>
217
+ <button type="button" aria-label={controls?.zoomOutLabel} onClick={() => mapRef.current?.zoomOut()} className="border-gray-5 dark:border-gray-1 flex h-9 w-9 items-center justify-center rounded-full border bg-white text-black shadow-md dark:bg-black dark:text-white">
218
+ <HiMinus className="h-4 w-4" aria-hidden/>
219
+ </button>
220
+ <button type="button" aria-label={controls?.recenterLabel} onClick={recenter} className="border-gray-5 dark:border-gray-1 flex h-9 w-9 items-center justify-center rounded-full border bg-white text-black shadow-md dark:bg-black dark:text-white">
221
+ <HiOutlineViewfinderCircle className="h-4 w-4" aria-hidden/>
222
+ </button>
223
+ </div>
224
+ </Show.When>
225
+ </Show>
226
+ </div>);
227
+ }
228
+ //# sourceMappingURL=MapView.jsx.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MapView.jsx","sourceRoot":"","sources":["../../../../src/components/03-organisms/MapView/MapView.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAGL,SAAS,EACT,KAAK,EACL,MAAM,EACN,QAAQ,GACT,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,yBAAyB,EAAE,MAAM,iBAAiB,CAAC;AAC7E,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AA4CrC,MAAM,OAAO,GAAgC;IAC3C,IAAI,EAAE,IAAI,CACR,2GAA2G,EAC3G,sHAAsH,CACvH;IACD,KAAK,EAAE,EAAE;CACV,CAAC;AAEF,MAAM,kBAAkB,GAAG,IA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W,EAC1C;YAAA,EAAE,MAAM,CACR;YAAA,CAAC,MAAM,CACL,IAAI,CAAC,QAAQ,CACb,UAAU,CAAC,CAAC,QAAQ,EAAE,aAAa,CAAC,CACpC,OAAO,CAAC,CAAC,QAAQ,CAAC,CAClB,SAAS,CAAC,2JAA2J,CAErK;cAAA,CAAC,yBAAyB,CAAC,SAAS,CAAC,SAAS,CAAC,WAAW,EAC5D;YAAA,EAAE,MAAM,CACV;UAAA,EAAE,GAAG,CACP;QAAA,EAAE,IAAI,CAAC,IAAI,CACb;MAAA,EAAE,IAAI,CACR;IAAA,EAAE,GAAG,CAAC,CACP,CAAC;AACJ,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './MapView';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/03-organisms/MapView/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './MapView';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/03-organisms/MapView/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC"}
@@ -3,4 +3,5 @@ export * from './DataTable';
3
3
  export * from './AsideFilters';
4
4
  export * from './Header';
5
5
  export * from './ModalMultiple';
6
+ export * from './MapView';
6
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/03-organisms/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/03-organisms/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC"}
@@ -3,4 +3,5 @@ export * from './DataTable';
3
3
  export * from './AsideFilters';
4
4
  export * from './Header';
5
5
  export * from './ModalMultiple';
6
+ export * from './MapView';
6
7
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/03-organisms/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/03-organisms/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC"}
@@ -31,7 +31,7 @@ import { HeadingWithTitleSkeleton } from './HeadingWithTitleSkeleton';
31
31
  export function DashboardTemplate({ headerProps, pageTitles, titleChildren, children, breadcrumbLoadingLabel, headingLoadingLabel, }) {
32
32
  return (<>
33
33
  <Header {...headerProps}/>
34
- <hr className="border-gray-5 dark:border-gray-2"/>
34
+ <hr className="border-gray-5 dark:border-gray-dark-1"/>
35
35
  <Container className="grid gap-2 py-4">
36
36
  <Suspense fallback={<BreadcrumbSkeleton loadingLabel={breadcrumbLoadingLabel}/>}>
37
37
  <BreadcrumbWithPathname homeHref={headerProps.homeHref} pageTitles={pageTitles}/>
@@ -43,7 +43,7 @@ export function DashboardTemplate({ headerProps, pageTitles, titleChildren, chil
43
43
  {titleChildren}
44
44
  </div>
45
45
  </Container>
46
- <hr className="border-gray-5 dark:border-gray-2"/>
46
+ <hr className="border-gray-5 dark:border-gray-dark-1"/>
47
47
  <Container className="py-6" as="main">
48
48
  {children}
49
49
  </Container>
@@ -1 +1 @@
1
- {"version":3,"file":"DashboardTemplate.jsx","sourceRoot":"","sources":["../../../../src/components/04-templates/DashboardTemplate/DashboardTemplate.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAa,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,kDAAkD,CAAC;AACtF,OAAO,EAAE,MAAM,EAAe,MAAM,kCAAkC,CAAC;AACvE,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAWtE;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,UAAU,iBAAiB,CAAC,EAChC,WAAW,EACX,UAAU,EACV,aAAa,EACb,QAAQ,EACR,sBAAsB,EACtB,mBAAmB,GACI;IACvB,OAAO,CACL,EACE;MAAA,CAAC,MAAM,CAAC,IAAI,WAAW,CAAC,EACxB;MAAA,CAAC,EAAE,CAAC,SAAS,CAAC,kCAAkC,EAChD;MAAA,CAAC,SAAS,CAAC,SAAS,CAAC,iBAAiB,CACpC;QAAA,CAAC,QAAQ,CACP,QAAQ,CAAC,CACP,CAAC,kBAAkB,CAAC,YAAY,CAAC,CAAC,sBAAsB,CAAC,EAC3D,CAAC,CAED;UAAA,CAAC,sBAAsB,CACrB,QAAQ,CAAC,CAAC,WAAW,CAAC,QAAQ,CAAC,CAC/B,UAAU,CAAC,CAAC,UAAU,CAAC,EAE3B;QAAA,EAAE,QAAQ,CACV;QAAA,CAAC,GAAG,CAAC,SAAS,CAAC,sBAAsB,CACnC;UAAA,CAAC,QAAQ,CACP,QAAQ,CAAC,CACP,CAAC,wBAAwB,CAAC,YAAY,CAAC,CAAC,mBAAmB,CAAC,EAC9D,CAAC,CAED;YAAA,CAAC,gBAAgB,CAAC,UAAU,CAAC,CAAC,UAAU,CAAC,EAC3C;UAAA,EAAE,QAAQ,CACV;UAAA,CAAC,aAAa,CAChB;QAAA,EAAE,GAAG,CACP;MAAA,EAAE,SAAS,CACX;MAAA,CAAC,EAAE,CAAC,SAAS,CAAC,kCAAkC,EAChD;MAAA,CAAC,SAAS,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,CACnC;QAAA,CAAC,QAAQ,CACX;MAAA,EAAE,SAAS,CACb;IAAA,GAAG,CACJ,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"DashboardTemplate.jsx","sourceRoot":"","sources":["../../../../src/components/04-templates/DashboardTemplate/DashboardTemplate.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAa,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,kDAAkD,CAAC;AACtF,OAAO,EAAE,MAAM,EAAe,MAAM,kCAAkC,CAAC;AACvE,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAWtE;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,UAAU,iBAAiB,CAAC,EAChC,WAAW,EACX,UAAU,EACV,aAAa,EACb,QAAQ,EACR,sBAAsB,EACtB,mBAAmB,GACI;IACvB,OAAO,CACL,EACE;MAAA,CAAC,MAAM,CAAC,IAAI,WAAW,CAAC,EACxB;MAAA,CAAC,EAAE,CAAC,SAAS,CAAC,uCAAuC,EACrD;MAAA,CAAC,SAAS,CAAC,SAAS,CAAC,iBAAiB,CACpC;QAAA,CAAC,QAAQ,CACP,QAAQ,CAAC,CACP,CAAC,kBAAkB,CAAC,YAAY,CAAC,CAAC,sBAAsB,CAAC,EAC3D,CAAC,CAED;UAAA,CAAC,sBAAsB,CACrB,QAAQ,CAAC,CAAC,WAAW,CAAC,QAAQ,CAAC,CAC/B,UAAU,CAAC,CAAC,UAAU,CAAC,EAE3B;QAAA,EAAE,QAAQ,CACV;QAAA,CAAC,GAAG,CAAC,SAAS,CAAC,sBAAsB,CACnC;UAAA,CAAC,QAAQ,CACP,QAAQ,CAAC,CACP,CAAC,wBAAwB,CAAC,YAAY,CAAC,CAAC,mBAAmB,CAAC,EAC9D,CAAC,CAED;YAAA,CAAC,gBAAgB,CAAC,UAAU,CAAC,CAAC,UAAU,CAAC,EAC3C;UAAA,EAAE,QAAQ,CACV;UAAA,CAAC,aAAa,CAChB;QAAA,EAAE,GAAG,CACP;MAAA,EAAE,SAAS,CACX;MAAA,CAAC,EAAE,CAAC,SAAS,CAAC,uCAAuC,EACrD;MAAA,CAAC,SAAS,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,CACnC;QAAA,CAAC,QAAQ,CACX;MAAA,EAAE,SAAS,CACb;IAAA,GAAG,CACJ,CAAC;AACJ,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"SideFilterTemplate.d.ts","sourceRoot":"","sources":["../../../../src/components/04-templates/SideFilterTemplate/SideFilterTemplate.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAY,MAAM,OAAO,CAAC;AAM5C,KAAK,uBAAuB,GAAG;IAC7B,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,GAAG,CAAC;IACrB,kBAAkB,EAAE,GAAG,CAAC;IACxB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,IAAI,CAAC;IACnD,MAAM,EAAE,GAAG,CAAC;IACZ,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,WAAW,EACX,eAAe,EACf,kBAAkB,EAClB,MAAM,EACN,YAAY,EACZ,kBAAyB,GAC1B,EAAE,uBAAuB,GAAG,SAAS,CAiDrC"}
1
+ {"version":3,"file":"SideFilterTemplate.d.ts","sourceRoot":"","sources":["../../../../src/components/04-templates/SideFilterTemplate/SideFilterTemplate.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAY,MAAM,OAAO,CAAC;AAM5C,KAAK,uBAAuB,GAAG;IAC7B,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,GAAG,CAAC;IACrB,kBAAkB,EAAE,GAAG,CAAC;IACxB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,IAAI,CAAC;IACnD,MAAM,EAAE,GAAG,CAAC;IACZ,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,WAAW,EACX,eAAe,EACf,kBAAkB,EAClB,MAAM,EACN,YAAY,EACZ,kBAAyB,GAC1B,EAAE,uBAAuB,GAAG,SAAS,CAoDrC"}
@@ -43,7 +43,10 @@ export function SideFilterTemplate({ filterCount, handleSetFilter, handledClearF
43
43
  filtersEnabledText: 'Filtros activos:',
44
44
  submitButton: {
45
45
  text: 'Aplicar filtros',
46
- callback: handleSetFilter,
46
+ callback: (data) => {
47
+ handleSetFilter(data);
48
+ setIsOpen(false);
49
+ },
47
50
  },
48
51
  resetButton: {
49
52
  text: 'Limpiar',
@@ -1 +1 @@
1
- {"version":3,"file":"SideFilterTemplate.jsx","sourceRoot":"","sources":["../../../../src/components/04-templates/SideFilterTemplate/SideFilterTemplate.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,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,kBAAkB,EAAE,kBAAkB;oBACtC,YAAY,EAAE;wBACZ,IAAI,EAAE,iBAAiB;wBACvB,QAAQ,EAAE,eAAe;qBAC1B;oBACD,WAAW,EAAE;wBACX,IAAI,EAAE,SAAS;wBACf,QAAQ,EAAE,kBAAkB;qBAC7B;oBACD,eAAe,EAAE,CAAC,IAAI,EAAE,EAAE;wBACxB,IAAI,YAAY,EAAE,CAAC;4BACjB,YAAY,CAAC,IAAI,CAAC,CAAC;wBACrB,CAAC;oBACH,CAAC;oBACD,MAAM,EAAE,MAAM;iBACf,CAAC,EACF,EACF,QAAQ,CAAC,IAAI,CACd,CACL;IAAA,GAAG,CACJ,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"SideFilterTemplate.jsx","sourceRoot":"","sources":["../../../../src/components/04-templates/SideFilterTemplate/SideFilterTemplate.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,EAAa,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAWlD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,UAAU,kBAAkB,CAAC,EACjC,WAAW,EACX,eAAe,EACf,kBAAkB,EAClB,MAAM,EACN,YAAY,EACZ,kBAAkB,GAAG,IAAI,GACD;IACxB,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAU,KAAK,CAAC,CAAC;IAErD,OAAO,CACL,EACE;MAAA,CAAC,GAAG,CAAC,SAAS,CAAC,oDAAoD,CACjE;QAAA,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,CACvB,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,QAAQ,CACxC;YAAA,CAAC,WAAW,CAAE;UAChB,EAAE,SAAS,CAAC,CACb,CACD;QAAA,CAAC,MAAM,CACL,QAAQ,CAAC,MAAM,CACf,KAAK,CAAC,CAAC,CAAC,uBAAuB,CAAC,AAAD,EAAG,CAAC,CACnC,OAAO,CAAC,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAC/B,aAAa,CAAC,CAAC,MAAM,CAAC,CACtB,aAAa,CAAC,QAAQ,CAEtB;;QACF,EAAE,MAAM,CACV;MAAA,EAAE,GAAG,CACL;MAAA,CAAC,CAAC,CAAC,MAAM;YACP,YAAY,CACV,CAAC,YAAY,CACX,KAAK,CAAC,SAAS,CACf,aAAa,CAAC,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CACtC,MAAM,CAAC,CAAC;oBACN,kBAAkB;oBAClB,kBAAkB,EAAE,kBAAkB;oBACtC,YAAY,EAAE;wBACZ,IAAI,EAAE,iBAAiB;wBACvB,QAAQ,EAAE,CAAC,IAAI,EAAE,EAAE;4BACjB,eAAe,CAAC,IAAI,CAAC,CAAC;4BACtB,SAAS,CAAC,KAAK,CAAC,CAAC;wBACnB,CAAC;qBACF;oBACD,WAAW,EAAE;wBACX,IAAI,EAAE,SAAS;wBACf,QAAQ,EAAE,kBAAkB;qBAC7B;oBACD,eAAe,EAAE,CAAC,IAAI,EAAE,EAAE;wBACxB,IAAI,YAAY,EAAE,CAAC;4BACjB,YAAY,CAAC,IAAI,CAAC,CAAC;wBACrB,CAAC;oBACH,CAAC;oBACD,MAAM,EAAE,MAAM;iBACf,CAAC,EACF,EACF,QAAQ,CAAC,IAAI,CACd,CACL;IAAA,GAAG,CACJ,CAAC;AACJ,CAAC"}
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "@clicoh/orion-library",
3
- "version": "1.1.0",
3
+ "version": "1.2.0-beta.10",
4
4
  "main": "index.js",
5
5
  "dependencies": {
6
6
  "@floating-ui/react": "0.26.19",
7
7
  "clsx": "2.1.1",
8
+ "leaflet": "^1.9.4",
8
9
  "next": "16.2.6",
9
10
  "react": "19.2.6",
10
11
  "react-dom": "19.2.6",
@@ -22,6 +23,7 @@
22
23
  "@storybook/react": "10.4.0",
23
24
  "@tailwindcss/postcss": "4.1.18",
24
25
  "@types/copyfiles": "2",
26
+ "@types/leaflet": "^1.9.22",
25
27
  "@types/node": "20",
26
28
  "@types/react": "19.2.6",
27
29
  "@types/react-dom": "19.2.3",
@@ -60,7 +62,8 @@
60
62
  "author": "",
61
63
  "license": "ISC",
62
64
  "scripts": {
63
- "build": "tsc --project tsconfig.components.json",
65
+ "build": "node scripts/sync-rules.mjs --check && tsc --project tsconfig.components.json",
66
+ "rules:sync": "node scripts/sync-rules.mjs",
64
67
  "format": "prettier --write src",
65
68
  "storybook": "storybook dev -p 6006 --ci",
66
69
  "build-storybook": "storybook build",
@@ -116,6 +116,16 @@ const config: Config = {
116
116
  'brand-shipping': 'linear-gradient(135deg, #5683DD, #8EE3C6)',
117
117
  'brand-full': 'linear-gradient(135deg, #CFBDB2, #CF86F4)',
118
118
  },
119
+ keyframes: {
120
+ 'progress-indeterminate': {
121
+ from: { transform: 'translateX(-100%)' },
122
+ to: { transform: 'translateX(250%)' },
123
+ },
124
+ },
125
+ animation: {
126
+ 'progress-indeterminate':
127
+ 'progress-indeterminate 1.5s ease-in-out infinite',
128
+ },
119
129
  },
120
130
  },
121
131
  plugins: [],