@bloxwap/hig 0.0.0-stage → 0.5.1

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 (220) hide show
  1. package/LICENSE +5 -0
  2. package/README.md +44 -2
  3. package/chart/README.md +23 -0
  4. package/chart/dist/index.d.ts +8 -0
  5. package/chart/dist/index.js +12 -0
  6. package/contracts/README.md +3 -0
  7. package/contracts/dist/announcements.d.ts +12 -0
  8. package/contracts/dist/announcements.js +8 -0
  9. package/contracts/dist/feedback.d.ts +40 -0
  10. package/contracts/dist/feedback.js +1 -0
  11. package/contracts/dist/index.d.ts +41 -0
  12. package/contracts/dist/index.js +52 -0
  13. package/contracts/dist/messages.d.ts +300 -0
  14. package/contracts/dist/messages.js +114 -0
  15. package/css.d.ts +2 -0
  16. package/feedback/README.md +7 -0
  17. package/feedback/assets/error.wav +0 -0
  18. package/feedback/assets/manifest.json +78 -0
  19. package/feedback/assets/success.wav +0 -0
  20. package/feedback/assets/tick.wav +0 -0
  21. package/feedback/assets/toggle.wav +0 -0
  22. package/feedback/dist/browser-haptic.d.ts +23 -0
  23. package/feedback/dist/browser-haptic.js +41 -0
  24. package/feedback/dist/contract.d.ts +40 -0
  25. package/feedback/dist/contract.js +59 -0
  26. package/feedback/dist/native.d.ts +28 -0
  27. package/feedback/dist/native.js +63 -0
  28. package/feedback/dist/preferences.d.ts +8 -0
  29. package/feedback/dist/preferences.js +24 -0
  30. package/feedback/dist/presets.d.ts +57 -0
  31. package/feedback/dist/presets.js +1 -0
  32. package/feedback/dist/react.d.ts +19 -0
  33. package/feedback/dist/react.js +23 -0
  34. package/feedback/dist/web-haptic.d.ts +6 -0
  35. package/feedback/dist/web-haptic.js +6 -0
  36. package/feedback/dist/web-sound.d.ts +5 -0
  37. package/feedback/dist/web-sound.js +32 -0
  38. package/feedback/dist/web.d.ts +3 -0
  39. package/feedback/dist/web.js +4 -0
  40. package/native/README.md +16 -0
  41. package/native/android/build.gradle +28 -0
  42. package/native/android/src/main/java/com/bloxwap/hig/HIGAdjustableView.java +173 -0
  43. package/native/android/src/main/java/com/bloxwap/hig/HIGAdjustableViewManager.java +23 -0
  44. package/native/android/src/main/java/com/bloxwap/hig/HIGPackage.java +24 -0
  45. package/native/dist/animated-number-model.d.ts +24 -0
  46. package/native/dist/animated-number-model.js +110 -0
  47. package/native/dist/animated-number.d.ts +9 -0
  48. package/native/dist/animated-number.js +97 -0
  49. package/native/dist/brand.d.ts +7 -0
  50. package/native/dist/brand.js +7 -0
  51. package/native/dist/button.d.ts +30 -0
  52. package/native/dist/button.js +36 -0
  53. package/native/dist/checkbox.d.ts +3 -0
  54. package/native/dist/checkbox.js +11 -0
  55. package/native/dist/data.d.ts +57 -0
  56. package/native/dist/data.js +47 -0
  57. package/native/dist/field.d.ts +16 -0
  58. package/native/dist/field.js +26 -0
  59. package/native/dist/gesture-sheet.d.ts +73 -0
  60. package/native/dist/gesture-sheet.js +153 -0
  61. package/native/dist/icons.d.ts +21 -0
  62. package/native/dist/icons.js +20 -0
  63. package/native/dist/navigation.d.ts +48 -0
  64. package/native/dist/navigation.js +58 -0
  65. package/native/dist/overlay.d.ts +36 -0
  66. package/native/dist/overlay.js +65 -0
  67. package/native/dist/pickers.d.ts +54 -0
  68. package/native/dist/pickers.js +60 -0
  69. package/native/dist/provider.d.ts +62 -0
  70. package/native/dist/provider.js +67 -0
  71. package/native/dist/radio-group.d.ts +21 -0
  72. package/native/dist/radio-group.js +91 -0
  73. package/native/dist/recipes.d.ts +45 -0
  74. package/native/dist/recipes.js +32 -0
  75. package/native/dist/roles.d.ts +6 -0
  76. package/native/dist/roles.js +4 -0
  77. package/native/dist/select.d.ts +3 -0
  78. package/native/dist/select.js +9 -0
  79. package/native/dist/selection-types.d.ts +22 -0
  80. package/native/dist/selection-types.js +1 -0
  81. package/native/dist/selection.d.ts +8 -0
  82. package/native/dist/selection.js +7 -0
  83. package/native/dist/slider.d.ts +11 -0
  84. package/native/dist/slider.js +42 -0
  85. package/native/dist/status.d.ts +86 -0
  86. package/native/dist/status.js +112 -0
  87. package/native/dist/surface.d.ts +19 -0
  88. package/native/dist/surface.js +42 -0
  89. package/native/dist/swap-panel.d.ts +125 -0
  90. package/native/dist/swap-panel.js +177 -0
  91. package/native/dist/swap-parts.d.ts +86 -0
  92. package/native/dist/swap-parts.js +66 -0
  93. package/native/dist/swap-shared.d.ts +65 -0
  94. package/native/dist/swap-shared.js +76 -0
  95. package/native/dist/swap-sheet.d.ts +14 -0
  96. package/native/dist/swap-sheet.js +26 -0
  97. package/native/dist/swap-views.d.ts +41 -0
  98. package/native/dist/swap-views.js +37 -0
  99. package/native/dist/switch-row.d.ts +8 -0
  100. package/native/dist/switch-row.js +18 -0
  101. package/native/dist/switch.d.ts +10 -0
  102. package/native/dist/switch.js +30 -0
  103. package/native/dist/text-content.d.ts +5 -0
  104. package/native/dist/text-content.js +6 -0
  105. package/native/dist/wallet-address.d.ts +37 -0
  106. package/native/dist/wallet-address.js +50 -0
  107. package/native-fonts/README.md +17 -0
  108. package/native-fonts/dist/index.d.ts +164 -0
  109. package/native-fonts/dist/index.js +164 -0
  110. package/native-fonts/fonts/BloxwapMono-Bold.ttf +0 -0
  111. package/native-fonts/fonts/BloxwapMono-ExtraBold.ttf +0 -0
  112. package/native-fonts/fonts/BloxwapMono-Medium.ttf +0 -0
  113. package/native-fonts/fonts/BloxwapMono-SemiBold.ttf +0 -0
  114. package/native-fonts/fonts/BloxwapMono.ttf +0 -0
  115. package/native-fonts/fonts/BloxwapSans-Black.ttf +0 -0
  116. package/native-fonts/fonts/BloxwapSans-Bold.ttf +0 -0
  117. package/native-fonts/fonts/BloxwapSans-ExtraBold.ttf +0 -0
  118. package/native-fonts/fonts/BloxwapSans-Medium.ttf +0 -0
  119. package/native-fonts/fonts/BloxwapSans-SemiBold.ttf +0 -0
  120. package/native-fonts/fonts/BloxwapSans.ttf +0 -0
  121. package/native-fonts/fonts/BloxwapSansKR-SemiBold.ttf +0 -0
  122. package/native-fonts/fonts/BloxwapSansKR.ttf +0 -0
  123. package/native-fonts/fonts/BloxwapSansSC-SemiBold.ttf +0 -0
  124. package/native-fonts/fonts/BloxwapSansSC.ttf +0 -0
  125. package/native-fonts/fonts/OFL.txt +93 -0
  126. package/native-fonts/fonts/manifest.json +164 -0
  127. package/og-fonts/README.md +34 -0
  128. package/og-fonts/dist/index.d.ts +116 -0
  129. package/og-fonts/dist/index.js +102 -0
  130. package/og-fonts/dist/node.d.ts +11 -0
  131. package/og-fonts/dist/node.js +39 -0
  132. package/og-fonts/fonts/BloxwapMono-Medium.ttf +0 -0
  133. package/og-fonts/fonts/BloxwapSans-Black.ttf +0 -0
  134. package/og-fonts/fonts/BloxwapSans-Bold.ttf +0 -0
  135. package/og-fonts/fonts/BloxwapSans-Medium.ttf +0 -0
  136. package/og-fonts/fonts/BloxwapSans.ttf +0 -0
  137. package/og-fonts/fonts/OFL.txt +93 -0
  138. package/og-fonts/fonts/manifest.json +65 -0
  139. package/package.json +476 -4
  140. package/react/README.md +30 -0
  141. package/react/dist/animated-number-model.d.ts +20 -0
  142. package/react/dist/animated-number-model.js +92 -0
  143. package/react/dist/animated-number.d.ts +8 -0
  144. package/react/dist/animated-number.js +72 -0
  145. package/react/dist/base.css +9 -0
  146. package/react/dist/brand.d.ts +7 -0
  147. package/react/dist/brand.js +5 -0
  148. package/react/dist/button.d.ts +14 -0
  149. package/react/dist/button.js +20 -0
  150. package/react/dist/data.d.ts +78 -0
  151. package/react/dist/data.js +36 -0
  152. package/react/dist/dialog.d.ts +29 -0
  153. package/react/dist/dialog.js +21 -0
  154. package/react/dist/field.d.ts +16 -0
  155. package/react/dist/field.js +20 -0
  156. package/react/dist/gesture-sheet.d.ts +41 -0
  157. package/react/dist/gesture-sheet.js +128 -0
  158. package/react/dist/navigation.d.ts +48 -0
  159. package/react/dist/navigation.js +69 -0
  160. package/react/dist/notify.d.ts +14 -0
  161. package/react/dist/notify.js +6 -0
  162. package/react/dist/overlay.d.ts +17 -0
  163. package/react/dist/overlay.js +18 -0
  164. package/react/dist/provider.d.ts +25 -0
  165. package/react/dist/provider.js +50 -0
  166. package/react/dist/recipes/activity-list.d.ts +8 -0
  167. package/react/dist/recipes/activity-list.js +6 -0
  168. package/react/dist/recipes/balance-card.d.ts +6 -0
  169. package/react/dist/recipes/balance-card.js +5 -0
  170. package/react/dist/recipes/code-window.d.ts +4 -0
  171. package/react/dist/recipes/code-window.js +4 -0
  172. package/react/dist/recipes/install-command.d.ts +6 -0
  173. package/react/dist/recipes/install-command.js +15 -0
  174. package/react/dist/recipes/market-row.d.ts +25 -0
  175. package/react/dist/recipes/market-row.js +8 -0
  176. package/react/dist/recipes/marketing-hero.d.ts +7 -0
  177. package/react/dist/recipes/marketing-hero.js +5 -0
  178. package/react/dist/recipes/pickers.d.ts +57 -0
  179. package/react/dist/recipes/pickers.js +78 -0
  180. package/react/dist/recipes/swap/amount-card.d.ts +40 -0
  181. package/react/dist/recipes/swap/amount-card.js +7 -0
  182. package/react/dist/recipes/swap/picker.d.ts +26 -0
  183. package/react/dist/recipes/swap/picker.js +20 -0
  184. package/react/dist/recipes/swap/settings.d.ts +24 -0
  185. package/react/dist/recipes/swap/settings.js +25 -0
  186. package/react/dist/recipes/swap/shared.d.ts +98 -0
  187. package/react/dist/recipes/swap/shared.js +106 -0
  188. package/react/dist/recipes/swap-panel.d.ts +127 -0
  189. package/react/dist/recipes/swap-panel.js +170 -0
  190. package/react/dist/recipes/swap-sheet.d.ts +16 -0
  191. package/react/dist/recipes/swap-sheet.js +22 -0
  192. package/react/dist/recipes/trade-entry.d.ts +11 -0
  193. package/react/dist/recipes/trade-entry.js +12 -0
  194. package/react/dist/recipes.d.ts +10 -0
  195. package/react/dist/recipes.js +11 -0
  196. package/react/dist/select.d.ts +4 -0
  197. package/react/dist/select.js +174 -0
  198. package/react/dist/selection.d.ts +40 -0
  199. package/react/dist/selection.js +23 -0
  200. package/react/dist/slider.d.ts +11 -0
  201. package/react/dist/slider.js +10 -0
  202. package/react/dist/status.d.ts +63 -0
  203. package/react/dist/status.js +47 -0
  204. package/react/dist/styles.css +542 -0
  205. package/react/dist/surface.d.ts +291 -0
  206. package/react/dist/surface.js +9 -0
  207. package/react/dist/toast.d.ts +17 -0
  208. package/react/dist/toast.js +21 -0
  209. package/react/dist/wallet-address.d.ts +23 -0
  210. package/react/dist/wallet-address.js +24 -0
  211. package/tokens/README.md +17 -0
  212. package/tokens/assets/bloxwap-icon.svg +1 -0
  213. package/tokens/dist/brand.d.ts +19 -0
  214. package/tokens/dist/brand.js +24 -0
  215. package/tokens/dist/index.d.ts +437 -0
  216. package/tokens/dist/index.js +514 -0
  217. package/tokens/dist/manifest.json +200 -0
  218. package/tokens/dist/theme.d.ts +11 -0
  219. package/tokens/dist/theme.js +22 -0
  220. package/tokens/dist/tokens.css +120 -0
@@ -0,0 +1,93 @@
1
+ Copyright 2026 Bloxwap, Inc. (https://bloxwap.com), with Reserved Font Name "Bloxwap".
2
+
3
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+ This license is copied below, and is also available with a FAQ at:
5
+ https://openfontlicense.org
6
+
7
+
8
+ -----------------------------------------------------------
9
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10
+ -----------------------------------------------------------
11
+
12
+ PREAMBLE
13
+ The goals of the Open Font License (OFL) are to stimulate worldwide
14
+ development of collaborative font projects, to support the font creation
15
+ efforts of academic and linguistic communities, and to provide a free and
16
+ open framework in which fonts may be shared and improved in partnership
17
+ with others.
18
+
19
+ The OFL allows the licensed fonts to be used, studied, modified and
20
+ redistributed freely as long as they are not sold by themselves. The
21
+ fonts, including any derivative works, can be bundled, embedded,
22
+ redistributed and/or sold with any software provided that any reserved
23
+ names are not used by derivative works. The fonts and derivatives,
24
+ however, cannot be released under any other type of license. The
25
+ requirement for fonts to remain under this license does not apply
26
+ to any document created using the fonts or their derivatives.
27
+
28
+ DEFINITIONS
29
+ "Font Software" refers to the set of files released by the Copyright
30
+ Holder(s) under this license and clearly marked as such. This may
31
+ include source files, build scripts and documentation.
32
+
33
+ "Reserved Font Name" refers to any names specified as such after the
34
+ copyright statement(s).
35
+
36
+ "Original Version" refers to the collection of Font Software components as
37
+ distributed by the Copyright Holder(s).
38
+
39
+ "Modified Version" refers to any derivative made by adding to, deleting,
40
+ or substituting -- in part or in whole -- any of the components of the
41
+ Original Version, by changing formats or by porting the Font Software to a
42
+ new environment.
43
+
44
+ "Author" refers to any designer, engineer, programmer, technical
45
+ writer or other person who contributed to the Font Software.
46
+
47
+ PERMISSION & CONDITIONS
48
+ Permission is hereby granted, free of charge, to any person obtaining
49
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
50
+ redistribute, and sell modified and unmodified copies of the Font
51
+ Software, subject to the following conditions:
52
+
53
+ 1) Neither the Font Software nor any of its individual components,
54
+ in Original or Modified Versions, may be sold by itself.
55
+
56
+ 2) Original or Modified Versions of the Font Software may be bundled,
57
+ redistributed and/or sold with any software, provided that each copy
58
+ contains the above copyright notice and this license. These can be
59
+ included either as stand-alone text files, human-readable headers or
60
+ in the appropriate machine-readable metadata fields within text or
61
+ binary files as long as those fields can be easily viewed by the user.
62
+
63
+ 3) No Modified Version of the Font Software may use the Reserved Font
64
+ Name(s) unless explicit written permission is granted by the corresponding
65
+ Copyright Holder. This restriction only applies to the primary font name as
66
+ presented to the users.
67
+
68
+ 4) The name(s) of the Copyright Holder(s) and the Author(s) of the Font
69
+ Software shall not be used to promote, endorse or advertise any
70
+ Modified Version, except to acknowledge the contribution(s) of the
71
+ Copyright Holder(s) and the Author(s) or with their explicit written
72
+ permission.
73
+
74
+ 5) The Font Software, modified or unmodified, in part or in whole,
75
+ must be distributed entirely under this license, and must not be
76
+ distributed under any other license. The requirement for fonts to
77
+ remain under this license does not apply to any document created
78
+ using the Font Software.
79
+
80
+ TERMINATION
81
+ This license becomes null and void if any of the above conditions are
82
+ not met.
83
+
84
+ DISCLAIMER
85
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93
+ OTHER DEALINGS IN THE FONT SOFTWARE.
@@ -0,0 +1,164 @@
1
+ {
2
+ "package": "@bloxwap/font",
3
+ "version": "0.1.4",
4
+ "sources": {
5
+ "fonts/BloxwapSans/BloxwapSans-Variable.woff2": "96f6be58023b1d22152c797336282a4330a47ab4a3c0ab87451be887903746b7",
6
+ "fonts/BloxwapMono/BloxwapMono-Variable.woff2": "fa66e41575807c3d260d8f5b493be349cac127836b0174976c7d4876237d2632",
7
+ "fonts/BloxwapSansKR/BloxwapSansKR-Variable.woff2": "ac41500ba7546e204d07499266cadb848e24c0e9935c2616124aedcfba5a9737",
8
+ "fonts/BloxwapSansSC/BloxwapSansSC-Variable.woff2": "c0244998e334bbd997dc9acfaf3f10bce169facfec1cf2bbcfc4db38c7122893"
9
+ },
10
+ "faces": [
11
+ {
12
+ "family": "BloxwapSans",
13
+ "weight": 400,
14
+ "asset": "BloxwapSans.ttf",
15
+ "script": "latin",
16
+ "registration": "BloxwapSansRegular",
17
+ "postscript": "BloxwapSans-Regular",
18
+ "bytes": 446440
19
+ },
20
+ {
21
+ "family": "BloxwapSans",
22
+ "weight": 500,
23
+ "asset": "BloxwapSans-Medium.ttf",
24
+ "script": "latin",
25
+ "registration": "BloxwapSansMedium",
26
+ "postscript": "BloxwapSans-Medium",
27
+ "bytes": 447024
28
+ },
29
+ {
30
+ "family": "BloxwapSans",
31
+ "weight": 600,
32
+ "asset": "BloxwapSans-SemiBold.ttf",
33
+ "script": "latin",
34
+ "registration": "BloxwapSansSemiBold",
35
+ "postscript": "BloxwapSans-SemiBold",
36
+ "bytes": 447104
37
+ },
38
+ {
39
+ "family": "BloxwapSans",
40
+ "weight": 700,
41
+ "asset": "BloxwapSans-Bold.ttf",
42
+ "script": "latin",
43
+ "registration": "BloxwapSansBold",
44
+ "postscript": "BloxwapSans-Bold",
45
+ "bytes": 447388
46
+ },
47
+ {
48
+ "family": "BloxwapSans",
49
+ "weight": 800,
50
+ "asset": "BloxwapSans-ExtraBold.ttf",
51
+ "script": "latin",
52
+ "registration": "BloxwapSansExtraBold",
53
+ "postscript": "BloxwapSans-ExtraBold",
54
+ "bytes": 446820
55
+ },
56
+ {
57
+ "family": "BloxwapSans",
58
+ "weight": 900,
59
+ "asset": "BloxwapSans-Black.ttf",
60
+ "script": "latin",
61
+ "registration": "BloxwapSansBlack",
62
+ "postscript": "BloxwapSans-Black",
63
+ "bytes": 445912
64
+ },
65
+ {
66
+ "family": "BloxwapMono",
67
+ "weight": 400,
68
+ "asset": "BloxwapMono.ttf",
69
+ "script": "latin",
70
+ "registration": "BloxwapMonoRegular",
71
+ "postscript": "BloxwapMono-Regular",
72
+ "bytes": 385336
73
+ },
74
+ {
75
+ "family": "BloxwapMono",
76
+ "weight": 500,
77
+ "asset": "BloxwapMono-Medium.ttf",
78
+ "script": "latin",
79
+ "registration": "BloxwapMonoMedium",
80
+ "postscript": "BloxwapMono-Medium",
81
+ "bytes": 385628
82
+ },
83
+ {
84
+ "family": "BloxwapMono",
85
+ "weight": 600,
86
+ "asset": "BloxwapMono-SemiBold.ttf",
87
+ "script": "latin",
88
+ "registration": "BloxwapMonoSemiBold",
89
+ "postscript": "BloxwapMono-SemiBold",
90
+ "bytes": 385372
91
+ },
92
+ {
93
+ "family": "BloxwapMono",
94
+ "weight": 700,
95
+ "asset": "BloxwapMono-Bold.ttf",
96
+ "script": "latin",
97
+ "registration": "BloxwapMonoBold",
98
+ "postscript": "BloxwapMono-Bold",
99
+ "bytes": 384964
100
+ },
101
+ {
102
+ "family": "BloxwapMono",
103
+ "weight": 800,
104
+ "asset": "BloxwapMono-ExtraBold.ttf",
105
+ "script": "latin",
106
+ "registration": "BloxwapMonoExtraBold",
107
+ "postscript": "BloxwapMono-ExtraBold",
108
+ "bytes": 384608
109
+ },
110
+ {
111
+ "family": "BloxwapSansKR",
112
+ "weight": 400,
113
+ "asset": "BloxwapSansKR.ttf",
114
+ "script": "korean",
115
+ "registration": "BloxwapSansKRRegular",
116
+ "postscript": "BloxwapSansKR-Regular",
117
+ "bytes": 1294968
118
+ },
119
+ {
120
+ "family": "BloxwapSansKR",
121
+ "weight": 600,
122
+ "asset": "BloxwapSansKR-SemiBold.ttf",
123
+ "script": "korean",
124
+ "registration": "BloxwapSansKRSemiBold",
125
+ "postscript": "BloxwapSansKR-SemiBold",
126
+ "bytes": 1295432
127
+ },
128
+ {
129
+ "family": "BloxwapSansSC",
130
+ "weight": 400,
131
+ "asset": "BloxwapSansSC.ttf",
132
+ "script": "simplified-chinese",
133
+ "registration": "BloxwapSansSCRegular",
134
+ "postscript": "BloxwapSansSC-Regular",
135
+ "bytes": 2422672
136
+ },
137
+ {
138
+ "family": "BloxwapSansSC",
139
+ "weight": 600,
140
+ "asset": "BloxwapSansSC-SemiBold.ttf",
141
+ "script": "simplified-chinese",
142
+ "registration": "BloxwapSansSCSemiBold",
143
+ "postscript": "BloxwapSansSC-SemiBold",
144
+ "bytes": 2422976
145
+ }
146
+ ],
147
+ "outputs": {
148
+ "BloxwapSans.ttf": "778520981b42b408c19e43fc6d62e513ff0c47bd9870d62159e2e74cda2f79f5",
149
+ "BloxwapSans-Medium.ttf": "add342361cd444c59fb05bb072ac71b32ed27d2fd2f9a364bddb6a930c6bd6bd",
150
+ "BloxwapSans-SemiBold.ttf": "7257cb505ec841dae8f5ff3160c629d08003bfd31b9d94334dd4a31798444c8c",
151
+ "BloxwapSans-Bold.ttf": "13e10451ecec4e33733b196454f1232a16d34d5014dce66daaee4d0c58600e1b",
152
+ "BloxwapSans-ExtraBold.ttf": "83cd52444039e62c49d691103fb8ab6329f3135ec8c80e8348e448d03a05cb0a",
153
+ "BloxwapSans-Black.ttf": "a99894c158cff3cff828b7d17ec12f075352848843944a730caa9d64c0362ea2",
154
+ "BloxwapMono.ttf": "6469eea2fc3fbad052301a6e0febf0182aef280b888acbbf1390c623ff168b65",
155
+ "BloxwapMono-Medium.ttf": "f969fd1e4d3b81a7fac108a21a8130b7618f04c39ce7fd5e598fb70fd1230b1f",
156
+ "BloxwapMono-SemiBold.ttf": "88389198a85cb655404e67f3c9ae683b61ee1d85e57f5222d0228833f6c7f7b2",
157
+ "BloxwapMono-Bold.ttf": "3246a540d8bd8d8dda8ee965d0e1f38b9e00cb373cc1756500a052631d01623a",
158
+ "BloxwapMono-ExtraBold.ttf": "89cc3282a7781f08b66d72c0d1b105fdfaa1531e48cfcc50c6eeb5b2b5db64bd",
159
+ "BloxwapSansKR.ttf": "d8eae9352bd2d4ae09eeecdb3ffd9cf9c914982f24db3ff816bb16d8ea329c1e",
160
+ "BloxwapSansKR-SemiBold.ttf": "0897de89055aa2d30722a5bee8a97443a373c5105b726846508477ae49a03e8c",
161
+ "BloxwapSansSC.ttf": "1a6802ac902328f3cd5040d7400a2e9e46f15871fa6ea2c9d8138dfffb8333cb",
162
+ "BloxwapSansSC-SemiBold.ttf": "9af551f298cc13fdffe4f58e7373099f1a84d3caca86a67399acf2cc35970d4b"
163
+ }
164
+ }
@@ -0,0 +1,34 @@
1
+ # @bloxwap/hig/og-fonts
2
+
3
+ Version 0.5.1, an entry of `@bloxwap/hig`. Five static Latin Bloxwap Sans/Mono TTF faces for Open Graph card renderers: Satori, `next/og` `ImageResponse` and `@vercel/og`. Satori reads TTF/OTF but not WOFF2, and `@bloxwap/font` ships only WOFF2.
4
+
5
+ | Face | File | Weight |
6
+ | --- | --- | --- |
7
+ | Bloxwap Sans Regular | `fonts/BloxwapSans.ttf` | 400 |
8
+ | Bloxwap Sans Medium | `fonts/BloxwapSans-Medium.ttf` | 500 |
9
+ | Bloxwap Sans Bold | `fonts/BloxwapSans-Bold.ttf` | 700 |
10
+ | Bloxwap Sans Black | `fonts/BloxwapSans-Black.ttf` | 900 |
11
+ | Bloxwap Mono Medium | `fonts/BloxwapMono-Medium.ttf` | 500 |
12
+
13
+ These are the faces that the chart, sfx, agent-cli and tapsiren OG cards load. `npm run generate:fonts` copies them byte for byte from `@bloxwap/hig/native-fonts`, so every SHA-256 in `fontManifest.outputs` equals the matching native manifest entry. The packed tarball stays under 1 MB; the release dry run fails if it grows past that. If you need a weight that is not listed here, open an issue on bloxwap/hig. Do not vendor `@bloxwap/hig/native-fonts`.
14
+
15
+ Install it as a build-time dev dependency. Nothing in it is served to browsers.
16
+
17
+ ```tsx
18
+ // Node runtime (next/og route handlers, static OG export scripts)
19
+ import {ImageResponse} from 'next/og';
20
+ import {loadOgFonts} from '@bloxwap/hig/og-fonts/node';
21
+
22
+ const fonts = await loadOgFonts(); // reads fonts/*.ttf and throws on any SHA-256 mismatch
23
+ export function GET() {
24
+ return new ImageResponse(<div style={{fontFamily: 'Bloxwap Sans', fontWeight: 700}}>Bloxwap</div>, {width: 1200, height: 630, fonts});
25
+ }
26
+ ```
27
+
28
+ This works in Next 16 route handlers with both the default Turbopack build and `next build --webpack`. Each face has its own literal `new URL('../fonts/<File>.ttf', import.meta.url)`, which Turbopack copies into `.next/server`. webpack reads the faces from this entry's `fonts/` directory at the absolute path it had at build time. If a webpack `output: 'standalone'` build moves to another directory, add `serverExternalPackages: ['@bloxwap/hig']` to `next.config`.
29
+
30
+ `loadOgFonts(faces?)` returns `{name, data, weight, style}` objects, the shape Satori takes. `ogFonts` (from `@bloxwap/hig/og-fonts`) lists the same faces with their asset names and hashes, so you can pass a subset, for example `ogFonts.filter(f => f.weight >= 700)`. `readOgFont(asset)` reads and checks a single file.
31
+
32
+ Edge or Workers runtimes cannot read `node_modules` at request time. Copy `@bloxwap/hig/og-fonts/fonts/<asset>` into a build output at build time and check each file against `fontManifest.outputs[asset]` (also at `@bloxwap/hig/og-fonts/manifest`) before you write it. Keep that output gitignored.
33
+
34
+ OFL attribution for the faces ships in `fonts/OFL.txt`. The faces derive from `@bloxwap/font` 0.1.4, and `fontManifest.sources` records the SHA-256 of its variable WOFF2 sources.
@@ -0,0 +1,116 @@
1
+ export interface OgFontFace {
2
+ readonly family: string;
3
+ readonly weight: number;
4
+ readonly asset: string;
5
+ readonly script: string;
6
+ readonly registration: string;
7
+ readonly postscript: string;
8
+ readonly bytes: number;
9
+ }
10
+ export interface OgFontManifest {
11
+ readonly package: string;
12
+ readonly version: string;
13
+ readonly derivedFrom: string;
14
+ readonly sources: Readonly<Record<string, string>>;
15
+ readonly faces: ReadonlyArray<OgFontFace>;
16
+ readonly outputs: Readonly<Record<string, string>>;
17
+ }
18
+ export declare const fontManifest: {
19
+ readonly package: "@bloxwap/font";
20
+ readonly version: "0.1.4";
21
+ readonly derivedFrom: "@bloxwap/hig/native-fonts";
22
+ readonly sources: {
23
+ readonly "fonts/BloxwapSans/BloxwapSans-Variable.woff2": "96f6be58023b1d22152c797336282a4330a47ab4a3c0ab87451be887903746b7";
24
+ readonly "fonts/BloxwapMono/BloxwapMono-Variable.woff2": "fa66e41575807c3d260d8f5b493be349cac127836b0174976c7d4876237d2632";
25
+ readonly "fonts/BloxwapSansKR/BloxwapSansKR-Variable.woff2": "ac41500ba7546e204d07499266cadb848e24c0e9935c2616124aedcfba5a9737";
26
+ readonly "fonts/BloxwapSansSC/BloxwapSansSC-Variable.woff2": "c0244998e334bbd997dc9acfaf3f10bce169facfec1cf2bbcfc4db38c7122893";
27
+ };
28
+ readonly faces: readonly [{
29
+ readonly family: "BloxwapSans";
30
+ readonly weight: 400;
31
+ readonly asset: "BloxwapSans.ttf";
32
+ readonly script: "latin";
33
+ readonly registration: "BloxwapSansRegular";
34
+ readonly postscript: "BloxwapSans-Regular";
35
+ readonly bytes: 446440;
36
+ }, {
37
+ readonly family: "BloxwapSans";
38
+ readonly weight: 500;
39
+ readonly asset: "BloxwapSans-Medium.ttf";
40
+ readonly script: "latin";
41
+ readonly registration: "BloxwapSansMedium";
42
+ readonly postscript: "BloxwapSans-Medium";
43
+ readonly bytes: 447024;
44
+ }, {
45
+ readonly family: "BloxwapSans";
46
+ readonly weight: 700;
47
+ readonly asset: "BloxwapSans-Bold.ttf";
48
+ readonly script: "latin";
49
+ readonly registration: "BloxwapSansBold";
50
+ readonly postscript: "BloxwapSans-Bold";
51
+ readonly bytes: 447388;
52
+ }, {
53
+ readonly family: "BloxwapSans";
54
+ readonly weight: 900;
55
+ readonly asset: "BloxwapSans-Black.ttf";
56
+ readonly script: "latin";
57
+ readonly registration: "BloxwapSansBlack";
58
+ readonly postscript: "BloxwapSans-Black";
59
+ readonly bytes: 445912;
60
+ }, {
61
+ readonly family: "BloxwapMono";
62
+ readonly weight: 500;
63
+ readonly asset: "BloxwapMono-Medium.ttf";
64
+ readonly script: "latin";
65
+ readonly registration: "BloxwapMonoMedium";
66
+ readonly postscript: "BloxwapMono-Medium";
67
+ readonly bytes: 385628;
68
+ }];
69
+ readonly outputs: {
70
+ readonly "BloxwapSans.ttf": "778520981b42b408c19e43fc6d62e513ff0c47bd9870d62159e2e74cda2f79f5";
71
+ readonly "BloxwapSans-Medium.ttf": "add342361cd444c59fb05bb072ac71b32ed27d2fd2f9a364bddb6a930c6bd6bd";
72
+ readonly "BloxwapSans-Bold.ttf": "13e10451ecec4e33733b196454f1232a16d34d5014dce66daaee4d0c58600e1b";
73
+ readonly "BloxwapSans-Black.ttf": "a99894c158cff3cff828b7d17ec12f075352848843944a730caa9d64c0362ea2";
74
+ readonly "BloxwapMono-Medium.ttf": "f969fd1e4d3b81a7fac108a21a8130b7618f04c39ce7fd5e598fb70fd1230b1f";
75
+ };
76
+ };
77
+ export type OgFontAsset = keyof typeof fontManifest.outputs;
78
+ /** A packaged face described the way Satori and next/og take fonts; load the bytes with @bloxwap/hig/og-fonts/node or from fonts/<asset>. */
79
+ export interface OgFont {
80
+ readonly name: "Bloxwap Sans" | "Bloxwap Mono";
81
+ readonly weight: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900;
82
+ readonly style: 'normal';
83
+ readonly asset: OgFontAsset;
84
+ readonly sha256: string;
85
+ }
86
+ export declare const ogFonts: readonly [{
87
+ readonly name: "Bloxwap Sans";
88
+ readonly weight: 400;
89
+ readonly style: "normal";
90
+ readonly asset: "BloxwapSans.ttf";
91
+ readonly sha256: "778520981b42b408c19e43fc6d62e513ff0c47bd9870d62159e2e74cda2f79f5";
92
+ }, {
93
+ readonly name: "Bloxwap Sans";
94
+ readonly weight: 500;
95
+ readonly style: "normal";
96
+ readonly asset: "BloxwapSans-Medium.ttf";
97
+ readonly sha256: "add342361cd444c59fb05bb072ac71b32ed27d2fd2f9a364bddb6a930c6bd6bd";
98
+ }, {
99
+ readonly name: "Bloxwap Sans";
100
+ readonly weight: 700;
101
+ readonly style: "normal";
102
+ readonly asset: "BloxwapSans-Bold.ttf";
103
+ readonly sha256: "13e10451ecec4e33733b196454f1232a16d34d5014dce66daaee4d0c58600e1b";
104
+ }, {
105
+ readonly name: "Bloxwap Sans";
106
+ readonly weight: 900;
107
+ readonly style: "normal";
108
+ readonly asset: "BloxwapSans-Black.ttf";
109
+ readonly sha256: "a99894c158cff3cff828b7d17ec12f075352848843944a730caa9d64c0362ea2";
110
+ }, {
111
+ readonly name: "Bloxwap Mono";
112
+ readonly weight: 500;
113
+ readonly style: "normal";
114
+ readonly asset: "BloxwapMono-Medium.ttf";
115
+ readonly sha256: "f969fd1e4d3b81a7fac108a21a8130b7618f04c39ce7fd5e598fb70fd1230b1f";
116
+ }];
@@ -0,0 +1,102 @@
1
+ export const fontManifest = {
2
+ "package": "@bloxwap/font",
3
+ "version": "0.1.4",
4
+ "derivedFrom": "@bloxwap/hig/native-fonts",
5
+ "sources": {
6
+ "fonts/BloxwapSans/BloxwapSans-Variable.woff2": "96f6be58023b1d22152c797336282a4330a47ab4a3c0ab87451be887903746b7",
7
+ "fonts/BloxwapMono/BloxwapMono-Variable.woff2": "fa66e41575807c3d260d8f5b493be349cac127836b0174976c7d4876237d2632",
8
+ "fonts/BloxwapSansKR/BloxwapSansKR-Variable.woff2": "ac41500ba7546e204d07499266cadb848e24c0e9935c2616124aedcfba5a9737",
9
+ "fonts/BloxwapSansSC/BloxwapSansSC-Variable.woff2": "c0244998e334bbd997dc9acfaf3f10bce169facfec1cf2bbcfc4db38c7122893"
10
+ },
11
+ "faces": [
12
+ {
13
+ "family": "BloxwapSans",
14
+ "weight": 400,
15
+ "asset": "BloxwapSans.ttf",
16
+ "script": "latin",
17
+ "registration": "BloxwapSansRegular",
18
+ "postscript": "BloxwapSans-Regular",
19
+ "bytes": 446440
20
+ },
21
+ {
22
+ "family": "BloxwapSans",
23
+ "weight": 500,
24
+ "asset": "BloxwapSans-Medium.ttf",
25
+ "script": "latin",
26
+ "registration": "BloxwapSansMedium",
27
+ "postscript": "BloxwapSans-Medium",
28
+ "bytes": 447024
29
+ },
30
+ {
31
+ "family": "BloxwapSans",
32
+ "weight": 700,
33
+ "asset": "BloxwapSans-Bold.ttf",
34
+ "script": "latin",
35
+ "registration": "BloxwapSansBold",
36
+ "postscript": "BloxwapSans-Bold",
37
+ "bytes": 447388
38
+ },
39
+ {
40
+ "family": "BloxwapSans",
41
+ "weight": 900,
42
+ "asset": "BloxwapSans-Black.ttf",
43
+ "script": "latin",
44
+ "registration": "BloxwapSansBlack",
45
+ "postscript": "BloxwapSans-Black",
46
+ "bytes": 445912
47
+ },
48
+ {
49
+ "family": "BloxwapMono",
50
+ "weight": 500,
51
+ "asset": "BloxwapMono-Medium.ttf",
52
+ "script": "latin",
53
+ "registration": "BloxwapMonoMedium",
54
+ "postscript": "BloxwapMono-Medium",
55
+ "bytes": 385628
56
+ }
57
+ ],
58
+ "outputs": {
59
+ "BloxwapSans.ttf": "778520981b42b408c19e43fc6d62e513ff0c47bd9870d62159e2e74cda2f79f5",
60
+ "BloxwapSans-Medium.ttf": "add342361cd444c59fb05bb072ac71b32ed27d2fd2f9a364bddb6a930c6bd6bd",
61
+ "BloxwapSans-Bold.ttf": "13e10451ecec4e33733b196454f1232a16d34d5014dce66daaee4d0c58600e1b",
62
+ "BloxwapSans-Black.ttf": "a99894c158cff3cff828b7d17ec12f075352848843944a730caa9d64c0362ea2",
63
+ "BloxwapMono-Medium.ttf": "f969fd1e4d3b81a7fac108a21a8130b7618f04c39ce7fd5e598fb70fd1230b1f"
64
+ }
65
+ };
66
+ export const ogFonts = [
67
+ {
68
+ "name": "Bloxwap Sans",
69
+ "weight": 400,
70
+ "style": "normal",
71
+ "asset": "BloxwapSans.ttf",
72
+ "sha256": "778520981b42b408c19e43fc6d62e513ff0c47bd9870d62159e2e74cda2f79f5"
73
+ },
74
+ {
75
+ "name": "Bloxwap Sans",
76
+ "weight": 500,
77
+ "style": "normal",
78
+ "asset": "BloxwapSans-Medium.ttf",
79
+ "sha256": "add342361cd444c59fb05bb072ac71b32ed27d2fd2f9a364bddb6a930c6bd6bd"
80
+ },
81
+ {
82
+ "name": "Bloxwap Sans",
83
+ "weight": 700,
84
+ "style": "normal",
85
+ "asset": "BloxwapSans-Bold.ttf",
86
+ "sha256": "13e10451ecec4e33733b196454f1232a16d34d5014dce66daaee4d0c58600e1b"
87
+ },
88
+ {
89
+ "name": "Bloxwap Sans",
90
+ "weight": 900,
91
+ "style": "normal",
92
+ "asset": "BloxwapSans-Black.ttf",
93
+ "sha256": "a99894c158cff3cff828b7d17ec12f075352848843944a730caa9d64c0362ea2"
94
+ },
95
+ {
96
+ "name": "Bloxwap Mono",
97
+ "weight": 500,
98
+ "style": "normal",
99
+ "asset": "BloxwapMono-Medium.ttf",
100
+ "sha256": "f969fd1e4d3b81a7fac108a21a8130b7618f04c39ce7fd5e598fb70fd1230b1f"
101
+ }
102
+ ];
@@ -0,0 +1,11 @@
1
+ import { type OgFont, type OgFontAsset } from './index.js';
2
+ export interface LoadedOgFont {
3
+ readonly name: OgFont['name'];
4
+ readonly weight: OgFont['weight'];
5
+ readonly style: 'normal';
6
+ readonly data: Buffer;
7
+ }
8
+ /** Reads one packaged TTF and throws unless its SHA-256 matches the manifest. */
9
+ export declare function readOgFont(asset: OgFontAsset): Promise<Buffer>;
10
+ /** Verified fonts in the shape Satori and next/og ImageResponse take: {name, data, weight, style}. */
11
+ export declare function loadOgFonts(faces?: ReadonlyArray<OgFont>): Promise<LoadedOgFont[]>;
@@ -0,0 +1,39 @@
1
+ // Generated by npm run generate from fonts/manifest.json (written by npm run generate:fonts).
2
+ // Node-only loader for Satori / next/og renderers (#99). Edge runtimes copy fonts/* at build time and check
3
+ // fontManifest.outputs themselves; see docs/installation.md.
4
+ import { readFile } from 'node:fs/promises';
5
+ import { createHash } from 'node:crypto';
6
+ import { dirname, join } from 'node:path';
7
+ import { fileURLToPath } from 'node:url';
8
+ import { fontManifest, ogFonts } from './index.js';
9
+ // One literal URL per face. Turbopack (the Next 16 default) only traces literal asset URLs; it emits each face next to the
10
+ // server output, so the route also works from `output: 'standalone'`. Never build these paths from a variable: a template
11
+ // URL made Turbopack read one file for every face.
12
+ const fontUrls = {
13
+ "BloxwapSans.ttf": () => new URL('../fonts/BloxwapSans.ttf', import.meta.url),
14
+ "BloxwapSans-Medium.ttf": () => new URL('../fonts/BloxwapSans-Medium.ttf', import.meta.url),
15
+ "BloxwapSans-Bold.ttf": () => new URL('../fonts/BloxwapSans-Bold.ttf', import.meta.url),
16
+ "BloxwapSans-Black.ttf": () => new URL('../fonts/BloxwapSans-Black.ttf', import.meta.url),
17
+ "BloxwapMono-Medium.ttf": () => new URL('../fonts/BloxwapMono-Medium.ttf', import.meta.url),
18
+ };
19
+ // webpack (`next build --webpack`) turns the URLs above into /_next/static/media/... paths that fs cannot open. Read the
20
+ // package's own fonts/ directory instead; webpack fixes import.meta.url to this file in node_modules at build time.
21
+ function fontLocation(asset) {
22
+ const url = fontUrls[asset]();
23
+ return url.protocol === 'file:' ? url : join(dirname(fileURLToPath(import.meta.url)), '..', 'fonts', asset);
24
+ }
25
+ /** Reads one packaged TTF and throws unless its SHA-256 matches the manifest. */
26
+ export async function readOgFont(asset) {
27
+ const expected = fontManifest.outputs[asset];
28
+ if (!expected || !Object.hasOwn(fontUrls, asset))
29
+ throw new Error(`@bloxwap/hig/og-fonts does not ship ${String(asset)}`);
30
+ const data = await readFile(fontLocation(asset));
31
+ const actual = createHash('sha256').update(data).digest('hex');
32
+ if (actual !== expected)
33
+ throw new Error(`@bloxwap/hig/og-fonts ${asset}: SHA-256 ${actual} does not match the manifest (${expected})`);
34
+ return data;
35
+ }
36
+ /** Verified fonts in the shape Satori and next/og ImageResponse take: {name, data, weight, style}. */
37
+ export async function loadOgFonts(faces = ogFonts) {
38
+ return Promise.all(faces.map(async (face) => ({ name: face.name, weight: face.weight, style: face.style, data: await readOgFont(face.asset) })));
39
+ }
Binary file