@fusion.dev/helix 0.147.0 → 0.149.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 +11575 -1278
- package/dist/announcement/root/announcement-root.css.js +1 -1
- package/dist/blockquote/root/blockquote-root.css.js +1 -1
- package/dist/blockquote/root/blockquote-root.d.ts +8 -2
- package/dist/button-group/root/button-group-root.css.js +10 -1
- package/dist/button-group/root/button-group-root.d.ts +29 -7
- package/dist/button-group/root/button-group-root.js +19 -0
- package/dist/canvas/node/canvas-node.css.js +6 -6
- package/dist/canvas/node/canvas-node.d.ts +5 -0
- package/dist/canvas/root/canvas-root.css.js +6 -2
- package/dist/canvas/root/canvas-root.d.ts +6 -0
- package/dist/card/root/card-root.css.js +3 -3
- package/dist/card/root/card-root.d.ts +4 -0
- package/dist/chat/root/chat-root.css.js +3 -1
- package/dist/chat/root/chat-root.d.ts +3 -0
- package/dist/code-block/root/code-block-root.css.js +17 -9
- package/dist/code-block/root/code-block-root.d.ts +7 -0
- package/dist/combobox/root/combobox-root.js +2 -0
- package/dist/data-table/root/data-table-root.css.js +20 -8
- package/dist/data-table/root/data-table-root.d.ts +12 -0
- package/dist/description-list/item/description-list-item.css.js +1 -1
- package/dist/description-list/item/description-list-item.d.ts +1 -0
- package/dist/description-list/root/description-list-root.css.js +2 -1
- package/dist/description-list/root/description-list-root.d.ts +12 -0
- package/dist/description-list/root/description-list-root.js +7 -0
- package/dist/divider/root/divider-root.css.js +3 -4
- package/dist/divider/root/divider-root.d.ts +3 -0
- package/dist/element-events.generated.js +33 -4
- package/dist/format-date/root/format-date-root.css.js +1 -1
- package/dist/format-date/root/format-date-root.d.ts +0 -1
- package/dist/format-date/root/format-date-root.js +0 -1
- package/dist/list/item/list-item.css.js +4 -2
- package/dist/list/item/list-item.d.ts +4 -0
- package/dist/list/root/list-root.css.js +2 -1
- package/dist/list/root/list-root.d.ts +6 -0
- package/dist/list/root/list-root.js +2 -1
- package/dist/listbox/reorder/index.d.ts +1 -0
- package/dist/listbox/reorder/index.js +6 -0
- package/dist/listbox/reorder/listbox-drag-preview.css.d.ts +1 -0
- package/dist/listbox/reorder/listbox-drag-preview.css.js +3 -0
- package/dist/listbox/reorder/listbox-reorder.css.d.ts +1 -0
- package/dist/listbox/reorder/listbox-reorder.css.js +4 -0
- package/dist/listbox/root/listbox-root.css.js +4 -1
- package/dist/listbox/root/listbox-root.d.ts +11 -0
- package/dist/listbox/root/listbox-root.js +1 -0
- package/dist/map/root/map-root.css.js +10 -6
- package/dist/map/root/map-root.d.ts +10 -0
- package/dist/notifications/notification/notification.css.js +8 -2
- package/dist/notifications/notification/notification.d.ts +13 -5
- package/dist/notifications/notification/notification.js +13 -0
- package/dist/notifications/root/notifications-root.css.js +4 -2
- package/dist/notifications/root/notifications-root.d.ts +21 -3
- package/dist/notifications/root/notifications-root.js +13 -1
- package/dist/orb/root/orb-root.d.ts +5 -0
- package/dist/orb/root/orb-root.js +13 -12
- package/dist/pagination/root/pagination-root.css.js +7 -7
- package/dist/pagination/root/pagination-root.d.ts +14 -0
- package/dist/pagination/size/pagination-size.css.js +1 -1
- package/dist/pagination/size/pagination-size.d.ts +3 -0
- package/dist/pagination/summary/pagination-summary.css.js +1 -1
- package/dist/pagination/summary/pagination-summary.d.ts +3 -0
- package/dist/qr-code/root/qr-code-root.css.js +1 -1
- package/dist/qr-code/root/qr-code-root.d.ts +3 -0
- package/dist/sandbox/preview/sandbox-preview.d.ts +14 -1
- package/dist/sandbox/preview/sandbox-preview.js +12 -9
- package/dist/sandbox/root/sandbox-root.d.ts +8 -3
- package/dist/sandbox/root/sandbox-root.js +7 -3
- package/dist/sandbox/source/sandbox-source.d.ts +5 -0
- package/dist/sandbox/source/sandbox-source.js +4 -1
- package/dist/sandbox/status-bar/sandbox-status-bar.d.ts +10 -0
- package/dist/sandbox/status-bar/sandbox-status-bar.js +14 -2
- package/dist/sandbox/terminal/sandbox-terminal.d.ts +11 -0
- package/dist/sandbox/terminal/sandbox-terminal.js +22 -11
- package/dist/scroll-area/root/scroll-area-root.css.js +5 -4
- package/dist/scroll-area/root/scroll-area-root.d.ts +3 -3
- package/dist/select/root/select-root.css.js +4 -1
- package/dist/select/root/select-root.js +2 -0
- package/dist/shared/viewport/viewport.css.js +1 -1
- package/dist/speed-dial/group/speed-dial-group.css.d.ts +1 -0
- package/dist/speed-dial/group/speed-dial-group.css.js +2 -0
- package/dist/speed-dial/group/speed-dial-group.d.ts +27 -0
- package/dist/speed-dial/group/speed-dial-group.js +16 -0
- package/dist/speed-dial/index.d.ts +1 -0
- package/dist/speed-dial/index.js +1 -0
- package/dist/speed-dial/item/speed-dial-item.css.js +1 -1
- package/dist/speed-dial/item/speed-dial-item.d.ts +1 -0
- package/dist/speed-dial/root/speed-dial-root.css.js +1 -1
- package/dist/splitter/root/splitter-root.css.js +15 -7
- package/dist/splitter/root/splitter-root.d.ts +4 -0
- package/dist/table/cell/table-cell.css.js +1 -1
- package/dist/table/root/table-root.css.js +3 -1
- package/dist/table/root/table-root.d.ts +8 -1
- package/dist/table/row/table-row.css.js +9 -1
- package/dist/table/row/table-row.d.ts +5 -0
- package/dist/time-picker/root/time-picker-root.css.js +9 -4
- package/dist/time-picker/root/time-picker-root.d.ts +6 -0
- package/dist/toast/item/toast-item.css.js +9 -6
- package/dist/toast/item/toast-item.d.ts +10 -0
- package/dist/toolbar/root/toolbar-root.css.js +1 -1
- package/dist/toolbar/root/toolbar-root.d.ts +9 -0
- package/dist/toolbar/root/toolbar-root.js +4 -0
- package/dist/tooltip/root/tooltip-root.d.ts +9 -0
- package/dist/tree/item/tree-item.css.js +3 -1
- package/dist/tree/item/tree-item.d.ts +6 -0
- package/dist/tree/root/tree-root.css.js +2 -1
- package/dist/tree/root/tree-root.d.ts +8 -1
- package/dist/virtual-list/root/virtual-list-root.css.js +6 -1
- package/dist/virtual-list/root/virtual-list-root.d.ts +3 -0
- package/lint.json +1 -1
- package/package.json +8 -7
- package/types/jsx.d.ts +5934 -1679
- package/types/svelte.d.ts +1 -0
- package/types/vue.d.ts +1910 -541
- package/types/words.d.ts +2555 -0
|
@@ -7,6 +7,10 @@ import type { CSSResultGroup } from 'lit';
|
|
|
7
7
|
* The toolbar draws no frame of its own, so it does not add a second frame
|
|
8
8
|
* inside whatever already frames the bar.
|
|
9
9
|
*
|
|
10
|
+
* Its controls are the small size, since a toolbar is dense by nature, and a
|
|
11
|
+
* control added later takes it without being told. `size="md"` or `"lg"`
|
|
12
|
+
* makes every control in it larger together.
|
|
13
|
+
*
|
|
10
14
|
* @since 0.1.0
|
|
11
15
|
* @status stable
|
|
12
16
|
* @category layout
|
|
@@ -28,6 +32,11 @@ import type { CSSResultGroup } from 'lit';
|
|
|
28
32
|
*/
|
|
29
33
|
export declare class HelixToolbar extends HelixHeadlessToolbar {
|
|
30
34
|
static styles: CSSResultGroup;
|
|
35
|
+
/**
|
|
36
|
+
* The size of every control in the toolbar: their height, icons, boxes and
|
|
37
|
+
* tags. Unset is the small size, as a toolbar is dense by nature.
|
|
38
|
+
*/
|
|
39
|
+
size?: 'sm' | 'md' | 'lg';
|
|
31
40
|
}
|
|
32
41
|
declare global {
|
|
33
42
|
interface HTMLElementTagNameMap {
|
|
@@ -6,10 +6,14 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
};
|
|
7
7
|
import { customElement } from '@fusion.dev/helix-core';
|
|
8
8
|
import { HelixHeadlessToolbar } from '@fusion.dev/helix-headless/toolbar';
|
|
9
|
+
import { property } from 'lit/decorators.js';
|
|
9
10
|
import { styles } from './toolbar-root.css.js';
|
|
10
11
|
let HelixToolbar = class HelixToolbar extends HelixHeadlessToolbar {
|
|
11
12
|
static { this.styles = styles; }
|
|
12
13
|
};
|
|
14
|
+
__decorate([
|
|
15
|
+
property({ reflect: true })
|
|
16
|
+
], HelixToolbar.prototype, "size", void 0);
|
|
13
17
|
HelixToolbar = __decorate([
|
|
14
18
|
customElement('helix-toolbar')
|
|
15
19
|
], HelixToolbar);
|
|
@@ -4,6 +4,15 @@ import type { CSSResultGroup } from 'lit';
|
|
|
4
4
|
* @summary A short text that appears next to an element on hover and focus.
|
|
5
5
|
*
|
|
6
6
|
* @description
|
|
7
|
+
* Place the tooltip beside its trigger, name the trigger with `for`, and name
|
|
8
|
+
* the tooltip in the trigger's `aria-describedby`, so the trigger is described
|
|
9
|
+
* in the server's markup and at rest:
|
|
10
|
+
*
|
|
11
|
+
* ```html
|
|
12
|
+
* <helix-button aria-describedby="save-tip" id="save">Save</helix-button>
|
|
13
|
+
* <helix-tooltip content="Save your work" for="save" id="save-tip"></helix-tooltip>
|
|
14
|
+
* ```
|
|
15
|
+
*
|
|
7
16
|
* The bubble is in the top layer, so it needs no `z-index` and no container
|
|
8
17
|
* clips it.
|
|
9
18
|
*
|
|
@@ -20,6 +20,8 @@ slot[name="end"]::slotted(*) {flex: 0 0 auto;}slot[name="end"] {align-items: cen
|
|
|
20
20
|
grid-template-rows var(--helix-duration-fast) var(--helix-easing-standard),
|
|
21
21
|
display var(--helix-duration-fast) allow-discrete;}[part="group"] > slot {display: block;min-block-size: 0;overflow: hidden;}[part="group"][hidden] {display: none;grid-template-rows: 0fr;}@starting-style {[part="group"]:not([hidden]) {grid-template-rows: 0fr;}}[part="toggle"] {align-self: center;margin-inline-start: var(--tree-chevron-gap, var(--helix-space-none));order: var(--tree-chevron-order, 0);}slot[name="chevron"]::slotted(*) {align-self: center;block-size: var(--_tree-chevron);color: var(--helix-color-foreground-subtle);flex: 0 0 auto;inline-size: var(--_tree-chevron);margin-inline-start: var(--tree-chevron-gap, var(--helix-space-none));order: var(--tree-chevron-order, 0);transform: rotate(-90deg);transition: transform var(--helix-duration-fast) var(--helix-easing-standard);}:host(:dir(rtl)) slot[name="chevron"]::slotted(*) {transform: rotate(90deg);}:host(:state(open)) slot[name="chevron"]::slotted(*) {transform: rotate(0deg);}[part~="checkbox"] {align-self: center;background-color: var(--tree-checkbox-background-color, var(--helix-color-background));block-size: var(--tree-checkbox-size, var(--_tree-chevron));border: var(--helix-border-thin) solid
|
|
22
22
|
var(--tree-checkbox-border-color, var(--helix-color-border));border-radius: var(--helix-radii-sm);color: var(--tree-checkbox-mark-color, var(--helix-color-foreground));display: grid;flex: 0 0 auto;inline-size: var(--tree-checkbox-size, var(--_tree-chevron));place-items: center;}[part~="checkbox-checked"],
|
|
23
|
-
[part~="checkbox-mixed"] {border-color: var(--tree-checkbox-border-color, var(--helix-color-foreground));}[part~="checkbox"] svg {block-size: 80%;inline-size: 80%;}
|
|
23
|
+
[part~="checkbox-mixed"] {border-color: var(--tree-checkbox-border-color, var(--helix-color-foreground));}[part~="checkbox"] svg {block-size: 80%;inline-size: 80%;}[part="grip"] {align-items: center;color: var(--tree-grip-color, var(--helix-color-foreground-subtle));cursor: grab;display: inline-flex;flex: 0 0 auto;order: 3;touch-action: none;}[part="grip"]:active {cursor: grabbing;}[part="grip-mark"] {block-size: var(--_tree-chevron);inline-size: var(--_tree-chevron);}:host(:state(dragging)) [part="item"] {opacity: var(--tree-dragging-opacity, 0.5);}:host(:state(drop-before)) [part="item"],
|
|
24
|
+
:host(:state(drop-after)) [part="item"] {position: relative;}:host(:state(drop-before)) [part="item"]::before,
|
|
25
|
+
:host(:state(drop-after)) [part="item"]::after {background-color: var(--tree-drop-indicator-color, var(--helix-color-primary));block-size: var(--tree-drop-indicator-size, var(--helix-border-thick));content: "";inset-inline: 0;pointer-events: none;position: absolute;z-index: 1;}:host(:state(drop-before)) [part="item"]::before {inset-block-start: 0;}:host(:state(drop-after)) [part="item"]::after {inset-block-end: 0;}:host([disabled]) [part="row"] {cursor: not-allowed;opacity: var(--tree-row-disabled-opacity, 0.5);}:host([disabled]) [part="row"]:hover {background-color: transparent;color: var(--tree-row-color, var(--helix-color-foreground-muted));}:host(:state(loading)) [part="toggle"],
|
|
24
26
|
:host(:state(loading)) slot[name="chevron"]::slotted(*) {animation: tree-loading var(--helix-duration-slow) var(--helix-easing-standard) infinite alternate;}@keyframes tree-loading {to {opacity: 0.3;}}@media (prefers-reduced-motion: reduce) {:host(:state(loading)) [part="toggle"],
|
|
25
27
|
:host(:state(loading)) slot[name="chevron"]::slotted(*) {animation: none;}}`);
|
|
@@ -25,6 +25,8 @@ import type { CSSResultGroup } from 'lit';
|
|
|
25
25
|
* @csspart checkbox - The check mark's box, in a tree with `selection-mode="multiple"`.
|
|
26
26
|
* @csspart checkbox-checked - The check mark's box while the item is checked.
|
|
27
27
|
* @csspart checkbox-mixed - The check mark's box while some of a branch's items are checked.
|
|
28
|
+
* @csspart grip - The handle a pointer drags to move the item, in a `reorderable` tree.
|
|
29
|
+
* @csspart grip-mark - The icon on the grip.
|
|
28
30
|
* @csspart group - The container for nested items.
|
|
29
31
|
* @csspart item - The node, and the focus target.
|
|
30
32
|
* @csspart label - The label text.
|
|
@@ -37,7 +39,11 @@ import type { CSSResultGroup } from 'lit';
|
|
|
37
39
|
* branch.
|
|
38
40
|
* @cssproperty --tree-checkbox-size - Size of the check mark's box. Follows the chevron's size.
|
|
39
41
|
* @cssproperty --tree-chevron-size - Size of the chevron, and the gutter a leaf reserves.
|
|
42
|
+
* @cssproperty --tree-dragging-opacity - The opacity of an item being moved, in a `reorderable` tree.
|
|
43
|
+
* @cssproperty --tree-drop-indicator-color - The color of the line where a moved item would land.
|
|
44
|
+
* @cssproperty --tree-drop-indicator-size - The thickness of the line where a moved item would land.
|
|
40
45
|
* @cssproperty --tree-gap - Space between rows.
|
|
46
|
+
* @cssproperty --tree-grip-color - The color of the grip, in a `reorderable` tree.
|
|
41
47
|
* @cssproperty --tree-indent - Indent added per level.
|
|
42
48
|
* @cssproperty --tree-row-checked-background-color - Fill of a checked row, in a tree with `selection-mode="multiple"`. Unset, the box alone marks it.
|
|
43
49
|
* @cssproperty --tree-row-checked-color - Text color of a checked row, in a tree with `selection-mode="multiple"`.
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import { createSheet } from '@fusion.dev/helix-core';
|
|
2
|
-
export const styles = createSheet(`:host {display: block;}[part="tree"] {display: flex;flex-direction: column;}:host {--tree-chevron-order: 0;}:host([chevron-placement="end"]) {--tree-chevron-order: 2;--tree-chevron-gap: var(--helix-space-none);--_tree-reserve: var(--helix-space-none);}:host([nesting="subordinate"]) {--_tree-nested-text: var(--helix-text-xs);}:host([nesting="heading"]) {--_tree-heading-ink: var(--helix-color-foreground-subtle);--_tree-heading-text: var(--helix-text-xs);--_tree-heading-tracking: var(--helix-tracking-wide);}:host([loading]) [part="tree"] {opacity: 0.5;}
|
|
2
|
+
export const styles = createSheet(`:host {display: block;}[part="tree"] {display: flex;flex-direction: column;}:host {--tree-chevron-order: 0;}:host([chevron-placement="end"]) {--tree-chevron-order: 2;--tree-chevron-gap: var(--helix-space-none);--_tree-reserve: var(--helix-space-none);}:host([nesting="subordinate"]) {--_tree-nested-text: var(--helix-text-xs);}:host([nesting="heading"]) {--_tree-heading-ink: var(--helix-color-foreground-subtle);--_tree-heading-text: var(--helix-text-xs);--_tree-heading-tracking: var(--helix-tracking-wide);}:host([loading]) [part="tree"] {opacity: 0.5;}[part="drag-preview"] {background-color: var(--tree-drag-preview-background-color, var(--helix-color-surface-raised));border: var(--tree-drag-preview-border-width, var(--helix-border-floating)) solid
|
|
3
|
+
var(--tree-drag-preview-border-color, var(--helix-color-border));border-radius: var(--tree-drag-preview-radius, var(--helix-radii-sm));box-shadow: var(--tree-drag-preview-shadow, var(--helix-shadow-floating));opacity: var(--tree-drag-preview-opacity, 0.9);}@media print {:host {print-color-adjust: economy;}}`);
|
|
@@ -17,12 +17,19 @@ import type { CSSResultGroup } from 'lit';
|
|
|
17
17
|
*
|
|
18
18
|
* @event {HelixSelectEvent} helix-select - Fired when an item is chosen. The item sends it, and you can listen for it on the tree. Cancelable: canceling it changes nothing.
|
|
19
19
|
*
|
|
20
|
-
* @csspart
|
|
20
|
+
* @csspart drag-preview - A copy of the row a pointer drags by its grip, which follows the pointer in the top layer until the item is let go, in a `reorderable` tree. Hidden from assistive technology.
|
|
21
|
+
* @csspart live - A copy of the empty and loading messages, and each step of a move in a `reorderable` tree, in a live region that announces them when they change. Visually hidden in the styled tier.
|
|
21
22
|
* @csspart tree - The tree container.
|
|
22
23
|
*
|
|
23
24
|
* @cssproperty --tree-chevron-gap - The space before the chevron. Set from `chevron-placement`.
|
|
24
25
|
* @cssproperty --tree-chevron-order - The chevron's order in the row. Set from `chevron-placement` and read by each item.
|
|
25
26
|
* @cssproperty --tree-chevron-size - Size of the chevron, and the gutter a leaf reserves.
|
|
27
|
+
* @cssproperty --tree-drag-preview-background-color - The fill behind the copy of an item a pointer drags.
|
|
28
|
+
* @cssproperty --tree-drag-preview-border-color - The color of the edge around the copy of an item a pointer drags.
|
|
29
|
+
* @cssproperty --tree-drag-preview-border-width - The width of the edge around the copy of an item a pointer drags. None by default, where the shadow lifts it.
|
|
30
|
+
* @cssproperty --tree-drag-preview-opacity - The opacity of the copy of an item a pointer drags.
|
|
31
|
+
* @cssproperty --tree-drag-preview-radius - The corner radius of the copy of an item a pointer drags.
|
|
32
|
+
* @cssproperty --tree-drag-preview-shadow - The shadow that raises the copy of an item a pointer drags over the page.
|
|
26
33
|
* @cssproperty --tree-gap - Space between rows.
|
|
27
34
|
* @cssproperty --tree-indent - Indent added per level.
|
|
28
35
|
* @cssproperty --tree-row-size - Minimum height of a row, so rows with and without an icon match.
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import { createSheet } from '@fusion.dev/helix-core';
|
|
2
|
-
export const styles = createSheet(`:host {display: block;}[part="viewport"] {block-size: var(--virtual-list-block-size, 20em);margin-inline: calc(var(--helix-size-focus-reach) * -1);overflow-y: auto;overscroll-behavior: contain;padding-inline: var(--helix-size-focus-reach);scrollbar-color: var(--
|
|
2
|
+
export const styles = createSheet(`:host {display: block;}[part="viewport"] {block-size: var(--virtual-list-block-size, 20em);margin-inline: calc(var(--helix-size-focus-reach) * -1);overflow-y: auto;overscroll-behavior: contain;padding-inline: var(--helix-size-focus-reach);scrollbar-color: var(--virtual-list-scrollbar-thumb-color, var(--helix-scrollbar-thumb-color))
|
|
3
|
+
var(--virtual-list-scrollbar-track-color, var(--helix-scrollbar-track-color));scrollbar-width: thin;}[part="viewport"]:hover {scrollbar-color: var(
|
|
4
|
+
--virtual-list-scrollbar-thumb-hover-color,
|
|
5
|
+
var(--helix-scrollbar-thumb-hover-color)
|
|
6
|
+
)
|
|
7
|
+
var(--virtual-list-scrollbar-track-color, var(--helix-scrollbar-track-color));}::slotted([data-index]:focus-visible) {outline: var(--helix-size-focus-ring) solid var(--helix-color-focus-ring);outline-offset: calc(var(--helix-size-focus-offset) * -1);}::slotted([aria-selected="true"]) {background-color: var(
|
|
3
8
|
--virtual-list-selected-background-color,
|
|
4
9
|
var(--helix-color-primary-subtle)
|
|
5
10
|
);}[part="loading"] {color: var(--virtual-list-loading-color, var(--helix-color-foreground-muted));font-size: var(--helix-text-sm);padding: var(--virtual-list-loading-padding, var(--helix-space-sm));text-align: center;}[part="after"],
|
|
@@ -24,6 +24,9 @@ import type { CSSResultGroup } from 'lit';
|
|
|
24
24
|
* @cssproperty --virtual-list-block-size - How tall the scrolling box is.
|
|
25
25
|
* @cssproperty --virtual-list-loading-color - The color of the text in the row drawn while `loading` is set.
|
|
26
26
|
* @cssproperty --virtual-list-loading-padding - The space around the text in the row drawn while `loading` is set.
|
|
27
|
+
* @cssproperty --virtual-list-scrollbar-thumb-color - The thumb of the list's scrollbar. Defaults to `--helix-scrollbar-thumb-color`.
|
|
28
|
+
* @cssproperty --virtual-list-scrollbar-thumb-hover-color - The thumb while the pointer is over the list. Defaults to `--helix-scrollbar-thumb-hover-color`.
|
|
29
|
+
* @cssproperty --virtual-list-scrollbar-track-color - The track of the list's scrollbar. Defaults to `--helix-scrollbar-track-color`.
|
|
27
30
|
* @cssproperty --virtual-list-selected-background-color - The fill behind a chosen row, in a list with `selection-mode`.
|
|
28
31
|
*/
|
|
29
32
|
export declare class HelixVirtualList extends HelixHeadlessVirtualList {
|