@fusion.dev/helix 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/custom-elements.json +172 -20
- package/dist/aura/root/aura-root.d.ts +1 -1
- package/dist/carousel/root/carousel-root.css.js +19 -0
- package/dist/color-picker/root/color-picker-root.d.ts +1 -1
- package/dist/rating/root/rating-root.css.js +1 -1
- package/dist/rating/root/rating-root.d.ts +1 -1
- package/dist/sandbox/root/sandbox-root.d.ts +50 -1
- package/dist/sandbox/root/sandbox-root.js +14 -1
- package/dist/time-picker/root/time-picker-root.d.ts +1 -1
- package/package.json +6 -6
- package/types/jsx.d.ts +253 -25
- package/types/vue.d.ts +82 -8
package/types/vue.d.ts
CHANGED
|
@@ -1561,6 +1561,29 @@ attribute is the one answer to how wide a pane is.
|
|
|
1561
1561
|
A value the track cannot honor is taken to the nearest one it can, by
|
|
1562
1562
|
`across`, and both tiers read that rather than this.
|
|
1563
1563
|
|
|
1564
|
+
**`auto` fits as many as the track can hold**, at `--carousel-slide-min`
|
|
1565
|
+
apiece, and nothing is written onto the track: the count is the sheet's,
|
|
1566
|
+
and the sheet's alone, because it is the one number here CSS can work out
|
|
1567
|
+
for itself. Everything it takes is a length the sheet already has, so the
|
|
1568
|
+
panes are laid out at their final width by the first rule that runs, on a
|
|
1569
|
+
server's markup as on the client's, and no script is waited on. That is the
|
|
1570
|
+
whole reason a declared count was ever the only option: a carousel that
|
|
1571
|
+
asks how wide its container is can only ask on the client, so the panes go
|
|
1572
|
+
down at one width and move to another when the answer arrives. Written
|
|
1573
|
+
inline the count would outrank the sheet that computes it, which is why an
|
|
1574
|
+
`auto` track is handed nothing. A count stays for the design that calls for
|
|
1575
|
+
exactly three.
|
|
1576
|
+
|
|
1577
|
+
The styled sheet says how it divides, and the headless `auto` example
|
|
1578
|
+
carries the same three lines for a consumer writing their own.
|
|
1579
|
+
|
|
1580
|
+
**A value rather than the resting behavior**, which is what the
|
|
1581
|
+
responsiveness policy asks of every axis that a box decides: a splitter
|
|
1582
|
+
turns on `orientation="auto"` and a plain one does not turn at all. Fitting
|
|
1583
|
+
changes what the carousel *does*, since how many are across is how many
|
|
1584
|
+
places the track can stop, so a carousel that had not asked for it would
|
|
1585
|
+
find its position count moving with the window.
|
|
1586
|
+
|
|
1564
1587
|
No default, because it reflects. A reflected property with a value writes
|
|
1565
1588
|
its attribute on upgrade, and the host then carries something a consumer's
|
|
1566
1589
|
server markup never had, which React reports as a mismatch. The one-across
|
|
@@ -1598,6 +1621,29 @@ attribute is the one answer to how wide a pane is.
|
|
|
1598
1621
|
A value the track cannot honor is taken to the nearest one it can, by
|
|
1599
1622
|
`across`, and both tiers read that rather than this.
|
|
1600
1623
|
|
|
1624
|
+
**`auto` fits as many as the track can hold**, at `--carousel-slide-min`
|
|
1625
|
+
apiece, and nothing is written onto the track: the count is the sheet's,
|
|
1626
|
+
and the sheet's alone, because it is the one number here CSS can work out
|
|
1627
|
+
for itself. Everything it takes is a length the sheet already has, so the
|
|
1628
|
+
panes are laid out at their final width by the first rule that runs, on a
|
|
1629
|
+
server's markup as on the client's, and no script is waited on. That is the
|
|
1630
|
+
whole reason a declared count was ever the only option: a carousel that
|
|
1631
|
+
asks how wide its container is can only ask on the client, so the panes go
|
|
1632
|
+
down at one width and move to another when the answer arrives. Written
|
|
1633
|
+
inline the count would outrank the sheet that computes it, which is why an
|
|
1634
|
+
`auto` track is handed nothing. A count stays for the design that calls for
|
|
1635
|
+
exactly three.
|
|
1636
|
+
|
|
1637
|
+
The styled sheet says how it divides, and the headless `auto` example
|
|
1638
|
+
carries the same three lines for a consumer writing their own.
|
|
1639
|
+
|
|
1640
|
+
**A value rather than the resting behavior**, which is what the
|
|
1641
|
+
responsiveness policy asks of every axis that a box decides: a splitter
|
|
1642
|
+
turns on `orientation="auto"` and a plain one does not turn at all. Fitting
|
|
1643
|
+
changes what the carousel *does*, since how many are across is how many
|
|
1644
|
+
places the track can stop, so a carousel that had not asked for it would
|
|
1645
|
+
find its position count moving with the window.
|
|
1646
|
+
|
|
1601
1647
|
No default, because it reflects. A reflected property with a value writes
|
|
1602
1648
|
its attribute on upgrade, and the host then carries something a consumer's
|
|
1603
1649
|
server markup never had, which React reports as a mismatch. The one-across
|
|
@@ -2275,7 +2321,13 @@ holds a model beside its value, which Date Picker and Time Picker do not:
|
|
|
2275
2321
|
`moved` is the HSB the square is drawn from, and it is written before the
|
|
2276
2322
|
value is requested. Gating only the request would leave the square under
|
|
2277
2323
|
the reader's pointer and the value where it was, which is a control that
|
|
2278
|
-
refuses and looks like it accepted.
|
|
2324
|
+
refuses and looks like it accepted.
|
|
2325
|
+
|
|
2326
|
+
**Two controls are refused whole rather than at either seam**, because
|
|
2327
|
+
both do something before they ask. The syntax toggle rewrites the value, so
|
|
2328
|
+
letting it move would show `rgb` over a hex it is no longer allowed to
|
|
2329
|
+
restate. The eyedropper clears the screen and runs a system sampler, so
|
|
2330
|
+
letting it open would take a color from the reader and drop it. */
|
|
2279
2331
|
readonly?: (HelixColorPicker["readOnly"]) | undefined;
|
|
2280
2332
|
/** Whether the control refuses changes while still submitting its value.
|
|
2281
2333
|
|
|
@@ -2294,7 +2346,13 @@ holds a model beside its value, which Date Picker and Time Picker do not:
|
|
|
2294
2346
|
`moved` is the HSB the square is drawn from, and it is written before the
|
|
2295
2347
|
value is requested. Gating only the request would leave the square under
|
|
2296
2348
|
the reader's pointer and the value where it was, which is a control that
|
|
2297
|
-
refuses and looks like it accepted.
|
|
2349
|
+
refuses and looks like it accepted.
|
|
2350
|
+
|
|
2351
|
+
**Two controls are refused whole rather than at either seam**, because
|
|
2352
|
+
both do something before they ask. The syntax toggle rewrites the value, so
|
|
2353
|
+
letting it move would show `rgb` over a hex it is no longer allowed to
|
|
2354
|
+
restate. The eyedropper clears the screen and runs a system sampler, so
|
|
2355
|
+
letting it open would take a color from the reader and drop it. */
|
|
2298
2356
|
readOnly?: (HelixColorPicker["readOnly"]) | undefined;
|
|
2299
2357
|
/** Whether the form refuses to submit while no color is chosen.
|
|
2300
2358
|
|
|
@@ -7505,13 +7563,27 @@ attribute at all. */
|
|
|
7505
7563
|
|
|
7506
7564
|
Zero closes it outright. A panel whose contents include the control that
|
|
7507
7565
|
reopens it, a row of tabs being the usual one, wants that row left showing,
|
|
7508
|
-
and only whoever slotted it knows how tall that is.
|
|
7566
|
+
and only whoever slotted it knows how tall that is.
|
|
7567
|
+
|
|
7568
|
+
**A floor rather than a second state**, which is what keeps `panel-size` the
|
|
7569
|
+
whole truth about the panel: a divider driven to the end lands here and
|
|
7570
|
+
`panel-size` reads this number, so "closed" is something a consumer already
|
|
7571
|
+
stores rather than a property they have to learn. The splitter inside has a
|
|
7572
|
+
`collapsed` of its own and it is refused, for the reason `handleCollapse`
|
|
7573
|
+
gives. */
|
|
7509
7574
|
"panel-collapsed-size"?: (HelixSandbox["panelCollapsedSize"] | `${number}`) | undefined;
|
|
7510
7575
|
/** What the panel's height becomes when it is closed.
|
|
7511
7576
|
|
|
7512
7577
|
Zero closes it outright. A panel whose contents include the control that
|
|
7513
7578
|
reopens it, a row of tabs being the usual one, wants that row left showing,
|
|
7514
|
-
and only whoever slotted it knows how tall that is.
|
|
7579
|
+
and only whoever slotted it knows how tall that is.
|
|
7580
|
+
|
|
7581
|
+
**A floor rather than a second state**, which is what keeps `panel-size` the
|
|
7582
|
+
whole truth about the panel: a divider driven to the end lands here and
|
|
7583
|
+
`panel-size` reads this number, so "closed" is something a consumer already
|
|
7584
|
+
stores rather than a property they have to learn. The splitter inside has a
|
|
7585
|
+
`collapsed` of its own and it is refused, for the reason `handleCollapse`
|
|
7586
|
+
gives. */
|
|
7515
7587
|
panelCollapsedSize?: (HelixSandbox["panelCollapsedSize"]) | undefined;
|
|
7516
7588
|
/** Accessible name for the panel's divider. */
|
|
7517
7589
|
"panel-label"?: (HelixSandbox["panelLabel"]) | undefined;
|
|
@@ -7532,7 +7604,7 @@ and only whoever slotted it knows how tall that is. */
|
|
|
7532
7604
|
export type HelixSandboxVueEvents = {
|
|
7533
7605
|
/** Fired before the source is edited, by the source pane and heard here. Cancelable: refusing it takes the decision and nothing moves. */
|
|
7534
7606
|
"helix-before-edit": HelixSandboxHelixBeforeEditElementEvent;
|
|
7535
|
-
/** Fired before the panel's divider is let go, with its height in pixels. Cancelable: refusing it takes the decision and nothing moves. */
|
|
7607
|
+
/** Fired before the panel's divider is let go, with its height in pixels, and a panel driven shut arrives as `panel-collapsed-size`, which is the least it goes to. Cancelable: refusing it takes the decision and nothing moves. */
|
|
7536
7608
|
"helix-before-panel-resize": HelixSandboxHelixBeforePanelResizeElementEvent;
|
|
7537
7609
|
/** Fired before the panes' divider is let go, with the lead pane's share. Cancelable: refusing it takes the decision and nothing moves. */
|
|
7538
7610
|
"helix-before-split": HelixSandboxHelixBeforeSplitElementEvent;
|
|
@@ -8275,9 +8347,9 @@ has an honest answer. */
|
|
|
8275
8347
|
};
|
|
8276
8348
|
|
|
8277
8349
|
export type HelixSplitterVueEvents = {
|
|
8278
|
-
/** Fired before a pane shuts or reopens,
|
|
8350
|
+
/** 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. */
|
|
8279
8351
|
"helix-before-collapse": HelixSplitterHelixBeforeCollapseElementEvent;
|
|
8280
|
-
/** 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
|
|
8352
|
+
/** 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. */
|
|
8281
8353
|
"helix-before-resize": HelixSplitterHelixBeforeResizeElementEvent;
|
|
8282
8354
|
};
|
|
8283
8355
|
|
|
@@ -10720,10 +10792,12 @@ export type CustomCssProperties = {
|
|
|
10720
10792
|
"--carousel-gap"?: (string) | undefined;
|
|
10721
10793
|
/** The size one pane is laid out at. A sheet sets it and the component measures the run with it. */
|
|
10722
10794
|
"--carousel-pane"?: (string) | undefined;
|
|
10723
|
-
/** 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`. */
|
|
10795
|
+
/** 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`. */
|
|
10724
10796
|
"--carousel-per-view"?: (string) | undefined;
|
|
10725
10797
|
/** 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`. */
|
|
10726
10798
|
"--carousel-run-end"?: (string) | undefined;
|
|
10799
|
+
/** 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. */
|
|
10800
|
+
"--carousel-slide-min"?: (string) | undefined;
|
|
10727
10801
|
/** Fill behind the composer. */
|
|
10728
10802
|
"--chat-composer-background-color"?: (string) | undefined;
|
|
10729
10803
|
/** The composer's edge, so a theme can remove it. */
|