@oxyhq/bloom 1.13.0 → 1.14.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 (81) hide show
  1. package/README.md +1 -1
  2. package/docs/avatar.mdx +46 -5
  3. package/docs/index.mdx +1 -1
  4. package/docs/tab-bar.mdx +35 -0
  5. package/lib/commonjs/avatar/Avatar.js +24 -8
  6. package/lib/commonjs/avatar/Avatar.js.map +1 -1
  7. package/lib/commonjs/avatar/AvatarRing.js +13 -12
  8. package/lib/commonjs/avatar/AvatarRing.js.map +1 -1
  9. package/lib/commonjs/avatar/index.js +19 -0
  10. package/lib/commonjs/avatar/index.js.map +1 -1
  11. package/lib/commonjs/avatar/resolve-shape.js +43 -0
  12. package/lib/commonjs/avatar/resolve-shape.js.map +1 -0
  13. package/lib/commonjs/avatar/shape-paths.js +174 -0
  14. package/lib/commonjs/avatar/shape-paths.js.map +1 -0
  15. package/lib/commonjs/tab-bar/TabBarBase.js +53 -7
  16. package/lib/commonjs/tab-bar/TabBarBase.js.map +1 -1
  17. package/lib/commonjs/tab-bar/expo-router/RouterTabBar.js +5 -0
  18. package/lib/commonjs/tab-bar/expo-router/RouterTabBar.js.map +1 -1
  19. package/lib/module/avatar/Avatar.js +24 -8
  20. package/lib/module/avatar/Avatar.js.map +1 -1
  21. package/lib/module/avatar/AvatarRing.js +13 -12
  22. package/lib/module/avatar/AvatarRing.js.map +1 -1
  23. package/lib/module/avatar/index.js +1 -0
  24. package/lib/module/avatar/index.js.map +1 -1
  25. package/lib/module/avatar/resolve-shape.js +40 -0
  26. package/lib/module/avatar/resolve-shape.js.map +1 -0
  27. package/lib/module/avatar/shape-paths.js +170 -0
  28. package/lib/module/avatar/shape-paths.js.map +1 -0
  29. package/lib/module/tab-bar/TabBarBase.js +54 -8
  30. package/lib/module/tab-bar/TabBarBase.js.map +1 -1
  31. package/lib/module/tab-bar/expo-router/RouterTabBar.js +5 -0
  32. package/lib/module/tab-bar/expo-router/RouterTabBar.js.map +1 -1
  33. package/lib/typescript/commonjs/avatar/Avatar.d.ts.map +1 -1
  34. package/lib/typescript/commonjs/avatar/AvatarRing.d.ts +4 -3
  35. package/lib/typescript/commonjs/avatar/AvatarRing.d.ts.map +1 -1
  36. package/lib/typescript/commonjs/avatar/index.d.ts +3 -1
  37. package/lib/typescript/commonjs/avatar/index.d.ts.map +1 -1
  38. package/lib/typescript/commonjs/avatar/resolve-shape.d.ts +17 -0
  39. package/lib/typescript/commonjs/avatar/resolve-shape.d.ts.map +1 -0
  40. package/lib/typescript/commonjs/avatar/shape-paths.d.ts +27 -0
  41. package/lib/typescript/commonjs/avatar/shape-paths.d.ts.map +1 -0
  42. package/lib/typescript/commonjs/avatar/types.d.ts +30 -3
  43. package/lib/typescript/commonjs/avatar/types.d.ts.map +1 -1
  44. package/lib/typescript/commonjs/tab-bar/TabBarBase.d.ts.map +1 -1
  45. package/lib/typescript/commonjs/tab-bar/expo-router/RouterTabBar.d.ts +5 -0
  46. package/lib/typescript/commonjs/tab-bar/expo-router/RouterTabBar.d.ts.map +1 -1
  47. package/lib/typescript/commonjs/tab-bar/types.d.ts +36 -5
  48. package/lib/typescript/commonjs/tab-bar/types.d.ts.map +1 -1
  49. package/lib/typescript/module/avatar/Avatar.d.ts.map +1 -1
  50. package/lib/typescript/module/avatar/AvatarRing.d.ts +4 -3
  51. package/lib/typescript/module/avatar/AvatarRing.d.ts.map +1 -1
  52. package/lib/typescript/module/avatar/index.d.ts +3 -1
  53. package/lib/typescript/module/avatar/index.d.ts.map +1 -1
  54. package/lib/typescript/module/avatar/resolve-shape.d.ts +17 -0
  55. package/lib/typescript/module/avatar/resolve-shape.d.ts.map +1 -0
  56. package/lib/typescript/module/avatar/shape-paths.d.ts +27 -0
  57. package/lib/typescript/module/avatar/shape-paths.d.ts.map +1 -0
  58. package/lib/typescript/module/avatar/types.d.ts +30 -3
  59. package/lib/typescript/module/avatar/types.d.ts.map +1 -1
  60. package/lib/typescript/module/tab-bar/TabBarBase.d.ts.map +1 -1
  61. package/lib/typescript/module/tab-bar/expo-router/RouterTabBar.d.ts +5 -0
  62. package/lib/typescript/module/tab-bar/expo-router/RouterTabBar.d.ts.map +1 -1
  63. package/lib/typescript/module/tab-bar/types.d.ts +36 -5
  64. package/lib/typescript/module/tab-bar/types.d.ts.map +1 -1
  65. package/package.json +1 -1
  66. package/src/avatar/Avatar.tsx +27 -10
  67. package/src/avatar/AvatarRing.tsx +21 -14
  68. package/src/avatar/index.ts +7 -0
  69. package/src/avatar/resolve-shape.ts +33 -0
  70. package/src/avatar/shape-paths.ts +150 -0
  71. package/src/avatar/types.ts +32 -3
  72. package/src/tab-bar/TabBarBase.tsx +69 -10
  73. package/src/tab-bar/expo-router/RouterTabBar.tsx +5 -0
  74. package/src/tab-bar/types.ts +36 -5
  75. package/src/__tests__/support/collision-fixture-barrel.ts +0 -20
  76. package/src/__tests__/support/constructed-style-sheets.ts +0 -68
  77. package/src/__tests__/support/press-host.ts +0 -30
  78. package/src/__tests__/support/rendered-style.ts +0 -99
  79. package/src/__tests__/support/unread-hook-fixture.ts +0 -33
  80. package/src/theme/__tests__/__fixtures__/golden-resolved-tokens.json +0 -7682
  81. package/src/theme/__tests__/fixtures/color-engine-golden.json +0 -1
@@ -1,33 +0,0 @@
1
- /**
2
- * A module that DELIBERATELY throws away one of the values a hook hands back, so
3
- * `hook-subscriptions-are-read.test.ts` can prove its detector fires. It carries
4
- * both halves of the control: `unreadFlag` is bound and never read, which the
5
- * detector must report, and `readFlag` is bound and read, which it must stay
6
- * quiet about — otherwise the cheapest way to green the gate would be deleting a
7
- * binding that is doing its job.
8
- *
9
- * Nothing imports this at runtime. bob's `exclude` keeps it out of `lib/`, and
10
- * `files: ["src", …]` does ship it inside the tarball's `src/` like the other
11
- * 137 test files there — but no entry point reaches it, so no bundler links it.
12
- * It is a plain `.ts` with no React import because the
13
- * detector reads source, never types: a call named `use…` bound to a name is all
14
- * the shape there is.
15
- *
16
- * The destructuring RENAMES, which is not decoration — it reproduces the shipped
17
- * shape (`const { state: pressed, onIn: onPressIn } = useInteractionState()`) and
18
- * it is what keeps the control honest. A hook declared in the same file as its
19
- * caller mentions its own property names in its return type and its return
20
- * object, and the detector counts every occurrence of a spelling as a possible
21
- * read, so an unrenamed fixture would be silently unreportable for a reason no
22
- * real call site has.
23
- */
24
-
25
- /** Stands in for a real subscription — a hook by name, with two return values. */
26
- function useFixtureInteractionState(): { first: boolean; second: boolean } {
27
- return { first: false, second: false };
28
- }
29
-
30
- export function fixtureComponentBody(): boolean {
31
- const { first: readFlag, second: unreadFlag } = useFixtureInteractionState();
32
- return readFlag;
33
- }