fix: move ariaRole
This commit is contained in:
@@ -64,6 +64,11 @@ export type Edge<
|
|||||||
*/
|
*/
|
||||||
reconnectable?: boolean | HandleType;
|
reconnectable?: boolean | HandleType;
|
||||||
focusable?: boolean;
|
focusable?: boolean;
|
||||||
|
/**
|
||||||
|
* The ARIA role attribute for the edge, used for accessibility.
|
||||||
|
* @default "group"
|
||||||
|
*/
|
||||||
|
ariaRole?: AriaRole;
|
||||||
};
|
};
|
||||||
|
|
||||||
type SmoothStepEdge<EdgeData extends Record<string, unknown> = Record<string, unknown>> = Edge<
|
type SmoothStepEdge<EdgeData extends Record<string, unknown> = Record<string, unknown>> = Edge<
|
||||||
@@ -183,11 +188,6 @@ export type BaseEdgeProps = Omit<SVGAttributes<SVGPathElement>, 'd' | 'path' | '
|
|||||||
* element in a separate SVG document or element.
|
* element in a separate SVG document or element.
|
||||||
*/
|
*/
|
||||||
markerEnd?: string;
|
markerEnd?: string;
|
||||||
/**
|
|
||||||
* The ARIA role attribute for the edge, used for accessibility.
|
|
||||||
* @default "group"
|
|
||||||
*/
|
|
||||||
ariaRole?: AriaRole;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -25,6 +25,11 @@ export type Edge<
|
|||||||
style?: string;
|
style?: string;
|
||||||
class?: ClassValue;
|
class?: ClassValue;
|
||||||
focusable?: boolean;
|
focusable?: boolean;
|
||||||
|
/**
|
||||||
|
* The ARIA role attribute for the edge, used for accessibility.
|
||||||
|
* @default "group"
|
||||||
|
*/
|
||||||
|
ariaRole?: HTMLAttributes<HTMLElement>['role'];
|
||||||
};
|
};
|
||||||
|
|
||||||
export type BaseEdgeProps = Pick<
|
export type BaseEdgeProps = Pick<
|
||||||
@@ -46,7 +51,6 @@ export type BaseEdgeProps = Pick<
|
|||||||
* @example 'url(#arrow)'
|
* @example 'url(#arrow)'
|
||||||
*/
|
*/
|
||||||
markerEnd?: string;
|
markerEnd?: string;
|
||||||
ariaRole?: HTMLAttributes<HTMLElement>['role'];
|
|
||||||
class?: ClassValue;
|
class?: ClassValue;
|
||||||
} & HTMLAttributes<SVGPathElement>;
|
} & HTMLAttributes<SVGPathElement>;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user