@bloxwap/hig 0.5.2 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (199) hide show
  1. package/README.md +1 -1
  2. package/chart/README.md +1 -1
  3. package/contracts/README.md +1 -1
  4. package/contracts/dist/index.d.ts +16 -0
  5. package/contracts/dist/index.js +22 -0
  6. package/contracts/dist/messages.d.ts +37 -4
  7. package/contracts/dist/messages.js +13 -2
  8. package/feedback/README.md +1 -1
  9. package/native/README.md +1 -1
  10. package/native/dist/account-block.d.ts +92 -0
  11. package/native/dist/account-block.js +61 -0
  12. package/native/dist/animated-number-model.d.ts +7 -1
  13. package/native/dist/animated-number-model.js +50 -1
  14. package/native/dist/animated-number.d.ts +3 -1
  15. package/native/dist/animated-number.js +8 -5
  16. package/native/dist/asset-balance-row.d.ts +36 -0
  17. package/native/dist/asset-balance-row.js +26 -0
  18. package/native/dist/bar-mark.d.ts +57 -0
  19. package/native/dist/bar-mark.js +48 -0
  20. package/native/dist/bar-pnl.d.ts +50 -0
  21. package/native/dist/bar-pnl.js +60 -0
  22. package/native/dist/blocks.d.ts +38 -0
  23. package/native/dist/blocks.js +42 -0
  24. package/native/dist/button.js +3 -1
  25. package/native/dist/data.d.ts +1 -1
  26. package/native/dist/data.js +6 -4
  27. package/native/dist/field.d.ts +14 -5
  28. package/native/dist/field.js +33 -8
  29. package/native/dist/figure.d.ts +23 -0
  30. package/native/dist/figure.js +10 -0
  31. package/native/dist/icons.d.ts +8 -0
  32. package/native/dist/icons.js +4 -0
  33. package/native/dist/language-block.d.ts +35 -0
  34. package/native/dist/language-block.js +30 -0
  35. package/native/dist/list-group.d.ts +60 -0
  36. package/native/dist/list-group.js +85 -0
  37. package/native/dist/manage-position-block.d.ts +95 -0
  38. package/native/dist/manage-position-block.js +82 -0
  39. package/native/dist/market-row.d.ts +46 -0
  40. package/native/dist/market-row.js +30 -0
  41. package/native/dist/notifications-block.d.ts +53 -0
  42. package/native/dist/notifications-block.js +22 -0
  43. package/native/dist/pickers.d.ts +35 -5
  44. package/native/dist/pickers.js +21 -9
  45. package/native/dist/position-block.d.ts +107 -0
  46. package/native/dist/position-block.js +55 -0
  47. package/native/dist/profile-block.d.ts +66 -0
  48. package/native/dist/profile-block.js +48 -0
  49. package/native/dist/provider.d.ts +9 -3
  50. package/native/dist/provider.js +7 -3
  51. package/native/dist/radio-group.d.ts +9 -3
  52. package/native/dist/radio-group.js +4 -5
  53. package/native/dist/recipes.d.ts +6 -46
  54. package/native/dist/recipes.js +6 -33
  55. package/native/dist/reward-block.d.ts +122 -0
  56. package/native/dist/reward-block.js +53 -0
  57. package/native/dist/screen-header.d.ts +49 -0
  58. package/native/dist/screen-header.js +29 -0
  59. package/native/dist/selection.d.ts +2 -2
  60. package/native/dist/setting-header.d.ts +2 -0
  61. package/native/dist/setting-header.js +2 -0
  62. package/native/dist/setting-switch.d.ts +31 -0
  63. package/native/dist/setting-switch.js +20 -0
  64. package/native/dist/signals-block.d.ts +61 -0
  65. package/native/dist/signals-block.js +26 -0
  66. package/native/dist/sound-haptics-block.d.ts +66 -0
  67. package/native/dist/sound-haptics-block.js +32 -0
  68. package/native/dist/status.d.ts +6 -5
  69. package/native/dist/status.js +5 -5
  70. package/native/dist/sticky-header.d.ts +28 -0
  71. package/native/dist/sticky-header.js +21 -0
  72. package/native/dist/surface.d.ts +3 -1
  73. package/native/dist/surface.js +2 -1
  74. package/native/dist/{swap-panel.d.ts → swap-panel-block.d.ts} +8 -3
  75. package/native/dist/{swap-panel.js → swap-panel-block.js} +13 -8
  76. package/native/dist/swap-parts.d.ts +5 -3
  77. package/native/dist/swap-parts.js +2 -2
  78. package/native/dist/swap-shared.d.ts +6 -0
  79. package/native/dist/swap-sheet.d.ts +4 -4
  80. package/native/dist/swap-sheet.js +4 -4
  81. package/native/dist/swap-views.d.ts +1 -1
  82. package/native/dist/swap-views.js +9 -7
  83. package/native/dist/switch-row.d.ts +3 -2
  84. package/native/dist/switch-row.js +5 -3
  85. package/native/dist/switch.d.ts +4 -2
  86. package/native/dist/switch.js +3 -3
  87. package/native/dist/target-block.d.ts +110 -0
  88. package/native/dist/target-block.js +74 -0
  89. package/native/dist/token-action-block.d.ts +47 -0
  90. package/native/dist/token-action-block.js +28 -0
  91. package/native/dist/trade-history-detail-block.d.ts +84 -0
  92. package/native/dist/trade-history-detail-block.js +46 -0
  93. package/native/dist/trade-history-list-block.d.ts +110 -0
  94. package/native/dist/trade-history-list-block.js +64 -0
  95. package/native/dist/wallet-address-core.d.ts +25 -0
  96. package/native/dist/wallet-address-core.js +31 -0
  97. package/native/dist/wallet-address.d.ts +6 -10
  98. package/native/dist/wallet-address.js +16 -20
  99. package/native-fonts/README.md +1 -1
  100. package/og-fonts/README.md +1 -1
  101. package/package.json +266 -41
  102. package/react/README.md +1 -1
  103. package/react/dist/animated-number-model.d.ts +6 -0
  104. package/react/dist/animated-number-model.js +33 -0
  105. package/react/dist/animated-number.d.ts +5 -1
  106. package/react/dist/animated-number.js +12 -8
  107. package/react/dist/asset-balance-row.d.ts +35 -0
  108. package/react/dist/asset-balance-row.js +18 -0
  109. package/react/dist/bar-mark.d.ts +38 -0
  110. package/react/dist/bar-mark.js +23 -0
  111. package/react/dist/bar-pnl.d.ts +49 -0
  112. package/react/dist/bar-pnl.js +45 -0
  113. package/react/dist/blocks/account-block.d.ts +92 -0
  114. package/react/dist/blocks/account-block.js +62 -0
  115. package/react/dist/blocks/language-block.d.ts +36 -0
  116. package/react/dist/blocks/language-block.js +52 -0
  117. package/react/dist/blocks/manage-position-block.d.ts +93 -0
  118. package/react/dist/blocks/manage-position-block.js +47 -0
  119. package/react/dist/blocks/market-row.d.ts +36 -0
  120. package/react/dist/blocks/market-row.js +16 -0
  121. package/react/dist/blocks/notifications-block.d.ts +46 -0
  122. package/react/dist/blocks/notifications-block.js +17 -0
  123. package/react/dist/{recipes → blocks}/pickers.d.ts +32 -4
  124. package/react/dist/{recipes → blocks}/pickers.js +35 -11
  125. package/react/dist/blocks/position-block.d.ts +72 -0
  126. package/react/dist/blocks/position-block.js +25 -0
  127. package/react/dist/blocks/profile-block.d.ts +71 -0
  128. package/react/dist/blocks/profile-block.js +41 -0
  129. package/react/dist/blocks/reward-block.d.ts +120 -0
  130. package/react/dist/blocks/reward-block.js +34 -0
  131. package/react/dist/blocks/screen-header.d.ts +33 -0
  132. package/react/dist/blocks/screen-header.js +20 -0
  133. package/react/dist/blocks/setting-switch.d.ts +23 -0
  134. package/react/dist/blocks/setting-switch.js +12 -0
  135. package/react/dist/blocks/signals-block.d.ts +54 -0
  136. package/react/dist/blocks/signals-block.js +15 -0
  137. package/react/dist/blocks/sound-haptics-block.d.ts +59 -0
  138. package/react/dist/blocks/sound-haptics-block.js +22 -0
  139. package/react/dist/blocks/sticky-header.d.ts +9 -0
  140. package/react/dist/blocks/sticky-header.js +43 -0
  141. package/react/dist/blocks/swap/amount-card.js +8 -0
  142. package/react/dist/{recipes → blocks}/swap/picker.d.ts +1 -1
  143. package/react/dist/{recipes → blocks}/swap/picker.js +4 -4
  144. package/react/dist/{recipes → blocks}/swap/settings.js +2 -2
  145. package/react/dist/{recipes → blocks}/swap/shared.d.ts +8 -1
  146. package/react/dist/{recipes → blocks}/swap/shared.js +7 -4
  147. package/react/dist/{recipes/swap-panel.d.ts → blocks/swap-panel-block.d.ts} +8 -2
  148. package/react/dist/{recipes/swap-panel.js → blocks/swap-panel-block.js} +9 -7
  149. package/react/dist/{recipes → blocks}/swap-sheet.d.ts +4 -4
  150. package/react/dist/{recipes → blocks}/swap-sheet.js +4 -4
  151. package/react/dist/blocks/target-block.d.ts +103 -0
  152. package/react/dist/blocks/target-block.js +73 -0
  153. package/react/dist/blocks/token-action-block.d.ts +46 -0
  154. package/react/dist/blocks/token-action-block.js +21 -0
  155. package/react/dist/{recipes → blocks}/trade-entry.js +2 -2
  156. package/react/dist/blocks/trade-history-detail-block.d.ts +78 -0
  157. package/react/dist/blocks/trade-history-detail-block.js +17 -0
  158. package/react/dist/blocks/trade-history-list-block.d.ts +67 -0
  159. package/react/dist/blocks/trade-history-list-block.js +28 -0
  160. package/react/dist/blocks.d.ts +20 -0
  161. package/react/dist/blocks.js +21 -0
  162. package/react/dist/button.js +6 -4
  163. package/react/dist/data.js +3 -3
  164. package/react/dist/field.d.ts +14 -6
  165. package/react/dist/field.js +19 -8
  166. package/react/dist/figure.d.ts +23 -0
  167. package/react/dist/figure.js +12 -0
  168. package/react/dist/list-group.d.ts +59 -0
  169. package/react/dist/list-group.js +52 -0
  170. package/react/dist/provider.d.ts +40 -3
  171. package/react/dist/provider.js +63 -6
  172. package/react/dist/selection.d.ts +8 -2
  173. package/react/dist/selection.js +11 -6
  174. package/react/dist/styles.css +425 -5
  175. package/react/dist/surface.d.ts +5 -1
  176. package/react/dist/surface.js +1 -1
  177. package/react/dist/wallet-address-core.d.ts +23 -0
  178. package/react/dist/wallet-address-core.js +24 -0
  179. package/react/dist/wallet-address.d.ts +6 -12
  180. package/react/dist/wallet-address.js +5 -16
  181. package/tokens/README.md +1 -1
  182. package/react/dist/recipes/activity-list.d.ts +0 -8
  183. package/react/dist/recipes/activity-list.js +0 -6
  184. package/react/dist/recipes/balance-card.d.ts +0 -6
  185. package/react/dist/recipes/balance-card.js +0 -5
  186. package/react/dist/recipes/code-window.d.ts +0 -4
  187. package/react/dist/recipes/code-window.js +0 -4
  188. package/react/dist/recipes/market-row.d.ts +0 -25
  189. package/react/dist/recipes/market-row.js +0 -8
  190. package/react/dist/recipes/swap/amount-card.js +0 -7
  191. package/react/dist/recipes.d.ts +0 -10
  192. package/react/dist/recipes.js +0 -11
  193. /package/react/dist/{recipes → blocks}/install-command.d.ts +0 -0
  194. /package/react/dist/{recipes → blocks}/install-command.js +0 -0
  195. /package/react/dist/{recipes → blocks}/marketing-hero.d.ts +0 -0
  196. /package/react/dist/{recipes → blocks}/marketing-hero.js +0 -0
  197. /package/react/dist/{recipes → blocks}/swap/amount-card.d.ts +0 -0
  198. /package/react/dist/{recipes → blocks}/swap/settings.d.ts +0 -0
  199. /package/react/dist/{recipes → blocks}/trade-entry.d.ts +0 -0
@@ -12,7 +12,10 @@ interface CheckedProps {
12
12
  onCheckedChange?: (value: boolean) => void;
13
13
  }
14
14
  export declare function Checkbox({ label, checked, defaultChecked, disabled, onCheckedChange }: CheckedProps): React.JSX.Element;
15
- export declare function Switch({ label, checked, defaultChecked, disabled, onCheckedChange }: CheckedProps): React.JSX.Element;
15
+ export interface SwitchProps extends CheckedProps {
16
+ hideLabel?: boolean;
17
+ }
18
+ export declare function Switch({ label, checked, defaultChecked, disabled, hideLabel, onCheckedChange }: SwitchProps): React.JSX.Element;
16
19
  export interface ChoicesProps {
17
20
  label: string;
18
21
  options: readonly Choice[];
@@ -21,8 +24,11 @@ export interface ChoicesProps {
21
24
  disabled?: boolean;
22
25
  onValueChange?: (value: string) => void;
23
26
  }
27
+ export interface SegmentedControlProps extends ChoicesProps {
28
+ hideLabel?: boolean;
29
+ }
24
30
  export declare function RadioGroup({ label, options, value, defaultValue, disabled, onValueChange }: ChoicesProps): React.JSX.Element;
25
- export declare function SegmentedControl({ label, options, value, defaultValue, disabled, onValueChange }: ChoicesProps): React.JSX.Element;
31
+ export declare function SegmentedControl({ label, options, value, defaultValue, disabled, hideLabel, onValueChange }: SegmentedControlProps): React.JSX.Element;
26
32
  export interface FilterOption extends Choice {
27
33
  icon?: string;
28
34
  }
@@ -1,16 +1,21 @@
1
1
  "use client";
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import { useId } from 'react';
4
- import { useControllable } from './provider.js';
3
+ import { useId, useRef } from 'react';
4
+ import { PressDecoration, useControllable } from './provider.js';
5
5
  export function Checkbox({ label, checked, defaultChecked = false, disabled, onCheckedChange }) { const [value, set] = useControllable(checked, defaultChecked, onCheckedChange); return _jsxs("label", { className: 'hig-choice', children: [_jsx("input", { type: 'checkbox', checked: value, disabled: disabled, onChange: e => set(e.target.checked) }), _jsx("span", { children: label })] }); }
6
- export function Switch({ label, checked, defaultChecked = false, disabled, onCheckedChange }) { const [value, set] = useControllable(checked, defaultChecked, onCheckedChange); return _jsxs("label", { className: 'hig-choice hig-switch', children: [_jsx("input", { role: 'switch', type: 'checkbox', checked: value, disabled: disabled, onChange: e => set(e.target.checked) }), _jsx("span", { children: label })] }); }
6
+ export function Switch({ label, checked, defaultChecked = false, disabled, hideLabel, onCheckedChange }) { const [value, set] = useControllable(checked, defaultChecked, onCheckedChange); const input = useRef(null); return _jsxs("label", { className: 'hig-choice hig-switch', children: [_jsx("input", { ref: input, role: 'switch', type: 'checkbox', checked: value, disabled: disabled, onChange: e => set(e.target.checked) }), _jsx("span", { className: hideLabel ? 'hig-sr-only' : undefined, children: label }), _jsx(PressDecoration, { kind: 'switch', disabled: !!disabled, input: input })] }); }
7
+ /** One segment: a label around its radio, with the provider's press decoration aimed at that radio. */
8
+ function Segment({ name, option, checked, blocked, onSelect }) {
9
+ const input = useRef(null);
10
+ return _jsxs("label", { className: 'hig-segment', children: [_jsx("input", { ref: input, type: 'radio', name: name, value: option.value, checked: checked, disabled: option.disabled, onChange: () => { if (!blocked)
11
+ onSelect(); } }), _jsx("span", { children: option.label }), _jsx(PressDecoration, { kind: 'segment', disabled: blocked, input: input })] });
12
+ }
7
13
  export function RadioGroup({ label, options, value, defaultValue = '', disabled, onValueChange }) { const name = useId(); const [current, set] = useControllable(value, defaultValue, onValueChange); return _jsxs("fieldset", { className: 'hig-group', disabled: disabled, children: [_jsx("legend", { children: label }), options.map(o => _jsxs("label", { className: 'hig-choice', children: [_jsx("input", { type: 'radio', name: name, value: o.value, checked: current === o.value, disabled: o.disabled, onChange: () => set(o.value) }), _jsx("span", { children: o.label })] }, o.value))] }); }
8
- export function SegmentedControl({ label, options, value, defaultValue = '', disabled, onValueChange }) {
14
+ export function SegmentedControl({ label, options, value, defaultValue = '', disabled, hideLabel, onValueChange }) {
9
15
  const name = useId();
10
16
  const [current, set] = useControllable(value, defaultValue, onValueChange);
11
17
  const selected = options.findIndex(option => option.value === current);
12
- return _jsxs("fieldset", { className: 'hig-group hig-segmented-control', disabled: disabled, children: [_jsx("legend", { children: label }), _jsxs("div", { className: 'hig-segments', style: { '--hig-segment-count': Math.max(1, options.length), '--hig-segment-index': selected }, children: [selected >= 0 && _jsx("span", { className: 'hig-segment-indicator', "aria-hidden": 'true', "data-disabled": disabled || options[selected].disabled || undefined }), options.map(o => _jsxs("label", { className: 'hig-segment', children: [_jsx("input", { type: 'radio', name: name, value: o.value, checked: current === o.value, disabled: o.disabled, onChange: () => { if (!disabled && !o.disabled)
13
- set(o.value); } }), _jsx("span", { children: o.label })] }, o.value))] })] });
18
+ return _jsxs("fieldset", { className: 'hig-group hig-segmented-control', disabled: disabled, children: [_jsx("legend", { className: hideLabel ? 'hig-sr-only' : undefined, children: label }), _jsxs("div", { className: 'hig-segments', style: { '--hig-segment-count': Math.max(1, options.length), '--hig-segment-index': selected }, children: [selected >= 0 && _jsx("span", { className: 'hig-segment-indicator', "aria-hidden": 'true', "data-disabled": disabled || options[selected].disabled || undefined }), options.map(o => _jsx(Segment, { name: name, option: o, checked: current === o.value, blocked: !!disabled || !!o.disabled, onSelect: () => set(o.value) }, o.value))] })] });
14
19
  }
15
20
  /** One row of filter capsules that scrolls sideways. Single choice with radio semantics; the chosen capsule inverts and a check draws into its circle. */
16
21
  export function Filter({ label, options, value, defaultValue = '', disabled, onValueChange }) {
@@ -44,10 +44,9 @@
44
44
  .hig-surface { padding:var(--hig-space-xl,20px);min-width:0;overflow-wrap:anywhere; }
45
45
  .hig-surface > :first-child { margin-block-start:0; }
46
46
  .hig-surface > :last-child { margin-block-end:0; }
47
- .hig-balance-card { display:flex;flex-direction:column;gap:var(--hig-space-sm,8px); }
48
- .hig-balance-card > .hig-text { margin:0;color:var(--hig-muted);font-size:.875rem;line-height:1.5; }
49
- .hig-balance-card > .hig-number { font-size:1.5rem;line-height:1.25;font-weight:600; }
50
47
  .hig-text { font-size:1rem;line-height:1.5; }
48
+ .hig-text[data-tone='muted'] { color:var(--hig-muted); }
49
+ .hig-text[data-size='caption'] { font-size:var(--hig-type-caption-size,.75rem);line-height:var(--hig-type-caption-line-height,1.125rem); }
51
50
  .hig-heading { line-height:1.25; }
52
51
  .hig-input { width:100%;min-width:0;min-height:var(--hig-button);border-radius:9999px;border:1px solid transparent;padding: max(4px,calc((var(--hig-button) - 1.5em - 2px)/2)) 20px;background:var(--hig-fill);color:var(--hig-text);font:inherit;line-height:1.5; }
53
52
  .hig-input::placeholder { color:var(--hig-muted);opacity:1; }
@@ -139,6 +138,16 @@ textarea.hig-input { border-radius:var(--hig-radius-xl,14px);resize:vertical; }
139
138
  .hig-market-row[data-mode='presentation'] .hig-market-identity { display:flex;align-items:center;gap:8px;min-width:0; }
140
139
  .hig-market-row[data-mode='presentation'] :is(.hig-market-price,.hig-market-change,.hig-market-volume) { text-align:end; }
141
140
  .hig-market-row[data-mode='presentation'] .hig-number { font-family:inherit; }
141
+ /* Host options: a row without price or change, or with trailing content or a check, flows into as many columns as it has cells. */
142
+ .hig-market-row[data-mode='presentation'][data-flow] { grid-template-columns:minmax(0,1fr);grid-auto-flow:column;grid-auto-columns:auto; }
143
+ .hig-market-row[data-mode='presentation'] .hig-market-trailing { text-align:end; }
144
+ .hig-market-row[data-flow] .hig-market-identity { flex:1 1 auto;min-width:0; }
145
+ .hig-market-text { display:flex;flex-direction:column;align-items:flex-start;min-width:0;text-align:start; }
146
+ .hig-market-detail { font-size:.875rem;line-height:1.43;font-weight:400;color:var(--hig-muted); }
147
+ .hig-market-trailing { display:flex;align-items:center;justify-content:flex-end;gap:8px;min-width:0; }
148
+ .hig-market-check { flex:none;color:var(--hig-text); }
149
+ .hig-market-row[data-active] { border-radius:var(--hig-radius-xl,14px);background:var(--hig-fill); }
150
+ .hig-market-row[data-disabled] :is(.hig-market-name,.hig-market-price,.hig-market-change,.hig-market-volume,.hig-market-trailing,.hig-market-icon) { opacity:.5; }
142
151
  .hig-badge { display:inline-flex;align-items:center;gap:4px;width:fit-content;max-width:100%;min-width:0;padding:4px 10px;border-radius:9999px;background:var(--hig-fill);color:var(--hig-text);line-height:1.5;vertical-align:middle;overflow-wrap:anywhere; }
143
152
  .hig-badge[data-tone='positive'] { color:var(--hig-positive);background:color-mix(in srgb,var(--hig-positive) 15%,transparent); }
144
153
  .hig-badge[data-tone='negative'] { color:var(--hig-negative);background:color-mix(in srgb,var(--hig-negative) 15%,transparent); }
@@ -374,7 +383,7 @@ button.hig-wallet-address:active { opacity:.8; }
374
383
  .hig-wallet-address-qr > svg { display:block;width:100%;height:100%; }
375
384
  .hig-wallet-address-hint { display:inline-flex;align-items:center;gap:8px;font-size:.875rem;line-height:1.5;color:var(--hig-muted); }
376
385
  .hig-wallet-address-hint > svg { width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round; }
377
- /* SwapPanel: two cards joined by a flip control. Each card is one target for its token picker; capsules and the
386
+ /* SwapPanelBlock: two cards joined by a flip control. Each card is one target for its token picker; capsules and the
378
387
  amount sit on a pass-through layer above that target and take their own presses. */
379
388
  .hig-swap-panel { display:flex;flex-direction:column;width:100%;max-width:28rem;min-width:0;color:var(--hig-text);font-family:var(--hig-font-sans,'Bloxwap Sans',system-ui,sans-serif);line-height:1.5;outline:none; }
380
389
  .hig-swap-card { --hig-fill:var(--hig-nested);--hig-fill-raised:var(--hig-border);position:relative;display:flex;flex-direction:column;border:1px solid transparent;border-radius:24px;background:var(--hig-surface);transition:background var(--hig-motion-duration-fast,180ms) ease; }
@@ -419,7 +428,7 @@ button.hig-wallet-address:active { opacity:.8; }
419
428
  .hig-swap-details dd { margin:0;color:var(--hig-text);text-align:end;overflow-wrap:anywhere; }
420
429
  /* A line under the cards. Muted is plain text; warning and negative are tinted capsules in the tone's colour. */
421
430
  .hig-swap-note { margin:8px 0 0;padding:0 4px;font-size:.875rem;line-height:1.5;color:var(--hig-muted); }
422
- .hig-swap-note:not([data-tone='muted']) { padding:12px 16px;border-radius:16px;color:var(--hig-swap-tone);background:color-mix(in srgb,var(--hig-swap-tone) 14%,transparent); }
431
+ .hig-swap-note:not([data-tone='muted']) { padding:12px 16px;border-radius:16px;color:var(--hig-swap-tone);background:color-mix(in srgb,var(--hig-swap-tone) 10%,transparent); }
423
432
  .hig-swap-note[data-tone='warning'] { --hig-swap-tone:var(--hig-warning); }
424
433
  .hig-swap-note[data-tone='negative'] { --hig-swap-tone:var(--hig-negative); }
425
434
  .hig-swap-panel > .hig-swap-view > .hig-swap-view-header { margin-block-end:12px; }
@@ -523,6 +532,321 @@ button.hig-swap-receive:active { opacity:.8; }
523
532
  p .hig-link { display:inline;min-height:0;min-width:0; }
524
533
  .hig-input,.hig-range,.hig-menu-item,.hig-select-option,.hig-table-sort,.hig-choice,.hig-segment { min-width:var(--hig-button); }
525
534
 
535
+ /* AssetBalanceRow: a capsule row concentric with its 40px avatar (8px padding, 56px row, 28px end radius). */
536
+ .hig-asset-row { appearance:none;display:flex;align-items:center;gap:12px;width:100%;min-height:56px;margin:0;padding:8px;padding-inline-end:16px;border:0;border-radius:28px;background:var(--hig-fill);color:var(--hig-text);font:inherit;text-align:start; }
537
+ button.hig-asset-row { cursor:pointer; }
538
+ button.hig-asset-row:active { background:var(--hig-fill-raised); }
539
+ .hig-asset-row-icon { flex:none;display:grid;place-items:center;width:40px;height:40px;border-radius:9999px;overflow:hidden;background:var(--hig-fill-raised);color:var(--hig-muted);font-size:.625rem;font-weight:600; }
540
+ .hig-asset-row-icon > img { width:100%;height:100%;object-fit:cover; }
541
+ .hig-asset-row-identity,.hig-asset-row-amounts { display:flex;flex-direction:column;min-width:0;font-size:.875rem;line-height:1.43;color:var(--hig-muted); }
542
+ .hig-asset-row-identity { flex:1;overflow-wrap:anywhere; }
543
+ .hig-asset-row-amounts { flex:none;align-items:flex-end;text-align:end; }
544
+ .hig-asset-row strong { font-size:1rem;line-height:1.5;font-weight:600;color:var(--hig-text); }
545
+ .hig-asset-row .hig-number { font-family:inherit; }
546
+ /* A tag is a caption under the figures; the trailing slot and the selected check follow them, 12px apart like the rest of the row. */
547
+ .hig-asset-row-tag { font-size:.75rem;line-height:1.5;color:var(--hig-muted); }
548
+ .hig-asset-row-trailing { flex:none;display:flex;align-items:center;gap:8px;color:var(--hig-muted); }
549
+ .hig-asset-row-check { flex:none;color:var(--hig-text); }
550
+ /* Unavailable: the well fill stays, the text and artwork go muted, and a press does nothing. */
551
+ .hig-asset-row:is(:disabled,[aria-disabled='true']) { cursor:default; }
552
+ button.hig-asset-row:disabled:active { background:var(--hig-fill); }
553
+ .hig-asset-row:is(:disabled,[aria-disabled='true']) strong { color:var(--hig-muted); }
554
+ .hig-asset-row:is(:disabled,[aria-disabled='true']) .hig-asset-row-icon { opacity:.5; }
555
+ /* ScreenHeader: Back, a centred title and a trailing control, shared by the cards that are their own screen.
556
+ AccountBlock: that header, the total with the deposit action, then the holdings 8px apart. */
557
+ .hig-account-block { display:flex;flex-direction:column;gap:16px;min-width:0; }
558
+ .hig-screen-header { display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:8px;min-height:44px; }
559
+ .hig-screen-header-side { display:grid;place-items:center;min-width:0; }
560
+ .hig-screen-title { margin:0;font-size:1.0625rem;line-height:1.4;font-weight:600;text-align:center;overflow-wrap:anywhere; }
561
+ /* hideTitle: the heading leaves the flow, so the trailing side keeps its own column. */
562
+ .hig-screen-header > .hig-screen-header-side:last-child { grid-column:3; }
563
+ .hig-screen-header .hig-swap-back:disabled { color:var(--hig-faint);background:transparent;cursor:default; }
564
+ /* stickyHeader: pinned in the nearest scroller, transparent at rest so whatever the host draws behind it shows through, and filled
565
+ once content scrolls under it. The script marks that moment with data-scrolled; where scroll-driven animations exist the fill
566
+ also follows the scroll position itself (the header's parent leaving the top of the scroller), which needs no script. */
567
+ .hig-screen-header[data-sticky] { position:sticky;inset-block-start:0;z-index:1;background-color:transparent;transition:background-color var(--hig-motion-duration-fast) var(--hig-motion-easing-standard,ease); }
568
+ .hig-screen-header[data-sticky][data-scrolled] { background-color:var(--hig-sticky-header-background,var(--hig-screen-background,var(--hig-background))); }
569
+ @keyframes hig-sticky-fill { from { background-color:transparent; } to { background-color:var(--hig-sticky-header-background,var(--hig-screen-background,var(--hig-background))); } }
570
+ @supports (animation-timeline:view()) {
571
+ :has(> .hig-screen-header[data-sticky]) { view-timeline:--hig-sticky-header block; }
572
+ .hig-screen-header[data-sticky] { animation:hig-sticky-fill linear both;animation-timeline:--hig-sticky-header;animation-range:exit-crossing 0px exit-crossing 12px; }
573
+ /* Not when the parent is itself the scroller (data-sticky-own): its view timeline would follow an outer scroller, so the script's data-scrolled rule fills it. */
574
+ .hig-screen-header[data-sticky][data-sticky-own] { animation:none; }
575
+ }
576
+ @media(prefers-reduced-motion:reduce) { .hig-screen-header[data-sticky] { transition:none;animation:none; } }
577
+ [data-hig-motion='reduced'] .hig-screen-header[data-sticky] { transition:none;animation:none; }
578
+ .hig-account-summary { display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 12px; }
579
+ .hig-account-balance { min-width:0;font-size:2rem;line-height:1.25;font-weight:600; }
580
+ .hig-account-balance .hig-number { font-family:inherit; }
581
+ .hig-account-assets { display:flex;flex-direction:column;gap:8px;margin:0;padding:0;list-style:none; }
582
+ .hig-account-sections { display:flex;flex-direction:column;gap:24px;min-width:0; }
583
+ .hig-account-section { display:flex;flex-direction:column;gap:8px;min-width:0; }
584
+ .hig-account-section-header { display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding-inline:4px;color:var(--hig-muted);font-size:.875rem;line-height:1.43;font-weight:500; }
585
+ .hig-account-section-header > h3 { margin:0;min-width:0;font:inherit;overflow-wrap:anywhere; }
586
+ .hig-account-section-total { flex:none; }
587
+ .hig-account-section-total .hig-number { font-family:inherit; }
588
+ /* TokenActionBlock: header, the assets and chains bars 8px apart, then equal full-width actions 16px below. */
589
+ .hig-token-card { display:flex;flex-direction:column;gap:16px;min-width:0; }
590
+ .hig-token-bars,.hig-token-actions { display:flex;flex-direction:column;gap:8px; }
591
+ .hig-token-card > .hig-token-note { margin:0; }
592
+ .hig-token-card > .hig-token-actions + .hig-token-note { margin-block-start:-8px; }
593
+ /* ManagePositionBlock: header, two bars 8px apart, action rows and the position row 16px below each other. */
594
+ .hig-manage-position-block { display:flex;flex-direction:column;gap:16px;min-width:0; }
595
+ /* The two bars are read-only, so they sit on the page without a card, further apart than cards would be. */
596
+ .hig-token-card > .hig-token-bars,.hig-manage-position-block > .hig-token-bars { gap:20px;padding-inline:4px; }
597
+ .hig-position-side[data-side='long'],.hig-position-row [data-tone='up'] { color:var(--hig-positive); }
598
+ .hig-position-side[data-side='short'],.hig-position-row [data-tone='down'] { color:var(--hig-negative); }
599
+ /* An action row's trailing value (a resting trigger's price) is muted unless the host gives it a tone. */
600
+ .hig-manage-action-value .hig-number { font-family:inherit; }
601
+ .hig-manage-action-value[data-tone='positive'] { color:var(--hig-positive); }
602
+ .hig-manage-action-value[data-tone='negative'] { color:var(--hig-negative); }
603
+ .hig-manage-action-value[data-tone='muted'] { color:var(--hig-muted); }
604
+ /* The position's name can carry a small host badge, such as a venue. */
605
+ .hig-position-name { display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;min-width:0; }
606
+ .hig-position-badge { padding:0 8px;font-size:.75rem;line-height:1.5;font-weight:500;color:var(--hig-muted); }
607
+ /* The caption under the position row, such as a stale or estimated result: 8 under the row, on its end inset. */
608
+ .hig-position-caption { margin:-8px 0 0;padding-inline:16px;color:var(--hig-muted);font-size:.8125rem;line-height:1.5; }
609
+ /* SoundHapticsBlock, SignalsBlock and NotificationsBlock: a header, then settings as cards 8px apart. Cards inside a list share one rounded container, 2px apart. */
610
+ .hig-settings-block { display:flex;flex-direction:column;gap:16px;min-width:0; }
611
+ .hig-setting-cards,.hig-setting-body,.hig-setting-volume,.hig-notifications-item,.hig-signals-group { display:flex;flex-direction:column;gap:8px; }
612
+ .hig-setting-list { display:flex;flex-direction:column;gap:2px;border-radius:20px;overflow:hidden; }
613
+ .hig-setting-card { display:flex;flex-direction:column;gap:12px;padding:4px 20px;border-radius:20px;background:var(--hig-fill); }
614
+ .hig-setting-card:has(> .hig-setting-body) { padding-block-end:16px; }
615
+ .hig-setting-list > .hig-setting-card { border-radius:0; }
616
+ /* A switch sits flush with the trailing edge and level with the first line of its label, however long the text beside it runs. */
617
+ .hig-setting-switch { display:flex;align-items:flex-start;gap:12px;min-height:var(--hig-control);padding:0;line-height:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent; }
618
+ .hig-setting-switch[data-disabled] { opacity:.5;cursor:not-allowed; }
619
+ .hig-setting-switch[data-locked] { cursor:default; }
620
+ .hig-setting-switch-accessory { display:inline-flex;align-items:center;margin-inline-start:8px;vertical-align:middle; }
621
+ .hig-setting-hint { margin:0;padding-inline:20px;color:var(--hig-muted);font-size:.875rem;line-height:1.5; }
622
+ .hig-settings-description { margin:0;padding-inline:4px;color:var(--hig-muted);font-size:.875rem;line-height:1.5; }
623
+ .hig-notifications-group { display:flex;flex-direction:column;gap:8px;margin-block-start:8px; }
624
+ .hig-notifications-action { margin-block-start:8px; }
625
+ .hig-setting-notes {display:flex;flex-direction:column;gap:4px;padding-block-end:12px; }
626
+ .hig-setting-notes > p { padding-inline:0; }
627
+ .hig-setting-body > .hig-setting-action:not(:first-child) { margin-block-start:8px; }
628
+ .hig-setting-choices legend { margin-block-end:4px;color:var(--hig-muted);font-size:.875rem;line-height:1.5; }
629
+ .hig-setting-switch-text { flex:1;display:flex;flex-direction:column;gap:2px;min-width:0;padding-block:calc((var(--hig-control) - 1.5em)/2);overflow-wrap:anywhere; }
630
+ .hig-setting-switch-description,.hig-setting-caption { color:var(--hig-muted);font-size:.875rem;line-height:1.5; }
631
+ .hig-setting-switch > .hig-switch { flex:none;display:inline-flex;align-items:center;justify-content:flex-end;height:var(--hig-control); }
632
+ .hig-setting-meter { height:4px;border-radius:2px;background:var(--hig-fill-raised);overflow:hidden; }
633
+ .hig-setting-meter > span { display:block;height:100%;border-radius:2px;background:var(--hig-action);transition:width var(--hig-motion-duration-fast) linear; }
634
+ .hig-setting-steps { display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:8px; }
635
+ .hig-setting-steps > .hig-button { padding-inline:8px; }
636
+ .hig-setting-error { margin:0;padding-inline:20px;color:var(--hig-negative);font-size:.875rem;line-height:1.5; }
637
+ .hig-signals-group-header { display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:var(--hig-button);padding-inline-start:4px; }
638
+ .hig-signals-group-header > h3 { display:inline-flex;align-items:center;gap:6px;min-width:0;margin:0;color:var(--hig-muted);font-size:1rem;line-height:1.5;font-weight:500; }
639
+ @media(prefers-reduced-motion:reduce) { .hig-setting-meter > span { transition:none; } }
640
+ [data-hig-motion='reduced'] .hig-setting-meter > span { transition:none; }
641
+ @media(forced-colors:active) { .hig-setting-meter > span { forced-color-adjust:none; } }
642
+ /* PositionBlock: header, the summary lines 12px apart, an optional note, then the paper trading switch and the setting groups 8px apart. */
643
+ .hig-position-block { display:flex;flex-direction:column;gap:16px;min-width:0; }
644
+ /* The summary sits directly on the screen, with no card, on the list rows' text inset; its values use the interface face. */
645
+ .hig-position-details { display:flex;flex-direction:column;gap:12px;margin:0;padding-inline:20px; }
646
+ .hig-position-details > div { display:flex;align-items:baseline;justify-content:space-between;gap:12px;color:var(--hig-muted); }
647
+ .hig-position-details dd { margin:0;color:var(--hig-text);font-family:inherit;font-weight:500;text-align:end;overflow-wrap:anywhere; }
648
+ .hig-position-details dd .hig-number { font-family:inherit; }
649
+ .hig-position-details [data-tone='positive'] dd { color:var(--hig-positive); }
650
+ .hig-position-details [data-tone='negative'] dd { color:var(--hig-negative); }
651
+ .hig-position-details [data-tone='muted'] dd { color:var(--hig-muted); }
652
+ /* The note is the summary's footnote: 8 under it, on the same text inset. */
653
+ .hig-position-note { margin:-8px 0 0;padding-inline:20px;color:var(--hig-muted);font-size:.8125rem;line-height:1.5; }
654
+ /* ListGroups stack 24 apart, the standard gap between groups. */
655
+ .hig-position-groups { display:flex;flex-direction:column;gap:24px; }
656
+ /* A struck value is a charge that does not apply; the line is drawn over the figure so it crosses animated digits too. */
657
+ .hig-position-struck { position:relative;display:inline-block; }
658
+ .hig-position-struck::after { content:'';position:absolute;inset-inline:0;inset-block-start:50%;border-block-start:1px solid currentColor;pointer-events:none; }
659
+ .hig-position-details dt:has(> .hig-position-label-accessory) { display:inline-flex;flex-wrap:wrap;align-items:center;gap:4px 6px;min-width:0; }
660
+ .hig-position-label-accessory { display:inline-flex;align-items:center; }
661
+ /* A switch row toggles from anywhere on it. */
662
+ .hig-position-groups .hig-list-row:has(> .hig-list-row-trailing .hig-switch):not([aria-disabled='true']) { cursor:pointer; }
663
+ /* The paper trading row's action sits on the row's card, 8 under the switch. */
664
+ .hig-position-flag-card { display:flex;flex-direction:column;background:var(--hig-fill); }
665
+ .hig-position-flag-action { display:flex;padding:4px 20px 16px; }
666
+ /* RewardBlock: header, the promotion card, the standings choice, the viewer's row on a tint, then the ranked rows 2px apart in one rounded container. */
667
+ .hig-reward-block { display:flex;flex-direction:column;gap:16px;min-width:0; }
668
+ .hig-reward-promo { display:flex;flex-direction:column;gap:12px; }
669
+ .hig-reward-promo > p,.hig-reward-footnote { margin:0; }
670
+ .hig-reward-promo-top,.hig-reward-columns { display:flex;align-items:center;justify-content:space-between;gap:12px; }
671
+ .hig-reward-eyebrow,.hig-reward-columns { color:var(--hig-muted);font-size:.75rem;line-height:1.33;letter-spacing:.12em;text-transform:uppercase; }
672
+ .hig-reward-eyebrow { min-width:0; }
673
+ .hig-reward-rules { appearance:none;flex:none;display:inline-flex;align-items:center;justify-content:flex-end;gap:4px;min-height:var(--hig-button);min-width:var(--hig-button);margin-block:-12px;padding:0;border:0;background:none;color:var(--hig-muted);font:inherit;font-weight:500;cursor:pointer;-webkit-tap-highlight-color:transparent; }
674
+ .hig-reward-rules:active { color:var(--hig-text); }
675
+ [dir='rtl'] .hig-reward-rules > svg,[dir='rtl'] .hig-reward-action > svg { transform:scaleX(-1); }
676
+ /* The card's action is a quiet row under a hairline, not a filled button. */
677
+ .hig-reward-action { appearance:none;display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:var(--hig-button);margin:4px 0 -8px;padding:12px 0 0;border:0;border-block-start:1px solid var(--hig-fill-raised);border-radius:0;background:none;color:var(--hig-muted);font:inherit;font-weight:500;text-align:start;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation; }
678
+ .hig-reward-action:active { color:var(--hig-text); }
679
+ .hig-reward-action > svg { flex:none; }
680
+ .hig-reward-amount { color:var(--hig-action);font-size:clamp(2rem,10vw,3rem);line-height:1.15;font-weight:700;letter-spacing:-.02em;overflow-wrap:anywhere; }
681
+ .hig-reward-promo > .hig-reward-caption { margin-block-start:-8px;color:var(--hig-muted);font-size:.9375rem;line-height:1.5; }
682
+ .hig-reward-track { height:4px;border-radius:2px;background:var(--hig-fill-raised);overflow:hidden; }
683
+ .hig-reward-track > span { display:block;height:100%;min-width:8px;border-radius:2px;background:var(--hig-action);transition:width var(--hig-motion-duration-base) var(--hig-motion-easing-standard,ease); }
684
+ .hig-reward-columns > :last-child { text-align:end; }
685
+ .hig-reward-columns { padding-inline:4px; }
686
+ .hig-reward-summary { color:var(--hig-muted);line-height:1.5;overflow-wrap:anywhere; }
687
+ .hig-reward-summary > strong { color:var(--hig-text);font-weight:600; }
688
+ .hig-reward-footnote { color:var(--hig-muted);font-size:.875rem;line-height:1.5; }
689
+ @media(hover:hover) and (pointer:fine) { .hig-reward-rules:hover,.hig-reward-action:hover { color:var(--hig-text); } }
690
+ .hig-reward-footnote { padding-inline:4px; }
691
+ .hig-reward-block .hig-segmented-control > legend { position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap; }
692
+ .hig-reward-list { display:flex;flex-direction:column;gap:8px; }
693
+ .hig-reward-rows { display:flex;flex-direction:column;gap:2px;margin:0;padding:0;list-style:none;border-radius:20px;overflow:hidden; }
694
+ .hig-reward-row { display:flex;align-items:center;gap:12px;min-height:64px;padding:8px 20px;background:var(--hig-fill); }
695
+ .hig-reward-you > .hig-reward-row { border-radius:20px;background:color-mix(in srgb,var(--hig-action) 12%,var(--hig-background)); }
696
+ .hig-reward-rank { flex:none;min-width:24px;color:var(--hig-muted);font-weight:600; }
697
+ .hig-reward-avatar { flex:none;display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:var(--hig-fill-raised);color:var(--hig-muted);font-size:.75rem;font-weight:600;overflow:hidden; }
698
+ .hig-reward-avatar > img { width:100%;height:100%;object-fit:cover; }
699
+ .hig-reward-identity { flex:1;display:flex;flex-direction:column;min-width:0; }
700
+ .hig-reward-identity > strong { display:flex;align-items:center;gap:6px;font-weight:600;overflow-wrap:anywhere; }
701
+ .hig-reward-identity > span { color:var(--hig-muted);font-size:.875rem; }
702
+ .hig-reward-verified { flex:none;display:inline-flex;color:var(--hig-warning); }
703
+ .hig-reward-score { flex:none;font-weight:600; }
704
+ .hig-reward-row[data-you] :is(.hig-reward-identity > strong,.hig-reward-score) { color:var(--hig-action); }
705
+ a.hig-reward-rules,a.hig-reward-action { text-decoration:none; }
706
+ .hig-reward-status { margin:0;padding-inline:4px;color:var(--hig-muted);font-size:.875rem;line-height:1.5; }
707
+ .hig-reward-skeleton { min-height:64px;border-radius:20px; }
708
+ .hig-reward-pagination { display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:8px; }
709
+ .hig-reward-pagination > :first-child { justify-self:start; }
710
+ .hig-reward-pagination > :last-child { justify-self:end; }
711
+ .hig-reward-page { color:var(--hig-muted);font-size:.875rem;text-align:center; }
712
+ @media(prefers-reduced-motion:reduce) { .hig-reward-track > span { transition:none; } }
713
+ [data-hig-motion='reduced'] .hig-reward-track > span { transition:none; }
714
+ @media(forced-colors:active) { .hig-reward-track > span { forced-color-adjust:none; } }
715
+ /* TargetBlock: header, the target as the headline figure, the price card, then the unit, the custom row, the quick choices and the
716
+ actions 16px below each other. The bar is a price axis: the tinted stretch is what the price still has to travel to the trigger. */
717
+ .hig-target-block { display:flex;flex-direction:column;gap:16px;min-width:0;--hig-target-tone:var(--hig-positive); }
718
+ .hig-target-block[data-kind='stop-loss'] { --hig-target-tone:var(--hig-negative); }
719
+ /* The headline figure matches the SwapPanel amount: the same size and the interface face, not the mono face. */
720
+ .hig-target-amount { margin:0;font-size:clamp(2rem,10vw,3rem);line-height:1.15;font-weight:700;letter-spacing:-.02em;text-align:center;overflow-wrap:anywhere; }
721
+ .hig-target-amount .hig-number { font-family:inherit; }
722
+ .hig-target-prices { display:flex;flex-direction:column;gap:12px; }
723
+ .hig-target-bar { position:relative;display:flex;height:24px;border-radius:var(--hig-radius-md,8px);overflow:hidden; }
724
+ .hig-target-rest,.hig-target-move { flex:0 1 0;min-width:0;transition:flex-grow var(--hig-motion-duration-base) var(--hig-motion-easing-standard,ease); }
725
+ .hig-target-rest { background:var(--hig-fill-raised); }
726
+ .hig-target-move { box-sizing:border-box;min-width:6px;background:var(--hig-target-tone);border-inline:3px solid var(--hig-text); }
727
+ .hig-target-move[data-lead='trigger'] { border-inline-start-color:var(--hig-target-tone); }
728
+ .hig-target-move[data-lead='start'] { border-inline-end-color:var(--hig-target-tone); }
729
+ .hig-target-prices [data-price='trigger'] dd { color:var(--hig-target-tone); }
730
+ .hig-target-info { position:relative;display:inline-flex; }
731
+ .hig-target-popover { position:absolute;inset-block-start:calc(100% + 4px);inset-inline-end:0;width:max-content;max-width:min(280px,calc(100vw - 48px));font-size:.875rem;font-weight:400;text-align:start; }
732
+ .hig-target-note { margin:0;color:var(--hig-muted);font-size:.875rem;line-height:1.5;text-align:center; }
733
+ .hig-target-block .hig-segmented-control > legend { position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap; }
734
+ .hig-target-presets,.hig-target-actions { display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:8px; }
735
+ .hig-target-presets > .hig-button { padding-inline:8px; }
736
+ /* The Custom row holding the host's value reads as the selected choice: the value on its trailing edge and a ring in the kind's colour. */
737
+ .hig-target-block .hig-swap-setting[aria-pressed='true'] { box-shadow:inset 0 0 0 2px var(--hig-target-tone); }
738
+ .hig-target-block .hig-swap-setting[aria-pressed='true'] > .hig-swap-setting-value { color:var(--hig-target-tone); }
739
+ /* The info button beside a host header control: both sides of the header widen together so the title stays centred. */
740
+ .hig-target-header-actions { display:inline-flex;align-items:center;gap:4px; }
741
+ .hig-target-block > .hig-screen-header:has(.hig-target-header-actions) { grid-template-columns:92px minmax(0,1fr) 92px; }
742
+ .hig-target-block > .hig-screen-header:has(.hig-target-header-actions) > .hig-screen-header-side:first-child { justify-items:start; }
743
+ .hig-target-block > .hig-screen-header:has(.hig-target-header-actions) > .hig-screen-header-side:last-child { justify-items:end; }
744
+ @media(prefers-reduced-motion:reduce) { .hig-target-rest,.hig-target-move { transition:none; } }
745
+ [data-hig-motion='reduced'] .hig-target-rest,[data-hig-motion='reduced'] .hig-target-move { transition:none; }
746
+ @media(forced-colors:active) { .hig-target-move { forced-color-adjust:none; } }
747
+ /* TradeHistoryListBlock: a header, then one capsule row per closed trade, 8px apart.
748
+ TradeHistoryDetailBlock: header, the asset row, the result and the figures 8px apart, then the actions in one row 16px below. */
749
+ .hig-trade-history-list { display:flex;flex-direction:column;gap:16px;min-width:0;color:var(--hig-text); }
750
+ .hig-trade-rows { display:flex;flex-direction:column;gap:8px;margin:0;padding:0;list-style:none; }
751
+ .hig-trade-row { appearance:none;display:flex;align-items:center;gap:12px;width:100%;min-height:56px;margin:0;padding:8px;padding-inline-end:16px;border:0;border-radius:28px;background:var(--hig-fill);color:var(--hig-text);font:inherit;text-align:start; }
752
+ button.hig-trade-row { cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation; }
753
+ button.hig-trade-row:active { background:var(--hig-fill-raised); }
754
+ .hig-trade-row-identity,.hig-trade-row-result { display:flex;flex-direction:column;min-width:0;font-size:.875rem;line-height:1.43;color:var(--hig-muted); }
755
+ .hig-trade-row-identity { flex:1;overflow-wrap:anywhere; }
756
+ .hig-trade-row-result { flex:none;align-items:flex-end;text-align:end; }
757
+ .hig-trade-row strong { font-size:1rem;line-height:1.5;font-weight:600;color:var(--hig-text); }
758
+ .hig-trade-row-side { display:inline-flex;align-items:center;gap:4px;font-weight:600; }
759
+ .hig-trade-row-side[data-side='long'] { color:var(--hig-up,var(--hig-buy)); }
760
+ .hig-trade-row-side[data-side='short'] { color:var(--hig-down,var(--hig-sell)); }
761
+ .hig-trade-row .hig-trade-pnl[data-tone='up'] { color:var(--hig-up,var(--hig-buy)); }
762
+ .hig-trade-row .hig-trade-pnl[data-tone='down'] { color:var(--hig-down,var(--hig-sell)); }
763
+ .hig-trade-row-note,.hig-trade-leverage-note { color:var(--hig-muted);font-weight:400; }
764
+ .hig-trade-row-note { margin-inline-start:4px; }
765
+ .hig-trade-row-meta { display:inline-flex;align-items:center;gap:4px;min-width:0; }
766
+ .hig-trade-row-tag { min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
767
+ .hig-trade-skeleton { min-height:56px;border-radius:28px; }
768
+ .hig-trade-error { color:var(--hig-negative); }
769
+ .hig-trade-empty-title,.hig-trade-empty-description { display:block; }
770
+ .hig-trade-empty-title { color:var(--hig-text);font-weight:600; }
771
+ .hig-trade-notice,.hig-trade-footer { display:flex;flex-direction:column;gap:8px;min-width:0; }
772
+ .hig-trade-note { margin:0;color:var(--hig-muted);font-size:.875rem;line-height:1.5; }
773
+ .hig-screen-badge { font-size:.75rem;line-height:1.33;font-weight:600;vertical-align:middle; }
774
+ .hig-trade-row-chevron { flex:none;color:var(--hig-muted); }
775
+ [dir='rtl'] .hig-trade-row-chevron { transform:scaleX(-1); }
776
+ @media(hover:hover) and (pointer:fine) { button.hig-trade-row:hover { background:var(--hig-fill-raised); } }
777
+ .hig-trade-pnl[data-tone='up'],.hig-trade-result[data-tone='up'] :is(.hig-trade-figure,.hig-trade-return) { color:var(--hig-up,var(--hig-buy)); }
778
+ .hig-trade-pnl[data-tone='down'],.hig-trade-result[data-tone='down'] :is(.hig-trade-figure,.hig-trade-return) { color:var(--hig-down,var(--hig-sell)); }
779
+ .hig-trade-side[data-side='long'] { color:var(--hig-up,var(--hig-buy)); }
780
+ .hig-trade-side[data-side='short'] { color:var(--hig-down,var(--hig-sell)); }
781
+ .hig-trade-detail { display:flex;flex-direction:column;gap:16px;min-width:0; }
782
+ .hig-trade-summary { display:flex;flex-direction:column;gap:20px;padding-inline:4px; }
783
+ .hig-trade-side { font-weight:600;text-transform:uppercase; }
784
+ .hig-trade-result { display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center; }
785
+ .hig-trade-identity { display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:4px 8px;color:var(--hig-muted); }
786
+ .hig-trade-identity > strong { color:var(--hig-text);font-weight:600; }
787
+ .hig-trade-avatar { flex:none;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--hig-fill);color:var(--hig-muted);font-size:.5625rem;font-weight:600;overflow:hidden; }
788
+ .hig-trade-avatar > img { width:100%;height:100%;object-fit:cover; }
789
+ .hig-trade-figure { font-size:clamp(2rem,10vw,2.5rem);line-height:1.2;font-weight:700;overflow-wrap:anywhere; }
790
+ .hig-trade-return { color:var(--hig-muted);font-size:.875rem;line-height:1.5; }
791
+ .hig-trade-result .hig-number,.hig-trade-pnl .hig-number { font-family:inherit; }
792
+ .hig-trade-details { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px 12px;margin:0; }
793
+ .hig-trade-details > div { display:flex;flex-direction:column;gap:2px;min-width:0; }
794
+ .hig-trade-details dt { color:var(--hig-muted);font-size:.75rem;line-height:1.33; }
795
+ .hig-trade-details dd { margin:0;font-weight:600;overflow-wrap:anywhere; }
796
+ .hig-trade-details .hig-number { font-family:inherit; }
797
+ .hig-trade-actions { display:flex;gap:var(--hig-action-gap); }
798
+ .hig-trade-actions > * { flex:1 1 0;min-width:0; }
799
+ /* ProfileBlock: a top bar, the avatar with its status dot, the name, then list groups 24px apart. */
800
+ .hig-profile-block { display:flex;flex-direction:column;gap:24px;min-width:0; }
801
+ .hig-profile-bar { display:flex;align-items:center;justify-content:space-between;min-height:var(--hig-button); }
802
+ .hig-profile-identity { display:flex;flex-direction:column;align-items:center;gap:16px;margin-block-start:-16px; }
803
+ .hig-profile-avatar { position:relative;display:block;width:144px;height:144px;border-radius:50%;background:var(--hig-fill); }
804
+ .hig-profile-artwork { display:grid;place-items:center;width:100%;height:100%;border-radius:50%;overflow:hidden;color:var(--hig-muted);font-size:2.5rem;font-weight:600; }
805
+ .hig-profile-artwork > img { width:100%;height:100%;object-fit:cover; }
806
+ .hig-profile-status { position:absolute;inset-block-start:10px;inset-inline-end:10px;width:20px;height:20px;border-radius:50%;background:var(--hig-warning);box-shadow:0 0 0 3px var(--hig-background); }
807
+ .hig-profile-status[data-tone='positive'] { background:var(--hig-positive); }
808
+ .hig-profile-status[data-tone='negative'] { background:var(--hig-negative); }
809
+ .hig-profile-status[data-tone='info'] { background:var(--hig-info); }
810
+ .hig-profile-name { display:flex;align-items:center;justify-content:center;gap:4px;max-width:100%; }
811
+ .hig-profile-name > h2 { margin:0;min-width:0;font-size:1.75rem;line-height:1.2;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
812
+ .hig-profile-name > .hig-button { flex:none;color:var(--hig-muted); }
813
+ .hig-profile-name-accessory { flex:none;display:inline-flex;align-items:center; }
814
+ button.hig-profile-artwork { appearance:none;margin:0;padding:0;border:0;background:none;font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation; }
815
+ button.hig-profile-artwork:active { opacity:.85; }
816
+ .hig-profile-identity > .hig-profile-action { align-self:stretch; }
817
+ .hig-profile-value[data-tone='positive'] { color:var(--hig-positive); }
818
+ .hig-profile-value[data-tone='warning'] { color:var(--hig-warning); }
819
+ .hig-profile-value[data-tone='negative'] { color:var(--hig-negative); }
820
+ .hig-profile-value[data-tone='muted'] { color:var(--hig-muted); }
821
+ .hig-profile-value .hig-number { font-family:inherit; }
822
+ .hig-profile-block .hig-list-row:has(> .hig-list-row-trailing .hig-switch):not([aria-disabled='true']) { cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation; }
823
+ .hig-profile-footer { min-width:0; }
824
+ /* BarMark: one bar divided among its elements. Segments are flex shares of the bar with a 2px gap that shows the card, and the
825
+ remainder of a larger total is an empty track segment. Colours come from tone roles (or a host colour) through one custom property. */
826
+ .hig-bar-mark { display:flex;flex-direction:column;gap:12px; }
827
+ .hig-bar-mark-header { display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 12px; }
828
+ .hig-bar-mark-title { font-weight:600;min-width:0; }
829
+ .hig-bar-mark-description { color:var(--hig-muted);font-size:.875rem;text-align:end;min-width:0; }
830
+ .hig-bar-mark-description .hig-number { font-family:inherit; }
831
+ .hig-bar-mark-bar { display:flex;gap:2px;height:24px;border-radius:var(--hig-radius-md,8px);overflow:hidden; }
832
+ .hig-bar-mark[data-size='small'] > .hig-bar-mark-bar { height:12px;border-radius:6px; }
833
+ .hig-bar-mark-segment,.hig-bar-mark-rest { flex:0 1 0;min-width:0;transition:flex-grow var(--hig-motion-duration-base) var(--hig-motion-easing-standard,ease); }
834
+ .hig-bar-mark-segment { min-width:3px;background:var(--hig-bar-mark-color,var(--hig-muted)); }
835
+ .hig-bar-mark-rest { background:var(--hig-fill-raised); }
836
+ .hig-bar-mark-legend { display:flex;flex-wrap:wrap;gap:8px 16px;margin:0;padding:0;list-style:none;color:var(--hig-muted);font-size:.875rem; }
837
+ .hig-bar-mark-legend > li { display:inline-flex;align-items:center;gap:6px;min-width:0; }
838
+ .hig-bar-mark-dot { flex:none;width:8px;height:8px;border-radius:9999px;background:var(--hig-bar-mark-color,var(--hig-muted)); }
839
+ .hig-bar-mark-detail { color:var(--hig-faint); }
840
+ .hig-bar-mark-detail .hig-number { font-family:inherit; }
841
+ .hig-bar-mark [data-tone='positive'] { --hig-bar-mark-color:var(--hig-positive); }
842
+ .hig-bar-mark [data-tone='info'] { --hig-bar-mark-color:var(--hig-info); }
843
+ .hig-bar-mark [data-tone='warning'] { --hig-bar-mark-color:var(--hig-warning); }
844
+ .hig-bar-mark [data-tone='negative'] { --hig-bar-mark-color:var(--hig-negative); }
845
+ .hig-bar-mark [data-tone='muted'] { --hig-bar-mark-color:var(--hig-muted); }
846
+ .hig-bar-mark [data-tone='faint'] { --hig-bar-mark-color:var(--hig-faint); }
847
+ @media(prefers-reduced-motion:reduce) { .hig-bar-mark-segment,.hig-bar-mark-rest { transition:none; } }
848
+ [data-hig-motion='reduced'] .hig-bar-mark-segment,[data-hig-motion='reduced'] .hig-bar-mark-rest { transition:none; }
849
+ @media(forced-colors:active) { .hig-bar-mark-segment,.hig-bar-mark-dot { forced-color-adjust:none; } }
526
850
  /* Reduced-motion stops for the selectors above, one per animated or transitioned selector in each preference path
527
851
  (tests/motion-css.test.ts). Elements portalled out of the provider carry data-hig-motion themselves and are stopped where they are styled. */
528
852
  @media(prefers-reduced-motion:reduce) {
@@ -542,3 +866,99 @@ p .hig-link { display:inline;min-height:0;min-width:0; }
542
866
  [data-hig-motion='reduced'] .hig-progress progress:not([value]) { animation:none; }
543
867
  [data-hig-motion='reduced'] .hig-spinner-indicator { animation:none; }
544
868
  [data-hig-motion='reduced'] .hig-status-indicator:is([data-state='online'],[data-state='stale'])::before { animation:none; }
869
+ .hig-list-group { display:flex;flex-direction:column;gap:8px;min-width:0; }
870
+ .hig-list-group-title { margin:0;padding-inline:4px;color:var(--hig-muted);font-size:.875rem;line-height:1.43;font-weight:500; }
871
+ .hig-list-group-rows { display:flex;flex-direction:column;gap:2px;margin:0;padding:0;list-style:none;border-radius:20px;overflow:hidden; }
872
+ .hig-list-row { appearance:none;box-sizing:border-box;display:flex;align-items:center;gap:12px;width:100%;min-height:56px;margin:0;padding:4px 20px;border:0;border-radius:0;background:var(--hig-fill);color:var(--hig-text);font:inherit;text-align:start;text-decoration:none; }
873
+ button.hig-list-row,a.hig-list-row { cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation; }
874
+ button.hig-list-row:active,a.hig-list-row:active { background:var(--hig-fill-raised); }
875
+ .hig-list-row:focus-visible { outline:2px solid var(--hig-focus,var(--hig-text));outline-offset:-2px; }
876
+ .hig-list-row:disabled,.hig-list-row[aria-disabled='true'] { cursor:default;opacity:.5; }
877
+ .hig-list-row-leading { flex:none;display:grid;place-items:center;color:var(--hig-muted); }
878
+ .hig-list-row-label { flex:1;min-width:0;overflow-wrap:anywhere; }
879
+ .hig-list-row-value { flex:none;max-width:50%;color:var(--hig-muted);text-align:end;overflow-wrap:anywhere; }
880
+ .hig-list-row-value[data-tone='positive'] { color:var(--hig-positive); }
881
+ .hig-list-row-value[data-tone='warning'] { color:var(--hig-warning); }
882
+ .hig-list-row-value[data-tone='negative'] { color:var(--hig-negative); }
883
+ .hig-list-row-trailing { flex:none;display:inline-flex;align-items:center;gap:8px;color:var(--hig-muted); }
884
+ .hig-list-row-trailing .hig-switch > span { position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0; }
885
+ /* The switch's own trailing padding would sit it short of the row's edge. */
886
+ .hig-list-row-trailing .hig-switch { gap:0;padding-inline:0;justify-content:flex-end; }
887
+ /* In a row that holds a switch, everything aligns to the first line of the label, so the switch stays at the top when the label wraps. */
888
+ .hig-list-row:has(> .hig-list-row-trailing .hig-switch) { align-items:flex-start; }
889
+ .hig-list-row:has(> .hig-list-row-trailing .hig-switch) > .hig-list-row-label { padding-block:calc((48px - 1.5em)/2); }
890
+ .hig-list-row:has(> .hig-list-row-trailing .hig-switch) > :is(.hig-list-row-leading,.hig-list-row-value,.hig-list-row-trailing) { min-height:48px; }
891
+ .hig-list-row:has(> .hig-list-row-trailing .hig-switch) > .hig-list-row-value { display:inline-flex;align-items:center;justify-content:flex-end; }
892
+ .hig-list-row-chevron { flex:none;color:var(--hig-muted); }
893
+ [dir='rtl'] .hig-list-row-chevron { transform:scaleX(-1); }
894
+ @media(hover:hover) and (pointer:fine) { button.hig-list-row:hover,a.hig-list-row:hover { background:var(--hig-fill-raised); } }
895
+ /* Additions: a description line, label tones, the selected check, the busy spinner and the whole-row switch. */
896
+ .hig-list-row-text { flex:1;display:flex;flex-direction:column;min-width:0;padding-block:6px; }
897
+ .hig-list-row-text > .hig-list-row-label { flex:none; }
898
+ .hig-list-row-description { min-width:0;color:var(--hig-muted);font-size:.875rem;line-height:1.43;overflow-wrap:anywhere; }
899
+ .hig-list-row:has(> .hig-list-row-trailing .hig-switch) > .hig-list-row-text { padding-block:calc((48px - 1.5em)/2); }
900
+ .hig-list-row-label[data-tone='destructive'] { color:var(--hig-negative); }
901
+ .hig-list-row-label[data-tone='muted'] { color:var(--hig-muted); }
902
+ .hig-list-row-check { flex:none;color:var(--hig-text); }
903
+ .hig-list-row-spinner { margin:2px;color:var(--hig-muted); }
904
+ .hig-list-row[aria-busy='true'] { cursor:progress; }
905
+ .hig-list-row[data-switch]:not([aria-disabled='true']) { cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation; }
906
+ .hig-list-group-header { display:flex;align-items:center;gap:12px;min-width:0; }
907
+ .hig-list-group-header > .hig-list-group-title { flex:1;min-width:0; }
908
+ .hig-list-group-header > .hig-list-group-action:first-child { margin-inline-start:auto; }
909
+ .hig-list-group-title[data-accessory] { display:flex;flex-wrap:wrap;align-items:baseline;gap:8px; }
910
+ .hig-list-group-title-accessory { min-width:0;font-variant-numeric:tabular-nums; }
911
+ .hig-list-group-action { appearance:none;position:relative;flex:none;min-width:44px;min-height:44px;margin-block:-12px;padding:0 4px;border:0;border-radius:var(--hig-radius-sm,6px);background:transparent;color:var(--hig-text);font:inherit;font-size:.875rem;line-height:1.43;font-weight:600;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation; }
912
+ .hig-list-group-action:disabled { opacity:.5;cursor:not-allowed; }
913
+ .hig-list-group-action:active:not(:disabled) { color:var(--hig-muted); }
914
+ .hig-list-group-intro { min-width:0;padding-inline:4px; }
915
+ .hig-segment > span.hig-press-decoration[data-kind] { min-height:0; }
916
+ .hig-field p[data-tone='positive'] { color:var(--hig-positive); }
917
+ .hig-search-input[data-trailing] > .hig-input { padding-inline-end:48px; }
918
+ .hig-search-input[data-trailing] > .hig-input::-webkit-search-cancel-button { display:none;-webkit-appearance:none; }
919
+ .hig-search-trailing { position:absolute;inset-block:0;inset-inline-end:0;display:flex;align-items:center;gap:4px; }
920
+ .hig-search-clear { appearance:none;position:relative;display:grid;place-items:center;min-width:var(--hig-button,44px);height:100%;margin:0;padding:0;border:0;border-radius:9999px;background:transparent;color:var(--hig-muted);cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation; }
921
+ .hig-search-clear > svg { width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round; }
922
+ .hig-search-clear:active:not(:disabled) { color:var(--hig-text); }
923
+ .hig-search-clear:disabled { opacity:.5;cursor:not-allowed; }
924
+ .hig-bar-pnl { display:flex;flex-direction:column;gap:12px;--hig-bar-pnl-tone:var(--hig-muted); }
925
+ /* The result follows the market direction roles (HIGProvider marketColors), which default to buy and sell. */
926
+ .hig-bar-pnl[data-result='profit'] { --hig-bar-pnl-tone:var(--hig-up,var(--hig-buy)); }
927
+ .hig-bar-pnl[data-result='loss'] { --hig-bar-pnl-tone:var(--hig-down,var(--hig-sell)); }
928
+ .hig-bar-pnl-bar { position:relative;display:flex;height:24px;border-radius:var(--hig-radius-md,8px);overflow:hidden; }
929
+ .hig-bar-pnl-rest,.hig-bar-pnl-move { flex:0 1 0;min-width:0;transition:flex-grow var(--hig-motion-duration-base) var(--hig-motion-easing-standard,ease); }
930
+ .hig-bar-pnl-rest { background:var(--hig-fill-raised); }
931
+ .hig-bar-pnl-move { box-sizing:border-box;min-width:6px;background:var(--hig-bar-pnl-tone);border-inline:3px solid var(--hig-text); }
932
+ .hig-bar-pnl-move[data-lead='mark'] { border-inline-start-color:var(--hig-bar-pnl-tone); }
933
+ .hig-bar-pnl-move[data-lead='entry'] { border-inline-end-color:var(--hig-bar-pnl-tone); }
934
+ .hig-bar-pnl-liquidation { position:absolute;inset-block:0;width:3px;margin-inline-start:-1.5px;background:var(--hig-negative);transition:inset-inline-start var(--hig-motion-duration-base) var(--hig-motion-easing-standard,ease); }
935
+ .hig-bar-pnl-liquidation[style*='start: 0%'] { margin-inline-start:0; }
936
+ .hig-bar-pnl-liquidation[style*='start: 100%'] { margin-inline-start:-3px; }
937
+ .hig-bar-pnl-readouts { display:flex;justify-content:space-between;gap:12px;margin:0; }
938
+ .hig-bar-pnl-readouts > div { display:flex;flex-direction:column-reverse;min-width:0; }
939
+ .hig-bar-pnl-readouts > div:last-child:not(:first-child) { align-items:flex-end;text-align:end; }
940
+ .hig-bar-pnl-readouts > div:nth-child(2):not(:last-child) { align-items:center;text-align:center; }
941
+ .hig-bar-pnl-readouts dt { color:var(--hig-muted);font-size:.75rem;line-height:1.33; }
942
+ .hig-bar-pnl-readouts dd { margin:0;font-weight:600; }
943
+ .hig-bar-pnl-readouts [data-kind='liquidation'] dd { color:var(--hig-negative); }
944
+ .hig-bar-pnl-readouts [data-kind='mark'] dd { color:var(--hig-bar-pnl-tone); }
945
+ .hig-bar-pnl[data-result='flat'] [data-kind='mark'] dd { color:var(--hig-text); }
946
+ @media(prefers-reduced-motion:reduce) { .hig-bar-pnl-rest,.hig-bar-pnl-move,.hig-bar-pnl-liquidation { transition:none; } }
947
+ [data-hig-motion='reduced'] .hig-bar-pnl-rest,[data-hig-motion='reduced'] .hig-bar-pnl-move,[data-hig-motion='reduced'] .hig-bar-pnl-liquidation { transition:none; }
948
+ @media(forced-colors:active) { .hig-bar-pnl-move,.hig-bar-pnl-liquidation { forced-color-adjust:none; } }
949
+ .hig-language-block { display:flex;flex-direction:column;gap:16px;min-width:0;color:var(--hig-text); }
950
+ .hig-language-list { display:flex;flex-direction:column;gap:4px;min-width:0; }
951
+ .hig-language-row { appearance:none;display:flex;align-items:center;gap:12px;width:100%;min-height:56px;margin:0;padding:8px 16px 8px 8px;border:0;border-radius:9999px;background:transparent;color:var(--hig-text);font:inherit;text-align:start;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation; }
952
+ .hig-language-row:active,.hig-language-row[data-active='true'] { background:var(--hig-fill); }
953
+ .hig-language-flag { flex:none;display:grid;place-items:center;width:40px;height:40px;border-radius:9999px;overflow:hidden;background:var(--hig-fill-raised);color:var(--hig-muted);font-size:.75rem;font-weight:600; }
954
+ .hig-language-flag > img,.hig-language-flag > svg { width:100%;height:100%;object-fit:cover; }
955
+ .hig-language-text { flex:1;display:flex;flex-direction:column;min-width:0;font-size:.875rem;line-height:1.43;color:var(--hig-muted);overflow-wrap:anywhere; }
956
+ .hig-language-text > strong { font-size:1rem;line-height:1.5;font-weight:600;color:var(--hig-text); }
957
+ .hig-language-check { flex:none;color:var(--hig-text); }
958
+ .hig-language-row:disabled { opacity:.5;cursor:not-allowed; }
959
+ @media(hover:hover) and (pointer:fine) { .hig-language-row:not(:disabled):hover { background:var(--hig-fill); } }
960
+ /* Press decoration: the host layer HIGProvider pressDecoration draws inside a pressable control. Out of flow, so it changes no
961
+ layout; it catches no pointer events itself, its children do. Zero specificity keeps a control that is already positioned as it is. */
962
+ :where(:has(> .hig-press-decoration)) { position:relative; }
963
+ span.hig-press-decoration[data-kind],.hig-list-row-trailing .hig-switch > span.hig-press-decoration[data-kind] { position:absolute;inset:0;display:block;width:auto;height:auto;margin:0;padding:0;border:0;border-radius:inherit;overflow:hidden;clip:auto;white-space:normal;pointer-events:none; }
964
+ span.hig-press-decoration[data-kind] > * { pointer-events:auto; }
@@ -1,5 +1,9 @@
1
1
  import React from 'react';
2
- export declare function Text(props: React.HTMLAttributes<HTMLParagraphElement>): React.JSX.Element;
2
+ export interface TextProps extends React.HTMLAttributes<HTMLParagraphElement> {
3
+ tone?: 'muted'; /** `caption` draws the 12/18 caption size instead of the 16/24 body size. */
4
+ size?: 'caption';
5
+ }
6
+ export declare function Text({ tone, size, ...props }: TextProps): React.JSX.Element;
3
7
  export declare function Heading({ level, ...props }: React.HTMLAttributes<HTMLHeadingElement> & {
4
8
  level?: 1 | 2 | 3 | 4 | 5 | 6;
5
9
  }): React.DetailedReactHTMLElement<{
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import React from 'react';
3
- export function Text(props) { return _jsx("p", { ...props, className: `hig-text ${props.className ?? ''}` }); }
3
+ export function Text({ tone, size, ...props }) { return _jsx("p", { "data-tone": tone, "data-size": size, ...props, className: `hig-text ${props.className ?? ''}` }); }
4
4
  export function Heading({ level = 2, ...props }) { return React.createElement(`h${level}`, { ...props, className: `hig-heading ${props.className ?? ''}` }); }
5
5
  export function Stack(props) { return _jsx("div", { ...props, className: `hig-stack ${props.className ?? ''}` }); }
6
6
  export function Inline(props) { return _jsx("div", { ...props, className: `hig-inline ${props.className ?? ''}` }); }
@@ -0,0 +1,23 @@
1
+ import React from 'react';
2
+ import { type AddressKind } from './data.js';
3
+ export { VerticalAddress, addressKind, type AddressKind } from './data.js';
4
+ export interface WalletAddressCoreProps {
5
+ address: string;
6
+ /** Row layout; inferred from the address when omitted (`0x…` is Ethereum-style). */
7
+ kind?: AddressKind;
8
+ /** The QR code, drawn by the host (its own encoder, or a `cuer` QR it renders itself), sized to `size`. It is named by the built-in “QR code” label, so keep the host's drawing hidden from assistive technology. */
9
+ qr: React.ReactNode;
10
+ /** QR edge in CSS pixels; default 196. The address column is exactly as tall. */
11
+ size?: number;
12
+ /** Host clipboard adapter. When set the whole component is one button that copies the address and shows the Tap to copy hint. */
13
+ onCopy?: () => Promise<void> | void;
14
+ /** `false` raises no “Address copied” notice and no status text after a copy, for a host that confirms the copy itself. Defaults to `true`. */
15
+ announce?: boolean;
16
+ className?: string;
17
+ style?: React.CSSProperties;
18
+ }
19
+ /**
20
+ * `WalletAddress` without the QR encoder: the host passes the code as `qr`, so the optional `cuer` peer is not needed.
21
+ * The address column, the copy button, its hint and the notice are the same as `WalletAddress` from `wallet-address`.
22
+ */
23
+ export declare function WalletAddress({ address, kind, qr, size, onCopy, announce, className, style }: WalletAddressCoreProps): React.JSX.Element;