@tmlmobilidade/ui 20250326.1725.21 → 20250326.1839.17

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/dist/index.d.ts CHANGED
@@ -11,34 +11,6 @@ export * from '@mantine/form';
11
11
  export * from '@mantine/hooks';
12
12
  export * from '@mantine/modals';
13
13
 
14
- interface CenterMapOptions {
15
- padding: number;
16
- }
17
- /**
18
- *
19
- * @param mapObject The map that should be manipulated
20
- * @param features The features to center the map on
21
- * @param options Optional settings to customize the centering
22
- */
23
- declare const centerMap: (mapObject: any, features: GeoJSON.Feature<GeoJSON.Geometry, GeoJSON.GeoJsonProperties>[], options?: CenterMapOptions) => void;
24
- /**
25
- *
26
- * @param mapObject THe map that should be manipulated
27
- * @param coordinates The destination coordinates to move the map to
28
- * @param options Optional settings to customize the movement
29
- */
30
- declare const moveMap: (mapObject: any, coordinates: GeoJSON.Position) => void;
31
- /**
32
- * Return a base GeoJSON Feature for LineString object
33
- * @returns A GeoJSON Feature for LineString object with an empty features array
34
- */
35
- declare const getBaseGeoJsonFeatureLineString: () => GeoJSON.Feature<GeoJSON.LineString>;
36
- /**
37
- * Return a base GeoJSON FeatureCollection object
38
- * @returns A GeoJSON FeatureCollection object with an empty features array
39
- */
40
- declare const getBaseGeoJsonFeatureCollection: () => GeoJSON.FeatureCollection<GeoJSON.LineString | GeoJSON.Point, GeoJSON.GeoJsonProperties>;
41
-
42
14
  declare function AppProvider({ children }: PropsWithChildren): react_jsx_runtime.JSX.Element;
43
15
 
44
16
  interface ActionIconProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
@@ -723,5 +695,33 @@ declare function useSearchQuery<T>(data: T[], { accessors, customSearch, debounc
723
695
  setSearchQuery: React$1.Dispatch<React$1.SetStateAction<string | undefined>>;
724
696
  };
725
697
 
698
+ interface CenterMapOptions {
699
+ padding: number;
700
+ }
701
+ /**
702
+ *
703
+ * @param mapObject The map that should be manipulated
704
+ * @param features The features to center the map on
705
+ * @param options Optional settings to customize the centering
706
+ */
707
+ declare const centerMap: (mapObject: any, features: GeoJSON.Feature<GeoJSON.Geometry, GeoJSON.GeoJsonProperties>[], options?: CenterMapOptions) => void;
708
+ /**
709
+ *
710
+ * @param mapObject THe map that should be manipulated
711
+ * @param coordinates The destination coordinates to move the map to
712
+ * @param options Optional settings to customize the movement
713
+ */
714
+ declare const moveMap: (mapObject: any, coordinates: GeoJSON.Position) => void;
715
+ /**
716
+ * Return a base GeoJSON Feature for LineString object
717
+ * @returns A GeoJSON Feature for LineString object with an empty features array
718
+ */
719
+ declare const getBaseGeoJsonFeatureLineString: () => GeoJSON.Feature<GeoJSON.LineString>;
720
+ /**
721
+ * Return a base GeoJSON FeatureCollection object
722
+ * @returns A GeoJSON FeatureCollection object with an empty features array
723
+ */
724
+ declare const getBaseGeoJsonFeatureCollection: () => GeoJSON.FeatureCollection<GeoJSON.LineString | GeoJSON.Point, GeoJSON.GeoJsonProperties>;
725
+
726
726
  export { AVAILABLE_THEMES, ActionIcon, AppProvider, AppWrapper, Badge, Button, CMIcon, CMLogo, Checkbox, ComboboxComponent as Combobox, ComponentWrapper, DataTable, DateTimePicker, DeleteActionIcon, Description, FileButton, Grid, Label, MapOptionsContextProvider, MapView, MapViewStyleActiveStops, MapViewStyleActiveStopsInteractiveLayerId, MapViewStyleActiveStopsPrimaryLayerId, MapViewStylePath, MapViewStylePathInteractiveLayerId, MapViewStylePathPrimaryLayerId, MapViewStyleStops, MapViewStyleStopsInteractiveLayerId, MapViewStyleStopsPrimaryLayerId, MapViewStyleVehicles, MapViewStyleVehiclesInteractiveLayerId, MapViewStyleVehiclesPrimaryLayerId, MeContextProvider, Menu, PasswordInput, Section, SegmentedControl, Sidebar, SidebarContextProvider, SimpleSurface, Slider, Spacer, Surface, Switch, TMLogo, TMLogoDark, TMLogoLight, Tag, Text, Component$1 as TextArea, Component as TextInput, ThemeContextProvider, ThemeDark, ThemeLight, ThemeSwitcher, Themer, Tooltip, centerMap, getBaseGeoJsonFeatureCollection, getBaseGeoJsonFeatureLineString, moveMap, useIsActiveDomain, useIsActivePage, useMapOptionsContext, useMeContext, useScreenSize, useSearchQuery, useSidebarContext, useThemeContext, useToast };
727
727
  export type { DataItem, DataTableColumn, DataTableColumnProps, DataTableHeaderProps, DataTableProps, DataTableRowProps, DataTableSearchProps, DataTableTitleProps, MapStyle, SidebarItemProps, ToastPromiseParams, ToastProps };
@@ -1,8 +1,8 @@
1
1
  import '@/styles/index.css';
2
- export * from './lib/map.utils';
3
- export * from '@/components';
4
- export * from '@/contexts';
5
- export * from '@/hooks';
2
+ export * from '@/components/index';
3
+ export * from '@/contexts/index';
4
+ export * from '@/hooks/index';
5
+ export * from '@/lib/map.utils';
6
6
  export * from '@mantine/form';
7
7
  export * from '@mantine/hooks';
8
8
  export * from '@mantine/modals';
package/dist/src/index.js CHANGED
@@ -1,4 +1,3 @@
1
- export { centerMap, getBaseGeoJsonFeatureCollection, getBaseGeoJsonFeatureLineString, moveMap } from './lib/map.utils.js';
2
1
  export { AppProvider } from './components/AppProvider/index.js';
3
2
  export { default as ActionIcon } from './components/common/ActionIcon/index.js';
4
3
  export { CMIcon, CMLogo, TMLogo, TMLogoDark, TMLogoLight } from './components/common/AppLogos/index.js';
@@ -47,6 +46,7 @@ export { useIsActiveDomain } from './hooks/use-is-active-domain.js';
47
46
  export { useIsActivePage } from './hooks/use-is-active-page.js';
48
47
  export { useScreenSize } from './hooks/use-screen-size.js';
49
48
  export { useSearchQuery } from './hooks/use-search-query.js';
49
+ export { centerMap, getBaseGeoJsonFeatureCollection, getBaseGeoJsonFeatureLineString, moveMap } from './lib/map.utils.js';
50
50
  export * from '@mantine/form';
51
51
  export * from '@mantine/hooks';
52
52
  export * from '@mantine/modals';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tmlmobilidade/ui",
3
- "version": "20250326.1725.21",
3
+ "version": "20250326.1839.17",
4
4
  "author": "",
5
5
  "license": "ISC",
6
6
  "publishConfig": {