@univerjs/sheets-ui 0.15.5 → 0.16.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,8 +1,8 @@
1
1
  import { BooleanNumber } from '@univerjs/core';
2
- import { CSSProperties, ReactNode } from 'react';
2
+ import { CSSProperties, KeyboardEventHandler, ReactNode } from 'react';
3
3
  export interface IBaseSheetBarProps {
4
4
  label?: ReactNode;
5
- children?: any[];
5
+ children?: unknown[];
6
6
  index?: number;
7
7
  color?: string;
8
8
  sheetId?: string;
@@ -10,5 +10,8 @@ export interface IBaseSheetBarProps {
10
10
  hidden?: BooleanNumber;
11
11
  selected?: boolean;
12
12
  menuOverlay?: ReactNode;
13
+ className?: string;
14
+ onKeyDown?: KeyboardEventHandler<HTMLDivElement>;
15
+ tabIndex?: number;
13
16
  }
14
17
  export declare function SheetBarItem(props: IBaseSheetBarProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,12 @@
1
+ import { IContextMenuAnchorRect } from '@univerjs/ui';
2
+ import { ReactElement } from 'react';
3
+ interface ISheetBarTabsContextMenuProps {
4
+ children: ReactElement;
5
+ anchorRect: IContextMenuAnchorRect | null;
6
+ showContextMenu: boolean;
7
+ visible: boolean;
8
+ onCommandSelect: (commandId: string, value?: string | number) => void;
9
+ onVisibleChange: (visible: boolean) => void;
10
+ }
11
+ export declare function SheetBarTabsContextMenu(props: ISheetBarTabsContextMenuProps): import("react/jsx-runtime").JSX.Element;
12
+ export {};