@tempoxyz/ds 0.3.15 → 0.3.17

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 (130) hide show
  1. package/dist/docs/AGENTS.md +10 -6
  2. package/dist/docs/arsenal.md +44 -0
  3. package/dist/docs/marketing.md +703 -4
  4. package/dist/docs/product/components/actions.md +53 -1
  5. package/dist/docs/product/components/blockchain.md +147 -3
  6. package/dist/docs/product/components/feedback-and-status.md +137 -7
  7. package/dist/docs/product/components/navigation.md +1 -1
  8. package/dist/docs/product/documents.md +225 -0
  9. package/dist/docs/product/foundations.md +2 -1
  10. package/dist/docs/product/patterns.md +3 -22
  11. package/dist/document/Document.d.ts +46 -0
  12. package/dist/document/Document.d.ts.map +1 -0
  13. package/dist/document/Document.js +190 -0
  14. package/dist/document/Document.js.map +1 -0
  15. package/dist/document/Enhance.d.ts +13 -0
  16. package/dist/document/Enhance.d.ts.map +1 -0
  17. package/dist/document/Enhance.js +421 -0
  18. package/dist/document/Enhance.js.map +1 -0
  19. package/dist/document/bin.d.ts +3 -0
  20. package/dist/document/bin.d.ts.map +1 -0
  21. package/dist/document/bin.js +38 -0
  22. package/dist/document/bin.js.map +1 -0
  23. package/dist/document/document.css +373 -0
  24. package/dist/document/index.d.ts +3 -0
  25. package/dist/document/index.d.ts.map +1 -0
  26. package/dist/document/index.js +3 -0
  27. package/dist/document/index.js.map +1 -0
  28. package/dist/document/internal/Cli.d.ts +43 -0
  29. package/dist/document/internal/Cli.d.ts.map +1 -0
  30. package/dist/document/internal/Cli.js +87 -0
  31. package/dist/document/internal/Cli.js.map +1 -0
  32. package/dist/document/internal/Template.d.ts +21 -0
  33. package/dist/document/internal/Template.d.ts.map +1 -0
  34. package/dist/document/internal/Template.js +15 -0
  35. package/dist/document/internal/Template.js.map +1 -0
  36. package/dist/document/script.d.ts +2 -0
  37. package/dist/document/script.d.ts.map +1 -0
  38. package/dist/document/script.js +379 -0
  39. package/dist/document/templates/brief.html +96 -0
  40. package/dist/document/templates/essay.html +70 -0
  41. package/dist/document/templates/post.html +69 -0
  42. package/dist/marketing/index.js.zyzz.json +1 -1
  43. package/dist/marketing/vars.d.ts +618 -758
  44. package/dist/marketing/vars.d.ts.map +1 -1
  45. package/dist/marketing/vars.js +8 -5
  46. package/dist/marketing/vars.js.map +1 -1
  47. package/dist/marketing/vars.js.zyzz.json +1 -1
  48. package/dist/marketing/zyzz.config.d.ts +3042 -3757
  49. package/dist/marketing/zyzz.config.d.ts.map +1 -1
  50. package/dist/marketing/zyzz.config.js +1 -1
  51. package/dist/marketing/zyzz.config.js.map +1 -1
  52. package/dist/marketing/zyzz.config.js.zyzz.json +1 -1
  53. package/dist/mobile/components/Button.d.ts +115 -15
  54. package/dist/mobile/components/Button.d.ts.map +1 -1
  55. package/dist/mobile/components/Button.js +85 -14
  56. package/dist/mobile/components/Button.js.map +1 -1
  57. package/dist/mobile/components/IconButton.d.ts +129 -40
  58. package/dist/mobile/components/IconButton.d.ts.map +1 -1
  59. package/dist/mobile/components/IconButton.js +97 -28
  60. package/dist/mobile/components/IconButton.js.map +1 -1
  61. package/dist/mobile/components/TextInput.d.ts +132 -11
  62. package/dist/mobile/components/TextInput.d.ts.map +1 -1
  63. package/dist/mobile/components/TextInput.js +115 -14
  64. package/dist/mobile/components/TextInput.js.map +1 -1
  65. package/dist/mobile/index.d.ts +1 -0
  66. package/dist/mobile/index.d.ts.map +1 -1
  67. package/dist/mobile/index.js +1 -0
  68. package/dist/mobile/index.js.map +1 -1
  69. package/dist/mobile/vars.d.ts +103 -0
  70. package/dist/mobile/vars.d.ts.map +1 -1
  71. package/dist/mobile/vars.js +74 -0
  72. package/dist/mobile/vars.js.map +1 -1
  73. package/dist/mobile/zyzz.config.d.ts +408 -0
  74. package/dist/mobile/zyzz.config.d.ts.map +1 -1
  75. package/dist/web/components/AddressCard.js.zyzz.json +1 -1
  76. package/dist/web/components/Amount.css +1 -1
  77. package/dist/web/components/Amount.d.ts +9 -0
  78. package/dist/web/components/Amount.d.ts.map +1 -1
  79. package/dist/web/components/Amount.js +8 -5
  80. package/dist/web/components/Amount.js.map +1 -1
  81. package/dist/web/components/Amount.js.zyzz.json +1 -1
  82. package/dist/web/components/CopyButton.d.ts +6 -0
  83. package/dist/web/components/CopyButton.d.ts.map +1 -1
  84. package/dist/web/components/CopyButton.js +4 -1
  85. package/dist/web/components/CopyButton.js.map +1 -1
  86. package/dist/web/components/CopyButton.js.zyzz.json +1 -1
  87. package/dist/web/components/Hex.css +1 -1
  88. package/dist/web/components/Hex.d.ts +84 -3
  89. package/dist/web/components/Hex.d.ts.map +1 -1
  90. package/dist/web/components/Hex.js +20 -13
  91. package/dist/web/components/Hex.js.map +1 -1
  92. package/dist/web/components/Hex.js.zyzz.json +1 -1
  93. package/dist/web/components/Progress.css +1 -1
  94. package/dist/web/components/Progress.d.ts +12 -2
  95. package/dist/web/components/Progress.d.ts.map +1 -1
  96. package/dist/web/components/Progress.js +9 -5
  97. package/dist/web/components/Progress.js.map +1 -1
  98. package/dist/web/components/Progress.js.zyzz.json +1 -1
  99. package/dist/web/components/SecretValue.js.zyzz.json +1 -1
  100. package/dist/web/components/SidebarMenu.d.ts +4 -4
  101. package/dist/web/components/SidebarMenu.js +6 -6
  102. package/dist/web/components/SidebarMenu.js.map +1 -1
  103. package/dist/web/components/Snippet.js.zyzz.json +1 -1
  104. package/dist/web/index.js.zyzz.json +1 -1
  105. package/package.json +19 -1
  106. package/src/document/Document.ts +277 -0
  107. package/src/document/Enhance.ts +434 -0
  108. package/src/document/bin.ts +38 -0
  109. package/src/document/document.css +373 -0
  110. package/src/document/index.ts +2 -0
  111. package/src/document/internal/Cli.ts +132 -0
  112. package/src/document/internal/Template.ts +25 -0
  113. package/src/document/script.ts +8 -0
  114. package/src/document/templates/brief.html +96 -0
  115. package/src/document/templates/essay.html +70 -0
  116. package/src/document/templates/post.html +69 -0
  117. package/src/marketing/README.md +1 -1
  118. package/src/marketing/vars.ts +526 -604
  119. package/src/marketing/zyzz.config.ts +5 -4
  120. package/src/mobile/README.md +19 -6
  121. package/src/mobile/components/Button.tsx +94 -17
  122. package/src/mobile/components/IconButton.tsx +122 -30
  123. package/src/mobile/components/TextInput.tsx +139 -24
  124. package/src/mobile/index.ts +1 -0
  125. package/src/mobile/vars.ts +74 -0
  126. package/src/web/components/Amount.tsx +37 -3
  127. package/src/web/components/CopyButton.tsx +8 -0
  128. package/src/web/components/Hex.tsx +79 -13
  129. package/src/web/components/Progress.tsx +8 -2
  130. package/src/web/components/SidebarMenu.tsx +6 -6
@@ -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,MAAM;;;;;;;;;;;;;;;gBAWC,IAAI;gBAAM,OAAO;gBAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBAajC,eAAe;;;;;;;;;;;;;;;;gBAQf,eAAe;;;;;;;;;;;eAU/B,CAAA;IAEM,MAAM,IAAI;;;;;;;;;YAKX,UAAU;gBACR,IAAI;gBACJ,OAAO;oBAAI,KAAK;;gBAChB,OAAO;oBAAI,KAAK;;;YAElB,OAAO;gBAAI,OAAO;gBAAM,SAAS;gBAAM,QA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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;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAE5C;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,UAAU,UAAU,CAAC,KAAuB;IAChD,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,cAAc,EAAE,GAAG,KAAK,CAAA;IACnF,MAAM,KAAK,GAAG,QAAQ,CAAC,MA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