@tmlmobilidade/ui 20250403.1846.33 → 20250403.2152.43

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
@@ -578,13 +578,38 @@ interface SidebarContextState {
578
578
  declare function useSidebarContext(): SidebarContextState;
579
579
  declare const SidebarContextProvider: ({ children }: PropsWithChildren) => react_jsx_runtime.JSX.Element;
580
580
 
581
- declare const AVAILABLE_THEMES: readonly ["ocean", "park", "path", "pool", "royal", "street"];
581
+ declare const AVAILABLE_THEMES: readonly [{
582
+ readonly _id: "ocean";
583
+ readonly name: "Ocean";
584
+ readonly primary_color: "var(--theme-ocean-color-primary)";
585
+ }, {
586
+ readonly _id: "park";
587
+ readonly name: "Park";
588
+ readonly primary_color: "var(--theme-park-color-primary)";
589
+ }, {
590
+ readonly _id: "path";
591
+ readonly name: "Path";
592
+ readonly primary_color: "var(--theme-path-color-primary)";
593
+ }, {
594
+ readonly _id: "pool";
595
+ readonly name: "Pool";
596
+ readonly primary_color: "var(--theme-pool-color-primary)";
597
+ }, {
598
+ readonly _id: "royal";
599
+ readonly name: "Royal";
600
+ readonly primary_color: "var(--theme-royal-color-primary)";
601
+ }, {
602
+ readonly _id: "street";
603
+ readonly name: "Street";
604
+ readonly primary_color: "var(--theme-street-color-primary)";
605
+ }];
606
+ type ThemeType = (typeof AVAILABLE_THEMES)[number]['_id'];
582
607
  interface ThemeContextState {
583
608
  actions: {
584
- activateTheme: (theme: typeof AVAILABLE_THEMES[number]) => void;
609
+ activateTheme: (theme: ThemeType) => void;
585
610
  };
586
611
  data: {
587
- active_theme: typeof AVAILABLE_THEMES[number];
612
+ active_theme: ThemeType;
588
613
  };
589
614
  }
590
615
  declare function useThemeContext(): ThemeContextState;
@@ -698,4 +723,4 @@ declare const getBaseGeoJsonFeatureLineString: () => GeoJSON.Feature<GeoJSON.Lin
698
723
  declare const getBaseGeoJsonFeatureCollection: () => GeoJSON.FeatureCollection<GeoJSON.LineString | GeoJSON.Point, GeoJSON.GeoJsonProperties>;
699
724
 
700
725
  export { AVAILABLE_THEMES, ActionIcon, AppProvider, AppWrapper, Badge, Button, CMIcon, CMLogo, Checkbox, Collapsible, ComboboxComponent as Combobox, ComponentWrapper, DataTable, DateTimePicker, DeleteActionIcon, Description, Divider, FileButton, Grid, Label, MapOptionsContextProvider, MapView, MapViewStyleActiveStops, MapViewStyleActiveStopsInteractiveLayerId, MapViewStyleActiveStopsPrimaryLayerId, MapViewStylePath, MapViewStylePathInteractiveLayerId, MapViewStylePathPrimaryLayerId, MapViewStyleStops, MapViewStyleStopsInteractiveLayerId, MapViewStyleStopsPrimaryLayerId, MapViewStyleVehicles, MapViewStyleVehiclesInteractiveLayerId, MapViewStyleVehiclesPrimaryLayerId, MeContextProvider, Menu, Pane, PanesManager, PasswordInput, Section, SegmentedControl, Sidebar, SidebarContextProvider, SidebarItem, 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 };
701
- export type { ButtonProps, DataItem, DataTableColumn, DataTableProps, DataTableSearchProps, LabelProps, MapStyle, SidebarItemProps, TagProps, TextProps, ToastPromiseParams, ToastProps };
726
+ export type { ButtonProps, DataItem, DataTableColumn, DataTableProps, DataTableSearchProps, LabelProps, MapStyle, SidebarItemProps, TagProps, TextProps, ThemeType, ToastPromiseParams, ToastProps };
@@ -3,7 +3,6 @@ import { j as jsxRuntimeExports } from '../../../../_virtual/jsx-runtime.js';
3
3
  import { Themer } from '../../theme/Themer/index.js';
4
4
  import '../../../contexts/Theme.context.js';
5
5
  import '@mantine/core';
6
- import 'react';
7
6
 
8
7
  // CM ICON
9
8
  function CMIcon() {