@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,33 @@
1
+ import type { G9ButtonVariant, G9ProgressType } from '../enums/index.js';
2
+ import type { G9PaletteValues } from '../tokens/generated/palettes.js';
3
+ import { type G9Color } from './color.js';
4
+ /**
5
+ * The colours a variant resolves to: fill, foreground, stroke, and whether the fill is a gradient
6
+ * (MAUI `G9VariantColors`). Colours are CSS strings.
7
+ */
8
+ export interface G9VariantColors {
9
+ readonly background: G9Color;
10
+ readonly text: G9Color;
11
+ readonly stroke: G9Color;
12
+ readonly usesGradient: boolean;
13
+ }
14
+ /**
15
+ * The colours a button finally paints, after its `baseBackgroundColor` / `textColor` escape hatches are applied over
16
+ * the variant (MAUI `G9Visuals.ButtonVisualResult`). Same shape as {@link G9VariantColors}, so a button treats both
17
+ * paths identically; the button itself (WP04) applies the escape hatches.
18
+ */
19
+ export type G9ButtonVisualResult = G9VariantColors;
20
+ /**
21
+ * Resolves a button variant against a palette (MAUI `G9Visuals.ResolveButtonVariant`, which read
22
+ * `G9Palette.Current`; pass the active theme's palette). An unrecognised variant resolves like `'primary'`, as the
23
+ * MAUI switch's default arm did.
24
+ */
25
+ export declare function resolveButtonVariant(variant: G9ButtonVariant, palette: G9PaletteValues): G9VariantColors;
26
+ /** Fill colour of a progress indicator (MAUI `G9Visuals.ResolveProgressColor`); unrecognised types use `Primary`. */
27
+ export declare function resolveProgressColor(type: G9ProgressType, palette: G9PaletteValues): G9Color;
28
+ /**
29
+ * True when at least one swatch colour is set (MAUI `G9Visuals.HasSwatch`). The shared convention: no colour → no
30
+ * swatch, one → solid circle, two → circle split into two vertical halves.
31
+ */
32
+ export declare const hasSwatch: (first: G9Color | null | undefined, second: G9Color | null | undefined) => boolean;
33
+ //# sourceMappingURL=variants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"variants.d.ts","sourceRoot":"","sources":["../../src/theme/variants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAChE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAe,KAAK,OAAO,EAAa,MAAM,SAAS,CAAC;AAE/D;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC;IAC7B,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,YAAY,EAAE,OAAO,CAAC;CAChC;AAED;;;;GAIG;AACH,MAAM,MAAM,oBAAoB,GAAG,eAAe,CAAC;AAOnD;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,eAAe,EAAE,OAAO,EAAE,eAAe,GAAG,eAAe,CA8BxG;AAED,qHAAqH;AACrH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,cAAc,EAAE,OAAO,EAAE,eAAe,GAAG,OAAO,CAW5F;AAED;;;GAGG;AACH,eAAO,MAAM,SAAS,GAAI,OAAO,OAAO,GAAG,IAAI,GAAG,SAAS,EAAE,QAAQ,OAAO,GAAG,IAAI,GAAG,SAAS,KAAG,OACZ,CAAC"}
@@ -0,0 +1,53 @@
1
+ import { formatColor, mix, rgba } from "./color.js";
2
+ const TRANSPARENT = formatColor(rgba(0, 0, 0, 0));
3
+ const colors = (background, text, stroke, usesGradient)=>Object.freeze({
4
+ background,
5
+ text,
6
+ stroke,
7
+ usesGradient
8
+ });
9
+ function resolveButtonVariant(variant, palette) {
10
+ const p = palette;
11
+ switch(variant){
12
+ case 'tonal':
13
+ return colors(p.PrimaryContainer, p.OnPrimaryContainer, formatColor(mix(p.Primary, TRANSPARENT, 0.65)), false);
14
+ case 'default':
15
+ return colors(p.Default, p.OnDefault, p.DefaultBorder, false);
16
+ case 'secondary':
17
+ return colors(p.SecondaryContainer, p.OnSecondaryContainer, p.SecondaryBorder, false);
18
+ case 'info':
19
+ return colors(p.Info, p.OnInfo, p.InfoBorder, true);
20
+ case 'success':
21
+ return colors(p.Success, p.OnSuccess, p.SuccessBorder, true);
22
+ case 'warning':
23
+ return colors(p.Warning, p.OnWarning, p.WarningBorder, true);
24
+ case 'error':
25
+ return colors(p.Error, p.OnError, p.ErrorBorder, true);
26
+ case 'errorTonal':
27
+ return colors(p.ErrorContainer, p.Error, p.ErrorBorder, false);
28
+ case 'surface':
29
+ return colors(p.SurfaceVariant, p.OnSurface, p.OutlineBorder, false);
30
+ case 'outline':
31
+ return colors(TRANSPARENT, p.TextPrimary, p.Outline, false);
32
+ case 'text':
33
+ return colors(TRANSPARENT, p.Primary, p.Outline, false);
34
+ default:
35
+ return colors(p.Primary, p.OnPrimary, p.PrimaryBorder, true);
36
+ }
37
+ }
38
+ function resolveProgressColor(type, palette) {
39
+ switch(type){
40
+ case 'success':
41
+ return palette.Success;
42
+ case 'warning':
43
+ return palette.Warning;
44
+ case 'error':
45
+ return palette.Error;
46
+ default:
47
+ return palette.Primary;
48
+ }
49
+ }
50
+ const hasSwatch = (first, second)=>null != first || null != second;
51
+ export { hasSwatch, resolveButtonVariant, resolveProgressColor };
52
+
53
+ //# sourceMappingURL=variants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"theme/variants.js","sources":["../../src/theme/variants.ts"],"sourcesContent":["import type { G9ButtonVariant, G9ProgressType } from '../enums';\nimport type { G9PaletteValues } from '../tokens/generated/palettes';\nimport { formatColor, type G9Color, mix, rgba } from './color';\n\n/**\n * The colours a variant resolves to: fill, foreground, stroke, and whether the fill is a gradient\n * (MAUI `G9VariantColors`). Colours are CSS strings.\n */\nexport interface G9VariantColors {\n readonly background: G9Color;\n readonly text: G9Color;\n readonly stroke: G9Color;\n readonly usesGradient: boolean;\n}\n\n/**\n * The colours a button finally paints, after its `baseBackgroundColor` / `textColor` escape hatches are applied over\n * the variant (MAUI `G9Visuals.ButtonVisualResult`). Same shape as {@link G9VariantColors}, so a button treats both\n * paths identically; the button itself (WP04) applies the escape hatches.\n */\nexport type G9ButtonVisualResult = G9VariantColors;\n\nconst TRANSPARENT = formatColor(rgba(0, 0, 0, 0));\n\nconst colors = (background: G9Color, text: G9Color, stroke: G9Color, usesGradient: boolean): G9VariantColors =>\n Object.freeze({ background, text, stroke, usesGradient });\n\n/**\n * Resolves a button variant against a palette (MAUI `G9Visuals.ResolveButtonVariant`, which read\n * `G9Palette.Current`; pass the active theme's palette). An unrecognised variant resolves like `'primary'`, as the\n * MAUI switch's default arm did.\n */\nexport function resolveButtonVariant(variant: G9ButtonVariant, palette: G9PaletteValues): G9VariantColors {\n const p = palette;\n switch (variant) {\n case 'tonal':\n // MAUI Colors.Transparent is #00000000, so the 65 % mix both darkens and fades the primary stroke.\n return colors(p.PrimaryContainer, p.OnPrimaryContainer, formatColor(mix(p.Primary, TRANSPARENT, 0.65)), false);\n case 'default':\n return colors(p.Default, p.OnDefault, p.DefaultBorder, false);\n case 'secondary':\n return colors(p.SecondaryContainer, p.OnSecondaryContainer, p.SecondaryBorder, false);\n case 'info':\n return colors(p.Info, p.OnInfo, p.InfoBorder, true);\n case 'success':\n return colors(p.Success, p.OnSuccess, p.SuccessBorder, true);\n case 'warning':\n return colors(p.Warning, p.OnWarning, p.WarningBorder, true);\n case 'error':\n return colors(p.Error, p.OnError, p.ErrorBorder, true);\n case 'errorTonal':\n // Soft destructive: the container fill carries the Error glyph (not OnErrorContainer), flat.\n return colors(p.ErrorContainer, p.Error, p.ErrorBorder, false);\n case 'surface':\n return colors(p.SurfaceVariant, p.OnSurface, p.OutlineBorder, false);\n case 'outline':\n return colors(TRANSPARENT, p.TextPrimary, p.Outline, false);\n case 'text':\n return colors(TRANSPARENT, p.Primary, p.Outline, false);\n default:\n return colors(p.Primary, p.OnPrimary, p.PrimaryBorder, true);\n }\n}\n\n/** Fill colour of a progress indicator (MAUI `G9Visuals.ResolveProgressColor`); unrecognised types use `Primary`. */\nexport function resolveProgressColor(type: G9ProgressType, palette: G9PaletteValues): G9Color {\n switch (type) {\n case 'success':\n return palette.Success;\n case 'warning':\n return palette.Warning;\n case 'error':\n return palette.Error;\n default:\n return palette.Primary;\n }\n}\n\n/**\n * True when at least one swatch colour is set (MAUI `G9Visuals.HasSwatch`). The shared convention: no colour → no\n * swatch, one → solid circle, two → circle split into two vertical halves.\n */\nexport const hasSwatch = (first: G9Color | null | undefined, second: G9Color | null | undefined): boolean =>\n (first !== null && first !== undefined) || (second !== null && second !== undefined);\n"],"names":["TRANSPARENT","formatColor","rgba","colors","background","text","stroke","usesGradient","Object","resolveButtonVariant","variant","palette","p","mix","resolveProgressColor","type","hasSwatch","first","second"],"mappings":";AAsBA,MAAMA,cAAcC,YAAYC,KAAK,GAAG,GAAG,GAAG;AAE9C,MAAMC,SAAS,CAACC,YAAqBC,MAAeC,QAAiBC,eACnEC,OAAO,MAAM,CAAC;QAAEJ;QAAYC;QAAMC;QAAQC;IAAa;AAOlD,SAASE,qBAAqBC,OAAwB,EAAEC,OAAwB;IACrF,MAAMC,IAAID;IACV,OAAQD;QACN,KAAK;YAEH,OAAOP,OAAOS,EAAE,gBAAgB,EAAEA,EAAE,kBAAkB,EAAEX,YAAYY,IAAID,EAAE,OAAO,EAAEZ,aAAa,QAAQ;QAC1G,KAAK;YACH,OAAOG,OAAOS,EAAE,OAAO,EAAEA,EAAE,SAAS,EAAEA,EAAE,aAAa,EAAE;QACzD,KAAK;YACH,OAAOT,OAAOS,EAAE,kBAAkB,EAAEA,EAAE,oBAAoB,EAAEA,EAAE,eAAe,EAAE;QACjF,KAAK;YACH,OAAOT,OAAOS,EAAE,IAAI,EAAEA,EAAE,MAAM,EAAEA,EAAE,UAAU,EAAE;QAChD,KAAK;YACH,OAAOT,OAAOS,EAAE,OAAO,EAAEA,EAAE,SAAS,EAAEA,EAAE,aAAa,EAAE;QACzD,KAAK;YACH,OAAOT,OAAOS,EAAE,OAAO,EAAEA,EAAE,SAAS,EAAEA,EAAE,aAAa,EAAE;QACzD,KAAK;YACH,OAAOT,OAAOS,EAAE,KAAK,EAAEA,EAAE,OAAO,EAAEA,EAAE,WAAW,EAAE;QACnD,KAAK;YAEH,OAAOT,OAAOS,EAAE,cAAc,EAAEA,EAAE,KAAK,EAAEA,EAAE,WAAW,EAAE;QAC1D,KAAK;YACH,OAAOT,OAAOS,EAAE,cAAc,EAAEA,EAAE,SAAS,EAAEA,EAAE,aAAa,EAAE;QAChE,KAAK;YACH,OAAOT,OAAOH,aAAaY,EAAE,WAAW,EAAEA,EAAE,OAAO,EAAE;QACvD,KAAK;YACH,OAAOT,OAAOH,aAAaY,EAAE,OAAO,EAAEA,EAAE,OAAO,EAAE;QACnD;YACE,OAAOT,OAAOS,EAAE,OAAO,EAAEA,EAAE,SAAS,EAAEA,EAAE,aAAa,EAAE;IAC3D;AACF;AAGO,SAASE,qBAAqBC,IAAoB,EAAEJ,OAAwB;IACjF,OAAQI;QACN,KAAK;YACH,OAAOJ,QAAQ,OAAO;QACxB,KAAK;YACH,OAAOA,QAAQ,OAAO;QACxB,KAAK;YACH,OAAOA,QAAQ,KAAK;QACtB;YACE,OAAOA,QAAQ,OAAO;IAC1B;AACF;AAMO,MAAMK,YAAY,CAACC,OAAmCC,SAC1DD,QAAAA,SAA2CC,QAAAA"}
@@ -0,0 +1,35 @@
1
+ import { type G9MetricName } from './generated/metrics.js';
2
+ import type { G9ColorToken, G9PaletteValues } from './generated/palettes.js';
3
+ import { type G9LayoutMetrics } from './layout-metrics.js';
4
+ /** A set of CSS custom properties: name (`--g9-…`) to value. Feed it to a root element's style or `setProperty`. */
5
+ export type G9CssVariables = Readonly<Record<string, string>>;
6
+ /** `OnPrimaryContainer` → `on-primary-container`, `SpacingXSmall` → `spacing-x-small`, `G9BottomSheet…` → `g9-bottom-sheet…`. */
7
+ export declare function toKebabCase(name: string): string;
8
+ /** CSS variable of a colour token: `Primary` → `--g9-primary` (plan/specs/01-Architecture.md §6). */
9
+ export declare const cssVariableName: (token: G9ColorToken) => string;
10
+ /** CSS variable of a `G9Metrics` value: `RadiusMd` → `--g9-metric-radius-md`. */
11
+ export declare const metricCssVariableName: (name: G9MetricName) => string;
12
+ /**
13
+ * CSS variable of a layout metric: `EdgeSpacing` → `--g9-layout-edge-spacing`. Insets and corner radii are emitted per
14
+ * side/corner, e.g. `--g9-layout-body-padding-start`, `--g9-layout-map-chrome-corner-radius-top-end`.
15
+ */
16
+ export declare const layoutCssVariableName: (name: keyof G9LayoutMetrics, part?: string) => string;
17
+ /**
18
+ * A colour usable in any G9 colour prop or stylesheet that follows the active theme: `g9Token('Primary')` is
19
+ * `var(--g9-primary)`. Replaces the MAUI `{G9Color Primary}` markup extension.
20
+ */
21
+ export declare const g9Token: (token: G9ColorToken) => string;
22
+ /** One `--g9-<token>` variable per colour of `palette`, in token order. */
23
+ export declare function toCssVariables(theme: {
24
+ readonly palette: G9PaletteValues;
25
+ }): G9CssVariables;
26
+ /** One `--g9-metric-<name>` variable per `G9Metrics` value, with its unit (`px`, `ms` or none). */
27
+ export declare function toMetricCssVariables(): G9CssVariables;
28
+ /**
29
+ * The layout metrics as CSS variables (the counterpart of MAUI `G9LayoutMetrics.InstallDefaults`, which seeded the
30
+ * resource keys XAML bound to). Lengths get `px`, `DeferredContentLoadDelayMs` gets `ms`, counts and ratios none.
31
+ */
32
+ export declare function toLayoutCssVariables(metrics?: G9LayoutMetrics): G9CssVariables;
33
+ /** Renders variables as CSS declarations inside `selector`, one per line (e.g. for a generated stylesheet). */
34
+ export declare function cssVariablesToText(vars: G9CssVariables, selector: string): string;
35
+ //# sourceMappingURL=css-vars.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"css-vars.d.ts","sourceRoot":"","sources":["../../src/tokens/css-vars.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAA4B,MAAM,qBAAqB,CAAC;AAClF,OAAO,KAAK,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC1E,OAAO,EAA0C,KAAK,eAAe,EAAmB,MAAM,kBAAkB,CAAC;AAEjH,oHAAoH;AACpH,MAAM,MAAM,cAAc,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;AAE9D,iIAAiI;AACjI,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAKhD;AAED,qGAAqG;AACrG,eAAO,MAAM,eAAe,GAAI,OAAO,YAAY,KAAG,MAAsC,CAAC;AAE7F,iFAAiF;AACjF,eAAO,MAAM,qBAAqB,GAAI,MAAM,YAAY,KAAG,MAA4C,CAAC;AAExG;;;GAGG;AACH,eAAO,MAAM,qBAAqB,GAAI,MAAM,MAAM,eAAe,EAAE,OAAO,MAAM,KAAG,MACT,CAAC;AAE3E;;;GAGG;AACH,eAAO,MAAM,OAAO,GAAI,OAAO,YAAY,KAAG,MAA0C,CAAC;AAEzF,2EAA2E;AAC3E,wBAAgB,cAAc,CAAC,KAAK,EAAE;IAAE,QAAQ,CAAC,OAAO,EAAE,eAAe,CAAA;CAAE,GAAG,cAAc,CAI3F;AAED,mGAAmG;AACnG,wBAAgB,oBAAoB,IAAI,cAAc,CAMrD;AAQD;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,GAAE,eAAiC,GAAG,cAAc,CAmB/F;AAED,+GAA+G;AAC/G,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAKjF"}
@@ -0,0 +1,49 @@
1
+ import { G9Metrics, g9MetricUnits } from "./generated/metrics.js";
2
+ import { g9LayoutMetrics } from "./layout-metrics.js";
3
+ function toKebabCase(name) {
4
+ return name.replace(/([a-z0-9])([A-Z])/g, '$1-$2').replace(/([A-Z])([A-Z][a-z])/g, '$1-$2').toLowerCase();
5
+ }
6
+ const cssVariableName = (token)=>`--g9-${toKebabCase(token)}`;
7
+ const metricCssVariableName = (name)=>`--g9-metric-${toKebabCase(name)}`;
8
+ const layoutCssVariableName = (name, part)=>`--g9-layout-${toKebabCase(name)}${part ? `-${toKebabCase(part)}` : ''}`;
9
+ const g9Token = (token)=>`var(${cssVariableName(token)})`;
10
+ function toCssVariables(theme) {
11
+ const vars = {};
12
+ for (const token of Object.keys(theme.palette))vars[cssVariableName(token)] = theme.palette[token];
13
+ return vars;
14
+ }
15
+ function toMetricCssVariables() {
16
+ const vars = {};
17
+ for (const name of Object.keys(G9Metrics))vars[metricCssVariableName(name)] = `${G9Metrics[name]}${g9MetricUnits[name]}`;
18
+ return vars;
19
+ }
20
+ const LAYOUT_UNITLESS = new Set([
21
+ 'G9BottomSheetFooterMaxButtonsPerRow',
22
+ 'G9BottomSheetBackdropCardThreshold',
23
+ 'G9BottomSheetBackdropCardMinScale'
24
+ ]);
25
+ function toLayoutCssVariables(metrics = g9LayoutMetrics) {
26
+ const vars = {};
27
+ for (const name of Object.keys(metrics)){
28
+ const value = metrics[name];
29
+ if ('number' == typeof value) {
30
+ const isCorner = 'ControlCornerRadiusValue' === name || 'MapChromeCornerRadius' === name;
31
+ const unit = name.endsWith('Ms') ? 'ms' : LAYOUT_UNITLESS.has(name) ? '' : 'px';
32
+ if (isCorner) for (const corner of [
33
+ 'topStart',
34
+ 'topEnd',
35
+ 'bottomEnd',
36
+ 'bottomStart'
37
+ ])vars[layoutCssVariableName(name, corner)] = `${value}px`;
38
+ else vars[layoutCssVariableName(name)] = `${value}${unit}`;
39
+ } else for (const [part, length] of Object.entries(value))vars[layoutCssVariableName(name, part)] = `${length}px`;
40
+ }
41
+ return vars;
42
+ }
43
+ function cssVariablesToText(vars, selector) {
44
+ const body = Object.keys(vars).map((name)=>` ${name}: ${vars[name]};`).join('\n');
45
+ return `${selector} {\n${body}\n}\n`;
46
+ }
47
+ export { cssVariableName, cssVariablesToText, g9Token, layoutCssVariableName, metricCssVariableName, toCssVariables, toKebabCase, toLayoutCssVariables, toMetricCssVariables };
48
+
49
+ //# sourceMappingURL=css-vars.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tokens/css-vars.js","sources":["../../src/tokens/css-vars.ts"],"sourcesContent":["import { type G9MetricName, G9Metrics, g9MetricUnits } from './generated/metrics';\nimport type { G9ColorToken, G9PaletteValues } from './generated/palettes';\nimport { type G9CornerRadius, type G9EdgeInsets, type G9LayoutMetrics, g9LayoutMetrics } from './layout-metrics';\n\n/** A set of CSS custom properties: name (`--g9-…`) to value. Feed it to a root element's style or `setProperty`. */\nexport type G9CssVariables = Readonly<Record<string, string>>;\n\n/** `OnPrimaryContainer` → `on-primary-container`, `SpacingXSmall` → `spacing-x-small`, `G9BottomSheet…` → `g9-bottom-sheet…`. */\nexport function toKebabCase(name: string): string {\n return name\n .replace(/([a-z0-9])([A-Z])/g, '$1-$2')\n .replace(/([A-Z])([A-Z][a-z])/g, '$1-$2')\n .toLowerCase();\n}\n\n/** CSS variable of a colour token: `Primary` → `--g9-primary` (plan/specs/01-Architecture.md §6). */\nexport const cssVariableName = (token: G9ColorToken): string => `--g9-${toKebabCase(token)}`;\n\n/** CSS variable of a `G9Metrics` value: `RadiusMd` → `--g9-metric-radius-md`. */\nexport const metricCssVariableName = (name: G9MetricName): string => `--g9-metric-${toKebabCase(name)}`;\n\n/**\n * CSS variable of a layout metric: `EdgeSpacing` → `--g9-layout-edge-spacing`. Insets and corner radii are emitted per\n * side/corner, e.g. `--g9-layout-body-padding-start`, `--g9-layout-map-chrome-corner-radius-top-end`.\n */\nexport const layoutCssVariableName = (name: keyof G9LayoutMetrics, part?: string): string =>\n `--g9-layout-${toKebabCase(name)}${part ? `-${toKebabCase(part)}` : ''}`;\n\n/**\n * A colour usable in any G9 colour prop or stylesheet that follows the active theme: `g9Token('Primary')` is\n * `var(--g9-primary)`. Replaces the MAUI `{G9Color Primary}` markup extension.\n */\nexport const g9Token = (token: G9ColorToken): string => `var(${cssVariableName(token)})`;\n\n/** One `--g9-<token>` variable per colour of `palette`, in token order. */\nexport function toCssVariables(theme: { readonly palette: G9PaletteValues }): G9CssVariables {\n const vars: Record<string, string> = {};\n for (const token of Object.keys(theme.palette) as G9ColorToken[]) vars[cssVariableName(token)] = theme.palette[token];\n return vars;\n}\n\n/** One `--g9-metric-<name>` variable per `G9Metrics` value, with its unit (`px`, `ms` or none). */\nexport function toMetricCssVariables(): G9CssVariables {\n const vars: Record<string, string> = {};\n for (const name of Object.keys(G9Metrics) as G9MetricName[]) {\n vars[metricCssVariableName(name)] = `${G9Metrics[name]}${g9MetricUnits[name]}`;\n }\n return vars;\n}\n\nconst LAYOUT_UNITLESS = new Set([\n 'G9BottomSheetFooterMaxButtonsPerRow',\n 'G9BottomSheetBackdropCardThreshold',\n 'G9BottomSheetBackdropCardMinScale',\n]);\n\n/**\n * The layout metrics as CSS variables (the counterpart of MAUI `G9LayoutMetrics.InstallDefaults`, which seeded the\n * resource keys XAML bound to). Lengths get `px`, `DeferredContentLoadDelayMs` gets `ms`, counts and ratios none.\n */\nexport function toLayoutCssVariables(metrics: G9LayoutMetrics = g9LayoutMetrics): G9CssVariables {\n const vars: Record<string, string> = {};\n for (const name of Object.keys(metrics) as (keyof G9LayoutMetrics)[]) {\n const value = metrics[name] as number | G9EdgeInsets | G9CornerRadius;\n if (typeof value === 'number') {\n const isCorner = name === 'ControlCornerRadiusValue' || name === 'MapChromeCornerRadius';\n const unit = name.endsWith('Ms') ? 'ms' : LAYOUT_UNITLESS.has(name) ? '' : 'px';\n if (isCorner) {\n for (const corner of ['topStart', 'topEnd', 'bottomEnd', 'bottomStart']) {\n vars[layoutCssVariableName(name, corner)] = `${value}px`;\n }\n } else {\n vars[layoutCssVariableName(name)] = `${value}${unit}`;\n }\n } else {\n for (const [part, length] of Object.entries(value)) vars[layoutCssVariableName(name, part)] = `${length}px`;\n }\n }\n return vars;\n}\n\n/** Renders variables as CSS declarations inside `selector`, one per line (e.g. for a generated stylesheet). */\nexport function cssVariablesToText(vars: G9CssVariables, selector: string): string {\n const body = Object.keys(vars)\n .map((name) => ` ${name}: ${vars[name]};`)\n .join('\\n');\n return `${selector} {\\n${body}\\n}\\n`;\n}\n"],"names":["toKebabCase","name","cssVariableName","token","metricCssVariableName","layoutCssVariableName","part","g9Token","toCssVariables","theme","vars","Object","toMetricCssVariables","G9Metrics","g9MetricUnits","LAYOUT_UNITLESS","Set","toLayoutCssVariables","metrics","g9LayoutMetrics","value","isCorner","unit","corner","length","cssVariablesToText","selector","body"],"mappings":";;AAQO,SAASA,YAAYC,IAAY;IACtC,OAAOA,KACJ,OAAO,CAAC,sBAAsB,SAC9B,OAAO,CAAC,wBAAwB,SAChC,WAAW;AAChB;AAGO,MAAMC,kBAAkB,CAACC,QAAgC,CAAC,KAAK,EAAEH,YAAYG,QAAQ;AAGrF,MAAMC,wBAAwB,CAACH,OAA+B,CAAC,YAAY,EAAED,YAAYC,OAAO;AAMhG,MAAMI,wBAAwB,CAACJ,MAA6BK,OACjE,CAAC,YAAY,EAAEN,YAAYC,QAAQK,OAAO,CAAC,CAAC,EAAEN,YAAYM,OAAO,GAAG,IAAI;AAMnE,MAAMC,UAAU,CAACJ,QAAgC,CAAC,IAAI,EAAED,gBAAgBC,OAAO,CAAC,CAAC;AAGjF,SAASK,eAAeC,KAA4C;IACzE,MAAMC,OAA+B,CAAC;IACtC,KAAK,MAAMP,SAASQ,OAAO,IAAI,CAACF,MAAM,OAAO,EAAqBC,IAAI,CAACR,gBAAgBC,OAAO,GAAGM,MAAM,OAAO,CAACN,MAAM;IACrH,OAAOO;AACT;AAGO,SAASE;IACd,MAAMF,OAA+B,CAAC;IACtC,KAAK,MAAMT,QAAQU,OAAO,IAAI,CAACE,WAC7BH,IAAI,CAACN,sBAAsBH,MAAM,GAAG,GAAGY,SAAS,CAACZ,KAAK,GAAGa,aAAa,CAACb,KAAK,EAAE;IAEhF,OAAOS;AACT;AAEA,MAAMK,kBAAkB,IAAIC,IAAI;IAC9B;IACA;IACA;CACD;AAMM,SAASC,qBAAqBC,UAA2BC,eAAe;IAC7E,MAAMT,OAA+B,CAAC;IACtC,KAAK,MAAMT,QAAQU,OAAO,IAAI,CAACO,SAAuC;QACpE,MAAME,QAAQF,OAAO,CAACjB,KAAK;QAC3B,IAAI,AAAiB,YAAjB,OAAOmB,OAAoB;YAC7B,MAAMC,WAAWpB,AAAS,+BAATA,QAAuCA,AAAS,4BAATA;YACxD,MAAMqB,OAAOrB,KAAK,QAAQ,CAAC,QAAQ,OAAOc,gBAAgB,GAAG,CAACd,QAAQ,KAAK;YAC3E,IAAIoB,UACF,KAAK,MAAME,UAAU;gBAAC;gBAAY;gBAAU;gBAAa;aAAc,CACrEb,IAAI,CAACL,sBAAsBJ,MAAMsB,QAAQ,GAAG,GAAGH,MAAM,EAAE,CAAC;iBAG1DV,IAAI,CAACL,sBAAsBJ,MAAM,GAAG,GAAGmB,QAAQE,MAAM;QAEzD,OACE,KAAK,MAAM,CAAChB,MAAMkB,OAAO,IAAIb,OAAO,OAAO,CAACS,OAAQV,IAAI,CAACL,sBAAsBJ,MAAMK,MAAM,GAAG,GAAGkB,OAAO,EAAE,CAAC;IAE/G;IACA,OAAOd;AACT;AAGO,SAASe,mBAAmBf,IAAoB,EAAEgB,QAAgB;IACvE,MAAMC,OAAOhB,OAAO,IAAI,CAACD,MACtB,GAAG,CAAC,CAACT,OAAS,CAAC,EAAE,EAAEA,KAAK,EAAE,EAAES,IAAI,CAACT,KAAK,CAAC,CAAC,CAAC,EACzC,IAAI,CAAC;IACR,OAAO,GAAGyB,SAAS,IAAI,EAAEC,KAAK,KAAK,CAAC;AACtC"}
@@ -0,0 +1,184 @@
1
+ /**
2
+ * Shared visual metric defaults of the G9 controls (MAUI `G9Metrics`), every public static value in declaration
3
+ * order. Lengths are logical pixels, `…Ms` values are milliseconds, scales/opacities are plain numbers.
4
+ */
5
+ export declare const G9Metrics: {
6
+ readonly RadiusXs: 6;
7
+ readonly RadiusSm: 8;
8
+ readonly RadiusMd: 12;
9
+ readonly RadiusLg: 16;
10
+ readonly RadiusXl: 20;
11
+ readonly RadiusPill: 999;
12
+ readonly ControlHeight: 52;
13
+ readonly ButtonHeightSmall: 36;
14
+ readonly ButtonHeightMedium: 44;
15
+ readonly ButtonHeightLarge: 48;
16
+ readonly ButtonHeightHero: 52;
17
+ readonly InputHorizontalPadding: 14;
18
+ readonly InputIconSize: 20;
19
+ readonly LeadingIconOuterMargin: 12;
20
+ readonly LeadingIconInnerMargin: 8;
21
+ readonly TrailingIconOuterMargin: 12;
22
+ readonly TrailingIconInnerMargin: 8;
23
+ readonly LeadingIconSlotWidth: 40;
24
+ readonly TrailingIconSlotWidth: 40;
25
+ readonly EditorTrailingIconBottomInset: 8;
26
+ readonly EditorTrailingSlotHeight: 36;
27
+ readonly InputLabelLeadingIconOffset: 26;
28
+ readonly FloatingLabelFloatedExtraX: 8;
29
+ readonly OutlineNotchTextGap: 8;
30
+ readonly FloatingLabelFontSizeFloat: 11;
31
+ readonly FloatingLabelFontSizeRest: 15;
32
+ readonly FloatingLabelHeight: 22;
33
+ readonly FloatingLabelFloatedY: -11;
34
+ readonly FloatingLabelRestScale: 1;
35
+ readonly FloatingLabelFloatedScale: 0.78;
36
+ readonly FloatingLabelDurationMs: 160;
37
+ readonly FloatingLabelClearance: 6;
38
+ readonly HelperFontSize: 11.5;
39
+ readonly CounterFontSize: 11;
40
+ readonly OutlinedFieldStrokeThickness: 1.5;
41
+ readonly OutlinedFieldEmphasisStrokeThickness: 2.5;
42
+ readonly OutlinedFieldFocusHaloThickness: 6;
43
+ readonly FocusRingOpacity: 0.22;
44
+ readonly ButtonFontSmall: 12;
45
+ readonly ButtonFontMedium: 14;
46
+ readonly ButtonFontLarge: 15;
47
+ readonly ButtonFontHero: 16;
48
+ readonly SwitchWidth: 56;
49
+ readonly SwitchHeight: 32;
50
+ readonly SwitchThumb: 24;
51
+ readonly SwitchThumbPressed: 30;
52
+ readonly SliderHeight: 104;
53
+ readonly SliderHeightCompact: 36;
54
+ readonly SliderTrackY: 52;
55
+ readonly SliderTrackHeight: 8;
56
+ readonly SliderThumbRadius: 14;
57
+ readonly SliderHorizontalInset: 16;
58
+ readonly SliderLabelGap: 18;
59
+ readonly PinCellWidth: 44;
60
+ readonly PinCellHeight: 52;
61
+ readonly PinCellStrokeThickness: 1.4;
62
+ readonly PinCellStrokeThicknessFocused: 2;
63
+ readonly PinCellCornerRadius: 10;
64
+ readonly PinCellSpacing: 8;
65
+ readonly PinSeparatorSpacing: 6;
66
+ readonly PinCellFontSize: 22;
67
+ readonly PinSeparatorFontSize: 22;
68
+ readonly ProgressBarHeight: 10;
69
+ readonly ChipHeight: 36;
70
+ readonly ChipHorizontalPadding: 14;
71
+ readonly ChipFontSize: 13;
72
+ readonly ChipIconSize: 16;
73
+ readonly ChipSpacing: 6;
74
+ readonly ChipSelectionAnimationMs: 140;
75
+ readonly ChipCheckmarkAnimationMs: 120;
76
+ readonly TabBarHeight: 52;
77
+ readonly TabBarInnerPadding: 4;
78
+ readonly TabBarRadius: 26;
79
+ readonly TabPillVerticalInset: 2;
80
+ readonly TabPillRadius: 18;
81
+ readonly TabCellHorizontalPadding: 16;
82
+ readonly TabBarToContentGap: 8;
83
+ readonly TabFontSize: 13;
84
+ readonly TabIconSize: 16;
85
+ readonly TabBadgeHeight: 18;
86
+ readonly TabContentRadius: 16;
87
+ readonly TabUnderlineThickness: 2.5;
88
+ readonly TabBarEdgeLineThickness: 1;
89
+ readonly TabSeparatorThickness: 1;
90
+ readonly TabSeparatorVerticalInset: 12;
91
+ readonly TabContentDefaultPadding: 20;
92
+ readonly DrumColumnHeight: 220;
93
+ readonly DrumRowHeight: 44;
94
+ readonly DrumLabelFontSize: 10;
95
+ readonly DrumSelectedFontSize: 17;
96
+ readonly DrumUnselectedFontSize: 16;
97
+ readonly SelectionRowHeight: 52;
98
+ readonly SelectionRowHorizontalPadding: 16;
99
+ readonly SelectionMaxHeight: 520;
100
+ readonly SelectionMinHeight: 220;
101
+ readonly SelectionRowFontSize: 14;
102
+ readonly SelectionIconSize: 18;
103
+ readonly SelectionCheckBoxSize: 20;
104
+ readonly SelectionCheckRadius: 6;
105
+ readonly CheckBoxSize: 20;
106
+ readonly CheckBoxCornerRadius: 6;
107
+ readonly CheckBoxStrokeThickness: 2;
108
+ readonly CheckBoxMarkStrokeThickness: 2;
109
+ readonly CheckBoxHaloDiameter: 40;
110
+ readonly CheckBoxLabelSpacing: 2;
111
+ readonly CheckBoxLabelVerticalPadding: 12;
112
+ readonly CheckBoxLabelFontSize: 14;
113
+ readonly CheckBoxToggleDurationMs: 200;
114
+ readonly CheckBoxMorphDurationMs: 150;
115
+ readonly NavCardIconBadgeSize: 38;
116
+ readonly NavCardPaddingX: 14;
117
+ readonly NavCardPaddingY: 12;
118
+ readonly NavCardTitleFontSize: 14;
119
+ readonly NavCardSubtitleFontSize: 11.5;
120
+ readonly NavCardValueFontSize: 13;
121
+ readonly NavCardChevronSize: 24;
122
+ readonly NavCardComingSoonFontSize: 10;
123
+ readonly NavCardComingSoonPaddingX: 7;
124
+ readonly NavCardComingSoonPaddingY: 3.5;
125
+ readonly NavCardComingSoonRadius: 11;
126
+ readonly SeparatorTitleFontSize: 10;
127
+ readonly SeparatorIconSize: 12;
128
+ readonly ExpanderHeaderHeight: 48;
129
+ readonly ExpanderTitleFontSize: 15;
130
+ readonly ExpanderIconSize: 20;
131
+ readonly ExpanderChevronSize: 22;
132
+ readonly ExpanderHeaderSpacing: 10;
133
+ readonly ExpanderContentTopGap: 8;
134
+ readonly ExpanderHeaderPaddingX: 14;
135
+ readonly ExpanderChevronRotationMs: 220;
136
+ readonly ExpanderContentAnimationMs: 220;
137
+ readonly CascadePanelAnimationMs: 280;
138
+ readonly CascadePanelHeaderHeight: 48;
139
+ readonly CascadePanelHeaderFontSize: 15;
140
+ readonly CascadePanelBackIconSize: 22;
141
+ readonly CascadePanelHeaderPadding: 8;
142
+ readonly CascadePanelParallaxFraction: 0.18;
143
+ readonly CascadePanelUnderlayDimOpacity: 0.55;
144
+ readonly PressDurationMs: 80;
145
+ readonly ReleaseDurationMs: 150;
146
+ readonly HoverDurationMs: 80;
147
+ readonly RippleDurationMs: 350;
148
+ readonly IconPressScaleTo: 0.92;
149
+ readonly TabIndicatorDurationMs: 240;
150
+ readonly TabContentTransitionMs: 160;
151
+ readonly SwitchToggleDurationMs: 240;
152
+ readonly ProgressValueDurationMs: 300;
153
+ readonly IndeterminateFrameMs: 16;
154
+ readonly IndeterminateStep: 0.012;
155
+ readonly IntroOverlayOpacity: 0.52;
156
+ readonly IntroOverlayTopOpacityRatio: 0.4;
157
+ readonly IntroStartupCoverFadeDurationMs: 320;
158
+ readonly IntroInitialVideoSeekTimeoutMs: 900;
159
+ readonly IntroMediaFadeInDurationMs: 420;
160
+ readonly IntroMediaFadeOutDurationMs: 420;
161
+ readonly IntroLogoWidth: 192;
162
+ readonly IntroLogoHeight: 34;
163
+ readonly IntroTitleFontSize: 18;
164
+ readonly IntroSubtitleFontSize: 14;
165
+ readonly IntroNavFontSize: 14;
166
+ readonly IntroStepActiveWidth: 28;
167
+ readonly IntroStepInactiveWidth: 20;
168
+ readonly IntroStepHeight: 4;
169
+ readonly IntroStepSpacing: 6;
170
+ readonly IntroChromePadding: 20;
171
+ readonly IntroHeaderTopPadding: 16;
172
+ readonly IntroLogoTopMargin: 48;
173
+ readonly IntroTextBottomMargin: 12;
174
+ readonly IntroNavMinTouchHeight: 48;
175
+ readonly IntroNavMinTouchWidth: 72;
176
+ readonly IntroContentBottomPadding: 24;
177
+ };
178
+ /** The name of a `G9Metrics` value. */
179
+ export type G9MetricName = keyof typeof G9Metrics;
180
+ /** The CSS unit each metric is emitted with by `toMetricCssVariables`. */
181
+ export declare const g9MetricUnits: {
182
+ readonly [K in G9MetricName]: 'px' | 'ms' | '';
183
+ };
184
+ //# sourceMappingURL=metrics.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"metrics.d.ts","sourceRoot":"","sources":["../../../src/tokens/generated/metrics.ts"],"names":[],"mappings":"AAGA;;;GAGG;AACH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4KZ,CAAC;AACX,uCAAuC;AACvC,MAAM,MAAM,YAAY,GAAG,MAAM,OAAO,SAAS,CAAC;AAElD,0EAA0E;AAC1E,eAAO,MAAM,aAAa,EAAE;IAAE,QAAQ,EAAE,CAAC,IAAI,YAAY,GAAG,IAAI,GAAG,IAAI,GAAG,EAAE;CA4K3E,CAAC"}