@atelic-action/ui 8.1.0 → 8.2.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.
package/src/types.ts CHANGED
@@ -205,8 +205,33 @@ export interface NavFeature {
205
205
 
206
206
  /** A number the header shows, with the words that say whose line it is. */
207
207
  export interface HeaderPhone extends Phone {
208
- /** Printed small over the number and read with it, e.g. "Mountain office". */
208
+ /**
209
+ * Printed small over the number in the desktop bar's phone pill and read
210
+ * with it, e.g. "Mountain office". The phone menu's line falls back to it.
211
+ */
209
212
  label?: string;
213
+ /**
214
+ * The phone menu's words for this number, when they should differ from
215
+ * the bar's `label`, e.g. "Call or text" for a line that answers texts.
216
+ * Defaults to `label`, then to "Call".
217
+ */
218
+ menuLabel?: string;
219
+ }
220
+
221
+ /**
222
+ * The phone menu's sheet: `dark`, the full screen sheet on the dark surface
223
+ * with large light links, or `light`, the page's own ground with the lockup
224
+ * and a round close button across the top, the entries as rows, and the call
225
+ * to action and the numbers in a foot on the alternate ground.
226
+ */
227
+ export type SiteMenuSurface = "dark" | "light";
228
+
229
+ /** How the burger that opens the phone menu is drawn. */
230
+ export interface MenuBurgerStyle {
231
+ /** Sets the three lines before the words (`menuLabel`) rather than after them. Off by default. */
232
+ labelAfter?: boolean;
233
+ /** Draws the burger inside an outlined pill. Off by default. */
234
+ outlined?: boolean;
210
235
  }
211
236
 
212
237
  /** A conversion action rendered as a button link. */
@@ -217,6 +242,12 @@ export interface CallToAction {
217
242
  external?: boolean;
218
243
  /** The header's button carries the arrow a hero's primary button shows. Off by default. */
219
244
  arrow?: boolean;
245
+ /**
246
+ * The phone menu's words for the action, when they should differ from
247
+ * `label` (a fuller "Order ahead for Saturday" where the bar says "Order
248
+ * ahead"). Defaults to `label`.
249
+ */
250
+ menuLabel?: string;
220
251
  }
221
252
 
222
253
  /** A footer or legal link that may open in a new tab. */