@wix/himalaya-cli 0.1925.0 → 0.1927.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.
@@ -185,6 +185,8 @@ export declare function hstack(props: {
185
185
  spacing?: number;
186
186
  alignment?: "leading" | "center" | "trailing";
187
187
  alignBaseline?: boolean;
188
+ wrap?: boolean;
189
+ lineSpacing?: number;
188
190
  children: Component[];
189
191
  }, opts?: {
190
192
  id?: string;
@@ -206,7 +208,7 @@ export declare function text(text: string, style?: string, opts?: {
206
208
  animateReveal?: boolean;
207
209
  markdown?: boolean;
208
210
  textAlign?: "leading" | "center" | "trailing" | "justify";
209
- textDirection?: "auto" | "ltr" | "rtl";
211
+ textDirection?: "auto" | "autoInRtl" | "ltr" | "rtl";
210
212
  decoration?: "underline" | "strikethrough";
211
213
  lineSpacing?: number;
212
214
  minimumScaleFactor?: number;
@@ -587,6 +589,7 @@ export declare function button(props: {
587
589
  iconOnly?: boolean;
588
590
  cornerRadius?: number;
589
591
  minHeight?: number;
592
+ minWidth?: number;
590
593
  }, opts?: {
591
594
  id?: string;
592
595
  }): Component;
@@ -809,6 +812,7 @@ export declare function toggle(props: {
809
812
  thumb?: string;
810
813
  width?: number;
811
814
  height?: number;
815
+ fullWidth?: boolean;
812
816
  }, opts?: {
813
817
  id?: string;
814
818
  }): Component;
@@ -558,6 +558,12 @@ export interface HStackProps {
558
558
  /** Align the children on their first text baseline (a title beside a smaller date), in place of `alignment`; a
559
559
  * child with no text aligns by its bottom, as CSS synthesizes a baseline. */
560
560
  alignBaseline?: boolean;
561
+ /** Lay the children out at their own width and wrap onto the next line when the row runs out of room (label chips,
562
+ * mode chips), as CSS `flex-wrap` does. A wrapping row fills its container's width and its children keep their own
563
+ * width; weights and Spacers are for rows that do not wrap. */
564
+ wrap?: boolean;
565
+ /** The gap between a wrapping row's lines, in points/px (NOT a multiple of the line height); absent = `spacing`. */
566
+ lineSpacing?: number;
561
567
  }
562
568
  export interface ZStackProps {
563
569
  children: Component[];
@@ -991,6 +997,9 @@ export interface ButtonProps {
991
997
  minHeight?: number;
992
998
  /** Live loading bool; OR with literal loading. */
993
999
  loadingPath?: string;
1000
+ /** The visible minimum width of a button that keeps its own width, in place of the floor it has without one (web 64,
1001
+ * Android Material's 58; iOS draws none). 0 = no floor: the label and its padding. A share of a row wins over it. */
1002
+ minWidth?: number;
994
1003
  }
995
1004
  export type Keyboard = "default" | "email" | "phone" | "number" | "url" | "decimal";
996
1005
  export type AutoCapitalization = "none" | "words" | "sentences" | "characters";
@@ -1085,6 +1094,9 @@ export interface ToggleProps {
1085
1094
  width?: number;
1086
1095
  /** #1047 — track height (pt/dp/px). Absent = system size. */
1087
1096
  height?: number;
1097
+ /** `false`: the toggle keeps its own width (the switch, and its label beside it), never a share of a row or the
1098
+ * width of its column. Absent or `true`: a label and a switch spread across the width. Button's `fullWidth` twin. */
1099
+ fullWidth?: boolean;
1088
1100
  }
1089
1101
  export interface StepperProps {
1090
1102
  value: number;
@@ -382,6 +382,10 @@ export interface ButtonVariantToken {
382
382
  border?: string;
383
383
  /** The outline width; 0 = no outline. Absent ⇒ 1 for `secondary`, 0 otherwise. */
384
384
  borderWidth?: number;
385
+ /** The outline takes room outside the padding, as a CSS border does: the horizontal padding grows by `borderWidth`
386
+ * on each side. Absent ⇒ the outline sits inside the padding (web: where a small button's hit band draws it as an
387
+ * inset ring; a real border already sits outside). */
388
+ borderOutside?: boolean;
385
389
  /** Corner radius; wins over the size's `radius`. */
386
390
  radius?: number;
387
391
  }
@@ -401,6 +405,7 @@ export interface ResolvedButtonTokens {
401
405
  label?: string;
402
406
  border?: string;
403
407
  borderWidth?: number;
408
+ borderOutside?: boolean;
404
409
  }
405
410
  /**
406
411
  * #3491 — resolve `controls.button` for a Button of `size` and `style`. The shared rule every
@@ -8823,6 +8823,7 @@ function resolveButtonTokens(tokens, size, style) {
8823
8823
  set("label", nonEmpty3(own(v, "label")));
8824
8824
  set("border", nonEmpty3(own(v, "border")));
8825
8825
  set("borderWidth", nonNegative(own(v, "borderWidth")));
8826
+ set("borderOutside", own(v, "borderOutside") === true ? true : void 0);
8826
8827
  return out;
8827
8828
  }
8828
8829
  function buttonHitSlop(visibleHeight) {
@@ -2,7 +2,7 @@
2
2
  "files": [
3
3
  {
4
4
  "name": "sw.js",
5
- "bytes": 2813201
5
+ "bytes": 2814413
6
6
  },
7
7
  {
8
8
  "name": "host.html",
@@ -21,7 +21,7 @@
21
21
  "bytes": 24320
22
22
  },
23
23
  {
24
- "name": "preview-deferred/c519812171d71155719a8b4a26cd4e98fc4676d8fef66c107b0cc29d5e11a7ba.bin",
24
+ "name": "preview-deferred/95a3ae045bad903e458ea7a5800e60e1044f0f754a65d7127de66ba62e897068.bin",
25
25
  "bytes": 488215
26
26
  },
27
27
  {
@@ -79,10 +79,10 @@
79
79
  ],
80
80
  "deferred": [
81
81
  {
82
- "key": "assets/pdf-BvlUwkGg.js",
82
+ "key": "assets/pdf-BIVhHvLX.js",
83
83
  "contentType": "application/javascript; charset=utf-8",
84
- "sha256": "c519812171d71155719a8b4a26cd4e98fc4676d8fef66c107b0cc29d5e11a7ba",
85
- "file": "preview-deferred/c519812171d71155719a8b4a26cd4e98fc4676d8fef66c107b0cc29d5e11a7ba.bin"
84
+ "sha256": "95a3ae045bad903e458ea7a5800e60e1044f0f754a65d7127de66ba62e897068",
85
+ "file": "preview-deferred/95a3ae045bad903e458ea7a5800e60e1044f0f754a65d7127de66ba62e897068.bin"
86
86
  },
87
87
  {
88
88
  "key": "assets/pdf.worker.min-BGnVRhRG.js",