@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,37 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useState } from 'react';
3
+ import { Pressable, View } from 'react-native';
4
+ import { formatNumber } from '@bloxwap/hig/contracts';
5
+ import { useColors, useFills, useHIG, useMessages } from './provider.js';
6
+ import { Text } from './surface.js';
7
+ import { Field, Input } from './field.js';
8
+ import { SegmentedControl } from './radio-group.js';
9
+ import { ChevronIcon } from './icons.js';
10
+ import { SwapSubview } from './swap-parts.js';
11
+ import { FromPicker, ToPicker } from './pickers.js';
12
+ import { formatPercent, shortAddress, slippagePresets } from './swap-shared.js';
13
+ /** The panel's pushed picker view: the sub-view header over the From or To picker recipe. Choosing a token pops back; the Generate address switch does not. */
14
+ export function SwapPicker({ side, onBack, selected, onSelect, wallet, onConnect, onDisconnect, receiving, onReceivingChange, recipient, onRecipientChange, onScanRecipient, ...list }) {
15
+ const t = useMessages();
16
+ const choose = (token) => { onSelect(token); onBack(); };
17
+ return _jsx(SwapSubview, { title: side === 'from' ? t.swapFrom : t.swapTo, onBack: onBack, testID: `swap-picker-${side}`, children: side === 'from'
18
+ ? _jsx(FromPicker, { ...list, selected: selected, onSelect: choose, wallet: wallet ?? { connected: false }, onConnect: onConnect, onDisconnect: onDisconnect, generateAddress: !!receiving, onGenerateAddressChange: onReceivingChange })
19
+ : _jsx(ToPicker, { ...list, selected: selected, onSelect: choose, address: recipient, onAddressChange: onRecipientChange, addressPlaceholder: wallet?.address ? shortAddress(wallet.address) : undefined, onScan: onScanRecipient }) });
20
+ }
21
+ /** The settings views. Slippage and the fee breakdown push from the settings list, and Back returns to it. */
22
+ export function SwapSettings({ view, onViewChange, onBack, denomination, onDenominationChange, slippage, onSlippageChange, fee, fees, quoteLoading, children }) {
23
+ const { locale, direction } = useHIG();
24
+ const colors = useColors();
25
+ const fills = useFills();
26
+ const t = useMessages();
27
+ const usd = (value) => formatNumber(value, locale, { style: 'currency', currency: 'USD' });
28
+ const [custom, setCustom] = useState(null);
29
+ const title = view === 'slippage' ? t.swapSlippageTitle : view === 'fees' ? t.swapFees : t.swapSettings;
30
+ const feeText = quoteLoading ? '…' : fee != null ? usd(fee) : '—';
31
+ const preset = slippagePresets.find(value => Math.abs(value - slippage) < 1e-9);
32
+ const row = (name, value, target) => _jsxs(Pressable, { accessibilityRole: 'button', accessibilityLabel: `${name}: ${value}`, testID: `swap-setting-${target}`, onPress: () => onViewChange(target), style: ({ pressed }) => ({ direction, flexDirection: 'row', alignItems: 'center', justifyContent: 'space-between', gap: 12, minHeight: 48, paddingVertical: 8, paddingHorizontal: 16, borderRadius: 9999, backgroundColor: pressed ? fills.raised : fills.well }), children: [_jsx(Text, { style: { fontWeight: '600' }, children: name }), _jsxs(View, { style: { flexDirection: 'row', alignItems: 'center', gap: 6 }, children: [_jsx(Text, { style: { color: colors.muted }, children: value }), _jsx(View, { style: { transform: [{ rotate: direction === 'rtl' ? '90deg' : '-90deg' }] }, children: _jsx(ChevronIcon, { color: colors.muted }) })] })] });
33
+ const feeRow = (name, value, total) => _jsxs(View, { style: { flexDirection: 'row', justifyContent: 'space-between', gap: 12, paddingTop: total ? 12 : 0 }, children: [_jsx(Text, { style: { color: total ? colors.text : colors.muted, fontWeight: total ? '600' : '400' }, children: name }), _jsx(Text, { style: { fontWeight: total ? '600' : '400' }, children: value })] }, name);
34
+ const slippageRow = onSlippageChange ? row(t.swapSlippageTitle, formatPercent(slippage), 'slippage') : null, feesRow = row(t.swapFees, feeText, 'fees');
35
+ return _jsxs(SwapSubview, { title: title, onBack: onBack, testID: `swap-view-${view}`, children: [view === 'settings' ? _jsxs(View, { style: { gap: 12 }, children: [onDenominationChange && _jsx(SegmentedControl, { label: t.swapDenomination, options: [{ value: 'usd', label: t.swapDollars }, { value: 'token', label: t.swapUnits }], value: denomination, onValueChange: value => onDenominationChange(value) }), slippageRow, feesRow, children] }) : null, view === 'slippage' && onSlippageChange ? _jsxs(View, { style: { gap: 12 }, children: [_jsx(SegmentedControl, { label: t.swapSlippageTitle, options: slippagePresets.map(value => ({ value: String(value), label: formatPercent(value) })), value: preset === undefined ? '' : String(preset), onValueChange: value => { setCustom(null); onSlippageChange(Number(value)); } }), _jsx(Field, { label: t.swapSlippageCustom, children: _jsx(Input, { keyboardType: 'decimal-pad', value: custom ?? String(Number((slippage * 100).toFixed(4))), onChangeText: entered => { const raw = entered.replace(/[^0-9.]/g, ''); setCustom(raw); const percent = Number.parseFloat(raw); if (Number.isFinite(percent) && percent >= 0 && percent <= 50)
36
+ onSlippageChange(percent / 100); } }) })] }) : null, view === 'fees' ? _jsxs(View, { style: { gap: 12 }, children: [fees?.map(item => feeRow(item.label, usd(item.usd))), feeRow(t.swapFeeTotal, feeText, true)] }) : null] });
37
+ }
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { type PressableProps } from 'react-native';
3
+ import type { CheckedProps } from './selection-types.js';
4
+ /** One named switch around a host's noninteractive label, description and track. */
5
+ export interface SwitchRowProps extends CheckedProps, Omit<PressableProps, 'children' | 'onPress' | 'disabled' | 'role' | 'accessibilityRole' | 'accessibilityLabel' | 'accessibilityLabelledBy' | 'aria-label' | 'aria-labelledby' | 'aria-checked' | 'aria-disabled'> {
6
+ /** Custom anatomy is decorative. `label` names the switch and `accessibilityHint` describes it. */ children: React.ReactNode;
7
+ }
8
+ export declare function SwitchRow({ label, checked, defaultChecked, disabled, onCheckedChange, children, style, accessibilityState, ...props }: SwitchRowProps): React.JSX.Element;
@@ -0,0 +1,18 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { Platform, Pressable, View } from 'react-native';
3
+ import { useControllable, useHIG } from './provider.js';
4
+ export function SwitchRow({ label, checked, defaultChecked = false, disabled, onCheckedChange, children, style, accessibilityState, ...props }) {
5
+ const env = useHIG(), [current, set] = useControllable(checked, defaultChecked, onCheckedChange);
6
+ const toggle = () => { if (!disabled)
7
+ set(!current); };
8
+ // RN Web handles Enter on a switch; its PressResponder reserves Space for buttons.
9
+ const webKeys = Platform.OS === 'web' ? { onKeyDown: (event) => {
10
+ if (event.key === ' ') {
11
+ event.preventDefault();
12
+ event.stopPropagation();
13
+ if (!event.repeat)
14
+ toggle();
15
+ }
16
+ } } : {};
17
+ return _jsx(Pressable, { ...props, ...webKeys, accessible: true, accessibilityRole: 'switch', accessibilityLabel: label, accessibilityState: { ...accessibilityState, checked: current, disabled: !!disabled }, "aria-checked": current, "aria-busy": accessibilityState?.busy, disabled: disabled, onPress: toggle, style: state => [{ direction: env.direction, minHeight: 48, flexDirection: 'row' }, typeof style === 'function' ? style(state) : style], children: _jsx(View, { pointerEvents: 'none', accessibilityElementsHidden: true, importantForAccessibility: 'no-hide-descendants', "aria-hidden": true, style: { flex: 1 }, children: children }) });
18
+ }
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import type { CheckedProps } from './selection-types.js';
3
+ import { type AccentRole } from './roles.js';
4
+ export type { AccentRole } from './roles.js';
5
+ export interface SwitchProps extends CheckedProps {
6
+ tone?: AccentRole;
7
+ }
8
+ /** The off track is the dark `border` grey, so it reads as off on the page and on a card. On iOS/Android the whole labeled row is one 48dp switch target; the platform track is a hidden visual indicator. */
9
+ export declare function Switch({ label, checked, defaultChecked, disabled, tone, onCheckedChange }: SwitchProps): React.JSX.Element;
10
+ export { SwitchRow, type SwitchRowProps } from './switch-row.js';
@@ -0,0 +1,30 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Platform, Pressable, Switch as RNSwitch, View } from 'react-native';
3
+ import { nativeMetrics as tokens } from '@bloxwap/hig/tokens';
4
+ import { Text } from './surface.js';
5
+ import { useColors, useControllable, useFills, useHIG } from './provider.js';
6
+ import { roleColor } from './roles.js';
7
+ /** react-native-web passes CSS transitions through style. */
8
+ const webEase = { transitionProperty: 'transform, background-color', transitionDuration: '150ms' };
9
+ /** The off track is the dark `border` grey, so it reads as off on the page and on a card. On iOS/Android the whole labeled row is one 48dp switch target; the platform track is a hidden visual indicator. */
10
+ export function Switch({ label, checked, defaultChecked = false, disabled, tone, onCheckedChange }) {
11
+ const env = useHIG();
12
+ const colors = useColors();
13
+ const fills = useFills();
14
+ const track = { true: roleColor(tone, 'action', colors), false: fills.raised };
15
+ const [current, set] = useControllable(checked, defaultChecked, onCheckedChange);
16
+ const web = Platform.OS === 'web';
17
+ const toggle = () => { if (!disabled)
18
+ set(!current); };
19
+ // One pressable row is the switch on every platform; what sits inside is decoration. iOS/Android show the platform track (Android
20
+ // otherwise paints the thumb with the app theme accent, Material teal, so it takes `text`). react-native-web's own Switch draws a
21
+ // Material thumb wider than its track in that off-palette teal and would nest a second control, so web draws the 40×24 capsule of
22
+ // @bloxwap/hig/react: an 18dp thumb inset 3dp that slides and eases over 150ms. RN Web presses on Enter; Space is handled here.
23
+ return _jsxs(Pressable, { accessibilityRole: 'switch', accessibilityLabel: label, accessibilityState: { checked: current, disabled: !!disabled }, "aria-checked": current, "aria-disabled": !!disabled, disabled: disabled, onPress: toggle, ...(web ? { onKeyDown: (event) => { if (event.key === ' ') {
24
+ event.preventDefault();
25
+ if (!event.repeat)
26
+ toggle();
27
+ } } } : null), style: { direction: env.direction, minHeight: 48, flexDirection: 'row', flexWrap: 'wrap', alignItems: 'center', gap: tokens.space.md, opacity: web && disabled ? 0.5 : 1 }, children: [_jsx(Text, { children: label }), _jsx(View, { pointerEvents: 'none', accessibilityElementsHidden: true, importantForAccessibility: 'no-hide-descendants', "aria-hidden": web || undefined, style: web ? [{ width: 40, height: 24, borderRadius: 12, padding: 3, backgroundColor: track[current ? 'true' : 'false'] }, webEase] : undefined, children: web ? _jsx(View, { style: [{ width: 18, height: 18, borderRadius: 9, backgroundColor: current ? colors.onAction : colors.text, transform: [{ translateX: (current ? 16 : 0) * (env.direction === 'rtl' ? -1 : 1) }] }, webEase] }) : _jsx(RNSwitch, { value: current, disabled: disabled, onValueChange: next => { if (!disabled)
28
+ set(next); }, trackColor: track, thumbColor: Platform.OS === 'android' ? colors.text : undefined, ios_backgroundColor: fills.raised }) })] });
29
+ }
30
+ export { SwitchRow } from './switch-row.js';
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ /** Visible string content of a node tree, for announcements, accessible names and script detection. Text nodes are concatenated as rendered (no separator is added) and whitespace runs collapse to one space, so `<>Display-only <Text>value</Text> strings</>` reads `Display-only value strings`. */
3
+ export declare function plainText(children: React.ReactNode): string;
4
+ /** Text of children laid out as separate blocks (siblings in a View, such as an Alert body): each top-level child is read as its own run, joined by a space. */
5
+ export declare function blockText(children: React.ReactNode): string;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ function concat(children) { return React.Children.toArray(children).map(child => typeof child === 'string' || typeof child === 'number' ? String(child) : React.isValidElement(child) ? concat(child.props.children) : '').join(''); }
3
+ /** Visible string content of a node tree, for announcements, accessible names and script detection. Text nodes are concatenated as rendered (no separator is added) and whitespace runs collapse to one space, so `<>Display-only <Text>value</Text> strings</>` reads `Display-only value strings`. */
4
+ export function plainText(children) { return concat(children).replace(/\s+/gu, ' ').trim(); }
5
+ /** Text of children laid out as separate blocks (siblings in a View, such as an Alert body): each top-level child is read as its own run, joined by a space. */
6
+ export function blockText(children) { return React.Children.toArray(children).map(plainText).filter(Boolean).join(' '); }
@@ -0,0 +1,37 @@
1
+ import React from 'react';
2
+ import { type AddressKind } from './data.js';
3
+ export { VerticalAddress, addressKind, type AddressKind } from './data.js';
4
+ export interface WalletAddressProps {
5
+ address: string;
6
+ kind?: AddressKind;
7
+ /** QR payload when it differs from the address, e.g. an EIP-681 or Solana Pay URI. Defaults to the address. */
8
+ qrValue?: string;
9
+ /** Image URL shown in the centre of the QR. */
10
+ arena?: string;
11
+ /** QR edge in dp; default 196. */
12
+ size?: number;
13
+ /** Host clipboard adapter. When set the whole component is one button that copies the address and shows the Tap to copy hint. */
14
+ onCopy?: () => Promise<void> | void;
15
+ testID?: string;
16
+ }
17
+ /** The QR's drawing, in module units: three finder origins, one path of round dots for every other dark module, and the centre square left clear for an arena. */
18
+ export declare function qrGeometry(grid: readonly (readonly boolean[])[], withArena: boolean): {
19
+ edge: number;
20
+ finders: {
21
+ x: number;
22
+ y: number;
23
+ }[];
24
+ dots: string;
25
+ count: number;
26
+ arena: {
27
+ origin: number;
28
+ size: number;
29
+ } | null;
30
+ };
31
+ /**
32
+ * A wallet address to scan or copy: the QR in the cuer style (round dots, rounded finder patterns, no tile) beside the
33
+ * address as a monospace column exactly as tall as the code. Ethereum (`0x…`) lays out 6 characters a row and Solana 4.
34
+ * With `onCopy` the whole component is one button and a Tap to copy hint sits under it. Needs the optional `cuer` and
35
+ * `react-native-svg` peers; the encoder comes from `cuer/QrCode`, so React DOM is never loaded.
36
+ */
37
+ export declare function WalletAddress({ address, kind, qrValue, arena, size, onCopy, testID }: WalletAddressProps): React.JSX.Element;
@@ -0,0 +1,50 @@
1
+ import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import React, { useMemo } from 'react';
3
+ import { Image, Pressable, View } from 'react-native';
4
+ import Svg, { Path, Rect } from 'react-native-svg';
5
+ import { create } from 'cuer/QrCode';
6
+ import { useColors, useMessages } from './provider.js';
7
+ import { Text } from './surface.js';
8
+ import { Toast, useTransientNotice } from './status.js';
9
+ import { VerticalAddress, addressKind } from './data.js';
10
+ export { VerticalAddress, addressKind } from './data.js';
11
+ const hidden = { accessible: false, accessibilityElementsHidden: true, importantForAccessibility: 'no-hide-descendants' };
12
+ /** The QR's drawing, in module units: three finder origins, one path of round dots for every other dark module, and the centre square left clear for an arena. */
13
+ export function qrGeometry(grid, withArena) {
14
+ const edge = grid.length, far = edge - 7, radius = 0.45, size = withArena ? Math.floor(edge / 4) : 0, origin = (edge - size) / 2;
15
+ const inFinder = (row, column) => (row < 7 && (column < 7 || column >= far)) || (row >= far && column < 7);
16
+ const inArena = (row, column) => size > 0 && row + 1 > origin && row < origin + size && column + 1 > origin && column < origin + size;
17
+ let dots = '', count = 0;
18
+ for (let row = 0; row < edge; row++)
19
+ for (let column = 0; column < edge; column++) {
20
+ if (!grid[row]?.[column] || inFinder(row, column) || inArena(row, column))
21
+ continue;
22
+ // One circle as two arcs, so the whole code is a single path.
23
+ dots += `M${column + 0.5 - radius} ${row + 0.5}a${radius} ${radius} 0 1 0 ${radius * 2} 0a${radius} ${radius} 0 1 0 ${-radius * 2} 0`;
24
+ count++;
25
+ }
26
+ return { edge, finders: [{ x: 0, y: 0 }, { x: far, y: 0 }, { x: 0, y: far }], dots, count, arena: size > 0 ? { origin, size } : null };
27
+ }
28
+ /** Two overlapping rounded squares: copy. */
29
+ function CopyIcon({ color }) { return _jsxs(View, { ...hidden, style: { width: 16, height: 16 }, children: [_jsx(View, { style: { position: 'absolute', left: 0, top: 0, width: 11, height: 11, borderRadius: 3, borderWidth: 1.5, borderColor: color } }), _jsx(View, { style: { position: 'absolute', right: 0, bottom: 0, width: 11, height: 11, borderRadius: 3, borderWidth: 1.5, borderColor: color } })] }); }
30
+ /**
31
+ * A wallet address to scan or copy: the QR in the cuer style (round dots, rounded finder patterns, no tile) beside the
32
+ * address as a monospace column exactly as tall as the code. Ethereum (`0x…`) lays out 6 characters a row and Solana 4.
33
+ * With `onCopy` the whole component is one button and a Tap to copy hint sits under it. Needs the optional `cuer` and
34
+ * `react-native-svg` peers; the encoder comes from `cuer/QrCode`, so React DOM is never loaded.
35
+ */
36
+ export function WalletAddress({ address, kind, qrValue, arena, size = 196, onCopy, testID }) {
37
+ const colors = useColors();
38
+ const t = useMessages();
39
+ const { notice, show, dismiss } = useTransientNotice();
40
+ const layout = kind ?? addressKind(address), rows = Math.max(1, Math.ceil(address.length / (layout === 'ethereum' ? 6 : 4)));
41
+ const value = qrValue ?? address, withArena = !!arena;
42
+ const qr = useMemo(() => qrGeometry(create(value, { errorCorrection: withArena ? 'high' : 'medium' }).grid, withArena), [value, withArena]);
43
+ const unit = size / qr.edge;
44
+ const code = _jsxs(View, { style: { width: size, height: size }, children: [_jsxs(Svg, { width: size, height: size, viewBox: `0 0 ${qr.edge} ${qr.edge}`, accessible: true, accessibilityRole: 'image', accessibilityLabel: t.qrCode, testID: 'wallet-address-qr', children: [qr.finders.map((finder, index) => _jsxs(React.Fragment, { children: [_jsx(Rect, { x: finder.x + 0.5, y: finder.y + 0.5, width: 6, height: 6, rx: 1.75, fill: 'none', stroke: colors.text, strokeWidth: 1 }), _jsx(Rect, { x: finder.x + 2, y: finder.y + 2, width: 3, height: 3, rx: 0.75, fill: colors.text })] }, index)), _jsx(Path, { d: qr.dots, fill: colors.text })] }), arena && qr.arena ? _jsx(Image, { ...hidden, source: { uri: arena }, testID: 'wallet-address-arena', style: { position: 'absolute', left: (qr.arena.origin + 0.5) * unit, top: (qr.arena.origin + 0.5) * unit, width: (qr.arena.size - 1) * unit, height: (qr.arena.size - 1) * unit, borderRadius: unit } }) : null] });
45
+ const body = _jsxs(_Fragment, { children: [_jsxs(View, { style: { flexDirection: 'row', alignItems: 'center', justifyContent: 'center', gap: 16 }, children: [code, _jsx(VerticalAddress, { address: address, kind: layout, rowHeight: size / rows, testID: 'wallet-address-column' })] }), onCopy ? _jsxs(View, { ...hidden, style: { flexDirection: 'row', alignItems: 'center', justifyContent: 'center', gap: 8, marginTop: 12 }, children: [_jsx(CopyIcon, { color: colors.muted }), _jsx(Text, { style: { color: colors.muted, fontSize: 14, lineHeight: 21 }, children: t.tapToCopy })] }) : null] });
46
+ const copy = () => { if (!onCopy)
47
+ return; Promise.resolve().then(onCopy).then(() => show(t.addressCopied)).catch(() => { }); };
48
+ // The toast sits outside the button so its dismiss control is not nested in another control.
49
+ return _jsxs(View, { testID: testID, style: { alignItems: 'center' }, children: [onCopy ? _jsx(Pressable, { accessibilityRole: 'button', accessibilityLabel: `${t.copyAddress}: ${address}`, testID: 'wallet-address-copy', onPress: copy, style: ({ pressed }) => ({ opacity: pressed ? 0.8 : 1 }), children: body }) : _jsx(View, { children: body }), notice ? _jsx(View, { style: { marginTop: 8 }, children: _jsx(Toast, { notices: [notice], onDismiss: dismiss }) }) : null] });
50
+ }
@@ -0,0 +1,17 @@
1
+ # @bloxwap/hig/native-fonts
2
+
3
+ Version 0.5.1, an entry of `@bloxwap/hig`. Static Bloxwap Sans/Mono (and Korean/Simplified Chinese Sans) TTF faces for React Native and Expo hosts, derived reproducibly from pinned `@bloxwap/font` 0.1.4 by `npm run generate:fonts`.
4
+
5
+ Web hosts never import this entry: load fonts through `@bloxwap/font` and use `@bloxwap/hig/tokens/css`. Open Graph card renderers (Satori, `next/og`) use the much smaller `@bloxwap/hig/og-fonts` entry instead (#99).
6
+
7
+ ```tsx
8
+ import {useFonts} from 'expo-font';
9
+ import {fontManifest} from '@bloxwap/hig/native-fonts';
10
+
11
+ const [loaded] = useFonts({
12
+ BloxwapSansRegular: require('@bloxwap/hig/native-fonts/fonts/BloxwapSans.ttf'),
13
+ BloxwapSansSemiBold: require('@bloxwap/hig/native-fonts/fonts/BloxwapSans-SemiBold.ttf'),
14
+ });
15
+ ```
16
+
17
+ `fontManifest` (also `@bloxwap/hig/native-fonts/manifest`) lists every face with its registration key, PostScript name, weight, script, byte count and SHA-256, plus the hashes of the `@bloxwap/font` sources. It satisfies the `FontManifest` contract in `@bloxwap/hig/contracts`, so `nativeFont(fontManifest, 'BloxwapSans', 600)` resolves a registered family. OFL attribution ships in `fonts/OFL.txt`.
@@ -0,0 +1,164 @@
1
+ export interface NativeFontFace {
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 NativeFontManifest {
11
+ readonly package: string;
12
+ readonly version: string;
13
+ readonly sources: Readonly<Record<string, string>>;
14
+ readonly faces: ReadonlyArray<NativeFontFace>;
15
+ readonly outputs: Readonly<Record<string, string>>;
16
+ }
17
+ export declare const fontManifest: {
18
+ readonly package: "@bloxwap/font";
19
+ readonly version: "0.1.4";
20
+ readonly sources: {
21
+ readonly "fonts/BloxwapSans/BloxwapSans-Variable.woff2": "96f6be58023b1d22152c797336282a4330a47ab4a3c0ab87451be887903746b7";
22
+ readonly "fonts/BloxwapMono/BloxwapMono-Variable.woff2": "fa66e41575807c3d260d8f5b493be349cac127836b0174976c7d4876237d2632";
23
+ readonly "fonts/BloxwapSansKR/BloxwapSansKR-Variable.woff2": "ac41500ba7546e204d07499266cadb848e24c0e9935c2616124aedcfba5a9737";
24
+ readonly "fonts/BloxwapSansSC/BloxwapSansSC-Variable.woff2": "c0244998e334bbd997dc9acfaf3f10bce169facfec1cf2bbcfc4db38c7122893";
25
+ };
26
+ readonly faces: readonly [{
27
+ readonly family: "BloxwapSans";
28
+ readonly weight: 400;
29
+ readonly asset: "BloxwapSans.ttf";
30
+ readonly script: "latin";
31
+ readonly registration: "BloxwapSansRegular";
32
+ readonly postscript: "BloxwapSans-Regular";
33
+ readonly bytes: 446440;
34
+ }, {
35
+ readonly family: "BloxwapSans";
36
+ readonly weight: 500;
37
+ readonly asset: "BloxwapSans-Medium.ttf";
38
+ readonly script: "latin";
39
+ readonly registration: "BloxwapSansMedium";
40
+ readonly postscript: "BloxwapSans-Medium";
41
+ readonly bytes: 447024;
42
+ }, {
43
+ readonly family: "BloxwapSans";
44
+ readonly weight: 600;
45
+ readonly asset: "BloxwapSans-SemiBold.ttf";
46
+ readonly script: "latin";
47
+ readonly registration: "BloxwapSansSemiBold";
48
+ readonly postscript: "BloxwapSans-SemiBold";
49
+ readonly bytes: 447104;
50
+ }, {
51
+ readonly family: "BloxwapSans";
52
+ readonly weight: 700;
53
+ readonly asset: "BloxwapSans-Bold.ttf";
54
+ readonly script: "latin";
55
+ readonly registration: "BloxwapSansBold";
56
+ readonly postscript: "BloxwapSans-Bold";
57
+ readonly bytes: 447388;
58
+ }, {
59
+ readonly family: "BloxwapSans";
60
+ readonly weight: 800;
61
+ readonly asset: "BloxwapSans-ExtraBold.ttf";
62
+ readonly script: "latin";
63
+ readonly registration: "BloxwapSansExtraBold";
64
+ readonly postscript: "BloxwapSans-ExtraBold";
65
+ readonly bytes: 446820;
66
+ }, {
67
+ readonly family: "BloxwapSans";
68
+ readonly weight: 900;
69
+ readonly asset: "BloxwapSans-Black.ttf";
70
+ readonly script: "latin";
71
+ readonly registration: "BloxwapSansBlack";
72
+ readonly postscript: "BloxwapSans-Black";
73
+ readonly bytes: 445912;
74
+ }, {
75
+ readonly family: "BloxwapMono";
76
+ readonly weight: 400;
77
+ readonly asset: "BloxwapMono.ttf";
78
+ readonly script: "latin";
79
+ readonly registration: "BloxwapMonoRegular";
80
+ readonly postscript: "BloxwapMono-Regular";
81
+ readonly bytes: 385336;
82
+ }, {
83
+ readonly family: "BloxwapMono";
84
+ readonly weight: 500;
85
+ readonly asset: "BloxwapMono-Medium.ttf";
86
+ readonly script: "latin";
87
+ readonly registration: "BloxwapMonoMedium";
88
+ readonly postscript: "BloxwapMono-Medium";
89
+ readonly bytes: 385628;
90
+ }, {
91
+ readonly family: "BloxwapMono";
92
+ readonly weight: 600;
93
+ readonly asset: "BloxwapMono-SemiBold.ttf";
94
+ readonly script: "latin";
95
+ readonly registration: "BloxwapMonoSemiBold";
96
+ readonly postscript: "BloxwapMono-SemiBold";
97
+ readonly bytes: 385372;
98
+ }, {
99
+ readonly family: "BloxwapMono";
100
+ readonly weight: 700;
101
+ readonly asset: "BloxwapMono-Bold.ttf";
102
+ readonly script: "latin";
103
+ readonly registration: "BloxwapMonoBold";
104
+ readonly postscript: "BloxwapMono-Bold";
105
+ readonly bytes: 384964;
106
+ }, {
107
+ readonly family: "BloxwapMono";
108
+ readonly weight: 800;
109
+ readonly asset: "BloxwapMono-ExtraBold.ttf";
110
+ readonly script: "latin";
111
+ readonly registration: "BloxwapMonoExtraBold";
112
+ readonly postscript: "BloxwapMono-ExtraBold";
113
+ readonly bytes: 384608;
114
+ }, {
115
+ readonly family: "BloxwapSansKR";
116
+ readonly weight: 400;
117
+ readonly asset: "BloxwapSansKR.ttf";
118
+ readonly script: "korean";
119
+ readonly registration: "BloxwapSansKRRegular";
120
+ readonly postscript: "BloxwapSansKR-Regular";
121
+ readonly bytes: 1294968;
122
+ }, {
123
+ readonly family: "BloxwapSansKR";
124
+ readonly weight: 600;
125
+ readonly asset: "BloxwapSansKR-SemiBold.ttf";
126
+ readonly script: "korean";
127
+ readonly registration: "BloxwapSansKRSemiBold";
128
+ readonly postscript: "BloxwapSansKR-SemiBold";
129
+ readonly bytes: 1295432;
130
+ }, {
131
+ readonly family: "BloxwapSansSC";
132
+ readonly weight: 400;
133
+ readonly asset: "BloxwapSansSC.ttf";
134
+ readonly script: "simplified-chinese";
135
+ readonly registration: "BloxwapSansSCRegular";
136
+ readonly postscript: "BloxwapSansSC-Regular";
137
+ readonly bytes: 2422672;
138
+ }, {
139
+ readonly family: "BloxwapSansSC";
140
+ readonly weight: 600;
141
+ readonly asset: "BloxwapSansSC-SemiBold.ttf";
142
+ readonly script: "simplified-chinese";
143
+ readonly registration: "BloxwapSansSCSemiBold";
144
+ readonly postscript: "BloxwapSansSC-SemiBold";
145
+ readonly bytes: 2422976;
146
+ }];
147
+ readonly outputs: {
148
+ readonly "BloxwapSans.ttf": "778520981b42b408c19e43fc6d62e513ff0c47bd9870d62159e2e74cda2f79f5";
149
+ readonly "BloxwapSans-Medium.ttf": "add342361cd444c59fb05bb072ac71b32ed27d2fd2f9a364bddb6a930c6bd6bd";
150
+ readonly "BloxwapSans-SemiBold.ttf": "7257cb505ec841dae8f5ff3160c629d08003bfd31b9d94334dd4a31798444c8c";
151
+ readonly "BloxwapSans-Bold.ttf": "13e10451ecec4e33733b196454f1232a16d34d5014dce66daaee4d0c58600e1b";
152
+ readonly "BloxwapSans-ExtraBold.ttf": "83cd52444039e62c49d691103fb8ab6329f3135ec8c80e8348e448d03a05cb0a";
153
+ readonly "BloxwapSans-Black.ttf": "a99894c158cff3cff828b7d17ec12f075352848843944a730caa9d64c0362ea2";
154
+ readonly "BloxwapMono.ttf": "6469eea2fc3fbad052301a6e0febf0182aef280b888acbbf1390c623ff168b65";
155
+ readonly "BloxwapMono-Medium.ttf": "f969fd1e4d3b81a7fac108a21a8130b7618f04c39ce7fd5e598fb70fd1230b1f";
156
+ readonly "BloxwapMono-SemiBold.ttf": "88389198a85cb655404e67f3c9ae683b61ee1d85e57f5222d0228833f6c7f7b2";
157
+ readonly "BloxwapMono-Bold.ttf": "3246a540d8bd8d8dda8ee965d0e1f38b9e00cb373cc1756500a052631d01623a";
158
+ readonly "BloxwapMono-ExtraBold.ttf": "89cc3282a7781f08b66d72c0d1b105fdfaa1531e48cfcc50c6eeb5b2b5db64bd";
159
+ readonly "BloxwapSansKR.ttf": "d8eae9352bd2d4ae09eeecdb3ffd9cf9c914982f24db3ff816bb16d8ea329c1e";
160
+ readonly "BloxwapSansKR-SemiBold.ttf": "0897de89055aa2d30722a5bee8a97443a373c5105b726846508477ae49a03e8c";
161
+ readonly "BloxwapSansSC.ttf": "1a6802ac902328f3cd5040d7400a2e9e46f15871fa6ea2c9d8138dfffb8333cb";
162
+ readonly "BloxwapSansSC-SemiBold.ttf": "9af551f298cc13fdffe4f58e7373099f1a84d3caca86a67399acf2cc35970d4b";
163
+ };
164
+ };
@@ -0,0 +1,164 @@
1
+ export const fontManifest = {
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
+ };