@fusion.dev/helix 0.158.0 → 0.159.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 +880 -34
- package/dist/app-header/root/app-header-root.css.js +1 -1
- package/dist/button/root/button-root.d.ts +1 -0
- package/dist/element-events.generated.js +2 -1
- package/dist/icon-button/root/icon-button-root.d.ts +1 -0
- package/dist/steps/step/step.css.js +3 -1
- package/dist/tabs/root/tabs-root.css.js +2 -1
- package/dist/tabs/root/tabs-root.d.ts +4 -0
- package/dist/tabs/tab/tab.css.js +1 -1
- package/dist/tabs/tab/tab.d.ts +2 -0
- package/dist/toast/item/toast-item.css.js +2 -2
- package/lint.json +1 -1
- package/package.json +6 -6
- package/types/jsx.d.ts +297 -3
- package/types/vue.d.ts +85 -2
package/types/vue.d.ts
CHANGED
|
@@ -244,9 +244,9 @@ import type {
|
|
|
244
244
|
HelixBeforeResizeEvent,
|
|
245
245
|
HelixCollapseEvent,
|
|
246
246
|
HelixResizedEvent,
|
|
247
|
+
HelixLoadEvent,
|
|
247
248
|
HelixTourAskEvent,
|
|
248
249
|
HelixTourStatusEvent,
|
|
249
|
-
HelixLoadEvent,
|
|
250
250
|
HelixEndEvent,
|
|
251
251
|
HelixNextEvent,
|
|
252
252
|
HelixPreviousEvent,
|
|
@@ -565,6 +565,15 @@ export type HelixAppHeaderElementEvent<E = Event> = TypedEvent<
|
|
|
565
565
|
HelixAppHeader,
|
|
566
566
|
E
|
|
567
567
|
>;
|
|
568
|
+
/** `toggle` event type */
|
|
569
|
+
export type HelixAppHeaderToggleElementEvent =
|
|
570
|
+
HelixAppHeaderElementEvent<ToggleEvent>;
|
|
571
|
+
/** `helix-before-close` event type */
|
|
572
|
+
export type HelixAppHeaderHelixBeforeCloseElementEvent =
|
|
573
|
+
HelixAppHeaderElementEvent<HelixBeforeCloseEvent>;
|
|
574
|
+
/** `helix-before-open` event type */
|
|
575
|
+
export type HelixAppHeaderHelixBeforeOpenElementEvent =
|
|
576
|
+
HelixAppHeaderElementEvent<HelixBeforeOpenEvent>;
|
|
568
577
|
/** `helix-scrolled` event type */
|
|
569
578
|
export type HelixAppHeaderHelixScrolledElementEvent =
|
|
570
579
|
HelixAppHeaderElementEvent<HelixScrolledEvent>;
|
|
@@ -622,6 +631,23 @@ It pairs with `material`: a bar that does not stick is only ever over the
|
|
|
622
631
|
top of the page, so `glass` and `transparent` have nothing to be
|
|
623
632
|
translucent against and the `scrolled` state never lands. */
|
|
624
633
|
sticky?: (HelixAppHeader["sticky"]) | undefined;
|
|
634
|
+
/** Whether the element starts open. Ignored once `open` is written. */
|
|
635
|
+
"default-open"?: (HelixAppHeader["defaultOpen"]) | undefined;
|
|
636
|
+
/** Whether the element starts open. Ignored once `open` is written. */
|
|
637
|
+
defaultOpen?: (HelixAppHeader["defaultOpen"]) | undefined;
|
|
638
|
+
/** Whether the element is open.
|
|
639
|
+
|
|
640
|
+
One property, not two, so `dialog.open` answers the question anyone
|
|
641
|
+
asking it meant. Writing always applies; `<helix-dialog open>` is the
|
|
642
|
+
same statement in markup.
|
|
643
|
+
|
|
644
|
+
**Not reflected, and that is required rather than tidy.** Reflection
|
|
645
|
+
writes the resolved state back as an attribute, so an element that opened
|
|
646
|
+
itself would put `open` on its own host: cloned, serialized for
|
|
647
|
+
hydration, or diffed by a framework, it comes back holding whatever the
|
|
648
|
+
last reader did rather than what the author wrote. `:state(open)` carries
|
|
649
|
+
the resolved state for stylesheets, which is what the mirror is for. */
|
|
650
|
+
open?: (HelixAppHeader["open"]) | undefined;
|
|
625
651
|
/** Where the middle region sits in the bar.
|
|
626
652
|
|
|
627
653
|
Centered by default, which reads as the site's spine when the navigation is
|
|
@@ -669,9 +695,27 @@ page scrolls up. */
|
|
|
669
695
|
/** The id of the element whose scrolling lifts the bar, for an app shell that
|
|
670
696
|
scrolls a container instead of the window. Unset is the window. */
|
|
671
697
|
scroller?: (HelixAppHeader["scroller"]) | undefined;
|
|
698
|
+
/** Where the toggle that opens a folded middle region sits: at the end of the
|
|
699
|
+
bar, after the trailing content, or with `start`, before the leading
|
|
700
|
+
content.
|
|
701
|
+
|
|
702
|
+
Optional, so the resting bar writes no attribute onto the host. */
|
|
703
|
+
"toggle-placement"?: (HelixAppHeader["togglePlacement"]) | undefined;
|
|
704
|
+
/** Where the toggle that opens a folded middle region sits: at the end of the
|
|
705
|
+
bar, after the trailing content, or with `start`, before the leading
|
|
706
|
+
content.
|
|
707
|
+
|
|
708
|
+
Optional, so the resting bar writes no attribute onto the host. */
|
|
709
|
+
togglePlacement?: (HelixAppHeader["togglePlacement"]) | undefined;
|
|
672
710
|
};
|
|
673
711
|
|
|
674
712
|
export type HelixAppHeaderVueEvents = {
|
|
713
|
+
/** The folded region opened or closed. The event carries `newState` and `oldState`. */
|
|
714
|
+
toggle: HelixAppHeaderToggleElementEvent;
|
|
715
|
+
/** The folded region is about to close. Cancelable: cancel it to keep it open. */
|
|
716
|
+
"helix-before-close": HelixAppHeaderHelixBeforeCloseElementEvent;
|
|
717
|
+
/** The folded region is about to open. Cancelable: cancel it to keep it closed. */
|
|
718
|
+
"helix-before-open": HelixAppHeaderHelixBeforeOpenElementEvent;
|
|
675
719
|
/** Fired when the page crosses the scroll threshold, with the new state. A custom state cannot be observed the way an attribute can, so listen for this event to follow it. The event uses the header's own threshold and hysteresis, so you do not need a second scroll listener. */
|
|
676
720
|
"helix-scrolled": HelixAppHeaderHelixScrolledElementEvent;
|
|
677
721
|
};
|
|
@@ -1642,6 +1686,14 @@ separate actions. The semantics and the joining are separate questions:
|
|
|
1642
1686
|
`role="group"` and a shared name are what make a set of buttons a set, and
|
|
1643
1687
|
`helix-flex` gives the spacing without the group. */
|
|
1644
1688
|
variant?: (HelixButtonGroup["variant"]) | undefined;
|
|
1689
|
+
/** Keeps at least one button pressed once one is, as React Aria's
|
|
1690
|
+
`disallowEmptySelection`: a press that would leave none pressed is
|
|
1691
|
+
refused. */
|
|
1692
|
+
"disallow-empty-selection"?: (HelixButtonGroup["disallowEmptySelection"]) | undefined;
|
|
1693
|
+
/** Keeps at least one button pressed once one is, as React Aria's
|
|
1694
|
+
`disallowEmptySelection`: a press that would leave none pressed is
|
|
1695
|
+
refused. */
|
|
1696
|
+
disallowEmptySelection?: (HelixButtonGroup["disallowEmptySelection"]) | undefined;
|
|
1645
1697
|
/** The group's name, read by screen readers.
|
|
1646
1698
|
|
|
1647
1699
|
On the host through internals, so an author's `aria-label` still overrides
|
|
@@ -17038,7 +17090,16 @@ known by its place among the rows as written. */
|
|
|
17038
17090
|
|
|
17039
17091
|
export type HelixTableRowVueEvents = {};
|
|
17040
17092
|
|
|
17093
|
+
/** `HelixTabPanel` component event */
|
|
17094
|
+
export type HelixTabPanelElementEvent<E = Event> = TypedEvent<HelixTabPanel, E>;
|
|
17095
|
+
/** `helix-load` event type */
|
|
17096
|
+
export type HelixTabPanelHelixLoadElementEvent =
|
|
17097
|
+
HelixTabPanelElementEvent<HelixLoadEvent>;
|
|
17098
|
+
|
|
17041
17099
|
export type HelixTabPanelVueProps = {
|
|
17100
|
+
/** Whether the panel's content waits in a `<template>` until the panel is
|
|
17101
|
+
first shown. */
|
|
17102
|
+
lazy?: (HelixTabPanel["lazy"]) | undefined;
|
|
17042
17103
|
/** Whether this panel is the visible one. */
|
|
17043
17104
|
selected?: (HelixTabPanel["selected"]) | undefined;
|
|
17044
17105
|
/** Pairs the panel with the tab of the same value. */
|
|
@@ -17056,7 +17117,10 @@ the pattern names one anyway. */
|
|
|
17056
17117
|
label?: (HelixTabPanel["label"]) | undefined;
|
|
17057
17118
|
};
|
|
17058
17119
|
|
|
17059
|
-
export type HelixTabPanelVueEvents = {
|
|
17120
|
+
export type HelixTabPanelVueEvents = {
|
|
17121
|
+
/** Fired the first time a `lazy` panel is shown, once its template's content is in. */
|
|
17122
|
+
"helix-load": HelixTabPanelHelixLoadElementEvent;
|
|
17123
|
+
};
|
|
17060
17124
|
|
|
17061
17125
|
/** `HelixTabs` component event */
|
|
17062
17126
|
export type HelixTabsElementEvent<E = Event> = TypedEvent<HelixTabs, E>;
|
|
@@ -18544,6 +18608,12 @@ consumer's server markup does not have. A sheet carries the resting
|
|
|
18544
18608
|
arrangement in its own `:host` rule and the selectors describe only the
|
|
18545
18609
|
departures, which is what `orientation` does. */
|
|
18546
18610
|
placement?: (HelixToast["placement"]) | undefined;
|
|
18611
|
+
/** The edge a touch or a pen swipes a message toward to dismiss it: `end`,
|
|
18612
|
+
the end of the line, or `start`, `top` or `bottom`. Unset is `end`. */
|
|
18613
|
+
"swipe-direction"?: (HelixToast["swipeDirection"]) | undefined;
|
|
18614
|
+
/** The edge a touch or a pen swipes a message toward to dismiss it: `end`,
|
|
18615
|
+
the end of the line, or `start`, `top` or `bottom`. Unset is `end`. */
|
|
18616
|
+
swipeDirection?: (HelixToast["swipeDirection"]) | undefined;
|
|
18547
18617
|
};
|
|
18548
18618
|
|
|
18549
18619
|
export type HelixToastVueEvents = {
|
|
@@ -19097,6 +19167,14 @@ The shape is `Carousel`'s, which is the nearest thing in the library: a
|
|
|
19097
19167
|
"next-label"?: (HelixTour["nextLabel"]) | undefined;
|
|
19098
19168
|
/** Label for the control that goes on. */
|
|
19099
19169
|
nextLabel?: (HelixTour["nextLabel"]) | undefined;
|
|
19170
|
+
/** What a press outside the current stop and its target does while the tour
|
|
19171
|
+
runs. Unset, nothing: the page stays usable. `close` ends the tour, as
|
|
19172
|
+
Skip does, and `block` refuses the press. */
|
|
19173
|
+
"outside-press"?: (HelixTour["outsidePress"]) | undefined;
|
|
19174
|
+
/** What a press outside the current stop and its target does while the tour
|
|
19175
|
+
runs. Unset, nothing: the page stays usable. `close` ends the tour, as
|
|
19176
|
+
Skip does, and `block` refuses the press. */
|
|
19177
|
+
outsidePress?: (HelixTour["outsidePress"]) | undefined;
|
|
19100
19178
|
/** Draws each stop's place in the run in its panel, as well as saying it. */
|
|
19101
19179
|
progress?: (HelixTour["progress"]) | undefined;
|
|
19102
19180
|
/** Each stop's place in the run, with `{index}` and `{count}` filled in and
|
|
@@ -19185,6 +19263,9 @@ heading. */
|
|
|
19185
19263
|
Reflected, because the styled tier places a dialog and a floating panel by
|
|
19186
19264
|
it, and unset at rest, so no default is written onto the host. */
|
|
19187
19265
|
type?: (HelixTourStop["type"]) | undefined;
|
|
19266
|
+
/** Run as the tour reaches the stop, before it is shown: see the description
|
|
19267
|
+
above. A function, so it is set from script and has no attribute. */
|
|
19268
|
+
effect?: (HelixTourStop["effect"]) | undefined;
|
|
19188
19269
|
};
|
|
19189
19270
|
|
|
19190
19271
|
export type HelixTourStopVueEvents = {
|
|
@@ -22562,6 +22643,8 @@ export type CustomCssProperties = {
|
|
|
22562
22643
|
"--toast-duration"?: (string) | undefined;
|
|
22563
22644
|
/** How far a swipe has moved the message across, in pixels, toward the right. */
|
|
22564
22645
|
"--toast-swipe-x"?: (string) | undefined;
|
|
22646
|
+
/** How far a swipe has moved the message down, in pixels, under a `swipe-direction` of `top` or `bottom`. */
|
|
22647
|
+
"--toast-swipe-y"?: (string) | undefined;
|
|
22565
22648
|
/** Space between one message and the next. */
|
|
22566
22649
|
"--toast-gap"?: (string) | undefined;
|
|
22567
22650
|
/** Width of a message. */
|