@ahmetilhn/hanui 5.5.0 → 5.6.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/README.md +3 -2
- package/build/index.cjs +3 -3
- package/build/index.cjs.map +1 -1
- package/build/index.d.ts +32 -1
- package/build/index.js +2586 -2492
- package/build/index.js.map +1 -1
- package/build/styles.css +1 -1
- package/package.json +1 -1
package/build/index.d.ts
CHANGED
|
@@ -444,6 +444,28 @@ declare const ConfirmDialog_2: FC<Props_50>;
|
|
|
444
444
|
|
|
445
445
|
export declare type ConfirmKind = 'destructive' | 'warning' | 'neutral';
|
|
446
446
|
|
|
447
|
+
export declare const ContextMenu: MemoExoticComponent<({ point, onClose, items, label, header, className, testId, }: ContextMenuProps) => JSX.Element>;
|
|
448
|
+
|
|
449
|
+
declare type ContextMenuProps = {
|
|
450
|
+
/**
|
|
451
|
+
* Açılış noktası — `contextmenu` olayının `clientX` / `clientY`si (görünüm alanı koordinatı).
|
|
452
|
+
* `null` iken menü kapalı.
|
|
453
|
+
*/
|
|
454
|
+
point: {
|
|
455
|
+
x: number;
|
|
456
|
+
y: number;
|
|
457
|
+
} | null;
|
|
458
|
+
/** Escape, Tab, dışarı tıklama ya da seçilen eylemden sonra çağrılır; çağıran `point`i `null` yapar. */
|
|
459
|
+
onClose: () => void;
|
|
460
|
+
items: MenuItem[];
|
|
461
|
+
/** Menünün erişilebilir adı ("Seçim seçenekleri"). */
|
|
462
|
+
label: string;
|
|
463
|
+
/** Eylemlerin ÜSTÜNDE okunan bağlam (seçimin özeti, ölçümler) — `role="menu"`nün DIŞINDA. */
|
|
464
|
+
header?: ReactNode;
|
|
465
|
+
className?: string;
|
|
466
|
+
testId?: string;
|
|
467
|
+
};
|
|
468
|
+
|
|
447
469
|
export declare const CopyField: typeof CopyField_2;
|
|
448
470
|
|
|
449
471
|
/** Kopyalanabilir teknik değer — tek dokunuşla panoya. */
|
|
@@ -1288,6 +1310,13 @@ export declare type PositioningOptions = {
|
|
|
1288
1310
|
isOpen: boolean;
|
|
1289
1311
|
};
|
|
1290
1312
|
|
|
1313
|
+
declare type PositioningRect = {
|
|
1314
|
+
top: number;
|
|
1315
|
+
left: number;
|
|
1316
|
+
width: number;
|
|
1317
|
+
height: number;
|
|
1318
|
+
};
|
|
1319
|
+
|
|
1291
1320
|
export declare type PositioningState = {
|
|
1292
1321
|
/** Yüzeye uygulanacak stil — `position: fixed` + hesaplanmış koordinat. */
|
|
1293
1322
|
style: {
|
|
@@ -2612,7 +2641,9 @@ export declare const useListboxNavigation: <T extends HTMLElement = HTMLElement>
|
|
|
2612
2641
|
* temeli.
|
|
2613
2642
|
*/
|
|
2614
2643
|
export declare const usePositioning: (anchorRef: {
|
|
2615
|
-
current:
|
|
2644
|
+
current: {
|
|
2645
|
+
getBoundingClientRect: () => PositioningRect;
|
|
2646
|
+
} | null;
|
|
2616
2647
|
}, surfaceRef: {
|
|
2617
2648
|
current: HTMLElement | null;
|
|
2618
2649
|
}, { side, align, offset, padding, isOpen }: PositioningOptions) => PositioningState;
|