@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.css.map +1 -1
- package/dist/index.d.ts +29 -4
- package/dist/src/components/common/AppLogos/index.js +0 -1
- package/dist/src/components/common/AppLogos/index.js.map +1 -1
- package/dist/src/components/theme/ThemeSwitcher/index.js +3 -20
- package/dist/src/components/theme/ThemeSwitcher/index.js.map +1 -1
- package/dist/src/contexts/Theme.context.js +9 -2
- package/dist/src/contexts/Theme.context.js.map +1 -1
- package/dist/src/styles/theme.js.map +1 -1
- package/dist/styles-no-reset.css +245 -191
- package/dist/styles.css +244 -197
- package/package.json +1 -1
- package/dist/src/components/theme/ThemeSwitcher/styles.module.css.js +0 -4
- package/dist/src/components/theme/ThemeSwitcher/styles.module.css.js.map +0 -1
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 [
|
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:
|
609
|
+
activateTheme: (theme: ThemeType) => void;
|
585
610
|
};
|
586
611
|
data: {
|
587
|
-
active_theme:
|
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 };
|