@oxyhq/bloom 0.73.1 → 0.74.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 (88) hide show
  1. package/lib/commonjs/design-tokens/theme.css +22 -0
  2. package/lib/commonjs/fab/Fab.js +9 -0
  3. package/lib/commonjs/fab/Fab.js.map +1 -1
  4. package/lib/commonjs/fab/Fab.web.js +11 -0
  5. package/lib/commonjs/fab/Fab.web.js.map +1 -1
  6. package/lib/commonjs/theme/BloomThemeProvider.js.map +1 -1
  7. package/lib/commonjs/theme/build-theme-from-seed.js +7 -5
  8. package/lib/commonjs/theme/build-theme-from-seed.js.map +1 -1
  9. package/lib/commonjs/theme/build-theme.js +9 -4
  10. package/lib/commonjs/theme/build-theme.js.map +1 -1
  11. package/lib/commonjs/theme/color-policy.js +315 -0
  12. package/lib/commonjs/theme/color-policy.js.map +1 -0
  13. package/lib/commonjs/theme/color-scope/seed-scope.js +13 -1
  14. package/lib/commonjs/theme/color-scope/seed-scope.js.map +1 -1
  15. package/lib/commonjs/theme/color-scope/style-builder.js +6 -0
  16. package/lib/commonjs/theme/color-scope/style-builder.js.map +1 -1
  17. package/lib/commonjs/theme/preset-vars.js +9 -1
  18. package/lib/commonjs/theme/preset-vars.js.map +1 -1
  19. package/lib/commonjs/theme/token-registry.js +11 -1
  20. package/lib/commonjs/theme/token-registry.js.map +1 -1
  21. package/lib/module/design-tokens/theme.css +22 -0
  22. package/lib/module/fab/Fab.js +9 -0
  23. package/lib/module/fab/Fab.js.map +1 -1
  24. package/lib/module/fab/Fab.web.js +11 -0
  25. package/lib/module/fab/Fab.web.js.map +1 -1
  26. package/lib/module/theme/BloomThemeProvider.js.map +1 -1
  27. package/lib/module/theme/build-theme-from-seed.js +7 -5
  28. package/lib/module/theme/build-theme-from-seed.js.map +1 -1
  29. package/lib/module/theme/build-theme.js +9 -4
  30. package/lib/module/theme/build-theme.js.map +1 -1
  31. package/lib/module/theme/color-policy.js +310 -0
  32. package/lib/module/theme/color-policy.js.map +1 -0
  33. package/lib/module/theme/color-scope/seed-scope.js +13 -1
  34. package/lib/module/theme/color-scope/seed-scope.js.map +1 -1
  35. package/lib/module/theme/color-scope/style-builder.js +6 -0
  36. package/lib/module/theme/color-scope/style-builder.js.map +1 -1
  37. package/lib/module/theme/preset-vars.js +9 -1
  38. package/lib/module/theme/preset-vars.js.map +1 -1
  39. package/lib/module/theme/token-registry.js +11 -1
  40. package/lib/module/theme/token-registry.js.map +1 -1
  41. package/lib/typescript/commonjs/fab/Fab.d.ts.map +1 -1
  42. package/lib/typescript/commonjs/fab/Fab.web.d.ts.map +1 -1
  43. package/lib/typescript/commonjs/fab/types.d.ts +6 -1
  44. package/lib/typescript/commonjs/fab/types.d.ts.map +1 -1
  45. package/lib/typescript/commonjs/icons/common.d.ts +1 -1
  46. package/lib/typescript/commonjs/theme/BloomThemeProvider.d.ts.map +1 -1
  47. package/lib/typescript/commonjs/theme/build-theme-from-seed.d.ts.map +1 -1
  48. package/lib/typescript/commonjs/theme/build-theme.d.ts.map +1 -1
  49. package/lib/typescript/commonjs/theme/color-policy.d.ts +48 -0
  50. package/lib/typescript/commonjs/theme/color-policy.d.ts.map +1 -0
  51. package/lib/typescript/commonjs/theme/color-scope/seed-scope.d.ts.map +1 -1
  52. package/lib/typescript/commonjs/theme/color-scope/style-builder.d.ts.map +1 -1
  53. package/lib/typescript/commonjs/theme/preset-vars.d.ts.map +1 -1
  54. package/lib/typescript/commonjs/theme/token-registry.d.ts +1 -1
  55. package/lib/typescript/commonjs/theme/token-registry.d.ts.map +1 -1
  56. package/lib/typescript/module/fab/Fab.d.ts.map +1 -1
  57. package/lib/typescript/module/fab/Fab.web.d.ts.map +1 -1
  58. package/lib/typescript/module/fab/types.d.ts +6 -1
  59. package/lib/typescript/module/fab/types.d.ts.map +1 -1
  60. package/lib/typescript/module/icons/common.d.ts +1 -1
  61. package/lib/typescript/module/theme/BloomThemeProvider.d.ts.map +1 -1
  62. package/lib/typescript/module/theme/build-theme-from-seed.d.ts.map +1 -1
  63. package/lib/typescript/module/theme/build-theme.d.ts.map +1 -1
  64. package/lib/typescript/module/theme/color-policy.d.ts +48 -0
  65. package/lib/typescript/module/theme/color-policy.d.ts.map +1 -0
  66. package/lib/typescript/module/theme/color-scope/seed-scope.d.ts.map +1 -1
  67. package/lib/typescript/module/theme/color-scope/style-builder.d.ts.map +1 -1
  68. package/lib/typescript/module/theme/preset-vars.d.ts.map +1 -1
  69. package/lib/typescript/module/theme/token-registry.d.ts +1 -1
  70. package/lib/typescript/module/theme/token-registry.d.ts.map +1 -1
  71. package/package.json +1 -1
  72. package/src/__tests__/preset-vars.test.ts +27 -15
  73. package/src/design-tokens/theme.css +22 -0
  74. package/src/fab/Fab.tsx +3 -0
  75. package/src/fab/Fab.web.tsx +3 -0
  76. package/src/fab/types.ts +6 -1
  77. package/src/theme/BloomThemeProvider.tsx +7 -4
  78. package/src/theme/__tests__/__fixtures__/golden-resolved-tokens.json +1300 -312
  79. package/src/theme/__tests__/__snapshots__/visual-gallery.test.tsx.snap +442 -442
  80. package/src/theme/__tests__/policy-legibility.test.ts +118 -0
  81. package/src/theme/__tests__/theme-colors-parity.test.ts +11 -6
  82. package/src/theme/build-theme-from-seed.ts +7 -4
  83. package/src/theme/build-theme.ts +9 -4
  84. package/src/theme/color-policy.ts +342 -0
  85. package/src/theme/color-scope/seed-scope.ts +13 -1
  86. package/src/theme/color-scope/style-builder.ts +6 -0
  87. package/src/theme/preset-vars.ts +10 -1
  88. package/src/theme/token-registry.ts +32 -0
@@ -0,0 +1,48 @@
1
+ /**
2
+ * Bloom colour policy — how a seed becomes the visible token set.
3
+ *
4
+ * The engine (`color-engine/`) answers "what colours exist around this seed".
5
+ * This module answers the separate question of how deep, how loud and how far
6
+ * apart they should be, which canonical Material 3 answers differently than
7
+ * Bloom needs:
8
+ *
9
+ * - M3 puts `primary` at tone 80 in dark so it can be used as TEXT. Bloom uses
10
+ * `--primary` as a FILL (buttons, FABs, the user's own chat bubble), and tone
11
+ * 80 collapses chroma — the reason the whole palette read pastel. The two jobs
12
+ * are split here: `--primary` is the fill, `--primary-text` is the accent
13
+ * legible as text on the page.
14
+ * - M3's supporting accents rotate 18–35 degrees off the seed, so the
15
+ * primary/secondary/tertiary trio lands in one hue family and cannot encode
16
+ * anything. A real split-complementary rotation fixes that.
17
+ * - Chroma has to scale inversely with the area a colour paints: a chip's
18
+ * background covers far more pixels than its label.
19
+ *
20
+ * The single rule underneath every decision here is that **light and dark want
21
+ * opposite things**. On a near-white page a fill must go deep to read calm; on a
22
+ * near-black one it must stay bright or it turns to mud. Every asymmetry below
23
+ * is that rule applied to one more role.
24
+ */
25
+ import { type RoleColors } from './color-engine';
26
+ /** Semantic status seeds. Only hue and chroma survive; tones come from the policy. */
27
+ export declare const STATUS_SEEDS: {
28
+ readonly success: "#10B981";
29
+ readonly error: "#EF4444";
30
+ readonly warning: "#F59E0B";
31
+ readonly info: "#3B82F6";
32
+ };
33
+ /** Optional real accent colours — e.g. the 2nd and 3rd seeds extracted from artwork. */
34
+ export interface PinnedAccents {
35
+ secondary?: string;
36
+ tertiary?: string;
37
+ }
38
+ /** The tokens the policy owns. Everything else keeps coming from the M3 roles. */
39
+ export type PolicyTokens = Record<string, string>;
40
+ /**
41
+ * Build the policy-owned tokens for a seed and mode.
42
+ *
43
+ * `roles` is the engine's `vivid` role set for the same seed and mode, passed in
44
+ * so the caller does not generate it twice — the surface scale and
45
+ * `--primary-text` come straight from it.
46
+ */
47
+ export declare function buildPolicyTokens(seedHex: string, isDark: boolean, roles: RoleColors, pinned?: PinnedAccents): PolicyTokens;
48
+ //# sourceMappingURL=color-policy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"color-policy.d.ts","sourceRoot":"","sources":["../../../../src/theme/color-policy.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,OAAO,EAAe,KAAK,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAM9D,sFAAsF;AACtF,eAAO,MAAM,YAAY;;;;;CAKf,CAAC;AAEX,wFAAwF;AACxF,MAAM,WAAW,aAAa;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,kFAAkF;AAClF,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAkLlD;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,OAAO,EACf,KAAK,EAAE,UAAU,EACjB,MAAM,GAAE,aAAkB,GACzB,YAAY,CA0Gd"}
@@ -1 +1 @@
1
- {"version":3,"file":"seed-scope.d.ts","sourceRoot":"","sources":["../../../../../src/theme/color-scope/seed-scope.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,KAAK,UAAU,EAAE,KAAK,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAG1F;;;;;;;;;;;;;GAaG;AACH,wBAAgB,wBAAwB,CAAC,CAAC,EAAE,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CA4C9E;AAED,mEAAmE;AACnE,MAAM,WAAW,gBAAgB;IAC/B,kCAAkC;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,OAAO,GAAG,MAAM,CAAC;IACvB;;;;OAIG;IACH,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,uDAAuD;IACvD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;;OAKG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,gBAAgB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAoBpF"}
1
+ {"version":3,"file":"seed-scope.d.ts","sourceRoot":"","sources":["../../../../../src/theme/color-scope/seed-scope.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,KAAK,UAAU,EAAE,KAAK,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAI1F;;;;;;;;;;;;;GAaG;AACH,wBAAgB,wBAAwB,CAAC,CAAC,EAAE,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CA4C9E;AAED,mEAAmE;AACnE,MAAM,WAAW,gBAAgB;IAC/B,kCAAkC;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,OAAO,GAAG,MAAM,CAAC;IACvB;;;;OAIG;IACH,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,uDAAuD;IACvD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;;OAKG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,gBAAgB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CA+BpF"}
@@ -1 +1 @@
1
- {"version":3,"file":"style-builder.d.ts","sourceRoot":"","sources":["../../../../../src/theme/color-scope/style-builder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAY,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAGxE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AA6CtD;;;;;GAKG;AACH,MAAM,MAAM,gCAAgC,GAAG,KAAK,CAAC,aAAa,CAAC;IACjE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC9B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC,CAAC;AAkEH;;;;;;;;;GASG;AACH,wBAAgB,cAAc,CAC5B,WAAW,EAAE,YAAY,EACzB,IAAI,EAAE,OAAO,GAAG,MAAM,EACtB,OAAO,CAAC,EAAE,eAAe,GACxB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAYxB;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,0BAA0B,IAAI,gCAAgC,GAAG,IAAI,CAepF;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,sBAAsB,CACpC,WAAW,EAAE,YAAY,EACzB,IAAI,EAAE,OAAO,GAAG,MAAM,GACrB,SAAS,CAAC,SAAS,CAAC,CAQtB"}
1
+ {"version":3,"file":"style-builder.d.ts","sourceRoot":"","sources":["../../../../../src/theme/color-scope/style-builder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAY,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAGxE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AA6CtD;;;;;GAKG;AACH,MAAM,MAAM,gCAAgC,GAAG,KAAK,CAAC,aAAa,CAAC;IACjE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC9B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC,CAAC;AAkEH;;;;;;;;;GASG;AACH,wBAAgB,cAAc,CAC5B,WAAW,EAAE,YAAY,EACzB,IAAI,EAAE,OAAO,GAAG,MAAM,EACtB,OAAO,CAAC,EAAE,eAAe,GACxB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAkBxB;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,0BAA0B,IAAI,gCAAgC,GAAG,IAAI,CAepF;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,sBAAsB,CACpC,WAAW,EAAE,YAAY,EACzB,IAAI,EAAE,OAAO,GAAG,MAAM,GACrB,SAAS,CAAC,SAAS,CAAC,CAQtB"}
@@ -1 +1 @@
1
- {"version":3,"file":"preset-vars.d.ts","sourceRoot":"","sources":["../../../../src/theme/preset-vars.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,KAAK,YAAY,EAAE,KAAK,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAG1F;;;;;;GAMG;AACH,MAAM,WAAW,eAAe;IAC9B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAOD;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,aAAa,CAC3B,SAAS,EAAE,YAAY,EACvB,IAAI,EAAE,OAAO,GAAG,MAAM,EACtB,OAAO,CAAC,EAAE,eAAe,GACxB,YAAY,CAiEd;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,yBAAyB,CACvC,SAAS,EAAE,YAAY,EACvB,IAAI,EAAE,OAAO,GAAG,MAAM,GACrB,IAAI,CAYN"}
1
+ {"version":3,"file":"preset-vars.d.ts","sourceRoot":"","sources":["../../../../src/theme/preset-vars.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,KAAK,YAAY,EAAE,KAAK,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAI1F;;;;;;GAMG;AACH,MAAM,WAAW,eAAe;IAC9B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAOD;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,aAAa,CAC3B,SAAS,EAAE,YAAY,EACvB,IAAI,EAAE,OAAO,GAAG,MAAM,EACtB,OAAO,CAAC,EAAE,eAAe,GACxB,YAAY,CAyEd;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,yBAAyB,CACvC,SAAS,EAAE,YAAY,EACvB,IAAI,EAAE,OAAO,GAAG,MAAM,GACrB,IAAI,CAYN"}
@@ -13,7 +13,7 @@ import { type ExplicitAccents } from './preset-vars';
13
13
  * Order mirrors `getPresetVars`'s insertion order: base tokens first (in the
14
14
  * order they appear in the preset data), then the synthesized extended tokens.
15
15
  */
16
- export declare const CANONICAL_TOKENS: readonly ["background", "foreground", "surface", "surface-foreground", "popover", "popover-foreground", "primary", "primary-foreground", "secondary", "secondary-foreground", "tertiary", "tertiary-foreground", "muted", "muted-foreground", "accent", "accent-foreground", "destructive", "border", "input", "ring", "sidebar", "card", "card-foreground", "chart-1", "chart-2", "chart-3", "chart-4", "chart-5", "content-area", "sidebar-foreground", "sidebar-primary", "sidebar-primary-foreground", "sidebar-accent", "sidebar-accent-foreground", "sidebar-border", "sidebar-ring"];
16
+ export declare const CANONICAL_TOKENS: readonly ["background", "foreground", "surface", "surface-foreground", "popover", "popover-foreground", "primary", "primary-foreground", "secondary", "secondary-foreground", "tertiary", "tertiary-foreground", "muted", "muted-foreground", "accent", "accent-foreground", "destructive", "border", "input", "ring", "sidebar", "card", "card-foreground", "chart-1", "chart-2", "chart-3", "chart-4", "chart-5", "content-area", "sidebar-foreground", "sidebar-primary", "sidebar-primary-foreground", "sidebar-accent", "sidebar-accent-foreground", "sidebar-border", "sidebar-ring", "primary-text", "primary-subtle", "secondary-text", "secondary-subtle", "tertiary-text", "tertiary-subtle", "success", "success-foreground", "success-text", "success-subtle", "error", "error-foreground", "error-text", "error-subtle", "warning", "warning-foreground", "warning-text", "warning-subtle", "info", "info-foreground", "info-text", "info-subtle"];
17
17
  /** A canonical token name (no leading `--`). */
18
18
  export type CanonicalToken = (typeof CANONICAL_TOKENS)[number];
19
19
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"token-registry.d.ts","sourceRoot":"","sources":["../../../../src/theme/token-registry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,KAAK,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACrE,OAAO,EAAiB,KAAK,eAAe,EAAE,MAAM,eAAe,CAAC;AAEpE;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,gBAAgB,6jBAqCnB,CAAC;AAEX,gDAAgD;AAChD,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC;AAW/D;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CA+ChD;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,YAAY,EACpB,IAAI,EAAE,OAAO,GAAG,MAAM,EACtB,OAAO,CAAC,EAAE,eAAe,GACxB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAOxB;AAED,OAAO,EAAE,eAAe,EAAE,CAAC"}
1
+ {"version":3,"file":"token-registry.d.ts","sourceRoot":"","sources":["../../../../src/theme/token-registry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,KAAK,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACrE,OAAO,EAAiB,KAAK,eAAe,EAAE,MAAM,eAAe,CAAC;AAEpE;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,gBAAgB,i6BAqEnB,CAAC;AAEX,gDAAgD;AAChD,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC;AAW/D;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CA+ChD;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,YAAY,EACpB,IAAI,EAAE,OAAO,GAAG,MAAM,EACtB,OAAO,CAAC,EAAE,eAAe,GACxB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAOxB;AAED,OAAO,EAAE,eAAe,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Fab.d.ts","sourceRoot":"","sources":["../../../../src/fab/Fab.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwB,MAAM,OAAO,CAAC;AAa7C,OAAO,KAAK,EAAgB,QAAQ,EAAuB,MAAM,SAAS,CAAC;AAE3E,YAAY,EAAE,QAAQ,EAAE,UAAU,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAyM3E,eAAO,MAAM,GAAG,sCAAqB,CAAC"}
1
+ {"version":3,"file":"Fab.d.ts","sourceRoot":"","sources":["../../../../src/fab/Fab.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwB,MAAM,OAAO,CAAC;AAa7C,OAAO,KAAK,EAAgB,QAAQ,EAAuB,MAAM,SAAS,CAAC;AAE3E,YAAY,EAAE,QAAQ,EAAE,UAAU,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AA4M3E,eAAO,MAAM,GAAG,sCAAqB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Fab.web.d.ts","sourceRoot":"","sources":["../../../../src/fab/Fab.web.tsx"],"names":[],"mappings":"AAAA,OAAO,KAQN,MAAM,OAAO,CAAC;AAKf,OAAO,KAAK,EAAgB,QAAQ,EAAuB,MAAM,SAAS,CAAC;AAE3E,YAAY,EAAE,QAAQ,EAAE,UAAU,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAiS3E,eAAO,MAAM,GAAG,sCAAwB,CAAC"}
1
+ {"version":3,"file":"Fab.web.d.ts","sourceRoot":"","sources":["../../../../src/fab/Fab.web.tsx"],"names":[],"mappings":"AAAA,OAAO,KAQN,MAAM,OAAO,CAAC;AAKf,OAAO,KAAK,EAAgB,QAAQ,EAAuB,MAAM,SAAS,CAAC;AAE3E,YAAY,EAAE,QAAQ,EAAE,UAAU,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAoS3E,eAAO,MAAM,GAAG,sCAAwB,CAAC"}
@@ -8,7 +8,12 @@ import type { StyleProp, ViewStyle, TextStyle } from 'react-native';
8
8
  * A lower-emphasis FAB that still reads as elevated.
9
9
  * - `surface` — alias of `secondary`, named for Material-style "surface" FABs.
10
10
  */
11
- export type FabVariant = 'primary' | 'secondary' | 'surface';
11
+ /**
12
+ * M3 defines four FAB colour variants. Bloom previously mapped `secondary` onto
13
+ * the neutral card surface, so a "secondary FAB" was a grey circle and the
14
+ * accent trio had no home in the component that most wants one.
15
+ */
16
+ export type FabVariant = 'primary' | 'secondary' | 'tertiary' | 'surface';
12
17
  /**
13
18
  * FAB size presets, matching Material-ish conventions but in Bloom's scale:
14
19
  * - `small` — 40px (compact / dense layouts)
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/fab/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEpE;;;;;;;;GAQG;AACH,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,WAAW,GAAG,SAAS,CAAC;AAE7D;;;;;;;;;;;;;;GAcG;AACH,MAAM,MAAM,OAAO,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AAEnD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,MAAM,YAAY,GACpB,cAAc,GACd,aAAa,GACb,WAAW,GACX,UAAU,GACV,QAAQ,CAAC;AAEb,MAAM,WAAW,QAAQ;IACvB,qBAAqB;IACrB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAErB;;;;;;;;;OASG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE3B;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,OAAO,CAAC,EAAE,UAAU,CAAC;IACrB;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAExB;;;;OAIG;IACH,SAAS,CAAC,EAAE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AI,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC;CACtC"}
@@ -36,6 +36,7 @@ export declare function useCommonSVGProps(props: Props): {
36
36
  style: false | "" | IconStyle | import("react-native").RecursiveArray<import("react-native").Falsy | IconStyle> | null;
37
37
  title?: string | undefined;
38
38
  children?: React.ReactNode;
39
+ role?: import("react-native").Role | undefined;
39
40
  filter?: string | undefined;
40
41
  hitSlop?: number | import("react-native").Insets | undefined;
41
42
  id?: string | undefined;
@@ -113,7 +114,6 @@ export declare function useCommonSVGProps(props: Props): {
113
114
  importantForAccessibility?: ("auto" | "yes" | "no" | "no-hide-descendants") | undefined | undefined;
114
115
  'aria-hidden'?: boolean | undefined | undefined;
115
116
  'aria-modal'?: boolean | undefined | undefined;
116
- role?: import("react-native").Role | undefined;
117
117
  accessibilityLabelledBy?: string | string[] | undefined | undefined;
118
118
  'aria-labelledby'?: string | undefined | undefined;
119
119
  accessibilityLiveRegion?: "none" | "polite" | "assertive" | undefined | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"BloomThemeProvider.d.ts","sourceRoot":"","sources":["../../../../src/theme/BloomThemeProvider.tsx"],"names":[],"mappings":"AAIA,OAAO,oBAAoB,CAAC;AAE5B,OAAO,KAQN,MAAM,OAAO,CAAC;AACf,OAAO,EAIL,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAWtB,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAGpD,OAAO,EAKL,KAAK,iBAAiB,EAEvB,MAAM,eAAe,CAAC;AAIvB,OAAO,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAKhD,MAAM,WAAW,sBAAsB;IACrC,KAAK,EAAE,KAAK,CAAC;IACb,IAAI,EAAE,SAAS,CAAC;IAChB,WAAW,EAAE,YAAY,CAAC;IAC1B,OAAO,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC;IACnC,c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AmC,EACnC,YAAY,EACZ,mBAAmB,EACnB,UAAU,EACV,OAAO,EACP,cAAc,EACd,WAAW,EACX,KAAY,EACZ,cAAc,EACd,kBAAkB,EAClB,cAAc,EACd,aAAa,EACb,IAAI,EACJ,QAAQ,GACT,EAAE,uBAAuB,2CAkKzB"}
@@ -1 +1 @@
1
- {"version":3,"file":"build-theme-from-seed.d.ts","sourceRoot":"","sources":["../../../../src/theme/build-theme-from-seed.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuC,KAAK,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAIzF,OAAO,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAElD;;;;;;GAMG;AACH,MAAM,WAAW,WAAW;IAC1B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,OAAO,GAAG,MAAM,EAC1B,OAAO,CAAC,EAAE,aAAa,EACvB,aAAa,CAAC,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,WAAW,GACpB,WAAW,CA+Db;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,OAAO,GAAG,MAAM,EAC1B,OAAO,CAAC,EAAE,aAAa,EACvB,aAAa,CAAC,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,WAAW,GACpB,KAAK,CAQP"}
1
+ {"version":3,"file":"build-theme-from-seed.d.ts","sourceRoot":"","sources":["../../../../src/theme/build-theme-from-seed.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuC,KAAK,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAIzF,OAAO,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAElD;;;;;;GAMG;AACH,MAAM,WAAW,WAAW;IAC1B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,OAAO,GAAG,MAAM,EAC1B,OAAO,CAAC,EAAE,aAAa,EACvB,aAAa,CAAC,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,WAAW,GACpB,WAAW,CAkEb;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,OAAO,GAAG,MAAM,EAC1B,OAAO,CAAC,EAAE,aAAa,EACvB,aAAa,CAAC,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,WAAW,GACpB,KAAK,CAQP"}
@@ -1 +1 @@
1
- {"version":3,"file":"build-theme.d.ts","sourceRoot":"","sources":["../../../../src/theme/build-theme.ts"],"names":[],"mappings":"AACA,OAAO,EAAqB,KAAK,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEvE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAIrD,OAAO,KAAK,EAAE,KAAK,EAAe,MAAM,SAAS,CAAC;AAElD;;;GAGG;AACH,eAAO,MAAM,aAAa;;;;;CAKhB,CAAC;AAoFX;;;;;GAKG;AACH,wBAAgB,UAAU,CACxB,MAAM,EAAE,YAAY,EACpB,QAAQ,EAAE,OAAO,GAAG,MAAM,EAC1B,UAAU,GAAE,OAAe,EAC3B,OAAO,CAAC,EAAE,eAAe,GACxB,KAAK,CAWP"}
1
+ {"version":3,"file":"build-theme.d.ts","sourceRoot":"","sources":["../../../../src/theme/build-theme.ts"],"names":[],"mappings":"AACA,OAAO,EAAqB,KAAK,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEvE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAIrD,OAAO,KAAK,EAAE,KAAK,EAAe,MAAM,SAAS,CAAC;AAElD;;;GAGG;AACH,eAAO,MAAM,aAAa;;;;;CAKhB,CAAC;AAyFX;;;;;GAKG;AACH,wBAAgB,UAAU,CACxB,MAAM,EAAE,YAAY,EACpB,QAAQ,EAAE,OAAO,GAAG,MAAM,EAC1B,UAAU,GAAE,OAAe,EAC3B,OAAO,CAAC,EAAE,eAAe,GACxB,KAAK,CAWP"}
@@ -0,0 +1,48 @@
1
+ /**
2
+ * Bloom colour policy — how a seed becomes the visible token set.
3
+ *
4
+ * The engine (`color-engine/`) answers "what colours exist around this seed".
5
+ * This module answers the separate question of how deep, how loud and how far
6
+ * apart they should be, which canonical Material 3 answers differently than
7
+ * Bloom needs:
8
+ *
9
+ * - M3 puts `primary` at tone 80 in dark so it can be used as TEXT. Bloom uses
10
+ * `--primary` as a FILL (buttons, FABs, the user's own chat bubble), and tone
11
+ * 80 collapses chroma — the reason the whole palette read pastel. The two jobs
12
+ * are split here: `--primary` is the fill, `--primary-text` is the accent
13
+ * legible as text on the page.
14
+ * - M3's supporting accents rotate 18–35 degrees off the seed, so the
15
+ * primary/secondary/tertiary trio lands in one hue family and cannot encode
16
+ * anything. A real split-complementary rotation fixes that.
17
+ * - Chroma has to scale inversely with the area a colour paints: a chip's
18
+ * background covers far more pixels than its label.
19
+ *
20
+ * The single rule underneath every decision here is that **light and dark want
21
+ * opposite things**. On a near-white page a fill must go deep to read calm; on a
22
+ * near-black one it must stay bright or it turns to mud. Every asymmetry below
23
+ * is that rule applied to one more role.
24
+ */
25
+ import { type RoleColors } from './color-engine';
26
+ /** Semantic status seeds. Only hue and chroma survive; tones come from the policy. */
27
+ export declare const STATUS_SEEDS: {
28
+ readonly success: "#10B981";
29
+ readonly error: "#EF4444";
30
+ readonly warning: "#F59E0B";
31
+ readonly info: "#3B82F6";
32
+ };
33
+ /** Optional real accent colours — e.g. the 2nd and 3rd seeds extracted from artwork. */
34
+ export interface PinnedAccents {
35
+ secondary?: string;
36
+ tertiary?: string;
37
+ }
38
+ /** The tokens the policy owns. Everything else keeps coming from the M3 roles. */
39
+ export type PolicyTokens = Record<string, string>;
40
+ /**
41
+ * Build the policy-owned tokens for a seed and mode.
42
+ *
43
+ * `roles` is the engine's `vivid` role set for the same seed and mode, passed in
44
+ * so the caller does not generate it twice — the surface scale and
45
+ * `--primary-text` come straight from it.
46
+ */
47
+ export declare function buildPolicyTokens(seedHex: string, isDark: boolean, roles: RoleColors, pinned?: PinnedAccents): PolicyTokens;
48
+ //# sourceMappingURL=color-policy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"color-policy.d.ts","sourceRoot":"","sources":["../../../../src/theme/color-policy.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,OAAO,EAAe,KAAK,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAM9D,sFAAsF;AACtF,eAAO,MAAM,YAAY;;;;;CAKf,CAAC;AAEX,wFAAwF;AACxF,MAAM,WAAW,aAAa;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,kFAAkF;AAClF,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAkLlD;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,OAAO,EACf,KAAK,EAAE,UAAU,EACjB,MAAM,GAAE,aAAkB,GACzB,YAAY,CA0Gd"}
@@ -1 +1 @@
1
- {"version":3,"file":"seed-scope.d.ts","sourceRoot":"","sources":["../../../../../src/theme/color-scope/seed-scope.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,KAAK,UAAU,EAAE,KAAK,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAG1F;;;;;;;;;;;;;GAaG;AACH,wBAAgB,wBAAwB,CAAC,CAAC,EAAE,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CA4C9E;AAED,mEAAmE;AACnE,MAAM,WAAW,gBAAgB;IAC/B,kCAAkC;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,OAAO,GAAG,MAAM,CAAC;IACvB;;;;OAIG;IACH,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,uDAAuD;IACvD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;;OAKG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,gBAAgB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAoBpF"}
1
+ {"version":3,"file":"seed-scope.d.ts","sourceRoot":"","sources":["../../../../../src/theme/color-scope/seed-scope.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,KAAK,UAAU,EAAE,KAAK,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAI1F;;;;;;;;;;;;;GAaG;AACH,wBAAgB,wBAAwB,CAAC,CAAC,EAAE,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CA4C9E;AAED,mEAAmE;AACnE,MAAM,WAAW,gBAAgB;IAC/B,kCAAkC;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,OAAO,GAAG,MAAM,CAAC;IACvB;;;;OAIG;IACH,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,uDAAuD;IACvD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;;OAKG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,gBAAgB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CA+BpF"}
@@ -1 +1 @@
1
- {"version":3,"file":"style-builder.d.ts","sourceRoot":"","sources":["../../../../../src/theme/color-scope/style-builder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAY,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAGxE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AA6CtD;;;;;GAKG;AACH,MAAM,MAAM,gCAAgC,GAAG,KAAK,CAAC,aAAa,CAAC;IACjE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC9B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC,CAAC;AAkEH;;;;;;;;;GASG;AACH,wBAAgB,cAAc,CAC5B,WAAW,EAAE,YAAY,EACzB,IAAI,EAAE,OAAO,GAAG,MAAM,EACtB,OAAO,CAAC,EAAE,eAAe,GACxB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAYxB;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,0BAA0B,IAAI,gCAAgC,GAAG,IAAI,CAepF;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,sBAAsB,CACpC,WAAW,EAAE,YAAY,EACzB,IAAI,EAAE,OAAO,GAAG,MAAM,GACrB,SAAS,CAAC,SAAS,CAAC,CAQtB"}
1
+ {"version":3,"file":"style-builder.d.ts","sourceRoot":"","sources":["../../../../../src/theme/color-scope/style-builder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAY,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAGxE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AA6CtD;;;;;GAKG;AACH,MAAM,MAAM,gCAAgC,GAAG,KAAK,CAAC,aAAa,CAAC;IACjE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC9B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC,CAAC;AAkEH;;;;;;;;;GASG;AACH,wBAAgB,cAAc,CAC5B,WAAW,EAAE,YAAY,EACzB,IAAI,EAAE,OAAO,GAAG,MAAM,EACtB,OAAO,CAAC,EAAE,eAAe,GACxB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAkBxB;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,0BAA0B,IAAI,gCAAgC,GAAG,IAAI,CAepF;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,sBAAsB,CACpC,WAAW,EAAE,YAAY,EACzB,IAAI,EAAE,OAAO,GAAG,MAAM,GACrB,SAAS,CAAC,SAAS,CAAC,CAQtB"}
@@ -1 +1 @@
1
- {"version":3,"file":"preset-vars.d.ts","sourceRoot":"","sources":["../../../../src/theme/preset-vars.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,KAAK,YAAY,EAAE,KAAK,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAG1F;;;;;;GAMG;AACH,MAAM,WAAW,eAAe;IAC9B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAOD;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,aAAa,CAC3B,SAAS,EAAE,YAAY,EACvB,IAAI,EAAE,OAAO,GAAG,MAAM,EACtB,OAAO,CAAC,EAAE,eAAe,GACxB,YAAY,CAiEd;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,yBAAyB,CACvC,SAAS,EAAE,YAAY,EACvB,IAAI,EAAE,OAAO,GAAG,MAAM,GACrB,IAAI,CAYN"}
1
+ {"version":3,"file":"preset-vars.d.ts","sourceRoot":"","sources":["../../../../src/theme/preset-vars.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,KAAK,YAAY,EAAE,KAAK,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAI1F;;;;;;GAMG;AACH,MAAM,WAAW,eAAe;IAC9B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAOD;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,aAAa,CAC3B,SAAS,EAAE,YAAY,EACvB,IAAI,EAAE,OAAO,GAAG,MAAM,EACtB,OAAO,CAAC,EAAE,eAAe,GACxB,YAAY,CAyEd;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,yBAAyB,CACvC,SAAS,EAAE,YAAY,EACvB,IAAI,EAAE,OAAO,GAAG,MAAM,GACrB,IAAI,CAYN"}
@@ -13,7 +13,7 @@ import { type ExplicitAccents } from './preset-vars';
13
13
  * Order mirrors `getPresetVars`'s insertion order: base tokens first (in the
14
14
  * order they appear in the preset data), then the synthesized extended tokens.
15
15
  */
16
- export declare const CANONICAL_TOKENS: readonly ["background", "foreground", "surface", "surface-foreground", "popover", "popover-foreground", "primary", "primary-foreground", "secondary", "secondary-foreground", "tertiary", "tertiary-foreground", "muted", "muted-foreground", "accent", "accent-foreground", "destructive", "border", "input", "ring", "sidebar", "card", "card-foreground", "chart-1", "chart-2", "chart-3", "chart-4", "chart-5", "content-area", "sidebar-foreground", "sidebar-primary", "sidebar-primary-foreground", "sidebar-accent", "sidebar-accent-foreground", "sidebar-border", "sidebar-ring"];
16
+ export declare const CANONICAL_TOKENS: readonly ["background", "foreground", "surface", "surface-foreground", "popover", "popover-foreground", "primary", "primary-foreground", "secondary", "secondary-foreground", "tertiary", "tertiary-foreground", "muted", "muted-foreground", "accent", "accent-foreground", "destructive", "border", "input", "ring", "sidebar", "card", "card-foreground", "chart-1", "chart-2", "chart-3", "chart-4", "chart-5", "content-area", "sidebar-foreground", "sidebar-primary", "sidebar-primary-foreground", "sidebar-accent", "sidebar-accent-foreground", "sidebar-border", "sidebar-ring", "primary-text", "primary-subtle", "secondary-text", "secondary-subtle", "tertiary-text", "tertiary-subtle", "success", "success-foreground", "success-text", "success-subtle", "error", "error-foreground", "error-text", "error-subtle", "warning", "warning-foreground", "warning-text", "warning-subtle", "info", "info-foreground", "info-text", "info-subtle"];
17
17
  /** A canonical token name (no leading `--`). */
18
18
  export type CanonicalToken = (typeof CANONICAL_TOKENS)[number];
19
19
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"token-registry.d.ts","sourceRoot":"","sources":["../../../../src/theme/token-registry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,KAAK,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACrE,OAAO,EAAiB,KAAK,eAAe,EAAE,MAAM,eAAe,CAAC;AAEpE;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,gBAAgB,6jBAqCnB,CAAC;AAEX,gDAAgD;AAChD,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC;AAW/D;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CA+ChD;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,YAAY,EACpB,IAAI,EAAE,OAAO,GAAG,MAAM,EACtB,OAAO,CAAC,EAAE,eAAe,GACxB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAOxB;AAED,OAAO,EAAE,eAAe,EAAE,CAAC"}
1
+ {"version":3,"file":"token-registry.d.ts","sourceRoot":"","sources":["../../../../src/theme/token-registry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,KAAK,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACrE,OAAO,EAAiB,KAAK,eAAe,EAAE,MAAM,eAAe,CAAC;AAEpE;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,gBAAgB,i6BAqEnB,CAAC;AAEX,gDAAgD;AAChD,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC;AAW/D;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CA+ChD;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,YAAY,EACpB,IAAI,EAAE,OAAO,GAAG,MAAM,EACtB,OAAO,CAAC,EAAE,eAAe,GACxB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAOxB;AAED,OAAO,EAAE,eAAe,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oxyhq/bloom",
3
- "version": "0.73.1",
3
+ "version": "0.74.0",
4
4
  "packageManager": "bun@1.3.14",
5
5
  "description": "Bloom UI — Oxy ecosystem component library for React Native + Expo + Web",
6
6
  "main": "lib/commonjs/index.js",
@@ -56,11 +56,23 @@ describe('getPresetVars (engine-backed)', () => {
56
56
  }
57
57
  });
58
58
 
59
- it('drives sidebar-primary / ring from the engine primary role', () => {
59
+ // `--ring` follows the TEXT accent, not the fill. A focus ring is drawn on the
60
+ // page next to a control, so it needs the tone that is legible there — which is
61
+ // the job `--primary-text` exists for. Equating it with `--primary` was the same
62
+ // conflation that made the fill go pastel to stay readable as text.
63
+ it('drives sidebar-primary / ring from the legible brand accent', () => {
60
64
  const vars = getPresetVars('blue', 'light');
61
- expect(vars['--sidebar-primary']).toBe(vars['--primary']);
62
- expect(vars['--ring']).toBe(vars['--primary']);
63
- expect(vars['--chart-1']).toBe(vars['--primary']);
65
+ expect(vars['--ring']).toBe(vars['--primary-text']);
66
+ expect(vars['--sidebar-primary']).toBe(vars['--primary-text']);
67
+ });
68
+
69
+ // The chart ramp is no longer drawn from the primary/secondary/tertiary trio,
70
+ // which spans ~35 degrees of hue and left adjacent series indistinguishable
71
+ // (minimum ΔE 6.2 across the presets). Five hues, evenly spread, one tone.
72
+ it('spreads the chart ramp across distinct hues', () => {
73
+ const vars = getPresetVars('blue', 'light');
74
+ const series = [1, 2, 3, 4, 5].map((i) => vars[`--chart-${i}`]);
75
+ expect(new Set(series).size).toBe(series.length);
64
76
  });
65
77
 
66
78
  it('makes secondary a real contrast color, not a mirror of primary (the fix)', () => {
@@ -72,19 +84,19 @@ describe('getPresetVars (engine-backed)', () => {
72
84
  }
73
85
  });
74
86
 
75
- it('makes card the lightest surface in light mode, darkest in dark (the fix)', () => {
76
- const channels = (rgb: string): number[] =>
77
- (rgb.match(/\d+/g) ?? []).map(Number);
78
- const sum = (rgb: string): number => channels(rgb).reduce((a, b) => a + b, 0);
87
+ // Deliberately inverted from what this asserted before: M3's
88
+ // `surfaceContainerLowest` is the RECESSED step, so in dark a card SANK into
89
+ // the page rather than lifting off it — on all thirteen presets, which is what
90
+ // made it a mapping problem and not a seed one.
91
+ it('makes card lift off the background in BOTH modes', () => {
92
+ const sum = (rgb: string): number =>
93
+ (rgb.match(/\d+/g) ?? []).map(Number).reduce((a, b) => a + b, 0);
79
94
 
80
95
  for (const name of APP_COLOR_NAMES) {
81
- const light = getPresetVars(name, 'light');
82
- // card (surfaceContainerLowest) must be lighter than background in light.
83
- expect(sum(light['--card'] ?? '')).toBeGreaterThan(sum(light['--background'] ?? ''));
84
-
85
- const dark = getPresetVars(name, 'dark');
86
- // card must be darker than (or equal to) background in dark — correct inversion.
87
- expect(sum(dark['--card'] ?? '')).toBeLessThanOrEqual(sum(dark['--background'] ?? ''));
96
+ for (const mode of ['light', 'dark'] as const) {
97
+ const vars = getPresetVars(name, mode);
98
+ expect(sum(vars['--card'] ?? '')).toBeGreaterThan(sum(vars['--background'] ?? ''));
99
+ }
88
100
  }
89
101
  });
90
102
 
@@ -62,6 +62,28 @@
62
62
  --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
63
63
  --color-sidebar-border: var(--sidebar-border);
64
64
  --color-sidebar-ring: var(--sidebar-ring);
65
+ --color-primary-text: var(--primary-text);
66
+ --color-primary-subtle: var(--primary-subtle);
67
+ --color-secondary-text: var(--secondary-text);
68
+ --color-secondary-subtle: var(--secondary-subtle);
69
+ --color-tertiary-text: var(--tertiary-text);
70
+ --color-tertiary-subtle: var(--tertiary-subtle);
71
+ --color-success: var(--success);
72
+ --color-success-foreground: var(--success-foreground);
73
+ --color-success-text: var(--success-text);
74
+ --color-success-subtle: var(--success-subtle);
75
+ --color-error: var(--error);
76
+ --color-error-foreground: var(--error-foreground);
77
+ --color-error-text: var(--error-text);
78
+ --color-error-subtle: var(--error-subtle);
79
+ --color-warning: var(--warning);
80
+ --color-warning-foreground: var(--warning-foreground);
81
+ --color-warning-text: var(--warning-text);
82
+ --color-warning-subtle: var(--warning-subtle);
83
+ --color-info: var(--info);
84
+ --color-info-foreground: var(--info-foreground);
85
+ --color-info-text: var(--info-text);
86
+ --color-info-subtle: var(--info-subtle);
65
87
  --color-destructive-foreground: #ffffff;
66
88
  --color-divider: var(--border);
67
89
  --spacing-space-2: 2px;
package/src/fab/Fab.tsx CHANGED
@@ -206,6 +206,9 @@ function resolveVariant(
206
206
  ): { background: string; foreground: string } {
207
207
  switch (variant) {
208
208
  case 'secondary':
209
+ return { background: colors.secondary, foreground: colors.secondaryForeground };
210
+ case 'tertiary':
211
+ return { background: colors.tertiary, foreground: colors.tertiaryForeground };
209
212
  case 'surface':
210
213
  return { background: colors.card, foreground: colors.text };
211
214
  case 'primary':
@@ -166,6 +166,9 @@ function resolveVariant(
166
166
  ): { background: string; foreground: string; ring: string } {
167
167
  switch (variant) {
168
168
  case 'secondary':
169
+ return { background: c.secondary, foreground: c.secondaryForeground, ring: c.secondary };
170
+ case 'tertiary':
171
+ return { background: c.tertiary, foreground: c.tertiaryForeground, ring: c.tertiary };
169
172
  case 'surface':
170
173
  return { background: c.card, foreground: c.text, ring: c.primary };
171
174
  case 'primary':
package/src/fab/types.ts CHANGED
@@ -9,7 +9,12 @@ import type { StyleProp, ViewStyle, TextStyle } from 'react-native';
9
9
  * A lower-emphasis FAB that still reads as elevated.
10
10
  * - `surface` — alias of `secondary`, named for Material-style "surface" FABs.
11
11
  */
12
- export type FabVariant = 'primary' | 'secondary' | 'surface';
12
+ /**
13
+ * M3 defines four FAB colour variants. Bloom previously mapped `secondary` onto
14
+ * the neutral card surface, so a "secondary FAB" was a grey circle and the
15
+ * accent trio had no home in the component that most wants one.
16
+ */
17
+ export type FabVariant = 'primary' | 'secondary' | 'tertiary' | 'surface';
13
18
 
14
19
  /**
15
20
  * FAB size presets, matching Material-ish conventions but in Bloom's scale:
@@ -410,10 +410,13 @@ export function BloomThemeProvider({
410
410
  const themeColors = useMemo(
411
411
  () =>
412
412
  effectiveSeed
413
- ? buildThemeFromSeed(effectiveSeed, resolved, undefined, undefined, {
414
- secondarySeed: effectiveSecondary,
415
- tertiarySeed: effectiveTertiary,
416
- })
413
+ ? buildThemeFromSeed(
414
+ effectiveSeed,
415
+ resolved,
416
+ undefined,
417
+ undefined,
418
+ { secondarySeed: effectiveSecondary, tertiarySeed: effectiveTertiary }
419
+ )
417
420
  : buildTheme(colorPreset, resolved, isAdaptive, explicitAccents),
418
421
  [
419
422
  effectiveSeed,