@buoy-gg/shared-ui 7.0.25 → 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
@@ -0,0 +1,113 @@
1
+ /**
2
+ * "Night" design tokens — the Everlights surface language, ported.
3
+ *
4
+ * A near-black, smooth, borderless-feeling system built to sit ON TOP of the
5
+ * shared ToolBackground star field: one `#050505` sheet the field shows
6
+ * through, `#0C0C0C` cards with hairline `#1A1A1C` borders, `#161618` rows
7
+ * inside them, uppercase section labels OUTSIDE the cards, and a single green
8
+ * accent that takes dark ink.
9
+ *
10
+ * Values are lifted 1:1 from the Everlights app's `constants/theme.ts`
11
+ * (`Palette` + `DarkColors`) and its modal tokens — that app is the design
12
+ * reference, so when in doubt match it, don't invent.
13
+ *
14
+ * THE ACCENT IS ONE SEAM: everything green reads `night.color.accent*`. The
15
+ * family is Buoy's brand green (`buoyColors.primary`, #20C997 — kept as
16
+ * literals so this module stays import-free); swapping it is a seven-line
17
+ * change here and nowhere else. `onAccent` stays black — this green wants
18
+ * dark ink.
19
+ *
20
+ * SCOPE: piloted on the dial menu's settings modal (JsModal `variant="night"`
21
+ * + DevToolsSettingsModal). If it sticks, convert the other tools to it.
22
+ */
23
+ export declare const night: {
24
+ readonly color: {
25
+ /** The sheet itself — also the inset track of a segmented control. */
26
+ readonly bg: "#050505";
27
+ /** A card. */
28
+ readonly surface: "#0C0C0C";
29
+ /** A row or control inside a card. */
30
+ readonly surfaceElevated: "#161618";
31
+ /** Hairline card border. */
32
+ readonly border: "#1A1A1C";
33
+ /** Hairline between rows inside a card. */
34
+ readonly separator: "rgba(255, 255, 255, 0.08)";
35
+ /** Neutral fills, lightest → strongest. */
36
+ readonly fill: "rgba(255, 255, 255, 0.06)";
37
+ readonly fillSecondary: "rgba(255, 255, 255, 0.08)";
38
+ readonly fillTertiary: "rgba(255, 255, 255, 0.12)";
39
+ /** Chip resting fill — dark glass, readable over the star field. */
40
+ readonly buttonSurface: "rgba(8, 10, 14, 0.85)";
41
+ /** Secondary/destructive button plate. */
42
+ readonly button: "#1C1C1C";
43
+ readonly buttonPressed: "#2C2C2E";
44
+ readonly text: "#ECEDEE";
45
+ readonly textSecondary: "#9BA1A6";
46
+ readonly textTertiary: "#636366";
47
+ /** Drag handles, input placeholders. */
48
+ readonly placeholder: "rgba(255, 255, 255, 0.30)";
49
+ /** The one accent (Buoy brand green). See the header note — one seam. */
50
+ readonly accent: "#20C997";
51
+ readonly accentPressed: "#1BAB80";
52
+ readonly accentSoft: "rgba(32, 201, 151, 0.12)";
53
+ readonly accentFill: "rgba(32, 201, 151, 0.18)";
54
+ readonly accentBorder: "rgba(32, 201, 151, 0.20)";
55
+ readonly accentBorderStrong: "rgba(32, 201, 151, 0.35)";
56
+ /** Ink on a filled accent surface — the accent takes DARK ink. */
57
+ readonly onAccent: "#000000";
58
+ readonly danger: "#FF3B30";
59
+ readonly dangerSoft: "rgba(255, 59, 48, 0.10)";
60
+ readonly warning: "#FF8329";
61
+ readonly warningSoft: "rgba(255, 131, 41, 0.12)";
62
+ readonly info: "#1E6DFF";
63
+ readonly infoSoft: "rgba(30, 109, 255, 0.12)";
64
+ /** Switch thumb at rest (Everlights moon gray). */
65
+ readonly knob: "#D4D8DC";
66
+ };
67
+ readonly radius: {
68
+ /** Sheets and dialogs. */
69
+ readonly sheet: 16;
70
+ /** Cards. */
71
+ readonly card: 14;
72
+ /** Inputs and code blocks. */
73
+ readonly input: 12;
74
+ /** Rows and inner controls; also the segmented-control track. */
75
+ readonly row: 10;
76
+ /** Segment thumb inside a radius-10 track. */
77
+ readonly segment: 8;
78
+ /** Small badges. */
79
+ readonly badge: 6;
80
+ /** Zone-style chips. */
81
+ readonly chip: 20;
82
+ /** Fully rounded pills (buttons use height/2 instead). */
83
+ readonly pill: 999;
84
+ };
85
+ /** Screen/sheet horizontal margin. */
86
+ readonly gutter: 16;
87
+ /** Section labels sit 4pt in from the card edge. */
88
+ readonly labelInset: 4;
89
+ /** Vertical rhythm between labeled card groups. */
90
+ readonly groupGap: 24;
91
+ /** Card interior padding. */
92
+ readonly cardPad: 14;
93
+ /** Row padding inside an edge-to-edge card. */
94
+ readonly rowPadH: 16;
95
+ readonly rowPadV: 14;
96
+ readonly font: {
97
+ /** Sheet/modal titles. */
98
+ readonly title: 17;
99
+ /** Row labels and values. */
100
+ readonly row: 15;
101
+ /** Body copy, chip labels. */
102
+ readonly body: 14;
103
+ /** Segmented-control labels, captions, footnotes. */
104
+ readonly caption: 13;
105
+ /** Uppercase section labels. */
106
+ readonly label: 12;
107
+ /** Uppercase micro labels (START/END style). */
108
+ readonly micro: 11;
109
+ };
110
+ };
111
+ /** Section labels track wide open, Everlights-style. */
112
+ export declare const NIGHT_LABEL_TRACKING = 0.8;
113
+ //# sourceMappingURL=nightTheme.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nightTheme.d.ts","sourceRoot":"","sources":["../../../../../src/ui/night/nightTheme.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,eAAO,MAAM,KAAK;;QAEd,sEAAsE;;QAEtE,cAAc;;QAEd,sCAAsC;;QAEtC,4BAA4B;;QAE5B,2CAA2C;;QAG3C,2CAA2C;;;;QAK3C,oEAAoE;;QAEpE,0CAA0C;;;;;;QAO1C,wCAAwC;;QAGxC,yEAAyE;;;;;;;QAOzE,kEAAkE;;;;;;;;QAUlE,mDAAmD;;;;QAKnD,0BAA0B;;QAE1B,aAAa;;QAEb,8BAA8B;;QAE9B,iEAAiE;;QAEjE,8CAA8C;;QAE9C,oBAAoB;;QAEpB,wBAAwB;;QAExB,0DAA0D;;;IAI5D,sCAAsC;;IAEtC,oDAAoD;;IAEpD,mDAAmD;;IAEnD,6BAA6B;;IAE7B,+CAA+C;;;;QAK7C,0BAA0B;;QAE1B,6BAA6B;;QAE7B,8BAA8B;;QAE9B,qDAAqD;;QAErD,gCAAgC;;QAEhC,gDAAgD;;;CAG1C,CAAC;AAEX,wDAAwD;AACxD,eAAO,MAAM,oBAAoB,MAAM,CAAC"}
@@ -0,0 +1,111 @@
1
+ /**
2
+ * Night primitives — the building blocks of the Everlights-style surface
3
+ * (see ./nightTheme for the tokens and where the look comes from).
4
+ *
5
+ * The shape they compose to:
6
+ *
7
+ * NightSectionLabel STORAGE ← outside the card, uppercase
8
+ * NightCard ┌──────────────────┐
9
+ * NightRows │ row │ ← hairline-separated children
10
+ * │ ──────────── │
11
+ * │ row │
12
+ * └──────────────────┘
13
+ * NightFootnote Settings persist through…
14
+ *
15
+ * Controls: NightSwitch (the Everlights 56×32 toggle), NightChip (zone-style
16
+ * pill), NightButton (primary = filled accent w/ dark ink, everything else on
17
+ * the #1C1C1C plate), NightSegmented (the All/Day control with the accent
18
+ * underline), NightBadge (small status caps).
19
+ */
20
+ import { type ReactNode } from "react";
21
+ import { type StyleProp, type TextStyle, type ViewStyle } from "react-native";
22
+ /** Uppercase section label that sits ABOVE a NightCard. */
23
+ export declare function NightSectionLabel({ children, style, }: {
24
+ children: string;
25
+ style?: StyleProp<TextStyle>;
26
+ }): import("react").JSX.Element;
27
+ /** Explanatory line under a NightCard (or above a CTA, `centered`). */
28
+ export declare function NightFootnote({ children, centered, tone, style, }: {
29
+ children: ReactNode;
30
+ centered?: boolean;
31
+ tone?: "tertiary" | "secondary" | "warning" | "danger";
32
+ style?: StyleProp<TextStyle>;
33
+ }): import("react").JSX.Element;
34
+ /** A card: `#0C0C0C`, radius 14, hairline border. `padded` = interior 14. */
35
+ export declare function NightCard({ children, padded, style, }: {
36
+ children: ReactNode;
37
+ padded?: boolean;
38
+ style?: StyleProp<ViewStyle>;
39
+ }): import("react").JSX.Element;
40
+ /** Hairline separator between rows, inset from the left like iOS. */
41
+ export declare function NightSeparator({ inset }: {
42
+ inset?: number;
43
+ }): import("react").JSX.Element;
44
+ /**
45
+ * Interleaves a hairline between consecutive children so rows never track
46
+ * their own position. Meant to live inside an unpadded NightCard.
47
+ */
48
+ export declare function NightRows({ children, inset, }: {
49
+ children: ReactNode;
50
+ inset?: number;
51
+ }): import("react").JSX.Element;
52
+ /**
53
+ * The Everlights 56×32 switch. The thumb slides on the native driver; the
54
+ * colors snap with the state change, which reads fine at this size.
55
+ */
56
+ export declare function NightSwitch({ value, onValueChange, disabled, }: {
57
+ value: boolean;
58
+ onValueChange: (next: boolean) => void;
59
+ disabled?: boolean;
60
+ }): import("react").JSX.Element;
61
+ /**
62
+ * Zone-style pill chip. The fill never changes — selection is signaled by the
63
+ * border and label color only, exactly like the Everlights zone row.
64
+ */
65
+ export declare function NightChip({ label, selected, onPress, disabled, icon, }: {
66
+ label: string;
67
+ selected?: boolean;
68
+ onPress?: () => void;
69
+ disabled?: boolean;
70
+ icon?: ReactNode;
71
+ }): import("react").JSX.Element;
72
+ export type NightButtonVariant = "primary" | "secondary" | "tertiary" | "destructive" | "ghost";
73
+ /**
74
+ * Everlights button. `primary` fills with the accent and takes DARK ink;
75
+ * every other variant sits on the `#1C1C1C` plate and differs only in label
76
+ * color. `lg` is the fully-rounded 50pt CTA.
77
+ */
78
+ export declare function NightButton({ label, onPress, variant, size, icon, disabled, fullWidth, }: {
79
+ label: string;
80
+ onPress: () => void;
81
+ variant?: NightButtonVariant;
82
+ size?: "md" | "lg";
83
+ icon?: ReactNode;
84
+ disabled?: boolean;
85
+ fullWidth?: boolean;
86
+ }): import("react").JSX.Element;
87
+ export interface NightTab {
88
+ key: string;
89
+ label: string;
90
+ }
91
+ /**
92
+ * Segmented control: `#050505` track, `#161618` thumb, and the accent
93
+ * underline glow beneath the active label (the Everlights All/Day tabs).
94
+ *
95
+ * THE shared tab control for night-theme tool headers — the dial settings
96
+ * and the network tool both mount this one. `size="sm"` is the compact
97
+ * variant for in-tool headers where the full-height control reads too tall.
98
+ */
99
+ export declare function NightSegmented({ tabs, activeKey, onChange, size, }: {
100
+ tabs: NightTab[];
101
+ activeKey: string;
102
+ onChange: (key: string) => void;
103
+ size?: "md" | "sm";
104
+ }): import("react").JSX.Element;
105
+ export type NightBadgeTone = "accent" | "warning" | "danger" | "info" | "neutral";
106
+ /** Small uppercase status cap ("FILE SYSTEM", "CONNECTED"). */
107
+ export declare function NightBadge({ label, tone, }: {
108
+ label: string;
109
+ tone?: NightBadgeTone;
110
+ }): import("react").JSX.Element;
111
+ //# sourceMappingURL=primitives.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"primitives.d.ts","sourceRoot":"","sources":["../../../../../src/ui/night/primitives.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,EAA+B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AACpE,OAAO,EAML,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAGtB,2DAA2D;AAC3D,wBAAgB,iBAAiB,CAAC,EAChC,QAAQ,EACR,KAAK,GACN,EAAE;IACD,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,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ACvB,+BA0BA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@buoy-gg/shared-ui",
3
- "version": "7.0.25",
3
+ "version": "7.0.27",
4
4
  "description": "Shared UI components, hooks, and utilities",
5
5
  "main": "lib/commonjs/index.js",
6
6
  "module": "lib/module/index.js",
@@ -136,10 +136,10 @@
136
136
  ],
137
137
  "sideEffects": false,
138
138
  "dependencies": {
139
- "@buoy-gg/floating-tools-core": "^7.0.25"
139
+ "@buoy-gg/floating-tools-core": "^7.0.27"
140
140
  },
141
141
  "peerDependencies": {
142
- "@buoy-gg/license": "7.0.25",
142
+ "@buoy-gg/license": "7.0.27",
143
143
  "@react-native-clipboard/clipboard": "*",
144
144
  "expo-clipboard": "*",
145
145
  "expo-file-system": "*",
@@ -167,7 +167,7 @@
167
167
  "expo-clipboard": "~7.1.5",
168
168
  "react-native-safe-area-context": "^5.6.2",
169
169
  "typescript": "~5.8.3",
170
- "@buoy-gg/license": "^7.0.25"
170
+ "@buoy-gg/license": "^7.0.27"
171
171
  },
172
172
  "react-native-builder-bob": {
173
173
  "source": "src",