@fusion.dev/helix-headless 0.147.0 → 0.148.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 +4512 -790
- package/dist/accordion/item/accordion-item.d.ts +5 -2
- package/dist/accordion/item/accordion-item.js +11 -7
- package/dist/accordion/root/accordion-root.js +4 -6
- package/dist/announcement/root/announcement-root.d.ts +56 -5
- package/dist/announcement/root/announcement-root.js +124 -21
- package/dist/area-chart/root/area-chart-root.js +3 -4
- package/dist/badge/count.d.ts +14 -0
- package/dist/badge/count.js +20 -0
- package/dist/badge/root/badge-root.js +8 -22
- package/dist/blockquote/root/blockquote-root.d.ts +66 -8
- package/dist/blockquote/root/blockquote-root.js +85 -8
- package/dist/breadcrumbs/breadcrumb/breadcrumb.js +2 -2
- package/dist/button-group/arrows.d.ts +14 -0
- package/dist/button-group/arrows.js +10 -0
- package/dist/button-group/root/button-group-root.d.ts +141 -3
- package/dist/button-group/root/button-group-root.js +142 -2
- package/dist/canvas/edge-pan.d.ts +61 -0
- package/dist/canvas/edge-pan.js +63 -0
- package/dist/canvas/node/canvas-node.d.ts +12 -2
- package/dist/canvas/node/canvas-node.js +6 -2
- package/dist/canvas/root/canvas-document.d.ts +10 -0
- package/dist/canvas/root/canvas-document.js +1 -0
- package/dist/canvas/root/canvas-root.d.ts +107 -5
- package/dist/canvas/root/canvas-root.js +140 -36
- package/dist/canvas/snap.d.ts +42 -0
- package/dist/canvas/snap.js +32 -0
- package/dist/carousel/root/carousel-root.d.ts +4 -3
- package/dist/carousel/root/carousel-root.js +2 -6
- package/dist/chat/root/chat-root.d.ts +13 -3
- package/dist/chat/root/chat-root.js +2 -6
- package/dist/checkbox-group/root/checkbox-group-root.d.ts +13 -0
- package/dist/checkbox-group/root/checkbox-group-root.js +18 -10
- package/dist/checkbox-group/select-all.d.ts +11 -0
- package/dist/checkbox-group/select-all.js +5 -0
- package/dist/code-block/root/code-block-root.d.ts +8 -6
- package/dist/code-block/root/code-block-root.js +4 -3
- package/dist/color-picker/root/color-picker-root.js +6 -12
- package/dist/color-picker/wheel.d.ts +11 -0
- package/dist/color-picker/wheel.js +9 -0
- package/dist/combobox/root/combobox-root.d.ts +70 -11
- package/dist/combobox/root/combobox-root.js +68 -18
- package/dist/command/root/command-root.d.ts +4 -3
- package/dist/data-table/root/data-table-root.js +17 -44
- package/dist/description-list/item/description-list-item.d.ts +4 -0
- package/dist/description-list/item/description-list-item.js +7 -1
- package/dist/divider/root/divider-root.d.ts +45 -16
- package/dist/divider/root/divider-root.js +28 -4
- package/dist/drilldown/item/drilldown-item.js +3 -4
- package/dist/element-events.generated.js +1 -0
- package/dist/empty/root/empty-root.d.ts +17 -3
- package/dist/empty/root/empty-root.js +29 -5
- package/dist/file-input/root/file-input-root.js +3 -4
- package/dist/file-input/status.js +2 -1
- package/dist/filter-input/chip/filter-chip.js +2 -3
- package/dist/format-date/fields.d.ts +20 -0
- package/dist/format-date/fields.js +14 -0
- package/dist/format-date/options.d.ts +2 -1
- package/dist/format-date/options.js +9 -38
- package/dist/format-date/root/format-date-root.d.ts +35 -3
- package/dist/format-date/root/format-date-root.js +24 -32
- package/dist/graph/root/graph-root.d.ts +23 -5
- package/dist/graph/root/graph-root.js +17 -20
- package/dist/heatmap/root/heatmap-root.d.ts +12 -0
- package/dist/heatmap/root/heatmap-root.js +26 -11
- package/dist/image/root/image-root.d.ts +11 -0
- package/dist/kbd/root/kbd-root.js +1 -2
- package/dist/legend/root/legend-root.js +4 -17
- package/dist/list/root/list-root.js +8 -22
- package/dist/listbox/root/listbox-root.d.ts +119 -24
- package/dist/listbox/root/listbox-root.js +130 -132
- package/dist/map/marker/map-marker.d.ts +2 -1
- package/dist/map/root/map-root.d.ts +40 -2
- package/dist/map/root/map-root.js +64 -23
- package/dist/megamenu/root/megamenu-root.js +4 -11
- package/dist/menu/root/menu-root.d.ts +2 -2
- package/dist/navigation/root/navigation-root.js +5 -8
- package/dist/notifications/group/notification-group.d.ts +8 -1
- package/dist/notifications/group/notification-group.js +12 -6
- package/dist/notifications/notification/notification.d.ts +12 -1
- package/dist/notifications/notification/notification.js +3 -1
- package/dist/notifications/root/notifications-root.d.ts +41 -5
- package/dist/notifications/root/notifications-root.js +27 -7
- package/dist/object-inspector/root/object-inspector-root.d.ts +5 -1
- package/dist/object-inspector/root/object-inspector-root.js +21 -11
- package/dist/pagination/size/pagination-size.d.ts +1 -0
- package/dist/pagination/size/pagination-size.js +1 -1
- package/dist/pin-input/code.d.ts +23 -0
- package/dist/pin-input/code.js +25 -0
- package/dist/pin-input/root/pin-input-root.js +9 -23
- package/dist/qr-code/root/qr-code-root.d.ts +14 -3
- package/dist/qr-code/root/qr-code-root.js +19 -5
- package/dist/scatter-chart/measures.d.ts +22 -0
- package/dist/scatter-chart/measures.js +11 -0
- package/dist/scatter-chart/root/scatter-chart-root.d.ts +2 -6
- package/dist/scatter-chart/root/scatter-chart-root.js +6 -19
- package/dist/select/root/select-root.d.ts +56 -8
- package/dist/select/root/select-root.js +33 -9
- package/dist/speed-dial/group/speed-dial-group.d.ts +48 -0
- package/dist/speed-dial/group/speed-dial-group.js +43 -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.d.ts +26 -1
- package/dist/speed-dial/item/speed-dial-item.js +41 -3
- package/dist/speed-dial/long-press.d.ts +50 -0
- package/dist/speed-dial/long-press.js +48 -0
- package/dist/speed-dial/root/speed-dial-root.d.ts +80 -1
- package/dist/speed-dial/root/speed-dial-root.js +114 -5
- package/dist/splitter/root/splitter-root.d.ts +7 -3
- package/dist/splitter/root/splitter-root.js +16 -3
- package/dist/table/cell/table-cell.d.ts +8 -1
- package/dist/table/cell/table-cell.js +6 -2
- package/dist/table/grid-controller.d.ts +117 -0
- package/dist/table/grid-controller.js +293 -0
- package/dist/table/root/table-root.d.ts +47 -3
- package/dist/table/root/table-root.js +81 -24
- package/dist/table/row/table-row.d.ts +13 -1
- package/dist/table/row/table-row.js +20 -6
- package/dist/tag/group/tag-group.js +6 -15
- package/dist/time-picker/root/time-picker-root.d.ts +1 -0
- package/dist/time-picker/root/time-picker-root.js +3 -0
- package/dist/toast/item/toast-item.d.ts +6 -3
- package/dist/toast/item/toast-item.js +1 -0
- package/dist/toast/root/toast-root.d.ts +13 -1
- package/dist/toast/root/toast-root.js +20 -14
- package/dist/toggle/group/toggle-group.js +3 -5
- package/dist/toolbar/root/toolbar-root.d.ts +31 -0
- package/dist/toolbar/root/toolbar-root.js +39 -8
- package/dist/tooltip/root/tooltip-root.js +1 -2
- package/dist/video/root/video-root.d.ts +11 -0
- package/dist/video/root/video-root.js +15 -1
- package/dist/virtual-list/root/virtual-list-root.js +6 -18
- package/lint.json +1 -1
- package/package.json +5 -5
- package/types/jsx.d.ts +2005 -266
- package/types/svelte.d.ts +1 -0
- package/types/vue.d.ts +338 -62
- package/dist/kbd/keys.d.ts +0 -29
- package/dist/kbd/keys.js +0 -52
- package/dist/tooltip/focus-target.d.ts +0 -6
- package/dist/tooltip/focus-target.js +0 -9
package/dist/kbd/keys.d.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The words and glyphs a chord is drawn with, per platform.
|
|
3
|
-
*
|
|
4
|
-
* Beside the family's `index.ts`, because which label a key gets is a table
|
|
5
|
-
* and a rule, and not the key's template.
|
|
6
|
-
*/
|
|
7
|
-
/** A chord's keys as they are shown, and what is shown between two of them. */
|
|
8
|
-
export interface KeyNames {
|
|
9
|
-
/** Each key's label, in the order the chord names them. */
|
|
10
|
-
keys: string[];
|
|
11
|
-
/** What goes between two keys: `+`, a hyphen, or nothing. */
|
|
12
|
-
separator: string;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* The labels of a chord's keys on a platform, with `own` labels in place of
|
|
16
|
-
* the platform's, and what goes between two keys.
|
|
17
|
-
*
|
|
18
|
-
* `parts` are the chord's names as `chordParts` splits them. A name `own`
|
|
19
|
-
* holds takes that label, a name the platform knows takes its glyph or word,
|
|
20
|
-
* and any other single character is shown in capitals.
|
|
21
|
-
*
|
|
22
|
-
* **On an Apple keyboard glyphs run together and words are joined with a
|
|
23
|
-
* hyphen**, as Apple writes `Command-K`. A label of more than one character
|
|
24
|
-
* from `own` is a word, so `{"mod": "Command"}` shows `Command-K` there, where
|
|
25
|
-
* nothing between the two ran them into `CommandK`. The platform's own `Esc`
|
|
26
|
-
* and `Space` keep running on from a glyph, as `⌘Esc` always has. Everywhere
|
|
27
|
-
* else keys are joined with `+`.
|
|
28
|
-
*/
|
|
29
|
-
export declare const keyNames: (parts: readonly string[], apple: boolean, own?: Readonly<Record<string, string>>) => KeyNames;
|
package/dist/kbd/keys.js
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
const APPLE = {
|
|
2
|
-
alt: '⌥',
|
|
3
|
-
backspace: '⌫',
|
|
4
|
-
cmd: '⌘',
|
|
5
|
-
ctrl: '⌃',
|
|
6
|
-
del: '⌦',
|
|
7
|
-
down: '↓',
|
|
8
|
-
enter: '↵',
|
|
9
|
-
esc: 'Esc',
|
|
10
|
-
left: '←',
|
|
11
|
-
meta: '⌘',
|
|
12
|
-
mod: '⌘',
|
|
13
|
-
opt: '⌥',
|
|
14
|
-
right: '→',
|
|
15
|
-
shift: '⇧',
|
|
16
|
-
space: 'Space',
|
|
17
|
-
tab: '⇥',
|
|
18
|
-
up: '↑',
|
|
19
|
-
};
|
|
20
|
-
const ELSEWHERE = {
|
|
21
|
-
alt: 'Alt',
|
|
22
|
-
backspace: 'Backspace',
|
|
23
|
-
cmd: 'Win',
|
|
24
|
-
ctrl: 'Ctrl',
|
|
25
|
-
del: 'Del',
|
|
26
|
-
down: '↓',
|
|
27
|
-
enter: 'Enter',
|
|
28
|
-
esc: 'Esc',
|
|
29
|
-
left: '←',
|
|
30
|
-
meta: 'Win',
|
|
31
|
-
mod: 'Ctrl',
|
|
32
|
-
opt: 'Alt',
|
|
33
|
-
right: '→',
|
|
34
|
-
shift: 'Shift',
|
|
35
|
-
space: 'Space',
|
|
36
|
-
tab: 'Tab',
|
|
37
|
-
up: '↑',
|
|
38
|
-
};
|
|
39
|
-
export const keyNames = (parts, apple, own = {}) => {
|
|
40
|
-
const names = apple ? APPLE : ELSEWHERE;
|
|
41
|
-
let worded = false;
|
|
42
|
-
const keys = parts.map((part) => {
|
|
43
|
-
const name = part.toLowerCase();
|
|
44
|
-
const mine = own[name];
|
|
45
|
-
if (mine !== undefined) {
|
|
46
|
-
worded ||= [...mine].length > 1;
|
|
47
|
-
return mine;
|
|
48
|
-
}
|
|
49
|
-
return names[name] ?? (part.length === 1 ? part.toUpperCase() : part);
|
|
50
|
-
});
|
|
51
|
-
return { keys, separator: apple ? (worded ? '-' : '') : '+' };
|
|
52
|
-
};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The element focus lands on when a trigger is focused: the trigger itself,
|
|
3
|
-
* or, for a component that delegates focus, the control inside its shadow root,
|
|
4
|
-
* followed down through any component nested there.
|
|
5
|
-
*/
|
|
6
|
-
export declare const focusTarget: (trigger: Element) => Element;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
const CONTROL = 'a[href], button, input, select, textarea, [contenteditable], [tabindex]:not([tabindex="-1"])';
|
|
2
|
-
export const focusTarget = (trigger) => {
|
|
3
|
-
const root = trigger.shadowRoot;
|
|
4
|
-
if (!root?.delegatesFocus) {
|
|
5
|
-
return trigger;
|
|
6
|
-
}
|
|
7
|
-
const inner = root.querySelector(CONTROL);
|
|
8
|
-
return inner ? focusTarget(inner) : trigger;
|
|
9
|
-
};
|