@tempoxyz/ds 0.3.14 → 0.3.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (209) hide show
  1. package/dist/docs/AGENTS.md +75 -10
  2. package/dist/docs/arsenal.md +44 -0
  3. package/dist/docs/{marketing/introduction/getting-started.md → marketing.md} +32 -24
  4. package/dist/docs/product/components/actions.md +2110 -0
  5. package/dist/docs/product/components/blockchain.md +3969 -0
  6. package/dist/docs/product/components/data-display.md +5901 -0
  7. package/dist/docs/product/components/feedback-and-status.md +4138 -0
  8. package/dist/docs/product/components/forms-and-inputs.md +10543 -0
  9. package/dist/docs/product/components/layout.md +3339 -0
  10. package/dist/docs/product/components/navigation.md +2914 -0
  11. package/dist/docs/product/components/overlays.md +4917 -0
  12. package/dist/docs/product/components.md +125 -125
  13. package/dist/docs/product/foundations.md +4597 -0
  14. package/dist/docs/product/patterns.md +10110 -0
  15. package/dist/marketing/index.js.zyzz.json +1 -1
  16. package/dist/marketing/vars.d.ts +618 -758
  17. package/dist/marketing/vars.d.ts.map +1 -1
  18. package/dist/marketing/vars.js +8 -5
  19. package/dist/marketing/vars.js.map +1 -1
  20. package/dist/marketing/vars.js.zyzz.json +1 -1
  21. package/dist/marketing/zyzz.config.d.ts +3042 -3757
  22. package/dist/marketing/zyzz.config.d.ts.map +1 -1
  23. package/dist/marketing/zyzz.config.js +1 -1
  24. package/dist/marketing/zyzz.config.js.map +1 -1
  25. package/dist/marketing/zyzz.config.js.zyzz.json +1 -1
  26. package/dist/mobile/components/Button.d.ts +115 -15
  27. package/dist/mobile/components/Button.d.ts.map +1 -1
  28. package/dist/mobile/components/Button.js +85 -14
  29. package/dist/mobile/components/Button.js.map +1 -1
  30. package/dist/mobile/components/IconButton.d.ts +129 -40
  31. package/dist/mobile/components/IconButton.d.ts.map +1 -1
  32. package/dist/mobile/components/IconButton.js +97 -28
  33. package/dist/mobile/components/IconButton.js.map +1 -1
  34. package/dist/mobile/components/TextInput.d.ts +132 -11
  35. package/dist/mobile/components/TextInput.d.ts.map +1 -1
  36. package/dist/mobile/components/TextInput.js +115 -14
  37. package/dist/mobile/components/TextInput.js.map +1 -1
  38. package/dist/mobile/index.d.ts +1 -0
  39. package/dist/mobile/index.d.ts.map +1 -1
  40. package/dist/mobile/index.js +1 -0
  41. package/dist/mobile/index.js.map +1 -1
  42. package/dist/mobile/vars.d.ts +103 -0
  43. package/dist/mobile/vars.d.ts.map +1 -1
  44. package/dist/mobile/vars.js +74 -0
  45. package/dist/mobile/vars.js.map +1 -1
  46. package/dist/mobile/zyzz.config.d.ts +408 -0
  47. package/dist/mobile/zyzz.config.d.ts.map +1 -1
  48. package/dist/web/components/AddressCard.js.zyzz.json +1 -1
  49. package/dist/web/components/Amount.css +1 -1
  50. package/dist/web/components/Amount.d.ts +9 -0
  51. package/dist/web/components/Amount.d.ts.map +1 -1
  52. package/dist/web/components/Amount.js +8 -5
  53. package/dist/web/components/Amount.js.map +1 -1
  54. package/dist/web/components/Amount.js.zyzz.json +1 -1
  55. package/dist/web/components/CopyButton.d.ts +6 -0
  56. package/dist/web/components/CopyButton.d.ts.map +1 -1
  57. package/dist/web/components/CopyButton.js +4 -1
  58. package/dist/web/components/CopyButton.js.map +1 -1
  59. package/dist/web/components/CopyButton.js.zyzz.json +1 -1
  60. package/dist/web/components/Hex.css +1 -1
  61. package/dist/web/components/Hex.d.ts +84 -3
  62. package/dist/web/components/Hex.d.ts.map +1 -1
  63. package/dist/web/components/Hex.js +20 -13
  64. package/dist/web/components/Hex.js.map +1 -1
  65. package/dist/web/components/Hex.js.zyzz.json +1 -1
  66. package/dist/web/components/Progress.css +1 -1
  67. package/dist/web/components/Progress.d.ts +12 -2
  68. package/dist/web/components/Progress.d.ts.map +1 -1
  69. package/dist/web/components/Progress.js +9 -5
  70. package/dist/web/components/Progress.js.map +1 -1
  71. package/dist/web/components/Progress.js.zyzz.json +1 -1
  72. package/dist/web/components/SecretValue.js.zyzz.json +1 -1
  73. package/dist/web/components/SidebarMenu.d.ts +4 -4
  74. package/dist/web/components/SidebarMenu.js +6 -6
  75. package/dist/web/components/SidebarMenu.js.map +1 -1
  76. package/dist/web/components/Snippet.js.zyzz.json +1 -1
  77. package/dist/web/index.js.zyzz.json +1 -1
  78. package/package.json +1 -1
  79. package/src/marketing/README.md +1 -1
  80. package/src/marketing/vars.ts +526 -604
  81. package/src/marketing/zyzz.config.ts +5 -4
  82. package/src/mobile/README.md +19 -6
  83. package/src/mobile/components/Button.tsx +94 -17
  84. package/src/mobile/components/IconButton.tsx +122 -30
  85. package/src/mobile/components/TextInput.tsx +139 -24
  86. package/src/mobile/index.ts +1 -0
  87. package/src/mobile/vars.ts +74 -0
  88. package/src/web/components/Amount.tsx +37 -3
  89. package/src/web/components/CopyButton.tsx +8 -0
  90. package/src/web/components/Hex.tsx +79 -13
  91. package/src/web/components/Progress.tsx +8 -2
  92. package/src/web/components/SidebarMenu.tsx +6 -6
  93. package/dist/docs/index.md +0 -145
  94. package/dist/docs/product/components/accordion.md +0 -489
  95. package/dist/docs/product/components/address-card.md +0 -147
  96. package/dist/docs/product/components/agent-logo.md +0 -194
  97. package/dist/docs/product/components/alert-dialog.md +0 -631
  98. package/dist/docs/product/components/alert.md +0 -448
  99. package/dist/docs/product/components/amount-input.md +0 -305
  100. package/dist/docs/product/components/amount.md +0 -794
  101. package/dist/docs/product/components/app-shell.md +0 -559
  102. package/dist/docs/product/components/asset-chip.md +0 -294
  103. package/dist/docs/product/components/autocomplete.md +0 -620
  104. package/dist/docs/product/components/avatar.md +0 -321
  105. package/dist/docs/product/components/badge.md +0 -339
  106. package/dist/docs/product/components/badged-logo.md +0 -116
  107. package/dist/docs/product/components/banner.md +0 -379
  108. package/dist/docs/product/components/bar-chart.md +0 -208
  109. package/dist/docs/product/components/breadcrumbs.md +0 -380
  110. package/dist/docs/product/components/button-group.md +0 -286
  111. package/dist/docs/product/components/button.md +0 -650
  112. package/dist/docs/product/components/calendar.md +0 -375
  113. package/dist/docs/product/components/callout.md +0 -96
  114. package/dist/docs/product/components/checkbox-group.md +0 -521
  115. package/dist/docs/product/components/checkbox.md +0 -467
  116. package/dist/docs/product/components/choice-group.md +0 -516
  117. package/dist/docs/product/components/choicebox.md +0 -641
  118. package/dist/docs/product/components/code.md +0 -100
  119. package/dist/docs/product/components/combobox.md +0 -939
  120. package/dist/docs/product/components/container.md +0 -257
  121. package/dist/docs/product/components/copy-button.md +0 -642
  122. package/dist/docs/product/components/date-picker.md +0 -514
  123. package/dist/docs/product/components/dialog.md +0 -1332
  124. package/dist/docs/product/components/drawer.md +0 -966
  125. package/dist/docs/product/components/empty.md +0 -340
  126. package/dist/docs/product/components/field.md +0 -570
  127. package/dist/docs/product/components/fieldset.md +0 -398
  128. package/dist/docs/product/components/frame.md +0 -434
  129. package/dist/docs/product/components/gauge.md +0 -299
  130. package/dist/docs/product/components/get-started-visual.md +0 -117
  131. package/dist/docs/product/components/grid.md +0 -288
  132. package/dist/docs/product/components/hero-visual.md +0 -155
  133. package/dist/docs/product/components/hex.md +0 -487
  134. package/dist/docs/product/components/icon-tile.md +0 -292
  135. package/dist/docs/product/components/identicon.md +0 -371
  136. package/dist/docs/product/components/inline.md +0 -233
  137. package/dist/docs/product/components/inset.md +0 -225
  138. package/dist/docs/product/components/kbd.md +0 -423
  139. package/dist/docs/product/components/list-group.md +0 -981
  140. package/dist/docs/product/components/loading-dots.md +0 -237
  141. package/dist/docs/product/components/menu.md +0 -934
  142. package/dist/docs/product/components/native-select.md +0 -204
  143. package/dist/docs/product/components/network-logo.md +0 -248
  144. package/dist/docs/product/components/number-field.md +0 -543
  145. package/dist/docs/product/components/otp-field.md +0 -616
  146. package/dist/docs/product/components/pagination.md +0 -516
  147. package/dist/docs/product/components/popover.md +0 -544
  148. package/dist/docs/product/components/progress.md +0 -388
  149. package/dist/docs/product/components/qr.md +0 -314
  150. package/dist/docs/product/components/radio-group.md +0 -528
  151. package/dist/docs/product/components/secret-value.md +0 -406
  152. package/dist/docs/product/components/select.md +0 -751
  153. package/dist/docs/product/components/separator.md +0 -379
  154. package/dist/docs/product/components/sidebar-menu.md +0 -922
  155. package/dist/docs/product/components/skeleton.md +0 -517
  156. package/dist/docs/product/components/slider.md +0 -539
  157. package/dist/docs/product/components/snippet.md +0 -424
  158. package/dist/docs/product/components/spinner.md +0 -216
  159. package/dist/docs/product/components/split-bar.md +0 -139
  160. package/dist/docs/product/components/split-button.md +0 -464
  161. package/dist/docs/product/components/stack.md +0 -299
  162. package/dist/docs/product/components/status-chip.md +0 -226
  163. package/dist/docs/product/components/status-indicator.md +0 -119
  164. package/dist/docs/product/components/status-row.md +0 -174
  165. package/dist/docs/product/components/stepper.md +0 -451
  166. package/dist/docs/product/components/success-hero.md +0 -157
  167. package/dist/docs/product/components/surface.md +0 -639
  168. package/dist/docs/product/components/switch.md +0 -472
  169. package/dist/docs/product/components/table.md +0 -968
  170. package/dist/docs/product/components/tabs.md +0 -627
  171. package/dist/docs/product/components/tempo-logo.md +0 -185
  172. package/dist/docs/product/components/text-input.md +0 -624
  173. package/dist/docs/product/components/textarea.md +0 -352
  174. package/dist/docs/product/components/toast.md +0 -535
  175. package/dist/docs/product/components/token-logo.md +0 -371
  176. package/dist/docs/product/components/token.md +0 -247
  177. package/dist/docs/product/components/tooltip.md +0 -490
  178. package/dist/docs/product/components/verification-code.md +0 -116
  179. package/dist/docs/product/components/visual.md +0 -249
  180. package/dist/docs/product/foundations/accessibility.md +0 -377
  181. package/dist/docs/product/foundations/agents.md +0 -159
  182. package/dist/docs/product/foundations/color.md +0 -522
  183. package/dist/docs/product/foundations/content/tone.md +0 -194
  184. package/dist/docs/product/foundations/content/voice.md +0 -194
  185. package/dist/docs/product/foundations/content/writing-style.md +0 -406
  186. package/dist/docs/product/foundations/iconography.md +0 -282
  187. package/dist/docs/product/foundations/intent.md +0 -360
  188. package/dist/docs/product/foundations/layout.md +0 -508
  189. package/dist/docs/product/foundations/linter.md +0 -523
  190. package/dist/docs/product/foundations/motion.md +0 -151
  191. package/dist/docs/product/foundations/radius-and-padding.md +0 -86
  192. package/dist/docs/product/foundations/typography.md +0 -331
  193. package/dist/docs/product/introduction/faq.md +0 -133
  194. package/dist/docs/product/introduction/getting-started.md +0 -377
  195. package/dist/docs/product/patterns/blockchain-values.md +0 -709
  196. package/dist/docs/product/patterns/dashboards.md +0 -638
  197. package/dist/docs/product/patterns/destructive-actions.md +0 -626
  198. package/dist/docs/product/patterns/empty-states.md +0 -612
  199. package/dist/docs/product/patterns/errors-and-validation.md +0 -808
  200. package/dist/docs/product/patterns/feedback-and-status.md +0 -518
  201. package/dist/docs/product/patterns/forms.md +0 -679
  202. package/dist/docs/product/patterns/loading.md +0 -630
  203. package/dist/docs/product/patterns/navigation.md +0 -397
  204. package/dist/docs/product/patterns/payments.md +0 -765
  205. package/dist/docs/product/patterns/responsive-layout.md +0 -997
  206. package/dist/docs/product/patterns/tables-and-lists.md +0 -1170
  207. package/dist/docs/product/products/tempo-console.md +0 -671
  208. package/dist/docs/product/products/tempo-performance.md +0 -435
  209. package/dist/docs/product/products/tempo-wallet.md +0 -438
@@ -1,11 +1,16 @@
1
+ /** Native icon actions with Plain, Surface, and Glass treatments. @module */
1
2
  import { type ComponentPropsWithRef, type ReactElement } from 'react';
2
- import { type ColorValue, Pressable } from 'react-native';
3
+ import { type ColorValue, Pressable, type ViewStyle } from 'react-native';
3
4
  import type * as zyzz from 'zyzz';
4
5
  /**
5
6
  * An icon-only `Pressable` with the `button` role. It sets its icon's color from `appearance` and
6
- * `variant`, and plays a light impact haptic before `onPress`. Pressed buttons render at 65%
7
- * opacity and disabled ones at 50%. Variants default to `appearance="base"`, `scale="medium"`,
8
- * `variant="primary"`.
7
+ * `variant`, and plays a light impact haptic before `onPress`. Defaults are `appearance="base"`,
8
+ * `scale="medium"`, and `variant="surface"`. Pressed and disabled states use dedicated colors.
9
+ *
10
+ * `large`, `medium`, and `small` map to Large, Default, and Small. `plain`, `surface`, and
11
+ * `glass` match the approved styles. Legacy `primary` and `secondary` map to Surface, and
12
+ * `tertiary` to Plain; `appearance="overlay"` with `secondary` maps to Glass. Glass preserves
13
+ * its fill, hairline, and shadow, but core React Native cannot provide the 20-point backdrop blur.
9
14
  *
10
15
  * - Name the action in `accessibilityLabel`, such as `Copy address`, since the icon has no text.
11
16
  * - `small` and `medium` are 32 and 40 points square. Add `hitSlop` to reach a 44-point touch
@@ -29,9 +34,11 @@ export declare namespace IconButton {
29
34
  type Props = Omit<ComponentPropsWithRef<typeof Pressable>, 'children'> & Omit<zyzz.Props.Variants<typeof styles.button>, 'state'> & {
30
35
  /** Required, since the icon provides no text alternative. */
31
36
  accessibilityLabel: string;
32
- /** A single icon element. The button replaces its `color` with the variant's icon color. */
37
+ /** A single icon; its color and 20-point (Small: 16-point) dimensions follow the design. */
33
38
  children: ReactElement<{
34
39
  color?: ColorValue | undefined;
40
+ height?: number | undefined;
41
+ width?: number | undefined;
35
42
  }>;
36
43
  };
37
44
  }
@@ -41,13 +48,11 @@ export declare namespace styles {
41
48
  readonly alignItems: "center";
42
49
  readonly borderRadius: "full";
43
50
  readonly justifyContent: "center";
44
- readonly paddingHorizontal: "none";
45
- readonly paddingVertical: "4";
46
51
  };
47
52
  readonly defaultVariants: {
48
53
  readonly appearance: "base";
49
54
  readonly scale: "medium";
50
- readonly variant: "primary";
55
+ readonly variant: "surface";
51
56
  };
52
57
  readonly variants: {
53
58
  readonly appearance: {
@@ -70,52 +75,103 @@ export declare namespace styles {
70
75
  };
71
76
  };
72
77
  readonly state: {
73
- readonly disabled: {
74
- readonly opacity: 0.5;
75
- };
76
- readonly pressed: {
77
- readonly opacity: 0.65;
78
- };
78
+ disabled: {};
79
+ pressed: {};
79
80
  };
80
81
  readonly variant: {
81
- readonly primary: {};
82
+ readonly glass: {
83
+ readonly backgroundColor: "material.ultrathin";
84
+ readonly borderColor: "component.iconButton.glass.border";
85
+ readonly borderWidth: "thin";
86
+ };
87
+ readonly plain: {};
88
+ readonly primary: {
89
+ readonly backgroundColor: "container.regular";
90
+ };
82
91
  readonly secondary: {
83
92
  readonly backgroundColor: "container.regular";
84
93
  };
94
+ readonly surface: {
95
+ readonly backgroundColor: "container.regular";
96
+ };
85
97
  readonly tertiary: {};
86
98
  };
87
99
  };
88
100
  readonly compoundVariants: readonly [{
89
101
  readonly when: {
90
- readonly appearance: "base";
91
- readonly variant: "primary";
102
+ readonly appearance: readonly ["inverse", "overlay"];
103
+ readonly variant: readonly ["primary", "secondary", "surface"];
92
104
  };
93
105
  readonly style: {
94
- backgroundColor: zyzz.Config.VariableReference<"color", "rgb(20.399999544024467 20.399999544024467 20.399999544024467 / 1)" | "rgb(255 255 255 / 1)">;
106
+ backgroundColor: zyzz.Config.VariableReference<"color", "rgb(0 0 0 / 0.03999999910593033)" | "rgb(255 255 255 / 0.11999999731779099)">;
107
+ };
108
+ }, {
109
+ readonly when: {
110
+ readonly appearance: "overlay";
111
+ readonly variant: "secondary";
112
+ };
113
+ readonly style: {
114
+ readonly backgroundColor: zyzz.Config.VariableReference<"color", "rgb(0 0 0 / 0.07999999821186066)" | "rgb(255 255 255 / 0.1599999964237213)">;
115
+ readonly borderColor: zyzz.Config.VariableReference<"color", "rgb(0 0 0 / 0.07999999821186066)" | "rgba(255, 255, 255, 0.05)">;
116
+ readonly borderWidth: "thin";
95
117
  };
96
118
  }, {
97
119
  readonly when: {
98
120
  readonly appearance: readonly ["inverse", "overlay"];
99
- readonly variant: "primary";
121
+ readonly variant: "glass";
100
122
  };
101
123
  readonly style: {
102
- readonly backgroundColor: "background.secondary";
124
+ backgroundColor: zyzz.Config.VariableReference<"color", "rgb(0 0 0 / 0.07999999821186066)" | "rgb(255 255 255 / 0.1599999964237213)">;
125
+ borderColor: zyzz.Config.VariableReference<"color", "rgb(0 0 0 / 0.07999999821186066)" | "rgba(255, 255, 255, 0.05)">;
103
126
  };
104
127
  }, {
105
128
  readonly when: {
106
- readonly appearance: "inverse";
107
- readonly variant: "secondary";
129
+ readonly state: "pressed";
108
130
  };
109
131
  readonly style: {
110
- backgroundColor: zyzz.Config.VariableReference<"color", "rgb(0 0 0 / 0.03999999910593033)" | "rgb(255 255 255 / 0.11999999731779099)">;
132
+ readonly backgroundColor: "container.strong";
133
+ };
134
+ }, {
135
+ readonly when: {
136
+ readonly appearance: readonly ["inverse", "overlay"];
137
+ readonly state: "pressed";
138
+ };
139
+ readonly style: {
140
+ backgroundColor: zyzz.Config.VariableReference<"color", "rgb(0 0 0 / 0.07999999821186066)" | "rgb(255 255 255 / 0.1599999964237213)">;
141
+ };
142
+ }, {
143
+ readonly when: {
144
+ readonly state: "disabled";
145
+ readonly variant: readonly ["primary", "secondary", "surface"];
146
+ };
147
+ readonly style: {
148
+ readonly backgroundColor: "#000000 !custom";
149
+ };
150
+ }, {
151
+ readonly when: {
152
+ readonly state: "disabled";
153
+ readonly variant: "glass";
154
+ };
155
+ readonly style: {
156
+ readonly backgroundColor: "container.regular";
111
157
  };
112
158
  }, {
113
159
  readonly when: {
114
160
  readonly appearance: "overlay";
161
+ readonly state: "disabled";
115
162
  readonly variant: "secondary";
116
163
  };
117
164
  readonly style: {
118
- readonly backgroundColor: "component.button.overlay.fill";
165
+ backgroundColor: zyzz.Config.VariableReference<"color", "rgb(0 0 0 / 0.03999999910593033)" | "rgb(255 255 255 / 0.11999999731779099)">;
166
+ };
167
+ }, {
168
+ readonly when: {
169
+ readonly appearance: readonly ["inverse", "overlay"];
170
+ readonly state: "disabled";
171
+ readonly variant: "glass";
172
+ };
173
+ readonly style: {
174
+ backgroundColor: zyzz.Config.VariableReference<"color", "rgb(0 0 0 / 0.03999999910593033)" | "rgb(255 255 255 / 0.11999999731779099)">;
119
175
  };
120
176
  }];
121
177
  }, "react">;
@@ -125,10 +181,10 @@ export declare namespace styles {
125
181
  };
126
182
  readonly defaultVariants: {
127
183
  readonly appearance: "base";
128
- readonly variant: "primary";
184
+ readonly scale: "medium";
129
185
  };
130
186
  readonly variants: {
131
- appearance: {
187
+ readonly appearance: {
132
188
  base: {};
133
189
  inverse: {
134
190
  color: zyzz.Config.VariableReference<"color", "rgb(0 0 0 / 1)" | "rgb(255 255 255 / 1)">;
@@ -137,29 +193,62 @@ export declare namespace styles {
137
193
  color: zyzz.Config.VariableReference<"color", "rgb(0 0 0 / 1)" | "rgb(255 255 255 / 1)">;
138
194
  };
139
195
  };
140
- variant: {
141
- primary: {};
142
- secondary: {};
143
- tertiary: {};
196
+ readonly scale: {
197
+ readonly large: {
198
+ readonly height: "20";
199
+ readonly width: "20";
200
+ };
201
+ readonly medium: {
202
+ readonly height: "20";
203
+ readonly width: "20";
204
+ };
205
+ readonly small: {
206
+ readonly height: "16";
207
+ readonly width: "16";
208
+ };
209
+ };
210
+ readonly state: {
211
+ readonly disabled: {
212
+ readonly color: "component.control.content.tertiary";
213
+ };
214
+ readonly pressed: {};
144
215
  };
145
216
  };
146
217
  readonly compoundVariants: readonly [{
147
- readonly when: {
148
- readonly appearance: "base";
149
- readonly variant: "primary";
150
- };
151
- readonly style: {
152
- color: zyzz.Config.VariableReference<"color", "rgb(0 0 0 / 1)" | "rgb(255 255 255 / 1)">;
153
- };
154
- }, {
155
218
  readonly when: {
156
219
  readonly appearance: readonly ["inverse", "overlay"];
157
- readonly variant: "primary";
220
+ readonly state: "disabled";
158
221
  };
159
222
  readonly style: {
160
- readonly color: "content.primary";
223
+ color: zyzz.Config.VariableReference<"color", "rgb(0 0 0 / 0.4000000059604645)" | "rgb(255 255 255 / 0.5199999809265137)">;
161
224
  };
162
225
  }];
163
226
  }, "react">;
227
+ /** Builds the native shadow without converting CSS blur into iOS shadowRadius. */
228
+ function shadow(options: shadow.Options): ViewStyle | undefined;
229
+ namespace shadow {
230
+ /** The variant and Provider-resolved shadow color used by the native control. */
231
+ type Options = Pick<zyzz.Props.Variants<typeof button>, 'appearance' | 'variant'> & {
232
+ /** A native color, including dynamic iOS colors, from the compiled shadowColor recipe. */
233
+ color: ColorValue;
234
+ };
235
+ }
236
+ /** Resolves shadow color through the same Provider and appearance as the native icon. */
237
+ const shadowColor: zyzz.variants.ReturnType<{
238
+ readonly base: {
239
+ readonly color: "component.iconButton.glass.shadow";
240
+ };
241
+ readonly variants: {
242
+ appearance: {
243
+ base: {};
244
+ inverse: {
245
+ color: zyzz.Config.VariableReference<"color", "rgb(0 0 0 / 0.11999999731779099)" | "rgb(0 0 0 / 0.23999999463558197)">;
246
+ };
247
+ overlay: {
248
+ color: zyzz.Config.VariableReference<"color", "rgb(0 0 0 / 0.11999999731779099)" | "rgb(0 0 0 / 0.23999999463558197)">;
249
+ };
250
+ };
251
+ };
252
+ }, "react">;
164
253
  }
165
254
  //# sourceMappingURL=IconButton.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../../src/mobile/components/IconButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAgB,KAAK,qBAAqB,EAAE,KAAK,YAAY,EAAE,MAAM,OAAO,CAAA;AACnF,OAAO,EAAE,KAAK,UAAU,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AACzD,OAAO,KAAK,KAAK,IAAI,MAAM,MAAM,CAAA;AAMjC;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,KAAK,+BA6BjD;AAED,yBAAiB,UAAU,CAAC;IAC1B,KAAY,KAAK,GAAG,IAAI,CAAC,qBAAqB,CAAC,OAAO,SAAS,CAAC,EAAE,UAAU,CAAC,GAC3E,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,OAAO,MAAM,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC,GAAG;QACzD,6DAA6D;QAC7D,kBAAkB,EAAE,MAAM,CAAA;QAC1B,4FAA4F;QAC5F,QAAQ,EAAE,YAAY,CAAC;YAAE,KAAK,CAAC,EAAE,UAAU,GAAG,SAAS,CAAA;SAAE,CAAC,CAAA;KAC3D,CAAA;CACJ;AAED,yBAAiB,MAAM,CAAC;IACf,MAAM,M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,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;SAC3B,CAAC,CAAA;KACH,CAAA;CACJ;AAED,yBAAiB,MAAM,CAAC;IACf,MAAM,MAAM;;;;;;;;;;;;;gBASC,IAAI;gBAAM,OAAO;gBAAM,OAAO;;;;;;;;;;;;;;;;;gBAMnC,QAAQ;gBAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;gBAoBnB,eAAe;;;;;;;;;;;;;;;;;;gBAatB,eAAe;gBACf,WAAW;;;;;;;;;;;;;;;gBASJ,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;gBAaf,eAAe;;;;;;;;;gBAIf,eAAe;;;eAK/B,CAAA;IAEM,MAAM,IAAI;;;;;;;;;;gBAMT,IAAI;gBACJ,OAAO;oBAAI,KAAK;;gBAChB,OAAO;oBAAI,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBAYP,KAAK;;;eAKrB,CAAA;IAED,kFAAkF;IAClF,SAAgB,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,OAAO,GAAG,SAAS,GAAG,SAAS,CAQrE;IAED,UAAyB,MAAM,CAAC;QAC9B,iFAAiF;QACjF,KAAK,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,OAAO,MAAM,CAAC,EAAE,YAAY,GAAG,SAAS,CAAC,GAAG;YAClF,0FAA0F;YAC1F,KAAK,EAAE,UAAU,CAAA;SAClB,CAAA;KACF;IAED,yFAAyF;IAClF,MAAM,WAAW;;;;;YAIlB,UAAU;gBACR,IAAI;gBACJ,OAAO;oBAAI,KAAK;;gBAChB,OAAO;oBAAI,KAAK;;;;eAKvB,CAAA;CACF"}
@@ -1,4 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
+ /** Native icon actions with Plain, Surface, and Glass treatments. @module */
2
3
  import { cloneElement } from 'react';
3
4
  import { Pressable } from 'react-native';
4
5
  import * as Haptics from '../Haptics.js';
@@ -7,9 +8,13 @@ import { inverse } from '../vars.js';
7
8
  import { variants } from '../zyzz.config.js';
8
9
  /**
9
10
  * An icon-only `Pressable` with the `button` role. It sets its icon's color from `appearance` and
10
- * `variant`, and plays a light impact haptic before `onPress`. Pressed buttons render at 65%
11
- * opacity and disabled ones at 50%. Variants default to `appearance="base"`, `scale="medium"`,
12
- * `variant="primary"`.
11
+ * `variant`, and plays a light impact haptic before `onPress`. Defaults are `appearance="base"`,
12
+ * `scale="medium"`, and `variant="surface"`. Pressed and disabled states use dedicated colors.
13
+ *
14
+ * `large`, `medium`, and `small` map to Large, Default, and Small. `plain`, `surface`, and
15
+ * `glass` match the approved styles. Legacy `primary` and `secondary` map to Surface, and
16
+ * `tertiary` to Plain; `appearance="overlay"` with `secondary` maps to Glass. Glass preserves
17
+ * its fill, hairline, and shadow, but core React Native cannot provide the 20-point backdrop blur.
13
18
  *
14
19
  * - Name the action in `accessibilityLabel`, such as `Copy address`, since the icon has no text.
15
20
  * - `small` and `medium` are 32 and 40 points square. Add `hitSlop` to reach a 44-point touch
@@ -30,8 +35,13 @@ import { variants } from '../zyzz.config.js';
30
35
  */
31
36
  export function IconButton(props) {
32
37
  const { appearance, children, disabled, scale, variant, ...pressableProps } = props;
33
- const color = useColor(styles.icon({ appearance, variant }).style);
34
- return (_jsx(Pressable, { accessibilityRole: "button", ...pressableProps, disabled: disabled, onPress: (event) => {
38
+ const color = useColor(styles.icon({ appearance, state: disabled ? 'disabled' : undefined }).style);
39
+ const shadowColor = useColor(styles.shadowColor({ appearance }).style);
40
+ const size = scale === 'small' ? 16 : 20;
41
+ return (_jsx(Pressable, { accessibilityRole: "button", ...pressableProps, accessibilityState: {
42
+ ...props.accessibilityState,
43
+ disabled: Boolean(disabled) || props.accessibilityState?.disabled,
44
+ }, disabled: disabled, onPress: (event) => {
35
45
  Haptics.press();
36
46
  props.onPress?.(event);
37
47
  }, style: (state) => [
@@ -45,8 +55,9 @@ export function IconButton(props) {
45
55
  })(),
46
56
  variant,
47
57
  }).style,
58
+ styles.shadow({ appearance, color: shadowColor, variant }),
48
59
  typeof props.style === 'function' ? props.style(state) : props.style,
49
- ], children: cloneElement(children, { color }) }));
60
+ ], children: cloneElement(children, { color, height: size, width: size }) }));
50
61
  }
51
62
  export var styles;
52
63
  (function (styles) {
@@ -55,10 +66,8 @@ export var styles;
55
66
  alignItems: 'center',
56
67
  borderRadius: 'full',
57
68
  justifyContent: 'center',
58
- paddingHorizontal: 'none',
59
- paddingVertical: '4',
60
69
  },
61
- defaultVariants: { appearance: 'base', scale: 'medium', variant: 'primary' },
70
+ defaultVariants: { appearance: 'base', scale: 'medium', variant: 'surface' },
62
71
  variants: {
63
72
  appearance: { base: {}, inverse: {}, overlay: {} },
64
73
  scale: {
@@ -66,51 +75,111 @@ export var styles;
66
75
  medium: { height: '40', width: '40' },
67
76
  small: { height: '32', width: '32' },
68
77
  },
69
- // Figma defines no pressed or disabled IconButton, so both states dim the resting variant.
70
- state: { disabled: { opacity: 0.5 }, pressed: { opacity: 0.65 } },
71
- variant: { primary: {}, secondary: { backgroundColor: 'container.regular' }, tertiary: {} },
78
+ state: { disabled: {}, pressed: {} },
79
+ variant: {
80
+ glass: {
81
+ backgroundColor: 'material.ultrathin',
82
+ borderColor: 'component.iconButton.glass.border',
83
+ borderWidth: 'thin',
84
+ },
85
+ plain: {},
86
+ primary: { backgroundColor: 'container.regular' },
87
+ secondary: { backgroundColor: 'container.regular' },
88
+ surface: { backgroundColor: 'container.regular' },
89
+ tertiary: {},
90
+ },
72
91
  },
73
92
  compoundVariants: [
74
93
  {
75
- when: { appearance: 'base', variant: 'primary' },
76
- style: { backgroundColor: inverse.color.background.secondary },
94
+ when: {
95
+ appearance: ['inverse', 'overlay'],
96
+ variant: ['primary', 'secondary', 'surface'],
97
+ },
98
+ style: { backgroundColor: inverse.color.container.regular },
77
99
  },
78
100
  {
79
- when: { appearance: ['inverse', 'overlay'], variant: 'primary' },
80
- style: { backgroundColor: 'background.secondary' },
101
+ when: { appearance: 'overlay', variant: 'secondary' },
102
+ style: {
103
+ backgroundColor: inverse.color.material.ultrathin,
104
+ borderColor: inverse.color.component.iconButton.glass.border,
105
+ borderWidth: 'thin',
106
+ },
81
107
  },
82
108
  {
83
- when: { appearance: 'inverse', variant: 'secondary' },
109
+ when: { appearance: ['inverse', 'overlay'], variant: 'glass' },
110
+ style: {
111
+ backgroundColor: inverse.color.material.ultrathin,
112
+ borderColor: inverse.color.component.iconButton.glass.border,
113
+ },
114
+ },
115
+ {
116
+ when: { state: 'pressed' },
117
+ style: { backgroundColor: 'container.strong' },
118
+ },
119
+ {
120
+ when: { appearance: ['inverse', 'overlay'], state: 'pressed' },
121
+ style: { backgroundColor: inverse.color.container.strong },
122
+ },
123
+ {
124
+ // Figma renders a literal black disabled fill despite its regular-fill binding.
125
+ when: { state: 'disabled', variant: ['primary', 'secondary', 'surface'] },
126
+ style: { backgroundColor: '#000000 !custom' },
127
+ },
128
+ {
129
+ when: { state: 'disabled', variant: 'glass' },
130
+ style: { backgroundColor: 'container.regular' },
131
+ },
132
+ {
133
+ when: { appearance: 'overlay', state: 'disabled', variant: 'secondary' },
84
134
  style: { backgroundColor: inverse.color.container.regular },
85
135
  },
86
136
  {
87
- // React Native has no backdrop blur, so the overlay keeps only its translucent fill.
88
- when: { appearance: 'overlay', variant: 'secondary' },
89
- style: { backgroundColor: 'component.button.overlay.fill' },
137
+ when: { appearance: ['inverse', 'overlay'], state: 'disabled', variant: 'glass' },
138
+ style: { backgroundColor: inverse.color.container.regular },
90
139
  },
91
140
  ],
92
141
  }, { id: 'tds/mobile/icon-button' });
93
142
  styles.icon = variants({
94
143
  base: { color: 'content.primary' },
95
- defaultVariants: { appearance: 'base', variant: 'primary' },
144
+ defaultVariants: { appearance: 'base', scale: 'medium' },
96
145
  variants: {
97
146
  appearance: {
98
147
  base: {},
99
148
  inverse: { color: inverse.color.content.primary },
100
149
  overlay: { color: inverse.color.content.primary },
101
150
  },
102
- variant: { primary: {}, secondary: {}, tertiary: {} },
151
+ scale: {
152
+ large: { height: '20', width: '20' },
153
+ medium: { height: '20', width: '20' },
154
+ small: { height: '16', width: '16' },
155
+ },
156
+ state: { disabled: { color: 'component.control.content.tertiary' }, pressed: {} },
103
157
  },
104
158
  compoundVariants: [
105
159
  {
106
- when: { appearance: 'base', variant: 'primary' },
107
- style: { color: inverse.color.content.primary },
108
- },
109
- {
110
- when: { appearance: ['inverse', 'overlay'], variant: 'primary' },
111
- style: { color: 'content.primary' },
160
+ when: { appearance: ['inverse', 'overlay'], state: 'disabled' },
161
+ style: { color: inverse.color.component.control.content.tertiary },
112
162
  },
113
163
  ],
114
164
  }, { id: 'tds/mobile/icon-button/icon' });
165
+ /** Builds the native shadow without converting CSS blur into iOS shadowRadius. */
166
+ function shadow(options) {
167
+ if (options.variant !== 'glass' &&
168
+ !(options.appearance === 'overlay' && options.variant === 'secondary'))
169
+ return undefined;
170
+ return { boxShadow: [{ blurRadius: 20, color: options.color, offsetX: 0, offsetY: 8 }] };
171
+ }
172
+ styles.shadow = shadow;
173
+ /** Resolves shadow color through the same Provider and appearance as the native icon. */
174
+ styles.shadowColor = variants({
175
+ base: { color: 'component.iconButton.glass.shadow' },
176
+ variants: {
177
+ appearance: {
178
+ base: {},
179
+ inverse: { color: inverse.color.component.iconButton.glass.shadow },
180
+ overlay: { color: inverse.color.component.iconButton.glass.shadow },
181
+ },
182
+ },
183
+ }, { id: 'tds/mobile/icon-button/shadow-color' });
115
184
  })(styles || (styles = {}));
116
185
  //# sourceMappingURL=IconButton.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"IconButton.js","sourceRoot":"","sources":["../../../src/mobile/components/IconButton.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAiD,MAAM,OAAO,CAAA;AACnF,OAAO,EAAmB,SAAS,EAAE,MAAM,cAAc,CAAA;AAEzD,OAAO,KAAK,OAAO,MAAM,eAAe,CAAA;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;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