@aglyn/shared-ui-theme 1.0.0-beta.217 → 1.0.0-beta.219

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aglyn/shared-ui-theme",
3
- "version": "1.0.0-beta.217",
3
+ "version": "1.0.0-beta.219",
4
4
  "license": "Apache-2.0",
5
5
  "homepage": "https://aglyn.com",
6
6
  "repository": {
@@ -25,9 +25,9 @@
25
25
  "./package.json": "./package.json"
26
26
  },
27
27
  "dependencies": {
28
- "@aglyn/shared-data-types": "1.0.0-beta.217",
29
- "@aglyn/shared-util-tools": "1.0.0-beta.217",
30
- "@aglyn/shared-util-vendor": "1.0.0-beta.217",
28
+ "@aglyn/shared-data-types": "1.0.0-beta.219",
29
+ "@aglyn/shared-util-tools": "1.0.0-beta.219",
30
+ "@aglyn/shared-util-vendor": "1.0.0-beta.219",
31
31
  "@emotion/cache": "^11.14.0",
32
32
  "@emotion/react": "11.14.0",
33
33
  "@swc/helpers": "0.5.23",
@@ -411,6 +411,24 @@ const baseOptions = {
411
411
  }
412
412
  }
413
413
  },
414
+ // The tertiary indicator (AGL-3411). MUI styles Tabs' indicator for
415
+ // `primary` and `secondary` only, so `indicatorColor="tertiary"` — which
416
+ // the palette and the Tabs element's picker both offer — drew MUI's
417
+ // primary. Resolved per render so it follows the scheme.
418
+ MuiTabs: {
419
+ variants: [
420
+ {
421
+ props: {
422
+ indicatorColor: 'tertiary'
423
+ },
424
+ style: ({ theme })=>({
425
+ '& .MuiTabs-indicator': {
426
+ backgroundColor: (theme.vars || theme).palette.tertiary.main
427
+ }
428
+ })
429
+ }
430
+ ]
431
+ },
414
432
  MuiTooltip: {
415
433
  defaultProps: {
416
434
  arrow: true
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../../../libs/shared/ui/theme/src/lib/console.theme.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2023 Aglyn LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { lightBlue } from '@mui/material/colors'\nimport type { PaletteOptions, Theme, ThemeOptions } from '../vendor/mui'\nimport { buildFontFamilyList } from './constants'\nimport { accentTextColor } from './util/accent-text'\nimport createResponsiveTheme, {\n createResponsiveCssVarTheme,\n} from './util/create-responsive-theme'\n\nexport type ColorVariant = 'light' | 'dark'\nexport type BackgroundRecord = PaletteOptions['background']\nexport type OrdinalIdentifier<K extends string = ''> =\n 'primary' | 'secondary' | 'tertiary'\nexport type OrdinalRecord<T extends OrdinalIdentifier = OrdinalIdentifier> =\n Pick<PaletteOptions, T>\nexport type PrimaryRecord = OrdinalRecord<'primary'>['primary']\nexport type SecondaryRecord = OrdinalRecord<'secondary'>['secondary']\nexport type TertiaryRecord = OrdinalRecord<'tertiary'>['tertiary']\nexport type ActionIdentifier = 'svgBackground' | 'svgFilled' | 'svgStroke'\nexport type ActionRecord = Pick<PaletteOptions, ActionIdentifier>\n\nconst colorScheme = {\n light: {\n // Palette rotated 2026-08-03 (AGL-1186): the blue accent that every\n // component was already opting into is now `primary`, so nothing has to\n // opt out of a primary that was really a surface tone. Whole colour\n // objects moved, so each keeps the contrastText it shipped with.\n primary: {\n main: '#00b0ff',\n // The accent rendered AS TEXT — `ACCENT_TEXT_SHADE` in\n // `util/accent-text.ts`. Links and the labels of text and outlined\n // buttons read this slot; `main` keeps painting fills, borders and\n // indicators, which owe 3:1 rather than 4.5:1. The brand blue is\n // 2.43:1 on white, so as normal-size text it needs the deeper shade:\n // this one measures 4.95:1 on paper and 4.54:1 on the page.\n dark: '#0077ad',\n contrastText: '#FFFFFF',\n },\n secondary: {\n main: '#e040fb',\n // Same slot, same role. Authored rather than left to derivation so the\n // value every link resolves to is readable in this file: 6.11:1 on\n // paper, 5.61:1 on the page.\n dark: '#9d2db0',\n contrastText: '#FFFFFF',\n },\n tertiary: {\n main: '#404C5C',\n contrastText: '#FFFFFF',\n },\n surface: {\n main: `#F8F9FA`,\n contrastText: '#000000',\n },\n // Pale accent washes used as tile/panel FILLS (AGL-1244). Each member is\n // named after the accent whose icon sits on it — the mega-menu's blue\n // tiles pair `tint.primary` with a `primary.dark` glyph — so the pairing\n // is legible from the token names alone. These were the last raw hexes on\n // the marketing nav; they are not `primary.light` (`#33BFFF`) and never\n // were, which is why the slot had to be named rather than borrowed.\n tint: {\n primary: '#E6F5FF',\n secondary: '#FBE6FE',\n tertiary: '#EEF0F2',\n },\n // MUI's own outlined-input border weight, promoted to a token so a field\n // drawn outside MUI can match one drawn by it (see `PaletteOptions`).\n inputOutline: 'rgba(0, 0, 0, 0.23)',\n background: {\n default: '#F5F5F5',\n paper: '#FFFFFF',\n },\n info: {\n // The deepest blue of this hue that still carries a WHITE label at the\n // 4.5:1 AA text bar (4.56:1). A lighter info takes every filled\n // variant sub-AA, and flipping its ink to dark makes an informational\n // surface read as a warning.\n main: '#1878cd',\n contrastText: '#FFFFFF',\n },\n error: {\n // The deepest red of this hue that keeps a white label at AA (4.51:1).\n // An error surface is a destructive-action affordance, so the fill\n // carries the contrast and the ink stays white.\n main: '#e32c27',\n contrastText: '#FFFFFF',\n },\n success: {\n main: '#4CAF50',\n contrastText: '#000000DE',\n },\n warning: {\n main: '#FFAB40',\n contrastText: '#000000DE',\n },\n grey: {\n 50: '#FAFAFA',\n 100: '#F5F5F5',\n 200: '#EEEEEE',\n 300: '#E0E0E0',\n 400: '#BDBDBD',\n 500: '#9E9E9E',\n 600: '#757575',\n 700: '#616161',\n 800: '#424242',\n 900: '#212121',\n A100: '#D5D5D5',\n A200: '#AAAAAA',\n A400: '#303030',\n A700: '#616161',\n },\n svgBackground: {\n main: '#FAFAFA',\n hover: '#FAFAFA',\n active: '#FAFAFA',\n focus: '#FAFAFA',\n },\n svgFilled: {\n main: '#9E9E9E',\n hover: lightBlue['400'],\n active: lightBlue['400'],\n focus: lightBlue['400'],\n },\n svgStroke: {\n main: '#FFFFFF',\n hover: '#FFFFFF',\n active: '#FFFFFF',\n focus: '#FFFFFF',\n },\n },\n dark: {\n primary: {\n main: '#00b0ff',\n // The accent-as-text slot, LIGHTER than `main` here and deliberately\n // so. MUI derives `dark` as `darken(main, 0.3)` in both schemes — it\n // cannot see that the ground flipped — which lands `#007bb2` at 3.67:1\n // on this page. Every `dark` shade in this scheme is therefore\n // authored, and each is the value `ensureAccessibleShades` computes by\n // walking the accent LIGHTER until it clears 4.5:1 against both\n // `background.default` and `background.paper`. 9.02:1 / 6.62:1.\n dark: '#4dc8ff',\n contrastText: '#FFFFFF',\n },\n secondary: {\n main: '#e040fb',\n // 7.04:1 on the page, 5.17:1 on a raised panel. The brand magenta\n // itself is 3.78:1 on paper, so it cannot be the text shade here.\n dark: '#e979fc',\n contrastText: '#FFFFFF',\n },\n // Dark takes a LIFTED slate, not the brand `#404C5C`: that scores 1.38\n // against this scheme's page and would just move the old invisibility\n // bug from primary to tertiary. `#7C8CA3` measures 5.02 vs page and\n // 3.63 vs a raised panel, and needs dark ink rather than white (6.14\n // against black, 3.42 against white).\n tertiary: {\n main: '#7C8CA3',\n // 7.73:1 / 5.68:1 — `main` itself is 2.78:1 on the page.\n dark: '#a3afbf',\n contrastText: '#000000DE',\n },\n surface: {\n // Held at 1.17:1 from the page even though that is flat for an\n // elevation step. This token is also the panel the besigner draws its\n // hierarchy depth cues on, and lifting it toward the page pushes the\n // active guide — `secondary.main` on this fill — from 4.41:1 down to\n // 3.89:1. Trading a legible cue for a slightly clearer edge is the\n // wrong way round; the depth cues are what someone actually reads.\n main: `#202934`,\n contrastText: '#FFFFFF',\n },\n // The hand-curated dark counterparts the 15 tinted tiles carried in their\n // `@scheme dark` slices before the token existed (AGL-1244). Carrying the\n // exact values here is what lets those slices be DELETED without dark mode\n // shifting: a literal needs a slice, a token flips on its own.\n tint: {\n // Tile FILLS, so the bar is separation from the page rather than a\n // WCAG text ratio: below ~1.5:1 a tinted tile has no visible edge. The\n // originals sat at 1.13–1.25:1 and disappeared. White ink clears 11:1\n // on all three.\n primary: '#193d55',\n // Magenta cannot reach 1.5:1 without turning purple-grey, so this one\n // stops at 1.44:1 and the tile carries an `inputOutline` border in\n // dark instead of pushing the hue further.\n secondary: '#571e61',\n tertiary: '#333b44',\n },\n inputOutline: 'rgba(255, 255, 255, 0.23)',\n background: {\n default: '#161c21',\n paper: '#2a3440',\n },\n info: {\n main: '#1878cd',\n // 6.22:1 / 4.57:1.\n dark: '#5da1dc',\n contrastText: '#FFFFFF',\n },\n error: {\n main: '#e32c27',\n // 6.18:1 / 4.54:1.\n dark: '#ed7876',\n contrastText: '#FFFFFF',\n },\n success: {\n main: '#4CAF50',\n // 8.56:1 / 6.29:1.\n dark: '#82c785',\n contrastText: '#000000DE',\n },\n warning: {\n main: '#FFAB40',\n // 10.98:1 / 8.07:1.\n dark: '#ffc479',\n contrastText: '#000000DE',\n },\n grey: {\n 50: '#FAFAFA',\n 100: '#F5F5F5',\n 200: '#EEEEEE',\n 300: '#E0E0E0',\n 400: '#BDBDBD',\n 500: '#9E9E9E',\n 600: '#757575',\n 700: '#616161',\n 800: '#424242',\n 900: '#212121',\n A100: '#D5D5D5',\n A200: '#AAAAAA',\n A400: '#303030',\n A700: '#616161',\n },\n svgBackground: {\n main: '#FAFAFA',\n hover: '#FAFAFA',\n active: '#FAFAFA',\n focus: '#FAFAFA',\n },\n svgFilled: {\n main: '#9E9E9E',\n hover: lightBlue['A100'],\n active: lightBlue['A100'],\n focus: lightBlue['A100'],\n },\n svgStroke: {\n main: '#FFFFFF',\n hover: '#FFFFFF',\n active: '#FFFFFF',\n focus: '#FFFFFF',\n },\n },\n}\n\nconst shadowKeyUmbraOpacity = 0.2\nconst shadowKeyPenumbraOpacity = 0.14\nconst shadowAmbientShadowOpacity = 0.12\n\nfunction createShadowInset(...px: number[]) {\n return [\n `inset ${px[0]}px ${px[1]}px ${px[2]}px ${px[3]}px rgba(0,0,0,${shadowKeyUmbraOpacity})`,\n `inset ${px[4]}px ${px[5]}px ${px[6]}px ${px[7]}px rgba(0,0,0,${shadowKeyPenumbraOpacity})`,\n `inset ${px[8]}px ${px[9]}px ${px[10]}px ${px[11]}px rgba(0,0,0,${shadowAmbientShadowOpacity})`,\n ].join(',')\n}\n\nconst baseOptions: ThemeOptions = {\n components: {\n MuiAppBar: {\n defaultProps: {\n enableColorOnDark: true,\n },\n },\n MuiAvatar: {\n styleOverrides: {\n root: {\n width: 32,\n height: 32,\n },\n },\n },\n MuiButton: {\n defaultProps: {\n color: 'primary',\n },\n styleOverrides: {\n // MUI's own variants set `--variant-textColor` and\n // `--variant-outlinedColor` to `palette[color].main`, which paints\n // the brand color as normal-size text — `#00b0ff` at 2.43:1 on\n // white. Both vars move to the accent-text shade\n // (`palette[color].dark`, scheme-aware). `--variant-outlinedBorder`\n // and `--variant-containedBg` are left on `main`: a border and a\n // fill owe 3:1, and the brand belongs there.\n //\n // Resolved per instance rather than baked, because `components` are\n // evaluated ONCE against the root theme — a literal read here would\n // freeze the light-scheme hex into dark mode.\n root: ({ theme, ownerState }) => {\n const accent = accentTextColor(theme, ownerState?.color)\n return {\n '&a[disabled], &.disabled': {\n pointerEvents: 'none',\n textDecoration: 'none',\n filter: 'grayscale(1) opacity(0.65)',\n },\n ...(accent && {\n '--variant-textColor': accent,\n '--variant-outlinedColor': accent,\n }),\n }\n },\n },\n },\n /**\n * Room for a floated label at the top of a dialog (AGL-703).\n *\n * MUI zeroes a DialogContent's top padding when it follows a DialogTitle\n * — `.MuiDialogTitle-root + .MuiDialogContent-root` — and the content box\n * scrolls (`overflow-y: auto`). So the first field's shrunk outlined\n * label, which sits ABOVE its own border, is clipped by the scroll\n * container. It shows on any dialog whose first control has a value on\n * open: the New author dialog's `Type` select had its label shaved in\n * half.\n *\n * Twenty-seven dialogs tried to fix this themselves with\n * `sx={{ pt: 1 }}`, and NONE of them worked: MUI's rule is two classes\n * and `sx` is one, so the adjacent-sibling selector wins on specificity\n * every time. Matching that selector here is what makes the fix apply —\n * which is why it belongs in the theme rather than at any call site.\n *\n * 12px: the shrunk label rises ~9px above the input's top edge, plus a\n * little air so it does not sit ON the dialog title.\n */\n MuiDialogContent: {\n styleOverrides: {\n root: ({ theme }: any) => ({\n '.MuiDialogTitle-root + &': {\n paddingTop: theme.spacing(1.5),\n },\n }),\n },\n },\n MuiFab: {\n defaultProps: {\n color: 'primary',\n },\n },\n MuiIconButton: {\n defaultProps: {\n color: 'primary',\n },\n // color: 'inherit', // Default color to inherit\n styleOverrides: {\n root: ({ theme }) => ({\n padding: theme.spacing(1),\n }),\n },\n variants: [\n {\n props: { variant: 'outlined' } as any, // @TODO ⚠️ fix typing\n style: ({ theme }) => ({\n border: `1px solid`,\n borderColor: `inherit`,\n }),\n },\n ],\n },\n MuiLink: {\n defaultProps: {\n color: 'primary',\n },\n styleOverrides: {\n // A Link is text by definition, so `color=\"primary\"` resolving to\n // `palette.primary.main` is always measured against the wrong bar.\n // Only the PaletteColor keys are rewritten — `inherit`,\n // `textPrimary`, `textSecondary` and `textDisabled` return undefined\n // from `accentTextColor` and keep MUI's own resolution.\n root: ({ theme, ownerState }) => {\n const accent = accentTextColor(theme, ownerState?.color)\n return {\n '&[disabled], &.disabled': {\n pointerEvents: 'none',\n textDecoration: 'none',\n filter: 'grayscale(1) opacity(0.65)',\n },\n ...(accent && { color: accent }),\n }\n },\n },\n },\n // MuiMenu: {},\n // No accent defaults live here any more (AGL-1186). Tabs, checkboxes,\n // radios, switches, sliders, progress and badges each briefly carried\n // `color: 'secondary'` to escape a `primary` that was a surface tone.\n // Now that `primary` IS the accent they render correctly on MUI's own\n // default, and a per-component default is exactly what the rotation\n // exists to remove.\n //\n // That includes the `MuiTabs` default AGL-1181 records as its fix: it\n // was removed here deliberately, not reverted. The rotation fixed the\n // root cause the default was papering over, so a reader who finds\n // nothing at that issue's write-up is looking at the right file.\n MuiToolbar: {\n styleOverrides: {\n // Honour `disableGutters` (AGL-1230). This override targets the ROOT\n // slot, and `disableGutters` only drops the `gutters` slot — so the\n // padding survived the prop, app-wide, and the prop silently did\n // nothing at ≥sm. It cost the marketing nav a 24px offset against the\n // page container at every width below the container's clamp.\n root: ({ theme, ownerState }) =>\n ownerState?.disableGutters\n ? {}\n : {\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n },\n },\n },\n },\n MuiTooltip: {\n defaultProps: {\n arrow: true,\n },\n },\n },\n // mixins: {},\n shadowsInset: [\n 'none',\n createShadowInset(0, 2, 1, -1, 0, 1, 1, -0, 0, 1, 3, -0),\n createShadowInset(0, 3, 1, -2, 0, 2, 2, -0, 0, 1, 5, -0),\n createShadowInset(0, 3, 3, -2, 0, 3, 4, -0, 0, 1, 8, -0),\n createShadowInset(0, 2, 4, -1, 0, 4, 5, -0, 0, 1, 10, -0),\n createShadowInset(0, 3, 5, -1, 0, 5, 8, -0, 0, 1, 14, -0),\n createShadowInset(0, 3, 5, -1, 0, 6, 10, -0, 0, 1, 18, -0),\n createShadowInset(0, 4, 5, -2, 0, 7, 10, -1, 0, 2, 16, -1),\n createShadowInset(0, 5, 5, -3, 0, 8, 10, -1, 0, 3, 14, -2),\n createShadowInset(0, 5, 6, -3, 0, 9, 12, -1, 0, 3, 16, -2),\n createShadowInset(0, 6, 6, -3, 0, 10, 14, -1, 0, 4, 18, -3),\n createShadowInset(0, 6, 7, -4, 0, 11, 15, -1, 0, 4, 20, -3),\n createShadowInset(0, 7, 8, -4, 0, 12, 17, -2, 0, 5, 22, -4),\n createShadowInset(0, 7, 8, -4, 0, 13, 19, -2, 0, 5, 24, -4),\n createShadowInset(0, 7, 9, -4, 0, 14, 21, -2, 0, 5, 26, -4),\n createShadowInset(0, 8, 9, -5, 0, 15, 22, -2, 0, 6, 28, -5),\n createShadowInset(0, 8, 10, -5, 0, 16, 24, -2, 0, 6, 30, -5),\n createShadowInset(0, 8, 11, -5, 0, 17, 26, -2, 0, 6, 32, -5),\n createShadowInset(0, 9, 11, -5, 0, 18, 28, -2, 0, 7, 34, -6),\n createShadowInset(0, 9, 12, -6, 0, 19, 29, -2, 0, 7, 36, -6),\n createShadowInset(0, 10, 13, -6, 0, 20, 31, -3, 0, 8, 38, -7),\n createShadowInset(0, 10, 13, -6, 0, 21, 33, -3, 0, 8, 40, -7),\n createShadowInset(0, 10, 14, -6, 0, 22, 35, -3, 0, 8, 42, -7),\n createShadowInset(0, 11, 14, -7, 0, 23, 36, -3, 0, 9, 44, -8),\n createShadowInset(0, 11, 15, -7, 0, 24, 38, -3, 0, 9, 46, -8),\n ],\n shape: {\n borderRadius: 4,\n appIconBorderRadius: `17.544%`,\n },\n spacing: 8,\n typography: {\n fontFamily: buildFontFamilyList().join(','),\n // The brand's named weights, beyond MUI's four.\n //\n // MUI ships Light 300 / Regular 400 / Medium 500 / Bold 700, and the\n // brand type ramp uses three more: Black for heroes, ExtraBold for H2,\n // SemiBold below Bold. Without these tokens, reaching 600/800/900 means\n // typing a raw number, which pins an element to a weight instead of to\n // the brand and leaves it behind when the ramp moves.\n //\n // They are ADDITIVE — `createTypography` deep-merges unknown keys\n // through its `...other`, so nothing MUI defines changes. And they are\n // reachable the same way the built-ins are: `@mui/system`'s `style()`\n // retries a miss as `${prop}${capitalize(value)}`, so `fontWeight:\n // 'extraBold'` resolves to `typography.fontWeightExtraBold`. The\n // besigner's weight picker discovers them off the theme rather than\n // from a list, so they appear in the panel without another edit.\n //\n // Roboto Flex is a variable face covering 100–1000, so every rung here\n // renders as a real weight rather than a synthesised one.\n fontWeightSemiBold: 600,\n fontWeightExtraBold: 800,\n fontWeightBlack: 900,\n // The brand's display ramp, so `variant=\"h1\"` / `\"h2\"` MEANS the brand.\n // MUI's defaults are Light 300 at 96px/60px — a display face for a\n // Material app, and nothing like the brand's Black heroes and ExtraBold\n // H2. Left at the defaults, every heading on a built page needs a\n // hand-written `fontSize` and `fontWeight` to look right, and the ones\n // that miss render as a Material display face nobody chose while the\n // markup still says Heading 2.\n //\n // Scoped deliberately to h1 and h2. They have ZERO `variant=\"hN\"` usages\n // in the console and one in the tenant app, so this restyles no product\n // surface — it only changes what a SITE gets when it asks for a heading,\n // which is exactly the thing that should follow the brand. h3–h6 carry\n // 95 usages between them and are left on MUI's scale; `overline` has 19\n // and is left alone for the same reason.\n //\n // `responsiveFontSizes` runs over these afterwards (xs→xl), so these are\n // the DESKTOP end of a ramp that scales itself down — 56px/40px here\n // land near the 34px/30px the mobile frames show.\n // The rung ABOVE h1. h1 is the brand's 56px display size and\n // stays that; a hero drawn at 72px had nothing to ask for, so every one\n // hand-wrote `fontSize: '72px'` — and that literal then LOST to h1's own\n // `responsiveFontSizes` ramp on wide viewports, silently rendering 56px.\n // Listed in `RAMPED_DISPLAY_VARIANTS` so it scales down like the rest of\n // the ramp rather than staying 72px on a phone.\n displayXl: {\n fontSize: '4.5rem',\n fontWeight: 900,\n lineHeight: 1.04,\n letterSpacing: '-0.028em',\n },\n h1: {\n fontSize: '3.5rem',\n fontWeight: 900,\n lineHeight: 1.05,\n letterSpacing: '-0.025em',\n },\n h2: {\n fontSize: '2.5rem',\n fontWeight: 800,\n lineHeight: 1.15,\n letterSpacing: '-0.02em',\n },\n // h3 has to come DOWN with them, or the ramp inverts. Retuning h1/h2 to\n // the brand (56/40px) while h3 kept MUI's 48px left a Heading 3 LARGER\n // than a Heading 2 — visible the moment the theme preview listed the\n // variants in size order. h3 carries zero `variant=\"h3\"` usages, the same\n // as h1 and h2, so this restyles no product surface; h4-h6 keep MUI's\n // scale because 95 usages ride on them.\n h3: {\n fontSize: '2.25rem',\n fontWeight: 700,\n lineHeight: 1.2,\n letterSpacing: '-0.015em',\n },\n // The three text rungs the brand uses that MUI's scale has no name for.\n // MUI runs 16 / 14 / 12 (`body1` / `body2` / `caption`); the brand's\n // pages want 17, 13 and 11, and with no token to ask for they write the\n // pixels instead. One marketing page alone can carry 286 such literals —\n // 165 of them the same 11px metadata line — each pinned to a size rather\n // than to the scale.\n //\n // Full variant objects rather than bare sizes, so one pick brings the\n // line height with it: `variant=\"micro\"` or, where the element's own\n // variant must stay, `fontSize: 'micro.fontSize'` — the token path the\n // Font Size picker already offers for `h4.fontSize`.\n //\n // Named for the job, not the number, so the name survives a retune: a\n // lede stays the lede if the brand moves it to 18px.\n lede: {\n fontSize: '1.0625rem',\n fontWeight: 400,\n lineHeight: 1.6,\n },\n bodyCompact: {\n fontSize: '0.8125rem',\n fontWeight: 400,\n lineHeight: 1.5,\n },\n micro: {\n fontSize: '0.6875rem',\n fontWeight: 400,\n lineHeight: 1.6,\n },\n },\n zIndex: {\n max: 2147483647,\n min: -2147483648,\n },\n}\n\nexport const consoleOptions: ThemeOptions = {\n ...baseOptions,\n palette: {\n mode: 'light',\n ...colorScheme.light,\n },\n}\nexport const consoleOptionsDark: ThemeOptions = {\n ...baseOptions,\n palette: {\n mode: 'dark',\n ...colorScheme.dark,\n },\n}\n\nexport const consoleThemeLight: Theme = createResponsiveTheme({\n themeOptions: { ...consoleOptions },\n})\nexport const consoleThemeDark: Theme = createResponsiveTheme({\n themeOptions: { ...consoleOptionsDark },\n})\n\nexport const consoleThemeCssVar = createResponsiveCssVarTheme(\n consoleThemeLight,\n consoleThemeDark,\n)\n\nexport const getConsoleTheme = (mode: 'light' | 'dark' = 'light') => {\n const theme = {\n light: consoleThemeLight,\n dark: consoleThemeDark,\n }\n return theme[mode]\n}\nexport const getConsoleMetaThemeColor = (mode: 'light' | 'dark' = 'light') => {\n const themeColor = {\n light: consoleThemeLight.palette.secondary.main,\n dark: consoleThemeDark.palette.primary.main,\n }\n return themeColor[mode]\n}\nexport default consoleThemeLight\n"],"names":["lightBlue","buildFontFamilyList","accentTextColor","createResponsiveTheme","createResponsiveCssVarTheme","colorScheme","light","primary","main","dark","contrastText","secondary","tertiary","surface","tint","inputOutline","background","default","paper","info","error","success","warning","grey","A100","A200","A400","A700","svgBackground","hover","active","focus","svgFilled","svgStroke","shadowKeyUmbraOpacity","shadowKeyPenumbraOpacity","shadowAmbientShadowOpacity","createShadowInset","px","join","baseOptions","components","MuiAppBar","defaultProps","enableColorOnDark","MuiAvatar","styleOverrides","root","width","height","MuiButton","color","theme","ownerState","accent","pointerEvents","textDecoration","filter","MuiDialogContent","paddingTop","spacing","MuiFab","MuiIconButton","padding","variants","props","variant","style","border","borderColor","MuiLink","MuiToolbar","disableGutters","breakpoints","up","paddingLeft","paddingRight","MuiTooltip","arrow","shadowsInset","shape","borderRadius","appIconBorderRadius","typography","fontFamily","fontWeightSemiBold","fontWeightExtraBold","fontWeightBlack","displayXl","fontSize","fontWeight","lineHeight","letterSpacing","h1","h2","h3","lede","bodyCompact","micro","zIndex","max","min","consoleOptions","palette","mode","consoleOptionsDark","consoleThemeLight","themeOptions","consoleThemeDark","consoleThemeCssVar","getConsoleTheme","getConsoleMetaThemeColor","themeColor"],"mappings":";AAAA;;;;;;;;;;;;;;;CAeC,GAED,SAASA,SAAS,QAAQ,uBAAsB;AAEhD,SAASC,mBAAmB,QAAQ,iBAAa;AACjD,SAASC,eAAe,QAAQ,wBAAoB;AACpD,OAAOC,yBACLC,2BAA2B,QACtB,oCAAgC;AAcvC,MAAMC,cAAc;IAClBC,OAAO;QACL,oEAAoE;QACpE,wEAAwE;QACxE,oEAAoE;QACpE,iEAAiE;QACjEC,SAAS;YACPC,MAAM;YACN,uDAAuD;YACvD,mEAAmE;YACnE,mEAAmE;YACnE,iEAAiE;YACjE,qEAAqE;YACrE,4DAA4D;YAC5DC,MAAM;YACNC,cAAc;QAChB;QACAC,WAAW;YACTH,MAAM;YACN,uEAAuE;YACvE,mEAAmE;YACnE,6BAA6B;YAC7BC,MAAM;YACNC,cAAc;QAChB;QACAE,UAAU;YACRJ,MAAM;YACNE,cAAc;QAChB;QACAG,SAAS;YACPL,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AAO,MAAMI,qBAAqBzG,4BAChCsG,mBACAE,kBACD;AAED,OAAO,MAAME,kBAAkB,CAACN,OAAyB,OAAO;IAC9D,MAAMpD,QAAQ;QACZ9C,OAAOoG;QACPjG,MAAMmG;IACR;IACA,OAAOxD,KAAK,CAACoD,KAAK;AACpB,EAAC;AACD,OAAO,MAAMO,2BAA2B,CAACP,OAAyB,OAAO;IACvE,MAAMQ,aAAa;QACjB1G,OAAOoG,kBAAkBH,OAAO,CAAC5F,SAAS,CAACH,IAAI;QAC/CC,MAAMmG,iBAAiBL,OAAO,CAAChG,OAAO,CAACC,IAAI;IAC7C;IACA,OAAOwG,UAAU,CAACR,KAAK;AACzB,EAAC;AACD,eAAeE,kBAAiB"}
1
+ {"version":3,"sources":["../../../../../../../libs/shared/ui/theme/src/lib/console.theme.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2023 Aglyn LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { lightBlue } from '@mui/material/colors'\nimport type { PaletteOptions, Theme, ThemeOptions } from '../vendor/mui'\nimport { buildFontFamilyList } from './constants'\nimport { accentTextColor } from './util/accent-text'\nimport createResponsiveTheme, {\n createResponsiveCssVarTheme,\n} from './util/create-responsive-theme'\n\nexport type ColorVariant = 'light' | 'dark'\nexport type BackgroundRecord = PaletteOptions['background']\nexport type OrdinalIdentifier<K extends string = ''> =\n 'primary' | 'secondary' | 'tertiary'\nexport type OrdinalRecord<T extends OrdinalIdentifier = OrdinalIdentifier> =\n Pick<PaletteOptions, T>\nexport type PrimaryRecord = OrdinalRecord<'primary'>['primary']\nexport type SecondaryRecord = OrdinalRecord<'secondary'>['secondary']\nexport type TertiaryRecord = OrdinalRecord<'tertiary'>['tertiary']\nexport type ActionIdentifier = 'svgBackground' | 'svgFilled' | 'svgStroke'\nexport type ActionRecord = Pick<PaletteOptions, ActionIdentifier>\n\nconst colorScheme = {\n light: {\n // Palette rotated 2026-08-03 (AGL-1186): the blue accent that every\n // component was already opting into is now `primary`, so nothing has to\n // opt out of a primary that was really a surface tone. Whole colour\n // objects moved, so each keeps the contrastText it shipped with.\n primary: {\n main: '#00b0ff',\n // The accent rendered AS TEXT — `ACCENT_TEXT_SHADE` in\n // `util/accent-text.ts`. Links and the labels of text and outlined\n // buttons read this slot; `main` keeps painting fills, borders and\n // indicators, which owe 3:1 rather than 4.5:1. The brand blue is\n // 2.43:1 on white, so as normal-size text it needs the deeper shade:\n // this one measures 4.95:1 on paper and 4.54:1 on the page.\n dark: '#0077ad',\n contrastText: '#FFFFFF',\n },\n secondary: {\n main: '#e040fb',\n // Same slot, same role. Authored rather than left to derivation so the\n // value every link resolves to is readable in this file: 6.11:1 on\n // paper, 5.61:1 on the page.\n dark: '#9d2db0',\n contrastText: '#FFFFFF',\n },\n tertiary: {\n main: '#404C5C',\n contrastText: '#FFFFFF',\n },\n surface: {\n main: `#F8F9FA`,\n contrastText: '#000000',\n },\n // Pale accent washes used as tile/panel FILLS (AGL-1244). Each member is\n // named after the accent whose icon sits on it — the mega-menu's blue\n // tiles pair `tint.primary` with a `primary.dark` glyph — so the pairing\n // is legible from the token names alone. These were the last raw hexes on\n // the marketing nav; they are not `primary.light` (`#33BFFF`) and never\n // were, which is why the slot had to be named rather than borrowed.\n tint: {\n primary: '#E6F5FF',\n secondary: '#FBE6FE',\n tertiary: '#EEF0F2',\n },\n // MUI's own outlined-input border weight, promoted to a token so a field\n // drawn outside MUI can match one drawn by it (see `PaletteOptions`).\n inputOutline: 'rgba(0, 0, 0, 0.23)',\n background: {\n default: '#F5F5F5',\n paper: '#FFFFFF',\n },\n info: {\n // The deepest blue of this hue that still carries a WHITE label at the\n // 4.5:1 AA text bar (4.56:1). A lighter info takes every filled\n // variant sub-AA, and flipping its ink to dark makes an informational\n // surface read as a warning.\n main: '#1878cd',\n contrastText: '#FFFFFF',\n },\n error: {\n // The deepest red of this hue that keeps a white label at AA (4.51:1).\n // An error surface is a destructive-action affordance, so the fill\n // carries the contrast and the ink stays white.\n main: '#e32c27',\n contrastText: '#FFFFFF',\n },\n success: {\n main: '#4CAF50',\n contrastText: '#000000DE',\n },\n warning: {\n main: '#FFAB40',\n contrastText: '#000000DE',\n },\n grey: {\n 50: '#FAFAFA',\n 100: '#F5F5F5',\n 200: '#EEEEEE',\n 300: '#E0E0E0',\n 400: '#BDBDBD',\n 500: '#9E9E9E',\n 600: '#757575',\n 700: '#616161',\n 800: '#424242',\n 900: '#212121',\n A100: '#D5D5D5',\n A200: '#AAAAAA',\n A400: '#303030',\n A700: '#616161',\n },\n svgBackground: {\n main: '#FAFAFA',\n hover: '#FAFAFA',\n active: '#FAFAFA',\n focus: '#FAFAFA',\n },\n svgFilled: {\n main: '#9E9E9E',\n hover: lightBlue['400'],\n active: lightBlue['400'],\n focus: lightBlue['400'],\n },\n svgStroke: {\n main: '#FFFFFF',\n hover: '#FFFFFF',\n active: '#FFFFFF',\n focus: '#FFFFFF',\n },\n },\n dark: {\n primary: {\n main: '#00b0ff',\n // The accent-as-text slot, LIGHTER than `main` here and deliberately\n // so. MUI derives `dark` as `darken(main, 0.3)` in both schemes — it\n // cannot see that the ground flipped — which lands `#007bb2` at 3.67:1\n // on this page. Every `dark` shade in this scheme is therefore\n // authored, and each is the value `ensureAccessibleShades` computes by\n // walking the accent LIGHTER until it clears 4.5:1 against both\n // `background.default` and `background.paper`. 9.02:1 / 6.62:1.\n dark: '#4dc8ff',\n contrastText: '#FFFFFF',\n },\n secondary: {\n main: '#e040fb',\n // 7.04:1 on the page, 5.17:1 on a raised panel. The brand magenta\n // itself is 3.78:1 on paper, so it cannot be the text shade here.\n dark: '#e979fc',\n contrastText: '#FFFFFF',\n },\n // Dark takes a LIFTED slate, not the brand `#404C5C`: that scores 1.38\n // against this scheme's page and would just move the old invisibility\n // bug from primary to tertiary. `#7C8CA3` measures 5.02 vs page and\n // 3.63 vs a raised panel, and needs dark ink rather than white (6.14\n // against black, 3.42 against white).\n tertiary: {\n main: '#7C8CA3',\n // 7.73:1 / 5.68:1 — `main` itself is 2.78:1 on the page.\n dark: '#a3afbf',\n contrastText: '#000000DE',\n },\n surface: {\n // Held at 1.17:1 from the page even though that is flat for an\n // elevation step. This token is also the panel the besigner draws its\n // hierarchy depth cues on, and lifting it toward the page pushes the\n // active guide — `secondary.main` on this fill — from 4.41:1 down to\n // 3.89:1. Trading a legible cue for a slightly clearer edge is the\n // wrong way round; the depth cues are what someone actually reads.\n main: `#202934`,\n contrastText: '#FFFFFF',\n },\n // The hand-curated dark counterparts the 15 tinted tiles carried in their\n // `@scheme dark` slices before the token existed (AGL-1244). Carrying the\n // exact values here is what lets those slices be DELETED without dark mode\n // shifting: a literal needs a slice, a token flips on its own.\n tint: {\n // Tile FILLS, so the bar is separation from the page rather than a\n // WCAG text ratio: below ~1.5:1 a tinted tile has no visible edge. The\n // originals sat at 1.13–1.25:1 and disappeared. White ink clears 11:1\n // on all three.\n primary: '#193d55',\n // Magenta cannot reach 1.5:1 without turning purple-grey, so this one\n // stops at 1.44:1 and the tile carries an `inputOutline` border in\n // dark instead of pushing the hue further.\n secondary: '#571e61',\n tertiary: '#333b44',\n },\n inputOutline: 'rgba(255, 255, 255, 0.23)',\n background: {\n default: '#161c21',\n paper: '#2a3440',\n },\n info: {\n main: '#1878cd',\n // 6.22:1 / 4.57:1.\n dark: '#5da1dc',\n contrastText: '#FFFFFF',\n },\n error: {\n main: '#e32c27',\n // 6.18:1 / 4.54:1.\n dark: '#ed7876',\n contrastText: '#FFFFFF',\n },\n success: {\n main: '#4CAF50',\n // 8.56:1 / 6.29:1.\n dark: '#82c785',\n contrastText: '#000000DE',\n },\n warning: {\n main: '#FFAB40',\n // 10.98:1 / 8.07:1.\n dark: '#ffc479',\n contrastText: '#000000DE',\n },\n grey: {\n 50: '#FAFAFA',\n 100: '#F5F5F5',\n 200: '#EEEEEE',\n 300: '#E0E0E0',\n 400: '#BDBDBD',\n 500: '#9E9E9E',\n 600: '#757575',\n 700: '#616161',\n 800: '#424242',\n 900: '#212121',\n A100: '#D5D5D5',\n A200: '#AAAAAA',\n A400: '#303030',\n A700: '#616161',\n },\n svgBackground: {\n main: '#FAFAFA',\n hover: '#FAFAFA',\n active: '#FAFAFA',\n focus: '#FAFAFA',\n },\n svgFilled: {\n main: '#9E9E9E',\n hover: lightBlue['A100'],\n active: lightBlue['A100'],\n focus: lightBlue['A100'],\n },\n svgStroke: {\n main: '#FFFFFF',\n hover: '#FFFFFF',\n active: '#FFFFFF',\n focus: '#FFFFFF',\n },\n },\n}\n\nconst shadowKeyUmbraOpacity = 0.2\nconst shadowKeyPenumbraOpacity = 0.14\nconst shadowAmbientShadowOpacity = 0.12\n\nfunction createShadowInset(...px: number[]) {\n return [\n `inset ${px[0]}px ${px[1]}px ${px[2]}px ${px[3]}px rgba(0,0,0,${shadowKeyUmbraOpacity})`,\n `inset ${px[4]}px ${px[5]}px ${px[6]}px ${px[7]}px rgba(0,0,0,${shadowKeyPenumbraOpacity})`,\n `inset ${px[8]}px ${px[9]}px ${px[10]}px ${px[11]}px rgba(0,0,0,${shadowAmbientShadowOpacity})`,\n ].join(',')\n}\n\nconst baseOptions: ThemeOptions = {\n components: {\n MuiAppBar: {\n defaultProps: {\n enableColorOnDark: true,\n },\n },\n MuiAvatar: {\n styleOverrides: {\n root: {\n width: 32,\n height: 32,\n },\n },\n },\n MuiButton: {\n defaultProps: {\n color: 'primary',\n },\n styleOverrides: {\n // MUI's own variants set `--variant-textColor` and\n // `--variant-outlinedColor` to `palette[color].main`, which paints\n // the brand color as normal-size text — `#00b0ff` at 2.43:1 on\n // white. Both vars move to the accent-text shade\n // (`palette[color].dark`, scheme-aware). `--variant-outlinedBorder`\n // and `--variant-containedBg` are left on `main`: a border and a\n // fill owe 3:1, and the brand belongs there.\n //\n // Resolved per instance rather than baked, because `components` are\n // evaluated ONCE against the root theme — a literal read here would\n // freeze the light-scheme hex into dark mode.\n root: ({ theme, ownerState }) => {\n const accent = accentTextColor(theme, ownerState?.color)\n return {\n '&a[disabled], &.disabled': {\n pointerEvents: 'none',\n textDecoration: 'none',\n filter: 'grayscale(1) opacity(0.65)',\n },\n ...(accent && {\n '--variant-textColor': accent,\n '--variant-outlinedColor': accent,\n }),\n }\n },\n },\n },\n /**\n * Room for a floated label at the top of a dialog (AGL-703).\n *\n * MUI zeroes a DialogContent's top padding when it follows a DialogTitle\n * — `.MuiDialogTitle-root + .MuiDialogContent-root` — and the content box\n * scrolls (`overflow-y: auto`). So the first field's shrunk outlined\n * label, which sits ABOVE its own border, is clipped by the scroll\n * container. It shows on any dialog whose first control has a value on\n * open: the New author dialog's `Type` select had its label shaved in\n * half.\n *\n * Twenty-seven dialogs tried to fix this themselves with\n * `sx={{ pt: 1 }}`, and NONE of them worked: MUI's rule is two classes\n * and `sx` is one, so the adjacent-sibling selector wins on specificity\n * every time. Matching that selector here is what makes the fix apply —\n * which is why it belongs in the theme rather than at any call site.\n *\n * 12px: the shrunk label rises ~9px above the input's top edge, plus a\n * little air so it does not sit ON the dialog title.\n */\n MuiDialogContent: {\n styleOverrides: {\n root: ({ theme }: any) => ({\n '.MuiDialogTitle-root + &': {\n paddingTop: theme.spacing(1.5),\n },\n }),\n },\n },\n MuiFab: {\n defaultProps: {\n color: 'primary',\n },\n },\n MuiIconButton: {\n defaultProps: {\n color: 'primary',\n },\n // color: 'inherit', // Default color to inherit\n styleOverrides: {\n root: ({ theme }) => ({\n padding: theme.spacing(1),\n }),\n },\n variants: [\n {\n props: { variant: 'outlined' } as any, // @TODO ⚠️ fix typing\n style: ({ theme }) => ({\n border: `1px solid`,\n borderColor: `inherit`,\n }),\n },\n ],\n },\n MuiLink: {\n defaultProps: {\n color: 'primary',\n },\n styleOverrides: {\n // A Link is text by definition, so `color=\"primary\"` resolving to\n // `palette.primary.main` is always measured against the wrong bar.\n // Only the PaletteColor keys are rewritten — `inherit`,\n // `textPrimary`, `textSecondary` and `textDisabled` return undefined\n // from `accentTextColor` and keep MUI's own resolution.\n root: ({ theme, ownerState }) => {\n const accent = accentTextColor(theme, ownerState?.color)\n return {\n '&[disabled], &.disabled': {\n pointerEvents: 'none',\n textDecoration: 'none',\n filter: 'grayscale(1) opacity(0.65)',\n },\n ...(accent && { color: accent }),\n }\n },\n },\n },\n // MuiMenu: {},\n // No accent defaults live here any more (AGL-1186). Tabs, checkboxes,\n // radios, switches, sliders, progress and badges each briefly carried\n // `color: 'secondary'` to escape a `primary` that was a surface tone.\n // Now that `primary` IS the accent they render correctly on MUI's own\n // default, and a per-component default is exactly what the rotation\n // exists to remove.\n //\n // That includes the `MuiTabs` default AGL-1181 records as its fix: it\n // was removed here deliberately, not reverted. The rotation fixed the\n // root cause the default was papering over, so a reader who finds\n // nothing at that issue's write-up is looking at the right file.\n MuiToolbar: {\n styleOverrides: {\n // Honour `disableGutters` (AGL-1230). This override targets the ROOT\n // slot, and `disableGutters` only drops the `gutters` slot — so the\n // padding survived the prop, app-wide, and the prop silently did\n // nothing at ≥sm. It cost the marketing nav a 24px offset against the\n // page container at every width below the container's clamp.\n root: ({ theme, ownerState }) =>\n ownerState?.disableGutters\n ? {}\n : {\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n },\n },\n },\n },\n // The tertiary indicator (AGL-3411). MUI styles Tabs' indicator for\n // `primary` and `secondary` only, so `indicatorColor=\"tertiary\"` — which\n // the palette and the Tabs element's picker both offer — drew MUI's\n // primary. Resolved per render so it follows the scheme.\n MuiTabs: {\n variants: [\n {\n props: { indicatorColor: 'tertiary' } as any, // augmentation widens this\n style: ({ theme }: any) => ({\n '& .MuiTabs-indicator': {\n backgroundColor: (theme.vars || theme).palette.tertiary.main,\n },\n }),\n },\n ],\n },\n MuiTooltip: {\n defaultProps: {\n arrow: true,\n },\n },\n },\n // mixins: {},\n shadowsInset: [\n 'none',\n createShadowInset(0, 2, 1, -1, 0, 1, 1, -0, 0, 1, 3, -0),\n createShadowInset(0, 3, 1, -2, 0, 2, 2, -0, 0, 1, 5, -0),\n createShadowInset(0, 3, 3, -2, 0, 3, 4, -0, 0, 1, 8, -0),\n createShadowInset(0, 2, 4, -1, 0, 4, 5, -0, 0, 1, 10, -0),\n createShadowInset(0, 3, 5, -1, 0, 5, 8, -0, 0, 1, 14, -0),\n createShadowInset(0, 3, 5, -1, 0, 6, 10, -0, 0, 1, 18, -0),\n createShadowInset(0, 4, 5, -2, 0, 7, 10, -1, 0, 2, 16, -1),\n createShadowInset(0, 5, 5, -3, 0, 8, 10, -1, 0, 3, 14, -2),\n createShadowInset(0, 5, 6, -3, 0, 9, 12, -1, 0, 3, 16, -2),\n createShadowInset(0, 6, 6, -3, 0, 10, 14, -1, 0, 4, 18, -3),\n createShadowInset(0, 6, 7, -4, 0, 11, 15, -1, 0, 4, 20, -3),\n createShadowInset(0, 7, 8, -4, 0, 12, 17, -2, 0, 5, 22, -4),\n createShadowInset(0, 7, 8, -4, 0, 13, 19, -2, 0, 5, 24, -4),\n createShadowInset(0, 7, 9, -4, 0, 14, 21, -2, 0, 5, 26, -4),\n createShadowInset(0, 8, 9, -5, 0, 15, 22, -2, 0, 6, 28, -5),\n createShadowInset(0, 8, 10, -5, 0, 16, 24, -2, 0, 6, 30, -5),\n createShadowInset(0, 8, 11, -5, 0, 17, 26, -2, 0, 6, 32, -5),\n createShadowInset(0, 9, 11, -5, 0, 18, 28, -2, 0, 7, 34, -6),\n createShadowInset(0, 9, 12, -6, 0, 19, 29, -2, 0, 7, 36, -6),\n createShadowInset(0, 10, 13, -6, 0, 20, 31, -3, 0, 8, 38, -7),\n createShadowInset(0, 10, 13, -6, 0, 21, 33, -3, 0, 8, 40, -7),\n createShadowInset(0, 10, 14, -6, 0, 22, 35, -3, 0, 8, 42, -7),\n createShadowInset(0, 11, 14, -7, 0, 23, 36, -3, 0, 9, 44, -8),\n createShadowInset(0, 11, 15, -7, 0, 24, 38, -3, 0, 9, 46, -8),\n ],\n shape: {\n borderRadius: 4,\n appIconBorderRadius: `17.544%`,\n },\n spacing: 8,\n typography: {\n fontFamily: buildFontFamilyList().join(','),\n // The brand's named weights, beyond MUI's four.\n //\n // MUI ships Light 300 / Regular 400 / Medium 500 / Bold 700, and the\n // brand type ramp uses three more: Black for heroes, ExtraBold for H2,\n // SemiBold below Bold. Without these tokens, reaching 600/800/900 means\n // typing a raw number, which pins an element to a weight instead of to\n // the brand and leaves it behind when the ramp moves.\n //\n // They are ADDITIVE — `createTypography` deep-merges unknown keys\n // through its `...other`, so nothing MUI defines changes. And they are\n // reachable the same way the built-ins are: `@mui/system`'s `style()`\n // retries a miss as `${prop}${capitalize(value)}`, so `fontWeight:\n // 'extraBold'` resolves to `typography.fontWeightExtraBold`. The\n // besigner's weight picker discovers them off the theme rather than\n // from a list, so they appear in the panel without another edit.\n //\n // Roboto Flex is a variable face covering 100–1000, so every rung here\n // renders as a real weight rather than a synthesised one.\n fontWeightSemiBold: 600,\n fontWeightExtraBold: 800,\n fontWeightBlack: 900,\n // The brand's display ramp, so `variant=\"h1\"` / `\"h2\"` MEANS the brand.\n // MUI's defaults are Light 300 at 96px/60px — a display face for a\n // Material app, and nothing like the brand's Black heroes and ExtraBold\n // H2. Left at the defaults, every heading on a built page needs a\n // hand-written `fontSize` and `fontWeight` to look right, and the ones\n // that miss render as a Material display face nobody chose while the\n // markup still says Heading 2.\n //\n // Scoped deliberately to h1 and h2. They have ZERO `variant=\"hN\"` usages\n // in the console and one in the tenant app, so this restyles no product\n // surface — it only changes what a SITE gets when it asks for a heading,\n // which is exactly the thing that should follow the brand. h3–h6 carry\n // 95 usages between them and are left on MUI's scale; `overline` has 19\n // and is left alone for the same reason.\n //\n // `responsiveFontSizes` runs over these afterwards (xs→xl), so these are\n // the DESKTOP end of a ramp that scales itself down — 56px/40px here\n // land near the 34px/30px the mobile frames show.\n // The rung ABOVE h1. h1 is the brand's 56px display size and\n // stays that; a hero drawn at 72px had nothing to ask for, so every one\n // hand-wrote `fontSize: '72px'` — and that literal then LOST to h1's own\n // `responsiveFontSizes` ramp on wide viewports, silently rendering 56px.\n // Listed in `RAMPED_DISPLAY_VARIANTS` so it scales down like the rest of\n // the ramp rather than staying 72px on a phone.\n displayXl: {\n fontSize: '4.5rem',\n fontWeight: 900,\n lineHeight: 1.04,\n letterSpacing: '-0.028em',\n },\n h1: {\n fontSize: '3.5rem',\n fontWeight: 900,\n lineHeight: 1.05,\n letterSpacing: '-0.025em',\n },\n h2: {\n fontSize: '2.5rem',\n fontWeight: 800,\n lineHeight: 1.15,\n letterSpacing: '-0.02em',\n },\n // h3 has to come DOWN with them, or the ramp inverts. Retuning h1/h2 to\n // the brand (56/40px) while h3 kept MUI's 48px left a Heading 3 LARGER\n // than a Heading 2 — visible the moment the theme preview listed the\n // variants in size order. h3 carries zero `variant=\"h3\"` usages, the same\n // as h1 and h2, so this restyles no product surface; h4-h6 keep MUI's\n // scale because 95 usages ride on them.\n h3: {\n fontSize: '2.25rem',\n fontWeight: 700,\n lineHeight: 1.2,\n letterSpacing: '-0.015em',\n },\n // The three text rungs the brand uses that MUI's scale has no name for.\n // MUI runs 16 / 14 / 12 (`body1` / `body2` / `caption`); the brand's\n // pages want 17, 13 and 11, and with no token to ask for they write the\n // pixels instead. One marketing page alone can carry 286 such literals —\n // 165 of them the same 11px metadata line — each pinned to a size rather\n // than to the scale.\n //\n // Full variant objects rather than bare sizes, so one pick brings the\n // line height with it: `variant=\"micro\"` or, where the element's own\n // variant must stay, `fontSize: 'micro.fontSize'` — the token path the\n // Font Size picker already offers for `h4.fontSize`.\n //\n // Named for the job, not the number, so the name survives a retune: a\n // lede stays the lede if the brand moves it to 18px.\n lede: {\n fontSize: '1.0625rem',\n fontWeight: 400,\n lineHeight: 1.6,\n },\n bodyCompact: {\n fontSize: '0.8125rem',\n fontWeight: 400,\n lineHeight: 1.5,\n },\n micro: {\n fontSize: '0.6875rem',\n fontWeight: 400,\n lineHeight: 1.6,\n },\n },\n zIndex: {\n max: 2147483647,\n min: -2147483648,\n },\n}\n\nexport const consoleOptions: ThemeOptions = {\n ...baseOptions,\n palette: {\n mode: 'light',\n ...colorScheme.light,\n },\n}\nexport const consoleOptionsDark: ThemeOptions = {\n ...baseOptions,\n palette: {\n mode: 'dark',\n ...colorScheme.dark,\n },\n}\n\nexport const consoleThemeLight: Theme = createResponsiveTheme({\n themeOptions: { ...consoleOptions },\n})\nexport const consoleThemeDark: Theme = createResponsiveTheme({\n themeOptions: { ...consoleOptionsDark },\n})\n\nexport const consoleThemeCssVar = createResponsiveCssVarTheme(\n consoleThemeLight,\n consoleThemeDark,\n)\n\nexport const getConsoleTheme = (mode: 'light' | 'dark' = 'light') => {\n const theme = {\n light: consoleThemeLight,\n dark: consoleThemeDark,\n }\n return theme[mode]\n}\nexport const getConsoleMetaThemeColor = (mode: 'light' | 'dark' = 'light') => {\n const themeColor = {\n light: consoleThemeLight.palette.secondary.main,\n dark: consoleThemeDark.palette.primary.main,\n }\n return themeColor[mode]\n}\nexport default consoleThemeLight\n"],"names":["lightBlue","buildFontFamilyList","accentTextColor","createResponsiveTheme","createResponsiveCssVarTheme","colorScheme","light","primary","main","dark","contrastText","secondary","tertiary","surface","tint","inputOutline","background","default","paper","info","error","success","warning","grey","A100","A200","A400","A700","svgBackground","hover","active","focus","svgFilled","svgStroke","shadowKeyUmbraOpacity","shadowKeyPenumbraOpacity","shadowAmbientShadowOpacity","createShadowInset","px","join","baseOptions","components","MuiAppBar","defaultProps","enableColorOnDark","MuiAvatar","styleOverrides","root","width","height","MuiButton","color","theme","ownerState","accent","pointerEvents","textDecoration","filter","MuiDialogContent","paddingTop","spacing","MuiFab","MuiIconButton","padding","variants","props","variant","style","border","borderColor","MuiLink","MuiToolbar","disableGutters","breakpoints","up","paddingLeft","paddingRight","MuiTabs","indicatorColor","backgroundColor","vars","palette","MuiTooltip","arrow","shadowsInset","shape","borderRadius","appIconBorderRadius","typography","fontFamily","fontWeightSemiBold","fontWeightExtraBold","fontWeightBlack","displayXl","fontSize","fontWeight","lineHeight","letterSpacing","h1","h2","h3","lede","bodyCompact","micro","zIndex","max","min","consoleOptions","mode","consoleOptionsDark","consoleThemeLight","themeOptions","consoleThemeDark","consoleThemeCssVar","getConsoleTheme","getConsoleMetaThemeColor","themeColor"],"mappings":";AAAA;;;;;;;;;;;;;;;CAeC,GAED,SAASA,SAAS,QAAQ,uBAAsB;AAEhD,SAASC,mBAAmB,QAAQ,iBAAa;AACjD,SAASC,eAAe,QAAQ,wBAAoB;AACpD,OAAOC,yBACLC,2BAA2B,QACtB,oCAAgC;AAcvC,MAAMC,cAAc;IAClBC,OAAO;QACL,oEAAoE;QACpE,wEAAwE;QACxE,oEAAoE;QACpE,iEAAiE;QACjEC,SAAS;YACPC,MAAM;YACN,uDAAuD;YACvD,mEAAmE;YACnE,mEAAmE;YACnE,iEAAiE;YACjE,qEAAqE;YACrE,4DAA4D;YAC5DC,MAAM;YACNC,cAAc;QAChB;QACAC,WAAW;YACTH,MAAM;YACN,uEAAuE;YACvE,mEAAmE;YACnE,6BAA6B;YAC7BC,MAAM;YACNC,cAAc;QAChB;QACAE,UAAU;YACRJ,MAAM;YACNE,cAAc;QAChB;QACAG,SAAS;YACPL,MAAM,CAAC,OAAO,CAAC;YACfE,cAAc;QAChB;QACA,yEAAyE;QACzE,sEAAsE;QACtE,yEAAyE;QACzE,0EAA0E;QAC1E,wEAAwE;QACxE,oEAAoE;QACpEI,MAAM;YACJP,SAAS;YACTI,WAAW;YACXC,UAAU;QACZ;QACA,yEAAyE;QACzE,sEAAsE;QACtEG,cAAc;QACdC,YAAY;YACVC,SAAS;YACTC,OAAO;QACT;QACAC,MAAM;YACJ,uEAAuE;YACvE,gEAAgE;YAChE,sEAAsE;YACtE,6BAA6B;YAC7BX,MAAM;YACNE,cAAc;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4BAChC0G,mBACAE,kBACD;AAED,OAAO,MAAME,kBAAkB,CAACN,OAAyB,OAAO;IAC9D,MAAMxD,QAAQ;QACZ9C,OAAOwG;QACPrG,MAAMuG;IACR;IACA,OAAO5D,KAAK,CAACwD,KAAK;AACpB,EAAC;AACD,OAAO,MAAMO,2BAA2B,CAACP,OAAyB,OAAO;IACvE,MAAMQ,aAAa;QACjB9G,OAAOwG,kBAAkB7B,OAAO,CAACtE,SAAS,CAACH,IAAI;QAC/CC,MAAMuG,iBAAiB/B,OAAO,CAAC1E,OAAO,CAACC,IAAI;IAC7C;IACA,OAAO4G,UAAU,CAACR,KAAK;AACzB,EAAC;AACD,eAAeE,kBAAiB"}
@@ -76,6 +76,42 @@ declare module '@mui/material/Tabs' {
76
76
  interface TabsPropsIndicatorColorOverrides extends ColorPropOverrides {
77
77
  }
78
78
  }
79
+ declare module '@mui/material/Checkbox' {
80
+ interface CheckboxPropsColorOverrides extends ColorPropOverrides {
81
+ }
82
+ }
83
+ declare module '@mui/material/Radio' {
84
+ interface RadioPropsColorOverrides extends ColorPropOverrides {
85
+ }
86
+ }
87
+ declare module '@mui/material/Switch' {
88
+ interface SwitchPropsColorOverrides extends ColorPropOverrides {
89
+ }
90
+ }
91
+ declare module '@mui/material/Slider' {
92
+ interface SliderPropsColorOverrides extends ColorPropOverrides {
93
+ }
94
+ }
95
+ declare module '@mui/material/Badge' {
96
+ interface BadgePropsColorOverrides extends ColorPropOverrides {
97
+ }
98
+ }
99
+ declare module '@mui/material/CircularProgress' {
100
+ interface CircularProgressPropsColorOverrides extends ColorPropOverrides {
101
+ }
102
+ }
103
+ declare module '@mui/material/LinearProgress' {
104
+ interface LinearProgressPropsColorOverrides extends ColorPropOverrides {
105
+ }
106
+ }
107
+ declare module '@mui/material/Pagination' {
108
+ interface PaginationPropsColorOverrides extends ColorPropOverrides {
109
+ }
110
+ }
111
+ declare module '@mui/material/PaginationItem' {
112
+ interface PaginationItemPropsColorOverrides extends ColorPropOverrides {
113
+ }
114
+ }
79
115
  declare module '@mui/system' {
80
116
  interface Shape {
81
117
  appIconBorderRadius: number | string;
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../../../libs/shared/ui/theme/src/vendor/mui.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2026 Aglyn LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type { Theme as MuiTheme } from '@mui/material/styles'\nimport type {\n Color as MuiColor,\n CssVarsTheme,\n CSSProperties,\n Shadows,\n} from '@mui/material/styles'\n// import type { ExtraColorOptions } from '@mui/material/styles/createPalette'\n// import type { WithStyles } from '@mui/styles'\n// import type { ClassKeyInferable } from '@mui/styles/withStyles'\nimport type { ColorPropOverrides, IActionStates } from '../lib/theme.types'\n// import type {ContainerTypeMap} from '@mui/material/Container'\n\n// _____ _______ ____ ____ ___ ____ _____ ____\n// / _ \\ \\ / / ____| _ \\| _ \\|_ _| _ \\| ____/ ___|\n// | | | \\ \\ / /| _| | |_) | |_) || || | | | _| \\___ \\\n// | |_| |\\ V / | |___| _ <| _ < | || |_| | |___ ___) |\n// \\___/ \\_/ |_____|_| \\_\\_| \\_\\___|____/|_____|____/\n\ndeclare module '@mui/material/Button' {\n interface ButtonPropsColorOverrides extends ColorPropOverrides {}\n}\ndeclare module '@mui/material/ButtonGroup' {\n interface ButtonGroupPropsColorOverrides extends ColorPropOverrides {}\n}\ndeclare module '@mui/material/Container' {\n interface ContainerOwnProps {\n variant?: 'vertical' | 'horizontal' | 'boxed'\n }\n}\n/**\n * `<Typography variant=\"lede\">` and its two siblings (AGL-1308).\n *\n * The `TypographyVariants` augmentation further down puts the three variants\n * on the THEME; this is what lets a component ASK for one. Declaring the theme\n * side alone is the half-fix that compiles the theme and then rejects every\n * use of it — the same trap `TypographyVariantsOptions` without\n * `TypographyVariants` sets, one level up.\n */\ndeclare module '@mui/material/Typography' {\n interface TypographyPropsVariantOverrides {\n lede: true\n bodyCompact: true\n micro: true\n displayXl: true\n }\n}\ndeclare module '@mui/material/ToggleButtonGroup' {\n interface ToggleButtonGroupPropsColorOverrides extends ColorPropOverrides {}\n}\ndeclare module '@mui/material/Fab' {\n interface FabPropsColorOverrides extends ColorPropOverrides {}\n}\ndeclare module '@mui/material/SvgIcon' {\n interface SvgIconPropsColorOverrides extends ColorPropOverrides {}\n}\ndeclare module '@mui/material/AppBar' {\n interface AppBarPropsColorOverrides extends ColorPropOverrides {\n surface: true\n }\n}\ndeclare module '@mui/material/Chip' {\n interface ChipPropsColorOverrides extends ColorPropOverrides {}\n}\ndeclare module '@mui/material/IconButton' {\n // Was `AppBarPropsColorOverrides` — a copy-paste from the block above, so\n // this augmented nothing and IconButton never accepted `tertiary`.\n interface IconButtonPropsColorOverrides extends ColorPropOverrides {}\n}\ndeclare module '@mui/material/Tabs' {\n interface TabsPropsIndicatorColorOverrides extends ColorPropOverrides {}\n}\ndeclare module '@mui/system' {\n interface Shape {\n appIconBorderRadius: number | string\n }\n}\ndeclare module '@mui/material/styles' {\n type ExtraColor = Palette['primary']\n type ExtraColorOptions = PaletteOptions['primary']\n\n /**\n * Pale accent washes used as SURFACES (AGL-1244) — `tint.primary`,\n * `tint.secondary`, `tint.tertiary`.\n *\n * A group of string leaves like `background` and `text`, NOT a\n * `PaletteColor`: there is no ramp to walk and no `contrastText`, because a\n * tint is never a component `color` — the ink on it is the accent token the\n * tile's icon already uses. That is also why `tint` is absent from\n * `ColorPropOverrides`: `<Button color=\"tint\">` would have no foreground to\n * pair with and must stay a type error.\n */\n interface PaletteTint {\n primary: string\n secondary: string\n tertiary: string\n }\n\n /**\n * START EXAMPLE – MODULE AUGMENTATION ↓\n * ⌄⌄⌄⌄⌄⌄⌄⌄⌄⌄⌄⌄⌄⌄⌄⌄⌄⌄⌄⌄⌄⌄⌄⌄⌄⌄⌄⌄⌄⌄⌄⌄⌄⌄⌄⌄\n * ```typescript\n * // Add new property ↓\n * declare module '@mui/material/styles' {\n * interface Theme {\n * status: {\n * danger: React.CSSProperties['color'],\n * }\n * }\n * interface ThemeOptions {\n * status: {\n * danger: React.CSSProperties['color']\n * }\n * }\n * }\n * const theme = createMuiTheme({\n * status: {\n * danger: '#e53e3e',\n * },\n * })\n *\n * // Add to existing property (e.g., palette, typography) ↓\n * declare module \"@mui/material/styles\" {\n * interface Palette {\n * neutral: Palette['primary']\n * }\n * interface PaletteOptions {\n * neutral: PaletteOptions['primary']\n * }\n * }\n * const theme = createMuiTheme({\n * palette: {\n * neutral: {\n * main: '#5c6ac4',\n * },\n * },\n * })\n * ```\n * ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n * END EXAMPLE – MODULE AUGMENTATION ↑\n */\n\n /**\n * The resting border of an outlined input.\n *\n * A token because MUI has none: `OutlinedInput` hardcodes\n * `rgba(0, 0, 0, 0.23)` / `rgba(255, 255, 255, 0.23)` inside its own\n * styles, so there is nothing on the theme to read. Anything that has to\n * draw an input BESIDE a MUI one — Stripe Elements, which paints its fields\n * inside a cross-origin iframe from an `appearance` object we hand it — can\n * otherwise only match by copying those literals, and the copy silently\n * stops matching the first time the scheme moves.\n *\n * Deliberately NOT `divider` (`rgba(0, 0, 0, 0.12)`): half the weight, so a\n * field drawn with it reads as a different, lighter control sitting next to\n * ours — which is precisely the mismatch this token exists to prevent.\n *\n * A string leaf like `background` and `text`, not a `PaletteColor`: there is\n * no ramp and no `contrastText`, because nothing is ever drawn ON it.\n */\n interface PaletteOptions {\n background?: PaletteOptions['background']\n tertiary?: ExtraColorOptions\n surface?: ExtraColorOptions\n tint?: Partial<PaletteTint>\n inputOutline?: string\n svgBackground?: IActionStates\n svgFilled?: IActionStates\n svgStroke?: IActionStates\n text?: PaletteOptions['text']\n }\n\n interface TypeBackground {}\n\n interface Palette {\n background: Palette['background']\n tertiary: ExtraColor\n surface: ExtraColor\n inputOutline: string\n tint: PaletteTint\n svgBackground: IActionStates\n svgFilled: IActionStates\n svgStroke: IActionStates\n text: Palette['text']\n }\n\n /**\n * The brand's extra rungs on the font-weight scale (AGL-1308).\n *\n * MUI ships four — `fontWeightLight/Regular/Medium/Bold` — and the brand\n * adds three above them: 600, 800 and 900, all real weights because Roboto\n * Flex is a variable face covering 100–1000. Declaring them here is what\n * makes `createTheme({ typography: { fontWeightSemiBold: 600 } })` compile;\n * without the augmentation `TypographyVariantsOptions` is a closed shape and\n * the theme itself does not typecheck.\n *\n * They are reachable the way the built-ins are: `@mui/system`'s `style()`\n * retries a miss as `${prop}${capitalize(value)}`, so `fontWeight: 'black'`\n * resolves to `typography.fontWeightBlack`.\n *\n * BOTH interfaces, and that is not belt-and-braces. `TypographyVariantsOptions`\n * is what `createTheme` ACCEPTS and `TypographyVariants` is what the resolved\n * `theme.typography` HANDS BACK — augmenting only the first compiles the\n * theme and then fails every reader, which is the shape this was in.\n *\n * Optional on the options side, required on the resolved side: an override\n * may omit it (MUI merges the default in), a reader may not have to check.\n *\n * ## And the SCALE variants\n *\n * `displayXl` is the rung ABOVE `h1`. The brand's display ramp tops out at\n * h1's 56px, so a marketing hero drawn at 72px had no token to ask for and\n * hand-wrote the pixels — which then lost to the variant's own responsive\n * ramp. One rung, not two: h1 already IS the 56px display size, and a\n * second name for it would leave two tokens to keep in step.\n *\n * `lede`, `bodyCompact` and `micro` — 17px, 13px and 11px with their line\n * heights — exist because the built pages kept reaching for those sizes and,\n * with nothing to ask for, wrote the pixels: /press alone carried 286 such\n * literals. Full variant objects rather than bare sizes, so one pick brings\n * the line height with it. Named for the JOB rather than the number, so the\n * name survives a retune: a lede stays the lede if the brand moves it to\n * 18px. `@mui/material/Typography` is augmented separately, above, so a\n * component can ASK for one.\n *\n * ⚑ Declared in THIS file rather than beside the values in\n * `console.theme.ts`, because module augmentation belongs with the rest of\n * the vendor augmentations — and putting it here is what let it be added\n * without touching a file another session was editing at the time.\n */\n interface TypographyVariantsOptions {\n fontWeightSemiBold?: number\n fontWeightExtraBold?: number\n fontWeightBlack?: number\n lede?: CSSProperties\n bodyCompact?: CSSProperties\n micro?: CSSProperties\n displayXl?: CSSProperties\n }\n\n interface TypographyVariants {\n fontWeightSemiBold: number\n fontWeightExtraBold: number\n fontWeightBlack: number\n lede: CSSProperties\n bodyCompact: CSSProperties\n micro: CSSProperties\n displayXl: CSSProperties\n }\n\n interface ZIndex {\n max: number\n min: number\n }\n\n interface Mixins {\n menuArrow: CSSProperties\n }\n\n interface ThemeOptions {\n shadowsInset?: Shadows\n }\n\n interface Theme {\n palette: Palette\n shadowsInset: Shadows\n }\n\n interface Theme {\n // CssVarsTheme['vars'] supplies the members MUI requires on vars (font,\n // opacity, overlays, …); the Omit layers our theme augmentations on top.\n vars: CssVarsTheme['vars'] &\n Omit<\n Theme,\n 'typography' | 'mixins' | 'breakpoints' | 'direction' | 'transitions' | 'vars'\n >\n }\n\n interface DefaultTheme extends Theme {}\n\n // type ExtendPropsOfWithStyles<\n // P extends { classes?: ClassNameMap<string> },\n // StylesType extends ClassKeyInferable<any, any>,\n // IncludeTheme extends boolean | undefined = false\n // > = P & WithStyles<StylesType, IncludeTheme>\n}\n\ndeclare module '@mui/styles' {\n interface DefaultTheme extends MuiTheme {}\n}\n\n// _______ ______ ___ ____ _____ ____\n// | ____\\ \\/ / _ \\ / _ \\| _ \\_ _/ ___|\n// | _| \\ /| |_) | | | | |_) || | \\___ \\\n// | |___ / \\| __/| |_| | _ < | | ___) |\n// |_____/_/\\_\\_| \\___/|_| \\_\\|_| |____/\n\nexport type { Overwrite } from '@mui/types'\n\nexport {\n type ShapeOptions,\n type Spacing,\n type SpacingOptions,\n type MuiStyledOptions,\n type SxProps,\n type BoxProps,\n} from '@mui/system'\n\nexport { darkScrollbar } from '@mui/material'\nexport { visuallyHidden } from '@mui/utils'\n\nexport {\n type Breakpoint,\n type BreakpointOverrides,\n type Breakpoints,\n type BreakpointsOptions,\n type ClassNameMap,\n type ColorFormat,\n type ColorObject,\n type ComponentsOverrides,\n type ComponentsProps,\n type ComponentsPropsList,\n type ComponentsVariants,\n type CreateMUIStyled,\n type CSSObject,\n type Direction,\n type Duration,\n type Easing,\n // type ExtendPropsOfWithStyles,\n type Palette,\n type PaletteColor,\n type PaletteColorOptions,\n type PaletteOptions,\n type SimplePaletteColorOptions,\n type StyledComponentProps,\n type Theme,\n type ThemedProps,\n type ThemeOptions,\n type ThemeWithProps,\n type Transitions,\n type TransitionsOptions,\n type TypographyStyle,\n type TypographyVariant,\n type TypographyVariants,\n type TypographyVariantsOptions,\n alpha,\n createTheme,\n darken,\n decomposeColor,\n easing,\n emphasize,\n getContrastRatio,\n getLuminance,\n hexToRgb,\n hslToRgb,\n lighten,\n recomposeColor,\n responsiveFontSizes,\n rgbToHex,\n styled,\n StyledEngineProvider,\n ThemeProvider,\n useTheme,\n useThemeProps,\n experimental_sx as sx,\n getInitColorSchemeScript,\n} from '@mui/material/styles'\n\nexport type ColorPartial = Partial<MuiColor>\nexport {\n type CommonColors,\n type TypeBackground,\n type TypeText,\n type Shadows,\n} from '@mui/material/styles'\n\n// export { type ClassKeyInferable, type CreateCSSProperties } from '@mui/styles/withStyles'\n\nexport { type Shape } from '@mui/system'\n\n// The VALUE half of this block is NOT re-exported (AGL-2682). `getThemeProps`,\n// `jssPreset`, `StylesContext`, `StylesProvider`, `useThemeVariants`,\n// `withThemeCreator`, `makeStyles`, `withStyles` and `createStyles` had no\n// reader anywhere in the repo, and a value re-export is a RUNTIME edge: it put\n// `@mui/styles` — MUI v4's deprecated JSS engine, and the `jss` tree under it —\n// inside the reachable set of every file that takes anything at all from this\n// barrel, which on the tenant is every published customer page. The one real\n// consumer of any of them, `shared-ui-jsx`'s `sandbox-frame.tsx`, imports\n// `jssPreset` and `StylesProvider` from `@mui/styles` directly; that is the\n// pattern to copy if a value is needed again.\n//\n// The types stay exactly as they were. `export type` is erased at compile time\n// and carries no edge, so nothing a consumer writes has to change.\nexport type {\n BaseCreateCSSProperties,\n BaseCSSProperties,\n CSSProperties,\n ServerStyleSheets,\n StyledProps,\n StyleRules,\n StyleRulesCallback,\n Styles,\n StylesOptions,\n StylesProviderProps,\n ThemedComponentProps,\n ThemeOfStyles,\n ThemeProviderProps,\n WithStyles,\n WithStylesOptions,\n WithTheme,\n WithThemeCreatorOption,\n} from '@mui/styles'\n"],"names":["darkScrollbar","visuallyHidden","alpha","createTheme","darken","decomposeColor","easing","emphasize","getContrastRatio","getLuminance","hexToRgb","hslToRgb","lighten","recomposeColor","responsiveFontSizes","rgbToHex","styled","StyledEngineProvider","ThemeProvider","useTheme","useThemeProps","experimental_sx","sx","getInitColorSchemeScript"],"mappings":"AAAA;;;;;;;;;;;;;;;CAeC,GAsTD,SAASA,aAAa,QAAQ,gBAAe;AAC7C,SAASC,cAAc,QAAQ,aAAY;AAE3C,SAkCEC,KAAK,EACLC,WAAW,EACXC,MAAM,EACNC,cAAc,EACdC,MAAM,EACNC,SAAS,EACTC,gBAAgB,EAChBC,YAAY,EACZC,QAAQ,EACRC,QAAQ,EACRC,OAAO,EACPC,cAAc,EACdC,mBAAmB,EACnBC,QAAQ,EACRC,MAAM,EACNC,oBAAoB,EACpBC,aAAa,EACbC,QAAQ,EACRC,aAAa,EACbC,mBAAmBC,EAAE,EACrBC,wBAAwB,QACnB,uBAAsB"}
1
+ {"version":3,"sources":["../../../../../../../libs/shared/ui/theme/src/vendor/mui.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2026 Aglyn LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type { Theme as MuiTheme } from '@mui/material/styles'\nimport type {\n Color as MuiColor,\n CssVarsTheme,\n CSSProperties,\n Shadows,\n} from '@mui/material/styles'\n// import type { ExtraColorOptions } from '@mui/material/styles/createPalette'\n// import type { WithStyles } from '@mui/styles'\n// import type { ClassKeyInferable } from '@mui/styles/withStyles'\nimport type { ColorPropOverrides, IActionStates } from '../lib/theme.types'\n// import type {ContainerTypeMap} from '@mui/material/Container'\n\n// _____ _______ ____ ____ ___ ____ _____ ____\n// / _ \\ \\ / / ____| _ \\| _ \\|_ _| _ \\| ____/ ___|\n// | | | \\ \\ / /| _| | |_) | |_) || || | | | _| \\___ \\\n// | |_| |\\ V / | |___| _ <| _ < | || |_| | |___ ___) |\n// \\___/ \\_/ |_____|_| \\_\\_| \\_\\___|____/|_____|____/\n\ndeclare module '@mui/material/Button' {\n interface ButtonPropsColorOverrides extends ColorPropOverrides {}\n}\ndeclare module '@mui/material/ButtonGroup' {\n interface ButtonGroupPropsColorOverrides extends ColorPropOverrides {}\n}\ndeclare module '@mui/material/Container' {\n interface ContainerOwnProps {\n variant?: 'vertical' | 'horizontal' | 'boxed'\n }\n}\n/**\n * `<Typography variant=\"lede\">` and its two siblings (AGL-1308).\n *\n * The `TypographyVariants` augmentation further down puts the three variants\n * on the THEME; this is what lets a component ASK for one. Declaring the theme\n * side alone is the half-fix that compiles the theme and then rejects every\n * use of it — the same trap `TypographyVariantsOptions` without\n * `TypographyVariants` sets, one level up.\n */\ndeclare module '@mui/material/Typography' {\n interface TypographyPropsVariantOverrides {\n lede: true\n bodyCompact: true\n micro: true\n displayXl: true\n }\n}\ndeclare module '@mui/material/ToggleButtonGroup' {\n interface ToggleButtonGroupPropsColorOverrides extends ColorPropOverrides {}\n}\ndeclare module '@mui/material/Fab' {\n interface FabPropsColorOverrides extends ColorPropOverrides {}\n}\ndeclare module '@mui/material/SvgIcon' {\n interface SvgIconPropsColorOverrides extends ColorPropOverrides {}\n}\ndeclare module '@mui/material/AppBar' {\n interface AppBarPropsColorOverrides extends ColorPropOverrides {\n surface: true\n }\n}\ndeclare module '@mui/material/Chip' {\n interface ChipPropsColorOverrides extends ColorPropOverrides {}\n}\ndeclare module '@mui/material/IconButton' {\n // Was `AppBarPropsColorOverrides` — a copy-paste from the block above, so\n // this augmented nothing and IconButton never accepted `tertiary`.\n interface IconButtonPropsColorOverrides extends ColorPropOverrides {}\n}\ndeclare module '@mui/material/Tabs' {\n interface TabsPropsIndicatorColorOverrides extends ColorPropOverrides {}\n}\n// Tertiary everywhere primary and secondary are (AGL-3411). Each of these\n// already renders any palette color with a `main` — MUI builds their color\n// styles from the palette's entries — so tertiary worked at runtime and was\n// only refused by the types.\ndeclare module '@mui/material/Checkbox' {\n interface CheckboxPropsColorOverrides extends ColorPropOverrides {}\n}\ndeclare module '@mui/material/Radio' {\n interface RadioPropsColorOverrides extends ColorPropOverrides {}\n}\ndeclare module '@mui/material/Switch' {\n interface SwitchPropsColorOverrides extends ColorPropOverrides {}\n}\ndeclare module '@mui/material/Slider' {\n interface SliderPropsColorOverrides extends ColorPropOverrides {}\n}\ndeclare module '@mui/material/Badge' {\n interface BadgePropsColorOverrides extends ColorPropOverrides {}\n}\ndeclare module '@mui/material/CircularProgress' {\n interface CircularProgressPropsColorOverrides extends ColorPropOverrides {}\n}\ndeclare module '@mui/material/LinearProgress' {\n interface LinearProgressPropsColorOverrides extends ColorPropOverrides {}\n}\ndeclare module '@mui/material/Pagination' {\n interface PaginationPropsColorOverrides extends ColorPropOverrides {}\n}\ndeclare module '@mui/material/PaginationItem' {\n interface PaginationItemPropsColorOverrides extends ColorPropOverrides {}\n}\ndeclare module '@mui/system' {\n interface Shape {\n appIconBorderRadius: number | string\n }\n}\ndeclare module '@mui/material/styles' {\n type ExtraColor = Palette['primary']\n type ExtraColorOptions = PaletteOptions['primary']\n\n /**\n * Pale accent washes used as SURFACES (AGL-1244) — `tint.primary`,\n * `tint.secondary`, `tint.tertiary`.\n *\n * A group of string leaves like `background` and `text`, NOT a\n * `PaletteColor`: there is no ramp to walk and no `contrastText`, because a\n * tint is never a component `color` — the ink on it is the accent token the\n * tile's icon already uses. That is also why `tint` is absent from\n * `ColorPropOverrides`: `<Button color=\"tint\">` would have no foreground to\n * pair with and must stay a type error.\n */\n interface PaletteTint {\n primary: string\n secondary: string\n tertiary: string\n }\n\n /**\n * START EXAMPLE – MODULE AUGMENTATION ↓\n * ⌄⌄⌄⌄⌄⌄⌄⌄⌄⌄⌄⌄⌄⌄⌄⌄⌄⌄⌄⌄⌄⌄⌄⌄⌄⌄⌄⌄⌄⌄⌄⌄⌄⌄⌄⌄\n * ```typescript\n * // Add new property ↓\n * declare module '@mui/material/styles' {\n * interface Theme {\n * status: {\n * danger: React.CSSProperties['color'],\n * }\n * }\n * interface ThemeOptions {\n * status: {\n * danger: React.CSSProperties['color']\n * }\n * }\n * }\n * const theme = createMuiTheme({\n * status: {\n * danger: '#e53e3e',\n * },\n * })\n *\n * // Add to existing property (e.g., palette, typography) ↓\n * declare module \"@mui/material/styles\" {\n * interface Palette {\n * neutral: Palette['primary']\n * }\n * interface PaletteOptions {\n * neutral: PaletteOptions['primary']\n * }\n * }\n * const theme = createMuiTheme({\n * palette: {\n * neutral: {\n * main: '#5c6ac4',\n * },\n * },\n * })\n * ```\n * ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n * END EXAMPLE – MODULE AUGMENTATION ↑\n */\n\n /**\n * The resting border of an outlined input.\n *\n * A token because MUI has none: `OutlinedInput` hardcodes\n * `rgba(0, 0, 0, 0.23)` / `rgba(255, 255, 255, 0.23)` inside its own\n * styles, so there is nothing on the theme to read. Anything that has to\n * draw an input BESIDE a MUI one — Stripe Elements, which paints its fields\n * inside a cross-origin iframe from an `appearance` object we hand it — can\n * otherwise only match by copying those literals, and the copy silently\n * stops matching the first time the scheme moves.\n *\n * Deliberately NOT `divider` (`rgba(0, 0, 0, 0.12)`): half the weight, so a\n * field drawn with it reads as a different, lighter control sitting next to\n * ours — which is precisely the mismatch this token exists to prevent.\n *\n * A string leaf like `background` and `text`, not a `PaletteColor`: there is\n * no ramp and no `contrastText`, because nothing is ever drawn ON it.\n */\n interface PaletteOptions {\n background?: PaletteOptions['background']\n tertiary?: ExtraColorOptions\n surface?: ExtraColorOptions\n tint?: Partial<PaletteTint>\n inputOutline?: string\n svgBackground?: IActionStates\n svgFilled?: IActionStates\n svgStroke?: IActionStates\n text?: PaletteOptions['text']\n }\n\n interface TypeBackground {}\n\n interface Palette {\n background: Palette['background']\n tertiary: ExtraColor\n surface: ExtraColor\n inputOutline: string\n tint: PaletteTint\n svgBackground: IActionStates\n svgFilled: IActionStates\n svgStroke: IActionStates\n text: Palette['text']\n }\n\n /**\n * The brand's extra rungs on the font-weight scale (AGL-1308).\n *\n * MUI ships four — `fontWeightLight/Regular/Medium/Bold` — and the brand\n * adds three above them: 600, 800 and 900, all real weights because Roboto\n * Flex is a variable face covering 100–1000. Declaring them here is what\n * makes `createTheme({ typography: { fontWeightSemiBold: 600 } })` compile;\n * without the augmentation `TypographyVariantsOptions` is a closed shape and\n * the theme itself does not typecheck.\n *\n * They are reachable the way the built-ins are: `@mui/system`'s `style()`\n * retries a miss as `${prop}${capitalize(value)}`, so `fontWeight: 'black'`\n * resolves to `typography.fontWeightBlack`.\n *\n * BOTH interfaces, and that is not belt-and-braces. `TypographyVariantsOptions`\n * is what `createTheme` ACCEPTS and `TypographyVariants` is what the resolved\n * `theme.typography` HANDS BACK — augmenting only the first compiles the\n * theme and then fails every reader, which is the shape this was in.\n *\n * Optional on the options side, required on the resolved side: an override\n * may omit it (MUI merges the default in), a reader may not have to check.\n *\n * ## And the SCALE variants\n *\n * `displayXl` is the rung ABOVE `h1`. The brand's display ramp tops out at\n * h1's 56px, so a marketing hero drawn at 72px had no token to ask for and\n * hand-wrote the pixels — which then lost to the variant's own responsive\n * ramp. One rung, not two: h1 already IS the 56px display size, and a\n * second name for it would leave two tokens to keep in step.\n *\n * `lede`, `bodyCompact` and `micro` — 17px, 13px and 11px with their line\n * heights — exist because the built pages kept reaching for those sizes and,\n * with nothing to ask for, wrote the pixels: /press alone carried 286 such\n * literals. Full variant objects rather than bare sizes, so one pick brings\n * the line height with it. Named for the JOB rather than the number, so the\n * name survives a retune: a lede stays the lede if the brand moves it to\n * 18px. `@mui/material/Typography` is augmented separately, above, so a\n * component can ASK for one.\n *\n * ⚑ Declared in THIS file rather than beside the values in\n * `console.theme.ts`, because module augmentation belongs with the rest of\n * the vendor augmentations — and putting it here is what let it be added\n * without touching a file another session was editing at the time.\n */\n interface TypographyVariantsOptions {\n fontWeightSemiBold?: number\n fontWeightExtraBold?: number\n fontWeightBlack?: number\n lede?: CSSProperties\n bodyCompact?: CSSProperties\n micro?: CSSProperties\n displayXl?: CSSProperties\n }\n\n interface TypographyVariants {\n fontWeightSemiBold: number\n fontWeightExtraBold: number\n fontWeightBlack: number\n lede: CSSProperties\n bodyCompact: CSSProperties\n micro: CSSProperties\n displayXl: CSSProperties\n }\n\n interface ZIndex {\n max: number\n min: number\n }\n\n interface Mixins {\n menuArrow: CSSProperties\n }\n\n interface ThemeOptions {\n shadowsInset?: Shadows\n }\n\n interface Theme {\n palette: Palette\n shadowsInset: Shadows\n }\n\n interface Theme {\n // CssVarsTheme['vars'] supplies the members MUI requires on vars (font,\n // opacity, overlays, …); the Omit layers our theme augmentations on top.\n vars: CssVarsTheme['vars'] &\n Omit<\n Theme,\n 'typography' | 'mixins' | 'breakpoints' | 'direction' | 'transitions' | 'vars'\n >\n }\n\n interface DefaultTheme extends Theme {}\n\n // type ExtendPropsOfWithStyles<\n // P extends { classes?: ClassNameMap<string> },\n // StylesType extends ClassKeyInferable<any, any>,\n // IncludeTheme extends boolean | undefined = false\n // > = P & WithStyles<StylesType, IncludeTheme>\n}\n\ndeclare module '@mui/styles' {\n interface DefaultTheme extends MuiTheme {}\n}\n\n// _______ ______ ___ ____ _____ ____\n// | ____\\ \\/ / _ \\ / _ \\| _ \\_ _/ ___|\n// | _| \\ /| |_) | | | | |_) || | \\___ \\\n// | |___ / \\| __/| |_| | _ < | | ___) |\n// |_____/_/\\_\\_| \\___/|_| \\_\\|_| |____/\n\nexport type { Overwrite } from '@mui/types'\n\nexport {\n type ShapeOptions,\n type Spacing,\n type SpacingOptions,\n type MuiStyledOptions,\n type SxProps,\n type BoxProps,\n} from '@mui/system'\n\nexport { darkScrollbar } from '@mui/material'\nexport { visuallyHidden } from '@mui/utils'\n\nexport {\n type Breakpoint,\n type BreakpointOverrides,\n type Breakpoints,\n type BreakpointsOptions,\n type ClassNameMap,\n type ColorFormat,\n type ColorObject,\n type ComponentsOverrides,\n type ComponentsProps,\n type ComponentsPropsList,\n type ComponentsVariants,\n type CreateMUIStyled,\n type CSSObject,\n type Direction,\n type Duration,\n type Easing,\n // type ExtendPropsOfWithStyles,\n type Palette,\n type PaletteColor,\n type PaletteColorOptions,\n type PaletteOptions,\n type SimplePaletteColorOptions,\n type StyledComponentProps,\n type Theme,\n type ThemedProps,\n type ThemeOptions,\n type ThemeWithProps,\n type Transitions,\n type TransitionsOptions,\n type TypographyStyle,\n type TypographyVariant,\n type TypographyVariants,\n type TypographyVariantsOptions,\n alpha,\n createTheme,\n darken,\n decomposeColor,\n easing,\n emphasize,\n getContrastRatio,\n getLuminance,\n hexToRgb,\n hslToRgb,\n lighten,\n recomposeColor,\n responsiveFontSizes,\n rgbToHex,\n styled,\n StyledEngineProvider,\n ThemeProvider,\n useTheme,\n useThemeProps,\n experimental_sx as sx,\n getInitColorSchemeScript,\n} from '@mui/material/styles'\n\nexport type ColorPartial = Partial<MuiColor>\nexport {\n type CommonColors,\n type TypeBackground,\n type TypeText,\n type Shadows,\n} from '@mui/material/styles'\n\n// export { type ClassKeyInferable, type CreateCSSProperties } from '@mui/styles/withStyles'\n\nexport { type Shape } from '@mui/system'\n\n// The VALUE half of this block is NOT re-exported (AGL-2682). `getThemeProps`,\n// `jssPreset`, `StylesContext`, `StylesProvider`, `useThemeVariants`,\n// `withThemeCreator`, `makeStyles`, `withStyles` and `createStyles` had no\n// reader anywhere in the repo, and a value re-export is a RUNTIME edge: it put\n// `@mui/styles` — MUI v4's deprecated JSS engine, and the `jss` tree under it —\n// inside the reachable set of every file that takes anything at all from this\n// barrel, which on the tenant is every published customer page. The one real\n// consumer of any of them, `shared-ui-jsx`'s `sandbox-frame.tsx`, imports\n// `jssPreset` and `StylesProvider` from `@mui/styles` directly; that is the\n// pattern to copy if a value is needed again.\n//\n// The types stay exactly as they were. `export type` is erased at compile time\n// and carries no edge, so nothing a consumer writes has to change.\nexport type {\n BaseCreateCSSProperties,\n BaseCSSProperties,\n CSSProperties,\n ServerStyleSheets,\n StyledProps,\n StyleRules,\n StyleRulesCallback,\n Styles,\n StylesOptions,\n StylesProviderProps,\n ThemedComponentProps,\n ThemeOfStyles,\n ThemeProviderProps,\n WithStyles,\n WithStylesOptions,\n WithTheme,\n WithThemeCreatorOption,\n} from '@mui/styles'\n"],"names":["darkScrollbar","visuallyHidden","alpha","createTheme","darken","decomposeColor","easing","emphasize","getContrastRatio","getLuminance","hexToRgb","hslToRgb","lighten","recomposeColor","responsiveFontSizes","rgbToHex","styled","StyledEngineProvider","ThemeProvider","useTheme","useThemeProps","experimental_sx","sx","getInitColorSchemeScript"],"mappings":"AAAA;;;;;;;;;;;;;;;CAeC,GAqVD,SAASA,aAAa,QAAQ,gBAAe;AAC7C,SAASC,cAAc,QAAQ,aAAY;AAE3C,SAkCEC,KAAK,EACLC,WAAW,EACXC,MAAM,EACNC,cAAc,EACdC,MAAM,EACNC,SAAS,EACTC,gBAAgB,EAChBC,YAAY,EACZC,QAAQ,EACRC,QAAQ,EACRC,OAAO,EACPC,cAAc,EACdC,mBAAmB,EACnBC,QAAQ,EACRC,MAAM,EACNC,oBAAoB,EACpBC,aAAa,EACbC,QAAQ,EACRC,aAAa,EACbC,mBAAmBC,EAAE,EACrBC,wBAAwB,QACnB,uBAAsB"}