@fusion.dev/helix-headless 0.237.0 → 0.237.2
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/api.json +1 -1
- package/custom-elements.json +1 -1
- package/dist/tag/root/tag-root.d.ts +4 -2
- package/dist/tag/root/tag-root.js +1 -0
- package/lint.json +1 -1
- package/package.json +5 -5
- package/types/jsx.d.ts +4 -2
- package/types/vue.d.ts +3 -2
|
@@ -28,8 +28,9 @@ declare const HelixHeadlessTag_base: (new (...args: any[]) => import("@fusion.de
|
|
|
28
28
|
* selected. Its remove button leaves the tab order there, Delete and Backspace
|
|
29
29
|
* doing its job from the row.
|
|
30
30
|
*
|
|
31
|
-
* **Styling a tag by what is happening to it.** `:state(
|
|
32
|
-
*
|
|
31
|
+
* **Styling a tag by what is happening to it.** `:state(selectable)` while its
|
|
32
|
+
* group selects, `:state(selected)` while it is selected,
|
|
33
|
+
* `:state(focus-visible)` while its cell shows keyboard focus,
|
|
33
34
|
* `[disabled]` while it is out of reach, and the host's own `:hover` and
|
|
34
35
|
* `:active` under the pointer, as React Aria's `data-hovered` and
|
|
35
36
|
* `data-pressed` are.
|
|
@@ -54,6 +55,7 @@ declare const HelixHeadlessTag_base: (new (...args: any[]) => import("@fusion.de
|
|
|
54
55
|
* @csspart start - The category before the label.
|
|
55
56
|
*
|
|
56
57
|
* @cssstate focus-visible - The tag's cell has keyboard focus that the browser shows, in a `Tag.Group`.
|
|
58
|
+
* @cssstate selectable - The tag can be selected, in a `Tag.Group` that selects.
|
|
57
59
|
* @cssstate selected - The tag is selected in a `Tag.Group` that selects.
|
|
58
60
|
*/
|
|
59
61
|
export declare class HelixHeadlessTag extends HelixHeadlessTag_base {
|
|
@@ -49,6 +49,7 @@ let HelixHeadlessTag = class HelixHeadlessTag extends MixinDismissible(HelixElem
|
|
|
49
49
|
});
|
|
50
50
|
internalsOf(this).ariaSelected = this.selected === undefined ? null : String(this.selected);
|
|
51
51
|
internalsOf(this).ariaDisabled = this.disabled ? 'true' : null;
|
|
52
|
+
this.toggleState('selectable', this.selected !== undefined);
|
|
52
53
|
this.toggleState('selected', this.selected === true);
|
|
53
54
|
}
|
|
54
55
|
get removeName() {
|