chore: swap role for ariaRole, add svelte

This commit is contained in:
Abbey Yacoe
2025-06-02 12:10:54 +02:00
parent ba9df8eaf8
commit cdc08f1b54
6 changed files with 8 additions and 16 deletions
+3 -2
View File
@@ -79,7 +79,8 @@ export type NodeBase<
* When not specified, focusable nodes default to 'button' role.
* @default "button" (for focusable nodes)
*/
role?: NodeRole;
ariaRole?: AriaRole;
measured?: {
width?: number;
height?: number;
@@ -187,4 +188,4 @@ export type Align = 'center' | 'start' | 'end';
export type NodeLookup<NodeType extends InternalNodeBase = InternalNodeBase> = Map<string, NodeType>;
export type ParentLookup<NodeType extends InternalNodeBase = InternalNodeBase> = Map<string, Map<string, NodeType>>;
export type NodeRole = 'button' | 'group' | 'listitem' | 'application' | 'region' | 'none' | null;
export type AriaRole = 'button' | 'group' | 'listitem' | 'application' | 'region' | 'none' | null;