@g9tm/lynxcontrols-foundation 0.0.0-stage → 1.4.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.
Files changed (164) hide show
  1. package/README.md +4 -2
  2. package/dist/.tsbuildinfo +1 -0
  3. package/dist/collections.d.ts +16 -0
  4. package/dist/collections.d.ts.map +1 -0
  5. package/dist/collections.js +40 -0
  6. package/dist/collections.js.map +1 -0
  7. package/dist/culture/calendar.d.ts +122 -0
  8. package/dist/culture/calendar.d.ts.map +1 -0
  9. package/dist/culture/calendar.js +379 -0
  10. package/dist/culture/calendar.js.map +1 -0
  11. package/dist/culture/culture.d.ts +91 -0
  12. package/dist/culture/culture.d.ts.map +1 -0
  13. package/dist/culture/culture.js +173 -0
  14. package/dist/culture/culture.js.map +1 -0
  15. package/dist/culture/date-format.d.ts +19 -0
  16. package/dist/culture/date-format.d.ts.map +1 -0
  17. package/dist/culture/date-format.js +101 -0
  18. package/dist/culture/date-format.js.map +1 -0
  19. package/dist/culture/digits.d.ts +29 -0
  20. package/dist/culture/digits.d.ts.map +1 -0
  21. package/dist/culture/digits.js +43 -0
  22. package/dist/culture/digits.js.map +1 -0
  23. package/dist/culture/duration.d.ts +38 -0
  24. package/dist/culture/duration.d.ts.map +1 -0
  25. package/dist/culture/duration.js +41 -0
  26. package/dist/culture/duration.js.map +1 -0
  27. package/dist/culture/index.d.ts +9 -0
  28. package/dist/culture/index.d.ts.map +1 -0
  29. package/dist/culture/index.js +8 -0
  30. package/dist/culture/numbers.d.ts +38 -0
  31. package/dist/culture/numbers.d.ts.map +1 -0
  32. package/dist/culture/numbers.js +64 -0
  33. package/dist/culture/numbers.js.map +1 -0
  34. package/dist/culture/relative-time.d.ts +50 -0
  35. package/dist/culture/relative-time.d.ts.map +1 -0
  36. package/dist/culture/relative-time.js +63 -0
  37. package/dist/culture/relative-time.js.map +1 -0
  38. package/dist/culture/strings.d.ts +145 -0
  39. package/dist/culture/strings.d.ts.map +1 -0
  40. package/dist/culture/strings.js +345 -0
  41. package/dist/culture/strings.js.map +1 -0
  42. package/dist/enums/index.d.ts +195 -0
  43. package/dist/enums/index.d.ts.map +1 -0
  44. package/dist/enums/index.js +130 -0
  45. package/dist/enums/index.js.map +1 -0
  46. package/dist/errors.d.ts +10 -0
  47. package/dist/errors.d.ts.map +1 -0
  48. package/dist/errors.js +21 -0
  49. package/dist/errors.js.map +1 -0
  50. package/dist/exec/diagnostics.d.ts +74 -0
  51. package/dist/exec/diagnostics.d.ts.map +1 -0
  52. package/dist/exec/diagnostics.js +73 -0
  53. package/dist/exec/diagnostics.js.map +1 -0
  54. package/dist/exec/index.d.ts +5 -0
  55. package/dist/exec/index.d.ts.map +1 -0
  56. package/dist/exec/index.js +4 -0
  57. package/dist/exec/options.d.ts +75 -0
  58. package/dist/exec/options.d.ts.map +1 -0
  59. package/dist/exec/options.js +107 -0
  60. package/dist/exec/options.js.map +1 -0
  61. package/dist/exec/safe-executor.d.ts +138 -0
  62. package/dist/exec/safe-executor.d.ts.map +1 -0
  63. package/dist/exec/safe-executor.js +401 -0
  64. package/dist/exec/safe-executor.js.map +1 -0
  65. package/dist/exec/trace.d.ts +59 -0
  66. package/dist/exec/trace.d.ts.map +1 -0
  67. package/dist/exec/trace.js +108 -0
  68. package/dist/exec/trace.js.map +1 -0
  69. package/dist/icons/generated/glyph-svg.d.ts +37 -0
  70. package/dist/icons/generated/glyph-svg.d.ts.map +1 -0
  71. package/dist/icons/generated/glyph-svg.js +33 -0
  72. package/dist/icons/generated/glyph-svg.js.map +1 -0
  73. package/dist/icons/glyph-slots.d.ts +79 -0
  74. package/dist/icons/glyph-slots.d.ts.map +1 -0
  75. package/dist/icons/glyph-slots.js +50 -0
  76. package/dist/icons/glyph-slots.js.map +1 -0
  77. package/dist/icons/glyph.d.ts +76 -0
  78. package/dist/icons/glyph.d.ts.map +1 -0
  79. package/dist/icons/glyph.js +42 -0
  80. package/dist/icons/glyph.js.map +1 -0
  81. package/dist/icons/icon-fonts.d.ts +55 -0
  82. package/dist/icons/icon-fonts.d.ts.map +1 -0
  83. package/dist/icons/icon-fonts.js +74 -0
  84. package/dist/icons/icon-fonts.js.map +1 -0
  85. package/dist/icons/icon.d.ts +102 -0
  86. package/dist/icons/icon.d.ts.map +1 -0
  87. package/dist/icons/icon.js +132 -0
  88. package/dist/icons/icon.js.map +1 -0
  89. package/dist/icons/index.d.ts +7 -0
  90. package/dist/icons/index.d.ts.map +1 -0
  91. package/dist/icons/index.js +6 -0
  92. package/dist/icons/svg.d.ts +28 -0
  93. package/dist/icons/svg.d.ts.map +1 -0
  94. package/dist/icons/svg.js +59 -0
  95. package/dist/icons/svg.js.map +1 -0
  96. package/dist/index.d.ts +10 -0
  97. package/dist/index.d.ts.map +1 -0
  98. package/dist/index.js +9 -0
  99. package/dist/services/abort.d.ts +31 -0
  100. package/dist/services/abort.d.ts.map +1 -0
  101. package/dist/services/abort.js +47 -0
  102. package/dist/services/abort.js.map +1 -0
  103. package/dist/services/clock.d.ts +35 -0
  104. package/dist/services/clock.d.ts.map +1 -0
  105. package/dist/services/clock.js +37 -0
  106. package/dist/services/clock.js.map +1 -0
  107. package/dist/services/contracts.d.ts +200 -0
  108. package/dist/services/contracts.d.ts.map +1 -0
  109. package/dist/services/contracts.js +37 -0
  110. package/dist/services/contracts.js.map +1 -0
  111. package/dist/services/index.d.ts +5 -0
  112. package/dist/services/index.d.ts.map +1 -0
  113. package/dist/services/index.js +4 -0
  114. package/dist/services/preferences.d.ts +105 -0
  115. package/dist/services/preferences.d.ts.map +1 -0
  116. package/dist/services/preferences.js +253 -0
  117. package/dist/services/preferences.js.map +1 -0
  118. package/dist/theme/color.d.ts +94 -0
  119. package/dist/theme/color.d.ts.map +1 -0
  120. package/dist/theme/color.js +150 -0
  121. package/dist/theme/color.js.map +1 -0
  122. package/dist/theme/control-colors.d.ts +46 -0
  123. package/dist/theme/control-colors.d.ts.map +1 -0
  124. package/dist/theme/control-colors.js +46 -0
  125. package/dist/theme/control-colors.js.map +1 -0
  126. package/dist/theme/index.d.ts +5 -0
  127. package/dist/theme/index.d.ts.map +1 -0
  128. package/dist/theme/index.js +4 -0
  129. package/dist/theme/theme.d.ts +88 -0
  130. package/dist/theme/theme.d.ts.map +1 -0
  131. package/dist/theme/theme.js +190 -0
  132. package/dist/theme/theme.js.map +1 -0
  133. package/dist/theme/variants.d.ts +33 -0
  134. package/dist/theme/variants.d.ts.map +1 -0
  135. package/dist/theme/variants.js +53 -0
  136. package/dist/theme/variants.js.map +1 -0
  137. package/dist/tokens/css-vars.d.ts +35 -0
  138. package/dist/tokens/css-vars.d.ts.map +1 -0
  139. package/dist/tokens/css-vars.js +49 -0
  140. package/dist/tokens/css-vars.js.map +1 -0
  141. package/dist/tokens/generated/metrics.d.ts +184 -0
  142. package/dist/tokens/generated/metrics.d.ts.map +1 -0
  143. package/dist/tokens/generated/metrics.js +349 -0
  144. package/dist/tokens/generated/metrics.js.map +1 -0
  145. package/dist/tokens/generated/palettes.d.ts +113 -0
  146. package/dist/tokens/generated/palettes.d.ts.map +1 -0
  147. package/dist/tokens/generated/palettes.js +391 -0
  148. package/dist/tokens/generated/palettes.js.map +1 -0
  149. package/dist/tokens/index.d.ts +5 -0
  150. package/dist/tokens/index.d.ts.map +1 -0
  151. package/dist/tokens/index.js +4 -0
  152. package/dist/tokens/layout-metrics.d.ts +120 -0
  153. package/dist/tokens/layout-metrics.d.ts.map +1 -0
  154. package/dist/tokens/layout-metrics.js +111 -0
  155. package/dist/tokens/layout-metrics.js.map +1 -0
  156. package/docs/api.md +368 -0
  157. package/docs/foundation.md +369 -0
  158. package/docs/migration/Core.Controls.Shared.md +475 -0
  159. package/docs/migration/Core.Helpers.md +132 -0
  160. package/docs/migration/Core.Icons.md +135 -0
  161. package/docs/migration/Core.Localization.md +118 -0
  162. package/docs/migration/Core.Storage.md +54 -0
  163. package/docs/migration/Core.Theming.md +328 -0
  164. package/package.json +59 -4
@@ -0,0 +1,328 @@
1
+ # Migration: `G9MAUIControls/Theming` → `@g9tm/lynxcontrols-foundation`
2
+
3
+ Census card: `plan/census/units/Core.Theming.md` (MAUI `6604cf0`). Owner: WP01.1. Tests are in
4
+ `packages/foundation/src/` (`theme/color.test.ts`, `theme/theme.test.ts`, `theme/variants.test.ts`,
5
+ `tokens/tokens.test.ts`, `no-intl.test.ts`). Guide: [`../foundation.md`](../foundation.md).
6
+
7
+ ## Notes that apply to the whole unit
8
+
9
+ - **Colours are CSS strings.** MAUI `Color` becomes `G9Color` (a CSS colour); arithmetic runs on `G9Rgba`
10
+ (float32 channels, like MAUI) and is formatted back with `formatColor`. The MAUI theme dictionaries spell colours
11
+ `#AARRGGBB` (alpha first); the generated palettes are CSS (`#RRGGBB`, or `rgba(r, g, b, a)` whose alpha is the
12
+ shortest decimal that reads back as the same float32), asserted channel-exact against `golden/theme-palettes.json`.
13
+ - **Token values keep the MAUI names.** `G9ColorToken.Primary === 'Primary'` instead of the camelCase enum rule of
14
+ specs/03 §1, because specs/01 §6 keeps token names (`g9Token('Primary')`, palette keys). CSS variables are
15
+ kebab-case: `--g9-primary`.
16
+ - **No global mutable palette.** `G9Palette.Current` and the static `G9Theme` become a `G9ThemeStore` value
17
+ (`createThemeStore`) that the provider (WP02) owns and exposes as CSS variables; helpers take the palette or the
18
+ resolved theme as an argument.
19
+ - **Layout metrics** keep the MAUI literal fallbacks (census `=> D(nameof(X), n)` rows, asserted against the card).
20
+ `Thickness(left, top, right, bottom)` becomes logical `{ top, end, bottom, start }` with left = start (MAUI mirrors
21
+ layout under RTL); `CornerRadius` becomes `number | { topStart, topEnd, bottomEnd, bottomStart }`. App resource
22
+ overrides become `resolveLayoutMetrics(overrides)`.
23
+
24
+ ## `G9AlphaConverter`
25
+
26
+ | MAUI | Lynx | Disposition | Tests |
27
+ | --- | --- | --- | --- |
28
+ | `G9AlphaConverter.Instance` | none: `applyAlpha` is a plain function, no instance needed | idiomatic: value converters do not exist in ReactLynx | color.test.ts "applyAlpha follows G9AlphaConverter.Convert" |
29
+ | `G9AlphaConverter.Convert` | `applyAlpha(color, alpha)`: a number alpha (clamped 0–1) applies, otherwise unchanged | idiomatic: function instead of `IValueConverter` | color.test.ts "applyAlpha follows G9AlphaConverter.Convert" |
30
+ | `G9AlphaConverter.ConvertBack` | none | internal: MAUI threw `NotSupportedException`; there is no behaviour to port | none needed (no behaviour) |
31
+
32
+ ## `G9ColorExtension` and `G9PaletteSubscriptions`
33
+
34
+ MAUI pushed palette colours into XAML properties through a markup extension and a weak subscription registry. In
35
+ Lynx, components style themselves with `var(--g9-*)` (`g9Token`) and the provider sets the variables on its root, so a
36
+ theme switch repaints without re-rendering (specs/01 §6, WP02).
37
+
38
+ | MAUI | Lynx | Disposition | Tests |
39
+ | --- | --- | --- | --- |
40
+ | `G9ColorExtension.G9ColorExtension()` | `g9Token(token)` | idiomatic: tokens + CSS variables replace the markup extension (specs/03 §5) | tokens.test.ts "names token, metric and layout variables" |
41
+ | `G9ColorExtension.G9ColorExtension(G9ColorToken key)` | `g9Token(key)` → `var(--g9-…)` | idiomatic: tokens + CSS variables | tokens.test.ts "names token, metric and layout variables" |
42
+ | `G9ColorExtension.Key` | the `token` argument of `g9Token` / `cssVariableName` | idiomatic | tokens.test.ts "names token, metric and layout variables" |
43
+ | `G9ColorExtension.Alpha` | `withAlpha(theme.palette[token], alpha)` computed from the resolved palette (CSS variables cannot carry an alpha) | idiomatic | color.test.ts "withAlpha clamps and stores float32" |
44
+ | `G9ColorExtension.ProvideValue` | `g9Token(token)` in styles; live update by the provider's CSS variables | idiomatic | tokens.test.ts "emits one variable per palette colour" |
45
+ | `G9ColorExtension.ResolveColor` | `theme.palette[token]`, with alpha: `withAlpha(theme.palette[token], alpha)` | idiomatic: the palette is a plain object | theme.test.ts "layers stock < custom palette…"; color.test.ts "withAlpha clamps and stores float32" |
46
+ | `G9PaletteSubscriptions.Register` | `G9ThemeStore.subscribe(listener)` (returns unsubscribe); CSS variables for styling | idiomatic: explicit unsubscribe instead of weak references | theme.test.ts "unsubscribes, including from inside a notification…" |
47
+
48
+ ## `G9ColorToken` (95 members)
49
+
50
+ | MAUI | Lynx | Disposition | Tests |
51
+ | --- | --- | --- | --- |
52
+ | `G9ColorToken.Primary` | `G9ColorToken.Primary` (`'Primary'`), CSS `--g9-primary` | preserved | tokens.test.ts "has the 95 MAUI tokens…" |
53
+ | `G9ColorToken.OnPrimary` | `G9ColorToken.OnPrimary` (`'OnPrimary'`), CSS `--g9-on-primary` | preserved | tokens.test.ts "has the 95 MAUI tokens…" |
54
+ | `G9ColorToken.PrimaryContainer` | `G9ColorToken.PrimaryContainer` (`'PrimaryContainer'`), CSS `--g9-primary-container` | preserved | tokens.test.ts "has the 95 MAUI tokens…" |
55
+ | `G9ColorToken.OnPrimaryContainer` | `G9ColorToken.OnPrimaryContainer` (`'OnPrimaryContainer'`), CSS `--g9-on-primary-container` | preserved | tokens.test.ts "has the 95 MAUI tokens…" |
56
+ | `G9ColorToken.PrimaryBorder` | `G9ColorToken.PrimaryBorder` (`'PrimaryBorder'`), CSS `--g9-primary-border` | preserved | tokens.test.ts "has the 95 MAUI tokens…" |
57
+ | `G9ColorToken.PrimaryHover` | `G9ColorToken.PrimaryHover` (`'PrimaryHover'`), CSS `--g9-primary-hover` | preserved | tokens.test.ts "has the 95 MAUI tokens…" |
58
+ | `G9ColorToken.PrimaryPressed` | `G9ColorToken.PrimaryPressed` (`'PrimaryPressed'`), CSS `--g9-primary-pressed` | preserved | tokens.test.ts "has the 95 MAUI tokens…" |
59
+ | `G9ColorToken.Secondary` | `G9ColorToken.Secondary` (`'Secondary'`), CSS `--g9-secondary` | preserved | tokens.test.ts "has the 95 MAUI tokens…" |
60
+ | `G9ColorToken.OnSecondary` | `G9ColorToken.OnSecondary` (`'OnSecondary'`), CSS `--g9-on-secondary` | preserved | tokens.test.ts "has the 95 MAUI tokens…" |
61
+ | `G9ColorToken.SecondaryContainer` | `G9ColorToken.SecondaryContainer` (`'SecondaryContainer'`), CSS `--g9-secondary-container` | preserved | tokens.test.ts "has the 95 MAUI tokens…" |
62
+ | `G9ColorToken.OnSecondaryContainer` | `G9ColorToken.OnSecondaryContainer` (`'OnSecondaryContainer'`), CSS `--g9-on-secondary-container` | preserved | tokens.test.ts "has the 95 MAUI tokens…" |
63
+ | `G9ColorToken.SecondaryBorder` | `G9ColorToken.SecondaryBorder` (`'SecondaryBorder'`), CSS `--g9-secondary-border` | preserved | tokens.test.ts "has the 95 MAUI tokens…" |
64
+ | `G9ColorToken.Tertiary` | `G9ColorToken.Tertiary` (`'Tertiary'`), CSS `--g9-tertiary` | preserved | tokens.test.ts "has the 95 MAUI tokens…" |
65
+ | `G9ColorToken.OnTertiary` | `G9ColorToken.OnTertiary` (`'OnTertiary'`), CSS `--g9-on-tertiary` | preserved | tokens.test.ts "has the 95 MAUI tokens…" |
66
+ | `G9ColorToken.TertiaryContainer` | `G9ColorToken.TertiaryContainer` (`'TertiaryContainer'`), CSS `--g9-tertiary-container` | preserved | tokens.test.ts "has the 95 MAUI tokens…" |
67
+ | `G9ColorToken.OnTertiaryContainer` | `G9ColorToken.OnTertiaryContainer` (`'OnTertiaryContainer'`), CSS `--g9-on-tertiary-container` | preserved | tokens.test.ts "has the 95 MAUI tokens…" |
68
+ | `G9ColorToken.TertiaryBorder` | `G9ColorToken.TertiaryBorder` (`'TertiaryBorder'`), CSS `--g9-tertiary-border` | preserved | tokens.test.ts "has the 95 MAUI tokens…" |
69
+ | `G9ColorToken.Quaternary` | `G9ColorToken.Quaternary` (`'Quaternary'`), CSS `--g9-quaternary` | preserved | tokens.test.ts "has the 95 MAUI tokens…" |
70
+ | `G9ColorToken.OnQuaternary` | `G9ColorToken.OnQuaternary` (`'OnQuaternary'`), CSS `--g9-on-quaternary` | preserved | tokens.test.ts "has the 95 MAUI tokens…" |
71
+ | `G9ColorToken.QuaternaryContainer` | `G9ColorToken.QuaternaryContainer` (`'QuaternaryContainer'`), CSS `--g9-quaternary-container` | preserved | tokens.test.ts "has the 95 MAUI tokens…" |
72
+ | `G9ColorToken.OnQuaternaryContainer` | `G9ColorToken.OnQuaternaryContainer` (`'OnQuaternaryContainer'`), CSS `--g9-on-quaternary-container` | preserved | tokens.test.ts "has the 95 MAUI tokens…" |
73
+ | `G9ColorToken.QuaternaryBorder` | `G9ColorToken.QuaternaryBorder` (`'QuaternaryBorder'`), CSS `--g9-quaternary-border` | preserved | tokens.test.ts "has the 95 MAUI tokens…" |
74
+ | `G9ColorToken.Error` | `G9ColorToken.Error` (`'Error'`), CSS `--g9-error` | preserved | tokens.test.ts "has the 95 MAUI tokens…" |
75
+ | `G9ColorToken.OnError` | `G9ColorToken.OnError` (`'OnError'`), CSS `--g9-on-error` | preserved | tokens.test.ts "has the 95 MAUI tokens…" |
76
+ | `G9ColorToken.ErrorContainer` | `G9ColorToken.ErrorContainer` (`'ErrorContainer'`), CSS `--g9-error-container` | preserved | tokens.test.ts "has the 95 MAUI tokens…" |
77
+ | `G9ColorToken.OnErrorContainer` | `G9ColorToken.OnErrorContainer` (`'OnErrorContainer'`), CSS `--g9-on-error-container` | preserved | tokens.test.ts "has the 95 MAUI tokens…" |
78
+ | `G9ColorToken.ErrorBorder` | `G9ColorToken.ErrorBorder` (`'ErrorBorder'`), CSS `--g9-error-border` | preserved | tokens.test.ts "has the 95 MAUI tokens…" |
79
+ | `G9ColorToken.Warning` | `G9ColorToken.Warning` (`'Warning'`), CSS `--g9-warning` | preserved | tokens.test.ts "has the 95 MAUI tokens…" |
80
+ | `G9ColorToken.OnWarning` | `G9ColorToken.OnWarning` (`'OnWarning'`), CSS `--g9-on-warning` | preserved | tokens.test.ts "has the 95 MAUI tokens…" |
81
+ | `G9ColorToken.WarningContainer` | `G9ColorToken.WarningContainer` (`'WarningContainer'`), CSS `--g9-warning-container` | preserved | tokens.test.ts "has the 95 MAUI tokens…" |
82
+ | `G9ColorToken.OnWarningContainer` | `G9ColorToken.OnWarningContainer` (`'OnWarningContainer'`), CSS `--g9-on-warning-container` | preserved | tokens.test.ts "has the 95 MAUI tokens…" |
83
+ | `G9ColorToken.WarningBorder` | `G9ColorToken.WarningBorder` (`'WarningBorder'`), CSS `--g9-warning-border` | preserved | tokens.test.ts "has the 95 MAUI tokens…" |
84
+ | `G9ColorToken.Success` | `G9ColorToken.Success` (`'Success'`), CSS `--g9-success` | preserved | tokens.test.ts "has the 95 MAUI tokens…" |
85
+ | `G9ColorToken.OnSuccess` | `G9ColorToken.OnSuccess` (`'OnSuccess'`), CSS `--g9-on-success` | preserved | tokens.test.ts "has the 95 MAUI tokens…" |
86
+ | `G9ColorToken.SuccessContainer` | `G9ColorToken.SuccessContainer` (`'SuccessContainer'`), CSS `--g9-success-container` | preserved | tokens.test.ts "has the 95 MAUI tokens…" |
87
+ | `G9ColorToken.OnSuccessContainer` | `G9ColorToken.OnSuccessContainer` (`'OnSuccessContainer'`), CSS `--g9-on-success-container` | preserved | tokens.test.ts "has the 95 MAUI tokens…" |
88
+ | `G9ColorToken.SuccessBorder` | `G9ColorToken.SuccessBorder` (`'SuccessBorder'`), CSS `--g9-success-border` | preserved | tokens.test.ts "has the 95 MAUI tokens…" |
89
+ | `G9ColorToken.Info` | `G9ColorToken.Info` (`'Info'`), CSS `--g9-info` | preserved | tokens.test.ts "has the 95 MAUI tokens…" |
90
+ | `G9ColorToken.OnInfo` | `G9ColorToken.OnInfo` (`'OnInfo'`), CSS `--g9-on-info` | preserved | tokens.test.ts "has the 95 MAUI tokens…" |
91
+ | `G9ColorToken.InfoContainer` | `G9ColorToken.InfoContainer` (`'InfoContainer'`), CSS `--g9-info-container` | preserved | tokens.test.ts "has the 95 MAUI tokens…" |
92
+ | `G9ColorToken.OnInfoContainer` | `G9ColorToken.OnInfoContainer` (`'OnInfoContainer'`), CSS `--g9-on-info-container` | preserved | tokens.test.ts "has the 95 MAUI tokens…" |
93
+ | `G9ColorToken.InfoBorder` | `G9ColorToken.InfoBorder` (`'InfoBorder'`), CSS `--g9-info-border` | preserved | tokens.test.ts "has the 95 MAUI tokens…" |
94
+ | `G9ColorToken.Outline` | `G9ColorToken.Outline` (`'Outline'`), CSS `--g9-outline` | preserved | tokens.test.ts "has the 95 MAUI tokens…" |
95
+ | `G9ColorToken.OutlineVariant` | `G9ColorToken.OutlineVariant` (`'OutlineVariant'`), CSS `--g9-outline-variant` | preserved | tokens.test.ts "has the 95 MAUI tokens…" |
96
+ | `G9ColorToken.OutlineBorder` | `G9ColorToken.OutlineBorder` (`'OutlineBorder'`), CSS `--g9-outline-border` | preserved | tokens.test.ts "has the 95 MAUI tokens…" |
97
+ | `G9ColorToken.Background` | `G9ColorToken.Background` (`'Background'`), CSS `--g9-background` | preserved | tokens.test.ts "has the 95 MAUI tokens…" |
98
+ | `G9ColorToken.OnBackground` | `G9ColorToken.OnBackground` (`'OnBackground'`), CSS `--g9-on-background` | preserved | tokens.test.ts "has the 95 MAUI tokens…" |
99
+ | `G9ColorToken.BackgroundSecondary` | `G9ColorToken.BackgroundSecondary` (`'BackgroundSecondary'`), CSS `--g9-background-secondary` | preserved | tokens.test.ts "has the 95 MAUI tokens…" |
100
+ | `G9ColorToken.Surface` | `G9ColorToken.Surface` (`'Surface'`), CSS `--g9-surface` | preserved | tokens.test.ts "has the 95 MAUI tokens…" |
101
+ | `G9ColorToken.OnSurface` | `G9ColorToken.OnSurface` (`'OnSurface'`), CSS `--g9-on-surface` | preserved | tokens.test.ts "has the 95 MAUI tokens…" |
102
+ | `G9ColorToken.SurfaceVariant` | `G9ColorToken.SurfaceVariant` (`'SurfaceVariant'`), CSS `--g9-surface-variant` | preserved | tokens.test.ts "has the 95 MAUI tokens…" |
103
+ | `G9ColorToken.OnSurfaceVariant` | `G9ColorToken.OnSurfaceVariant` (`'OnSurfaceVariant'`), CSS `--g9-on-surface-variant` | preserved | tokens.test.ts "has the 95 MAUI tokens…" |
104
+ | `G9ColorToken.SurfaceBorder` | `G9ColorToken.SurfaceBorder` (`'SurfaceBorder'`), CSS `--g9-surface-border` | preserved | tokens.test.ts "has the 95 MAUI tokens…" |
105
+ | `G9ColorToken.InverseSurface` | `G9ColorToken.InverseSurface` (`'InverseSurface'`), CSS `--g9-inverse-surface` | preserved | tokens.test.ts "has the 95 MAUI tokens…" |
106
+ | `G9ColorToken.InverseOnSurface` | `G9ColorToken.InverseOnSurface` (`'InverseOnSurface'`), CSS `--g9-inverse-on-surface` | preserved | tokens.test.ts "has the 95 MAUI tokens…" |
107
+ | `G9ColorToken.InversePrimary` | `G9ColorToken.InversePrimary` (`'InversePrimary'`), CSS `--g9-inverse-primary` | preserved | tokens.test.ts "has the 95 MAUI tokens…" |
108
+ | `G9ColorToken.SurfaceContainerHighest` | `G9ColorToken.SurfaceContainerHighest` (`'SurfaceContainerHighest'`), CSS `--g9-surface-container-highest` | preserved | tokens.test.ts "has the 95 MAUI tokens…" |
109
+ | `G9ColorToken.SurfaceContainerHigh` | `G9ColorToken.SurfaceContainerHigh` (`'SurfaceContainerHigh'`), CSS `--g9-surface-container-high` | preserved | tokens.test.ts "has the 95 MAUI tokens…" |
110
+ | `G9ColorToken.SurfaceContainer` | `G9ColorToken.SurfaceContainer` (`'SurfaceContainer'`), CSS `--g9-surface-container` | preserved | tokens.test.ts "has the 95 MAUI tokens…" |
111
+ | `G9ColorToken.SurfaceContainerLow` | `G9ColorToken.SurfaceContainerLow` (`'SurfaceContainerLow'`), CSS `--g9-surface-container-low` | preserved | tokens.test.ts "has the 95 MAUI tokens…" |
112
+ | `G9ColorToken.SurfaceContainerLowest` | `G9ColorToken.SurfaceContainerLowest` (`'SurfaceContainerLowest'`), CSS `--g9-surface-container-lowest` | preserved | tokens.test.ts "has the 95 MAUI tokens…" |
113
+ | `G9ColorToken.SurfaceBright` | `G9ColorToken.SurfaceBright` (`'SurfaceBright'`), CSS `--g9-surface-bright` | preserved | tokens.test.ts "has the 95 MAUI tokens…" |
114
+ | `G9ColorToken.SurfaceDim` | `G9ColorToken.SurfaceDim` (`'SurfaceDim'`), CSS `--g9-surface-dim` | preserved | tokens.test.ts "has the 95 MAUI tokens…" |
115
+ | `G9ColorToken.Scrim` | `G9ColorToken.Scrim` (`'Scrim'`), CSS `--g9-scrim` | preserved | tokens.test.ts "has the 95 MAUI tokens…" |
116
+ | `G9ColorToken.ScrimLight` | `G9ColorToken.ScrimLight` (`'ScrimLight'`), CSS `--g9-scrim-light` | preserved | tokens.test.ts "has the 95 MAUI tokens…" |
117
+ | `G9ColorToken.Overlay` | `G9ColorToken.Overlay` (`'Overlay'`), CSS `--g9-overlay` | preserved | tokens.test.ts "has the 95 MAUI tokens…" |
118
+ | `G9ColorToken.OverlayLight` | `G9ColorToken.OverlayLight` (`'OverlayLight'`), CSS `--g9-overlay-light` | preserved | tokens.test.ts "has the 95 MAUI tokens…" |
119
+ | `G9ColorToken.TextPrimary` | `G9ColorToken.TextPrimary` (`'TextPrimary'`), CSS `--g9-text-primary` | preserved | tokens.test.ts "has the 95 MAUI tokens…" |
120
+ | `G9ColorToken.TextSecondary` | `G9ColorToken.TextSecondary` (`'TextSecondary'`), CSS `--g9-text-secondary` | preserved | tokens.test.ts "has the 95 MAUI tokens…" |
121
+ | `G9ColorToken.TextTertiary` | `G9ColorToken.TextTertiary` (`'TextTertiary'`), CSS `--g9-text-tertiary` | preserved | tokens.test.ts "has the 95 MAUI tokens…" |
122
+ | `G9ColorToken.TextDisabled` | `G9ColorToken.TextDisabled` (`'TextDisabled'`), CSS `--g9-text-disabled` | preserved | tokens.test.ts "has the 95 MAUI tokens…" |
123
+ | `G9ColorToken.White` | `G9ColorToken.White` (`'White'`), CSS `--g9-white` | preserved | tokens.test.ts "has the 95 MAUI tokens…" |
124
+ | `G9ColorToken.Black` | `G9ColorToken.Black` (`'Black'`), CSS `--g9-black` | preserved | tokens.test.ts "has the 95 MAUI tokens…" |
125
+ | `G9ColorToken.Light` | `G9ColorToken.Light` (`'Light'`), CSS `--g9-light` | preserved | tokens.test.ts "has the 95 MAUI tokens…" |
126
+ | `G9ColorToken.Dark` | `G9ColorToken.Dark` (`'Dark'`), CSS `--g9-dark` | preserved | tokens.test.ts "has the 95 MAUI tokens…" |
127
+ | `G9ColorToken.Divider` | `G9ColorToken.Divider` (`'Divider'`), CSS `--g9-divider` | preserved | tokens.test.ts "has the 95 MAUI tokens…" |
128
+ | `G9ColorToken.DividerStrong` | `G9ColorToken.DividerStrong` (`'DividerStrong'`), CSS `--g9-divider-strong` | preserved | tokens.test.ts "has the 95 MAUI tokens…" |
129
+ | `G9ColorToken.Focus` | `G9ColorToken.Focus` (`'Focus'`), CSS `--g9-focus` | preserved | tokens.test.ts "has the 95 MAUI tokens…" |
130
+ | `G9ColorToken.FocusVisible` | `G9ColorToken.FocusVisible` (`'FocusVisible'`), CSS `--g9-focus-visible` | preserved | tokens.test.ts "has the 95 MAUI tokens…" |
131
+ | `G9ColorToken.Disabled` | `G9ColorToken.Disabled` (`'Disabled'`), CSS `--g9-disabled` | preserved | tokens.test.ts "has the 95 MAUI tokens…" |
132
+ | `G9ColorToken.DisabledContainer` | `G9ColorToken.DisabledContainer` (`'DisabledContainer'`), CSS `--g9-disabled-container` | preserved | tokens.test.ts "has the 95 MAUI tokens…" |
133
+ | `G9ColorToken.CardBackground` | `G9ColorToken.CardBackground` (`'CardBackground'`), CSS `--g9-card-background` | preserved | tokens.test.ts "has the 95 MAUI tokens…" |
134
+ | `G9ColorToken.CardBorder` | `G9ColorToken.CardBorder` (`'CardBorder'`), CSS `--g9-card-border` | preserved | tokens.test.ts "has the 95 MAUI tokens…" |
135
+ | `G9ColorToken.CardElevated` | `G9ColorToken.CardElevated` (`'CardElevated'`), CSS `--g9-card-elevated` | preserved | tokens.test.ts "has the 95 MAUI tokens…" |
136
+ | `G9ColorToken.Default` | `G9ColorToken.Default` (`'Default'`), CSS `--g9-default` | preserved | tokens.test.ts "has the 95 MAUI tokens…" |
137
+ | `G9ColorToken.OnDefault` | `G9ColorToken.OnDefault` (`'OnDefault'`), CSS `--g9-on-default` | preserved | tokens.test.ts "has the 95 MAUI tokens…" |
138
+ | `G9ColorToken.DefaultContainer` | `G9ColorToken.DefaultContainer` (`'DefaultContainer'`), CSS `--g9-default-container` | preserved | tokens.test.ts "has the 95 MAUI tokens…" |
139
+ | `G9ColorToken.OnDefaultContainer` | `G9ColorToken.OnDefaultContainer` (`'OnDefaultContainer'`), CSS `--g9-on-default-container` | preserved | tokens.test.ts "has the 95 MAUI tokens…" |
140
+ | `G9ColorToken.DefaultBorder` | `G9ColorToken.DefaultBorder` (`'DefaultBorder'`), CSS `--g9-default-border` | preserved | tokens.test.ts "has the 95 MAUI tokens…" |
141
+ | `G9ColorToken.DefaultHover` | `G9ColorToken.DefaultHover` (`'DefaultHover'`), CSS `--g9-default-hover` | preserved | tokens.test.ts "has the 95 MAUI tokens…" |
142
+ | `G9ColorToken.DefaultPressed` | `G9ColorToken.DefaultPressed` (`'DefaultPressed'`), CSS `--g9-default-pressed` | preserved | tokens.test.ts "has the 95 MAUI tokens…" |
143
+ | `G9ColorToken.InputBackground` | `G9ColorToken.InputBackground` (`'InputBackground'`), CSS `--g9-input-background` | preserved | tokens.test.ts "has the 95 MAUI tokens…" |
144
+ | `G9ColorToken.InputBorder` | `G9ColorToken.InputBorder` (`'InputBorder'`), CSS `--g9-input-border` | preserved | tokens.test.ts "has the 95 MAUI tokens…" |
145
+ | `G9ColorToken.InputBorderFocused` | `G9ColorToken.InputBorderFocused` (`'InputBorderFocused'`), CSS `--g9-input-border-focused` | preserved | tokens.test.ts "has the 95 MAUI tokens…" |
146
+ | `G9ColorToken.InputPlaceholder` | `G9ColorToken.InputPlaceholder` (`'InputPlaceholder'`), CSS `--g9-input-placeholder` | preserved | tokens.test.ts "has the 95 MAUI tokens…" |
147
+
148
+ ## `G9LayoutMetrics`
149
+
150
+ | MAUI | Lynx | Disposition | Tests |
151
+ | --- | --- | --- | --- |
152
+ | `G9LayoutMetrics.InstallDefaults` | `toLayoutCssVariables(metrics)` emits every layout metric as `--g9-layout-*` (the provider sets them, WP02) | idiomatic: no resource dictionary to seed; every variable is always present | tokens.test.ts "emits layout metrics per side and corner" |
153
+ | `G9LayoutMetrics.ResolveFullScreenSheetTopPadding` | `resolveFullScreenSheetTopPadding({ safeAreaInset, useTopSafeAreaPadding, additionalTopSafeAreaPadding, topSafeAreaPaddingOverride })` | renamed: options object instead of four positional arguments | tokens.test.ts "resolveFullScreenSheetTopPadding reserves exactly the inset…" |
154
+ | `G9LayoutMetrics.EdgeSpacing` | `g9LayoutMetrics.EdgeSpacing` = 10; `--g9-layout-edge-spacing`; overridable | preserved | tokens.test.ts "match every literal fallback…" |
155
+ | `G9LayoutMetrics.ControlCornerRadius` | `g9LayoutMetrics.ControlCornerRadius` = 9; overridable | preserved | tokens.test.ts "match every literal fallback…" |
156
+ | `G9LayoutMetrics.ToolbarButtonSize` | `g9LayoutMetrics.ToolbarButtonSize` = 42; overridable | preserved | tokens.test.ts "match every literal fallback…" |
157
+ | `G9LayoutMetrics.ToolbarIconSize` | `g9LayoutMetrics.ToolbarIconSize` = 24; overridable | preserved | tokens.test.ts "match every literal fallback…" |
158
+ | `G9LayoutMetrics.FitContentLoadingMinHeight` | `g9LayoutMetrics.FitContentLoadingMinHeight` = 180; overridable | preserved | tokens.test.ts "match every literal fallback…" |
159
+ | `G9LayoutMetrics.ModalHeaderIconButtonSize` | `g9LayoutMetrics.ModalHeaderIconButtonSize` = 30; overridable | preserved | tokens.test.ts "match every literal fallback…" |
160
+ | `G9LayoutMetrics.ModalHeaderIconTitleSpacing` | `g9LayoutMetrics.ModalHeaderIconTitleSpacing` = 3; overridable | preserved | tokens.test.ts "match every literal fallback…" |
161
+ | `G9LayoutMetrics.SheetHeaderVerticalGap` | `g9LayoutMetrics.SheetHeaderVerticalGap` = 10; overridable | preserved | tokens.test.ts "match every literal fallback…" |
162
+ | `G9LayoutMetrics.SheetHeaderMinHeight` | `g9LayoutMetrics.SheetHeaderMinHeight` = 64; overridable | preserved | tokens.test.ts "match every literal fallback…" |
163
+ | `G9LayoutMetrics.SheetHeaderTitleFontSize` | `g9LayoutMetrics.SheetHeaderTitleFontSize` = 16.2; overridable | preserved | tokens.test.ts "match every literal fallback…" |
164
+ | `G9LayoutMetrics.ModalInnerIconSize` | `g9LayoutMetrics.ModalInnerIconSize` = 39; overridable | preserved | tokens.test.ts "match every literal fallback…" |
165
+ | `G9LayoutMetrics.ModalSheetHandleWidth` | `g9LayoutMetrics.ModalSheetHandleWidth` = 90; overridable | preserved | tokens.test.ts "match every literal fallback…" |
166
+ | `G9LayoutMetrics.ModalSheetHandleHeight` | `g9LayoutMetrics.ModalSheetHandleHeight` = 5; overridable | preserved | tokens.test.ts "match every literal fallback…" |
167
+ | `G9LayoutMetrics.ModalTargetHeaderHeight` | `g9LayoutMetrics.ModalTargetHeaderHeight` = 64; overridable | preserved | tokens.test.ts "match every literal fallback…" |
168
+ | `G9LayoutMetrics.ModalTargetTabBarHeight` | `g9LayoutMetrics.ModalTargetTabBarHeight` = 56; overridable | preserved | tokens.test.ts "match every literal fallback…" |
169
+ | `G9LayoutMetrics.ModalTargetCategoryRowHeight` | `g9LayoutMetrics.ModalTargetCategoryRowHeight` = 66; overridable | preserved | tokens.test.ts "match every literal fallback…" |
170
+ | `G9LayoutMetrics.ModalTargetFooterButtonHeight` | `g9LayoutMetrics.ModalTargetFooterButtonHeight` = 52; overridable | preserved | tokens.test.ts "match every literal fallback…" |
171
+ | `G9LayoutMetrics.SpacingXSmall` | `g9LayoutMetrics.SpacingXSmall` = 2; overridable | preserved | tokens.test.ts "match every literal fallback…" |
172
+ | `G9LayoutMetrics.SpacingSmall` | `g9LayoutMetrics.SpacingSmall` = 4; overridable | preserved | tokens.test.ts "match every literal fallback…" |
173
+ | `G9LayoutMetrics.SpacingMedium` | `g9LayoutMetrics.SpacingMedium` = 8; overridable | preserved | tokens.test.ts "match every literal fallback…" |
174
+ | `G9LayoutMetrics.SpacingLarge` | `g9LayoutMetrics.SpacingLarge` = 12; overridable | preserved | tokens.test.ts "match every literal fallback…" |
175
+ | `G9LayoutMetrics.SpacingXLarge` | `g9LayoutMetrics.SpacingXLarge` = 16; overridable | preserved | tokens.test.ts "match every literal fallback…" |
176
+ | `G9LayoutMetrics.ControlCellHeight` | `g9LayoutMetrics.ControlCellHeight` = 52; overridable | preserved | tokens.test.ts "match every literal fallback…" |
177
+ | `G9LayoutMetrics.MinTouchTarget` | `g9LayoutMetrics.MinTouchTarget` = 48; overridable | preserved | tokens.test.ts "match every literal fallback…" |
178
+ | `G9LayoutMetrics.SiteThumbnailSize` | `g9LayoutMetrics.SiteThumbnailSize` = 58; overridable | preserved | tokens.test.ts "match every literal fallback…" |
179
+ | `G9LayoutMetrics.MapChromeEdgeSpacing` | `g9LayoutMetrics.MapChromeEdgeSpacing` = 12; overridable | preserved | tokens.test.ts "match every literal fallback…" |
180
+ | `G9LayoutMetrics.ControlCornerRadiusValue` | `g9LayoutMetrics.ControlCornerRadiusValue` = 9 (`G9CornerRadius`); per-corner variables `--g9-layout-control-corner-radius-value-top-start` … | preserved | tokens.test.ts "match every literal fallback…"; "emits layout metrics per side and corner" |
181
+ | `G9LayoutMetrics.MapChromeCornerRadius` | `g9LayoutMetrics.MapChromeCornerRadius` = 24 (`G9CornerRadius`) | preserved | tokens.test.ts "match every literal fallback…" |
182
+ | `G9LayoutMetrics.EdgeHorizontalThickness` | `g9LayoutMetrics.EdgeHorizontalThickness` = `{ top: 0, end: 10, bottom: 0, start: 10 }` | preserved | tokens.test.ts "match every literal fallback…" |
183
+ | `G9LayoutMetrics.BodyPadding` | `g9LayoutMetrics.BodyPadding` = 10 on every side | preserved | tokens.test.ts "match every literal fallback…" |
184
+ | `G9LayoutMetrics.BodyElementMargin` | `g9LayoutMetrics.BodyElementMargin` = `{ top: 10, end: 10, bottom: 0, start: 10 }` | preserved | tokens.test.ts "match every literal fallback…" |
185
+ | `G9LayoutMetrics.BodyElementMarginWithBottomGap` | `g9LayoutMetrics.BodyElementMarginWithBottomGap` = 10 on every side | preserved | tokens.test.ts "match every literal fallback…" |
186
+ | `G9LayoutMetrics.BodyTopMargin` | `g9LayoutMetrics.BodyTopMargin` = `{ top: 10, end: 0, bottom: 0, start: 0 }` | preserved | tokens.test.ts "match every literal fallback…" |
187
+ | `G9LayoutMetrics.ItemBottomMargin` | `g9LayoutMetrics.ItemBottomMargin` = `{ top: 0, end: 0, bottom: 10, start: 0 }` | preserved | tokens.test.ts "match every literal fallback…" |
188
+ | `G9LayoutMetrics.ModalBaseBodyMargin` | `g9LayoutMetrics.ModalBaseBodyMargin` = `{ top: 0, end: 10, bottom: 10, start: 10 }` | preserved | tokens.test.ts "match every literal fallback…" |
189
+ | `G9LayoutMetrics.SearchFieldPadding` | `g9LayoutMetrics.SearchFieldPadding` = `{ top: 0, end: 12, bottom: 0, start: 14 }` | preserved | tokens.test.ts "match every literal fallback…" |
190
+ | `G9LayoutMetrics.CardPadding` | `g9LayoutMetrics.CardPadding` = `{ top: 12, end: 14, bottom: 12, start: 14 }` | preserved | tokens.test.ts "match every literal fallback…" |
191
+ | `G9LayoutMetrics.ListCardPadding` | `g9LayoutMetrics.ListCardPadding` = 12 on every side | preserved | tokens.test.ts "match every literal fallback…" |
192
+ | `G9LayoutMetrics.OutlinedCardPadding` | `g9LayoutMetrics.OutlinedCardPadding` = `{ top: 22, end: 14, bottom: 14, start: 14 }` | preserved | tokens.test.ts "match every literal fallback…" |
193
+ | `G9LayoutMetrics.OutlinedInputTopGap` | `g9LayoutMetrics.OutlinedInputTopGap` = `{ top: 16, end: 0, bottom: 0, start: 0 }` | preserved | tokens.test.ts "match every literal fallback…" |
194
+ | `G9LayoutMetrics.MapBottomBarMargin` | `g9LayoutMetrics.MapBottomBarMargin`: `MapChromeEdgeSpacing` on start, end, bottom unless overridden | preserved | tokens.test.ts "derives the footer and map members exactly as MAUI did" |
195
+ | `G9LayoutMetrics.G9BottomSheetFooterButtonHeight` | `g9LayoutMetrics.G9BottomSheetFooterButtonHeight` = `ModalTargetFooterButtonHeight` | preserved | tokens.test.ts "derives the footer and map members exactly as MAUI did" |
196
+ | `G9LayoutMetrics.G9BottomSheetFooterButtonSpacing` | `g9LayoutMetrics.G9BottomSheetFooterButtonSpacing` = `EdgeSpacing` | preserved | tokens.test.ts "derives the footer and map members exactly as MAUI did" |
197
+ | `G9LayoutMetrics.G9BottomSheetFooterPadding` | `g9LayoutMetrics.G9BottomSheetFooterPadding` = `EdgeSpacing` on every side | preserved | tokens.test.ts "derives the footer and map members exactly as MAUI did" |
198
+ | `G9LayoutMetrics.DeferredContentLoadDelayMs` | `g9LayoutMetricConstants.DeferredContentLoadDelayMs` = 369 (not overridable); `--g9-layout-deferred-content-load-delay-ms: 369ms` | preserved | tokens.test.ts "match every literal fallback…" |
199
+ | `G9LayoutMetrics.G9BottomSheetFooterTopBorderThickness` | `g9LayoutMetricConstants.G9BottomSheetFooterTopBorderThickness` = 1 | preserved | tokens.test.ts "match every literal fallback…" |
200
+ | `G9LayoutMetrics.G9BottomSheetFooterMaxButtonsPerRow` | `g9LayoutMetricConstants.G9BottomSheetFooterMaxButtonsPerRow` = 3 | preserved | tokens.test.ts "match every literal fallback…" |
201
+ | `G9LayoutMetrics.G9BottomSheetDragHandleTouchHeight` | `g9LayoutMetricConstants.G9BottomSheetDragHandleTouchHeight` = 30 | preserved | tokens.test.ts "match every literal fallback…" |
202
+ | `G9LayoutMetrics.G9BottomSheetDragHandleWidth` | `g9LayoutMetricConstants.G9BottomSheetDragHandleWidth` = 32 | preserved | tokens.test.ts "match every literal fallback…" |
203
+ | `G9LayoutMetrics.G9BottomSheetDragHandleHeight` | `g9LayoutMetricConstants.G9BottomSheetDragHandleHeight` = 4 | preserved | tokens.test.ts "match every literal fallback…" |
204
+ | `G9LayoutMetrics.G9BottomSheetBackdropCardThreshold` | `g9LayoutMetricConstants.G9BottomSheetBackdropCardThreshold` = 0.75 | preserved | tokens.test.ts "match every literal fallback…" |
205
+ | `G9LayoutMetrics.G9BottomSheetBackdropCardMinScale` | `g9LayoutMetricConstants.G9BottomSheetBackdropCardMinScale` = 0.93 | preserved | tokens.test.ts "match every literal fallback…" |
206
+ | `G9LayoutMetrics.G9BottomSheetBackdropCardTranslationY` | `g9LayoutMetricConstants.G9BottomSheetBackdropCardTranslationY` = 12 | preserved | tokens.test.ts "match every literal fallback…" |
207
+
208
+ ## `G9Palette`
209
+
210
+ | MAUI | Lynx | Disposition | Tests |
211
+ | --- | --- | --- | --- |
212
+ | `G9Palette.Current` | `G9ThemeStore.getSnapshot().palette` of the store the provider owns (no global singleton) | idiomatic: a store value instead of a static mutable instance | theme.test.ts "changes theme on setMode and notifies once…" |
213
+ | `G9Palette.BeginBatchUpdate` | `G9ThemeStore.beginBatch()` (nests) | renamed | theme.test.ts "batches nest and the outermost close notifies once…" |
214
+ | `G9Palette.EndBatchUpdate` | `G9ThemeStore.endBatch()`: the outermost close notifies once, only if something changed; an unbalanced close is ignored | renamed | theme.test.ts "batches nest and the outermost close notifies once…" |
215
+ | `G9Palette.Apply` | `G9ThemeStore.apply(values)`: a complete, validated palette, one notification; kept until the next mode/scheme change re-resolves the theme | renamed | theme.test.ts "apply paints a complete palette…" |
216
+
217
+ ## `G9PaletteValues` (95 positional members)
218
+
219
+ A plain readonly object type keyed by token (`G9PaletteValues`); `createPalette(values)` validates completeness and
220
+ colours. Stock values: `g9LightPalette`, `g9DarkPalette`.
221
+
222
+ | MAUI | Lynx | Disposition | Tests |
223
+ | --- | --- | --- | --- |
224
+ | `G9PaletteValues.Primary` | `G9PaletteValues['Primary']` (CSS colour string) | preserved | tokens.test.ts "reproduces every light and dark colour…" |
225
+ | `G9PaletteValues.OnPrimary` | `G9PaletteValues['OnPrimary']` (CSS colour string) | preserved | tokens.test.ts "reproduces every light and dark colour…" |
226
+ | `G9PaletteValues.PrimaryContainer` | `G9PaletteValues['PrimaryContainer']` (CSS colour string) | preserved | tokens.test.ts "reproduces every light and dark colour…" |
227
+ | `G9PaletteValues.OnPrimaryContainer` | `G9PaletteValues['OnPrimaryContainer']` (CSS colour string) | preserved | tokens.test.ts "reproduces every light and dark colour…" |
228
+ | `G9PaletteValues.PrimaryBorder` | `G9PaletteValues['PrimaryBorder']` (CSS colour string) | preserved | tokens.test.ts "reproduces every light and dark colour…" |
229
+ | `G9PaletteValues.PrimaryHover` | `G9PaletteValues['PrimaryHover']` (CSS colour string) | preserved | tokens.test.ts "reproduces every light and dark colour…" |
230
+ | `G9PaletteValues.PrimaryPressed` | `G9PaletteValues['PrimaryPressed']` (CSS colour string) | preserved | tokens.test.ts "reproduces every light and dark colour…" |
231
+ | `G9PaletteValues.Secondary` | `G9PaletteValues['Secondary']` (CSS colour string) | preserved | tokens.test.ts "reproduces every light and dark colour…" |
232
+ | `G9PaletteValues.OnSecondary` | `G9PaletteValues['OnSecondary']` (CSS colour string) | preserved | tokens.test.ts "reproduces every light and dark colour…" |
233
+ | `G9PaletteValues.SecondaryContainer` | `G9PaletteValues['SecondaryContainer']` (CSS colour string) | preserved | tokens.test.ts "reproduces every light and dark colour…" |
234
+ | `G9PaletteValues.OnSecondaryContainer` | `G9PaletteValues['OnSecondaryContainer']` (CSS colour string) | preserved | tokens.test.ts "reproduces every light and dark colour…" |
235
+ | `G9PaletteValues.SecondaryBorder` | `G9PaletteValues['SecondaryBorder']` (CSS colour string) | preserved | tokens.test.ts "reproduces every light and dark colour…" |
236
+ | `G9PaletteValues.Tertiary` | `G9PaletteValues['Tertiary']` (CSS colour string) | preserved | tokens.test.ts "reproduces every light and dark colour…" |
237
+ | `G9PaletteValues.OnTertiary` | `G9PaletteValues['OnTertiary']` (CSS colour string) | preserved | tokens.test.ts "reproduces every light and dark colour…" |
238
+ | `G9PaletteValues.TertiaryContainer` | `G9PaletteValues['TertiaryContainer']` (CSS colour string) | preserved | tokens.test.ts "reproduces every light and dark colour…" |
239
+ | `G9PaletteValues.OnTertiaryContainer` | `G9PaletteValues['OnTertiaryContainer']` (CSS colour string) | preserved | tokens.test.ts "reproduces every light and dark colour…" |
240
+ | `G9PaletteValues.TertiaryBorder` | `G9PaletteValues['TertiaryBorder']` (CSS colour string) | preserved | tokens.test.ts "reproduces every light and dark colour…" |
241
+ | `G9PaletteValues.Quaternary` | `G9PaletteValues['Quaternary']` (CSS colour string) | preserved | tokens.test.ts "reproduces every light and dark colour…" |
242
+ | `G9PaletteValues.OnQuaternary` | `G9PaletteValues['OnQuaternary']` (CSS colour string) | preserved | tokens.test.ts "reproduces every light and dark colour…" |
243
+ | `G9PaletteValues.QuaternaryContainer` | `G9PaletteValues['QuaternaryContainer']` (CSS colour string) | preserved | tokens.test.ts "reproduces every light and dark colour…" |
244
+ | `G9PaletteValues.OnQuaternaryContainer` | `G9PaletteValues['OnQuaternaryContainer']` (CSS colour string) | preserved | tokens.test.ts "reproduces every light and dark colour…" |
245
+ | `G9PaletteValues.QuaternaryBorder` | `G9PaletteValues['QuaternaryBorder']` (CSS colour string) | preserved | tokens.test.ts "reproduces every light and dark colour…" |
246
+ | `G9PaletteValues.Error` | `G9PaletteValues['Error']` (CSS colour string) | preserved | tokens.test.ts "reproduces every light and dark colour…" |
247
+ | `G9PaletteValues.OnError` | `G9PaletteValues['OnError']` (CSS colour string) | preserved | tokens.test.ts "reproduces every light and dark colour…" |
248
+ | `G9PaletteValues.ErrorContainer` | `G9PaletteValues['ErrorContainer']` (CSS colour string) | preserved | tokens.test.ts "reproduces every light and dark colour…" |
249
+ | `G9PaletteValues.OnErrorContainer` | `G9PaletteValues['OnErrorContainer']` (CSS colour string) | preserved | tokens.test.ts "reproduces every light and dark colour…" |
250
+ | `G9PaletteValues.ErrorBorder` | `G9PaletteValues['ErrorBorder']` (CSS colour string) | preserved | tokens.test.ts "reproduces every light and dark colour…" |
251
+ | `G9PaletteValues.Warning` | `G9PaletteValues['Warning']` (CSS colour string) | preserved | tokens.test.ts "reproduces every light and dark colour…" |
252
+ | `G9PaletteValues.OnWarning` | `G9PaletteValues['OnWarning']` (CSS colour string) | preserved | tokens.test.ts "reproduces every light and dark colour…" |
253
+ | `G9PaletteValues.WarningContainer` | `G9PaletteValues['WarningContainer']` (CSS colour string) | preserved | tokens.test.ts "reproduces every light and dark colour…" |
254
+ | `G9PaletteValues.OnWarningContainer` | `G9PaletteValues['OnWarningContainer']` (CSS colour string) | preserved | tokens.test.ts "reproduces every light and dark colour…" |
255
+ | `G9PaletteValues.WarningBorder` | `G9PaletteValues['WarningBorder']` (CSS colour string) | preserved | tokens.test.ts "reproduces every light and dark colour…" |
256
+ | `G9PaletteValues.Success` | `G9PaletteValues['Success']` (CSS colour string) | preserved | tokens.test.ts "reproduces every light and dark colour…" |
257
+ | `G9PaletteValues.OnSuccess` | `G9PaletteValues['OnSuccess']` (CSS colour string) | preserved | tokens.test.ts "reproduces every light and dark colour…" |
258
+ | `G9PaletteValues.SuccessContainer` | `G9PaletteValues['SuccessContainer']` (CSS colour string) | preserved | tokens.test.ts "reproduces every light and dark colour…" |
259
+ | `G9PaletteValues.OnSuccessContainer` | `G9PaletteValues['OnSuccessContainer']` (CSS colour string) | preserved | tokens.test.ts "reproduces every light and dark colour…" |
260
+ | `G9PaletteValues.SuccessBorder` | `G9PaletteValues['SuccessBorder']` (CSS colour string) | preserved | tokens.test.ts "reproduces every light and dark colour…" |
261
+ | `G9PaletteValues.Info` | `G9PaletteValues['Info']` (CSS colour string) | preserved | tokens.test.ts "reproduces every light and dark colour…" |
262
+ | `G9PaletteValues.OnInfo` | `G9PaletteValues['OnInfo']` (CSS colour string) | preserved | tokens.test.ts "reproduces every light and dark colour…" |
263
+ | `G9PaletteValues.InfoContainer` | `G9PaletteValues['InfoContainer']` (CSS colour string) | preserved | tokens.test.ts "reproduces every light and dark colour…" |
264
+ | `G9PaletteValues.OnInfoContainer` | `G9PaletteValues['OnInfoContainer']` (CSS colour string) | preserved | tokens.test.ts "reproduces every light and dark colour…" |
265
+ | `G9PaletteValues.InfoBorder` | `G9PaletteValues['InfoBorder']` (CSS colour string) | preserved | tokens.test.ts "reproduces every light and dark colour…" |
266
+ | `G9PaletteValues.Outline` | `G9PaletteValues['Outline']` (CSS colour string) | preserved | tokens.test.ts "reproduces every light and dark colour…" |
267
+ | `G9PaletteValues.OutlineVariant` | `G9PaletteValues['OutlineVariant']` (CSS colour string) | preserved | tokens.test.ts "reproduces every light and dark colour…" |
268
+ | `G9PaletteValues.OutlineBorder` | `G9PaletteValues['OutlineBorder']` (CSS colour string) | preserved | tokens.test.ts "reproduces every light and dark colour…" |
269
+ | `G9PaletteValues.Background` | `G9PaletteValues['Background']` (CSS colour string) | preserved | tokens.test.ts "reproduces every light and dark colour…" |
270
+ | `G9PaletteValues.OnBackground` | `G9PaletteValues['OnBackground']` (CSS colour string) | preserved | tokens.test.ts "reproduces every light and dark colour…" |
271
+ | `G9PaletteValues.BackgroundSecondary` | `G9PaletteValues['BackgroundSecondary']` (CSS colour string) | preserved | tokens.test.ts "reproduces every light and dark colour…" |
272
+ | `G9PaletteValues.Surface` | `G9PaletteValues['Surface']` (CSS colour string) | preserved | tokens.test.ts "reproduces every light and dark colour…" |
273
+ | `G9PaletteValues.OnSurface` | `G9PaletteValues['OnSurface']` (CSS colour string) | preserved | tokens.test.ts "reproduces every light and dark colour…" |
274
+ | `G9PaletteValues.SurfaceVariant` | `G9PaletteValues['SurfaceVariant']` (CSS colour string) | preserved | tokens.test.ts "reproduces every light and dark colour…" |
275
+ | `G9PaletteValues.OnSurfaceVariant` | `G9PaletteValues['OnSurfaceVariant']` (CSS colour string) | preserved | tokens.test.ts "reproduces every light and dark colour…" |
276
+ | `G9PaletteValues.SurfaceBorder` | `G9PaletteValues['SurfaceBorder']` (CSS colour string) | preserved | tokens.test.ts "reproduces every light and dark colour…" |
277
+ | `G9PaletteValues.InverseSurface` | `G9PaletteValues['InverseSurface']` (CSS colour string) | preserved | tokens.test.ts "reproduces every light and dark colour…" |
278
+ | `G9PaletteValues.InverseOnSurface` | `G9PaletteValues['InverseOnSurface']` (CSS colour string) | preserved | tokens.test.ts "reproduces every light and dark colour…" |
279
+ | `G9PaletteValues.InversePrimary` | `G9PaletteValues['InversePrimary']` (CSS colour string) | preserved | tokens.test.ts "reproduces every light and dark colour…" |
280
+ | `G9PaletteValues.SurfaceContainerHighest` | `G9PaletteValues['SurfaceContainerHighest']` (CSS colour string) | preserved | tokens.test.ts "reproduces every light and dark colour…" |
281
+ | `G9PaletteValues.SurfaceContainerHigh` | `G9PaletteValues['SurfaceContainerHigh']` (CSS colour string) | preserved | tokens.test.ts "reproduces every light and dark colour…" |
282
+ | `G9PaletteValues.SurfaceContainer` | `G9PaletteValues['SurfaceContainer']` (CSS colour string) | preserved | tokens.test.ts "reproduces every light and dark colour…" |
283
+ | `G9PaletteValues.SurfaceContainerLow` | `G9PaletteValues['SurfaceContainerLow']` (CSS colour string) | preserved | tokens.test.ts "reproduces every light and dark colour…" |
284
+ | `G9PaletteValues.SurfaceContainerLowest` | `G9PaletteValues['SurfaceContainerLowest']` (CSS colour string) | preserved | tokens.test.ts "reproduces every light and dark colour…" |
285
+ | `G9PaletteValues.SurfaceBright` | `G9PaletteValues['SurfaceBright']` (CSS colour string) | preserved | tokens.test.ts "reproduces every light and dark colour…" |
286
+ | `G9PaletteValues.SurfaceDim` | `G9PaletteValues['SurfaceDim']` (CSS colour string) | preserved | tokens.test.ts "reproduces every light and dark colour…" |
287
+ | `G9PaletteValues.Scrim` | `G9PaletteValues['Scrim']` (CSS colour string) | preserved | tokens.test.ts "reproduces every light and dark colour…" |
288
+ | `G9PaletteValues.ScrimLight` | `G9PaletteValues['ScrimLight']` (CSS colour string) | preserved | tokens.test.ts "reproduces every light and dark colour…" |
289
+ | `G9PaletteValues.Overlay` | `G9PaletteValues['Overlay']` (CSS colour string) | preserved | tokens.test.ts "reproduces every light and dark colour…" |
290
+ | `G9PaletteValues.OverlayLight` | `G9PaletteValues['OverlayLight']` (CSS colour string) | preserved | tokens.test.ts "reproduces every light and dark colour…" |
291
+ | `G9PaletteValues.TextPrimary` | `G9PaletteValues['TextPrimary']` (CSS colour string) | preserved | tokens.test.ts "reproduces every light and dark colour…" |
292
+ | `G9PaletteValues.TextSecondary` | `G9PaletteValues['TextSecondary']` (CSS colour string) | preserved | tokens.test.ts "reproduces every light and dark colour…" |
293
+ | `G9PaletteValues.TextTertiary` | `G9PaletteValues['TextTertiary']` (CSS colour string) | preserved | tokens.test.ts "reproduces every light and dark colour…" |
294
+ | `G9PaletteValues.TextDisabled` | `G9PaletteValues['TextDisabled']` (CSS colour string) | preserved | tokens.test.ts "reproduces every light and dark colour…" |
295
+ | `G9PaletteValues.White` | `G9PaletteValues['White']` (CSS colour string) | preserved | tokens.test.ts "reproduces every light and dark colour…" |
296
+ | `G9PaletteValues.Black` | `G9PaletteValues['Black']` (CSS colour string) | preserved | tokens.test.ts "reproduces every light and dark colour…" |
297
+ | `G9PaletteValues.Light` | `G9PaletteValues['Light']` (CSS colour string) | preserved | tokens.test.ts "reproduces every light and dark colour…" |
298
+ | `G9PaletteValues.Dark` | `G9PaletteValues['Dark']` (CSS colour string) | preserved | tokens.test.ts "reproduces every light and dark colour…" |
299
+ | `G9PaletteValues.Divider` | `G9PaletteValues['Divider']` (CSS colour string) | preserved | tokens.test.ts "reproduces every light and dark colour…" |
300
+ | `G9PaletteValues.DividerStrong` | `G9PaletteValues['DividerStrong']` (CSS colour string) | preserved | tokens.test.ts "reproduces every light and dark colour…" |
301
+ | `G9PaletteValues.Focus` | `G9PaletteValues['Focus']` (CSS colour string) | preserved | tokens.test.ts "reproduces every light and dark colour…" |
302
+ | `G9PaletteValues.FocusVisible` | `G9PaletteValues['FocusVisible']` (CSS colour string) | preserved | tokens.test.ts "reproduces every light and dark colour…" |
303
+ | `G9PaletteValues.Disabled` | `G9PaletteValues['Disabled']` (CSS colour string) | preserved | tokens.test.ts "reproduces every light and dark colour…" |
304
+ | `G9PaletteValues.DisabledContainer` | `G9PaletteValues['DisabledContainer']` (CSS colour string) | preserved | tokens.test.ts "reproduces every light and dark colour…" |
305
+ | `G9PaletteValues.CardBackground` | `G9PaletteValues['CardBackground']` (CSS colour string) | preserved | tokens.test.ts "reproduces every light and dark colour…" |
306
+ | `G9PaletteValues.CardBorder` | `G9PaletteValues['CardBorder']` (CSS colour string) | preserved | tokens.test.ts "reproduces every light and dark colour…" |
307
+ | `G9PaletteValues.CardElevated` | `G9PaletteValues['CardElevated']` (CSS colour string) | preserved | tokens.test.ts "reproduces every light and dark colour…" |
308
+ | `G9PaletteValues.Default` | `G9PaletteValues['Default']` (CSS colour string) | preserved | tokens.test.ts "reproduces every light and dark colour…" |
309
+ | `G9PaletteValues.OnDefault` | `G9PaletteValues['OnDefault']` (CSS colour string) | preserved | tokens.test.ts "reproduces every light and dark colour…" |
310
+ | `G9PaletteValues.DefaultContainer` | `G9PaletteValues['DefaultContainer']` (CSS colour string) | preserved | tokens.test.ts "reproduces every light and dark colour…" |
311
+ | `G9PaletteValues.OnDefaultContainer` | `G9PaletteValues['OnDefaultContainer']` (CSS colour string) | preserved | tokens.test.ts "reproduces every light and dark colour…" |
312
+ | `G9PaletteValues.DefaultBorder` | `G9PaletteValues['DefaultBorder']` (CSS colour string) | preserved | tokens.test.ts "reproduces every light and dark colour…" |
313
+ | `G9PaletteValues.DefaultHover` | `G9PaletteValues['DefaultHover']` (CSS colour string) | preserved | tokens.test.ts "reproduces every light and dark colour…" |
314
+ | `G9PaletteValues.DefaultPressed` | `G9PaletteValues['DefaultPressed']` (CSS colour string) | preserved | tokens.test.ts "reproduces every light and dark colour…" |
315
+ | `G9PaletteValues.InputBackground` | `G9PaletteValues['InputBackground']` (CSS colour string) | preserved | tokens.test.ts "reproduces every light and dark colour…" |
316
+ | `G9PaletteValues.InputBorder` | `G9PaletteValues['InputBorder']` (CSS colour string) | preserved | tokens.test.ts "reproduces every light and dark colour…" |
317
+ | `G9PaletteValues.InputBorderFocused` | `G9PaletteValues['InputBorderFocused']` (CSS colour string) | preserved | tokens.test.ts "reproduces every light and dark colour…" |
318
+ | `G9PaletteValues.InputPlaceholder` | `G9PaletteValues['InputPlaceholder']` (CSS colour string) | preserved | tokens.test.ts "reproduces every light and dark colour…" |
319
+
320
+ ## `G9Theme`, `G9ThemeLight`, `G9ThemeDark`
321
+
322
+ | MAUI | Lynx | Disposition | Tests |
323
+ | --- | --- | --- | --- |
324
+ | `G9Theme.Init` | `createThemeStore({ mode, systemScheme })`; the provider (WP02) creates it, feeds the platform scheme and sets the CSS variables | idiomatic: a store value instead of static init against `Application.Current` (no "called too early" failure mode) | theme.test.ts "changes theme on setMode and notifies once…" |
325
+ | `G9Theme.ChangeTheme` | `G9ThemeStore.setMode(mode)` (`'system'`, `'light'` or `'dark'` for `AppTheme`) | changed: the store does not persist the choice itself; MAUI wrote it to `G9Preferences` key `theme`. The caller subscribes and saves (the provider does this through the preferences service, WP02) | theme.test.ts "changes theme on setMode and notifies once…" |
326
+ | `G9Theme.ApplyCurrent` | automatic: every store change re-resolves (`resolveTheme`); `setSystemScheme(scheme)` is the platform-change input and repaints only in `'system'` mode; a change requested by a listener mid-notification runs after the current round | idiomatic | theme.test.ts "follows the platform scheme only while the mode is system…"; "delivers a change made by a listener after the current round…" |
327
+ | `G9ThemeLight.G9ThemeLight` | `g9LightPalette` (generated from `golden/theme-palettes.json`) | idiomatic: data instead of a XAML resource dictionary | tokens.test.ts "reproduces every light and dark colour channel-exactly" |
328
+ | `G9ThemeDark.G9ThemeDark` | `g9DarkPalette` (generated from `golden/theme-palettes.json`) | idiomatic: data instead of a XAML resource dictionary | tokens.test.ts "reproduces every light and dark colour channel-exactly" |
package/package.json CHANGED
@@ -1,6 +1,61 @@
1
1
  {
2
2
  "name": "@g9tm/lynxcontrols-foundation",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "1.4.0",
4
+ "description": "Pure TypeScript core: design tokens, theme model, culture (strings, digits, calendars, relative time, durations), icon model, safe execution, diagnostics, preference and capability contracts. No React, no UI.",
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "sideEffects": false,
8
+ "exports": {
9
+ ".": {
10
+ "source": "./src/index.ts",
11
+ "types": "./dist/index.d.ts",
12
+ "default": "./dist/index.js"
13
+ },
14
+ "./tokens": {
15
+ "source": "./src/tokens/index.ts",
16
+ "types": "./dist/tokens/index.d.ts",
17
+ "default": "./dist/tokens/index.js"
18
+ },
19
+ "./theme": {
20
+ "source": "./src/theme/index.ts",
21
+ "types": "./dist/theme/index.d.ts",
22
+ "default": "./dist/theme/index.js"
23
+ },
24
+ "./culture": {
25
+ "source": "./src/culture/index.ts",
26
+ "types": "./dist/culture/index.d.ts",
27
+ "default": "./dist/culture/index.js"
28
+ },
29
+ "./icons": {
30
+ "source": "./src/icons/index.ts",
31
+ "types": "./dist/icons/index.d.ts",
32
+ "default": "./dist/icons/index.js"
33
+ },
34
+ "./enums": {
35
+ "source": "./src/enums/index.ts",
36
+ "types": "./dist/enums/index.d.ts",
37
+ "default": "./dist/enums/index.js"
38
+ },
39
+ "./exec": {
40
+ "source": "./src/exec/index.ts",
41
+ "types": "./dist/exec/index.d.ts",
42
+ "default": "./dist/exec/index.js"
43
+ },
44
+ "./services": {
45
+ "source": "./src/services/index.ts",
46
+ "types": "./dist/services/index.d.ts",
47
+ "default": "./dist/services/index.js"
48
+ }
49
+ },
50
+ "files": [
51
+ "dist",
52
+ "docs",
53
+ "README.md"
54
+ ],
55
+ "scripts": {
56
+ "build": "rslib build"
57
+ },
58
+ "dependencies": {
59
+ "@internationalized/date": "3.12.4"
60
+ }
61
+ }