@buoy-gg/shared-ui 7.0.26 → 7.0.27

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 (209) hide show
  1. package/lib/commonjs/JsModal.js +156 -20
  2. package/lib/commonjs/JsModal.web.js +85 -39
  3. package/lib/commonjs/dataViewer/VirtualizedDataExplorer.js +14 -4
  4. package/lib/commonjs/dataViewer/diffThemes.js +20 -18
  5. package/lib/commonjs/dataViewer/tree/TreeDiffViewer.js +8 -8
  6. package/lib/commonjs/hooks/safe-area-impl.js +1 -1
  7. package/lib/commonjs/icons/lucide-icons.js +74 -15
  8. package/lib/commonjs/index.js +86 -0
  9. package/lib/commonjs/ui/backgrounds/BackgroundSwitcher.js +248 -74
  10. package/lib/commonjs/ui/backgrounds/README.md +102 -20
  11. package/lib/commonjs/ui/backgrounds/backgroundStore.js +20 -6
  12. package/lib/commonjs/ui/backgrounds/index.js +91 -1
  13. package/lib/commonjs/ui/backgrounds/primitives.js +50 -14
  14. package/lib/commonjs/ui/backgrounds/registry.js +41 -64
  15. package/lib/commonjs/ui/backgrounds/rng.js +21 -0
  16. package/lib/commonjs/ui/backgrounds/skyClock.js +45 -0
  17. package/lib/commonjs/ui/backgrounds/variants/daylight.js +453 -0
  18. package/lib/commonjs/ui/backgrounds/variants/deepField.js +60 -30
  19. package/lib/commonjs/ui/backgrounds/variants/hyperspace.js +218 -0
  20. package/lib/commonjs/ui/backgrounds/variants/liveSky.js +898 -0
  21. package/lib/commonjs/ui/backgrounds/variants/meteors.js +257 -0
  22. package/lib/commonjs/ui/backgrounds/variants/moonlight.js +472 -0
  23. package/lib/commonjs/ui/backgrounds/variants/underwater.js +757 -0
  24. package/lib/commonjs/ui/components/Badge.js +11 -10
  25. package/lib/commonjs/ui/components/CompactRow.js +30 -17
  26. package/lib/commonjs/ui/components/DevToolsCard.js +12 -8
  27. package/lib/commonjs/ui/components/DynamicFilterView.js +43 -41
  28. package/lib/commonjs/ui/components/EventStepperFooter.js +38 -10
  29. package/lib/commonjs/ui/components/FilterComponents.js +11 -11
  30. package/lib/commonjs/ui/components/ModalHeader.js +13 -13
  31. package/lib/commonjs/ui/components/SectionHeader.js +3 -1
  32. package/lib/commonjs/ui/components/StorageTypeBadge.js +3 -2
  33. package/lib/commonjs/ui/components/TabSelector.js +56 -38
  34. package/lib/commonjs/ui/components/ValueTypeBadge.js +7 -6
  35. package/lib/commonjs/ui/components/WindowControls.js +37 -10
  36. package/lib/commonjs/ui/gameUI/constants/gameUIColors.js +8 -0
  37. package/lib/commonjs/ui/night/nightTheme.js +120 -0
  38. package/lib/commonjs/ui/night/primitives.js +498 -0
  39. package/lib/module/JsModal.js +156 -20
  40. package/lib/module/JsModal.web.js +83 -39
  41. package/lib/module/dataViewer/VirtualizedDataExplorer.js +14 -4
  42. package/lib/module/dataViewer/diffThemes.js +20 -18
  43. package/lib/module/dataViewer/tree/TreeDiffViewer.js +9 -9
  44. package/lib/module/hooks/safe-area-impl.js +1 -1
  45. package/lib/module/icons/lucide-icons.js +74 -15
  46. package/lib/module/index.js +4 -0
  47. package/lib/module/ui/backgrounds/BackgroundSwitcher.js +250 -76
  48. package/lib/module/ui/backgrounds/README.md +102 -20
  49. package/lib/module/ui/backgrounds/backgroundStore.js +19 -5
  50. package/lib/module/ui/backgrounds/index.js +11 -2
  51. package/lib/module/ui/backgrounds/primitives.js +53 -16
  52. package/lib/module/ui/backgrounds/registry.js +41 -64
  53. package/lib/module/ui/backgrounds/rng.js +20 -0
  54. package/lib/module/ui/backgrounds/skyClock.js +39 -0
  55. package/lib/module/ui/backgrounds/variants/daylight.js +449 -0
  56. package/lib/module/ui/backgrounds/variants/deepField.js +62 -31
  57. package/lib/module/ui/backgrounds/variants/hyperspace.js +214 -0
  58. package/lib/module/ui/backgrounds/variants/liveSky.js +893 -0
  59. package/lib/module/ui/backgrounds/variants/meteors.js +253 -0
  60. package/lib/module/ui/backgrounds/variants/moonlight.js +468 -0
  61. package/lib/module/ui/backgrounds/variants/underwater.js +753 -0
  62. package/lib/module/ui/components/Badge.js +11 -10
  63. package/lib/module/ui/components/CompactRow.js +30 -17
  64. package/lib/module/ui/components/DevToolsCard.js +12 -8
  65. package/lib/module/ui/components/DynamicFilterView.js +43 -41
  66. package/lib/module/ui/components/EventStepperFooter.js +38 -10
  67. package/lib/module/ui/components/FilterComponents.js +11 -11
  68. package/lib/module/ui/components/ModalHeader.js +13 -13
  69. package/lib/module/ui/components/SectionHeader.js +3 -1
  70. package/lib/module/ui/components/StorageTypeBadge.js +3 -2
  71. package/lib/module/ui/components/TabSelector.js +57 -39
  72. package/lib/module/ui/components/ValueTypeBadge.js +7 -6
  73. package/lib/module/ui/components/WindowControls.js +37 -10
  74. package/lib/module/ui/gameUI/constants/gameUIColors.js +8 -0
  75. package/lib/module/ui/night/nightTheme.js +116 -0
  76. package/lib/module/ui/night/primitives.js +485 -0
  77. package/lib/typescript/commonjs/JsModal.d.ts +18 -0
  78. package/lib/typescript/commonjs/JsModal.d.ts.map +1 -1
  79. package/lib/typescript/commonjs/JsModal.web.d.ts +13 -0
  80. package/lib/typescript/commonjs/JsModal.web.d.ts.map +1 -1
  81. package/lib/typescript/commonjs/dataViewer/VirtualizedDataExplorer.d.ts.map +1 -1
  82. package/lib/typescript/commonjs/dataViewer/diffThemes.d.ts +3 -1
  83. package/lib/typescript/commonjs/dataViewer/diffThemes.d.ts.map +1 -1
  84. package/lib/typescript/commonjs/dataViewer/tree/TreeDiffViewer.d.ts.map +1 -1
  85. package/lib/typescript/commonjs/hooks/safe-area-impl.d.ts +1 -1
  86. package/lib/typescript/commonjs/icons/lucide-icons.d.ts +12 -1
  87. package/lib/typescript/commonjs/icons/lucide-icons.d.ts.map +1 -1
  88. package/lib/typescript/commonjs/index.d.ts +3 -0
  89. package/lib/typescript/commonjs/index.d.ts.map +1 -1
  90. package/lib/typescript/commonjs/ui/backgrounds/BackgroundSwitcher.d.ts +26 -6
  91. package/lib/typescript/commonjs/ui/backgrounds/BackgroundSwitcher.d.ts.map +1 -1
  92. package/lib/typescript/commonjs/ui/backgrounds/backgroundStore.d.ts +3 -0
  93. package/lib/typescript/commonjs/ui/backgrounds/backgroundStore.d.ts.map +1 -1
  94. package/lib/typescript/commonjs/ui/backgrounds/index.d.ts +7 -1
  95. package/lib/typescript/commonjs/ui/backgrounds/index.d.ts.map +1 -1
  96. package/lib/typescript/commonjs/ui/backgrounds/primitives.d.ts +18 -3
  97. package/lib/typescript/commonjs/ui/backgrounds/primitives.d.ts.map +1 -1
  98. package/lib/typescript/commonjs/ui/backgrounds/registry.d.ts +8 -0
  99. package/lib/typescript/commonjs/ui/backgrounds/registry.d.ts.map +1 -1
  100. package/lib/typescript/commonjs/ui/backgrounds/rng.d.ts +6 -0
  101. package/lib/typescript/commonjs/ui/backgrounds/rng.d.ts.map +1 -1
  102. package/lib/typescript/commonjs/ui/backgrounds/skyClock.d.ts +17 -0
  103. package/lib/typescript/commonjs/ui/backgrounds/skyClock.d.ts.map +1 -0
  104. package/lib/typescript/commonjs/ui/backgrounds/types.d.ts +1 -1
  105. package/lib/typescript/commonjs/ui/backgrounds/types.d.ts.map +1 -1
  106. package/lib/typescript/commonjs/ui/backgrounds/variants/daylight.d.ts +30 -0
  107. package/lib/typescript/commonjs/ui/backgrounds/variants/daylight.d.ts.map +1 -0
  108. package/lib/typescript/commonjs/ui/backgrounds/variants/deepField.d.ts +19 -4
  109. package/lib/typescript/commonjs/ui/backgrounds/variants/deepField.d.ts.map +1 -1
  110. package/lib/typescript/commonjs/ui/backgrounds/variants/hyperspace.d.ts +39 -0
  111. package/lib/typescript/commonjs/ui/backgrounds/variants/hyperspace.d.ts.map +1 -0
  112. package/lib/typescript/commonjs/ui/backgrounds/variants/liveSky.d.ts +41 -0
  113. package/lib/typescript/commonjs/ui/backgrounds/variants/liveSky.d.ts.map +1 -0
  114. package/lib/typescript/commonjs/ui/backgrounds/variants/meteors.d.ts +26 -0
  115. package/lib/typescript/commonjs/ui/backgrounds/variants/meteors.d.ts.map +1 -0
  116. package/lib/typescript/commonjs/ui/backgrounds/variants/moonlight.d.ts +35 -0
  117. package/lib/typescript/commonjs/ui/backgrounds/variants/moonlight.d.ts.map +1 -0
  118. package/lib/typescript/commonjs/ui/backgrounds/variants/underwater.d.ts +51 -0
  119. package/lib/typescript/commonjs/ui/backgrounds/variants/underwater.d.ts.map +1 -0
  120. package/lib/typescript/commonjs/ui/components/Badge.d.ts.map +1 -1
  121. package/lib/typescript/commonjs/ui/components/CompactRow.d.ts.map +1 -1
  122. package/lib/typescript/commonjs/ui/components/DynamicFilterView.d.ts.map +1 -1
  123. package/lib/typescript/commonjs/ui/components/EventStepperFooter.d.ts +2 -0
  124. package/lib/typescript/commonjs/ui/components/EventStepperFooter.d.ts.map +1 -1
  125. package/lib/typescript/commonjs/ui/components/StorageTypeBadge.d.ts.map +1 -1
  126. package/lib/typescript/commonjs/ui/components/TabSelector.d.ts +9 -0
  127. package/lib/typescript/commonjs/ui/components/TabSelector.d.ts.map +1 -1
  128. package/lib/typescript/commonjs/ui/components/ValueTypeBadge.d.ts.map +1 -1
  129. package/lib/typescript/commonjs/ui/components/WindowControls.d.ts +4 -2
  130. package/lib/typescript/commonjs/ui/components/WindowControls.d.ts.map +1 -1
  131. package/lib/typescript/commonjs/ui/gameUI/constants/gameUIColors.d.ts +8 -0
  132. package/lib/typescript/commonjs/ui/gameUI/constants/gameUIColors.d.ts.map +1 -1
  133. package/lib/typescript/commonjs/ui/night/nightTheme.d.ts +113 -0
  134. package/lib/typescript/commonjs/ui/night/nightTheme.d.ts.map +1 -0
  135. package/lib/typescript/commonjs/ui/night/primitives.d.ts +111 -0
  136. package/lib/typescript/commonjs/ui/night/primitives.d.ts.map +1 -0
  137. package/lib/typescript/module/JsModal.d.ts +18 -0
  138. package/lib/typescript/module/JsModal.d.ts.map +1 -1
  139. package/lib/typescript/module/JsModal.web.d.ts +13 -0
  140. package/lib/typescript/module/JsModal.web.d.ts.map +1 -1
  141. package/lib/typescript/module/dataViewer/VirtualizedDataExplorer.d.ts.map +1 -1
  142. package/lib/typescript/module/dataViewer/diffThemes.d.ts +3 -1
  143. package/lib/typescript/module/dataViewer/diffThemes.d.ts.map +1 -1
  144. package/lib/typescript/module/dataViewer/tree/TreeDiffViewer.d.ts.map +1 -1
  145. package/lib/typescript/module/hooks/safe-area-impl.d.ts +1 -1
  146. package/lib/typescript/module/icons/lucide-icons.d.ts +12 -1
  147. package/lib/typescript/module/icons/lucide-icons.d.ts.map +1 -1
  148. package/lib/typescript/module/index.d.ts +3 -0
  149. package/lib/typescript/module/index.d.ts.map +1 -1
  150. package/lib/typescript/module/ui/backgrounds/BackgroundSwitcher.d.ts +26 -6
  151. package/lib/typescript/module/ui/backgrounds/BackgroundSwitcher.d.ts.map +1 -1
  152. package/lib/typescript/module/ui/backgrounds/backgroundStore.d.ts +3 -0
  153. package/lib/typescript/module/ui/backgrounds/backgroundStore.d.ts.map +1 -1
  154. package/lib/typescript/module/ui/backgrounds/index.d.ts +7 -1
  155. package/lib/typescript/module/ui/backgrounds/index.d.ts.map +1 -1
  156. package/lib/typescript/module/ui/backgrounds/primitives.d.ts +18 -3
  157. package/lib/typescript/module/ui/backgrounds/primitives.d.ts.map +1 -1
  158. package/lib/typescript/module/ui/backgrounds/registry.d.ts +8 -0
  159. package/lib/typescript/module/ui/backgrounds/registry.d.ts.map +1 -1
  160. package/lib/typescript/module/ui/backgrounds/rng.d.ts +6 -0
  161. package/lib/typescript/module/ui/backgrounds/rng.d.ts.map +1 -1
  162. package/lib/typescript/module/ui/backgrounds/skyClock.d.ts +17 -0
  163. package/lib/typescript/module/ui/backgrounds/skyClock.d.ts.map +1 -0
  164. package/lib/typescript/module/ui/backgrounds/types.d.ts +1 -1
  165. package/lib/typescript/module/ui/backgrounds/types.d.ts.map +1 -1
  166. package/lib/typescript/module/ui/backgrounds/variants/daylight.d.ts +30 -0
  167. package/lib/typescript/module/ui/backgrounds/variants/daylight.d.ts.map +1 -0
  168. package/lib/typescript/module/ui/backgrounds/variants/deepField.d.ts +19 -4
  169. package/lib/typescript/module/ui/backgrounds/variants/deepField.d.ts.map +1 -1
  170. package/lib/typescript/module/ui/backgrounds/variants/hyperspace.d.ts +39 -0
  171. package/lib/typescript/module/ui/backgrounds/variants/hyperspace.d.ts.map +1 -0
  172. package/lib/typescript/module/ui/backgrounds/variants/liveSky.d.ts +41 -0
  173. package/lib/typescript/module/ui/backgrounds/variants/liveSky.d.ts.map +1 -0
  174. package/lib/typescript/module/ui/backgrounds/variants/meteors.d.ts +26 -0
  175. package/lib/typescript/module/ui/backgrounds/variants/meteors.d.ts.map +1 -0
  176. package/lib/typescript/module/ui/backgrounds/variants/moonlight.d.ts +35 -0
  177. package/lib/typescript/module/ui/backgrounds/variants/moonlight.d.ts.map +1 -0
  178. package/lib/typescript/module/ui/backgrounds/variants/underwater.d.ts +51 -0
  179. package/lib/typescript/module/ui/backgrounds/variants/underwater.d.ts.map +1 -0
  180. package/lib/typescript/module/ui/components/Badge.d.ts.map +1 -1
  181. package/lib/typescript/module/ui/components/CompactRow.d.ts.map +1 -1
  182. package/lib/typescript/module/ui/components/DynamicFilterView.d.ts.map +1 -1
  183. package/lib/typescript/module/ui/components/EventStepperFooter.d.ts +2 -0
  184. package/lib/typescript/module/ui/components/EventStepperFooter.d.ts.map +1 -1
  185. package/lib/typescript/module/ui/components/StorageTypeBadge.d.ts.map +1 -1
  186. package/lib/typescript/module/ui/components/TabSelector.d.ts +9 -0
  187. package/lib/typescript/module/ui/components/TabSelector.d.ts.map +1 -1
  188. package/lib/typescript/module/ui/components/ValueTypeBadge.d.ts.map +1 -1
  189. package/lib/typescript/module/ui/components/WindowControls.d.ts +4 -2
  190. package/lib/typescript/module/ui/components/WindowControls.d.ts.map +1 -1
  191. package/lib/typescript/module/ui/gameUI/constants/gameUIColors.d.ts +8 -0
  192. package/lib/typescript/module/ui/gameUI/constants/gameUIColors.d.ts.map +1 -1
  193. package/lib/typescript/module/ui/night/nightTheme.d.ts +113 -0
  194. package/lib/typescript/module/ui/night/nightTheme.d.ts.map +1 -0
  195. package/lib/typescript/module/ui/night/primitives.d.ts +111 -0
  196. package/lib/typescript/module/ui/night/primitives.d.ts.map +1 -0
  197. package/package.json +4 -4
  198. package/lib/commonjs/ui/backgrounds/variants/lattice.js +0 -579
  199. package/lib/commonjs/ui/backgrounds/variants/starfield.js +0 -210
  200. package/lib/module/ui/backgrounds/variants/lattice.js +0 -575
  201. package/lib/module/ui/backgrounds/variants/starfield.js +0 -206
  202. package/lib/typescript/commonjs/ui/backgrounds/variants/lattice.d.ts +0 -33
  203. package/lib/typescript/commonjs/ui/backgrounds/variants/lattice.d.ts.map +0 -1
  204. package/lib/typescript/commonjs/ui/backgrounds/variants/starfield.d.ts +0 -12
  205. package/lib/typescript/commonjs/ui/backgrounds/variants/starfield.d.ts.map +0 -1
  206. package/lib/typescript/module/ui/backgrounds/variants/lattice.d.ts +0 -33
  207. package/lib/typescript/module/ui/backgrounds/variants/lattice.d.ts.map +0 -1
  208. package/lib/typescript/module/ui/backgrounds/variants/starfield.d.ts +0 -12
  209. package/lib/typescript/module/ui/backgrounds/variants/starfield.d.ts.map +0 -1
@@ -1,206 +0,0 @@
1
- "use strict";
2
-
3
- /**
4
- * Starfield — the RN-primitive port of the Everlights parallax-drift starfield.
5
- *
6
- * The original is a GPU-instanced Skia `<Atlas>` with a per-star worklet; Buoy
7
- * can't depend on Skia, so the depth continuum is quantised into five discrete
8
- * bands. Each band is one rasterized layer of dots sliding at its own speed —
9
- * five native-driven loops instead of 160 per-frame transforms — and the eye
10
- * reads five parallax speeds as depth just as well as it reads a continuum.
11
- */
12
-
13
- import { memo } from "react";
14
- import { Animated, View } from "react-native";
15
- import { absoluteFill } from "../../../utils/absoluteFill.js";
16
- import { Base, RadialGlow, RasterLayer, useLoop, usePulse } from "../primitives.js";
17
- import { scatter, withAlpha } from "../rng.js";
18
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
19
- /**
20
- * Depth bands, far → near. `z` drives both size and speed (drift/sec at z=1 is
21
- * 0.016 of the width, matching the original), `count` thins out as stars get
22
- * closer so the fast, big ones stay sparse.
23
- */
24
- const BANDS = [
25
- // dia is the star's core in px; halo is how many core-widths the bloom
26
- // spreads (0 = no bloom, which is what keeps the far bands cheap).
27
- {
28
- z: 1.0,
29
- count: 38,
30
- dia: 1.4,
31
- halo: 0,
32
- color: "#7C93B5",
33
- alpha: 0.55
34
- }, {
35
- z: 0.78,
36
- count: 26,
37
- dia: 1.9,
38
- halo: 0,
39
- color: "#A6BBD8",
40
- alpha: 0.65
41
- }, {
42
- z: 0.6,
43
- count: 18,
44
- dia: 2.4,
45
- halo: 0,
46
- color: "#C9D9F0",
47
- alpha: 0.8
48
- }, {
49
- z: 0.45,
50
- count: 11,
51
- dia: 3.1,
52
- halo: 0,
53
- color: "#E4EEFC",
54
- alpha: 0.92
55
- },
56
- // Only the closest band gets a bloom: 6 stars x 3 extra discs is 36 views,
57
- // and it is the entire difference between "dots" and "stars".
58
- {
59
- z: 0.3,
60
- count: 6,
61
- dia: 4.2,
62
- halo: 4.4,
63
- color: "#FFFFFF",
64
- alpha: 1
65
- }];
66
- const DRIFT = 0.016; // fraction of width travelled per second at z=1
67
-
68
- /** Pre-scattered x/y per band, generated once at module load. */
69
- const BAND_TABLES = BANDS.map((b, i) => ({
70
- xs: scatter(0x5747 + i * 977, b.count),
71
- ys: scatter(0x91c3 + i * 613, b.count)
72
- }));
73
-
74
- /**
75
- * The bloom around a close star. Three nested discs rather than a `RadialGlow`,
76
- * because this one is drawn per star and lives INSIDE the band layer — which is
77
- * the point: the halo travels with its star instead of sitting still while the
78
- * star drifts off it.
79
- */
80
- function haloDiscs(cx, cy, core, spread, color, key) {
81
- const out = [];
82
- const steps = [{
83
- mul: spread,
84
- alpha: 0.05
85
- }, {
86
- mul: spread * 0.62,
87
- alpha: 0.09
88
- }, {
89
- mul: spread * 0.34,
90
- alpha: 0.16
91
- }];
92
- for (let i = 0; i < steps.length; i++) {
93
- const d = core * steps[i].mul;
94
- out.push(/*#__PURE__*/_jsx(View, {
95
- style: {
96
- position: "absolute",
97
- left: cx - d / 2,
98
- top: cy - d / 2,
99
- width: d,
100
- height: d,
101
- borderRadius: d / 2,
102
- backgroundColor: withAlpha(color, steps[i].alpha)
103
- }
104
- }, `${key}-h${i}`));
105
- }
106
- return out;
107
- }
108
- const StarBand = /*#__PURE__*/memo(function StarBand({
109
- index,
110
- width,
111
- height,
112
- animated
113
- }) {
114
- const band = BANDS[index];
115
- const table = BAND_TABLES[index];
116
- // One full width of travel takes z / DRIFT seconds — nearer (smaller z) is
117
- // faster, which is the whole parallax effect.
118
- const drift = useLoop(band.z / DRIFT * 1000, animated);
119
- const translateX = drift.interpolate({
120
- inputRange: [0, 1],
121
- outputRange: [0, -width]
122
- });
123
- const dots = [];
124
- for (let i = 0; i < band.count; i++) {
125
- const x = table.xs[i] * width;
126
- const y = table.ys[i] * height;
127
- // Each star is drawn twice, one width apart, so the layer tiles seamlessly
128
- // when the loop snaps back to 0.
129
- for (let copy = 0; copy < 2; copy++) {
130
- const cx = x + copy * width;
131
- const key = `${i}-${copy}`;
132
- if (band.halo > 0) {
133
- dots.push(...haloDiscs(cx, y, band.dia, band.halo, band.color, key));
134
- }
135
- dots.push(/*#__PURE__*/_jsx(View, {
136
- style: {
137
- position: "absolute",
138
- left: cx - band.dia / 2,
139
- top: y - band.dia / 2,
140
- width: band.dia,
141
- height: band.dia,
142
- borderRadius: band.dia / 2,
143
- backgroundColor: withAlpha(band.color, band.alpha)
144
- }
145
- }, key));
146
- }
147
- }
148
- return /*#__PURE__*/_jsx(Animated.View, {
149
- style: [{
150
- position: "absolute",
151
- left: 0,
152
- top: 0,
153
- width: width * 2,
154
- height
155
- }, {
156
- transform: [{
157
- translateX
158
- }]
159
- }],
160
- pointerEvents: "none",
161
- children: /*#__PURE__*/_jsx(RasterLayer, {
162
- style: {
163
- width: width * 2,
164
- height
165
- },
166
- children: dots
167
- })
168
- });
169
- });
170
- export const Starfield = /*#__PURE__*/memo(function Starfield(props) {
171
- // A single slow breath over the whole field. One node, and it's what stops
172
- // the sky looking like a printed dot pattern now that the per-star twinkle
173
- // from the Skia original isn't affordable.
174
- const shimmer = usePulse(5200, props.animated);
175
- const opacity = shimmer.interpolate({
176
- inputRange: [0, 1],
177
- outputRange: [0.82, 1]
178
- });
179
- return /*#__PURE__*/_jsxs(View, {
180
- style: absoluteFill,
181
- pointerEvents: "none",
182
- children: [/*#__PURE__*/_jsx(Base, {
183
- color: "#05060A"
184
- }), /*#__PURE__*/_jsx(RadialGlow, {
185
- size: props.width * 1.6,
186
- color: "#1E3A8A",
187
- alpha: 0.2,
188
- rings: 8,
189
- falloff: 2,
190
- style: {
191
- position: "absolute",
192
- left: -props.width * 0.3,
193
- top: -props.width * 0.9
194
- }
195
- }), /*#__PURE__*/_jsx(Animated.View, {
196
- style: [absoluteFill, {
197
- opacity
198
- }],
199
- pointerEvents: "none",
200
- children: BANDS.map((_, i) => /*#__PURE__*/_jsx(StarBand, {
201
- index: i,
202
- ...props
203
- }, i))
204
- })]
205
- });
206
- });
@@ -1,33 +0,0 @@
1
- /**
2
- * The lattice family — quiet technical geometry.
3
- *
4
- * All eight share one register, set by Hex Mesh: a near-black base, one soft
5
- * off-centre glow for depth, a rasterized hairline pattern at low alpha, a slow
6
- * breath, and a vignette. They read as instrument panels and drafting paper
7
- * rather than scenery, which is what keeps them legible under dense tool UI —
8
- * the pattern never competes with the text on top of it.
9
- *
10
- * Cost follows from that: the geometry is static, so it rasterizes into ONE
11
- * texture and the only animated node is the shared breath. See
12
- * `../README.md` for the contract.
13
- */
14
- import type { BackgroundVariantProps } from "../types";
15
- /**
16
- * Squares rotated 45°, odd rows offset by half a step. RN has no polygon
17
- * primitive, so this is the honest way to get a technical mesh out of bordered
18
- * views; at this scale it reads the same as a hex grid.
19
- */
20
- export declare const HexMesh: import("react").NamedExoticComponent<BackgroundVariantProps>;
21
- export declare const IsoGrid: import("react").NamedExoticComponent<BackgroundVariantProps>;
22
- export declare const Crosshatch: import("react").NamedExoticComponent<BackgroundVariantProps>;
23
- export declare const PerfBoard: import("react").NamedExoticComponent<BackgroundVariantProps>;
24
- /**
25
- * The only preset in the family with a gradient in it, and it's made of dot
26
- * SIZE rather than colour: dots swell toward the light and shrink away from it.
27
- * Cheaper than a real gradient and it survives any background colour.
28
- */
29
- export declare const Halftone: import("react").NamedExoticComponent<BackgroundVariantProps>;
30
- export declare const Waffle: import("react").NamedExoticComponent<BackgroundVariantProps>;
31
- export declare const Instrument: import("react").NamedExoticComponent<BackgroundVariantProps>;
32
- export declare const Radar: import("react").NamedExoticComponent<BackgroundVariantProps>;
33
- //# sourceMappingURL=lattice.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"lattice.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/backgrounds/variants/lattice.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAOH,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AA6HvD;;;;GAIG;AACH,eAAO,MAAM,OAAO,8DAgClB,CAAC;AAMH,eAAO,MAAM,OAAO,8DAWlB,CAAC;AAMH,eAAO,MAAM,UAAU,8DAQrB,CAAC;AAQH,eAAO,MAAM,SAAS,8DAgCpB,CAAC;AAQH;;;;GAIG;AACH,eAAO,MAAM,QAAQ,8DAkCnB,CAAC;AAQH,eAAO,MAAM,MAAM,8DA6BjB,CAAC;AAMH,eAAO,MAAM,UAAU,8DAgDrB,CAAC;AAmEH,eAAO,MAAM,KAAK,8DAmEhB,CAAC"}
@@ -1,12 +0,0 @@
1
- /**
2
- * Starfield — the RN-primitive port of the Everlights parallax-drift starfield.
3
- *
4
- * The original is a GPU-instanced Skia `<Atlas>` with a per-star worklet; Buoy
5
- * can't depend on Skia, so the depth continuum is quantised into five discrete
6
- * bands. Each band is one rasterized layer of dots sliding at its own speed —
7
- * five native-driven loops instead of 160 per-frame transforms — and the eye
8
- * reads five parallax speeds as depth just as well as it reads a continuum.
9
- */
10
- import type { BackgroundVariantProps } from "../types";
11
- export declare const Starfield: import("react").NamedExoticComponent<BackgroundVariantProps>;
12
- //# sourceMappingURL=starfield.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"starfield.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/backgrounds/variants/starfield.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAOH,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAsHvD,eAAO,MAAM,SAAS,8DAyBpB,CAAC"}
@@ -1,33 +0,0 @@
1
- /**
2
- * The lattice family — quiet technical geometry.
3
- *
4
- * All eight share one register, set by Hex Mesh: a near-black base, one soft
5
- * off-centre glow for depth, a rasterized hairline pattern at low alpha, a slow
6
- * breath, and a vignette. They read as instrument panels and drafting paper
7
- * rather than scenery, which is what keeps them legible under dense tool UI —
8
- * the pattern never competes with the text on top of it.
9
- *
10
- * Cost follows from that: the geometry is static, so it rasterizes into ONE
11
- * texture and the only animated node is the shared breath. See
12
- * `../README.md` for the contract.
13
- */
14
- import type { BackgroundVariantProps } from "../types";
15
- /**
16
- * Squares rotated 45°, odd rows offset by half a step. RN has no polygon
17
- * primitive, so this is the honest way to get a technical mesh out of bordered
18
- * views; at this scale it reads the same as a hex grid.
19
- */
20
- export declare const HexMesh: import("react").NamedExoticComponent<BackgroundVariantProps>;
21
- export declare const IsoGrid: import("react").NamedExoticComponent<BackgroundVariantProps>;
22
- export declare const Crosshatch: import("react").NamedExoticComponent<BackgroundVariantProps>;
23
- export declare const PerfBoard: import("react").NamedExoticComponent<BackgroundVariantProps>;
24
- /**
25
- * The only preset in the family with a gradient in it, and it's made of dot
26
- * SIZE rather than colour: dots swell toward the light and shrink away from it.
27
- * Cheaper than a real gradient and it survives any background colour.
28
- */
29
- export declare const Halftone: import("react").NamedExoticComponent<BackgroundVariantProps>;
30
- export declare const Waffle: import("react").NamedExoticComponent<BackgroundVariantProps>;
31
- export declare const Instrument: import("react").NamedExoticComponent<BackgroundVariantProps>;
32
- export declare const Radar: import("react").NamedExoticComponent<BackgroundVariantProps>;
33
- //# sourceMappingURL=lattice.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"lattice.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/backgrounds/variants/lattice.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAOH,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AA6HvD;;;;GAIG;AACH,eAAO,MAAM,OAAO,8DAgClB,CAAC;AAMH,eAAO,MAAM,OAAO,8DAWlB,CAAC;AAMH,eAAO,MAAM,UAAU,8DAQrB,CAAC;AAQH,eAAO,MAAM,SAAS,8DAgCpB,CAAC;AAQH;;;;GAIG;AACH,eAAO,MAAM,QAAQ,8DAkCnB,CAAC;AAQH,eAAO,MAAM,MAAM,8DA6BjB,CAAC;AAMH,eAAO,MAAM,UAAU,8DAgDrB,CAAC;AAmEH,eAAO,MAAM,KAAK,8DAmEhB,CAAC"}
@@ -1,12 +0,0 @@
1
- /**
2
- * Starfield — the RN-primitive port of the Everlights parallax-drift starfield.
3
- *
4
- * The original is a GPU-instanced Skia `<Atlas>` with a per-star worklet; Buoy
5
- * can't depend on Skia, so the depth continuum is quantised into five discrete
6
- * bands. Each band is one rasterized layer of dots sliding at its own speed —
7
- * five native-driven loops instead of 160 per-frame transforms — and the eye
8
- * reads five parallax speeds as depth just as well as it reads a continuum.
9
- */
10
- import type { BackgroundVariantProps } from "../types";
11
- export declare const Starfield: import("react").NamedExoticComponent<BackgroundVariantProps>;
12
- //# sourceMappingURL=starfield.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"starfield.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/backgrounds/variants/starfield.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAOH,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAsHvD,eAAO,MAAM,SAAS,8DAyBpB,CAAC"}