@tmlmobilidade/ui 20250705.103.29 → 20250706.1908.31
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
|
@@ -624,25 +624,25 @@ declare function MapViewStyleVehicles({ presentBeforeId, vehiclesData }: Props):
|
|
|
624
624
|
|
|
625
625
|
/**
|
|
626
626
|
* Use to show children only when light theme is active. Hidden otherwise.
|
|
627
|
-
* @param
|
|
628
|
-
* @returns
|
|
627
|
+
* @param children The content to display in light theme.
|
|
628
|
+
* @returns The rendered ThemeLight component.
|
|
629
629
|
*/
|
|
630
630
|
declare function ThemeLight({ children }: {
|
|
631
631
|
children: React.ReactNode;
|
|
632
632
|
}): React.ReactElement;
|
|
633
633
|
/**
|
|
634
634
|
* Use to show children only when dark theme is active. Hidden otherwise.
|
|
635
|
-
* @param
|
|
636
|
-
* @returns
|
|
635
|
+
* @param children The content to display in dark theme.
|
|
636
|
+
* @returns The rendered ThemeDark component.
|
|
637
637
|
*/
|
|
638
638
|
declare function ThemeDark({ children }: {
|
|
639
639
|
children: React.ReactNode;
|
|
640
640
|
}): React.ReactElement;
|
|
641
641
|
/**
|
|
642
642
|
* ThemeSwitch component to automatically toggle children components between dark and light themes.
|
|
643
|
-
* @param
|
|
644
|
-
* @param
|
|
645
|
-
* @returns
|
|
643
|
+
* @param dark The content to display in dark theme.
|
|
644
|
+
* @param light The content to display in light theme.
|
|
645
|
+
* @returns The rendered ThemeSwitch component.
|
|
646
646
|
*/
|
|
647
647
|
declare function Themer({ dark, light }: {
|
|
648
648
|
dark: React.ReactNode;
|
|
@@ -3,25 +3,25 @@ import { j as jsxRuntimeExports } from '../../../../_virtual/jsx-runtime.js';
|
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Use to show children only when light theme is active. Hidden otherwise.
|
|
6
|
-
* @param
|
|
7
|
-
* @returns
|
|
6
|
+
* @param children The content to display in light theme.
|
|
7
|
+
* @returns The rendered ThemeLight component.
|
|
8
8
|
*/
|
|
9
9
|
function ThemeLight({ children }) {
|
|
10
10
|
return (jsxRuntimeExports.jsx("div", { className: "theme-light", children: children }));
|
|
11
11
|
}
|
|
12
12
|
/**
|
|
13
13
|
* Use to show children only when dark theme is active. Hidden otherwise.
|
|
14
|
-
* @param
|
|
15
|
-
* @returns
|
|
14
|
+
* @param children The content to display in dark theme.
|
|
15
|
+
* @returns The rendered ThemeDark component.
|
|
16
16
|
*/
|
|
17
17
|
function ThemeDark({ children }) {
|
|
18
18
|
return (jsxRuntimeExports.jsx("div", { className: "theme-dark", children: children }));
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
21
|
* ThemeSwitch component to automatically toggle children components between dark and light themes.
|
|
22
|
-
* @param
|
|
23
|
-
* @param
|
|
24
|
-
* @returns
|
|
22
|
+
* @param dark The content to display in dark theme.
|
|
23
|
+
* @param light The content to display in light theme.
|
|
24
|
+
* @returns The rendered ThemeSwitch component.
|
|
25
25
|
*/
|
|
26
26
|
function Themer({ dark, light }) {
|
|
27
27
|
return (jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsx(ThemeDark, { children: dark }), jsxRuntimeExports.jsx(ThemeLight, { children: light })] }));
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tmlmobilidade/ui",
|
|
3
3
|
"description": "UI components for Transportes Metropolitanos de Lisboa (TML) web applications.",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "20250706.1908.31",
|
|
5
5
|
"author": "João de Vasconcelos & Jusi Monteiro",
|
|
6
6
|
"license": "AGPL-3.0-or-later",
|
|
7
7
|
"publishConfig": {
|