@danxbot/ui 22.0.0 → 22.1.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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** The keys the library prints the name of: modifiers and the named keys a chord can contain. */
|
|
2
|
-
|
|
2
|
+
declare const KEY_IDS: readonly ["ctrl", "alt", "shift", "tab", "enter", "backspace"];
|
|
3
3
|
export type KeyId = (typeof KEY_IDS)[number];
|
|
4
4
|
export interface KeysStrings {
|
|
5
5
|
/** The name printed on the key cap, by key id ("Shift", or "Mayús" on a Spanish keyboard). */
|
|
@@ -12,3 +12,4 @@ export declare const keysStrings: KeysStrings;
|
|
|
12
12
|
* chord the table never declared, so it throws rather than print a made-up name.
|
|
13
13
|
*/
|
|
14
14
|
export declare function chordLabel(chord: string, keyNames: KeysStrings["keyNames"]): string;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type RefObject } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Names Base UI's screen-reader dismiss buttons `label`. Pass the element they sit in before the
|
|
4
|
+
* input (`anchorRef`); put the returned ref on the `Positioner`, which holds the other.
|
|
5
|
+
*/
|
|
6
|
+
export declare function useRelabelBaseUiDismiss(label: string, anchorRef: RefObject<Element | null>): (positioner: Element | null) => void;
|