@stackcraftmx/calcita 0.25.0 → 0.26.0
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/README.md +16 -0
- package/dist/api/createApiClient.js +5 -0
- package/dist/api/createApiClient.js.map +1 -1
- package/dist/appShell/AccountMenu.js +15 -23
- package/dist/appShell/AccountMenu.js.map +1 -1
- package/dist/appShell/AppLayout.js +15 -8
- package/dist/appShell/AppLayout.js.map +1 -1
- package/dist/appShell/HeaderTools.js +4 -2
- package/dist/appShell/HeaderTools.js.map +1 -1
- package/dist/appShell/MenuLinks.js +36 -0
- package/dist/appShell/MenuLinks.js.map +1 -0
- package/dist/appShell/MobileTabBar.js +3 -3
- package/dist/appShell/MobileTabBar.js.map +1 -1
- package/dist/appShell/SettingsMenu.js +10 -5
- package/dist/appShell/SettingsMenu.js.map +1 -1
- package/dist/appShell/SideMenu.js +5 -3
- package/dist/appShell/SideMenu.js.map +1 -1
- package/dist/appShell/SideMenuEntry.js +3 -3
- package/dist/appShell/SideMenuEntry.js.map +1 -1
- package/dist/appShell/SubmenuActionsMenu.js +3 -4
- package/dist/appShell/SubmenuActionsMenu.js.map +1 -1
- package/dist/appShell/TopMenu.js +5 -6
- package/dist/appShell/TopMenu.js.map +1 -1
- package/dist/appShell/Wordmark.js +11 -0
- package/dist/appShell/Wordmark.js.map +1 -0
- package/dist/appShell/menuItemText.js +4 -0
- package/dist/appShell/menuItemText.js.map +1 -1
- package/dist/index.js +6 -3
- package/dist/navigation/appMenu.js +13 -1
- package/dist/navigation/appMenu.js.map +1 -1
- package/dist/observability/logger.js +18 -0
- package/dist/observability/logger.js.map +1 -1
- package/dist/theme/components/MuiAppBar.js +6 -5
- package/dist/theme/components/MuiAppBar.js.map +1 -1
- package/dist/theme/components/glassComponents.js +32 -31
- package/dist/theme/components/glassComponents.js.map +1 -1
- package/dist/theme/components/minimalComponents.js +8 -4
- package/dist/theme/components/minimalComponents.js.map +1 -1
- package/dist/theme/glassSurface.js +36 -38
- package/dist/theme/glassSurface.js.map +1 -1
- package/dist/theme/lightDarkStyles.js +48 -0
- package/dist/theme/lightDarkStyles.js.map +1 -0
- package/dist/types/api/createApiClient.d.ts +17 -0
- package/dist/types/appShell/AppLayout.d.ts +5 -1
- package/dist/types/appShell/MenuLinks.d.ts +17 -0
- package/dist/types/appShell/SettingsMenu.d.ts +3 -1
- package/dist/types/appShell/SideMenu.d.ts +3 -1
- package/dist/types/appShell/Wordmark.d.ts +6 -0
- package/dist/types/appShell/menuItemText.d.ts +16 -0
- package/dist/types/index.d.ts +3 -3
- package/dist/types/navigation/appMenu.d.ts +8 -0
- package/dist/types/observability/logger.d.ts +13 -0
- package/dist/types/theme/components/MuiAppBar.d.ts +3 -1
- package/dist/types/theme/components/glassComponents.d.ts +5 -0
- package/dist/types/theme/lightDarkStyles.d.ts +8 -0
- package/package.json +3 -2
|
@@ -17,10 +17,27 @@ function currentLevel() {
|
|
|
17
17
|
}
|
|
18
18
|
return defaultLevel;
|
|
19
19
|
}
|
|
20
|
+
const sinks = [];
|
|
21
|
+
function addLogSink(sink) {
|
|
22
|
+
sinks.push(sink);
|
|
23
|
+
return () => {
|
|
24
|
+
const position = sinks.indexOf(sink);
|
|
25
|
+
if (position !== -1) {
|
|
26
|
+
sinks.splice(position, 1);
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
}
|
|
20
30
|
function emit(level, namespace, message, context) {
|
|
21
31
|
if (LEVELS[level] > currentLevel()) {
|
|
22
32
|
return;
|
|
23
33
|
}
|
|
34
|
+
const entry = { level, namespace, message, ...context !== void 0 && { context }, timestamp: Date.now() };
|
|
35
|
+
for (const sink of sinks) {
|
|
36
|
+
try {
|
|
37
|
+
sink(entry);
|
|
38
|
+
} catch {
|
|
39
|
+
}
|
|
40
|
+
}
|
|
24
41
|
const write = level === "debug" ? console.log : console[level] ?? console.log;
|
|
25
42
|
if (context === void 0) {
|
|
26
43
|
write(`[${namespace}] ${message}`);
|
|
@@ -37,6 +54,7 @@ function createLogger(namespace) {
|
|
|
37
54
|
};
|
|
38
55
|
}
|
|
39
56
|
export {
|
|
57
|
+
addLogSink,
|
|
40
58
|
createLogger,
|
|
41
59
|
setLogLevel
|
|
42
60
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logger.js","sources":["../../src/observability/logger.js"],"sourcesContent":["// Logger con espacio de nombres sobre console.\n//\n// Por qué un envoltorio y no una librería: corre en el navegador, son pocas líneas legibles y
|
|
1
|
+
{"version":3,"file":"logger.js","sources":["../../src/observability/logger.js"],"sourcesContent":["// Logger con espacio de nombres sobre console.\n//\n// Por qué un envoltorio y no una librería: corre en el navegador, son pocas líneas legibles y un reporte externo (Sentry,\n// Datadog, un endpoint propio) se enchufa con addLogSink sin tocar cada llamada:\n// addLogSink((entry) => Sentry.logger[entry.level](`[${entry.namespace}] ${entry.message}`, entry.context));\n// Cada salida recibe lo mismo que sale en consola (respeta el nivel); una salida que truena no tumba la app.\n//\n// Reglas:\n// - datos estructurados: log.warn('mensaje', {status, requestId}); nunca concatenar cadenas.\n// - IMPORTANTE: sin datos personales. Nada de correos, nombres, contraseñas ni contenido de archivos: solo ids,\n// códigos, status y el request_id (misma regla que el backend: logs sin datos personales).\n// - por omisión solo salen error y warn. La aplicación pide todo en desarrollo con setLogLevel('debug') (el paquete no\n// sabe si la aplicación corre en desarrollo: import.meta.env es de quien construye). Para ver más en una instalación\n// ya desplegada:\n// localStorage.setItem('calcita:logLevel', 'debug')\n//\n// Funciones puras, no renderizan: function (regla de la casa).\n\nconst LEVELS = {error: 0, warn: 1, info: 2, debug: 3};\n\nconst LOG_LEVEL_STORAGE_KEY = 'calcita:logLevel';\n\n// el nivel cuando nadie lo pidió en localStorage; lo cambia la aplicación con setLogLevel\nlet defaultLevel = LEVELS.warn;\n\n/**\n * El nivel de lo que sale en consola: 'error', 'warn', 'info' o 'debug'. Lo llama la aplicación al arrancar, por ejemplo\n * setLogLevel(import.meta.env.DEV ? 'debug' : 'warn').\n *\n * @param {'error'|'warn'|'info'|'debug'} level\n * @returns {void}\n */\nexport function setLogLevel(level) {\n if (!(level in LEVELS)) {\n throw new Error(`setLogLevel espera error, warn, info o debug y recibió «${level}»`);\n }\n defaultLevel = LEVELS[level];\n}\n\nfunction currentLevel() {\n try {\n const override = window.localStorage?.getItem(LOG_LEVEL_STORAGE_KEY);\n if (override && override in LEVELS) {\n return LEVELS[override];\n }\n } catch {\n // ventana privada o almacenamiento bloqueado: usamos el nivel por defecto\n }\n return defaultLevel;\n}\n\n// las salidas propias del proyecto (addLogSink), además de la consola\nconst sinks = [];\n\n/**\n * Una salida propia para lo que se anota (un reporte externo): recibe cada anotación que sale en consola, con su nivel.\n *\n * @param {(entry: {level: 'error'|'warn'|'info'|'debug', namespace: string, message: string, context?: object, timestamp: number}) => void} sink\n * @returns {() => void} para quitarla\n */\nexport function addLogSink(sink) {\n sinks.push(sink);\n return () => {\n const position = sinks.indexOf(sink);\n if (position !== -1) {\n sinks.splice(position, 1);\n }\n };\n}\n\nfunction emit(level, namespace, message, context) {\n if (LEVELS[level] > currentLevel()) {\n return;\n }\n const entry = {level, namespace, message, ...(context !== undefined && {context}), timestamp: Date.now()};\n for (const sink of sinks) {\n try {\n sink(entry);\n } catch {\n // una salida con un error no debe tumbar la app ni la anotación en consola\n }\n }\n\n // OJO: debug sale por console.log a propósito; console.debug cae en \"Verbose\" y DevTools lo esconde\n const write = level === 'debug' ? console.log : (console[level] ?? console.log);\n if (context === undefined) {\n write(`[${namespace}] ${message}`);\n } else {\n write(`[${namespace}] ${message}`, context);\n }\n}\n\n/**\n * Logger que antepone [namespace] a cada mensaje.\n *\n * @param {string} namespace p. ej. 'api', 'session'\n */\nexport function createLogger(namespace) {\n return {\n error: (message, context) => emit('error', namespace, message, context),\n warn: (message, context) => emit('warn', namespace, message, context),\n info: (message, context) => emit('info', namespace, message, context),\n debug: (message, context) => emit('debug', namespace, message, context),\n };\n}\n"],"names":[],"mappings":"AAkBA,MAAM,SAAS,EAAC,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,EAAA;AAEnD,MAAM,wBAAwB;AAG9B,IAAI,eAAe,OAAO;AASnB,SAAS,YAAY,OAAO;AAC/B,MAAI,EAAE,SAAS,SAAS;AACpB,UAAM,IAAI,MAAM,2DAA2D,KAAK,GAAG;AAAA,EACvF;AACA,iBAAe,OAAO,KAAK;AAC/B;AAEA,SAAS,eAAe;AACpB,MAAI;AACA,UAAM,WAAW,OAAO,cAAc,QAAQ,qBAAqB;AACnE,QAAI,YAAY,YAAY,QAAQ;AAChC,aAAO,OAAO,QAAQ;AAAA,IAC1B;AAAA,EACJ,QAAQ;AAAA,EAER;AACA,SAAO;AACX;AAGA,MAAM,QAAQ,CAAA;AAQP,SAAS,WAAW,MAAM;AAC7B,QAAM,KAAK,IAAI;AACf,SAAO,MAAM;AACT,UAAM,WAAW,MAAM,QAAQ,IAAI;AACnC,QAAI,aAAa,IAAI;AACjB,YAAM,OAAO,UAAU,CAAC;AAAA,IAC5B;AAAA,EACJ;AACJ;AAEA,SAAS,KAAK,OAAO,WAAW,SAAS,SAAS;AAC9C,MAAI,OAAO,KAAK,IAAI,gBAAgB;AAChC;AAAA,EACJ;AACA,QAAM,QAAQ,EAAC,OAAO,WAAW,SAAS,GAAI,YAAY,UAAa,EAAC,QAAA,GAAW,WAAW,KAAK,MAAI;AACvG,aAAW,QAAQ,OAAO;AACtB,QAAI;AACA,WAAK,KAAK;AAAA,IACd,QAAQ;AAAA,IAER;AAAA,EACJ;AAGA,QAAM,QAAQ,UAAU,UAAU,QAAQ,MAAO,QAAQ,KAAK,KAAK,QAAQ;AAC3E,MAAI,YAAY,QAAW;AACvB,UAAM,IAAI,SAAS,KAAK,OAAO,EAAE;AAAA,EACrC,OAAO;AACH,UAAM,IAAI,SAAS,KAAK,OAAO,IAAI,OAAO;AAAA,EAC9C;AACJ;AAOO,SAAS,aAAa,WAAW;AACpC,SAAO;AAAA,IACH,OAAO,CAAC,SAAS,YAAY,KAAK,SAAS,WAAW,SAAS,OAAO;AAAA,IACtE,MAAM,CAAC,SAAS,YAAY,KAAK,QAAQ,WAAW,SAAS,OAAO;AAAA,IACpE,MAAM,CAAC,SAAS,YAAY,KAAK,QAAQ,WAAW,SAAS,OAAO;AAAA,IACpE,OAAO,CAAC,SAAS,YAAY,KAAK,SAAS,WAAW,SAAS,OAAO;AAAA,EAAA;AAE9E;"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { paletteOf } from "./paletteOf.js";
|
|
2
|
+
import { lightDarkStylesOf } from "../lightDarkStyles.js";
|
|
2
3
|
function MuiAppBar() {
|
|
3
4
|
return {
|
|
4
5
|
MuiAppBar: {
|
|
@@ -9,11 +10,11 @@ function MuiAppBar() {
|
|
|
9
10
|
const isPinned = ownerState.position === "sticky" || ownerState.position === "fixed";
|
|
10
11
|
const isPrimary = (ownerState.color ?? "primary") === "primary";
|
|
11
12
|
return {
|
|
12
|
-
...isPrimary &&
|
|
13
|
-
|
|
14
|
-
color: palette.primary.contrastText,
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
...isPrimary && lightDarkStylesOf(
|
|
14
|
+
theme,
|
|
15
|
+
{ backgroundColor: palette.primary.main, color: palette.primary.contrastText },
|
|
16
|
+
{ backgroundColor: palette.background.paper, color: palette.text.primary }
|
|
17
|
+
),
|
|
17
18
|
...isPinned && { borderBottom: `1px solid ${palette.divider}` }
|
|
18
19
|
};
|
|
19
20
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MuiAppBar.js","sources":["../../../src/theme/components/MuiAppBar.js"],"sourcesContent":["// La barra de arriba: plana (sin sombra), naranja en claro y del color de las tarjetas en oscuro, con una línea abajo\n// cuando se queda fija al deslizar.\n//\n// Por qué
|
|
1
|
+
{"version":3,"file":"MuiAppBar.js","sources":["../../../src/theme/components/MuiAppBar.js"],"sourcesContent":["// La barra de arriba: plana (sin sombra), naranja en claro y del color de las tarjetas en oscuro, con una línea abajo\n// cuando se queda fija al deslizar.\n//\n// Por qué el modo va en CSS (lightDarkStylesOf) y no en theme.palette.mode: el servidor no sabe qué modo eligió la persona;\n// con mode, la barra se pintaba naranja un instante en oscuro. En CSS el navegador elige antes de pintar.\n// Solo cambia la barra de color principal (el de omisión): una barra con color=\"inherit\" o \"transparent\" se respeta.\n//\n// Funciones puras, sin React: function (regla de la casa).\nimport {paletteOf} from '@/theme/components/paletteOf.js';\nimport {lightDarkStylesOf} from '@/theme/lightDarkStyles.js';\n\nexport function MuiAppBar() {\n return {\n MuiAppBar: {\n defaultProps: {elevation: 0},\n styleOverrides: {\n root: ({ownerState, theme}) => {\n const palette = paletteOf(theme);\n const isPinned = ownerState.position === 'sticky' || ownerState.position === 'fixed';\n const isPrimary = (ownerState.color ?? 'primary') === 'primary';\n return {\n ...(isPrimary && lightDarkStylesOf(theme,\n {backgroundColor: palette.primary.main, color: palette.primary.contrastText},\n {backgroundColor: palette.background.paper, color: palette.text.primary})),\n ...(isPinned && {borderBottom: `1px solid ${palette.divider}`}),\n };\n },\n },\n },\n };\n}\n"],"names":[],"mappings":";;AAWO,SAAS,YAAY;AACxB,SAAO;AAAA,IACH,WAAW;AAAA,MACP,cAAc,EAAC,WAAW,EAAC;AAAA,MAC3B,gBAAgB;AAAA,QACZ,MAAM,CAAC,EAAC,YAAY,MAAK,MAAM;AAC3B,gBAAM,UAAU,UAAU,KAAK;AAC/B,gBAAM,WAAW,WAAW,aAAa,YAAY,WAAW,aAAa;AAC7E,gBAAM,aAAa,WAAW,SAAS,eAAe;AACtD,iBAAO;AAAA,YACH,GAAI,aAAa;AAAA,cAAkB;AAAA,cAC/B,EAAC,iBAAiB,QAAQ,QAAQ,MAAM,OAAO,QAAQ,QAAQ,aAAY;AAAA,cAC3E,EAAC,iBAAiB,QAAQ,WAAW,OAAO,OAAO,QAAQ,KAAK,QAAO;AAAA,YAAC;AAAA,YAC5E,GAAI,YAAY,EAAC,cAAc,aAAa,QAAQ,OAAO,GAAE;AAAA,UACrF;AAAA,QACgB;AAAA,MAChB;AAAA,IACA;AAAA,EACA;AACA;"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { GLASS_MENU_RADIUS_PIXELS, GLASS_PANEL_RADIUS_PIXELS, GLASS_INSET_PIXELS, solidFallbackOf, glassDropOf, accentTextStylesOf, glassStylesOf, insideContentSelectorOf, canvasFieldStylesOf, GLASS_LENS_FLAG_SELECTOR, glassSurfaceOf, materialStylesOf, whiteLabelFillOf, fieldWellStylesOf, glassOpacityOf } from "../glassSurface.js";
|
|
2
2
|
import { mergeStyles } from "../mergeComponents.js";
|
|
3
|
+
import { lightDarkStylesOf } from "../lightDarkStyles.js";
|
|
3
4
|
import { textSizeOf } from "../appleTracking.js";
|
|
4
5
|
import { paletteOf } from "./paletteOf.js";
|
|
5
6
|
const MENU_ROW_INSET_PIXELS = 4;
|
|
@@ -100,14 +101,10 @@ function whiteLabelOf(theme, colorName) {
|
|
|
100
101
|
"&:hover": { backgroundColor: `color-mix(in srgb, ${fill} ${100 - PROMINENT_HOVER_SHADE_PERCENT}%, black)` }
|
|
101
102
|
};
|
|
102
103
|
};
|
|
103
|
-
return
|
|
104
|
+
return lightDarkStylesOf(theme, schemeStylesOf("light"), schemeStylesOf("dark"));
|
|
104
105
|
}
|
|
105
106
|
function monogramOf(theme) {
|
|
106
|
-
return {
|
|
107
|
-
color: WHITE_LABEL,
|
|
108
|
-
backgroundColor: MONOGRAM_GRAY.light,
|
|
109
|
-
...theme.applyStyles("dark", { color: WHITE_LABEL, backgroundColor: MONOGRAM_GRAY.dark })
|
|
110
|
-
};
|
|
107
|
+
return lightDarkStylesOf(theme, { color: WHITE_LABEL, backgroundColor: MONOGRAM_GRAY.light }, { color: WHITE_LABEL, backgroundColor: MONOGRAM_GRAY.dark });
|
|
111
108
|
}
|
|
112
109
|
function tintedControlOf(theme, toneColor) {
|
|
113
110
|
const fillOf = (percent) => `color-mix(in srgb, ${toneColor} ${percent}%, transparent)`;
|
|
@@ -115,12 +112,11 @@ function tintedControlOf(theme, toneColor) {
|
|
|
115
112
|
return {
|
|
116
113
|
...plain,
|
|
117
114
|
color: paletteOf(theme).text.primary,
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
backgroundColor: fillOf(TINTED_FILL_PERCENT.dark.rest),
|
|
122
|
-
|
|
123
|
-
})
|
|
115
|
+
...lightDarkStylesOf(
|
|
116
|
+
theme,
|
|
117
|
+
{ backgroundColor: fillOf(TINTED_FILL_PERCENT.light.rest), "&:hover": { ...plain, backgroundColor: fillOf(TINTED_FILL_PERCENT.light.hover) } },
|
|
118
|
+
{ backgroundColor: fillOf(TINTED_FILL_PERCENT.dark.rest), "&:hover": { backgroundColor: fillOf(TINTED_FILL_PERCENT.dark.hover) } }
|
|
119
|
+
)
|
|
124
120
|
};
|
|
125
121
|
}
|
|
126
122
|
function fieldFillOf(theme) {
|
|
@@ -359,11 +355,11 @@ function glassComponents({ surfaces = false } = {}) {
|
|
|
359
355
|
return {
|
|
360
356
|
...surface,
|
|
361
357
|
// de color: su vidrio lleva el color oscurecido lo justo para la letra blanca (whiteLabelFillOf)
|
|
362
|
-
...
|
|
363
|
-
|
|
364
|
-
...glassSurfaceOf(
|
|
365
|
-
color: WHITE_LABEL
|
|
366
|
-
|
|
358
|
+
...lightDarkStylesOf(
|
|
359
|
+
theme,
|
|
360
|
+
lightFill ? { ...glassSurfaceOf(lightFill, { opacity: PROMINENT_GLASS_OPACITY }), color: WHITE_LABEL } : {},
|
|
361
|
+
darkFill ? { ...glassSurfaceOf(darkFill, { opacity: PROMINENT_GLASS_OPACITY, isDark: true }), color: WHITE_LABEL } : {}
|
|
362
|
+
),
|
|
367
363
|
transition: theme.transitions.create(["background-color", "box-shadow", "transform"], { duration: theme.transitions.duration.short }),
|
|
368
364
|
// MUI cambia el fondo y la sombra al pasar y al apretar: el vidrio se queda, y al apretar se hunde
|
|
369
365
|
"&:hover": { backgroundColor: surface.backgroundColor },
|
|
@@ -463,8 +459,11 @@ function glassComponents({ surfaces = false } = {}) {
|
|
|
463
459
|
overflow: "hidden",
|
|
464
460
|
[insideContentSelectorOf()]: {
|
|
465
461
|
...plain,
|
|
466
|
-
|
|
467
|
-
|
|
462
|
+
...lightDarkStylesOf(
|
|
463
|
+
theme,
|
|
464
|
+
{ backgroundColor: groupFillOf(TINTED_FILL_PERCENT.light.rest) },
|
|
465
|
+
{ backgroundColor: groupFillOf(TINTED_FILL_PERCENT.dark.rest) }
|
|
466
|
+
)
|
|
468
467
|
}
|
|
469
468
|
};
|
|
470
469
|
},
|
|
@@ -644,8 +643,11 @@ function glassComponents({ surfaces = false } = {}) {
|
|
|
644
643
|
const whiteMark = { background: "linear-gradient(#fff, #fff) center / 58% 58% no-repeat", borderRadius: 4 };
|
|
645
644
|
return {
|
|
646
645
|
"&.Mui-checked .MuiSvgIcon-root, &.MuiCheckbox-indeterminate .MuiSvgIcon-root": whiteMark,
|
|
647
|
-
...
|
|
648
|
-
|
|
646
|
+
...lightDarkStylesOf(
|
|
647
|
+
theme,
|
|
648
|
+
lightFill ? { "&.Mui-checked, &.MuiCheckbox-indeterminate": { color: lightFill } } : {},
|
|
649
|
+
darkFill ? { "&.Mui-checked, &.MuiCheckbox-indeterminate": { color: darkFill } } : {}
|
|
650
|
+
)
|
|
649
651
|
};
|
|
650
652
|
}
|
|
651
653
|
}
|
|
@@ -671,13 +673,12 @@ function glassComponents({ surfaces = false } = {}) {
|
|
|
671
673
|
const lightFill = fillOf("light");
|
|
672
674
|
const darkFill = fillOf("dark");
|
|
673
675
|
return {
|
|
674
|
-
color: STEP_PENDING_GRAY.light,
|
|
675
676
|
"& .MuiStepIcon-text": { fill: WHITE_LABEL },
|
|
676
|
-
...
|
|
677
|
-
|
|
678
|
-
color: STEP_PENDING_GRAY.
|
|
679
|
-
...darkFill && { "&.Mui-active, &.Mui-completed": { color: darkFill } }
|
|
680
|
-
|
|
677
|
+
...lightDarkStylesOf(
|
|
678
|
+
theme,
|
|
679
|
+
{ color: STEP_PENDING_GRAY.light, ...lightFill && { "&.Mui-active, &.Mui-completed": { color: lightFill } } },
|
|
680
|
+
{ color: STEP_PENDING_GRAY.dark, ...darkFill && { "&.Mui-active, &.Mui-completed": { color: darkFill } } }
|
|
681
|
+
)
|
|
681
682
|
};
|
|
682
683
|
}
|
|
683
684
|
}
|
|
@@ -803,9 +804,8 @@ function glassComponents({ surfaces = false } = {}) {
|
|
|
803
804
|
}),
|
|
804
805
|
track: ({ theme }) => ({
|
|
805
806
|
opacity: 1,
|
|
806
|
-
backgroundColor: SWITCH_OFF_TRACK.light,
|
|
807
807
|
transition: theme.transitions.create(["background-color"], { duration: theme.transitions.duration.short }),
|
|
808
|
-
...theme.
|
|
808
|
+
...lightDarkStylesOf(theme, { backgroundColor: SWITCH_OFF_TRACK.light }, { backgroundColor: SWITCH_OFF_TRACK.dark })
|
|
809
809
|
})
|
|
810
810
|
}
|
|
811
811
|
},
|
|
@@ -841,8 +841,7 @@ function glassComponents({ surfaces = false } = {}) {
|
|
|
841
841
|
},
|
|
842
842
|
rail: ({ theme }) => ({
|
|
843
843
|
opacity: 1,
|
|
844
|
-
backgroundColor: SLIDER_RAIL.light,
|
|
845
|
-
...theme.applyStyles("dark", { backgroundColor: SLIDER_RAIL.dark })
|
|
844
|
+
...lightDarkStylesOf(theme, { backgroundColor: SLIDER_RAIL.light }, { backgroundColor: SLIDER_RAIL.dark })
|
|
846
845
|
}),
|
|
847
846
|
root: ({ ownerState }) => ownerState.orientation === "vertical" ? { width: SLIDER_TRACK_PIXELS } : { height: SLIDER_TRACK_PIXELS }
|
|
848
847
|
}
|
|
@@ -880,6 +879,8 @@ function glassComponents({ surfaces = false } = {}) {
|
|
|
880
879
|
};
|
|
881
880
|
}
|
|
882
881
|
export {
|
|
882
|
+
MONOGRAM_GRAY,
|
|
883
|
+
WHITE_LABEL,
|
|
883
884
|
glassComponents
|
|
884
885
|
};
|
|
885
886
|
//# sourceMappingURL=glassComponents.js.map
|