@fusion.dev/helix-headless 0.49.1 → 0.51.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/types/vue.d.ts CHANGED
@@ -1006,6 +1006,29 @@ attribute is the one answer to how wide a pane is.
1006
1006
  A value the track cannot honor is taken to the nearest one it can, by
1007
1007
  `across`, and both tiers read that rather than this.
1008
1008
 
1009
+ **`auto` fits as many as the track can hold**, at `--carousel-slide-min`
1010
+ apiece, and nothing is written onto the track: the count is the sheet's,
1011
+ and the sheet's alone, because it is the one number here CSS can work out
1012
+ for itself. Everything it takes is a length the sheet already has, so the
1013
+ panes are laid out at their final width by the first rule that runs, on a
1014
+ server's markup as on the client's, and no script is waited on. That is the
1015
+ whole reason a declared count was ever the only option: a carousel that
1016
+ asks how wide its container is can only ask on the client, so the panes go
1017
+ down at one width and move to another when the answer arrives. Written
1018
+ inline the count would outrank the sheet that computes it, which is why an
1019
+ `auto` track is handed nothing. A count stays for the design that calls for
1020
+ exactly three.
1021
+
1022
+ The styled sheet says how it divides, and the headless `auto` example
1023
+ carries the same three lines for a consumer writing their own.
1024
+
1025
+ **A value rather than the resting behavior**, which is what the
1026
+ responsiveness policy asks of every axis that a box decides: a splitter
1027
+ turns on `orientation="auto"` and a plain one does not turn at all. Fitting
1028
+ changes what the carousel *does*, since how many are across is how many
1029
+ places the track can stop, so a carousel that had not asked for it would
1030
+ find its position count moving with the window.
1031
+
1009
1032
  No default, because it reflects. A reflected property with a value writes
1010
1033
  its attribute on upgrade, and the host then carries something a consumer's
1011
1034
  server markup never had, which React reports as a mismatch. The one-across
@@ -1043,6 +1066,29 @@ attribute is the one answer to how wide a pane is.
1043
1066
  A value the track cannot honor is taken to the nearest one it can, by
1044
1067
  `across`, and both tiers read that rather than this.
1045
1068
 
1069
+ **`auto` fits as many as the track can hold**, at `--carousel-slide-min`
1070
+ apiece, and nothing is written onto the track: the count is the sheet's,
1071
+ and the sheet's alone, because it is the one number here CSS can work out
1072
+ for itself. Everything it takes is a length the sheet already has, so the
1073
+ panes are laid out at their final width by the first rule that runs, on a
1074
+ server's markup as on the client's, and no script is waited on. That is the
1075
+ whole reason a declared count was ever the only option: a carousel that
1076
+ asks how wide its container is can only ask on the client, so the panes go
1077
+ down at one width and move to another when the answer arrives. Written
1078
+ inline the count would outrank the sheet that computes it, which is why an
1079
+ `auto` track is handed nothing. A count stays for the design that calls for
1080
+ exactly three.
1081
+
1082
+ The styled sheet says how it divides, and the headless `auto` example
1083
+ carries the same three lines for a consumer writing their own.
1084
+
1085
+ **A value rather than the resting behavior**, which is what the
1086
+ responsiveness policy asks of every axis that a box decides: a splitter
1087
+ turns on `orientation="auto"` and a plain one does not turn at all. Fitting
1088
+ changes what the carousel *does*, since how many are across is how many
1089
+ places the track can stop, so a carousel that had not asked for it would
1090
+ find its position count moving with the window.
1091
+
1046
1092
  No default, because it reflects. A reflected property with a value writes
1047
1093
  its attribute on upgrade, and the host then carries something a consumer's
1048
1094
  server markup never had, which React reports as a mismatch. The one-across
@@ -1681,7 +1727,13 @@ holds a model beside its value, which Date Picker and Time Picker do not:
1681
1727
  `moved` is the HSB the square is drawn from, and it is written before the
1682
1728
  value is requested. Gating only the request would leave the square under
1683
1729
  the reader's pointer and the value where it was, which is a control that
1684
- refuses and looks like it accepted. */
1730
+ refuses and looks like it accepted.
1731
+
1732
+ **Two controls are refused whole rather than at either seam**, because
1733
+ both do something before they ask. The syntax toggle rewrites the value, so
1734
+ letting it move would show `rgb` over a hex it is no longer allowed to
1735
+ restate. The eyedropper clears the screen and runs a system sampler, so
1736
+ letting it open would take a color from the reader and drop it. */
1685
1737
  readonly?: (HelixHeadlessColorPicker["readOnly"]) | undefined;
1686
1738
  /** Whether the control refuses changes while still submitting its value.
1687
1739
 
@@ -1700,7 +1752,13 @@ holds a model beside its value, which Date Picker and Time Picker do not:
1700
1752
  `moved` is the HSB the square is drawn from, and it is written before the
1701
1753
  value is requested. Gating only the request would leave the square under
1702
1754
  the reader's pointer and the value where it was, which is a control that
1703
- refuses and looks like it accepted. */
1755
+ refuses and looks like it accepted.
1756
+
1757
+ **Two controls are refused whole rather than at either seam**, because
1758
+ both do something before they ask. The syntax toggle rewrites the value, so
1759
+ letting it move would show `rgb` over a hex it is no longer allowed to
1760
+ restate. The eyedropper clears the screen and runs a system sampler, so
1761
+ letting it open would take a color from the reader and drop it. */
1704
1762
  readOnly?: (HelixHeadlessColorPicker["readOnly"]) | undefined;
1705
1763
  /** Whether the form refuses to submit while no color is chosen.
1706
1764
 
@@ -6877,9 +6935,9 @@ has an honest answer. */
6877
6935
  };
6878
6936
 
6879
6937
  export type HelixHeadlessSplitterVueEvents = {
6880
- /** Fired before a pane shuts or reopens, and only where the position it is derived from stood. Cancelable: refusing it leaves the pane as it was and the divider where the gesture put it. */
6938
+ /** Fired before a pane shuts or reopens, whether or not the resize that reached it was allowed, and carrying its own position: a shut pane sits at `collapsed-size` rather than at the number the resize named. Cancelable: refusing it leaves the pane as it was and the divider where the gesture put it. */
6881
6939
  "helix-before-collapse": HelixHeadlessSplitterHelixBeforeCollapseElementEvent;
6882
- /** Fired before the divider settles, and only where the gesture moved it: a press that moved nothing, a drag that came back, an arrow with nowhere left to go and a corner that moved the other divider are all silent on this one. Cancelable: refusing it takes the whole of where the gesture ended, so no collapse follows from it either. A drag has already drawn itself by then and holds where it was dropped until the consumer assigns their own. */
6940
+ /** Fired before the divider settles, and only where the gesture moved it: a press that moved nothing, a drag that came back, an arrow with nowhere left to go and a corner that moved the other divider are all silent on this one. Cancelable: refusing it takes the position and leaves the rest of the gesture, so a collapse the gesture reached is still announced and still yours to refuse. A drag has already drawn itself by then and holds where it was dropped until the consumer assigns their own. */
6883
6941
  "helix-before-resize": HelixHeadlessSplitterHelixBeforeResizeElementEvent;
6884
6942
  };
6885
6943
 
@@ -9051,10 +9109,12 @@ export type CustomCssProperties = {
9051
9109
  "--carousel-gap"?: (string) | undefined;
9052
9110
  /** The size one pane is laid out at. A sheet sets it and the component measures the run with it. */
9053
9111
  "--carousel-pane"?: (string) | undefined;
9054
- /** How many slides go across, written onto the track by the component so a sheet divides the track by the same number the positions are counted from. Read it rather than selecting on `per-view`, which cannot be enumerated without a ceiling. See `perView`. */
9112
+ /** How many slides go across, written onto the track by the component so a sheet divides the track by the same number the positions are counted from. Read it rather than selecting on `per-view`, which cannot be enumerated without a ceiling. Under `per-view="auto"` the component writes nothing and the sheet declares it instead, so the same name answers in both modes. See `perView`. */
9055
9113
  "--carousel-per-view"?: (string) | undefined;
9056
9114
  /** How far short of a whole pixel the run ends, on the last slide alone, for a sheet to take up as `margin-inline-end`. See `runEnd`. */
9057
9115
  "--carousel-run-end"?: (string) | undefined;
9116
+ /** The narrowest a slide may be laid out, which is what `per-view="auto"` fits the track with. A length, since the sheet divides by it. Unset is the whole track, which is one across. */
9117
+ "--carousel-slide-min"?: (string) | undefined;
9058
9118
  /** The chosen color, to paint over the transparency check. */
9059
9119
  "--color-input-swatch"?: (string) | undefined;
9060
9120
  /** The chosen brightness, 0 to 100, as a percentage. */