@g9tm/lynxcontrols-foundation 2.5.9 → 2.5.11

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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "catalogVersion": 1,
3
3
  "package": "@g9tm/lynxcontrols-foundation",
4
- "version": "2.5.9",
4
+ "version": "2.5.11",
5
5
  "generatedBy": "node scripts/check-docs.mjs --write",
6
6
  "components": [],
7
7
  "exports": [
@@ -186,7 +186,7 @@
186
186
  "export": "comboLabel",
187
187
  "from": "@g9tm/lynxcontrols-foundation/services",
188
188
  "kind": "function",
189
- "signature": "(combo: string, platform?: \"mac\" | \"other\"): string",
189
+ "signature": "(combo: string, platform?: \"other\" | \"mac\"): string",
190
190
  "summary": "How a combo reads on a key cap (`'Mod+K'` → `'Ctrl K'` / `'⌘ K'`)."
191
191
  },
192
192
  {
@@ -821,6 +821,14 @@
821
821
  "signature": "readonly { readonly id: string; readonly color: string; readonly name: Readonly<Record<string, string>>; }[]",
822
822
  "summary": "Accent colours offered by \"pick a colour\" UIs (G9Hub ACCENT_PRESETS, SAC brand picker). Tested for contrast."
823
823
  },
824
+ {
825
+ "id": "foundation.theme.g9AccentTokens",
826
+ "export": "g9AccentTokens",
827
+ "from": "@g9tm/lynxcontrols-foundation/theme",
828
+ "kind": "function",
829
+ "signature": "(accent: string, scheme: G9ColorScheme): Readonly<Partial<Record<\"link\" | \"text\" | \"info\" | \"success\" | \"warning\" | \"surface\" | \"accent\" | \"bg\" | \"scrim\" | \"bg-elev\" | \"surface-2\" | \"surface-3\" | \"border\" | \"border-strong\" | \"text-2\" | \"text-3\" | \"danger\" | \"hover\" | \"press\" | \"field\" | \"skeleton\" | \"accent-soft\" | \"accent-glow\" | \"accent-gradient\" | \"text-on-accent\" | \"glass\" | \"glass-border\" | \"",
830
+ "summary": "Every token a single accent colour sets, for a scheme (G9Hub `accentTokens`): `color-mix()` values, resolved when the theme is read. `{}` for something that is not a colour."
831
+ },
824
832
  {
825
833
  "id": "foundation.theme.g9ActiveThemeId",
826
834
  "export": "g9ActiveThemeId",
@@ -885,6 +893,14 @@
885
893
  "signature": "Readonly<{ berjis: { ground: string; surface: string; sunken: string; ink: string; ink2: string; ink3: string; onInk: string; line: string; line2: string; primary: string; onPrimary: string; primaryText: string; primaryWash: string; accent: string; accentText: string; positive: string; positiveText: string; alert: string; }; riskara: { bg: string; surface: string; surface2: string; line: string; l",
886
894
  "summary": "Ready-made alias maps for the four G9 apps' existing names (the migration guides start from these)."
887
895
  },
896
+ {
897
+ "id": "foundation.theme.g9AllAppTokenNames",
898
+ "export": "g9AllAppTokenNames",
899
+ "from": "@g9tm/lynxcontrols-foundation/theme",
900
+ "kind": "constant",
901
+ "signature": "readonly string[]",
902
+ "summary": "Every app token name the library knows: its own and a token theme's (2.5.10), for a sanitizer or an editor."
903
+ },
888
904
  {
889
905
  "id": "foundation.route.G9AnchorRisk",
890
906
  "export": "G9AnchorRisk",
@@ -893,6 +909,14 @@
893
909
  "signature": "G9AnchorRisk",
894
910
  "summary": "What pressing a control does to data."
895
911
  },
912
+ {
913
+ "id": "foundation.theme.g9AppearanceClasses",
914
+ "export": "g9AppearanceClasses",
915
+ "from": "@g9tm/lynxcontrols-foundation/theme",
916
+ "kind": "function",
917
+ "signature": "(settings: G9AppearanceSettings, scheme: G9ColorScheme, device?: { readonly reducedMotion?: boolean; readonly lowEnd?: boolean; }): string[]",
918
+ "summary": "The classes an app's root takes for the appearance in force (2.5.10, G9Hub's root classes): `g9-scheme-dark`, `g9-density-compact`, `g9-effects-off`, `g9-effects-off--low-end` / `--reduced-motion`, `g9-text-large`."
919
+ },
896
920
  {
897
921
  "id": "foundation.theme.G9AppearanceSettings",
898
922
  "export": "G9AppearanceSettings",
@@ -949,6 +973,22 @@
949
973
  "signature": "G9StringTable",
950
974
  "summary": "Arabic translation of every built-in string. Opt-in, like `g9PersianStrings`. Count templates use one form; apps that need Arabic plural agreement override those keys or supply a provider."
951
975
  },
976
+ {
977
+ "id": "foundation.theme.g9BackgroundStyle",
978
+ "export": "g9BackgroundStyle",
979
+ "from": "@g9tm/lynxcontrols-foundation/theme",
980
+ "kind": "function",
981
+ "signature": "(css: string, tokens?: Readonly<Record<string, string>>): G9BackgroundStyle",
982
+ "summary": "A CSS `background` (a token theme's `wallpaper`, a `G9CssWallpaper`) as a Lynx view's style (2.5.10): the tokens substituted, colour functions computed, the last plain layer as the colour, every image layer's position, size and repeat split out."
983
+ },
984
+ {
985
+ "id": "foundation.theme.G9BackgroundStyle",
986
+ "export": "G9BackgroundStyle",
987
+ "from": "@g9tm/lynxcontrols-foundation/theme",
988
+ "kind": "interface",
989
+ "signature": "G9BackgroundStyle",
990
+ "summary": "The style a CSS background takes on a Lynx view (each property a comma list, one entry per image layer)."
991
+ },
952
992
  {
953
993
  "id": "foundation.route.G9BilingualText",
954
994
  "export": "G9BilingualText",
@@ -997,6 +1037,14 @@
997
1037
  "signature": "(draft: G9PersonalThemeDraft, palettes: { readonly light: G9PaletteValues; readonly dark: G9PaletteValues; }): G9ThemeDefinition",
998
1038
  "summary": "The theme a draft describes: the base's recipe with the draft's accent, its surfaces tinted (cool, warm, or by the accent) through overrides measured on `palettes` (the base's palettes for the accent: `recipePalettes(...)`)."
999
1039
  },
1040
+ {
1041
+ "id": "foundation.theme.g9BuildTokenPersonalTheme",
1042
+ "export": "g9BuildTokenPersonalTheme",
1043
+ "from": "@g9tm/lynxcontrols-foundation/theme",
1044
+ "kind": "function",
1045
+ "signature": "(draft: G9TokenPersonalDraft, builtins: readonly G9TokenTheme[], options?: G9TokenThemeOptions & { readonly wallpapers?: readonly G9CssWallpaper[]; }): G9TokenTheme",
1046
+ "summary": "The token theme a stored personal draft describes (G9Hub `buildTheme`, the same tokens): the base's tokens with the draft's accent, the surfaces tinted (cool, warm, or by the accent) and the wallpaper's CSS. `wallpapers` are the app's (default the library's, see `G9CssWallpaper`)."
1047
+ },
1000
1048
  {
1001
1049
  "id": "foundation.culture.g9BuiltInStringTables",
1002
1050
  "export": "g9BuiltInStringTables",
@@ -1285,6 +1333,14 @@
1285
1333
  "signature": "Readonly<Record<string, string>>",
1286
1334
  "summary": "A set of CSS custom properties: name (`--g9-…`) to value. Feed it to a root element's style or `setProperty`."
1287
1335
  },
1336
+ {
1337
+ "id": "foundation.theme.G9CssWallpaper",
1338
+ "export": "G9CssWallpaper",
1339
+ "from": "@g9tm/lynxcontrols-foundation/theme",
1340
+ "kind": "interface",
1341
+ "signature": "G9CssWallpaper",
1342
+ "summary": "A chat wallpaper written as a CSS `background` per scheme (G9Hub WALLPAPERS: layers built from `var(--g9-…)`)."
1343
+ },
1288
1344
  {
1289
1345
  "id": "foundation.culture.G9Culture",
1290
1346
  "export": "G9Culture",
@@ -1525,6 +1581,22 @@
1525
1581
  "signature": "G9EffectsMode",
1526
1582
  "summary": "Whether effects are on, off, or decided by the device."
1527
1583
  },
1584
+ {
1585
+ "id": "foundation.theme.G9EffectsReason",
1586
+ "export": "G9EffectsReason",
1587
+ "from": "@g9tm/lynxcontrols-foundation/theme",
1588
+ "kind": "type",
1589
+ "signature": "G9EffectsReason",
1590
+ "summary": "Why the effects are off when they are (2.5.10): the person chose it, a low-end device, or the system asks for less motion."
1591
+ },
1592
+ {
1593
+ "id": "foundation.theme.g9EffectsState",
1594
+ "export": "g9EffectsState",
1595
+ "from": "@g9tm/lynxcontrols-foundation/theme",
1596
+ "kind": "function",
1597
+ "signature": "(mode: G9EffectsMode, device?: { readonly reducedMotion?: boolean; readonly lowEnd?: boolean; }): { readonly enabled: boolean; readonly reason: G9EffectsReason; }",
1598
+ "summary": "Whether effects are on and, when they are off, why (2.5.10): the person turned them off (`setting`), or `auto` on a low-end device (`lowEnd`) or a system that asks for less motion (`reducedMotion`)."
1599
+ },
1528
1600
  {
1529
1601
  "id": "foundation.culture.g9EnglishStrings",
1530
1602
  "export": "g9EnglishStrings",
@@ -1933,6 +2005,14 @@
1933
2005
  "signature": "G9InputType",
1934
2006
  "summary": "Semantic input type of a text field (MAUI `G9InputType`). One value drives the keyboard, the live keystroke filter and the on-blur validation; the policy itself (filters, validation, LTR preference) lands with the fields in WP03."
1935
2007
  },
2008
+ {
2009
+ "id": "foundation.theme.g9IsTokenTheme",
2010
+ "export": "g9IsTokenTheme",
2011
+ "from": "@g9tm/lynxcontrols-foundation/theme",
2012
+ "kind": "function",
2013
+ "signature": "(input: unknown): input is G9TokenTheme",
2014
+ "summary": "Whether a value read from outside is a token theme (`scheme` and a `tokens` map) rather than a G9ThemeDefinition."
2015
+ },
1936
2016
  {
1937
2017
  "id": "foundation.route.G9Journey",
1938
2018
  "export": "G9Journey",
@@ -2597,6 +2677,14 @@
2597
2677
  "signature": "G9ResolvedTheme",
2598
2678
  "summary": "A resolved theme: what is painted and why. Frozen."
2599
2679
  },
2680
+ {
2681
+ "id": "foundation.theme.g9ResolveThemeTokens",
2682
+ "export": "g9ResolveThemeTokens",
2683
+ "from": "@g9tm/lynxcontrols-foundation/theme",
2684
+ "kind": "function",
2685
+ "signature": "(theme: G9TokenTheme, options?: G9TokenThemeOptions): Record<string, string>",
2686
+ "summary": "Every token of a token theme, merged over its scheme's defaults and the base, each value made paintable (`resolveColorMix`), unknown names and unsafe values dropped."
2687
+ },
2600
2688
  {
2601
2689
  "id": "foundation.theme.G9Rgba",
2602
2690
  "export": "G9Rgba",
@@ -2690,15 +2778,15 @@
2690
2778
  "export": "g9SanitizeTokens",
2691
2779
  "from": "@g9tm/lynxcontrols-foundation/theme",
2692
2780
  "kind": "function",
2693
- "signature": "(input: Readonly<Record<string, unknown>> | null | undefined, allowed: readonly string[]): Record<string, string>",
2694
- "summary": "Only well-formed tokens of `allowed` names (a leading `--g9-` is dropped first), from a theme that came from outside (the server, a file): values that cannot break out of a declaration, and pictures only as inline `data:` images."
2781
+ "signature": "(input: Readonly<Record<string, unknown>> | null | undefined, allowed?: readonly string[] | undefined): Record<string, string>",
2782
+ "summary": "Only well-formed tokens of `allowed` names (a leading `--g9-` is dropped first; without `allowed`, any lower-case token name), from a theme that came from outside (the server, a file): values that cannot break out of a declaration, and pictures only as inline `data:` images."
2695
2783
  },
2696
2784
  {
2697
2785
  "id": "foundation.theme.g9ScaledType",
2698
2786
  "export": "g9ScaledType",
2699
2787
  "from": "@g9tm/lynxcontrols-foundation/theme",
2700
2788
  "kind": "function",
2701
- "signature": "(scale: number | G9FontScale, base?: { readonly label: G9TypeRole; readonly title: G9TypeRole; readonly display: G9TypeRole; readonly section: G9TypeRole; readonly body: G9TypeRole; readonly caption: G9TypeRole; readonly price: G9TypeRole; readonly mono: G9TypeRole; }): { readonly label: G9TypeRole; readonly title: G9TypeRole; readonly display: G9TypeRole; readonly section: G9TypeRole; readonly bo",
2789
+ "signature": "(scale: number | G9FontScale, base?: { readonly label: G9TypeRole; readonly title: G9TypeRole; readonly section: G9TypeRole; readonly display: G9TypeRole; readonly body: G9TypeRole; readonly caption: G9TypeRole; readonly price: G9TypeRole; readonly mono: G9TypeRole; }): { readonly label: G9TypeRole; readonly title: G9TypeRole; readonly section: G9TypeRole; readonly display: G9TypeRole; readonly bo",
2702
2790
  "summary": "The type scale at a text size (sizes and line heights rounded), for G9Provider's `shape.type`."
2703
2791
  },
2704
2792
  {
@@ -2733,6 +2821,14 @@
2733
2821
  "signature": "G9ScanResult",
2734
2822
  "summary": "How a scan ended."
2735
2823
  },
2824
+ {
2825
+ "id": "foundation.theme.G9SchemeAppTokens",
2826
+ "export": "G9SchemeAppTokens",
2827
+ "from": "@g9tm/lynxcontrols-foundation/theme",
2828
+ "kind": "interface",
2829
+ "signature": "G9SchemeAppTokens",
2830
+ "summary": "App tokens per scheme (2.5.10; `G9ResolvedTheme.appTokens`)."
2831
+ },
2736
2832
  {
2737
2833
  "id": "foundation.route.G9ScrollMark",
2738
2834
  "export": "G9ScrollMark",
@@ -2925,6 +3021,14 @@
2925
3021
  "signature": "G9StringTable",
2926
3022
  "summary": "A complete string table."
2927
3023
  },
3024
+ {
3025
+ "id": "foundation.theme.g9SubstituteTokens",
3026
+ "export": "g9SubstituteTokens",
3027
+ "from": "@g9tm/lynxcontrols-foundation/theme",
3028
+ "kind": "function",
3029
+ "signature": "(value: string, tokens: Readonly<Record<string, string>>): string",
3030
+ "summary": "`var(--<token>)` (and `var(--<token>, fallback)`) replaced by the token's value, nested ones too."
3031
+ },
2928
3032
  {
2929
3033
  "id": "foundation.theme.G9SurfaceTone",
2930
3034
  "export": "G9SurfaceTone",
@@ -2981,6 +3085,14 @@
2981
3085
  "signature": "G9TextInputDirection",
2982
3086
  "summary": "Writing direction of a field's entered value (MAUI `G9TextInputDirection`). `'matchParent'` follows the culture."
2983
3087
  },
3088
+ {
3089
+ "id": "foundation.theme.g9ThemeBaseTokens",
3090
+ "export": "g9ThemeBaseTokens",
3091
+ "from": "@g9tm/lynxcontrols-foundation/theme",
3092
+ "kind": "constant",
3093
+ "signature": "Readonly<Partial<Record<\"link\" | \"text\" | \"info\" | \"success\" | \"warning\" | \"surface\" | \"accent\" | \"bg\" | \"scrim\" | \"bg-elev\" | \"surface-2\" | \"surface-3\" | \"border\" | \"border-strong\" | \"text-2\" | \"text-3\" | \"danger\" | \"hover\" | \"press\" | \"field\" | \"skeleton\" | \"accent-soft\" | \"accent-glow\" | \"accent-gradient\" | \"text-on-accent\" | \"glass\" | \"glass-border\" | \"bubble-mine\" | \"bubble-mine-text\" | \"bubb",
3094
+ "summary": "Shape and motion every token theme shares unless it sets its own (G9Hub BASE_TOKENS)."
3095
+ },
2984
3096
  {
2985
3097
  "id": "foundation.theme.G9ThemeDefinition",
2986
3098
  "export": "G9ThemeDefinition",
@@ -2995,7 +3107,7 @@
2995
3107
  "from": "@g9tm/lynxcontrols-foundation/theme",
2996
3108
  "kind": "function",
2997
3109
  "signature": "(name: string): string",
2998
- "summary": "A file name for a theme export (letters, digits, dashes; any script)."
3110
+ "summary": "A file name for a theme export (letters, marks and digits of any script, dashes)."
2999
3111
  },
3000
3112
  {
3001
3113
  "id": "foundation.tokens.G9ThemeFonts",
@@ -3010,8 +3122,16 @@
3010
3122
  "export": "g9ThemeFromInput",
3011
3123
  "from": "@g9tm/lynxcontrols-foundation/theme",
3012
3124
  "kind": "function",
3013
- "signature": "(input: unknown, source: G9ThemeSource): G9ThemeDefinition | null",
3014
- "summary": "A theme from the server or a file, read loosely (a newer server never breaks the client); null when broken."
3125
+ "signature": "(input: unknown, source: G9ThemeSource, tokenThemes?: G9TokenThemeOptions): G9ThemeDefinition | null",
3126
+ "summary": "A theme from the server or a file, read loosely (a newer server never breaks the client); null when broken. A token theme (`{ id, name, scheme, tokens }`, G9Hub's format; 2.5.10) is read with `g9ThemeFromTokens`."
3127
+ },
3128
+ {
3129
+ "id": "foundation.theme.g9ThemeFromTokens",
3130
+ "export": "g9ThemeFromTokens",
3131
+ "from": "@g9tm/lynxcontrols-foundation/theme",
3132
+ "kind": "function",
3133
+ "signature": "(theme: G9TokenTheme, options?: G9TokenThemeOptions): G9ThemeDefinition",
3134
+ "summary": "A token theme as a G9ThemeDefinition (2.5.10): its colours as the palette of its scheme (overrides over a recipe branded with its accent), every token as an app token of that scheme (`--g9-<name>` through G9Provider), and its scheme as the forced mode. Organisation themes that list only some tokens take the rest from `options.defaults`."
3015
3135
  },
3016
3136
  {
3017
3137
  "id": "foundation.theme.G9ThemeListener",
@@ -3093,6 +3213,38 @@
3093
3213
  "signature": "G9ThemeStore",
3094
3214
  "summary": "The live theme (MAUI `G9Palette.Current` + `G9Theme`): one snapshot, replaced on every change, and listeners told once per change. Works with `useSyncExternalStore` (`subscribe` / `getSnapshot`)."
3095
3215
  },
3216
+ {
3217
+ "id": "foundation.theme.g9ThemeTokenGroups",
3218
+ "export": "g9ThemeTokenGroups",
3219
+ "from": "@g9tm/lynxcontrols-foundation/theme",
3220
+ "kind": "constant",
3221
+ "signature": "readonly { readonly id: string; readonly tokens: readonly (\"link\" | \"text\" | \"info\" | \"success\" | \"warning\" | \"surface\" | \"accent\" | \"bg\" | \"scrim\" | \"bg-elev\" | \"surface-2\" | \"surface-3\" | \"border\" | \"border-strong\" | \"text-2\" | \"text-3\" | \"danger\" | \"hover\" | \"press\" | \"field\" | \"skeleton\" | \"accent-soft\" | \"accent-glow\" | \"accent-gradient\" | \"text-on-accent\" | \"glass\" | \"glass-border\" | \"bubble",
3222
+ "summary": "The token groups an editor shows (G9Hub TOKEN_GROUPS)."
3223
+ },
3224
+ {
3225
+ "id": "foundation.theme.G9ThemeTokenName",
3226
+ "export": "G9ThemeTokenName",
3227
+ "from": "@g9tm/lynxcontrols-foundation/theme",
3228
+ "kind": "type",
3229
+ "signature": "\"link\" | \"text\" | \"info\" | \"success\" | \"warning\" | \"surface\" | \"accent\" | \"bg\" | \"scrim\" | \"bg-elev\" | \"surface-2\" | \"surface-3\" | \"border\" | \"border-strong\" | \"text-2\" | \"text-3\" | \"danger\" | \"hover\" | \"press\" | \"field\" | \"skeleton\" | \"accent-soft\" | \"accent-glow\" | \"accent-gradient\" | \"text-on-accent\" | \"glass\" | \"glass-border\" | \"bubble-mine\" | \"bubble-mine-text\" | \"bubble-mine-meta\" | \"bubble-",
3230
+ "summary": "A design token's name (`bg`, `bubble-mine`, `radius-lg`…)."
3231
+ },
3232
+ {
3233
+ "id": "foundation.theme.g9ThemeTokenNames",
3234
+ "export": "g9ThemeTokenNames",
3235
+ "from": "@g9tm/lynxcontrols-foundation/theme",
3236
+ "kind": "constant",
3237
+ "signature": "readonly [\"bg\", \"bg-elev\", \"surface\", \"surface-2\", \"surface-3\", \"glass\", \"glass-border\", \"glass-blur\", \"border\", \"border-strong\", \"hover\", \"press\", \"field\", \"skeleton\", \"scrim\", \"knob\", \"text\", \"text-2\", \"text-3\", \"text-on-accent\", \"link\", \"selection\", \"accent\", \"accent-2\", \"accent-3\", \"accent-soft\", \"accent-gradient\", \"accent-glow\", \"aurora-1\", \"aurora-2\", \"aurora-3\", \"bubble-mine\", \"bubble-mine-",
3238
+ "summary": "Every design token a token theme may set (G9Hub TOKEN_NAMES), grouped as `g9ThemeTokenGroups`."
3239
+ },
3240
+ {
3241
+ "id": "foundation.theme.G9ThemeTokens",
3242
+ "export": "G9ThemeTokens",
3243
+ "from": "@g9tm/lynxcontrols-foundation/theme",
3244
+ "kind": "type",
3245
+ "signature": "Readonly<Partial<Record<\"link\" | \"text\" | \"info\" | \"success\" | \"warning\" | \"surface\" | \"accent\" | \"bg\" | \"scrim\" | \"bg-elev\" | \"surface-2\" | \"surface-3\" | \"border\" | \"border-strong\" | \"text-2\" | \"text-3\" | \"danger\" | \"hover\" | \"press\" | \"field\" | \"skeleton\" | \"accent-soft\" | \"accent-glow\" | \"accent-gradient\" | \"text-on-accent\" | \"glass\" | \"glass-border\" | \"bubble-mine\" | \"bubble-mine-text\" | \"bubb",
3246
+ "summary": "A token map (a theme lists only what it changes)."
3247
+ },
3096
3248
  {
3097
3249
  "id": "foundation.exec.G9Timers",
3098
3250
  "export": "G9Timers",
@@ -3125,6 +3277,46 @@
3125
3277
  "signature": "Readonly<Record<string, string>>",
3126
3278
  "summary": "App name → library token (`'TextPrimary'`) or a literal colour (`'#1B1512'`)."
3127
3279
  },
3280
+ {
3281
+ "id": "foundation.theme.g9TokenForPalette",
3282
+ "export": "g9TokenForPalette",
3283
+ "from": "@g9tm/lynxcontrols-foundation/theme",
3284
+ "kind": "function",
3285
+ "signature": "(token: G9ColorToken): \"link\" | \"text\" | \"info\" | \"success\" | \"warning\" | \"surface\" | \"accent\" | \"bg\" | \"scrim\" | \"bg-elev\" | \"surface-2\" | \"surface-3\" | \"border\" | \"border-strong\" | \"text-2\" | \"text-3\" | \"danger\" | \"hover\" | \"press\" | \"field\" | \"skeleton\" | \"accent-soft\" | \"accent-glow\" | \"accent-gradient\" | \"text-on-accent\" | \"glass\" | \"glass-border\" | \"bubble-mine\" | \"bubble-mine-text\" | \"bubbl",
3286
+ "summary": "The design token a palette token takes its colour from in a token theme (a contrast fix sets that token), or null."
3287
+ },
3288
+ {
3289
+ "id": "foundation.theme.G9TokenPersonalDraft",
3290
+ "export": "G9TokenPersonalDraft",
3291
+ "from": "@g9tm/lynxcontrols-foundation/theme",
3292
+ "kind": "interface",
3293
+ "signature": "G9TokenPersonalDraft",
3294
+ "summary": "A personal theme as G9Hub stores it on the device (Plan-V3 §11.5): a built-in base by id, an accent, surfaces, wallpaper."
3295
+ },
3296
+ {
3297
+ "id": "foundation.theme.G9TokenTheme",
3298
+ "export": "G9TokenTheme",
3299
+ "from": "@g9tm/lynxcontrols-foundation/theme",
3300
+ "kind": "interface",
3301
+ "signature": "G9TokenTheme",
3302
+ "summary": "A theme as one scheme's token map: G9Hub's built-in and organisation themes (the server's `G9DtTheme`)."
3303
+ },
3304
+ {
3305
+ "id": "foundation.theme.G9TokenThemeOptions",
3306
+ "export": "G9TokenThemeOptions",
3307
+ "from": "@g9tm/lynxcontrols-foundation/theme",
3308
+ "kind": "interface",
3309
+ "signature": "G9TokenThemeOptions",
3310
+ "summary": "Options of `g9ThemeFromTokens`."
3311
+ },
3312
+ {
3313
+ "id": "foundation.theme.g9TokenValueValid",
3314
+ "export": "g9TokenValueValid",
3315
+ "from": "@g9tm/lynxcontrols-foundation/theme",
3316
+ "kind": "function",
3317
+ "signature": "(name: string, value: string): boolean",
3318
+ "summary": "Whether a token value is acceptable (what an editor marks invalid otherwise; G9Hub `tokenValueValid`)."
3319
+ },
3128
3320
  {
3129
3321
  "id": "foundation.theme.G9TonalScale",
3130
3322
  "export": "G9TonalScale",
@@ -3674,7 +3866,7 @@
3674
3866
  "export": "matchesCombo",
3675
3867
  "from": "@g9tm/lynxcontrols-foundation/services",
3676
3868
  "kind": "function",
3677
- "signature": "(event: G9KeyEvent, combo: string | G9KeyCombo, platform?: \"mac\" | \"other\"): boolean",
3869
+ "signature": "(event: G9KeyEvent, combo: string | G9KeyCombo, platform?: \"other\" | \"mac\"): boolean",
3678
3870
  "summary": "True when `event` is `combo` (`platform: 'mac'` maps Mod to Meta)."
3679
3871
  },
3680
3872
  {
@@ -4013,6 +4205,14 @@
4013
4205
  "signature": "(value: string): string",
4014
4206
  "summary": "Every colour function inside a CSS value replaced by a paintable colour (`'1px solid color-mix(in oklch, #f00 30%, white)'` → `'1px solid #FFB3A7'`), for shorthands and gradients."
4015
4207
  },
4208
+ {
4209
+ "id": "foundation.theme.resolveColorMix",
4210
+ "export": "resolveColorMix",
4211
+ "from": "@g9tm/lynxcontrols-foundation/theme",
4212
+ "kind": "function",
4213
+ "signature": "(value: string): string",
4214
+ "summary": "One token value as the Lynx engines paint it (2.5.10): `color-mix()` / `oklch()` / `oklab()` / `hsl()` computed, `rgb(r g b / a)` written as `rgba()`, a `linear()` easing as its nearest cubic-bezier, `rem` as px (16 per rem). Anything else passes through."
4215
+ },
4016
4216
  {
4017
4217
  "id": "foundation.theme.resolveColorScheme",
4018
4218
  "export": "resolveColorScheme",
@@ -4309,6 +4509,14 @@
4309
4509
  "signature": "(theme: G9ThemeDefinition, language: string): string",
4310
4510
  "summary": "A theme's display name in `language` (falls back to English, then any)."
4311
4511
  },
4512
+ {
4513
+ "id": "foundation.tokens.toAppTokenCssVariables",
4514
+ "export": "toAppTokenCssVariables",
4515
+ "from": "@g9tm/lynxcontrols-foundation/tokens",
4516
+ "kind": "function",
4517
+ "signature": "(theme: { readonly appTokens?: Readonly<Record<string, string>>; }): Readonly<Record<string, string>>",
4518
+ "summary": "A theme's app tokens as CSS variables (2.5.10): `--g9-<name>` for each (a token theme's bubbles, glass, wallpaper, depth, radii, motion), written after the palette so a theme that names a token the library also writes wins."
4519
+ },
4312
4520
  {
4313
4521
  "id": "foundation.culture.toCalendarDate",
4314
4522
  "export": "toCalendarDate",
@@ -4434,7 +4642,7 @@
4434
4642
  "export": "toRootCssVariables",
4435
4643
  "from": "@g9tm/lynxcontrols-foundation/tokens",
4436
4644
  "kind": "function",
4437
- "signature": "(theme: { readonly palette: G9PaletteValues; readonly scheme: \"light\" | \"dark\"; }, shape?: G9ShapeSet, direction?: \"ltr\" | \"rtl\" | undefined): Readonly<Record<string, string>>",
4645
+ "signature": "(theme: { readonly palette: G9PaletteValues; readonly scheme: \"light\" | \"dark\"; readonly appTokens?: Readonly<Record<string, string>>; }, shape?: G9ShapeSet, direction?: \"ltr\" | \"rtl\" | undefined): Readonly<Record<string, string>>",
4438
4646
  "summary": "Every CSS variable a `G9Provider` root carries for a theme, a shape and a direction: the metrics (`--g9-metric-*`), the layout metrics (`--g9-layout-*`), the shape (`--g9-radius-*`, `--g9-type-*`, `--g9-height-*`, `--g9-touch-target`, the fonts), the colour tokens and the derived colours. What the provider writes at mount (less a theme's token aliases), so a page outside Lynx — the static-render contract of `@g9tm/lynxcontrols-web/static` — reads the same values the app does."
4439
4647
  },
4440
4648
  {
package/catalog/index.md CHANGED
@@ -1,4 +1,4 @@
1
- # Catalog index: `@g9tm/lynxcontrols-foundation` 2.5.9
1
+ # Catalog index: `@g9tm/lynxcontrols-foundation` 2.5.11
2
2
 
3
3
  One line per component; the card (`cards/<Export>.md`) has its props and an example.
4
4